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
abd2a7c3445b4d02f8f553e987c194e7ab8955bd
Wordpress Stackexchange Q: Access code/password only restricts page access, no user registration..? Does anyone know of a plugin that will allow for a simple access/invite code to be given out, and when entered, will allow access to a certain page? I'm looking to only have one input field and no user registration needed to access a certain page of the site, and to just be able to give out unique codes that will grant access. I can't find anything like this that isn't a full user membership plugin. Any help or point in the right direction is much appreciated. A: This is a built-in feature of WordPress. Create a page like you normally would. Then look at the Publish box in the upper-right corner for where it says "Visibility: Public." Click "Public" and you'll see some other options - "Private" and "Password Protected." You want "Password Protected." Check the appropriate box and enter the password of your choosing. When others try to visit this page, they'll be presented with a password box - not a user registration form.
Q: Access code/password only restricts page access, no user registration..? Does anyone know of a plugin that will allow for a simple access/invite code to be given out, and when entered, will allow access to a certain page? I'm looking to only have one input field and no user registration needed to access a certain page of the site, and to just be able to give out unique codes that will grant access. I can't find anything like this that isn't a full user membership plugin. Any help or point in the right direction is much appreciated. A: This is a built-in feature of WordPress. Create a page like you normally would. Then look at the Publish box in the upper-right corner for where it says "Visibility: Public." Click "Public" and you'll see some other options - "Private" and "Password Protected." You want "Password Protected." Check the appropriate box and enter the password of your choosing. When others try to visit this page, they'll be presented with a password box - not a user registration form.
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:421942", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58784" }
[ 0.053924560546875, 0.00470733642578125, 0.01666259765625, -0.02154541015625, -0.004405975341796875, -0.0213623046875, 0.005107879638671875, -0.038330078125, -0.0218963623046875, 0.02508544921875, -0.023834228515625, 0.015777587890625, -0.049224853515625, -0.01024627685546875, -0.01294708251953125, -0.04522705078125, -0.00832366943359375, 0.048736572265625, 0.02923583984375, -0.049530029296875, 0.0258636474609375, -0.0438232421875, 0.040679931640625, 0.02740478515625, 0.028106689453125, 0.0105133056640625, 0.0924072265625, -0.0204925537109375, 0.043426513671875, 0.007083892822265625, 0.02154541015625, -0.078125, 0.021881103515625, 0.00962066650390625, -0.0208740234375, -0.0229034423828125, -0.034820556640625, 0.019805908203125, -0.018585205078125, 0.01219940185546875, 0.053955078125, -0.0230560302734375, -0.07415771484375, 0.060638427734375, -0.042205810546875, -0.0740966796875, 0.07421875, -0.0012159347534179688, -0.00775909423828125, -0.01129150390625, 0.00609588623046875, 0.03369140625, 0.015777587890625, -0.008087158203125, -0.0028076171875, 0.0135345458984375, 0.0081939697265625, -0.056610107421875, 0.03387451171875, 0.0303497314453125, -0.0250091552734375, -0.05157470703125, 0.0278472900390625, -0.05389404296875, 0.00010770559310913086, -0.0194854736328125, -0.07720947265625, 0.01227569580078125, 0.0056915283203125, 0.02117919921875, 0.03338623046875, -0.02655029296875, -0.0182342529296875, -0.03399658203125, -0.028717041015625, 0.039886474609375, 0.0006189346313476562, -0.0122833251953125, 0.0088348388671875, 0.008392333984375, -0.02679443359375, -0.041717529296875, -0.0304718017578125, -0.0125732421875, -0.0293121337890625, 0.0009007453918457031, -0.007801055908203125, 0.011016845703125, 0.0034656524658203125, 0.0211029052734375, -0.012237548828125, 0.0273895263671875, 0.047698974609375, 0.0017614364624023438, -0.053314208984375, 0.0132598876953125, 0.04278564453125, 0.04339599609375, 0.0234375, 0.01922607421875, 0.01641845703125, -0.052459716796875, 0.0235137939453125, -0.031524658203125, 0.006778717041015625, 0.0877685546875, 0.01337432861328125, 0.009521484375, -0.00890350341796875, -0.013397216796875, 0.017669677734375, -0.04852294921875, -0.01141357421875, -0.01953125, 0.0034694671630859375, 0.00339508056640625, -0.0299835205078125, 0.01398468017578125, -0.00510406494140625, 0.00992584228515625, -0.016265869140625, 0.00670623779296875, 0.023468017578125, -0.0361328125, -0.0036945343017578125, -0.019805908203125, -0.0259246826171875, -0.020263671875, 0.0513916015625, -0.0123138427734375, -0.02398681640625, 0.0173187255859375, 0.04156494140625, 0.0219879150390625, 0.01123046875, -0.0082855224609375, -0.001087188720703125, 0.0125274658203125, 0.01340484619140625, 0.01580810546875, -0.048065185546875, -0.01393890380859375, 0.06060791015625, -0.0270538330078125, -0.0167694091796875, 0.00775909423828125, 0.0083465576171875, 0.0275115966796875, 0.007534027099609375, -0.0164642333984375, -0.0128631591796875, -0.0121002197265625, -0.00490570068359375, 0.00719451904296875, 0.0146331787109375, 0.0198974609375, 0.0003941059112548828, 0.02178955078125, -0.0026988983154296875, 0.0177001953125, 0.071533203125, 0.006343841552734375, -0.0207672119140625, 0.0299072265625, -0.015045166015625, -0.0218048095703125, -0.036407470703125, -0.006305694580078125, 0.01139068603515625, -0.0017518997192382812, 0.041961669921875, 0.00322723388671875, -0.0110015869140625, 0.01458740234375, 0.0142364501953125, 0.00803375244140625, 0.004940032958984375, 0.033843994140625, 0.02777099609375, 0.025726318359375, 0.007076263427734375, -0.02099609375, 0.1116943359375, -0.0343017578125, -0.03387451171875, 0.03057861328125, -0.00241851806640625, -0.0010051727294921875, 0.00921630859375, 0.002933502197265625, 0.046417236328125, 0.0537109375, -0.006870269775390625, 0.007389068603515625, -0.014495849609375, -0.043701171875, 0.031768798828125, 0.0144500732421875, -0.0166015625, 0.00740814208984375, 0.0186920166015625, -0.0201568603515625, 0.0238494873046875, -0.0226898193359375, -0.0014438629150390625, -0.024017333984375, 0.005344390869140625, 0.00004470348358154297, -0.0406494140625, 0.0101165771484375, 0.0241851806640625, -0.009368896484375, -0.0151214599609375, -0.01690673828125, -0.0008273124694824219, 0.0004696846008300781, -0.03814697265625, 0.0845947265625, 0.0004138946533203125, 0.06365966796875, 0.0092010498046875, -0.0782470703125, 0.0294342041015625, -0.00728607177734375, 0.050537109375, -0.0265655517578125, -0.00339508056640625, -0.0279998779296875, 0.04522705078125, -0.0300445556640625, 0.023101806640625, 0.05645751953125, 0.01415252685546875, 0.0019283294677734375, -0.0396728515625, 0.0106048583984375, -0.0259857177734375, -0.0154266357421875, -0.0050048828125, 0.0347900390625, 0.041229248046875, -0.0037975311279296875, -0.00678253173828125, -0.01477813720703125, 0.036163330078125, -0.033416748046875, 0.0106201171875, -0.01143646240234375, -0.0238494873046875, 0.036224365234375, 0.0192413330078125, 0.048126220703125, 0.0033664703369140625, -0.01422882080078125, -0.005413055419921875, 0.03631591796875, -0.0111541748046875, 0.0189056396484375, -0.0227813720703125, -0.01174163818359375, -0.01666259765625, -0.04083251953125, 0.007099151611328125, -0.0224151611328125, -0.0010461807250976562, -0.01491546630859375, 0.0166015625, 0.0286407470703125, -0.01495361328125, -0.0242462158203125, 0.02276611328125, 0.03497314453125, -0.0037860870361328125, 0.0221099853515625, 0.06591796875, -0.0014677047729492188, -0.0239715576171875, -0.026275634765625, 0.007965087890625, 0.017059326171875, -0.0209503173828125, -0.0206756591796875, -0.0740966796875, -0.0062103271484375, 0.024444580078125, -0.002117156982421875, -0.004695892333984375, 0.02532958984375, -0.004039764404296875, -0.0291748046875, 0.00618743896484375, 0.0203704833984375, -0.0330810546875, 0.0648193359375, -0.0240936279296875, -0.0220489501953125, -0.03485107421875, -0.05059814453125, 0.040679931640625, -0.0760498046875, 0.00823974609375, 0.05718994140625, -0.024200439453125, 0.00205230712890625, 0.0040130615234375, -0.0178680419921875, -0.039581298828125, 0.039398193359375, 0.01535797119140625, -0.0139312744140625, -0.040771484375, 0.041259765625, 0.0028514862060546875, -0.0246429443359375, -0.0023956298828125, -0.03399658203125, -0.037689208984375, -0.01995849609375, -0.0819091796875, -0.0362548828125, -0.053192138671875, -0.06329345703125, 0.017059326171875, -0.0234222412109375, -0.02496337890625, 0.0197906494140625, 0.01114654541015625, 0.021759033203125, -0.035797119140625, -0.008087158203125, -0.040435791015625, -0.03350830078125, -0.0341796875, 0.0300750732421875, -0.00392913818359375, 0.019561767578125, -0.0034465789794921875, 0.054656982421875, -0.01885986328125, -0.05645751953125, -0.0369873046875, -0.0010900497436523438, -0.017608642578125, -0.04132080078125, -0.0210418701171875, -0.03564453125, 0.017730712890625, 0.0020427703857421875, -0.038787841796875, -0.01004791259765625, 0.0364990234375, -0.0146484375, 0.0185699462890625, -0.0516357421875, -0.0009717941284179688, 0.0635986328125, -0.02813720703125, -0.0130157470703125, 0.031707763671875, -0.053680419921875, 0.042724609375, -0.006145477294921875, -0.02044677734375, -0.057769775390625, 0.0013532638549804688, -0.025604248046875, -0.006046295166015625, -0.03326416015625, -0.0196380615234375, -0.005855560302734375, -0.00824737548828125, -0.0294647216796875, 0.0251617431640625, -0.019500732421875, -0.0199432373046875, 0.01397705078125, 0.01149749755859375, -0.026031494140625, -0.0028591156005859375, -0.0007672309875488281, -0.0035552978515625, -0.00582122802734375, 0.026123046875, -0.0169525146484375, -0.0657958984375, 0.055328369140625, -0.01186370849609375, 0.018280029296875, -0.051422119140625, -0.040130615234375, -0.0360107421875, 0.10565185546875, -0.041259765625, -0.0136871337890625, 0.0255279541015625, 0.0234832763671875, -0.033050537109375, -0.01013946533203125, -0.045806884765625, -0.0210723876953125, 0.018157958984375, -0.0091705322265625, -0.01030731201171875, -0.0081024169921875, 0.023284912109375, -0.09661865234375, 0.0264434814453125, -0.01119232177734375, 0.0294952392578125, 0.005611419677734375, 0.0030345916748046875, 0.00722503662109375, -0.005031585693359375, -0.0242462158203125, -0.00702667236328125, 0.005401611328125, -0.037811279296875, -0.01322174072265625, 0.02996826171875, 0.03753662109375, 0.01317596435546875, -0.030517578125, -0.0078582763671875, 0.028228759765625, -0.00015032291412353516, 0.000028431415557861328, -0.002452850341796875, -0.00582122802734375, -0.00807952880859375, -0.0095367431640625, -0.0099029541015625, -0.0198516845703125, 0.027099609375, 0.0104827880859375, -0.0306549072265625, -0.03448486328125, -0.04779052734375, -0.035614013671875, 0.01094818115234375, -0.057373046875, -0.0306549072265625, -0.0209808349609375, 0.007965087890625, -0.01041412353515625, -0.01343536376953125, 0.0149993896484375, -0.01312255859375, -0.016754150390625, 0.033233642578125, -0.01026153564453125, -0.0176849365234375, 0.01483917236328125, 0.0350341796875, 0.00896453857421875, -0.015777587890625, -0.0445556640625, 0.04144287109375, 0.036773681640625, 0.02569580078125, 0.0400390625, 0.007457733154296875, -0.022216796875, 0.055419921875, 0.0052490234375, 0.0129241943359375, -0.016143798828125, 0.007083892822265625, 0.0080413818359375, -0.037994384765625, 0.023468017578125, -0.001983642578125, 0.009002685546875, 0.036102294921875, -0.00661468505859375, -0.019775390625, -0.006103515625, 0.02960205078125, 0.00646209716796875, -0.0157928466796875, -0.03375244140625, -0.0045928955078125, -0.00505828857421875, 0.0679931640625, -0.00492095947265625, 0.01041412353515625, 0.006519317626953125, -0.019744873046875, 0.007411956787109375, -0.025482177734375, 0.015350341796875, 0.0021724700927734375, 0.028778076171875, 0.011444091796875, 0.0022525787353515625, 0.0007548332214355469, -0.0190582275390625, -0.023590087890625, 0.0693359375, -0.00954437255859375, -0.0863037109375, 0.0312347412109375, -0.0260009765625, 0.048736572265625, 0.040435791015625, 0.001895904541015625, 0.036376953125, 0.01061248779296875, -0.01329803466796875, 0.0167236328125, 0.0243377685546875, -0.038909912109375, -0.0308685302734375, 0.0023822784423828125, -0.005008697509765625, -0.01568603515625, -0.0090179443359375, 0.05120849609375, -0.049530029296875, 0.03204345703125, 0.0064544677734375, 0.01385498046875, 0.0279388427734375, -0.008697509765625, 0.01085662841796875, 0.021087646484375, -0.01318359375, -0.010101318359375, 0.0218963623046875, -0.0092010498046875, -0.0157470703125, 0.035064697265625, 0.00506591796875, 0.005199432373046875, 0.020782470703125, -0.01497650146484375, 0.02081298828125, -0.035797119140625, 0.049072265625, 0.0131988525390625, -0.037750244140625, -0.043365478515625, -0.0176239013671875, 0.03094482421875, 0.00705718994140625, 0.019287109375, -0.03509521484375, 0.0026416778564453125, -0.013519287109375, 0.042877197265625, -0.033905029296875, -0.0186309814453125, -0.0182342529296875, 0.0167236328125, -0.0164031982421875, -0.039794921875, 0.039337158203125, 0.0178375244140625, -0.0185089111328125, 0.00859832763671875, 0.04559326171875, -0.0022182464599609375, 0.027313232421875, -0.048187255859375, -0.00004082918167114258, -0.0035915374755859375, -0.01090240478515625, 0.057281494140625, 0.00807952880859375, -0.058197021484375, -0.031402587890625, -0.0203857421875, -0.0189666748046875, -0.00931549072265625, 0.003040313720703125, -0.031280517578125, 0.00412750244140625, -0.000041544437408447266, 0.0043792724609375, 0.0034580230712890625, 0.0153656005859375, -0.033111572265625, 0.035980224609375, 0.01543426513671875, 0.0200958251953125, -0.01194000244140625, 0.022491455078125, 0.013214111328125, 0.047271728515625, 0.01184844970703125, 0.00873565673828125, -0.00836181640625, -0.0290985107421875, 0.023712158203125, -0.01026153564453125, -0.0232391357421875, -0.0261688232421875, 0.0120697021484375, -0.009490966796875, 0.0257568359375, -0.01509857177734375, -0.0499267578125, -0.0111083984375, -0.0006356239318847656, -0.0225677490234375, 0.085205078125, 0.021759033203125, -0.054595947265625, 0.0233154296875, -0.0301055908203125, 0.03515625, -0.01019287109375, -0.01277923583984375, 0.048675537109375, -0.036529541015625, 0.0509033203125, 0.029815673828125, -0.019683837890625, 0.02685546875, 0.0657958984375, -0.01018524169921875, 0.046600341796875, 0.0218353271484375, 0.0190887451171875, 0.05126953125, -0.046234130859375, -0.046142578125, 0.032073974609375, 0.01329803466796875, -0.0163116455078125, -0.00299072265625, 0.01953125, -0.007236480712890625, 0.01068878173828125, 0.0418701171875, 0.041656494140625, -0.0797119140625, 0.01442718505859375, -0.005603790283203125, -0.01340484619140625, 0.0237884521484375, 0.0212249755859375, 0.003173828125, 0.00847625732421875, 0.0095672607421875, -0.00501251220703125, 0.002044677734375, 0.0160064697265625, 0.0137786865234375, 0.008697509765625, 0.0007710456848144531, 0.038360595703125, 0.02294921875, -0.00418853759765625, 0.012908935546875, -0.0053253173828125, 0.05316162109375, -0.00933837890625, -0.009979248046875, 0.01043701171875, -0.053131103515625, -0.0958251953125, -0.03564453125, -0.0098114013671875, -0.018768310546875, 0.03564453125, 0.0119781494140625, 0.0002703666687011719, 0.0218048095703125, -0.0090179443359375, 0.0194854736328125, -0.0193634033203125, 0.0252685546875, 0.06549072265625, -0.039794921875, -0.0178375244140625, -0.004444122314453125, -0.035614013671875, 0.004405975341796875, 0.00597381591796875, -0.036224365234375, -0.014007568359375, -0.0281982421875, 0.072021484375, -0.017486572265625, -0.01285552978515625, 0.0182952880859375, 0.0230865478515625, -0.0109100341796875, 0.0098419189453125, -0.020782470703125, 0.0142364501953125, 0.0361328125, -0.01009368896484375, -0.0038909912109375, 0.031036376953125, 0.026824951171875, -0.049591064453125, 0.082275390625, -0.0050048828125, 0.017120361328125, 0.0123748779296875, 0.0323486328125, -0.0088043212890625, 0.019927978515625, -0.015869140625, 0.05975341796875, 0.0258636474609375, 0.0179901123046875, 0.02001953125, 0.0086212158203125, 0.033172607421875, 0.005474090576171875, 0.08905029296875, 0.03399658203125, -0.047119140625, -0.025726318359375, 0.0057830810546875, -0.005802154541015625, -0.0362548828125, 0.07373046875, 0.0316162109375, 0.047088623046875, 0.0772705078125, -0.078125, 0.020660400390625, -0.0247039794921875, 0.051055908203125, 0.023712158203125, -0.026611328125, -0.05078125, -0.0183563232421875, 0.032440185546875, -0.08929443359375, 0.01177978515625, 0.0372314453125, 0.040252685546875, 0.0142669677734375, 0.026641845703125, 0.021636962890625, -0.00965118408203125, 0.04302978515625, -0.0341796875, 0.04705810546875, -0.0168304443359375, 0.0284423828125, 0.0164794921875, 0.02685546875, -0.0044403076171875, -0.00508880615234375, 0.0236968994140625, 0.0211029052734375, -0.03204345703125, 0.0298614501953125, -0.01404571533203125, 0.00933074951171875, -0.089599609375, -0.0206451416015625, 0.091796875, 0.06365966796875, -0.0290374755859375, -0.043670654296875, 0.0125732421875, 0.0293121337890625, 0.03350830078125, 0.044677734375, 0.07342529296875, 0.0181884765625, 0.06890869140625, -0.0010461807250976562, 0.0181732177734375, 0.0166473388671875, -0.0035552978515625, -0.0006561279296875, 0.005695343017578125, -0.02276611328125, 0.049224853515625, 0.00934600830078125, 0.00244903564453125, -0.004547119140625, -0.032989501953125, -0.0272674560546875, 0.01151275634765625, 0.022186279296875, 0.0294036865234375, -0.048736572265625, 0.029876708984375, 0.01393890380859375, 0.053985595703125, -0.04742431640625, -0.0156707763671875, 0.0091552734375, 0.045318603515625, -0.006076812744140625, -0.0184478759765625, 0.00848388671875, 0.02325439453125, -0.0172882080078125, -0.0268096923828125, -0.0100555419921875, -0.019195556640625, 0.0103302001953125, 0.0014972686767578125, 0.01406097412109375, 0.01499176025390625, -0.0185394287109375, -0.031463623046875, 0.01493072509765625, 0.03338623046875, -0.0005588531494140625, 0.00632476806640625, -0.0038394927978515625, -0.02557373046875, 0.0083770751953125, -0.04388427734375, 0.037384033203125, 0.00016498565673828125, -0.0897216796875, -0.006221771240234375, -0.051788330078125, -0.058319091796875, 0.02655029296875, 0.034576416015625, -0.03765869140625, 0.0204315185546875, 0.030670166015625, -0.004642486572265625, 0.02703857421875, -0.04443359375, 0.030059814453125, -0.00850677490234375, -0.0051727294921875, -0.00478363037109375, -0.05120849609375, -0.018218994140625, -0.041748046875, 0.03656005859375, -0.00460052490234375, 0.08251953125, -0.021331787109375, 0.0198822021484375, 0.010589599609375, 0.0003509521484375, 0.00518035888671875, 0.01313018798828125, -0.012176513671875, -0.011566162109375, 0.002460479736328125, -0.0101470947265625, -0.040374755859375, 0.051116943359375, -0.01352691650390625, 0.0143585205078125, 0.0183868408203125, -0.0185546875, 0.001651763916015625, 0.02685546875, 0.03662109375, -0.01038360595703125, -0.02557373046875, -0.0258636474609375, -0.00604248046875, 0.0250091552734375, 0.022735595703125, -0.01166534423828125, 0.044586181640625, -0.058013916015625, -0.01904296875, -0.005031585693359375, -0.053436279296875, -0.04412841796875, 0.00261688232421875, -0.00559234619140625, 0.05718994140625, 0.02215576171875, -0.024658203125, 0.0306243896484375, 0.01108551025390625, -0.0174560546875, 0.0259246826171875, -0.04791259765625, -0.0101470947265625, 0.0241546630859375, 0.0260009765625, -0.0236053466796875, -0.004825592041015625, 0.0290374755859375, -0.0308837890625, -0.0281829833984375, -0.0555419921875, -0.049163818359375, -0.031646728515625, 0.00669097900390625, 0.0029239654541015625, 0.004329681396484375, -0.0872802734375, -0.045745849609375, 0.033843994140625, -0.012542724609375, -0.02862548828125, -0.042999267578125, 0.003925323486328125, -0.00620269775390625, 0.08056640625, -0.06365966796875, 0.029754638671875, -0.005405426025390625, 0.0208282470703125, -0.033660888671875, 0.00933074951171875, -0.017578125, 0.01317596435546875, -0.0010833740234375, 0.01334381103515625, 0.048858642578125, -0.01092529296875, -0.033966064453125, 0.03619384765625, -0.02203369140625, 0.0692138671875, -0.0494384765625, -0.01506805419921875, 0.0019063949584960938, 0.0018262863159179688, -0.010406494140625, -0.0628662109375, 0.003757476806640625, -0.050140380859375, -0.00363922119140625, -0.036834716796875, -0.019744873046875, -0.033233642578125, -0.06060791015625, -0.07745361328125, 0.0118408203125, -0.003475189208984375, -0.037994384765625, -0.058929443359375, 0.0287933349609375, 0.00902557373046875, 0.034576416015625, -0.01104736328125, 0.003948211669921875, -0.03131103515625, 0.006771087646484375, 0.018524169921875, -0.019622802734375, 0.01531219482421875, 0.025726318359375, -0.06658935546875, 0.0369873046875, 0.029510498046875, -0.006282806396484375, -0.011016845703125, 0.01215362548828125, -0.005809783935546875, 0.0258636474609375, -0.0257110595703125, -0.01253509521484375, -0.0112762451171875, -0.010772705078125, 0.0146331787109375, -0.0294952392578125, -0.019683837890625, -0.044647216796875, -0.006793975830078125, 0.0192718505859375, 0.0023040771484375, 0.0251617431640625, -0.053253173828125, -0.0802001953125, -0.035125732421875, -0.03814697265625, 0.031341552734375, -0.088623046875, 0.01194000244140625, 0.022491455078125, -0.014862060546875, 0.004901885986328125, -0.0139923095703125, -0.0232086181640625, -0.00726318359375, 0.01522064208984375, 0.0019502639770507812, -0.02435302734375, -0.016815185546875, 0.036041259765625, -0.0285186767578125, -0.025115966796875, 0.031890869140625, 0.006694793701171875, -0.00887298583984375, 0.0216827392578125, -0.004726409912109375, -0.0033931732177734375, -0.0250701904296875, 0.033477783203125, -0.00879669189453125, 0.038482666015625, -0.045166015625, -0.006374359130859375, -0.0081634521484375, 0.04693603515625, 0.0204925537109375, 0.054534912109375, -0.049591064453125, 0.057647705078125, 0.025421142578125, 0.017913818359375, -0.0238189697265625, -0.07781982421875, -0.040130615234375, -0.0088348388671875, 0.02044677734375, 0.01091766357421875, 0.05999755859375, -0.00656890869140625, 0.00881195068359375, 0.0297698974609375, 0.0272979736328125, 0.0030879974365234375, 0.013763427734375, -0.058380126953125, 0.0034046173095703125, -0.011962890625 ]
042836e259d08f0e38170b4bba1d01063b161a4c
Wordpress Stackexchange Q: Custom Scripts per page or Custom Post Type A client has requested some interesting functionality. THey have about 20 different scripts, most of which are needed by one page only. They would like an area within Wordpress's pages and custom post types to add scripts for THAT PAGE ONLY. So when that page loads, the script loads in the header or footer, NOT inline with the body content. I am looking for an idea or a plugin to make this functionality happen. Any ideas? A: I would do this using a custom metabox. I use WPAlchemy MetaBox class, but if you're just creating one metabox it's probably best to just use the Wordpress metabox API. A Standard text field would suffice, but an upload metabox would be more user friendly. Then retrieve the URL entered in that metabox either in the header or footer. Let me know if you need a more technical answer and I'll edit this with more info.
Q: Custom Scripts per page or Custom Post Type A client has requested some interesting functionality. THey have about 20 different scripts, most of which are needed by one page only. They would like an area within Wordpress's pages and custom post types to add scripts for THAT PAGE ONLY. So when that page loads, the script loads in the header or footer, NOT inline with the body content. I am looking for an idea or a plugin to make this functionality happen. Any ideas? A: I would do this using a custom metabox. I use WPAlchemy MetaBox class, but if you're just creating one metabox it's probably best to just use the Wordpress metabox API. A Standard text field would suffice, but an upload metabox would be more user friendly. Then retrieve the URL entered in that metabox either in the header or footer. Let me know if you need a more technical answer and I'll edit this with more info. A: I'm assuming that you want to load some post-specific scripts (JavaScript) in header. 1. Using Wordpress Custom Fields One way you achieve this by using wordpress custom fields, While posting new post just add a custom field with name (i.e - header_script) and enter the Script source in next text-field. This will store the Script source in wordpress database with name - header_script To load the script located at that source in header files put the following code in header.php or put in footer.php incase you want that script to load in footer. Here's the code that will load src information stored in custom field - header_script Update - The code has been update to work outside Wordpress Loop. <?php global $wp_query; $postid = $wp_query->post->ID; $key="header_script";?><script type="text/javascript" src="<?php echo get_post_meta($postid, $key, true); ?>"></script> UPDATE - 2 Use this code to show multiple scripts. NOTE - I changed the third value to false which allow us to store and retrive multiple values under same custom field name. <?php global $wp_query; $postid = $wp_query->post->ID; $key="header_script"; $h_scripts=get_post_meta($postid, $key, false); foreach($h_scripts as $h_scripts) { ?><script type="text/javascript" src="<?php echo $h_scripts ?>"></script><?php }?> 2. Using conditional statments in wordpress If the scripts are specific per post types or categories means eg - image posts needs jQuery thick-box and video posts needs some script to show videos on page... just an example You can use conditional statements to load only needed scripts for post types. <?php if ( 'image' == get_post_type() ) { ?> <script type="text/javascript" src="scrip-1"></script> <?php } elseif ( 'video' == get_post_type() ) { ?> <script type="text/javascript" src="scrip-2"></script> <?php } else {} ?> Above code will load script 1 only on image post type and so on. But I think the best way is to save the script source as a custom field. A: If you want to load a js file for a specific post type, you can use get_post_type() if (get_post_type() === 'products') { wp_enqueue_script('pd', JS_DIR . '/product-gallery.js', array(), '1.0', true); }
wordpress
{ "language": "en", "length": 492, "provenance": "stackexchange_00019.jsonl.gz:421965", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58878" }
[ 0.049896240234375, -0.0005998611450195312, -0.0015811920166015625, -0.0302734375, 0.00437164306640625, -0.02288818359375, 0.0225067138671875, -0.00879669189453125, -0.02459716796875, -0.0145263671875, -0.039215087890625, 0.015869140625, -0.05364990234375, -0.0270843505859375, 0.0304412841796875, -0.0797119140625, 0.061126708984375, -0.006259918212890625, 0.043304443359375, -0.0203857421875, 0.01110076904296875, 0.00775909423828125, 0.044189453125, 0.08941650390625, 0.00496673583984375, -0.02093505859375, 0.068603515625, -0.004520416259765625, 0.0000833272933959961, -0.0008420944213867188, 0.0187835693359375, -0.00982666015625, -0.0036983489990234375, 0.0283660888671875, 0.0178680419921875, 0.02313232421875, 0.017059326171875, 0.02557373046875, 0.040985107421875, 0.022674560546875, 0.02972412109375, -0.01541900634765625, 0.0043792724609375, 0.004791259765625, -0.00241851806640625, -0.035888671875, 0.03155517578125, -0.050567626953125, 0.0243682861328125, 0.0229949951171875, -0.0170135498046875, 0.00318145751953125, -0.006816864013671875, -0.002044677734375, -0.0140380859375, -0.0222015380859375, 0.00791168212890625, -0.0426025390625, 0.022918701171875, 0.007640838623046875, -0.0013494491577148438, -0.0169830322265625, 0.025115966796875, -0.0012359619140625, -0.01580810546875, -0.0111541748046875, -0.062408447265625, 0.0185699462890625, -0.02362060546875, -0.0298004150390625, 0.01506805419921875, -0.0233612060546875, 0.003662109375, -0.046722412109375, 0.0192413330078125, 0.0202789306640625, -0.015106201171875, 0.0140533447265625, 0.0019683837890625, 0.0158233642578125, -0.00609588623046875, -0.0026378631591796875, -0.0276336669921875, -0.01091766357421875, -0.002422332763671875, 0.007602691650390625, -0.0163726806640625, -0.00844573974609375, -0.039276123046875, -0.0264434814453125, -0.035247802734375, -0.06048583984375, -0.027374267578125, -0.00562286376953125, -0.00632476806640625, -0.0231781005859375, 0.003681182861328125, 0.0015592575073242188, 0.005321502685546875, 0.03558349609375, 0.0394287109375, -0.055145263671875, 0.08184814453125, -0.038909912109375, 0.00814056396484375, 0.041259765625, 0.0002187490463256836, -0.0103759765625, 0.0386962890625, 0.005126953125, 0.000698089599609375, 0.00855255126953125, 0.04412841796875, 0.05242919921875, -0.05157470703125, -0.056121826171875, -0.007602691650390625, -0.019683837890625, -0.039703369140625, -0.0013341903686523438, 0.04473876953125, 0.06329345703125, 0.0297088623046875, -0.06805419921875, 0.0027713775634765625, -0.006725311279296875, -0.02099609375, -0.07421875, 0.006443023681640625, 0.03070068359375, -0.0221099853515625, -0.034881591796875, 0.02789306640625, 0.0582275390625, 0.026580810546875, -0.0244903564453125, 0.039581298828125, -0.01910400390625, 0.0053863525390625, 0.0301513671875, -0.047821044921875, -0.061920166015625, -0.0177764892578125, -0.01000213623046875, -0.0107574462890625, 0.0273284912109375, 0.00925445556640625, 0.01165771484375, 0.0076446533203125, -0.01971435546875, -0.0258636474609375, -0.0010166168212890625, 0.034942626953125, -0.025848388671875, 0.00012862682342529297, -0.047607421875, 0.00638580322265625, -0.0271759033203125, 0.000274658203125, -0.0156402587890625, 0.030975341796875, 0.0009326934814453125, -0.01323699951171875, -0.022552490234375, -0.028350830078125, -0.0292205810546875, -0.00958251953125, -0.004825592041015625, 0.015960693359375, 0.015838623046875, -0.0147705078125, -0.0176544189453125, -0.0268096923828125, 0.0001512765884399414, -0.005344390869140625, 0.0213775634765625, 0.010223388671875, 0.0721435546875, 0.0103912353515625, -0.0007724761962890625, -0.0013303756713867188, -0.045867919921875, 0.08880615234375, -0.04010009765625, -0.06622314453125, 0.04010009765625, 0.0157623291015625, 0.069580078125, -0.00667572021484375, 0.0152130126953125, 0.05352783203125, 0.03155517578125, -0.044036865234375, -0.012176513671875, 0.0089569091796875, 0.01457977294921875, -0.0080413818359375, -0.004291534423828125, 0.00099945068359375, 0.0176544189453125, -0.05938720703125, -0.00655364990234375, 0.018096923828125, -0.001789093017578125, 0.0423583984375, -0.00730133056640625, 0.0007071495056152344, 0.0316162109375, -0.0018606185913085938, 0.006923675537109375, 0.006195068359375, -0.014434814453125, 0.0022411346435546875, -0.04376220703125, -0.020782470703125, 0.022735595703125, -0.0013275146484375, 0.0743408203125, 0.004730224609375, 0.0239715576171875, 0.0023860931396484375, -0.0556640625, 0.013641357421875, 0.0003972053527832031, 0.051116943359375, 0.01160430908203125, -0.0288543701171875, -0.009613037109375, 0.0343017578125, 0.0207366943359375, -0.03662109375, 0.047088623046875, 0.0222015380859375, 0.031036376953125, -0.023101806640625, -0.0159149169921875, -0.01959228515625, -0.05242919921875, -0.00667572021484375, 0.056060791015625, 0.0239410400390625, 0.016082763671875, 0.0263671875, 0.066162109375, -0.0106353759765625, -0.0675048828125, 0.0036640167236328125, 0.0230712890625, -0.0015058517456054688, 0.032806396484375, -0.044921875, 0.02459716796875, 0.0276336669921875, -0.021728515625, -0.0010309219360351562, 0.061492919921875, -0.0019931793212890625, -0.0084991455078125, -0.0006704330444335938, -0.01013946533203125, 0.026275634765625, 0.0419921875, -0.0268707275390625, 0.020782470703125, 0.049713134765625, 0.003261566162109375, 0.06976318359375, 0.044158935546875, -0.0182647705078125, -0.005401611328125, -0.006366729736328125, 0.0133514404296875, -0.0179595947265625, -0.02618408203125, 0.054931640625, -0.001285552978515625, -0.0229949951171875, 0.00232696533203125, 0.023773193359375, -0.00254058837890625, 0.007549285888671875, 0.001934051513671875, -0.0528564453125, -0.006580352783203125, 0.0242767333984375, -0.05743408203125, -0.017791748046875, 0.03436279296875, 0.0303955078125, 0.0108642578125, 0.03619384765625, 0.0067138671875, -0.01456451416015625, 0.0282440185546875, 0.041107177734375, -0.03466796875, 0.07208251953125, -0.07568359375, 0.055206298828125, -0.035064697265625, 0.08245849609375, 0.076171875, -0.0251312255859375, 0.0455322265625, -0.008758544921875, 0.039520263671875, -0.021453857421875, 0.0350341796875, 0.0015382766723632812, -0.0560302734375, -0.0011577606201171875, -0.0036029815673828125, 0.0185394287109375, 0.064453125, -0.0230560302734375, -0.0428466796875, 0.00374603271484375, 0.026275634765625, -0.06829833984375, -0.0738525390625, 0.085205078125, -0.07562255859375, 0.0020046234130859375, -0.045074462890625, -0.043792724609375, -0.037933349609375, -0.01326751708984375, -0.0117034912109375, -0.009185791015625, -0.0230712890625, -0.0245819091796875, -0.042633056640625, -0.06634521484375, -0.012481689453125, 0.0155792236328125, 0.001773834228515625, -0.00850677490234375, 0.07733154296875, -0.0005726814270019531, -0.07965087890625, -0.01617431640625, 0.0193023681640625, -0.005825042724609375, 0.00652313232421875, 0.0269317626953125, -0.0361328125, 0.0207366943359375, -0.00960540771484375, -0.035491943359375, 0.034088134765625, -0.0122222900390625, -0.006244659423828125, -0.028961181640625, -0.00457000732421875, -0.01548004150390625, 0.035125732421875, 0.025787353515625, -0.0111541748046875, 0.006229400634765625, -0.056915283203125, -0.006679534912109375, 0.0232391357421875, -0.005706787109375, -0.016571044921875, -0.0131072998046875, -0.023284912109375, -0.005283355712890625, 0.0302886962890625, 0.0648193359375, 0.037628173828125, 0.01276397705078125, -0.0016193389892578125, 0.0027713775634765625, 0.0235137939453125, 0.060760498046875, -0.03582763671875, 0.028778076171875, -0.01526641845703125, 0.0537109375, 0.0160980224609375, 0.003932952880859375, -0.02716064453125, 0.0230865478515625, -0.054107666015625, -0.042938232421875, 0.037109375, -0.0024662017822265625, 0.0272064208984375, -0.034515380859375, -0.0284423828125, -0.0006394386291503906, 0.095947265625, -0.04766845703125, 0.020050048828125, -0.0078887939453125, 0.005527496337890625, -0.05450439453125, -0.05450439453125, -0.08404541015625, 0.01202392578125, -0.07049560546875, 0.0031833648681640625, -0.0123291015625, -0.025543212890625, -0.0139312744140625, 0.017578125, -0.04339599609375, -0.0389404296875, 0.04180908203125, -0.08343505859375, -0.00917816162109375, 0.022247314453125, 0.0040740966796875, -0.03515625, -0.01474761962890625, -0.043548583984375, -0.051300048828125, -0.0047760009765625, -0.027679443359375, 0.0364990234375, 0.020660400390625, -0.049591064453125, 0.0074005126953125, 0.03314208984375, 0.0164794921875, 0.04302978515625, -0.002254486083984375, -0.0123291015625, 0.03253173828125, -0.0212860107421875, 0.006072998046875, -0.0210723876953125, -0.015655517578125, -0.01522064208984375, 0.00592803955078125, 0.009521484375, -0.0143280029296875, -0.00821685791015625, 0.0016574859619140625, -0.0066986083984375, 0.01296234130859375, -0.0236358642578125, -0.0367431640625, 0.01366424560546875, -0.010833740234375, -0.023345947265625, -0.0237274169921875, -0.009857177734375, -0.01192474365234375, -0.00261688232421875, -0.0124359130859375, 0.0272216796875, 0.023590087890625, 0.023162841796875, -0.004608154296875, -0.038177490234375, 0.01546478271484375, 0.02020263671875, 0.00159454345703125, 0.0340576171875, 0.003818511962890625, -0.0178375244140625, 0.049713134765625, -0.00597381591796875, 0.013702392578125, 0.002368927001953125, 0.05596923828125, 0.009796142578125, -0.00786590576171875, 0.02398681640625, 0.0173492431640625, -0.03143310546875, -0.001636505126953125, -0.023193359375, 0.0038013458251953125, -0.025146484375, 0.022216796875, -0.00992584228515625, 0.018157958984375, -0.03546142578125, -0.0185394287109375, 0.0046539306640625, -0.0051727294921875, 0.03765869140625, 0.01293182373046875, 0.00553131103515625, 0.0233306884765625, 0.0200042724609375, 0.0193023681640625, 0.0203399658203125, 0.00046515464782714844, 0.004276275634765625, 0.0303497314453125, 0.0176239013671875, 0.0146026611328125, -0.007232666015625, 0.0038166046142578125, 0.0301513671875, -0.0004684925079345703, -0.03656005859375, -0.0222320556640625, -0.01050567626953125, 0.0303802490234375, 0.006099700927734375, 0.007904052734375, 0.0193023681640625, 0.0143585205078125, 0.01102447509765625, -0.0006098747253417969, -0.007537841796875, 0.0110321044921875, -0.035186767578125, 0.00293731689453125, 0.02716064453125, -0.016082763671875, -0.041961669921875, 0.05511474609375, -0.02325439453125, 0.011199951171875, 0.01039886474609375, 0.049102783203125, 0.0276031494140625, 0.0305328369140625, 0.02374267578125, -0.0090484619140625, -0.01163482666015625, -0.00019073486328125, -0.046539306640625, -0.0217132568359375, 0.0340576171875, -0.006069183349609375, 0.042236328125, -0.01428985595703125, -0.032379150390625, 0.0271453857421875, -0.06744384765625, -0.0236358642578125, 0.01285552978515625, 0.006137847900390625, -0.015380859375, -0.03521728515625, -0.038787841796875, 0.0064239501953125, 0.03131103515625, -0.0082855224609375, 0.0193634033203125, -0.0099639892578125, 0.01447296142578125, 0.0029582977294921875, -0.029449462890625, 0.006839752197265625, 0.03277587890625, -0.01233673095703125, 0.0100555419921875, -0.006801605224609375, -0.048187255859375, -0.03729248046875, 0.00644683837890625, -0.0207977294921875, 0.01206207275390625, -0.003940582275390625, 0.020721435546875, -0.0161895751953125, -0.02099609375, 0.0069427490234375, 0.0296783447265625, 0.0015716552734375, -0.039276123046875, -0.0255889892578125, -0.0240631103515625, -0.05511474609375, -0.0133514404296875, -0.05291748046875, -0.099609375, -0.01477813720703125, -0.004230499267578125, 0.00568389892578125, 0.044464111328125, -0.03729248046875, -0.04827880859375, 0.0036449432373046875, -0.005893707275390625, 0.0037670135498046875, 0.0528564453125, -0.054840087890625, 0.09197998046875, 0.02496337890625, 0.039703369140625, -0.00103759765625, 0.063720703125, 0.0501708984375, -0.00951385498046875, -0.00014257431030273438, -0.0830078125, -0.023040771484375, -0.01003265380859375, -0.0112762451171875, 0.07733154296875, 0.0364990234375, 0.008819580078125, -0.0113677978515625, -0.007061004638671875, 0.00445556640625, -0.01378631591796875, 0.0168304443359375, 0.017486572265625, -0.01166534423828125, 0.0243377685546875, 0.00382232666015625, 0.00308990478515625, 0.01226806640625, -0.021575927734375, 0.023193359375, 0.012664794921875, 0.026885986328125, -0.0067596435546875, -0.0465087890625, 0.041839599609375, 0.0462646484375, 0.0311126708984375, 0.05987548828125, -0.02166748046875, 0.0287628173828125, 0.05767822265625, 0.006435394287109375, 0.0086822509765625, -0.0176849365234375, 0.03240966796875, -0.00928497314453125, -0.0253448486328125, 0.0085601806640625, -0.02301025390625, 0.0002765655517578125, 0.041107177734375, 0.06219482421875, -0.0894775390625, 0.01983642578125, 0.01134490966796875, 0.009307861328125, 0.007160186767578125, -0.0208740234375, -0.00263214111328125, -0.0170440673828125, 0.0377197265625, 0.0260009765625, -0.02093505859375, 0.0210113525390625, 0.008544921875, -0.0310211181640625, -0.0262908935546875, -0.0062713623046875, 0.006931304931640625, 0.02740478515625, 0.0343017578125, -0.013092041015625, 0.0278167724609375, -0.0316162109375, -0.0238189697265625, 0.03326416015625, -0.027984619140625, -0.046875, 0.03460693359375, -0.028106689453125, 0.0204620361328125, -0.006778717041015625, 0.0241241455078125, 0.024078369140625, 0.054107666015625, -0.01071929931640625, 0.00003606081008911133, 0.026123046875, 0.00844573974609375, -0.05694580078125, -0.036712646484375, -0.00010561943054199219, 0.031585693359375, -0.03143310546875, 0.027008056640625, -0.0020580291748046875, -0.03729248046875, -0.0168609619140625, -0.033966064453125, 0.058868408203125, -0.019439697265625, -0.02593994140625, 0.025604248046875, -0.0029964447021484375, -0.0185394287109375, -0.0131072998046875, 0.01953125, -0.06329345703125, -0.0308685302734375, 0.002864837646484375, -0.052001953125, -0.0254974365234375, -0.022705078125, -0.0465087890625, 0.140869140625, 0.00276947021484375, 0.003871917724609375, -0.0037994384765625, 0.064453125, -0.0204620361328125, 0.059051513671875, -0.030609130859375, 0.045684814453125, 0.0245361328125, 0.047515869140625, -0.041290283203125, -0.0258941650390625, 0.002471923828125, 0.04925537109375, 0.0205078125, 0.0021381378173828125, -0.0003962516784667969, 0.005802154541015625, 0.041748046875, 0.076416015625, 0.02471923828125, -0.0294952392578125, -0.0012903213500976562, 0.042083740234375, 0.039794921875, -0.0123138427734375, 0.044158935546875, -0.013946533203125, -0.043670654296875, 0.0032558441162109375, 0.0210723876953125, 0.0225372314453125, 0.0021514892578125, -0.0126190185546875, -0.01898193359375, 0.0081024169921875, 0.004802703857421875, 0.042724609375, -0.0037708282470703125, 0.026458740234375, 0.012664794921875, -0.003574371337890625, -0.061920166015625, 0.0045166015625, 0.0171661376953125, -0.002033233642578125, 0.0161285400390625, 0.035064697265625, 0.0113067626953125, 0.0167999267578125, -0.002155303955078125, 0.0165252685546875, 0.002445220947265625, 0.0022220611572265625, 0.042236328125, 0.0038433074951171875, 0.002239227294921875, -0.061920166015625, 0.02606201171875, 0.03955078125, 0.0501708984375, -0.0633544921875, -0.0343017578125, 0.005573272705078125, -0.008575439453125, 0.01715087890625, 0.0055084228515625, 0.0396728515625, 0.0138702392578125, 0.0067291259765625, 0.01538848876953125, 0.011199951171875, -0.0169219970703125, -0.004070281982421875, 0.0013942718505859375, 0.0426025390625, -0.01934814453125, 0.02410888671875, -0.028076171875, -0.0218353271484375, -0.0055694580078125, 0.03704833984375, 0.03240966796875, 0.013671875, -0.0294036865234375, -0.01242828369140625, -0.004840850830078125, 0.0145111083984375, 0.0185699462890625, 0.00559234619140625, -0.0343017578125, -0.025115966796875, 0.01910400390625, 0.039337158203125, 0.025665283203125, 0.0184783935546875, 0.0222015380859375, 0.0193328857421875, 0.01108551025390625, -0.003124237060546875, 0.01506805419921875, -0.01407623291015625, 0.01483154296875, -0.01209259033203125, -0.01910400390625, -0.0013904571533203125, -0.0272369384765625, -0.0218658447265625, 0.041778564453125, 0.01047515869140625, 0.0127105712890625, 0.035858154296875, 0.0096282958984375, -0.0179901123046875, 0.03607177734375, 0.0193634033203125, 0.0821533203125, 0.037689208984375, -0.018096923828125, 0.0116424560546875, -0.056304931640625, -0.06561279296875, 0.037994384765625, 0.0555419921875, -0.017120361328125, 0.00496673583984375, 0.033447265625, -0.0167083740234375, 0.00701904296875, -0.01285552978515625, 0.032806396484375, 0.0025463104248046875, -0.00013184547424316406, 0.020355224609375, -0.057891845703125, -0.031341552734375, 0.007476806640625, 0.0068817138671875, 0.005016326904296875, 0.061920166015625, 0.00391387939453125, -0.009918212890625, 0.0261383056640625, 0.0335693359375, -0.004924774169921875, 0.0132293701171875, 0.0136871337890625, 0.029052734375, 0.037811279296875, -0.027862548828125, -0.04827880859375, 0.030364990234375, 0.025390625, -0.0044708251953125, 0.015899658203125, 0.0049591064453125, 0.01788330078125, -0.0125579833984375, -0.01277923583984375, -0.03411865234375, -0.0299072265625, -0.022369384765625, -0.015899658203125, 0.015594482421875, 0.01739501953125, 0.0169219970703125, 0.021331787109375, 0.03387451171875, -0.004695892333984375, 0.0016527175903320312, -0.005290985107421875, 0.0182342529296875, 0.0262908935546875, 0.0278167724609375, -0.0069732666015625, 0.014556884765625, -0.00887298583984375, 0.0020389556884765625, 0.018310546875, 0.03546142578125, 0.0200347900390625, -0.007251739501953125, -0.0232086181640625, 0.01488494873046875, 0.0168304443359375, -0.01146697998046875, 0.0101165771484375, 0.0005011558532714844, -0.02374267578125, -0.009613037109375, -0.025421142578125, -0.0150909423828125, 0.004535675048828125, -0.003780364990234375, 0.023101806640625, 0.029022216796875, -0.01177978515625, -0.0262908935546875, -0.01090240478515625, 0.0197601318359375, -0.0018529891967773438, -0.042388916015625, 0.0195159912109375, -0.0341796875, 0.0374755859375, -0.034942626953125, 0.01209259033203125, -0.0005369186401367188, 0.055755615234375, -0.0213470458984375, -0.024139404296875, -0.00934600830078125, 0.0361328125, -0.0212860107421875, 0.029144287109375, 0.04632568359375, -0.0298309326171875, -0.0292510986328125, 0.0626220703125, 0.011505126953125, 0.12005615234375, -0.0190277099609375, -0.0157928466796875, 0.0027217864990234375, 0.033355712890625, -0.01129913330078125, -0.063232421875, -0.0075836181640625, 0.01338958740234375, 0.0277252197265625, -0.00450897216796875, 0.00823211669921875, 0.012847900390625, -0.02301025390625, -0.04669189453125, 0.07830810546875, -0.0180511474609375, -0.02972412109375, -0.06182861328125, 0.007236480712890625, 0.018646240234375, -0.007312774658203125, -0.018585205078125, -0.0230865478515625, -0.0445556640625, 0.005489349365234375, 0.01346588134765625, -0.0247039794921875, 0.0606689453125, -0.016845703125, -0.0584716796875, -0.002414703369140625, 0.01020050048828125, 0.0010843276977539062, -0.0045928955078125, 0.01483917236328125, 0.01325225830078125, 0.058929443359375, -0.0168304443359375, 0.0166778564453125, -0.0185394287109375, -0.018310546875, -0.004150390625, -0.01983642578125, -0.035064697265625, -0.009613037109375, 0.07318115234375, 0.052825927734375, 0.0223541259765625, -0.03192138671875, 0.028076171875, -0.0124359130859375, -0.036163330078125, -0.0252227783203125, -0.00339508056640625, -0.020416259765625, -0.0013780593872070312, -0.0182037353515625, -0.007297515869140625, 0.027374267578125, -0.00661468505859375, -0.0007910728454589844, 0.00241851806640625, 0.052490234375, 0.0093536376953125, -0.041778564453125, -0.003475189208984375, 0.0731201171875, -0.033935546875, 0.0361328125, -0.0024929046630859375, 0.0078887939453125, 0.06494140625, 0.0131072998046875, -0.01922607421875, 0.0235443115234375, -0.06719970703125, 0.0240478515625, -0.0322265625, 0.034393310546875, -0.08575439453125, 0.014678955078125, -0.007213592529296875, 0.035675048828125, 0.004749298095703125, 0.042266845703125, -0.044036865234375, 0.0258941650390625, 0.0006880760192871094, 0.0259246826171875, -0.0477294921875, -0.03436279296875, -0.038116455078125, 0.014984130859375, 0.0127105712890625, 0.0181121826171875, 0.07928466796875, -0.01396942138671875, -0.00299072265625, 0.0001741647720336914, -0.035247802734375, -0.0372314453125, -0.00213623046875, 0.0017004013061523438, -0.01059722900390625, 0.00849151611328125 ]
5b1c5aad689ca915d65b6d73ec5c900f1532a120
Wordpress Stackexchange Q: Serving HTTP and HTTPS from one installation I've got a WordPress install that is serving up content via both HTTP and HTTPS. The site URL is configured as "http://www.example.com". This works for most situations - if a person requests a page at "https://www.example.com/page" the page is served up via HTTPS. However, the challenge that I'm facing is that there are a number of WordPress template functions which pull the site URL (like get_bloginfo('stylesheet') ) and when they do that, they include "http://" in the returned results. Similarly, images that are inserted in the WYSIWYG editor have the "http://www.example.com..." path hard coded. What I'd really like to do is find a way to define the base site URL as "//www.example.com", which would hopefully make everything work correctly. However, the WordPress admin fields won't support this. Does anyone have any ideas how to do this? A: An easy solution is to use .htaccess rules. #Redirect HTTP to HTTPS RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Q: Serving HTTP and HTTPS from one installation I've got a WordPress install that is serving up content via both HTTP and HTTPS. The site URL is configured as "http://www.example.com". This works for most situations - if a person requests a page at "https://www.example.com/page" the page is served up via HTTPS. However, the challenge that I'm facing is that there are a number of WordPress template functions which pull the site URL (like get_bloginfo('stylesheet') ) and when they do that, they include "http://" in the returned results. Similarly, images that are inserted in the WYSIWYG editor have the "http://www.example.com..." path hard coded. What I'd really like to do is find a way to define the base site URL as "//www.example.com", which would hopefully make everything work correctly. However, the WordPress admin fields won't support this. Does anyone have any ideas how to do this? A: An easy solution is to use .htaccess rules. #Redirect HTTP to HTTPS RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] A: If you don't want to force HTTPS (or redirect all non-HTTPS requests) the URLs in posts can be handled like this: function content_ssl($content) { if (isset($_SERVER["HTTPS"])) $content = ereg_replace("http://" . $_SERVER["SERVER_NAME"], "https://" . $_SERVER["SERVER_NAME"], $content); return $content; } add_filter('the_content', 'content_ssl'); WordPress itself handles protocol matching. Some plugins however do not.
wordpress
{ "language": "en", "length": 215, "provenance": "stackexchange_00019.jsonl.gz:421977", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58911" }
[ 0.05889892578125, -0.005889892578125, 0.0083465576171875, -0.023162841796875, -0.004398345947265625, -0.016632080078125, 0.035064697265625, -0.0267333984375, -0.00160980224609375, -0.0163116455078125, 0.004825592041015625, -0.0213165283203125, -0.045684814453125, -0.0638427734375, 0.028839111328125, -0.0322265625, 0.0313720703125, -0.0139923095703125, 0.01152801513671875, -0.006137847900390625, 0.01210784912109375, 0.01152801513671875, 0.01358795166015625, 0.01526641845703125, 0.0244903564453125, 0.0007910728454589844, 0.06231689453125, -0.019744873046875, 0.01212310791015625, -0.020751953125, 0.01104736328125, -0.0219573974609375, 0.0251312255859375, 0.0232391357421875, -0.05828857421875, -0.058502197265625, -0.0174102783203125, 0.006290435791015625, -0.044677734375, 0.04449462890625, 0.02374267578125, -0.00821685791015625, 0.0780029296875, 0.032073974609375, 0.02398681640625, -0.0467529296875, 0.04339599609375, -0.0712890625, 0.0013380050659179688, 0.0261993408203125, 0.00818634033203125, 0.02777099609375, 0.0243377685546875, -0.00879669189453125, -0.0210113525390625, -0.03656005859375, 0.025909423828125, 0.023590087890625, 0.0251922607421875, -0.032989501953125, -0.0631103515625, 0.02813720703125, 0.0109100341796875, -0.00007456541061401367, -0.0247955322265625, -0.0081787109375, 0.01421356201171875, 0.00677490234375, -0.08514404296875, -0.0419921875, 0.05072021484375, -0.0148773193359375, -0.0165863037109375, -0.0347900390625, 0.01201629638671875, 0.041717529296875, -0.0061187744140625, 0.0133209228515625, 0.001934051513671875, 0.00582122802734375, 0.016357421875, -0.0018453598022460938, 0.0037841796875, -0.056854248046875, 0.04547119140625, -0.00890350341796875, 0.005924224853515625, -0.019287109375, -0.016387939453125, -0.0049285888671875, -0.0292510986328125, 0.0016756057739257812, 0.00015223026275634766, -0.006732940673828125, -0.03167724609375, -0.006832122802734375, -0.013916015625, 0.01165008544921875, 0.01678466796875, 0.01116943359375, 0.01219940185546875, -0.04510498046875, 0.0301513671875, -0.0299835205078125, -0.002475738525390625, 0.046630859375, 0.003875732421875, 0.0418701171875, 0.06121826171875, 0.0211029052734375, 0.007328033447265625, 0.0279998779296875, -0.034576416015625, -0.005992889404296875, -0.0307769775390625, 0.0276336669921875, -0.041046142578125, -0.04345703125, -0.034027099609375, -0.0303192138671875, 0.006160736083984375, 0.045989990234375, 0.001102447509765625, -0.0216827392578125, -0.00832366943359375, -0.0003597736358642578, 0.0018110275268554688, -0.0714111328125, -0.01491546630859375, 0.00579071044921875, -0.031707763671875, 0.0182952880859375, 0.06719970703125, 0.049652099609375, 0.0235595703125, -0.00505828857421875, 0.02947998046875, -0.01309967041015625, -0.018157958984375, 0.034271240234375, -0.0034961700439453125, -0.03875732421875, -0.0139007568359375, -0.011383056640625, 0.018524169921875, -0.0200042724609375, 0.01084136962890625, 0.060577392578125, 0.0237884521484375, -0.03204345703125, 0.0211639404296875, 0.033447265625, 0.031707763671875, -0.0034618377685546875, 0.01617431640625, -0.04437255859375, 0.0148773193359375, -0.03167724609375, 0.0169219970703125, -0.029083251953125, -0.0292510986328125, -0.0094757080078125, 0.029296875, -0.016571044921875, -0.0274658203125, 0.0239410400390625, -0.01788330078125, -0.018798828125, 0.0267486572265625, -0.0204925537109375, 0.005741119384765625, -0.04156494140625, -0.019439697265625, 0.02008056640625, 0.0169219970703125, 0.04022216796875, -0.0189361572265625, 0.027923583984375, 0.01326751708984375, 0.07763671875, 0.03570556640625, -0.035308837890625, 0.045318603515625, -0.00044798851013183594, -0.03741455078125, 0.038360595703125, -0.02410888671875, 0.0265960693359375, 0.0219573974609375, 0.0022487640380859375, -0.0049285888671875, 0.01137542724609375, -0.02490234375, 0.0260467529296875, -0.0013456344604492188, -0.04461669921875, -0.061187744140625, -0.0214080810546875, -0.02520751953125, 0.005138397216796875, -0.01007080078125, 0.0065460205078125, 0.0039520263671875, 0.044158935546875, 0.060577392578125, -0.0064697265625, 0.0230712890625, -0.01282501220703125, -0.01629638671875, 0.025909423828125, 0.0123443603515625, 0.007411956787109375, -0.00511932373046875, -0.04632568359375, -0.0015850067138671875, 0.00958251953125, 0.005084991455078125, 0.024322509765625, 0.01076507568359375, 0.051177978515625, 0.0183868408203125, -0.026336669921875, -0.01030731201171875, -0.0192413330078125, 0.0307159423828125, -0.00473785400390625, -0.007144927978515625, -0.004405975341796875, 0.04095458984375, 0.00710296630859375, -0.0235748291015625, 0.0009031295776367188, 0.013702392578125, 0.031768798828125, -0.033050537109375, 0.007617950439453125, -0.002468109130859375, -0.003841400146484375, -0.0031108856201171875, 0.031890869140625, 0.0290069580078125, 0.0236968994140625, -0.0193634033203125, -0.038330078125, 0.040771484375, -0.0645751953125, -0.007389068603515625, -0.019744873046875, 0.018402099609375, 0.0173492431640625, 0.02777099609375, -0.024169921875, 0.016143798828125, -0.05438232421875, 0.00884246826171875, 0.028594970703125, 0.005413055419921875, -0.01033782958984375, 0.00330352783203125, 0.0024700164794921875, 0.01316070556640625, 0.03564453125, -0.0271759033203125, 0.020843505859375, -0.04644775390625, 0.007354736328125, -0.00933837890625, 0.0118408203125, -0.007358551025390625, -0.024993896484375, 0.0140533447265625, -0.00774383544921875, -0.016754150390625, 0.04937744140625, 0.059295654296875, -0.050567626953125, -0.01274871826171875, -0.00612640380859375, -0.023345947265625, 0.019805908203125, 0.007171630859375, 0.00807952880859375, -0.0233917236328125, 0.00732421875, -0.018463134765625, -0.041961669921875, 0.02850341796875, 0.054290771484375, 0.038787841796875, 0.0179290771484375, 0.0394287109375, 0.00374603271484375, -0.003223419189453125, 0.037200927734375, 0.00902557373046875, -0.027740478515625, 0.0413818359375, -0.021881103515625, 0.02105712890625, -0.0220489501953125, 0.0897216796875, 0.043792724609375, -0.021026611328125, 0.01036834716796875, -0.01384735107421875, 0.0017347335815429688, -0.0043182373046875, -0.0184478759765625, -0.044708251953125, 0.004291534423828125, -0.069580078125, -0.022613525390625, 0.0204620361328125, -0.0225067138671875, 0.036041259765625, -0.01444244384765625, 0.0101470947265625, 0.00206756591796875, -0.08123779296875, -0.08447265625, -0.0726318359375, -0.0631103515625, 0.0205230712890625, 0.01496124267578125, -0.01096343994140625, 0.007335662841796875, 0.039398193359375, 0.0302734375, 0.0158538818359375, 0.0006337165832519531, -0.07049560546875, -0.037994384765625, -0.1075439453125, -0.01739501953125, -0.0096588134765625, 0.0362548828125, 0.0190277099609375, -0.0213775634765625, -0.01349639892578125, -0.05224609375, 0.015380859375, 0.0246429443359375, 0.004123687744140625, 0.00928497314453125, -0.027496337890625, -0.03924560546875, -0.0139923095703125, -0.01526641845703125, 0.048858642578125, -0.00803375244140625, 0.01934814453125, 0.02313232421875, -0.0230255126953125, -0.0711669921875, -0.005855560302734375, -0.04876708984375, -0.0038242340087890625, -0.033905029296875, -0.006664276123046875, -0.0556640625, 0.005146026611328125, -0.01739501953125, -0.0182952880859375, -0.0018758773803710938, 0.027923583984375, -0.021728515625, -0.019287109375, -0.00930023193359375, 0.003108978271484375, 0.0074615478515625, 0.04296875, -0.0217437744140625, -0.00275421142578125, -0.0223541259765625, -0.0284881591796875, -0.037078857421875, 0.0276947021484375, -0.00928497314453125, -0.0253448486328125, -0.01049041748046875, -0.006427764892578125, -0.037353515625, 0.009124755859375, -0.0787353515625, -0.07421875, 0.05767822265625, 0.00991058349609375, 0.0280914306640625, -0.04461669921875, -0.036529541015625, -0.025543212890625, 0.11798095703125, -0.0285491943359375, -0.00640869140625, 0.0172271728515625, 0.030670166015625, -0.05072021484375, -0.041412353515625, -0.056243896484375, -0.0114898681640625, -0.085693359375, -0.01012420654296875, 0.00464630126953125, -0.044403076171875, 0.02252197265625, -0.06646728515625, -0.021514892578125, -0.0609130859375, 0.01184844970703125, 0.002513885498046875, 0.027099609375, 0.00244140625, 0.01284027099609375, -0.00736236572265625, 0.0084991455078125, -0.0205230712890625, -0.04736328125, -0.029693603515625, 0.03375244140625, 0.050750732421875, -0.009765625, 0.0010623931884765625, 0.0014743804931640625, 0.06689453125, 0.01538848876953125, 0.01593017578125, 0.017608642578125, -0.006378173828125, 0.040863037109375, 0.02606201171875, 0.03143310546875, -0.0015783309936523438, -0.0219573974609375, -0.034210205078125, -0.0252227783203125, -0.003559112548828125, -0.0011453628540039062, 0.005992889404296875, 0.005218505859375, -0.0233306884765625, -0.05755615234375, -0.0155181884765625, -0.025054931640625, 0.0156402587890625, -0.00505828857421875, -0.031951904296875, -0.0036525726318359375, -0.07568359375, 0.046722412109375, -0.00551605224609375, -0.0151824951171875, 0.0133819580078125, 0.035430908203125, 0.005863189697265625, -0.0214385986328125, -0.0322265625, 0.01348876953125, 0.038299560546875, -0.0035648345947265625, 0.038299560546875, 0.034149169921875, 0.00988006591796875, 0.00849151611328125, 0.00286102294921875, 0.0203399658203125, 0.03125, 0.004909515380859375, 0.005634307861328125, -0.007480621337890625, 0.003795623779296875, 0.016876220703125, -0.051605224609375, 0.02801513671875, 0.0167236328125, -0.017730712890625, 0.001384735107421875, -0.0109710693359375, 0.01511383056640625, -0.005649566650390625, 0.002735137939453125, -0.04437255859375, 0.016632080078125, -0.06903076171875, 0.056640625, 0.0008721351623535156, 0.002330780029296875, 0.04547119140625, 0.0635986328125, -0.01239776611328125, -0.035736083984375, -0.00637054443359375, -0.01027679443359375, 0.054046630859375, -0.07281494140625, -0.0193328857421875, -0.0279541015625, -0.026123046875, 0.10113525390625, 0.01450347900390625, -0.07720947265625, 0.050018310546875, -0.00982666015625, -0.01041412353515625, 0.032318115234375, -0.006374359130859375, 0.017608642578125, 0.01331329345703125, -0.023468017578125, 0.010498046875, -0.0136566162109375, -0.036651611328125, -0.04449462890625, -0.0032215118408203125, -0.007160186767578125, -0.0007410049438476562, 0.029510498046875, 0.040130615234375, 0.013153076171875, 0.0254364013671875, -0.020721435546875, 0.0135650634765625, 0.032257080078125, 0.012115478515625, 0.0135498046875, 0.01207733154296875, 0.005428314208984375, -0.0200347900390625, 0.0215606689453125, -0.037322998046875, -0.0323486328125, 0.0064239501953125, 0.027496337890625, 0.0135040283203125, 0.0026092529296875, 0.007236480712890625, 0.0249786376953125, -0.00971221923828125, 0.0289154052734375, -0.00823211669921875, -0.032989501953125, -0.021331787109375, 0.024261474609375, 0.05902099609375, -0.00397491455078125, -0.030609130859375, 0.02264404296875, 0.00707244873046875, 0.0501708984375, 0.014862060546875, -0.003208160400390625, 0.022186279296875, 0.0123291015625, 0.040191650390625, -0.01715087890625, -0.012542724609375, -0.0022430419921875, 0.018585205078125, -0.048736572265625, -0.0116729736328125, 0.0660400390625, -0.03607177734375, 0.007350921630859375, -0.0030422210693359375, 0.01169586181640625, -0.0017843246459960938, 0.0182952880859375, 0.02740478515625, 0.012420654296875, -0.045013427734375, 0.0023632049560546875, -0.03778076171875, 0.003177642822265625, 0.04901123046875, -0.0196380615234375, -0.0279388427734375, -0.03741455078125, 0.048126220703125, 0.027435302734375, 0.01351165771484375, -0.023040771484375, -0.029205322265625, -0.0174102783203125, 0.0290985107421875, 0.0106658935546875, -0.004302978515625, 0.042266845703125, -0.012664794921875, 0.04290771484375, 0.00844573974609375, 0.0108795166015625, -0.0289764404296875, -0.0218353271484375, 0.01172637939453125, -0.0841064453125, -0.0283050537109375, -0.030670166015625, -0.0032291412353515625, 0.04168701171875, 0.01580810546875, 0.002094268798828125, -0.03094482421875, 0.00543975830078125, 0.004283905029296875, -0.0209197998046875, 0.004543304443359375, 0.020599365234375, -0.01517486572265625, -0.00014591217041015625, 0.0189208984375, 0.0225677490234375, -0.0300750732421875, -0.02862548828125, 0.01459503173828125, 0.0129241943359375, 0.00589752197265625, 0.01316070556640625, 0.0024738311767578125, -0.015350341796875, 0.0736083984375, 0.028472900390625, 0.0750732421875, 0.021240234375, 0.034942626953125, 0.05029296875, -0.00975799560546875, -0.05328369140625, -0.0474853515625, -0.027099609375, -0.006183624267578125, 0.0184173583984375, 0.014007568359375, 0.0107421875, 0.022735595703125, 0.0860595703125, 0.094970703125, -0.0889892578125, 0.00640106201171875, 0.040435791015625, -0.049774169921875, -0.0279541015625, 0.0030117034912109375, -0.032196044921875, -0.0384521484375, -0.0164794921875, 0.024871826171875, -0.0224609375, -0.0084991455078125, 0.047698974609375, -0.0231475830078125, -0.018768310546875, 0.027557373046875, 0.0010166168212890625, -0.03668212890625, -0.0212249755859375, 0.0215606689453125, -0.05389404296875, 0.005340576171875, 0.0186920166015625, -0.0039520263671875, -0.0211639404296875, -0.0455322265625, -0.0166778564453125, -0.01317596435546875, -0.01274871826171875, 0.00414276123046875, 0.013519287109375, 0.01441192626953125, 0.0623779296875, -0.0013294219970703125, -0.0028228759765625, 0.03997802734375, -0.021026611328125, 0.0384521484375, -0.0171356201171875, -0.0133209228515625, -0.02593994140625, -0.01439666748046875, -0.00506591796875, -0.017364501953125, -0.016143798828125, -0.01035308837890625, 0.00043582916259765625, 0.09912109375, -0.0252838134765625, -0.0204010009765625, 0.029083251953125, 0.020050048828125, -0.028106689453125, -0.019073486328125, 0.057830810546875, -0.033477783203125, 0.0026721954345703125, 0.0031871795654296875, -0.00010567903518676758, -0.0010137557983398438, -0.035064697265625, -0.055206298828125, 0.089111328125, -0.00927734375, 0.033050537109375, 0.0229339599609375, 0.033843994140625, -0.03253173828125, 0.019744873046875, -0.003063201904296875, 0.0450439453125, 0.038330078125, -0.036163330078125, 0.0007672309875488281, -0.0021820068359375, -0.015716552734375, 0.0279083251953125, 0.0709228515625, 0.0213470458984375, -0.044586181640625, 0.01053619384765625, 0.064697265625, 0.029144287109375, -0.003696441650390625, 0.05035400390625, -0.006038665771484375, 0.01152801513671875, 0.053253173828125, -0.01023101806640625, 0.03509521484375, -0.00795745849609375, -0.01367950439453125, 0.0123748779296875, 0.032135009765625, 0.01197052001953125, 0.02093505859375, -0.01715087890625, -0.07098388671875, 0.033477783203125, 0.051116943359375, -0.007434844970703125, 0.0286865234375, -0.0279388427734375, -0.0157928466796875, -0.0277557373046875, 0.017578125, -0.0212249755859375, 0.03314208984375, -0.0251312255859375, -0.040679931640625, 0.00557708740234375, 0.0163726806640625, -0.0302734375, -0.01016998291015625, -0.0238494873046875, 0.016815185546875, -0.00695037841796875, 0.0157928466796875, 0.009765625, 0.0293426513671875, -0.0113677978515625, 0.022308349609375, 0.01291656494140625, 0.03302001953125, -0.02679443359375, -0.041412353515625, 0.0018777847290039062, -0.01128387451171875, 0.0187530517578125, -0.0022220611572265625, 0.01739501953125, -0.037872314453125, -0.0328369140625, 0.0021514892578125, 0.01015472412109375, 0.023468017578125, 0.00010520219802856445, 0.00992584228515625, 0.0462646484375, -0.046173095703125, 0.024932861328125, -0.0308380126953125, -0.018463134765625, 0.01214599609375, 0.051116943359375, 0.0272216796875, 0.041839599609375, -0.01277923583984375, -0.020172119140625, -0.016082763671875, 0.0311279296875, 0.02923583984375, -0.00873565673828125, -0.01128387451171875, -0.021759033203125, 0.0367431640625, 0.042022705078125, 0.0201568603515625, -0.002643585205078125, 0.037384033203125, 0.039031982421875, -0.0169830322265625, -0.01313018798828125, 0.07550048828125, -0.0017423629760742188, 0.049102783203125, -0.028900146484375, -0.00258636474609375, -0.0200042724609375, -0.030731201171875, 0.005260467529296875, -0.034149169921875, 0.040802001953125, 0.011993408203125, 0.0357666015625, 0.0070648193359375, -0.005931854248046875, 0.00705718994140625, -0.022216796875, 0.0158843994140625, 0.0174713134765625, -0.060333251953125, -0.0114593505859375, -0.0110321044921875, -0.04632568359375, 0.037933349609375, 0.045501708984375, -0.01058197021484375, 0.0156707763671875, 0.014068603515625, -0.01102447509765625, 0.008880615234375, -0.0281524658203125, 0.0247955322265625, -0.01666259765625, -0.0129852294921875, -0.000018417835235595703, -0.02008056640625, -0.0185089111328125, 0.0042572021484375, 0.06524658203125, -0.0304412841796875, 0.10736083984375, -0.06500244140625, -0.005359649658203125, 0.0152587890625, -0.004650115966796875, 0.00809478759765625, 0.009857177734375, -0.0126495361328125, -0.014129638671875, 0.002185821533203125, 0.0038356781005859375, -0.0533447265625, 0.0054168701171875, 0.01523590087890625, -0.022674560546875, 0.0109100341796875, -0.02105712890625, 0.0208587646484375, -0.0113067626953125, 0.0233001708984375, -0.0271759033203125, -0.0643310546875, -0.07073974609375, 0.01485443115234375, 0.0090179443359375, 0.042633056640625, -0.00981903076171875, 0.0509033203125, -0.0021800994873046875, -0.0006203651428222656, 0.0019683837890625, -0.044921875, -0.012786865234375, 0.027191162109375, -0.0128173828125, -0.0225372314453125, 0.033050537109375, -0.005611419677734375, -0.0005030632019042969, 0.01105499267578125, 0.041351318359375, 0.00551605224609375, -0.007785797119140625, -0.01139068603515625, 0.0011930465698242188, 0.01412200927734375, -0.01922607421875, 0.00943756103515625, 0.01348876953125, 0.0036678314208984375, -0.00600433349609375, -0.00881195068359375, -0.0030193328857421875, 0.0214691162109375, -0.04400634765625, -0.01181793212890625, 0.0194549560546875, -0.0870361328125, -0.01123046875, -0.004184722900390625, 0.0244598388671875, -0.0267486572265625, 0.0216827392578125, -0.0245361328125, -0.047210693359375, 0.041015625, -0.025787353515625, 0.032745361328125, -0.000020444393157958984, 0.03790283203125, -0.05401611328125, -0.03875732421875, -0.01336669921875, 0.0238800048828125, -0.06231689453125, 0.0141143798828125, 0.0474853515625, -0.022796630859375, -0.0256195068359375, 0.010498046875, 0.005970001220703125, 0.056854248046875, -0.051727294921875, 0.0261383056640625, 0.0020732879638671875, 0.01448822021484375, -0.08514404296875, -0.059814453125, 0.04425048828125, -0.043670654296875, -0.048309326171875, 0.02239990234375, 0.006435394287109375, 0.0310211181640625, -0.02191162109375, -0.05731201171875, 0.0953369140625, -0.01454925537109375, -0.019775390625, -0.03216552734375, 0.0147857666015625, -0.02325439453125, 0.059906005859375, -0.004962921142578125, 0.00792694091796875, 0.004650115966796875, 0.03192138671875, 0.005950927734375, 0.043609619140625, -0.0303192138671875, 0.049652099609375, -0.023773193359375, 0.0309600830078125, 0.007709503173828125, -0.0248870849609375, 0.0262298583984375, 0.005889892578125, 0.04168701171875, 0.060516357421875, -0.010223388671875, 0.039398193359375, -0.0010089874267578125, -0.06121826171875, -0.01073455810546875, -0.027191162109375, -0.0037517547607421875, -0.0281982421875, 0.00576019287109375, 0.0299835205078125, -0.014251708984375, 0.005313873291015625, -0.06756591796875, -0.051177978515625, 0.00753021240234375, -0.007152557373046875, 0.0127716064453125, -0.06634521484375, 0.0268707275390625, 0.01345062255859375, -0.032257080078125, 0.016937255859375, 0.0157470703125, -0.050750732421875, 0.03265380859375, 0.0147705078125, -0.03436279296875, -0.0399169921875, -0.0030307769775390625, 0.08197021484375, -0.04437255859375, -0.0025272369384765625, 0.0024662017822265625, 0.0157318115234375, 0.01806640625, -0.0229644775390625, 0.0285186767578125, 0.0323486328125, -0.0205230712890625, 0.0176544189453125, 0.029937744140625, -0.034576416015625, -0.02093505859375, -0.01255035400390625, -0.0174560546875, 0.026153564453125, -0.00839996337890625, 0.03802490234375, 0.01052093505859375, -0.002231597900390625, 0.00995635986328125, -0.0193328857421875, -0.0252227783203125, -0.03125, -0.0169525146484375, 0.034454345703125, -0.01751708984375, -0.00995635986328125, 0.03839111328125, -0.0557861328125, 0.00640106201171875, 0.023040771484375, -0.0069427490234375, 0.003040313720703125, -0.005939483642578125, -0.028533935546875, -0.006702423095703125, -0.006748199462890625 ]
6db3f725f77f796123d86d6ad5f4e82b3f52cb31
Wordpress Stackexchange Q: How to get role of user I need to get the role associated with a user -- not the "currently logged in user". I am using Buddypress (not that should matter to the nature of this question) and I am in the bp_members() loop. How can I retrieve the role of the user I am reporting on in the loop at any given time? Thanks. A: If bp_members returns an array of WP_User objects, each should have a the property roles that contains an array of the users roles. Otherwise, you can use get_user_meta for the key wp_capabilities, which will return an array of role => capability pairs: <?php $caps = get_user_meta($user->ID, 'wp_capabilities', true); $roles = array_keys((array)$caps);
Q: How to get role of user I need to get the role associated with a user -- not the "currently logged in user". I am using Buddypress (not that should matter to the nature of this question) and I am in the bp_members() loop. How can I retrieve the role of the user I am reporting on in the loop at any given time? Thanks. A: If bp_members returns an array of WP_User objects, each should have a the property roles that contains an array of the users roles. Otherwise, you can use get_user_meta for the key wp_capabilities, which will return an array of role => capability pairs: <?php $caps = get_user_meta($user->ID, 'wp_capabilities', true); $roles = array_keys((array)$caps); A: Use the user ID and WP_User: $user = new WP_User( $user_id ); print wp_sprintf_l( '%l', $user->roles ); Update /** * Get user roles by user ID. * * @param int $id * @return array */ function wpse_58916_user_roles_by_id( $id ) { $user = new WP_User( $id ); if ( empty ( $user->roles ) or ! is_array( $user->roles ) ) return array (); $wp_roles = new WP_Roles; $names = $wp_roles->get_names(); $out = array (); foreach ( $user->roles as $role ) { if ( isset ( $names[ $role ] ) ) $out[ $role ] = $names[ $role ]; } return $out; } Usage example: print '<pre>' . htmlspecialchars( print_r( wpse_58916_user_roles_by_id(1), TRUE ) ) . '</pre>'; Array ( [administrator] => Administrator ) A: As I understand, it probably changed over the years, now it's not 'wp_capabilities'. I looked at the core WP files, how they do it now, and found a new solution to this. Here's the code I use now: global $wpdb; $cap = get_user_meta( $wp_user_id, $wpdb->get_blog_prefix() . 'capabilities', true ); $cap then comes as an associative array, for example: { "administrator": true } or { "subscriber": true } So in your case you should probably then get the keys of the array: $caps_array = array_keys( $cap ); and then get everything from it. I needed to see if the user has the administrator role, so I checked: if ( is_array( $cap ) && !empty( $cap['administrator'] ) ) { return true; } I had a user ID, not the whole WP_User object, and I didn't want to use any solution that would create the user object. As I checked, get_user_meta goes straight to the db to check for this exact parameter, so this should be the fastest and resource-wise route.
wordpress
{ "language": "en", "length": 406, "provenance": "stackexchange_00019.jsonl.gz:421978", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58916" }
[ 0.02349853515625, -0.025054931640625, -0.021697998046875, -0.01267242431640625, -0.00710296630859375, -0.0164947509765625, 0.0234222412109375, 0.0019254684448242188, 0.00614166259765625, 0.055084228515625, 0.016326904296875, 0.00832366943359375, -0.0038204193115234375, -0.01629638671875, -0.046234130859375, -0.020965576171875, 0.0168304443359375, -0.0264739990234375, -0.00992584228515625, -0.01702880859375, 0.00930023193359375, -0.00696563720703125, -0.00811767578125, 0.0248565673828125, 0.059478759765625, -0.03533935546875, 0.02813720703125, -0.0113983154296875, 0.05029296875, 0.0004456043243408203, 0.040496826171875, -0.03216552734375, -0.021392822265625, 0.020721435546875, 0.0162811279296875, -0.050079345703125, 0.016143798828125, 0.00861358642578125, 0.018646240234375, 0.0137176513671875, 0.0060577392578125, 0.01593017578125, -0.005657196044921875, 0.0226593017578125, -0.01739501953125, -0.0631103515625, 0.01168060302734375, -0.0295867919921875, 0.005268096923828125, 0.003849029541015625, 0.0283050537109375, 0.023162841796875, 0.035003662109375, -0.00748443603515625, 0.0016202926635742188, -0.00040149688720703125, -0.01004791259765625, 0.004528045654296875, 0.03350830078125, -0.0051727294921875, -0.0205841064453125, -0.004817962646484375, 0.0196685791015625, -0.017059326171875, -0.036041259765625, 0.00792694091796875, 0.01273345947265625, 0.0174102783203125, -0.01385498046875, -0.07623291015625, -0.0274200439453125, 0.0084686279296875, -0.005977630615234375, 0.0021533966064453125, -0.047943115234375, -0.0215606689453125, 0.0032901763916015625, -0.042694091796875, 0.023529052734375, -0.01224517822265625, -0.0162811279296875, -0.0239715576171875, -0.049560546875, 0.0416259765625, -0.034942626953125, 0.033355712890625, -0.0189971923828125, -0.00738525390625, -0.002330780029296875, 0.004573822021484375, -0.024078369140625, -0.0252838134765625, 0.025177001953125, 0.0259857177734375, -0.031585693359375, -0.0150604248046875, 0.0562744140625, 0.051513671875, -0.004180908203125, -0.028076171875, 0.00926971435546875, -0.049835205078125, -0.033416748046875, -0.0137939453125, 0.00904083251953125, 0.00799560546875, -0.0255126953125, -0.00984954833984375, 0.0202789306640625, 0.040679931640625, 0.006984710693359375, -0.0284423828125, -0.0244140625, -0.034942626953125, -0.005596160888671875, 0.035247802734375, -0.017852783203125, 0.01059722900390625, -0.0010509490966796875, 0.006378173828125, -0.0005083084106445312, 0.015594482421875, 0.03961181640625, -0.037078857421875, -0.00858306884765625, -0.00865936279296875, -0.04486083984375, -0.0311431884765625, -0.0102996826171875, 0.006732940673828125, -0.01395416259765625, 0.00832366943359375, 0.044525146484375, 0.036376953125, -0.00167083740234375, -0.01290130615234375, 0.015625, -0.0174407958984375, -0.007198333740234375, 0.020050048828125, -0.024322509765625, -0.0288238525390625, 0.02215576171875, -0.035430908203125, -0.009063720703125, 0.004459381103515625, 0.0076751708984375, 0.0273590087890625, 0.0106201171875, -0.02783203125, -0.01087188720703125, 0.02093505859375, -0.039031982421875, 0.0386962890625, 0.09783935546875, 0.0088958740234375, 0.061676025390625, -0.0245513916015625, 0.043487548828125, 0.009490966796875, 0.01491546630859375, 0.00951385498046875, 0.006195068359375, -0.00818634033203125, -0.0266571044921875, -0.01605224609375, -0.01363372802734375, 0.0013990402221679688, 0.03485107421875, -0.01629638671875, 0.043212890625, -0.045166015625, 0.028564453125, 0.006145477294921875, -0.0006475448608398438, 0.039794921875, -0.01491546630859375, 0.0252685546875, 0.0156402587890625, -0.0242919921875, -0.0340576171875, -0.04339599609375, 0.022125244140625, 0.008544921875, -0.011627197265625, 0.0004215240478515625, -0.0074310302734375, -0.0033473968505859375, 0.01690673828125, 0.0162200927734375, -0.001495361328125, 0.0238189697265625, -0.0294342041015625, 0.027008056640625, -0.0163116455078125, -0.0310211181640625, 0.03973388671875, 0.01678466796875, -0.005756378173828125, -0.0140533447265625, 0.05743408203125, -0.01036834716796875, -0.0024204254150390625, -0.046661376953125, -0.061187744140625, -0.0261383056640625, -0.00921630859375, 0.0186309814453125, -0.0087432861328125, 0.005184173583984375, 0.0036563873291015625, 0.0031948089599609375, -0.005481719970703125, -0.07928466796875, -0.016265869140625, 0.040283203125, 0.0033931732177734375, 0.0262298583984375, 0.0240020751953125, 0.0157928466796875, 0.01537322998046875, 0.006885528564453125, 0.004611968994140625, -0.015777587890625, 0.034942626953125, 0.0004982948303222656, -0.00992584228515625, -0.0016574859619140625, 0.055816650390625, 0.0224456787109375, 0.00788116455078125, -0.024688720703125, 0.03497314453125, 0.0274505615234375, -0.00878143310546875, 0.0006847381591796875, 0.0182952880859375, -0.07940673828125, 0.01416015625, 0.049224853515625, 0.037384033203125, 0.04730224609375, 0.0099639892578125, 0.0221099853515625, 0.01247406005859375, -0.042633056640625, 0.0272979736328125, -0.01538848876953125, 0.01326751708984375, 0.06878662109375, -0.01085662841796875, 0.0029697418212890625, 0.003955841064453125, 0.032562255859375, -0.039093017578125, 0.038299560546875, -0.0389404296875, 0.01558685302734375, -0.0055694580078125, -0.00022733211517333984, -0.0108184814453125, -0.061126708984375, 0.02130126953125, -0.05780029296875, -0.0012912750244140625, 0.003963470458984375, -0.0026035308837890625, 0.0007829666137695312, -0.013824462890625, 0.0034427642822265625, 0.0276947021484375, -0.0036907196044921875, -0.0076446533203125, 0.02117919921875, -0.001941680908203125, -0.002910614013671875, -0.025543212890625, -0.00823211669921875, -0.0007462501525878906, 0.006969451904296875, -0.0019054412841796875, 0.0263214111328125, 0.0222320556640625, -0.00914764404296875, -0.010009765625, -0.00931549072265625, 0.0196075439453125, 0.0214080810546875, 0.03173828125, 0.0083465576171875, 0.02154541015625, 0.010223388671875, -0.0168609619140625, 0.053436279296875, -0.00981903076171875, -0.0169677734375, 0.01480865478515625, -0.0670166015625, 0.042388916015625, -0.039459228515625, 0.022674560546875, 0.06378173828125, 0.0162353515625, -0.01149749755859375, 0.0006771087646484375, -0.04876708984375, -0.03643798828125, 0.03704833984375, 0.023223876953125, -0.037628173828125, 0.01678466796875, 0.11102294921875, 0.0182037353515625, 0.02227783203125, -0.006603240966796875, -0.0292205810546875, -0.0124053955078125, 0.012481689453125, -0.06304931640625, -0.054351806640625, 0.005828857421875, -0.10003662109375, 0.00458526611328125, -0.00959014892578125, -0.051483154296875, -0.0040130615234375, 0.029083251953125, 0.019927978515625, 0.01019287109375, -0.001987457275390625, -0.060760498046875, -0.0083465576171875, -0.06024169921875, 0.01049041748046875, -0.0165863037109375, 0.0020999908447265625, 0.004077911376953125, 0.03192138671875, 0.0162353515625, -0.0232696533203125, -0.00992584228515625, 0.039337158203125, -0.027008056640625, -0.043792724609375, -0.013702392578125, 0.00846099853515625, -0.025848388671875, 0.014312744140625, -0.01282501220703125, -0.015777587890625, -0.0017747879028320312, -0.0288238525390625, 0.0099029541015625, -0.042572021484375, 0.044921875, -0.0013065338134765625, -0.061279296875, 0.0236358642578125, 0.0814208984375, -0.029052734375, -0.005786895751953125, -0.00228118896484375, -0.042572021484375, 0.004337310791015625, 0.017730712890625, -0.0090484619140625, -0.0006623268127441406, -0.01690673828125, 0.0247955322265625, 0.01702880859375, -0.047210693359375, 0.00800323486328125, 0.010589599609375, 0.02484130859375, 0.05596923828125, 0.03277587890625, 0.005298614501953125, -0.032135009765625, 0.01837158203125, -0.0137786865234375, -0.0115966796875, -0.02581787109375, 0.01049041748046875, -0.039154052734375, -0.04638671875, 0.051361083984375, 0.021392822265625, 0.03680419921875, -0.035675048828125, -0.04779052734375, -0.00864410400390625, 0.11724853515625, 0.01666259765625, -0.00745391845703125, 0.00046539306640625, 0.006732940673828125, -0.056427001953125, -0.0183868408203125, -0.05194091796875, 0.0004839897155761719, -0.05999755859375, -0.0211639404296875, -0.01541900634765625, -0.021484375, -0.0169219970703125, 0.025238037109375, -0.041717529296875, -0.0263214111328125, 0.04150390625, -0.064208984375, 0.007076263427734375, 0.0251922607421875, -0.0142059326171875, -0.0218353271484375, -0.03369140625, -0.0272674560546875, -0.06903076171875, -0.012298583984375, -0.00693511962890625, 0.06610107421875, 0.0087432861328125, 0.0161895751953125, 0.020751953125, 0.06524658203125, 0.0164031982421875, 0.00434112548828125, 0.046661376953125, 0.00811004638671875, 0.052703857421875, -0.0003025531768798828, 0.032135009765625, -0.0178070068359375, -0.00844573974609375, -0.043975830078125, 0.01148223876953125, -0.0335693359375, -0.0751953125, -0.037872314453125, -0.06707763671875, 0.0046234130859375, -0.01629638671875, 0.00836944580078125, 0.0012035369873046875, 0.034393310546875, -0.038818359375, 0.02752685546875, -0.0027179718017578125, -0.041656494140625, 0.0543212890625, -0.004669189453125, -0.005401611328125, -0.00420379638671875, 0.1026611328125, 0.020843505859375, -0.0193328857421875, -0.0017185211181640625, 0.02978515625, 0.053985595703125, -0.00868988037109375, 0.0299224853515625, 0.049072265625, -0.03460693359375, 0.022064208984375, 0.0292510986328125, 0.0355224609375, -0.00899505615234375, 0.0162811279296875, 0.02001953125, -0.0010747909545898438, 0.0109710693359375, 0.032501220703125, -0.0274200439453125, -0.013031005859375, 0.007320404052734375, -0.01416015625, 0.045867919921875, 0.02191162109375, -0.0160064697265625, -0.0009698867797851562, -0.00870513916015625, -0.048675537109375, 0.01422882080078125, -0.03485107421875, 0.00153350830078125, 0.010345458984375, -0.0017290115356445312, -0.0014925003051757812, -0.0258026123046875, 0.01361846923828125, -0.034942626953125, -0.033721923828125, -0.0171966552734375, 0.04302978515625, -0.046051025390625, 0.016937255859375, 0.008941650390625, -0.0080108642578125, 0.053802490234375, -0.0246429443359375, -0.081298828125, 0.045440673828125, -0.0404052734375, 0.036956787109375, 0.048187255859375, -0.006473541259765625, 0.04290771484375, 0.04010009765625, -0.0117950439453125, -0.0030651092529296875, 0.00359344482421875, 0.01459503173828125, -0.0318603515625, 0.0302734375, -0.01248931884765625, 0.0014963150024414062, -0.035003662109375, 0.091064453125, -0.018646240234375, 0.04669189453125, -0.00968170166015625, 0.0450439453125, 0.043792724609375, -0.007717132568359375, 0.0011949539184570312, 0.0256805419921875, -0.0024509429931640625, -0.0263519287109375, 0.0026416778564453125, -0.0382080078125, 0.00795745849609375, 0.01383209228515625, 0.04473876953125, 0.0109710693359375, -0.0386962890625, 0.01806640625, -0.0282440185546875, -0.00981903076171875, 0.062744140625, 0.027099609375, -0.04266357421875, -0.03082275390625, 0.004306793212890625, 0.0384521484375, -0.018035888671875, 0.0174102783203125, 0.005252838134765625, 0.0296173095703125, 0.0181884765625, -0.050872802734375, -0.035858154296875, 0.0101776123046875, 0.0300140380859375, -0.07421875, -0.0207672119140625, 0.0088348388671875, -0.0016908645629882812, 0.0009393692016601562, -0.0085296630859375, -0.0618896484375, 0.0208587646484375, -0.006622314453125, 0.0118560791015625, -0.055450439453125, 0.0292510986328125, -0.105224609375, -0.0176544189453125, 0.077392578125, 0.04656982421875, -0.05029296875, 0.0105133056640625, -0.037017822265625, 0.00469207763671875, 0.004337310791015625, -0.052734375, -0.02899169921875, -0.0221099853515625, 0.005382537841796875, 0.0159454345703125, 0.0146636962890625, -0.0001437664031982422, -0.01525115966796875, 0.023712158203125, 0.0099945068359375, 0.054718017578125, -0.003692626953125, 0.045166015625, -0.0111083984375, 0.005489349365234375, -0.0016336441040039062, 0.0203704833984375, 0.0024738311767578125, -0.00469970703125, 0.0031890869140625, 0.00507354736328125, 0.002887725830078125, -0.049896240234375, 0.015960693359375, -0.01514434814453125, 0.0689697265625, 0.00481414794921875, 0.00365447998046875, 0.0086212158203125, 0.00705718994140625, -0.015655517578125, -0.04364013671875, 0.0198211669921875, -0.01534271240234375, -0.00583648681640625, -0.0111541748046875, 0.0106964111328125, -0.013671875, 0.00962066650390625, -0.007965087890625, -0.01140594482421875, 0.0009183883666992188, 0.00606536865234375, -0.0167083740234375, 0.0202178955078125, 0.06866455078125, -0.01004791259765625, 0.02325439453125, 0.041900634765625, 0.00753021240234375, -0.01065826416015625, 0.0220794677734375, -0.01313018798828125, 0.011260986328125, 0.037750244140625, 0.004901885986328125, -0.01560211181640625, -0.0007524490356445312, -0.02435302734375, 0.0238800048828125, 0.016845703125, 0.04498291015625, -0.0477294921875, 0.03167724609375, 0.0023403167724609375, -0.0102081298828125, 0.060546875, -0.01471710205078125, -0.035308837890625, -0.056060791015625, 0.0506591796875, -0.040740966796875, -0.03302001953125, 0.005977630615234375, -0.0164642333984375, -0.0135040283203125, -0.0209808349609375, 0.0227813720703125, 0.022308349609375, 0.0406494140625, 0.0018939971923828125, -0.0222320556640625, 0.036956787109375, -0.0046539306640625, 0.01457977294921875, 0.0031490325927734375, -0.0216064453125, -0.059173583984375, -0.0233306884765625, -0.00481414794921875, -0.0311126708984375, -0.031463623046875, -0.020721435546875, 0.055908203125, 0.051544189453125, -0.0177459716796875, -0.01715087890625, 0.052001953125, -0.0526123046875, -0.0184783935546875, -0.037200927734375, 0.009185791015625, 0.0309295654296875, -0.0123443603515625, 0.0299072265625, 0.01471710205078125, -0.03680419921875, -0.0173187255859375, -0.05413818359375, 0.0450439453125, -0.0311737060546875, -0.005252838134765625, 0.01398468017578125, 0.024993896484375, -0.0028839111328125, -0.01265716552734375, 0.035888671875, -0.053436279296875, 0.0016298294067382812, 0.01641845703125, 0.043426513671875, 0.00458526611328125, 0.0390625, -0.033294677734375, 0.0299224853515625, -0.0281524658203125, 0.0173187255859375, 0.0308074951171875, -0.00817108154296875, -0.0136260986328125, -0.023468017578125, -0.0621337890625, 0.07440185546875, 0.031524658203125, 0.07147216796875, -0.05853271484375, -0.005954742431640625, 0.00782012939453125, 0.02593994140625, 0.08953857421875, 0.031951904296875, -0.043304443359375, -0.03271484375, 0.01290130615234375, 0.04296875, -0.0164947509765625, 0.03363037109375, 0.0104827880859375, 0.068115234375, 0.031402587890625, -0.0653076171875, 0.032196044921875, -0.05487060546875, -0.006359100341796875, 0.01351165771484375, 0.01044464111328125, 0.004489898681640625, -0.0220489501953125, 0.02056884765625, -0.031829833984375, -0.0214080810546875, 0.01617431640625, -0.019287109375, 0.04217529296875, -0.00919342041015625, 0.035797119140625, -0.0276031494140625, 0.034698486328125, -0.0102386474609375, 0.053192138671875, -0.007205963134765625, 0.00043320655822753906, 0.00904083251953125, 0.0108184814453125, -0.00034356117248535156, -0.021942138671875, 0.0005731582641601562, 0.0271759033203125, -0.0203857421875, 0.053009033203125, 0.047698974609375, 0.01788330078125, -0.0282440185546875, 0.045196533203125, 0.044464111328125, 0.052581787109375, -0.053070068359375, -0.0504150390625, 0.00543975830078125, 0.00946044921875, 0.03375244140625, 0.007022857666015625, 0.01336669921875, -0.039886474609375, 0.03070068359375, -0.04913330078125, 0.026031494140625, 0.033477783203125, -0.01325225830078125, -0.00555419921875, -0.015594482421875, -0.0248260498046875, 0.0389404296875, -0.0115966796875, -0.01250457763671875, -0.005611419677734375, -0.03851318359375, 0.016571044921875, -0.0189056396484375, 0.06170654296875, 0.0298614501953125, 0.00923919677734375, 0.038818359375, 0.0298004150390625, -0.03546142578125, 0.021087646484375, -0.014862060546875, -0.0014524459838867188, -0.006290435791015625, 0.0340576171875, -0.047210693359375, -0.0011892318725585938, 0.02008056640625, -0.0197296142578125, -0.0020999908447265625, 0.035125732421875, -0.0031490325927734375, -0.003997802734375, -0.03375244140625, 0.015655517578125, 0.01666259765625, -0.00171661376953125, -0.0133514404296875, 0.007366180419921875, 0.044586181640625, -0.001903533935546875, 0.05145263671875, -0.006015777587890625, 0.0297393798828125, -0.0096282958984375, -0.0201416015625, -0.01110076904296875, 0.0226287841796875, -0.057891845703125, 0.023162841796875, -0.0963134765625, -0.04852294921875, 0.01324462890625, 0.025909423828125, -0.01715087890625, 0.032958984375, -0.01849365234375, -0.01007843017578125, 0.03125, 0.00577545166015625, -0.01171112060546875, 0.046905517578125, 0.02978515625, -0.001220703125, -0.045135498046875, -0.01032257080078125, -0.03277587890625, 0.0083465576171875, 0.0399169921875, -0.00689697265625, 0.0288543701171875, 0.039306640625, -0.0716552734375, 0.018280029296875, -0.030029296875, -0.056884765625, 0.045562744140625, 0.051116943359375, -0.016204833984375, -0.0186767578125, -0.029876708984375, 0.06329345703125, 0.021453857421875, 0.017791748046875, 0.00788116455078125, 0.0216827392578125, 0.0069427490234375, 0.020721435546875, 0.022308349609375, -0.0193939208984375, -0.00931549072265625, -0.04327392578125, -0.025543212890625, 0.0418701171875, 0.0196685791015625, 0.000021338462829589844, 0.01468658447265625, -0.016754150390625, -0.00872039794921875, -0.02801513671875, 0.01454925537109375, -0.07843017578125, 0.0062255859375, -0.01318359375, -0.013275146484375, 0.0006260871887207031, -0.01074981689453125, -0.0029659271240234375, -0.0030727386474609375, 0.009857177734375, 0.006072998046875, -0.0197906494140625, 0.044921875, 0.01395416259765625, 0.060760498046875, 0.01065826416015625, 0.0034694671630859375, 0.0182952880859375, 0.0055694580078125, -0.03680419921875, -0.07269287109375, -0.043243408203125, -0.055206298828125, 0.005779266357421875, 0.033203125, -0.00757598876953125, -0.060821533203125, -0.0538330078125, -0.04376220703125, 0.028533935546875, 0.01030731201171875, -0.06591796875, 0.030426025390625, 0.003387451171875, 0.0025424957275390625, -0.03070068359375, -0.0233612060546875, 0.04266357421875, 0.07183837890625, -0.030487060546875, 0.05816650390625, 0.00951385498046875, -0.08197021484375, 0.02239990234375, 0.0175323486328125, 0.007053375244140625, -0.006572723388671875, 0.0009341239929199219, 0.0305328369140625, -0.01337432861328125, 0.06439208984375, -0.0153961181640625, -0.01025390625, -0.0229644775390625, -0.003582000732421875, -0.0084228515625, -0.0128326416015625, 0.032470703125, -0.0440673828125, -0.0572509765625, -0.015289306640625, 0.02056884765625, 0.023223876953125, -0.027984619140625, -0.03533935546875, 0.10565185546875, -0.0279541015625, -0.0166015625, -0.04632568359375, 0.00799560546875, 0.036041259765625, -0.07281494140625, -0.02728271484375, -0.01303863525390625, -0.050018310546875, 0.00901031494140625, 0.04119873046875, -0.03717041015625, 0.021453857421875, 0.046112060546875, -0.090576171875, 0.048553466796875, 0.0148468017578125, 0.004238128662109375, -0.0304718017578125, 0.03680419921875, -0.0085296630859375, 0.049285888671875, -0.0013856887817382812, -0.0182342529296875, -0.007904052734375, -0.005268096923828125, -0.024566650390625, -0.0452880859375, 0.0224456787109375, -0.0103912353515625, 0.0197296142578125, 0.0129852294921875, -0.00913238525390625, -0.0199737548828125, -0.007122039794921875, -0.036102294921875, -0.060760498046875, 0.00557708740234375, 0.0210723876953125, -0.03839111328125, 0.0226287841796875, -0.006378173828125, -0.0465087890625, 0.022003173828125, -0.0109405517578125, -0.05487060546875, 0.01947021484375, -0.0340576171875, -0.01641845703125, -0.02178955078125, -0.0022716522216796875, 0.004730224609375, -0.0230865478515625, -0.0128631591796875, -0.019927978515625, 0.013275146484375, -0.0139312744140625, -0.0095367431640625, 0.006267547607421875, 0.0263671875, -0.0273284912109375, 0.00991058349609375, 0.007476806640625, -0.004016876220703125, -0.0179290771484375, -0.005878448486328125, 0.030853271484375, 0.041717529296875, -0.025115966796875, 0.043609619140625, 0.02178955078125, 0.049072265625, -0.0060272216796875, 0.0085601806640625, 0.0032958984375, 0.01861572265625, -0.0113983154296875, 0.04986572265625, 0.027130126953125, -0.0299530029296875, 0.06597900390625, -0.04302978515625, 0.0084686279296875, 0.022979736328125, 0.010467529296875, -0.0250701904296875, 0.0218353271484375, 0.06964111328125, 0.0169525146484375, 0.017547607421875 ]
2bb46d01b7f8fd53c43e029778443c3e66ed7217
Wordpress Stackexchange Q: How do I remove a pre-existing customizer setting? My theme doesn't use the tag line, how can I remove it from the customizer? A: I found out the WP_Customize_Manager class has a function called remove_section(). In your function hooked to customize_register you can just do: $wp_customize->remove_section('nav'); $wp_customize->remove_section('static_front_page'); You can find the ID of the section (i.e. 'nav') if you inspect the accordion title bar of the section. Look at the ID of the containing <li> tag and it's the portion of the string after "customize-section-". I.E.: <li id="customize-section-static_front_page" class="control-section customize-section"> -- the ID is "static_front_page"
Q: How do I remove a pre-existing customizer setting? My theme doesn't use the tag line, how can I remove it from the customizer? A: I found out the WP_Customize_Manager class has a function called remove_section(). In your function hooked to customize_register you can just do: $wp_customize->remove_section('nav'); $wp_customize->remove_section('static_front_page'); You can find the ID of the section (i.e. 'nav') if you inspect the accordion title bar of the section. Look at the ID of the containing <li> tag and it's the portion of the string after "customize-section-". I.E.: <li id="customize-section-static_front_page" class="control-section customize-section"> -- the ID is "static_front_page" A: Accoring to OTTO One final thing you can add to a section is a “theme_supports” option. This will make the menu not appear unless the theme supports something. If you’re putting this code in a theme itself, then you already know what the theme supports, so it doesn’t make much sense. The core uses this to not show the header and background options if the theme doesn’t support them. So I put that together with $wp_customize->get_setting('blogdescription')->transport='postMessage'; ... and discovered that the following code worked. I put false in for the theme_supports ... not sure what I really should be putting in ... maybe someone a bit more expert can improve on this. $wp_customize->add_control('blogdescription')->theme_supports=false; A: if the section / panel or control core , it is always better to disable them in place of removing. add_action( 'customize_register', 'wp_stackexchange_58932' ); function wp_stackexchange_58932($wp_customize){ $wp_customize->get_section( 'static_front_page' )->active_callback = '__return_false'; $wp_customize->get_section( 'custom_css' )->active_callback = '__return_false'; } A: Late to the party but this will do the trick: $wp_customize->remove_control('blogdescription'); You want to remove just that control, not entire section as suggested above. A: Remove a pre exising customizer setting in wordpress theme with this code. add_action( "customize_register", "ruth_sherman_theme_customize_register" ); function ruth_sherman_theme_customize_register( $wp_customize ) { //============================================================= // Remove header image and widgets option from theme customizer //============================================================= $wp_customize->remove_control("header_image"); $wp_customize->remove_panel("widgets"); //============================================================= // Remove Colors, Background image, and Static front page // option from theme customizer //============================================================= $wp_customize->remove_section("colors"); $wp_customize->remove_section("background_image"); $wp_customize->remove_section("static_front_page"); } A: If you are using this in a plugin you should use priority argument like 999 and it will work in the plugin. add_action( "customize_register","wpcb_theme_customize_register",999,1); function wpcb_theme_customize_register($wp_customize){ $wp_customize->get_setting('blogdescription')->transport='postMessage'; }
wordpress
{ "language": "en", "length": 358, "provenance": "stackexchange_00019.jsonl.gz:421985", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58932" }
[ 0.0189971923828125, 0.0109405517578125, -0.02294921875, -0.0166015625, 0.0226287841796875, -0.03656005859375, 0.0039215087890625, -0.04742431640625, -0.042816162109375, 0.00647735595703125, 0.040069580078125, 0.0163116455078125, -0.08770751953125, -0.038787841796875, 0.00627899169921875, -0.053070068359375, 0.027923583984375, 0.002216339111328125, 0.051605224609375, -0.01284027099609375, -0.00043487548828125, 0.0013151168823242188, 0.057220458984375, 0.07568359375, 0.020965576171875, -0.03082275390625, 0.0256195068359375, 0.01129913330078125, -0.00257110595703125, -0.011566162109375, 0.021331787109375, 0.004802703857421875, -0.000041484832763671875, 0.0282440185546875, -0.0066986083984375, 0.0279998779296875, 0.002902984619140625, 0.0198974609375, 0.030426025390625, 0.006412506103515625, 0.0293731689453125, -0.0135955810546875, -0.017852783203125, 0.032958984375, -0.0287017822265625, -0.040740966796875, 0.0338134765625, -0.01611328125, 0.0148468017578125, -0.01316070556640625, 0.020538330078125, -0.0219879150390625, 0.036468505859375, -0.0478515625, -0.043792724609375, -0.051605224609375, -0.0251312255859375, -0.01175689697265625, 0.0216217041015625, 0.0748291015625, 0.01236724853515625, 0.0054168701171875, -0.021026611328125, -0.06341552734375, -0.01416778564453125, 0.0159149169921875, -0.01435089111328125, -0.0033702850341796875, -0.03582763671875, 0.0028095245361328125, 0.019378662109375, -0.046417236328125, -0.00872802734375, -0.01311492919921875, -0.0208282470703125, 0.0157012939453125, -0.02313232421875, -0.00568389892578125, 0.041107177734375, -0.0081329345703125, 0.03338623046875, -0.0208740234375, 0.00661468505859375, -0.03192138671875, 0.03985595703125, 0.00762939453125, 0.004058837890625, -0.006053924560546875, 0.01416778564453125, -0.0232696533203125, -0.0064544677734375, -0.0157012939453125, 0.023193359375, 0.0120086669921875, -0.0286102294921875, -0.015380859375, 0.0374755859375, 0.0654296875, -0.005687713623046875, 0.01143646240234375, -0.00586700439453125, -0.0408935546875, 0.0245208740234375, -0.046630859375, -0.005817413330078125, 0.021820068359375, -0.01364898681640625, 0.033782958984375, 0.048095703125, 0.0379638671875, 0.005523681640625, -0.02490234375, 0.004329681396484375, 0.0036563873291015625, -0.041656494140625, -0.0135955810546875, -0.0272369384765625, 0.0008883476257324219, -0.01108551025390625, -0.0313720703125, 0.0069732666015625, 0.039398193359375, -0.0487060546875, -0.030059814453125, 0.02069091796875, 0.005733489990234375, -0.01068878173828125, -0.0073089599609375, 0.003589630126953125, -0.01491546630859375, -0.048583984375, -0.0039825439453125, 0.10198974609375, 0.0723876953125, 0.059906005859375, -0.0282440185546875, 0.058013916015625, -0.0220184326171875, 0.00933074951171875, 0.0240020751953125, 0.0029888153076171875, -0.0273895263671875, -0.01511383056640625, -0.0270843505859375, -0.0050811767578125, 0.00963592529296875, 0.0264892578125, 0.022491455078125, 0.00905609130859375, -0.056671142578125, 0.034576416015625, -0.00899505615234375, 0.040069580078125, 0.037322998046875, -0.0290985107421875, 0.0138092041015625, 0.06146240234375, -0.0189056396484375, -0.06146240234375, -0.05426025390625, -0.01244354248046875, -0.031982421875, -0.0181732177734375, -0.0172576904296875, -0.0311737060546875, 0.038726806640625, -0.00665283203125, 0.0035343170166015625, 0.01036834716796875, 0.01119232177734375, 0.022979736328125, -0.002681732177734375, 0.0164947509765625, 0.01215362548828125, 0.0013551712036132812, 0.01366424560546875, -0.0028839111328125, -0.0024471282958984375, 0.00597381591796875, 0.06884765625, 0.004734039306640625, -0.034423828125, 0.005584716796875, -0.0015153884887695312, -0.0888671875, 0.0200653076171875, 0.01396942138671875, 0.09002685546875, 0.0270233154296875, 0.0255126953125, 0.08978271484375, -0.0240325927734375, -0.0164794921875, 0.007335662841796875, 0.01410675048828125, -0.01180267333984375, -0.0341796875, -0.01395416259765625, -0.01055145263671875, 0.007045745849609375, -0.0182037353515625, 0.0125732421875, 0.0175018310546875, -0.0184173583984375, -0.04296875, 0.032867431640625, -0.03192138671875, 0.0654296875, -0.026763916015625, 0.00940704345703125, 0.03057861328125, 0.002506256103515625, -0.034454345703125, 0.01462554931640625, 0.00017380714416503906, 0.01097869873046875, -0.033355712890625, 0.062286376953125, 0.01528167724609375, 0.03802490234375, 0.047088623046875, -0.036376953125, 0.03948974609375, -0.02545166015625, 0.0679931640625, 0.009613037109375, -0.01904296875, -0.036590576171875, 0.057373046875, -0.015777587890625, -0.01041412353515625, 0.046478271484375, 0.05889892578125, 0.01422119140625, -0.040069580078125, 0.0058746337890625, 0.0289459228515625, -0.06170654296875, -0.008026123046875, 0.048614501953125, 0.031890869140625, 0.03948974609375, -0.005645751953125, -0.02081298828125, 0.03253173828125, -0.005359649658203125, 0.0223541259765625, -0.034332275390625, -0.006252288818359375, -0.0202484130859375, 0.0284576416015625, -0.0231781005859375, 0.037078857421875, 0.01151275634765625, 0.045928955078125, 0.00028514862060546875, -0.018646240234375, -0.0750732421875, 0.035797119140625, -0.005725860595703125, 0.02484130859375, -0.022613525390625, -0.0458984375, -0.007015228271484375, 0.05474853515625, 0.01349639892578125, 0.040740966796875, 0.034027099609375, -0.0380859375, -0.002735137939453125, 0.0283203125, 0.0302581787109375, -0.01284027099609375, 0.00826263427734375, 0.01953125, 0.0215301513671875, -0.033355712890625, 0.0007748603820800781, -0.01174163818359375, 0.01116943359375, -0.021148681640625, 0.061614990234375, -0.004047393798828125, -0.0218963623046875, -0.03485107421875, -0.058013916015625, 0.002460479736328125, -0.00241851806640625, -0.0212554931640625, -0.0163116455078125, -0.0146636962890625, 0.034423828125, -0.024749755859375, 0.037261962890625, -0.0008697509765625, -0.0129241943359375, 0.03424072265625, -0.02197265625, 0.0189208984375, 0.007171630859375, 0.06256103515625, 0.0748291015625, 0.01221466064453125, 0.00940704345703125, 0.0184478759765625, 0.0105133056640625, 0.042266845703125, 0.009490966796875, 0.02374267578125, 0.01410675048828125, -0.0360107421875, 0.00980377197265625, 0.0260772705078125, 0.0096588134765625, 0.004756927490234375, -0.01160430908203125, -0.004299163818359375, 0.024688720703125, -0.0252532958984375, -0.046905517578125, 0.052520751953125, 0.0003914833068847656, -0.036224365234375, 0.01297760009765625, -0.0223236083984375, -0.006465911865234375, 0.033416748046875, -0.018798828125, 0.0185699462890625, -0.058197021484375, -0.03350830078125, -0.060516357421875, -0.0718994140625, -0.03948974609375, 0.01000213623046875, -0.0023059844970703125, 0.00640106201171875, 0.0714111328125, 0.007770538330078125, -0.0428466796875, 0.0252227783203125, -0.034881591796875, -0.01009368896484375, 0.046417236328125, 0.0033283233642578125, -0.0081939697265625, 0.03826904296875, 0.01151275634765625, 0.006855010986328125, 0.0218505859375, -0.0151824951171875, -0.044647216796875, -0.001773834228515625, 0.0203857421875, -0.0191192626953125, 0.050445556640625, 0.027435302734375, -0.018798828125, -0.0253448486328125, -0.06768798828125, -0.027313232421875, -0.004154205322265625, -0.03326416015625, 0.022918701171875, -0.0011034011840820312, -0.00890350341796875, 0.003673553466796875, 0.0255126953125, 0.026611328125, 0.00933074951171875, 0.02606201171875, -0.006153106689453125, 0.0167388916015625, 0.007259368896484375, 0.01395416259765625, -0.033447265625, 0.050201416015625, -0.023773193359375, 0.05938720703125, 0.042327880859375, 0.0025959014892578125, 0.017608642578125, -0.06634521484375, -0.022796630859375, -0.02239990234375, 0.061614990234375, 0.00501251220703125, 0.03985595703125, -0.005878448486328125, -0.030853271484375, 0.004116058349609375, 0.09454345703125, -0.07257080078125, -0.01456451416015625, 0.0031147003173828125, -0.0072784423828125, 0.04022216796875, -0.0005831718444824219, -0.0478515625, -0.044219970703125, -0.13134765625, 0.0045928955078125, -0.0160675048828125, -0.04510498046875, -0.043792724609375, 0.019805908203125, -0.09808349609375, -0.04107666015625, 0.037994384765625, -0.00151824951171875, 0.00958251953125, 0.0093536376953125, -0.0020599365234375, -0.0179901123046875, -0.01306915283203125, -0.00571441650390625, -0.03900146484375, 0.00980377197265625, -0.037689208984375, 0.025390625, 0.01345062255859375, 0.018890380859375, -0.026885986328125, 0.00909423828125, 0.044189453125, -0.022247314453125, 0.0159454345703125, -0.01113128662109375, -0.01546478271484375, 0.0171051025390625, 0.0097198486328125, -0.0161590576171875, 0.025482177734375, 0.0262451171875, -0.04034423828125, 0.04791259765625, -0.03253173828125, 0.00795745849609375, 0.00592803955078125, -0.04254150390625, -0.057830810546875, -0.0277252197265625, -0.04010009765625, -0.047637939453125, -0.02215576171875, -0.0008869171142578125, 0.0118255615234375, -0.038360595703125, 0.0033397674560546875, -0.0016107559204101562, -0.01507568359375, 0.0023670196533203125, 0.050048828125, 0.040252685546875, -0.01444244384765625, 0.0241241455078125, 0.0014781951904296875, 0.03778076171875, 0.00792694091796875, 0.025970458984375, -0.0051727294921875, -0.029388427734375, 0.053680419921875, -0.00260162353515625, -0.0013856887817382812, -0.0011358261108398438, 0.026580810546875, -0.01387786865234375, -0.04571533203125, 0.016845703125, -0.0272979736328125, 0.0089569091796875, 0.00366973876953125, 0.0213165283203125, 0.00901031494140625, 0.0296173095703125, -0.0227203369140625, 0.01715087890625, -0.06805419921875, 0.01346588134765625, -0.027740478515625, 0.01218414306640625, 0.059173583984375, 0.023651123046875, 0.005756378173828125, 0.007175445556640625, 0.00785064697265625, 0.00559234619140625, 0.007160186767578125, -0.032012939453125, -0.02191162109375, -0.03741455078125, 0.01096343994140625, -0.017486572265625, -0.004322052001953125, 0.01399993896484375, -0.0028438568115234375, 0.023468017578125, -0.0229034423828125, -0.0318603515625, -0.06378173828125, 0.0031528472900390625, -0.005863189697265625, 0.023284912109375, 0.00347137451171875, 0.036773681640625, -0.00646209716796875, -0.0126953125, -0.01123046875, -0.0265960693359375, -0.005344390869140625, -0.048065185546875, -0.0030727386474609375, 0.019317626953125, -0.0308837890625, 0.01415252685546875, 0.007411956787109375, 0.046173095703125, -0.0308074951171875, -0.02923583984375, -0.016143798828125, -0.045654296875, 0.04779052734375, -0.0016317367553710938, 0.02203369140625, 0.02606201171875, 0.0040283203125, 0.0360107421875, -0.0298614501953125, -0.010223388671875, 0.00884246826171875, 0.052154541015625, -0.00304412841796875, -0.0299072265625, 0.0084991455078125, -0.034576416015625, -0.01538848876953125, 0.0496826171875, -0.0293426513671875, -0.0755615234375, -0.0252227783203125, 0.0241546630859375, 0.0247039794921875, -0.0308990478515625, 0.003391265869140625, 0.0143280029296875, 0.00254058837890625, -0.0276336669921875, 0.017242431640625, -0.03741455078125, -0.03131103515625, -0.0135650634765625, -0.0123443603515625, 0.006191253662109375, 0.003917694091796875, -0.09649658203125, -0.05560302734375, -0.0016965866088867188, -0.0111541748046875, 0.0498046875, -0.035369873046875, 0.0401611328125, -0.033721923828125, 0.011474609375, -0.0499267578125, 0.025115966796875, 0.0273895263671875, 0.0233154296875, -0.04058837890625, -0.0001138448715209961, -0.0249176025390625, -0.01482391357421875, -0.033172607421875, -0.048126220703125, -0.051422119140625, -0.005123138427734375, 0.0169677734375, 0.007061004638671875, 0.00931549072265625, -0.017913818359375, -0.0055389404296875, 0.026763916015625, 0.033111572265625, 0.05096435546875, -0.0264892578125, 0.007617950439453125, 0.01187896728515625, 0.010223388671875, -0.006092071533203125, -0.02001953125, 0.03594970703125, -0.0228729248046875, 0.0199432373046875, 0.01251983642578125, -0.02838134765625, -0.042999267578125, 0.0027294158935546875, 0.00646209716796875, 0.057769775390625, -0.0130767822265625, 0.01287078857421875, -0.01024627685546875, 0.0167236328125, -0.0221099853515625, -0.02593994140625, -0.015655517578125, -0.0173187255859375, 0.0139312744140625, -0.003204345703125, 0.042724609375, -0.0085601806640625, 0.0276031494140625, -0.03692626953125, -0.01837158203125, 0.005413055419921875, -0.0092620849609375, -0.048736572265625, 0.0382080078125, 0.0194244384765625, 0.01274871826171875, 0.0166473388671875, -0.003803253173828125, 0.0106353759765625, -0.014556884765625, -0.00914764404296875, -0.05450439453125, 0.029998779296875, 0.035125732421875, 0.0161895751953125, 0.02484130859375, 0.0445556640625, 0.01306915283203125, 0.005428314208984375, 0.0489501953125, 0.0484619140625, -0.07452392578125, 0.00130462646484375, 0.0187835693359375, 0.0181732177734375, 0.040283203125, 0.005352020263671875, -0.007724761962890625, -0.019561767578125, 0.005359649658203125, -0.0018768310546875, -0.006870269775390625, 0.0167083740234375, 0.0177154541015625, 0.006031036376953125, -0.0307464599609375, 0.033538818359375, 0.01139068603515625, -0.0037593841552734375, -0.00672149658203125, -0.008453369140625, -0.0095367431640625, -0.03692626953125, 0.01026153564453125, 0.0212860107421875, -0.043060302734375, -0.10870361328125, -0.008819580078125, 0.02520751953125, -0.028839111328125, 0.0239410400390625, -0.0306396484375, 0.003326416015625, 0.0377197265625, -0.04229736328125, 0.0206298828125, -0.00916290283203125, -0.0229034423828125, -0.033935546875, -0.02410888671875, 0.0244293212890625, 0.0307769775390625, -0.067626953125, 0.02911376953125, -0.035980224609375, -0.0168914794921875, -0.020904541015625, -0.0065765380859375, 0.09649658203125, -0.05950927734375, -0.007556915283203125, 0.00647735595703125, 0.0293426513671875, 0.0087738037109375, -0.03662109375, 0.048583984375, -0.0673828125, -0.024017333984375, -0.01232147216796875, -0.0104827880859375, 0.0004620552062988281, -0.0296783447265625, -0.07257080078125, 0.11859130859375, 0.02264404296875, 0.0170745849609375, -0.0212249755859375, 0.06689453125, -0.013763427734375, 0.035308837890625, -0.007720947265625, 0.0218505859375, 0.0070953369140625, 0.04083251953125, 0.02825927734375, -0.003307342529296875, 0.039581298828125, 0.031768798828125, 0.035400390625, 0.013671875, 0.052520751953125, 0.0056915283203125, 0.013641357421875, 0.033447265625, -0.0338134765625, -0.0011739730834960938, -0.03759765625, -0.008636474609375, -0.0264892578125, -0.04168701171875, 0.01055908203125, -0.03607177734375, -0.0447998046875, -0.0087127685546875, 0.01824951171875, 0.0224609375, 0.01470947265625, 0.05780029296875, -0.049560546875, 0.00830078125, 0.0484619140625, -0.002513885498046875, -0.00710296630859375, -0.0034694671630859375, 0.00012105703353881836, -0.04669189453125, -0.027099609375, -0.01556396484375, 0.02862548828125, 0.02099609375, 0.046142578125, -0.0158233642578125, 0.0099334716796875, -0.003520965576171875, -0.0141143798828125, 0.012298583984375, 0.040130615234375, -0.057281494140625, 0.0168914794921875, 0.0174102783203125, 0.036773681640625, -0.00579071044921875, -0.009429931640625, 0.0197601318359375, 0.027374267578125, -0.0152587890625, -0.031341552734375, 0.0169525146484375, 0.005157470703125, -0.0029296875, -0.0184173583984375, 0.0082855224609375, -0.035675048828125, -0.008087158203125, -0.054718017578125, 0.0303497314453125, 0.04656982421875, 0.0567626953125, -0.00211334228515625, 0.059906005859375, -0.1256103515625, -0.025177001953125, -0.041473388671875, 0.004306793212890625, -0.01800537109375, 0.029754638671875, 0.04931640625, 0.021209716796875, 0.01277923583984375, -0.0202178955078125, -0.0163726806640625, 0.04998779296875, -0.01132965087890625, 0.034576416015625, -0.0226898193359375, -0.0188751220703125, -0.0211181640625, 0.0151214599609375, 0.0300140380859375, -0.008087158203125, 0.0001322031021118164, 0.015106201171875, 0.037445068359375, 0.00494384765625, 0.0207672119140625, 0.01140594482421875, 0.00885009765625, -0.0309295654296875, 0.006008148193359375, 0.0136871337890625, 0.008148193359375, -0.01027679443359375, -0.004024505615234375, 0.0423583984375, -0.004230499267578125, -0.007518768310546875, 0.00907135009765625, -0.0307464599609375, 0.0099334716796875, 0.0237274169921875, 0.0145111083984375, 0.0260162353515625, -0.002956390380859375, -0.004669189453125, -0.019683837890625, -0.0274505615234375, 0.01479339599609375, 0.032684326171875, -0.0223541259765625, 0.02545166015625, -0.01151275634765625, -0.014129638671875, 0.0360107421875, -0.00783538818359375, -0.02252197265625, 0.0198822021484375, 0.0293426513671875, -0.006725311279296875, -0.03466796875, -0.0172576904296875, 0.0037212371826171875, 0.040374755859375, 0.0005331039428710938, 0.01195526123046875, 0.0019779205322265625, 0.021240234375, -0.039581298828125, 0.0294036865234375, -0.049041748046875, -0.0258636474609375, 0.018646240234375, 0.0175323486328125, 0.0006594657897949219, -0.0160980224609375, -0.072021484375, 0.0404052734375, 0.053009033203125, -0.016693115234375, 0.05596923828125, 0.0303192138671875, -0.01337432861328125, -0.054534912109375, -0.00841522216796875, -0.0194244384765625, -0.021331787109375, -0.0305633544921875, -0.0025386810302734375, 0.021942138671875, 0.01488494873046875, -0.016448974609375, -0.017486572265625, 0.042449951171875, -0.0031185150146484375, 0.034820556640625, 0.0192413330078125, 0.04718017578125, 0.039215087890625, -0.007099151611328125, -0.057464599609375, 0.0188140869140625, 0.0018320083618164062, -0.0190582275390625, 0.03350830078125, 0.00707244873046875, 0.047882080078125, -0.038055419921875, 0.053253173828125, 0.0201263427734375, 0.049835205078125, -0.016510009765625, 0.006000518798828125, 0.02056884765625, 0.00789642333984375, 0.004116058349609375, -0.06610107421875, -0.036102294921875, -0.07000732421875, -0.005107879638671875, 0.05096435546875, -0.050140380859375, -0.022735595703125, -0.0885009765625, 0.025482177734375, 0.018829345703125, -0.0025844573974609375, -0.0638427734375, 0.054046630859375, -0.03533935546875, 0.047271728515625, -0.0200958251953125, 0.006023406982421875, -0.024810791015625, -0.0267333984375, -0.00591278076171875, -0.0321044921875, -0.035247802734375, 0.061309814453125, 0.0011510848999023438, -0.0019197463989257812, 0.0271148681640625, 0.0106658935546875, -0.0443115234375, 0.00919342041015625, -0.024658203125, 0.07598876953125, -0.053924560546875, -0.006671905517578125, 0.029510498046875, 0.0004830360412597656, -0.0248565673828125, -0.044036865234375, -0.0140533447265625, -0.008453369140625, -0.010345458984375, -0.020782470703125, -0.0167083740234375, -0.019317626953125, -0.0474853515625, -0.052947998046875, 0.0009975433349609375, 0.00237274169921875, -0.039093017578125, -0.00580596923828125, 0.0244140625, -0.021026611328125, -0.000675201416015625, -0.006923675537109375, -0.0010099411010742188, 0.03961181640625, 0.01523590087890625, 0.000835418701171875, 0.08721923828125, -0.0280609130859375, -0.00634765625, -0.01454925537109375, 0.0258026123046875, -0.006214141845703125, 0.0379638671875, 0.00624847412109375, 0.004535675048828125, 0.003326416015625, 0.03521728515625, -0.0416259765625, -0.029144287109375, -0.0283660888671875, -0.0015001296997070312, 0.01233673095703125, -0.01277923583984375, -0.0162353515625, -0.03326416015625, 0.010162353515625, 0.012481689453125, -0.0005121231079101562, 0.0177001953125, -0.0025310516357421875, -0.003856658935546875, -0.016693115234375, -0.017333984375, 0.022857666015625, -0.062103271484375, -0.03057861328125, 0.01324462890625, -0.029052734375, -0.0224151611328125, 0.002288818359375, -0.059326171875, 0.0018396377563476562, -0.0267486572265625, -0.000461578369140625, -0.06378173828125, 0.020050048828125, -0.004535675048828125, -0.0185089111328125, -0.0020198822021484375, -0.028350830078125, 0.00862884521484375, -0.00415802001953125, -0.0100860595703125, 0.0117645263671875, -0.0234375, -0.0234375, 0.024749755859375, -0.0046539306640625, 0.04046630859375, -0.050750732421875, -0.044219970703125, -0.00039696693420410156, 0.0058135986328125, -0.0079498291015625, -0.002376556396484375, 0.00376129150390625, 0.0212249755859375, -0.004184722900390625, 0.0308380126953125, 0.007068634033203125, 0.032379150390625, -0.0279998779296875, 0.04449462890625, -0.004863739013671875, -0.0193328857421875, 0.01371002197265625, 0.008392333984375, -0.0032596588134765625, -0.03900146484375, 0.003742218017578125, -0.05291748046875, 0.01036834716796875, -0.0044708251953125, -0.00966644287109375, 0.032745361328125 ]
38886dda8038d61e36741b7f5b52da7e216e3e7b
Wordpress Stackexchange Q: How to update taxonomy custom field with wp_update_term()? I'm using Clipper, a coupon theme developed by AppThemes.com, and I'm trying to programmatically import coupons. The problem I'm having is each coupon needs to have a "store" added when it's uploaded. I can add the "store name" just fine, but I'm not able to update one of the custom fields associated with the "stores" taxonomy. Below is my code to update the custom_field. 41 is the term_id of the taxonomy I'm trying to update. wp_update_term( 41, 'stores', array( 'clpr_store_url' => $url, 'clpr_store_aff_url' => $url ) ); It appears that "wp_update_term" does not allow me to update the field "clpr_store_url". Here is the documentation for the function but it doesn't help me out: http://codex.wordpress.org/Function_Reference/wp_update_term A: wp_update_term does not support custom fields so you will need to use update_term_meta instead. This stores values like this: update_term_meta( $term_id, $metakey, $metavalue ); Your code should look something like this: update_term_meta( 41, 'clpr_store_url', $url); update_term_meta( 41, 'clpr_store_aff_url', $url);
Q: How to update taxonomy custom field with wp_update_term()? I'm using Clipper, a coupon theme developed by AppThemes.com, and I'm trying to programmatically import coupons. The problem I'm having is each coupon needs to have a "store" added when it's uploaded. I can add the "store name" just fine, but I'm not able to update one of the custom fields associated with the "stores" taxonomy. Below is my code to update the custom_field. 41 is the term_id of the taxonomy I'm trying to update. wp_update_term( 41, 'stores', array( 'clpr_store_url' => $url, 'clpr_store_aff_url' => $url ) ); It appears that "wp_update_term" does not allow me to update the field "clpr_store_url". Here is the documentation for the function but it doesn't help me out: http://codex.wordpress.org/Function_Reference/wp_update_term A: wp_update_term does not support custom fields so you will need to use update_term_meta instead. This stores values like this: update_term_meta( $term_id, $metakey, $metavalue ); Your code should look something like this: update_term_meta( 41, 'clpr_store_url', $url); update_term_meta( 41, 'clpr_store_aff_url', $url); A: Assuming this * *store is custom post type. *stores is category *clpr_store_url a custom field for store which is custom post type The function wp_update_term() can only be used for updating information about a term itself, here in this case you can update info. such as name, slug etc. of a category - stores (See Notes for all allowed tags) So to update custom field value you should use function - update_post_meta() $post_id = $post->ID; $meta_key = 'clpr_store_url'; $meta_value = $url; $prev_value = $old_url; update_post_meta($post_id, $meta_key, $meta_value, $prev_value);
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:421988", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58938" }
[ 0.017852783203125, 0.0200347900390625, -0.0364990234375, -0.048248291015625, 0.01407623291015625, -0.018463134765625, -0.0289154052734375, -0.02435302734375, 0.033935546875, -0.0290374755859375, -0.029937744140625, -0.044281005859375, -0.0263214111328125, -0.046051025390625, 0.00983428955078125, -0.06146240234375, 0.032928466796875, 0.0015783309936523438, 0.0219268798828125, -0.0132598876953125, 0.0143585205078125, 0.0197296142578125, 0.01059722900390625, 0.0046539306640625, 0.0245513916015625, -0.042083740234375, 0.05743408203125, -0.0180511474609375, 0.01276397705078125, -0.017578125, 0.0196990966796875, -0.0032024383544921875, 0.03973388671875, -0.0277252197265625, -0.00464630126953125, -0.032684326171875, 0.012603759765625, -0.039398193359375, -0.036163330078125, 0.03314208984375, 0.0281829833984375, -0.010894775390625, -0.004779815673828125, 0.051239013671875, -0.0231475830078125, -0.0275726318359375, -0.0035495758056640625, -0.042083740234375, 0.022430419921875, -0.00463104248046875, 0.00695037841796875, 0.0286865234375, 0.0233001708984375, -0.0136260986328125, -0.0165557861328125, -0.006435394287109375, -0.037689208984375, -0.0182342529296875, 0.0052490234375, 0.0364990234375, 0.0168609619140625, -0.0087432861328125, 0.00885772705078125, -0.0149078369140625, 0.001735687255859375, -0.01111602783203125, 0.011138916015625, 0.02587890625, -0.052764892578125, -0.023040771484375, 0.040130615234375, -0.0162811279296875, 0.003292083740234375, 0.01151275634765625, 0.0021266937255859375, -0.049224853515625, 0.039306640625, -0.0218048095703125, -0.0016660690307617188, 0.04339599609375, 0.040008544921875, 0.007434844970703125, -0.004314422607421875, -0.007076263427734375, 0.030426025390625, 0.0360107421875, -0.0050048828125, -0.032745361328125, -0.0165252685546875, -0.03338623046875, -0.0156707763671875, -0.0223236083984375, -0.0595703125, 0.003818511962890625, 0.01343536376953125, -0.0236053466796875, 0.00970458984375, 0.03167724609375, -0.0606689453125, -0.036712646484375, 0.0296173095703125, -0.033843994140625, 0.01149749755859375, -0.01416778564453125, 0.0144195556640625, 0.039459228515625, 0.017669677734375, 0.023284912109375, 0.0439453125, -0.01377105712890625, 0.00836181640625, 0.036865234375, 0.011566162109375, -0.004993438720703125, -0.012939453125, -0.0244140625, -0.0236663818359375, 0.0230560302734375, -0.0133056640625, 0.006061553955078125, -0.00914764404296875, 0.0243072509765625, -0.016204833984375, -0.04937744140625, -0.0033416748046875, -0.0458984375, -0.0195465087890625, -0.0008697509765625, -0.057342529296875, 0.0154266357421875, -0.039764404296875, 0.012237548828125, 0.065185546875, 0.04718017578125, 0.02252197265625, -0.0099334716796875, 0.0228271484375, 0.033203125, 0.0200958251953125, 0.0190277099609375, -0.016082763671875, 0.0033473968505859375, 0.04443359375, -0.006557464599609375, 0.06268310546875, 0.0199737548828125, -0.00865936279296875, 0.0017452239990234375, 0.05072021484375, 0.0185089111328125, 0.007389068603515625, -0.0296630859375, 0.068115234375, -0.000881195068359375, -0.0225677490234375, -0.040771484375, 0.07965087890625, -0.061737060546875, -0.040283203125, -0.08905029296875, -0.0187225341796875, -0.0276947021484375, 0.0034027099609375, -0.003093719482421875, -0.040130615234375, 0.0633544921875, -0.035888671875, -0.01305389404296875, 0.018890380859375, 0.05267333984375, 0.0037670135498046875, 0.0282745361328125, 0.0035991668701171875, 0.036590576171875, 0.0005154609680175781, -0.01520538330078125, -0.038482666015625, 0.0247802734375, 0.04541015625, -0.034698486328125, -0.0188446044921875, -0.0335693359375, 0.07672119140625, -0.022216796875, -0.0240325927734375, -0.006580352783203125, 0.006801605224609375, 0.056121826171875, 0.0222930908203125, 0.0298614501953125, -0.0252838134765625, -0.0120849609375, -0.0251922607421875, 0.03826904296875, 0.02471923828125, 0.005764007568359375, -0.0209503173828125, 0.011871337890625, -0.0024967193603515625, -0.050323486328125, -0.0748291015625, 0.030242919921875, -0.0161895751953125, 0.0498046875, 0.00342559814453125, 0.02593994140625, -0.014068603515625, 0.0498046875, -0.0150909423828125, 0.027496337890625, 0.00823974609375, -0.018524169921875, -0.023406982421875, 0.04302978515625, -0.0119781494140625, -0.054046630859375, 0.0012035369873046875, 0.0692138671875, -0.02081298828125, 0.00778961181640625, 0.0095672607421875, -0.053863525390625, 0.0220794677734375, 0.04681396484375, -0.004802703857421875, 0.002567291259765625, -0.0254364013671875, 0.006572723388671875, 0.0027370452880859375, 0.00897216796875, 0.0184173583984375, 0.0295257568359375, 0.0240478515625, -0.00922393798828125, -0.033203125, 0.0001589059829711914, 0.005619049072265625, -0.08990478515625, 0.00443267822265625, 0.05950927734375, 0.0216827392578125, 0.0113372802734375, -0.0347900390625, -0.031646728515625, 0.0399169921875, 0.0008630752563476562, 0.01143646240234375, -0.0207366943359375, -0.0052337646484375, 0.040740966796875, -0.04803466796875, 0.033447265625, 0.00646209716796875, -0.004833221435546875, 0.018646240234375, 0.0278167724609375, -0.00815582275390625, -0.005496978759765625, 0.042144775390625, -0.029022216796875, -0.0009293556213378906, -0.006160736083984375, -0.01126861572265625, 0.004062652587890625, 0.0200347900390625, 0.0413818359375, 0.046722412109375, 0.05120849609375, -0.04571533203125, 0.0216522216796875, 0.00865936279296875, 0.0301361083984375, -0.004070281982421875, -0.0180816650390625, -0.0149383544921875, -0.00785064697265625, -0.048370361328125, 0.035858154296875, -0.0037059783935546875, -0.0276031494140625, -0.00327301025390625, 0.034423828125, -0.0261688232421875, -0.02276611328125, -0.007129669189453125, -0.0148162841796875, 0.002960205078125, 0.0040130615234375, -0.042510986328125, -0.042755126953125, 0.0102996826171875, -0.0023593902587890625, -0.0156707763671875, -0.00830078125, -0.01210784912109375, -0.0276947021484375, 0.051361083984375, -0.0161895751953125, 0.02484130859375, -0.016876220703125, 0.0357666015625, 0.040985107421875, 0.010101318359375, -0.0186614990234375, 0.0077362060546875, -0.02569580078125, -0.016357421875, 0.05419921875, 0.0212860107421875, -0.0203094482421875, -0.042572021484375, -0.00553131103515625, 0.02215576171875, 0.05133056640625, 0.006534576416015625, -0.031585693359375, 0.01953125, 0.02960205078125, -0.06427001953125, -0.0794677734375, -0.000820159912109375, -0.037567138671875, 0.0167236328125, -0.004718780517578125, -0.007671356201171875, -0.01224517822265625, 0.00821685791015625, 0.01528167724609375, 0.062225341796875, -0.048370361328125, -0.04052734375, -0.04327392578125, -0.0911865234375, -0.033111572265625, 0.0231170654296875, 0.00981903076171875, -0.005779266357421875, 0.03485107421875, 0.0063018798828125, -0.00724029541015625, 0.0309600830078125, 0.051422119140625, 0.0046234130859375, 0.0016994476318359375, 0.0091705322265625, -0.0081024169921875, 0.0214385986328125, -0.00997161865234375, 0.025909423828125, 0.053497314453125, -0.048583984375, -0.004146575927734375, 0.00360870361328125, 0.021087646484375, 0.0296783447265625, 0.0241546630859375, -0.0007486343383789062, 0.00897979736328125, 0.040374755859375, -0.0239410400390625, -0.0008177757263183594, -0.0274810791015625, -0.021728515625, 0.0256195068359375, 0.0200042724609375, -0.00548553466796875, -0.0139007568359375, 0.032623291015625, -0.0269317626953125, -0.0200653076171875, 0.025970458984375, -0.014892578125, -0.005641937255859375, -0.0231475830078125, -0.0458984375, -0.007717132568359375, 0.052490234375, -0.0120391845703125, 0.041534423828125, 0.037078857421875, 0.015350341796875, 0.0015096664428710938, 0.0007138252258300781, -0.04718017578125, -0.04876708984375, 0.0310821533203125, -0.08416748046875, 0.045013427734375, -0.10504150390625, -0.018829345703125, -0.0582275390625, 0.09600830078125, -0.0628662109375, -0.04437255859375, 0.01277923583984375, 0.03466796875, -0.018310546875, -0.0051727294921875, 0.010589599609375, -0.03179931640625, -0.0361328125, -0.023895263671875, 0.01134490966796875, -0.033447265625, -0.01102447509765625, 0.038909912109375, -0.0535888671875, -0.01532745361328125, 0.0396728515625, -0.0259552001953125, 0.00173187255859375, 0.00656890869140625, -0.036651611328125, -0.0172119140625, -0.0287628173828125, -0.003940582275390625, -0.0618896484375, -0.0193023681640625, 0.026641845703125, 0.03570556640625, -0.0171356201171875, -0.035614013671875, 0.01192474365234375, 0.057220458984375, -0.0110015869140625, -0.007640838623046875, -0.027587890625, -0.0013856887817382812, -0.0008993148803710938, 0.0115203857421875, -0.04693603515625, 0.01194000244140625, -0.0028858184814453125, 0.012054443359375, -0.04046630859375, 0.05426025390625, -0.0130615234375, -0.018035888671875, 0.026275634765625, -0.0416259765625, -0.019989013671875, -0.01346588134765625, -0.02178955078125, 0.00726318359375, -0.0261077880859375, -0.0014133453369140625, -0.0085906982421875, -0.0265960693359375, 0.043365478515625, -0.02667236328125, -0.0013551712036132812, 0.006175994873046875, 0.0628662109375, 0.00467681884765625, -0.018707275390625, -0.044921875, 0.007549285888671875, 0.025848388671875, 0.0252685546875, -0.006237030029296875, -0.0008440017700195312, -0.012420654296875, -0.01293182373046875, 0.007579803466796875, 0.0283050537109375, -0.032867431640625, 0.01727294921875, -0.00913238525390625, -0.021881103515625, 0.0185089111328125, -0.022216796875, 0.0196533203125, 0.01715087890625, -0.01442718505859375, -0.0271759033203125, -0.0391845703125, 0.032806396484375, -0.01837158203125, 0.056640625, 0.0032634735107421875, -0.032562255859375, 0.020294189453125, 0.0108489990234375, -0.031005859375, -0.002590179443359375, -0.00397491455078125, -0.022125244140625, -0.03802490234375, 0.0211029052734375, -0.03619384765625, 0.00005555152893066406, -0.0537109375, 0.0225982666015625, -0.0228118896484375, -0.00910186767578125, -0.006763458251953125, 0.00307464599609375, 0.024749755859375, -0.0237884521484375, -0.061920166015625, -0.03411865234375, 0.004241943359375, 0.035400390625, 0.0275421142578125, 0.05645751953125, 0.04705810546875, -0.03863525390625, -0.01325225830078125, -0.012847900390625, -0.0100860595703125, -0.00853729248046875, -0.0297698974609375, -0.01483154296875, 0.0369873046875, -0.0239105224609375, -0.0491943359375, 0.07843017578125, 0.02587890625, 0.008087158203125, -0.033050537109375, 0.025177001953125, 0.04937744140625, 0.0283050537109375, 0.0288238525390625, -0.030303955078125, -0.0251922607421875, 0.0080108642578125, -0.0005655288696289062, 0.02435302734375, 0.010162353515625, -0.0141143798828125, 0.0046844482421875, -0.006847381591796875, 0.01259613037109375, 0.0140838623046875, -0.0305023193359375, -0.018035888671875, -0.0218048095703125, -0.03448486328125, -0.0180206298828125, 0.013885498046875, 0.04052734375, -0.004634857177734375, -0.00460052490234375, -0.0098419189453125, 0.0305328369140625, -0.0303497314453125, -0.0002684593200683594, 0.003757476806640625, 0.0033130645751953125, -0.045166015625, -0.0313720703125, 0.00873565673828125, -0.0225372314453125, -0.00963592529296875, 0.0269927978515625, 0.0222625732421875, -0.050811767578125, -0.042449951171875, 0.05633544921875, -0.03314208984375, -0.01049041748046875, -0.033233642578125, 0.02337646484375, -0.01523590087890625, -0.0098419189453125, 0.059112548828125, 0.035797119140625, -0.039306640625, 0.0018863677978515625, -0.030303955078125, 0.008880615234375, -0.04449462890625, -0.04345703125, -0.01004791259765625, 0.002880096435546875, 0.003147125244140625, 0.0284576416015625, -0.00405120849609375, -0.01526641845703125, 0.0110015869140625, 0.0032329559326171875, -0.004119873046875, 0.041900634765625, 0.01091766357421875, -0.006679534912109375, 0.01181793212890625, 0.02203369140625, 0.018402099609375, -0.002292633056640625, 0.0181427001953125, -0.037689208984375, -0.0361328125, -0.042205810546875, 0.006427764892578125, 0.00312042236328125, 0.0171051025390625, 0.09197998046875, 0.08465576171875, 0.0183563232421875, 0.0384521484375, -0.0234375, 0.0032939910888671875, -0.01486968994140625, -0.013275146484375, -0.033905029296875, 0.0273590087890625, 0.037384033203125, -0.04248046875, 0.05889892578125, 0.025787353515625, 0.00891876220703125, 0.0185089111328125, -0.06396484375, 0.03668212890625, 0.03753662109375, -0.0262298583984375, 0.0143890380859375, 0.06768798828125, -0.0016298294067382812, 0.02581787109375, 0.0008792877197265625, -0.0015249252319335938, 0.034942626953125, -0.02001953125, 0.021514892578125, 0.04864501953125, 0.0621337890625, -0.022186279296875, -0.016387939453125, 0.01580810546875, -0.029144287109375, 0.01375579833984375, 0.0275421142578125, 0.06640625, -0.052947998046875, 0.01149749755859375, 0.0384521484375, 0.01551055908203125, 0.04534912109375, 0.0223846435546875, -0.0155181884765625, 0.0166015625, -0.06597900390625, -0.0254974365234375, -0.037445068359375, -0.0196685791015625, 0.04632568359375, 0.00031948089599609375, -0.006992340087890625, 0.0091094970703125, 0.00113677978515625, -0.01239013671875, -0.007221221923828125, -0.0013332366943359375, -0.025177001953125, -0.031707763671875, -0.0159149169921875, 0.01849365234375, -0.0220794677734375, -0.07293701171875, 0.034912109375, -0.02178955078125, 0.01233673095703125, 0.032928466796875, 0.035247802734375, 0.0831298828125, 0.04608154296875, 0.035247802734375, -0.0206298828125, 0.0116119384765625, 0.04254150390625, -0.00347137451171875, -0.0159912109375, 0.00664520263671875, 0.03643798828125, -0.03668212890625, 0.023101806640625, -0.01357269287109375, 0.00022900104522705078, -0.0228271484375, -0.03570556640625, 0.025390625, 0.043121337890625, -0.0325927734375, 0.0186920166015625, 0.029205322265625, -0.00711822509765625, 0.01611328125, 0.0335693359375, -0.04595947265625, -0.0258941650390625, 0.0284423828125, -0.04339599609375, -0.057098388671875, 0.016082763671875, -0.058990478515625, 0.07916259765625, 0.009185791015625, 0.00919342041015625, 0.0191497802734375, 0.0182647705078125, -0.050750732421875, 0.0037021636962890625, -0.0423583984375, 0.0281524658203125, 0.022216796875, 0.004703521728515625, -0.035675048828125, -0.00579071044921875, -0.01100921630859375, 0.004604339599609375, 0.06512451171875, 0.015533447265625, -0.041778564453125, -0.0247039794921875, 0.0228271484375, 0.031951904296875, 0.0036792755126953125, 0.036224365234375, -0.01043701171875, 0.0325927734375, 0.04052734375, -0.00836181640625, 0.040130615234375, 0.0034027099609375, -0.04205322265625, 0.00696563720703125, 0.01824951171875, 0.023834228515625, -0.027587890625, 0.050506591796875, -0.0292205810546875, -0.025726318359375, 0.0240325927734375, 0.0185089111328125, 0.00443267822265625, -0.006359100341796875, -0.051788330078125, 0.046417236328125, 0.033355712890625, -0.015869140625, 0.014434814453125, -0.0272064208984375, 0.048583984375, 0.01183319091796875, 0.004520416259765625, 0.115966796875, -0.01401519775390625, 0.02508544921875, 0.025726318359375, -0.0004074573516845703, 0.054595947265625, 0.04058837890625, 0.0010967254638671875, 0.00894927978515625, 0.11090087890625, 0.030364990234375, 0.0338134765625, -0.08184814453125, -0.055084228515625, -0.00983428955078125, -0.0137939453125, 0.0265350341796875, -0.0005049705505371094, 0.011566162109375, -0.004283905029296875, 0.00853729248046875, -0.058563232421875, 0.0174407958984375, 0.056610107421875, 0.0263519287109375, 0.008148193359375, 0.030975341796875, -0.0948486328125, -0.026885986328125, -0.0199737548828125, -0.005023956298828125, -0.01374053955078125, 0.031341552734375, 0.042022705078125, 0.0003635883331298828, -0.0143585205078125, -0.00927734375, -0.024871826171875, 0.06475830078125, 0.00391387939453125, 0.006458282470703125, -0.0283050537109375, -0.04888916015625, 0.005218505859375, 0.029144287109375, -0.0205841064453125, 0.06549072265625, 0.049835205078125, 0.064697265625, 0.012939453125, -0.010345458984375, 0.03924560546875, -0.0269927978515625, 0.028076171875, -0.038177490234375, 0.048797607421875, 0.0087127685546875, 0.0062255859375, -0.0302276611328125, 0.032806396484375, 0.0195159912109375, -0.00545501708984375, 0.0235748291015625, 0.01104736328125, 0.0021610260009765625, 0.045684814453125, 0.035064697265625, 0.0262908935546875, 0.03790283203125, -0.0232696533203125, 0.0007939338684082031, -0.0634765625, -0.036468505859375, 0.029327392578125, 0.0433349609375, -0.0093536376953125, 0.00997161865234375, -0.02484130859375, 0.005664825439453125, 0.00974273681640625, -0.007114410400390625, -0.0229644775390625, -0.0155792236328125, 0.0220489501953125, -0.0239105224609375, -0.0111236572265625, 0.00524139404296875, 0.02947998046875, 0.01457977294921875, -0.0153350830078125, 0.019439697265625, -0.00815582275390625, -0.0025463104248046875, -0.02020263671875, 0.0112152099609375, -0.004505157470703125, -0.0124053955078125, 0.0158538818359375, 0.0184478759765625, 0.0175323486328125, -0.0237884521484375, 0.01561737060546875, -0.0231781005859375, 0.0545654296875, -0.08026123046875, -0.021148681640625, -0.0012235641479492188, 0.01398468017578125, -0.0440673828125, 0.0232391357421875, -0.01325225830078125, -0.01316070556640625, -0.002307891845703125, -0.023040771484375, 0.0206298828125, 0.02587890625, 0.0263824462890625, 0.016845703125, 0.031982421875, 0.013671875, 0.0091400146484375, 0.002651214599609375, 0.037322998046875, 0.04144287109375, -0.0111083984375, 0.029327392578125, 0.01422882080078125, -0.00638580322265625, 0.0222930908203125, 0.0172882080078125, -0.0244140625, 0.0204620361328125, -0.038360595703125, 0.05108642578125, 0.0186920166015625, 0.032684326171875, -0.0290985107421875, 0.01154327392578125, 0.016754150390625, 0.0012102127075195312, 0.025665283203125, -0.020782470703125, -0.0206146240234375, -0.0273284912109375, -0.01407623291015625, 0.015655517578125, -0.016845703125, -0.01520538330078125, -0.04931640625, 0.0178680419921875, 0.0684814453125, 0.00875091552734375, -0.04534912109375, 0.037078857421875, -0.0555419921875, 0.0288238525390625, 0.0251007080078125, -0.0233154296875, 0.0186920166015625, 0.060211181640625, -0.0165863037109375, -0.004093170166015625, -0.0232086181640625, -0.01337432861328125, -0.037750244140625, -0.0166473388671875, -0.002079010009765625, 0.0095367431640625, -0.029144287109375, -0.036041259765625, -0.0178375244140625, 0.004283905029296875, 0.0180816650390625, -0.050262451171875, 0.0196990966796875, -0.0193634033203125, 0.0271453857421875, -0.0310211181640625, -0.0144805908203125, -0.037872314453125, 0.01137542724609375, -0.03125, -0.0157470703125, -0.0218353271484375, -0.049713134765625, -0.0921630859375, 0.012420654296875, -0.01160430908203125, -0.037689208984375, -0.017242431640625, -0.032958984375, 0.0068359375, 0.05572509765625, -0.006999969482421875, -0.0193939208984375, -0.052337646484375, 0.0274200439453125, 0.005664825439453125, 0.046722412109375, 0.0039825439453125, 0.0157623291015625, 0.00449371337890625, 0.03497314453125, 0.0305328369140625, 0.0069580078125, 0.0158843994140625, -0.03497314453125, 0.052642822265625, 0.0233306884765625, -0.0267181396484375, -0.03973388671875, 0.031829833984375, -0.0213775634765625, -0.01128387451171875, -0.0548095703125, -0.047576904296875, -0.00969696044921875, 0.1204833984375, 0.041778564453125, 0.029571533203125, -0.046661376953125, 0.01035308837890625, 0.0010251998901367188, 0.0357666015625, -0.018402099609375, -0.015106201171875, -0.0543212890625, -0.039581298828125, 0.01171875, 0.0013408660888671875, 0.0166015625, 0.0182342529296875, -0.0101165771484375, -0.0169219970703125, 0.01389312744140625, -0.012847900390625, -0.0433349609375, 0.032989501953125, 0.069580078125, -0.056671142578125, -0.026458740234375, -0.0091094970703125, 0.0026149749755859375, 0.0120849609375, -0.0450439453125, -0.0262298583984375, 0.0017747879028320312, -0.0165252685546875, -0.0005555152893066406, 0.0009055137634277344, 0.036041259765625, 0.0163726806640625, 0.0040283203125, -0.0113983154296875, 0.0218963623046875, -0.01175689697265625, -0.0034351348876953125, -0.00705718994140625, 0.049835205078125, 0.005992889404296875, 0.06390380859375, -0.00507354736328125, -0.02294921875, -0.0191192626953125, 0.0246734619140625, -0.0140838623046875, -0.00659942626953125, -0.0016183853149414062, -0.01910400390625, 0.017120361328125, -0.0208740234375, -0.022613525390625, -0.01030731201171875, -0.0068817138671875, -0.01458740234375, -0.0379638671875, 0.0118408203125 ]
6f7fd892676b1477c2a5beadad60ea53289a95ea
Wordpress Stackexchange Q: What is the purpose of this line of code in wp_trim_excerpt? Can someone please explain what the purpose of this code is: $text = str_replace(']]>', ']]>', $text); I'm referring to a line of code inside wp_trim_excerpt(), but I've seen something very similar in some other wp functions as well. On the surface, I would say it's not doing anything at all, but I have to give the wordpress developers more credit than that, so I'm sure there's a reason for this. I've looked into the php manual for str_replace to see if there is some special return value but everything is as I would expect. Is this some sort of ninja data validation technique? A: The replacement string contains a HTML entity which when displayed on a browser, looks like the needle string. It's converting > to a HTML entity. Reference: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/formatting.php#L2119
Q: What is the purpose of this line of code in wp_trim_excerpt? Can someone please explain what the purpose of this code is: $text = str_replace(']]>', ']]>', $text); I'm referring to a line of code inside wp_trim_excerpt(), but I've seen something very similar in some other wp functions as well. On the surface, I would say it's not doing anything at all, but I have to give the wordpress developers more credit than that, so I'm sure there's a reason for this. I've looked into the php manual for str_replace to see if there is some special return value but everything is as I would expect. Is this some sort of ninja data validation technique? A: The replacement string contains a HTML entity which when displayed on a browser, looks like the needle string. It's converting > to a HTML entity. Reference: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/formatting.php#L2119
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:421997", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/58970" }
[ 0.0028533935546875, -0.02191162109375, -0.042236328125, -0.0135955810546875, -0.02508544921875, -0.0350341796875, 0.001220703125, -0.00311279296875, -0.003231048583984375, 0.0202789306640625, 0.004039764404296875, -0.01323699951171875, 0.0006427764892578125, -0.037200927734375, -0.0014047622680664062, -0.010711669921875, -0.006732940673828125, 0.01186370849609375, 0.0263519287109375, -0.031646728515625, 0.0268096923828125, -0.0236358642578125, 0.0101776123046875, -0.01422882080078125, -0.035919189453125, -0.03839111328125, 0.1148681640625, -0.0576171875, -0.0009965896606445312, -0.031494140625, -0.022430419921875, 0.01383209228515625, 0.023651123046875, 0.03564453125, -0.021453857421875, 0.02191162109375, 0.0146942138671875, -0.006191253662109375, 0.0075225830078125, 0.0224456787109375, 0.012969970703125, 0.0074005126953125, 0.0059967041015625, -0.0209197998046875, -0.03460693359375, -0.0018749237060546875, 0.0142669677734375, 0.01262664794921875, 0.00641632080078125, 0.0042266845703125, 0.025909423828125, 0.0115203857421875, 0.039581298828125, 0.01456451416015625, -0.01071929931640625, 0.01270294189453125, -0.04132080078125, 0.034088134765625, 0.0148468017578125, 0.036590576171875, -0.0010356903076171875, 0.0202789306640625, -0.01168060302734375, -0.00612640380859375, 0.01436614990234375, -0.0278778076171875, 0.01114654541015625, 0.01181793212890625, -0.038421630859375, -0.005764007568359375, 0.052825927734375, -0.01325225830078125, -0.0223236083984375, -0.05181884765625, 0.01506805419921875, 0.04217529296875, -0.0401611328125, -0.033782958984375, 0.00484466552734375, 0.03692626953125, -0.024078369140625, -0.03912353515625, 0.010772705078125, -0.054168701171875, 0.02923583984375, -0.0295257568359375, -0.019012451171875, 0.0213470458984375, -0.0345458984375, -0.018402099609375, -0.0242767333984375, 0.017120361328125, 0.03204345703125, -0.037384033203125, -0.059722900390625, -0.01515960693359375, -0.004901885986328125, 0.0288543701171875, -0.04742431640625, 0.00824737548828125, 0.050018310546875, -0.049041748046875, 0.056488037109375, -0.041351318359375, 0.0379638671875, 0.033111572265625, -0.0017786026000976562, -0.06451416015625, 0.02142333984375, -0.01084136962890625, -0.00463104248046875, 0.0399169921875, -0.0361328125, -0.10577392578125, -0.0157623291015625, 0.037353515625, -0.03375244140625, -0.00862884521484375, 0.050811767578125, -0.06591796875, 0.01934814453125, 0.010223388671875, 0.00887298583984375, -0.028900146484375, 0.0109405517578125, -0.01079559326171875, -0.028961181640625, -0.010528564453125, -0.00843048095703125, 0.0018892288208007812, -0.0207672119140625, 0.018524169921875, 0.0214691162109375, 0.022979736328125, -0.007160186767578125, -0.019622802734375, 0.0149078369140625, -0.001163482666015625, -0.02069091796875, 0.01007843017578125, 0.002971649169921875, -0.056396484375, -0.01244354248046875, -0.00506591796875, 0.0007305145263671875, -0.01186370849609375, -0.006397247314453125, 0.028594970703125, 0.03350830078125, 0.002048492431640625, -0.04351806640625, 0.0110015869140625, 0.06219482421875, -0.01165008544921875, -0.0179443359375, -0.053924560546875, 0.0192718505859375, -0.04931640625, 0.003047943115234375, -0.0670166015625, 0.014007568359375, -0.02020263671875, 0.01922607421875, -0.052764892578125, -0.06884765625, 0.005672454833984375, -0.044525146484375, -0.01178741455078125, 0.0264739990234375, 0.03118896484375, 0.0001920461654663086, -0.0261077880859375, 0.05059814453125, 0.033050537109375, 0.004547119140625, 0.049530029296875, -0.0187225341796875, -0.0186614990234375, 0.03240966796875, 0.015106201171875, -0.007080078125, -0.01763916015625, 0.006313323974609375, 0.00751495361328125, -0.0275421142578125, 0.045867919921875, 0.02032470703125, 0.07958984375, -0.0187530517578125, 0.025390625, 0.0046539306640625, 0.002288818359375, -0.025970458984375, -0.01904296875, -0.01444244384765625, -0.01056671142578125, 0.044525146484375, 0.004703521728515625, 0.004291534423828125, 0.0009088516235351562, 0.052520751953125, 0.006195068359375, -0.004611968994140625, -0.028106689453125, -0.103759765625, 0.00884246826171875, -0.036773681640625, 0.045745849609375, -0.044219970703125, 0.019805908203125, 0.0304412841796875, 0.004390716552734375, -0.0404052734375, 0.0277557373046875, 0.01184844970703125, 0.0123138427734375, -0.0029010772705078125, 0.0076141357421875, 0.001220703125, -0.004550933837890625, 0.033172607421875, -0.00316619873046875, 0.0244293212890625, 0.0257568359375, 0.0374755859375, -0.0266265869140625, -0.00969696044921875, -0.0154266357421875, 0.0167083740234375, -0.003795623779296875, -0.00753021240234375, 0.034942626953125, 0.1025390625, 0.08026123046875, -0.02020263671875, -0.006256103515625, -0.00704193115234375, -0.05255126953125, -0.0257110595703125, 0.04913330078125, 0.052032470703125, 0.018157958984375, -0.0294189453125, -0.09783935546875, 0.0455322265625, -0.0270843505859375, 0.005954742431640625, -0.05841064453125, -0.02203369140625, 0.00905609130859375, 0.0189361572265625, -0.026519775390625, -0.0003743171691894531, -0.062469482421875, -0.02899169921875, 0.03338623046875, -0.018768310546875, 0.014190673828125, -0.0296783447265625, 0.018524169921875, -0.01041412353515625, 0.0216827392578125, 0.038726806640625, -0.035400390625, 0.0196380615234375, 0.022186279296875, 0.03936767578125, 0.034271240234375, -0.034759521484375, 0.02105712890625, 0.013153076171875, 0.033905029296875, -0.0020008087158203125, 0.00566864013671875, -0.02667236328125, -0.0170745849609375, 0.0027103424072265625, 0.0156707763671875, -0.0101165771484375, -0.025604248046875, 0.0119476318359375, 0.04034423828125, 0.026641845703125, -0.01267242431640625, 0.03643798828125, -0.06512451171875, -0.0216522216796875, -0.0281829833984375, -0.00879669189453125, -0.0288848876953125, 0.0014562606811523438, 0.028594970703125, -0.035247802734375, 0.0345458984375, 0.0207061767578125, -0.01493072509765625, -0.00047659873962402344, -0.0182342529296875, 0.0279083251953125, -0.018890380859375, 0.05126953125, 0.055755615234375, -0.00839996337890625, -0.01136016845703125, 0.018341064453125, -0.002445220947265625, 0.00170135498046875, 0.039794921875, 0.029541015625, 0.0220184326171875, -0.0701904296875, 0.00920867919921875, 0.0219268798828125, 0.0670166015625, -0.030792236328125, -0.058197021484375, -0.015472412109375, 0.040771484375, -0.060394287109375, -0.0287322998046875, -0.004108428955078125, -0.048980712890625, -0.029296875, 0.0028934478759765625, -0.041748046875, 0.02130126953125, 0.0198822021484375, -0.00412750244140625, 0.03240966796875, -0.045135498046875, -0.015869140625, -0.0501708984375, -0.070068359375, -0.0133819580078125, 0.01427459716796875, 0.00101470947265625, 0.01444244384765625, -0.005123138427734375, -0.0162811279296875, -0.03973388671875, -0.0095062255859375, 0.0228729248046875, -0.0006899833679199219, -0.0013132095336914062, 0.0306854248046875, -0.06036376953125, -0.01708984375, -0.01300048828125, 0.02294921875, 0.0256195068359375, -0.0251007080078125, 0.0057220458984375, 0.005523681640625, 0.00896453857421875, 0.055694580078125, -0.0274200439453125, -0.0229949951171875, 0.062469482421875, 0.05426025390625, -0.002201080322265625, -0.03155517578125, -0.01495361328125, -0.0599365234375, 0.0236968994140625, 0.033660888671875, 0.0118255615234375, -0.0019159317016601562, 0.0236663818359375, 0.0251617431640625, -0.01153564453125, 0.07568359375, -0.03802490234375, 0.0440673828125, 0.0050048828125, 0.0010538101196289062, -0.075439453125, 0.017578125, -0.01419830322265625, 0.026824951171875, 0.010955810546875, -0.0016994476318359375, -0.01340484619140625, -0.00858306884765625, -0.026123046875, -0.0161285400390625, 0.040374755859375, -0.0147247314453125, 0.01389312744140625, -0.0190277099609375, -0.02447509765625, -0.0307464599609375, 0.050872802734375, -0.028411865234375, -0.031768798828125, -0.0003135204315185547, 0.0120391845703125, 0.00783538818359375, -0.0081939697265625, -0.02587890625, -0.02874755859375, -0.050567626953125, 0.01505279541015625, -0.0033206939697265625, -0.0007953643798828125, -0.0484619140625, 0.052642822265625, -0.047943115234375, -0.007221221923828125, 0.02874755859375, -0.08843994140625, 0.01337432861328125, 0.01526641845703125, 0.033111572265625, -0.033203125, 0.00368499755859375, -0.07135009765625, 0.002048492431640625, -0.01056671142578125, 0.0178680419921875, 0.0270843505859375, 0.019775390625, -0.053680419921875, 0.0017518997192382812, 0.033966064453125, 0.033843994140625, -0.0079803466796875, 0.0145416259765625, -0.0172271728515625, -0.023193359375, 0.021881103515625, 0.023590087890625, -0.022247314453125, -0.023834228515625, -0.0184478759765625, -0.0215911865234375, 0.0274200439453125, 0.004032135009765625, -0.00399017333984375, 0.0455322265625, -0.02215576171875, -0.045013427734375, -0.01485443115234375, -0.003505706787109375, 0.030029296875, -0.01526641845703125, -0.0013971328735351562, -0.02716064453125, -0.034332275390625, 0.002223968505859375, 0.029388427734375, -0.053619384765625, 0.013641357421875, -0.007282257080078125, 0.04510498046875, -0.0209197998046875, -0.036376953125, 0.0221710205078125, 0.053070068359375, 0.0155029296875, -0.01556396484375, -0.00966644287109375, -0.046722412109375, 0.0504150390625, 0.0252838134765625, 0.01552581787109375, -0.024200439453125, 0.032867431640625, -0.00545501708984375, 0.0004029273986816406, -0.00566864013671875, -0.031494140625, 0.030242919921875, -0.019989013671875, 0.0150146484375, 0.017364501953125, 0.038299560546875, 0.00027298927307128906, 0.0286712646484375, -0.055450439453125, -0.005611419677734375, -0.0251922607421875, -0.0049591064453125, 0.03131103515625, -0.006824493408203125, -0.012664794921875, 0.0165863037109375, -0.0227508544921875, 0.034149169921875, 0.0298309326171875, -0.01453399658203125, -0.0170745849609375, -0.0572509765625, 0.0517578125, -0.03485107421875, -0.007556915283203125, 0.01580810546875, -0.0081329345703125, 0.06988525390625, 0.0173492431640625, -0.037689208984375, 0.0001233816146850586, 0.00731658935546875, 0.00652313232421875, 0.0158843994140625, 0.029205322265625, 0.0247039794921875, 0.001003265380859375, 0.00982666015625, 0.036590576171875, 0.057525634765625, -0.020751953125, -0.0080718994140625, -0.011627197265625, 0.0004711151123046875, -0.0171966552734375, 0.017303466796875, 0.035308837890625, -0.0184173583984375, 0.0233612060546875, -0.01015472412109375, 0.04327392578125, 0.0160369873046875, 0.041107177734375, 0.0090179443359375, -0.01497650146484375, 0.0010051727294921875, 0.03094482421875, -0.0198211669921875, -0.00482177734375, 0.0197906494140625, 0.06005859375, 0.0163726806640625, -0.0294189453125, -0.046905517578125, -0.007091522216796875, -0.044525146484375, -0.0290679931640625, 0.044677734375, 0.0290374755859375, -0.016082763671875, -0.05999755859375, -0.00543212890625, 0.071044921875, 0.022003173828125, -0.0119781494140625, 0.00325775146484375, -0.037689208984375, 0.01070404052734375, 0.0307159423828125, 0.01837158203125, -0.026947021484375, -0.035552978515625, 0.00458526611328125, -0.0207977294921875, -0.04949951171875, 0.03607177734375, -0.004062652587890625, -0.01329803466796875, -0.0149383544921875, 0.06195068359375, -0.0201568603515625, -0.0170440673828125, -0.014404296875, 0.00862884521484375, -0.061065673828125, 0.009857177734375, 0.047088623046875, 0.031829833984375, -0.0732421875, 0.0114898681640625, -0.042022705078125, 0.00978851318359375, -0.006870269775390625, -0.070556640625, -0.045440673828125, -0.0252532958984375, -0.021240234375, 0.00730133056640625, -0.00550079345703125, -0.0003218650817871094, 0.00472259521484375, 0.0277862548828125, -0.00829315185546875, 0.0187835693359375, -0.029388427734375, 0.0202484130859375, 0.01354217529296875, 0.0025768280029296875, -0.006832122802734375, 0.0328369140625, 0.0631103515625, -0.037933349609375, 0.0207366943359375, -0.0081634521484375, 0.007167816162109375, -0.0404052734375, 0.03948974609375, -0.0418701171875, 0.002368927001953125, 0.007022857666015625, 0.01311492919921875, -0.00443267822265625, -0.002414703369140625, -0.01079559326171875, -0.01507568359375, -0.00994110107421875, 0.0219573974609375, -0.023345947265625, -0.014312744140625, 0.003192901611328125, -0.005390167236328125, 0.0234527587890625, 0.0201263427734375, -0.0238800048828125, 0.0081939697265625, 0.0076141357421875, 0.00031447410583496094, -0.006290435791015625, 0.049957275390625, 0.015228271484375, 0.043426513671875, 0.01861572265625, 0.013916015625, 0.03485107421875, -0.057098388671875, 0.022247314453125, 0.07403564453125, 0.046112060546875, -0.005352020263671875, 0.019744873046875, 0.044586181640625, -0.01395416259765625, 0.0213165283203125, 0.054840087890625, 0.06927490234375, -0.08074951171875, 0.006961822509765625, 0.0041351318359375, -0.00592041015625, 0.032562255859375, 0.018768310546875, -0.02325439453125, -0.046905517578125, 0.047698974609375, -0.044403076171875, -0.00534820556640625, 0.0051727294921875, -0.0197296142578125, -0.012542724609375, -0.001461029052734375, 0.050811767578125, 0.01316070556640625, -0.048431396484375, 0.00469970703125, 0.022674560546875, 0.00955963134765625, -0.006168365478515625, 0.024932861328125, -0.0041046142578125, -0.0199737548828125, -0.046600341796875, -0.0117645263671875, -0.020233154296875, -0.0172576904296875, -0.059051513671875, -0.007694244384765625, 0.03369140625, 0.03143310546875, -0.022918701171875, -0.031707763671875, 0.04058837890625, -0.00923919677734375, -0.059600830078125, -0.006011962890625, 0.010162353515625, 0.054473876953125, -0.0199432373046875, 0.036956787109375, -0.021636962890625, 0.00555419921875, -0.024444580078125, -0.03790283203125, 0.09716796875, -0.00347137451171875, -0.044403076171875, 0.004039764404296875, -0.01119232177734375, -0.0073089599609375, -0.049957275390625, 0.020660400390625, -0.08648681640625, -0.04925537109375, -0.0364990234375, -0.0343017578125, 0.0025806427001953125, -0.08197021484375, -0.035736083984375, 0.0595703125, 0.01520538330078125, 0.033050537109375, 0.038116455078125, 0.01047515869140625, -0.039703369140625, -0.0086669921875, -0.0162506103515625, -0.032806396484375, -0.034759521484375, -0.0026493072509765625, -0.0018644332885742188, 0.0142822265625, -0.00482177734375, 0.01277923583984375, -0.0086669921875, -0.00629425048828125, 0.00931549072265625, 0.009002685546875, 0.002872467041015625, -0.031494140625, -0.02032470703125, 0.0273284912109375, 0.0013599395751953125, 0.01910400390625, 0.05615234375, -0.056854248046875, 0.03314208984375, -0.043121337890625, 0.0258026123046875, 0.01166534423828125, 0.0210723876953125, 0.01995849609375, 0.0249481201171875, 0.005096435546875, -0.048980712890625, 0.0099639892578125, 0.052276611328125, -0.09368896484375, -0.0008940696716308594, 0.07257080078125, 0.0372314453125, -0.04278564453125, -0.043304443359375, -0.0276336669921875, 0.0299072265625, -0.0087738037109375, 0.08331298828125, 0.052215576171875, 0.01409912109375, 0.10919189453125, 0.0247344970703125, 0.048370361328125, 0.0291748046875, 0.0021038055419921875, -0.009124755859375, 0.0008487701416015625, -0.0008902549743652344, -0.005390167236328125, 0.036834716796875, 0.020904541015625, 0.00485992431640625, -0.0294342041015625, -0.00815582275390625, 0.00927734375, 0.02264404296875, 0.0015630722045898438, -0.012786865234375, 0.0238037109375, -0.047149658203125, -0.018310546875, 0.027069091796875, -0.032257080078125, 0.004833221435546875, -0.01103973388671875, 0.019195556640625, 0.030181884765625, 0.0083770751953125, -0.0179443359375, -0.0146026611328125, -0.00446319580078125, 0.006473541259765625, 0.009674072265625, 0.01493072509765625, 0.0232086181640625, 0.0250091552734375, -0.00379180908203125, 0.034515380859375, -0.0052947998046875, -0.02813720703125, -0.009002685546875, 0.043914794921875, 0.01158905029296875, -0.020263671875, -0.00836181640625, -0.01873779296875, 0.055511474609375, 0.031890869140625, -0.01119232177734375, -0.04864501953125, 0.0037841796875, 0.045928955078125, -0.046783447265625, -0.016815185546875, -0.0251312255859375, 0.01297760009765625, 0.03436279296875, 0.018707275390625, -0.00012624263763427734, 0.02044677734375, 0.039642333984375, -0.0162506103515625, 0.055084228515625, -0.003692626953125, -0.0004754066467285156, 0.009185791015625, 0.0028705596923828125, 0.020263671875, 0.03564453125, 0.018524169921875, -0.004817962646484375, 0.04949951171875, -0.03802490234375, -0.01213836669921875, 0.047882080078125, 0.021392822265625, -0.00350189208984375, 0.0112762451171875, -0.0188140869140625, 0.038299560546875, -0.026763916015625, 0.0303497314453125, -0.0169525146484375, -0.0295562744140625, -0.01015472412109375, -0.00464630126953125, -0.00901031494140625, 0.0132598876953125, 0.02191162109375, 0.0018262863159179688, 0.060577392578125, -0.01503753662109375, 0.007747650146484375, -0.005413055419921875, 0.0155181884765625, -0.04510498046875, -0.01727294921875, 0.0028228759765625, -0.0268707275390625, 0.033416748046875, 0.01338958740234375, -0.043548583984375, 0.0528564453125, 0.0188140869140625, 0.0059356689453125, 0.053619384765625, -0.0130157470703125, -0.00693511962890625, -0.026519775390625, 0.0509033203125, -0.006992340087890625, -0.027679443359375, -0.0011663436889648438, 0.003360748291015625, 0.0042724609375, 0.043121337890625, 0.03814697265625, 0.01611328125, 0.003932952880859375, -0.04742431640625, 0.033447265625, -0.053375244140625, 0.04913330078125, 0.0261383056640625, 0.0070037841796875, 0.005619049072265625, 0.006683349609375, -0.0194549560546875, -0.01450347900390625, 0.01291656494140625, 0.01479339599609375, 0.0017757415771484375, -0.02020263671875, -0.0322265625, -0.004756927490234375, 0.0289306640625, -0.00377655029296875, 0.004180908203125, -0.027069091796875, 0.0148468017578125, 0.0009336471557617188, 0.0011415481567382812, -0.01398468017578125, -0.006378173828125, -0.0164337158203125, 0.008575439453125, -0.02423095703125, -0.0206451416015625, -0.044586181640625, -0.0105743408203125, -0.02520751953125, -0.01073455810546875, -0.0107421875, -0.00646209716796875, 0.011505126953125, -0.0019664764404296875, -0.043975830078125, 0.006649017333984375, 0.000054717063903808594, 0.03271484375, -0.0011434555053710938, -0.035858154296875, -0.045928955078125, 0.049072265625, -0.0278778076171875, 0.053802490234375, 0.125732421875, -0.0640869140625, -0.03369140625, 0.043212890625, 0.059295654296875, 0.059478759765625, -0.04632568359375, 0.0012998580932617188, 0.01532745361328125, 0.045684814453125, -0.0185699462890625, -0.047393798828125, -0.020904541015625, 0.08258056640625, 0.0242919921875, 0.0023632049560546875, 0.004993438720703125, 0.0049591064453125, -0.03265380859375, -0.0704345703125, 0.026824951171875, -0.0097503662109375, -0.039520263671875, -0.02288818359375, -0.03887939453125, -0.04150390625, 0.044219970703125, -0.0011758804321289062, -0.0007548332214355469, 0.00012183189392089844, 0.05096435546875, 0.0034923553466796875, 0.0280914306640625, 0.04266357421875, 0.0031185150146484375, -0.04351806640625, -0.0011968612670898438, -0.0213470458984375, 0.01026153564453125, -0.010345458984375, -0.004650115966796875, 0.0021381378173828125, 0.04901123046875, -0.02166748046875, -0.0063934326171875, -0.00585174560546875, -0.029327392578125, 0.0062408447265625, -0.01372528076171875, 0.00029540061950683594, 0.00623321533203125, 0.01727294921875, -0.0040283203125, -0.009124755859375, -0.0233001708984375, -0.0201416015625, 0.026763916015625, 0.0013751983642578125, 0.0016078948974609375, 0.023223876953125, -0.0765380859375, -0.03289794921875, 0.01055145263671875, 0.004085540771484375, 0.0166168212890625, -0.062347412109375, -0.04913330078125, -0.0304718017578125, -0.08807373046875, 0.00763702392578125, -0.04620361328125, -0.0269317626953125, 0.04705810546875, -0.03338623046875, -0.01522064208984375, -0.005550384521484375, 0.0266265869140625, 0.0014324188232421875, 0.002643585205078125, -0.0133514404296875, -0.0384521484375, 0.0010395050048828125, 0.01049041748046875, -0.021026611328125, 0.06927490234375, -0.01236724853515625, -0.01995849609375, 0.0053558349609375, 0.01251983642578125, -0.0035266876220703125, 0.0269927978515625, 0.011993408203125, -0.00635528564453125, -0.0148162841796875, -0.00789642333984375, -0.035247802734375, 0.06396484375, -0.050567626953125, 0.0263214111328125, 0.01311492919921875, 0.020263671875, 0.0268707275390625, 0.04205322265625, 0.01268768310546875, 0.0009174346923828125, 0.00843048095703125, 0.00614166259765625, -0.0198211669921875, -0.01442718505859375, 0.0010776519775390625, -0.01153564453125 ]
91601dbdf147e0b8e2368280441ef1b0ba9f1343
Wordpress Stackexchange Q: Override Current Theme Setting in wp_config.php I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like define('WP_HOME', 'http://someotherdomain.com'); This will override the 'home' option in the wp_options table. There is an option called 'current_theme' that stores the name of the currently selected theme. I'm wondering if there's a way to override this from the wp_config file and if so, will this actually change the theme. I've tried define('WP_CURRENT_THEME', 'someothertheme'); but it doesn't work. I need to do this in our development environment because the database is shared among two developers. I need to be able to work on one theme, while the other developer works on another theme. A: Drop this in a plugin & activate. I should note this doesn't take into account things like child themes - it's purely for toggling which theme renders based on SOME_FLAG. add_filter( 'stylesheet', 'switch_ma_theme' ); add_filter( 'template', 'switch_ma_theme' ); function switch_ma_theme() { // Return the theme directory name return SOME_FLAG ? 'theme-1' : 'theme-2'; }
Q: Override Current Theme Setting in wp_config.php I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like define('WP_HOME', 'http://someotherdomain.com'); This will override the 'home' option in the wp_options table. There is an option called 'current_theme' that stores the name of the currently selected theme. I'm wondering if there's a way to override this from the wp_config file and if so, will this actually change the theme. I've tried define('WP_CURRENT_THEME', 'someothertheme'); but it doesn't work. I need to do this in our development environment because the database is shared among two developers. I need to be able to work on one theme, while the other developer works on another theme. A: Drop this in a plugin & activate. I should note this doesn't take into account things like child themes - it's purely for toggling which theme renders based on SOME_FLAG. add_filter( 'stylesheet', 'switch_ma_theme' ); add_filter( 'template', 'switch_ma_theme' ); function switch_ma_theme() { // Return the theme directory name return SOME_FLAG ? 'theme-1' : 'theme-2'; } A: Another solution. add_action( 'template_redirect' , 'thisismyurl_change_theme_manually' ); function thisismyurl_change_theme_manually() { if ( 'twentyeleven' != get_stylesheet() && is_admin() ) switch_theme( 'twentyeleven', 'style.css' ); } But if your using different WordPress installs why don't you just click "activate theme" in the admin? ps. You can read more here: http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/ A: When you are sharing same database with different installs of wordpress having, then best solution is to add theme information in config file only because if you go to admin and change theme, it will change theme for all installs of wordpress sharing same database. You can add following code to your wp-config.php file: define('TEMPLATEPATH', '/path/to/your/new/theme/directory'); define('STYLESHEETPATH', '/path/to/your/new/theme/directory'); A: Why not use a plugin like WordPress › Theme Tester « WordPress Plugins or similar and have the devs use different admin logins? Not sure if Theme Tester handles widget selections, though. And it's still not a good idea to use one DB for two installs.
wordpress
{ "language": "en", "length": 338, "provenance": "stackexchange_00019.jsonl.gz:422022", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59037" }
[ 0.00916290283203125, -0.026885986328125, 0.01348114013671875, 0.031646728515625, -0.009063720703125, -0.0275115966796875, 0.05218505859375, -0.0296630859375, 0.0010776519775390625, 0.0281982421875, 0.0165863037109375, -0.01824951171875, 0.025543212890625, -0.03912353515625, -0.00911712646484375, -0.01290130615234375, 0.0240478515625, -0.03411865234375, -0.0036830902099609375, -0.006988525390625, -0.01097869873046875, 0.01131439208984375, -0.01102447509765625, 0.07061767578125, 0.03253173828125, -0.043365478515625, 0.049102783203125, -0.0270843505859375, 0.01544189453125, -0.006381988525390625, 0.00788116455078125, -0.008209228515625, 0.01561737060546875, 0.02783203125, -0.0251617431640625, -0.003047943115234375, 0.037506103515625, -0.00875091552734375, 0.005146026611328125, 0.03253173828125, 0.0362548828125, -0.02484130859375, -0.010284423828125, 0.07037353515625, -0.02740478515625, -0.05609130859375, 0.04998779296875, -0.01537322998046875, -0.00846099853515625, -0.01409149169921875, 0.02215576171875, 0.01629638671875, 0.039642333984375, -0.037506103515625, -0.0181121826171875, -0.00848388671875, -0.01508331298828125, -0.0150299072265625, 0.02703857421875, -0.01399993896484375, -0.00930023193359375, -0.0306549072265625, 0.037750244140625, -0.0014753341674804688, 0.015899658203125, -0.004848480224609375, 0.0162506103515625, 0.0183868408203125, -0.05523681640625, 0.0306396484375, 0.0537109375, -0.05133056640625, 0.01947021484375, -0.030120849609375, -0.038360595703125, 0.02484130859375, -0.005191802978515625, -0.0189971923828125, 0.03759765625, -0.047698974609375, 0.012176513671875, -0.021759033203125, -0.0006961822509765625, -0.019775390625, 0.023956298828125, 0.0018892288208007812, -0.0032806396484375, -0.0117950439453125, -0.0166473388671875, 0.00632476806640625, -0.016998291015625, -0.00342559814453125, -0.0001373291015625, 0.007122039794921875, -0.007312774658203125, -0.0147705078125, 0.0162506103515625, 0.0172576904296875, -0.03497314453125, 0.004703521728515625, 0.0029144287109375, -0.020172119140625, 0.0123443603515625, -0.0321044921875, -0.0033969879150390625, 0.044342041015625, 0.006450653076171875, -0.012908935546875, -0.004650115966796875, 0.01509857177734375, -0.0091705322265625, -0.005023956298828125, -0.020111083984375, -0.0288848876953125, -0.016204833984375, 0.003894805908203125, -0.039764404296875, -0.00730133056640625, 0.005435943603515625, -0.01263427734375, 0.027618408203125, 0.042999267578125, -0.007717132568359375, -0.004180908203125, -0.00937652587890625, -0.00635528564453125, -0.006130218505859375, -0.048065185546875, -0.006565093994140625, 0.05853271484375, -0.032135009765625, -0.0321044921875, 0.032623291015625, 0.038543701171875, 0.02032470703125, -0.031768798828125, 0.0311431884765625, -0.003414154052734375, -0.01068878173828125, 0.01708984375, 0.01092529296875, -0.02984619140625, -0.032501220703125, -0.0024242401123046875, -0.007328033447265625, 0.040130615234375, 0.003833770751953125, 0.00565338134765625, -0.0007767677307128906, -0.0157928466796875, -0.0014486312866210938, -0.056915283203125, 0.00801849365234375, 0.01488494873046875, 0.03753662109375, -0.002040863037109375, 0.0202484130859375, -0.016510009765625, 0.00838470458984375, -0.015106201171875, -0.0138702392578125, -0.0241546630859375, 0.006725311279296875, 0.0234527587890625, -0.0277252197265625, 0.053070068359375, 0.0035915374755859375, -0.0029430389404296875, 0.013275146484375, 0.004486083984375, 0.03472900390625, 0.0007071495056152344, 0.034271240234375, 0.01020050048828125, 0.0006823539733886719, 0.00431060791015625, -0.004425048828125, 0.012908935546875, 0.0242156982421875, 0.047882080078125, -0.00315093994140625, -0.0311279296875, 0.0191192626953125, -0.0095672607421875, -0.035430908203125, 0.00495147705078125, 0.02789306640625, 0.045257568359375, -0.020904541015625, 0.0189208984375, 0.056793212890625, 0.006923675537109375, -0.052215576171875, 0.022125244140625, 0.00899505615234375, -0.041229248046875, 0.024261474609375, -0.011474609375, 0.0037288665771484375, 0.0206298828125, 0.04412841796875, 0.005191802978515625, 0.013214111328125, -0.021209716796875, -0.03759765625, -0.01381683349609375, -0.0139617919921875, 0.0215301513671875, 0.028076171875, 0.0009508132934570312, -0.011993408203125, -0.03314208984375, 0.006191253662109375, -0.02435302734375, -0.0550537109375, 0.0307464599609375, -0.00882720947265625, 0.0233612060546875, 0.02325439453125, 0.033416748046875, 0.027587890625, 0.01239776611328125, 0.01012420654296875, -0.0101318359375, 0.01496124267578125, -0.036468505859375, -0.00455474853515625, -0.030120849609375, 0.004703521728515625, 0.00554656982421875, -0.030975341796875, 0.035125732421875, 0.010223388671875, -0.0200958251953125, -0.0128631591796875, 0.00457000732421875, 0.0192413330078125, -0.07080078125, 0.0087890625, 0.041473388671875, 0.0274810791015625, 0.0131683349609375, -0.019683837890625, 0.0031223297119140625, 0.0555419921875, -0.01093292236328125, 0.01096343994140625, 0.0046844482421875, 0.03607177734375, 0.0183258056640625, 0.00626373291015625, -0.0018596649169921875, 0.0204925537109375, -0.09942626953125, 0.04730224609375, 0.029022216796875, -0.03436279296875, -0.042816162109375, 0.00797271728515625, 0.00019121170043945312, 0.0104827880859375, -0.007488250732421875, -0.0164642333984375, 0.01195526123046875, 0.050048828125, 0.0019741058349609375, 0.014312744140625, -0.01087188720703125, -0.0268096923828125, 0.0004601478576660156, 0.01129913330078125, -0.0180206298828125, 0.0034542083740234375, 0.02667236328125, -0.014892578125, -0.0286102294921875, -0.0299835205078125, 0.01800537109375, -0.01052093505859375, -0.0098724365234375, -0.031219482421875, -0.00432586669921875, -0.060791015625, -0.01360321044921875, 0.01355743408203125, -0.05657958984375, -0.01641845703125, -0.00972747802734375, 0.01715087890625, 0.01383209228515625, 0.006999969482421875, 0.034271240234375, -0.0557861328125, 0.076416015625, -0.049163818359375, 0.00020122528076171875, 0.0313720703125, -0.0289764404296875, 0.0269927978515625, -0.0325927734375, 0.025604248046875, 0.03778076171875, -0.01393890380859375, -0.0086822509765625, 0.00794219970703125, -0.0231170654296875, 0.0018854141235351562, -0.006984710693359375, -0.028289794921875, 0.0038242340087890625, -0.059722900390625, 0.01296234130859375, 0.0099639892578125, -0.0085601806640625, 0.0007300376892089844, -0.0250091552734375, -0.009521484375, 0.01430511474609375, -0.0283355712890625, 0.0032444000244140625, 0.04522705078125, -0.026885986328125, 0.037384033203125, -0.007595062255859375, -0.004852294921875, -0.040679931640625, 0.0172576904296875, -0.0029544830322265625, -0.0009508132934570312, -0.0745849609375, -0.0276031494140625, -0.09063720703125, -0.0660400390625, -0.037750244140625, 0.015777587890625, -0.0004372596740722656, 0.01045989990234375, 0.0672607421875, 0.01094818115234375, -0.0662841796875, -0.00007265806198120117, 0.0184173583984375, -0.0198211669921875, 0.0271453857421875, 0.0229949951171875, -0.0229644775390625, -0.0191497802734375, 0.01267242431640625, -0.028106689453125, 0.0102081298828125, -0.021087646484375, -0.0252838134765625, -0.0238494873046875, 0.007617950439453125, -0.02191162109375, 0.0092620849609375, 0.03521728515625, -0.007144927978515625, -0.00969696044921875, -0.04583740234375, -0.01641845703125, -0.0279083251953125, -0.0615234375, 0.044647216796875, 0.04248046875, -0.0101318359375, 0.00882720947265625, -0.0099945068359375, 0.017852783203125, -0.0094146728515625, 0.034423828125, -0.037872314453125, 0.07305908203125, 0.0130767822265625, 0.022979736328125, -0.059356689453125, -0.018157958984375, -0.038055419921875, 0.032470703125, -0.005535125732421875, 0.00011736154556274414, -0.022003173828125, 0.033355712890625, -0.01358795166015625, -0.05255126953125, 0.01611328125, -0.0787353515625, 0.0005116462707519531, -0.01641845703125, 0.01062774658203125, 0.01971435546875, 0.08123779296875, -0.05670166015625, -0.005008697509765625, 0.0191650390625, 0.02667236328125, -0.03131103515625, -0.0233917236328125, -0.07177734375, -0.0197906494140625, -0.13671875, -0.0221710205078125, -0.03070068359375, -0.043121337890625, -0.01282501220703125, 0.004901885986328125, -0.07525634765625, -0.06256103515625, 0.0209197998046875, -0.0257568359375, -0.03924560546875, 0.030609130859375, -0.043914794921875, -0.0312042236328125, 0.005062103271484375, -0.01369476318359375, -0.0650634765625, -0.02618408203125, -0.01209259033203125, 0.047332763671875, 0.0301971435546875, -0.016815185546875, -0.017974853515625, 0.04412841796875, -0.014923095703125, 0.040435791015625, -0.01885986328125, 0.0102996826171875, 0.01082611083984375, -0.007198333740234375, -0.01025390625, -0.0025787353515625, 0.007568359375, 0.00858306884765625, -0.05621337890625, 0.017913818359375, -0.005451202392578125, 0.0249786376953125, 0.0428466796875, -0.06329345703125, -0.06915283203125, -0.0295257568359375, 0.0030231475830078125, -0.00562286376953125, -0.0164947509765625, -0.002384185791015625, -0.011322021484375, -0.04266357421875, 0.057281494140625, -0.0266265869140625, -0.02264404296875, -0.00199127197265625, 0.07342529296875, 0.0193328857421875, -0.02813720703125, 0.004642486572265625, 0.0144500732421875, 0.025115966796875, 0.01096343994140625, 0.01593017578125, -0.0201568603515625, -0.034881591796875, 0.044647216796875, -0.0045166015625, -0.01386260986328125, 0.009033203125, 0.051971435546875, 0.0029468536376953125, -0.038848876953125, 0.0157012939453125, -0.00421905517578125, 0.0038013458251953125, 0.00555419921875, -0.0145721435546875, -0.0082855224609375, -0.0178985595703125, 0.022613525390625, 0.0250244140625, -0.006824493408203125, -0.041717529296875, -0.02471923828125, -0.0005245208740234375, 0.03173828125, 0.0241851806640625, 0.0179290771484375, 0.0061798095703125, 0.01284027099609375, 0.035919189453125, 0.01497650146484375, -0.0143890380859375, 0.06640625, -0.03253173828125, 0.06317138671875, -0.00934600830078125, -0.007801055908203125, -0.042633056640625, -0.00954437255859375, 0.046478271484375, -0.0219879150390625, -0.05731201171875, -0.0299530029296875, -0.0171051025390625, 0.0193023681640625, 0.029144287109375, -0.0148468017578125, 0.057098388671875, 0.0029449462890625, -0.0262908935546875, -0.0202484130859375, -0.0621337890625, -0.0211639404296875, -0.069580078125, 0.023193359375, 0.013641357421875, -0.01195526123046875, 0.0292816162109375, 0.017120361328125, 0.047119140625, 0.0055389404296875, -0.03289794921875, -0.018768310546875, -0.01470184326171875, -0.0009822845458984375, 0.0279541015625, 0.004550933837890625, 0.0311431884765625, -0.04071044921875, 0.056243896484375, -0.0352783203125, -0.0311126708984375, 0.01206207275390625, 0.0595703125, -0.01210784912109375, 0.005565643310546875, 0.005950927734375, -0.024993896484375, -0.007354736328125, 0.004444122314453125, -0.0623779296875, -0.051116943359375, -0.0234527587890625, 0.0090179443359375, 0.042022705078125, -0.0267486572265625, -0.02410888671875, -0.0003285408020019531, -0.02276611328125, 0.005107879638671875, 0.0165863037109375, -0.0450439453125, 0.0193939208984375, 0.027069091796875, -0.07293701171875, 0.015380859375, 0.0484619140625, -0.10455322265625, -0.075927734375, 0.007781982421875, -0.0228118896484375, 0.01091766357421875, -0.0056610107421875, 0.03759765625, -0.01335906982421875, -0.04840087890625, -0.006130218505859375, -0.0019426345825195312, 0.055511474609375, 0.0213165283203125, -0.060272216796875, 0.01364898681640625, -0.06109619140625, -0.0163421630859375, -0.060150146484375, -0.054931640625, -0.057342529296875, -0.0120086669921875, 0.0016183853149414062, 0.021240234375, -0.0184783935546875, -0.045135498046875, -0.024139404296875, 0.004558563232421875, 0.041351318359375, 0.04150390625, -0.026824951171875, 0.07391357421875, -0.01241302490234375, 0.0272064208984375, -0.014892578125, 0.016571044921875, -0.026824951171875, 0.005748748779296875, 0.01837158203125, -0.04754638671875, -0.0225372314453125, 0.0028972625732421875, -0.0313720703125, 0.0164337158203125, 0.048797607421875, -0.01444244384765625, 0.0312347412109375, -0.0080718994140625, -0.0056304931640625, -0.026611328125, -0.033843994140625, -0.038330078125, 0.0130615234375, -0.02911376953125, -0.0194091796875, -0.01136016845703125, 0.0113525390625, 0.001453399658203125, 0.03472900390625, -0.0194549560546875, 0.0206756591796875, 0.01421356201171875, -0.0753173828125, 0.0899658203125, 0.0943603515625, -0.01166534423828125, 0.039154052734375, -0.0031261444091796875, -0.005039215087890625, 0.0216064453125, 0.01593017578125, -0.006595611572265625, -0.006710052490234375, 0.01210784912109375, -0.0109405517578125, 0.010101318359375, -0.01751708984375, -0.005756378173828125, 0.0178680419921875, 0.04193115234375, 0.045684814453125, -0.06573486328125, 0.0169677734375, 0.0122222900390625, 0.0009870529174804688, 0.051910400390625, 0.03497314453125, 0.00399017333984375, 0.0035419464111328125, 0.009307861328125, -0.024505615234375, -0.0029277801513671875, 0.018707275390625, -0.00013887882232666016, -0.02734375, -0.0235748291015625, 0.01314544677734375, 0.005817413330078125, -0.0181884765625, -0.00180816650390625, 0.0017023086547851562, -0.0222015380859375, 0.01213836669921875, 0.010345458984375, 0.00925445556640625, -0.052032470703125, -0.060546875, -0.0010976791381835938, -0.01073455810546875, -0.03643798828125, -0.0175628662109375, 0.0022640228271484375, 0.019989013671875, 0.026702880859375, -0.0220184326171875, -0.0009832382202148438, 0.015655517578125, -0.00400543212890625, -0.00930023193359375, -0.002696990966796875, 0.02044677734375, 0.005565643310546875, 0.0005364418029785156, 0.0190582275390625, -0.0240478515625, -0.0209503173828125, 0.005947113037109375, 0.0233154296875, 0.0345458984375, -0.0188446044921875, -0.016143798828125, 0.044158935546875, 0.0235443115234375, -0.011749267578125, 0.00769805908203125, 0.0153045654296875, -0.049591064453125, -0.054656982421875, -0.003551483154296875, -0.08221435546875, -0.01611328125, -0.032318115234375, -0.01519012451171875, 0.09100341796875, -0.052764892578125, 0.0190887451171875, 0.054412841796875, 0.034912109375, -0.01512908935546875, 0.0244293212890625, -0.047149658203125, 0.055633544921875, 0.0231170654296875, 0.006732940673828125, -0.022674560546875, 0.004421234130859375, 0.0015201568603515625, -0.00653076171875, 0.01544189453125, 0.004825592041015625, -0.004444122314453125, -0.01959228515625, 0.0273590087890625, 0.034637451171875, -0.00732421875, 0.020263671875, -0.0419921875, 0.0095977783203125, -0.0335693359375, -0.06768798828125, -0.0057525634765625, 0.0062408447265625, -0.05902099609375, 0.0025043487548828125, 0.0001798868179321289, -0.01154327392578125, -0.012298583984375, 0.04815673828125, -0.06585693359375, -0.0005626678466796875, 0.044525146484375, -0.04278564453125, 0.00844573974609375, 0.0029048919677734375, 0.017120361328125, 0.0079498291015625, 0.0128021240234375, -0.005023956298828125, 0.03851318359375, -0.0095062255859375, -0.023712158203125, 0.01384735107421875, 0.00827789306640625, -0.037384033203125, -0.01910400390625, -0.0177001953125, 0.01293182373046875, -0.00455474853515625, 0.0155181884765625, 0.0474853515625, 0.0355224609375, 0.02239990234375, 0.04107666015625, 0.017974853515625, 0.022491455078125, -0.033935546875, -0.028228759765625, 0.01218414306640625, -0.00884246826171875, -0.0058135986328125, 0.0003733634948730469, 0.00004982948303222656, -0.031585693359375, -0.00701904296875, -0.036529541015625, 0.0124664306640625, 0.03912353515625, -0.01544189453125, 0.0027103424072265625, 0.040863037109375, -0.027618408203125, 0.0268096923828125, -0.06787109375, 0.031524658203125, 0.009857177734375, 0.07000732421875, 0.0172882080078125, 0.10455322265625, 0.00383758544921875, -0.0285797119140625, -0.03643798828125, 0.0275726318359375, -0.0207672119140625, 0.0288848876953125, -0.060516357421875, -0.030120849609375, -0.01947021484375, 0.05029296875, 0.0098724365234375, 0.0116424560546875, 0.041046142578125, 0.034332275390625, -0.0147705078125, -0.0210723876953125, 0.050140380859375, -0.0200653076171875, 0.03497314453125, -0.0382080078125, 0.03955078125, -0.0009813308715820312, -0.01163482666015625, -0.0016384124755859375, 0.006313323974609375, 0.040435791015625, -0.0105438232421875, 0.0589599609375, 0.00203704833984375, 0.01287841796875, -0.0303802490234375, 0.049163818359375, -0.0238800048828125, 0.0435791015625, -0.07080078125, -0.019561767578125, -0.0251617431640625, -0.0148773193359375, 0.042633056640625, 0.03887939453125, -0.0068206787109375, 0.0020580291748046875, -0.0115203857421875, -0.02716064453125, 0.0128326416015625, 0.0195770263671875, -0.01885986328125, 0.031951904296875, 0.036956787109375, -0.005924224853515625, -0.0531005859375, -0.039337158203125, -0.034088134765625, 0.06646728515625, 0.0289306640625, 0.0374755859375, -0.003620147705078125, 0.037200927734375, -0.00981903076171875, 0.0081787109375, -0.0264739990234375, -0.03350830078125, 0.056488037109375, 0.00677490234375, -0.0011873245239257812, 0.007244110107421875, -0.027374267578125, 0.0012149810791015625, 0.054718017578125, -0.0306396484375, 0.01410675048828125, -0.021331787109375, 0.027313232421875, -0.041046142578125, -0.002635955810546875, -0.0295562744140625, -0.058135986328125, -0.06732177734375, -0.0008244514465332031, 0.025543212890625, 0.039215087890625, -0.0008053779602050781, 0.00749969482421875, 0.01068115234375, 0.0194549560546875, -0.002899169921875, 0.06805419921875, -0.0133819580078125, 0.0240631103515625, -0.054656982421875, -0.07647705078125, -0.003749847412109375, -0.005680084228515625, -0.0130615234375, 0.0028591156005859375, 0.0697021484375, 0.007511138916015625, -0.043701171875, 0.00997161865234375, -0.00023758411407470703, -0.0023899078369140625, -0.0321044921875, -0.0155792236328125, 0.0546875, -0.017578125, -0.009979248046875, -0.024749755859375, -0.00897216796875, -0.0531005859375, -0.0159454345703125, 0.017059326171875, -0.036712646484375, -0.0264892578125, -0.03973388671875, 0.0297393798828125, 0.031524658203125, 0.0012578964233398438, -0.046112060546875, 0.04241943359375, -0.03955078125, 0.05792236328125, -0.0009474754333496094, -0.05096435546875, -0.003200531005859375, -0.0282745361328125, -0.0254058837890625, -0.01081085205078125, -0.06744384765625, 0.0034389495849609375, -0.017974853515625, -0.001087188720703125, 0.0440673828125, 0.0218048095703125, -0.0308380126953125, -0.0083465576171875, -0.053466796875, 0.060882568359375, -0.093994140625, -0.0095977783203125, 0.0274658203125, -0.01165008544921875, -0.039886474609375, -0.0740966796875, 0.02288818359375, -0.068359375, -0.003726959228515625, 0.0107879638671875, -0.037078857421875, -0.023529052734375, -0.04229736328125, -0.0262451171875, -0.00901031494140625, 0.0279998779296875, -0.0396728515625, -0.020782470703125, 0.024261474609375, -0.01194000244140625, 0.031982421875, 0.01409149169921875, -0.04022216796875, 0.010162353515625, 0.015716552734375, 0.036834716796875, 0.055633544921875, -0.024200439453125, 0.057403564453125, -0.03857421875, 0.045135498046875, 0.0023097991943359375, 0.045989990234375, -0.020294189453125, -0.0034313201904296875, -0.007007598876953125, 0.00873565673828125, -0.0302886962890625, -0.038482666015625, -0.005176544189453125, -0.0027713775634765625, -0.0010118484497070312, -0.025604248046875, -0.02880859375, -0.029327392578125, 0.0225677490234375, 0.03466796875, 0.0051727294921875, 0.02740478515625, -0.0938720703125, -0.0059814453125, 0.037078857421875, -0.01386260986328125, 0.010162353515625, -0.09130859375, -0.001861572265625, 0.0018329620361328125, -0.0408935546875, -0.024993896484375, 0.0078125, -0.05853271484375, 0.01351165771484375, -0.0268402099609375, -0.003269195556640625, -0.039794921875, -0.0234222412109375, 0.060943603515625, -0.033966064453125, 0.03790283203125, -0.0177154541015625, 0.03521728515625, 0.0550537109375, -0.01006317138671875, 0.0266265869140625, 0.0297698974609375, -0.0179595947265625, -0.0193939208984375, 0.04351806640625, -0.0005426406860351562, 0.025634765625, -0.02960205078125, 0.01507568359375, 0.005588531494140625, -0.004825592041015625, 0.0033969879150390625, -0.009368896484375, 0.0053253173828125, -0.033782958984375, 0.043914794921875, 0.01444244384765625, 0.0236053466796875, -0.0007500648498535156, 0.027069091796875, -0.0556640625, 0.0009341239929199219, -0.031951904296875, -0.0361328125, 0.01611328125, -0.0294647216796875, 0.035247802734375, -0.007568359375, 0.01465606689453125, 0.01224517822265625, -0.0235595703125, 0.0209808349609375 ]
319df692b205c987ced38977cd877c929758ec75
Wordpress Stackexchange Q: get attachment title based on attachment id I'm getting an image through getMeta. It returns me the id of the attachment. Now I want to get the titel, alternative text, description and so on. For the alternative text this works very well: get_post_meta($logo, '_wp_attachment_image_alt', true); Now I want to get the title. I found out I can do that with $attachment->post_title, but here I only have the id. How do I get the title for an attachment id? A: If you have the attachment id, you can use get_the_title() $attachment_title = get_the_title($attach_id) http://codex.wordpress.org/Function_Reference/get_the_title
Q: get attachment title based on attachment id I'm getting an image through getMeta. It returns me the id of the attachment. Now I want to get the titel, alternative text, description and so on. For the alternative text this works very well: get_post_meta($logo, '_wp_attachment_image_alt', true); Now I want to get the title. I found out I can do that with $attachment->post_title, but here I only have the id. How do I get the title for an attachment id? A: If you have the attachment id, you can use get_the_title() $attachment_title = get_the_title($attach_id) http://codex.wordpress.org/Function_Reference/get_the_title
wordpress
{ "language": "en", "length": 94, "provenance": "stackexchange_00019.jsonl.gz:422029", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59061" }
[ -0.01263427734375, -0.00881195068359375, 0.002437591552734375, 0.039703369140625, -0.030792236328125, -0.0110626220703125, 0.0271453857421875, -0.04486083984375, 0.0210723876953125, 0.055267333984375, -0.01349639892578125, 0.01161956787109375, 0.00628662109375, 0.0002586841583251953, -0.03790283203125, -0.0159454345703125, 0.044158935546875, -0.0199737548828125, 0.04302978515625, 0.020233154296875, -0.007904052734375, 0.05255126953125, 0.031951904296875, -0.0318603515625, 0.006717681884765625, -0.025360107421875, 0.10369873046875, -0.034698486328125, 0.015899658203125, -0.02154541015625, 0.0225830078125, -0.01364898681640625, 0.0151214599609375, -0.0304107666015625, 0.059356689453125, 0.0189666748046875, 0.041107177734375, -0.0195159912109375, 0.01250457763671875, 0.0260009765625, 0.032806396484375, -0.0045166015625, -0.0162353515625, 0.0014963150024414062, -0.0273895263671875, -0.0247802734375, 0.0303802490234375, -0.0157928466796875, 0.030853271484375, 0.0263671875, 0.03021240234375, 0.0187530517578125, 0.040191650390625, 0.009185791015625, -0.0164794921875, -0.0184783935546875, -0.0166168212890625, 0.0176239013671875, 0.037017822265625, -0.04376220703125, -0.041534423828125, -0.01340484619140625, 0.026580810546875, 0.0033473968505859375, 0.0214080810546875, 0.01126861572265625, 0.048828125, 0.02105712890625, -0.0020294189453125, 0.0021305084228515625, 0.0001270771026611328, -0.00878143310546875, 0.017822265625, -0.035888671875, -0.0035419464111328125, -0.00554656982421875, -0.0023212432861328125, -0.052825927734375, 0.007610321044921875, -0.021942138671875, 0.02484130859375, -0.0474853515625, -0.033294677734375, 0.050201416015625, 0.020782470703125, 0.0726318359375, 0.004596710205078125, -0.042449951171875, -0.01465606689453125, -0.0208892822265625, -0.0148773193359375, -0.0413818359375, -0.006168365478515625, 0.016204833984375, -0.0230560302734375, -0.0244140625, 0.0372314453125, 0.061614990234375, -0.032196044921875, -0.00209808349609375, -0.00412750244140625, -0.037994384765625, 0.0182342529296875, -0.038909912109375, -0.0170135498046875, -0.030914306640625, 0.008697509765625, -0.02874755859375, -0.00337982177734375, 0.0291748046875, -0.045562744140625, 0.01435089111328125, 0.024658203125, 0.020050048828125, -0.01202392578125, 0.01149749755859375, -0.0115966796875, 0.03411865234375, -0.01154327392578125, 0.061187744140625, 0.006954193115234375, 0.00318145751953125, 0.0401611328125, 0.030181884765625, 0.006561279296875, 0.031707763671875, -0.0301055908203125, -0.043853759765625, -0.01070404052734375, 0.0029754638671875, -0.0087738037109375, 0.017974853515625, 0.01715087890625, 0.00920867919921875, -0.008087158203125, -0.000591278076171875, -0.04150390625, 0.0107421875, -0.0030975341796875, -0.029022216796875, 0.021484375, 0.0011739730834960938, 0.03240966796875, 0.0132293701171875, -0.0450439453125, 0.007488250732421875, 0.0054931640625, 0.044189453125, -0.02093505859375, -0.08123779296875, 0.0538330078125, -0.0491943359375, 0.013763427734375, 0.0238189697265625, -0.0102081298828125, -0.00926971435546875, 0.0341796875, -0.032318115234375, -0.0005936622619628906, -0.05584716796875, 0.0297698974609375, 0.005237579345703125, -0.01525115966796875, 0.0309906005859375, -0.017791748046875, -0.0006499290466308594, 0.001422882080078125, -0.01378631591796875, 0.01091766357421875, 0.07598876953125, 0.0247802734375, 0.00875091552734375, -0.017547607421875, -0.0033893585205078125, -0.0164947509765625, -0.034637451171875, -0.0024585723876953125, -0.019195556640625, 0.012847900390625, 0.0245819091796875, -0.03289794921875, -0.037872314453125, -0.002353668212890625, -0.020904541015625, -0.016357421875, 0.01027679443359375, -0.0020294189453125, 0.0179443359375, 0.0231781005859375, 0.0116424560546875, 0.00009268522262573242, 0.005496978759765625, -0.056793212890625, 0.00830078125, -0.0152740478515625, 0.01453399658203125, -0.005340576171875, 0.0162200927734375, -0.020477294921875, 0.003353118896484375, 0.00542449951171875, -0.000016868114471435547, 0.0017728805541992188, 0.00514984130859375, -0.00951385498046875, -0.033660888671875, -0.0015783309936523438, 0.0182342529296875, -0.037506103515625, 0.0396728515625, 0.0216217041015625, -0.0239715576171875, -0.0301513671875, 0.019195556640625, 0.0259857177734375, -0.035064697265625, -0.022491455078125, -0.0352783203125, -0.037994384765625, 0.009063720703125, -0.038726806640625, 0.0058746337890625, -0.053466796875, 0.03167724609375, 0.06451416015625, 0.01081085205078125, -0.0089263916015625, -0.00638580322265625, 0.08758544921875, 0.017333984375, -0.024505615234375, 0.0004355907440185547, 0.0006976127624511719, 0.0137481689453125, -0.018798828125, -0.00360870361328125, -0.0234375, -0.079833984375, 0.01215362548828125, 0.060577392578125, 0.045623779296875, 0.027923583984375, -0.003612518310546875, 0.003173828125, 0.05987548828125, -0.036712646484375, 0.01145172119140625, -0.01259613037109375, 0.032012939453125, 0.03253173828125, 0.0121917724609375, -0.00646209716796875, 0.0245208740234375, -0.0029773712158203125, 0.01398468017578125, 0.032470703125, -0.00847625732421875, -0.025543212890625, -0.0059967041015625, 0.0269622802734375, 0.00728607177734375, 0.0291595458984375, 0.00689697265625, 0.01088714599609375, 0.016815185546875, 0.06884765625, 0.03717041015625, 0.048828125, -0.049652099609375, 0.044952392578125, -0.0036106109619140625, 0.021728515625, 0.006839752197265625, 0.03228759765625, 0.0574951171875, 0.00868988037109375, -0.022552490234375, -0.03350830078125, 0.022857666015625, 0.0232696533203125, -0.00542449951171875, 0.01392364501953125, 0.0235595703125, -0.012359619140625, 0.0144805908203125, -0.045166015625, 0.0089111328125, -0.0205535888671875, -0.015838623046875, -0.00659942626953125, -0.0014171600341796875, 0.055511474609375, 0.001331329345703125, 0.019317626953125, 0.0174713134765625, 0.009521484375, 0.02630615234375, -0.037078857421875, 0.04510498046875, -0.032745361328125, 0.037322998046875, 0.04888916015625, -0.034393310546875, 0.033050537109375, -0.014251708984375, -0.0433349609375, -0.0279541015625, -0.001308441162109375, -0.015625, -0.016357421875, -0.04632568359375, 0.06298828125, 0.00795745849609375, 0.091064453125, -0.048736572265625, -0.08135986328125, -0.0162200927734375, 0.015594482421875, -0.11004638671875, -0.07818603515625, 0.03875732421875, -0.0745849609375, 0.0149383544921875, -0.0203857421875, -0.038726806640625, -0.019744873046875, 0.0277252197265625, -0.0007305145263671875, 0.01186370849609375, -0.0191650390625, -0.046142578125, -0.00627899169921875, -0.06524658203125, -0.0042572021484375, -0.00942230224609375, 0.01560211181640625, -0.00045752525329589844, 0.005130767822265625, 0.0076751708984375, -0.0172271728515625, 0.0264129638671875, 0.06787109375, 0.0007476806640625, -0.01190948486328125, 0.00852203369140625, -0.03717041015625, -0.01947021484375, -0.01142120361328125, 0.004474639892578125, 0.01200103759765625, 0.0009946823120117188, 0.007152557373046875, 0.0006566047668457031, 0.02880859375, 0.03253173828125, -0.004436492919921875, -0.0122528076171875, 0.046875, 0.02655029296875, -0.0219573974609375, -0.0110931396484375, -0.035430908203125, -0.03900146484375, 0.048187255859375, 0.02288818359375, 0.01021575927734375, -0.004833221435546875, 0.0178985595703125, 0.0164642333984375, 0.0163421630859375, -0.007076263427734375, 0.0009484291076660156, 0.041595458984375, 0.0025653839111328125, 0.023284912109375, -0.007076263427734375, 0.0295867919921875, -0.00982666015625, -0.015899658203125, -0.01013946533203125, 0.0273284912109375, -0.020751953125, 0.008056640625, -0.05487060546875, -0.03790283203125, 0.056121826171875, -0.03826904296875, 0.00800323486328125, -0.04412841796875, -0.032135009765625, -0.0206451416015625, 0.101318359375, 0.025299072265625, -0.0302886962890625, -0.0250701904296875, 0.00707244873046875, -0.0204620361328125, -0.023162841796875, 0.0210113525390625, -0.0025997161865234375, -0.09307861328125, 0.01416778564453125, -0.0028247833251953125, -0.0201568603515625, -0.024261474609375, 0.038543701171875, -0.054443359375, -0.03265380859375, -0.0016107559204101562, 0.029571533203125, 0.01934814453125, 0.0501708984375, -0.00807952880859375, 0.0740966796875, -0.0187835693359375, -0.02020263671875, -0.0423583984375, -0.0038356781005859375, 0.0137176513671875, 0.024932861328125, -0.0294036865234375, 0.0298919677734375, -0.0306396484375, 0.0180816650390625, 0.0032196044921875, 0.053985595703125, -0.018096923828125, -0.0034618377685546875, -0.0099334716796875, -0.018035888671875, 0.007720947265625, -0.0301666259765625, 0.006855010986328125, -0.03240966796875, -0.0699462890625, -0.038970947265625, -0.020721435546875, 0.0251312255859375, 0.018463134765625, -0.034027099609375, -0.0210113525390625, -0.00015354156494140625, 0.04559326171875, 0.0261993408203125, 0.007770538330078125, 0.01488494873046875, -0.00885009765625, -0.02288818359375, 0.064453125, 0.01483917236328125, -0.0033016204833984375, -0.01068878173828125, 0.07806396484375, 0.0036792755126953125, -0.03741455078125, -0.0528564453125, -0.0037212371826171875, 0.03546142578125, -0.0369873046875, 0.02294921875, -0.002872467041015625, -0.048614501953125, 0.081787109375, -0.01080322265625, 0.0170135498046875, -0.0135498046875, 0.049224853515625, -0.031890869140625, -0.026214599609375, 0.0262451171875, -0.028472900390625, 0.0003044605255126953, -0.0002491474151611328, -0.007289886474609375, -0.0235748291015625, -0.0033111572265625, 0.034942626953125, -0.022979736328125, 0.0770263671875, 0.007617950439453125, -0.03961181640625, 0.0075836181640625, -0.0179290771484375, 0.002094268798828125, 0.01335906982421875, -0.00431060791015625, -0.00960540771484375, 0.006214141845703125, 0.004119873046875, -0.027496337890625, -0.006473541259765625, -0.0189208984375, 0.0360107421875, -0.02935791015625, -0.0123443603515625, -0.021759033203125, -0.01068878173828125, 0.0279541015625, -0.0042724609375, -0.031585693359375, -0.01250457763671875, -0.0283203125, 0.0252685546875, 0.0269317626953125, 0.0170440673828125, 0.04644775390625, 0.0093231201171875, -0.0212554931640625, -0.01239776611328125, -0.047271728515625, 0.0220489501953125, -0.048614501953125, -0.004108428955078125, 0.01117706298828125, -0.013336181640625, 0.0244293212890625, 0.0596923828125, -0.03521728515625, 0.045013427734375, -0.01000213623046875, 0.00797271728515625, 0.024261474609375, 0.0411376953125, 0.01983642578125, -0.0172882080078125, -0.007381439208984375, 0.0229644775390625, 0.008148193359375, -0.052978515625, 0.02813720703125, 0.02264404296875, 0.0875244140625, -0.0217742919921875, -0.07659912109375, 0.0299835205078125, -0.08856201171875, -0.0125732421875, 0.043609619140625, -0.0013017654418945312, -0.040191650390625, -0.0369873046875, -0.006191253662109375, 0.042877197265625, -0.0113983154296875, -0.007354736328125, -0.01812744140625, 0.003498077392578125, 0.0124359130859375, -0.00901031494140625, -0.04119873046875, 0.023223876953125, 0.038177490234375, -0.0189666748046875, -0.0152130126953125, -0.03253173828125, -0.0016050338745117188, -0.0234222412109375, -0.002986907958984375, -0.0219879150390625, 0.048980712890625, 0.007572174072265625, 0.0357666015625, -0.0340576171875, -0.01210784912109375, -0.032562255859375, -0.00737762451171875, 0.044189453125, 0.006748199462890625, -0.0114593505859375, -0.00719451904296875, -0.04473876953125, 0.0010585784912109375, 0.0259246826171875, -0.055511474609375, -0.010406494140625, -0.040740966796875, -0.021148681640625, 0.03289794921875, -0.00563812255859375, 0.039581298828125, 0.0038700103759765625, 0.039306640625, -0.00653076171875, 0.0982666015625, -0.00556182861328125, 0.031402587890625, 0.0259246826171875, 0.028076171875, 0.0157928466796875, 0.0213470458984375, -0.0276031494140625, -0.0355224609375, -0.018951416015625, -0.0712890625, 0.025421142578125, 0.0223846435546875, 0.040863037109375, -0.0225067138671875, -0.061004638671875, 0.024871826171875, -0.0207977294921875, -0.0186767578125, -0.005329132080078125, -0.0178375244140625, 0.028656005859375, 0.0137176513671875, -0.03765869140625, 0.01031494140625, -0.0771484375, -0.00327301025390625, 0.006816864013671875, 0.03515625, 0.01739501953125, -0.065185546875, -0.01308441162109375, 0.0838623046875, -0.02447509765625, 0.0277862548828125, 0.0863037109375, 0.016754150390625, 0.037841796875, 0.031280517578125, 0.01204681396484375, -0.001483917236328125, 0.033782958984375, 0.0199737548828125, -0.05157470703125, 0.06976318359375, 0.03057861328125, -0.0092926025390625, 0.0638427734375, -0.035797119140625, 0.02691650390625, -0.04156494140625, 0.032684326171875, 0.0267333984375, 0.0232086181640625, 0.0269927978515625, -0.01320648193359375, 0.029541015625, -0.005214691162109375, 0.00859832763671875, -0.0215911865234375, 0.04144287109375, -0.01187896728515625, -0.020416259765625, 0.01050567626953125, -0.01166534423828125, -0.00640106201171875, -0.0174407958984375, 0.023590087890625, 0.0118865966796875, -0.01241302490234375, -0.0418701171875, 0.0267333984375, -0.01885986328125, -0.04473876953125, 0.004772186279296875, 0.0139923095703125, 0.0129241943359375, -0.046600341796875, 0.048919677734375, -0.0275421142578125, 0.0301513671875, -0.0235595703125, 0.023956298828125, 0.01267242431640625, 0.044158935546875, -0.002044677734375, -0.01251220703125, 0.031280517578125, -0.047393798828125, -0.01067352294921875, -0.007602691650390625, -0.0259246826171875, 0.04168701171875, -0.0210723876953125, 0.01377105712890625, -0.01477813720703125, 0.0235595703125, -0.01036834716796875, -0.027069091796875, 0.043548583984375, -0.030853271484375, -0.00106048583984375, 0.031280517578125, 0.03436279296875, -0.0093536376953125, 0.004364013671875, 0.048095703125, -0.033599853515625, -0.0008130073547363281, 0.0188751220703125, -0.0111846923828125, -0.04400634765625, -0.004398345947265625, -0.063232421875, 0.035919189453125, 0.020721435546875, 0.0249481201171875, -0.0218505859375, -0.003582000732421875, 0.00991058349609375, -0.00984954833984375, -0.03704833984375, 0.036468505859375, -0.025848388671875, 0.020172119140625, -0.03277587890625, 0.01239013671875, 0.002643585205078125, 0.00524139404296875, 0.06005859375, 0.01617431640625, -0.02783203125, -0.0166778564453125, 0.05316162109375, 0.06036376953125, 0.014495849609375, 0.0233001708984375, 0.0257568359375, 0.01544952392578125, 0.04400634765625, -0.0035152435302734375, 0.031463623046875, -0.0218658447265625, 0.002758026123046875, 0.05218505859375, 0.0190277099609375, 0.020172119140625, 0.0274810791015625, 0.0285797119140625, -0.033233642578125, 0.00830841064453125, 0.043670654296875, -0.046112060546875, -0.01264190673828125, 0.0426025390625, 0.052154541015625, -0.043304443359375, 0.0028018951416015625, -0.03277587890625, 0.0650634765625, 0.0174713134765625, 0.0162353515625, 0.022705078125, 0.01324462890625, 0.0021266937255859375, 0.02178955078125, 0.0190887451171875, 0.023468017578125, 0.007015228271484375, 0.00827789306640625, -0.029876708984375, 0.0003879070281982422, -0.0762939453125, -0.0166473388671875, 0.06695556640625, 0.0382080078125, -0.01445770263671875, -0.005828857421875, 0.023651123046875, -0.020050048828125, -0.02349853515625, -0.0247802734375, -0.032745361328125, -0.009521484375, 0.006378173828125, -0.0232391357421875, 0.032989501953125, 0.043853759765625, 0.031982421875, 0.006206512451171875, 0.0159912109375, -0.090576171875, 0.0167083740234375, -0.0440673828125, 0.0274200439453125, 0.019927978515625, 0.048309326171875, 0.005107879638671875, 0.053619384765625, -0.0231170654296875, -0.0156707763671875, 0.0157623291015625, 0.029998779296875, -0.0242462158203125, -0.00998687744140625, -0.00457000732421875, -0.0633544921875, -0.00283050537109375, 0.0191650390625, 0.05072021484375, -0.01544952392578125, 0.035125732421875, 0.007633209228515625, -0.033966064453125, 0.007190704345703125, -0.036346435546875, -0.02105712890625, 0.0433349609375, -0.0186309814453125, 0.018951416015625, 0.021636962890625, -0.0196380615234375, -0.027374267578125, -0.0279541015625, 0.07232666015625, -0.03607177734375, 0.054351806640625, 0.0014905929565429688, -0.00193023681640625, 0.010650634765625, -0.00896453857421875, 0.00896453857421875, -0.00954437255859375, -0.07586669921875, 0.002536773681640625, -0.0286865234375, -0.0313720703125, -0.004680633544921875, 0.030670166015625, -0.0282440185546875, 0.034393310546875, -0.0592041015625, -0.0063323974609375, 0.0292816162109375, -0.0301055908203125, 0.0035533905029296875, 0.05853271484375, 0.0067901611328125, 0.0079498291015625, -0.07025146484375, -0.0311431884765625, -0.02215576171875, 0.0276641845703125, 0.004520416259765625, 0.0021820068359375, 0.0269927978515625, 0.027618408203125, -0.0272979736328125, 0.0523681640625, -0.06329345703125, -0.02752685546875, 0.03668212890625, -0.00298309326171875, -0.0040283203125, -0.01508331298828125, -0.038177490234375, 0.033233642578125, 0.02032470703125, 0.0179443359375, 0.007442474365234375, -0.01010894775390625, 0.0228118896484375, 0.0099334716796875, -0.0020503997802734375, -0.0222930908203125, -0.01351165771484375, -0.047393798828125, -0.034271240234375, 0.056671142578125, 0.042144775390625, 0.019989013671875, -0.0074462890625, 0.0106658935546875, -0.00592803955078125, 0.0277099609375, 0.0249786376953125, 0.045562744140625, 0.0361328125, -0.0809326171875, -0.03948974609375, 0.0176544189453125, -0.003665924072265625, 0.0284271240234375, 0.0060577392578125, 0.07000732421875, 0.01355743408203125, 0.01222991943359375, 0.01183319091796875, -0.019989013671875, 0.047576904296875, 0.01074981689453125, 0.00925445556640625, -0.029083251953125, 0.021514892578125, -0.038330078125, -0.060455322265625, -0.0218658447265625, -0.0753173828125, 0.015289306640625, 0.0352783203125, -0.0084381103515625, 0.03314208984375, 0.01551055908203125, -0.0328369140625, -0.006397247314453125, -0.00646209716796875, 0.0014352798461914062, 0.0040283203125, -0.0086517333984375, -0.028656005859375, -0.0227203369140625, -0.024658203125, 0.0146942138671875, 0.0238800048828125, -0.019256591796875, -0.049774169921875, -0.031768798828125, 0.041778564453125, -0.0293426513671875, 0.029937744140625, 0.047576904296875, -0.030853271484375, -0.00212860107421875, 0.016845703125, 0.03277587890625, 0.0634765625, -0.0076141357421875, -0.03515625, -0.035400390625, 0.0252227783203125, 0.00484466552734375, -0.0220489501953125, 0.0260009765625, -0.023895263671875, -0.032012939453125, -0.0292816162109375, 0.002300262451171875, 0.016265869140625, -0.0285186767578125, -0.0157623291015625, 0.0257720947265625, -0.009063720703125, -0.022613525390625, -0.0576171875, 0.040313720703125, 0.0186309814453125, -0.019287109375, -0.01360321044921875, -0.01102447509765625, -0.0115509033203125, 0.00714111328125, 0.018218994140625, -0.0443115234375, 0.04296875, 0.002834320068359375, -0.06781005859375, 0.000518798828125, 0.0006556510925292969, -0.0169525146484375, 0.001007080078125, -0.0017385482788085938, 0.01494598388671875, 0.026275634765625, -0.05169677734375, -0.0006451606750488281, -0.005222320556640625, 0.020172119140625, -0.0225982666015625, -0.0155792236328125, -0.021240234375, 0.0270843505859375, 0.049102783203125, 0.07244873046875, 0.00946807861328125, -0.0655517578125, 0.0286712646484375, 0.02923583984375, -0.06365966796875, -0.005573272705078125, 0.03521728515625, -0.034454345703125, -0.0174560546875, -0.0240020751953125, -0.019287109375, 0.003505706787109375, -0.0028324127197265625, -0.05029296875, -0.00504302978515625, -0.0244598388671875, -0.0008673667907714844, -0.05670166015625, -0.034210205078125, 0.0911865234375, -0.06494140625, -0.0325927734375, 0.01241302490234375, 0.0273895263671875, 0.0195159912109375, -0.039031982421875, 0.023284912109375, 0.0038814544677734375, 0.01439666748046875, 0.0064239501953125, 0.038909912109375, -0.00998687744140625, 0.0328369140625, -0.02655029296875, -0.0276641845703125, 0.0221405029296875, 0.01416778564453125, 0.007564544677734375, -0.0062103271484375, 0.0172119140625, 0.0226898193359375, 0.02288818359375, 0.0006575584411621094, 0.029571533203125, 0.00279998779296875, 0.043731689453125, -0.0120086669921875, -0.0262451171875, 0.0154571533203125, -0.053680419921875, 0.00746917724609375, 0.026885986328125, 0.0195465087890625, -0.0137176513671875, 0.00983428955078125, -0.00754547119140625, 0.0005273818969726562, 0.0125579833984375 ]
d6d89083483648b1644be7bd59bada3a697a6c9a
Wordpress Stackexchange Q: How to insert PHP code in a WordPress Post I need to insert into post a simple form handler, but WordPress' engine deleted my code after saving. how can I fix it? A: You cannot save raw PHP inside post content, it gets cleaned out on save. This is an obvious security precaution. However, there are plugins that will enable you to do this, for example: http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/ This is not recommended though, better solution would be to create a generic shortcode for your from.
Q: How to insert PHP code in a WordPress Post I need to insert into post a simple form handler, but WordPress' engine deleted my code after saving. how can I fix it? A: You cannot save raw PHP inside post content, it gets cleaned out on save. This is an obvious security precaution. However, there are plugins that will enable you to do this, for example: http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/ This is not recommended though, better solution would be to create a generic shortcode for your from. A: As an alternative to adding your PHP it may be easier to use a plugin like Contact Form 7 to create your form.
wordpress
{ "language": "en", "length": 109, "provenance": "stackexchange_00019.jsonl.gz:422051", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59130" }
[ 0.05926513671875, 0.0222320556640625, -0.0010404586791992188, 0.008544921875, 0.0283660888671875, -0.033447265625, 0.06866455078125, -0.05157470703125, 0.0065460205078125, 0.01351165771484375, -0.019744873046875, -0.013519287109375, 0.004451751708984375, -0.023712158203125, -0.00917816162109375, -0.01062774658203125, 0.00948333740234375, 0.0170440673828125, 0.0229644775390625, -0.0266265869140625, -0.0116119384765625, -0.0220489501953125, 0.061767578125, -0.0350341796875, 0.0274810791015625, 0.04864501953125, 0.0171356201171875, -0.015411376953125, -0.00940704345703125, -0.005649566650390625, 0.020172119140625, -0.004497528076171875, 0.04534912109375, 0.0135498046875, -0.052581787109375, 0.0310211181640625, -0.01318359375, 0.00449371337890625, -0.00513458251953125, 0.006771087646484375, 0.01375579833984375, -0.00980377197265625, 0.0269012451171875, -0.0103302001953125, -0.00693511962890625, -0.01485443115234375, 0.023193359375, -0.02752685546875, 0.0186767578125, -0.034423828125, 0.01280975341796875, 0.0103759765625, 0.0210418701171875, -0.0166168212890625, -0.026458740234375, -0.0125732421875, -0.00982666015625, -0.004177093505859375, 0.035186767578125, 0.0011463165283203125, -0.0303955078125, -0.042633056640625, 0.024505615234375, -0.0295562744140625, 0.00754547119140625, -0.0121307373046875, -0.00690460205078125, 0.0223236083984375, -0.033477783203125, 0.0301513671875, 0.06195068359375, -0.035552978515625, 0.010894775390625, -0.0389404296875, 0.04913330078125, 0.011444091796875, -0.017364501953125, 0.01349639892578125, -0.0013132095336914062, 0.0357666015625, 0.02984619140625, 0.0230712890625, 0.016510009765625, -0.04608154296875, 0.0070037841796875, -0.035003662109375, -0.00030040740966796875, -0.006534576416015625, -0.0272064208984375, -0.01058197021484375, -0.018096923828125, -0.01010894775390625, -0.0416259765625, 0.01318359375, -0.013427734375, -0.0135955810546875, -0.0211639404296875, -0.004970550537109375, 0.0116729736328125, 0.06268310546875, 0.0042266845703125, -0.04669189453125, 0.1038818359375, -0.039031982421875, -0.00969696044921875, 0.03363037109375, 0.006793975830078125, -0.039825439453125, -0.01427459716796875, -0.0023479461669921875, -0.027984619140625, -0.01532745361328125, 0.0135650634765625, -0.0200347900390625, 0.0029048919677734375, 0.035614013671875, 0.0049896240234375, 0.02264404296875, 0.008758544921875, 0.0309295654296875, -0.003414154052734375, 0.0469970703125, -0.0604248046875, -0.02801513671875, -0.017852783203125, -0.0299835205078125, 0.01271820068359375, 0.00574493408203125, 0.01239776611328125, 0.0259246826171875, -0.022308349609375, 0.0231475830078125, 0.06805419921875, 0.0137481689453125, -0.010955810546875, -0.0159912109375, -0.00682830810546875, -0.01212310791015625, -0.010528564453125, 0.0163421630859375, -0.01983642578125, -0.049224853515625, -0.0009036064147949219, -0.0113372802734375, 0.00975799560546875, 0.046417236328125, 0.01134490966796875, 0.00035762786865234375, 0.0168609619140625, -0.04254150390625, 0.0033054351806640625, -0.03094482421875, 0.01152801513671875, 0.022918701171875, 0.031707763671875, 0.00328826904296875, 0.052764892578125, -0.030303955078125, 0.00801849365234375, -0.0271759033203125, 0.01275634765625, -0.004032135009765625, 0.03253173828125, -0.0172882080078125, -0.042999267578125, 0.0093231201171875, -0.0867919921875, -0.026123046875, 0.013214111328125, -0.0177764892578125, -0.019317626953125, -0.017547607421875, -0.02008056640625, -0.0070953369140625, -0.0016193389892578125, 0.022979736328125, 0.006683349609375, 0.00594329833984375, 0.022491455078125, 0.043853759765625, 0.017608642578125, -0.0025539398193359375, 0.054595947265625, 0.0032711029052734375, -0.04510498046875, 0.048675537109375, 0.021636962890625, 0.07513427734375, 0.0008831024169921875, 0.02947998046875, 0.017974853515625, 0.036865234375, 0.00878143310546875, -0.0189056396484375, 0.01140594482421875, -0.019012451171875, -0.0289764404296875, -0.020111083984375, -0.014495849609375, 0.0204925537109375, -0.020538330078125, 0.00330352783203125, 0.0013341903686523438, 0.0024776458740234375, -0.027435302734375, -0.00806427001953125, -0.0054931640625, 0.031280517578125, 0.0137481689453125, 0.0224761962890625, 0.0125274658203125, 0.0139312744140625, -0.017547607421875, -0.01497650146484375, -0.03216552734375, 0.02142333984375, -0.03509521484375, 0.04248046875, 0.0173492431640625, 0.043365478515625, 0.0009918212890625, -0.0233612060546875, -0.0015811920166015625, -0.059600830078125, 0.03460693359375, -0.01947021484375, -0.0113067626953125, -0.03466796875, -0.0002567768096923828, -0.002300262451171875, -0.006748199462890625, 0.03857421875, 0.00806427001953125, -0.0285491943359375, -0.04534912109375, -0.0157318115234375, -0.050811767578125, -0.060821533203125, 0.0027256011962890625, 0.0770263671875, 0.035980224609375, 0.03985595703125, 0.02508544921875, 0.0215301513671875, 0.0394287109375, -0.01073455810546875, 0.041046142578125, -0.036041259765625, 0.0213623046875, 0.042694091796875, 0.00016736984252929688, 0.006725311279296875, 0.0118560791015625, -0.04974365234375, 0.0197601318359375, 0.0178680419921875, 0.013763427734375, 0.0179443359375, 0.0007948875427246094, 0.00920867919921875, -0.0085906982421875, -0.0306854248046875, -0.024810791015625, -0.018707275390625, 0.061553955078125, 0.0112762451171875, 0.060699462890625, 0.044586181640625, -0.0176849365234375, 0.0009589195251464844, 0.0008492469787597656, -0.004314422607421875, 0.00637054443359375, 0.0228729248046875, 0.01157379150390625, 0.02960205078125, -0.04705810546875, -0.006862640380859375, 0.081787109375, 0.0283660888671875, -0.0017242431640625, 0.03631591796875, 0.0100555419921875, -0.01169586181640625, -0.01343536376953125, -0.02593994140625, 0.0066680908203125, 0.0105133056640625, 0.0305023193359375, 0.010955810546875, 0.0077667236328125, 0.05938720703125, -0.0162353515625, 0.07940673828125, 0.008026123046875, 0.006595611572265625, 0.010345458984375, -0.01183319091796875, -0.0006804466247558594, 0.01378631591796875, 0.0244140625, 0.05224609375, 0.052215576171875, -0.043792724609375, 0.01378631591796875, 0.007709503173828125, -0.0020351409912109375, 0.0239410400390625, 0.00276947021484375, -0.0164031982421875, -0.0202484130859375, -0.0027332305908203125, 0.0253143310546875, 0.0491943359375, -0.015899658203125, -0.052215576171875, -0.015167236328125, 0.0279388427734375, -0.08056640625, -0.0611572265625, -0.015350341796875, -0.0599365234375, 0.002902984619140625, -0.00974273681640625, -0.021514892578125, -0.0052490234375, 0.0175323486328125, 0.0111846923828125, 0.006122589111328125, -0.0134124755859375, -0.0318603515625, -0.035369873046875, -0.059722900390625, -0.03515625, -0.00038909912109375, -0.0008711814880371094, 0.0105133056640625, 0.062744140625, -0.00482177734375, -0.06884765625, -0.020843505859375, -0.0267486572265625, -0.03253173828125, 0.00864410400390625, -0.0104522705078125, -0.0279693603515625, 0.0142822265625, -0.0158538818359375, -0.05712890625, 0.0074462890625, 0.0232696533203125, -0.00966644287109375, -0.01465606689453125, -0.04779052734375, -0.01389312744140625, 0.01123046875, 0.0029506683349609375, -0.057769775390625, -0.004009246826171875, -0.06744384765625, -0.0333251953125, 0.0022220611572265625, -0.0423583984375, -0.045379638671875, 0.014434814453125, 0.0024700164794921875, -0.032928466796875, 0.017242431640625, -0.01157379150390625, 0.00875091552734375, -0.00414276123046875, -0.0249176025390625, 0.035797119140625, -0.01335906982421875, 0.01043701171875, -0.0014657974243164062, 0.021087646484375, -0.002819061279296875, 0.0248260498046875, 0.01039886474609375, 0.0262451171875, -0.0167083740234375, 0.017608642578125, -0.0655517578125, -0.036376953125, 0.01995849609375, -0.038787841796875, 0.027252197265625, -0.04010009765625, -0.0214996337890625, -0.023162841796875, 0.07659912109375, -0.0498046875, -0.009063720703125, 0.01345062255859375, 0.01354217529296875, -0.0267486572265625, -0.030792236328125, -0.048583984375, -0.026153564453125, 0.01806640625, 0.01422882080078125, -0.003665924072265625, 0.01739501953125, -0.01462554931640625, 0.01172637939453125, 0.0189208984375, 0.00037360191345214844, 0.026519775390625, -0.05401611328125, 0.042938232421875, -0.0157318115234375, -0.003749847412109375, -0.02642822265625, -0.010223388671875, -0.04852294921875, -0.0919189453125, -0.017730712890625, -0.0214385986328125, 0.08111572265625, 0.019500732421875, -0.03155517578125, -0.0255584716796875, 0.0389404296875, 0.0084991455078125, 0.02197265625, 0.00653076171875, 0.0021305084228515625, 0.024505615234375, -0.0235748291015625, -0.006092071533203125, -0.021636962890625, -0.0091552734375, 0.0202789306640625, 0.024688720703125, 0.04949951171875, -0.033294677734375, -0.0271759033203125, -0.02337646484375, -0.022857666015625, -0.039794921875, -0.04266357421875, -0.0237274169921875, 0.027740478515625, -0.01153564453125, 0.0150604248046875, -0.052703857421875, -0.047821044921875, 0.046905517578125, -0.0147705078125, 0.0071563720703125, 0.00901031494140625, 0.0960693359375, 0.0082855224609375, -0.009552001953125, -0.0653076171875, 0.01415252685546875, 0.0274505615234375, -0.01495361328125, 0.0438232421875, 0.0006012916564941406, -0.00897979736328125, 0.038665771484375, -0.0122222900390625, 0.01293182373046875, -0.062469482421875, 0.06427001953125, -0.004154205322265625, 0.0195770263671875, -0.00040602684020996094, 0.0035247802734375, 0.04437255859375, 0.017608642578125, -0.006961822509765625, -0.0035610198974609375, 0.0227508544921875, 0.00626373291015625, -0.040679931640625, 0.037689208984375, -0.000057637691497802734, -0.06951904296875, 0.015899658203125, -0.047393798828125, 0.016326904296875, 0.0176544189453125, -0.00890350341796875, 0.045562744140625, 0.00853729248046875, 0.00182342529296875, 0.0234832763671875, -0.002864837646484375, -0.0029773712158203125, 0.0279083251953125, -0.0093994140625, -0.0103912353515625, 0.0125274658203125, -0.001590728759765625, -0.002193450927734375, 0.0200653076171875, -0.0241851806640625, -0.038116455078125, 0.01506805419921875, 0.0307769775390625, -0.0277862548828125, 0.01552581787109375, 0.01335906982421875, 0.0304718017578125, -0.00921630859375, 0.01488494873046875, 0.022003173828125, 0.027557373046875, -0.01122283935546875, -0.008941650390625, -0.01268768310546875, -0.00870513916015625, 0.01336669921875, 0.000518798828125, -0.030517578125, 0.00611114501953125, -0.003772735595703125, 0.090576171875, 0.048095703125, 0.01511383056640625, 0.01056671142578125, 0.0212554931640625, 0.022979736328125, -0.044677734375, -0.027069091796875, -0.0305938720703125, -0.0277557373046875, -0.005062103271484375, 0.01934814453125, -0.01000213623046875, 0.01451873779296875, 0.03485107421875, 0.0177154541015625, -0.0188140869140625, -0.000995635986328125, -0.01158905029296875, -0.040679931640625, -0.01169586181640625, 0.03155517578125, 0.0224456787109375, -0.0012712478637695312, 0.025115966796875, -0.050537109375, -0.00582122802734375, -0.0017004013061523438, 0.009185791015625, 0.00225067138671875, -0.0264739990234375, -0.049468994140625, 0.0238494873046875, -0.022796630859375, -0.00890350341796875, 0.00276947021484375, 0.0214691162109375, -0.0345458984375, -0.00637054443359375, 0.05133056640625, 0.004367828369140625, 0.00989532470703125, -0.03857421875, 0.0213470458984375, 0.058502197265625, -0.006931304931640625, 0.0310211181640625, -0.0187225341796875, -0.0333251953125, -0.0219879150390625, -0.03424072265625, -0.035552978515625, 0.037994384765625, 0.0020847320556640625, -0.040771484375, -0.025238037109375, -0.00682830810546875, 0.0298919677734375, -0.0298614501953125, -0.006572723388671875, 0.01265716552734375, 0.0254058837890625, -0.026123046875, 0.07763671875, -0.0302581787109375, 0.06402587890625, -0.01026153564453125, 0.0162200927734375, -0.003662109375, 0.0303802490234375, -0.00705718994140625, 0.001583099365234375, 0.0291595458984375, -0.033477783203125, -0.0374755859375, -0.030731201171875, 0.004810333251953125, 0.00699615478515625, 0.006496429443359375, -0.01291656494140625, 0.0012884140014648438, 0.003238677978515625, 0.01129150390625, -0.006900787353515625, 0.038665771484375, 0.0005168914794921875, -0.0120697021484375, 0.031158447265625, -0.0172882080078125, -0.00982666015625, 0.0017976760864257812, 0.0036945343017578125, 0.005279541015625, -0.0068817138671875, -0.0159454345703125, 0.0084075927734375, -0.0113067626953125, 0.01299285888671875, 0.057220458984375, 0.0212554931640625, 0.042205810546875, 0.0155029296875, 0.018890380859375, 0.005962371826171875, 0.044403076171875, -0.048095703125, -0.00560760498046875, 0.01001739501953125, -0.0036373138427734375, -0.0321044921875, -0.045501708984375, -0.0157318115234375, 0.03228759765625, 0.07940673828125, 0.09942626953125, -0.11358642578125, 0.0276336669921875, 0.031829833984375, -0.01476287841796875, 0.032196044921875, -0.01444244384765625, -0.01024627685546875, -0.023040771484375, 0.050628662109375, 0.01861572265625, -0.01342010498046875, 0.027008056640625, 0.00223541259765625, -0.019195556640625, -0.038543701171875, 0.02655029296875, 0.0242919921875, -0.03662109375, 0.0579833984375, 0.02777099609375, 0.041534423828125, -0.0496826171875, 0.0020236968994140625, 0.0266265869140625, -0.021240234375, -0.07550048828125, 0.0305023193359375, -0.0023517608642578125, 0.0033702850341796875, -0.0192108154296875, -0.0169219970703125, 0.0576171875, 0.05615234375, -0.0204620361328125, 0.0228118896484375, 0.0191802978515625, 0.035888671875, -0.042755126953125, -0.016204833984375, 0.0278472900390625, 0.03948974609375, -0.047698974609375, 0.0254974365234375, -0.027313232421875, -0.0193939208984375, -0.00400543212890625, 0.0004363059997558594, 0.050323486328125, -0.0294952392578125, -0.02008056640625, 0.03216552734375, -0.016357421875, -0.00530242919921875, -0.03839111328125, -0.0008983612060546875, -0.035614013671875, 0.0254669189453125, -0.038848876953125, -0.006092071533203125, -0.0165863037109375, -0.061065673828125, -0.1104736328125, 0.11724853515625, 0.06182861328125, 0.0302734375, -0.00946807861328125, 0.034942626953125, -0.08648681640625, -0.03369140625, -0.03143310546875, 0.06121826171875, -0.0014963150024414062, 0.05511474609375, -0.053314208984375, -0.0256805419921875, 0.020721435546875, 0.04888916015625, 0.052001953125, 0.0007085800170898438, 0.002643585205078125, 0.00653839111328125, 0.060211181640625, 0.0185546875, -0.028656005859375, 0.0158233642578125, 0.0034656524658203125, 0.034881591796875, 0.039703369140625, -0.031951904296875, 0.0170440673828125, 0.0159149169921875, -0.005268096923828125, 0.03582763671875, -0.0254974365234375, -0.055419921875, 0.0265655517578125, -0.026275634765625, -0.000885009765625, 0.004131317138671875, -0.03472900390625, 0.0247802734375, -0.01215362548828125, 0.0311737060546875, 0.0031223297119140625, -0.0106964111328125, -0.043853759765625, -0.0211029052734375, 0.02349853515625, 0.0189056396484375, 0.03826904296875, 0.0283660888671875, 0.0204010009765625, 0.072998046875, -0.035797119140625, 0.0261993408203125, 0.0256195068359375, -0.04058837890625, 0.046295166015625, 0.0202178955078125, 0.0216064453125, -0.0310821533203125, -0.0023975372314453125, 0.04315185546875, 0.055877685546875, -0.033111572265625, -0.01024627685546875, 0.01556396484375, 0.0277252197265625, -0.0008802413940429688, -0.02972412109375, 0.0255889892578125, -0.0088958740234375, 0.0164031982421875, 0.01715087890625, -0.02606201171875, -0.0268096923828125, 0.0216522216796875, -0.002384185791015625, 0.03802490234375, 0.008392333984375, -0.03509521484375, -0.051177978515625, 0.0333251953125, 0.00101470947265625, 0.050994873046875, 0.0099334716796875, 0.048095703125, -0.03192138671875, -0.0238189697265625, -0.0127105712890625, 0.0516357421875, 0.0308380126953125, 0.0022335052490234375, -0.018829345703125, -0.0438232421875, 0.03961181640625, 0.0126953125, -0.04095458984375, 0.04901123046875, 0.037628173828125, 0.037841796875, -0.039825439453125, -0.033782958984375, 0.010284423828125, -0.041778564453125, -0.0231170654296875, -0.01296234130859375, -0.042205810546875, 0.015533447265625, -0.0237884521484375, -0.0085296630859375, -0.0037250518798828125, 0.01995849609375, -0.0234832763671875, 0.0310211181640625, -0.0016307830810546875, -0.01000213623046875, 0.05511474609375, -0.001575469970703125, 0.04931640625, 0.01013946533203125, -0.00725555419921875, 0.0079193115234375, -0.03179931640625, -0.05029296875, 0.00213623046875, 0.0241241455078125, 0.00567626953125, 0.0044097900390625, 0.03326416015625, -0.00363922119140625, 0.0330810546875, -0.0185394287109375, 0.0193023681640625, 0.01531219482421875, 0.0271759033203125, 0.00919342041015625, -0.07464599609375, -0.041534423828125, -0.0645751953125, 0.06475830078125, 0.01512908935546875, 0.100830078125, -0.03863525390625, 0.039886474609375, -0.03424072265625, -0.00428009033203125, -0.0225982666015625, -0.0153045654296875, -0.0182037353515625, 0.0092010498046875, -0.0215606689453125, 0.0066680908203125, -0.028656005859375, 0.0294647216796875, 0.0132293701171875, -0.01233673095703125, 0.019744873046875, -0.00957489013671875, 0.01043701171875, -0.006191253662109375, 0.050689697265625, -0.0002968311309814453, 0.0221710205078125, -0.0318603515625, -0.02587890625, 0.0572509765625, 0.00972747802734375, -0.038330078125, -0.00765228271484375, 0.01343536376953125, -0.036346435546875, 0.03448486328125, -0.01285552978515625, 0.033355712890625, 0.032012939453125, -0.0008077621459960938, -0.0179443359375, -0.0252532958984375, -0.034271240234375, -0.01248931884765625, 0.0135498046875, 0.0025119781494140625, -0.00511932373046875, -0.0574951171875, -0.037933349609375, 0.0264129638671875, 0.036956787109375, -0.0027484893798828125, 0.027557373046875, -0.0238037109375, -0.033050537109375, 0.04302978515625, 0.06732177734375, -0.0103759765625, 0.004611968994140625, -0.0240020751953125, -0.01203155517578125, -0.007389068603515625, -0.037445068359375, -0.0484619140625, -0.006267547607421875, 0.0286712646484375, -0.0101165771484375, -0.00582122802734375, -0.04803466796875, -0.0128173828125, 0.046875, 0.00392913818359375, -0.0207366943359375, 0.024688720703125, 0.08453369140625, -0.00862884521484375, -0.061431884765625, 0.0037364959716796875, 0.044525146484375, -0.03460693359375, 0.044281005859375, 0.046142578125, -0.03863525390625, -0.025177001953125, 0.055023193359375, 0.041168212890625, 0.09759521484375, 0.0119171142578125, -0.0219268798828125, 0.0008907318115234375, 0.0160369873046875, -0.0038738250732421875, -0.061004638671875, 0.01012420654296875, -0.051605224609375, 0.0147552490234375, -0.06280517578125, 0.03045654296875, 0.005199432373046875, -0.048248291015625, -0.0916748046875, 0.027923583984375, -0.03179931640625, -0.0360107421875, -0.0147247314453125, 0.006885528564453125, -0.018035888671875, 0.03363037109375, -0.007232666015625, -0.017791748046875, -0.00756072998046875, 0.0289154052734375, -0.0027561187744140625, 0.034393310546875, 0.02227783203125, -0.0163726806640625, -0.013824462890625, -0.0091705322265625, -0.0153045654296875, -0.00986480712890625, 0.019378662109375, -0.020172119140625, 0.0478515625, 0.040679931640625, -0.0180511474609375, 0.0303192138671875, 0.0086517333984375, -0.0201873779296875, -0.0238800048828125, -0.055816650390625, -0.03021240234375, -0.0270233154296875, 0.0697021484375, 0.0538330078125, 0.01617431640625, -0.0205078125, 0.0219268798828125, -0.0226287841796875, -0.03564453125, -0.013946533203125, -0.0005388259887695312, -0.028106689453125, -0.00255584716796875, -0.0253448486328125, 0.01398468017578125, 0.022125244140625, 0.00018346309661865234, 0.0174102783203125, -0.0264129638671875, 0.0273590087890625, -0.009124755859375, -0.04119873046875, -0.03680419921875, 0.06024169921875, -0.0115966796875, 0.031524658203125, 0.0174102783203125, 0.015228271484375, 0.04376220703125, 0.08209228515625, 0.04669189453125, 0.0137939453125, -0.03448486328125, 0.0016622543334960938, 0.03033447265625, -0.010650634765625, 0.003925323486328125, -0.045074462890625, -0.0263519287109375, 0.0162353515625, 0.0158538818359375, 0.0125274658203125, -0.02655029296875, 0.038665771484375, 0.016845703125, 0.046783447265625, -0.0301666259765625, -0.045166015625, -0.034942626953125, 0.0165252685546875, -0.0206756591796875, 0.007335662841796875, 0.04345703125, -0.027435302734375, 0.0025959014892578125, 0.0253143310546875, 0.00811004638671875, -0.01441192626953125, 0.0040283203125, 0.00551605224609375, 0.0122222900390625, 0.00473785400390625 ]
0a49d7a2d7698e72bd50521fe55e07d84125e6bc
Wordpress Stackexchange Q: Forum plugin that allows private groups that are invite only I'm looking for a plugin that would allow me to create private groups for discussion that are invite only. These would be for people who have taken a workshop and want to remain in communication with their cohort afterwards. They would need to be invited/added by admin after each workshop and would not communicate with other participants. Anyone have any ideas? Appreciate the help! A: You can easily create private forums with the Simple:Press forum plugin. http://simple-press.com/ It can do a LOT more than just that, and for that reason might be overkill (not sure what other requirements you have), but if you are looking for a very flexible and powerful forum system, then I can recommend Simple:Press.
Q: Forum plugin that allows private groups that are invite only I'm looking for a plugin that would allow me to create private groups for discussion that are invite only. These would be for people who have taken a workshop and want to remain in communication with their cohort afterwards. They would need to be invited/added by admin after each workshop and would not communicate with other participants. Anyone have any ideas? Appreciate the help! A: You can easily create private forums with the Simple:Press forum plugin. http://simple-press.com/ It can do a LOT more than just that, and for that reason might be overkill (not sure what other requirements you have), but if you are looking for a very flexible and powerful forum system, then I can recommend Simple:Press. A: BuddyPress is good for this as well. You can create public, private or hidden groups and control who can invite others. http://wordpress.org/extend/plugins/buddypress/ You have the option to have forums in each of the groups as well.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:422058", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59154" }
[ 0.038238525390625, -0.0040740966796875, -0.019195556640625, -0.0389404296875, 0.00885009765625, -0.026458740234375, -0.001377105712890625, -0.006114959716796875, -0.0447998046875, 0.006359100341796875, 0.0113372802734375, 0.03179931640625, -0.072265625, -0.0408935546875, 0.0171356201171875, -0.03057861328125, 0.003978729248046875, -0.002956390380859375, -0.00213623046875, -0.04638671875, 0.0251617431640625, -0.04827880859375, 0.035064697265625, 0.00036597251892089844, 0.0210113525390625, 0.0723876953125, 0.053497314453125, -0.00531005859375, 0.040008544921875, 0.03692626953125, 0.03167724609375, -0.0968017578125, -0.005046844482421875, 0.0230865478515625, 0.0093231201171875, -0.0197296142578125, -0.0222930908203125, 0.026702880859375, 0.021087646484375, -0.00341796875, 0.01050567626953125, -0.004642486572265625, -0.0859375, 0.08685302734375, -0.0633544921875, -0.055999755859375, 0.006160736083984375, -0.01139068603515625, 0.037689208984375, -0.05755615234375, -0.00662994384765625, 0.03106689453125, 0.01194000244140625, -0.04071044921875, -0.009490966796875, 0.037689208984375, -0.00978851318359375, -0.01348114013671875, 0.0283050537109375, -0.0000324249267578125, -0.01458740234375, -0.0202789306640625, 0.0224609375, -0.007350921630859375, 0.0037975311279296875, -0.00933074951171875, -0.06634521484375, 0.0204925537109375, 0.01241302490234375, 0.0059814453125, 0.0203704833984375, -0.0322265625, 0.00943756103515625, -0.023193359375, -0.04437255859375, -0.00923919677734375, 0.0278167724609375, -0.0308990478515625, 0.0141448974609375, -0.028289794921875, -0.048736572265625, -0.0189056396484375, -0.049957275390625, -0.0174560546875, -0.0216064453125, -0.00313568115234375, -0.01080322265625, 0.00380706787109375, 0.005062103271484375, 0.02044677734375, -0.00933074951171875, -0.0474853515625, 0.031646728515625, 0.0672607421875, -0.0145111083984375, 0.0166473388671875, 0.0081024169921875, -0.0181121826171875, 0.0111846923828125, -0.006622314453125, 0.047088623046875, -0.04931640625, 0.043914794921875, -0.0086669921875, -0.0157928466796875, 0.047332763671875, 0.018341064453125, 0.0128021240234375, 0.00542449951171875, 0.0216522216796875, 0.004486083984375, -0.030029296875, 0.01276397705078125, -0.005313873291015625, 0.0020809173583984375, -0.0107574462890625, -0.03240966796875, 0.040191650390625, 0.0054473876953125, 0.0226593017578125, -0.0110321044921875, 0.003170013427734375, 0.004718780517578125, 0.03857421875, -0.040130615234375, -0.031982421875, -0.016845703125, -0.0163421630859375, -0.035430908203125, 0.0246734619140625, -0.02301025390625, 0.0234527587890625, 0.035736083984375, 0.0204315185546875, -0.0004267692565917969, -0.020721435546875, 0.01102447509765625, 0.01136016845703125, 0.006771087646484375, 0.0084381103515625, -0.017303466796875, -0.01055908203125, 0.0350341796875, -0.0116119384765625, -0.0008916854858398438, -0.0111236572265625, 0.032958984375, 0.026641845703125, -0.0201263427734375, 0.032623291015625, -0.0281982421875, 0.0287322998046875, 0.0214996337890625, -0.01033782958984375, 0.01556396484375, -0.046661376953125, 0.0070343017578125, -0.0237274169921875, 0.0357666015625, -0.0084686279296875, 0.05377197265625, 0.017242431640625, 0.00147247314453125, -0.01348876953125, -0.01390838623046875, -0.04150390625, -0.034820556640625, 0.0006556510925292969, 0.0267791748046875, -0.0191497802734375, 0.04339599609375, 0.01319122314453125, 0.03265380859375, -0.0037555694580078125, 0.00460052490234375, -0.00012791156768798828, 0.01416778564453125, 0.008636474609375, 0.018707275390625, 0.05865478515625, -0.0059814453125, -0.033721923828125, 0.061553955078125, -0.0295257568359375, -0.031982421875, 0.0302581787109375, -0.0097198486328125, -0.0126190185546875, 0.0199432373046875, -0.0145721435546875, 0.03778076171875, 0.0450439453125, 0.0113372802734375, 0.0036067962646484375, -0.0010395050048828125, -0.043792724609375, -0.005718231201171875, -0.0024662017822265625, -0.0255584716796875, 0.0002181529998779297, 0.01316070556640625, 0.0028057098388671875, 0.003570556640625, -0.0105133056640625, -0.06561279296875, 0.01081085205078125, -0.032562255859375, 0.02032470703125, 0.027862548828125, -0.01403045654296875, -0.004425048828125, -0.01146697998046875, 0.01593017578125, -0.055084228515625, -0.068115234375, 0.0131072998046875, -0.0264434814453125, 0.0797119140625, 0.0017604827880859375, 0.039459228515625, -0.00749969482421875, -0.059539794921875, 0.024444580078125, 0.0153350830078125, 0.05517578125, 0.0012350082397460938, -0.00777435302734375, -0.03216552734375, 0.07208251953125, -0.015960693359375, 0.03082275390625, 0.0245208740234375, 0.009063720703125, 0.034912109375, 0.00882720947265625, 0.0245819091796875, 0.026153564453125, -0.04046630859375, 0.007129669189453125, 0.0157928466796875, 0.037200927734375, -0.0018987655639648438, -0.004222869873046875, -0.032318115234375, 0.055755615234375, -0.0014247894287109375, 0.0355224609375, -0.050018310546875, -0.0008397102355957031, 0.0213775634765625, -0.005279541015625, 0.005580902099609375, 0.0236053466796875, 0.0390625, 0.02520751953125, 0.01435089111328125, -0.0239715576171875, -0.00290679931640625, 0.0038967132568359375, -0.006877899169921875, 0.005512237548828125, -0.027435302734375, -0.00325775146484375, -0.012054443359375, 0.052154541015625, -0.0246429443359375, 0.0182342529296875, 0.0277557373046875, -0.005352020263671875, -0.00923919677734375, 0.004215240478515625, -0.06512451171875, -0.002742767333984375, 0.038177490234375, 0.05108642578125, 0.042266845703125, -0.051177978515625, -0.037200927734375, 0.05194091796875, 0.044219970703125, -0.03253173828125, -0.01039886474609375, -0.0004608631134033203, -0.0236968994140625, -0.01152801513671875, -0.04656982421875, 0.0227203369140625, -0.036407470703125, 0.00373077392578125, -0.0283966064453125, -0.005039215087890625, 0.0260009765625, -0.014404296875, 0.0545654296875, 0.01485443115234375, -0.02801513671875, -0.0150146484375, -0.08404541015625, 0.06427001953125, -0.07525634765625, 0.058074951171875, 0.08203125, -0.023193359375, 0.0151519775390625, -0.00614166259765625, 0.0050201416015625, -0.00872802734375, 0.0163421630859375, 0.0010976791381835938, -0.02142333984375, -0.04095458984375, 0.00682830810546875, -0.0031070709228515625, -0.0157623291015625, -0.0306854248046875, -0.044097900390625, -0.03619384765625, -0.0245361328125, -0.0268402099609375, 0.0648193359375, 0.0015344619750976562, -0.0655517578125, -0.0066070556640625, 0.00386810302734375, -0.04986572265625, 0.0034160614013671875, 0.04266357421875, 0.0099639892578125, -0.056915283203125, 0.02178955078125, -0.01540374755859375, -0.01560211181640625, -0.0247955322265625, 0.044219970703125, -0.0013170242309570312, 0.028564453125, 0.005580902099609375, 0.0750732421875, 0.0307159423828125, 0.001850128173828125, 0.045623779296875, -0.007228851318359375, -0.0173492431640625, -0.00101470947265625, 0.02728271484375, 0.019195556640625, -0.012969970703125, 0.02105712890625, 0.00872802734375, 0.037933349609375, -0.05340576171875, -0.0224761962890625, 0.0017757415771484375, -0.00949859619140625, -0.0177154541015625, 0.0195465087890625, 0.002361297607421875, -0.017425537109375, -0.024749755859375, -0.06329345703125, 0.053741455078125, -0.015899658203125, -0.00899505615234375, -0.08404541015625, -0.01134490966796875, -0.008392333984375, -0.04681396484375, -0.012237548828125, 0.008453369140625, 0.0289459228515625, -0.00995635986328125, 0.01290130615234375, 0.0081024169921875, -0.023956298828125, -0.033935546875, -0.0127716064453125, 0.0017824172973632812, -0.033843994140625, 0.014801025390625, -0.019317626953125, -0.0176544189453125, -0.028350830078125, 0.0118560791015625, -0.0487060546875, 0.002338409423828125, 0.009765625, -0.01226806640625, 0.04254150390625, -0.019927978515625, -0.0174407958984375, -0.028350830078125, 0.0625, -0.045684814453125, -0.00237274169921875, 0.002704620361328125, 0.006572723388671875, -0.00543975830078125, -0.043548583984375, -0.037445068359375, -0.024566650390625, 0.0190887451171875, -0.0037784576416015625, -0.0167694091796875, -0.002532958984375, 0.0034923553466796875, -0.050140380859375, 0.035552978515625, -0.01837158203125, 0.01168060302734375, 0.01103973388671875, -0.002227783203125, -0.01168060302734375, 0.002227783203125, -0.03741455078125, 0.0031642913818359375, -0.0230865478515625, -0.0872802734375, -0.000782012939453125, -0.02972412109375, 0.05670166015625, 0.00594329833984375, -0.00020706653594970703, -0.0145416259765625, 0.050323486328125, -0.01751708984375, 0.0172882080078125, -0.0196075439453125, -0.004119873046875, -0.00910186767578125, 0.047027587890625, -0.01183319091796875, -0.0014638900756835938, 0.01421356201171875, 0.04669189453125, -0.046722412109375, -0.03399658203125, -0.0179443359375, -0.0911865234375, 0.07244873046875, -0.0946044921875, -0.033905029296875, -0.020751953125, -0.0076751708984375, -0.00943756103515625, -0.00537109375, -0.01392364501953125, -0.020721435546875, -0.01245880126953125, -0.0506591796875, -0.01294708251953125, -0.0445556640625, 0.04058837890625, -0.0158538818359375, 0.035858154296875, 0.011138916015625, -0.05322265625, 0.0301361083984375, 0.03662109375, -0.001995086669921875, 0.0391845703125, 0.02313232421875, -0.0193634033203125, 0.0299224853515625, 0.0067138671875, 0.0157470703125, -0.03424072265625, 0.03851318359375, -0.02685546875, -0.043365478515625, 0.043853759765625, -0.032989501953125, -0.002498626708984375, 0.028106689453125, 0.006565093994140625, -0.019683837890625, -0.00197601318359375, 0.031768798828125, -0.01922607421875, 0.0145111083984375, -0.0287933349609375, -0.03424072265625, 0.007843017578125, 0.032745361328125, -0.0145721435546875, 0.0361328125, -0.0177459716796875, 0.01151275634765625, 0.00920867919921875, -0.0279083251953125, 0.0057220458984375, 0.0157928466796875, 0.016937255859375, -0.006153106689453125, 0.040802001953125, -0.034698486328125, -0.011871337890625, -0.006122589111328125, -0.00027561187744140625, -0.0111541748046875, -0.060028076171875, -0.01654052734375, -0.00458526611328125, 0.024383544921875, 0.0229644775390625, -0.0016937255859375, -0.017242431640625, 0.0113067626953125, -0.0037822723388671875, 0.034759521484375, 0.0325927734375, 0.0179901123046875, -0.0022430419921875, 0.02301025390625, -0.00920867919921875, -0.003566741943359375, 0.0228271484375, 0.0207977294921875, 0.00409698486328125, 0.01178741455078125, -0.01337432861328125, 0.0275115966796875, 0.07684326171875, -0.0146942138671875, 0.019439697265625, 0.00386810302734375, -0.02081298828125, -0.0170440673828125, 0.0171966552734375, -0.0022296905517578125, -0.01207733154296875, 0.0229034423828125, 0.0006585121154785156, -0.0154876708984375, 0.000698089599609375, 0.025848388671875, 0.0167999267578125, -0.03875732421875, 0.01497650146484375, 0.04888916015625, 0.01427459716796875, -0.026611328125, -0.03424072265625, -0.00196075439453125, 0.045867919921875, 0.036865234375, -0.0753173828125, -0.0010881423950195312, -0.05169677734375, 0.0084228515625, -0.06854248046875, -0.00920867919921875, 0.0162506103515625, 0.0133514404296875, 0.0016736984252929688, 0.0126800537109375, -0.0457763671875, -0.0234832763671875, -0.0279083251953125, 0.02313232421875, 0.04412841796875, 0.0023975372314453125, 0.045196533203125, -0.033966064453125, -0.01480865478515625, -0.0198516845703125, -0.007904052734375, 0.0206756591796875, -0.003993988037109375, -0.01415252685546875, -0.052215576171875, -0.021392822265625, -0.03985595703125, -0.046539306640625, -0.026885986328125, -0.0209197998046875, 0.023193359375, 0.020050048828125, 0.006359100341796875, -0.0233001708984375, -0.0546875, 0.01085662841796875, 0.02178955078125, 0.03253173828125, 0.0219268798828125, 0.0189361572265625, 0.021087646484375, 0.005126953125, 0.06524658203125, 0.01558685302734375, 0.003757476806640625, -0.045440673828125, -0.025665283203125, 0.033966064453125, -0.037109375, -0.046112060546875, -0.0254974365234375, -0.00974273681640625, -0.01097869873046875, -0.0196380615234375, -0.0170745849609375, -0.00902557373046875, -0.010040283203125, 0.0034942626953125, -0.007396697998046875, 0.070556640625, -0.01534271240234375, 0.0012617111206054688, 0.0230865478515625, -0.052734375, 0.0134735107421875, 0.0111083984375, 0.0088958740234375, 0.032318115234375, -0.042144775390625, 0.0340576171875, 0.02838134765625, -0.00860595703125, -0.0013246536254882812, 0.0259246826171875, 0.004467010498046875, 0.0404052734375, 0.0013399124145507812, 0.03924560546875, 0.05145263671875, -0.0016384124755859375, -0.01837158203125, -0.02557373046875, 0.0245513916015625, 0.00018215179443359375, -0.009429931640625, 0.043731689453125, -0.01483917236328125, 0.036224365234375, 0.03717041015625, 0.0506591796875, -0.0948486328125, 0.034759521484375, 0.000055789947509765625, -0.006725311279296875, 0.055694580078125, 0.00594329833984375, 0.0174407958984375, 0.0175628662109375, 0.04150390625, 0.01849365234375, -0.00665283203125, 0.03509521484375, 0.0021343231201171875, -0.0252838134765625, -0.0189208984375, 0.009002685546875, 0.0259552001953125, -0.0172271728515625, 0.0249786376953125, 0.00681304931640625, 0.01016998291015625, -0.0159912109375, -0.00032520294189453125, 0.01233673095703125, -0.039794921875, -0.08477783203125, -0.00970458984375, 0.0012569427490234375, -0.02880859375, 0.076904296875, 0.01274871826171875, 0.000370025634765625, 0.01309967041015625, -0.00954437255859375, 0.0123443603515625, -0.00970458984375, -0.042816162109375, 0.0295257568359375, -0.01226806640625, 0.01055908203125, -0.01232147216796875, 0.005523681640625, 0.0093841552734375, -0.01202392578125, -0.044891357421875, -0.0293121337890625, 0.01398468017578125, 0.088623046875, -0.0284271240234375, -0.01885986328125, 0.026153564453125, 0.03564453125, -0.0199432373046875, 0.0011453628540039062, -0.02972412109375, -0.0496826171875, -0.00739288330078125, -0.024322509765625, -0.0303955078125, 0.0491943359375, 0.0074462890625, -0.037017822265625, 0.0833740234375, -0.00760650634765625, 0.009796142578125, 0.01447296142578125, 0.02447509765625, -0.0275421142578125, 0.007183074951171875, -0.00574493408203125, 0.01303863525390625, -0.0023345947265625, 0.0158233642578125, -0.0297698974609375, -0.017913818359375, 0.0017900466918945312, 0.055572509765625, 0.06463623046875, 0.01509857177734375, -0.03759765625, -0.00102996826171875, 0.031707763671875, 0.0237274169921875, -0.0056304931640625, 0.04107666015625, 0.01410675048828125, -0.00069427490234375, 0.038848876953125, -0.01446533203125, 0.0294952392578125, -0.01227569580078125, 0.00862884521484375, 0.01983642578125, -0.004566192626953125, 0.0020580291748046875, -0.0538330078125, 0.050384521484375, 0.01525115966796875, -0.0455322265625, -0.02178955078125, 0.02752685546875, 0.023651123046875, 0.033111572265625, 0.039093017578125, -0.0139312744140625, 0.007282257080078125, -0.00774383544921875, 0.046661376953125, -0.0017023086547851562, 0.032135009765625, 0.0029582977294921875, 0.02203369140625, 0.033599853515625, -0.048919677734375, 0.01153564453125, 0.0036182403564453125, -0.04534912109375, 0.00662994384765625, -0.033416748046875, 0.0020751953125, -0.09564208984375, -0.03533935546875, 0.057098388671875, 0.04901123046875, -0.0166015625, -0.048980712890625, -0.007556915283203125, 0.016387939453125, 0.048065185546875, 0.016265869140625, 0.0494384765625, 0.035247802734375, 0.0816650390625, -0.0145721435546875, 0.02294921875, 0.046173095703125, -0.0093231201171875, -0.00211334228515625, -0.036712646484375, -0.004116058349609375, 0.067626953125, 0.023193359375, -0.03045654296875, 0.01058197021484375, -0.01218414306640625, -0.00936126708984375, -0.02679443359375, 0.00244903564453125, 0.0231781005859375, -0.025848388671875, -0.0097808837890625, 0.035003662109375, 0.031982421875, 0.01219940185546875, 0.033050537109375, 0.02197265625, 0.0185394287109375, 0.0245819091796875, 0.047271728515625, 0.062469482421875, 0.037078857421875, -0.0117340087890625, 0.00669097900390625, 0.0085296630859375, -0.02484130859375, 0.01200103759765625, -0.0211029052734375, -0.001911163330078125, 0.0362548828125, -0.0300445556640625, 0.01216888427734375, -0.0285186767578125, 0.058929443359375, -0.0020465850830078125, -0.0211181640625, -0.0006051063537597656, -0.0325927734375, 0.01094818115234375, -0.044158935546875, 0.0166015625, -0.0186767578125, -0.0877685546875, -0.0211181640625, -0.0140228271484375, 0.0118865966796875, -0.007266998291015625, 0.01535797119140625, -0.0189056396484375, 0.049041748046875, 0.039520263671875, 0.031341552734375, 0.0188140869140625, -0.062469482421875, 0.0231475830078125, -0.0276336669921875, 0.03192138671875, 0.01557159423828125, -0.08447265625, -0.060211181640625, -0.09393310546875, 0.0733642578125, 0.0096435546875, 0.112548828125, -0.04254150390625, 0.046173095703125, -0.0251007080078125, -0.031463623046875, 0.002471923828125, -0.022064208984375, 0.016693115234375, 0.00362396240234375, -0.034271240234375, 0.0031108856201171875, -0.0079803466796875, -0.0011138916015625, 0.036346435546875, -0.047332763671875, 0.0073089599609375, -0.0208587646484375, 0.017608642578125, -0.0306396484375, 0.007724761962890625, -0.0269927978515625, -0.034271240234375, 0.0026073455810546875, 0.0083465576171875, -0.01180267333984375, 0.00665283203125, 0.0113372802734375, 0.03900146484375, -0.0694580078125, -0.01263427734375, -0.041717529296875, -0.022064208984375, -0.091064453125, 0.012939453125, -0.020263671875, -0.0133056640625, -0.0036468505859375, -0.0212860107421875, 0.012481689453125, 0.006649017333984375, 0.0211944580078125, 0.00992584228515625, 0.00033974647521972656, 0.006679534912109375, -0.032196044921875, -0.00482177734375, -0.0633544921875, -0.025726318359375, 0.0211944580078125, 0.0183563232421875, -0.0235443115234375, 0.0098724365234375, -0.029205322265625, -0.042633056640625, -0.00516510009765625, -0.007465362548828125, -0.0202484130859375, -0.03961181640625, -0.054718017578125, -0.0022678375244140625, -0.003627777099609375, -0.005519866943359375, -0.05059814453125, 0.01343536376953125, 0.0228424072265625, 0.01486968994140625, -0.0168914794921875, -0.0228729248046875, 0.013946533203125, 0.020416259765625, -0.020904541015625, 0.0167388916015625, -0.0214996337890625, -0.009552001953125, -0.00447845458984375, 0.0570068359375, 0.058441162109375, -0.0299224853515625, -0.0006356239318847656, 0.051177978515625, 0.017303466796875, 0.11181640625, -0.046295166015625, -0.0249176025390625, -0.01078033447265625, 0.0039825439453125, -0.01788330078125, -0.055145263671875, 0.0230712890625, -0.06451416015625, -0.0303192138671875, -0.0257415771484375, -0.005756378173828125, -0.0284576416015625, -0.0594482421875, -0.0736083984375, 0.07977294921875, -0.0238494873046875, -0.02252197265625, -0.063720703125, 0.03436279296875, 0.005367279052734375, 0.0170135498046875, -0.00128173828125, -0.0281982421875, -0.02740478515625, 0.008392333984375, 0.0129852294921875, 0.036163330078125, 0.0208740234375, 0.01477813720703125, -0.0033245086669921875, 0.0033054351806640625, -0.002414703369140625, -0.00278472900390625, 0.01580810546875, 0.007541656494140625, 0.0110015869140625, 0.0098724365234375, -0.043975830078125, 0.06439208984375, -0.00727081298828125, 0.037750244140625, 0.0157928466796875, -0.054901123046875, -0.0187530517578125, -0.0270843505859375, 0.0061798095703125, -0.00913238525390625, 0.0116119384765625, -0.0138397216796875, -0.0243988037109375, -0.046875, -0.03857421875, -0.005001068115234375, 0.018218994140625, -0.04913330078125, 0.026580810546875, 0.0026226043701171875, 0.0021514892578125, 0.03997802734375, -0.0245208740234375, -0.01282501220703125, -0.0213775634765625, -0.004787445068359375, -0.025970458984375, -0.0184478759765625, -0.0121307373046875, 0.0285491943359375, -0.0173797607421875, -0.00785064697265625, 0.005767822265625, 0.00641632080078125, -0.0055694580078125, 0.0217437744140625, 0.011627197265625, -0.018951416015625, -0.031463623046875, 0.0413818359375, -0.007232666015625, 0.0325927734375, -0.059478759765625, -0.0367431640625, -0.0264892578125, 0.0135040283203125, 0.01175689697265625, 0.00836944580078125, -0.026702880859375, 0.03729248046875, 0.016845703125, 0.047454833984375, -0.015655517578125, -0.08251953125, -0.03497314453125, 0.007568359375, -0.01837158203125, 0.00914764404296875, 0.01468658447265625, -0.032562255859375, -0.00905609130859375, 0.0218048095703125, -0.0272979736328125, -0.035980224609375, 0.0283660888671875, -0.0088043212890625, -0.0016489028930664062, 0.010467529296875 ]
fc1a18486f52c653cc1183f3aafe5485ab151d8d
Wordpress Stackexchange Q: Automatically remove trashed pages from nav menu As it is now, when a page that is in the nav menu is trashed, it still stays in the menu until manually remove via the nav menu editor. Is it possible to have trashed pages removed automatically? Thanks A: You'll need a plugin which: * *Adds a method to the deleted_post action (taking the page's id) *Filters: the action is used for posts etc. as well. *Updates the menu by * *wp_get_nav_menu to get its items *remove the item representing the page *update the menu with wp_update_nav_menu_object.
Q: Automatically remove trashed pages from nav menu As it is now, when a page that is in the nav menu is trashed, it still stays in the menu until manually remove via the nav menu editor. Is it possible to have trashed pages removed automatically? Thanks A: You'll need a plugin which: * *Adds a method to the deleted_post action (taking the page's id) *Filters: the action is used for posts etc. as well. *Updates the menu by * *wp_get_nav_menu to get its items *remove the item representing the page *update the menu with wp_update_nav_menu_object. A: Just hook the default delete_post handler for menus onto the trash action too: add_action( 'wp_trash_post', '_wp_delete_post_menu_item' ); How simple is that!
wordpress
{ "language": "en", "length": 118, "provenance": "stackexchange_00019.jsonl.gz:422074", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59204" }
[ 0.06634521484375, 0.03045654296875, 0.0182037353515625, -0.0010166168212890625, 0.0235595703125, -0.036651611328125, 0.05487060546875, -0.055755615234375, 0.032012939453125, -0.00550079345703125, -0.056182861328125, -0.0003199577331542969, -0.00026535987854003906, -0.019317626953125, 0.0059967041015625, -0.0260162353515625, 0.0280914306640625, -0.0126495361328125, 0.036407470703125, -0.01253509521484375, 0.0003142356872558594, -0.00580596923828125, 0.072998046875, -0.0159759521484375, 0.044036865234375, 0.0177459716796875, -0.020416259765625, 0.0183258056640625, -0.017791748046875, -0.006317138671875, 0.0140838623046875, 0.01261138916015625, -0.032318115234375, 0.037200927734375, 0.036895751953125, -0.01416015625, -0.0103912353515625, 0.03802490234375, 0.050994873046875, -0.0185699462890625, 0.0211029052734375, -0.00588226318359375, 0.013031005859375, 0.0085906982421875, -0.0018568038940429688, -0.016998291015625, 0.00016415119171142578, -0.0445556640625, 0.040740966796875, -0.035980224609375, 0.007965087890625, 0.0080718994140625, 0.0258636474609375, -0.0224151611328125, -0.040618896484375, -0.028717041015625, 0.01198577880859375, -0.00843048095703125, 0.033294677734375, -0.007648468017578125, -0.035430908203125, 0.002307891845703125, 0.0151519775390625, -0.042327880859375, -0.01062774658203125, 0.00502777099609375, 0.01373291015625, 0.018463134765625, -0.058837890625, -0.0233154296875, 0.0328369140625, -0.0199737548828125, 0.00007843971252441406, 0.021209716796875, -0.0010690689086914062, -0.0467529296875, 0.0184783935546875, -0.004253387451171875, 0.007427215576171875, 0.028839111328125, -0.01119232177734375, 0.0251617431640625, -0.0251922607421875, -0.008026123046875, -0.0267486572265625, 0.0120849609375, -0.0224761962890625, -0.0158538818359375, -0.0235595703125, -0.03759765625, -0.02081298828125, -0.01215362548828125, -0.0200347900390625, 0.0106964111328125, -0.0287628173828125, -0.0019350051879882812, 0.0194244384765625, 0.09918212890625, -0.007343292236328125, 0.042327880859375, -0.0234222412109375, -0.0272216796875, 0.0418701171875, -0.0845947265625, 0.004703521728515625, -0.0155792236328125, -0.007663726806640625, 0.0027637481689453125, 0.035369873046875, 0.045379638671875, -0.016357421875, -0.006999969482421875, 0.01251983642578125, -0.0311737060546875, -0.0121917724609375, 0.01113128662109375, -0.00852203369140625, 0.0111846923828125, 0.0102691650390625, -0.0187225341796875, -0.031280517578125, 0.003391265869140625, -0.04888916015625, -0.0194854736328125, 0.0087890625, -0.00423431396484375, 0.01088714599609375, 0.0135498046875, 0.016693115234375, -0.0299835205078125, -0.03955078125, 0.029693603515625, 0.045440673828125, 0.018890380859375, -0.00228118896484375, -0.002887725830078125, 0.00888824462890625, -0.02099609375, 0.0206298828125, -0.0199432373046875, 0.045928955078125, 0.0007333755493164062, -0.003955841064453125, 0.03271484375, 0.00711822509765625, -0.01236724853515625, 0.01398468017578125, 0.018768310546875, 0.0120391845703125, -0.00640869140625, 0.0249786376953125, -0.01032257080078125, 0.047576904296875, -0.01336669921875, 0.027801513671875, -0.05413818359375, 0.06134033203125, -0.048736572265625, -0.00699615478515625, -0.05047607421875, 0.036407470703125, 0.007671356201171875, 0.015838623046875, -0.0347900390625, -0.052398681640625, -0.020751953125, -0.06005859375, -0.0151519775390625, 0.0174713134765625, -0.0047760009765625, 0.004207611083984375, -0.0173187255859375, 0.009552001953125, 0.0202484130859375, 0.007793426513671875, 0.02825927734375, 0.035430908203125, -0.002086639404296875, -0.017059326171875, 0.053985595703125, -0.0037670135498046875, -0.023681640625, 0.006221771240234375, -0.019561767578125, -0.037628173828125, -0.022674560546875, 0.0120086669921875, 0.049652099609375, 0.026947021484375, 0.032745361328125, 0.017608642578125, -0.03009033203125, 0.0018644332885742188, -0.015960693359375, 0.037750244140625, -0.03155517578125, 0.002918243408203125, -0.01849365234375, 0.0179290771484375, -0.01486968994140625, -0.00885009765625, -0.01122283935546875, 0.01593017578125, 0.0070343017578125, -0.0682373046875, 0.020782470703125, -0.044647216796875, 0.04290771484375, 0.028350830078125, 0.0199127197265625, -0.000095367431640625, -0.015655517578125, -0.00736236572265625, -0.0141754150390625, -0.038421630859375, -0.00301361083984375, -0.0168304443359375, -0.02520751953125, -0.006298065185546875, -0.007747650146484375, -0.03155517578125, 0.01461029052734375, -0.046051025390625, -0.00775146484375, 0.052642822265625, -0.0484619140625, -0.01392364501953125, -0.05377197265625, 0.005817413330078125, -0.03948974609375, -0.0265350341796875, 0.09808349609375, 0.04364013671875, 0.051544189453125, 0.00357818603515625, -0.0160369873046875, -0.02032470703125, -0.11248779296875, -0.00890350341796875, 0.06903076171875, 0.020477294921875, 0.028594970703125, 0.00559234619140625, 0.048065185546875, 0.031280517578125, -0.01544952392578125, 0.0052642822265625, 0.03125, -0.019256591796875, 0.024017333984375, 0.047210693359375, 0.0021457672119140625, 0.006313323974609375, -0.0307769775390625, -0.01194000244140625, 0.0251312255859375, -0.006374359130859375, -0.003360748291015625, -0.0144805908203125, 0.0095367431640625, 0.0015010833740234375, -0.01364898681640625, -0.01007080078125, -0.00879669189453125, 0.056182861328125, -0.0499267578125, 0.03192138671875, 0.00406646728515625, -0.01013946533203125, -0.04486083984375, 0.0285491943359375, 0.0173187255859375, 0.003757476806640625, 0.0257568359375, 0.00733184814453125, -0.01131439208984375, 0.0172882080078125, -0.027618408203125, -0.01149749755859375, -0.00405120849609375, -0.034515380859375, -0.00455474853515625, 0.06622314453125, -0.006404876708984375, -0.01288604736328125, -0.01336669921875, 0.061553955078125, -0.027496337890625, -0.040191650390625, -0.0206451416015625, -0.003101348876953125, 0.0350341796875, -0.032684326171875, 0.0294036865234375, 0.0031948089599609375, -0.00846099853515625, 0.0321044921875, -0.007137298583984375, 0.004566192626953125, -0.0023632049560546875, 0.03314208984375, 0.05377197265625, 0.02154541015625, -0.0220947265625, 0.0097503662109375, 0.041534423828125, 0.0216827392578125, -0.004825592041015625, -0.0030193328857421875, 0.02880859375, -0.02532958984375, 0.027862548828125, -0.0006079673767089844, 0.01104736328125, -0.027252197265625, -0.03643798828125, -0.027008056640625, -0.0128173828125, -0.08428955078125, -0.0579833984375, 0.055419921875, -0.0029850006103515625, 0.0007305145263671875, 0.0318603515625, 0.0034923553466796875, -0.046173095703125, 0.06573486328125, -0.01275634765625, -0.020111083984375, -0.01258087158203125, -0.00702667236328125, -0.01381683349609375, -0.00809478759765625, 0.0201263427734375, 0.0041046142578125, -0.00583648681640625, -0.0029697418212890625, 0.078857421875, -0.017730712890625, -0.0809326171875, -0.04229736328125, -0.0192108154296875, -0.0162353515625, 0.00801849365234375, 0.0113983154296875, 0.0005393028259277344, 0.030609130859375, 0.0018053054809570312, 0.0285491943359375, 0.0306243896484375, -0.0389404296875, -0.0110321044921875, -0.06787109375, -0.0017995834350585938, 0.014129638671875, -0.017669677734375, 0.059844970703125, 0.050323486328125, 0.0235595703125, -0.0005712509155273438, -0.0254058837890625, -0.0161895751953125, -0.034637451171875, 0.0038890838623046875, 0.0145721435546875, 0.0009851455688476562, -0.020111083984375, 0.03155517578125, 0.0038623809814453125, -0.004421234130859375, 0.0172119140625, 0.0156402587890625, 0.00799560546875, -0.0272064208984375, -0.027496337890625, -0.0201873779296875, 0.05914306640625, -0.0006313323974609375, 0.0224761962890625, 0.034881591796875, 0.01751708984375, 0.021209716796875, 0.00109100341796875, -0.0084686279296875, -0.02410888671875, 0.0189056396484375, -0.0116729736328125, 0.0236358642578125, -0.006496429443359375, -0.00923919677734375, 0.004119873046875, 0.0692138671875, -0.06671142578125, -0.05108642578125, -0.01611328125, 0.01580810546875, 0.040374755859375, -0.0225067138671875, 0.039794921875, -0.053131103515625, -0.13427734375, 0.03271484375, 0.0011034011840820312, -0.020721435546875, -0.050323486328125, 0.059814453125, -0.08502197265625, -0.052093505859375, 0.0482177734375, -0.0849609375, 0.0091705322265625, 0.01090240478515625, -0.004638671875, -0.0537109375, -0.0273284912109375, -0.03460693359375, -0.07672119140625, -0.0086669921875, -0.0350341796875, 0.049560546875, 0.0174713134765625, -0.0043792724609375, -0.0039215087890625, 0.023223876953125, 0.0440673828125, 0.01092529296875, -0.002231597900390625, -0.044219970703125, -0.023590087890625, -0.0019321441650390625, 0.017730712890625, -0.023895263671875, 0.046661376953125, 0.0017862319946289062, -0.0469970703125, -0.00913238525390625, -0.04046630859375, 0.01922607421875, 0.005352020263671875, -0.044708251953125, -0.0455322265625, -0.061767578125, -0.0270843505859375, -0.018646240234375, -0.0002810955047607422, 0.00010204315185546875, -0.047607421875, -0.0296783447265625, 0.0303955078125, -0.00305938720703125, -0.0034656524658203125, 0.01299285888671875, 0.03509521484375, 0.00885772705078125, -0.028350830078125, -0.027496337890625, 0.029205322265625, 0.007404327392578125, -0.01073455810546875, 0.05157470703125, 0.005748748779296875, -0.0005216598510742188, 0.0141448974609375, -0.0171356201171875, -0.00032782554626464844, -0.045928955078125, 0.0211181640625, -0.02081298828125, -0.0108642578125, 0.0032978057861328125, -0.050018310546875, 0.06689453125, 0.056365966796875, -0.00937652587890625, 0.00778961181640625, -0.019500732421875, 0.0087432861328125, -0.00980377197265625, -0.0155792236328125, -0.0360107421875, -0.005413055419921875, -0.00911712646484375, 0.01451873779296875, 0.06463623046875, 0.041015625, -0.015838623046875, 0.04345703125, 0.0302276611328125, -0.00730133056640625, -0.028106689453125, -0.030517578125, -0.0188446044921875, 0.019866943359375, -0.04803466796875, -0.0056915283203125, 0.01531982421875, 0.0003635883331298828, 0.03778076171875, 0.003971099853515625, -0.00724029541015625, -0.047576904296875, -0.01018524169921875, 0.031951904296875, -0.00862884521484375, 0.039306640625, 0.02734375, -0.02056884765625, -0.003986358642578125, -0.017822265625, -0.001605987548828125, -0.0043792724609375, -0.0330810546875, -0.050048828125, 0.00011533498764038086, -0.03125, 0.019866943359375, 0.023223876953125, -0.0232391357421875, 0.0325927734375, -0.014617919921875, -0.015625, -0.00705718994140625, 0.025115966796875, 0.02587890625, 0.01386260986328125, -0.002735137939453125, 0.0010623931884765625, 0.0194244384765625, -0.0247802734375, -0.052459716796875, 0.032867431640625, 0.0477294921875, -0.0191497802734375, 0.0106658935546875, -0.010589599609375, 0.0088348388671875, -0.0185394287109375, 0.04583740234375, -0.030120849609375, -0.0743408203125, -0.033538818359375, 0.04083251953125, 0.05523681640625, -0.0266571044921875, -0.011474609375, -0.007022857666015625, -0.0186614990234375, -0.0024871826171875, -0.0005679130554199219, -0.0229034423828125, 0.004436492919921875, -0.00168609619140625, 0.006168365478515625, -0.01422119140625, 0.00458526611328125, -0.08282470703125, 0.0094451904296875, -0.0277862548828125, 0.0025005340576171875, 0.05694580078125, 0.005809783935546875, 0.0059814453125, -0.020172119140625, -0.0018711090087890625, 0.0217742919921875, 0.004161834716796875, 0.020263671875, -0.0289306640625, 0.005474090576171875, -0.03955078125, -0.031036376953125, -0.047271728515625, -0.0307159423828125, 0.039794921875, -0.0396728515625, 0.0267181396484375, -0.006526947021484375, 0.0275115966796875, -0.02178955078125, 0.00359344482421875, 0.012542724609375, -0.0015916824340820312, -0.0299224853515625, 0.00795745849609375, -0.01026153564453125, 0.037109375, -0.0003077983856201172, 0.03369140625, 0.018035888671875, 0.0222015380859375, 0.00019538402557373047, -0.0209503173828125, -0.0132904052734375, -0.02099609375, 0.022613525390625, -0.002498626708984375, -0.0164642333984375, 0.01016998291015625, 0.049774169921875, 0.0164031982421875, 0.006145477294921875, -0.0352783203125, -0.007568359375, -0.033782958984375, 0.0458984375, -0.046051025390625, 0.01148223876953125, -0.0150146484375, -0.0306396484375, -0.01092529296875, 0.0305938720703125, 0.0180511474609375, -0.01522064208984375, -0.0007610321044921875, 0.0027065277099609375, -0.019195556640625, -0.0323486328125, 0.07818603515625, 0.0567626953125, -0.01375579833984375, 0.006855010986328125, 0.01082611083984375, -0.0201263427734375, -0.00830841064453125, -0.02294921875, 0.014373779296875, 0.0002510547637939453, 0.0274810791015625, -0.0145721435546875, 0.002197265625, 0.015106201171875, -0.01413726806640625, 0.006038665771484375, 0.0684814453125, 0.046630859375, -0.099853515625, 0.00490570068359375, 0.00017559528350830078, -0.0191192626953125, 0.0242462158203125, -0.0024356842041015625, 0.01461029052734375, 0.022674560546875, -0.02899169921875, -0.00925445556640625, -0.034881591796875, -0.022216796875, -0.0099334716796875, 0.0115966796875, -0.00647735595703125, 0.045623779296875, -0.00855255126953125, -0.0389404296875, -0.0026397705078125, 0.0025997161865234375, -0.0102081298828125, -0.036163330078125, -0.00007033348083496094, 0.02679443359375, -0.0135650634765625, -0.033172607421875, 0.07098388671875, -0.025665283203125, 0.0194549560546875, 0.01184844970703125, -0.00833892822265625, 0.0015106201171875, 0.030731201171875, -0.0305328369140625, 0.015625, -0.01480865478515625, -0.0165863037109375, -0.0035915374755859375, -0.016021728515625, 0.06201171875, -0.02203369140625, -0.058013916015625, 0.0230560302734375, -0.04052734375, -0.06622314453125, -0.0168609619140625, -0.036041259765625, 0.0928955078125, -0.049468994140625, -0.0167388916015625, -0.0037746429443359375, 0.00711822509765625, 0.0021724700927734375, -0.016754150390625, 0.01080322265625, -0.04052734375, 0.01129913330078125, -0.007526397705078125, 0.0234222412109375, -0.01715087890625, -0.0301513671875, -0.060638427734375, 0.07928466796875, 0.04193115234375, -0.004283905029296875, -0.038482666015625, 0.055511474609375, -0.0235748291015625, 0.040557861328125, -0.0292816162109375, 0.06622314453125, 0.0271759033203125, 0.0154266357421875, -0.0192718505859375, -0.0012426376342773438, 0.00566864013671875, 0.003803253173828125, -0.049102783203125, -0.0174713134765625, 0.01045989990234375, -0.00713348388671875, 0.025421142578125, 0.0280914306640625, 0.028076171875, -0.00563812255859375, -0.002140045166015625, 0.0067596435546875, 0.0050811767578125, -0.03875732421875, 0.0154266357421875, -0.06982421875, 0.00344085693359375, 0.00489044189453125, -0.004917144775390625, -0.00814056396484375, -0.027008056640625, 0.004230499267578125, -0.01464080810546875, -0.014373779296875, -0.0175933837890625, 0.039215087890625, 0.02728271484375, 0.023101806640625, 0.05047607421875, -0.04852294921875, -0.063232421875, -0.009765625, 0.034942626953125, 0.018341064453125, 0.0164794921875, 0.053375244140625, 0.0212860107421875, 0.005435943603515625, 0.002429962158203125, 0.01538848876953125, 0.0006399154663085938, -0.0147247314453125, 0.04998779296875, 0.0161590576171875, 0.03662109375, -0.049591064453125, -0.0528564453125, 0.01525115966796875, 0.0743408203125, -0.01096343994140625, -0.07391357421875, 0.00922393798828125, -0.000789642333984375, 0.02587890625, 0.0116424560546875, 0.0268707275390625, -0.060089111328125, 0.006420135498046875, 0.0002579689025878906, -0.00798797607421875, 0.02734375, 0.0002110004425048828, -0.005901336669921875, 0.017822265625, -0.003009796142578125, 0.006504058837890625, -0.0223846435546875, 0.0021038055419921875, 0.00804901123046875, 0.035003662109375, 0.01418304443359375, 0.03704833984375, 0.006175994873046875, -0.0014772415161132812, -0.043670654296875, 0.05401611328125, -0.04052734375, 0.06561279296875, -0.07550048828125, -0.053253173828125, -0.00868988037109375, 0.046905517578125, -0.0347900390625, -0.013336181640625, 0.0411376953125, 0.0194854736328125, -0.0753173828125, -0.054473876953125, -0.024200439453125, -0.0535888671875, -0.01096343994140625, -0.0205841064453125, -0.0017499923706054688, 0.0256805419921875, -0.00481414794921875, -0.004360198974609375, 0.004833221435546875, 0.041229248046875, -0.024566650390625, -0.00629425048828125, -0.004741668701171875, -0.03997802734375, 0.0197906494140625, -0.01280975341796875, 0.01371002197265625, 0.003726959228515625, -0.057342529296875, -0.0245361328125, -0.0543212890625, 0.027496337890625, 0.033721923828125, 0.0238189697265625, 0.029693603515625, -0.00353240966796875, 0.01387786865234375, 0.00347137451171875, 0.00792694091796875, 0.0024585723876953125, -0.0166168212890625, 0.01432037353515625, 0.041534423828125, 0.00894927978515625, -0.0176544189453125, -0.0240936279296875, -0.0008530616760253906, 0.037750244140625, 0.00015246868133544922, 0.04156494140625, -0.01194000244140625, 0.01363372802734375, -0.023406982421875, -0.0007848739624023438, -0.03570556640625, -0.031707763671875, -0.0177154541015625, -0.01702880859375, -0.005382537841796875, 0.0137176513671875, -0.047637939453125, 0.033660888671875, 0.0292816162109375, -0.005397796630859375, 0.01922607421875, -0.0028362274169921875, 0.004230499267578125, -0.0089569091796875, 0.044525146484375, -0.00872802734375, 0.00928497314453125, -0.0150909423828125, -0.026458740234375, 0.042633056640625, 0.0246429443359375, -0.0031795501708984375, 0.04302978515625, -0.0143890380859375, 0.0081329345703125, 0.0260772705078125, -0.036956787109375, 0.0217132568359375, 0.01357269287109375, -0.02239990234375, 0.006134033203125, 0.01558685302734375, -0.0059051513671875, 0.00666046142578125, 0.023590087890625, -0.0225677490234375, 0.0418701171875, -0.0152587890625, 0.0033893585205078125, -0.056732177734375, 0.01027679443359375, -0.0167694091796875, -0.028472900390625, -0.046112060546875, 0.02911376953125, -0.007659912109375, 0.0285186767578125, -0.0140228271484375, -0.023529052734375, -0.023956298828125, -0.0035991668701171875, -0.032196044921875, -0.0469970703125, -0.07513427734375, 0.016143798828125, 0.0159912109375, 0.038330078125, -0.1109619140625, 0.06549072265625, 0.00562286376953125, 0.038818359375, -0.0053253173828125, 0.00591278076171875, -0.056396484375, -0.0960693359375, -0.0224761962890625, -0.019989013671875, -0.06500244140625, 0.0675048828125, -0.0027408599853515625, -0.0196380615234375, -0.0300445556640625, -0.003936767578125, 0.0296173095703125, -0.028106689453125, 0.0142822265625, 0.0235137939453125, 0.052520751953125, -0.045135498046875, 0.00418853759765625, -0.00299835205078125, 0.051666259765625, -0.0157318115234375, -0.044708251953125, 0.0180511474609375, 0.046234130859375, 0.01476287841796875, -0.007770538330078125, 0.01120758056640625, -0.032318115234375, -0.0535888671875, 0.044677734375, 0.0223846435546875, -0.03466796875, 0.0015668869018554688, 0.027618408203125, -0.0024471282958984375, -0.052154541015625, -0.00823211669921875, -0.0205841064453125, 0.01386260986328125, 0.0013484954833984375, 0.0081329345703125, 0.0826416015625, -0.033050537109375, 0.0120086669921875, -0.0030078887939453125, 0.047607421875, 0.03192138671875, 0.03759765625, 0.030853271484375, -0.015777587890625, 0.0511474609375, 0.04901123046875, -0.04150390625, 0.0021953582763671875, -0.0209197998046875, -0.01291656494140625, 0.003643035888671875, 0.00021147727966308594, -0.033782958984375, -0.0203094482421875, 0.05767822265625, 0.041229248046875, 0.017333984375, -0.006011962890625, 0.01187896728515625, -0.0194854736328125, -0.0221099853515625, -0.004642486572265625, -0.0027790069580078125, -0.0225372314453125, -0.01033782958984375, -0.0227813720703125, -0.01186370849609375, -0.0224151611328125, -0.017120361328125, -0.0272369384765625, 0.001667022705078125, 0.0257110595703125, 0.0038394927978515625, 0.022247314453125, -0.0020275115966796875, 0.0250396728515625, -0.0198211669921875, 0.0088958740234375, 0.005950927734375, 0.0164947509765625, 0.02215576171875, 0.050994873046875, -0.0030879974365234375, 0.04974365234375, -0.07916259765625, -0.0106353759765625, -0.01555633544921875, 0.02813720703125, -0.054229736328125, 0.004955291748046875, -0.0009603500366210938, 0.037750244140625, 0.009674072265625, 0.07000732421875, -0.04852294921875, 0.033599853515625, 0.01399993896484375, -0.023101806640625, 0.0034618377685546875, 0.00267791748046875, 0.0005936622619628906, 0.03875732421875, -0.01160430908203125, -0.035980224609375, 0.0374755859375, -0.06591796875, -0.006107330322265625, 0.01007080078125, -0.01187896728515625, -0.1083984375, 0.07220458984375, 0.0193634033203125, 0.042205810546875, 0.055145263671875 ]
8e3d16e2eb72a112053bdd19461d68d19bec2171
Wordpress Stackexchange Q: register_sidebar ignores 'id' and 'class' I am using the following to register a widget area: if ( function_exists('register_sidebar') ) register_sidebar( array( 'name' => __( 'Footer Widgets', 'hex'), 'id' => 'footer-widgets', 'class' => 'footer-widgets', 'description' => __( 'Widgets will appear in the blog, between the end of content and footer', 'hex' ), 'before_widget' => '<li class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ) ); And both id and class are ignored, what I get is only the widgets themselves - the top element in the widget area is the <li> I know I can simply wrap it in the index.php, where the widgets show, with a div, but isn't this suppose to do it? A: The id parameter in register_sidebar is not directly related to the html output. It is used to identify each sidebar when the $widget_object is built. The class should be added to the before_widget markup. http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/widgets.php#L1128 is where the class gets parsed.
Q: register_sidebar ignores 'id' and 'class' I am using the following to register a widget area: if ( function_exists('register_sidebar') ) register_sidebar( array( 'name' => __( 'Footer Widgets', 'hex'), 'id' => 'footer-widgets', 'class' => 'footer-widgets', 'description' => __( 'Widgets will appear in the blog, between the end of content and footer', 'hex' ), 'before_widget' => '<li class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ) ); And both id and class are ignored, what I get is only the widgets themselves - the top element in the widget area is the <li> I know I can simply wrap it in the index.php, where the widgets show, with a div, but isn't this suppose to do it? A: The id parameter in register_sidebar is not directly related to the html output. It is used to identify each sidebar when the $widget_object is built. The class should be added to the before_widget markup. http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/widgets.php#L1128 is where the class gets parsed.
wordpress
{ "language": "en", "length": 161, "provenance": "stackexchange_00019.jsonl.gz:422080", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59218" }
[ 0.031219482421875, 0.00786590576171875, -0.01322174072265625, -0.03253173828125, 0.02935791015625, -0.044769287109375, 0.0251312255859375, -0.0277557373046875, 0.0015630722045898438, 0.022552490234375, -0.06402587890625, 0.0095367431640625, -0.01358795166015625, 0.0126800537109375, -0.0254364013671875, -0.041717529296875, 0.016693115234375, 0.018707275390625, 0.037078857421875, -0.00876617431640625, 0.005359649658203125, -0.00655364990234375, 0.03839111328125, 0.01340484619140625, 0.0218963623046875, -0.096435546875, 0.11273193359375, -0.0188140869140625, 0.032073974609375, -0.0230255126953125, 0.039764404296875, 0.002666473388671875, 0.0255279541015625, 0.0042266845703125, 0.02496337890625, 0.021636962890625, 0.019683837890625, -0.00727081298828125, 0.0144195556640625, 0.0242919921875, 0.033935546875, -0.046600341796875, 0.00441741943359375, 0.00957489013671875, -0.0303192138671875, -0.0010013580322265625, 0.0190582275390625, -0.004638671875, 0.03143310546875, -0.0235595703125, 0.0166168212890625, -0.0283355712890625, 0.03363037109375, -0.04144287109375, -0.043426513671875, 0.0019588470458984375, 0.02099609375, -0.018585205078125, 0.00798797607421875, 0.041778564453125, -0.006168365478515625, 0.025482177734375, 0.0015077590942382812, -0.0423583984375, -0.036163330078125, -0.045745849609375, 0.00362396240234375, 0.0106658935546875, -0.036773681640625, -0.023193359375, 0.0648193359375, 0.003482818603515625, -0.01116180419921875, -0.0235595703125, -0.0015163421630859375, 0.01450347900390625, 0.01180267333984375, 0.00733184814453125, -0.0109405517578125, 0.014068603515625, -0.008270263671875, 0.0009560585021972656, -0.0241851806640625, 0.01413726806640625, 0.00888824462890625, 0.03582763671875, -0.0196380615234375, -0.0179901123046875, -0.01320648193359375, -0.0170440673828125, -0.00634002685546875, -0.041015625, 0.031707763671875, -0.02484130859375, -0.0170745849609375, -0.05157470703125, 0.0173187255859375, 0.076416015625, -0.0279998779296875, 0.0256500244140625, -0.005748748779296875, -0.03216552734375, 0.04290771484375, -0.0606689453125, 0.033294677734375, 0.08721923828125, -0.037200927734375, 0.023101806640625, 0.06060791015625, 0.009796142578125, 0.041046142578125, -0.0186767578125, 0.0167388916015625, -0.006439208984375, -0.056396484375, -0.004581451416015625, 0.002300262451171875, -0.018585205078125, 0.01224517822265625, -0.00665283203125, 0.021759033203125, 0.0186309814453125, 0.06842041015625, 0.001049041748046875, 0.021453857421875, 0.034912109375, -0.01611328125, -0.09234619140625, 0.0037670135498046875, -0.0018053054809570312, -0.01226806640625, 0.01329803466796875, 0.0258331298828125, 0.01313018798828125, 0.0029087066650390625, -0.006862640380859375, 0.09942626953125, 0.0171356201171875, 0.0036182403564453125, 0.02716064453125, -0.0176239013671875, -0.02813720703125, -0.0306396484375, -0.0207366943359375, 0.0020122528076171875, 0.056365966796875, 0.02581787109375, -0.045684814453125, -0.01495361328125, -0.059112548828125, 0.01221466064453125, -0.08831787109375, 0.032012939453125, 0.026641845703125, -0.00811004638671875, -0.002666473388671875, 0.039306640625, -0.02056884765625, -0.040618896484375, -0.04144287109375, 0.003040313720703125, -0.00036072731018066406, -0.007083892822265625, -0.0684814453125, -0.07568359375, 0.018768310546875, -0.0181884765625, -0.00691986083984375, 0.0303802490234375, 0.055145263671875, 0.0254669189453125, -0.060882568359375, 0.007236480712890625, 0.041412353515625, -0.01085662841796875, 0.04254150390625, 0.012786865234375, -0.0003540515899658203, 0.017181396484375, -0.0271453857421875, -0.0628662109375, -0.059844970703125, 0.041778564453125, -0.038421630859375, -0.0655517578125, 0.0029964447021484375, 0.023681640625, 0.0555419921875, 0.0195770263671875, 0.01392364501953125, 0.0540771484375, 0.017333984375, -0.07122802734375, 0.029571533203125, -0.004291534423828125, 0.005565643310546875, 0.0036869049072265625, 0.01009368896484375, 0.0020542144775390625, -0.01165008544921875, -0.01123046875, -0.0206298828125, 0.040740966796875, -0.01666259765625, -0.0195465087890625, 0.018768310546875, -0.01274871826171875, 0.0413818359375, 0.0215911865234375, 0.03692626953125, 0.0171051025390625, 0.0543212890625, -0.04730224609375, -0.005401611328125, -0.0382080078125, -0.0027980804443359375, -0.01568603515625, 0.062286376953125, 0.0122222900390625, 0.00772857666015625, -0.005481719970703125, -0.027557373046875, 0.019622802734375, 0.01104736328125, 0.05682373046875, -0.0013742446899414062, -0.0011434555053710938, -0.032135009765625, 0.0276336669921875, 0.018341064453125, -0.057525634765625, 0.0362548828125, -0.0091705322265625, -0.005374908447265625, -0.06597900390625, -0.025177001953125, -0.0261077880859375, -0.003810882568359375, 0.01513671875, 0.046875, 0.009857177734375, 0.0310516357421875, -0.0185089111328125, 0.0165557861328125, -0.0037899017333984375, -0.042266845703125, 0.00905609130859375, -0.0073699951171875, -0.0278167724609375, 0.01861572265625, -0.00751495361328125, 0.031280517578125, 0.01517486572265625, 0.01715087890625, -0.0001760721206665039, 0.023223876953125, -0.0171356201171875, -0.031982421875, -0.01044464111328125, -0.0007066726684570312, 0.01500701904296875, -0.05938720703125, -0.049713134765625, -0.016998291015625, 0.028076171875, 0.016510009765625, 0.053131103515625, 0.0284423828125, -0.0158538818359375, -0.0042877197265625, 0.0015010833740234375, -0.005397796630859375, 0.00870513916015625, 0.01457977294921875, 0.035003662109375, -0.009124755859375, -0.03460693359375, -0.01763916015625, 0.05718994140625, -0.006778717041015625, 0.00849151611328125, 0.040283203125, -0.01529693603515625, -0.005817413330078125, -0.026611328125, -0.0703125, 0.0178985595703125, 0.06695556640625, 0.0102386474609375, -0.044189453125, -0.0295867919921875, 0.044647216796875, 0.0014514923095703125, 0.036834716796875, 0.0513916015625, -0.032928466796875, 0.034820556640625, 0.015899658203125, 0.00914764404296875, -0.00110626220703125, 0.0255126953125, 0.02178955078125, -0.008148193359375, -0.02288818359375, 0.0084686279296875, 0.002590179443359375, 0.0309295654296875, 0.0013780593872070312, 0.007114410400390625, -0.0206451416015625, -0.0261993408203125, 0.0200958251953125, 0.00434112548828125, 0.060516357421875, -0.008575439453125, -0.053802490234375, 0.03546142578125, 0.00637054443359375, -0.0268402099609375, -0.046173095703125, 0.026947021484375, -0.04534912109375, -0.0604248046875, 0.004482269287109375, -0.04888916015625, 0.0259857177734375, 0.01302337646484375, -0.01220703125, -0.03704833984375, -0.016876220703125, -0.054931640625, -0.057586669921875, -0.054534912109375, 0.0169525146484375, -0.01251983642578125, 0.0120391845703125, 0.0134735107421875, -0.0005044937133789062, 0.00927734375, -0.028045654296875, 0.037567138671875, -0.002986907958984375, -0.0110626220703125, 0.0167236328125, -0.018310546875, -0.02685546875, -0.032745361328125, -0.01267242431640625, 0.00001817941665649414, -0.005420684814453125, -0.00628662109375, 0.016845703125, 0.0205078125, -0.0174407958984375, 0.0287933349609375, 0.005859375, -0.032012939453125, -0.0172271728515625, 0.028350830078125, -0.044708251953125, -0.03472900390625, 0.01546478271484375, -0.020233154296875, -0.03900146484375, -0.0030460357666015625, -0.01250457763671875, -0.0013942718505859375, 0.0007781982421875, -0.0218048095703125, -0.0018463134765625, 0.0074615478515625, -0.051971435546875, 0.031463623046875, 0.002410888671875, 0.0015134811401367188, 0.00858306884765625, -0.0110321044921875, -0.0019407272338867188, -0.0224761962890625, -0.01654052734375, 0.039276123046875, -0.01248931884765625, 0.0482177734375, -0.040863037109375, -0.0190582275390625, 0.041107177734375, -0.017578125, 0.04058837890625, -0.0253448486328125, -0.034149169921875, 0.00537109375, 0.0927734375, -0.067138671875, -0.0206146240234375, 0.00933837890625, 0.023162841796875, -0.032440185546875, -0.037445068359375, -0.024078369140625, -0.0113983154296875, -0.03826904296875, -0.00402069091796875, 0.0037975311279296875, -0.03692626953125, -0.0091094970703125, -0.01546478271484375, -0.03509521484375, -0.0184783935546875, 0.032745361328125, -0.0300750732421875, 0.01195526123046875, 0.045379638671875, 0.0022068023681640625, 0.0059051513671875, -0.006137847900390625, -0.0297698974609375, -0.056121826171875, -0.00225067138671875, -0.032440185546875, 0.0579833984375, 0.0201263427734375, -0.001529693603515625, -0.0016345977783203125, 0.04937744140625, -0.0015001296997070312, -0.047576904296875, 0.03375244140625, 0.052276611328125, -0.02276611328125, -0.01180267333984375, -0.00238800048828125, -0.035186767578125, -0.0054931640625, 0.01119232177734375, -0.0645751953125, -0.00972747802734375, -0.0259246826171875, -0.0293121337890625, 0.04248046875, -0.060516357421875, -0.0201568603515625, -0.01490020751953125, 0.01708984375, 0.0215301513671875, -0.0024318695068359375, 0.0173797607421875, -0.01457977294921875, -0.0239105224609375, 0.0089263916015625, -0.04486083984375, -0.030792236328125, 0.031951904296875, 0.0609130859375, 0.039520263671875, -0.0016679763793945312, -0.0302734375, -0.0040435791015625, 0.0648193359375, 0.005596160888671875, 0.027252197265625, 0.07061767578125, -0.03277587890625, 0.004314422607421875, 0.045501708984375, -0.022979736328125, 0.055999755859375, 0.049713134765625, 0.0230712890625, -0.01503753662109375, -0.0079803466796875, 0.0006542205810546875, -0.056396484375, -0.036163330078125, 0.003322601318359375, -0.01116943359375, 0.07470703125, 0.01059722900390625, -0.041290283203125, 0.0307769775390625, 0.0211639404296875, 0.0203094482421875, -0.01515960693359375, 0.047637939453125, 0.038726806640625, 0.019989013671875, 0.0171356201171875, -0.0310211181640625, 0.006221771240234375, -0.035675048828125, 0.06256103515625, -0.02471923828125, 0.0498046875, 0.006565093994140625, 0.0229034423828125, -0.0149078369140625, 0.04315185546875, 0.0002052783966064453, 0.050811767578125, 0.04901123046875, -0.00443267822265625, -0.004459381103515625, 0.026641845703125, -0.0081329345703125, -0.028533935546875, 0.058563232421875, 0.035430908203125, 0.0019397735595703125, 0.0092620849609375, -0.024383544921875, 0.01430511474609375, 0.0239410400390625, -0.0287628173828125, -0.01363372802734375, 0.01319122314453125, -0.025238037109375, -0.0239410400390625, 0.0128936767578125, 0.0189056396484375, -0.039154052734375, -0.01334381103515625, 0.0460205078125, 0.0225067138671875, 0.054595947265625, 0.0284576416015625, -0.053497314453125, 0.006900787353515625, 0.021240234375, -0.035400390625, -0.0214996337890625, 0.032135009765625, 0.028533935546875, 0.032958984375, 0.01922607421875, -0.0152435302734375, -0.0031375885009765625, -0.04620361328125, -0.01198577880859375, 0.063720703125, 0.01276397705078125, -0.044586181640625, -0.03582763671875, -0.0181427001953125, 0.04144287109375, -0.02850341796875, -0.008209228515625, 0.00464630126953125, 0.007778167724609375, 0.011077880859375, 0.0237579345703125, -0.0330810546875, 0.0181732177734375, 0.024017333984375, 0.00334930419921875, -0.006191253662109375, -0.035308837890625, 0.0157470703125, -0.028472900390625, 0.0073394775390625, -0.0245513916015625, 0.0333251953125, -0.03533935546875, 0.05145263671875, -0.048858642578125, 0.00975799560546875, -0.042144775390625, 0.0236663818359375, 0.0110015869140625, 0.0224761962890625, -0.018341064453125, -0.0040740966796875, -0.0518798828125, -0.029998779296875, -0.044464111328125, -0.043609619140625, -0.04046630859375, 0.01345062255859375, 0.01366424560546875, 0.016845703125, 0.01171112060546875, -0.036468505859375, -0.0207061767578125, 0.0009822845458984375, 0.0267486572265625, -0.0032787322998046875, -0.03070068359375, 0.049774169921875, 0.01419830322265625, 0.05706787109375, 0.0021114349365234375, -0.0007758140563964844, -0.004802703857421875, -0.01079559326171875, 0.0099029541015625, -0.040618896484375, -0.01641845703125, -0.01094818115234375, -0.0278167724609375, -0.0023708343505859375, 0.02191162109375, -0.010650634765625, 0.01593017578125, -0.0016603469848632812, -0.00954437255859375, 0.0018320083618164062, 0.008392333984375, 0.0228424072265625, 0.006923675537109375, 0.05743408203125, -0.0396728515625, -0.03765869140625, 0.0340576171875, 0.0142669677734375, -0.006214141845703125, -0.01108551025390625, -0.0253448486328125, 0.0190887451171875, -0.0654296875, 0.0291748046875, 0.0276031494140625, 0.040191650390625, 0.044189453125, -0.0413818359375, 0.03076171875, 0.03143310546875, 0.006900787353515625, 0.0029392242431640625, 0.004638671875, 0.07318115234375, 0.0020904541015625, -0.004947662353515625, 0.05908203125, -0.0229949951171875, 0.0145416259765625, 0.04534912109375, 0.046630859375, -0.06103515625, 0.0006122589111328125, 0.00400543212890625, -0.020294189453125, 0.0041656494140625, 0.003582000732421875, -0.02716064453125, -0.01496124267578125, 0.035552978515625, 0.007904052734375, -0.031707763671875, 0.0180816650390625, 0.027801513671875, 0.01422119140625, 0.00495147705078125, 0.0338134765625, 0.00945281982421875, 0.0035991668701171875, -0.0345458984375, -0.003692626953125, 0.00237274169921875, -0.0308837890625, 0.01071929931640625, 0.0203857421875, -0.0241546630859375, -0.06805419921875, 0.01343536376953125, 0.0011701583862304688, -0.0200653076171875, 0.03857421875, -0.0270233154296875, 0.046173095703125, 0.0021839141845703125, 0.0078125, 0.031494140625, -0.05645751953125, 0.034393310546875, 0.00046515464782714844, -0.009002685546875, -0.0013761520385742188, -0.00399017333984375, 0.007312774658203125, 0.0171966552734375, -0.0007920265197753906, -0.044891357421875, -0.02386474609375, -0.04803466796875, 0.099365234375, -0.026397705078125, -0.01459503173828125, 0.0124969482421875, 0.0296630859375, -0.004535675048828125, -0.0474853515625, 0.047576904296875, -0.08587646484375, -0.041412353515625, -0.0114288330078125, -0.03472900390625, -0.0246734619140625, -0.061431884765625, -0.022308349609375, 0.1063232421875, -0.0103912353515625, -0.01513671875, 0.017913818359375, 0.05096435546875, -0.031829833984375, 0.043212890625, -0.031951904296875, 0.0105438232421875, -0.0182647705078125, 0.0192718505859375, -0.012847900390625, 0.0030002593994140625, 0.00930023193359375, 0.0034313201904296875, 0.059051513671875, 0.01493072509765625, 0.004276275634765625, -0.00925445556640625, 0.020751953125, 0.039306640625, -0.0189971923828125, 0.0182342529296875, -0.01183319091796875, 0.01238250732421875, -0.01338958740234375, -0.0198211669921875, 0.044158935546875, -0.0631103515625, -0.041046142578125, 0.01055145263671875, 0.0094757080078125, 0.0250244140625, 0.015228271484375, 0.04388427734375, 0.036956787109375, -0.01491546630859375, -0.009735107421875, -0.04931640625, -0.003387451171875, 0.045166015625, 0.015838623046875, -0.014373779296875, 0.014739990234375, -0.040374755859375, 0.053985595703125, -0.00670623779296875, 0.0301666259765625, 0.007465362548828125, 0.01514434814453125, 0.033203125, 0.0101318359375, 0.01450347900390625, 0.043609619140625, -0.0201416015625, 0.0244903564453125, 0.01470947265625, 0.057708740234375, -0.024810791015625, -0.00543212890625, 0.0361328125, 0.035980224609375, -0.019805908203125, -0.01788330078125, 0.005962371826171875, -0.0002338886260986328, -0.007411956787109375, -0.00390625, 0.018951416015625, -0.06292724609375, -0.047454833984375, -0.03070068359375, -0.0279541015625, 0.020050048828125, 0.01300048828125, -0.006465911865234375, -0.040679931640625, 0.03656005859375, -0.010284423828125, -0.059173583984375, 0.03460693359375, 0.0242767333984375, 0.085693359375, 0.0184783935546875, 0.0184326171875, -0.0411376953125, -0.034271240234375, -0.0322265625, -0.0022640228271484375, 0.0126800537109375, 0.035888671875, -0.051727294921875, 0.0011434555053710938, 0.00853729248046875, 0.045989990234375, -0.01434326171875, 0.0302886962890625, 0.036895751953125, 0.055755615234375, 0.0051727294921875, -0.01103973388671875, 0.022613525390625, -0.01515960693359375, 0.005550384521484375, -0.0179901123046875, 0.0101470947265625, -0.0011548995971679688, -0.00307464599609375, -0.01678466796875, 0.036163330078125, 0.00923919677734375, 0.006664276123046875, 0.0242156982421875, 0.01245880126953125, 0.00362396240234375, 0.05279541015625, -0.01462554931640625, 0.0330810546875, 0.0269317626953125, -0.0867919921875, -0.0185546875, 0.01605224609375, -0.062255859375, 0.0154266357421875, 0.04400634765625, -0.05804443359375, 0.018646240234375, 0.0235748291015625, 0.0032444000244140625, -0.015960693359375, -0.0240478515625, 0.046600341796875, 0.053497314453125, 0.006267547607421875, 0.05908203125, -0.03131103515625, 0.004302978515625, 0.0308990478515625, -0.00024628639221191406, 0.01358795166015625, 0.042022705078125, 0.0128173828125, 0.0010480880737304688, -0.035491943359375, 0.004390716552734375, -0.0279388427734375, -0.057861328125, 0.0186920166015625, -0.004581451416015625, 0.0035552978515625, 0.0088348388671875, -0.05523681640625, 0.029022216796875, 0.024261474609375, -0.03143310546875, 0.04583740234375, -0.0308837890625, 0.0006198883056640625, -0.03826904296875, -0.0175628662109375, -0.0290985107421875, -0.032958984375, -0.01300811767578125, 0.00899505615234375, 0.0029125213623046875, 0.007045745849609375, -0.0122222900390625, 0.00576019287109375, 0.036468505859375, -0.015045166015625, 0.0302886962890625, -0.02105712890625, 0.051300048828125, 0.0220794677734375, 0.009368896484375, -0.0146942138671875, 0.006214141845703125, -0.0219268798828125, 0.011993408203125, 0.0089263916015625, 0.03717041015625, -0.0210723876953125, -0.01068878173828125, 0.033782958984375, 0.060943603515625, 0.039154052734375, -0.04296875, 0.0253448486328125, 0.0762939453125, -0.0183258056640625, 0.00736236572265625, -0.00931549072265625, -0.026702880859375, -0.052337646484375, -0.036102294921875, 0.0248260498046875, -0.0584716796875, -0.0208587646484375, -0.09490966796875, -0.0176544189453125, 0.0072479248046875, 0.000049591064453125, -0.041961669921875, 0.00495147705078125, 0.0041046142578125, 0.0506591796875, -0.0511474609375, 0.0423583984375, -0.01861572265625, -0.004329681396484375, -0.031524658203125, 0.031402587890625, -0.02984619140625, -0.0071563720703125, 0.01027679443359375, -0.002227783203125, 0.01611328125, -0.021942138671875, -0.040679931640625, -0.00685882568359375, 0.018096923828125, 0.0294189453125, 0.01424407958984375, -0.0189971923828125, 0.0008921623229980469, 0.006168365478515625, -0.0092620849609375, -0.060943603515625, -0.00212860107421875, -0.0355224609375, 0.002490997314453125, -0.00939178466796875, -0.034698486328125, -0.04376220703125, -0.04254150390625, -0.0299224853515625, 0.06427001953125, 0.01354217529296875, -0.0244293212890625, 0.0035305023193359375, 0.00553131103515625, -0.021697998046875, 0.017547607421875, 0.0031642913818359375, -0.032928466796875, 0.01406097412109375, 0.037322998046875, 0.0179901123046875, 0.02044677734375, 0.04156494140625, -0.0258026123046875, -0.06988525390625, -0.0228729248046875, -0.03125, 0.05914306640625, -0.01448822021484375, -0.001506805419921875, 0.01800537109375, 0.03033447265625, -0.0301055908203125, -0.005870819091796875, 0.026580810546875, 0.027618408203125, 0.01470184326171875, -0.06561279296875, -0.03070068359375, -0.038726806640625, 0.058013916015625, -0.010528564453125, 0.01751708984375, 0.0050201416015625, 0.027923583984375, -0.0006074905395507812, -0.041595458984375, -0.01641845703125, 0.01751708984375, -0.05853271484375, -0.04217529296875, 0.0169525146484375, 0.03045654296875, -0.01007843017578125, -0.0022068023681640625, -0.00601959228515625, -0.0294036865234375, 0.033843994140625, 0.033782958984375, -0.04693603515625, -0.0187225341796875, 0.0198211669921875, -0.004749298095703125, 0.0274810791015625, -0.019439697265625, 0.0281219482421875, 0.0196380615234375, 0.02496337890625, -0.0274505615234375, 0.004444122314453125, -0.0304718017578125, 0.01439666748046875, -0.010528564453125, 0.0220794677734375, -0.03594970703125, 0.0213775634765625, -0.027313232421875, -0.001003265380859375, 0.006031036376953125, 0.0006055831909179688, 0.006473541259765625, 0.001129150390625, 0.00418853759765625, 0.04364013671875, -0.00928497314453125, 0.046478271484375, 0.0025463104248046875, 0.048736572265625, 0.033660888671875, -0.024078369140625, 0.05999755859375, -0.020843505859375, -0.00626373291015625, -0.01678466796875, -0.0206756591796875, -0.050933837890625, 0.006488800048828125, -0.0208740234375, -0.005279541015625, 0.019256591796875 ]
e178e6eeb85cb63ad24b81fef6cfd6305d2f65a6
Wordpress Stackexchange Q: programmatically adding categories to custom taxonomy wp_create_category() adds new categories to the 'content' taxonomy associated with the post type... Simple question really neither wp_create_category() or wp_insert_category() allows configuration for taxonomy type... so how can I can do it? A: For custom taxonomies you should use wp_insert_term()
Q: programmatically adding categories to custom taxonomy wp_create_category() adds new categories to the 'content' taxonomy associated with the post type... Simple question really neither wp_create_category() or wp_insert_category() allows configuration for taxonomy type... so how can I can do it? A: For custom taxonomies you should use wp_insert_term()
wordpress
{ "language": "en", "length": 47, "provenance": "stackexchange_00019.jsonl.gz:422081", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59219" }
[ 0.058135986328125, 0.00792694091796875, -0.0155181884765625, -0.056182861328125, 0.041595458984375, -0.042236328125, 0.053924560546875, 0.007720947265625, -0.037109375, -0.01123809814453125, -0.0166015625, -0.0228729248046875, -0.006011962890625, -0.044158935546875, 0.026214599609375, -0.05584716796875, 0.015045166015625, -0.00797271728515625, 0.0222625732421875, -0.01220703125, 0.00965118408203125, -0.006771087646484375, 0.0297393798828125, 0.00836944580078125, 0.01250457763671875, 0.00036144256591796875, 0.01384735107421875, -0.039520263671875, 0.01090240478515625, -0.01898193359375, 0.0194244384765625, 0.011383056640625, 0.01306915283203125, -0.00316619873046875, 0.00440216064453125, 0.03240966796875, 0.02130126953125, 0.00283050537109375, 0.020538330078125, 0.008697509765625, 0.029998779296875, -0.018310546875, 0.0596923828125, 0.0140838623046875, 0.025726318359375, -0.037078857421875, 0.0229949951171875, -0.07781982421875, -0.000759124755859375, -0.08154296875, 0.035736083984375, 0.0032958984375, 0.0772705078125, -0.0941162109375, -0.0187835693359375, 0.01171112060546875, -0.0261077880859375, -0.00917816162109375, 0.04376220703125, -0.0277557373046875, -0.03167724609375, -0.04620361328125, 0.04168701171875, -0.0013265609741210938, 0.02154541015625, 0.0029430389404296875, 0.0372314453125, 0.02642822265625, -0.054931640625, 0.0133514404296875, 0.032073974609375, -0.0364990234375, -0.01175689697265625, 0.01227569580078125, -0.000972747802734375, -0.036895751953125, 0.0450439453125, -0.0173492431640625, -0.0017147064208984375, 0.050140380859375, 0.05877685546875, -0.00791168212890625, 0.040252685546875, -0.01678466796875, 0.0276947021484375, -0.0027866363525390625, 0.004230499267578125, -0.02783203125, -0.01424407958984375, -0.024383544921875, -0.0056915283203125, -0.0297698974609375, -0.039947509765625, 0.0123138427734375, 0.01309967041015625, -0.04168701171875, -0.0184478759765625, 0.04290771484375, -0.0193634033203125, 0.0272369384765625, 0.007305145263671875, -0.034423828125, 0.057891845703125, -0.056549072265625, 0.024444580078125, 0.0047454833984375, -0.042236328125, -0.06219482421875, 0.03704833984375, 0.034149169921875, -0.015777587890625, 0.03570556640625, 0.012542724609375, -0.03265380859375, 0.0014886856079101562, 0.02569580078125, -0.000007331371307373047, 0.029815673828125, 0.01119232177734375, 0.0131072998046875, 0.004611968994140625, 0.0305938720703125, -0.006000518798828125, -0.01483917236328125, 0.0099029541015625, 0.013580322265625, -0.00016200542449951172, -0.045257568359375, -0.0155029296875, -0.0011692047119140625, -0.046142578125, 0.03253173828125, 0.0869140625, 0.0279998779296875, 0.00951385498046875, -0.013702392578125, 0.030242919921875, -0.034393310546875, -0.010894775390625, 0.0182037353515625, 0.016571044921875, -0.006473541259765625, -0.0015668869018554688, -0.016693115234375, 0.043121337890625, 0.005084991455078125, 0.00341033935546875, 0.02392578125, 0.0377197265625, -0.0103607177734375, 0.050079345703125, -0.03643798828125, 0.0177459716796875, 0.005126953125, -0.01514434814453125, -0.0015516281127929688, -0.0018482208251953125, -0.01226043701171875, -0.01042938232421875, -0.00946807861328125, 0.019805908203125, -0.006694793701171875, 0.00582122802734375, -0.0149383544921875, -0.0245208740234375, 0.01360321044921875, -0.04962158203125, -0.0008301734924316406, 0.0224456787109375, 0.01181793212890625, 0.0162811279296875, -0.01654052734375, -0.0013685226440429688, -0.001880645751953125, -0.006137847900390625, 0.006725311279296875, -0.0038738250732421875, -0.0131378173828125, 0.021026611328125, 0.047119140625, -0.00614166259765625, -0.032470703125, 0.0263519287109375, -0.0128326416015625, -0.05047607421875, 0.018218994140625, 0.01922607421875, 0.07623291015625, 0.0157470703125, 0.0273284912109375, 0.0257568359375, -0.0012226104736328125, -0.054168701171875, -0.01470184326171875, 0.033660888671875, 0.0087890625, -0.0408935546875, -0.0175323486328125, 0.00514984130859375, -0.0037689208984375, -0.0352783203125, -0.0006103515625, 0.0079345703125, 0.032989501953125, -0.0252838134765625, 0.021392822265625, -0.0183258056640625, 0.035247802734375, 0.0024967193603515625, -0.0299530029296875, -0.00012600421905517578, -0.037689208984375, 0.033294677734375, -0.08245849609375, -0.0660400390625, 0.0109710693359375, -0.0160064697265625, -0.011871337890625, -0.00806427001953125, 0.0034084320068359375, -0.01239013671875, -0.00304412841796875, -0.0167388916015625, 0.01094818115234375, 0.047882080078125, 0.01519012451171875, -0.02630615234375, -0.006832122802734375, 0.0230865478515625, 0.034881591796875, -0.06353759765625, 0.00847625732421875, 0.041778564453125, 0.0154876708984375, -0.025909423828125, -0.0129547119140625, 0.008575439453125, -0.08282470703125, -0.0047149658203125, 0.0628662109375, 0.037139892578125, 0.020721435546875, -0.0163726806640625, -0.0234527587890625, 0.07666015625, -0.0012607574462890625, 0.005092620849609375, -0.0164794921875, 0.0214080810546875, 0.055877685546875, 0.02178955078125, 0.015869140625, 0.01128387451171875, -0.021453857421875, 0.044891357421875, 0.0234832763671875, -0.0135955810546875, -0.00687408447265625, 0.0172882080078125, -0.026275634765625, 0.016387939453125, -0.03857421875, -0.03546142578125, -0.0014705657958984375, 0.05035400390625, 0.014404296875, 0.048980712890625, 0.034027099609375, -0.0002655982971191406, -0.0023975372314453125, -0.0086822509765625, -0.045501708984375, 0.0022182464599609375, 0.0243988037109375, 0.006771087646484375, 0.01227569580078125, -0.05157470703125, 0.00443267822265625, 0.036956787109375, 0.0196075439453125, -0.00437164306640625, 0.056121826171875, -0.0092620849609375, -0.01525115966796875, -0.0178680419921875, -0.07342529296875, -0.019378662109375, 0.00258636474609375, -0.04888916015625, -0.051177978515625, 0.0025730133056640625, 0.0206298828125, -0.025848388671875, -0.0003426074981689453, 0.00982666015625, -0.01214599609375, 0.002185821533203125, -0.017730712890625, 0.01535797119140625, -0.021484375, -0.0163116455078125, 0.04656982421875, 0.0163116455078125, -0.0204925537109375, 0.017303466796875, 0.0011196136474609375, 0.0159759521484375, 0.0160369873046875, 0.0104827880859375, 0.0121612548828125, -0.0364990234375, 0.0233001708984375, 0.0213623046875, 0.0207977294921875, 0.0163116455078125, -0.0262603759765625, 0.015869140625, 0.0237579345703125, -0.0200653076171875, -0.0185546875, 0.02813720703125, -0.023590087890625, 0.00574493408203125, -0.007904052734375, -0.01175689697265625, -0.020172119140625, -0.0078887939453125, -0.006214141845703125, 0.0027828216552734375, -0.0379638671875, -0.0229339599609375, -0.0628662109375, -0.04718017578125, -0.036407470703125, 0.004825592041015625, -0.007434844970703125, 0.01116943359375, 0.09271240234375, 0.0179290771484375, -0.0380859375, 0.01180267333984375, -0.00901031494140625, -0.0173492431640625, 0.0192718505859375, 0.0154876708984375, -0.01580810546875, 0.05230712890625, -0.008514404296875, 0.00994873046875, 0.05059814453125, -0.030364990234375, -0.0163116455078125, -0.033294677734375, 0.0146331787109375, -0.005352020263671875, -0.0160369873046875, 0.043365478515625, 0.019927978515625, -0.002765655517578125, -0.03204345703125, 0.016876220703125, 0.0244903564453125, 0.01148223876953125, -0.0132293701171875, -0.048309326171875, -0.0277252197265625, 0.0001519918441772461, 0.0227203369140625, -0.025848388671875, 0.01026153564453125, -0.006805419921875, -0.0245513916015625, 0.0250244140625, -0.014129638671875, -0.03265380859375, 0.0184173583984375, -0.01383209228515625, -0.040252685546875, 0.029571533203125, -0.007137298583984375, 0.0091552734375, -0.01312255859375, 0.0143585205078125, -0.04644775390625, -0.06304931640625, 0.024322509765625, -0.0640869140625, 0.0009064674377441406, -0.03399658203125, -0.003997802734375, 0.0228424072265625, 0.0882568359375, -0.0557861328125, -0.00754547119140625, 0.013702392578125, 0.014190673828125, -0.032867431640625, -0.0187225341796875, -0.06951904296875, -0.0175933837890625, -0.0170440673828125, 0.01096343994140625, 0.01947021484375, -0.0189056396484375, -0.04107666015625, 0.05084228515625, -0.043243408203125, -0.0033321380615234375, 0.045806884765625, -0.058837890625, 0.034149169921875, 0.004062652587890625, 0.0293426513671875, -0.0364990234375, -0.0280609130859375, -0.02020263671875, -0.077880859375, 0.0005574226379394531, -0.0220184326171875, 0.0189666748046875, -0.0035247802734375, 0.00733184814453125, -0.01523590087890625, 0.03985595703125, 0.038238525390625, -0.00433349609375, 0.02783203125, 0.002239227294921875, -0.0036468505859375, -0.004673004150390625, 0.0278778076171875, -0.0253143310546875, -0.0291595458984375, -0.047271728515625, 0.017425537109375, 0.07598876953125, -0.0083770751953125, 0.0433349609375, -0.039947509765625, 0.020904541015625, -0.018157958984375, -0.004852294921875, -0.052886962890625, 0.006534576416015625, -0.027008056640625, -0.004444122314453125, -0.00962066650390625, -0.03668212890625, 0.06195068359375, -0.03143310546875, -0.002574920654296875, 0.0006866455078125, 0.1256103515625, 0.014251708984375, -0.00860595703125, -0.0750732421875, 0.0168304443359375, 0.0255584716796875, -0.01715087890625, 0.040924072265625, -0.006084442138671875, -0.0006575584411621094, 0.05963134765625, -0.0233154296875, 0.0152435302734375, -0.0311279296875, 0.07855224609375, -0.005542755126953125, 0.0104217529296875, 0.01154327392578125, -0.0240478515625, 0.0013303756713867188, 0.0009007453918457031, -0.0248870849609375, -0.00823211669921875, 0.0022602081298828125, 0.0458984375, -0.01187896728515625, 0.0301055908203125, -0.03631591796875, -0.0237274169921875, 0.0235595703125, 0.0085296630859375, -0.01091766357421875, 0.007289886474609375, -0.004161834716796875, -0.038848876953125, -0.0684814453125, -0.0025463104248046875, 0.0212554931640625, -0.02716064453125, 0.0251312255859375, 0.0179290771484375, 0.0161895751953125, 0.0113525390625, 0.0030422210693359375, 0.0108642578125, 0.018768310546875, -0.015289306640625, -0.02703857421875, -0.04949951171875, 0.00527191162109375, 0.0308380126953125, 0.0257110595703125, -0.00574493408203125, 0.041351318359375, 0.00818634033203125, 0.005359649658203125, 0.002025604248046875, -0.043670654296875, 0.0022296905517578125, -0.034027099609375, -0.004489898681640625, 0.00902557373046875, -0.018768310546875, 0.028106689453125, 0.0173492431640625, -0.0218505859375, 0.0193328857421875, -0.00316619873046875, 0.05340576171875, 0.052093505859375, 0.005687713623046875, 0.00899505615234375, -0.00925445556640625, -0.00865936279296875, -0.021636962890625, -0.01100921630859375, -0.039794921875, -0.0194549560546875, 0.0023937225341796875, 0.0288238525390625, -0.0443115234375, -0.0265350341796875, 0.044281005859375, -0.002552032470703125, -0.00864410400390625, -0.039276123046875, -0.055206298828125, -0.0189361572265625, -0.015289306640625, -0.006122589111328125, 0.0059356689453125, -0.005794525146484375, -0.00870513916015625, 0.00960540771484375, -0.029937744140625, 0.0194091796875, 0.00559234619140625, 0.0230712890625, -0.02716064453125, -0.0316162109375, -0.070068359375, -0.0232086181640625, 0.01049041748046875, -0.01497650146484375, -0.0096435546875, -0.00989532470703125, -0.04571533203125, 0.01384735107421875, -0.005619049072265625, 0.044586181640625, -0.0255126953125, -0.0261383056640625, 0.0201263427734375, -0.0038909912109375, 0.03717041015625, 0.0023860931396484375, -0.00917816162109375, -0.017333984375, -0.044158935546875, -0.00847625732421875, -0.037689208984375, -0.06683349609375, -0.00473785400390625, 0.007190704345703125, 0.0156707763671875, -0.004589080810546875, 0.0077972412109375, -0.02685546875, -0.021759033203125, 0.022857666015625, 0.039398193359375, -0.0176849365234375, 0.0102081298828125, 0.033843994140625, -0.0026397705078125, 0.042999267578125, 0.016387939453125, 0.0033435821533203125, -0.013824462890625, -0.0372314453125, -0.0211181640625, -0.08074951171875, -0.01389312744140625, 0.007694244384765625, -0.026885986328125, 0.06591796875, 0.043243408203125, 0.008453369140625, 0.038787841796875, -0.01364898681640625, -0.000019550323486328125, -0.0125274658203125, -0.024017333984375, -0.0386962890625, 0.0174713134765625, 0.041534423828125, -0.0007166862487792969, 0.07293701171875, 0.0013265609741210938, 0.008819580078125, 0.0178375244140625, -0.041046142578125, 0.0465087890625, 0.0233001708984375, -0.01885986328125, 0.0256500244140625, 0.0226593017578125, 0.006313323974609375, 0.0304412841796875, -0.006763458251953125, 0.0220184326171875, -0.00933837890625, 0.00652313232421875, -0.0293121337890625, -0.004528045654296875, 0.04949951171875, 0.01425933837890625, -0.0106658935546875, 0.046844482421875, -0.0266265869140625, -0.012939453125, 0.059173583984375, 0.055328369140625, -0.07720947265625, -0.004913330078125, 0.0125885009765625, -0.01100921630859375, 0.0030536651611328125, 0.0202789306640625, -0.0182952880859375, -0.006885528564453125, 0.0177154541015625, -0.0194091796875, -0.0179901123046875, 0.009765625, 0.010345458984375, -0.0171966552734375, 0.00960540771484375, -0.010589599609375, 0.025604248046875, 0.0249176025390625, 0.003147125244140625, -0.0140380859375, 0.0266265869140625, -0.0117950439453125, 0.03204345703125, 0.0048980712890625, 0.002094268798828125, -0.02252197265625, 0.07061767578125, -0.00882720947265625, 0.001987457275390625, 0.0272216796875, -0.005100250244140625, 0.0268402099609375, 0.036895751953125, 0.0010509490966796875, 0.0172882080078125, 0.00618743896484375, -0.02252197265625, 0.00887298583984375, -0.005619049072265625, 0.0281524658203125, 0.0259246826171875, -0.037811279296875, 0.019775390625, -0.0254974365234375, -0.0037822723388671875, -0.004772186279296875, -0.0114898681640625, 0.06396484375, -0.05731201171875, 0.004428863525390625, 0.02978515625, 0.0308380126953125, 0.00988006591796875, -0.015869140625, 0.0164947509765625, -0.043243408203125, -0.01107025146484375, 0.00399017333984375, 0.0011997222900390625, 0.01415252685546875, -0.002475738525390625, -0.053009033203125, 0.088134765625, 0.004405975341796875, 0.01505279541015625, 0.0080413818359375, 0.032470703125, -0.037933349609375, 0.017852783203125, -0.03448486328125, 0.08154296875, 0.042205810546875, 0.012908935546875, -0.051910400390625, -0.021759033203125, 0.0016536712646484375, 0.039703369140625, 0.058013916015625, 0.01436614990234375, 0.0009098052978515625, -0.00804901123046875, 0.049468994140625, 0.03790283203125, -0.01922607421875, 0.003276824951171875, -0.008087158203125, -0.0182037353515625, 0.036834716796875, 0.01461029052734375, 0.039276123046875, 0.020477294921875, -0.0223541259765625, 0.008544921875, 0.01371002197265625, 0.01470184326171875, 0.002353668212890625, -0.0018701553344726562, -0.032806396484375, 0.003459930419921875, 0.017486572265625, 0.01318359375, -0.00937652587890625, 0.03997802734375, -0.0045013427734375, 0.01488494873046875, 0.01428985595703125, -0.030670166015625, 0.045501708984375, -0.016845703125, 0.0743408203125, 0.01477813720703125, 0.012451171875, 0.0712890625, -0.002559661865234375, 0.03594970703125, 0.0288238525390625, -0.031768798828125, 0.05731201171875, 0.004955291748046875, 0.0162506103515625, -0.04901123046875, 0.0114288330078125, 0.01042938232421875, 0.05712890625, -0.044677734375, -0.042510986328125, 0.0168304443359375, 0.035980224609375, 0.0157318115234375, 0.01508331298828125, 0.046722412109375, 0.0172119140625, 0.061126708984375, -0.073486328125, -0.002559661865234375, 0.01523590087890625, 0.021392822265625, -0.01059722900390625, -0.00684356689453125, -0.02197265625, -0.02899169921875, -0.0582275390625, 0.01934814453125, 0.0113525390625, 0.09698486328125, 0.03271484375, 0.091064453125, -0.04180908203125, -0.060760498046875, -0.006565093994140625, 0.0259857177734375, 0.01523590087890625, 0.003849029541015625, 0.0030918121337890625, -0.0108795166015625, 0.02386474609375, 0.0025234222412109375, -0.0211029052734375, 0.03582763671875, 0.021453857421875, 0.0472412109375, 0.0287628173828125, -0.021575927734375, 0.04119873046875, -0.0151824951171875, -0.0013742446899414062, -0.061126708984375, 0.052459716796875, 0.037994384765625, 0.0212860107421875, 0.0170135498046875, -0.02392578125, 0.0926513671875, 0.002307891845703125, 0.0223236083984375, 0.005008697509765625, -0.030364990234375, 0.073974609375, -0.00843048095703125, 0.08331298828125, 0.0347900390625, -0.125, -0.0201263427734375, -0.052978515625, -0.0406494140625, 0.0677490234375, 0.052764892578125, -0.0174407958984375, 0.007213592529296875, 0.024017333984375, -0.045074462890625, 0.0272064208984375, 0.020477294921875, -0.003032684326171875, -0.027130126953125, 0.01123809814453125, -0.0240631103515625, -0.0616455078125, -0.0254974365234375, -0.00565338134765625, 0.0273895263671875, 0.01219940185546875, 0.046966552734375, 0.005340576171875, 0.0155181884765625, -0.046112060546875, 0.037628173828125, -0.04644775390625, -0.03436279296875, 0.044647216796875, 0.0360107421875, 0.004276275634765625, -0.019317626953125, -0.01361083984375, -0.01139068603515625, 0.05657958984375, -0.0285797119140625, -0.0191497802734375, -0.0227203369140625, 0.0311126708984375, -0.0143890380859375, 0.0579833984375, -0.0283355712890625, 0.0127716064453125, -0.041534423828125, -0.0655517578125, 0.045684814453125, 0.00007748603820800781, 0.0260772705078125, 0.006977081298828125, -0.0242156982421875, -0.01128387451171875, 0.0106048583984375, 0.01177978515625, -0.002910614013671875, 0.0377197265625, -0.0251617431640625, -0.034088134765625, 0.01033782958984375, -0.014923095703125, -0.004047393798828125, 0.007297515869140625, 0.0231170654296875, 0.01529693603515625, -0.052764892578125, -0.0011053085327148438, 0.0254669189453125, 0.046417236328125, -0.023681640625, 0.019775390625, -0.0184783935546875, 0.002162933349609375, 0.045166015625, -0.01213836669921875, -0.0394287109375, -0.037353515625, 0.0021514892578125, 0.0130462646484375, -0.01503753662109375, -0.041656494140625, -0.07061767578125, 0.00444793701171875, 0.05352783203125, -0.0074005126953125, -0.0106353759765625, 0.0016450881958007812, -0.037445068359375, 0.0299072265625, 0.01503753662109375, -0.04376220703125, 0.0216064453125, 0.0491943359375, -0.038055419921875, -0.0040740966796875, -0.028656005859375, -0.04345703125, -0.043731689453125, 0.032440185546875, 0.0494384765625, -0.043731689453125, -0.018707275390625, 0.05572509765625, 0.03472900390625, 0.09375, 0.0299530029296875, -0.01788330078125, 0.010345458984375, -0.00720977783203125, -0.04425048828125, -0.01293182373046875, 0.0294952392578125, -0.045135498046875, -0.042144775390625, -0.0203094482421875, 0.0228271484375, 0.051361083984375, -0.0227813720703125, -0.10748291015625, -0.0108642578125, -0.02691650390625, -0.051239013671875, -0.035491943359375, 0.0012769699096679688, -0.0211944580078125, -0.0050811767578125, -0.0214080810546875, -0.003582000732421875, 0.0037555694580078125, 0.05157470703125, 0.014373779296875, 0.026336669921875, 0.039794921875, -0.0147552490234375, -0.039154052734375, -0.01520538330078125, -0.0165557861328125, 0.0206146240234375, 0.0287933349609375, -0.01348114013671875, 0.0133514404296875, 0.0230255126953125, -0.05804443359375, -0.0267486572265625, -0.0323486328125, 0.01445770263671875, -0.004871368408203125, -0.07049560546875, 0.005767822265625, -0.039337158203125, 0.055389404296875, -0.04180908203125, 0.0058746337890625, 0.00341033935546875, -0.041473388671875, -0.03411865234375, -0.0157318115234375, -0.0034503936767578125, 0.012786865234375, -0.050079345703125, 0.0110931396484375, 0.0093994140625, 0.00911712646484375, 0.00469970703125, -0.0137176513671875, -0.01032257080078125, -0.0103759765625, 0.0188140869140625, 0.005397796630859375, -0.041168212890625, 0.0142059326171875, 0.004070281982421875, -0.0207672119140625, -0.0311737060546875, -0.0086822509765625, 0.007190704345703125, -0.032958984375, -0.0169525146484375, -0.0009660720825195312, -0.01806640625, -0.0035858154296875, 0.01442718505859375, -0.0011949539184570312, 0.01384735107421875, 0.0093231201171875, -0.00412750244140625, -0.00421142578125, 0.03314208984375, -0.01013946533203125, 0.033843994140625, -0.0225982666015625, 0.08197021484375, 0.019561767578125, 0.048797607421875, -0.001514434814453125, -0.04681396484375, -0.0271453857421875, 0.0240631103515625, -0.0316162109375, -0.005504608154296875, -0.025482177734375, -0.0050201416015625, 0.0008111000061035156, -0.00522613525390625, -0.02410888671875, -0.033782958984375, 0.0027751922607421875, -0.031890869140625, -0.0159912109375, 0.0173797607421875 ]
2bfdcfd157cca54ae830d0f469ca091d6e3dd9b8
Wordpress Stackexchange Q: How can I get category ID by category name? I have a few categories with the same name [some of them are sub-categories]. And I want to get an array of ID's for certain cattegory name. I tried this: $term = get_term_by('name', $cat_name, 'category'); but it seems that get_term_by() returns only the first term that match the query. A: get_cat_ID( $cat_name ) can do the trick! Example: <?php $category_id = get_cat_ID('Category Name'); $q = 'cat=' . $category_id; query_posts($q); if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif; ?> MORE Detail!
Q: How can I get category ID by category name? I have a few categories with the same name [some of them are sub-categories]. And I want to get an array of ID's for certain cattegory name. I tried this: $term = get_term_by('name', $cat_name, 'category'); but it seems that get_term_by() returns only the first term that match the query. A: get_cat_ID( $cat_name ) can do the trick! Example: <?php $category_id = get_cat_ID('Category Name'); $q = 'cat=' . $category_id; query_posts($q); if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif; ?> MORE Detail! A: Use get_terms(), which uses WP_Term_Query under the hood. For a full list of all the available parameters check out the documentation for WP_Term_Query::__construct // Get term *IDs* with name that *matches* "my_name" $term_ids = get_terms([ 'fields' => 'ids', 'taxonomy' => 'category', 'name' => 'my_name', 'hide_empty' => false, ]); // Get term *objects* with name that *matches* "my_name" $terms = get_terms([ 'taxonomy' => 'category', 'name' => 'my_name', 'hide_empty' => false, ]); // Get term *objects* with name that *contains* "my_name" $terms = get_terms([ 'taxonomy' => 'category', 'name__like' => 'my_name', 'hide_empty' => false, ]);
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:422088", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59238" }
[ 0.005222320556640625, 0.0091705322265625, -0.03094482421875, -0.00533294677734375, 0.0252532958984375, -0.028656005859375, 0.037078857421875, -0.0091705322265625, -0.00933074951171875, 0.0308837890625, -0.052734375, 0.0089874267578125, -0.000568389892578125, -0.0068817138671875, -0.021759033203125, -0.046234130859375, 0.0302734375, -0.00962066650390625, 0.0138092041015625, -0.00003921985626220703, -0.005321502685546875, 0.023529052734375, 0.01551055908203125, 0.0316162109375, 0.0246429443359375, -0.0372314453125, 0.056671142578125, -0.01611328125, 0.002834320068359375, -0.051483154296875, 0.0235595703125, 0.018096923828125, -0.0010118484497070312, -0.01030731201171875, 0.056640625, 0.04949951171875, 0.0260772705078125, 0.006439208984375, 0.052642822265625, 0.00693511962890625, 0.047637939453125, -0.0290679931640625, 0.046234130859375, 0.0229034423828125, 0.0074615478515625, -0.0251617431640625, 0.04083251953125, -0.039031982421875, 0.008148193359375, -0.04937744140625, 0.035186767578125, 0.016876220703125, 0.05718994140625, -0.01776123046875, -0.015899658203125, 0.006839752197265625, 0.01525115966796875, -0.01262664794921875, 0.047119140625, -0.035980224609375, -0.069091796875, -0.041351318359375, 0.052703857421875, -0.0263671875, 0.006317138671875, 0.0206298828125, 0.0653076171875, 0.01143646240234375, -0.00514984130859375, -0.004650115966796875, 0.00466156005859375, -0.0081787109375, 0.016571044921875, 0.01100921630859375, -0.0255126953125, -0.059417724609375, 0.0288238525390625, -0.0087127685546875, 0.00304412841796875, -0.0005106925964355469, -0.00978851318359375, -0.03216552734375, -0.045928955078125, 0.032623291015625, 0.008636474609375, 0.07733154296875, -0.0249481201171875, -0.0379638671875, -0.0216522216796875, -0.04693603515625, -0.01039886474609375, -0.0235595703125, -0.059234619140625, 0.037933349609375, -0.0031909942626953125, -0.0219573974609375, 0.0158538818359375, 0.0718994140625, -0.036407470703125, -0.0162353515625, -0.005756378173828125, -0.02398681640625, -0.00917816162109375, -0.04473876953125, 0.01543426513671875, 0.0164947509765625, 0.025482177734375, 0.0343017578125, 0.041595458984375, 0.017333984375, -0.004917144775390625, 0.038482666015625, 0.01088714599609375, -0.00501251220703125, -0.0300445556640625, 0.031585693359375, -0.00518798828125, -0.0033435821533203125, -0.006862640380859375, 0.0092926025390625, 0.0258941650390625, 0.0611572265625, -0.0291290283203125, -0.01094818115234375, -0.0025882720947265625, 0.003360748291015625, -0.0004963874816894531, -0.036834716796875, 0.00420379638671875, -0.048187255859375, -0.0504150390625, 0.040740966796875, 0.0853271484375, 0.036712646484375, 0.0274505615234375, 0.00322723388671875, -0.0157012939453125, 0.00836181640625, 0.005138397216796875, -0.0084381103515625, 0.005893707275390625, 0.011199951171875, 0.041046142578125, -0.005733489990234375, -0.007068634033203125, -0.00298309326171875, -0.00016033649444580078, 0.0229644775390625, 0.00018799304962158203, -0.040679931640625, 0.039794921875, -0.06146240234375, 0.03289794921875, 0.01015472412109375, -0.01470184326171875, 0.007213592529296875, 0.0265655517578125, -0.0192413330078125, -0.042938232421875, -0.039794921875, 0.0313720703125, 0.0128173828125, 0.0185394287109375, 0.02215576171875, -0.007511138916015625, -0.008758544921875, -0.039306640625, -0.018707275390625, 0.013671875, 0.03277587890625, 0.033660888671875, 0.009857177734375, -0.01006317138671875, 0.01267242431640625, 0.004375457763671875, -0.01248931884765625, -0.023284912109375, -0.02423095703125, 0.0318603515625, 0.0157623291015625, -0.033477783203125, -0.046295166015625, -0.0528564453125, 0.0145416259765625, -0.045074462890625, 0.0479736328125, 0.0182342529296875, 0.09259033203125, -0.004398345947265625, 0.0182037353515625, 0.017578125, 0.0214385986328125, -0.06134033203125, 0.0152435302734375, -0.00830841064453125, -0.0065155029296875, -0.007312774658203125, 0.004795074462890625, 0.0010833740234375, -0.0242767333984375, 0.01971435546875, -0.01560211181640625, 0.001373291015625, -0.0150909423828125, -0.05792236328125, -0.01763916015625, -0.004802703857421875, 0.025787353515625, 0.0012826919555664062, 0.0246734619140625, 0.007076263427734375, -0.011627197265625, -0.00785064697265625, -0.05535888671875, -0.042144775390625, 0.0059051513671875, -0.0120086669921875, -0.02374267578125, -0.0146942138671875, -0.0154876708984375, -0.020751953125, 0.0087432861328125, -0.036956787109375, 0.0240325927734375, 0.0210723876953125, 0.0205535888671875, -0.0248260498046875, -0.01183319091796875, -0.0003867149353027344, 0.039794921875, -0.0904541015625, -0.00005125999450683594, 0.0312347412109375, 0.0633544921875, 0.0027523040771484375, 0.008453369140625, 0.0299224853515625, -0.0341796875, 0.0038700103759765625, 0.0200958251953125, 0.03790283203125, -0.03204345703125, -0.038818359375, -0.056793212890625, 0.042327880859375, -0.030731201171875, -0.004146575927734375, -0.035614013671875, 0.00677490234375, 0.05023193359375, 0.01165008544921875, 0.03826904296875, 0.0006246566772460938, 0.01328277587890625, -0.0008215904235839844, 0.04791259765625, -0.0020580291748046875, -0.0221710205078125, 0.0187530517578125, 0.002796173095703125, 0.0000985860824584961, -0.0247802734375, -0.0215911865234375, -0.0013179779052734375, 0.0266876220703125, 0.027496337890625, 0.0272674560546875, 0.019744873046875, -0.019866943359375, 0.020721435546875, 0.004138946533203125, -0.0219268798828125, -0.0005497932434082031, 0.0261688232421875, 0.01181793212890625, 0.0109710693359375, -0.035858154296875, -0.0032901763916015625, 0.003734588623046875, 0.0086822509765625, 0.0088043212890625, 0.074951171875, 0.0248870849609375, -0.0216217041015625, -0.0228118896484375, -0.079345703125, -0.005374908447265625, -0.0086212158203125, -0.0804443359375, -0.018768310546875, -0.005062103271484375, 0.07281494140625, -0.0177764892578125, 0.002490997314453125, -0.04296875, 0.041595458984375, 0.01953125, -0.0206298828125, 0.0215606689453125, -0.0234375, 0.01322174072265625, 0.045318603515625, -0.00608062744140625, 0.01214599609375, 0.0023479461669921875, -0.022247314453125, 0.04315185546875, -0.0231475830078125, -0.02099609375, -0.0017595291137695312, -0.059600830078125, 0.0006928443908691406, 0.022796630859375, 0.12384033203125, -0.0007429122924804688, -0.04998779296875, 0.027679443359375, 0.05731201171875, -0.0292816162109375, -0.07073974609375, 0.00189208984375, -0.005786895751953125, 0.0232391357421875, -0.018218994140625, 0.006832122802734375, -0.0131988525390625, -0.018707275390625, 0.007465362548828125, 0.053375244140625, -0.04034423828125, -0.07122802734375, -0.0440673828125, -0.07659912109375, -0.0086669921875, -0.005512237548828125, 0.0005254745483398438, 0.02508544921875, 0.00492095947265625, 0.01476287841796875, -0.0273895263671875, 0.042694091796875, 0.04595947265625, -0.01617431640625, 0.0262603759765625, 0.01346588134765625, -0.03057861328125, -0.0254974365234375, 0.01000213623046875, -0.02032470703125, 0.0011272430419921875, 0.0034465789794921875, -0.003482818603515625, -0.00801849365234375, 0.03692626953125, 0.037078857421875, 0.0142822265625, -0.00872039794921875, 0.0721435546875, 0.070556640625, -0.0008807182312011719, 0.01195526123046875, -0.039031982421875, -0.02020263671875, -0.0228118896484375, 0.0011749267578125, 0.00963592529296875, -0.04052734375, 0.013031005859375, -0.0199127197265625, -0.0130767822265625, -0.042938232421875, -0.042144775390625, 0.034423828125, 0.01424407958984375, 0.03363037109375, 0.043853759765625, 0.00017452239990234375, -0.0305633544921875, -0.015960693359375, -0.01535797119140625, -0.006206512451171875, -0.0218658447265625, 0.02197265625, -0.01129913330078125, -0.051055908203125, 0.0552978515625, -0.03961181640625, -0.004856109619140625, -0.04449462890625, -0.024200439453125, -0.0180206298828125, 0.07659912109375, -0.0230865478515625, -0.031219482421875, -0.011322021484375, 0.00197601318359375, -0.00838470458984375, -0.038299560546875, -0.0168914794921875, -0.01195526123046875, -0.07794189453125, -0.0144500732421875, -0.0291900634765625, -0.03009033203125, -0.007904052734375, 0.005176544189453125, -0.035552978515625, -0.03900146484375, 0.03778076171875, -0.0858154296875, 0.025390625, -0.0069122314453125, 0.0108642578125, -0.021026611328125, -0.0189056396484375, -0.036529541015625, -0.0214385986328125, -0.00611114501953125, 0.0125579833984375, -0.01947021484375, -0.019317626953125, 0.001514434814453125, -0.0016918182373046875, 0.02484130859375, -0.00394439697265625, 0.01221466064453125, -0.0055389404296875, 0.0157012939453125, -0.0221099853515625, 0.0018758773803710938, -0.0228118896484375, -0.0196533203125, -0.0188446044921875, -0.0338134765625, 0.00514984130859375, 0.014495849609375, -0.038787841796875, 0.0264892578125, -0.04022216796875, -0.0102386474609375, -0.0430908203125, -0.035552978515625, -0.0222930908203125, -0.0143585205078125, -0.0266876220703125, 0.0128173828125, -0.03033447265625, -0.059112548828125, 0.0723876953125, 0.018341064453125, -0.01406097412109375, -0.00942230224609375, 0.07891845703125, 0.003787994384765625, -0.046539306640625, -0.05975341796875, 0.001537322998046875, 0.045654296875, 0.0037631988525390625, 0.0204010009765625, 0.004180908203125, -0.04510498046875, 0.08148193359375, 0.0270843505859375, 0.01282501220703125, -0.0204925537109375, 0.034149169921875, -0.007068634033203125, -0.03680419921875, 0.0176239013671875, -0.0171661376953125, 0.0134735107421875, -0.00995635986328125, -0.0384521484375, -0.01515960693359375, -0.0367431640625, 0.04638671875, -0.0120697021484375, 0.07366943359375, -0.02801513671875, -0.01299285888671875, 0.01259613037109375, -0.01151275634765625, 0.03961181640625, 0.0251617431640625, -0.00516510009765625, 0.002292633056640625, 0.0023937225341796875, 0.0009927749633789062, -0.012847900390625, 0.002696990966796875, -0.0076446533203125, -0.002445220947265625, 0.006805419921875, -0.01222991943359375, -0.01395416259765625, 0.0027027130126953125, 0.04437255859375, -0.00627899169921875, -0.02349853515625, -0.0150909423828125, -0.0160369873046875, 0.006549835205078125, 0.040557861328125, -0.038543701171875, -0.010833740234375, 0.0305938720703125, 0.0137786865234375, 0.035888671875, -0.02587890625, 0.00554656982421875, 0.0019855499267578125, 0.006130218505859375, 0.003383636474609375, -0.004375457763671875, 0.034454345703125, 0.0714111328125, -0.004913330078125, 0.05572509765625, -0.0258636474609375, 0.0311279296875, 0.00908660888671875, 0.043060302734375, 0.0303192138671875, -0.0246734619140625, -0.0095367431640625, 0.01299285888671875, -0.016082763671875, -0.06640625, 0.01276397705078125, 0.00830078125, 0.052276611328125, 0.0100860595703125, -0.04742431640625, 0.036163330078125, -0.03509521484375, -0.01155853271484375, 0.0023899078369140625, -0.00656890869140625, -0.004344940185546875, -0.0258331298828125, -0.0164794921875, 0.01385498046875, 0.0122833251953125, -0.023406982421875, 0.0121002197265625, -0.038726806640625, 0.024444580078125, -0.007740020751953125, 0.0002332925796508789, -0.0003781318664550781, 0.005519866943359375, -0.0384521484375, -0.0062713623046875, -0.004459381103515625, 0.035369873046875, -0.012939453125, -0.011993408203125, -0.058624267578125, 0.061859130859375, 0.01605224609375, 0.070068359375, -0.027801513671875, -0.0494384765625, -0.012298583984375, -0.01093292236328125, 0.05126953125, 0.031494140625, -0.02996826171875, 0.01337432861328125, -0.0433349609375, 0.0020999908447265625, 0.01910400390625, -0.0292510986328125, -0.0214691162109375, -0.0263824462890625, -0.0246429443359375, 0.003223419189453125, 0.0003604888916015625, 0.03692626953125, -0.03173828125, 0.0241241455078125, -0.01071929931640625, -0.0204925537109375, -0.0074615478515625, -0.0100860595703125, 0.032257080078125, -0.015594482421875, 0.003414154052734375, -0.0109710693359375, 0.0019664764404296875, -0.0226898193359375, -0.03680419921875, -0.05206298828125, 0.023681640625, 0.019287109375, -0.009490966796875, -0.010284423828125, 0.0203857421875, 0.01788330078125, 0.015380859375, -0.004802703857421875, -0.00009447336196899414, -0.006481170654296875, -0.04302978515625, 0.00753021240234375, -0.0091552734375, 0.03485107421875, -0.03472900390625, -0.01119232177734375, -0.0006842613220214844, -0.0065765380859375, 0.0191650390625, -0.03533935546875, 0.01061248779296875, 0.03680419921875, 0.0095672607421875, 0.02783203125, 0.063720703125, 0.025360107421875, 0.033203125, 0.01861572265625, 0.0269622802734375, -0.007152557373046875, 0.02685546875, 0.0229949951171875, -0.01337432861328125, 0.06658935546875, 0.0195770263671875, 0.00482177734375, 0.04937744140625, -0.029693603515625, -0.0484619140625, -0.006011962890625, 0.01824951171875, -0.004467010498046875, -0.00986480712890625, 0.031036376953125, -0.01513671875, -0.067138671875, 0.02581787109375, -0.03411865234375, -0.020294189453125, 0.00788116455078125, -0.0237274169921875, -0.02825927734375, -0.0002014636993408203, 0.0098724365234375, -0.005443572998046875, -0.0207977294921875, 0.057586669921875, 0.0207366943359375, 0.0025386810302734375, -0.004425048828125, -0.001071929931640625, 0.021209716796875, -0.06573486328125, -0.002532958984375, 0.0275115966796875, -0.009521484375, -0.07672119140625, 0.05108642578125, 0.0098876953125, 0.02532958984375, -0.0036182403564453125, 0.01068115234375, 0.0027408599853515625, 0.04205322265625, -0.0018777847290039062, -0.0163421630859375, 0.0179595947265625, -0.050262451171875, 0.054351806640625, 0.0115814208984375, -0.0123443603515625, 0.006847381591796875, -0.0548095703125, -0.0174560546875, -0.044036865234375, 0.050537109375, -0.0188446044921875, -0.032257080078125, 0.063720703125, -0.023651123046875, -0.0164031982421875, 0.0225067138671875, 0.052978515625, 0.003719329833984375, 0.0090789794921875, -0.0007724761962890625, -0.023101806640625, 0.016632080078125, 0.00782012939453125, 0.0271759033203125, 0.0181427001953125, 0.019927978515625, -0.058685302734375, 0.0233612060546875, -0.01041412353515625, 0.01091766357421875, 0.001033782958984375, -0.0020046234130859375, -0.003185272216796875, -0.021240234375, -0.051025390625, 0.03729248046875, 0.027801513671875, 0.03546142578125, -0.037109375, -0.0144805908203125, 0.01313018798828125, 0.034942626953125, 0.06451416015625, 0.009429931640625, -0.01325225830078125, -0.01515960693359375, 0.03350830078125, 0.050262451171875, -0.00505828857421875, 0.00849151611328125, 0.0138397216796875, -0.0066986083984375, 0.07720947265625, 0.0030975341796875, 0.033538818359375, 0.014892578125, 0.0078887939453125, 0.030792236328125, 0.001983642578125, 0.0223541259765625, -0.0036258697509765625, 0.0037631988525390625, -0.004215240478515625, -0.01412200927734375, 0.0110626220703125, -0.037445068359375, 0.0224456787109375, 0.053009033203125, 0.07586669921875, -0.041534423828125, -0.005985260009765625, -0.02490234375, 0.07147216796875, 0.02532958984375, 0.03167724609375, 0.034698486328125, 0.020599365234375, 0.07379150390625, -0.00905609130859375, 0.01100921630859375, 0.00608062744140625, -0.01425933837890625, 0.056854248046875, 0.00968170166015625, 0.01433563232421875, -0.0655517578125, -0.033966064453125, 0.052154541015625, 0.0826416015625, -0.03717041015625, -0.062408447265625, 0.01763916015625, 0.002391815185546875, 0.019073486328125, 0.033905029296875, 0.03448486328125, 0.032928466796875, 0.064208984375, -0.049163818359375, 0.00946807861328125, 0.033294677734375, 0.031463623046875, 0.003772735595703125, -0.005352020263671875, -0.039306640625, -0.017120361328125, -0.0684814453125, 0.0452880859375, 0.0289764404296875, 0.056060791015625, -0.002727508544921875, 0.06298828125, -0.0196533203125, -0.01410675048828125, 0.032867431640625, 0.0276947021484375, 0.010223388671875, -0.03363037109375, 0.0240478515625, -0.0421142578125, 0.0101776123046875, 0.0032196044921875, 0.0234375, 0.00698089599609375, 0.059722900390625, 0.046234130859375, -0.0211639404296875, -0.00724029541015625, 0.026947021484375, -0.01177978515625, 0.0095367431640625, -0.025054931640625, 0.0259857177734375, 0.01904296875, -0.00394439697265625, -0.02362060546875, 0.01873779296875, 0.061370849609375, 0.004695892333984375, 0.045745849609375, 0.0035648345947265625, -0.00289154052734375, 0.0277099609375, -0.0253753662109375, 0.014801025390625, 0.0093231201171875, -0.0772705078125, -0.01885986328125, -0.033721923828125, -0.025665283203125, 0.041595458984375, 0.042633056640625, -0.006664276123046875, 0.0032901763916015625, 0.000713348388671875, -0.016815185546875, 0.025146484375, -0.00003272294998168945, 0.005641937255859375, 0.00946044921875, 0.001766204833984375, -0.0012989044189453125, -0.0204925537109375, -0.00414276123046875, 0.01446533203125, 0.0010929107666015625, 0.032440185546875, -0.0200653076171875, 0.036346435546875, 0.0143585205078125, -0.0343017578125, 0.060699462890625, -0.0885009765625, -0.0673828125, 0.10107421875, -0.025146484375, -0.0263824462890625, 0.00164031982421875, -0.007045745849609375, 0.043426513671875, 0.0201873779296875, -0.03155517578125, 0.0011568069458007812, 0.00004416704177856445, -0.0001800060272216797, 0.0013837814331054688, 0.0306854248046875, -0.01053619384765625, -0.0147247314453125, -0.0312347412109375, -0.028961181640625, 0.04217529296875, 0.08001708984375, 0.02777099609375, 0.007671356201171875, -0.018310546875, 0.0026569366455078125, 0.00754547119140625, 0.0092926025390625, 0.006290435791015625, 0.0196685791015625, -0.050384521484375, -0.01082611083984375, 0.0020198822021484375, -0.0097198486328125, 0.0032749176025390625, 0.01361083984375, -0.002593994140625, -0.001922607421875, -0.00637054443359375, 0.0191650390625, 0.0390625, 0.06072998046875, -0.02752685546875, 0.0223541259765625, 0.0262451171875, 0.0011930465698242188, 0.0022125244140625, -0.0870361328125, -0.036285400390625, -0.0606689453125, 0.0043487548828125, 0.0291595458984375, -0.01178741455078125, -0.00943756103515625, 0.0004019737243652344, 0.0013170242309570312, 0.0177764892578125, -0.0116119384765625, -0.006103515625, 0.0137786865234375, -0.0298309326171875, 0.0182037353515625, -0.036041259765625, -0.02301025390625, 0.0235595703125, 0.041778564453125, -0.05242919921875, 0.01273345947265625, -0.00496673583984375, -0.026519775390625, -0.004302978515625, 0.0157012939453125, 0.01497650146484375, -0.032745361328125, -0.0194091796875, 0.045318603515625, 0.0235137939453125, 0.0777587890625, 0.02337646484375, -0.0237884521484375, -0.0000775456428527832, 0.019805908203125, -0.039398193359375, -0.038238525390625, 0.033721923828125, -0.040740966796875, -0.0279083251953125, -0.02386474609375, 0.03448486328125, 0.047149658203125, -0.0187835693359375, -0.0245208740234375, 0.03515625, -0.01102447509765625, -0.0291748046875, -0.032623291015625, 0.000053763389587402344, -0.00908660888671875, -0.0277862548828125, -0.016876220703125, -0.005584716796875, -0.0169677734375, 0.03472900390625, 0.0276641845703125, 0.01433563232421875, 0.033050537109375, -0.00461578369140625, -0.06732177734375, 0.01364898681640625, -0.01026153564453125, 0.044708251953125, -0.0107879638671875, 0.00945281982421875, -0.008148193359375, 0.040313720703125, -0.04229736328125, -0.0239410400390625, -0.009033203125, 0.0155792236328125, -0.002147674560546875, -0.0423583984375, -0.0343017578125, -0.0106353759765625, 0.016021728515625, 0.0513916015625, -0.00024330615997314453, -0.044952392578125, -0.06072998046875, -0.0308380126953125, -0.007526397705078125, -0.0152435302734375, 0.0298614501953125, -0.06884765625, 0.01093292236328125, 0.026458740234375, -0.0419921875, -0.01715087890625, -0.0079193115234375, -0.0787353515625, 0.0080413818359375, -0.045684814453125, -0.01122283935546875, -0.033660888671875, 0.05133056640625, -0.0152435302734375, -0.04290771484375, -0.052703857421875, -0.041229248046875, -0.0080413818359375, -0.06097412109375, -0.07818603515625, 0.0020046234130859375, 0.0238494873046875, -0.00984954833984375, -0.00977325439453125, 0.019866943359375, -0.0178680419921875, 0.0262603759765625, 0.00507354736328125, -0.039520263671875, 0.032135009765625, 0.0122222900390625, 0.017730712890625, -0.0238037109375, 0.03790283203125, 0.038116455078125, 0.04779052734375, 0.01450347900390625, 0.011444091796875, -0.00438690185546875, 0.076904296875, -0.0043792724609375, -0.0482177734375, 0.01528167724609375, -0.0684814453125, -0.0007843971252441406, -0.004364013671875, -0.02020263671875, -0.033050537109375, 0.0178070068359375, 0.0106353759765625, -0.02105712890625, 0.032379150390625 ]
88390a950e88285ca7ccfeee3353fa7e2922cf02
Wordpress Stackexchange Q: How do I change the author of a custom post type? I have made a custom post type and need to be able to create posts and assign them to authors. It is easy to do this with posts as you can go to the bulk edit screen and immediately change the author. However, when I try to do this with my custom post type the author box is not there. How do I add the functionality to change the author of my custom post type? EDIT: I found a solution, see answer below. A: I found out that the edit author attribute is not added by default in for custom post types. To add the author attribute the following code is required: function allowAuthorEditing() { add_post_type_support( 'mytype', 'author' ); } add_action('init','allowAuthorEditing');
Q: How do I change the author of a custom post type? I have made a custom post type and need to be able to create posts and assign them to authors. It is easy to do this with posts as you can go to the bulk edit screen and immediately change the author. However, when I try to do this with my custom post type the author box is not there. How do I add the functionality to change the author of my custom post type? EDIT: I found a solution, see answer below. A: I found out that the edit author attribute is not added by default in for custom post types. To add the author attribute the following code is required: function allowAuthorEditing() { add_post_type_support( 'mytype', 'author' ); } add_action('init','allowAuthorEditing'); A: in Custom Post Type register arguments array use this 'supports' => array('title', 'editor', 'thumbnail', 'comments', 'author'), This will activate author box on the edit screen. After registering author to cpt you need to activate author from edit screen option ( top of the edit screen where you can enable/disable all metabox ) to display authorbox on the edit screen. A: Go to Screen Options in the top right corner and check the box that says Author. It will then display the Author meta box. This is possibly the worst user experience in WordPress. It confuses so many people.
wordpress
{ "language": "en", "length": 232, "provenance": "stackexchange_00019.jsonl.gz:422111", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59314" }
[ 0.04815673828125, 0.00028824806213378906, -0.0008435249328613281, -0.0208587646484375, 0.010162353515625, -0.028045654296875, 0.03692626953125, -0.00927734375, -0.03973388671875, 0.020538330078125, 0.00948333740234375, 0.01235198974609375, -0.0165557861328125, -0.0259552001953125, 0.004512786865234375, -0.032989501953125, 0.0213775634765625, -0.0030994415283203125, 0.02557373046875, -0.031707763671875, 0.03436279296875, -0.0292205810546875, 0.03826904296875, 0.03369140625, 0.039093017578125, -0.0188751220703125, 0.055816650390625, -0.035400390625, 0.04547119140625, -0.0026950836181640625, 0.038543701171875, -0.04266357421875, -0.009613037109375, 0.055145263671875, -0.023590087890625, 0.049041748046875, -0.00885009765625, 0.034637451171875, 0.04119873046875, 0.00567626953125, 0.00928497314453125, 0.0096435546875, -0.04144287109375, 0.018646240234375, -0.038726806640625, -0.05255126953125, 0.005828857421875, -0.015472412109375, 0.039886474609375, -0.012451171875, -0.022186279296875, -0.004306793212890625, -0.00470733642578125, -0.047027587890625, -0.0228729248046875, -0.036895751953125, 0.03338623046875, -0.0257110595703125, 0.0243988037109375, -0.054473876953125, -0.0193634033203125, 0.0012979507446289062, 0.03143310546875, 0.029205322265625, 0.01439666748046875, 0.0187530517578125, 0.04473876953125, 0.018890380859375, 0.004947662353515625, 0.0004863739013671875, -0.0016374588012695312, -0.0189208984375, 0.018035888671875, 0.01102447509765625, 0.0169830322265625, -0.0606689453125, -0.01080322265625, -0.0372314453125, 0.0233612060546875, 0.026336669921875, 0.0204620361328125, 0.0086212158203125, 0.03497314453125, -0.0389404296875, 0.0033588409423828125, -0.032867431640625, -0.00818634033203125, -0.00428009033203125, -0.01427459716796875, 0.01470184326171875, -0.005985260009765625, -0.03155517578125, -0.0113983154296875, 0.05389404296875, 0.02215576171875, -0.0175628662109375, 0.0364990234375, 0.032684326171875, 0.0018901824951171875, -0.005168914794921875, 0.0146484375, -0.04168701171875, 0.02880859375, -0.03985595703125, 0.002780914306640625, 0.018218994140625, -0.0031528472900390625, -0.0243988037109375, 0.0068817138671875, 0.025299072265625, -0.01409912109375, -0.040313720703125, 0.0123291015625, 0.00806427001953125, -0.034881591796875, -0.004444122314453125, -0.01456451416015625, 0.0051727294921875, -0.00963592529296875, 0.0023632049560546875, 0.0232696533203125, 0.0340576171875, -0.01129913330078125, -0.032867431640625, 0.0017595291137695312, -0.026397705078125, -0.03472900390625, -0.004604339599609375, 0.04510498046875, 0.01007080078125, -0.07220458984375, -0.00452423095703125, 0.11700439453125, 0.033782958984375, 0.05389404296875, -0.032318115234375, -0.005168914794921875, -0.018585205078125, -0.021270751953125, 0.0189361572265625, 0.0021762847900390625, -0.037445068359375, 0.003925323486328125, 0.007354736328125, 0.01158905029296875, 0.0537109375, 0.0158843994140625, 0.000995635986328125, -0.01229095458984375, -0.05352783203125, 0.01216888427734375, -0.035125732421875, 0.0204925537109375, 0.01206207275390625, 0.041412353515625, -0.0362548828125, 0.061920166015625, -0.042236328125, -0.0029468536376953125, -0.04058837890625, 0.0267791748046875, -0.00984954833984375, 0.006832122802734375, 0.01177978515625, -0.023345947265625, 0.0173797607421875, -0.046142578125, -0.002613067626953125, 0.01465606689453125, -0.03192138671875, 0.0094451904296875, 0.0089263916015625, 0.0014171600341796875, 0.01788330078125, 0.01184844970703125, 0.0189666748046875, -0.0230560302734375, 0.0140838623046875, 0.01351165771484375, 0.0347900390625, 0.0012969970703125, -0.025970458984375, 0.0190887451171875, -0.006038665771484375, -0.03564453125, 0.051116943359375, 0.0081024169921875, 0.08056640625, -0.00476837158203125, 0.0175323486328125, -0.023468017578125, 0.0252532958984375, -0.03814697265625, -0.0105438232421875, 0.012237548828125, 0.0015316009521484375, -0.00850677490234375, -0.02288818359375, 0.003177642822265625, 0.02557373046875, -0.027618408203125, -0.01910400390625, 0.010955810546875, -0.0018720626831054688, -0.023956298828125, -0.0106201171875, -0.009002685546875, 0.032379150390625, 0.029632568359375, 0.01479339599609375, 0.014434814453125, -0.01395416259765625, -0.01325225830078125, -0.012054443359375, -0.037506103515625, 0.016754150390625, 0.01264190673828125, 0.04180908203125, 0.0001125335693359375, 0.01502227783203125, 0.0019445419311523438, -0.028289794921875, -0.0012464523315429688, 0.03302001953125, 0.0380859375, -0.01136016845703125, -0.023223876953125, -0.0296783447265625, 0.02001953125, 0.003673553466796875, -0.044464111328125, 0.031402587890625, 0.0330810546875, -0.0042724609375, -0.040191650390625, -0.01163482666015625, -0.01275634765625, -0.0634765625, -0.00301361083984375, 0.0718994140625, 0.0163421630859375, -0.018402099609375, -0.0068511962890625, 0.046234130859375, 0.0265045166015625, 0.042755126953125, 0.032012939453125, 0.0032672882080078125, 0.0188751220703125, 0.0294189453125, -0.003787994384765625, -0.0111846923828125, 0.0259246826171875, -0.05535888671875, 0.046661376953125, 0.0148162841796875, -0.0017375946044921875, 0.0070953369140625, -0.0144805908203125, -0.007904052734375, -0.00550079345703125, -0.07525634765625, -0.0229034423828125, -0.041015625, 0.03753662109375, 0.0186920166015625, 0.03717041015625, 0.0212554931640625, -0.0811767578125, 0.0185546875, 0.0295562744140625, 0.0380859375, 0.006683349609375, 0.02972412109375, 0.00429534912109375, 0.02197265625, -0.01392364501953125, -0.01300811767578125, 0.0068817138671875, 0.0229949951171875, -0.032379150390625, -0.0262298583984375, -0.048553466796875, -0.0032196044921875, 0.0114593505859375, -0.059173583984375, 0.0099945068359375, 0.0021190643310546875, -0.0212860107421875, -0.04632568359375, -0.004673004150390625, 0.00629425048828125, -0.0251312255859375, 0.0167388916015625, 0.004730224609375, -0.0262908935546875, 0.0178070068359375, -0.08056640625, 0.0687255859375, -0.04437255859375, 0.0712890625, 0.08465576171875, -0.01459503173828125, 0.035858154296875, 0.007068634033203125, -0.005191802978515625, -0.0218048095703125, 0.059814453125, 0.02783203125, -0.055816650390625, 0.004398345947265625, 0.0132293701171875, 0.0223541259765625, 0.01641845703125, 0.0036067962646484375, -0.017181396484375, -0.00848388671875, 0.03973388671875, -0.0259552001953125, -0.015533447265625, 0.048370361328125, -0.043731689453125, -0.042083740234375, -0.0452880859375, -0.047393798828125, 0.00551605224609375, -0.022796630859375, -0.0226898193359375, 0.024871826171875, -0.022705078125, -0.032684326171875, -0.03900146484375, -0.05584716796875, -0.071533203125, 0.00412750244140625, -0.00453948974609375, 0.0143585205078125, 0.053680419921875, 0.0075531005859375, -0.0672607421875, -0.00801849365234375, 0.010589599609375, -0.0187225341796875, 0.033294677734375, 0.0176239013671875, -0.0174713134765625, 0.0484619140625, 0.0016851425170898438, 0.007602691650390625, 0.041015625, -0.0240020751953125, -0.038482666015625, -0.0160980224609375, -0.01018524169921875, 0.0189056396484375, 0.04949951171875, 0.01006317138671875, -0.00858306884765625, 0.0404052734375, -0.04937744140625, 0.0009899139404296875, 0.00734710693359375, -0.01384735107421875, 0.000560760498046875, -0.0292510986328125, -0.0221099853515625, -0.042755126953125, 0.06573486328125, 0.006130218505859375, 0.019866943359375, 0.006389617919921875, 0.00665283203125, 0.015960693359375, 0.00418853759765625, -0.0029888153076171875, -0.0152740478515625, -0.00774383544921875, -0.033782958984375, 0.034759521484375, -0.0037250518798828125, 0.0113067626953125, -0.007526397705078125, 0.005077362060546875, -0.01155853271484375, -0.0943603515625, 0.050628662109375, -0.0714111328125, -0.038360595703125, -0.0242919921875, -0.0142974853515625, 0.0313720703125, 0.10888671875, -0.0048675537109375, 0.00882720947265625, 0.01111602783203125, 0.00814056396484375, -0.023406982421875, -0.03662109375, -0.06317138671875, -0.005138397216796875, -0.0249481201171875, 0.022186279296875, 0.01001739501953125, -0.0012712478637695312, -0.03497314453125, 0.03387451171875, -0.0154876708984375, 0.0008144378662109375, 0.04144287109375, -0.064453125, -0.00609588623046875, 0.03680419921875, -0.0280303955078125, 0.007328033447265625, -0.0382080078125, -0.033935546875, -0.125, -0.01995849609375, -0.034759521484375, 0.08538818359375, -0.0214080810546875, 0.02874755859375, -0.053131103515625, 0.038543701171875, 0.0302276611328125, -0.00007480382919311523, 0.0030689239501953125, -0.01268768310546875, 0.010711669921875, -0.01471710205078125, -0.01073455810546875, -0.010589599609375, -0.0006961822509765625, 0.016204833984375, -0.01519012451171875, 0.0318603515625, -0.0118865966796875, -0.00689697265625, 0.0293426513671875, -0.043060302734375, -0.042205810546875, -0.08056640625, -0.033599853515625, 0.043365478515625, 0.0096588134765625, 0.007476806640625, -0.1197509765625, -0.07952880859375, 0.06878662109375, -0.0184478759765625, 0.0157470703125, -0.020843505859375, 0.1064453125, 0.02008056640625, -0.0183563232421875, 0.016845703125, 0.004985809326171875, 0.0269775390625, -0.01373291015625, 0.0014219284057617188, -0.0003914833068847656, -0.003246307373046875, -0.0011835098266601562, -0.02276611328125, -0.035797119140625, -0.01580810546875, 0.057861328125, 0.016448974609375, 0.007396697998046875, -0.01071929931640625, -0.0290679931640625, 0.062286376953125, -0.0268096923828125, -0.006511688232421875, 0.01395416259765625, 0.054290771484375, 0.0316162109375, -0.025054931640625, 0.00449371337890625, -0.020355224609375, -0.0105438232421875, 0.01508331298828125, -0.0254669189453125, -0.0183563232421875, 0.0007877349853515625, 0.006999969482421875, -0.040863037109375, -0.05255126953125, 0.0222930908203125, -0.043853759765625, -0.0538330078125, -0.023223876953125, 0.0161895751953125, -0.0010557174682617188, 0.0208892822265625, 0.009918212890625, -0.01300811767578125, 0.043853759765625, 0.00992584228515625, -0.05474853515625, 0.036895751953125, -0.00846099853515625, 0.032684326171875, 0.025970458984375, -0.0142059326171875, 0.031463623046875, 0.042724609375, 0.0065155029296875, 0.0213470458984375, -0.007183074951171875, 0.032745361328125, -0.038604736328125, -0.001834869384765625, 0.019439697265625, -0.01055908203125, -0.01153564453125, 0.0361328125, 0.038482666015625, -0.01418304443359375, -0.0227508544921875, 0.06591796875, 0.04656982421875, 0.0277557373046875, 0.013824462890625, 0.029815673828125, -0.0194244384765625, 0.006748199462890625, -0.0552978515625, -0.03680419921875, -0.006649017333984375, 0.005489349365234375, 0.048919677734375, 0.01177978515625, -0.006145477294921875, 0.0157928466796875, -0.048492431640625, -0.00897979736328125, -0.0153961181640625, 0.0115966796875, -0.027923583984375, 0.01507568359375, 0.0227508544921875, -0.0120086669921875, -0.0116729736328125, -0.0340576171875, -0.01094818115234375, -0.06951904296875, 0.0224761962890625, -0.02313232421875, 0.014190673828125, -0.001529693603515625, -0.020782470703125, -0.03515625, -0.03302001953125, -0.008148193359375, -0.0082855224609375, -0.005397796630859375, -0.00890350341796875, -0.02264404296875, 0.0165252685546875, -0.01371002197265625, 0.0142822265625, -0.0330810546875, 0.0135650634765625, 0.01171875, 0.003948211669921875, 0.05828857421875, 0.004367828369140625, -0.027008056640625, 0.012664794921875, -0.04986572265625, -0.016357421875, -0.061309814453125, -0.041748046875, -0.037750244140625, -0.0076141357421875, 0.00815582275390625, 0.01090240478515625, -0.0279388427734375, -0.0236663818359375, -0.006023406982421875, 0.031280517578125, 0.01194000244140625, 0.050201416015625, -0.0141754150390625, 0.0650634765625, 0.01708984375, 0.0458984375, 0.00958251953125, 0.020233154296875, -0.0303192138671875, -0.01483917236328125, 0.004123687744140625, -0.036895751953125, -0.0149993896484375, -0.036956787109375, -0.0082244873046875, 0.0281524658203125, 0.055084228515625, 0.006526947021484375, 0.0012865066528320312, -0.00629425048828125, 0.0021820068359375, -0.01445770263671875, 0.024810791015625, 0.0089111328125, 0.026824951171875, -0.01480865478515625, -0.00846099853515625, 0.0487060546875, -0.01812744140625, -0.016693115234375, 0.007312774658203125, -0.0168914794921875, 0.01433563232421875, 0.0408935546875, -0.044036865234375, 0.04302978515625, 0.05377197265625, -0.009490966796875, 0.0323486328125, 0.024139404296875, 0.01427459716796875, 0.0260772705078125, -0.014434814453125, -0.033782958984375, 0.010498046875, 0.0161285400390625, 0.0007104873657226562, -0.0086822509765625, 0.00020396709442138672, -0.01666259765625, 0.00335693359375, 0.0357666015625, 0.058349609375, -0.07159423828125, 0.0118865966796875, 0.0174560546875, 0.01522064208984375, 0.0513916015625, -0.00797271728515625, -0.0150146484375, -0.0107421875, 0.05340576171875, -0.046417236328125, -0.006824493408203125, 0.023406982421875, -0.0009608268737792969, -0.0028896331787109375, -0.0498046875, 0.02294921875, 0.0119781494140625, 0.006587982177734375, 0.038330078125, -0.00182342529296875, 0.00986480712890625, -0.00882720947265625, 0.02587890625, 0.01251983642578125, 0.0016574859619140625, -0.03765869140625, 0.0433349609375, -0.0360107421875, -0.00705718994140625, 0.004817962646484375, 0.02764892578125, 0.0254974365234375, 0.0158233642578125, -0.0043487548828125, -0.002658843994140625, -0.015350341796875, 0.00811004638671875, -0.0305328369140625, -0.0687255859375, -0.01442718505859375, 0.07476806640625, -0.0472412109375, 0.05120849609375, 0.007175445556640625, -0.01947021484375, -0.002895355224609375, -0.01508331298828125, 0.03729248046875, -0.00736236572265625, -0.0195465087890625, 0.024139404296875, 0.00390625, 0.0022373199462890625, 0.02490234375, -0.00530242919921875, -0.049041748046875, -0.0277557373046875, 0.006740570068359375, -0.06103515625, 0.00738525390625, 0.00823974609375, -0.05517578125, 0.1029052734375, 0.004924774169921875, 0.007904052734375, -0.0081024169921875, 0.046356201171875, -0.01461029052734375, 0.0305023193359375, -0.0306549072265625, 0.024871826171875, 0.004650115966796875, 0.01611328125, -0.05377197265625, -0.0252532958984375, -0.021514892578125, 0.0281982421875, 0.074462890625, 0.00954437255859375, 0.00732421875, 0.0098724365234375, 0.0335693359375, 0.0110321044921875, -0.05450439453125, 0.0256805419921875, 0.00957489013671875, 0.011016845703125, 0.020477294921875, 0.0077056884765625, 0.038055419921875, -0.01219940185546875, -0.043426513671875, 0.0279083251953125, 0.01346588134765625, 0.01018524169921875, -0.035736083984375, -0.049896240234375, -0.0291748046875, -0.028076171875, 0.0179595947265625, -0.006404876708984375, -0.0121612548828125, 0.06982421875, 0.09033203125, -0.030548095703125, 0.0198211669921875, -0.041656494140625, 0.08233642578125, 0.03582763671875, 0.034149169921875, -0.01335906982421875, 0.0089263916015625, -0.0204925537109375, 0.0014781951904296875, 0.0202484130859375, 0.02655029296875, -0.007144927978515625, 0.02197265625, 0.005382537841796875, 0.004802703857421875, -0.03253173828125, 0.032867431640625, 0.03900146484375, 0.030029296875, -0.049591064453125, -0.0160064697265625, -0.0026302337646484375, -0.013427734375, 0.006221771240234375, -0.036865234375, 0.003147125244140625, 0.0262298583984375, 0.0171356201171875, -0.0633544921875, 0.00957489013671875, 0.019287109375, 0.0304412841796875, -0.01168060302734375, 0.0019550323486328125, -0.0489501953125, -0.016021728515625, -0.028350830078125, -0.0531005859375, 0.0044097900390625, 0.03173828125, 0.05621337890625, 0.019195556640625, 0.04742431640625, -0.00795745849609375, -0.00910186767578125, -0.0003113746643066406, -0.006488800048828125, 0.031524658203125, -0.0205078125, -0.0034694671630859375, -0.00522613525390625, 0.02691650390625, 0.007465362548828125, 0.036590576171875, 0.01476287841796875, -0.011474609375, 0.0026092529296875, 0.002208709716796875, 0.01279449462890625, -0.0247344970703125, -0.027587890625, -0.04962158203125, 0.005779266357421875, 0.0199432373046875, 0.00838470458984375, 0.0128936767578125, 0.004878997802734375, 0.0170135498046875, -0.008941650390625, 0.036468505859375, 0.0029125213623046875, -0.0247344970703125, 0.0291290283203125, 0.017181396484375, 0.07781982421875, 0.025177001953125, -0.0418701171875, 0.017669677734375, -0.04888916015625, -0.0771484375, 0.02679443359375, 0.041778564453125, -0.028106689453125, 0.0160369873046875, -0.032257080078125, -0.00762176513671875, -0.010162353515625, 0.00823211669921875, 0.0057373046875, 0.031951904296875, 0.0158233642578125, 0.005168914794921875, -0.039031982421875, -0.03631591796875, -0.005390167236328125, 0.0343017578125, 0.001422882080078125, 0.01206207275390625, 0.0010280609130859375, 0.02471923828125, -0.03839111328125, 0.07208251953125, -0.1041259765625, -0.054412841796875, 0.0643310546875, -0.0220184326171875, -0.003936767578125, 0.019134521484375, -0.021026611328125, 0.054443359375, 0.006458282470703125, -0.00872039794921875, 0.030426025390625, 0.0108489990234375, 0.00872802734375, -0.0124664306640625, 0.0021266937255859375, -0.03961181640625, -0.0419921875, -0.04400634765625, -0.0000622868537902832, 0.0058746337890625, -0.043365478515625, -0.05010986328125, -0.0090179443359375, 0.005157470703125, -0.015350341796875, 0.0164031982421875, 0.0016107559204101562, 0.0079193115234375, 0.0147247314453125, 0.0010423660278320312, -0.07342529296875, 0.03302001953125, 0.001422882080078125, -0.006145477294921875, 0.0225372314453125, 0.06646728515625, 0.036041259765625, -0.052398681640625, 0.0119171142578125, -0.0140228271484375, 0.039947509765625, -0.0032062530517578125, -0.0008573532104492188, -0.02099609375, 0.01483154296875, -0.0450439453125, 0.0266876220703125, -0.035003662109375, -0.0170440673828125, 0.03466796875, 0.0238189697265625, 0.04095458984375, -0.0003085136413574219, -0.048980712890625, 0.0164031982421875, 0.011444091796875, -0.0122222900390625, -0.051513671875, 0.0307769775390625, -0.03948974609375, 0.044708251953125, -0.0258026123046875, -0.0623779296875, 0.038177490234375, 0.0736083984375, -0.026947021484375, 0.01387786865234375, -0.034881591796875, -0.06488037109375, -0.04156494140625, 0.0183258056640625, 0.04681396484375, -0.0188140869140625, -0.01032257080078125, 0.02734375, 0.022857666015625, 0.07025146484375, -0.021697998046875, -0.0263671875, 0.0088653564453125, 0.00013065338134765625, -0.0137481689453125, -0.06365966796875, 0.0131988525390625, -0.0877685546875, -0.00046753883361816406, -0.042572021484375, 0.046630859375, 0.04815673828125, -0.0021572113037109375, -0.02197265625, 0.016754150390625, -0.01056671142578125, -0.019439697265625, -0.04473876953125, 0.006412506103515625, -0.01442718505859375, 0.0233306884765625, 0.0005140304565429688, -0.0406494140625, -0.006572723388671875, 0.0240020751953125, -0.0136871337890625, 0.04412841796875, 0.01136016845703125, -0.03460693359375, -0.031494140625, -0.017578125, -0.01097869873046875, 0.00905609130859375, 0.011383056640625, -0.0271453857421875, 0.0014257431030273438, 0.0157470703125, -0.040618896484375, -0.035003662109375, -0.0034465789794921875, 0.016510009765625, -0.016876220703125, -0.022247314453125, -0.0215911865234375, -0.0226898193359375, 0.0360107421875, 0.038116455078125, 0.0139923095703125, -0.0097198486328125, 0.03363037109375, -0.0234832763671875, -0.0280914306640625, -0.0184478759765625, -0.00911712646484375, -0.01084136962890625, -0.00658416748046875, -0.01161956787109375, -0.0335693359375, -0.018341064453125, -0.0027599334716796875, -0.041259765625, 0.0144805908203125, -0.0096588134765625, -0.0191650390625, -0.0182037353515625, 0.057769775390625, 0.014434814453125, -0.024444580078125, 0.007686614990234375, -0.005718231201171875, -0.02728271484375, 0.008270263671875, 0.002593994140625, -0.027069091796875, 0.006946563720703125, -0.0199737548828125, 0.019012451171875, -0.0153045654296875, 0.059295654296875, -0.0283203125, 0.018280029296875, -0.0203857421875, 0.0228729248046875, -0.00724029541015625, 0.0111236572265625, -0.015625, 0.0618896484375, 0.0169219970703125, 0.0692138671875, -0.007747650146484375, -0.041595458984375, -0.026824951171875, 0.0177001953125, -0.0265350341796875, 0.008270263671875, -0.0035495758056640625, -0.00637054443359375, 0.0235443115234375, -0.0004146099090576172, 0.00699615478515625, -0.01271820068359375, 0.0227508544921875, 0.049163818359375, -0.01012420654296875, 0.025848388671875 ]
f20109934717db3b6f63f1741bf6ee37dba51661
Wordpress Stackexchange Q: How to add code just below opening body tag in Genesis framework We need to add two snippets of code, one right below the opening body tag, and the other right before the closing body tag. What is the best way to do this? I checked out the wp_enqueue_script, but it appears the content would be in the head section. A: You can use a plugin such as this to show all of the Genesis hooks: http://wordpress.org/plugins/genesis-visual-hook-guide/. This will allow you to quickly find the right hook to modify to do this. Then modify the hook in the functions file. You can also use a plugin which allows you to easily modify hooks through the wp-admin: http://www.studiopress.com/plugins/simple-hooks
Q: How to add code just below opening body tag in Genesis framework We need to add two snippets of code, one right below the opening body tag, and the other right before the closing body tag. What is the best way to do this? I checked out the wp_enqueue_script, but it appears the content would be in the head section. A: You can use a plugin such as this to show all of the Genesis hooks: http://wordpress.org/plugins/genesis-visual-hook-guide/. This will allow you to quickly find the right hook to modify to do this. Then modify the hook in the functions file. You can also use a plugin which allows you to easily modify hooks through the wp-admin: http://www.studiopress.com/plugins/simple-hooks A: Did you even open header.php and take a peek? You'll see genesis_before() called right after the opening <body> tag - follow the white rabbit and you get: function genesis_before() { do_action('genesis_before'); } And likewise for the footer. So... add_action( 'genesis_before', 'im_a_lazy_copy_paster' ); add_action( 'genesis_after', 'im_a_lazy_copy_paster' ); function im_a_lazy_copy_paster() { if ( current_filter() == 'genesis_before' ) echo '<script>party.start();</script>'; else echo '<script>if ( cops.called() ) party.split();</script>'; } A: You were on the right track. wp_enqueue_script takes a parameter called in_footer which defines whether your script should be loaded before page content or at the end of the page body. $in_footer: (boolean) (optional) Normally scripts are placed in the <head> section. If this parameter is true the script is placed at the bottom of the <body>. 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. Default: false Here is the reference on codex: http://codex.wordpress.org/Function_Reference/wp_enqueue_script A: * *After the opening body tag. add_action( 'genesis_before', 'my_genesis_script' ); function my_genesis_script() { if ( current_filter() == 'genesis_before' ) echo '<script>parties.over();</script>'; } Structural Action Hooks genesis_before: This hook executes immediately after the opening tag in the document source. * *Before the closing body tag: You can add the script to the Genesis > Theme Settings > Header and Footer scripts and enter your script you would like output to wp_footer(). The wp_footer() hook executes immediately before the closing tag in the document source. A: An update for GenesisWP 3.3.1 Go to header.php ?> </head> <?php genesis_markup( [ 'open' => '<body %s>', 'context' => 'body', ] ); if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } echo '<script>parties.over();</script>'; /** * Fires immediately after the `wp_body_open` action hook. * * @since 1.0.0 */ do_action( 'genesis_before' )
wordpress
{ "language": "en", "length": 420, "provenance": "stackexchange_00019.jsonl.gz:422114", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59326" }
[ 0.020538330078125, 0.007526397705078125, -0.0267333984375, 0.01436614990234375, -0.003467559814453125, -0.03448486328125, 0.0191497802734375, -0.0290985107421875, -0.00720977783203125, 0.03558349609375, -0.04180908203125, 0.0308990478515625, 0.036651611328125, -0.0035152435302734375, 0.01265716552734375, -0.01297760009765625, 0.048126220703125, -0.042816162109375, 0.01342010498046875, -0.0005774497985839844, -0.0140380859375, 0.039520263671875, 0.025238037109375, 0.0283660888671875, -0.00031828880310058594, -0.058502197265625, 0.1165771484375, -0.04840087890625, 0.01385498046875, -0.02496337890625, 0.0113067626953125, 0.00981903076171875, 0.03955078125, 0.01537322998046875, -0.040740966796875, 0.061248779296875, 0.01047515869140625, -0.0037937164306640625, -0.00628662109375, 0.0367431640625, 0.020660400390625, -0.0135345458984375, -0.019012451171875, 0.059600830078125, -0.019500732421875, -0.041107177734375, 0.00881195068359375, -0.050567626953125, 0.01018524169921875, -0.038604736328125, -0.01248931884765625, 0.0025482177734375, 0.016357421875, -0.016632080078125, -0.0204315185546875, 0.004184722900390625, -0.0283966064453125, -0.00936126708984375, 0.03582763671875, 0.035064697265625, 0.007053375244140625, -0.034912109375, -0.004360198974609375, -0.037811279296875, 0.0046234130859375, -0.01299285888671875, 0.0016040802001953125, -0.0029010772705078125, 0.005611419677734375, 0.01165008544921875, 0.035400390625, -0.0185546875, -0.006618499755859375, -0.040618896484375, 0.0193939208984375, 0.020050048828125, -0.01233673095703125, -0.002895355224609375, 0.01361846923828125, 0.0084381103515625, 0.006298065185546875, 0.0023097991943359375, 0.02056884765625, -0.06439208984375, 0.0036220550537109375, -0.05523681640625, -0.0214385986328125, 0.0109405517578125, -0.0215911865234375, -0.003963470458984375, -0.04180908203125, 0.002002716064453125, 0.0166168212890625, -0.0111236572265625, -0.0295867919921875, -0.004749298095703125, 0.007175445556640625, 0.01439666748046875, 0.0179595947265625, 0.03289794921875, 0.0377197265625, -0.05316162109375, 0.07586669921875, -0.05120849609375, 0.00830841064453125, 0.02496337890625, -0.00858306884765625, -0.036346435546875, 0.005214691162109375, 0.01090240478515625, -0.0203094482421875, -0.051910400390625, 0.036651611328125, -0.019073486328125, -0.0225830078125, -0.008209228515625, 0.0081329345703125, 0.020843505859375, 0.024627685546875, -0.0123748779296875, 0.00722503662109375, 0.0308380126953125, -0.00994110107421875, 0.01033782958984375, 0.004703521728515625, 0.0038051605224609375, -0.01033782958984375, -0.0308074951171875, -0.0294647216796875, 0.021240234375, -0.020721435546875, 0.0308990478515625, 0.0809326171875, 0.048248291015625, 0.0043182373046875, -0.0222015380859375, 0.0219879150390625, -0.025848388671875, -0.0133819580078125, 0.0102081298828125, -0.040069580078125, -0.046661376953125, -0.00009578466415405273, -0.031951904296875, 0.0096282958984375, 0.0156707763671875, 0.0120697021484375, 0.031707763671875, 0.007556915283203125, -0.045623779296875, 0.037689208984375, -0.018096923828125, 0.021240234375, 0.016204833984375, -0.031829833984375, -0.006336212158203125, 0.0206298828125, -0.0090789794921875, -0.0106048583984375, -0.038787841796875, -0.0197601318359375, -0.0175628662109375, 0.022705078125, -0.032196044921875, -0.032012939453125, 0.0213775634765625, -0.06121826171875, -0.0036945343017578125, 0.025421142578125, 0.0271148681640625, 0.01229095458984375, -0.0218353271484375, 0.047576904296875, 0.0102386474609375, -0.0259246826171875, 0.01244354248046875, 0.040435791015625, 0.0290069580078125, 0.0152587890625, 0.01145172119140625, 0.0011320114135742188, -0.0235748291015625, 0.1011962890625, -0.042694091796875, -0.05810546875, 0.0753173828125, 0.0006604194641113281, 0.078857421875, 0.00403594970703125, -0.003131866455078125, 0.0484619140625, 0.03302001953125, -0.006015777587890625, 0.044342041015625, -0.03912353515625, -0.037933349609375, -0.003635406494140625, 0.0161895751953125, -0.041229248046875, 0.00856781005859375, -0.046478271484375, 0.0296173095703125, -0.00658416748046875, 0.04559326171875, 0.035064697265625, 0.01617431640625, -0.0121307373046875, 0.0309295654296875, 0.010467529296875, -0.01348114013671875, -0.009796142578125, -0.052276611328125, 0.03826904296875, -0.072509765625, -0.05645751953125, -0.005260467529296875, -0.040618896484375, 0.052154541015625, -0.002269744873046875, 0.036468505859375, 0.04071044921875, -0.046844482421875, 0.04803466796875, -0.0206146240234375, 0.0211029052734375, 0.0166015625, -0.036773681640625, -0.00830841064453125, -0.00896453857421875, 0.0299072265625, -0.058074951171875, 0.00618743896484375, 0.024871826171875, 0.0181732177734375, -0.08197021484375, -0.014495849609375, -0.0450439453125, 0.0338134765625, -0.0176544189453125, 0.0382080078125, 0.0297393798828125, 0.046875, -0.0263824462890625, -0.0196380615234375, 0.048828125, -0.0631103515625, -0.0181121826171875, -0.005054473876953125, 0.005706787109375, 0.0189666748046875, -0.0158233642578125, -0.0161590576171875, 0.03778076171875, -0.0672607421875, -0.0016431808471679688, 0.037445068359375, -0.05010986328125, -0.04815673828125, 0.044891357421875, -0.055206298828125, 0.035247802734375, -0.076416015625, -0.050384521484375, -0.018035888671875, 0.00853729248046875, 0.002483367919921875, 0.022064208984375, 0.0136566162109375, -0.0283660888671875, -0.005817413330078125, 0.03033447265625, 0.03607177734375, -0.0162200927734375, 0.012115478515625, 0.00482177734375, -0.03924560546875, -0.005489349365234375, -0.0018310546875, -0.018798828125, -0.0098724365234375, -0.0260162353515625, 0.01177978515625, 0.001277923583984375, -0.026580810546875, -0.0006074905395507812, 0.017669677734375, 0.0171661376953125, -0.038787841796875, -0.0242767333984375, 0.03985595703125, 0.06292724609375, -0.0005154609680175781, -0.0152740478515625, -0.0034885406494140625, -0.054229736328125, 0.004161834716796875, 0.01250457763671875, -0.01235198974609375, 0.0101776123046875, -0.0137481689453125, 0.0391845703125, 0.04833984375, 0.00426483154296875, -0.006805419921875, -0.00864410400390625, -0.00629425048828125, -0.00624847412109375, -0.01187896728515625, -0.013580322265625, -0.018646240234375, -0.014923095703125, 0.032745361328125, 0.0266876220703125, 0.0066680908203125, 0.005825042724609375, -0.0212860107421875, -0.0191192626953125, 0.009033203125, -0.0738525390625, -0.051910400390625, 0.01947021484375, -0.064697265625, 0.040435791015625, -0.0167694091796875, -0.0295562744140625, -0.0253448486328125, 0.0284881591796875, 0.00704193115234375, -0.0082550048828125, -0.01384735107421875, -0.057586669921875, -0.035858154296875, -0.06097412109375, 0.048309326171875, -0.0086669921875, 0.01192474365234375, 0.01264190673828125, -0.0025310516357421875, 0.00738525390625, -0.01715087890625, 0.01389312744140625, -0.0404052734375, -0.0275115966796875, -0.01442718505859375, 0.0074920654296875, -0.052764892578125, 0.04296875, -0.003414154052734375, -0.085693359375, 0.005374908447265625, 0.04058837890625, -0.031951904296875, -0.025970458984375, -0.029876708984375, -0.044158935546875, 0.05364990234375, 0.035064697265625, -0.03179931640625, 0.00936126708984375, -0.052642822265625, -0.035614013671875, 0.0428466796875, -0.044464111328125, -0.0823974609375, 0.03656005859375, -0.038665771484375, -0.032623291015625, -0.020416259765625, 0.0197906494140625, 0.014739990234375, 0.04620361328125, 0.018402099609375, 0.0164947509765625, -0.033660888671875, -0.0276641845703125, -0.052642822265625, 0.0208740234375, -0.006366729736328125, -0.036773681640625, -0.01177978515625, 0.0257110595703125, -0.00933837890625, -0.01043701171875, -0.050506591796875, -0.0179901123046875, 0.0240020751953125, -0.0016756057739257812, 0.055328369140625, -0.03216552734375, -0.029388427734375, -0.028289794921875, 0.07489013671875, -0.0196533203125, -0.02020263671875, -0.0035495758056640625, 0.00731658935546875, -0.0151519775390625, 0.005054473876953125, -0.0404052734375, -0.02197265625, -0.04913330078125, 0.024200439453125, 0.010101318359375, 0.00701141357421875, -0.034393310546875, 0.0479736328125, -0.03253173828125, -0.0271759033203125, 0.01442718505859375, -0.003978729248046875, -0.00885772705078125, 0.0277862548828125, -0.0258026123046875, 0.0279388427734375, -0.01043701171875, -0.0202178955078125, -0.073974609375, -0.007488250732421875, -0.03668212890625, 0.06280517578125, 0.033477783203125, -0.033355712890625, -0.024383544921875, 0.0279693603515625, -0.0126495361328125, -0.00458526611328125, 0.0236358642578125, 0.04144287109375, -0.0260162353515625, -0.0017070770263671875, 0.0024547576904296875, -0.03680419921875, -0.0218963623046875, 0.004192352294921875, 0.00684356689453125, 0.07733154296875, 0.01384735107421875, 0.02398681640625, 0.0238494873046875, -0.02178955078125, -0.0207366943359375, -0.01763916015625, -0.01837158203125, 0.00164794921875, -0.0127716064453125, 0.0024738311767578125, -0.01488494873046875, -0.018798828125, 0.0406494140625, -0.01230621337890625, -0.01617431640625, -0.004291534423828125, 0.056182861328125, 0.01384735107421875, -0.033203125, 0.0031528472900390625, 0.008819580078125, 0.033935546875, -0.0175933837890625, 0.01491546630859375, -0.0231170654296875, -0.035552978515625, 0.0726318359375, -0.01287841796875, 0.02935791015625, -0.048309326171875, 0.11260986328125, -0.002872467041015625, -0.004833221435546875, 0.026580810546875, 0.00792694091796875, -0.032501220703125, -0.0313720703125, -0.0396728515625, 0.0169219970703125, 0.03082275390625, 0.0110626220703125, -0.057464599609375, 0.08642578125, 0.01421356201171875, -0.006725311279296875, -0.0159454345703125, 0.049224853515625, 0.0099639892578125, 0.031219482421875, -0.00475311279296875, -0.0211029052734375, 0.044158935546875, 0.01290130615234375, 0.0061798095703125, 0.0075836181640625, -0.0158843994140625, 0.03912353515625, 0.005275726318359375, -0.003292083740234375, -0.0105133056640625, -0.02227783203125, 0.034149169921875, 0.0257568359375, -0.02728271484375, -0.022918701171875, -0.0209808349609375, 0.03289794921875, -0.0328369140625, 0.01163482666015625, 0.0272979736328125, -0.007556915283203125, 0.01560211181640625, 0.0316162109375, -0.032501220703125, 0.007320404052734375, -0.0137481689453125, 0.005420684814453125, -0.0008325576782226562, -0.0277099609375, 0.0289154052734375, -0.0207061767578125, 0.01531982421875, -0.00814056396484375, -0.00812530517578125, -0.01139068603515625, 0.0158538818359375, 0.0081939697265625, 0.042816162109375, -0.017669677734375, -0.001369476318359375, -0.018951416015625, 0.030364990234375, -0.0159454345703125, -0.00616455078125, -0.00656890869140625, -0.002788543701171875, -0.005321502685546875, 0.0005474090576171875, 0.03515625, 0.0185699462890625, -0.037109375, 0.02581787109375, 0.06060791015625, -0.0011262893676757812, -0.0183868408203125, -0.00572967529296875, 0.005035400390625, 0.03387451171875, 0.0150146484375, 0.01151275634765625, 0.037445068359375, 0.04144287109375, -0.004459381103515625, 0.00890350341796875, -0.0038928985595703125, -0.002887725830078125, 0.0298919677734375, 0.0261383056640625, 0.0022907257080078125, -0.056060791015625, -0.031585693359375, -0.02825927734375, -0.0012073516845703125, 0.061614990234375, -0.0254364013671875, -0.004688262939453125, -0.01277923583984375, 0.01198577880859375, -0.05242919921875, 0.01296234130859375, 0.02203369140625, 0.0086822509765625, -0.04461669921875, 0.011810302734375, -0.038970947265625, -0.0091094970703125, -0.03070068359375, -0.0270233154296875, -0.039215087890625, -0.01134490966796875, 0.02032470703125, 0.04913330078125, -0.035736083984375, -0.050872802734375, 0.01244354248046875, -0.00931549072265625, 0.0007348060607910156, 0.06329345703125, 0.00943756103515625, 0.036224365234375, -0.01032257080078125, 0.048187255859375, 0.01207733154296875, 0.005702972412109375, -0.023773193359375, -0.0377197265625, 0.01898193359375, -0.038970947265625, -0.0238037109375, -0.0186767578125, -0.01438140869140625, -0.0011911392211914062, 0.03558349609375, -0.0002841949462890625, 0.0186614990234375, 0.0029659271240234375, 0.00440216064453125, -0.0010538101196289062, -0.0013666152954101562, 0.023651123046875, -0.03546142578125, 0.109130859375, -0.00841522216796875, -0.01702880859375, -0.004833221435546875, 0.007343292236328125, -0.020050048828125, 0.00981903076171875, -0.0130767822265625, -0.0230712890625, -0.0195770263671875, 0.0361328125, 0.041961669921875, 0.0205535888671875, 0.0229644775390625, -0.0007848739624023438, 0.00693511962890625, -0.037109375, 0.01511383056640625, -0.0267333984375, -0.0190582275390625, 0.053070068359375, 0.0050048828125, -0.0293731689453125, 0.021209716796875, -0.03472900390625, -0.00991058349609375, 0.011016845703125, -0.004390716552734375, -0.0321044921875, 0.01552581787109375, -0.028533935546875, -0.0186614990234375, 0.0005993843078613281, 0.0024700164794921875, -0.0083770751953125, -0.032073974609375, 0.060821533203125, 0.00023484230041503906, 0.0068817138671875, 0.04266357421875, 0.0014286041259765625, -0.03509521484375, -0.05035400390625, -0.0197906494140625, 0.024261474609375, -0.0306854248046875, 0.0712890625, 0.009765625, 0.0287017822265625, -0.00521087646484375, -0.0192413330078125, 0.0033245086669921875, -0.0347900390625, -0.05023193359375, -0.006927490234375, -0.0220947265625, 0.00041294097900390625, -0.00638580322265625, -0.0298309326171875, 0.00998687744140625, 0.01409149169921875, -0.02764892578125, 0.00811004638671875, -0.0033817291259765625, -0.01387786865234375, 0.00009322166442871094, 0.0183563232421875, 0.01103973388671875, -0.053863525390625, -0.0193023681640625, -0.016571044921875, -0.08624267578125, 0.004852294921875, -0.01122283935546875, -0.030609130859375, 0.053802490234375, -0.0007886886596679688, -0.0256805419921875, 0.024871826171875, -0.0045318603515625, -0.021820068359375, 0.00001811981201171875, 0.06011962890625, -0.030914306640625, 0.00045752525329589844, 0.01904296875, -0.00783538818359375, -0.03558349609375, -0.006687164306640625, -0.06488037109375, 0.089111328125, 0.051177978515625, 0.00586700439453125, -0.02349853515625, 0.035614013671875, -0.044189453125, -0.0028781890869140625, -0.0435791015625, 0.06488037109375, -0.04736328125, 0.0416259765625, -0.04644775390625, 0.0139007568359375, -0.0010547637939453125, -0.0047454833984375, 0.02203369140625, 0.00579071044921875, -0.0128631591796875, -0.01047515869140625, 0.01142120361328125, 0.013092041015625, -0.01488494873046875, 0.032928466796875, -0.01424407958984375, -0.0347900390625, -0.00884246826171875, 0.009490966796875, 0.036285400390625, -0.0263519287109375, -0.039886474609375, -0.01389312744140625, -0.0046844482421875, -0.002338409423828125, -0.01116943359375, -0.0008544921875, -0.0018815994262695312, 0.0006837844848632812, -0.024139404296875, -0.0110626220703125, -0.01543426513671875, 0.07415771484375, 0.0239715576171875, -0.01100921630859375, -0.038421630859375, -0.03546142578125, 0.03485107421875, -0.022613525390625, 0.042724609375, 0.037933349609375, 0.021209716796875, 0.0284881591796875, 0.02093505859375, 0.03277587890625, 0.01256561279296875, -0.0211639404296875, 0.01849365234375, 0.0022792816162109375, 0.01038360595703125, -0.0465087890625, -0.01470184326171875, 0.0085296630859375, 0.0212860107421875, -0.023895263671875, 0.05413818359375, 0.016571044921875, 0.031158447265625, -0.0248870849609375, -0.049957275390625, 0.0199127197265625, 0.028564453125, 0.01271820068359375, -0.00556182861328125, -0.01396942138671875, 8.940696716308594e-7, 0.05029296875, 0.00897216796875, -0.005218505859375, -0.038909912109375, -0.021697998046875, -0.0025959014892578125, 0.0003230571746826172, 0.006992340087890625, 0.005855560302734375, -0.0102691650390625, 0.00017058849334716797, 0.016510009765625, 0.0244903564453125, -0.022491455078125, -0.008026123046875, 0.0017480850219726562, 0.030029296875, -0.0149383544921875, 0.042266845703125, -0.0204620361328125, 0.0272216796875, 0.0305633544921875, 0.028350830078125, 0.006572723388671875, -0.0251617431640625, 0.021484375, 0.0255584716796875, 0.0281829833984375, -0.02276611328125, 0.027740478515625, 0.002826690673828125, 0.033905029296875, 0.03515625, -0.00708770751953125, -0.0276031494140625, 0.034393310546875, 0.05419921875, -0.0229949951171875, 0.006946563720703125, 0.00919342041015625, -0.027740478515625, 0.031524658203125, 0.0287017822265625, 0.032073974609375, 0.0175018310546875, 0.023834228515625, 0.04095458984375, -0.06597900390625, -0.08001708984375, 0.0228271484375, 0.0494384765625, 0.0229949951171875, -0.030181884765625, 0.025909423828125, 0.01256561279296875, 0.0075836181640625, -0.032958984375, 0.0178375244140625, 0.0289154052734375, 0.0299072265625, 0.037017822265625, -0.08404541015625, -0.048614501953125, -0.04559326171875, 0.055328369140625, 0.006649017333984375, 0.041900634765625, -0.007526397705078125, 0.040679931640625, -0.03515625, -0.0265045166015625, -0.01513671875, -0.014068603515625, -0.0304107666015625, 0.005924224853515625, -0.0007319450378417969, 0.007061004638671875, -0.06109619140625, 0.017730712890625, 0.00646209716796875, -0.01172637939453125, 0.0540771484375, -0.05157470703125, 0.012420654296875, -0.00551605224609375, 0.0025806427001953125, -0.034942626953125, -0.059051513671875, -0.0285797119140625, 0.033294677734375, -0.02496337890625, -0.00991058349609375, -0.041107177734375, -0.01137542724609375, -0.00965118408203125, -0.05120849609375, -0.018218994140625, -0.01280975341796875, -0.031646728515625, 0.031463623046875, 0.034637451171875, -0.016693115234375, 0.038848876953125, -0.01349639892578125, 0.03521728515625, -0.0015420913696289062, 0.0672607421875, 0.0196380615234375, -0.0284423828125, 0.0276947021484375, 0.08203125, 0.062469482421875, -0.009735107421875, 0.01538848876953125, 0.053680419921875, -0.04931640625, 0.01702880859375, 0.0086517333984375, -0.004161834716796875, 0.01995849609375, -0.02520751953125, 0.01352691650390625, 0.0179443359375, -0.01076507568359375, -0.0171051025390625, 0.02252197265625, 0.01505279541015625, -0.02203369140625, -0.041473388671875, 0.015350341796875, -0.02618408203125, 0.05938720703125, -0.0112762451171875, 0.0372314453125, -0.019195556640625, -0.017486572265625, -0.04803466796875, -0.048553466796875, -0.0299835205078125, 0.07440185546875, -0.030242919921875, 0.018524169921875, 0.052459716796875, -0.023101806640625, -0.004802703857421875, 0.01546478271484375, 0.03192138671875, 0.07611083984375, 0.0007348060607910156, -0.004421234130859375, 0.04449462890625, -0.002315521240234375, -0.00733184814453125, 0.01494598388671875, -0.0008649826049804688, 0.032623291015625, -0.0195159912109375, 0.0266876220703125, -0.0259552001953125, -0.000598907470703125, -0.039825439453125, -0.08648681640625, 0.045318603515625, -0.0032787322998046875, -0.03826904296875, -0.038299560546875, -0.0014743804931640625, -0.00873565673828125, -0.002918243408203125, -0.034698486328125, 0.0128936767578125, -0.01468658447265625, 0.02880859375, -0.0029582977294921875, 0.01007080078125, 0.03704833984375, -0.02593994140625, -0.02239990234375, -0.017059326171875, -0.015838623046875, -0.0050811767578125, -0.0021152496337890625, -0.016448974609375, 0.05474853515625, 0.04205322265625, -0.008392333984375, 0.06695556640625, 0.0266265869140625, -0.041046142578125, 0.00043773651123046875, -0.030426025390625, 0.00689697265625, 0.00927734375, 0.05560302734375, -0.0140380859375, 0.0093994140625, -0.0246124267578125, -0.007411956787109375, 0.033538818359375, -0.040863037109375, 0.01141357421875, 0.0396728515625, -0.0528564453125, -0.0021800994873046875, -0.024078369140625, -0.02008056640625, -0.00016582012176513672, -0.004337310791015625, -0.032623291015625, -0.00438690185546875, -0.0121307373046875, -0.0024318695068359375, -0.0312042236328125, -0.01326751708984375, 0.11865234375, -0.04327392578125, 0.047515869140625, 0.0201263427734375, 0.01174163818359375, 0.09295654296875, 0.036773681640625, 0.019378662109375, 0.035247802734375, -0.04083251953125, 0.0120697021484375, 0.00777435302734375, 0.035400390625, -0.0250244140625, -0.0224151611328125, -0.03692626953125, 0.036834716796875, 0.036590576171875, 0.00974273681640625, -0.0665283203125, 0.02203369140625, 0.024261474609375, 0.0770263671875, -0.04791259765625, 0.027496337890625, -0.027099609375, 0.019561767578125, -0.020355224609375, 0.0302276611328125, 0.0290679931640625, 0.0086669921875, -0.003997802734375, 0.00875091552734375, 0.0032176971435546875, -0.037445068359375, 0.01056671142578125, -0.0421142578125, 0.01141357421875, 0.02264404296875 ]
ab1460b29166bacea60bc7d777077bdf75d3ae20
Wordpress Stackexchange Q: Hook that fires when admin setting is saved Is there any specific hook that fires when admin setting is saved. I have cached some data from admin back-end setting menu. Now i want to the delete the caching when setting saved in admin menu. Thanks in advance for help. A: There is the filter 'pre_update_option_' . $option. You have to know the option name. Options can be updated from front-end too, so WordPress doesn’t make a difference here. Then there is an action: 'update_option', you get the arguments $option, $oldvalue and $_newvalue. Finally, if the update went successful, you get two further actions: do_action( "update_option_{$option}", $oldvalue, $_newvalue ); do_action( 'updated_option', $option, $oldvalue, $_newvalue ); See the source code of update_option() for details.
Q: Hook that fires when admin setting is saved Is there any specific hook that fires when admin setting is saved. I have cached some data from admin back-end setting menu. Now i want to the delete the caching when setting saved in admin menu. Thanks in advance for help. A: There is the filter 'pre_update_option_' . $option. You have to know the option name. Options can be updated from front-end too, so WordPress doesn’t make a difference here. Then there is an action: 'update_option', you get the arguments $option, $oldvalue and $_newvalue. Finally, if the update went successful, you get two further actions: do_action( "update_option_{$option}", $oldvalue, $_newvalue ); do_action( 'updated_option', $option, $oldvalue, $_newvalue ); See the source code of update_option() for details.
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:422118", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59335" }
[ 0.016143798828125, 0.02752685546875, -0.00962066650390625, -0.01033782958984375, 0.0242919921875, -0.0286865234375, 0.0267791748046875, -0.030426025390625, -0.003414154052734375, 0.0134429931640625, -0.0160369873046875, -0.018524169921875, 0.003932952880859375, -0.0267791748046875, 0.01483154296875, -0.032562255859375, 0.040863037109375, -0.0005784034729003906, 0.035919189453125, -0.009765625, -0.0200347900390625, 0.03070068359375, 0.0103607177734375, 0.08306884765625, 0.03448486328125, -0.052398681640625, -0.00799560546875, -0.0052490234375, 0.0109100341796875, -0.0026645660400390625, 0.007110595703125, 0.002208709716796875, 0.038543701171875, 0.0226287841796875, -0.044708251953125, 0.021026611328125, 0.0035190582275390625, 0.02142333984375, -0.00733184814453125, 0.0160369873046875, 0.0230560302734375, -0.00860595703125, -0.021392822265625, 0.02301025390625, -0.023773193359375, -0.04583740234375, 0.037384033203125, -0.00760650634765625, 0.0143280029296875, -0.01352691650390625, 0.0146636962890625, -0.005401611328125, 0.035614013671875, 0.034332275390625, -0.016754150390625, 0.00732421875, -0.029876708984375, 0.01983642578125, 0.0257720947265625, 0.02569580078125, -0.020111083984375, -0.0173492431640625, -0.0015125274658203125, -0.0477294921875, 0.0126953125, -0.0211334228515625, 0.0196380615234375, 0.01983642578125, -0.057098388671875, 0.01216888427734375, 0.048187255859375, -0.02557373046875, -0.0248870849609375, 0.0124053955078125, 0.0135650634765625, -0.02728271484375, 0.032684326171875, 0.01654052734375, -0.01473236083984375, 0.051727294921875, 0.048187255859375, 0.01654052734375, 0.0174560546875, -0.00443267822265625, 0.022430419921875, 0.0309600830078125, -0.0104827880859375, -0.03521728515625, -0.030364990234375, -0.04852294921875, -0.0226287841796875, -0.05670166015625, -0.016937255859375, -0.0221099853515625, -0.0257110595703125, -0.0419921875, -0.0008525848388671875, 0.03607177734375, -0.014923095703125, -0.0229644775390625, -0.0275726318359375, 0.00804901123046875, -0.055694580078125, -0.0132598876953125, 0.0120697021484375, 0.0277557373046875, 0.025604248046875, -0.0295257568359375, 0.0013446807861328125, 0.0036563873291015625, -0.0257720947265625, -0.0019054412841796875, -0.0260162353515625, -0.00690460205078125, 0.0003604888916015625, -0.0164337158203125, -0.06488037109375, 0.03717041015625, -0.02032470703125, 0.00968170166015625, 0.01297760009765625, 0.035186767578125, -0.009552001953125, -0.038330078125, 0.012359619140625, -0.0038299560546875, -0.0258941650390625, -0.0236663818359375, -0.020416259765625, 0.0205535888671875, -0.01751708984375, -0.00444793701171875, 0.07135009765625, 0.037994384765625, 0.017303466796875, -0.0222015380859375, 0.0166473388671875, -0.01812744140625, -0.017578125, 0.00977325439453125, 0.0238494873046875, -0.042083740234375, -0.048919677734375, -0.00119781494140625, 0.046112060546875, -0.002376556396484375, 0.00037550926208496094, 0.0179290771484375, 0.052764892578125, -0.00045990943908691406, 0.01012420654296875, -0.0121307373046875, 0.058563232421875, 0.00567626953125, -0.0333251953125, 0.0123748779296875, 0.044189453125, -0.0178985595703125, -0.0816650390625, -0.04364013671875, -0.0236053466796875, -0.0418701171875, -0.00411224365234375, -0.0246429443359375, -0.044708251953125, 0.055145263671875, -0.01155853271484375, -0.00409698486328125, 0.0288238525390625, -0.00879669189453125, 0.07220458984375, -0.0217437744140625, 0.00804901123046875, -0.006252288818359375, -0.004241943359375, 0.00009310245513916016, 0.0009150505065917969, 0.006717681884765625, 0.035888671875, -0.0233917236328125, -0.041046142578125, -0.03656005859375, 0.0282135009765625, -0.025360107421875, -0.054656982421875, 0.030242919921875, 0.0204620361328125, 0.0777587890625, 0.0021419525146484375, 0.01763916015625, 0.01509857177734375, 0.0169677734375, 0.015594482421875, 0.0169219970703125, -0.0015392303466796875, 0.0054168701171875, -0.01554107666015625, 0.034149169921875, -0.018585205078125, -0.0460205078125, 0.01326751708984375, 0.0124969482421875, -0.0131072998046875, -0.0255126953125, -0.14404296875, 0.026885986328125, -0.061248779296875, 0.06671142578125, -0.00801849365234375, 0.023681640625, -0.00527191162109375, 0.00934600830078125, -0.01453399658203125, -0.045257568359375, -0.007049560546875, 0.021087646484375, -0.0239105224609375, 0.06549072265625, 0.00875091552734375, 0.07098388671875, 0.025787353515625, -0.051971435546875, 0.024627685546875, -0.0452880859375, 0.04107666015625, -0.025146484375, -0.0012693405151367188, -0.024658203125, 0.03875732421875, -0.02545166015625, 0.041229248046875, 0.047454833984375, 0.049652099609375, 0.03582763671875, -0.01343536376953125, -0.0010709762573242188, -0.0164642333984375, -0.12481689453125, -0.01201629638671875, 0.067138671875, 0.01479339599609375, 0.0160369873046875, -0.0224151611328125, 0.0012731552124023438, 0.01132965087890625, -0.0008082389831542969, 0.03204345703125, -0.01137542724609375, -0.011993408203125, 0.0147705078125, -0.0009927749633789062, -0.0231475830078125, 0.0047149658203125, -0.04718017578125, -0.005115509033203125, 0.0170745849609375, -0.0026950836181640625, -0.003841400146484375, 0.025146484375, -0.0188140869140625, 0.008270263671875, -0.04608154296875, -0.02825927734375, -0.01251220703125, 0.0214996337890625, -0.03155517578125, -0.00356292724609375, -0.0172271728515625, -0.011962890625, -0.0233154296875, 0.03448486328125, -0.023406982421875, 0.002155303955078125, -0.009613037109375, 0.052886962890625, -0.0245208740234375, -0.039703369140625, -0.0023822784423828125, 0.037689208984375, -0.013580322265625, -0.03253173828125, 0.00963592529296875, -0.0258941650390625, -0.0142059326171875, -0.015625, -0.02862548828125, 0.01204681396484375, -0.031463623046875, 0.021209716796875, 0.01568603515625, 0.03436279296875, 0.00928497314453125, -0.032989501953125, 0.05267333984375, -0.032379150390625, -0.03265380859375, -0.006927490234375, 0.0050201416015625, -0.011199951171875, 0.02032470703125, 0.0687255859375, 0.08221435546875, 0.032440185546875, -0.0104217529296875, 0.0004649162292480469, 0.0208892822265625, 0.02288818359375, -0.0020885467529296875, 0.01053619384765625, -0.0211334228515625, -0.00974273681640625, 0.01953125, 0.0289459228515625, 0.040679931640625, 0.006103515625, -0.031280517578125, -0.01482391357421875, 0.0287933349609375, -0.0458984375, -0.04742431640625, -0.0202484130859375, -0.019805908203125, 0.027313232421875, -0.00025463104248046875, -0.004276275634765625, -0.01044464111328125, 0.0230560302734375, 0.018798828125, -0.0025272369384765625, 0.002407073974609375, 0.007595062255859375, 0.01447296142578125, -0.0187225341796875, -0.00911712646484375, 0.005313873291015625, 0.0036334991455078125, 0.007221221923828125, 0.07000732421875, -0.00818634033203125, -0.0968017578125, 0.0038623809814453125, -0.0736083984375, -0.0276031494140625, 0.056732177734375, -0.0009298324584960938, -0.0297393798828125, 0.027130126953125, -0.00789642333984375, 0.0299835205078125, 0.0167083740234375, -0.0062408447265625, -0.022125244140625, -0.012237548828125, -0.0455322265625, 0.01271820068359375, 0.008270263671875, 0.002231597900390625, -0.0121002197265625, 0.037261962890625, -0.04229736328125, -0.0202178955078125, 0.0026454925537109375, -0.0232391357421875, 0.0198516845703125, 0.01392364501953125, -0.024139404296875, 0.006378173828125, 0.0194854736328125, -0.0123138427734375, -0.005832672119140625, 0.0196075439453125, -0.0188751220703125, -0.01541900634765625, -0.015625, -0.019317626953125, 0.01506805419921875, 0.04437255859375, -0.003726959228515625, 0.021942138671875, 0.01739501953125, 0.0258636474609375, 0.00299835205078125, 0.00717926025390625, -0.0259857177734375, -0.0389404296875, 0.0357666015625, -0.03216552734375, 0.030029296875, -0.046234130859375, -0.01172637939453125, -0.02276611328125, 0.0775146484375, -0.0064544677734375, -0.01110076904296875, -0.005336761474609375, 0.01287078857421875, -0.026092529296875, -0.0278778076171875, -0.01229095458984375, 0.003383636474609375, -0.1337890625, 0.0382080078125, 0.0178985595703125, -0.04833984375, -0.0364990234375, 0.038421630859375, -0.0889892578125, -0.036590576171875, 0.05352783203125, -0.08642578125, 0.0244903564453125, 0.005985260009765625, 0.01093292236328125, -0.0401611328125, -0.03472900390625, -0.037933349609375, -0.07318115234375, -0.010162353515625, -0.0244903564453125, 0.048583984375, 0.0506591796875, -0.062042236328125, 0.00201416015625, 0.029815673828125, 0.025970458984375, -0.0154876708984375, 0.0230255126953125, 0.0021381378173828125, -0.030181884765625, -0.051513671875, -0.0019397735595703125, -0.059722900390625, -0.00839996337890625, 0.02459716796875, -0.02545166015625, 0.035675048828125, -0.01194000244140625, -0.01198577880859375, 0.0386962890625, -0.04034423828125, -0.0833740234375, -0.0224151611328125, -0.0443115234375, -0.059112548828125, -0.00907135009765625, -0.02337646484375, 0.02044677734375, -0.0679931640625, 0.04754638671875, -0.04461669921875, 0.00861358642578125, -0.00550079345703125, 0.09649658203125, 0.016571044921875, -0.0003066062927246094, 0.0164794921875, -0.03143310546875, 0.0173492431640625, -0.0095672607421875, 0.032318115234375, 0.006893157958984375, -0.01378631591796875, 0.0206298828125, 0.002407073974609375, 0.0030536651611328125, -0.07598876953125, 0.107666015625, 0.0041046142578125, 0.031890869140625, -0.0130615234375, -0.0134735107421875, 0.03814697265625, 0.03179931640625, -0.0005311965942382812, -0.0024814605712890625, -0.01580810546875, 0.017303466796875, -0.0211639404296875, 0.00505828857421875, -0.03179931640625, -0.007709503173828125, -0.00934600830078125, -0.00452423095703125, 0.06890869140625, 0.050994873046875, -0.0007696151733398438, 0.041595458984375, 0.054534912109375, -0.0151214599609375, -0.015411376953125, 0.0015668869018554688, -0.0012493133544921875, 0.016571044921875, -0.0208587646484375, -0.016845703125, -0.0229949951171875, -0.00620269775390625, -0.01097869873046875, -0.0122833251953125, -0.060272216796875, -0.020538330078125, 0.0243682861328125, 0.0239715576171875, 0.027099609375, -0.0184326171875, 0.0180816650390625, 0.04815673828125, 0.004444122314453125, -0.0190277099609375, -0.007415771484375, 0.01525115966796875, -0.040496826171875, 0.033935546875, 0.0208740234375, -0.0004341602325439453, 0.05487060546875, 0.0057830810546875, 0.04180908203125, 0.0009517669677734375, -0.034332275390625, 0.047149658203125, 0.0277099609375, 0.00566864013671875, 0.00922393798828125, 0.02789306640625, 0.01226806640625, -0.034637451171875, -0.010467529296875, -0.02392578125, 0.018280029296875, 0.01108551025390625, -0.0030574798583984375, 0.0054168701171875, -0.0233001708984375, 0.031890869140625, 0.0017118453979492188, -0.026092529296875, 0.0711669921875, 0.0005397796630859375, -0.08056640625, -0.044708251953125, 0.0009365081787109375, 0.021881103515625, -0.0301361083984375, -0.00855255126953125, 0.00295257568359375, -0.01910400390625, -0.00846099853515625, -0.0187530517578125, -0.03271484375, -0.00980377197265625, -0.01284027099609375, -0.034027099609375, -0.0139312744140625, 0.00917816162109375, -0.046875, -0.0355224609375, 0.0033359527587890625, 0.0042877197265625, 0.0283660888671875, 0.003387451171875, 0.0159454345703125, -0.033355712890625, 0.002216339111328125, 0.021209716796875, -0.017059326171875, 0.07196044921875, 0.0159759521484375, -0.04638671875, 0.0021572113037109375, -0.0142059326171875, -0.006656646728515625, -0.01995849609375, -0.036712646484375, -0.015838623046875, -0.00917816162109375, 0.018798828125, 0.030548095703125, 0.0110015869140625, -0.02593994140625, -0.0223541259765625, 0.004486083984375, 0.038543701171875, 0.05389404296875, -0.00714111328125, 0.051025390625, -0.022369384765625, 0.0167999267578125, 0.001194000244140625, -0.0128173828125, -0.03912353515625, 0.0187225341796875, -0.002532958984375, 0.013641357421875, 0.01331329345703125, -0.00045490264892578125, 0.0157470703125, -0.0205230712890625, 0.03619384765625, -0.007442474365234375, 0.00434112548828125, 0.0212554931640625, 0.006534576416015625, -0.01885986328125, 0.0155487060546875, 0.03155517578125, -0.008453369140625, 0.017425537109375, -0.03466796875, 0.0192718505859375, 0.01029205322265625, -0.0129547119140625, 0.035919189453125, -0.0291900634765625, 0.023040771484375, 0.0234832763671875, -0.033538818359375, 0.0526123046875, 0.05401611328125, 0.0195465087890625, 0.054779052734375, 0.019622802734375, 0.0309906005859375, 0.007167816162109375, -0.0158538818359375, -0.0156097412109375, 0.017669677734375, 0.0249786376953125, -0.007228851318359375, 0.0125274658203125, 0.0276336669921875, -0.005077362060546875, 0.0157928466796875, 0.05816650390625, 0.06146240234375, -0.0755615234375, -0.003910064697265625, -0.0091400146484375, -0.01177978515625, 0.0484619140625, 0.02459716796875, -0.01393890380859375, -0.030853271484375, -0.0063018798828125, -0.0032405853271484375, -0.004825592041015625, 0.01221466064453125, 0.01476287841796875, -0.026031494140625, -0.01195526123046875, -0.00020444393157958984, 0.006649017333984375, -0.0025768280029296875, 0.0130615234375, 0.00360107421875, -0.01143646240234375, -0.01800537109375, 0.032501220703125, 0.0193939208984375, -0.032867431640625, -0.080078125, -0.031768798828125, 0.0155181884765625, -0.0577392578125, 0.01280975341796875, 0.032318115234375, 0.022003173828125, 0.034912109375, 0.0018014907836914062, -0.008331298828125, -0.004894256591796875, 0.0157012939453125, -0.07550048828125, -0.024871826171875, 0.0267486572265625, 0.0202789306640625, -0.0452880859375, 0.04248046875, -0.036651611328125, -0.032318115234375, -0.006320953369140625, 0.01258087158203125, 0.040008544921875, -0.0413818359375, 0.00021028518676757812, 0.03857421875, 0.025848388671875, -0.0130767822265625, -0.0186920166015625, 0.01861572265625, -0.0198211669921875, -0.0010480880737304688, -0.0116424560546875, -0.0364990234375, -0.0224456787109375, -0.046142578125, -0.041412353515625, 0.1015625, -0.010223388671875, 0.0039520263671875, 0.00798797607421875, 0.05218505859375, -0.0282135009765625, 0.023956298828125, -0.04608154296875, 0.0477294921875, 0.0226287841796875, 0.0231781005859375, -0.0682373046875, 0.002948760986328125, -0.015960693359375, 0.0094146728515625, 0.00786590576171875, 0.00820159912109375, 0.00015270709991455078, 0.00560760498046875, 0.040069580078125, -0.00989532470703125, -0.0186614990234375, 0.0362548828125, -0.00989532470703125, 0.0203857421875, 0.024871826171875, -0.0105133056640625, 0.03790283203125, -0.026641845703125, -0.043609619140625, 0.0184783935546875, 0.0010776519775390625, 0.0211944580078125, 0.020355224609375, 0.040924072265625, 0.0007042884826660156, -0.0029163360595703125, 0.02001953125, -0.07135009765625, 0.0069732666015625, -0.0110321044921875, -0.006771087646484375, -0.0093536376953125, 0.0114288330078125, -0.019012451171875, 0.0283966064453125, 0.00609588623046875, -0.039581298828125, -0.0111083984375, 0.0007262229919433594, -0.037750244140625, -0.0098876953125, -0.047088623046875, 0.043212890625, -0.0191802978515625, 0.016021728515625, 0.005313873291015625, 0.0305938720703125, -0.0059051513671875, 0.022186279296875, -0.0231170654296875, 0.01522064208984375, -0.0277252197265625, -0.06964111328125, 0.01092529296875, 0.0130157470703125, 0.0024127960205078125, 0.031890869140625, 0.0113372802734375, -0.0308380126953125, 0.04541015625, 0.0136260986328125, -0.020294189453125, 0.00040721893310546875, 0.031097412109375, 0.0204925537109375, 0.06341552734375, -0.04022216796875, -0.037750244140625, -0.0396728515625, -0.0038852691650390625, 0.011383056640625, 0.058013916015625, 0.0235443115234375, 0.03240966796875, -0.007965087890625, -0.029205322265625, -0.00966644287109375, 0.0182342529296875, -0.03131103515625, 0.0244293212890625, -0.04791259765625, -0.044097900390625, -0.00562286376953125, 0.040740966796875, 0.01739501953125, 0.05511474609375, 0.068115234375, 0.02850341796875, -0.0290985107421875, 0.008270263671875, 0.05548095703125, -0.0281524658203125, 0.0220794677734375, -0.0263519287109375, 0.0105133056640625, -0.002803802490234375, -0.014923095703125, -0.044189453125, 0.0012454986572265625, 0.041534423828125, -0.0235137939453125, -0.00392913818359375, -0.0035877227783203125, -0.035003662109375, 0.027191162109375, 0.003017425537109375, 0.02862548828125, 0.0062713623046875, 0.01058197021484375, 0.01444244384765625, -0.0140838623046875, -0.0487060546875, -0.00836181640625, 0.024658203125, -0.03668212890625, 0.05438232421875, -0.016143798828125, 0.0064544677734375, 0.02117919921875, -0.03082275390625, -0.0006098747253417969, -0.031219482421875, 0.00986480712890625, -0.026885986328125, 0.00272369384765625, -0.006320953369140625, 0.03118896484375, 0.0338134765625, -0.0226287841796875, 0.04547119140625, -0.019012451171875, -0.002410888671875, 0.04034423828125, -0.008514404296875, 0.004627227783203125, 0.038238525390625, -0.01202392578125, -0.040496826171875, -0.0259552001953125, -0.003955841064453125, -0.0579833984375, 0.044158935546875, 0.01824951171875, 0.010467529296875, 0.0258636474609375, 0.006015777587890625, 0.0160369873046875, 0.0127716064453125, -0.00917816162109375, -0.028045654296875, -0.0247650146484375, 0.0203399658203125, 0.0189208984375, -0.000858306884765625, 0.006893157958984375, 0.0150604248046875, 0.00951385498046875, -0.006153106689453125, -0.01922607421875, -0.0013380050659179688, -0.0031452178955078125, 0.0079345703125, 0.0300140380859375, -0.0321044921875, 0.03863525390625, -0.0182342529296875, -0.0301666259765625, 0.0302276611328125, 0.005741119384765625, -0.02105712890625, -0.00994110107421875, 0.0257110595703125, -0.00661468505859375, -0.02197265625, 0.021270751953125, -0.038482666015625, 0.01329803466796875, -0.0090179443359375, 0.032623291015625, 0.0208740234375, -0.0161895751953125, -0.0271148681640625, -0.040069580078125, -0.0210113525390625, 0.0186614990234375, -0.0411376953125, -0.0753173828125, -0.0875244140625, 0.0308837890625, 0.05133056640625, 0.0252532958984375, -0.07720947265625, 0.043731689453125, -0.038421630859375, 0.062744140625, 0.025482177734375, -0.0106658935546875, 0.01172637939453125, 0.03228759765625, -0.0037136077880859375, -0.0259857177734375, -0.017059326171875, 0.0283203125, -0.015228271484375, -0.01727294921875, 0.00835418701171875, 0.01023101806640625, -0.00601959228515625, -0.00960540771484375, -0.0218963623046875, 0.04290771484375, -0.033538818359375, -0.00510406494140625, 0.01141357421875, 0.041748046875, -0.03192138671875, -0.0643310546875, -0.00458526611328125, -0.00542449951171875, 0.0251922607421875, -0.0335693359375, 0.01715087890625, 0.0262298583984375, -0.03863525390625, -0.07623291015625, 0.044830322265625, -0.0152435302734375, -0.02716064453125, -0.01087188720703125, 0.004352569580078125, 0.00411224365234375, -0.002593994140625, -0.01486968994140625, 0.0023975372314453125, -0.023468017578125, 0.0020008087158203125, 0.0170440673828125, -0.003345489501953125, 0.038604736328125, -0.017120361328125, -0.0755615234375, -0.0196533203125, -0.045440673828125, 0.038787841796875, 0.019989013671875, -0.022186279296875, 0.0643310546875, 0.04913330078125, -0.0208892822265625, 0.0250701904296875, 0.018798828125, -0.027557373046875, -0.030426025390625, -0.015533447265625, -0.00518035888671875, 0.029876708984375, 0.0889892578125, 0.0899658203125, 0.0177001953125, -0.0635986328125, -0.005702972412109375, -0.02276611328125, -0.03936767578125, -0.032867431640625, 0.0257415771484375, -0.0675048828125, -0.0209808349609375, 0.0010328292846679688, -0.0015573501586914062, -0.032806396484375, 0.0104217529296875, -0.03289794921875, -0.0159912109375, 0.047210693359375, 0.016876220703125, -0.0307464599609375, -0.042022705078125, 0.041046142578125, -0.0219573974609375, -0.0199127197265625, 0.024200439453125, 0.01525115966796875, 0.0129852294921875, 0.06866455078125, 0.015380859375, 0.022308349609375, -0.046051025390625, 0.0233917236328125, 0.004253387451171875, 0.01715087890625, -0.047210693359375, -0.020172119140625, -0.00798797607421875, 0.0006175041198730469, -0.005279541015625, -0.024688720703125, -0.0012102127075195312, 0.0211639404296875, -0.0167083740234375, 0.06103515625, -0.01035308837890625, 0.039337158203125, -0.026824951171875, 0.04315185546875, 0.0128173828125, -0.01540374755859375, 0.0267791748046875, -0.00513458251953125, -0.00038814544677734375, -0.016693115234375, 0.03546142578125, -0.08087158203125, 0.051483154296875, -0.0113983154296875, 0.0256805419921875, 0.0494384765625 ]
f35a30dba4da95f3d288687bb336872a00c29798
Wordpress Stackexchange Q: Wordpress URL Rewrite not working I'm trying to create a custom url rewrite for my wordpress plugin. function insert_plugin_rewrite_rule($rules) { global $wp, $wp_rewrite; $wp->add_query_var('update_slug'); $ret = $wp_rewrite->add_rule('updates/plugins/([^/]+)/', 'index.php?update_slug=$matches[1]', 'top'); // Remove when debugging is done. $wp_rewrite->flush_rules(false); } add_filter('init', 'insert_plugin_rewrite_rule'); And to try and intercept it: function blah() { global $wp; echo "<pre>";print_r($GLOBALS['wp']->query_vars['update_slug']);echo "</pre>"; } add_filter('init', 'blah'); When I'm in the 'blah' function, it shows that my update_slug query var has been registered, and that my url has been registered too. But when I go to /updates/plugins/123/ it doesn't show any query_vars have been set. Am I doing this right, or is there some subtle thing I'm missing? A: first, you should use the proper filter and method to add query vars and rewrite rules and not manipulate the globals directly. the other issue I believe is your regex pattern, this is working for me: add_filter( 'query_vars', 'wpa59404_query_vars' ); function wpa59404_query_vars($query_vars){ $query_vars[] = 'update_slug'; return $query_vars; } add_action( 'init', 'wpa59404_rewrites' ); function wpa59404_rewrites(){ add_rewrite_rule( 'updates/plugins/([^/]+)/?$', 'index.php?update_slug=$matches[1]', 'top' ); }
Q: Wordpress URL Rewrite not working I'm trying to create a custom url rewrite for my wordpress plugin. function insert_plugin_rewrite_rule($rules) { global $wp, $wp_rewrite; $wp->add_query_var('update_slug'); $ret = $wp_rewrite->add_rule('updates/plugins/([^/]+)/', 'index.php?update_slug=$matches[1]', 'top'); // Remove when debugging is done. $wp_rewrite->flush_rules(false); } add_filter('init', 'insert_plugin_rewrite_rule'); And to try and intercept it: function blah() { global $wp; echo "<pre>";print_r($GLOBALS['wp']->query_vars['update_slug']);echo "</pre>"; } add_filter('init', 'blah'); When I'm in the 'blah' function, it shows that my update_slug query var has been registered, and that my url has been registered too. But when I go to /updates/plugins/123/ it doesn't show any query_vars have been set. Am I doing this right, or is there some subtle thing I'm missing? A: first, you should use the proper filter and method to add query vars and rewrite rules and not manipulate the globals directly. the other issue I believe is your regex pattern, this is working for me: add_filter( 'query_vars', 'wpa59404_query_vars' ); function wpa59404_query_vars($query_vars){ $query_vars[] = 'update_slug'; return $query_vars; } add_action( 'init', 'wpa59404_rewrites' ); function wpa59404_rewrites(){ add_rewrite_rule( 'updates/plugins/([^/]+)/?$', 'index.php?update_slug=$matches[1]', 'top' ); }
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:422140", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59404" }
[ 0.04974365234375, -0.018096923828125, -0.0148468017578125, -0.048370361328125, 0.00336456298828125, -0.0156402587890625, 0.0181427001953125, 0.01390838623046875, -0.03216552734375, 0.0152740478515625, -0.0208587646484375, 0.01032257080078125, -0.002109527587890625, -0.026763916015625, 0.0261688232421875, -0.0139923095703125, 0.03497314453125, -0.05120849609375, -0.038360595703125, -0.0253448486328125, 0.01047515869140625, -0.008453369140625, -0.0025424957275390625, 0.0875244140625, 0.026214599609375, -0.0298614501953125, 0.068359375, -0.0014867782592773438, -0.0014057159423828125, -0.03302001953125, 0.01369476318359375, 0.001346588134765625, 0.05059814453125, 0.00110626220703125, -0.027618408203125, -0.00868988037109375, 0.01776123046875, -0.0137481689453125, -0.020050048828125, 0.027099609375, 0.039306640625, -0.02911376953125, 0.030487060546875, 0.008941650390625, 0.0274505615234375, -0.057159423828125, 0.053558349609375, -0.053497314453125, 0.005527496337890625, 0.00621795654296875, -0.0233154296875, 0.02032470703125, -0.0174713134765625, 0.00811004638671875, 0.0225677490234375, 0.0240631103515625, 0.0028553009033203125, 0.00882720947265625, 0.0119476318359375, 0.01062774658203125, -0.014984130859375, 0.004772186279296875, 0.00849151611328125, -0.004642486572265625, 0.01221466064453125, -0.0118255615234375, 0.016632080078125, 0.0218963623046875, -0.052642822265625, -0.0027446746826171875, 0.0416259765625, -0.02630615234375, -0.0196075439453125, 0.0089111328125, -0.0178680419921875, -0.0274505615234375, 0.044921875, -0.0037078857421875, -0.013671875, 0.03485107421875, 0.04119873046875, -0.03045654296875, -0.0013828277587890625, 0.0213775634765625, 0.0257568359375, 0.044891357421875, 0.00891876220703125, -0.03594970703125, -0.04949951171875, -0.0262603759765625, -0.031402587890625, -0.0171051025390625, -0.083740234375, -0.014251708984375, 0.0240936279296875, -0.0268402099609375, 0.025909423828125, 0.03863525390625, 0.01160430908203125, 0.00405120849609375, 0.016510009765625, -0.03851318359375, 0.0272979736328125, -0.0321044921875, 0.00785064697265625, 0.041717529296875, 0.0347900390625, 0.0701904296875, 0.043731689453125, -0.008148193359375, 0.00408935546875, 0.051116943359375, -0.0026798248291015625, 0.037811279296875, -0.061004638671875, -0.036468505859375, -0.047119140625, -0.0499267578125, -0.0279388427734375, -0.0254364013671875, 0.003147125244140625, 0.0193023681640625, -0.0273284912109375, 0.0147247314453125, -0.0200653076171875, -0.027557373046875, 0.0128936767578125, -0.012481689453125, -0.0245819091796875, 0.037322998046875, -0.01096343994140625, 0.0148773193359375, 0.00555419921875, -0.00032639503479003906, -0.02947998046875, -0.0187530517578125, 0.052154541015625, 0.01287841796875, -0.0290374755859375, 0.03594970703125, -0.0233154296875, -0.00274658203125, 0.0167999267578125, -0.03619384765625, 0.0196075439453125, 0.02923583984375, 0.01097869873046875, 0.00791168212890625, 0.00047588348388671875, -0.037139892578125, 0.0201568603515625, -0.053253173828125, 0.05731201171875, -0.0097808837890625, -0.0276031494140625, -0.0032863616943359375, 0.032257080078125, -0.0255279541015625, -0.07080078125, -0.031768798828125, -0.0298919677734375, -0.0087127685546875, 0.028045654296875, -0.029693603515625, -0.027801513671875, -0.01131439208984375, -0.0416259765625, -0.000007212162017822266, 0.007904052734375, 0.0232696533203125, 0.047210693359375, 0.01119232177734375, -0.00036025047302246094, 0.034759521484375, 0.0168609619140625, -0.01203155517578125, -0.00566864013671875, -0.0087127685546875, 0.01812744140625, 0.036468505859375, 0.012603759765625, -0.020904541015625, 0.03668212890625, -0.0118865966796875, -0.06195068359375, 0.05133056640625, -0.016021728515625, 0.050537109375, 0.022369384765625, -0.0278472900390625, 0.036956787109375, 0.01029205322265625, 0.004547119140625, 0.0256805419921875, 0.00818634033203125, -0.00865936279296875, 0.020721435546875, 0.028350830078125, -0.00939178466796875, -0.047149658203125, -0.0361328125, -0.00243377685546875, 0.003574371337890625, 0.0252685546875, -0.042999267578125, 0.0259857177734375, -0.034454345703125, 0.02783203125, 0.00473785400390625, 0.021026611328125, 0.0231170654296875, 0.0110015869140625, -0.044708251953125, -0.002613067626953125, -0.0231475830078125, 0.040191650390625, 0.0196533203125, 0.054962158203125, 0.0015382766723632812, 0.038482666015625, 0.02618408203125, -0.012481689453125, 0.0206298828125, 0.018157958984375, -0.00046181678771972656, -0.008453369140625, -0.0189361572265625, -0.0163116455078125, -0.030029296875, -0.004329681396484375, -0.034149169921875, 0.0487060546875, 0.0067596435546875, 0.031768798828125, -0.01342010498046875, -0.00525665283203125, -0.024261474609375, -0.04913330078125, 0.00919342041015625, 0.03729248046875, 0.0394287109375, 0.001796722412109375, -0.023040771484375, -0.0528564453125, 0.0055999755859375, -0.087890625, -0.016815185546875, -0.0164642333984375, 0.011871337890625, 0.040374755859375, 0.005214691162109375, -0.00945281982421875, -0.001529693603515625, -0.03173828125, 0.01145172119140625, 0.01284027099609375, -0.031402587890625, -0.001983642578125, -0.0224609375, 0.0194091796875, -0.0238189697265625, -0.033782958984375, 0.019317626953125, -0.03460693359375, 0.006137847900390625, -0.0066986083984375, 0.01385498046875, 0.01291656494140625, 0.0094757080078125, -0.006412506103515625, -0.00878143310546875, -0.0174102783203125, -0.0156707763671875, 0.0034637451171875, 0.04541015625, -0.04925537109375, -0.0254974365234375, 0.0247802734375, 0.0187225341796875, -0.00502777099609375, -0.0111846923828125, 0.0174102783203125, -0.006381988525390625, -0.0124359130859375, -0.027069091796875, -0.037811279296875, 0.018707275390625, -0.0110626220703125, 0.059783935546875, 0.015960693359375, 0.04461669921875, 0.0158233642578125, -0.0215911865234375, 0.0570068359375, -0.002048492431640625, -0.031158447265625, 0.0150909423828125, -0.040771484375, 0.03692626953125, -0.03045654296875, 0.044281005859375, 0.0716552734375, 0.00038552284240722656, -0.0043792724609375, 0.024444580078125, -0.0227813720703125, -0.003070831298828125, 0.0232391357421875, 0.0177764892578125, 0.0218963623046875, -0.06402587890625, 0.0121307373046875, 0.0218658447265625, 0.006587982177734375, 0.01507568359375, -0.0307769775390625, -0.003658294677734375, 0.020263671875, -0.054656982421875, -0.0328369140625, -0.02301025390625, -0.05072021484375, -0.01056671142578125, 0.0131988525390625, -0.0229949951171875, 0.0157928466796875, 0.02520751953125, 0.0086517333984375, -0.031219482421875, -0.04058837890625, -0.0860595703125, -0.0928955078125, -0.10211181640625, 0.00647735595703125, 0.0118560791015625, 0.0419921875, -0.00725555419921875, 0.06488037109375, 0.0225067138671875, -0.03826904296875, 0.04034423828125, 0.005268096923828125, -0.0084228515625, 0.0311126708984375, -0.01036834716796875, -0.01971435546875, 0.034149169921875, -0.021697998046875, 0.0872802734375, 0.06744384765625, -0.052276611328125, 0.0384521484375, 0.03289794921875, 0.0011224746704101562, 0.00934600830078125, 0.013427734375, -0.005390167236328125, -0.015960693359375, 0.00876617431640625, -0.047515869140625, -0.0233001708984375, 0.0007266998291015625, -0.0249786376953125, 0.0306549072265625, 0.001953125, 0.0025997161865234375, -0.0220794677734375, 0.040435791015625, -0.0016841888427734375, -0.01678466796875, 0.044403076171875, -0.041351318359375, 0.0223541259765625, -0.0152435302734375, 0.00537872314453125, -0.029510498046875, 0.03277587890625, -0.0074462890625, -0.0081787109375, 0.0022335052490234375, -0.0175323486328125, -0.035125732421875, 0.013031005859375, -0.047393798828125, -0.00022518634796142578, 0.01387786865234375, -0.049163818359375, 0.0190277099609375, -0.03668212890625, -0.00124359130859375, -0.041259765625, 0.027069091796875, -0.0265655517578125, -0.0290985107421875, 0.01409149169921875, 0.036163330078125, -0.03228759765625, -0.0784912109375, 0.0204315185546875, -0.020233154296875, -0.0919189453125, 0.0187530517578125, -0.002704620361328125, -0.033935546875, 0.010955810546875, -0.031890869140625, -0.031646728515625, -0.058685302734375, 0.047637939453125, -0.01480865478515625, 0.01506805419921875, 0.01148223876953125, -0.01186370849609375, -0.01202392578125, -0.05145263671875, 0.0123138427734375, -0.1014404296875, -0.033905029296875, 0.04779052734375, 0.051025390625, -0.01027679443359375, -0.058502197265625, -0.03375244140625, 0.05908203125, -0.008880615234375, -0.002384185791015625, 0.0011653900146484375, 0.0016813278198242188, -0.011505126953125, 0.0220794677734375, -0.0082855224609375, -0.0014638900756835938, 0.005352020263671875, 0.0107879638671875, -0.0148773193359375, 0.024810791015625, -0.0133514404296875, -0.008087158203125, 0.0181121826171875, -0.046875, -0.0338134765625, -0.004245758056640625, -0.0244140625, 0.0078582763671875, 0.0098724365234375, -0.041839599609375, 0.002506256103515625, -0.0299224853515625, 0.03338623046875, -0.04840087890625, 0.0003421306610107422, 0.004810333251953125, 0.06695556640625, 0.01462554931640625, -0.0019016265869140625, 0.042755126953125, 0.0058746337890625, 0.0198822021484375, 0.03558349609375, 0.0005688667297363281, -0.0050048828125, -0.0142669677734375, 0.0158843994140625, 0.0177154541015625, 0.0232696533203125, -0.01184844970703125, -0.004314422607421875, -0.00278472900390625, -0.0194854736328125, 0.0022296905517578125, 0.01100921630859375, 0.012054443359375, 0.04144287109375, -0.0090484619140625, -0.0311279296875, -0.0156402587890625, 0.039154052734375, -0.02685546875, 0.0467529296875, -0.032379150390625, -0.05743408203125, 0.0298004150390625, 0.0005517005920410156, 0.0511474609375, 0.03131103515625, -0.011444091796875, 0.051116943359375, -0.0093536376953125, -0.005157470703125, 0.0198974609375, 0.0215301513671875, -0.01036834716796875, 0.0224151611328125, -0.00223541259765625, -0.0148162841796875, -0.0045623779296875, 0.00021719932556152344, 0.0865478515625, -0.01090240478515625, -0.00782012939453125, -0.036376953125, -0.034027099609375, -0.03265380859375, 0.00791168212890625, 0.0018253326416015625, 0.0252532958984375, 0.039642333984375, -0.01122283935546875, -0.017730712890625, 0.012847900390625, 0.00873565673828125, -0.042816162109375, 0.039581298828125, 0.02294921875, -0.0198211669921875, -0.0239410400390625, 0.06378173828125, -0.0140838623046875, -0.0011224746704101562, 0.0159149169921875, -0.010498046875, -0.0008220672607421875, 0.01556396484375, 0.0278472900390625, -0.0149383544921875, 0.0118560791015625, -0.00463104248046875, 0.0203094482421875, -0.01812744140625, 0.01413726806640625, 0.035430908203125, 0.031005859375, 0.00414276123046875, -0.027191162109375, -0.003631591796875, -0.0163726806640625, -0.020355224609375, 0.0214080810546875, -0.0139312744140625, -0.03204345703125, -0.03851318359375, 0.0031070709228515625, 0.048248291015625, -0.002490997314453125, -0.0184173583984375, 0.0013427734375, -0.034027099609375, 0.0171661376953125, 0.006549835205078125, 0.0060577392578125, 0.0033817291259765625, -0.01300811767578125, 0.03680419921875, -0.0255584716796875, 0.01261138916015625, -0.0139923095703125, 0.0310211181640625, -0.05584716796875, -0.0062103271484375, 0.059356689453125, -0.00409698486328125, 0.0193634033203125, -0.005458831787109375, -0.0244140625, 0.0297088623046875, -0.006298065185546875, 0.07794189453125, 0.0264739990234375, -0.04052734375, -0.016937255859375, -0.01155853271484375, 0.00562286376953125, 0.031890869140625, -0.0191802978515625, -0.0189056396484375, -0.01947021484375, 0.00429534912109375, 0.033660888671875, -0.02545166015625, -0.040130615234375, 0.00047278404235839844, 0.01012420654296875, 0.0224761962890625, 0.052093505859375, 0.00386810302734375, 0.03778076171875, -0.00623321533203125, 0.04150390625, 0.00894927978515625, 0.0012941360473632812, -0.01448822021484375, -0.019805908203125, -0.0071258544921875, -0.0355224609375, -0.0162506103515625, -0.0030155181884765625, -0.01216888427734375, 0.04046630859375, 0.0697021484375, 0.006748199462890625, 0.024505615234375, 0.005596160888671875, 0.0115203857421875, -0.0158843994140625, -0.01210784912109375, -0.016326904296875, 0.0004291534423828125, 0.036651611328125, 0.0021991729736328125, 0.036712646484375, -0.00406646728515625, 0.00997161865234375, -0.01168060302734375, -0.0125579833984375, 0.01198577880859375, 0.0011377334594726562, -0.0386962890625, 0.0316162109375, 0.08837890625, 0.0203094482421875, 0.06103515625, 0.023162841796875, 0.02874755859375, 0.0304718017578125, -0.03179931640625, 0.03558349609375, 0.045135498046875, 0.06982421875, -0.005229949951171875, -0.0008497238159179688, 0.052978515625, -0.01849365234375, 0.0222320556640625, 0.07366943359375, 0.038360595703125, -0.1099853515625, -0.0005784034729003906, -0.0259246826171875, -0.0011157989501953125, 0.052520751953125, 0.026458740234375, -0.0357666015625, 0.01114654541015625, -0.003498077392578125, -0.04864501953125, -0.032989501953125, 0.0164031982421875, 0.054779052734375, -0.00942230224609375, 0.004840850830078125, 0.0203857421875, -0.0002684593200683594, -0.01099395751953125, -0.009979248046875, 0.01079559326171875, -0.0079345703125, -0.0068359375, 0.0008440017700195312, 0.052276611328125, -0.032073974609375, -0.03338623046875, 0.05438232421875, -0.01275634765625, -0.031524658203125, 0.036834716796875, -0.005123138427734375, 0.042633056640625, 0.0391845703125, 0.007312774658203125, -0.007488250732421875, 0.01505279541015625, -0.0210113525390625, 0.043975830078125, -0.01348876953125, 0.027740478515625, 0.0289154052734375, -0.01525115966796875, 0.01137542724609375, 0.0025691986083984375, -0.0208282470703125, -0.0139312744140625, -0.0213623046875, 0.05731201171875, -0.0263519287109375, -0.0158233642578125, 0.0111541748046875, 0.0169677734375, 0.00884246826171875, -0.002346038818359375, -0.027069091796875, -0.046356201171875, -0.01678466796875, -0.013092041015625, -0.041839599609375, 0.0083160400390625, -0.01190948486328125, -0.083984375, 0.1168212890625, 0.01108551025390625, 0.040771484375, 0.020782470703125, 0.0391845703125, -0.045257568359375, 0.0006961822509765625, -0.04571533203125, 0.0767822265625, -0.01056671142578125, 0.06549072265625, -0.06292724609375, -0.009368896484375, 0.038726806640625, 0.039581298828125, 0.098876953125, 0.03125, -0.058197021484375, -0.0036830902099609375, 0.02545166015625, 0.011810302734375, -0.0267791748046875, 0.056304931640625, 0.025421142578125, 0.037445068359375, 0.035919189453125, -0.0469970703125, 0.02545166015625, -0.05548095703125, 0.018402099609375, 0.035186767578125, -0.002349853515625, -0.0004737377166748047, -0.01340484619140625, 0.0301055908203125, -0.019622802734375, -0.00394439697265625, 0.00855255126953125, -0.00830078125, -0.004520416259765625, 0.0157623291015625, 0.0016574859619140625, 0.00014007091522216797, -0.033843994140625, -0.0018739700317382812, 0.027587890625, -0.00913238525390625, 0.0111541748046875, 0.022003173828125, 0.01373291015625, 0.02447509765625, 0.0014925003051757812, 0.00928497314453125, 0.02923583984375, -0.0058441162109375, 0.053497314453125, 0.0250091552734375, 0.04180908203125, -0.0136566162109375, 0.00411224365234375, 0.0252532958984375, 0.052398681640625, -0.039093017578125, -0.0628662109375, 0.00460052490234375, -0.00769805908203125, -0.01470184326171875, 0.024688720703125, -0.005207061767578125, -0.00836944580078125, 0.0224609375, -0.0149078369140625, 0.0048675537109375, 0.01541900634765625, 0.0140838623046875, -0.0062103271484375, 0.01995849609375, -0.02801513671875, 0.01186370849609375, -0.04742431640625, -0.0233154296875, 0.021392822265625, 0.08575439453125, 0.031524658203125, 0.07000732421875, -0.018829345703125, -0.056060791015625, -0.010894775390625, 0.047210693359375, -0.0294342041015625, 0.0194549560546875, -0.048583984375, -0.05419921875, -0.02801513671875, 0.040008544921875, 0.07745361328125, 0.018890380859375, 0.047760009765625, -0.003536224365234375, -0.0218353271484375, 0.025390625, 0.0149078369140625, -0.018341064453125, 0.02587890625, -0.025634765625, 0.0345458984375, -0.0200042724609375, 0.01690673828125, -0.045257568359375, 0.055084228515625, -0.00982666015625, 0.00024628639221191406, -0.025238037109375, 0.0167236328125, -0.055023193359375, 0.0175628662109375, 0.013092041015625, 0.056060791015625, 0.0288238525390625, -0.005176544189453125, 0.011474609375, -0.019073486328125, -0.07861328125, 0.025604248046875, 0.05499267578125, 0.00928497314453125, -0.00927734375, -0.00527191162109375, -0.007511138916015625, -0.0007042884826660156, 0.00189208984375, -0.0002543926239013672, -0.032470703125, 0.00727081298828125, -0.0161895751953125, -0.031280517578125, -0.022796630859375, -0.01151275634765625, 0.03228759765625, -0.002185821533203125, 0.123779296875, -0.0660400390625, 0.005733489990234375, -0.0213165283203125, -0.0217132568359375, 0.0025768280029296875, 0.005016326904296875, -0.0438232421875, -0.01067352294921875, -0.005390167236328125, 0.003101348876953125, -0.0206298828125, 0.0211944580078125, 0.024993896484375, -0.028564453125, 0.020660400390625, -0.0038738250732421875, 0.014556884765625, -0.0236053466796875, 0.004589080810546875, -0.026947021484375, -0.04052734375, -0.0040435791015625, 0.01280975341796875, -0.002445220947265625, 0.0030231475830078125, -0.0291900634765625, 0.07598876953125, 0.01348876953125, 0.0306396484375, 0.0014448165893554688, -0.03204345703125, 0.002887725830078125, 0.034515380859375, -0.007740020751953125, -0.00605010986328125, 0.00704193115234375, -0.0194854736328125, -0.00527191162109375, 0.013702392578125, 0.026123046875, -0.00452423095703125, 0.0036945343017578125, -0.042755126953125, -0.042022705078125, -0.0081939697265625, -0.0311279296875, 0.0015878677368164062, -0.0081634521484375, 0.005802154541015625, -0.0084991455078125, -0.0284271240234375, -0.0104827880859375, -0.038238525390625, -0.015899658203125, 0.0135650634765625, -0.00970458984375, -0.0199737548828125, -0.015716552734375, 0.042022705078125, 0.0178680419921875, -0.00033092498779296875, -0.0963134765625, 0.0489501953125, -0.032073974609375, 0.1055908203125, -0.051544189453125, -0.00557708740234375, 0.00905609130859375, 0.033294677734375, -0.04058837890625, 0.0139007568359375, -0.028656005859375, -0.0335693359375, -0.0257415771484375, 0.021881103515625, 0.02496337890625, -0.0039215087890625, -0.0308685302734375, 0.00800323486328125, -0.01485443115234375, 0.06280517578125, -0.01641845703125, -0.01654052734375, 0.0279388427734375, -0.00594329833984375, -0.049285888671875, -0.0269012451171875, 0.006687164306640625, -0.0535888671875, -0.00408172607421875, 0.0118255615234375, -0.00728607177734375, 0.0013570785522460938, -0.034759521484375, -0.06884765625, 0.045867919921875, 0.005962371826171875, -0.023193359375, -0.0711669921875, 0.009735107421875, 0.01419830322265625, 0.01019287109375, -0.0202484130859375, -0.0518798828125, -0.057098388671875, 0.0193328857421875, 0.032745361328125, 0.05194091796875, -0.007720947265625, 0.0195465087890625, -0.0223541259765625, 0.03173828125, 0.0083160400390625, 0.0187835693359375, 0.015960693359375, -0.0216217041015625, 0.05291748046875, 0.039093017578125, 0.0022029876708984375, 0.025787353515625, 0.0157623291015625, -0.0823974609375, -0.0071258544921875, -0.03936767578125, -0.0260009765625, -0.014556884765625, 0.07476806640625, 0.00518035888671875, 0.00025391578674316406, -0.01378631591796875, 0.0012664794921875, -0.028778076171875, -0.031280517578125, -0.00531005859375, 0.02618408203125, -0.050201416015625, -0.005390167236328125, 0.00849151611328125, 0.01197052001953125, -0.028564453125, -0.0111083984375, 0.005558013916015625, -0.0220489501953125, 0.01284027099609375, -0.01385498046875, 0.0265045166015625, -0.034881591796875, 0.060760498046875, -0.039306640625, -0.0220794677734375, 0.003772735595703125, 0.03228759765625, 0.018280029296875, -0.018707275390625, -0.01107025146484375, 0.045135498046875, -0.0255584716796875, 0.01340484619140625, 0.00927734375, 0.01401519775390625, -0.044921875, 0.0019426345825195312, -0.02142333984375, 0.0297698974609375, -0.00762176513671875, 0.0169219970703125, -0.042816162109375, 0.05108642578125, 0.006519317626953125, 0.08245849609375, -0.02197265625, -0.0418701171875, -0.01096343994140625, -0.003520965576171875, -0.0151824951171875, 0.0323486328125, 0.0235748291015625, -0.005565643310546875, -0.004878997802734375, -0.0009255409240722656, -0.0141448974609375, -0.0545654296875, -0.0001232624053955078, -0.040618896484375, 0.0188140869140625, 0.0203399658203125 ]
8f5bc08d0de227dee7597f906e1a80304539309d
Wordpress Stackexchange Q: how to get current user name by user_id in buddypress? I want to display the user names by the reference of user id. Is there any function like get_user_displaynme($userid)? (and one more Is there any shortcode to get group names?) Thanks in Advance A: You can use the very same get_userdata function of WordPress to code a specific function. Stick this in your functions.php: function get_display_name($user_id) { if (!$user = get_userdata($user_id)) return false; return $user->data->display_name; } So you can do something like: $display_name = get_display_name($some_user_id); echo $display_name;
Q: how to get current user name by user_id in buddypress? I want to display the user names by the reference of user id. Is there any function like get_user_displaynme($userid)? (and one more Is there any shortcode to get group names?) Thanks in Advance A: You can use the very same get_userdata function of WordPress to code a specific function. Stick this in your functions.php: function get_display_name($user_id) { if (!$user = get_userdata($user_id)) return false; return $user->data->display_name; } So you can do something like: $display_name = get_display_name($some_user_id); echo $display_name; A: This may not be an answer to this question, but in the end I reached for this question when I am looking for a way to fetch the display name for the user through the ID $user_displayname = get_user_by( 'id', $userid )->display_name ; So maybe someone else may benefit from my answer A: There is a nice native function called get_user_by
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:422151", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59435" }
[ 0.0310211181640625, -0.0010890960693359375, -0.032440185546875, -0.036407470703125, 0.00884246826171875, -0.01186370849609375, 0.01055908203125, 0.007663726806640625, -0.010955810546875, 0.06658935546875, -0.0006108283996582031, 0.000797271728515625, 0.0192718505859375, -0.01152801513671875, -0.047515869140625, -0.01470184326171875, 0.033233642578125, -0.004322052001953125, 0.0204925537109375, -0.0059814453125, -0.0177459716796875, 0.0272674560546875, 0.0094757080078125, 0.00789642333984375, 0.022003173828125, -0.047119140625, 0.06573486328125, -0.01139068603515625, 0.0259552001953125, -0.0224151611328125, 0.0177001953125, 0.0097503662109375, -0.00977325439453125, 0.02960205078125, -0.00797271728515625, 0.026763916015625, 0.034881591796875, 0.01617431640625, 0.04010009765625, 0.01800537109375, 0.003170013427734375, 0.0218048095703125, -0.035186767578125, -0.003940582275390625, -0.0209197998046875, -0.09173583984375, 0.035736083984375, -0.02069091796875, 0.010345458984375, 0.058135986328125, 0.06005859375, 0.0589599609375, 0.0498046875, 0.01398468017578125, 0.0040283203125, 0.038482666015625, -0.00426483154296875, -0.028717041015625, 0.04913330078125, -0.01384735107421875, -0.021087646484375, -0.04168701171875, 0.043975830078125, -0.012359619140625, 0.017303466796875, 0.0224609375, 0.0404052734375, 0.01247406005859375, 0.006534576416015625, -0.007732391357421875, -0.013153076171875, 0.007083892822265625, 0.01332855224609375, 0.00995635986328125, -0.0268402099609375, -0.034027099609375, 0.016693115234375, -0.020477294921875, 0.00727081298828125, 0.0069122314453125, -0.0648193359375, -0.0426025390625, -0.09381103515625, 0.039276123046875, -0.022918701171875, 0.07537841796875, -0.031219482421875, -0.012054443359375, 0.00858306884765625, -0.0105438232421875, -0.00920867919921875, -0.0217742919921875, 0.009490966796875, 0.0209808349609375, -0.0222015380859375, -0.0222625732421875, 0.036224365234375, 0.08978271484375, -0.03173828125, -0.0092926025390625, -0.0004436969757080078, -0.0267791748046875, -0.0129241943359375, -0.0333251953125, -0.0212249755859375, 0.032196044921875, 0.03387451171875, 0.0183563232421875, -0.006145477294921875, 0.01055145263671875, -0.0046234130859375, -0.050750732421875, -0.0438232421875, -0.026275634765625, -0.00791168212890625, 0.04901123046875, -0.06329345703125, 0.00675201416015625, -0.02093505859375, 0.0148162841796875, 0.0188140869140625, 0.0157928466796875, 0.0009179115295410156, 0.0208892822265625, -0.009979248046875, -0.0015840530395507812, -0.0372314453125, -0.01514434814453125, 0.004451751708984375, -0.0025196075439453125, -0.026763916015625, 0.01189422607421875, 0.045379638671875, 0.03717041015625, 0.01279449462890625, -0.006900787353515625, 0.01287841796875, -0.0255126953125, 0.0159912109375, 0.024505615234375, -0.050323486328125, -0.038604736328125, 0.038665771484375, -0.037109375, 0.028228759765625, 0.036285400390625, 0.0217132568359375, -0.0013303756713867188, -0.0011157989501953125, -0.04132080078125, 0.01242828369140625, -0.00928497314453125, -0.0281982421875, 0.0310211181640625, 0.061981201171875, 0.040557861328125, 0.03900146484375, -0.0127105712890625, 0.0212249755859375, 0.02777099609375, 0.01116180419921875, -0.0030879974365234375, -0.006633758544921875, 0.0083160400390625, -0.0282135009765625, -0.003757476806640625, -0.00019860267639160156, 0.0016126632690429688, 0.0175018310546875, 0.01102447509765625, 0.0170135498046875, 0.0263519287109375, 0.032562255859375, 0.0005574226379394531, -0.00888824462890625, -0.03411865234375, -0.0211181640625, 0.0286407470703125, 0.035614013671875, 0.0158843994140625, -0.021240234375, -0.035614013671875, 0.0538330078125, -0.0019702911376953125, -0.053558349609375, 0.07391357421875, -0.0093994140625, 0.046722412109375, 0.0290985107421875, -0.00696563720703125, 0.05841064453125, 0.0206451416015625, -0.03875732421875, 0.0186309814453125, -0.0139617919921875, -0.039825439453125, 0.04974365234375, -0.0035228729248046875, -0.007724761962890625, 0.00102996826171875, 0.014892578125, -0.00907135009765625, 0.0171966552734375, -0.041900634765625, -0.06976318359375, -0.003345489501953125, -0.0250244140625, 0.0404052734375, 0.0034084320068359375, 0.005535125732421875, 0.0054168701171875, -0.0207672119140625, -0.0234375, -0.0027561187744140625, -0.010040283203125, 0.00669097900390625, -0.040679931640625, 0.0283966064453125, 0.0145111083984375, 0.039459228515625, -0.0308990478515625, 0.0239410400390625, -0.0128173828125, -0.03668212890625, -0.0012083053588867188, -0.02191162109375, -0.00936126708984375, -0.01971435546875, -0.01549530029296875, 0.005603790283203125, -0.0311126708984375, 0.01140594482421875, -0.032257080078125, 0.0095367431640625, -0.0168609619140625, -0.01007843017578125, -0.00989532470703125, -0.0272674560546875, 0.028594970703125, 0.031463623046875, 0.043212890625, 0.0202178955078125, 0.0394287109375, 0.018829345703125, 0.0428466796875, 0.0301971435546875, 0.06884765625, -0.049285888671875, 0.037017822265625, 0.0845947265625, -0.0223846435546875, 0.00670623779296875, -0.004520416259765625, -0.01104736328125, 0.011138916015625, 0.04058837890625, -0.020660400390625, 0.0232696533203125, 0.0023403167724609375, -0.02288818359375, -0.005962371826171875, -0.04681396484375, 0.01544952392578125, -0.0394287109375, -0.0214080810546875, 0.006061553955078125, 0.005245208740234375, 0.01171112060546875, 0.0254364013671875, -0.0207061767578125, 0.0008153915405273438, -0.045135498046875, -0.0013551712036132812, -0.009918212890625, -0.016754150390625, -0.00177764892578125, -0.0262908935546875, -0.0005755424499511719, 0.02044677734375, -0.0135650634765625, -0.00826263427734375, -0.00807952880859375, 0.00860595703125, -0.00806427001953125, 0.030242919921875, -0.0047454833984375, 0.0182952880859375, 0.0001251697540283203, -0.0211334228515625, -0.025115966796875, 0.00429534912109375, 0.0604248046875, -0.032440185546875, 0.07513427734375, -0.05865478515625, 0.01024627685546875, 0.029022216796875, -0.0328369140625, 0.0245208740234375, -0.0266265869140625, 0.03607177734375, 0.050994873046875, -0.00687408447265625, 0.01454925537109375, 0.01012420654296875, 0.00394439697265625, 0.0065765380859375, -0.004703521728515625, 0.00907135009765625, 0.0028095245361328125, -0.00893402099609375, 0.08343505859375, 0.009521484375, 0.062744140625, -0.03948974609375, -0.07196044921875, -0.0173797607421875, 0.00933074951171875, -0.06890869140625, -0.036865234375, -0.036529541015625, -0.06329345703125, -0.0054473876953125, -0.01512908935546875, -0.0269317626953125, 0.0186309814453125, 0.00897979736328125, 0.022186279296875, 0.0259552001953125, -0.036712646484375, -0.0718994140625, -0.038726806640625, -0.04962158203125, 0.027252197265625, -0.01526641845703125, -0.022979736328125, 0.0166015625, -0.028839111328125, 0.00832366943359375, 0.005283355712890625, 0.01611328125, 0.037750244140625, -0.033111572265625, -0.05023193359375, 0.0008530616760253906, -0.022003173828125, -0.0156707763671875, 0.0240325927734375, -0.007335662841796875, -0.0084228515625, 0.0032806396484375, -0.014251708984375, 0.004573822021484375, 0.006683349609375, 0.04351806640625, 0.002979278564453125, -0.0260772705078125, 0.047576904296875, 0.06988525390625, -0.0157623291015625, -0.0197296142578125, -0.0038509368896484375, -0.040130615234375, 0.02484130859375, 0.018829345703125, -0.01611328125, 0.0006794929504394531, -0.004611968994140625, 0.0079193115234375, 0.0247039794921875, -0.0165252685546875, 0.0032367706298828125, -0.00832366943359375, 0.006153106689453125, 0.033416748046875, 0.007083892822265625, 0.002819061279296875, -0.039276123046875, 0.023834228515625, -0.0149078369140625, -0.0037479400634765625, 0.00020074844360351562, -0.022979736328125, 0.0037708282470703125, -0.031463623046875, 0.041107177734375, 0.0081329345703125, -0.009796142578125, -0.007709503173828125, -0.019134521484375, 0.0126800537109375, 0.076171875, 0.01416778564453125, -0.00991058349609375, 0.035125732421875, 0.00568389892578125, -0.0888671875, -0.013702392578125, -0.10546875, 0.002105712890625, -0.053466796875, -0.025909423828125, -0.0418701171875, 0.0019359588623046875, -0.01535797119140625, 0.0258331298828125, -0.03179931640625, -0.03704833984375, 0.0120086669921875, 0.00710296630859375, 0.01366424560546875, -0.0035381317138671875, -0.004047393798828125, -0.01354217529296875, 0.00923919677734375, -0.023773193359375, -0.048065185546875, -0.01092529296875, -0.017852783203125, 0.059326171875, 0.011016845703125, -0.00469970703125, -0.00513458251953125, 0.045440673828125, 0.011505126953125, 0.042724609375, 0.03546142578125, -0.00011223554611206055, 0.06536865234375, 0.0076141357421875, 0.0275726318359375, -0.01070404052734375, -0.0291748046875, -0.0509033203125, -0.004581451416015625, -0.0274505615234375, -0.03143310546875, -0.0259552001953125, -0.0155487060546875, 0.011322021484375, -0.05279541015625, -0.0192413330078125, 0.01422119140625, 0.057861328125, -0.022857666015625, 0.0253448486328125, -0.038970947265625, -0.059906005859375, 0.027984619140625, 0.005687713623046875, -0.006137847900390625, 0.007221221923828125, 0.057373046875, 0.0156402587890625, -0.0198516845703125, -0.041015625, 0.02166748046875, 0.06787109375, 0.020904541015625, 0.021209716796875, 0.00490570068359375, -0.0694580078125, 0.07818603515625, 0.049835205078125, 0.0257110595703125, 0.02227783203125, 0.0282135009765625, -0.00007832050323486328, -0.01155853271484375, 0.0211639404296875, 0.0207672119140625, -0.06060791015625, 0.007442474365234375, -0.0275421142578125, -0.0240020751953125, -0.01910400390625, 0.051300048828125, -0.0248260498046875, 0.05096435546875, -0.03497314453125, -0.052978515625, 0.01548004150390625, -0.04693603515625, -0.0279388427734375, -0.0063323974609375, -0.00476837158203125, -0.013885498046875, -0.0089874267578125, -0.01259613037109375, 0.00426483154296875, -0.040252685546875, 0.044342041015625, 0.03070068359375, -0.01486968994140625, 0.03216552734375, 0.004405975341796875, -0.01187896728515625, 0.08489990234375, 0.0006618499755859375, -0.056427001953125, 0.044708251953125, -0.04168701171875, -0.018096923828125, 0.0226898193359375, 0.01568603515625, 0.0049896240234375, 0.0335693359375, -0.01262664794921875, -0.0171966552734375, -0.00241851806640625, 0.047454833984375, -0.024932861328125, 0.0277557373046875, -0.003204345703125, 0.0016565322875976562, -0.00244140625, 0.08837890625, -0.002513885498046875, 0.051971435546875, -0.0107269287109375, 0.031890869140625, 0.020355224609375, -0.0010271072387695312, 0.0210723876953125, 0.00035953521728515625, 0.00911712646484375, -0.0268096923828125, 0.0011758804321289062, -0.01371002197265625, 0.0291290283203125, 0.016143798828125, 0.00626373291015625, 0.0246734619140625, -0.00994110107421875, 0.0252227783203125, -0.0027370452880859375, -0.023193359375, 0.038238525390625, 0.00269317626953125, -0.0428466796875, -0.03271484375, 0.017578125, 0.0291900634765625, 0.005859375, 0.0025463104248046875, -0.017669677734375, -0.03814697265625, -0.030914306640625, -0.0215911865234375, -0.028289794921875, -0.021453857421875, -0.0156402587890625, -0.038177490234375, 0.0004246234893798828, 0.0109710693359375, -0.01343536376953125, -0.0034637451171875, -0.0302581787109375, -0.052734375, 0.07025146484375, 0.01235198974609375, 0.0089874267578125, -0.046905517578125, 0.0036678314208984375, -0.0482177734375, -0.02593994140625, 0.0860595703125, 0.032196044921875, -0.0863037109375, 0.033905029296875, -0.01641845703125, 0.0155181884765625, 0.04248046875, -0.0330810546875, -0.05889892578125, -0.053466796875, -0.0099334716796875, 0.00664520263671875, -0.024871826171875, -0.012969970703125, -0.00799560546875, 0.039703369140625, 0.020172119140625, 0.0552978515625, 0.01268768310546875, 0.0241851806640625, -0.00014865398406982422, 0.046051025390625, 0.009490966796875, 0.004085540771484375, -0.008331298828125, -0.03814697265625, -0.0019445419311523438, 0.030975341796875, -0.02197265625, -0.01141357421875, 0.006572723388671875, -0.051849365234375, 0.0250396728515625, -0.0136871337890625, 0.000021517276763916016, 0.021484375, 0.01013946533203125, -0.0155029296875, -0.0665283203125, 0.049224853515625, -0.0228729248046875, -0.00860595703125, -0.04541015625, -0.026641845703125, 0.0001995563507080078, 0.008758544921875, 0.003871917724609375, -0.01605224609375, -0.02569580078125, 0.0311126708984375, -0.042266845703125, 0.056671142578125, 0.10052490234375, -0.01226806640625, 0.035675048828125, 0.0244598388671875, -0.000614166259765625, 0.005615234375, 0.0277557373046875, -0.044677734375, -0.036834716796875, 0.058135986328125, 0.027984619140625, -0.037994384765625, 0.047454833984375, -0.038177490234375, -0.00534820556640625, -0.0012226104736328125, 0.0233917236328125, -0.047637939453125, 0.0233154296875, -0.001476287841796875, -0.00788116455078125, -0.00757598876953125, -0.0004372596740722656, -0.02337646484375, -0.04754638671875, 0.064697265625, -0.022369384765625, -0.0146942138671875, 0.0256805419921875, -0.00708770751953125, -0.01239013671875, -0.0198822021484375, 0.03570556640625, 0.0022068023681640625, 0.0428466796875, -0.05047607421875, -0.0207061767578125, -0.015716552734375, -0.027862548828125, 0.0247802734375, -0.0276947021484375, -0.006404876708984375, -0.0626220703125, -0.0147705078125, 0.0111236572265625, -0.00433349609375, -0.0101776123046875, 0.00983428955078125, 0.0168609619140625, 0.049163818359375, -0.0005030632019042969, -0.017608642578125, 0.032012939453125, -0.02264404296875, 0.0236968994140625, -0.0196685791015625, -0.0207672119140625, 0.0250701904296875, -0.04010009765625, 0.003780364990234375, -0.01094818115234375, 0.015472412109375, -0.0067596435546875, -0.0265350341796875, 0.0914306640625, -0.041534423828125, -0.0179595947265625, -0.01433563232421875, 0.05242919921875, 0.00811767578125, 0.002986907958984375, 0.01397705078125, -0.03466796875, -0.01450347900390625, 0.01922607421875, -0.0223541259765625, -0.016021728515625, 0.00547027587890625, -0.072509765625, 0.04058837890625, -0.0312042236328125, 0.061431884765625, 0.01544189453125, -0.003833770751953125, 0.0308074951171875, -0.0208587646484375, -0.0246124267578125, 0.0316162109375, -0.007045745849609375, 0.0650634765625, -0.0175628662109375, -0.001979827880859375, 0.0269622802734375, 0.0263824462890625, 0.0460205078125, 0.01849365234375, -0.0135650634765625, -0.0322265625, -0.007678985595703125, 0.034912109375, 0.0017833709716796875, 0.0096435546875, 0.01296234130859375, 0.03253173828125, 0.061279296875, -0.007778167724609375, 0.034912109375, -0.000017940998077392578, -0.023834228515625, 0.0276641845703125, 0.005260467529296875, -0.0015659332275390625, -0.006504058837890625, -0.0203399658203125, 0.0012912750244140625, -0.006488800048828125, 0.004058837890625, -0.043670654296875, 0.01617431640625, 0.042022705078125, 0.044464111328125, -0.034423828125, -0.0017957687377929688, -0.026702880859375, 0.04254150390625, 0.00988006591796875, 0.0058746337890625, 0.0487060546875, 0.016571044921875, 0.019287109375, 0.03509521484375, 0.01763916015625, 0.015777587890625, 0.01274871826171875, 0.046539306640625, 0.048309326171875, 0.0222625732421875, -0.063232421875, -0.05999755859375, 0.08477783203125, 0.09844970703125, -0.0230560302734375, -0.0240478515625, 0.0263214111328125, 0.01451873779296875, 0.01520538330078125, -0.0017757415771484375, 0.014892578125, -0.04620361328125, 0.0006961822509765625, -0.0204925537109375, 0.010223388671875, 0.056671142578125, 0.00946044921875, 0.00725555419921875, -0.01062774658203125, -0.049163818359375, 0.0266265869140625, -0.03515625, 0.017364501953125, 0.029876708984375, 0.0032176971435546875, -0.011199951171875, 0.06451416015625, 0.0293426513671875, 0.01024627685546875, 0.022064208984375, -0.0207061767578125, 0.0193939208984375, -0.0252532958984375, 0.0104827880859375, 0.00595855712890625, -0.01160430908203125, 0.0205078125, 0.0146026611328125, -0.029754638671875, 0.0109405517578125, -0.0031795501708984375, -0.067138671875, -0.0258941650390625, 0.035888671875, -0.0181732177734375, 0.01064300537109375, -0.01474761962890625, -0.009490966796875, -0.0118560791015625, -0.028106689453125, -0.0233917236328125, -0.0029621124267578125, 0.029876708984375, -0.03265380859375, 0.04827880859375, -0.01032257080078125, 0.0115509033203125, 0.0240020751953125, -0.040802001953125, 0.0185394287109375, -0.01554107666015625, -0.08807373046875, -0.007045745849609375, -0.06317138671875, 0.01898193359375, 0.01959228515625, 0.02520751953125, 0.0064239501953125, 0.0177764892578125, 0.0106353759765625, 0.0090789794921875, 0.020599365234375, -0.0143890380859375, 0.0174560546875, 0.0284271240234375, 0.022613525390625, 0.0160369873046875, -0.045989990234375, -0.0030498504638671875, -0.01546478271484375, -0.0101470947265625, 0.01453399658203125, 0.01168060302734375, 0.01525115966796875, 0.01464080810546875, -0.0667724609375, 0.012481689453125, -0.052978515625, -0.065185546875, 0.08709716796875, 0.005584716796875, -0.038360595703125, -0.01287078857421875, -0.0310211181640625, 0.03826904296875, 0.01065826416015625, 0.0202789306640625, 0.031951904296875, -0.021453857421875, 0.01959228515625, 0.01189422607421875, -0.01580810546875, -0.016845703125, -0.03363037109375, 0.00881195068359375, 0.038360595703125, 0.00775146484375, 0.0246124267578125, -0.021148681640625, -0.001636505126953125, 0.054443359375, -0.022186279296875, -0.0164947509765625, 0.0150604248046875, -0.0029850006103515625, 0.015625, 0.0019817352294921875, 0.0181884765625, -0.0250701904296875, -0.0230712890625, 0.009552001953125, -0.01654052734375, -0.0091705322265625, 0.0032901763916015625, -0.0198974609375, 0.06744384765625, -0.0186309814453125, 0.050323486328125, -0.0078887939453125, -0.01050567626953125, 0.00794219970703125, 0.01861572265625, -0.0204010009765625, -0.09820556640625, -0.03826904296875, -0.056976318359375, 0.01505279541015625, 0.0367431640625, -0.0303192138671875, -0.018157958984375, -0.045013427734375, -0.028778076171875, -0.024505615234375, 0.0028438568115234375, -0.02923583984375, 0.0203399658203125, 0.037017822265625, -0.022613525390625, -0.036651611328125, -0.05438232421875, 0.027984619140625, 0.0227813720703125, -0.01482391357421875, 0.0135650634765625, -0.0034961700439453125, -0.031402587890625, 0.03216552734375, -0.0005235671997070312, 0.007534027099609375, 0.01178741455078125, -0.02825927734375, 0.056396484375, -0.019866943359375, 0.0867919921875, -0.04156494140625, -0.0233154296875, -0.0109100341796875, 0.0065155029296875, 0.006343841552734375, -0.04974365234375, 0.0164337158203125, -0.066162109375, -0.018707275390625, -0.02557373046875, 0.002552032470703125, 0.0188446044921875, -0.041107177734375, -0.025238037109375, 0.07257080078125, -0.012725830078125, -0.033111572265625, -0.00342559814453125, 0.00722503662109375, -0.0003693103790283203, -0.0021610260009765625, 0.0192108154296875, -0.035125732421875, -0.016876220703125, 0.0088958740234375, 0.01062774658203125, 0.01073455810546875, 0.0207061767578125, 0.03021240234375, -0.033172607421875, 0.02130126953125, -0.007274627685546875, -0.0174102783203125, 0.0293121337890625, -0.006000518798828125, 0.0300445556640625, 0.038238525390625, -0.03179931640625, 0.0208892822265625, -0.01015472412109375, -0.00612640380859375, -0.00949859619140625, -0.05963134765625, -0.0279388427734375, -0.0207061767578125, 0.03607177734375, 0.0279388427734375, 0.006778717041015625, -0.0281219482421875, -0.044586181640625, -0.06585693359375, -0.02581787109375, -0.00955963134765625, 0.011077880859375, -0.0660400390625, 0.0169677734375, 0.0186004638671875, -0.048553466796875, 0.01500701904296875, -0.011444091796875, -0.0838623046875, 0.0350341796875, -0.0217437744140625, -0.01898193359375, -0.039794921875, -0.006801605224609375, 0.037261962890625, -0.041168212890625, -0.0716552734375, 0.01800537109375, -0.0028438568115234375, -0.0413818359375, -0.039947509765625, 0.0294342041015625, 0.0235748291015625, -0.01445770263671875, 0.0135040283203125, 0.029052734375, -0.00904083251953125, -0.0018568038940429688, -0.0211944580078125, -0.0162200927734375, 0.024139404296875, 0.0084228515625, 0.0261383056640625, 0.010711669921875, 0.048126220703125, 0.01824951171875, 0.0247955322265625, -0.01230621337890625, 0.026336669921875, -0.0018129348754882812, 0.03692626953125, -0.00836944580078125, -0.0181732177734375, 0.045684814453125, -0.08209228515625, -0.0155029296875, 0.0204620361328125, 0.002105712890625, -0.05072021484375, 0.03741455078125, 0.0194091796875, 0.033538818359375, 0.0147857666015625 ]
06238434d8851a70b5000c1b09f0ce59be1aec5c
Wordpress Stackexchange Q: get current category ID php I'm trying to get category ID of the current archive displayed. I tried: // category (can be a parent category) $current_cat_ID = get_query_var('cat'); // print_r ($current_cat_ID); It doesn't print anything... A: you can use get_queried_object() $category = get_queried_object(); echo $category->term_id;
Q: get current category ID php I'm trying to get category ID of the current archive displayed. I tried: // category (can be a parent category) $current_cat_ID = get_query_var('cat'); // print_r ($current_cat_ID); It doesn't print anything... A: you can use get_queried_object() $category = get_queried_object(); echo $category->term_id; A: A little bit faster than receiving the object and echo the term ID afterwards is to directly use get_queried_object_id(). A: If you want to fecth in category page,you can get id of current category by: $category = get_category( get_query_var( 'cat' ) ); $cat_id = $category->cat_ID; If you want to get category id of any particular category on any page, you can try using below code: $category_id = get_cat_ID('Category Name');
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:422164", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59476" }
[ 0.045257568359375, 0.0103912353515625, -0.0259857177734375, -0.029541015625, 0.0229644775390625, -0.03369140625, 0.02886962890625, 0.01248931884765625, 0.00510406494140625, 0.0291900634765625, -0.0013780593872070312, -0.041595458984375, -0.0111083984375, -0.04046630859375, -0.032989501953125, -0.029571533203125, 0.046844482421875, -0.033233642578125, 0.020965576171875, 0.000003337860107421875, -0.025909423828125, 0.0220794677734375, 0.059967041015625, 0.049652099609375, 0.025909423828125, -0.03240966796875, 0.03289794921875, -0.0310516357421875, 0.0012102127075195312, -0.041717529296875, 0.00936126708984375, 0.0312042236328125, -0.004589080810546875, -0.01325225830078125, 0.05828857421875, 0.0274505615234375, 0.0290679931640625, 0.00658416748046875, 0.052001953125, 0.007595062255859375, 0.040679931640625, -0.027435302734375, 0.0194854736328125, -0.0228118896484375, -0.0035877227783203125, -0.0172576904296875, 0.016845703125, -0.0296783447265625, -0.004703521728515625, 0.00046515464782714844, 0.03704833984375, 0.038726806640625, 0.0390625, -0.01300048828125, 0.007236480712890625, 0.01299285888671875, 0.028594970703125, -0.0198516845703125, 0.051116943359375, -0.054168701171875, -0.07073974609375, -0.035919189453125, 0.059539794921875, -0.0085601806640625, 0.00733184814453125, 0.0078277587890625, 0.0751953125, 0.03607177734375, -0.049774169921875, -0.0197601318359375, 0.01654052734375, -0.01103973388671875, 0.01129150390625, -0.0027065277099609375, -0.03533935546875, -0.056488037109375, 0.039825439453125, -0.042236328125, -0.010162353515625, 0.00800323486328125, -0.0167999267578125, -0.00418853759765625, -0.08135986328125, 0.039276123046875, -0.0205230712890625, 0.052642822265625, -0.0180816650390625, -0.032470703125, -0.0245513916015625, -0.022216796875, -0.0188140869140625, -0.052001953125, -0.0208740234375, 0.0018606185913085938, -0.002170562744140625, -0.046905517578125, 0.040313720703125, 0.0889892578125, -0.037353515625, -0.0196685791015625, -0.0282745361328125, -0.0103912353515625, -0.0272369384765625, -0.023223876953125, 0.0037288665771484375, -0.0007810592651367188, -0.0022716522216796875, 0.00665283203125, 0.042449951171875, 0.01861572265625, -0.02056884765625, 0.021484375, -0.0128936767578125, 0.00461578369140625, -0.0290985107421875, 0.047821044921875, -0.01690673828125, -0.0125885009765625, -0.019287109375, 0.02099609375, 0.0085601806640625, 0.043212890625, 0.0201568603515625, 0.00560760498046875, -0.0119171142578125, 0.01398468017578125, -0.0140533447265625, -0.05621337890625, 0.0019245147705078125, -0.0121307373046875, -0.043182373046875, 0.008087158203125, 0.0460205078125, 0.043121337890625, 0.0206146240234375, -0.008392333984375, 0.004413604736328125, -0.022735595703125, 0.0307159423828125, -0.0222015380859375, 0.009002685546875, 0.0008330345153808594, 0.0452880859375, -0.01068878173828125, -0.02777099609375, 0.016357421875, 0.0199737548828125, 0.017181396484375, -0.0262603759765625, -0.0518798828125, 0.0242462158203125, -0.04827880859375, 0.024871826171875, -0.00316619873046875, 0.0134124755859375, 0.003490447998046875, 0.03173828125, -0.0274505615234375, -0.0203094482421875, -0.0243072509765625, 0.0653076171875, 0.01335906982421875, 0.0269775390625, 0.0226287841796875, -0.0167236328125, -0.0201263427734375, -0.0673828125, -0.017578125, 0.015533447265625, 0.047698974609375, 0.0301361083984375, -0.0107269287109375, 0.0127716064453125, 0.006793975830078125, -0.0238800048828125, -0.01910400390625, -0.051849365234375, -0.0312347412109375, 0.042236328125, 0.023712158203125, -0.02716064453125, -0.04248046875, -0.03167724609375, 0.02008056640625, -0.006771087646484375, 0.0181884765625, 0.0186767578125, 0.031890869140625, -0.01329803466796875, 0.0194091796875, -0.0007119178771972656, 0.035675048828125, -0.07537841796875, -0.0010175704956054688, 0.00611114501953125, 0.0172576904296875, 0.013946533203125, 0.021392822265625, -0.003528594970703125, -0.0303192138671875, 0.0016918182373046875, -0.006977081298828125, -0.003387451171875, 0.00970458984375, -0.0775146484375, -0.003086090087890625, -0.0224151611328125, 0.0330810546875, 0.005970001220703125, -0.00445556640625, 0.004650115966796875, -0.023284912109375, 0.00588226318359375, -0.043304443359375, -0.03009033203125, 0.04583740234375, -0.01042938232421875, -0.00960540771484375, -0.029937744140625, 0.0139312744140625, -0.051513671875, 0.03070068359375, -0.052398681640625, 0.0199432373046875, 0.038177490234375, 0.0207366943359375, -0.0298004150390625, -0.019744873046875, 0.020294189453125, 0.032928466796875, -0.06549072265625, -0.01084136962890625, 0.037872314453125, 0.043609619140625, -0.0160675048828125, -0.01593017578125, 0.0223236083984375, -0.062286376953125, 0.0160675048828125, 0.048126220703125, 0.028076171875, 0.00510406494140625, 0.0016841888427734375, -0.01113128662109375, 0.03485107421875, -0.0178375244140625, 0.0303192138671875, -0.03338623046875, 0.0159454345703125, 0.0426025390625, -0.004535675048828125, 0.0218505859375, 0.0179901123046875, 0.040191650390625, -0.001277923583984375, 0.046142578125, 0.012115478515625, -0.0175323486328125, -0.00879669189453125, 0.032745361328125, -0.0018873214721679688, -0.0128326416015625, -0.029144287109375, 0.0134429931640625, 0.01971435546875, 0.0309906005859375, 0.051483154296875, 0.052734375, -0.00690460205078125, -0.001026153564453125, -0.0113525390625, 0.01491546630859375, 0.0107269287109375, 0.047882080078125, -0.0252685546875, -0.0021457672119140625, -0.017608642578125, -0.005908966064453125, 0.0009069442749023438, 0.0152130126953125, 0.0005364418029785156, 0.06292724609375, 0.008880615234375, -0.01502227783203125, -0.032501220703125, -0.043243408203125, -0.0007519721984863281, -0.001220703125, -0.051055908203125, -0.017669677734375, 0.01751708984375, 0.06787109375, -0.0142822265625, 0.03326416015625, -0.051422119140625, 0.0328369140625, 0.0247344970703125, -0.0261077880859375, 0.02069091796875, -0.01174163818359375, 0.03643798828125, 0.04339599609375, -0.0249786376953125, 0.0240478515625, -0.001247406005859375, -0.01666259765625, 0.032623291015625, -0.0177001953125, -0.01593017578125, 0.0267486572265625, -0.056854248046875, 0.014678955078125, 0.01261138916015625, 0.054412841796875, -0.0101776123046875, -0.0413818359375, -0.007038116455078125, 0.0147247314453125, -0.08966064453125, -0.10479736328125, 0.01512908935546875, -0.050537109375, 0.00955963134765625, -0.01210784912109375, -0.019744873046875, -0.01544952392578125, 0.01158905029296875, 0.0005331039428710938, 0.04339599609375, -0.05548095703125, -0.08428955078125, -0.06353759765625, -0.1060791015625, -0.0124664306640625, -0.0017442703247070312, 0.00818634033203125, 0.004726409912109375, 0.058258056640625, 0.002704620361328125, -0.0601806640625, -0.00543212890625, 0.009613037109375, -0.01776123046875, 0.0092926025390625, -0.01361083984375, 0.0076751708984375, 0.005039215087890625, 0.0164794921875, -0.018157958984375, 0.00923919677734375, -0.004486083984375, -0.0142364501953125, -0.02777099609375, 0.0282745361328125, 0.0189208984375, 0.0246734619140625, 0.01398468017578125, 0.04486083984375, 0.047515869140625, -0.0057830810546875, -0.01166534423828125, -0.031494140625, -0.039031982421875, 0.0127410888671875, 0.00910186767578125, 0.0034847259521484375, -0.019195556640625, 0.0180206298828125, -0.04754638671875, -0.034881591796875, -0.01654052734375, -0.059051513671875, 0.0546875, 0.001850128173828125, 0.002017974853515625, 0.042205810546875, 0.0231475830078125, -0.01727294921875, 0.016510009765625, 0.00545501708984375, 0.0102386474609375, -0.006320953369140625, 0.0020771026611328125, -0.0113067626953125, -0.06744384765625, 0.0572509765625, -0.0068359375, -0.007389068603515625, -0.0301971435546875, -0.033538818359375, 0.015960693359375, 0.09564208984375, -0.0263214111328125, -0.0283660888671875, 0.00420379638671875, 0.012786865234375, -0.024017333984375, -0.0302734375, -0.045867919921875, -0.025848388671875, -0.04132080078125, -0.0091400146484375, -0.01470184326171875, -0.01540374755859375, -0.0108795166015625, 0.033660888671875, -0.0263214111328125, -0.020477294921875, 0.0438232421875, -0.050079345703125, 0.00901031494140625, 0.0224609375, 0.003353118896484375, -0.0097808837890625, -0.026214599609375, -0.019622802734375, -0.0638427734375, -0.017730712890625, -0.032958984375, 0.046966552734375, 0.022003173828125, -0.0076446533203125, -0.0191650390625, 0.04547119140625, -0.0081329345703125, -0.0188140869140625, 0.00792694091796875, 0.0306549072265625, -0.0171356201171875, -0.00984954833984375, -0.01404571533203125, -0.033050537109375, -0.035186767578125, -0.051055908203125, -0.0066375732421875, -0.031463623046875, -0.046051025390625, -0.040313720703125, -0.032562255859375, 0.005321502685546875, -0.07659912109375, -0.037628173828125, -0.0203094482421875, -0.0025463104248046875, -0.0225067138671875, 0.006275177001953125, -0.0227813720703125, -0.06585693359375, 0.06549072265625, 0.0254669189453125, -0.0016717910766601562, -0.0196533203125, 0.08135986328125, 0.0159454345703125, -0.044403076171875, -0.0306549072265625, -0.0021514892578125, 0.025421142578125, -0.004848480224609375, 0.047576904296875, -0.00353240966796875, -0.029083251953125, 0.0731201171875, -0.0021820068359375, 0.004344940185546875, -0.0141143798828125, 0.0501708984375, -0.0030460357666015625, -0.0202789306640625, 0.0133819580078125, -0.01509857177734375, 0.0041046142578125, -0.00525665283203125, -0.034942626953125, -0.0150604248046875, -0.0290374755859375, 0.0341796875, -0.0261077880859375, 0.0772705078125, -0.0160675048828125, -0.03265380859375, 0.01334381103515625, 0.027496337890625, 0.041839599609375, 0.048553466796875, -0.01080322265625, 0.048675537109375, 0.0246429443359375, 0.01053619384765625, -0.040557861328125, -0.0090484619140625, -0.01305389404296875, 0.0277862548828125, -0.04364013671875, 0.005718231201171875, -0.02587890625, 0.01027679443359375, 0.01177215576171875, -0.0246429443359375, -0.035919189453125, -0.00815582275390625, 0.01458740234375, -0.0247802734375, 0.033843994140625, -0.032867431640625, 0.0034732818603515625, 0.0267791748046875, -0.01279449462890625, 0.015350341796875, -0.03814697265625, 0.00632476806640625, -0.0139617919921875, 0.00942230224609375, -0.0078887939453125, -0.0006442070007324219, 0.0168914794921875, 0.06793212890625, 0.0075225830078125, 0.05426025390625, -0.032867431640625, -0.0017518997192382812, -0.037261962890625, 0.047271728515625, 0.02105712890625, -0.046234130859375, 0.03472900390625, -0.003795623779296875, 0.0242767333984375, -0.034576416015625, 0.0096435546875, -0.00595855712890625, 0.04583740234375, -0.0235748291015625, -0.034210205078125, 0.041473388671875, -0.034454345703125, -0.024932861328125, 0.0229034423828125, -0.007038116455078125, -0.028350830078125, -0.034912109375, -0.01220703125, 0.0232086181640625, 0.0264739990234375, -0.037384033203125, 0.0188446044921875, -0.0439453125, 0.0267486572265625, 0.00576019287109375, 0.00467681884765625, 0.004852294921875, -0.01148223876953125, -0.05560302734375, -0.03167724609375, 0.01091766357421875, 0.01214599609375, 0.02008056640625, -0.035430908203125, -0.055908203125, 0.045013427734375, 0.0218963623046875, 0.069580078125, -0.043792724609375, -0.04791259765625, 0.015869140625, -0.0290985107421875, 0.071533203125, 0.039459228515625, -0.0245513916015625, -0.022979736328125, -0.057830810546875, -0.0206756591796875, 0.006748199462890625, -0.0263671875, -0.01116943359375, -0.01122283935546875, -0.0006098747253417969, 0.0166015625, 0.01275634765625, 0.021087646484375, -0.0404052734375, 0.0243377685546875, 0.0172271728515625, 0.0462646484375, -0.0075531005859375, 0.044952392578125, 0.0125885009765625, 0.033538818359375, 0.01270294189453125, 0.01313018798828125, -0.0146484375, -0.0247344970703125, -0.003360748291015625, -0.00629425048828125, -0.0044708251953125, 0.009918212890625, -0.0192108154296875, -0.045928955078125, 0.01396942138671875, -0.0006976127624511719, -0.0106964111328125, 0.0054779052734375, 0.00567626953125, -0.00714111328125, -0.01617431640625, 0.0462646484375, -0.00450897216796875, 0.0218658447265625, -0.052978515625, -0.023284912109375, 0.01123046875, 0.0175628662109375, 0.0165863037109375, -0.0433349609375, -0.007297515869140625, 0.05865478515625, -0.020904541015625, 0.0633544921875, 0.07275390625, -0.0045318603515625, 0.043243408203125, 0.02099609375, 0.023193359375, 0.0107269287109375, 0.0287322998046875, -0.002056121826171875, -0.015106201171875, 0.062408447265625, 0.017333984375, -0.01149749755859375, 0.035888671875, -0.032196044921875, -0.029449462890625, -0.0293426513671875, 0.0190277099609375, 0.0281219482421875, -0.01165771484375, 0.014251708984375, -0.03472900390625, -0.033172607421875, 0.042999267578125, -0.01513671875, -0.018890380859375, 0.00891876220703125, -0.0280914306640625, 0.0040435791015625, 0.0208282470703125, 0.0042877197265625, -0.00423431396484375, -0.000812530517578125, 0.046539306640625, 0.0102386474609375, -0.01425933837890625, -0.0274658203125, -0.004512786865234375, 0.00841522216796875, -0.024139404296875, 0.01904296875, 0.005859375, 0.0199432373046875, -0.025360107421875, 0.08624267578125, 0.0054931640625, 0.0220184326171875, 0.003704071044921875, -0.012359619140625, 0.00730133056640625, 0.0254364013671875, -0.009185791015625, -0.001678466796875, 0.00922393798828125, -0.0531005859375, 0.0026264190673828125, -0.0204315185546875, 0.008209228515625, 0.040863037109375, -0.046417236328125, 0.004711151123046875, -0.0158843994140625, 0.0159454345703125, 0.0053863525390625, -0.00299835205078125, 0.05279541015625, -0.067138671875, -0.00397491455078125, 0.0250701904296875, 0.051666259765625, -0.0068511962890625, 0.0057220458984375, -0.00555419921875, -0.022491455078125, 0.0196380615234375, 0.01300048828125, 0.031646728515625, 0.0081939697265625, 0.0038585662841796875, -0.0275726318359375, 0.0098114013671875, -0.032562255859375, 0.016204833984375, 0.038360595703125, -0.0117034912109375, 0.00847625732421875, -0.0211639404296875, -0.031219482421875, 0.034088134765625, 0.01727294921875, 0.0004603862762451172, -0.0286102294921875, -0.0181121826171875, -0.0068359375, 0.033721923828125, 0.06585693359375, 0.023040771484375, -0.0032291412353515625, -0.00543212890625, 0.0092010498046875, 0.01128387451171875, -0.038177490234375, 0.033294677734375, 0.0206756591796875, -0.0160064697265625, 0.050628662109375, 0.01323699951171875, 0.034271240234375, 0.004451751708984375, -0.0019683837890625, 0.0357666015625, 0.0321044921875, 0.04461669921875, -0.019378662109375, 0.0192718505859375, -0.0203704833984375, -0.01267242431640625, 0.033843994140625, -0.04449462890625, -0.004451751708984375, 0.077392578125, 0.0587158203125, -0.057647705078125, 0.00975799560546875, -0.04681396484375, 0.05926513671875, -0.007305145263671875, -0.0006909370422363281, 0.0304107666015625, 0.0211181640625, 0.040130615234375, 0.0036563873291015625, 0.006938934326171875, 0.017486572265625, -0.0015163421630859375, 0.03350830078125, 0.04345703125, 0.0207672119140625, -0.00858306884765625, 0.00301361083984375, 0.0479736328125, 0.06427001953125, -0.032073974609375, -0.07135009765625, 0.028289794921875, 0.018524169921875, 0.01398468017578125, 0.05389404296875, 0.041656494140625, 0.0269622802734375, 0.0701904296875, -0.043975830078125, -0.0150604248046875, 0.030853271484375, 0.051727294921875, 0.0166473388671875, -0.0172271728515625, -0.048858642578125, -0.060089111328125, -0.06524658203125, -0.0018129348754882812, 0.005523681640625, 0.07049560546875, 0.05126953125, 0.04595947265625, -0.0283966064453125, -0.047332763671875, 0.0048828125, 0.039093017578125, -0.007320404052734375, -0.0141754150390625, -0.0011854171752929688, -0.022613525390625, -0.011749267578125, 0.019378662109375, 0.0107421875, 0.00818634033203125, 0.0347900390625, 0.007526397705078125, -0.0340576171875, -0.01220703125, 0.03802490234375, -0.01525115966796875, 0.01079559326171875, -0.04034423828125, 0.0390625, 0.02899169921875, 0.01806640625, -0.0090179443359375, 0.0015048980712890625, 0.078857421875, -0.006305694580078125, 0.0386962890625, 0.00034737586975097656, -0.004058837890625, 0.013458251953125, -0.032379150390625, 0.00726318359375, -0.0011339187622070312, -0.0906982421875, -0.0293426513671875, -0.031890869140625, 0.01377105712890625, 0.048828125, 0.031280517578125, -0.01079559326171875, 0.01763916015625, -0.001262664794921875, -0.024810791015625, -0.005523681640625, 0.0191802978515625, 0.0220947265625, 0.0035991668701171875, -0.004207611083984375, 0.01265716552734375, -0.0247955322265625, -0.00736236572265625, 0.0216064453125, 0.0005397796630859375, 0.038818359375, -0.0419921875, 0.037872314453125, 0.00919342041015625, -0.004489898681640625, 0.0447998046875, -0.10528564453125, -0.040557861328125, 0.08050537109375, -0.058624267578125, -0.015625, 0.0025997161865234375, -0.03619384765625, 0.03436279296875, 0.045074462890625, 0.009857177734375, 0.0257415771484375, -0.00508880615234375, 0.0172576904296875, -0.0171661376953125, 0.0455322265625, -0.006229400634765625, -0.0149078369140625, -0.0034198760986328125, -0.01904296875, 0.03863525390625, 0.0531005859375, 0.013214111328125, 0.00939178466796875, 0.0168304443359375, -0.02069091796875, 0.0008649826049804688, 0.0218963623046875, 0.01666259765625, 0.039215087890625, -0.0301971435546875, 0.0167388916015625, -0.0131072998046875, -0.0146484375, 0.0190582275390625, 0.01383209228515625, -0.0029544830322265625, -0.00490570068359375, 0.0205078125, 0.0181884765625, 0.00809478759765625, 0.036651611328125, -0.0166473388671875, 0.0203704833984375, 0.0052947998046875, -0.00817108154296875, 0.0271148681640625, -0.0673828125, -0.0255584716796875, -0.053558349609375, 0.0128326416015625, 0.022918701171875, -0.00994873046875, -0.0140228271484375, 0.00725555419921875, -0.01265716552734375, 0.01617431640625, 0.0015306472778320312, -0.017120361328125, 0.0134735107421875, -0.01143646240234375, 0.00989532470703125, -0.01486968994140625, -0.01024627685546875, -0.00411224365234375, 0.00946044921875, -0.062042236328125, -0.0015354156494140625, -0.036346435546875, -0.029266357421875, -0.019561767578125, 0.0251922607421875, 0.0069732666015625, -0.0322265625, -0.021331787109375, 0.054229736328125, 0.031890869140625, 0.08758544921875, 0.024871826171875, -0.024566650390625, -0.0228271484375, 0.0117645263671875, -0.0265350341796875, 0.0210723876953125, 0.0653076171875, -0.0301055908203125, -0.0640869140625, -0.049896240234375, 0.0283050537109375, 0.047210693359375, -0.0158843994140625, -0.047515869140625, 0.03125, -0.0259246826171875, -0.036529541015625, -0.0084686279296875, 0.039581298828125, -0.0016727447509765625, -0.03814697265625, -0.0002315044403076172, -0.033721923828125, 0.019195556640625, 0.006610870361328125, 0.029144287109375, 0.029144287109375, 0.0158233642578125, 0.006500244140625, -0.0703125, 0.029052734375, 0.0017538070678710938, 0.06341552734375, -0.040130615234375, 0.02447509765625, -0.0219573974609375, 0.0098114013671875, -0.055084228515625, -0.020294189453125, -0.01006317138671875, 0.08209228515625, 0.0120391845703125, -0.0223846435546875, -0.020660400390625, -0.0041656494140625, 0.006404876708984375, 0.015289306640625, -0.0001779794692993164, -0.016448974609375, -0.0416259765625, -0.0264129638671875, -0.031494140625, -0.0231475830078125, 0.031341552734375, -0.0904541015625, -0.01544952392578125, 0.010894775390625, -0.004444122314453125, -0.020111083984375, -0.00455474853515625, -0.040252685546875, -0.006145477294921875, -0.0105133056640625, -0.00618743896484375, -0.00824737548828125, 0.027679443359375, 0.0269317626953125, -0.046875, -0.058929443359375, 0.00421905517578125, -0.0143585205078125, -0.021728515625, -0.03741455078125, 0.0032196044921875, 0.0323486328125, -0.01355743408203125, -0.0233612060546875, 0.04058837890625, 0.01548004150390625, 0.055419921875, 0.00006508827209472656, -0.00673675537109375, 0.0116729736328125, 0.01032257080078125, -0.0028247833251953125, -0.0202484130859375, 0.032745361328125, 0.00751495361328125, 0.03704833984375, 0.01088714599609375, -0.0252685546875, -0.01549530029296875, 0.057586669921875, -0.035186767578125, -0.036224365234375, -0.0254058837890625, -0.0416259765625, 0.0061798095703125, -0.01187896728515625, 0.00153350830078125, -0.028076171875, 0.0252838134765625, -0.00832366943359375, -0.0216827392578125, 0.0276947021484375 ]
654f1ecdb0159ae2ec6cfbf7456d903f01199999
Wordpress Stackexchange Q: How to get attachments for a specific post type? I have this page where I am showing all post's attachments. This is the code: <?php $args = array( 'post_type' => 'attachment', 'post_status' => 'published', 'posts_per_page' =>25, 'post_parent' => null, // Post-> ID; 'numberposts' => null, ); $attachments = get_posts($args); $post_count = count ($attachments); if ($attachments) { foreach ($attachments as $attachment) { echo "<div class=\"post photo col3\">"; $url = get_attachment_link($attachment->ID);// extraigo la _posturl del attachmnet $img = wp_get_attachment_url($attachment->ID); $title = get_the_title($attachment->post_parent);//extraigo titulo echo '<a href="'.$url.'"><img title="'.$title.'" src="'.$img.'"></a>'; echo "</div>"; } } ?> Now, I have the 'post', 'page' and 'videos' post_types. I am getting all of them but I want to display 'post' post_type only. How do I exclude 'video' post_type? Thanks! A: $posts = get_posts( array( 'post_type' => 'post', 'posts_per_page' => -1 ) ); foreach ( $posts as $post ) { $attachments = get_children( array ( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_per_page' => 25 ), ARRAY_A ); if( $attachments ) { //continue with what you were doing } }
Q: How to get attachments for a specific post type? I have this page where I am showing all post's attachments. This is the code: <?php $args = array( 'post_type' => 'attachment', 'post_status' => 'published', 'posts_per_page' =>25, 'post_parent' => null, // Post-> ID; 'numberposts' => null, ); $attachments = get_posts($args); $post_count = count ($attachments); if ($attachments) { foreach ($attachments as $attachment) { echo "<div class=\"post photo col3\">"; $url = get_attachment_link($attachment->ID);// extraigo la _posturl del attachmnet $img = wp_get_attachment_url($attachment->ID); $title = get_the_title($attachment->post_parent);//extraigo titulo echo '<a href="'.$url.'"><img title="'.$title.'" src="'.$img.'"></a>'; echo "</div>"; } } ?> Now, I have the 'post', 'page' and 'videos' post_types. I am getting all of them but I want to display 'post' post_type only. How do I exclude 'video' post_type? Thanks! A: $posts = get_posts( array( 'post_type' => 'post', 'posts_per_page' => -1 ) ); foreach ( $posts as $post ) { $attachments = get_children( array ( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_per_page' => 25 ), ARRAY_A ); if( $attachments ) { //continue with what you were doing } } A: just paste the following code anywhere in your post file and attachments will be displayed. $args = array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo apply_filters('the_title', $attachment->post_title); the_attachment_link($attachment->ID, false); } }
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:422171", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59489" }
[ 0.05218505859375, 0.01032257080078125, -0.024261474609375, -0.0185089111328125, 0.007022857666015625, -0.0374755859375, 0.0518798828125, -0.023681640625, -0.02587890625, 0.0227813720703125, -0.016571044921875, -0.0030345916748046875, -0.048004150390625, -0.030853271484375, -0.00873565673828125, -0.04217529296875, 0.033660888671875, 0.005870819091796875, 0.08306884765625, 0.005611419677734375, 0.01486968994140625, 0.0218658447265625, 0.048370361328125, 0.00576019287109375, -0.007183074951171875, 0.0126953125, 0.07391357421875, 0.0011606216430664062, -0.00391387939453125, -0.01056671142578125, 0.015472412109375, -0.0024623870849609375, 0.0262603759765625, 0.00702667236328125, -0.007335662841796875, 0.0004570484161376953, -0.00603485107421875, -0.004123687744140625, 0.00339508056640625, 0.018402099609375, -0.0054168701171875, 0.00867462158203125, 0.031524658203125, -0.004306793212890625, -0.032440185546875, 0.01209259033203125, -0.02239990234375, -0.01325225830078125, 0.01561737060546875, -0.0201873779296875, -0.0005483627319335938, -0.019317626953125, 0.0228271484375, 0.004856109619140625, -0.0200653076171875, 0.0002982616424560547, -0.01503753662109375, 0.0123748779296875, 0.0288543701171875, -0.031097412109375, -0.04827880859375, 0.0004096031188964844, 0.032623291015625, 0.00524139404296875, -0.01457977294921875, -0.001800537109375, 0.03973388671875, -0.0011444091796875, -0.079345703125, -0.01806640625, 0.07366943359375, -0.0251617431640625, -0.01763916015625, -0.0628662109375, -0.013885498046875, 0.026397705078125, 0.005153656005859375, -0.01470947265625, -0.0081329345703125, -0.023345947265625, 0.01306915283203125, 0.019012451171875, -0.04205322265625, -0.005767822265625, 0.01224517822265625, 0.026763916015625, -0.007472991943359375, -0.03192138671875, -0.015869140625, -0.008636474609375, -0.0147552490234375, -0.0156402587890625, -0.00937652587890625, 0.0034008026123046875, -0.00036787986755371094, -0.0192718505859375, 0.04266357421875, 0.036468505859375, 0.00679779052734375, -0.0079193115234375, -0.0092315673828125, -0.04412841796875, 0.0153656005859375, -0.0170440673828125, 0.039398193359375, -0.003803253173828125, -0.023101806640625, -0.051300048828125, 0.0614013671875, 0.034759521484375, -0.0003371238708496094, 0.11419677734375, 0.0117340087890625, 0.01629638671875, -0.00772857666015625, -0.0185089111328125, -0.029571533203125, 0.03912353515625, -0.0157012939453125, 0.0271148681640625, 0.025238037109375, 0.03192138671875, 0.007457733154296875, -0.0174713134765625, -0.027496337890625, -0.0142364501953125, -0.0244293212890625, -0.05712890625, 0.070556640625, 0.042724609375, -0.043701171875, -0.03399658203125, 0.01053619384765625, 0.00864410400390625, 0.032501220703125, -0.0261077880859375, -0.0177154541015625, -0.02716064453125, 0.0008478164672851562, 0.019378662109375, -0.0099945068359375, -0.031402587890625, 0.039520263671875, 0.022369384765625, -0.0163726806640625, 0.003932952880859375, 0.000690460205078125, 0.0205841064453125, 0.00917816162109375, -0.022705078125, 0.0023193359375, -0.02667236328125, 0.042633056640625, 0.0153350830078125, -0.03582763671875, 0.009796142578125, 0.040679931640625, -0.034698486328125, -0.03289794921875, -0.063232421875, 0.041595458984375, 0.0022525787353515625, 0.00572967529296875, 0.00514984130859375, -0.0160980224609375, 0.005039215087890625, -0.0162353515625, -0.01947021484375, 0.015472412109375, 0.052337646484375, -0.0089874267578125, -0.025421142578125, -0.007122039794921875, 0.01204681396484375, -0.0191497802734375, 0.0226898193359375, -0.053436279296875, -0.031829833984375, 0.056182861328125, 0.0094146728515625, -0.007312774658203125, -0.01361083984375, 0.00911712646484375, 0.0247344970703125, -0.051910400390625, 0.04266357421875, 0.0222930908203125, 0.01690673828125, -0.00128936767578125, 0.0086212158203125, 0.0626220703125, 0.0631103515625, -0.04376220703125, 0.029876708984375, -0.010162353515625, -0.00861358642578125, -0.026947021484375, -0.0020389556884765625, -0.021514892578125, 0.0211029052734375, 0.00328826904296875, -0.0031833648681640625, 0.029327392578125, -0.006458282470703125, -0.017913818359375, 0.00690460205078125, -0.0156707763671875, 0.031158447265625, -0.033294677734375, 0.045654296875, 0.037078857421875, 0.0238494873046875, -0.068359375, 0.0189361572265625, 0.0159149169921875, 0.0281829833984375, 0.0040283203125, 0.01035308837890625, -0.0292205810546875, 0.0189971923828125, -0.060577392578125, -0.04400634765625, -0.045440673828125, 0.040435791015625, 0.08148193359375, -0.0022869110107421875, 0.0017423629760742188, -0.0287322998046875, 0.06292724609375, 0.0224609375, -0.04302978515625, 0.0247344970703125, -0.025146484375, -0.014068603515625, -0.054107666015625, -0.0005555152893066406, -0.00939178466796875, -0.007373809814453125, 0.007843017578125, 0.04583740234375, 0.042205810546875, 0.034912109375, -0.0091094970703125, -0.021026611328125, 0.0572509765625, -0.01461029052734375, 0.0093841552734375, -0.02581787109375, 0.0057525634765625, 0.0401611328125, 0.019622802734375, 0.04510498046875, 0.001972198486328125, -0.054229736328125, 0.0550537109375, 0.04168701171875, 0.00827789306640625, 0.043060302734375, -0.02398681640625, 0.0274658203125, -0.015289306640625, 0.023040771484375, 0.01947021484375, -0.0057373046875, 0.0618896484375, 0.01206207275390625, 0.040679931640625, 0.0178375244140625, -0.04046630859375, 0.00399017333984375, 0.0128326416015625, 0.0163116455078125, -0.0009012222290039062, 0.05865478515625, 0.053466796875, -0.01331329345703125, -0.008819580078125, -0.0308380126953125, 0.0020580291748046875, 0.019989013671875, -0.014404296875, 0.032470703125, -0.01117706298828125, -0.0020999908447265625, -0.026214599609375, -0.051025390625, 0.003551483154296875, 0.01357269287109375, -0.0472412109375, -0.0097198486328125, -0.001979827880859375, 0.0611572265625, 0.002681732177734375, -0.004299163818359375, 0.0343017578125, 0.010528564453125, 0.0128021240234375, -0.06402587890625, 0.06976318359375, -0.0418701171875, 0.0345458984375, 0.057525634765625, -0.0266265869140625, 0.041229248046875, -0.00830078125, -0.01177978515625, -0.022247314453125, 0.0201263427734375, 0.0017070770263671875, -0.0513916015625, -0.0303192138671875, -0.0004706382751464844, -0.01314544677734375, 0.04144287109375, -0.042999267578125, -0.062286376953125, -0.0160064697265625, -0.01145172119140625, -0.081298828125, -0.044403076171875, 0.047271728515625, -0.0897216796875, -0.00719451904296875, -0.0244903564453125, -0.0555419921875, -0.01678466796875, 0.0113983154296875, -0.003139495849609375, -0.0288238525390625, 0.00572967529296875, -0.034912109375, -0.00969696044921875, -0.027862548828125, 0.0277099609375, -0.0157318115234375, 0.0084381103515625, 0.01523590087890625, 0.06298828125, 0.0250244140625, -0.0299224853515625, 0.033477783203125, 0.0537109375, -0.0173187255859375, 0.0069732666015625, -0.025848388671875, 0.0174560546875, -0.0008420944213867188, 0.004413604736328125, 0.0080108642578125, -0.02105712890625, 0.003643035888671875, -0.0261688232421875, 0.0101470947265625, 0.0042724609375, 0.0333251953125, 0.01233673095703125, -0.0306549072265625, 0.01983642578125, 0.031005859375, -0.042724609375, -0.0267333984375, -0.01134490966796875, -0.0377197265625, 0.0328369140625, 0.02850341796875, 0.002872467041015625, -0.01300811767578125, 0.0240936279296875, 0.007556915283203125, 0.0043182373046875, -0.0158843994140625, -0.0131378173828125, 0.058563232421875, 0.0027866363525390625, 0.0295867919921875, -0.0019779205322265625, 0.002017974853515625, -0.0172882080078125, 0.0181884765625, 0.0009169578552246094, 0.01873779296875, -0.0022792816162109375, 0.01409912109375, -0.0163726806640625, -0.06988525390625, 0.045745849609375, -0.03570556640625, -0.0036754608154296875, -0.047088623046875, -0.030914306640625, 0.006626129150390625, 0.10302734375, -0.04248046875, -0.0137481689453125, -0.077880859375, -0.00028705596923828125, 0.000038564205169677734, -0.104248046875, 0.01514434814453125, 0.01461029052734375, -0.03619384765625, -0.00811004638671875, -0.00511932373046875, -0.0159759521484375, -0.0146636962890625, 0.0026874542236328125, -0.041717529296875, -0.01513671875, 0.03851318359375, 0.0081939697265625, 0.01116943359375, 0.035125732421875, -0.00600433349609375, 0.0367431640625, -0.042083740234375, 0.0006914138793945312, -0.060791015625, -0.0175933837890625, 0.050018310546875, 0.018646240234375, -0.029541015625, -0.0008411407470703125, -0.0277862548828125, 0.035491943359375, 0.0175933837890625, -0.011199951171875, -0.00881195068359375, -0.0249786376953125, -0.0374755859375, 0.03228759765625, 0.016632080078125, -0.005863189697265625, -0.0135345458984375, -0.03741455078125, -0.0487060546875, -0.0272216796875, -0.0214080810546875, 0.01172637939453125, 0.00856781005859375, -0.01264190673828125, -0.026641845703125, -0.0011959075927734375, 0.0074310302734375, 0.0287017822265625, -0.0098419189453125, 0.0004029273986816406, -0.03216552734375, -0.026519775390625, 0.0408935546875, 0.01491546630859375, -0.0386962890625, 0.004436492919921875, 0.057403564453125, 0.0173492431640625, -0.04156494140625, -0.07391357421875, 0.00009292364120483398, 0.03436279296875, -0.057373046875, 0.0465087890625, 0.02777099609375, -0.021728515625, 0.0770263671875, -0.0150146484375, 0.018096923828125, -0.0051727294921875, 0.036590576171875, -0.006336212158203125, -0.020111083984375, 0.031585693359375, -0.0138092041015625, 0.0211334228515625, -0.0075531005859375, -0.0298309326171875, -0.0279541015625, 0.0111236572265625, 0.0450439453125, -0.00559234619140625, 0.036956787109375, -0.0286102294921875, -0.0303497314453125, -0.005523681640625, 0.0169525146484375, 0.020965576171875, 0.039825439453125, -0.01320648193359375, 0.0192108154296875, 0.0176849365234375, -0.0032787322998046875, 0.023193359375, 0.059661865234375, 0.0022411346435546875, 0.028167724609375, 0.034515380859375, -0.018829345703125, -0.032196044921875, -0.0026035308837890625, -0.040435791015625, 0.0023441314697265625, -0.018402099609375, -0.01061248779296875, 0.018646240234375, 0.037811279296875, 0.005306243896484375, 0.01132965087890625, 0.029022216796875, 0.0175933837890625, -0.01192474365234375, -0.036285400390625, -0.0477294921875, 0.01812744140625, -0.060272216796875, 0.00333404541015625, -0.007110595703125, -0.005428314208984375, 0.031524658203125, 0.053192138671875, -0.02886962890625, 0.053558349609375, -0.01132965087890625, 0.0150604248046875, 0.032501220703125, 0.008331298828125, 0.028717041015625, 0.0264129638671875, -0.03033447265625, 0.00836181640625, 0.00830841064453125, -0.050994873046875, -0.00614166259765625, 0.01438140869140625, 0.06658935546875, -0.03466796875, -0.034698486328125, 0.0290985107421875, -0.034820556640625, -0.024261474609375, 0.036376953125, 0.04156494140625, -0.017578125, -0.0160369873046875, 0.029632568359375, 0.0170440673828125, 0.0157012939453125, -0.031463623046875, 0.031707763671875, 0.004009246826171875, 0.01209259033203125, 0.041656494140625, -0.08526611328125, 0.032684326171875, 0.0675048828125, -0.0058135986328125, -0.05615234375, -0.026885986328125, -0.047576904296875, -0.01061248779296875, -0.00982666015625, 0.0269012451171875, 0.0037403106689453125, -0.0012655258178710938, 0.046966552734375, -0.014892578125, -0.0528564453125, -0.00347900390625, 0.0057525634765625, 0.035797119140625, 0.02294921875, 0.00911712646484375, 0.005565643310546875, -0.050567626953125, -0.01404571533203125, 0.0037136077880859375, -0.03369140625, -0.043670654296875, -0.02996826171875, -0.0275726318359375, -0.0033721923828125, -0.006519317626953125, 0.025970458984375, 0.006439208984375, 0.037017822265625, -0.005641937255859375, 0.025726318359375, 0.006153106689453125, 0.07806396484375, -0.034515380859375, 0.028228759765625, -0.0005750656127929688, 0.005069732666015625, -0.03802490234375, 0.0186004638671875, -0.0101318359375, -0.08135986328125, 0.021392822265625, 0.029052734375, -0.0018510818481445312, -0.026275634765625, -0.03973388671875, 0.016937255859375, -0.022613525390625, -0.01380157470703125, -0.0152740478515625, -0.0292205810546875, 0.035125732421875, 0.00852203369140625, 0.01314544677734375, -0.0313720703125, -0.02386474609375, 0.007732391357421875, -0.01187896728515625, -0.02752685546875, 0.020782470703125, -0.01076507568359375, 0.0041961669921875, 0.0267181396484375, 0.0219573974609375, 0.005832672119140625, 0.051361083984375, -0.016571044921875, 0.03875732421875, 0.029205322265625, 0.023040771484375, 0.034210205078125, 0.0270843505859375, 0.01154327392578125, -0.01459503173828125, 0.0738525390625, 0.0192718505859375, -0.01482391357421875, 0.045745849609375, -0.03546142578125, -0.0010843276977539062, -0.00786590576171875, 0.028076171875, 0.005443572998046875, 0.00893402099609375, -0.0030059814453125, 0.0005483627319335938, 0.0196380615234375, -0.006893157958984375, -0.005702972412109375, -0.01338958740234375, 0.01218414306640625, -0.01216888427734375, -0.031585693359375, -0.016937255859375, -0.0192413330078125, 0.0038623809814453125, -0.01166534423828125, 0.0276947021484375, 0.0006556510925292969, -0.0238494873046875, -0.050872802734375, 0.0298309326171875, -0.0458984375, 0.0025634765625, 0.021575927734375, -0.04119873046875, -0.00646209716796875, -0.048797607421875, -0.029541015625, -0.039276123046875, 0.0024662017822265625, 0.0081329345703125, 0.00203704833984375, 0.008575439453125, 0.056915283203125, -0.0200653076171875, 0.001026153564453125, 0.04351806640625, -0.08050537109375, -0.0540771484375, -0.01708984375, -0.0007781982421875, 0.0521240234375, -0.05780029296875, 0.02484130859375, -0.039337158203125, 0.00960540771484375, -0.005584716796875, 0.005565643310546875, 0.050506591796875, -0.042327880859375, -0.01424407958984375, 0.03411865234375, 0.037322998046875, -0.016265869140625, 0.003936767578125, 0.006954193115234375, -0.03790283203125, -0.01024627685546875, 0.01259613037109375, -0.02301025390625, -0.0308074951171875, -0.002513885498046875, -0.09454345703125, 0.0557861328125, -0.0161895751953125, 0.08282470703125, 0.0267181396484375, -0.00647735595703125, -0.016265869140625, -0.03662109375, -0.0426025390625, 0.07611083984375, 0.0443115234375, 0.01629638671875, -0.04022216796875, -0.007228851318359375, 0.0107421875, 0.02874755859375, 0.053253173828125, 0.0021991729736328125, -0.0167999267578125, -0.00276947021484375, 0.0894775390625, 0.0867919921875, 0.03424072265625, -0.004184722900390625, 0.006259918212890625, 0.0186767578125, 0.059295654296875, -0.029144287109375, 0.039825439453125, -0.032440185546875, 0.001377105712890625, 0.0203399658203125, 0.01340484619140625, 0.0228271484375, 0.01001739501953125, 0.0194091796875, -0.01287841796875, -0.0013332366943359375, 0.0215911865234375, -0.012420654296875, 0.01166534423828125, 0.0357666015625, 0.06353759765625, -0.075439453125, 0.0019664764404296875, -0.035400390625, 0.0618896484375, 0.01000213623046875, -0.014404296875, 0.0302734375, 0.00550079345703125, 0.037353515625, -0.003742218017578125, -0.007045745849609375, 0.01076507568359375, 0.01708984375, -0.0013027191162109375, -0.0160980224609375, -0.002719879150390625, -0.06329345703125, 0.00872802734375, 0.051849365234375, -0.003810882568359375, -0.0325927734375, -0.055816650390625, 0.03521728515625, 0.005157470703125, -0.0263824462890625, 0.019195556640625, 0.0008916854858398438, -0.0127716064453125, 0.0290985107421875, -0.065673828125, 0.0203094482421875, 0.0142059326171875, 0.05255126953125, -0.02557373046875, -0.035614013671875, -0.051483154296875, -0.018280029296875, -0.04815673828125, 0.0037479400634765625, 0.0293426513671875, 0.03466796875, 0.0198822021484375, 0.034576416015625, 0.0191497802734375, -0.023529052734375, 0.01558685302734375, -0.0213165283203125, -0.043060302734375, 0.013763427734375, -0.004688262939453125, -0.0318603515625, -0.01274871826171875, 0.0287322998046875, 0.036956787109375, -0.0090484619140625, 0.005756378173828125, -0.01482391357421875, -0.0116729736328125, 0.0081939697265625, 0.01387786865234375, -0.0117340087890625, -0.0204620361328125, -0.03466796875, -0.017730712890625, 0.01202392578125, -0.007686614990234375, 0.01837158203125, -0.01727294921875, 0.0439453125, -0.0208587646484375, 0.05181884765625, -0.0143585205078125, -0.0109100341796875, 0.0374755859375, 0.007389068603515625, 0.0543212890625, 0.01470947265625, -0.09332275390625, -0.0203704833984375, -0.049072265625, -0.04315185546875, 0.034088134765625, 0.035552978515625, -0.0140380859375, 0.0306243896484375, 0.0034809112548828125, -0.004207611083984375, -0.0007863044738769531, 0.00656890869140625, 0.005413055419921875, 0.0227508544921875, 0.00975799560546875, 0.00579071044921875, -0.049072265625, -0.0295257568359375, -0.0162200927734375, 0.0106353759765625, 0.015228271484375, 0.07452392578125, -0.007232666015625, 0.0009179115295410156, 0.00365447998046875, 0.058837890625, -0.04052734375, -0.00030159950256347656, 0.034942626953125, 0.015594482421875, 0.02447509765625, -0.02655029296875, 0.01528167724609375, 0.01214599609375, 0.03277587890625, -0.033355712890625, -0.0017633438110351562, -0.0299835205078125, 0.024200439453125, -0.0247802734375, 0.0150299072265625, -0.0254364013671875, 0.003894805908203125, -0.0601806640625, -0.053070068359375, 0.0592041015625, 0.0240936279296875, 0.02056884765625, 0.03143310546875, 0.03460693359375, -0.0244903564453125, 0.0362548828125, -0.0165252685546875, 0.060821533203125, 0.033203125, -0.00591278076171875, -0.0258941650390625, 0.03009033203125, -0.006954193115234375, 0.015594482421875, 0.008575439453125, 0.064697265625, 0.0173187255859375, -0.03741455078125, -0.0289154052734375, -0.00568389892578125, 0.0178070068359375, -0.015716552734375, -0.00022912025451660156, 0.0086822509765625, -0.022247314453125, -0.0240631103515625, -0.004436492919921875, -0.017333984375, -0.0244903564453125, 0.006992340087890625, 0.0188751220703125, 0.0223388671875, 0.00504302978515625, -0.00811767578125, -0.021484375, 0.0161285400390625, 0.006542205810546875, -0.03765869140625, 0.006740570068359375, 0.006671905517578125, 0.00788116455078125, -0.027435302734375, -0.00632476806640625, -0.004611968994140625, 0.0244293212890625, 0.0128326416015625, -0.0141754150390625, -0.0273895263671875, 0.0298309326171875, 0.007526397705078125, 0.03485107421875, 0.06787109375, -0.06158447265625, -0.024261474609375, 0.0121002197265625, 0.0281829833984375, 0.050750732421875, 0.0199737548828125, -0.0224761962890625, -0.04583740234375, 0.041717529296875, -0.0177764892578125, -0.0220489501953125, 0.036834716796875, -0.032257080078125, -0.062347412109375, -0.0133209228515625, -0.0073394775390625, 0.0120086669921875, -0.032440185546875, -0.0167083740234375, 0.0943603515625, -0.01482391357421875, -0.021270751953125, -0.063720703125, 0.047576904296875, 0.00846099853515625, -0.0016050338745117188, -0.001667022705078125, -0.0174102783203125, -0.0003459453582763672, 0.021148681640625, 0.01922607421875, -0.0247802734375, 0.045867919921875, 0.00811767578125, -0.055572509765625, 0.0155792236328125, 0.00753021240234375, -0.00926971435546875, -0.01119232177734375, -0.003833770751953125, 0.06036376953125, 0.06243896484375, 0.0025501251220703125, 0.041107177734375, 0.030364990234375, -0.0182647705078125, 0.003753662109375, -0.00225067138671875, -0.06744384765625, -0.01123046875, 0.05853271484375, 0.08990478515625, 0.0211029052734375, -0.0196685791015625, 0.006717681884765625, -0.0129241943359375, -0.0909423828125, -0.0015115737915039062, 0.04833984375, -0.06298828125, -0.00567626953125, -0.0029449462890625, 0.0152587890625, -0.0233612060546875, -0.000522613525390625, -0.0230560302734375, -0.0382080078125, -0.016632080078125, -0.0034847259521484375, -0.00811767578125, 0.03509521484375, 0.0233917236328125, -0.0275726318359375, 0.0035305023193359375, -0.01519775390625, -0.00977325439453125, 0.0008997917175292969, -0.003032684326171875, 0.0017604827880859375, -0.019500732421875, -0.01444244384765625, 0.00814056396484375, 0.014556884765625, 0.007167816162109375, 0.0109100341796875, -0.0208892822265625, -0.04345703125, 0.00737762451171875, 0.0232696533203125, 0.00592041015625, -0.0233001708984375, 0.039306640625, 0.0413818359375, 0.016357421875, 0.00634002685546875, 0.06524658203125, 0.00018548965454101562, 0.0249786376953125, 0.00521087646484375, -0.01238250732421875, 0.0361328125, -0.040679931640625, 0.006168365478515625, -0.033111572265625, -0.0213165283203125, -0.0537109375, 0.031524658203125, -0.00502777099609375, -0.0391845703125, 0.0306854248046875 ]
b068661b755ac5a63bd8fca97c2b4aea89d5c4bf
Wordpress Stackexchange Q: Redirect members to custom page upon logging in through WP admin When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal. A: I use this plugin It works dandy for setting different redirects for each role and even user capabilities.
Q: Redirect members to custom page upon logging in through WP admin When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal. A: I use this plugin It works dandy for setting different redirects for each role and even user capabilities.
wordpress
{ "language": "en", "length": 67, "provenance": "stackexchange_00019.jsonl.gz:422177", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59506" }
[ 0.050079345703125, 0.00768280029296875, 0.0153656005859375, -0.0283966064453125, 0.01488494873046875, -0.029083251953125, 0.0367431640625, -0.034576416015625, -0.04412841796875, 0.00446319580078125, 0.060882568359375, -0.01305389404296875, -0.0396728515625, -0.0625, 0.0278472900390625, -0.016693115234375, 0.021270751953125, 0.01490020751953125, 0.03924560546875, -0.031036376953125, 0.0257720947265625, -0.00937652587890625, 0.022613525390625, 0.02642822265625, 0.01953125, 0.0037708282470703125, 0.045684814453125, -0.01155853271484375, 0.01439666748046875, 0.0016651153564453125, 0.02349853515625, -0.039794921875, 0.0109405517578125, 0.04559326171875, -0.02398681640625, -0.049285888671875, -0.02203369140625, 0.022979736328125, 0.0095672607421875, -0.007389068603515625, 0.049224853515625, -0.02337646484375, -0.01262664794921875, 0.0240478515625, -0.0234222412109375, -0.040191650390625, 0.0447998046875, -0.01580810546875, 0.031585693359375, -0.0168304443359375, 0.0022735595703125, -0.0132293701171875, 0.003421783447265625, -0.0297698974609375, -0.032135009765625, -0.0274505615234375, -0.03094482421875, 0.037139892578125, 0.039031982421875, -0.01116180419921875, -0.01885986328125, -0.029022216796875, 0.0201873779296875, -0.0023097991943359375, -0.01236724853515625, -0.0013189315795898438, 0.0004050731658935547, 0.04107666015625, -0.01221466064453125, -0.04388427734375, -0.0234222412109375, 0.01142120361328125, -0.009521484375, 0.0084228515625, -0.0330810546875, -0.0137481689453125, 0.01526641845703125, -0.007198333740234375, 0.01337432861328125, 0.03363037109375, -0.01131439208984375, -0.015594482421875, 0.0052947998046875, -0.03961181640625, 0.023834228515625, 0.006072998046875, -0.0279998779296875, -0.00839996337890625, -0.00070953369140625, -0.016998291015625, -0.0193939208984375, -0.038421630859375, 0.005641937255859375, 0.005970001220703125, -0.01078033447265625, -0.0215911865234375, 0.0164947509765625, 0.033843994140625, 0.03057861328125, 0.01303863525390625, -0.0252838134765625, -0.0260772705078125, -0.022186279296875, -0.0216064453125, -0.021270751953125, 0.01265716552734375, 0.0182647705078125, 0.053985595703125, 0.00579071044921875, 0.0153045654296875, -0.00864410400390625, -0.043701171875, 0.000614166259765625, -0.0185546875, -0.0208282470703125, 0.00737762451171875, -0.00922393798828125, -0.01052093505859375, -0.002994537353515625, 0.003826141357421875, -0.0209808349609375, 0.0005774497985839844, 0.052764892578125, -0.01406097412109375, -0.01375579833984375, -0.0127716064453125, -0.00795745849609375, -0.051544189453125, -0.00962066650390625, -0.0232391357421875, -0.006824493408203125, 0.00991058349609375, 0.043426513671875, 0.054840087890625, 0.0281524658203125, -0.01229095458984375, 0.0692138671875, -0.0259246826171875, -0.0041351318359375, 0.010986328125, 0.0191802978515625, -0.0280303955078125, -0.041656494140625, -0.01381683349609375, 0.0216827392578125, 0.049072265625, 0.0164337158203125, -0.0015516281127929688, -0.022552490234375, -0.058990478515625, 0.0158233642578125, -0.0310211181640625, -0.01021575927734375, 0.0009489059448242188, 0.061798095703125, 0.005138397216796875, 0.0323486328125, -0.0033168792724609375, 0.014068603515625, 0.03680419921875, 0.0347900390625, -0.002048492431640625, 0.0007915496826171875, 0.01186370849609375, -0.0033397674560546875, -0.010040283203125, -0.042388916015625, 0.0009412765502929688, 0.027069091796875, 0.01361846923828125, 0.033721923828125, -0.0174102783203125, 0.00013911724090576172, 0.01446533203125, 0.003704071044921875, 0.0102691650390625, -0.0184478759765625, 0.0396728515625, 0.0198211669921875, 0.025665283203125, 0.02862548828125, -0.0081024169921875, 0.040985107421875, 0.0247955322265625, -0.0293426513671875, 0.028533935546875, 0.0016632080078125, 0.0653076171875, 0.015869140625, 0.021636962890625, -0.0267486572265625, 0.00046515464782714844, -0.028411865234375, 0.035247802734375, -0.021728515625, -0.020050048828125, -0.0011644363403320312, 0.0099945068359375, -0.020721435546875, 0.0079498291015625, -0.00893402099609375, -0.00040030479431152344, -0.0206298828125, 0.00966644287109375, 0.0001844167709350586, -0.0167999267578125, 0.00173187255859375, 0.0105133056640625, 0.05364990234375, 0.00963592529296875, -0.033416748046875, -0.00308990478515625, 0.029510498046875, -0.09539794921875, -0.061370849609375, -0.0021381378173828125, -0.0284881591796875, 0.05462646484375, 0.01279449462890625, 0.042816162109375, 0.004543304443359375, -0.052581787109375, -0.013916015625, -0.0572509765625, 0.023681640625, -0.0124359130859375, -0.0228729248046875, -0.0126800537109375, 0.00695037841796875, 0.00162506103515625, -0.0194854736328125, 0.036346435546875, 0.009674072265625, 0.0167083740234375, -0.040191650390625, -0.02056884765625, -0.03289794921875, -0.046142578125, 0.0096435546875, 0.043487548828125, 0.0153350830078125, 0.017913818359375, -0.02789306640625, 0.038909912109375, -0.0023632049560546875, -0.0170440673828125, 0.007167816162109375, 0.022552490234375, 0.045623779296875, 0.059326171875, -0.01549530029296875, -0.0228271484375, 0.01039886474609375, -0.01654052734375, 0.032501220703125, 0.0306549072265625, 0.007556915283203125, -0.0232391357421875, 0.0134429931640625, -0.00029587745666503906, 0.0079193115234375, -0.005603790283203125, -0.031402587890625, 0.0084991455078125, -0.0400390625, -0.011566162109375, -0.01788330078125, -0.0124664306640625, -0.0165863037109375, -0.03021240234375, 0.0306854248046875, -0.0019006729125976562, -0.0015859603881835938, 0.0183258056640625, 0.06817626953125, -0.07073974609375, -0.03204345703125, -0.01226806640625, 0.04217529296875, -0.0093994140625, 0.00048661231994628906, 0.039031982421875, -0.036865234375, -0.0162353515625, 0.00623321533203125, -0.0186614990234375, -0.0206451416015625, 0.01148223876953125, 0.0229644775390625, -0.0271148681640625, 0.0230560302734375, -0.01953125, -0.03643798828125, 0.031707763671875, 0.030548095703125, -0.06719970703125, 0.01244354248046875, -0.048919677734375, 0.036468505859375, -0.0310211181640625, 0.032928466796875, 0.0753173828125, 0.0098419189453125, 0.01012420654296875, -0.002201080322265625, 0.007965087890625, -0.00382232666015625, 0.01041412353515625, 0.0006723403930664062, -0.02069091796875, -0.01096343994140625, 0.0203704833984375, 0.031402587890625, 0.04461669921875, -0.0014905929565429688, -0.026123046875, -0.007232666015625, 0.033599853515625, -0.057098388671875, -0.058502197265625, -0.039276123046875, -0.06005859375, 0.0188446044921875, -0.0023651123046875, -0.0082855224609375, 0.01013946533203125, 0.03155517578125, 0.0217437744140625, 0.0111236572265625, -0.002094268798828125, -0.025115966796875, -0.0297393798828125, -0.045654296875, -0.028350830078125, -0.008941650390625, -0.00876617431640625, 0.0019683837890625, 0.00495147705078125, -0.0258636474609375, -0.0584716796875, -0.01137542724609375, 0.016571044921875, 0.00847625732421875, -0.00687408447265625, -0.04083251953125, 0.01776123046875, 0.04559326171875, -0.0055084228515625, 0.0709228515625, 0.015167236328125, -0.019317626953125, -0.024871826171875, -0.004947662353515625, -0.01007843017578125, 0.01444244384765625, -0.0711669921875, -0.005336761474609375, 0.0294342041015625, -0.020294189453125, -0.035308837890625, 0.0198974609375, 0.0106048583984375, -0.0262298583984375, -0.00717926025390625, 0.02166748046875, -0.0374755859375, 0.01910400390625, -0.042755126953125, 0.005146026611328125, 0.01416015625, -0.0247650146484375, -0.0087738037109375, -0.0050201416015625, 0.0090179443359375, 0.036529541015625, 0.0208282470703125, 0.0277252197265625, -0.02252197265625, 0.024688720703125, 0.01336669921875, 0.002506256103515625, -0.00627899169921875, 0.01279449462890625, -0.0333251953125, -0.098876953125, 0.0546875, -0.04315185546875, 0.0216522216796875, -0.045928955078125, -0.0264129638671875, 0.0033473968505859375, 0.1417236328125, -0.04498291015625, 0.0115509033203125, 0.01459503173828125, 0.00634765625, -0.03948974609375, -0.00624847412109375, -0.10009765625, -0.00821685791015625, -0.0955810546875, 0.00504302978515625, 0.0092315673828125, -0.03765869140625, -0.018798828125, 0.0292816162109375, -0.065673828125, -0.0391845703125, 0.020904541015625, 0.01552581787109375, 0.01398468017578125, -0.0252685546875, 0.0071563720703125, -0.031494140625, 0.027191162109375, -0.01377105712890625, -0.07379150390625, -0.00023806095123291016, -0.07000732421875, 0.065185546875, 0.060455322265625, -0.02740478515625, 0.0225677490234375, 0.049652099609375, 0.019256591796875, -0.0179290771484375, -0.00641632080078125, -0.027252197265625, 0.035369873046875, 0.011566162109375, -0.032623291015625, 0.01195526123046875, -0.01364898681640625, -0.030487060546875, -0.0304107666015625, -0.00814056396484375, -0.007049560546875, -0.0185394287109375, 0.0193939208984375, -0.0276031494140625, -0.050933837890625, -0.030670166015625, -0.026519775390625, 0.0176239013671875, -0.02490234375, 0.01201629638671875, -0.02374267578125, -0.07415771484375, 0.054443359375, -0.00923919677734375, -0.0276947021484375, 0.0026092529296875, 0.05352783203125, 0.0182952880859375, -0.0178375244140625, -0.0120086669921875, 0.0211181640625, 0.03826904296875, -0.0157623291015625, 0.0643310546875, 0.0204315185546875, -0.0189361572265625, 0.09521484375, -0.01227569580078125, -0.00128173828125, -0.0206146240234375, 0.02490234375, -0.0112762451171875, -0.0209808349609375, 0.007373809814453125, -0.04364013671875, 0.01690673828125, 0.0653076171875, 0.0215301513671875, 0.0088348388671875, 0.0257415771484375, 0.005279541015625, -0.027374267578125, -0.050689697265625, -0.0186614990234375, -0.039886474609375, 0.0251312255859375, 0.036163330078125, 0.0061187744140625, 0.0107269287109375, -0.0105438232421875, 0.0187225341796875, -0.005039215087890625, -0.00684356689453125, 0.0303497314453125, -0.0286102294921875, -0.0034389495849609375, 0.0088653564453125, 0.01308441162109375, -0.02716064453125, 0.03546142578125, -0.0093841552734375, 0.09881591796875, 0.0166778564453125, -0.049224853515625, -0.0005698204040527344, -0.036285400390625, -0.00318145751953125, 0.0276947021484375, -0.031829833984375, 0.0379638671875, 0.0305633544921875, -0.035003662109375, 0.00644683837890625, -0.00867462158203125, -0.0140228271484375, -0.05419921875, -0.003215789794921875, -0.0164947509765625, -0.004913330078125, 0.0140380859375, 0.08026123046875, 0.00293731689453125, 0.04986572265625, -0.033172607421875, 0.04632568359375, 0.03472900390625, 0.0167083740234375, -0.0008502006530761719, 0.055755615234375, -0.016143798828125, -0.0133514404296875, -0.019256591796875, -0.029205322265625, -0.007457733154296875, 0.00004106760025024414, 0.03680419921875, 0.0111846923828125, -0.002819061279296875, 0.0214691162109375, -0.0107574462890625, 0.0020923614501953125, 0.07177734375, -0.004550933837890625, -0.09478759765625, -0.0240936279296875, 0.003299713134765625, 0.024932861328125, -0.05133056640625, -0.0267486572265625, 0.0018749237060546875, -0.0458984375, 0.0223236083984375, -0.0260772705078125, -0.0030841827392578125, -0.01026153564453125, -0.017333984375, -0.0408935546875, -0.034332275390625, 0.006748199462890625, -0.00913238525390625, -0.0014181137084960938, -0.0133514404296875, -0.0153961181640625, 0.01328277587890625, -0.025238037109375, 0.007610321044921875, -0.015716552734375, -0.007556915283203125, -0.0122222900390625, 0.0121002197265625, 0.050811767578125, 0.024871826171875, -0.0399169921875, -0.0082855224609375, -0.037872314453125, -0.002471923828125, -0.035125732421875, -0.051055908203125, -0.01509857177734375, -0.00984954833984375, 0.030792236328125, 0.0184783935546875, 0.0015230178833007812, -0.0435791015625, -0.0479736328125, 0.0111083984375, 0.0408935546875, 0.004734039306640625, 0.005279541015625, 0.012969970703125, -0.0207977294921875, 0.05743408203125, -0.002590179443359375, -0.000347137451171875, 0.0005726814270019531, -0.026702880859375, 0.03143310546875, 0.03253173828125, -0.03167724609375, -0.033843994140625, 0.006305694580078125, -0.0340576171875, 0.05902099609375, -0.0150146484375, -0.00435638427734375, -0.00620269775390625, -0.001712799072265625, -0.0237884521484375, 0.0013675689697265625, 0.01508331298828125, 0.043426513671875, -0.0489501953125, 0.0117340087890625, 0.051361083984375, 0.0261993408203125, -0.053619384765625, 0.0004730224609375, 0.042388916015625, 0.017608642578125, 0.0005679130554199219, -0.05267333984375, 0.0253448486328125, 0.0391845703125, 0.01360321044921875, 0.020904541015625, 0.0035400390625, 0.018768310546875, 0.0019121170043945312, 0.002628326416015625, -0.01117706298828125, -0.00907135009765625, 0.01898193359375, -0.003932952880859375, -0.01303863525390625, 0.0227203369140625, -0.00605010986328125, 0.020782470703125, 0.11163330078125, 0.08746337890625, -0.158203125, 0.01629638671875, 0.014129638671875, 0.0201873779296875, 0.05755615234375, 0.00807952880859375, 0.0092315673828125, 0.022247314453125, -0.012176513671875, -0.0107574462890625, -0.02545166015625, -0.010009765625, 0.0062713623046875, -0.022003173828125, 0.0008211135864257812, 0.042999267578125, 0.00788116455078125, -0.0222320556640625, 0.004146575927734375, -0.0035800933837890625, -0.00937652587890625, -0.02935791015625, 0.004924774169921875, 0.02655029296875, -0.0019969940185546875, -0.03955078125, 0.05999755859375, -0.03082275390625, 0.0198211669921875, 0.056182861328125, 0.004482269287109375, 0.0203094482421875, 0.048065185546875, -0.007843017578125, 0.019134521484375, 0.00008916854858398438, -0.0150146484375, 0.033966064453125, -0.025177001953125, -0.0304412841796875, 0.0217132568359375, -0.039764404296875, 0.0034351348876953125, -0.0134429931640625, 0.00493621826171875, 0.001895904541015625, -0.009613037109375, 0.0672607421875, -0.033782958984375, -0.00974273681640625, 0.0217742919921875, 0.00302886962890625, -0.0035686492919921875, -0.0171661376953125, -0.0105743408203125, -0.045623779296875, -0.00922393798828125, -0.0240478515625, -0.0223236083984375, 0.02545166015625, -0.032196044921875, -0.053741455078125, 0.0731201171875, -0.01113128662109375, 0.022491455078125, 0.0166778564453125, 0.0284271240234375, -0.019134521484375, 0.016510009765625, -0.0244140625, 0.054229736328125, 0.0377197265625, 0.0254669189453125, -0.037200927734375, -0.01116943359375, 0.016693115234375, 0.029571533203125, 0.00452423095703125, 0.024169921875, -0.0721435546875, 0.0055999755859375, 0.0136871337890625, 0.00820159912109375, 0.017852783203125, 0.0654296875, 0.0016317367553710938, 0.011444091796875, 0.034423828125, -0.0279693603515625, 0.0259552001953125, 0.0177764892578125, -0.0257415771484375, 0.01190948486328125, 0.0179901123046875, 0.01629638671875, -0.0105743408203125, 0.0162200927734375, -0.1004638671875, 0.019927978515625, 0.06011962890625, 0.035369873046875, -0.00807952880859375, -0.0026988983154296875, 0.0157012939453125, -0.0380859375, 0.01116943359375, -0.0298919677734375, 0.036376953125, 0.006824493408203125, 0.01629638671875, -0.006191253662109375, 0.0139007568359375, -0.0092315673828125, -0.0280609130859375, 0.0004284381866455078, 0.030426025390625, -0.035675048828125, 0.07763671875, 0.0005526542663574219, 0.01506805419921875, -0.069091796875, -0.01285552978515625, 0.007633209228515625, 0.07916259765625, -0.038360595703125, -0.0213623046875, 0.006328582763671875, 0.0124359130859375, 0.052490234375, 0.0009717941284179688, 0.06658935546875, -0.0198516845703125, -0.00812530517578125, -0.0171051025390625, 0.0287933349609375, 0.03143310546875, -0.01462554931640625, -0.006031036376953125, -0.017852783203125, -0.0286102294921875, 0.05706787109375, 0.012176513671875, -0.036224365234375, 0.00922393798828125, 0.00026154518127441406, 0.0295257568359375, -0.0150299072265625, 0.0216217041015625, 0.006015777587890625, -0.0009965896606445312, 0.003963470458984375, 0.00826263427734375, 0.0007648468017578125, -0.044281005859375, -0.0367431640625, 0.0265350341796875, 0.052215576171875, -0.004528045654296875, -0.02630615234375, -0.0040740966796875, 0.01470184326171875, -0.00847625732421875, -0.0183258056640625, 0.0182342529296875, -0.01025390625, 0.049957275390625, -0.0450439453125, 0.042572021484375, 0.01108551025390625, -0.006561279296875, -0.022186279296875, -0.016021728515625, 0.0640869140625, -0.0015802383422851562, 0.059844970703125, 0.0115966796875, -0.042205810546875, 0.0078125, -0.0122833251953125, 0.0921630859375, 0.0218353271484375, -0.053253173828125, -0.01342010498046875, -0.0210418701171875, -0.06951904296875, 0.031768798828125, 0.052001953125, -0.006916046142578125, -0.0060272216796875, -0.014739990234375, 0.0374755859375, -0.0195770263671875, -0.03668212890625, 0.007720947265625, -0.0423583984375, 0.02056884765625, -0.00820159912109375, -0.08990478515625, -0.02545166015625, -0.03668212890625, -0.016204833984375, 0.01430511474609375, 0.09716796875, 0.00200653076171875, 0.0167083740234375, -0.027801513671875, -0.00643157958984375, -0.0165557861328125, -0.04339599609375, 0.043701171875, -0.0144500732421875, -0.02606201171875, -0.0019273757934570312, -0.06353759765625, 0.0692138671875, -0.0152740478515625, 0.01255035400390625, 0.034271240234375, -0.0027370452880859375, -0.00481414794921875, 0.021087646484375, -0.04156494140625, -0.03570556640625, -0.051116943359375, -0.03094482421875, -0.0037975311279296875, 0.0036449432373046875, -0.0005435943603515625, -0.0049591064453125, 0.05084228515625, -0.034576416015625, -0.02685546875, -0.0008878707885742188, -0.062347412109375, -0.01393890380859375, 0.031402587890625, 0.00890350341796875, -0.01165771484375, 0.0082550048828125, -0.007030487060546875, -0.01016998291015625, 0.01678466796875, 0.00164794921875, 0.01220703125, 0.0404052734375, -0.0067291259765625, -0.01354217529296875, 0.0016870498657226562, -0.017120361328125, -0.0114288330078125, -0.018646240234375, -0.00423431396484375, -0.00403594970703125, -0.06878662109375, -0.026611328125, -0.06103515625, -0.01213836669921875, 0.029754638671875, -0.0303192138671875, -0.036224365234375, -0.0338134765625, 0.021453857421875, 0.03741455078125, -0.004299163818359375, -0.042388916015625, 0.015289306640625, -0.03656005859375, 0.045684814453125, -0.00818634033203125, -0.042724609375, 0.028594970703125, 0.033935546875, -0.0274810791015625, -0.00980377197265625, -0.032501220703125, -0.01296234130859375, -0.031646728515625, 0.00328826904296875, 0.0504150390625, -0.01291656494140625, -0.0132904052734375, -0.0278472900390625, -0.0270843505859375, 0.045013427734375, -0.06024169921875, -0.0283203125, 0.0201263427734375, -0.00945281982421875, -0.00004673004150390625, -0.01258087158203125, -0.0108489990234375, 0.031524658203125, -0.0016613006591796875, -0.0010471343994140625, -0.0025501251220703125, 0.0213470458984375, -0.02020263671875, -0.042083740234375, 0.037200927734375, 0.003131866455078125, -0.026397705078125, -0.050811767578125, 0.047119140625, 0.011138916015625, -0.060028076171875, -0.02471923828125, -0.017242431640625, -0.00838470458984375, 0.00936126708984375, 0.0296478271484375, 0.0089569091796875, 0.0269622802734375, 0.0450439453125, -0.0293426513671875, 0.0379638671875, 0.0251007080078125, 0.00989532470703125, 0.0033283233642578125, -0.0032806396484375, 0.033935546875, 0.060791015625, -0.01458740234375, -0.0399169921875, -0.01100921630859375, -0.02825927734375, -0.0263214111328125, -0.0380859375, 0.043792724609375, 0.000052928924560546875, 0.0007510185241699219, 0.018707275390625, -0.0187835693359375, -0.01432037353515625, -0.007266998291015625, -0.01007843017578125, 0.00881195068359375, -0.0201416015625, 0.002349853515625, -0.074951171875, -0.0259246826171875, 0.0184783935546875, -0.0382080078125, -0.0196533203125, 0.0204925537109375, -0.052001953125, 0.019683837890625, 0.033416748046875, -0.020263671875, 0.0005574226379394531, 0.0416259765625, 0.06549072265625, -0.054351806640625, 0.00435638427734375, -0.00848388671875, 0.0053558349609375, 0.02294921875, -0.06805419921875, 0.0406494140625, 0.027862548828125, -0.051055908203125, -0.0045166015625, 0.007568359375, 0.021209716796875, -0.04388427734375, -0.0421142578125, 0.0012235641479492188, 0.050811767578125, -0.03668212890625, 0.0472412109375, 0.01210784912109375, 0.0243072509765625, -0.0036220550537109375, 0.050140380859375, -0.006099700927734375, -0.006984710693359375, -0.021820068359375, 0.0391845703125, -0.01318359375, -0.0153045654296875, 0.00662994384765625, -0.01922607421875, 0.00592803955078125, 0.037017822265625, 0.038818359375, -0.0177154541015625, 0.01291656494140625, -0.000598907470703125, 0.0504150390625, 0.01056671142578125 ]
5cc3120c79719c0cf1f4581e3ed662aec1aa2c75
Wordpress Stackexchange Q: Returning all radio button options when using Advanced Custom Fields When using the Advanced Custom Fields plugin for Wordpress, Suppose I have a radio button field with possible choices: o Apples o Bananas o Cranberries How can I return each one of these options regardless of which one is selected? Thanks everyone A: Check out this page in order to discover your field key for your radio button: http://www.advancedcustomfields.com/docs/functions/get_field_object/ Next, insert this code where you are grabbing your field values: <?php $key = 'your_fieldkey_here'; $field = get_field_object($key); if ($field) { foreach ($field['choices'] as $key => $value) { echo ('KEY : ' . $key); echo ('<br />'); echo ('VALUE : ' . $value); echo ('<br />'); } } ?> This code will return your set of keys and values. This only issue with this method is that it will not work if your radio button field is inside of a repeater field.
Q: Returning all radio button options when using Advanced Custom Fields When using the Advanced Custom Fields plugin for Wordpress, Suppose I have a radio button field with possible choices: o Apples o Bananas o Cranberries How can I return each one of these options regardless of which one is selected? Thanks everyone A: Check out this page in order to discover your field key for your radio button: http://www.advancedcustomfields.com/docs/functions/get_field_object/ Next, insert this code where you are grabbing your field values: <?php $key = 'your_fieldkey_here'; $field = get_field_object($key); if ($field) { foreach ($field['choices'] as $key => $value) { echo ('KEY : ' . $key); echo ('<br />'); echo ('VALUE : ' . $value); echo ('<br />'); } } ?> This code will return your set of keys and values. This only issue with this method is that it will not work if your radio button field is inside of a repeater field.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:422201", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59570" }
[ 0.0180206298828125, -0.0158538818359375, -0.008575439453125, -0.00033664703369140625, -0.014251708984375, -0.0211639404296875, 0.037200927734375, -0.0014085769653320312, 0.0002651214599609375, 0.014434814453125, -0.00876617431640625, -0.0000941157341003418, -0.03033447265625, -0.03948974609375, 0.00685882568359375, -0.035919189453125, 0.0229034423828125, -0.00009965896606445312, 0.01324462890625, -0.0183868408203125, 0.03265380859375, -0.0235748291015625, -0.004489898681640625, 0.07080078125, 0.058624267578125, -0.039947509765625, 0.0260162353515625, -0.00495147705078125, 0.025787353515625, -0.003963470458984375, 0.0439453125, -0.01641845703125, 0.01275634765625, 0.026031494140625, -0.030517578125, -0.05145263671875, 0.02239990234375, -0.0021686553955078125, -0.0155487060546875, 0.041748046875, 0.031402587890625, -0.01203155517578125, -0.003536224365234375, 0.028717041015625, -0.0142822265625, -0.04473876953125, 0.043548583984375, -0.0347900390625, 0.0018024444580078125, 0.020599365234375, 0.01340484619140625, -0.0211639404296875, 0.01241302490234375, 0.0256805419921875, -0.02923583984375, -0.05010986328125, 0.016326904296875, -0.0595703125, 0.0255889892578125, 0.00971221923828125, -0.016021728515625, -0.0235443115234375, 0.0304107666015625, -0.0125732421875, 0.0106964111328125, 0.0032787322998046875, 0.002361297607421875, 0.022674560546875, -0.014129638671875, -0.01236724853515625, 0.01222991943359375, -0.0303955078125, 0.02593994140625, -0.02850341796875, -0.0023822784423828125, -0.01493072509765625, -0.007793426513671875, -0.0005965232849121094, 0.022796630859375, -0.0203094482421875, 0.021697998046875, 0.005889892578125, -0.0028533935546875, 0.0088348388671875, -0.0020389556884765625, -0.00264739990234375, 0.001087188720703125, -0.011322021484375, 0.0014133453369140625, -0.05291748046875, -0.00786590576171875, -0.0211181640625, -0.0592041015625, 0.0197296142578125, -0.0224151611328125, -0.02740478515625, 0.0191497802734375, 0.00605010986328125, 0.0159912109375, 0.005794525146484375, 0.005767822265625, -0.0355224609375, 0.006763458251953125, -0.0163116455078125, -0.01433563232421875, 0.029632568359375, 0.0176849365234375, 0.030364990234375, 0.034881591796875, 0.030426025390625, 0.0181121826171875, 0.016326904296875, -0.01934814453125, -0.0017843246459960938, -0.0184478759765625, -0.0011568069458007812, -0.04290771484375, 0.01276397705078125, -0.0230560302734375, 0.00750732421875, 0.021636962890625, 0.0219268798828125, -0.0166015625, -0.04052734375, -0.0238189697265625, -0.055633544921875, -0.050048828125, 0.02197265625, -0.062103271484375, 0.0828857421875, -0.0517578125, -0.0007390975952148438, 0.06939697265625, 0.0268402099609375, -0.007061004638671875, -0.047271728515625, 0.002971649169921875, -0.022186279296875, 0.00449371337890625, 0.0156402587890625, 0.0135040283203125, -0.042755126953125, -0.003391265869140625, 0.0236663818359375, -0.0184326171875, -0.0052947998046875, 0.0146331787109375, 0.018463134765625, -0.0254364013671875, -0.037200927734375, 0.021697998046875, 0.0033130645751953125, 0.057708740234375, 0.0150604248046875, -0.0037441253662109375, 0.0224456787109375, 0.08306884765625, -0.034759521484375, -0.0726318359375, -0.042327880859375, 0.033294677734375, 0.005336761474609375, -0.0158843994140625, -0.041412353515625, -0.043212890625, -0.0190277099609375, -0.041412353515625, -0.0010700225830078125, 0.024017333984375, 0.023895263671875, 0.01763916015625, -0.029083251953125, 0.01363372802734375, 0.023101806640625, 0.007537841796875, 0.034576416015625, 0.01454925537109375, 0.0247650146484375, -0.00015723705291748047, 0.00908660888671875, 0.015045166015625, -0.027801513671875, 0.041595458984375, -0.009521484375, -0.06011962890625, 0.051971435546875, -0.0193634033203125, 0.06549072265625, 0.044708251953125, 0.0016307830810546875, 0.010986328125, -0.00434112548828125, -0.019012451171875, 0.03216552734375, 0.01026153564453125, 0.0235137939453125, -0.04217529296875, 0.035614013671875, -0.0160675048828125, -0.056854248046875, -0.016143798828125, -0.01158905029296875, 0.0143890380859375, -0.01024627685546875, -0.0025119781494140625, -0.0195159912109375, -0.0026092529296875, 0.01496124267578125, -0.0164031982421875, 0.030059814453125, 0.02618408203125, 0.0273895263671875, -0.044708251953125, 0.0167388916015625, 0.01393890380859375, 0.005939483642578125, -0.017425537109375, 0.037506103515625, -0.0011444091796875, 0.031951904296875, -0.023590087890625, -0.044403076171875, -0.0243377685546875, -0.022705078125, 0.026153564453125, 0.003936767578125, -0.0204925537109375, -0.015777587890625, 0.01715087890625, 0.00432586669921875, -0.0258331298828125, 0.036163330078125, 0.02569580078125, 0.004367828369140625, -0.034942626953125, 0.029205322265625, 0.0262908935546875, -0.0192108154296875, -0.01134490966796875, 0.0273284912109375, 0.0169830322265625, 0.04180908203125, 0.006256103515625, 0.03448486328125, 0.075927734375, 0.01284027099609375, 0.021820068359375, -0.004474639892578125, -0.007541656494140625, 0.03814697265625, 0.01009368896484375, 0.0261688232421875, 0.01824951171875, -0.00537109375, -0.00926971435546875, 0.036102294921875, -0.06353759765625, -0.02801513671875, -0.002933502197265625, -0.0007672309875488281, -0.0001621246337890625, -0.054931640625, 0.008453369140625, -0.052703857421875, 0.04241943359375, 0.0221405029296875, 0.0309906005859375, 0.02960205078125, -0.04827880859375, 0.03643798828125, 0.01136016845703125, -0.0083160400390625, 0.021209716796875, 0.04205322265625, -0.0479736328125, 0.016265869140625, 0.004116058349609375, -0.014068603515625, 0.01116943359375, 0.01061248779296875, 0.00797271728515625, 0.04632568359375, -0.019073486328125, -0.0273895263671875, 0.00040793418884277344, -0.0297393798828125, -0.0159454345703125, -0.007354736328125, 0.004123687744140625, 0.01336669921875, 0.0186004638671875, 0.042205810546875, 0.0078125, 0.0225982666015625, -0.0193328857421875, -0.00988006591796875, 0.0284423828125, -0.03204345703125, 0.024566650390625, -0.01291656494140625, 0.0227203369140625, 0.06707763671875, 0.02508544921875, -0.0272216796875, -0.0082855224609375, -0.035491943359375, -0.034515380859375, 0.0307159423828125, 0.0004494190216064453, -0.0181884765625, -0.052001953125, 0.01434326171875, 0.03106689453125, 0.080322265625, -0.01053619384765625, -0.057891845703125, 0.0037593841552734375, 0.0406494140625, -0.08026123046875, -0.08856201171875, 0.01739501953125, -0.0150146484375, 0.00255584716796875, -0.00934600830078125, -0.0019664764404296875, -0.00604248046875, -0.01113128662109375, 0.00823211669921875, 0.018310546875, -0.01045989990234375, -0.03326416015625, -0.02099609375, -0.056396484375, -0.0241851806640625, -0.0113525390625, -0.0012645721435546875, 0.01081085205078125, 0.026885986328125, 0.005863189697265625, -0.024139404296875, -0.002132415771484375, -0.044586181640625, -0.00865936279296875, -0.01273345947265625, 0.0097808837890625, -0.0589599609375, 0.0124359130859375, -0.00946044921875, 0.04510498046875, 0.015899658203125, 0.002071380615234375, 0.007564544677734375, -0.0101470947265625, 0.030059814453125, 0.01305389404296875, -0.0068511962890625, -0.0009717941284179688, 0.043365478515625, 0.011322021484375, -0.0222625732421875, 0.0208282470703125, -0.00937652587890625, -0.0006546974182128906, -0.009979248046875, -0.007129669189453125, -0.0218963623046875, -0.01430511474609375, 0.004207611083984375, 0.01036834716796875, -0.02130126953125, -0.014068603515625, -0.035186767578125, 0.0011014938354492188, 0.022613525390625, 0.055267333984375, 0.0157318115234375, -0.0021953582763671875, -0.037994384765625, 0.035400390625, -0.005199432373046875, -0.0100860595703125, -0.0003807544708251953, 0.0085296630859375, -0.00531005859375, -0.06695556640625, 0.0369873046875, -0.072265625, -0.016937255859375, -0.0207061767578125, 0.0012454986572265625, 0.025665283203125, 0.0880126953125, -0.01812744140625, -0.005451202392578125, -0.037750244140625, 0.00804901123046875, -0.03411865234375, -0.042572021484375, -0.0172576904296875, 0.01042938232421875, -0.07806396484375, 0.0209808349609375, -0.01142120361328125, -0.0263824462890625, -0.0301055908203125, 0.0214080810546875, -0.051361083984375, -0.035858154296875, 0.00948333740234375, -0.01244354248046875, 0.01045989990234375, -0.02734375, 0.01242828369140625, -0.038421630859375, 0.0231170654296875, -0.02777099609375, -0.032257080078125, -0.005336761474609375, 0.0032978057861328125, 0.01364898681640625, 0.0006585121154785156, 0.007717132568359375, -0.004486083984375, 0.0272674560546875, -0.01385498046875, 0.0258941650390625, -0.01201629638671875, 0.00858306884765625, 0.016204833984375, 0.01163482666015625, 0.0014324188232421875, -0.00954437255859375, -0.013153076171875, -0.0020751953125, -0.0073089599609375, -0.0217742919921875, -0.038543701171875, -0.07904052734375, 0.0050201416015625, -0.042633056640625, -0.0277252197265625, -0.01174163818359375, -0.05389404296875, -0.0223236083984375, -0.027862548828125, -0.010345458984375, 0.00411224365234375, -0.0380859375, -0.03631591796875, -0.0297088623046875, -0.03387451171875, 0.03033447265625, 0.028350830078125, 0.042572021484375, 0.0167083740234375, -0.01103973388671875, -0.02166748046875, 0.0016641616821289062, -0.004108428955078125, 0.057586669921875, 0.00801849365234375, -0.0020198822021484375, 0.07830810546875, -0.0255584716796875, 0.01410675048828125, -0.058746337890625, 0.106201171875, -0.0259857177734375, -0.00146484375, 0.01593017578125, -0.0325927734375, 0.012786865234375, 0.0306396484375, -0.010345458984375, -0.01129150390625, -0.0260009765625, 0.044525146484375, -0.0179443359375, 0.00208282470703125, -0.034423828125, -0.0526123046875, 0.0137176513671875, -0.011077880859375, 0.038330078125, 0.033935546875, -0.00489044189453125, 0.0650634765625, 0.0248565673828125, 0.01019287109375, -0.0069427490234375, 0.005771636962890625, -0.0007143020629882812, 0.038116455078125, -0.00012183189392089844, 0.0137176513671875, -0.0016794204711914062, 0.0023250579833984375, -0.019622802734375, -0.042083740234375, -0.07794189453125, -0.0022029876708984375, -0.0118255615234375, 0.0188140869140625, 0.05841064453125, -0.0126953125, 0.0128631591796875, 0.08697509765625, 0.00882720947265625, 0.0016727447509765625, 0.002101898193359375, 0.0863037109375, -0.0301055908203125, 0.0635986328125, 0.019683837890625, -0.00879669189453125, -0.046051025390625, 0.09539794921875, 0.007904052734375, 0.0108795166015625, -0.0015192031860351562, 0.04052734375, 0.07159423828125, 0.0220947265625, 0.0350341796875, -0.033203125, -0.00258636474609375, -0.0225067138671875, -0.01531219482421875, -0.0281219482421875, -0.005992889404296875, -0.004009246826171875, 0.016143798828125, 0.0179290771484375, -0.0028076171875, 0.0325927734375, 0.0164794921875, -0.03302001953125, 0.06134033203125, 0.0308837890625, -0.056243896484375, -0.0204010009765625, 0.034881591796875, 0.01549530029296875, -0.0005402565002441406, -0.007579803466796875, -0.010772705078125, 0.0019397735595703125, 0.0153045654296875, -0.037078857421875, -0.0357666015625, 0.0284271240234375, 0.046051025390625, -0.056671142578125, -0.0115966796875, 0.010223388671875, -0.0740966796875, -0.055419921875, 0.0009598731994628906, -0.0173797607421875, 0.0283966064453125, -0.0140838623046875, 0.0297088623046875, -0.04071044921875, 0.005279541015625, -0.051727294921875, -0.00896453857421875, 0.06610107421875, 0.04425048828125, 0.003437042236328125, -0.023040771484375, -0.01788330078125, -0.030364990234375, -0.01441192626953125, -0.00982666015625, -0.01226043701171875, -0.0024814605712890625, -0.00852203369140625, 0.01306915283203125, -0.0002865791320800781, 0.0036106109619140625, 0.007053375244140625, 0.0174560546875, -0.007190704345703125, -0.004291534423828125, 0.038848876953125, -0.00434112548828125, -0.0007605552673339844, 0.041473388671875, 0.0199127197265625, -0.005828857421875, -0.041046142578125, -0.036895751953125, -0.0052337646484375, -0.04058837890625, -0.0189971923828125, 0.0045928955078125, -0.0215301513671875, 0.032470703125, 0.025970458984375, 0.00782012939453125, 0.0295867919921875, 0.0030307769775390625, 0.0128326416015625, -0.0042266845703125, 0.00946044921875, -0.005615234375, 0.0163116455078125, 0.027313232421875, -0.0338134765625, -0.0323486328125, 0.0267181396484375, 0.01531982421875, -0.01074981689453125, 0.0064849853515625, -0.00888824462890625, -0.0023365020751953125, -0.061187744140625, 0.078125, 0.034759521484375, -0.043365478515625, -0.00145721435546875, -0.010528564453125, -0.0220489501953125, -0.003936767578125, 0.0214996337890625, -0.0015048980712890625, -0.04022216796875, 0.037872314453125, -0.00162506103515625, -0.0176849365234375, 0.0212860107421875, -0.01132965087890625, -0.005794525146484375, 0.0306854248046875, 0.0202484130859375, -0.08758544921875, 0.006168365478515625, -0.021148681640625, 0.0112762451171875, 0.001323699951171875, 0.0118255615234375, -0.011199951171875, -0.0289459228515625, -0.024139404296875, 0.0077362060546875, -0.03546142578125, -0.0195465087890625, 0.004367828369140625, 0.011962890625, 0.00133514404296875, 0.02349853515625, -0.004604339599609375, -0.0625, -0.0181884765625, 0.041656494140625, -0.02520751953125, 0.007701873779296875, 0.01509857177734375, -0.0169830322265625, -0.0206298828125, -0.06256103515625, -0.0352783203125, -0.020111083984375, -0.037628173828125, 0.018096923828125, -0.0205078125, 0.01100921630859375, 0.029296875, -0.0257110595703125, 0.0081939697265625, -0.00395965576171875, -0.051483154296875, -0.01120758056640625, -0.034820556640625, -0.001636505126953125, 0.0205078125, -0.032928466796875, 0.02508544921875, 0.0002880096435546875, -0.0305328369140625, -0.01448822021484375, 0.0027751922607421875, 0.0882568359375, -0.005855560302734375, -0.04052734375, 0.00246429443359375, 0.01447296142578125, -0.0031719207763671875, -0.02886962890625, 0.01708984375, -0.05712890625, -0.01204681396484375, -0.021575927734375, -0.00875091552734375, 0.031707763671875, -0.0152130126953125, -0.05499267578125, 0.1044921875, 0.0139312744140625, 0.01117706298828125, 0.005985260009765625, 0.045623779296875, -0.03778076171875, 0.0204620361328125, 0.00037360191345214844, 0.0222930908203125, 0.070068359375, -0.03643798828125, -0.038238525390625, -0.044830322265625, -0.0419921875, 0.08416748046875, 0.01535797119140625, -0.0027980804443359375, -0.0076751708984375, 0.0112762451171875, 0.06787109375, 0.042938232421875, 0.01241302490234375, -0.0001614093780517578, 0.053497314453125, 0.06512451171875, 0.10260009765625, -0.0202789306640625, 0.04046630859375, -0.007480621337890625, 0.044342041015625, 0.07269287109375, -0.0027980804443359375, -0.0185546875, -0.0267791748046875, 0.029815673828125, -0.00799560546875, -0.0269622802734375, 0.00042247772216796875, -0.0272979736328125, 0.04119873046875, 0.0433349609375, 0.0570068359375, 0.0289459228515625, 0.0283050537109375, -0.00783538818359375, 0.055267333984375, -0.00701141357421875, 0.0260772705078125, 0.07586669921875, 0.032379150390625, 0.04913330078125, -0.007110595703125, 0.0224456787109375, -0.019256591796875, -0.001598358154296875, -0.009307861328125, -0.00409698486328125, -0.022918701171875, -0.03570556640625, 0.07781982421875, 0.046600341796875, -0.00414276123046875, -0.05059814453125, -0.06475830078125, 0.0072784423828125, 0.01438140869140625, 0.03173828125, 0.01690673828125, 0.03521728515625, -0.00275421142578125, 0.058868408203125, -0.087158203125, 0.0029449462890625, 0.07147216796875, 0.0099639892578125, -0.00371551513671875, 0.00989532470703125, -0.028289794921875, -0.00949859619140625, -0.021087646484375, -0.02569580078125, -0.0128631591796875, 0.0257110595703125, 0.04632568359375, 0.0220794677734375, 0.0270233154296875, -0.0141143798828125, 0.0013103485107421875, 0.023834228515625, 0.0107269287109375, -0.00537872314453125, 0.0287628173828125, 0.02410888671875, -0.0307464599609375, 0.0009784698486328125, -0.00525665283203125, -0.004833221435546875, 0.0287628173828125, 0.036712646484375, 0.0010309219360351562, -0.0200958251953125, 0.0183563232421875, -0.0162353515625, -0.005687713623046875, -0.032470703125, 0.0125732421875, 0.03228759765625, -0.003753662109375, 0.0225830078125, -0.03277587890625, 0.0775146484375, 0.043853759765625, 0.044464111328125, 0.0183258056640625, 0.0306243896484375, 0.01531219482421875, 0.0167999267578125, 0.0258636474609375, 0.07220458984375, -0.0885009765625, -0.0092926025390625, -0.04864501953125, -0.0706787109375, 0.0300750732421875, 0.0400390625, -0.031524658203125, 0.033050537109375, 0.005626678466796875, -0.04205322265625, 0.00499725341796875, 0.046844482421875, -0.003185272216796875, 0.0164031982421875, 0.010406494140625, -0.0194091796875, -0.022003173828125, -0.0028285980224609375, 0.033538818359375, -0.027496337890625, 0.00499725341796875, -0.031829833984375, 0.053497314453125, 0.003787994384765625, -0.0159912109375, -0.0292510986328125, 0.0161590576171875, -0.01346588134765625, 0.0287933349609375, -0.01055908203125, -0.0255279541015625, -0.00980377197265625, 0.004978179931640625, 0.0251312255859375, 0.01253509521484375, -0.0255126953125, -0.011627197265625, -0.008087158203125, 0.018402099609375, 0.0160675048828125, 0.0229949951171875, -0.01523590087890625, -0.06689453125, -0.06829833984375, 0.0010747909545898438, 0.0352783203125, 0.07037353515625, -0.022857666015625, 0.0136260986328125, 0.04168701171875, 0.0239105224609375, 0.029296875, -0.005199432373046875, 0.05657958984375, 0.038787841796875, -0.0250244140625, 0.0162200927734375, 0.021881103515625, -0.0285186767578125, 0.036468505859375, 0.0133819580078125, 0.004337310791015625, 0.01372528076171875, -0.04351806640625, 0.023956298828125, 0.0181121826171875, 0.0272979736328125, -0.014801025390625, -0.0125732421875, 0.0452880859375, -0.01085662841796875, -0.0207672119140625, -0.017669677734375, -0.006618499755859375, 0.00531768798828125, -0.038421630859375, 0.00785064697265625, -0.0059967041015625, -0.026397705078125, 0.006778717041015625, 0.0085601806640625, 0.004486083984375, -0.0156402587890625, -0.01340484619140625, -0.002010345458984375, -0.0299072265625, 0.031402587890625, -0.032989501953125, 0.00461578369140625, 0.0053863525390625, 0.050537109375, -0.0252685546875, -0.00350189208984375, -0.01229095458984375, 0.00167083740234375, 0.0035839080810546875, 0.012786865234375, 0.0085601806640625, -0.029022216796875, -0.0218048095703125, 0.016082763671875, 0.0240478515625, 0.06390380859375, 0.0924072265625, -0.002410888671875, 0.03106689453125, -0.00995635986328125, -0.0633544921875, -0.07958984375, 0.051605224609375, -0.09649658203125, -0.0236358642578125, -0.040557861328125, 0.04046630859375, 0.04412841796875, -0.018463134765625, -0.032501220703125, 0.049774169921875, -0.0167236328125, -0.00751495361328125, -0.021026611328125, -0.01111602783203125, 0.0132293701171875, 0.0074920654296875, 0.0047149658203125, -0.03460693359375, -0.061737060546875, -0.0021190643310546875, 0.0251617431640625, 0.01629638671875, 0.0246124267578125, 0.048736572265625, -0.05389404296875, 0.01282501220703125, -0.01552581787109375, 0.02056884765625, 0.01360321044921875, -0.016204833984375, -0.0233612060546875, -0.01036834716796875, -0.07275390625, -0.1112060546875, -0.0216522216796875, 0.050048828125, 0.01282501220703125, -0.06591796875, -0.01526641845703125, -0.004913330078125, 0.0238800048828125, 0.0257415771484375, 0.0009722709655761719, -0.046173095703125, -0.021484375, -0.043121337890625, 0.01129913330078125, -0.052215576171875, -0.007717132568359375, -0.071533203125, -0.0300445556640625, -0.0283966064453125, -0.0245208740234375, -0.0124359130859375, -0.01336669921875, -0.036102294921875, 0.00037026405334472656, 0.04656982421875, 0.011932373046875, -0.0286865234375, 0.0096588134765625, 0.018157958984375, -0.0247802734375, -0.00021386146545410156, 0.0094451904296875, -0.005580902099609375, -0.0007171630859375, 0.0304412841796875, -0.032135009765625, 0.0199432373046875, -0.02801513671875, 0.007053375244140625, -0.01568603515625, 0.01428985595703125, -0.0136871337890625, 0.03240966796875, -0.0023040771484375, 0.037841796875, 0.0006709098815917969, 0.0357666015625, -0.0362548828125, 0.052490234375, 0.0166473388671875, 0.0289306640625, -0.0164337158203125, 0.017059326171875, -0.0013284683227539062, 0.02667236328125, 0.0185089111328125, -0.0090179443359375, 0.05517578125, -0.041748046875, 0.00589752197265625, 0.029205322265625, -0.034027099609375, 0.00418853759765625, 0.0113525390625, 0.07879638671875, -0.00888824462890625, 0.0047149658203125 ]
aa557da094aa9441e1c377fd53fd839e4068cd30
Wordpress Stackexchange Q: List all the tags from a custom post type I'm looking for solution that will display all the tags that are used on a custom post type. I just want to list them all because I'm going to add jQuery code on each tag. :) A: the_terms() Both the_tags() and the_terms() uses get_the_term_list(), the different is that the_tags() has the default put in for post_tag. Watch them in wp-includes/category-template.php
Q: List all the tags from a custom post type I'm looking for solution that will display all the tags that are used on a custom post type. I just want to list them all because I'm going to add jQuery code on each tag. :) A: the_terms() Both the_tags() and the_terms() uses get_the_term_list(), the different is that the_tags() has the default put in for post_tag. Watch them in wp-includes/category-template.php A: wp_get_object_terms will have your answer. wp_get_object_terms( $post_ids, 'post_tag', $optional_args ); There is also get_the_terms which is simpler but also gets the job done. get_the_terms( $id, 'post_tag');
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:422208", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59583" }
[ 0.04998779296875, -0.00848388671875, 0.0006527900695800781, -0.03240966796875, 0.038360595703125, -0.031005859375, 0.0751953125, 0.0083160400390625, -0.012481689453125, 0.00882720947265625, -0.01358795166015625, -0.021820068359375, -0.031646728515625, -0.035888671875, 0.00447845458984375, -0.06085205078125, 0.058319091796875, -0.0234375, 0.043731689453125, -0.00968170166015625, 0.0250091552734375, 0.0352783203125, 0.03546142578125, 0.055084228515625, 0.037628173828125, -0.0160675048828125, 0.004169464111328125, -0.021728515625, 0.0123138427734375, -0.01800537109375, 0.02545166015625, 0.016754150390625, 0.005889892578125, 0.00969696044921875, -0.0186004638671875, -0.0240936279296875, -0.0089111328125, 0.01032257080078125, 0.0162506103515625, 0.001644134521484375, 0.036041259765625, -0.01502227783203125, 0.032684326171875, 0.01515960693359375, 0.00786590576171875, -0.0234222412109375, 0.03668212890625, -0.058685302734375, 0.0177764892578125, -0.03204345703125, 0.04144287109375, -0.035614013671875, 0.062469482421875, -0.054718017578125, -0.034149169921875, 0.00841522216796875, 0.01052093505859375, -0.0211181640625, 0.042205810546875, -0.034759521484375, -0.039031982421875, -0.035614013671875, 0.04107666015625, -0.008026123046875, -0.025726318359375, 0.0251312255859375, 0.0211334228515625, -0.005695343017578125, -0.056549072265625, -0.043365478515625, 0.0209808349609375, -0.04083251953125, 0.019439697265625, -0.006885528564453125, 0.0007910728454589844, -0.049835205078125, 0.0186920166015625, -0.0194244384765625, 0.007648468017578125, 0.0046539306640625, 0.024688720703125, -0.02532958984375, -0.04290771484375, 0.005054473876953125, -0.009307861328125, 0.010284423828125, -0.004566192626953125, -0.00768280029296875, -0.0245513916015625, -0.049530029296875, -0.0169525146484375, -0.005077362060546875, -0.061981201171875, 0.00017714500427246094, -0.0016040802001953125, -0.04095458984375, 0.0263214111328125, 0.034393310546875, -0.0082855224609375, -0.0006866455078125, 0.00376129150390625, -0.0318603515625, 0.0203704833984375, -0.0293121337890625, 0.0180206298828125, 0.029266357421875, -0.0309295654296875, 0.023651123046875, 0.07830810546875, 0.04876708984375, 0.02130126953125, -0.00539398193359375, 0.0006957054138183594, 0.00917816162109375, -0.02813720703125, -0.0239715576171875, -0.0379638671875, 0.0180816650390625, -0.0159912109375, 0.00292205810546875, 0.017364501953125, 0.0281219482421875, 0.01088714599609375, 0.00405120849609375, -0.0228118896484375, -0.0023555755615234375, -0.004367828369140625, -0.058349609375, -0.028717041015625, 0.0197296142578125, -0.0121612548828125, 0.0216827392578125, 0.00732421875, 0.004764556884765625, -0.0294647216796875, -0.0160980224609375, -0.00943756103515625, -0.03485107421875, -0.01084136962890625, 0.026763916015625, -0.01107025146484375, -0.03277587890625, 0.031585693359375, -0.02008056640625, 0.0226593017578125, 0.0164031982421875, 0.0270843505859375, 0.0251007080078125, -0.006114959716796875, -0.0275115966796875, 0.035888671875, 0.003841400146484375, 0.0283050537109375, 0.007568359375, 0.004215240478515625, -0.021148681640625, 0.0352783203125, -0.036376953125, -0.016876220703125, -0.0538330078125, 0.01316070556640625, -0.006229400634765625, 0.0010595321655273438, 0.0139007568359375, -0.000713348388671875, 0.01568603515625, -0.004276275634765625, 0.004909515380859375, 0.032196044921875, 0.0003917217254638672, 0.023193359375, -0.0300140380859375, 0.052734375, 0.0237884521484375, -0.00461578369140625, 0.033905029296875, -0.0201873779296875, -0.00756072998046875, 0.040374755859375, 0.01433563232421875, -0.019775390625, -0.0400390625, 0.036376953125, -0.0214080810546875, -0.07525634765625, -0.00652313232421875, 0.023895263671875, 0.07806396484375, 0.037689208984375, 0.020599365234375, 0.053314208984375, -0.0411376953125, -0.05072021484375, 0.0418701171875, 0.028594970703125, -0.002239227294921875, -0.08740234375, -0.0106201171875, -0.0082550048828125, -0.046630859375, -0.0243072509765625, -0.0180206298828125, 0.00785064697265625, 0.0024929046630859375, -0.043365478515625, 0.005741119384765625, -0.01416778564453125, 0.028900146484375, 0.005779266357421875, 0.0174560546875, 0.025848388671875, 0.0007085800170898438, -0.04168701171875, 0.005397796630859375, -0.0200042724609375, 0.0247955322265625, -0.03546142578125, -0.01451873779296875, 0.01206207275390625, -0.01349639892578125, 0.0289306640625, -0.00887298583984375, 0.01154327392578125, 0.028167724609375, 0.0178985595703125, 0.03399658203125, -0.037322998046875, 0.0197906494140625, -0.00646209716796875, 0.04937744140625, -0.07098388671875, -0.002696990966796875, 0.0254974365234375, 0.044586181640625, -0.0266876220703125, -0.0253753662109375, 0.015960693359375, -0.022216796875, 0.01617431640625, 0.049102783203125, 0.0232086181640625, 0.0296783447265625, -0.014312744140625, -0.01107025146484375, 0.0855712890625, -0.0259246826171875, -0.004329681396484375, 0.0006957054138183594, 0.03448486328125, 0.036041259765625, 0.0016994476318359375, 0.0019474029541015625, 0.03936767578125, 0.006298065185546875, 0.040863037109375, 0.0277557373046875, 0.0019311904907226562, 0.01253509521484375, 0.01763916015625, -0.019287109375, 0.0058441162109375, -0.00617218017578125, -0.030731201171875, -0.01261138916015625, 0.06744384765625, 0.0247802734375, 0.06341552734375, 0.057647705078125, -0.044769287109375, -0.0010356903076171875, 0.00768280029296875, 0.0285186767578125, 0.004718780517578125, 0.05230712890625, 0.01302337646484375, 0.0081634521484375, -0.023834228515625, -0.0233612060546875, -0.01464080810546875, 0.0227508544921875, 0.005157470703125, 0.03179931640625, -0.0102386474609375, -0.01141357421875, -0.00937652587890625, -0.07281494140625, 0.00572967529296875, 0.041351318359375, -0.03814697265625, -0.0098114013671875, 0.0010766983032226562, 0.038970947265625, -0.00742340087890625, -0.0010700225830078125, -0.00780487060546875, 0.011260986328125, -0.0266265869140625, -0.06109619140625, 0.042572021484375, -0.038787841796875, 0.0369873046875, 0.08013916015625, 0.02032470703125, 0.00937652587890625, 0.0125579833984375, -0.00669097900390625, 0.04156494140625, 0.01201629638671875, -0.01520538330078125, -0.005794525146484375, -0.08050537109375, -0.0389404296875, 0.02911376953125, 0.050750732421875, -0.0198211669921875, -0.049774169921875, -0.021942138671875, 0.032440185546875, -0.065185546875, -0.041473388671875, 0.049285888671875, -0.05645751953125, -0.03399658203125, -0.0662841796875, -0.043182373046875, 0.01318359375, -0.06292724609375, -0.0119476318359375, -0.0372314453125, -0.007755279541015625, -0.02020263671875, -0.0572509765625, -0.059417724609375, -0.016876220703125, 0.00029778480529785156, 0.01068115234375, 0.0168914794921875, 0.0841064453125, 0.0251617431640625, -0.065185546875, 0.01416015625, -0.0204315185546875, -0.04669189453125, 0.042144775390625, 0.008331298828125, -0.0002193450927734375, 0.0309906005859375, 0.0275726318359375, -0.042572021484375, 0.0223846435546875, -0.015716552734375, -0.041473388671875, -0.0005059242248535156, -0.0163116455078125, 0.032623291015625, 0.0137481689453125, -0.025299072265625, 0.0150146484375, 0.043212890625, -0.02911376953125, 0.0161590576171875, 0.01363372802734375, 0.005939483642578125, 0.0013580322265625, -0.02850341796875, -0.03460693359375, -0.0094451904296875, 0.02117919921875, 0.038482666015625, 0.039306640625, 0.00623321533203125, -0.0200042724609375, 0.051116943359375, 0.01123809814453125, 0.033416748046875, -0.03466796875, 0.0003082752227783203, -0.03857421875, 0.0545654296875, -0.01136016845703125, -0.0074615478515625, -0.002559661865234375, -7.748603820800781e-7, -0.0096282958984375, -0.06451416015625, 0.043121337890625, -0.031646728515625, -0.015899658203125, -0.02789306640625, -0.031585693359375, 0.004001617431640625, 0.09600830078125, -0.002315521240234375, 0.0092926025390625, -0.0322265625, -0.004779815673828125, 0.003238677978515625, -0.03033447265625, -0.042755126953125, -0.021575927734375, -0.08416748046875, 0.00261688232421875, -0.01216888427734375, -0.035797119140625, -0.0200958251953125, 0.0115509033203125, -0.056640625, -0.024749755859375, 0.03436279296875, -0.051177978515625, 0.01155853271484375, -0.032989501953125, 0.0289764404296875, -0.0732421875, -0.0050506591796875, -0.01513671875, -0.054443359375, 0.005702972412109375, -0.038055419921875, 0.00795745849609375, 0.0269775390625, -0.035675048828125, 0.01548004150390625, 0.024932861328125, 0.054718017578125, 0.00290679931640625, 0.01068878173828125, -0.0180816650390625, 0.010528564453125, -0.022125244140625, -0.005840301513671875, -0.031219482421875, -0.0265960693359375, -0.01483917236328125, -0.023895263671875, 0.043365478515625, 0.0030994415283203125, 0.01171112060546875, 0.0399169921875, -0.01262664794921875, -0.0087890625, -0.0086822509765625, -0.03887939453125, 0.0016927719116210938, -0.0228729248046875, -0.010223388671875, -0.003322601318359375, -0.026031494140625, 0.045745849609375, 0.0253753662109375, -0.027618408203125, 0.002628326416015625, 0.06689453125, 0.01433563232421875, -0.0247039794921875, -0.0772705078125, 0.00850677490234375, 0.04791259765625, -0.035736083984375, 0.0400390625, 0.031646728515625, -0.038848876953125, 0.06707763671875, 0.0003654956817626953, 0.00952911376953125, 0.0051116943359375, 0.05828857421875, -0.0156402587890625, -0.007244110107421875, 0.01409149169921875, -0.0269012451171875, -0.000522613525390625, 0.01450347900390625, -0.0279693603515625, -0.01837158203125, 0.0216827392578125, 0.053009033203125, -0.04571533203125, 0.043426513671875, -0.0247955322265625, -0.0157928466796875, 0.0195159912109375, 0.03521728515625, 0.0087890625, 0.03460693359375, -0.01446533203125, 0.0154571533203125, -0.003936767578125, 0.0077056884765625, -0.003170013427734375, 0.01337432861328125, 0.018890380859375, 0.0177154541015625, 0.03338623046875, 0.01959228515625, -0.0293731689453125, 0.00691986083984375, 0.0219573974609375, 0.0003790855407714844, -0.061767578125, 0.03680419921875, -0.007686614990234375, -0.006191253662109375, 0.02618408203125, 0.017425537109375, 0.01788330078125, 0.033294677734375, 0.0027618408203125, 0.020111083984375, 0.0008535385131835938, 0.0146484375, -0.031280517578125, -0.00322723388671875, 0.021820068359375, -0.02081298828125, -0.00125885009765625, 0.0390625, -0.0263671875, 0.027587890625, 0.00037097930908203125, 0.032623291015625, -0.0008840560913085938, 0.047088623046875, 0.0247955322265625, -0.02142333984375, -0.00848388671875, 0.0036525726318359375, -0.027069091796875, -0.044830322265625, -0.01511383056640625, 0.0030689239501953125, 0.05059814453125, 0.0018157958984375, -0.01258087158203125, 0.029388427734375, -0.0101318359375, 0.0010242462158203125, 0.01023101806640625, -0.016754150390625, -0.0226593017578125, -0.0268707275390625, -0.003917694091796875, 0.0309295654296875, -0.004909515380859375, -0.009796142578125, 0.054779052734375, -0.0087738037109375, 0.046661376953125, -0.025665283203125, 0.002841949462890625, -0.0026950836181640625, 0.01064300537109375, -0.0721435546875, -0.018524169921875, 0.003719329833984375, -0.0560302734375, -0.046417236328125, 0.00824737548828125, -0.0128021240234375, 0.0051422119140625, -0.022369384765625, 0.03704833984375, -0.0038051605224609375, -0.04266357421875, 0.01812744140625, 0.01136016845703125, 0.07476806640625, 0.04364013671875, -0.03900146484375, 0.0043487548828125, -0.049346923828125, -0.0033779144287109375, -0.00246429443359375, -0.07025146484375, -0.016387939453125, -0.03265380859375, 0.0277557373046875, 0.01329803466796875, 0.004917144775390625, -0.01459503173828125, 0.00007528066635131836, 0.01641845703125, 0.01020050048828125, 0.020416259765625, -0.0005359649658203125, 0.0309600830078125, -0.0015459060668945312, 0.0246429443359375, -0.00841522216796875, -0.006237030029296875, -0.01103973388671875, -0.0099639892578125, 0.0036144256591796875, -0.07049560546875, -0.035888671875, -0.0110931396484375, -0.0161285400390625, 0.04522705078125, 0.0207061767578125, 0.005397796630859375, 0.0313720703125, -0.03363037109375, -0.00013875961303710938, -0.010467529296875, 0.0190582275390625, -0.0237884521484375, -0.001800537109375, 0.059600830078125, 0.0360107421875, 0.030548095703125, 0.004192352294921875, -0.017852783203125, 0.0007462501525878906, 0.0264739990234375, 0.0267181396484375, -0.05322265625, 0.0059661865234375, -0.0016469955444335938, 0.01446533203125, -0.002605438232421875, 0.01227569580078125, 0.0177764892578125, 0.0041656494140625, 0.0084686279296875, -0.006603240966796875, -0.020355224609375, -0.04583740234375, 0.03924560546875, 0.01316070556640625, -0.0082855224609375, 0.06683349609375, -0.02545166015625, -0.035247802734375, 0.0099945068359375, 0.01751708984375, -0.03704833984375, 0.00858306884765625, 0.04010009765625, 0.0299224853515625, -0.03289794921875, 0.010040283203125, -0.032012939453125, -0.055694580078125, -0.0175323486328125, -0.0211639404296875, -0.0340576171875, -0.034271240234375, -0.0025539398193359375, 0.00586700439453125, -0.0238494873046875, 0.05609130859375, 0.00969696044921875, -0.019439697265625, -0.0214080810546875, 0.01300811767578125, -0.0187835693359375, -0.01788330078125, 0.008148193359375, -0.0194244384765625, 0.0030460357666015625, -0.0269927978515625, 0.035369873046875, -0.018951416015625, 0.0174407958984375, -0.005092620849609375, -0.01143646240234375, -0.0020885467529296875, 0.030548095703125, -0.0252838134765625, 0.006595611572265625, 0.008819580078125, -0.05413818359375, -0.07855224609375, -0.0203399658203125, -0.0138092041015625, 0.04254150390625, 0.01326751708984375, 0.03509521484375, -0.007114410400390625, -0.021026611328125, -0.01458740234375, -0.0018177032470703125, 0.0704345703125, -0.00429534912109375, -0.0193939208984375, 0.0304412841796875, 0.04132080078125, -0.002841949462890625, -0.0143585205078125, -0.01271820068359375, -0.029571533203125, 0.00811767578125, -0.0225067138671875, -0.0207366943359375, -0.01202392578125, -0.0230560302734375, -0.0733642578125, 0.1273193359375, 0.01336669921875, 0.02978515625, 0.01111602783203125, 0.047332763671875, -0.02392578125, 0.029693603515625, -0.049468994140625, 0.053192138671875, -0.011627197265625, 0.0367431640625, -0.07672119140625, -0.0114593505859375, -0.001567840576171875, 0.036651611328125, 0.00785064697265625, -0.0034999847412109375, -0.0211181640625, -0.013427734375, 0.034698486328125, 0.04144287109375, 0.0104522705078125, 0.003894805908203125, 0.0194854736328125, -0.0020198822021484375, 0.022857666015625, -0.0188140869140625, 0.032318115234375, -0.03118896484375, 0.005435943603515625, 0.0310211181640625, 0.018524169921875, 0.02923583984375, -0.01541900634765625, -0.04473876953125, -0.03173828125, 0.005126953125, 0.0166168212890625, 0.0120391845703125, 0.02392578125, 0.016815185546875, 0.02752685546875, -0.0697021484375, -0.007411956787109375, -0.03240966796875, 0.049163818359375, -0.0230560302734375, 0.03765869140625, -0.0206451416015625, 0.0003516674041748047, 0.0809326171875, -0.040863037109375, -0.0033740997314453125, 0.0086822509765625, -0.0168609619140625, 0.029510498046875, 0.002166748046875, 0.01195526123046875, -0.0792236328125, -0.0125579833984375, 0.039764404296875, 0.050750732421875, -0.040924072265625, -0.0633544921875, 0.0183868408203125, 0.01849365234375, 0.0111541748046875, 0.023345947265625, 0.023956298828125, -0.0007691383361816406, 0.046173095703125, -0.044403076171875, -0.01458740234375, 0.00420379638671875, 0.04962158203125, 0.0026302337646484375, -0.004192352294921875, -0.021026611328125, -0.047943115234375, -0.0416259765625, -0.0031795501708984375, 0.0159454345703125, 0.040313720703125, 0.03436279296875, 0.0287322998046875, 0.0009641647338867188, -0.0206146240234375, 0.00433349609375, 0.007686614990234375, 0.0037517547607421875, -0.0053558349609375, 0.0018606185913085938, -0.0169219970703125, -0.0078582763671875, 0.0151824951171875, 0.048858642578125, -0.0036563873291015625, 0.037994384765625, 0.00894927978515625, -0.028656005859375, 0.0013322830200195312, 0.045806884765625, -0.01546478271484375, -0.003856658935546875, -0.037689208984375, 0.0082855224609375, 0.0323486328125, -0.00496673583984375, 0.056243896484375, -0.0200958251953125, 0.06817626953125, -0.00969696044921875, 0.08172607421875, -0.0002300739288330078, 0.00209808349609375, 0.039794921875, -0.004436492919921875, 0.04931640625, 0.020172119140625, -0.06781005859375, -0.008148193359375, -0.07281494140625, -0.009124755859375, 0.04058837890625, 0.02972412109375, -0.01274871826171875, 0.0235443115234375, -0.0009737014770507812, -0.036163330078125, 0.00775146484375, 0.032958984375, 0.01715087890625, 0.0379638671875, -0.00426483154296875, 0.002040863037109375, -0.054107666015625, -0.01204681396484375, 0.010772705078125, -0.013885498046875, 0.02203369140625, -0.0026378631591796875, 0.040557861328125, 0.013427734375, -0.003040313720703125, 0.0509033203125, -0.0509033203125, -0.013275146484375, 0.039031982421875, 0.002471923828125, 0.0288238525390625, -0.014862060546875, -0.0202484130859375, 0.036834716796875, 0.037689208984375, -0.028106689453125, 0.035308837890625, -0.00849151611328125, -0.0003662109375, -0.0408935546875, 0.04852294921875, -0.02093505859375, -0.021942138671875, -0.0423583984375, -0.031982421875, 0.0230255126953125, 0.0198974609375, 0.0305328369140625, 0.01390838623046875, 0.01181793212890625, -0.0212860107421875, 0.01210784912109375, -0.02764892578125, 0.00945281982421875, 0.0240631103515625, 0.035919189453125, -0.04296875, 0.0257415771484375, -0.007343292236328125, -0.0032138824462890625, 0.0237579345703125, 0.021514892578125, 0.03656005859375, -0.056243896484375, -0.03460693359375, 0.00342559814453125, 0.043792724609375, 0.0010852813720703125, 0.032196044921875, -0.053497314453125, 0.00543212890625, -0.0021076202392578125, -0.01165008544921875, -0.04022216796875, -0.05633544921875, 0.02081298828125, 0.018402099609375, -0.01910400390625, -0.0308380126953125, -0.06744384765625, -0.01303863525390625, 0.0226593017578125, -0.0278778076171875, 0.0310211181640625, -0.0167083740234375, -0.0435791015625, 0.006816864013671875, -0.00485992431640625, -0.032684326171875, 0.02227783203125, 0.03558349609375, 0.000652313232421875, -0.01004791259765625, -0.021148681640625, 0.006214141845703125, -0.0038738250732421875, 0.040374755859375, 0.0477294921875, -0.06341552734375, -0.0203857421875, 0.07598876953125, 0.06781005859375, 0.11297607421875, 0.048309326171875, -0.0074615478515625, -0.01605224609375, 0.017486572265625, -0.04400634765625, -0.06817626953125, 0.040069580078125, -0.064453125, -0.0308074951171875, -0.01348114013671875, 0.01183319091796875, 0.0259552001953125, -0.038330078125, -0.1162109375, 0.08154296875, -0.041259765625, -0.032989501953125, -0.06591796875, 0.018585205078125, 0.0270233154296875, -0.0309600830078125, -0.029754638671875, 0.003559112548828125, -0.048004150390625, 0.0026493072509765625, 0.01306915283203125, 0.02923583984375, 0.034210205078125, -0.0182647705078125, -0.0304718017578125, -0.008575439453125, -0.017486572265625, 0.0148162841796875, 0.0209503173828125, -0.0019397735595703125, -0.016448974609375, 0.0233154296875, -0.06024169921875, -0.05419921875, -0.039154052734375, 0.0167388916015625, 0.01336669921875, -0.02313232421875, -0.0113525390625, -0.034698486328125, -0.0025997161865234375, -0.0016355514526367188, 0.006046295166015625, -0.00116729736328125, 0.0152740478515625, -0.017364501953125, -0.034637451171875, -0.0007510185241699219, 0.00739288330078125, -0.02203369140625, 0.00891876220703125, 0.0035037994384765625, -0.0169677734375, -0.010284423828125, -0.0008716583251953125, -0.045257568359375, -0.003299713134765625, -0.0229644775390625, 0.007114410400390625, -0.057098388671875, 0.06610107421875, 0.001796722412109375, -0.016387939453125, 0.005218505859375, -0.039459228515625, -0.0179443359375, 0.0033817291259765625, -0.042877197265625, 0.0037288665771484375, -0.038970947265625, 0.0234832763671875, 0.0355224609375, 0.018341064453125, 0.0040740966796875, -0.0004343986511230469, 0.0014801025390625, -0.021453857421875, 0.0228729248046875, 0.004451751708984375, 0.019134521484375, -0.03814697265625, 0.049102783203125, 0.0135955810546875, 0.033416748046875, -0.005176544189453125, 0.04608154296875, -0.0092315673828125, 0.054473876953125, 0.00882720947265625, -0.0350341796875, 0.0335693359375, -0.02337646484375, 0.005374908447265625, -0.0224761962890625, -0.0256500244140625, -0.0038280487060546875, -0.0174560546875, 0.012298583984375, -0.031890869140625, 0.0058746337890625 ]
4f3a52768ce3ba9713dfea5267a9b73355c9d1aa
Wordpress Stackexchange Q: How to check if post meta key exists or not in wordpress database I want to check if post meta key exists or not, out side of the loop. Is there any WordPress function to check if post meta key exist or not in WordPress database. I have to check this outside the loop. Any help will be highly appreciated. A: In case anyone else stumbles across this old question like I just did, it looks like the best way to handle this is using metadata_exists() see https://developer.wordpress.org/reference/functions/metadata_exists/ Here's what the syntax would be for post meta: metadata_exists('post', $post_id, 'meta_key_to_check');
Q: How to check if post meta key exists or not in wordpress database I want to check if post meta key exists or not, out side of the loop. Is there any WordPress function to check if post meta key exist or not in WordPress database. I have to check this outside the loop. Any help will be highly appreciated. A: In case anyone else stumbles across this old question like I just did, it looks like the best way to handle this is using metadata_exists() see https://developer.wordpress.org/reference/functions/metadata_exists/ Here's what the syntax would be for post meta: metadata_exists('post', $post_id, 'meta_key_to_check'); A: You could use get_post_custom(POST ID GOES HERE) which will return a multidimensional array with all custom fields of a particular post or page. So something like: $meta_data = get_post_custom(785); if ($meta_data['my_meta_key'][0] != "") ... would allow you check if a particular meta_key was empty or not.
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:422212", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59593" }
[ 0.011505126953125, -0.0114593505859375, 0.02520751953125, 0.032012939453125, -0.01177215576171875, -0.01312255859375, 0.0531005859375, -0.05633544921875, 0.0302276611328125, 0.037628173828125, -0.04107666015625, -0.043182373046875, 0.047119140625, -0.01383209228515625, -0.0489501953125, -0.040740966796875, 0.037078857421875, -0.01186370849609375, 0.03253173828125, -0.00848388671875, 0.0241546630859375, 0.01291656494140625, 0.0217742919921875, 0.005863189697265625, 0.036956787109375, -0.050262451171875, 0.042755126953125, -0.020751953125, 0.00485992431640625, -0.0291748046875, 0.031585693359375, 0.0272216796875, -0.001293182373046875, -0.00905609130859375, 0.039886474609375, -0.020111083984375, 0.0025043487548828125, 0.01263427734375, 0.032196044921875, -0.0246429443359375, 0.011749267578125, -0.0019550323486328125, 0.025909423828125, 0.0290374755859375, -0.00872802734375, -0.025665283203125, 0.001499176025390625, -0.03955078125, 0.0203704833984375, 0.033660888671875, -0.01424407958984375, 0.019134521484375, -0.01806640625, -0.00862884521484375, -0.003864288330078125, -0.02593994140625, 0.002948760986328125, -0.02435302734375, 0.0290069580078125, 0.00988006591796875, -0.016082763671875, 0.001781463623046875, 0.01105499267578125, -0.0145721435546875, -0.019561767578125, -0.005184173583984375, -0.043792724609375, 0.0220489501953125, -0.047088623046875, -0.035491943359375, 0.0211029052734375, -0.029449462890625, -0.004611968994140625, 0.00455474853515625, -0.0114593505859375, -0.033477783203125, 0.032196044921875, -0.00911712646484375, -0.01052093505859375, 0.028961181640625, 0.0016336441040039062, 0.0137786865234375, -0.0016307830810546875, -0.0215911865234375, -0.003841400146484375, -0.011383056640625, -0.00971221923828125, -0.0089111328125, -0.0311431884765625, -0.035675048828125, -0.0197906494140625, -0.043670654296875, -0.045745849609375, -0.01342010498046875, -0.00962066650390625, -0.03302001953125, 0.042083740234375, 0.09088134765625, -0.04901123046875, -0.0012121200561523438, -0.00534820556640625, -0.04266357421875, 0.0159912109375, -0.0474853515625, 0.01202392578125, 0.04010009765625, -0.013671875, -0.05572509765625, -0.00394439697265625, 0.0211181640625, -0.0085601806640625, -0.0254058837890625, -0.031463623046875, -0.03411865234375, -0.0190582275390625, 0.039886474609375, -0.020721435546875, -0.020355224609375, -0.00411224365234375, -0.0199737548828125, 0.02764892578125, 0.05859375, -0.01470184326171875, -0.08807373046875, 0.0274200439453125, -0.0059814453125, -0.046783447265625, -0.01537322998046875, -0.048126220703125, 0.054962158203125, -0.033233642578125, 0.005107879638671875, 0.0672607421875, 0.0098419189453125, -0.0176239013671875, -0.041229248046875, -0.003021240234375, -0.0129241943359375, -0.03515625, 0.0275115966796875, -0.0270843505859375, -0.049591064453125, 0.0221710205078125, -0.034149169921875, -0.037841796875, 0.04815673828125, 0.0184326171875, -0.017333984375, -0.026885986328125, -0.06829833984375, -0.04620361328125, -0.0157318115234375, 0.022430419921875, -0.00959014892578125, 0.015167236328125, -0.00908660888671875, 0.028564453125, -0.041656494140625, 0.0034694671630859375, -0.0267486572265625, 0.0170135498046875, -0.017181396484375, -0.002231597900390625, -0.0003895759582519531, -0.0288543701171875, 0.0157012939453125, -0.038848876953125, 0.001598358154296875, 0.02557373046875, 0.049224853515625, 0.0271453857421875, 0.0193023681640625, 0.03057861328125, -0.01364898681640625, -0.0220794677734375, -0.035858154296875, 0.01751708984375, -0.0021419525146484375, 0.0228271484375, 0.019805908203125, -0.01068878173828125, -0.0133819580078125, 0.056854248046875, -0.007381439208984375, -0.0643310546875, 0.05322265625, 0.01509857177734375, 0.07562255859375, 0.0176544189453125, 0.01123046875, 0.050628662109375, 0.005275726318359375, -0.01067352294921875, 0.01190948486328125, -0.0131072998046875, -0.03082275390625, 0.00553131103515625, -0.0032482147216796875, -0.01154327392578125, -0.0030612945556640625, -0.01141357421875, -0.00021636486053466797, -0.01352691650390625, -0.01336669921875, -0.07672119140625, -0.0241241455078125, -0.020477294921875, 0.039154052734375, -0.01161956787109375, 0.0163421630859375, 0.01593017578125, -0.0220184326171875, -0.0114288330078125, -0.007442474365234375, -0.0102386474609375, -0.019439697265625, -0.046844482421875, -0.0204010009765625, -0.032135009765625, 0.0318603515625, -0.057037353515625, 0.004730224609375, -0.0655517578125, -0.0225677490234375, 0.01381683349609375, 0.0272216796875, -0.01468658447265625, 0.011138916015625, 0.0168304443359375, 0.0546875, -0.044158935546875, -0.03106689453125, 0.012603759765625, -0.0292816162109375, -0.039794921875, -0.0022029876708984375, -0.03179931640625, -0.08349609375, -0.003826141357421875, 0.08221435546875, 0.03125, 0.038909912109375, -0.0010776519775390625, 0.0231170654296875, 0.0255126953125, -0.061798095703125, -0.0129852294921875, 0.002483367919921875, 0.00969696044921875, 0.034210205078125, -0.03369140625, 0.01027679443359375, 0.01873779296875, -0.0115966796875, 0.0011768341064453125, 0.03887939453125, -0.03778076171875, -0.01068878173828125, 0.00891876220703125, -0.004238128662109375, -0.013336181640625, -0.027557373046875, 0.0196533203125, -0.0286102294921875, 0.05731201171875, 0.005207061767578125, 0.053955078125, 0.036865234375, -0.012847900390625, 0.021453857421875, 0.0037097930908203125, -0.00557708740234375, 0.00966644287109375, 0.050018310546875, 0.018646240234375, 0.092529296875, -0.04925537109375, -0.035430908203125, 0.06158447265625, 0.07354736328125, -0.030426025390625, 0.019195556640625, -0.044891357421875, -0.00798797607421875, -0.01522064208984375, -0.0217742919921875, -0.0007224082946777344, -0.0106048583984375, 0.016998291015625, -0.0269927978515625, 0.0131378173828125, 0.012847900390625, -0.013397216796875, 0.03216552734375, 0.02630615234375, -0.03509521484375, -0.015380859375, -0.039398193359375, 0.05792236328125, -0.040618896484375, 0.011260986328125, 0.05621337890625, -0.038970947265625, 0.04248046875, -0.016876220703125, 0.0121307373046875, -0.04193115234375, 0.037933349609375, -0.01136016845703125, -0.0406494140625, -0.04180908203125, -0.01259613037109375, 0.017669677734375, 0.012664794921875, 0.01522064208984375, -0.0164337158203125, 0.0083160400390625, 0.005420684814453125, -0.0633544921875, -0.0887451171875, -0.0139312744140625, -0.01100921630859375, -0.0251312255859375, -0.00887298583984375, -0.005863189697265625, -0.00452423095703125, -0.0173492431640625, -0.003200531005859375, -0.021575927734375, -0.018829345703125, -0.07855224609375, -0.07806396484375, -0.08245849609375, -0.02630615234375, -0.00505828857421875, 0.01214599609375, 0.0011396408081054688, 0.0684814453125, 0.0050506591796875, -0.04339599609375, -0.0012350082397460938, -0.00391387939453125, -0.0214996337890625, -0.0023212432861328125, -0.005252838134765625, -0.0064697265625, -0.01078033447265625, 0.00418853759765625, 0.0223236083984375, 0.00966644287109375, -0.0135345458984375, -0.0086517333984375, 0.01331329345703125, -0.015838623046875, 0.02581787109375, 0.00968170166015625, -0.0261077880859375, 0.02532958984375, 0.04315185546875, -0.01506805419921875, -0.0174713134765625, -0.009002685546875, -0.042388916015625, 0.0298919677734375, 0.001873016357421875, 0.00047779083251953125, 0.004917144775390625, 0.0191650390625, 0.009490966796875, 0.018402099609375, -0.0137481689453125, -0.0138092041015625, 0.037994384765625, -0.007396697998046875, 0.01332855224609375, -0.003658294677734375, -0.033782958984375, -0.04541015625, 0.010223388671875, -0.036895751953125, -0.00971221923828125, -0.0274505615234375, 0.021209716796875, -0.0230255126953125, -0.02740478515625, 0.038543701171875, 0.0211639404296875, 0.06732177734375, -0.047210693359375, -0.040557861328125, -0.030975341796875, 0.0924072265625, 0.051361083984375, -0.03466796875, -0.023529052734375, -0.0110626220703125, -0.018218994140625, 0.003643035888671875, 0.01309967041015625, 0.01045989990234375, -0.0738525390625, 0.01076507568359375, 0.008880615234375, -0.035919189453125, -0.01258087158203125, -0.00691986083984375, -0.04620361328125, -0.023040771484375, 0.0167694091796875, -0.0728759765625, 0.050689697265625, -0.022918701171875, 0.032440185546875, -0.040679931640625, 0.01413726806640625, -0.06573486328125, -0.0250244140625, -0.004909515380859375, -0.053436279296875, 0.04571533203125, 0.03253173828125, 0.005096435546875, 0.004749298095703125, 0.015777587890625, 0.0091094970703125, 0.0229339599609375, 0.0015230178833007812, 0.001842498779296875, 0.0263824462890625, -0.01325225830078125, 0.00594329833984375, -0.02056884765625, -0.01264190673828125, -0.01085662841796875, -0.0284423828125, -0.02178955078125, -0.02752685546875, -0.0215301513671875, 0.00795745849609375, -0.0272216796875, 0.011810302734375, 0.0002868175506591797, -0.0026111602783203125, 0.0228118896484375, -0.02203369140625, 0.002574920654296875, 0.00992584228515625, -0.00394439697265625, 0.06427001953125, -0.0076446533203125, -0.0236053466796875, 0.005245208740234375, 0.09967041015625, 0.0133209228515625, -0.0214080810546875, -0.07525634765625, 0.00844573974609375, 0.01336669921875, -0.006122589111328125, 0.033203125, 0.001781463623046875, 0.0100860595703125, 0.0214691162109375, -0.0189971923828125, -0.01224517822265625, -0.01837158203125, 0.05267333984375, -0.0162200927734375, -0.0157318115234375, -0.00250244140625, -0.04150390625, 0.043426513671875, 0.0201416015625, 0.0179595947265625, -0.0120391845703125, 0.0511474609375, 0.0244140625, -0.01123809814453125, -0.02349853515625, -0.0279541015625, -0.02227783203125, 0.00847625732421875, -0.029083251953125, 0.007701873779296875, 0.004749298095703125, -0.0037670135498046875, -0.00557708740234375, -0.0033416748046875, 0.004352569580078125, -0.0182647705078125, 0.01387786865234375, -0.031280517578125, 0.03424072265625, -0.0216522216796875, -0.02056884765625, -0.0162353515625, -0.0082550048828125, 0.0577392578125, -0.0238189697265625, -0.0765380859375, 0.00786590576171875, -0.0216064453125, 0.024322509765625, 0.045379638671875, 0.00499725341796875, 0.0435791015625, 0.013031005859375, -0.043365478515625, -0.003570556640625, -0.0016021728515625, -0.0215301513671875, -0.04833984375, -0.01016998291015625, -0.0241546630859375, 0.006572723388671875, -0.02239990234375, 0.08251953125, -0.0570068359375, 0.056488037109375, -0.005992889404296875, 0.0216827392578125, 0.028045654296875, 0.054229736328125, 0.040771484375, -0.07403564453125, -0.003429412841796875, 0.0294036865234375, -0.028778076171875, -0.03753662109375, -0.0345458984375, -0.0103607177734375, 0.01519012451171875, 0.00026535987854003906, 0.01336669921875, 0.0390625, 0.029541015625, -0.0129241943359375, -0.0006575584411621094, 0.0023517608642578125, -0.027435302734375, -0.01373291015625, 0.01776123046875, 0.016937255859375, 0.00518035888671875, -0.01279449462890625, -0.005168914794921875, -0.00423431396484375, 0.0537109375, -0.0311737060546875, 0.0089569091796875, 0.02874755859375, 0.0191192626953125, -0.026214599609375, -0.0194854736328125, -0.00942230224609375, 0.07196044921875, -0.013580322265625, -0.017913818359375, -0.039581298828125, 0.033050537109375, -0.01263427734375, 0.0030574798583984375, -0.01334381103515625, 0.0102996826171875, 0.040313720703125, 0.00466156005859375, 0.032440185546875, -0.0103759765625, -0.0119781494140625, -0.0217132568359375, -0.0428466796875, -0.01522064208984375, 0.0310211181640625, -0.023284912109375, -0.025634765625, -0.0182647705078125, 0.028167724609375, 0.026611328125, 0.00756072998046875, -0.01605224609375, -0.005512237548828125, 0.0204315185546875, 0.0232086181640625, 0.0474853515625, -0.0020198822021484375, 0.06298828125, -0.01303863525390625, 0.0428466796875, 0.0140533447265625, 0.035919189453125, -0.0140838623046875, -0.02850341796875, 0.0118865966796875, -0.0153045654296875, -0.01806640625, -0.01055145263671875, 0.0239410400390625, -0.036529541015625, -0.022796630859375, -0.0100250244140625, 0.0190887451171875, 0.0007982254028320312, 0.00609588623046875, -0.0031833648681640625, 0.0068206787109375, 0.00838470458984375, 0.001255035400390625, 0.07513427734375, -0.035675048828125, -0.00848388671875, 0.016998291015625, -0.005527496337890625, 0.02056884765625, -0.0007076263427734375, -0.007083892822265625, 0.032135009765625, -0.043304443359375, 0.05145263671875, 0.06884765625, 0.0036258697509765625, 0.029571533203125, -0.0006656646728515625, -0.00199127197265625, -0.002628326416015625, -0.022064208984375, -0.01064300537109375, 0.01364898681640625, 0.06463623046875, 0.00865936279296875, -0.00616455078125, 0.068359375, -0.02374267578125, -0.01032257080078125, 0.031494140625, 0.0216827392578125, -0.0423583984375, -0.00548553466796875, 0.029998779296875, -0.002197265625, -0.0208892822265625, -0.0258026123046875, -0.0050201416015625, -0.01129150390625, 0.05389404296875, -0.00785064697265625, -0.027008056640625, 0.0172271728515625, -0.0011415481567382812, -0.0021572113037109375, -0.0416259765625, 0.0052642822265625, 0.01438140869140625, 0.01186370849609375, 0.02569580078125, 0.006622314453125, 0.0043792724609375, -0.01062774658203125, 0.01168060302734375, -0.0162506103515625, -0.0172576904296875, -0.055267333984375, -0.00572967529296875, -0.0229949951171875, 0.0036869049072265625, -0.006229400634765625, 0.060455322265625, 0.04949951171875, 0.049652099609375, 0.03631591796875, -0.043365478515625, 0.01971435546875, 0.01142120361328125, -0.062469482421875, -0.032379150390625, 0.0274810791015625, 0.036956787109375, -0.02703857421875, 0.048065185546875, -0.007579803466796875, -0.05126953125, -0.006618499755859375, -0.034027099609375, 0.07666015625, -0.04571533203125, -0.0167083740234375, 0.0023651123046875, 0.0233154296875, 0.007740020751953125, 0.019378662109375, 0.059417724609375, -0.005565643310546875, 0.032196044921875, 0.027191162109375, 0.0145111083984375, -0.052764892578125, 0.019439697265625, -0.044921875, 0.037933349609375, -0.01580810546875, 0.00737762451171875, -0.00777435302734375, 0.019500732421875, 0.00992584228515625, 0.01531982421875, -0.0660400390625, 0.0745849609375, -0.0136871337890625, 0.052337646484375, -0.0640869140625, 0.009857177734375, -0.002155303955078125, -0.0035915374755859375, 0.0802001953125, 0.00817108154296875, -0.015716552734375, -0.0231170654296875, 0.031646728515625, 0.040740966796875, -0.01239013671875, 0.0239410400390625, -0.00731658935546875, 0.022613525390625, 0.052276611328125, -0.031768798828125, 0.029022216796875, -0.00011104345321655273, -0.00826263427734375, 0.017730712890625, 0.00609588623046875, -0.0060577392578125, -0.00788116455078125, -0.00829315185546875, 0.033538818359375, -0.013885498046875, -0.0289154052734375, -0.00441741943359375, 0.020263671875, 0.0159149169921875, -0.0021572113037109375, -0.03955078125, -0.0276031494140625, -0.01139068603515625, 0.0219879150390625, -0.0231475830078125, 0.0172882080078125, 0.018463134765625, 0.017425537109375, 0.04620361328125, -0.007198333740234375, 0.0025234222412109375, 0.026214599609375, -0.0181884765625, 0.082763671875, 0.038543701171875, 0.00673675537109375, -0.0258636474609375, 0.04052734375, 0.043212890625, 0.078369140625, -0.06439208984375, -0.035491943359375, 0.02008056640625, -0.006786346435546875, -0.039703369140625, -0.0138702392578125, -0.052276611328125, 0.0501708984375, 0.07354736328125, -0.056732177734375, 0.00604248046875, 0.02593994140625, 0.049072265625, -0.00576019287109375, 0.00476837158203125, -0.06378173828125, -0.035247802734375, -0.049530029296875, 0.0021648406982421875, 0.0399169921875, 0.0780029296875, 0.0230560302734375, 0.015045166015625, -0.00656890869140625, -0.0283050537109375, -0.0125274658203125, 0.02886962890625, -0.019073486328125, 0.02630615234375, -0.078125, -0.077392578125, 0.029022216796875, 0.062255859375, 0.0059356689453125, 0.0372314453125, 0.042938232421875, 0.048309326171875, 0.003681182861328125, -0.0121917724609375, 0.04339599609375, -0.0109100341796875, -0.0162811279296875, -0.0294342041015625, 0.004642486572265625, 0.0104827880859375, 0.0224456787109375, -0.0125274658203125, 0.05010986328125, 0.0091400146484375, 0.01357269287109375, 0.0248260498046875, 0.0174407958984375, 0.0016117095947265625, 0.036590576171875, 0.0408935546875, 0.040802001953125, 0.05364990234375, -0.05633544921875, -0.0167999267578125, -0.005462646484375, -0.0333251953125, -0.0102691650390625, 0.0186309814453125, -0.0234222412109375, 0.02996826171875, 0.0367431640625, -0.0246124267578125, 0.0295867919921875, 0.026458740234375, -0.008148193359375, 0.019012451171875, 0.032989501953125, 0.0029315948486328125, -0.039031982421875, -0.01032257080078125, 0.019134521484375, -0.007663726806640625, -0.0228424072265625, 0.04248046875, 0.00798797607421875, -0.015838623046875, -0.022613525390625, -0.00539398193359375, -0.006992340087890625, -0.0175933837890625, -0.0078887939453125, 0.006969451904296875, 0.007556915283203125, -0.0041961669921875, -0.0124664306640625, 0.00518798828125, 0.0531005859375, -0.0184478759765625, 0.01953125, -0.0259857177734375, 0.01904296875, -0.0418701171875, -0.0103607177734375, -0.028228759765625, -0.057220458984375, -0.026458740234375, 0.0298309326171875, 0.013397216796875, 0.057342529296875, -0.0000330805778503418, 0.007171630859375, -0.0028743743896484375, -0.0283050537109375, 0.016326904296875, -0.01314544677734375, 0.0098114013671875, 0.0277557373046875, -0.02130126953125, 0.0287322998046875, -0.0299530029296875, -0.0289764404296875, 0.0157470703125, 0.0010662078857421875, -0.0268096923828125, -0.0008573532104492188, -0.00550079345703125, 0.0361328125, 0.061248779296875, 0.040618896484375, -0.0263214111328125, 0.009979248046875, 0.062225341796875, -0.0208282470703125, 0.032196044921875, 0.0200042724609375, -0.000186920166015625, -0.0323486328125, -0.017791748046875, 0.0006613731384277344, -0.0238037109375, -0.020538330078125, -0.0010862350463867188, -0.00662994384765625, 0.01474761962890625, -0.01355743408203125, -0.0038623809814453125, 0.01389312744140625, -0.0309295654296875, 0.004291534423828125, -0.024505615234375, 0.02838134765625, 0.007030487060546875, 0.057708740234375, -0.01702880859375, 0.003269195556640625, 0.0123291015625, -0.004329681396484375, 0.0311737060546875, 0.03228759765625, 0.0275115966796875, -0.062103271484375, -0.057373046875, 0.0089111328125, 0.0458984375, 0.0250091552734375, 0.09649658203125, -0.022613525390625, -0.00711822509765625, -0.00434112548828125, -0.0082855224609375, -0.03802490234375, 0.0322265625, -0.087890625, -0.03155517578125, -0.0504150390625, 0.03900146484375, 0.05987548828125, -0.0211639404296875, -0.1126708984375, 0.03826904296875, -0.048736572265625, -0.031036376953125, -0.03302001953125, -0.038604736328125, -0.0197906494140625, 0.05352783203125, 0.005931854248046875, -0.00902557373046875, -0.040618896484375, 0.0426025390625, 0.019317626953125, -0.0169525146484375, 0.04229736328125, 0.001129150390625, -0.045318603515625, 0.0189361572265625, 0.00418853759765625, -0.009796142578125, 0.001346588134765625, 0.0122528076171875, 0.0014085769653320312, 0.03204345703125, -0.03485107421875, -0.04534912109375, -0.03021240234375, -0.02581787109375, -0.00753021240234375, -0.03509521484375, -0.0038051605224609375, 0.00998687744140625, 0.06292724609375, 0.051300048828125, 0.0155029296875, -0.061920166015625, -0.031829833984375, -0.04388427734375, -0.0250091552734375, -0.02191162109375, 0.0103912353515625, -0.0635986328125, 0.0085601806640625, -0.00476837158203125, -0.0074005126953125, -0.021240234375, -0.0112457275390625, -0.0246429443359375, -0.0181427001953125, 0.00044989585876464844, -0.0016527175903320312, -0.01192474365234375, -0.03302001953125, 0.045684814453125, -0.0288238525390625, 0.00812530517578125, 0.0045318603515625, 0.0239410400390625, 0.0151824951171875, 0.022918701171875, 0.024322509765625, -0.00014674663543701172, 0.00939178466796875, 0.01369476318359375, 0.0283355712890625, -0.012481689453125, 0.018035888671875, -0.035400390625, 0.004848480224609375, 0.01873779296875, 0.0033054351806640625, 0.004337310791015625, -0.0245208740234375, 0.0472412109375, -0.015716552734375, 0.07373046875, 0.02081298828125, 0.051544189453125, 0.0036754608154296875, 0.042266845703125, -0.0026912689208984375, -0.03839111328125, -0.0015277862548828125, -0.038604736328125, 0.0059967041015625, -0.004405975341796875, -0.001819610595703125, -0.0423583984375, 0.028350830078125, -0.0079193115234375, 0.004749298095703125, 0.0289764404296875 ]
bc88243008bc530e62e6c83d01656e2cedfe67b9
Wordpress Stackexchange Q: Getting the post_id in wp_ajax function I wrote a custom AJAX function in which I have assigned a post type to be a child of another post type. In one function I am looping through those child posts, and I want to update the database to reflect the post_parent(the post which the child posts belong to). Problem is, I cannot grab that post's ID from anywhere to update the db. Any suggestions? Here is the jQuery function: $.ajax({ url: ajaxurl, type: 'POST', async: true, cache: false, dataType: 'json', data: { action: 'new_item_save', item_order: $('#img-sortable').sortable('toArray').toString() } }); And here is the PHP callback: function save_new_img_order( $post ) { global $wpdb; $pid = $post->ID; $order = explode( ',', $_POST[ 'item_order' ] ); $counter = 0; foreach ( $order as $item_id ) { $wpdb->update( $wpdb->posts, array( 'menu_order' => $counter, 'post_parent' => $pid, ), array( 'ID' => $item_id ) ); $counter ++; } die( 1 ); } add_action( 'wp_ajax_new_item_save', 'save_new_img_order' ); A: Its an old question however would like to answer for other people Within ajax function hooked to wp_ajax do this. $url = wp_get_referer(); $post_id = url_to_postid( $url );
Q: Getting the post_id in wp_ajax function I wrote a custom AJAX function in which I have assigned a post type to be a child of another post type. In one function I am looping through those child posts, and I want to update the database to reflect the post_parent(the post which the child posts belong to). Problem is, I cannot grab that post's ID from anywhere to update the db. Any suggestions? Here is the jQuery function: $.ajax({ url: ajaxurl, type: 'POST', async: true, cache: false, dataType: 'json', data: { action: 'new_item_save', item_order: $('#img-sortable').sortable('toArray').toString() } }); And here is the PHP callback: function save_new_img_order( $post ) { global $wpdb; $pid = $post->ID; $order = explode( ',', $_POST[ 'item_order' ] ); $counter = 0; foreach ( $order as $item_id ) { $wpdb->update( $wpdb->posts, array( 'menu_order' => $counter, 'post_parent' => $pid, ), array( 'ID' => $item_id ) ); $counter ++; } die( 1 ); } add_action( 'wp_ajax_new_item_save', 'save_new_img_order' ); A: Its an old question however would like to answer for other people Within ajax function hooked to wp_ajax do this. $url = wp_get_referer(); $post_id = url_to_postid( $url ); A: The ajax hook won't pass back a $post object to your callback - how on earth would it know to do so! You need to send the data yourself: data:{ action: 'new_item_save', post_id: POST_ID_EITHER_PARSED_FROM_DOM_OR_PHP_ECHOED, item_order: $('#img-sortable').sortable('toArray').toString() } ...and then grab it from $_POST in your handler: function save_new_img_order() { $post_id = $_POST['post_id']; ... }
wordpress
{ "language": "en", "length": 242, "provenance": "stackexchange_00019.jsonl.gz:422217", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59611" }
[ 0.088623046875, 0.02178955078125, 0.0132598876953125, -0.05322265625, 0.0458984375, -0.01611328125, 0.0374755859375, -0.036834716796875, 0.020111083984375, 0.01385498046875, -0.034912109375, -0.04986572265625, -0.01401519775390625, -0.0284423828125, -0.0384521484375, -0.057464599609375, 0.06353759765625, -0.048492431640625, 0.0330810546875, 0.00826263427734375, 0.01143646240234375, 0.042572021484375, 0.04461669921875, 0.052215576171875, 0.05126953125, 0.0034618377685546875, 0.01265716552734375, -0.0224456787109375, 0.046142578125, 0.0009431838989257812, 0.0176544189453125, -0.02294921875, 0.006801605224609375, 0.00394439697265625, -0.00304412841796875, -0.035858154296875, 0.03558349609375, -0.01021575927734375, 0.00595855712890625, 0.0404052734375, 0.0230255126953125, -0.004253387451171875, -0.0037059783935546875, -0.006618499755859375, -0.02716064453125, -0.044921875, 0.036865234375, -0.0075531005859375, 0.025299072265625, 0.00970458984375, 0.009765625, 0.01532745361328125, 0.01531219482421875, 0.0164947509765625, 0.00080108642578125, 0.0004267692565917969, -0.0145263671875, -0.004878997802734375, 0.0299530029296875, 0.031005859375, -0.0282135009765625, -0.0122528076171875, 0.0081634521484375, -0.04010009765625, -0.00726318359375, 0.0059661865234375, 0.064697265625, 0.0208892822265625, -0.0321044921875, -0.0300750732421875, 0.0090789794921875, 0.00858306884765625, -0.0246429443359375, 0.00481414794921875, -0.00835418701171875, -0.023681640625, 0.036834716796875, -0.0161590576171875, -0.0280303955078125, 0.047698974609375, 0.004688262939453125, -0.031951904296875, -0.032684326171875, 0.028594970703125, -0.0209197998046875, 0.0206298828125, -0.01171112060546875, -0.008026123046875, -0.06036376953125, -0.03424072265625, -0.036865234375, -0.0760498046875, -0.052459716796875, 0.0082244873046875, -0.0021190643310546875, -0.01605224609375, 0.004100799560546875, 0.0731201171875, -0.048736572265625, -0.0008215904235839844, 0.00453948974609375, -0.024932861328125, 0.01195526123046875, -0.031707763671875, 0.0070648193359375, 0.0121612548828125, 0.035552978515625, -0.0275421142578125, 0.020660400390625, -0.0002930164337158203, -0.01885986328125, 0.090576171875, 0.0010833740234375, 0.006931304931640625, -0.0305328369140625, -0.0006418228149414062, -0.035400390625, -0.00359344482421875, -0.02630615234375, -0.0095977783203125, -0.0242156982421875, -0.00867462158203125, -0.00775909423828125, 0.0117645263671875, 0.007205963134765625, -0.01081085205078125, -0.013153076171875, -0.001556396484375, -0.01525115966796875, -0.00861358642578125, -0.06121826171875, 0.0181121826171875, 0.115478515625, 0.0623779296875, 0.047271728515625, -0.009796142578125, 0.0027370452880859375, 0.003139495849609375, 0.01348114013671875, -0.0106964111328125, 0.027557373046875, -0.01494598388671875, 0.0165557861328125, 0.0179901123046875, -0.0029811859130859375, 0.008392333984375, -0.00394439697265625, 0.0005273818969726562, 0.016448974609375, -0.0033416748046875, -0.022247314453125, -0.043914794921875, 0.045745849609375, -0.0018129348754882812, -0.01488494873046875, -0.0117340087890625, 0.01259613037109375, -0.0252227783203125, -0.021636962890625, -0.039093017578125, 0.01708984375, 0.020355224609375, 0.03662109375, -0.025238037109375, -0.0347900390625, -0.02606201171875, -0.06005859375, -0.00731658935546875, 0.0330810546875, 0.06707763671875, 0.032318115234375, -0.0206298828125, -0.00748443603515625, 0.01702880859375, -0.0087738037109375, -0.005828857421875, -0.036956787109375, -0.01088714599609375, 0.042266845703125, -0.01934814453125, -0.031402587890625, -0.0357666015625, 0.0034885406494140625, 0.022186279296875, -0.0262451171875, 0.0718994140625, -0.003147125244140625, 0.0595703125, 0.006011962890625, 0.0205078125, -0.003948211669921875, 0.0268402099609375, -0.05419921875, 0.027740478515625, 0.01332855224609375, 0.001392364501953125, -0.0309906005859375, 0.0037059783935546875, -0.004024505615234375, -0.0233154296875, -0.027801513671875, 0.0019092559814453125, -0.00753021240234375, 0.0030345916748046875, -0.04754638671875, -0.0009746551513671875, -0.020538330078125, 0.0479736328125, -0.0052642822265625, 0.0246124267578125, 0.020233154296875, 0.0350341796875, -0.031707763671875, -0.02685546875, -0.0021800994873046875, 0.00695037841796875, -0.01953125, 0.0186614990234375, -0.037200927734375, 0.037384033203125, -0.08197021484375, -0.004497528076171875, -0.0648193359375, -0.00809478759765625, 0.048187255859375, -0.01264190673828125, -0.002193450927734375, -0.0246734619140625, 0.04461669921875, 0.0110931396484375, -0.0247650146484375, 0.01013946533203125, 0.0113372802734375, 0.015869140625, -0.035308837890625, -0.045989990234375, -0.0689697265625, -0.12445068359375, 0.0228271484375, 0.0933837890625, 0.0189666748046875, 0.01099395751953125, -0.006839752197265625, 0.03118896484375, 0.029144287109375, 0.017974853515625, 0.026336669921875, 0.01258087158203125, -0.00019669532775878906, 0.0294189453125, -0.0113983154296875, -0.01448822021484375, 0.027435302734375, -0.0259246826171875, -0.0101165771484375, 0.0489501953125, 0.0234375, 0.0215301513671875, -0.03466796875, 0.0264739990234375, -0.005893707275390625, -0.01235198974609375, -0.03265380859375, -0.0014324188232421875, 0.025604248046875, -0.00608062744140625, 0.0478515625, 0.032806396484375, -0.035369873046875, -0.0097808837890625, 0.01134490966796875, 0.0133209228515625, 0.011993408203125, -0.002696990966796875, -0.0176544189453125, 0.0216522216796875, 0.01702880859375, -0.0106658935546875, 0.0041961669921875, 0.0011186599731445312, -0.0007758140563964844, 0.032867431640625, -0.02471923828125, -0.01488494873046875, -0.0035190582275390625, -0.01053619384765625, -0.0010442733764648438, 0.01226043701171875, -0.038818359375, -0.01143646240234375, 0.0215301513671875, 0.036346435546875, -0.0276641845703125, 0.03656005859375, -0.0218658447265625, -0.0034618377685546875, 0.06134033203125, 0.003276824951171875, 0.019073486328125, -0.0008168220520019531, 0.01488494873046875, 0.037384033203125, 0.004154205322265625, 0.0027637481689453125, -0.004489898681640625, -0.016815185546875, -0.0068817138671875, 0.017120361328125, 0.006519317626953125, -0.0152130126953125, -0.0235748291015625, 0.048095703125, 0.0244140625, 0.0679931640625, 0.004486083984375, -0.058624267578125, 0.0185546875, 0.0299224853515625, -0.08978271484375, -0.1385498046875, -0.0177459716796875, -0.039581298828125, -0.0206146240234375, 0.0041656494140625, -0.025970458984375, 0.00862884521484375, 0.01552581787109375, -0.0022411346435546875, -0.0218353271484375, -0.00031280517578125, -0.0660400390625, -0.061065673828125, -0.0712890625, -0.00756072998046875, -0.01276397705078125, 0.019989013671875, 0.0010824203491210938, 0.005512237548828125, 0.0163116455078125, -0.020660400390625, 0.0034351348876953125, 0.046630859375, -0.02044677734375, -0.035858154296875, -0.003108978271484375, -0.0225067138671875, -0.0328369140625, 0.004276275634765625, 0.01357269287109375, -0.0156402587890625, -0.0008730888366699219, -0.00800323486328125, -0.012664794921875, 0.01483154296875, 0.0364990234375, 0.0309906005859375, -0.0038166046142578125, 0.057098388671875, 0.07281494140625, 0.00439453125, -0.0277862548828125, -0.041748046875, -0.060333251953125, 0.001953125, 0.047332763671875, 0.023834228515625, -0.0225982666015625, -0.0017299652099609375, 0.0208892822265625, -0.0005555152893066406, 0.0204620361328125, -0.0042266845703125, 0.013275146484375, 0.00411224365234375, 0.0036334991455078125, -0.031005859375, 0.036346435546875, -0.0130157470703125, -0.009521484375, 0.003662109375, 0.00725555419921875, 0.01517486572265625, -0.0325927734375, -0.0251312255859375, -0.038665771484375, 0.0124969482421875, -0.00983428955078125, 0.021942138671875, -0.0103912353515625, -0.014678955078125, 0.0176239013671875, 0.0692138671875, 0.0078582763671875, -0.01073455810546875, -0.03997802734375, -0.00267791748046875, -0.0299530029296875, -0.056396484375, -0.0124664306640625, 0.023223876953125, -0.00363922119140625, 0.0078887939453125, -0.0015869140625, 0.0084381103515625, 0.005275726318359375, 0.053619384765625, 0.006320953369140625, -0.0173492431640625, 0.0540771484375, -0.007144927978515625, 0.01068115234375, 0.0318603515625, 0.0159149169921875, 0.0026721954345703125, -0.038055419921875, 0.016876220703125, -0.099853515625, -0.020904541015625, -0.030975341796875, 0.0831298828125, 0.036376953125, -0.056915283203125, -0.00931549072265625, 0.048004150390625, 0.0011005401611328125, 0.038909912109375, -0.032958984375, 0.0182037353515625, -0.029266357421875, -0.04962158203125, -0.015777587890625, -0.038726806640625, -0.02142333984375, -0.031524658203125, -0.032470703125, -0.0274658203125, -0.0270233154296875, -0.0154571533203125, -0.006511688232421875, -0.006343841552734375, -0.0615234375, -0.05169677734375, -0.042877197265625, 0.034515380859375, -0.0176544189453125, -0.014678955078125, -0.09088134765625, -0.0953369140625, 0.027923583984375, -0.0178985595703125, -0.01493072509765625, -0.00865936279296875, 0.044708251953125, 0.0290679931640625, -0.01383209228515625, 0.0267333984375, -0.00037169456481933594, 0.0307464599609375, 0.0130767822265625, -0.00072479248046875, 0.005939483642578125, -0.034942626953125, 0.033203125, 0.0224151611328125, 0.0046234130859375, -0.00388336181640625, 0.0576171875, 0.0094146728515625, -0.019256591796875, 0.0291595458984375, 0.00867462158203125, -0.0270233154296875, 0.0073394775390625, -0.0290985107421875, -0.007740020751953125, -0.0242156982421875, 0.035919189453125, -0.04327392578125, 0.06280517578125, -0.008148193359375, -0.049774169921875, 0.02423095703125, -0.00928497314453125, 0.028839111328125, -0.009490966796875, 0.0120849609375, 0.016204833984375, 0.00455474853515625, 0.0221405029296875, 0.0140228271484375, 0.033416748046875, 0.01110076904296875, 0.059783935546875, 0.01111602783203125, 0.0260467529296875, -0.01342010498046875, 0.0067138671875, 0.00021195411682128906, 0.0160980224609375, -0.020172119140625, -0.014892578125, -0.0011262893676757812, -0.01143646240234375, -0.025390625, -0.0088653564453125, 0.0079498291015625, 0.01161956787109375, 0.00013434886932373047, -0.017120361328125, -0.008331298828125, 0.01387786865234375, -0.0171356201171875, 0.039398193359375, 0.031005859375, -0.015625, -0.0257568359375, 0.056854248046875, 0.05657958984375, -0.0070037841796875, -0.033966064453125, 0.04705810546875, 0.01483154296875, 0.04443359375, 0.02020263671875, -0.01458740234375, 0.0018815994262695312, 0.01152801513671875, -0.021697998046875, -0.047882080078125, 0.00908660888671875, 0.052978515625, 0.034332275390625, 0.0322265625, -0.005893707275390625, -0.0133819580078125, 0.005535125732421875, -0.0295867919921875, 0.04510498046875, 0.046051025390625, -0.016357421875, -0.018218994140625, -0.01092529296875, 0.002368927001953125, 0.023712158203125, 0.007659912109375, -0.0005259513854980469, -0.0175323486328125, 0.0062713623046875, -0.03485107421875, -0.02142333984375, -0.006633758544921875, 0.00406646728515625, -0.035797119140625, -0.007129669189453125, 0.006839752197265625, 0.05328369140625, -0.00959014892578125, -0.022705078125, -0.052337646484375, 0.04351806640625, -0.0231781005859375, 0.04315185546875, -0.04449462890625, -0.0005550384521484375, -0.059051513671875, 0.00884246826171875, 0.05633544921875, 0.035400390625, 0.0413818359375, -0.02899169921875, -0.051361083984375, -0.0421142578125, 0.035003662109375, 0.0250396728515625, -0.01282501220703125, -0.005069732666015625, -0.01226806640625, 0.034393310546875, -0.0004954338073730469, 0.025299072265625, 0.019805908203125, -0.0184173583984375, -0.041168212890625, 0.017669677734375, -0.01088714599609375, 0.0645751953125, -0.0267791748046875, 0.045074462890625, -0.002719879150390625, -0.00156402587890625, -0.034271240234375, 0.0174102783203125, -0.0224609375, -0.00872039794921875, 0.017730712890625, 0.01488494873046875, 0.00582122802734375, -0.033233642578125, -0.00951385498046875, 0.002330780029296875, 0.046539306640625, -0.0169830322265625, 0.00960540771484375, -0.018951416015625, -0.038818359375, -0.032135009765625, 0.002994537353515625, 0.03057861328125, -0.0570068359375, -0.0298614501953125, 0.050079345703125, 0.04437255859375, 0.0307464599609375, -0.036773681640625, 0.0047607421875, 0.018829345703125, -0.0285491943359375, 0.0330810546875, 0.07293701171875, 0.0229034423828125, 0.0609130859375, 0.01068878173828125, 0.0281219482421875, 0.0310211181640625, 0.02325439453125, -0.0037631988525390625, -0.011749267578125, 0.061981201171875, 0.0007696151733398438, -0.0340576171875, 0.021240234375, -0.048309326171875, -0.0130157470703125, -0.049530029296875, 0.0278778076171875, 0.0239410400390625, 0.0193328857421875, 0.0098876953125, -0.0258636474609375, 0.0089111328125, 0.0033016204833984375, -0.004505157470703125, 0.019317626953125, 0.0162811279296875, -0.0556640625, -0.022552490234375, 0.01222991943359375, -0.0137481689453125, 0.017669677734375, -0.01323699951171875, -0.00220489501953125, -0.019927978515625, 0.01186370849609375, -0.06475830078125, 0.0305023193359375, -0.0228424072265625, -0.05133056640625, 0.012420654296875, -0.003307342529296875, 0.01334381103515625, -0.05572509765625, 0.043548583984375, -0.0019273757934570312, 0.0288848876953125, -0.01287078857421875, -0.0150146484375, 0.0625, 0.0364990234375, 0.0002300739288330078, -0.005229949951171875, -0.00965118408203125, 0.032989501953125, -0.0255584716796875, -0.00934600830078125, 0.0167388916015625, 0.01345062255859375, -0.055908203125, 0.00624847412109375, -0.038970947265625, 0.005504608154296875, 0.00643157958984375, 0.008636474609375, 0.047393798828125, -0.059112548828125, 0.004009246826171875, 0.038116455078125, 0.01421356201171875, -0.01371002197265625, -0.0029754638671875, 0.0174407958984375, -0.04559326171875, -0.0396728515625, 0.005889892578125, -0.050445556640625, -0.03802490234375, -0.0209197998046875, -0.060272216796875, 0.13623046875, 0.004390716552734375, 0.0257568359375, -0.0029582977294921875, 0.06915283203125, -0.0250396728515625, 0.048431396484375, -0.026214599609375, 0.03961181640625, 0.0100860595703125, 0.0094451904296875, -0.038970947265625, -0.01055908203125, 0.00296783447265625, 0.037139892578125, 0.0772705078125, 0.0164337158203125, -0.044219970703125, -0.043182373046875, -0.0013074874877929688, 0.0233612060546875, -0.00485992431640625, 0.05120849609375, 0.01126861572265625, 0.0121002197265625, 0.070556640625, -0.01059722900390625, 0.032135009765625, 0.0164947509765625, 0.0119171142578125, 0.0236358642578125, 0.037261962890625, 0.02325439453125, 0.00472259521484375, 0.0270233154296875, -0.057220458984375, 0.00959014892578125, 0.050323486328125, -0.018463134765625, 0.03240966796875, 0.042083740234375, 0.055694580078125, -0.0281219482421875, -0.02020263671875, -0.0169525146484375, 0.037811279296875, -0.01108551025390625, 0.00881195068359375, -0.0205535888671875, 0.01024627685546875, 0.0225677490234375, 0.026611328125, -0.0109100341796875, 0.056549072265625, -0.004993438720703125, 0.0550537109375, 0.050140380859375, 0.03570556640625, -0.03302001953125, -0.0367431640625, 0.060791015625, 0.09344482421875, -0.035888671875, -0.00955963134765625, 0.00713348388671875, 0.0149078369140625, 0.0125579833984375, -0.0114288330078125, 0.061370849609375, -0.01074981689453125, -0.016082763671875, -0.001308441162109375, -0.002841949462890625, 0.03265380859375, 0.03521728515625, 0.016845703125, 0.017547607421875, -0.07861328125, -0.037933349609375, -0.02734375, -0.011505126953125, 0.00405120849609375, 0.0217132568359375, 0.02520751953125, 0.04144287109375, 0.006122589111328125, -0.007518768310546875, -0.0028514862060546875, 0.01983642578125, 0.02728271484375, 0.00490570068359375, -0.0098876953125, -0.01534271240234375, 0.0172119140625, 0.0235443115234375, -0.005390167236328125, 0.064453125, 0.033660888671875, 0.018707275390625, -0.032745361328125, 0.0117034912109375, 0.05743408203125, -0.03741455078125, 0.0236358642578125, -0.007297515869140625, -0.0164642333984375, 0.0006608963012695312, -0.0300140380859375, -0.00698089599609375, 0.025390625, -0.0035343170166015625, -0.040802001953125, 0.0665283203125, -0.021728515625, 0.004001617431640625, 0.055999755859375, -0.0138397216796875, 0.06640625, -0.01727294921875, -0.063720703125, -0.0219573974609375, 0.0026111602783203125, -0.01318359375, -0.00452423095703125, 0.0168304443359375, -0.03436279296875, 0.0428466796875, -0.0198822021484375, -0.0216064453125, 0.001255035400390625, -0.004215240478515625, 0.0023212432861328125, 0.019073486328125, -0.0036773681640625, 0.010101318359375, 0.008941650390625, 0.007427215576171875, 0.05035400390625, -0.01119232177734375, 0.0185699462890625, -0.0318603515625, 0.029144287109375, 0.00485992431640625, -0.00705718994140625, 0.0501708984375, -0.0528564453125, -0.025665283203125, 0.056060791015625, -0.0296783447265625, 0.010955810546875, 0.00045871734619140625, -0.040679931640625, -0.00604248046875, 0.04205322265625, 0.0097808837890625, 0.005397796630859375, -0.03369140625, 0.042236328125, -0.0014944076538085938, 0.033538818359375, -0.01119232177734375, -0.0173797607421875, -0.044281005859375, -0.0416259765625, 0.050506591796875, 0.045440673828125, 0.01444244384765625, 0.043121337890625, 0.0123443603515625, -0.0022449493408203125, 0.0282440185546875, -0.033599853515625, 0.05364990234375, 0.0298919677734375, -0.0498046875, -0.0361328125, 0.01190185546875, -0.00115966796875, -0.0288848876953125, 0.0308074951171875, 0.0104217529296875, 0.0135345458984375, -0.047210693359375, -0.00853729248046875, 0.04608154296875, 0.041351318359375, -0.0010881423950195312, 0.024871826171875, 0.006298065185546875, -0.0225372314453125, -0.00970458984375, -0.0016956329345703125, -0.0209197998046875, -0.01605224609375, -0.005825042724609375, -0.01052093505859375, 0.004825592041015625, -0.023468017578125, -0.0105133056640625, -0.00620269775390625, 0.0198211669921875, 0.031890869140625, -0.06298828125, 0.03924560546875, 0.01251983642578125, -0.01146697998046875, 0.00647735595703125, 0.00970458984375, -0.03533935546875, 0.006031036376953125, -0.0006628036499023438, -0.052978515625, -0.04791259765625, 0.054595947265625, -0.03558349609375, 0.0029354095458984375, -0.0031185150146484375, -0.0167388916015625, -0.003833770751953125, 0.00920867919921875, 0.00971221923828125, 0.050628662109375, 0.02862548828125, -0.0227203369140625, -0.017730712890625, 0.01293182373046875, 0.001857757568359375, -0.038726806640625, 0.0225372314453125, -0.059295654296875, -0.03912353515625, -0.033050537109375, 0.037689208984375, 0.048583984375, -0.0079498291015625, -0.0247650146484375, 0.0733642578125, -0.0251617431640625, -0.01232147216796875, -0.03338623046875, 0.014495849609375, 0.0059661865234375, 0.019073486328125, -0.005413055419921875, -0.04241943359375, -0.0169219970703125, 0.028717041015625, -0.0073699951171875, 0.032684326171875, -0.003940582275390625, -0.040771484375, -0.05963134765625, 0.0101165771484375, 0.012847900390625, 0.03485107421875, -0.0122528076171875, 0.0095062255859375, 0.0274505615234375, 0.035308837890625, -0.0231475830078125, 0.02435302734375, 0.014495849609375, 0.00989532470703125, -0.0092010498046875, -0.06689453125, -0.0026111602783203125, 0.001026153564453125, 0.056854248046875, 0.0171356201171875, 0.00006449222564697266, -0.04302978515625, 0.0214996337890625, -0.037139892578125, -0.056121826171875, 0.004638671875, 0.0137939453125, -0.04132080078125, 0.0102386474609375, 0.0266571044921875, 0.01849365234375, -0.01409149169921875, 0.01126861572265625, 0.005657196044921875, -0.037445068359375, 0.033355712890625, -0.01611328125, 0.00650787353515625, 0.0072784423828125, 0.034912109375, -0.034820556640625, -0.0144805908203125, 0.007076263427734375, -0.0057830810546875, 0.006725311279296875, 0.0201263427734375, -0.00787353515625, 0.051513671875, -0.049041748046875, 0.0034313201904296875, 0.009979248046875, 0.0299835205078125, -0.03204345703125, 0.0151214599609375, -0.0394287109375, -0.01445770263671875, 0.017486572265625, -0.0269317626953125, -0.0217437744140625, 0.01641845703125, 0.012359619140625, 0.061767578125, -0.0190277099609375, 0.04949951171875, 0.00724029541015625, 0.0189666748046875, -0.005847930908203125, 0.0020771026611328125, 0.036712646484375, -0.03363037109375, 0.021148681640625, 0.00827789306640625, 0.0178680419921875, 0.005199432373046875, -0.0114288330078125, 0.0028743743896484375, -0.0017900466918945312, -0.0162811279296875 ]
eccebe0b7cc66fd34ebeec10fd46d94066177b01
Wordpress Stackexchange Q: Edit/revise option for authors to suggest improvement to posts I have a multiple author blog with 300 authors. Is it possible to add a edit type of button where authors can suggest improvement to other authors published articles? If an improvement suggesting is added, the entry should only be visible to users with author permission and the original author of the article can make the decision of implementing the edit. This feature would be highly beneficial for content heavy sites. Do anyone knows if such plugin is available? Or an alternative solution? A: Use the Edit Flow plugin to allow authors to leave meta comments only visible in the backend or however you choose to display them on the frontend.
Q: Edit/revise option for authors to suggest improvement to posts I have a multiple author blog with 300 authors. Is it possible to add a edit type of button where authors can suggest improvement to other authors published articles? If an improvement suggesting is added, the entry should only be visible to users with author permission and the original author of the article can make the decision of implementing the edit. This feature would be highly beneficial for content heavy sites. Do anyone knows if such plugin is available? Or an alternative solution? A: Use the Edit Flow plugin to allow authors to leave meta comments only visible in the backend or however you choose to display them on the frontend.
wordpress
{ "language": "en", "length": 121, "provenance": "stackexchange_00019.jsonl.gz:422232", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59644" }
[ -0.0028781890869140625, -0.01062774658203125, 0.004627227783203125, 0.0177764892578125, -0.0195770263671875, 0.0010547637939453125, -0.005062103271484375, -0.04412841796875, 0.0101165771484375, 0.016815185546875, -0.0019683837890625, -0.0068206787109375, -0.04052734375, -0.022613525390625, -0.04766845703125, -0.037506103515625, 0.019378662109375, -0.00861358642578125, 0.031646728515625, -0.003818511962890625, 0.00742340087890625, 0.004150390625, 0.0286712646484375, 0.01397705078125, -0.003093719482421875, 0.031341552734375, 0.0548095703125, -0.0159149169921875, -0.006622314453125, -0.014892578125, 0.01132965087890625, -0.0210113525390625, 0.00821685791015625, 0.0309295654296875, -0.00408172607421875, 0.01044464111328125, 0.0088043212890625, 0.006839752197265625, -0.0019683837890625, 0.0295562744140625, 0.0172576904296875, -0.0023708343505859375, -0.067626953125, 0.0281524658203125, -0.052398681640625, -0.03973388671875, 0.036895751953125, 0.004913330078125, 0.03564453125, 0.03131103515625, -0.00383758544921875, 0.028594970703125, -0.0136566162109375, 0.004848480224609375, -0.0162200927734375, -0.0238800048828125, -0.0097503662109375, 0.036529541015625, 0.02667236328125, -0.0178070068359375, -0.032470703125, -0.005706787109375, 0.01506805419921875, 0.0115966796875, 0.02734375, 0.0038051605224609375, 0.01629638671875, 0.02508544921875, -0.0006575584411621094, 0.0291595458984375, 0.005199432373046875, -0.0288238525390625, 0.0272369384765625, 0.007724761962890625, 0.0025501251220703125, -0.04962158203125, -0.023956298828125, -0.0246734619140625, 0.03521728515625, 0.004802703857421875, 0.0019483566284179688, -0.0104522705078125, 0.0374755859375, -0.046417236328125, 0.01294708251953125, -0.01454925537109375, -0.0145111083984375, -0.0013475418090820312, -0.04901123046875, 0.03643798828125, -0.02630615234375, -0.04443359375, -0.05126953125, 0.08148193359375, 0.028472900390625, 0.0167388916015625, 0.053253173828125, 0.02996826171875, 0.0273590087890625, 0.0083160400390625, 0.01427459716796875, -0.06512451171875, 0.030670166015625, -0.0362548828125, 0.01413726806640625, 0.03741455078125, 0.015655517578125, -0.0004630088806152344, 0.038848876953125, 0.0204010009765625, -0.004547119140625, 0.038848876953125, 0.01507568359375, 0.0027561187744140625, -0.0244903564453125, -0.009246826171875, -0.0196685791015625, 0.0369873046875, 0.00620269775390625, 0.04119873046875, 0.0286865234375, 0.03326416015625, -0.0159759521484375, -0.00598907470703125, -0.0175628662109375, -0.031951904296875, -0.035369873046875, 0.00875091552734375, 0.0079498291015625, -0.01544952392578125, -0.046875, 0.03546142578125, 0.08929443359375, 0.01065826416015625, 0.00720977783203125, -0.01059722900390625, -0.03521728515625, 0.0038967132568359375, -0.0097198486328125, -0.0170135498046875, 0.008148193359375, 0.0203094482421875, 0.043426513671875, 0.0002129077911376953, 0.013519287109375, 0.0258026123046875, 0.0008435249328613281, 0.00139617919921875, 0.025054931640625, -0.0138092041015625, -0.026947021484375, -0.0004572868347167969, 0.032257080078125, -0.034088134765625, -0.0015096664428710938, -0.0687255859375, -0.0005364418029785156, -0.046173095703125, 0.0213470458984375, -0.028472900390625, 0.016448974609375, 0.00040221214294433594, 0.0596923828125, -0.01099395751953125, -0.03277587890625, -0.007244110107421875, -0.062744140625, -0.01352691650390625, 0.0174560546875, 0.006656646728515625, 0.0059356689453125, -0.01554107666015625, 0.0249786376953125, 0.0247802734375, -0.0019073486328125, 0.03289794921875, 0.0084075927734375, 0.044647216796875, -0.0259246826171875, 0.058929443359375, 0.032989501953125, -0.034820556640625, 0.047149658203125, -0.0221405029296875, -0.042236328125, 0.053863525390625, -0.007720947265625, 0.04339599609375, 0.0201873779296875, -0.006984710693359375, -0.01129913330078125, 0.023681640625, 0.0048980712890625, -0.021575927734375, -0.045684814453125, 0.00296783447265625, 0.0027179718017578125, 0.0328369140625, -0.03338623046875, 0.0202789306640625, -0.01462554931640625, 0.007587432861328125, 0.0036067962646484375, 0.032867431640625, -0.05828857421875, 0.0439453125, -0.04498291015625, 0.03314208984375, 0.017242431640625, 0.034576416015625, 0.0098419189453125, 0.0128631591796875, -0.0203399658203125, -0.0140533447265625, -0.01194000244140625, 0.00991058349609375, -0.0025272369384765625, 0.01690673828125, 0.0287628173828125, -0.00081634521484375, 0.037567138671875, 0.01126861572265625, 0.023223876953125, -0.0018100738525390625, 0.0221405029296875, -0.035430908203125, -0.003627777099609375, -0.02227783203125, -0.0111236572265625, -0.0009379386901855469, -0.0307769775390625, 0.03912353515625, 0.06829833984375, 0.04193115234375, 0.0013360977172851562, -0.007038116455078125, 0.0261993408203125, -0.0843505859375, 0.0046234130859375, 0.047332763671875, 0.0099334716796875, 0.00054168701171875, 0.018798828125, 0.0655517578125, 0.033355712890625, 0.0380859375, 0.0361328125, 0.0088653564453125, 0.0285797119140625, 0.053009033203125, -0.0672607421875, -0.00033783912658691406, 0.01497650146484375, -0.064208984375, 0.027557373046875, 0.0258026123046875, -0.02093505859375, 0.01739501953125, -0.0012102127075195312, -0.019500732421875, -0.01152801513671875, -0.0672607421875, -0.01446533203125, -0.03436279296875, 0.06158447265625, -0.039093017578125, 0.04718017578125, 0.031463623046875, -0.0201263427734375, -0.038177490234375, 0.020172119140625, 0.048736572265625, 0.01824951171875, 0.00713348388671875, -0.06561279296875, 0.0465087890625, -0.00797271728515625, 0.00818634033203125, 0.0248565673828125, 0.015411376953125, -0.0272216796875, -0.032806396484375, -0.0249786376953125, -0.0057525634765625, 0.022125244140625, -0.01934814453125, 0.01148223876953125, -0.01568603515625, -0.0007677078247070312, -0.0127716064453125, 0.0390625, -0.0238037109375, -0.0119171142578125, -0.0050201416015625, -0.0240936279296875, -0.03582763671875, 0.0215911865234375, -0.050750732421875, 0.0518798828125, -0.01041412353515625, 0.0268707275390625, 0.0772705078125, 0.0274200439453125, 0.005222320556640625, -0.0046539306640625, -0.00980377197265625, -0.036651611328125, 0.0285797119140625, -0.0032196044921875, -0.0357666015625, -0.033721923828125, -0.0029354095458984375, 0.00861358642578125, 0.006069183349609375, 0.00746917724609375, 0.00226593017578125, 0.006061553955078125, 0.020111083984375, 0.00795745849609375, 0.00731658935546875, 0.03045654296875, -0.069580078125, -0.021392822265625, 0.00046634674072265625, -0.057952880859375, -0.0060882568359375, 0.04736328125, -0.01357269287109375, 0.0081787109375, -0.0276336669921875, -0.0504150390625, -0.06353759765625, -0.0748291015625, -0.047210693359375, 0.0006318092346191406, 0.01279449462890625, -0.00433349609375, 0.035064697265625, -0.0193634033203125, -0.044403076171875, -0.020111083984375, -0.02740478515625, 0.0189666748046875, -0.0009946823120117188, 0.018707275390625, -0.0293731689453125, 0.0078125, -0.01114654541015625, 0.04156494140625, 0.036041259765625, -0.033172607421875, 0.0023822784423828125, -0.05145263671875, 0.0211029052734375, -0.00536346435546875, 0.019744873046875, 0.057861328125, 0.048553466796875, 0.043701171875, 0.0011692047119140625, 0.04107666015625, 0.01180267333984375, 0.006378173828125, -0.04132080078125, -0.026702880859375, -0.020660400390625, -0.007129669189453125, -0.0021076202392578125, 0.0701904296875, 0.031890869140625, 0.0006012916564941406, 0.02569580078125, -0.01216888427734375, 0.00835418701171875, 0.0433349609375, -0.03570556640625, 0.00409698486328125, -0.0135498046875, 0.04296875, -0.0024738311767578125, 0.0225677490234375, -0.03143310546875, 0.039642333984375, -0.07073974609375, 0.042633056640625, 0.004913330078125, -0.06549072265625, 0.00598907470703125, -0.032958984375, 0.01528167724609375, -0.053466796875, -0.01348114013671875, 0.00835418701171875, -0.0129241943359375, 0.0248565673828125, -0.007190704345703125, -0.0227203369140625, 0.04052734375, -0.04241943359375, -0.0194549560546875, -0.0007047653198242188, 0.01308441162109375, -0.0042724609375, 0.0050811767578125, -0.036712646484375, 0.06475830078125, 0.0167236328125, -0.00818634033203125, 0.029205322265625, 0.01953125, 0.0291900634765625, 0.03216552734375, 0.0269012451171875, 0.025848388671875, -0.026153564453125, -0.02020263671875, -0.08245849609375, -0.00550079345703125, -0.018646240234375, 0.045928955078125, 0.0031032562255859375, 0.005748748779296875, -0.0205535888671875, 0.045074462890625, -0.025146484375, 0.01031494140625, -0.0178070068359375, 0.0147857666015625, 0.00273895263671875, -0.0199432373046875, -0.0234375, -0.0151824951171875, -0.006824493408203125, -0.03240966796875, -0.02545166015625, -0.03082275390625, -0.032562255859375, -0.03363037109375, -0.0228424072265625, -0.0224609375, -0.042449951171875, -0.059967041015625, -0.053955078125, 0.032867431640625, -0.01165771484375, 0.00597381591796875, -0.084228515625, -0.07275390625, 0.0276336669921875, -0.00595855712890625, 0.01277923583984375, 0.00792694091796875, 0.0703125, 0.0156097412109375, -0.01190948486328125, -0.032470703125, -0.020721435546875, -0.00970458984375, 0.0200958251953125, 0.002933502197265625, -0.02105712890625, 0.006748199462890625, -0.0020084381103515625, -0.035736083984375, -0.021484375, -0.02679443359375, 0.0194854736328125, -0.0011548995971679688, -0.0302276611328125, 0.01335906982421875, -0.032257080078125, 0.06781005859375, -0.0093536376953125, -0.041107177734375, 0.0218505859375, -0.040313720703125, 0.0164794921875, -0.018829345703125, 0.030975341796875, -0.01861572265625, -0.006343841552734375, 0.003253936767578125, -0.0101776123046875, 0.00701141357421875, 0.0205841064453125, -0.01361846923828125, -0.028594970703125, -0.0270843505859375, -0.005664825439453125, -0.01010894775390625, -0.024749755859375, -0.036529541015625, 0.020782470703125, -0.0213165283203125, -0.0196685791015625, 0.00958251953125, -0.02691650390625, 0.081787109375, 0.03302001953125, -0.056365966796875, 0.05499267578125, 0.0019550323486328125, 0.054473876953125, 0.010040283203125, -0.035430908203125, 0.007511138916015625, 0.0167083740234375, 0.0052947998046875, 0.0081634521484375, -0.03717041015625, 0.017852783203125, -0.02197265625, -0.03424072265625, -0.0250396728515625, -0.0213165283203125, 0.0026302337646484375, -0.0022945404052734375, -0.01214599609375, -0.035919189453125, 0.002239227294921875, 0.07269287109375, 0.052886962890625, -0.0428466796875, 0.0013132095336914062, 0.080322265625, 0.0083770751953125, -0.05291748046875, -0.003810882568359375, 0.005001068115234375, -0.0013589859008789062, -0.0073699951171875, -0.00939178466796875, 0.046722412109375, 0.042510986328125, 0.01055145263671875, 0.006877899169921875, -0.0111083984375, 0.0191497802734375, 0.054718017578125, -0.054107666015625, 0.043975830078125, 0.033599853515625, -0.04498291015625, -0.0254974365234375, 0.009521484375, -0.0870361328125, -0.0156402587890625, -0.043304443359375, 0.0187835693359375, -0.062255859375, 0.005916595458984375, 0.0025787353515625, -0.0102996826171875, 0.0276336669921875, 0.00907135009765625, -0.03631591796875, -0.044677734375, -0.0116119384765625, -0.0010957717895507812, 0.06170654296875, 0.026947021484375, -0.03314208984375, -0.01088714599609375, 0.01096343994140625, 0.039764404296875, -0.004367828369140625, -0.00005829334259033203, -0.060791015625, -0.048828125, 0.0081939697265625, -0.0767822265625, -0.0034656524658203125, -0.05828857421875, -0.060516357421875, -0.0262451171875, 0.01428985595703125, 0.01561737060546875, 0.0280303955078125, -0.037139892578125, -0.0721435546875, 0.01453399658203125, -0.0018949508666992188, 0.0175018310546875, 0.0168914794921875, -0.012847900390625, 0.019378662109375, 0.0160675048828125, 0.0164337158203125, 0.0261688232421875, 0.021514892578125, -0.00794219970703125, -0.03070068359375, -0.0023021697998046875, -0.038970947265625, -0.017852783203125, -0.01474761962890625, -0.001377105712890625, 0.029998779296875, 0.043243408203125, 0.01152801513671875, 0.03778076171875, -0.02215576171875, 0.0032787322998046875, -0.0039520263671875, 0.006805419921875, -0.03277587890625, -0.005619049072265625, 0.027679443359375, 0.0095977783203125, 0.0259246826171875, -0.039581298828125, -0.0166015625, -0.01525115966796875, 0.005405426025390625, -0.01531982421875, -0.0037937164306640625, -0.038818359375, 0.0180511474609375, 0.035400390625, 0.003841400146484375, 0.03643798828125, 0.004016876220703125, 0.0182647705078125, 0.0235443115234375, -0.06719970703125, 0.02734375, 0.07965087890625, 0.01535797119140625, -0.038299560546875, 0.02593994140625, 0.004596710205078125, -0.0050506591796875, -0.0247802734375, 0.0174102783203125, 0.020965576171875, -0.04962158203125, 0.0252227783203125, 0.00762939453125, 0.031524658203125, 0.04376220703125, 0.00034737586975097656, 0.002567291259765625, -0.035125732421875, 0.06719970703125, -0.04498291015625, 0.0060882568359375, 0.026519775390625, -0.028411865234375, -0.00952911376953125, -0.03759765625, -0.0104827880859375, -0.0157928466796875, -0.0277862548828125, 0.0302581787109375, 0.023895263671875, -0.0128631591796875, -0.039825439453125, -0.015625, 0.0484619140625, -0.0218963623046875, -0.0419921875, 0.05499267578125, -0.0305633544921875, 0.017669677734375, 0.0258026123046875, 0.00911712646484375, -0.0155792236328125, 0.042205810546875, -0.0279693603515625, 0.0094146728515625, 0.0167236328125, -0.0281829833984375, -0.00827789306640625, -0.04296875, -0.004974365234375, 0.017791748046875, 0.0097808837890625, 0.02581787109375, 0.01904296875, -0.03155517578125, 0.00039958953857421875, 0.03564453125, 0.0220489501953125, 0.0511474609375, -0.05712890625, 0.046173095703125, -0.02789306640625, -0.0305023193359375, 0.038970947265625, -0.043121337890625, -0.02099609375, -0.038360595703125, -0.004543304443359375, -0.0919189453125, 0.0307769775390625, 0.029449462890625, -0.0655517578125, 0.09246826171875, -0.0009784698486328125, 0.033477783203125, 0.030548095703125, 0.0272674560546875, -0.0423583984375, -0.01812744140625, -0.0172271728515625, 0.050018310546875, -0.0416259765625, 0.04290771484375, -0.056915283203125, -0.010711669921875, 0.0036468505859375, 0.036407470703125, 0.0235443115234375, 0.0164947509765625, -0.0523681640625, -0.00807952880859375, 0.006221771240234375, 0.0064544677734375, -0.01233673095703125, 0.06439208984375, 0.03369140625, -0.021820068359375, 0.07049560546875, 0.038726806640625, 0.055450439453125, -0.0017919540405273438, 0.022979736328125, 0.033050537109375, 0.01087188720703125, 0.02630615234375, -0.022003173828125, 0.0232086181640625, 0.045562744140625, -0.04144287109375, -0.0210113525390625, -0.0270233154296875, -0.019561767578125, 0.032318115234375, 0.0278778076171875, -0.05572509765625, -0.0278778076171875, -0.0200042724609375, 0.045501708984375, 0.021026611328125, 0.046539306640625, -0.0191497802734375, 0.0135955810546875, 0.015106201171875, -0.0079345703125, 0.0167694091796875, 0.06353759765625, -0.04608154296875, -0.0232086181640625, -0.00965118408203125, -0.0020122528076171875, -0.034820556640625, -0.006275177001953125, 0.061798095703125, -0.00217437744140625, -0.00551605224609375, 0.012237548828125, 0.00565338134765625, 0.024078369140625, 0.021148681640625, -0.03668212890625, 0.03155517578125, 0.00939178466796875, 0.017913818359375, -0.0149993896484375, -0.0015411376953125, 0.005405426025390625, -0.00750732421875, -0.00011163949966430664, 0.00592041015625, 0.0159912109375, 0.021148681640625, -0.026336669921875, -0.01044464111328125, 0.01122283935546875, 0.00881195068359375, 0.024810791015625, 0.03533935546875, 0.084716796875, 0.0031108856201171875, -0.037200927734375, 0.052886962890625, 0.01323699951171875, 0.0380859375, -0.036163330078125, -0.033538818359375, 0.0238800048828125, 0.03125, 0.0382080078125, 0.05218505859375, 0.047698974609375, -0.004772186279296875, -0.03289794921875, 0.021881103515625, 0.06341552734375, -0.0335693359375, 0.01605224609375, -0.0218353271484375, 0.03656005859375, 0.00681304931640625, -0.017486572265625, -0.022064208984375, 0.023681640625, 0.032440185546875, 0.0060272216796875, -0.00036215782165527344, 0.0229339599609375, 0.0013790130615234375, 0.0193328857421875, 0.0011119842529296875, -0.04376220703125, 0.023834228515625, -0.029327392578125, 0.0152435302734375, -0.0237884521484375, -0.0733642578125, 0.037994384765625, 0.039031982421875, -0.04827880859375, 0.035125732421875, -0.037200927734375, 0.0171051025390625, 0.0027332305908203125, -0.0091552734375, -0.00799560546875, 0.043426513671875, 0.0277862548828125, 0.00643157958984375, -0.0771484375, -0.032196044921875, -0.009002685546875, 0.024322509765625, 0.006320953369140625, 0.07275390625, -0.005069732666015625, 0.00873565673828125, 0.00649261474609375, 0.0121612548828125, -0.0352783203125, -0.01325225830078125, 0.026824951171875, -0.04266357421875, -0.01302337646484375, 0.02069091796875, -0.0142059326171875, 0.006000518798828125, 0.061614990234375, -0.018707275390625, 0.054534912109375, -0.018646240234375, 0.00719451904296875, -0.09271240234375, -0.0087127685546875, -0.0211181640625, -0.036041259765625, 0.01331329345703125, 0.038116455078125, -0.00640869140625, 0.01568603515625, -0.027252197265625, -0.01678466796875, -0.0236358642578125, 0.007537841796875, -0.0237274169921875, 0.034515380859375, -0.058624267578125, 0.01343536376953125, -0.039703369140625, 0.01325225830078125, 0.057586669921875, 0.00705718994140625, 0.031707763671875, 0.036285400390625, -0.01540374755859375, 0.0797119140625, -0.0263519287109375, -0.00022137165069580078, -0.010345458984375, 0.046783447265625, -0.003307342529296875, -0.004070281982421875, -0.0194549560546875, 0.00400543212890625, -0.032623291015625, 0.03277587890625, -0.01346588134765625, -0.0066375732421875, -0.005153656005859375, 0.003742218017578125, 0.026397705078125, -0.0189361572265625, -0.03955078125, 0.0248565673828125, -0.01528167724609375, -0.031951904296875, -0.0217437744140625, 0.037689208984375, -0.048980712890625, 0.02294921875, -0.051788330078125, -0.061279296875, 0.01384735107421875, 0.0374755859375, -0.004390716552734375, 0.0018768310546875, -0.037567138671875, -0.028717041015625, -0.032470703125, 0.01020050048828125, 0.02874755859375, -0.0111541748046875, 0.010986328125, 0.0146026611328125, 0.032012939453125, 0.07293701171875, -0.0316162109375, -0.0304107666015625, -0.0048065185546875, 0.004131317138671875, 0.0197601318359375, -0.0560302734375, 0.004364013671875, -0.035125732421875, -0.0124359130859375, -0.017791748046875, 0.0263671875, 0.0390625, -0.033935546875, -0.10443115234375, 0.0261688232421875, -0.0229644775390625, -0.049896240234375, -0.0028362274169921875, -0.0227508544921875, -0.015899658203125, 0.069091796875, 0.02783203125, -0.017852783203125, -0.034332275390625, -0.01198577880859375, -0.01395416259765625, -0.023651123046875, -0.004009246826171875, -0.01033782958984375, -0.10137939453125, -0.0022792816162109375, -0.0206451416015625, -0.044677734375, 0.007228851318359375, -0.0251007080078125, 0.0183258056640625, 0.0204315185546875, -0.04229736328125, -0.0457763671875, 0.00594329833984375, 0.00911712646484375, 0.00865936279296875, 0.00543212890625, -0.041748046875, -0.0197601318359375, 0.0101776123046875, 0.040863037109375, 0.0162200927734375, -0.0180816650390625, 0.0572509765625, 0.005519866943359375, -0.0295257568359375, -0.0016651153564453125, 0.014923095703125, -0.034759521484375, -0.01203155517578125, 0.0275115966796875, -0.0157012939453125, -0.0213623046875, 0.017608642578125, -0.037109375, 0.0164337158203125, 0.021484375, -0.005146026611328125, -0.045654296875, 0.00252532958984375, 0.03021240234375, -0.0226287841796875, 0.00620269775390625, 0.01296234130859375, -0.0029239654541015625, 0.0002524852752685547, 0.037811279296875, -0.003765106201171875, -0.033294677734375, -0.0002796649932861328, 0.035247802734375, -0.0113983154296875, 0.03216552734375, -0.033050537109375, -0.0224761962890625, -0.01152801513671875, 0.018646240234375, -0.0242462158203125, 0.017547607421875, 0.0338134765625, 0.0084686279296875, -0.0158233642578125, 0.06890869140625, -0.062744140625, 0.00414276123046875, -0.035980224609375, 0.012847900390625, -0.03192138671875, 0.03839111328125, 0.040313720703125, 0.004222869873046875, 0.00821685791015625, 0.0231475830078125, 0.0037364959716796875, -0.00720977783203125, 0.0249176025390625, 0.0355224609375, 0.007282257080078125, 0.0139312744140625 ]
09807a7b70ea469d29f0bfc74cebb5b629d33663
Wordpress Stackexchange Q: Show comments from multiple post IDs in comment template This may sound like an unusual request but I am try to display comments from several related posts in a single comment template. For example I have several posts on the same topic (IDs 253, 724, 798) and I want all comments from these posts to appear next in a continuous thread. So if I am viewing post ID 724 I can also see the comments from posts 253 and 798. Can I pass multiple post IDs to the comments template to achieve this does this require a custom query before or after the comments template to show all the comments in a merged thread? A: you can get comments from each post by its id with $comments253 = get_comments('post_id=253'); $comments724 = get_comments('post_id=724'); $comments798 = get_comments('post_id=798'); then merge ( array-merge ) and sort the array by date ( comment->comment_date being the key to the date value) if you want. then just foreach($comments as $comment) : echo($comment->comment_author . '<br />' . $comment->comment_content); endforeach; This is all very manual, and you might want to automatize the process, but that's probably an different matter.
Q: Show comments from multiple post IDs in comment template This may sound like an unusual request but I am try to display comments from several related posts in a single comment template. For example I have several posts on the same topic (IDs 253, 724, 798) and I want all comments from these posts to appear next in a continuous thread. So if I am viewing post ID 724 I can also see the comments from posts 253 and 798. Can I pass multiple post IDs to the comments template to achieve this does this require a custom query before or after the comments template to show all the comments in a merged thread? A: you can get comments from each post by its id with $comments253 = get_comments('post_id=253'); $comments724 = get_comments('post_id=724'); $comments798 = get_comments('post_id=798'); then merge ( array-merge ) and sort the array by date ( comment->comment_date being the key to the date value) if you want. then just foreach($comments as $comment) : echo($comment->comment_author . '<br />' . $comment->comment_content); endforeach; This is all very manual, and you might want to automatize the process, but that's probably an different matter. A: Getting the comments for multiple posts is rather simple: Just replace comment_post_ID = YOUR_POST_ID with an IN() function. function wpse_59687_multiple_comment_post_id_query_filter( $query ) { $post_ids = array ( 149, 188, 151 ); if ( FALSE === strpos( $query, 'comment_post_ID = ' ) ) { return $query; // not the query we want to filter } remove_filter( 'query', 'wpse_59687_multiple_comment_post_id_query_filter' ); $replacement = 'comment_post_ID IN(' . implode( ',', $post_ids ) . ')'; return preg_replace( '~comment_post_ID = \d+~', $replacement, $query ); } Now you call this function just before you call comments_template(): add_filter( 'query', 'wpse_59687_multiple_comment_post_id_query_filter' ); What’s more difficult: * *get_comments_number() is wrong. You have to filter its value too. *Replies to a comment from another post are redirected to the URL of the other post, not the page where the commenter has written the comment. Fixing that will be not so trivial …
wordpress
{ "language": "en", "length": 332, "provenance": "stackexchange_00019.jsonl.gz:422247", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59687" }
[ 0.0692138671875, -0.02520751953125, 0.0026111602783203125, -0.05755615234375, 0.003307342529296875, -0.0219879150390625, 0.0186309814453125, 0.0022144317626953125, 0.001567840576171875, 0.0447998046875, -0.06549072265625, -0.002613067626953125, -0.0174407958984375, 0.01090240478515625, -0.050018310546875, -0.06585693359375, 0.0513916015625, -0.0203704833984375, 0.048431396484375, 0.003082275390625, 0.017852783203125, 0.0292510986328125, 0.0018949508666992188, 0.06817626953125, 0.0438232421875, -0.044677734375, 0.07391357421875, -0.005619049072265625, 0.030670166015625, -0.0167694091796875, 0.02069091796875, 0.00041103363037109375, 0.018035888671875, 0.0017385482788085938, -0.0003616809844970703, -0.0272064208984375, 0.01529693603515625, -0.01141357421875, -0.0181427001953125, 0.037841796875, 0.006458282470703125, -0.002239227294921875, 0.01462554931640625, -0.003086090087890625, -0.0026073455810546875, -0.008026123046875, -0.00431060791015625, -0.058258056640625, 0.0305023193359375, 0.01288604736328125, 0.01427459716796875, 0.019927978515625, 0.0169219970703125, 0.03656005859375, -0.0168304443359375, -0.0023555755615234375, -0.0227508544921875, 0.0077056884765625, 0.040802001953125, -0.02642822265625, -0.0163116455078125, -0.02490234375, 0.022857666015625, -0.0122222900390625, -0.0266571044921875, 0.00212860107421875, 0.04107666015625, 0.009857177734375, -0.005268096923828125, -0.047271728515625, -0.005584716796875, 0.0215911865234375, 0.01739501953125, -0.031646728515625, 0.0108489990234375, -0.011962890625, -0.0148162841796875, -0.013885498046875, 0.0115814208984375, -0.00737762451171875, -0.00035881996154785156, -0.01465606689453125, -0.045166015625, -0.02313232421875, 0.00894927978515625, -0.0024967193603515625, -0.0119781494140625, -0.0130157470703125, -0.037322998046875, -0.0240478515625, -0.0251617431640625, -0.0694580078125, -0.01934814453125, 0.02813720703125, -0.016082763671875, -0.015655517578125, 0.0160980224609375, 0.04656982421875, -0.0260772705078125, -0.0236663818359375, -0.024688720703125, -0.01043701171875, -0.03466796875, -0.021484375, -0.010040283203125, 0.00821685791015625, 0.0166168212890625, 0.046539306640625, 0.05389404296875, 0.039093017578125, 0.00556182861328125, 0.035919189453125, -0.036712646484375, -0.0126495361328125, -0.00614166259765625, 0.01080322265625, -0.07086181640625, 0.01221466064453125, -0.007007598876953125, -0.01436614990234375, 0.00539398193359375, 0.0274810791015625, -0.02435302734375, 0.027496337890625, -0.0006308555603027344, 0.009033203125, 0.01593017578125, -0.0304718017578125, -0.02117919921875, -0.0098419189453125, -0.00644683837890625, 0.0340576171875, 0.04833984375, 0.0301666259765625, -0.0044708251953125, -0.00829315185546875, 0.0175018310546875, 0.00811767578125, -0.00969696044921875, 0.0225677490234375, 0.024932861328125, -0.024383544921875, -0.028594970703125, 0.01200103759765625, -0.03216552734375, 0.03253173828125, 0.038482666015625, -0.0114288330078125, -0.03668212890625, -0.05340576171875, -0.039794921875, 0.03741455078125, 0.03546142578125, -0.0242156982421875, 0.0167083740234375, -0.062744140625, 0.025421142578125, -0.06787109375, 0.03228759765625, -0.04937744140625, 0.00244140625, 0.00982666015625, 0.023468017578125, -0.0198516845703125, -0.048248291015625, -0.01617431640625, -0.0027828216552734375, -0.01505279541015625, 0.028106689453125, 0.01336669921875, -0.042938232421875, -0.035919189453125, 0.029510498046875, 0.00916290283203125, -0.0298004150390625, 0.046783447265625, 0.00185394287109375, -0.01361846923828125, -0.006183624267578125, 0.02783203125, -0.019317626953125, -0.044769287109375, -0.01654052734375, 0.01007843017578125, -0.054412841796875, 0.0599365234375, 0.01812744140625, 0.07318115234375, -0.00127410888671875, 0.01380157470703125, 0.03173828125, 0.03173828125, -0.0004074573516845703, 0.0239105224609375, -0.01514434814453125, -0.0301971435546875, -0.0126495361328125, 0.0133056640625, -0.0110321044921875, -0.01654052734375, -0.0010900497436523438, -0.0164642333984375, 0.002140045166015625, 0.03656005859375, -0.044830322265625, 0.019866943359375, -0.0296478271484375, 0.017364501953125, -0.034881591796875, 0.004871368408203125, 0.0248260498046875, -0.0218658447265625, -0.032958984375, -0.00998687744140625, -0.01383209228515625, 0.0089874267578125, -0.022369384765625, -0.00965118408203125, -0.001514434814453125, 0.027374267578125, -0.005123138427734375, 0.005657196044921875, -0.02581787109375, 0.0174713134765625, 0.060211181640625, -0.023651123046875, -0.0146484375, -0.035247802734375, 0.005039215087890625, 0.0283050537109375, -0.08099365234375, 0.028961181640625, -0.0037174224853515625, 0.0357666015625, 0.00986480712890625, 0.00010085105895996094, 0.03564453125, -0.03338623046875, 0.017486572265625, 0.025146484375, 0.0237274169921875, -0.01099395751953125, 0.0213623046875, 0.0292816162109375, 0.041015625, 0.0133514404296875, 0.036895751953125, -0.0132904052734375, -0.0075225830078125, 0.00951385498046875, -0.007770538330078125, 0.013397216796875, 0.0244140625, -0.04644775390625, 0.0236968994140625, 0.044464111328125, -0.009124755859375, -0.004505157470703125, -0.022003173828125, 0.027252197265625, -0.0022430419921875, -0.07220458984375, -0.019287109375, -0.03765869140625, -0.0105438232421875, -0.031768798828125, -0.015960693359375, -0.031890869140625, -0.03082275390625, -0.005153656005859375, 0.03179931640625, -0.0144500732421875, 0.007598876953125, 0.026824951171875, -0.041748046875, 0.01464080810546875, -0.006072998046875, -0.006378173828125, -0.010498046875, -0.01013946533203125, 0.01309967041015625, 0.053558349609375, -0.025970458984375, -0.0179443359375, -0.022857666015625, -0.040496826171875, -0.01922607421875, 0.018096923828125, -0.051513671875, -0.0266265869140625, -0.01407623291015625, 0.10394287109375, 0.00914764404296875, 0.0148162841796875, 0.01308441162109375, 0.0355224609375, 0.0472412109375, -0.06866455078125, 0.0802001953125, -0.06201171875, 0.0233306884765625, 0.05743408203125, -0.036346435546875, 0.034210205078125, -0.0088348388671875, 0.0276641845703125, 0.051513671875, -0.024505615234375, -0.0225677490234375, -0.024444580078125, -0.005489349365234375, 0.00102996826171875, 0.0147705078125, 0.1220703125, -0.05303955078125, -0.06854248046875, 0.01666259765625, 0.053375244140625, -0.00025177001953125, -0.017822265625, 0.044464111328125, -0.0252838134765625, -0.04327392578125, -0.040008544921875, -0.026031494140625, 0.006671905517578125, -0.0413818359375, -0.02978515625, 0.003749847412109375, -0.029510498046875, -0.11370849609375, -0.03240966796875, -0.08587646484375, 0.0672607421875, -0.0182037353515625, 0.0274505615234375, 0.0077362060546875, 0.05255126953125, -0.00379180908203125, -0.03912353515625, -0.0032196044921875, -0.021240234375, -0.0241851806640625, -0.0189361572265625, -0.005336761474609375, -0.028411865234375, -0.0123443603515625, 0.0038890838623046875, -0.0140228271484375, 0.015716552734375, -0.01503753662109375, 0.007843017578125, -0.0206756591796875, 0.020782470703125, 0.0303192138671875, -0.01251983642578125, 0.0171051025390625, 0.06988525390625, 0.0479736328125, -0.0018472671508789062, -0.0226593017578125, -0.0236053466796875, -0.056884765625, -0.032501220703125, 0.03912353515625, 0.00876617431640625, -0.03411865234375, -0.004642486572265625, 0.0240020751953125, 0.0028076171875, 0.01387786865234375, -0.01715087890625, 0.0249481201171875, 0.0165252685546875, 0.045013427734375, -0.0232696533203125, -0.006591796875, -0.01398468017578125, -0.016357421875, -0.03851318359375, 0.0295867919921875, -0.016143798828125, 0.0029239654541015625, -0.0560302734375, -0.0215301513671875, 0.048126220703125, -0.0021877288818359375, 0.015045166015625, -0.032257080078125, -0.0245361328125, -0.0220489501953125, 0.061492919921875, -0.033447265625, -0.015472412109375, -0.0253143310546875, 0.003772735595703125, -0.006381988525390625, -0.03826904296875, -0.0224609375, -0.0188446044921875, -0.017242431640625, 0.033905029296875, -0.00010907649993896484, -0.011962890625, -0.05023193359375, 0.00966644287109375, -0.0271759033203125, -0.01108551025390625, 0.0028247833251953125, 0.0157470703125, 0.0123443603515625, -0.00042510032653808594, -0.021392822265625, 0.0391845703125, 0.003170013427734375, -0.035247802734375, -0.046417236328125, -0.030487060546875, 0.0243377685546875, 0.0513916015625, 0.005397796630859375, -0.032958984375, 0.0137176513671875, 0.06591796875, -0.035308837890625, 0.04876708984375, -0.0200042724609375, 0.05328369140625, -0.0313720703125, -0.02862548828125, -0.0002789497375488281, -0.04107666015625, -0.01995849609375, -0.01470184326171875, 0.020416259765625, 0.054473876953125, -0.04345703125, 0.010162353515625, -0.056549072265625, 0.005825042724609375, 0.0056610107421875, -0.01485443115234375, 0.003414154052734375, 0.036590576171875, 0.004032135009765625, -0.002567291259765625, -0.02978515625, -0.0243377685546875, 0.0134124755859375, -0.0014514923095703125, -0.0034084320068359375, 0.00466156005859375, 0.0511474609375, 0.0203857421875, -0.025299072265625, -0.029876708984375, -0.035186767578125, 0.0308380126953125, 0.01523590087890625, 0.0130615234375, 0.007007598876953125, -0.028289794921875, 0.032928466796875, 0.01123809814453125, -0.01210784912109375, 0.0159149169921875, 0.035919189453125, -0.01007080078125, -0.03448486328125, 0.026763916015625, -0.020233154296875, -0.01134490966796875, 0.0125579833984375, -0.00940704345703125, -0.020721435546875, -0.05181884765625, 0.06982421875, 0.0294342041015625, 0.00449371337890625, -0.06719970703125, -0.06719970703125, 0.0203399658203125, -0.0740966796875, 0.039642333984375, 0.019439697265625, -0.007110595703125, 0.0621337890625, 0.0282440185546875, -0.015106201171875, 0.045562744140625, 0.0242919921875, 0.0291595458984375, 0.0007386207580566406, 0.084716796875, -0.0189666748046875, -0.002925872802734375, -0.0049591064453125, 0.08087158203125, 0.0145263671875, -0.041046142578125, 0.01515960693359375, -0.0186004638671875, 0.007080078125, 0.02337646484375, -0.0010213851928710938, 0.037811279296875, 0.0177459716796875, 0.0086822509765625, 0.01378631591796875, -0.0299072265625, 0.00566864013671875, -0.0308685302734375, 0.0032520294189453125, 0.020660400390625, -0.01059722900390625, 0.03863525390625, 0.0236358642578125, 0.00093841552734375, 0.0345458984375, -0.022796630859375, 0.051849365234375, 0.01003265380859375, 0.051544189453125, 0.0059356689453125, 0.007167816162109375, 0.001407623291015625, 0.0279998779296875, -0.0193939208984375, -0.00021791458129882812, -0.0174713134765625, 0.0173797607421875, 0.00937652587890625, 0.050201416015625, 0.040069580078125, -0.02655029296875, 0.00574493408203125, -0.0052490234375, 0.042633056640625, 0.06414794921875, -0.01142120361328125, 0.004119873046875, 0.011566162109375, 0.0046234130859375, 0.01552581787109375, 0.0008897781372070312, -0.032257080078125, -0.0269012451171875, -0.0034580230712890625, -0.007114410400390625, -0.0202484130859375, 0.00363922119140625, 0.0017118453979492188, -0.00156402587890625, -0.02459716796875, -0.007724761962890625, -0.05242919921875, -0.00859832763671875, -0.017669677734375, -0.000518798828125, 0.02496337890625, 0.0231475830078125, 0.0291595458984375, -0.02545166015625, -0.0309906005859375, -0.01212310791015625, -0.007785797119140625, 0.043701171875, -0.0005993843078613281, -0.03289794921875, 0.015045166015625, -0.040496826171875, -0.01236724853515625, -0.0380859375, -0.07940673828125, -0.036590576171875, -0.0123748779296875, -0.0025196075439453125, 0.0296783447265625, 0.014007568359375, 0.01666259765625, -0.0022735595703125, 0.007472991943359375, -0.0231475830078125, 0.05230712890625, -0.0170745849609375, 0.04437255859375, 0.0202789306640625, 0.0352783203125, 0.027252197265625, 0.0242156982421875, -0.029876708984375, -0.01824951171875, -0.001926422119140625, -0.018463134765625, 0.007801055908203125, 0.0258636474609375, -0.02728271484375, -0.023712158203125, 0.02984619140625, 0.004917144775390625, 0.00420379638671875, -0.016937255859375, -0.0002167224884033203, -0.016204833984375, 0.0204620361328125, 0.0065765380859375, 0.006038665771484375, 0.02362060546875, 0.0081329345703125, 0.00124359130859375, -0.01153564453125, -0.005115509033203125, -0.027557373046875, 0.016693115234375, -0.02764892578125, -0.003604888916015625, -0.0157318115234375, 0.056640625, 0.0709228515625, 0.0105743408203125, 0.039459228515625, 0.0277557373046875, 0.0235748291015625, 0.005962371826171875, 0.0148162841796875, 0.023773193359375, -0.0333251953125, 0.031494140625, -0.0037174224853515625, 0.007755279541015625, 0.0064239501953125, -0.020233154296875, 0.006320953369140625, -0.0186614990234375, 0.00385284423828125, -0.0260009765625, 0.01146697998046875, -0.01849365234375, -0.0090179443359375, 0.044647216796875, -0.006725311279296875, 0.018890380859375, -0.0237579345703125, 0.034759521484375, 0.0215606689453125, -0.010040283203125, 0.0034427642822265625, -0.02984619140625, 0.005126953125, -0.04132080078125, -0.01052093505859375, -0.0244140625, -0.0633544921875, 0.006252288818359375, 0.053558349609375, -0.019073486328125, -0.053619384765625, -0.0233001708984375, 0.051177978515625, -0.01629638671875, -0.07928466796875, 0.040252685546875, -0.05108642578125, 0.0293426513671875, 0.0030384063720703125, 0.0169677734375, -0.0036907196044921875, 0.032318115234375, -0.01316070556640625, 0.0296783447265625, 0.0234527587890625, -0.047088623046875, -0.0562744140625, -0.0316162109375, 0.0010080337524414062, 0.031646728515625, 0.0104827880859375, 0.031280517578125, 0.005146026611328125, -0.03619384765625, 0.0178985595703125, 0.07574462890625, 0.049285888671875, -0.0311279296875, -0.0278167724609375, 0.0523681640625, 0.00983428955078125, -0.01093292236328125, 0.031463623046875, 0.0144500732421875, -0.021942138671875, -0.018096923828125, 0.018707275390625, -0.0487060546875, -0.01042938232421875, 0.01119232177734375, -0.07666015625, 0.08331298828125, 0.00457763671875, 0.042449951171875, 0.01039886474609375, 0.00853729248046875, -0.0313720703125, -0.00746917724609375, -0.025787353515625, 0.049560546875, -0.04510498046875, 0.05047607421875, -0.06982421875, -0.0161590576171875, 0.01160430908203125, 0.06304931640625, 0.065185546875, 0.0217437744140625, -0.035858154296875, -0.02178955078125, 0.0199127197265625, 0.045928955078125, 0.0001703500747680664, 0.032989501953125, -0.007549285888671875, 0.014251708984375, 0.02423095703125, -0.016632080078125, 0.01561737060546875, -0.007049560546875, -0.02032470703125, 0.0188446044921875, 0.022491455078125, 0.037200927734375, 0.027191162109375, -0.0091400146484375, 0.0059051513671875, 0.0092620849609375, 0.00360107421875, -0.045928955078125, 0.0136566162109375, 0.0333251953125, 0.06591796875, -0.036041259765625, -0.015289306640625, -0.028167724609375, 0.05914306640625, 0.027008056640625, 0.00815582275390625, 0.0372314453125, 0.035247802734375, 0.03564453125, -0.01070404052734375, 0.0104827880859375, -0.0045318603515625, -0.021636962890625, 0.048980712890625, 0.01227569580078125, 0.035675048828125, -0.060821533203125, -0.046051025390625, 0.027862548828125, 0.05682373046875, -0.022705078125, -0.0197601318359375, 0.0189666748046875, 0.00896453857421875, 0.0129547119140625, -0.001720428466796875, 0.038177490234375, -0.0048675537109375, 0.0239410400390625, -0.021240234375, -0.0297698974609375, -0.023345947265625, 0.0240631103515625, -0.002231597900390625, 0.00021219253540039062, 0.030792236328125, -0.0246429443359375, -0.07110595703125, 0.034820556640625, 0.0304107666015625, 0.044036865234375, -0.01403045654296875, 0.0841064453125, 0.0260162353515625, -0.0080413818359375, 0.03973388671875, -0.003204345703125, 0.0275726318359375, -0.07135009765625, 0.02313232421875, -0.0213775634765625, -0.00015473365783691406, 0.011077880859375, 0.0455322265625, 0.00569915771484375, 0.0313720703125, 0.0017614364624023438, -0.0267486572265625, -0.005985260009765625, -0.01226806640625, -0.0280914306640625, 0.00916290283203125, -0.03369140625, -0.017425537109375, 0.004039764404296875, -0.04071044921875, 0.018341064453125, -0.0489501953125, 0.047637939453125, 0.0010290145874023438, -0.01123046875, 0.0176544189453125, 0.007381439208984375, 0.0230865478515625, 0.01959228515625, -0.0538330078125, 0.0248565673828125, -0.050994873046875, 0.00858306884765625, -0.0276947021484375, -0.05108642578125, 0.0201416015625, 0.03466796875, -0.04010009765625, 0.040863037109375, -0.00649261474609375, 0.01441192626953125, -0.00534820556640625, -0.0257415771484375, 0.029571533203125, 0.01044464111328125, 0.00962066650390625, 0.024688720703125, -0.06591796875, -0.0394287109375, -0.0321044921875, 0.01425933837890625, 0.0309600830078125, 0.0589599609375, 0.025360107421875, 0.0255126953125, -0.00902557373046875, 0.037139892578125, -0.043304443359375, -0.0308074951171875, 0.07391357421875, -0.005084991455078125, -0.004974365234375, -0.01157379150390625, -0.0008726119995117188, 0.0521240234375, 0.0191192626953125, 0.00658416748046875, 0.04864501953125, -0.049835205078125, -0.0013523101806640625, -0.01800537109375, 0.01180267333984375, -0.01513671875, -0.01363372802734375, -0.034149169921875, -0.01483154296875, 0.0338134765625, 0.028472900390625, 0.0027370452880859375, 0.02490234375, 0.0035953521728515625, 0.021728515625, 0.01082611083984375, 0.00579833984375, -0.0007200241088867188, 0.018310546875, -0.034637451171875, -0.0031108856201171875, -0.004302978515625, -0.011627197265625, 0.029876708984375, 0.0022373199462890625, 0.032684326171875, 0.01561737060546875, 0.0231170654296875, 0.010223388671875, 0.029205322265625, 0.0653076171875, -0.003459930419921875, 0.0287628173828125, 0.01995849609375, -0.00036454200744628906, 0.003143310546875, -0.0218963623046875, -0.037078857421875, -0.039794921875, 0.01531219482421875, 0.038726806640625, -0.01465606689453125, 0.00919342041015625, -0.06890869140625, -0.0421142578125, -0.0117034912109375, 0.0006265640258789062, -0.00299835205078125, -0.007076263427734375, 0.0229644775390625, -0.0228118896484375, -0.042877197265625, -0.00141143798828125, 0.015625, 0.022308349609375, -0.0194549560546875, 0.0145416259765625, -0.040496826171875, -0.0194854736328125, -0.0182037353515625, 0.0242919921875, 0.01241302490234375, -0.033782958984375, 0.004222869873046875, 0.0740966796875, 0.055023193359375, 0.1082763671875, 0.027587890625, -0.0043792724609375, 0.01983642578125, 0.003925323486328125, -0.0276641845703125, -0.048980712890625, 0.0265350341796875, -0.047515869140625, -0.0134429931640625, -0.01111602783203125, 0.02923583984375, 0.05224609375, -0.024658203125, -0.059844970703125, 0.0814208984375, -0.033203125, -0.0212249755859375, -0.04168701171875, -0.006359100341796875, 0.01568603515625, 0.00850677490234375, -0.00832366943359375, -0.01506805419921875, -0.03448486328125, 0.031829833984375, -0.01258087158203125, 0.00240325927734375, 0.033477783203125, -0.0125885009765625, -0.0013818740844726562, 0.00814056396484375, 0.027923583984375, -0.018280029296875, 0.00004476308822631836, -0.0288238525390625, 0.020263671875, 0.0243072509765625, -0.043914794921875, -0.0298004150390625, -0.0040740966796875, 0.00302886962890625, -0.0174102783203125, 0.01142120361328125, -0.0186004638671875, 0.0223541259765625, 0.01477813720703125, 0.083251953125, 0.007236480712890625, -0.062255859375, 0.09210205078125, 0.01168060302734375, -0.08544921875, 0.006824493408203125, 0.032196044921875, -0.01800537109375, -0.0204925537109375, 0.01203155517578125, 0.0001691579818725586, 0.00885772705078125, -0.03887939453125, -0.0172882080078125, -0.01212310791015625, -0.0170135498046875, 0.0195465087890625, -0.027435302734375, 0.04290771484375, 0.0277252197265625, -0.0207672119140625, -0.0142669677734375, -0.0287628173828125, -0.0078277587890625, -0.0087432861328125, -0.06524658203125, 0.006977081298828125, -0.03900146484375, 0.004192352294921875, 0.031036376953125, 0.0031223297119140625, 0.035675048828125, -0.00952911376953125, -0.042449951171875, -0.032745361328125, 0.0035610198974609375, 0.00716400146484375, -0.01264190673828125, 0.0026721954345703125, -0.0178680419921875, -0.007335662841796875, 0.047088623046875, -0.0224761962890625, 0.05029296875, -0.0171051025390625, 0.047027587890625, -0.0302734375, -0.010284423828125, -0.03228759765625, 0.004566192626953125, -0.032440185546875, 0.01520538330078125, -0.028839111328125, -0.08111572265625, 0.06561279296875, 0.0653076171875, 0.029327392578125, 0.046295166015625 ]
92748238f50cfa4743b237d86a3842c8207603bd
Wordpress Stackexchange Q: Child theme functions.php do I use php open and close tags? I setup a child theme which works fine. It's importing the main style.css and has custom css styles along with custom header.php and footer.php files When using functions.php in a child theme it's going to append the child themes functions.php to the main theme. Do I need to wrap my functions in opening and closing php tags or can I just add the following without php tags add_image_size( 'related-thumbnail', 130, 130, true ); A: Opening tags are required, closing tags are only needed if you have other code (HTML, CSS) after them in the same file. See PHP manual. A closing tag with nothing after it may lead to problems with included files if they contain a BOM. That’s one of the reasons why all optional closing tags were removed for WordPress 3.4 in core files. Follow this style. It’s useful. Here is an example from Automattic’s _s theme’s functions.php.
Q: Child theme functions.php do I use php open and close tags? I setup a child theme which works fine. It's importing the main style.css and has custom css styles along with custom header.php and footer.php files When using functions.php in a child theme it's going to append the child themes functions.php to the main theme. Do I need to wrap my functions in opening and closing php tags or can I just add the following without php tags add_image_size( 'related-thumbnail', 130, 130, true ); A: Opening tags are required, closing tags are only needed if you have other code (HTML, CSS) after them in the same file. See PHP manual. A closing tag with nothing after it may lead to problems with included files if they contain a BOM. That’s one of the reasons why all optional closing tags were removed for WordPress 3.4 in core files. Follow this style. It’s useful. Here is an example from Automattic’s _s theme’s functions.php. A: The opening tag <?php is mandatory. The closing one ?>, not. But it is recommended not have the closing tag at all, as it can break/freeze the site due to extra white spaces after it. It's also recommended not to use the short opening tag <?, as some servers may not have it enabled. Then you may have some Html being printed in the middle of PHP code, when the later is closed and reopened after the former ended. Or vice versa, when the PHP file starts with Html, and the PHP will be opened-closed and Html follows. Documentation (as usual there, the comments are worth reading too): http://php.net/manual/en/language.basic-syntax.phpmode.php In this Question's context, if the parent's functions.php has a closing tag, just check if no white spaces after it, or simply remove it. And in the child's functions.php, just put the opening tag and start writing/pasting all the needed mods/enhancements. Taking care that extra <?php ?> are under control. A: Your php file should always begin with an opening <?php tag.
wordpress
{ "language": "en", "length": 334, "provenance": "stackexchange_00019.jsonl.gz:422255", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59718" }
[ 0.03485107421875, 0.0003807544708251953, -0.00475311279296875, -0.048980712890625, 0.0153961181640625, -0.005115509033203125, 0.00872802734375, -0.012054443359375, -0.012847900390625, 0.014312744140625, -0.052032470703125, 0.01519012451171875, -0.04815673828125, -0.007236480712890625, -0.0266571044921875, -0.051361083984375, 0.05279541015625, -0.04718017578125, 0.017486572265625, 0.00811004638671875, -0.00653839111328125, 0.05523681640625, 0.02850341796875, 0.04248046875, 0.034881591796875, -0.06768798828125, 0.03131103515625, -0.00890350341796875, 0.0288543701171875, -0.0154266357421875, 0.0123291015625, -0.004322052001953125, 0.01849365234375, 0.051422119140625, -0.04327392578125, 0.012451171875, 0.01473236083984375, 0.00926971435546875, 0.009063720703125, 0.041412353515625, 0.014984130859375, 0.0008106231689453125, 0.00795745849609375, 0.020782470703125, -0.00931549072265625, -0.051177978515625, 0.028167724609375, -0.04571533203125, -0.0131072998046875, -0.0157318115234375, 0.053192138671875, -0.0097503662109375, 0.05999755859375, -0.01250457763671875, -0.00936126708984375, 0.030120849609375, -0.0245208740234375, 0.037689208984375, 0.0212554931640625, -0.004352569580078125, -0.035919189453125, -0.00027823448181152344, 0.006317138671875, -0.007129669189453125, 0.020904541015625, -0.005279541015625, 0.0145111083984375, 0.0252532958984375, -0.039581298828125, 0.0123291015625, 0.036895751953125, -0.030914306640625, -0.0016460418701171875, -0.03662109375, 0.04730224609375, 0.01100921630859375, -0.01113128662109375, -0.0016269683837890625, 0.005035400390625, 0.0230712890625, -0.01094818115234375, -0.01123809814453125, -0.0006785392761230469, -0.03155517578125, 0.034912109375, 0.01812744140625, -0.0094146728515625, -0.0033016204833984375, -0.027313232421875, -0.0226287841796875, -0.03533935546875, -0.01206207275390625, -0.0276947021484375, -0.0323486328125, -0.0140228271484375, -0.023468017578125, 0.004154205322265625, -0.023590087890625, -0.0009822845458984375, 0.0107269287109375, 0.03363037109375, -0.050018310546875, 0.05523681640625, -0.0259552001953125, 0.01214599609375, 0.10076904296875, -0.039459228515625, -0.022613525390625, 0.0304718017578125, 0.0249176025390625, 0.053955078125, -0.04046630859375, -0.02471923828125, -0.0369873046875, 0.0158843994140625, 0.0338134765625, -0.042816162109375, 0.0506591796875, 0.00360870361328125, 0.04107666015625, -0.0142364501953125, 0.00174713134765625, -0.002300262451171875, -0.0044097900390625, 0.04168701171875, 0.0002567768096923828, -0.0293731689453125, 0.007038116455078125, 0.0175018310546875, 0.06561279296875, -0.03094482421875, 0.01139068603515625, 0.02667236328125, -0.043975830078125, -0.03887939453125, -0.032806396484375, 0.0230865478515625, -0.053253173828125, 0.004390716552734375, 0.00897979736328125, 0.0258941650390625, -0.049072265625, -0.01401519775390625, 0.0113525390625, 0.0022258758544921875, 0.0169830322265625, 0.0154876708984375, 0.00395965576171875, -0.00844573974609375, -0.068603515625, 0.07928466796875, -0.0643310546875, 0.06195068359375, -0.002838134765625, -0.053985595703125, -0.004650115966796875, -0.0106353759765625, -0.00791168212890625, -0.038238525390625, -0.025390625, -0.026947021484375, -0.021087646484375, 0.033905029296875, -0.0188140869140625, -0.042236328125, 0.0294952392578125, -0.0304107666015625, -0.005558013916015625, 0.023162841796875, -0.0211944580078125, 0.046051025390625, -0.0236053466796875, -0.0205230712890625, 0.014739990234375, 0.0221710205078125, 0.02276611328125, 0.0113525390625, 0.0267486572265625, 0.02978515625, 0.032470703125, -0.0110015869140625, -0.037139892578125, 0.08441162109375, -0.044525146484375, -0.049346923828125, 0.0105133056640625, -0.01128387451171875, 0.0262908935546875, 0.0487060546875, 0.019195556640625, -0.0167999267578125, -0.01296234130859375, -0.0009303092956542969, -0.011260986328125, 0.0107269287109375, -0.021942138671875, -0.0139923095703125, 0.0018987655639648438, -0.0160064697265625, -0.020172119140625, -0.0246429443359375, 0.007747650146484375, 0.01483917236328125, 0.0006494522094726562, -0.0105743408203125, 0.0194091796875, -0.0289459228515625, 0.043975830078125, -0.045928955078125, 0.01136016845703125, 0.029205322265625, -0.01235198974609375, -0.036712646484375, 0.0119171142578125, 0.0286407470703125, -0.0071563720703125, 0.01446533203125, 0.086669921875, 0.0238037109375, 0.0300750732421875, 0.01971435546875, -0.032073974609375, 0.0290069580078125, 0.0022830963134765625, 0.037506103515625, 0.0105438232421875, -0.0283355712890625, -0.01393890380859375, -0.01474761962890625, 0.021820068359375, -0.053558349609375, 0.0357666015625, 0.05084228515625, 0.0328369140625, -0.0401611328125, -0.0081024169921875, -0.0242767333984375, -0.03436279296875, -0.0201873779296875, 0.046844482421875, 0.035919189453125, 0.048797607421875, 0.0012350082397460938, -0.003448486328125, 0.09326171875, -0.003765106201171875, 0.02288818359375, -0.0210418701171875, -0.00466156005859375, -0.008209228515625, 0.0302886962890625, -0.03265380859375, 0.030609130859375, -0.069091796875, 0.01358795166015625, 0.01517486572265625, -0.0321044921875, -0.042694091796875, 0.036590576171875, -0.047088623046875, 0.041473388671875, -0.08367919921875, -0.07574462890625, -0.0057525634765625, 0.0019855499267578125, -0.00878143310546875, 0.01306915283203125, 0.004901885986328125, -0.018951416015625, -0.0197906494140625, 0.0325927734375, 0.0283050537109375, -0.0145111083984375, 0.0323486328125, -0.021392822265625, 0.0223236083984375, 0.0006527900695800781, 0.00923919677734375, -0.04461669921875, 0.006359100341796875, 0.0026302337646484375, 0.01971435546875, -0.01739501953125, -0.007472991943359375, 0.007965087890625, 0.0168609619140625, 0.00670623779296875, 0.0286712646484375, 0.03668212890625, 0.0022182464599609375, 0.01418304443359375, 0.0635986328125, -0.00472259521484375, 0.061553955078125, 0.027587890625, -0.006153106689453125, 0.0009484291076660156, 0.0011873245239257812, 0.0164337158203125, -0.00171661376953125, 0.0509033203125, 0.05584716796875, -0.0042877197265625, 0.005153656005859375, -0.0041656494140625, 0.04095458984375, 0.007061004638671875, 0.0218963623046875, -0.004486083984375, -0.031829833984375, -0.01407623291015625, -0.039459228515625, 0.037139892578125, 0.058013916015625, -0.018829345703125, -0.045440673828125, -0.0203704833984375, 0.0298004150390625, -0.036865234375, -0.03033447265625, -0.018463134765625, -0.04150390625, -0.061126708984375, 0.00016582012176513672, -0.040130615234375, 0.0222015380859375, 0.005062103271484375, -0.00632476806640625, 0.0027866363525390625, -0.038848876953125, -0.0692138671875, -0.06353759765625, -0.079833984375, 0.022491455078125, -0.0012102127075195312, 0.016632080078125, -0.00873565673828125, 0.050506591796875, 0.0009446144104003906, -0.027252197265625, -0.00197601318359375, -0.0171356201171875, -0.00905609130859375, -0.004680633544921875, 0.0072021484375, -0.03424072265625, -0.0033054351806640625, 0.02227783203125, -0.0207672119140625, -0.01000213623046875, -0.007541656494140625, -0.0175628662109375, -0.01192474365234375, -0.056915283203125, 0.00116729736328125, 0.07440185546875, 0.0034427642822265625, -0.0267791748046875, 0.06329345703125, -0.048065185546875, -0.059722900390625, -0.008270263671875, -0.0667724609375, 0.01165771484375, 0.076416015625, -0.0242919921875, -0.015289306640625, -0.021697998046875, 0.046630859375, 0.0289459228515625, -0.0065765380859375, -0.0019311904907226562, 0.062255859375, 0.0022296905517578125, 0.03460693359375, -0.046295166015625, 0.0611572265625, 0.00534820556640625, -0.00727081298828125, 0.0220794677734375, 0.016510009765625, -0.00632476806640625, -0.033111572265625, -0.051666259765625, -0.021575927734375, 0.034637451171875, -0.01263427734375, 0.0201873779296875, -0.0274505615234375, -0.021697998046875, -0.0262451171875, 0.04913330078125, -0.037353515625, -0.0272216796875, 0.00806427001953125, 0.00678253173828125, -0.047821044921875, 0.026275634765625, -0.048614501953125, 0.01116180419921875, -0.0243072509765625, -0.0036029815673828125, 0.001064300537109375, 0.0072021484375, -0.013519287109375, 0.0699462890625, -0.01031494140625, -0.0157623291015625, 0.007579803466796875, 0.050537109375, 0.004566192626953125, 0.009307861328125, -0.0186920166015625, 0.0276947021484375, 0.01904296875, -0.0109100341796875, -0.06488037109375, -0.017608642578125, -0.06573486328125, 0.09417724609375, 0.060821533203125, -0.038330078125, -0.020233154296875, 0.05328369140625, 0.0298004150390625, 0.0078887939453125, 0.00754547119140625, -0.006237030029296875, 0.005016326904296875, -0.01087188720703125, 0.01557159423828125, -0.0265350341796875, -0.031219482421875, -0.01248931884765625, -0.03192138671875, 0.029815673828125, 0.0117645263671875, 0.00313568115234375, 0.04931640625, -0.01491546630859375, -0.0098114013671875, 0.019073486328125, -0.018310546875, -0.0098876953125, 0.0086212158203125, -0.048004150390625, 0.033050537109375, -0.0239715576171875, 0.033905029296875, 0.00608062744140625, -0.0179901123046875, 0.0112762451171875, 0.055633544921875, 0.0225677490234375, -0.02337646484375, -0.0550537109375, -0.0230865478515625, 0.049896240234375, -0.00551605224609375, 0.0165863037109375, -0.0023059844970703125, -0.059539794921875, 0.068603515625, 0.022613525390625, 0.0146331787109375, -0.01678466796875, 0.08270263671875, -0.01522064208984375, -0.037384033203125, 0.046539306640625, -0.00853729248046875, -0.0175323486328125, -0.005741119384765625, -0.0052032470703125, -0.00608062744140625, -0.001186370849609375, 0.0142364501953125, 0.0245361328125, -0.008880615234375, -0.02557373046875, -0.0196990966796875, 0.00765228271484375, 0.0162811279296875, 0.039215087890625, 0.034423828125, 0.005756378173828125, 0.02191162109375, 0.00786590576171875, 0.01326751708984375, 0.01482391357421875, 0.0264434814453125, -0.0224151611328125, 0.039306640625, -0.0004487037658691406, -0.006633758544921875, -0.004405975341796875, 0.0015935897827148438, -0.00936126708984375, 0.033050537109375, -0.002971649169921875, -0.032745361328125, 0.0247039794921875, 0.0094146728515625, -0.03460693359375, 0.036285400390625, 0.046783447265625, -0.01042938232421875, -0.011993408203125, -0.026824951171875, 0.0125579833984375, -0.01508331298828125, -0.034820556640625, -0.02838134765625, 0.011688232421875, -0.03594970703125, 0.0223388671875, -0.031341552734375, -0.011016845703125, -0.00971221923828125, -0.0006403923034667969, -0.024169921875, -0.0166778564453125, 0.0253753662109375, 0.0267486572265625, -0.0161895751953125, 0.035430908203125, -0.0179901123046875, 0.06890869140625, 0.00322723388671875, -0.0025119781494140625, 0.02947998046875, -0.003204345703125, 0.00632476806640625, 0.03350830078125, -0.01531219482421875, 0.028717041015625, -0.02850341796875, 0.017120361328125, 0.056854248046875, 0.0074462890625, 0.0006074905395507812, 0.0264739990234375, 0.0286102294921875, 0.050872802734375, -0.01029205322265625, 0.0104522705078125, -0.0279083251953125, 0.00601959228515625, 0.0038623809814453125, -0.03271484375, 0.01457977294921875, 0.0030040740966796875, -0.006984710693359375, 0.01922607421875, 0.019775390625, -0.04095458984375, -0.037139892578125, -0.037017822265625, -0.022125244140625, 0.0679931640625, -0.058807373046875, 0.0168914794921875, -0.0215911865234375, 0.005565643310546875, -0.01500701904296875, 0.005382537841796875, 0.078857421875, 0.06158447265625, -0.0814208984375, 0.00469207763671875, -0.03179931640625, -0.005126953125, -0.0264129638671875, -0.03411865234375, -0.048828125, -0.0030059814453125, 0.0027313232421875, 0.0276641845703125, -0.0087432861328125, -0.00415802001953125, -0.03338623046875, 0.0003590583801269531, 0.01549530029296875, 0.045074462890625, -0.036346435546875, 0.049774169921875, 0.0203094482421875, 0.02423095703125, 0.01351165771484375, 0.0289306640625, 0.024993896484375, -0.020660400390625, 0.0203094482421875, -0.006862640380859375, -0.0391845703125, -0.0259552001953125, -0.0247344970703125, -0.0202178955078125, 0.033935546875, -0.015106201171875, 0.0264434814453125, -0.024566650390625, 0.003276824951171875, -0.022979736328125, 0.03436279296875, -0.03271484375, -0.00145721435546875, 0.021209716796875, -0.020538330078125, -0.006134033203125, 0.032196044921875, 0.0167694091796875, 0.0105133056640625, 0.008880615234375, -0.004638671875, 0.005794525146484375, -0.041595458984375, 0.053009033203125, 0.0528564453125, -0.01097869873046875, 0.0193939208984375, 0.0024051666259765625, -0.006839752197265625, 0.001377105712890625, 0.0281829833984375, -0.02020263671875, -0.02252197265625, 0.06304931640625, 0.01934814453125, -0.022705078125, 0.0252532958984375, -0.0286407470703125, -0.0161285400390625, 0.01493072509765625, 0.03070068359375, -0.0210723876953125, -0.00958251953125, 0.007076263427734375, -0.0059661865234375, 0.0021839141845703125, 0.00015234947204589844, -0.0211334228515625, -0.0169830322265625, 0.02227783203125, -0.0020294189453125, -0.005458831787109375, 0.0236053466796875, 0.01554107666015625, -0.0007467269897460938, -0.02783203125, 0.047332763671875, 0.01340484619140625, -0.0426025390625, 0.00942230224609375, 0.0244293212890625, 0.01541900634765625, -0.01751708984375, 0.01861572265625, -0.0299530029296875, -0.0462646484375, -0.036865234375, -0.0191497802734375, 0.0254669189453125, -0.00766754150390625, -0.042694091796875, -0.0309906005859375, -0.003002166748046875, 0.044097900390625, -0.054229736328125, 0.036102294921875, 0.00441741943359375, 0.005474090576171875, -0.06243896484375, -0.018310546875, 0.051727294921875, -0.0435791015625, -0.041748046875, 0.021820068359375, -0.05889892578125, -0.048797607421875, -0.01145172119140625, -0.0013189315795898438, 0.050811767578125, -0.018341064453125, -0.029693603515625, 0.0258941650390625, 0.00807952880859375, -0.01181793212890625, -0.007587432861328125, 0.031463623046875, -0.06365966796875, -0.039337158203125, 0.006206512451171875, -0.04754638671875, -0.0241241455078125, -0.041290283203125, -0.069091796875, 0.11529541015625, 0.01337432861328125, 0.0203094482421875, 0.01300048828125, 0.05535888671875, -0.039642333984375, 0.0268707275390625, 0.01287078857421875, 0.00582122802734375, 0.0318603515625, -0.028717041015625, -0.01654052734375, -0.002895355224609375, -0.01898193359375, 0.04010009765625, 0.0104217529296875, 0.003528594970703125, -0.006885528564453125, 0.0024356842041015625, 0.058502197265625, 0.0416259765625, 0.01374053955078125, 0.00390625, -0.0183258056640625, -0.00963592529296875, 0.006160736083984375, -0.0134735107421875, 0.0268707275390625, -0.02032470703125, -0.0182647705078125, 0.0237274169921875, 0.0261688232421875, 0.005901336669921875, -0.02008056640625, -0.0190887451171875, -0.0107574462890625, -0.002262115478515625, 0.006656646728515625, -0.0004897117614746094, 0.004848480224609375, 0.037689208984375, 0.0416259765625, -0.04083251953125, -0.0258941650390625, -0.0162353515625, 0.040618896484375, 0.0019435882568359375, 0.02008056640625, -0.04144287109375, -0.0010004043579101562, 0.021484375, -0.01319122314453125, -0.023895263671875, 0.050079345703125, -0.0136871337890625, 0.006565093994140625, 0.0286102294921875, 0.03985595703125, -0.005641937255859375, -0.0201263427734375, -0.00215911865234375, 0.0159149169921875, -0.01010894775390625, -0.022674560546875, -0.004070281982421875, 0.004608154296875, -0.00428009033203125, 0.0033721923828125, 0.0298309326171875, 0.0345458984375, 0.0283203125, -0.01248931884765625, 0.0005979537963867188, 0.02215576171875, -0.00026345252990722656, 0.0272216796875, 0.08489990234375, -0.034759521484375, 0.00023889541625976562, -0.0278167724609375, 0.005069732666015625, 0.01154327392578125, 0.023468017578125, -0.0021190643310546875, 0.046173095703125, 0.0083160400390625, 0.004673004150390625, -0.0204925537109375, 0.0185699462890625, 0.0186767578125, 0.006969451904296875, -0.0284576416015625, -0.026092529296875, 0.03564453125, 0.04095458984375, 0.007617950439453125, 0.014373779296875, 0.0291748046875, 0.02587890625, -0.02923583984375, -0.0005507469177246094, 0.016693115234375, -0.0247039794921875, 0.003643035888671875, -0.004947662353515625, -0.0050201416015625, 0.0120086669921875, -0.010498046875, -0.0138702392578125, 0.033416748046875, 0.01110076904296875, -0.0129852294921875, 0.044769287109375, -0.004589080810546875, -0.006809234619140625, 0.0330810546875, -0.023834228515625, 0.08221435546875, 0.01177215576171875, -0.052581787109375, -0.0009560585021972656, -0.01531982421875, -0.0413818359375, 0.01383209228515625, 0.0299530029296875, -0.0352783203125, 0.02886962890625, 0.006195068359375, -0.027496337890625, -0.005580902099609375, 0.037322998046875, -0.0169525146484375, 0.032958984375, 0.04034423828125, 0.00868988037109375, -0.0022487640380859375, -0.0218658447265625, 0.00763702392578125, 0.060699462890625, -0.0027923583984375, 0.0911865234375, -0.055267333984375, 0.0193939208984375, 0.00859832763671875, 0.04052734375, -0.036590576171875, -0.0142059326171875, 0.061065673828125, -0.0307464599609375, 0.0011034011840820312, -0.01497650146484375, -0.05718994140625, 0.024322509765625, 0.0153656005859375, 0.0024433135986328125, -0.007244110107421875, 0.02789306640625, 0.0062103271484375, 0.0306396484375, 0.048828125, 0.002521514892578125, 0.0018138885498046875, -0.01399993896484375, -0.0188140869140625, 0.041900634765625, 0.0224761962890625, -0.0081787109375, 0.0238037109375, 0.048919677734375, 0.0078277587890625, 0.024261474609375, -0.01177978515625, 0.0158233642578125, 0.022613525390625, -0.004238128662109375, -0.0587158203125, -0.0084686279296875, -0.031494140625, 0.029144287109375, -0.0291595458984375, 0.09368896484375, -0.004669189453125, -0.036865234375, 0.040008544921875, 0.0633544921875, 0.043212890625, -0.039520263671875, 0.0192108154296875, 0.0628662109375, -0.0328369140625, 0.06280517578125, -0.01190948486328125, -0.021484375, -0.008209228515625, -0.005847930908203125, 0.01551055908203125, -0.01560211181640625, -0.035675048828125, -0.07080078125, 0.009735107421875, 0.06317138671875, 0.028350830078125, -0.062103271484375, -0.0004315376281738281, -0.01369476318359375, 0.061798095703125, 0.0284271240234375, 0.0367431640625, -0.025146484375, -0.0292510986328125, -0.0195465087890625, -0.048187255859375, -0.03216552734375, 0.0716552734375, -0.0025730133056640625, 0.048492431640625, 0.05010986328125, -0.053070068359375, 0.042938232421875, 0.046905517578125, 0.06768798828125, 0.1097412109375, 0.004039764404296875, -0.044403076171875, -0.0032100677490234375, -0.008636474609375, 0.0225677490234375, 0.00807952880859375, 0.0217742919921875, -0.058929443359375, -0.0231475830078125, -0.004642486572265625, -0.020172119140625, 0.006603240966796875, -0.0499267578125, -0.113525390625, 0.093505859375, -0.029541015625, -0.04229736328125, -0.0254974365234375, -0.029205322265625, -0.019561767578125, 0.0130462646484375, -0.01458740234375, 0.010009765625, -0.0140228271484375, 0.07476806640625, -0.0097198486328125, 0.00823974609375, 0.027252197265625, -0.0181427001953125, -0.0254974365234375, -0.0023670196533203125, 0.0113525390625, -0.009674072265625, 0.0120086669921875, -0.01155853271484375, 0.046112060546875, 0.042999267578125, -0.025360107421875, 0.03155517578125, 0.0035266876220703125, -0.0193634033203125, -0.01274871826171875, -0.0146636962890625, 0.0223846435546875, -0.004993438720703125, 0.033111572265625, 0.003200531005859375, -0.01074981689453125, 0.003566741943359375, -0.0287628173828125, -0.02520751953125, -0.033905029296875, 0.007396697998046875, 0.032073974609375, -0.05743408203125, 0.01274871826171875, 0.021575927734375, -0.0024585723876953125, 0.02447509765625, -0.0164642333984375, -0.01236724853515625, -0.00033664703369140625, 0.0003516674041748047, -0.0027332305908203125, -0.048187255859375, -0.0311279296875, 0.0380859375, -0.0202484130859375, -0.0031147003173828125, -0.0095672607421875, 0.0260009765625, 0.004528045654296875, -0.00928497314453125, 0.0279998779296875, 0.0243988037109375, -0.038299560546875, 0.007373809814453125, 0.0274505615234375, 0.0029582977294921875, -0.01348114013671875, -0.0292816162109375, -0.0259246826171875, 0.0032405853271484375, 0.020538330078125, 0.00673675537109375, -0.0201568603515625, 0.0360107421875, 0.0028057098388671875, 0.045989990234375, -0.0208740234375, 0.0263214111328125, -0.0239105224609375, 0.0419921875, -0.01186370849609375, 0.008514404296875, 0.0082244873046875, -0.00885772705078125, 0.01125335693359375, -0.0501708984375, 0.0178375244140625, -0.050994873046875, 0.01287078857421875, -0.01021575927734375, -0.00980377197265625, 0.0264739990234375 ]
64f9b569660196177b41901d9f2beeb5dfedbfe8
Wordpress Stackexchange Q: How to remove Tags: text from the_tags? The function the_tags(); gives output as: Tags: tag1, tag2. But I want to get the tags only without the text Tags:. How can I use the function so that it does not out the text`? Thanks. A: Use something like <?php the_tags('', ', ', '<br />'); ?> From Wordpress codex for the_tags(): <?php the_tags( $before, $sep, $after ); ?> Parameters $before (string) Text to display before the actual tags are displayed. Defaults to Tags: $sep (string) Text or character to display between each tag link. The default is a comma (,) between each tag. $after (string) Text to display after the last tag. The default is to display nothing.
Q: How to remove Tags: text from the_tags? The function the_tags(); gives output as: Tags: tag1, tag2. But I want to get the tags only without the text Tags:. How can I use the function so that it does not out the text`? Thanks. A: Use something like <?php the_tags('', ', ', '<br />'); ?> From Wordpress codex for the_tags(): <?php the_tags( $before, $sep, $after ); ?> Parameters $before (string) Text to display before the actual tags are displayed. Defaults to Tags: $sep (string) Text or character to display between each tag link. The default is a comma (,) between each tag. $after (string) Text to display after the last tag. The default is to display nothing.
wordpress
{ "language": "en", "length": 117, "provenance": "stackexchange_00019.jsonl.gz:422257", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59723" }
[ 0.01148223876953125, 0.00800323486328125, 0.002071380615234375, 0.0011987686157226562, 0.03228759765625, -0.028564453125, 0.057220458984375, -0.0268402099609375, 0.0082244873046875, 0.03155517578125, -0.045806884765625, -0.0243988037109375, -0.032440185546875, -0.02227783203125, -0.02435302734375, -0.07373046875, 0.020416259765625, -0.0032806396484375, 0.034210205078125, -0.0015239715576171875, 0.0135040283203125, 0.022491455078125, 0.0199127197265625, 0.059326171875, 0.01520538330078125, -0.0164794921875, 0.060577392578125, 0.00067138671875, 0.01222991943359375, -0.01068878173828125, 0.022735595703125, -0.01123046875, -0.0038928985595703125, 0.057708740234375, -0.04742431640625, -0.032562255859375, -0.0350341796875, 0.0169219970703125, 0.021026611328125, -0.01334381103515625, 0.03759765625, -0.0090789794921875, 0.006439208984375, 0.0283203125, -0.00711822509765625, -0.0018014907836914062, 0.035980224609375, -0.05413818359375, -0.0068206787109375, -0.0372314453125, 0.037322998046875, -0.0038738250732421875, 0.05706787109375, -0.0224151611328125, -0.024383544921875, 0.0219573974609375, -0.0282745361328125, 0.0252227783203125, 0.03515625, -0.00814056396484375, -0.03240966796875, 0.0017404556274414062, 0.0198516845703125, -0.01250457763671875, -0.012664794921875, 0.01389312744140625, 0.0292510986328125, 0.01403045654296875, -0.071044921875, -0.0242767333984375, 0.037841796875, -0.04425048828125, 0.003070831298828125, -0.053497314453125, -0.0077056884765625, 0.03289794921875, -0.03350830078125, -0.0253143310546875, 0.03131103515625, -0.0277862548828125, 0.052093505859375, -0.00815582275390625, -0.0321044921875, 0.0274658203125, 0.0027904510498046875, 0.042022705078125, -0.0037631988525390625, -0.034454345703125, -0.01186370849609375, -0.015594482421875, -0.028564453125, -0.01428985595703125, -0.004261016845703125, -0.00640106201171875, -0.017303466796875, -0.0162353515625, 0.0279541015625, 0.0181732177734375, -0.0145263671875, 0.00010830163955688477, 0.01427459716796875, -0.035980224609375, 0.0030879974365234375, -0.0253448486328125, 0.011962890625, 0.0248260498046875, -0.035919189453125, -0.0289764404296875, 0.046234130859375, 0.03631591796875, 0.0007328987121582031, -0.01580810546875, -0.021697998046875, -0.022674560546875, -0.03472900390625, 0.03936767578125, -0.0290069580078125, -0.0272216796875, -0.01654052734375, -0.01459503173828125, -0.0114898681640625, -0.005817413330078125, -0.036956787109375, 0.0231170654296875, 0.01074981689453125, -0.01026153564453125, 0.00739288330078125, 0.029571533203125, 0.023223876953125, 0.0013065338134765625, -0.020904541015625, 0.0105133056640625, -0.015777587890625, 0.0087432861328125, -0.0032806396484375, -0.0074005126953125, -0.033172607421875, -0.041259765625, -0.029205322265625, 0.03076171875, -0.0164337158203125, -0.04986572265625, 0.00286102294921875, -0.0219268798828125, 0.011932373046875, 0.0050201416015625, 0.017730712890625, 0.0088653564453125, -0.01654052734375, -0.052642822265625, 0.034637451171875, -0.01666259765625, 0.06341552734375, -0.0305328369140625, -0.041900634765625, -0.04058837890625, -0.0094451904296875, -0.03607177734375, -0.0202789306640625, -0.056396484375, 0.0108184814453125, -0.0269012451171875, -0.0239410400390625, -0.00861358642578125, -0.03656005859375, 0.020843505859375, -0.0323486328125, -0.0008106231689453125, 0.03582763671875, -0.0220947265625, 0.0386962890625, -0.0006957054138183594, 0.0572509765625, 0.0218353271484375, 0.0070953369140625, 0.0113677978515625, 0.00438690185546875, 0.0020046234130859375, 0.00009262561798095703, 0.03814697265625, -0.00818634033203125, -0.033538818359375, 0.00405120849609375, -0.01340484619140625, -0.09600830078125, 0.03173828125, 0.0272064208984375, 0.09881591796875, 0.042205810546875, 0.0298919677734375, 0.0567626953125, -0.01824951171875, -0.03240966796875, 0.024017333984375, 0.015045166015625, -0.0251617431640625, -0.047576904296875, -0.0305633544921875, -0.00981903076171875, -0.0016622543334960938, 0.01082611083984375, 0.00791168212890625, -0.0017633438110351562, 0.002124786376953125, -0.063720703125, 0.006755828857421875, -0.022186279296875, 0.04534912109375, -0.04583740234375, 0.01094818115234375, 0.033538818359375, -0.0093841552734375, -0.037322998046875, 0.0026950836181640625, 0.00719451904296875, -0.010955810546875, -0.0231475830078125, -0.011444091796875, 0.0017614364624023438, -0.00809478759765625, 0.027801513671875, -0.005207061767578125, 0.01474761962890625, 0.008087158203125, 0.032073974609375, -0.03338623046875, -0.0039520263671875, -0.0174713134765625, 0.019622802734375, -0.005893707275390625, -0.01470184326171875, 0.02252197265625, 0.01000213623046875, 0.042694091796875, -0.0141448974609375, 0.0037994384765625, 0.04290771484375, -0.026519775390625, 0.00606536865234375, 0.0207061767578125, 0.03302001953125, 0.050445556640625, -0.04791259765625, -0.055511474609375, 0.080078125, -0.00859832763671875, 0.01493072509765625, -0.038360595703125, 0.0298309326171875, 0.006870269775390625, 0.01434326171875, -0.049835205078125, 0.040618896484375, -0.050201416015625, 0.045135498046875, 0.0017871856689453125, -0.0196533203125, -0.005924224853515625, 0.003505706787109375, -0.03668212890625, 0.0114288330078125, 0.00835418701171875, 0.004459381103515625, -0.0146331787109375, 0.0280303955078125, 0.01544952392578125, 0.017608642578125, 0.0256805419921875, -0.01256561279296875, -0.0125885009765625, 0.01235198974609375, 0.0253143310546875, -0.0089569091796875, 0.0238494873046875, -0.01201629638671875, -0.039398193359375, -0.01329803466796875, -0.00492095947265625, -0.01428985595703125, -0.01934814453125, 0.0029048919677734375, 0.0609130859375, 0.042755126953125, -0.0257568359375, -0.015777587890625, 0.005626678466796875, 0.0078582763671875, -0.00569915771484375, -0.046630859375, -0.0029964447021484375, 0.0027923583984375, 0.068603515625, -0.0011892318725585938, 0.014739990234375, 0.00513458251953125, 0.040496826171875, 0.0005731582641601562, -0.032684326171875, 0.0306396484375, -0.03118896484375, 0.0221099853515625, 0.068603515625, -0.012847900390625, -0.0007886886596679688, 0.024688720703125, -0.0030994415283203125, 0.046142578125, -0.0039520263671875, -0.0059814453125, 0.047637939453125, -0.10772705078125, -0.03387451171875, 0.00510406494140625, 0.01861572265625, -0.031494140625, -0.06524658203125, -0.03521728515625, 0.00033545494079589844, -0.08953857421875, -0.01546478271484375, 0.05718994140625, -0.033599853515625, -0.0775146484375, 0.01285552978515625, -0.045379638671875, 0.0287933349609375, 0.020050048828125, -0.0248565673828125, -0.0270843505859375, -0.03350830078125, -0.0411376953125, -0.053955078125, -0.044830322265625, 0.0662841796875, -0.0030994415283203125, 0.035369873046875, 0.01503753662109375, 0.06585693359375, 0.0304412841796875, -0.04510498046875, 0.0287322998046875, -0.022003173828125, -0.00901031494140625, 0.0504150390625, 0.0165252685546875, -0.0246124267578125, 0.0198516845703125, 0.0157928466796875, 0.01413726806640625, 0.0167083740234375, 0.0032444000244140625, -0.0147705078125, 0.01451873779296875, -0.008331298828125, 0.04522705078125, -0.0119781494140625, -0.0233306884765625, 0.01983642578125, 0.027923583984375, -0.040496826171875, -0.0194244384765625, 0.03369140625, -0.0084381103515625, 0.056121826171875, -0.002475738525390625, -0.041656494140625, 0.004878997802734375, 0.041259765625, 0.0170135498046875, 0.02545166015625, -0.006099700927734375, -0.001251220703125, 0.02850341796875, 0.004245758056640625, 0.01033782958984375, -0.0031585693359375, 0.011932373046875, -0.01462554931640625, 0.0228424072265625, -0.0193939208984375, 0.0209503173828125, 0.00200653076171875, 0.00016307830810546875, -0.039031982421875, -0.00540924072265625, 0.036865234375, 0.020660400390625, -0.010406494140625, 0.010528564453125, -0.023468017578125, 0.0016584396362304688, 0.04443359375, -0.025360107421875, -0.00872802734375, -0.023040771484375, 0.00983428955078125, 0.006500244140625, -0.0276947021484375, -0.0213623046875, -0.01763916015625, -0.106689453125, 0.018341064453125, -0.0335693359375, -0.008026123046875, 0.01250457763671875, 0.003208160400390625, -0.012603759765625, -0.047943115234375, 0.0286102294921875, 0.0019989013671875, -0.009490966796875, -0.03863525390625, 0.0082550048828125, -0.073486328125, 0.006305694580078125, 0.00011527538299560547, -0.005184173583984375, 0.007373809814453125, -0.001445770263671875, -0.02783203125, -0.01453399658203125, 0.01447296142578125, 0.021881103515625, 0.0206756591796875, 0.02960205078125, -0.03558349609375, 0.030029296875, -0.00627899169921875, 0.003955841064453125, 0.0021038055419921875, 0.0034046173095703125, -0.04583740234375, -0.002197265625, -0.0096282958984375, -0.0171356201171875, 0.06463623046875, -0.0216522216796875, 0.0308685302734375, 0.00920867919921875, -0.019256591796875, -0.035186767578125, -0.012451171875, 0.005401611328125, -0.005207061767578125, -0.01081085205078125, 0.0227203369140625, 0.0165557861328125, -0.03271484375, 0.04248046875, 0.0352783203125, -0.048187255859375, -0.003787994384765625, 0.033538818359375, 0.02935791015625, -0.045013427734375, -0.0258026123046875, -0.015869140625, 0.063232421875, -0.00571441650390625, 0.01277923583984375, 0.0251312255859375, -0.06512451171875, 0.0721435546875, 0.033111572265625, 0.04327392578125, -0.04296875, 0.0869140625, -0.011077880859375, -0.00180816650390625, 0.03057861328125, -0.0264434814453125, -0.027008056640625, -0.006069183349609375, 0.0085906982421875, -0.0282135009765625, 0.05413818359375, 0.0181121826171875, -0.0031757354736328125, -0.00004309415817260742, -0.007640838623046875, -0.01235198974609375, 0.01561737060546875, 0.0771484375, -0.023345947265625, -0.008758544921875, 0.016082763671875, -0.021820068359375, 0.017333984375, 0.0238494873046875, -0.059814453125, -0.05682373046875, -0.050567626953125, 0.0244903564453125, -0.04010009765625, 0.00983428955078125, 0.0089569091796875, 0.00421905517578125, 0.02130126953125, 0.002368927001953125, -0.0196075439453125, -0.0140380859375, -0.0175933837890625, 0.044830322265625, 0.01163482666015625, 0.0294647216796875, 0.0144195556640625, -0.0232696533203125, 0.025787353515625, 0.031158447265625, 0.005855560302734375, -0.0203399658203125, -0.0089263916015625, -0.02880859375, -0.01204681396484375, -0.01027679443359375, 0.01261138916015625, 0.05169677734375, -0.045745849609375, 0.04547119140625, -0.01085662841796875, -0.0099029541015625, -0.04498291015625, 0.045318603515625, 0.01349639892578125, -0.0225982666015625, 0.01528167724609375, 0.0164031982421875, 0.031524658203125, -0.02850341796875, -0.00969696044921875, 0.062255859375, 0.0333251953125, 0.003849029541015625, -0.0201263427734375, -0.01299285888671875, -0.0068817138671875, 0.0099334716796875, 0.05096435546875, 0.0005116462707519531, -0.0250244140625, -0.04180908203125, -0.019012451171875, 0.040924072265625, -0.0167083740234375, -0.0002777576446533203, 0.04730224609375, 0.0196075439453125, 0.0469970703125, 0.022552490234375, -0.0100860595703125, -0.014801025390625, -0.005908966064453125, -0.00942230224609375, -0.01505279541015625, -0.0093536376953125, -0.05072021484375, -0.0304718017578125, -0.0035037994384765625, -0.0004954338073730469, 0.0288238525390625, -0.0196075439453125, 0.03228759765625, -0.036590576171875, -0.01346588134765625, -0.055908203125, 0.0022983551025390625, 0.06549072265625, 0.0406494140625, -0.061248779296875, 0.01506805419921875, -0.037445068359375, -0.005901336669921875, -0.034027099609375, -0.056427001953125, -0.040374755859375, -0.0215606689453125, 0.002056121826171875, 0.0011844635009765625, -0.0125579833984375, 0.013214111328125, 0.005023956298828125, 0.02935791015625, -0.00850677490234375, 0.0419921875, -0.008575439453125, 0.05364990234375, 0.006252288818359375, 0.069580078125, 0.01360321044921875, 0.0274658203125, -0.007476806640625, -0.039215087890625, 0.01364898681640625, -0.035888671875, -0.0276336669921875, -0.0236358642578125, -0.005706787109375, -0.0197296142578125, 0.00994110107421875, -0.00475311279296875, 0.0152435302734375, 8.940696716308594e-7, -0.0014019012451171875, -0.0030536651611328125, 0.01528167724609375, 0.0134735107421875, -0.0022373199462890625, 0.032562255859375, -0.0006051063537597656, 0.03387451171875, -0.000614166259765625, 0.01519012451171875, -0.0288543701171875, 0.0164794921875, -0.011993408203125, 0.0129852294921875, 0.01495361328125, -0.01214599609375, 0.0163421630859375, -0.033111572265625, -0.013519287109375, 0.014556884765625, -0.0240478515625, 0.01306915283203125, -0.0272064208984375, -0.031036376953125, 0.00817108154296875, 0.044158935546875, 0.0221710205078125, 0.005832672119140625, 0.0806884765625, -0.00963592529296875, -0.01412200927734375, 0.0313720703125, 0.051666259765625, -0.050994873046875, -0.0065765380859375, 0.0110931396484375, 0.0199432373046875, -0.00921630859375, 0.005031585693359375, -0.03961181640625, -0.0814208984375, 0.0221099853515625, -0.0002567768096923828, -0.00921630859375, -0.01264190673828125, 0.007320404052734375, -0.017120361328125, -0.025146484375, 0.0212249755859375, 0.01629638671875, -0.055572509765625, 0.0258636474609375, 0.0287017822265625, -0.0002913475036621094, -0.0261688232421875, 0.0041656494140625, -0.0110931396484375, -0.0208892822265625, -0.046844482421875, -0.00772857666015625, 0.00775146484375, 0.00016176700592041016, -0.003662109375, -0.039764404296875, 0.02398681640625, 0.0301055908203125, -0.036163330078125, -0.0010347366333007812, 0.006649017333984375, -0.0496826171875, -0.058837890625, -0.017669677734375, -0.0128936767578125, 0.027130126953125, -0.005950927734375, 0.029083251953125, -0.0279693603515625, -0.01451873779296875, -0.0137939453125, -0.01546478271484375, 0.06304931640625, 0.00669097900390625, -0.04095458984375, -0.002475738525390625, 0.02471923828125, 0.0245513916015625, -0.0224151611328125, 0.02313232421875, -0.02740478515625, 0.0243682861328125, -0.03704833984375, -0.01236724853515625, 0.0200958251953125, -0.05303955078125, -0.12139892578125, 0.1322021484375, 0.01806640625, 0.05181884765625, -0.01092529296875, 0.03704833984375, -0.03900146484375, -0.008544921875, -0.0367431640625, 0.06097412109375, 0.00698089599609375, 0.042510986328125, -0.0202484130859375, -0.01055908203125, 0.038604736328125, 0.01396942138671875, 0.0248260498046875, -0.012237548828125, 0.0300140380859375, 0.008453369140625, 0.051727294921875, 0.04827880859375, -0.0081329345703125, -0.028961181640625, 0.0192108154296875, 0.037750244140625, 0.00373077392578125, -0.058563232421875, 0.0269317626953125, -0.06890869140625, 0.0046234130859375, 0.036102294921875, 0.03265380859375, 0.033294677734375, -0.04266357421875, -0.0020771026611328125, 0.004344940185546875, -0.0269775390625, -0.004039764404296875, -0.004917144775390625, 0.039947509765625, 0.029083251953125, 0.048797607421875, -0.0823974609375, -0.05718994140625, -0.0253448486328125, 0.04791259765625, -0.004306793212890625, 0.04852294921875, 0.05657958984375, 0.0106048583984375, 0.0684814453125, -0.0259552001953125, 0.0240936279296875, -0.023101806640625, 0.004413604736328125, 0.017730712890625, 0.01038360595703125, -0.0104827880859375, -0.0782470703125, -0.0016832351684570312, 0.040985107421875, 0.044891357421875, -0.04193115234375, 0.006893157958984375, 0.01522064208984375, -0.01488494873046875, 0.0013036727905273438, -0.056121826171875, 0.01457977294921875, 0.0029582977294921875, -0.03863525390625, -0.00789642333984375, -0.0185546875, 0.022308349609375, 0.02099609375, 0.01540374755859375, 0.0156402587890625, -0.007770538330078125, -0.041412353515625, -0.06805419921875, 0.033905029296875, 0.042449951171875, 0.0272064208984375, 0.0008783340454101562, 0.033477783203125, 0.05487060546875, -0.00843048095703125, 0.00860595703125, -0.0034923553466796875, -0.032257080078125, 0.01480865478515625, -0.0215911865234375, 0.0007176399230957031, -0.0281524658203125, 0.019683837890625, 0.0286407470703125, 0.004100799560546875, 0.055511474609375, 0.0352783203125, -0.038482666015625, -0.0012073516845703125, 0.034912109375, -0.0169525146484375, -0.0136566162109375, -0.0345458984375, -0.006195068359375, 0.022552490234375, -0.006031036376953125, 0.04644775390625, -0.006244659423828125, 0.034881591796875, -0.0186004638671875, 0.052459716796875, -0.0175323486328125, -0.0080718994140625, -0.001262664794921875, -0.013214111328125, -0.01250457763671875, -0.01485443115234375, -0.046234130859375, 0.0140533447265625, -0.07183837890625, -0.0225677490234375, 0.018218994140625, 0.0254058837890625, -0.0191497802734375, 0.04180908203125, 0.0169525146484375, -0.0185699462890625, 0.00490570068359375, 0.0033416748046875, 0.0118865966796875, 0.0231475830078125, -0.00205230712890625, 0.0207366943359375, -0.04266357421875, -0.0077362060546875, 0.006618499755859375, 0.0010051727294921875, 0.0380859375, 0.0215606689453125, 0.01062774658203125, 0.0174102783203125, -0.0161285400390625, 0.06024169921875, -0.07879638671875, -0.014801025390625, 0.0357666015625, -0.0169219970703125, 0.0287933349609375, -0.006702423095703125, 0.0152587890625, 0.041473388671875, 0.0301055908203125, -0.036590576171875, 0.042205810546875, -0.01322174072265625, -0.010040283203125, -0.038330078125, 0.0596923828125, -0.003814697265625, -0.045074462890625, -0.057159423828125, 0.01041412353515625, 0.033843994140625, 0.061370849609375, -0.010223388671875, -0.00994110107421875, 0.00899505615234375, -0.03759765625, 0.02362060546875, 0.0033416748046875, 0.0274505615234375, 0.0298919677734375, 0.02056884765625, -0.0103912353515625, 0.0038509368896484375, -0.0194854736328125, 0.041534423828125, 0.0074005126953125, 0.038116455078125, 0.0247039794921875, -0.015716552734375, -0.051910400390625, 0.0007600784301757812, 0.043853759765625, 0.01053619384765625, 0.039520263671875, -0.045654296875, 0.0023021697998046875, 0.004974365234375, 0.00580596923828125, -0.02581787109375, -0.03936767578125, -0.018341064453125, 0.0123138427734375, -0.051239013671875, -0.049530029296875, -0.10357666015625, -0.0008177757263183594, 0.00928497314453125, -0.00958251953125, 0.0165557861328125, -0.007904052734375, -0.0330810546875, -0.01090240478515625, -0.006351470947265625, -0.0204925537109375, -0.0026454925537109375, -0.023193359375, -0.03546142578125, -0.05096435546875, -0.06402587890625, 0.045623779296875, -0.051025390625, 0.0134735107421875, 0.0284881591796875, -0.028900146484375, -0.002315521240234375, 0.03411865234375, 0.033447265625, 0.0784912109375, -0.005603790283203125, 0.0030727386474609375, -0.0002524852752685547, 0.035064697265625, -0.042999267578125, -0.07501220703125, 0.025238037109375, -0.036895751953125, -0.014251708984375, 0.021087646484375, -0.0264434814453125, -0.0234222412109375, -0.05120849609375, -0.10687255859375, 0.09637451171875, -0.02423095703125, -0.0247344970703125, 0.040252685546875, -0.0102386474609375, -0.0232086181640625, -0.0183563232421875, -0.0034923553466796875, 0.005710601806640625, -0.00424957275390625, -0.0017671585083007812, 0.010894775390625, 0.0291748046875, 0.0182952880859375, -0.0211639404296875, -0.0182952880859375, 0.002185821533203125, -0.002288818359375, 0.025848388671875, 0.0004506111145019531, -0.013336181640625, 0.0279693603515625, 0.02813720703125, -0.03973388671875, 0.04949951171875, -0.00485992431640625, 0.004779815673828125, 0.0090789794921875, -0.043365478515625, -0.000293731689453125, -0.03173828125, 0.002353668212890625, 0.0037841796875, -0.0076141357421875, 0.004077911376953125, -0.0235137939453125, 0.021514892578125, 0.0038433074951171875, -0.00479888916015625, 0.01422119140625, -0.055450439453125, -0.03314208984375, -0.0122833251953125, -0.04193115234375, 0.0276641845703125, -0.03466796875, -0.061798095703125, 0.01444244384765625, -0.033538818359375, 0.03515625, -0.09185791015625, -0.03240966796875, 0.002216339111328125, -0.00820159912109375, -0.009857177734375, -0.03936767578125, 0.038055419921875, -0.0156707763671875, -0.028076171875, 0.0019321441650390625, -0.03961181640625, 0.007328033447265625, 0.04052734375, -0.0031833648681640625, 0.036376953125, -0.02105712890625, -0.021209716796875, -0.022186279296875, 0.00606536865234375, 0.0019464492797851562, 0.023895263671875, 0.0021419525146484375, -0.0157470703125, 0.00913238525390625, 0.00595855712890625, -0.032684326171875, 0.0460205078125, -0.019927978515625, 0.02972412109375, -0.046630859375, 0.01122283935546875, -0.0179901123046875, 0.0013980865478515625, -0.01325225830078125, -0.0169219970703125, -0.0035343170166015625, -0.0794677734375, 0.043609619140625, -0.0232696533203125, 0.025634765625, 0.036651611328125 ]
231107b5f128fe5fdbd7dd393cea704dfc3e25dd
Wordpress Stackexchange Q: Does WordPress have an Browser Agent? I want to block a directory to everyone but WordPress's internal upgrade feature (I am trying to get WordPress to do auto-updates of my premium plugin). I have it updating, but I really would like to block the directory for everyone but WordPress. Anyone know what WP's internal User Agent is? A: The WordPress user agent is set in the class WP_Http as 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) You can set it to a (secret) fixed value per filter: add_filter( 'http_headers_useragent', 'wpse_59788_user_agent' ); function wpse_59788_user_agent() { // to remove this filter immediately uncomment the following line // remove_filter( current_filter(), __FUNCTION__ ); return 'alfgjlkgjlkgjsldkjhrkjh'; } To change the user agent for a plugin upgrade only try something like this (not tested): add_filter( 'upgrader_pre_install', 'wpse_59788_register' ); function wpse_59788_register( $dummy ) { add_filter( 'http_headers_useragent', 'wpse_59788_user_agent' ); return $dummy; } And uncomment the self deactivation line in the first function.
Q: Does WordPress have an Browser Agent? I want to block a directory to everyone but WordPress's internal upgrade feature (I am trying to get WordPress to do auto-updates of my premium plugin). I have it updating, but I really would like to block the directory for everyone but WordPress. Anyone know what WP's internal User Agent is? A: The WordPress user agent is set in the class WP_Http as 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) You can set it to a (secret) fixed value per filter: add_filter( 'http_headers_useragent', 'wpse_59788_user_agent' ); function wpse_59788_user_agent() { // to remove this filter immediately uncomment the following line // remove_filter( current_filter(), __FUNCTION__ ); return 'alfgjlkgjlkgjsldkjhrkjh'; } To change the user agent for a plugin upgrade only try something like this (not tested): add_filter( 'upgrader_pre_install', 'wpse_59788_register' ); function wpse_59788_register( $dummy ) { add_filter( 'http_headers_useragent', 'wpse_59788_user_agent' ); return $dummy; } And uncomment the self deactivation line in the first function.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:422286", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59788" }
[ 0.05877685546875, 0.0114898681640625, -0.0239410400390625, -0.041015625, 0.04388427734375, -0.058990478515625, 0.04730224609375, -0.0106964111328125, -0.0175628662109375, 0.01015472412109375, -0.006801605224609375, -0.0254058837890625, -0.0185699462890625, -0.0270233154296875, -0.00978851318359375, -0.044342041015625, 0.01200103759765625, 0.04620361328125, 0.0298919677734375, -0.009307861328125, 0.01062774658203125, 0.01169586181640625, -0.0250396728515625, -0.00384521484375, -0.0011835098266601562, -0.0343017578125, 0.08966064453125, -0.0202484130859375, 0.006374359130859375, -0.019775390625, 0.005634307861328125, -0.005706787109375, 0.01325225830078125, 0.03253173828125, -0.060516357421875, 0.007183074951171875, -0.01788330078125, 0.03265380859375, 0.00847625732421875, 0.004108428955078125, -0.00662994384765625, 0.005435943603515625, 0.00922393798828125, -0.0245208740234375, -0.017730712890625, -0.03472900390625, 0.00963592529296875, -0.0113525390625, 0.00775909423828125, -0.0360107421875, 0.001476287841796875, 0.01312255859375, 0.028076171875, 0.007541656494140625, -0.00897216796875, 0.019683837890625, -0.00844573974609375, 0.0151824951171875, 0.0261383056640625, -0.0261993408203125, -0.0168914794921875, 0.0034046173095703125, 0.0190887451171875, 0.00188446044921875, 0.00308990478515625, 0.006496429443359375, -0.002330780029296875, 0.0083465576171875, -0.053192138671875, 0.0040283203125, 0.032379150390625, -0.038238525390625, -0.01151275634765625, 0.02154541015625, -0.06207275390625, -0.00457000732421875, 0.0009694099426269531, -0.04083251953125, 0.04290771484375, 0.00018894672393798828, 0.027862548828125, 0.00400543212890625, -0.0560302734375, -0.006137847900390625, 0.0248565673828125, 0.047607421875, 0.003192901611328125, -0.044525146484375, -0.029022216796875, 0.00717926025390625, -0.0303192138671875, -0.033905029296875, -0.0068359375, 0.0096893310546875, -0.0172119140625, 0.00226593017578125, 0.0389404296875, 0.060455322265625, -0.040191650390625, -0.0158843994140625, 0.0064849853515625, -0.020477294921875, 0.005001068115234375, -0.0255584716796875, -0.0077056884765625, 0.046142578125, 0.002773284912109375, 0.03961181640625, 0.033599853515625, 0.01016998291015625, 0.01282501220703125, -0.01812744140625, -0.01390838623046875, 0.0159149169921875, -0.05877685546875, -0.01373291015625, -0.043975830078125, -0.0170135498046875, -0.01531982421875, 0.0006766319274902344, 0.0016050338745117188, 0.005077362060546875, 0.0281524658203125, -0.016571044921875, 0.0198211669921875, 0.0189666748046875, -0.0167694091796875, -0.038726806640625, 0.0190887451171875, -0.01076507568359375, -0.010772705078125, 0.01415252685546875, 0.00865936279296875, 0.034088134765625, -0.005107879638671875, 0.0064544677734375, 0.022064208984375, 0.046905517578125, -0.0143890380859375, 0.051666259765625, 0.01360321044921875, -0.08319091796875, -0.05657958984375, 0.0257110595703125, -0.00604248046875, -0.02899169921875, -0.0033855438232421875, 0.050994873046875, 0.04449462890625, 0.01200103759765625, -0.004947662353515625, -0.00914764404296875, 0.055389404296875, -0.00836944580078125, -0.00333404541015625, -0.0262908935546875, 0.03778076171875, -0.043243408203125, -0.037445068359375, -0.056060791015625, 0.0026378631591796875, 0.00124359130859375, 0.03118896484375, 0.01702880859375, 0.0024662017822265625, 0.005184173583984375, -0.028778076171875, -0.0075531005859375, 0.032379150390625, 0.019622802734375, 0.034576416015625, 0.00316619873046875, 0.056121826171875, 0.0190582275390625, 0.0028858184814453125, 0.0158538818359375, -0.04400634765625, 0.042724609375, 0.061798095703125, -0.03753662109375, -0.02838134765625, -0.041290283203125, 0.12164306640625, -0.03179931640625, -0.054229736328125, 0.0290069580078125, -0.01192474365234375, 0.033599853515625, 0.02716064453125, -0.0035915374755859375, 0.02532958984375, 0.0139617919921875, -0.0296478271484375, 0.0175018310546875, 0.00353240966796875, -0.05145263671875, 0.02496337890625, -0.022064208984375, 0.0087127685546875, -0.0020389556884765625, 0.004947662353515625, 0.0142364501953125, 0.007007598876953125, -0.0120849609375, -0.041839599609375, 0.0017976760864257812, -0.0175018310546875, 0.03643798828125, 0.045654296875, 0.0073394775390625, -0.004241943359375, -0.03204345703125, -0.0109710693359375, 0.01421356201171875, -0.05072021484375, -0.0087890625, -0.020843505859375, 0.039642333984375, 0.019775390625, 0.0584716796875, 0.01493072509765625, -0.0330810546875, 0.01314544677734375, -0.0245513916015625, 0.01934814453125, 0.024078369140625, -0.035491943359375, 0.016571044921875, 0.006000518798828125, 0.028045654296875, -0.041961669921875, 0.0246734619140625, 0.04833984375, 0.021697998046875, -0.0267333984375, 0.004150390625, -0.007213592529296875, -0.0885009765625, -0.00494384765625, 0.061065673828125, 0.03948974609375, 0.007297515869140625, 0.000576019287109375, -0.00878143310546875, 0.0615234375, -0.061981201171875, -0.0157012939453125, -0.0014638900756835938, -0.009033203125, -0.0028076171875, -0.00708770751953125, -0.01334381103515625, 0.0345458984375, -0.056243896484375, -0.003429412841796875, 0.043609619140625, 0.029327392578125, -0.003978729248046875, 0.0244293212890625, -0.008575439453125, 0.003299713134765625, 0.000698089599609375, -0.04425048828125, 0.00894927978515625, 0.030975341796875, -0.000797271728515625, 0.0251312255859375, 0.026519775390625, -0.015167236328125, -0.016265869140625, 0.022369384765625, 0.003978729248046875, 0.0130157470703125, 0.04144287109375, 0.0433349609375, 0.0240631103515625, -0.00220489501953125, -0.038543701171875, 0.044769287109375, 0.031463623046875, -0.00775909423828125, 0.01861572265625, -0.020416259765625, -0.0029087066650390625, -0.0261688232421875, -0.0167083740234375, 0.01947021484375, 0.0221405029296875, -0.0162811279296875, 0.0018100738525390625, 0.036895751953125, -0.0286407470703125, -0.054473876953125, 0.02691650390625, -0.01103973388671875, -0.036651611328125, 0.0196075439453125, -0.050201416015625, 0.03521728515625, -0.027801513671875, 0.04803466796875, 0.0755615234375, 0.008941650390625, 0.003692626953125, 0.020263671875, -0.0200042724609375, 0.001605987548828125, 0.0390625, 0.0124359130859375, 0.00835418701171875, -0.068115234375, -0.016754150390625, 0.003284454345703125, -0.074462890625, 0.0013513565063476562, -0.0194549560546875, -0.04083251953125, -0.033660888671875, -0.08038330078125, -0.00312042236328125, 0.0166015625, -0.038330078125, -0.00330352783203125, -0.00847625732421875, -0.0266265869140625, -0.01300048828125, 0.012359619140625, 0.0162353515625, -0.038360595703125, -0.0129241943359375, -0.058685302734375, -0.041839599609375, -0.041259765625, 0.035491943359375, -0.018951416015625, 0.004016876220703125, 0.005321502685546875, 0.06939697265625, 0.01169586181640625, -0.0390625, -0.00457000732421875, 0.0291290283203125, -0.0198516845703125, -0.00363922119140625, -0.0251007080078125, -0.00931549072265625, 0.0217132568359375, -0.0015316009521484375, 0.0092010498046875, 0.030853271484375, -0.0313720703125, -0.00038623809814453125, -0.01617431640625, -0.03985595703125, -0.016571044921875, 0.03173828125, 0.02001953125, -0.02996826171875, -0.0030155181884765625, -0.05462646484375, 0.0182647705078125, -0.01016998291015625, -0.01520538330078125, 0.0201873779296875, -0.004688262939453125, -0.02716064453125, 0.00601959228515625, 0.009765625, 0.01013946533203125, 0.0198822021484375, 0.01593017578125, 0.01507568359375, 0.01192474365234375, -0.02532958984375, -0.02215576171875, -0.041351318359375, 0.048675537109375, -0.0076751708984375, 0.026947021484375, 0.0185546875, -0.0077972412109375, -0.0063323974609375, -0.004062652587890625, -0.039703369140625, -0.0635986328125, 0.042388916015625, -0.06170654296875, -0.0110015869140625, -0.06903076171875, -0.0185546875, -0.02545166015625, 0.080322265625, -0.028656005859375, -0.035064697265625, 0.01464080810546875, 0.032012939453125, -0.038970947265625, -0.019989013671875, -0.01258087158203125, -0.0238494873046875, -0.01447296142578125, -0.0079498291015625, -0.035064697265625, 0.0007224082946777344, -0.0006580352783203125, -0.052215576171875, 0.01335906982421875, -0.032623291015625, 0.03857421875, -0.037261962890625, -0.0153961181640625, 0.01035308837890625, -0.033111572265625, -0.0296173095703125, -0.0308990478515625, -0.00128173828125, -0.04193115234375, -0.02099609375, -0.00891876220703125, 0.02777099609375, -0.004913330078125, 0.0033855438232421875, -0.0162353515625, 0.0233001708984375, 0.01068878173828125, -0.005458831787109375, -0.01441192626953125, -0.01421356201171875, -0.00542449951171875, 0.00803375244140625, -0.0209503173828125, -0.004848480224609375, 0.0019235610961914062, -0.025787353515625, -0.043365478515625, 0.041107177734375, -0.02325439453125, 0.06915283203125, -0.0135650634765625, -0.0237884521484375, -0.041351318359375, -0.070068359375, -0.029693603515625, 0.021697998046875, -0.017822265625, 0.00734710693359375, -0.076904296875, -0.04364013671875, 0.04681396484375, -0.01493072509765625, 0.0006952285766601562, -0.01007843017578125, 0.0574951171875, 0.0204010009765625, -0.0220947265625, 0.10211181640625, -0.01136016845703125, 0.01383209228515625, -0.0036869049072265625, 0.0799560546875, 0.0367431640625, 0.0131072998046875, 0.052825927734375, -0.0090484619140625, 0.0226593017578125, -0.00458526611328125, 0.0189361572265625, 0.017181396484375, -0.038421630859375, 0.043212890625, 0.031280517578125, -0.0270843505859375, -0.001407623291015625, -0.00888824462890625, 0.005596160888671875, -0.0063629150390625, 0.005008697509765625, 0.0158538818359375, -0.0089874267578125, -0.018035888671875, -0.0323486328125, 0.0252685546875, -0.057525634765625, 0.0101776123046875, 0.0055694580078125, -0.00731658935546875, 0.0018815994262695312, -0.0004165172576904297, 0.00817108154296875, 0.0122528076171875, 0.073486328125, -0.0155792236328125, 0.0816650390625, -0.048370361328125, -0.004642486572265625, -0.050079345703125, -0.01322174072265625, 0.0469970703125, -0.0038700103759765625, -0.045562744140625, 0.0125732421875, -0.0091400146484375, -0.00327301025390625, 0.03619384765625, -0.01445770263671875, 0.08563232421875, -0.001983642578125, -0.041717529296875, -0.023162841796875, -0.0655517578125, -0.02496337890625, -0.0950927734375, 0.00214385986328125, 0.00482940673828125, -0.0159912109375, -0.01200103759765625, 0.025177001953125, 0.028594970703125, -0.01284027099609375, -0.00949859619140625, 0.006633758544921875, 0.0167694091796875, 0.0156097412109375, -0.00257110595703125, 0.01403045654296875, -0.004077911376953125, 0.01515960693359375, 0.040802001953125, -0.018035888671875, -0.04400634765625, 0.0209503173828125, 0.037139892578125, 0.015350341796875, 0.04754638671875, -0.0292510986328125, -0.00839996337890625, 0.0101776123046875, 0.03521728515625, 0.0069122314453125, -0.0282440185546875, -0.0382080078125, 0.0118560791015625, 0.039886474609375, -0.024505615234375, -0.0350341796875, -0.006984710693359375, -0.01343536376953125, 0.0059661865234375, 0.042816162109375, -0.0716552734375, 0.0443115234375, 0.05364990234375, -0.016265869140625, -0.0023651123046875, -0.00007140636444091797, -0.0249786376953125, -0.00827789306640625, -0.0180206298828125, -0.0208587646484375, 0.05511474609375, -0.0462646484375, 0.00455474853515625, -0.0216522216796875, 0.0177001953125, -0.01184844970703125, 0.0162200927734375, 0.051544189453125, 0.035736083984375, -0.037872314453125, -0.005237579345703125, -0.0281829833984375, -0.02496337890625, -0.033721923828125, -0.01531219482421875, -0.057098388671875, 0.0011548995971679688, -0.0184478759765625, 0.005939483642578125, 0.0024242401123046875, 0.05206298828125, -0.01319122314453125, 0.02508544921875, -0.021087646484375, 0.0243377685546875, -0.041046142578125, 0.052398681640625, 0.043243408203125, 0.01103973388671875, 0.01416778564453125, 0.034942626953125, 0.0236358642578125, -0.00957489013671875, 0.0267791748046875, -0.035369873046875, -0.04071044921875, -0.0435791015625, -0.05499267578125, 0.01375579833984375, 0.06329345703125, -0.01415252685546875, -0.00994873046875, -0.0172119140625, 0.0036640167236328125, -0.0161895751953125, 0.02056884765625, 0.01369476318359375, -0.00041794776916503906, -0.0030612945556640625, -0.01629638671875, 0.0023193359375, -0.004547119140625, 0.006946563720703125, 0.006389617919921875, -0.0106964111328125, -0.0096893310546875, 0.0028820037841796875, -0.0198516845703125, 0.0252685546875, 0.045684814453125, -0.016937255859375, 0.0400390625, 0.0235748291015625, 0.0262908935546875, 0.035675048828125, -0.03948974609375, -0.020050048828125, 0.033660888671875, 0.036895751953125, -0.0012865066528320312, -0.0287933349609375, 0.03875732421875, -0.03631591796875, 0.030853271484375, 0.04339599609375, 0.08172607421875, -0.0738525390625, 0.027069091796875, 0.032470703125, -0.02020263671875, 0.0210723876953125, 0.0061492919921875, -0.0308990478515625, -0.0662841796875, 0.0555419921875, -0.01291656494140625, -0.01012420654296875, 0.0213470458984375, 0.000423431396484375, 0.003170013427734375, 0.01287078857421875, 0.04046630859375, -0.0013866424560546875, -0.0108489990234375, -0.04583740234375, 0.0099334716796875, 0.0004229545593261719, -0.00234222412109375, -0.0006070137023925781, 0.02130126953125, -0.032562255859375, -0.046539306640625, 0.0102386474609375, -0.01189422607421875, -0.017822265625, 0.029754638671875, 0.0103759765625, 0.0293731689453125, 0.047698974609375, -0.0005030632019042969, -0.006603240966796875, 0.0205078125, 0.01800537109375, 0.00943756103515625, -0.0596923828125, -0.024169921875, 0.0718994140625, -0.00214385986328125, 0.0289306640625, 0.049835205078125, -0.03143310546875, 0.011871337890625, -0.01203155517578125, 0.0211334228515625, 0.0052642822265625, -0.0290069580078125, 0.0533447265625, -0.01021575927734375, -0.02593994140625, 0.043853759765625, 0.0023097991943359375, -0.0232391357421875, -0.041717529296875, 0.024139404296875, -0.07342529296875, -0.0196380615234375, 0.0310211181640625, -0.062225341796875, 0.049041748046875, -0.0208740234375, 0.041229248046875, 0.01546478271484375, 0.00315093994140625, -0.01323699951171875, -0.0086517333984375, -0.037078857421875, 0.04425048828125, 0.02056884765625, 0.015716552734375, -0.04052734375, -0.04022216796875, -0.012603759765625, 0.055999755859375, 0.038360595703125, 0.021820068359375, -0.053955078125, -0.00005072355270385742, 0.00738525390625, -0.0157318115234375, -0.0141143798828125, 0.061279296875, -0.003276824951171875, 0.044647216796875, 0.006893157958984375, -0.060394287109375, 0.0426025390625, -0.0843505859375, -0.036224365234375, -0.007343292236328125, 0.0234832763671875, 0.0167236328125, -0.007183074951171875, 0.0262298583984375, -0.054168701171875, 0.00885009765625, 0.0301666259765625, 0.052947998046875, -0.0189666748046875, 0.053985595703125, -0.0213165283203125, 0.051116943359375, -0.0014371871948242188, -0.0279388427734375, 0.016632080078125, -0.0032596588134765625, -0.004238128662109375, 0.044677734375, 0.02154541015625, -0.04425048828125, 0.0247650146484375, 0.004550933837890625, 0.01522064208984375, 0.0047454833984375, 0.0060272216796875, 0.0147552490234375, 0.01947021484375, -0.00885009765625, 0.030029296875, 0.034393310546875, 0.017669677734375, -0.0195159912109375, -0.04010009765625, 0.0030994415283203125, -0.02685546875, 0.024200439453125, -0.00803375244140625, 0.031494140625, -0.047393798828125, -0.041748046875, -0.015625, 0.0028743743896484375, 0.0282135009765625, 0.007137298583984375, 0.0178070068359375, 0.03753662109375, -0.026214599609375, -0.0014543533325195312, -0.0235748291015625, 0.01169586181640625, 0.03167724609375, 0.008941650390625, -0.0236053466796875, 0.061370849609375, 0.034820556640625, 0.002422332763671875, -0.0270233154296875, 0.041534423828125, 0.0267486572265625, 0.0277557373046875, -0.06793212890625, -0.03302001953125, 0.0161285400390625, 0.051422119140625, 0.0160675048828125, 0.00630950927734375, 0.044403076171875, 0.0304412841796875, -0.040496826171875, -0.01052093505859375, 0.0428466796875, -0.0164794921875, 0.0122833251953125, -0.030792236328125, 0.060577392578125, 0.0506591796875, 0.02789306640625, 0.006824493408203125, 0.0007843971252441406, 0.0823974609375, -0.017669677734375, 0.0235748291015625, -0.002071380615234375, -0.0290374755859375, -0.00042939186096191406, -0.0026073455810546875, 0.00646209716796875, 0.008819580078125, -0.02252197265625, -0.00843048095703125, -0.0298919677734375, -0.015625, 0.01323699951171875, 0.01568603515625, -0.0245819091796875, 0.053619384765625, -0.01335906982421875, -0.0011653900146484375, -0.006824493408203125, -0.0279541015625, 0.028411865234375, 0.02496337890625, -0.00749969482421875, 0.01055145263671875, 0.00891876220703125, -0.0005679130554199219, 0.0115966796875, 0.038848876953125, 0.0176239013671875, 0.0823974609375, -0.044586181640625, 0.007419586181640625, -0.0173187255859375, -0.025115966796875, 0.034027099609375, -0.01396942138671875, -0.00701141357421875, 0.054962158203125, 0.0182952880859375, -0.0300750732421875, -0.06646728515625, 0.01165771484375, 0.02545166015625, -0.030609130859375, 0.033416748046875, 0.0162506103515625, 0.0027980804443359375, -0.05224609375, 0.043975830078125, -0.032684326171875, -0.08099365234375, -0.05517578125, 0.00408172607421875, -0.00836181640625, 0.0178985595703125, 0.00991058349609375, 0.033843994140625, -0.0008149147033691406, -0.001369476318359375, -0.0008893013000488281, -0.0005979537963867188, -0.0154266357421875, 0.01471710205078125, 0.0117034912109375, 0.03594970703125, -0.000560760498046875, -0.033477783203125, -0.033721923828125, 0.027008056640625, -0.07012939453125, -0.01434326171875, -0.024383544921875, -0.0489501953125, -0.008697509765625, 0.0213775634765625, -0.01175689697265625, 0.0169219970703125, -0.033294677734375, -0.01122283935546875, -0.02044677734375, -0.037109375, -0.0263214111328125, -0.0009741783142089844, -0.017059326171875, 0.0152435302734375, -0.00860595703125, -0.047088623046875, -0.047882080078125, 0.0059356689453125, 0.042694091796875, 0.01509857177734375, -0.07708740234375, 0.028167724609375, -0.002971649169921875, 0.078857421875, -0.0233306884765625, 0.050384521484375, -0.0286865234375, -0.007801055908203125, -0.043548583984375, -0.053985595703125, -0.02117919921875, 0.08984375, -0.043853759765625, -0.031097412109375, -0.007228851318359375, 0.03179931640625, 0.0014820098876953125, -0.031646728515625, -0.04388427734375, 0.006744384765625, -0.061981201171875, -0.033599853515625, -0.01172637939453125, 0.00417327880859375, 0.014801025390625, -0.03363037109375, -0.006999969482421875, -0.0238494873046875, -0.01666259765625, 0.0224609375, -0.0258636474609375, -0.00652313232421875, -0.032318115234375, -0.038238525390625, 0.046661376953125, 0.012664794921875, -0.0221405029296875, -0.042755126953125, 0.029571533203125, 0.0075531005859375, -0.0296783447265625, -0.0214691162109375, -0.012786865234375, 0.0012159347534179688, 0.0185089111328125, 0.00672149658203125, 0.04437255859375, -0.018341064453125, 0.0208892822265625, 0.01250457763671875, 0.059234619140625, 0.053802490234375, -0.024658203125, -0.027679443359375, 0.00441741943359375, 0.056610107421875, 0.044769287109375, 0.0216064453125, 0.056976318359375, 0.04925537109375, -0.07049560546875, -0.0060577392578125, 0.0015621185302734375, -0.04351806640625, -0.040740966796875, 0.0662841796875, 0.002506256103515625, 0.0225830078125, 0.0213623046875, -0.041259765625, -0.0660400390625, 0.0303955078125, -0.01027679443359375, -0.020965576171875, -0.037078857421875, 0.01904296875, 0.00820159912109375, -0.007022857666015625, 0.020355224609375, -0.00936126708984375, -0.0085601806640625, 0.002399444580078125, 0.033905029296875, -0.0073699951171875, -0.017425537109375, 0.0252532958984375, 0.005279541015625, -0.042510986328125, -0.04534912109375, -0.006378173828125, -0.00757598876953125, -0.0265655517578125, -0.029296875, -0.0211029052734375, 0.0477294921875, -0.01171112060546875, 0.03558349609375, 0.0162200927734375, 0.01140594482421875, -0.04833984375, 0.044586181640625, 0.00003039836883544922, 0.0242156982421875, 0.0160980224609375, 0.025604248046875, -0.033477783203125, 0.03753662109375, 0.0007753372192382812, 0.022125244140625, 0.006053924560546875, -0.04290771484375, -0.000732421875, 0.01438140869140625, 0.0093231201171875, -0.014617919921875, 0.05230712890625, -0.045440673828125, -0.0112457275390625, 0.0430908203125, 0.006481170654296875, -0.047393798828125, 0.0283050537109375, -0.0136871337890625, 0.043914794921875, 0.0142669677734375 ]
47470f4219171486f93b0351220be3529bb4df11
Wordpress Stackexchange Q: What add_rewrite_tag()'s RegEx matches against? I'm trying to figure out wether I can specify the position of the string to match (i.e. immediately after the domain) to reduce the chances of matching something else, but I don't even know what the RegEx in add_rewrite_tag() matches against. Does it match against a full url including domain? or Does it match against everything after the domain? Thanks.
Q: What add_rewrite_tag()'s RegEx matches against? I'm trying to figure out wether I can specify the position of the string to match (i.e. immediately after the domain) to reduce the chances of matching something else, but I don't even know what the RegEx in add_rewrite_tag() matches against. Does it match against a full url including domain? or Does it match against everything after the domain? Thanks.
wordpress
{ "language": "en", "length": 66, "provenance": "stackexchange_00019.jsonl.gz:422288", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59796" }
[ 0.05743408203125, 0.0093536376953125, 0.00016188621520996094, -0.07135009765625, 0.01171112060546875, -0.00739288330078125, 0.007518768310546875, -0.003459930419921875, -0.03564453125, 0.01313018798828125, -0.01119232177734375, 0.0035495758056640625, -0.005523681640625, -0.0372314453125, 0.0157623291015625, -0.019500732421875, 0.019805908203125, -0.0229034423828125, 0.00011837482452392578, -0.019134521484375, 0.00959014892578125, 0.0020885467529296875, 0.0182037353515625, 0.0238800048828125, 0.034423828125, -0.04461669921875, 0.0657958984375, -0.0059967041015625, 0.045501708984375, -0.0022487640380859375, 0.032135009765625, -0.0594482421875, 0.03857421875, 0.003143310546875, -0.0290069580078125, 0.00826263427734375, 0.043212890625, -0.0283355712890625, -0.005619049072265625, 0.0244293212890625, 0.048583984375, -0.0338134765625, 0.04931640625, -0.0291290283203125, 0.034271240234375, -0.04071044921875, 0.08233642578125, -0.03533935546875, 0.023284912109375, -0.01329803466796875, -0.01021575927734375, 0.02264404296875, -0.013092041015625, -0.004199981689453125, -0.00724029541015625, 0.01438140869140625, 0.0003001689910888672, 0.032012939453125, -0.005901336669921875, -0.00690460205078125, -0.0157928466796875, 0.059051513671875, 0.00696563720703125, 0.0084075927734375, -0.033294677734375, 0.0003952980041503906, 0.032379150390625, -0.0211639404296875, -0.017578125, -0.0355224609375, 0.04443359375, 0.00640106201171875, -0.034393310546875, 0.0174407958984375, -0.0064849853515625, -0.0167083740234375, 0.00890350341796875, -0.033843994140625, 0.0172271728515625, 0.046844482421875, 0.019500732421875, -0.01560211181640625, -0.0022792816162109375, -0.01061248779296875, 0.01026153564453125, -0.00652313232421875, 0.0004591941833496094, -0.0100860595703125, -0.08197021484375, -0.041778564453125, -0.046630859375, -0.042144775390625, -0.045013427734375, -0.062286376953125, -0.0211334228515625, -0.0265045166015625, 0.04290771484375, 0.006961822509765625, 0.027984619140625, -0.02447509765625, 0.061859130859375, -0.06884765625, 0.0302734375, -0.020172119140625, 0.004726409912109375, 0.060699462890625, 0.0226593017578125, 0.0068817138671875, 0.01187896728515625, -0.0207366943359375, -0.0195770263671875, 0.028167724609375, -0.0084228515625, 0.03533935546875, -0.046356201171875, -0.02703857421875, -0.07781982421875, 0.02239990234375, -0.026275634765625, 0.01898193359375, 0.0027008056640625, 0.0302886962890625, -0.0075836181640625, -0.021881103515625, 0.007720947265625, 0.00482940673828125, 0.0031585693359375, -0.022796630859375, -0.026214599609375, 0.03955078125, 0.004947662353515625, 0.04803466796875, -0.006153106689453125, -0.028045654296875, -0.058746337890625, -0.0191497802734375, 0.0224609375, -0.037841796875, -0.022369384765625, 0.01186370849609375, -0.0134429931640625, -0.05029296875, -0.006282806396484375, -0.0016689300537109375, 0.0190887451171875, 0.0458984375, 0.011322021484375, 0.0081634521484375, -0.0008282661437988281, -0.100830078125, 0.0592041015625, -0.080322265625, 0.04827880859375, -0.0343017578125, -0.01198577880859375, -0.025543212890625, -0.00921630859375, -0.0256195068359375, -0.0154266357421875, -0.016357421875, -0.0161590576171875, -0.01285552978515625, 0.032806396484375, -0.049591064453125, -0.059417724609375, 0.01496124267578125, -0.0726318359375, -0.01190948486328125, 0.022979736328125, 0.0004420280456542969, 0.0190582275390625, 0.036224365234375, 0.052886962890625, -0.005832672119140625, -0.01209259033203125, -0.0006265640258789062, 0.03857421875, 0.00991058349609375, -0.0308685302734375, 0.11126708984375, 0.03521728515625, -0.03277587890625, -0.0065155029296875, -0.006195068359375, -0.06109619140625, 0.061553955078125, 0.003704071044921875, 0.08233642578125, 0.0004949569702148438, 0.01480865478515625, 0.0304718017578125, 0.01465606689453125, 0.0010213851928710938, -0.00966644287109375, -0.0038299560546875, 0.00318145751953125, -0.007015228271484375, 0.026031494140625, -0.026611328125, -0.0258331298828125, -0.0269622802734375, -0.006603240966796875, 0.022552490234375, 0.0093536376953125, 0.0008988380432128906, 0.0218658447265625, -0.0274200439453125, 0.0282135009765625, 0.01224517822265625, 0.0006279945373535156, 0.01412200927734375, -0.0166168212890625, -0.0178070068359375, -0.021209716796875, -0.036376953125, 0.0277862548828125, 0.025665283203125, 0.0117950439453125, 0.0038089752197265625, 0.004070281982421875, 0.0027675628662109375, 0.006641387939453125, -0.006214141845703125, 0.01056671142578125, 0.0281524658203125, -0.0107421875, -0.01529693603515625, -0.0092010498046875, 0.0017805099487304688, 0.021270751953125, -0.0726318359375, 0.0277862548828125, 0.068115234375, 0.057403564453125, -0.041015625, -0.0174102783203125, -0.0277099609375, -0.04937744140625, -0.006862640380859375, 0.07000732421875, 0.0302581787109375, 0.006885528564453125, -0.023895263671875, -0.005649566650390625, -0.0037250518798828125, -0.06561279296875, -0.0130462646484375, 0.0058135986328125, 0.0103759765625, 0.09912109375, 0.0018329620361328125, 0.00968170166015625, -0.0300140380859375, -0.05841064453125, -0.0167999267578125, 0.005771636962890625, 0.0026721954345703125, 0.03619384765625, -0.05352783203125, 0.0262451171875, -0.018768310546875, -0.0164031982421875, 0.003055572509765625, -0.0307464599609375, -0.0222930908203125, 0.013946533203125, 0.011749267578125, 0.02801513671875, 0.01471710205078125, -0.016632080078125, 0.01255035400390625, 0.0252685546875, -0.03082275390625, 0.027618408203125, 0.07220458984375, -0.023651123046875, 0.0009794235229492188, -0.010009765625, -0.037506103515625, -0.0100555419921875, -0.0089263916015625, 0.03271484375, 0.0270538330078125, -0.01047515869140625, -0.01568603515625, -0.04486083984375, 0.0087127685546875, -0.0151824951171875, 0.035369873046875, 0.0147552490234375, 0.0225830078125, 0.01593017578125, 0.0032978057861328125, 0.01477813720703125, 0.03851318359375, -0.036529541015625, -0.049957275390625, -0.00981903076171875, -0.003173828125, -0.0245819091796875, 0.0105743408203125, 0.05975341796875, 0.0164794921875, -0.016448974609375, 0.022003173828125, 0.01361083984375, 0.0184173583984375, -0.002002716064453125, 0.00887298583984375, 0.056549072265625, -0.1165771484375, -0.0237884521484375, 0.0263214111328125, 0.0013551712036132812, 0.0309906005859375, -0.027191162109375, -0.0007271766662597656, 0.014312744140625, -0.06634521484375, -0.08612060546875, 0.03790283203125, -0.0160675048828125, -0.0638427734375, 0.050628662109375, -0.0205841064453125, 0.01055908203125, 0.055389404296875, -0.025726318359375, -0.038177490234375, -0.042388916015625, -0.06182861328125, -0.123046875, -0.0911865234375, -0.0440673828125, -0.0135345458984375, 0.010528564453125, 0.01751708984375, 0.07012939453125, 0.0268402099609375, -0.0161895751953125, 0.062255859375, -0.064697265625, -0.03240966796875, 0.016021728515625, -0.043853759765625, 0.0158538818359375, 0.01456451416015625, 0.01093292236328125, 0.01528167724609375, 0.001277923583984375, 0.005405426025390625, 0.0020084381103515625, 0.00243377685546875, -0.035919189453125, 0.0263824462890625, -0.019561767578125, -0.015411376953125, 0.0020618438720703125, 0.033355712890625, -0.038360595703125, 0.0005259513854980469, 0.03240966796875, 0.01494598388671875, 0.0020999908447265625, -0.027252197265625, -0.042816162109375, 0.031951904296875, 0.0117645263671875, -0.0016384124755859375, -0.01971435546875, 0.0119171142578125, -0.0243988037109375, 0.00856781005859375, -0.012481689453125, 0.007080078125, -0.018280029296875, 0.0018606185913085938, -0.026092529296875, 0.01050567626953125, -0.028778076171875, 0.00011146068572998047, -0.0231475830078125, -0.01277923583984375, -0.077880859375, -0.03515625, 0.027374267578125, -0.0277862548828125, 0.04364013671875, -0.0775146484375, -0.0267791748046875, -0.04888916015625, 0.07421875, -0.0299224853515625, -0.0298309326171875, -0.0238037109375, 0.00518035888671875, 0.01242828369140625, -0.0143585205078125, 0.004871368408203125, -0.0224761962890625, -0.08233642578125, -0.003448486328125, -0.028839111328125, -0.0178070068359375, -0.00463104248046875, 0.0031528472900390625, -0.01727294921875, -0.053070068359375, 0.024322509765625, -0.0556640625, 0.025604248046875, 0.0058135986328125, 0.04461669921875, -0.035614013671875, -0.01328277587890625, -0.0401611328125, -0.014007568359375, -0.0009832382202148438, 0.0078125, -0.0249176025390625, -0.0024585723876953125, -0.003978729248046875, 0.005641937255859375, 0.0135345458984375, 0.013671875, -0.04400634765625, 0.0265045166015625, -0.0217742919921875, 0.034881591796875, 0.03466796875, -0.015411376953125, -0.01198577880859375, -0.032196044921875, 0.02044677734375, -0.0271148681640625, 0.06732177734375, 0.02447509765625, 0.00563812255859375, 0.055267333984375, -0.033294677734375, -0.005519866943359375, 0.01383209228515625, 0.01531982421875, 0.044525146484375, -0.02471923828125, 0.005218505859375, 0.0035552978515625, -0.0174713134765625, 0.03460693359375, 0.0085296630859375, -0.0183868408203125, -0.00392913818359375, 0.035064697265625, 0.0222930908203125, -0.0215606689453125, 0.052215576171875, 0.0206451416015625, 0.046539306640625, 0.034881591796875, 0.054931640625, 0.033966064453125, -0.034393310546875, 0.07281494140625, 0.0267486572265625, 0.03485107421875, -0.026031494140625, 0.018035888671875, 0.00824737548828125, -0.039154052734375, 0.0401611328125, 0.009613037109375, -0.01256561279296875, 0.01197052001953125, -0.02984619140625, -0.00879669189453125, -0.011260986328125, 0.03790283203125, 0.0007658004760742188, 0.0113677978515625, -0.04241943359375, -0.0062408447265625, 0.01410675048828125, 0.04412841796875, 0.0130767822265625, 0.041229248046875, -0.0129241943359375, 0.017730712890625, 0.004878997802734375, -0.01343536376953125, 0.01291656494140625, 0.0019311904907226562, -0.00232696533203125, 0.02490234375, -0.03143310546875, -0.0147552490234375, -0.0103912353515625, -0.0019388198852539062, 0.042999267578125, 0.00405120849609375, -0.03924560546875, 0.00797271728515625, -0.013824462890625, -0.0035114288330078125, 0.01934814453125, -0.007053375244140625, -0.0078582763671875, -0.012054443359375, 0.01392364501953125, 0.02496337890625, -0.01708984375, -0.01025390625, -0.0029315948486328125, 0.00048089027404785156, 0.0005736351013183594, -0.00969696044921875, 0.047943115234375, 0.01503753662109375, -0.0210113525390625, 0.028076171875, 0.0017852783203125, 0.0213165283203125, 0.01435089111328125, 0.015411376953125, -0.005809783935546875, 0.022308349609375, -0.00820159912109375, 0.02130126953125, 0.01108551025390625, 0.0028781890869140625, 0.0205841064453125, 0.005321502685546875, 0.01446533203125, -0.0169830322265625, -0.005706787109375, 0.03289794921875, -0.036773681640625, -0.0212249755859375, 0.040008544921875, 0.0294342041015625, -0.01166534423828125, -0.025787353515625, -0.024871826171875, 0.016326904296875, -0.007465362548828125, -0.023895263671875, 0.052825927734375, -0.00841522216796875, 0.03363037109375, 0.0181884765625, -0.03765869140625, 0.0063323974609375, 0.01454925537109375, -0.019378662109375, 0.00324249267578125, 0.00801849365234375, 0.02581787109375, -0.0380859375, -0.0037822723388671875, -0.033660888671875, 0.0277099609375, -0.00982666015625, 0.029510498046875, -0.00843048095703125, -0.032623291015625, -0.031494140625, 0.0016803741455078125, 0.043212890625, 0.0195159912109375, -0.047943115234375, 0.00438690185546875, -0.033782958984375, 0.0151214599609375, 0.036895751953125, -0.0300140380859375, 0.0215911865234375, -0.048095703125, 0.03314208984375, 0.038848876953125, 0.007556915283203125, -0.01471710205078125, -0.0008344650268554688, 0.0087127685546875, 0.02166748046875, 0.034576416015625, 0.0123443603515625, 0.0310516357421875, -0.0283050537109375, 0.027862548828125, -0.021636962890625, -0.01212310791015625, 0.00450897216796875, -0.027130126953125, 0.006229400634765625, -0.0433349609375, -0.0189666748046875, -0.01277923583984375, -0.0016508102416992188, -0.015838623046875, 0.0172119140625, -0.00887298583984375, 0.01026153564453125, -0.0093231201171875, 0.000652313232421875, -0.01934814453125, 0.0198822021484375, -0.034210205078125, -0.0167388916015625, 0.0009469985961914062, 0.039154052734375, 0.08642578125, -0.033782958984375, 0.0168914794921875, -0.0634765625, 0.00885009765625, -0.015594482421875, 0.0022258758544921875, -0.0223388671875, 0.0047454833984375, 0.01036834716796875, 0.0112152099609375, 0.033172607421875, 0.0007805824279785156, 0.0316162109375, 0.041656494140625, -0.0335693359375, -0.007099151611328125, 0.00215911865234375, 0.0186614990234375, -0.017608642578125, 0.027618408203125, 0.048065185546875, 0.00585174560546875, -0.0009160041809082031, 0.00420379638671875, 0.0005135536193847656, -0.03570556640625, -0.01995849609375, -0.03240966796875, -0.00696563720703125, 0.007297515869140625, 0.038482666015625, 0.01593017578125, 0.0100860595703125, -0.02447509765625, 0.00620269775390625, 0.00911712646484375, 0.005680084228515625, 0.031280517578125, -0.02349853515625, -0.006664276123046875, -0.007297515869140625, 0.0092620849609375, 0.0150604248046875, -0.0253143310546875, 0.0019779205322265625, -0.0035953521728515625, -0.00001722574234008789, 0.0167236328125, 0.002590179443359375, -0.0157318115234375, -0.00836181640625, 0.0472412109375, -0.034027099609375, 0.00701141357421875, -0.0011730194091796875, -0.02386474609375, 0.047637939453125, 0.045196533203125, -0.018646240234375, 0.0189208984375, 0.0042724609375, -0.0032138824462890625, 0.0127716064453125, -0.0205078125, 0.0005202293395996094, -0.024383544921875, 0.00510406494140625, 0.00211334228515625, -0.0243072509765625, -0.031951904296875, 0.0008440017700195312, -0.014251708984375, 0.03277587890625, -0.044952392578125, -0.0010786056518554688, 0.0120697021484375, 0.04925537109375, 0.0273590087890625, -0.0169525146484375, -0.056060791015625, 0.01248931884765625, 0.0452880859375, -0.0589599609375, -0.0280914306640625, 0.0323486328125, -0.06982421875, -0.07080078125, 0.0216217041015625, 0.0085296630859375, 0.032196044921875, 0.0002734661102294922, -0.003452301025390625, 0.00646209716796875, -0.0028858184814453125, -0.008392333984375, 0.0163116455078125, -0.028594970703125, -0.021148681640625, -0.02069091796875, 0.0083160400390625, -0.0119171142578125, 0.021453857421875, 0.0195465087890625, 0.003208160400390625, -0.08135986328125, -0.014739990234375, 0.02154541015625, 0.045654296875, 0.0247955322265625, 0.051239013671875, -0.01459503173828125, 0.01036834716796875, 0.0099029541015625, -0.024688720703125, 0.0167694091796875, -0.033599853515625, -0.01849365234375, 0.01363372802734375, 0.0019512176513671875, -0.0040283203125, -0.01023101806640625, 0.0204315185546875, -0.016265869140625, -0.0156402587890625, 0.01078033447265625, -0.0467529296875, 0.027496337890625, -0.01094818115234375, -0.003326416015625, -0.045166015625, -0.0186920166015625, -0.0184326171875, 0.0291900634765625, -0.00408172607421875, 0.0673828125, 0.01390838623046875, 0.01221466064453125, 0.1031494140625, 0.0013179779052734375, 0.039703369140625, 0.0318603515625, -0.025177001953125, 0.0157012939453125, -0.003665924072265625, 0.01306915283203125, -0.05584716796875, -0.029205322265625, 0.022857666015625, 0.035919189453125, -0.0167694091796875, 0.003337860107421875, 0.01296234130859375, 0.0100250244140625, 0.0022945404052734375, -0.02545166015625, 0.01377105712890625, -0.06591796875, -0.03741455078125, -0.04888916015625, 0.0024089813232421875, 0.029937744140625, 0.01290130615234375, -0.00522613525390625, 0.0021305084228515625, 0.00858306884765625, -0.01611328125, -0.03179931640625, 0.0140228271484375, 0.0029735565185546875, 0.029205322265625, 0.0196380615234375, 0.0394287109375, -0.0095367431640625, -0.0157318115234375, -0.01335906982421875, 0.045257568359375, -0.0386962890625, 0.0221099853515625, -0.0411376953125, -0.057830810546875, -0.007129669189453125, 0.0322265625, 0.07159423828125, -0.00646209716796875, 0.028167724609375, -0.01666259765625, -0.037017822265625, 0.0271453857421875, 0.052032470703125, -0.027374267578125, 0.06402587890625, -0.042083740234375, 0.1053466796875, 0.028564453125, 0.01227569580078125, -0.04864501953125, 0.00528717041015625, 0.06256103515625, 0.0096588134765625, 0.005939483642578125, 0.011749267578125, -0.00592803955078125, -0.002227783203125, 0.007587432861328125, 0.00991058349609375, 0.04449462890625, -0.01247406005859375, 0.00457000732421875, -0.013153076171875, -0.07183837890625, 0.0157470703125, 0.04241943359375, -0.0157012939453125, 0.0009412765502929688, 0.01375579833984375, 0.0038585662841796875, 0.006717681884765625, 0.0143890380859375, -0.0202789306640625, 0.0008206367492675781, 0.042877197265625, -0.0068511962890625, -0.0265960693359375, 0.0017786026000976562, 0.04827880859375, 0.0009665489196777344, -0.0205230712890625, 0.087890625, -0.0279998779296875, -0.03167724609375, 0.00411224365234375, 0.0132904052734375, 0.0098419189453125, 0.0003254413604736328, 0.0628662109375, 0.006145477294921875, 0.0020771026611328125, -0.032928466796875, -0.0290985107421875, 0.02191162109375, 0.023468017578125, -0.027099609375, 0.0418701171875, -0.027191162109375, -0.0013246536254882812, -0.042877197265625, 0.0372314453125, -0.03240966796875, -0.061004638671875, -0.04547119140625, -0.01168060302734375, 0.0030612945556640625, 0.01007080078125, -0.0010347366333007812, 0.05096435546875, -0.004138946533203125, 0.005641937255859375, 0.0026760101318359375, -0.0290679931640625, 0.005603790283203125, 0.0177459716796875, -0.011566162109375, -0.01218414306640625, 0.0098114013671875, -0.031585693359375, 0.02337646484375, 0.005695343017578125, 0.02362060546875, 0.01446533203125, 0.0124053955078125, -0.03759765625, -0.00508880615234375, 0.049102783203125, 0.0225677490234375, 0.0386962890625, -0.057769775390625, 0.005992889404296875, 0.0007915496826171875, 0.00997161865234375, -0.02093505859375, -0.0092620849609375, -0.00186920166015625, 0.010986328125, 0.0011262893676757812, -0.01279449462890625, -0.024322509765625, 0.0013446807861328125, 0.0177764892578125, 0.00867462158203125, -0.06744384765625, 0.021331787109375, -0.00748443603515625, 0.039947509765625, -0.0257415771484375, -0.00812530517578125, 0.00424957275390625, -0.0035381317138671875, -0.0548095703125, -0.048309326171875, -0.052398681640625, 0.031768798828125, -0.045745849609375, 0.0447998046875, 0.06036376953125, -0.014190673828125, -0.0139617919921875, 0.02789306640625, -0.00494384765625, 0.0814208984375, -0.05975341796875, -0.0232391357421875, 0.001972198486328125, 0.011688232421875, -0.00751495361328125, -0.03875732421875, 0.000858306884765625, -0.02783203125, -0.025787353515625, -0.0217742919921875, -0.01058197021484375, -0.00565338134765625, -0.0411376953125, -0.09234619140625, 0.07879638671875, -0.00909423828125, -0.02679443359375, -0.0574951171875, -0.0014772415161132812, 0.027008056640625, -0.01444244384765625, -0.0283966064453125, 0.01384735107421875, -0.057037353515625, 0.003997802734375, 0.01318359375, 0.046905517578125, 0.007442474365234375, -0.007289886474609375, 0.016448974609375, 0.01708984375, 0.0194854736328125, 0.019927978515625, 0.0283660888671875, -0.041168212890625, 0.07122802734375, 0.04736328125, -0.0238494873046875, 0.04547119140625, 0.00467681884765625, -0.0308380126953125, 0.009429931640625, -0.026702880859375, -0.01215362548828125, -0.035064697265625, 0.03900146484375, -0.00658416748046875, 0.0091400146484375, 0.0142059326171875, 0.02886962890625, 0.0004925727844238281, -0.0166778564453125, -0.01123046875, 0.005939483642578125, -0.02850341796875, -0.027435302734375, -0.0120697021484375, 0.00911712646484375, -0.0251922607421875, -0.00662994384765625, -0.0185699462890625, -0.01107025146484375, 0.016448974609375, 0.0166473388671875, -0.040313720703125, 0.03851318359375, 0.1171875, -0.08074951171875, -0.0218048095703125, 0.01140594482421875, 0.0049285888671875, 0.0230865478515625, -0.09674072265625, 0.025604248046875, 0.050872802734375, -0.023712158203125, 0.00945281982421875, 0.0447998046875, -0.0110626220703125, -0.02838134765625, -0.0127716064453125, -0.018951416015625, 0.01367950439453125, 0.01241302490234375, -0.0038928985595703125, -0.042724609375, 0.055633544921875, 0.016326904296875, 0.059417724609375, -0.00597381591796875, -0.0078887939453125, -0.01262664794921875, 0.0310211181640625, -0.0224609375, 0.00589752197265625, 0.007678985595703125, -0.03106689453125, -0.00952911376953125, 0.0182647705078125, 0.01508331298828125, -0.06512451171875, 0.0124053955078125, -0.0771484375, 0.038665771484375, 0.019683837890625 ]
dfd127fadf66acc8b96b93b4e7dd49a0c74e425d
Wordpress Stackexchange Q: Ajax post filter by taxonomy I want to make a filter width more than one tanonomy width ajax and jquery, The demo i want to code is: http://gycweb.org/resources/ I have tried to code with this demo: http://dinhkk.com/demo/ajaxfilter/ The problem is i can send in formation from two menu on right sidebar to the ajax data at the same time can any one help me the solution ?? A: I believe WordPress can handle multiple query parameter by default. You can load http://wordpresssite.com/?taxonomy-1=term-a&?taxonomy-2=term-b to query all post that belongs to term a (in taxonomy 1) AND term b (in taxonomy 2). Use JQuery load() function to load the intended query parameter, based on the selected item on the sidebar. Hope this help.
Q: Ajax post filter by taxonomy I want to make a filter width more than one tanonomy width ajax and jquery, The demo i want to code is: http://gycweb.org/resources/ I have tried to code with this demo: http://dinhkk.com/demo/ajaxfilter/ The problem is i can send in formation from two menu on right sidebar to the ajax data at the same time can any one help me the solution ?? A: I believe WordPress can handle multiple query parameter by default. You can load http://wordpresssite.com/?taxonomy-1=term-a&?taxonomy-2=term-b to query all post that belongs to term a (in taxonomy 1) AND term b (in taxonomy 2). Use JQuery load() function to load the intended query parameter, based on the selected item on the sidebar. Hope this help.
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:422302", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59848" }
[ 0.050018310546875, -0.0017499923706054688, -0.019500732421875, -0.06707763671875, 0.044281005859375, -0.027740478515625, 0.035491943359375, 0.00946807861328125, 0.0108184814453125, 0.003719329833984375, -0.08087158203125, 0.018768310546875, -0.039459228515625, 0.01026153564453125, -0.02716064453125, -0.06634521484375, 0.009857177734375, -0.0244598388671875, -0.0012722015380859375, -0.03106689453125, 0.0159759521484375, -0.023529052734375, 0.0182952880859375, 0.040985107421875, 0.00856781005859375, 0.0257720947265625, 0.039459228515625, -0.04437255859375, 0.0177154541015625, -0.007114410400390625, 0.007740020751953125, -0.01268768310546875, 0.032684326171875, -0.011810302734375, 0.0014934539794921875, -0.004314422607421875, 0.0037670135498046875, 0.0036907196044921875, -0.004154205322265625, 0.0207977294921875, 0.050689697265625, -0.03985595703125, 0.0160980224609375, 0.040313720703125, 0.0200958251953125, -0.037445068359375, 0.065185546875, -0.07305908203125, 0.0110626220703125, -0.021820068359375, 0.01812744140625, -0.027557373046875, 0.03521728515625, -0.022796630859375, -0.01525115966796875, 0.025360107421875, -0.02716064453125, -0.00040841102600097656, 0.031646728515625, 0.0008974075317382812, -0.0195465087890625, -0.031982421875, 0.025115966796875, 0.003108978271484375, -0.0229644775390625, 0.01251220703125, 0.0073089599609375, 0.00728607177734375, -0.058502197265625, -0.026885986328125, 0.0163726806640625, -0.047454833984375, -0.0283355712890625, 0.004192352294921875, -0.036376953125, -0.050994873046875, 0.0266265869140625, -0.05426025390625, 0.0005626678466796875, 0.024871826171875, -0.017364501953125, 0.0224151611328125, -0.09722900390625, 0.0090484619140625, -0.0223541259765625, 0.01062774658203125, -0.018310546875, -0.0144805908203125, -0.037841796875, -0.023529052734375, -0.00786590576171875, -0.06982421875, -0.07647705078125, 0.04986572265625, 0.018463134765625, -0.007442474365234375, -0.01654052734375, -0.0021724700927734375, -0.0244903564453125, 0.01837158203125, -0.00579071044921875, -0.033233642578125, 0.048492431640625, -0.0274658203125, 0.0163726806640625, 0.031097412109375, 0.004596710205078125, 0.09375, 0.08831787109375, 0.02593994140625, 0.01476287841796875, 0.055084228515625, 0.0002639293670654297, 0.020904541015625, -0.03594970703125, -0.0428466796875, -0.037261962890625, -0.0171356201171875, -0.0286102294921875, -0.05047607421875, 0.0023632049560546875, -0.0013751983642578125, 0.01514434814453125, 0.035858154296875, 0.0273590087890625, 0.040985107421875, 0.00616455078125, -0.03271484375, -0.005054473876953125, 0.009368896484375, -0.010223388671875, 0.0035266876220703125, 0.0273590087890625, 0.046051025390625, 0.01097869873046875, -0.011749267578125, 0.057525634765625, -0.033203125, 0.00011283159255981445, -0.0102081298828125, 0.025787353515625, 0.01102447509765625, -0.00021588802337646484, -0.005634307861328125, -0.0189971923828125, -0.0004608631134033203, 0.02789306640625, 0.01605224609375, -0.020355224609375, 0.00472259521484375, -0.0231781005859375, 0.020263671875, 0.061737060546875, 0.0166778564453125, -0.04913330078125, -0.00521087646484375, 0.06048583984375, -0.037506103515625, -0.06695556640625, -0.0787353515625, 0.0210113525390625, 0.024444580078125, 0.033294677734375, -0.0111541748046875, -0.010589599609375, -0.046661376953125, -0.042083740234375, 0.0027751922607421875, 0.01488494873046875, -0.03277587890625, 0.01329803466796875, -0.021514892578125, -0.0106658935546875, -0.0175933837890625, -0.0009708404541015625, 0.01103973388671875, 0.0027599334716796875, 0.01129150390625, 0.005016326904296875, 0.0090789794921875, -0.017364501953125, -0.043182373046875, 0.054290771484375, -0.019775390625, -0.0215606689453125, 0.03228759765625, 0.0208892822265625, 0.0535888671875, -0.031982421875, 0.0254974365234375, 0.0195770263671875, 0.046356201171875, -0.01007843017578125, 0.027984619140625, -0.002414703369140625, -0.0494384765625, -0.0269775390625, -0.0148468017578125, -0.004795074462890625, -0.0145721435546875, 0.033355712890625, 0.00966644287109375, -0.00875091552734375, -0.0058441162109375, -0.068603515625, 0.018890380859375, -0.025909423828125, 0.037872314453125, 0.0118408203125, 0.017547607421875, 0.0018472671508789062, 0.0130767822265625, -0.0276336669921875, -0.02734375, -0.038543701171875, 0.01073455810546875, -0.01175689697265625, 0.0128021240234375, 0.00794219970703125, -0.006256103515625, -0.0054931640625, -0.0166015625, -0.00623321533203125, 0.027557373046875, 0.0426025390625, 0.00826263427734375, -0.0005660057067871094, -0.0135650634765625, 0.03680419921875, 0.02001953125, -0.0282440185546875, 0.007114410400390625, 0.0933837890625, 0.0640869140625, -0.031646728515625, -0.0026454925537109375, -0.0016345977783203125, -0.0311126708984375, -0.0092926025390625, 0.050018310546875, 0.014434814453125, 0.04498291015625, -0.0260009765625, 0.0038318634033203125, 0.057342529296875, -0.0498046875, -0.0228118896484375, 0.022308349609375, -0.00431060791015625, -0.01277923583984375, 0.006053924560546875, -0.0218048095703125, 0.033172607421875, -0.0242156982421875, 0.0255584716796875, 0.01088714599609375, 0.01146697998046875, 0.0181427001953125, -0.039459228515625, 0.017730712890625, -0.0188140869140625, -0.0217437744140625, -0.0172119140625, -0.0085906982421875, 0.07391357421875, -0.0243072509765625, 0.0540771484375, 0.0213623046875, 0.0034503936767578125, -0.007801055908203125, 0.0109100341796875, -0.038543701171875, -0.00833892822265625, -0.0091094970703125, 0.042327880859375, 0.004428863525390625, -0.0360107421875, 0.00013971328735351562, 0.0228271484375, -0.005367279052734375, -0.00959014892578125, 0.0254974365234375, -0.053375244140625, -0.02099609375, -0.0189208984375, -0.05078125, 0.0018863677978515625, 0.00917816162109375, -0.01739501953125, 0.0052490234375, 0.005695343017578125, 0.04315185546875, 0.0081634521484375, 0.0303192138671875, -0.00771331787109375, 0.0046539306640625, 0.0284271240234375, -0.0207061767578125, 0.0219268798828125, -0.0394287109375, 0.004482269287109375, 0.02960205078125, 0.0037441253662109375, -0.0243072509765625, -0.0050811767578125, 0.022369384765625, 0.01274871826171875, -0.006931304931640625, -0.024993896484375, -0.0038509368896484375, -0.043182373046875, 0.00890350341796875, 0.0130615234375, -0.0006580352783203125, -0.0019817352294921875, -0.020172119140625, -0.0283966064453125, 0.01026153564453125, -0.037628173828125, 0.020599365234375, -0.0271453857421875, -0.0562744140625, 0.0213775634765625, -0.00962066650390625, -0.0159149169921875, -0.0092926025390625, -0.0034389495849609375, 0.018707275390625, 0.0007767677307128906, -0.0193634033203125, -0.0694580078125, -0.03369140625, -0.0567626953125, 0.03271484375, -0.01161956787109375, -0.003131866455078125, 0.00630950927734375, 0.050445556640625, 0.002033233642578125, -0.07745361328125, -0.0211029052734375, 0.0338134765625, -0.040252685546875, -0.0084228515625, 0.03155517578125, -0.037994384765625, -0.032257080078125, -0.02081298828125, 0.051361083984375, 0.054046630859375, -0.0634765625, 0.038482666015625, -0.00643157958984375, 0.03765869140625, 0.028411865234375, -0.0222015380859375, -0.001026153564453125, 0.03173828125, 0.005359649658203125, -0.03814697265625, 0.0096893310546875, -0.01433563232421875, -0.01904296875, 0.0003464221954345703, 0.00568389892578125, -0.0221710205078125, -0.01276397705078125, 0.00820159912109375, -0.009613037109375, 0.0012187957763671875, -0.006374359130859375, -0.04345703125, 0.0223236083984375, 0.002269744873046875, 0.0126800537109375, 0.0235595703125, -0.0291748046875, -0.05267333984375, 0.0036067962646484375, -0.0262603759765625, -0.0014657974243164062, 0.01371002197265625, 0.0111083984375, 0.0487060546875, -0.048492431640625, 0.047576904296875, 0.0321044921875, -0.01206207275390625, 0.0012521743774414062, -0.035064697265625, 0.00057220458984375, 0.06011962890625, -0.02752685546875, -0.01385498046875, -0.01202392578125, 0.01409912109375, -0.03045654296875, -0.044342041015625, -0.0243072509765625, -0.017822265625, -0.06927490234375, 0.0103302001953125, -0.0167388916015625, -0.02850341796875, -0.008026123046875, -0.0026683807373046875, -0.037933349609375, -0.03961181640625, 0.047607421875, -0.07000732421875, 0.0218963623046875, -0.0204620361328125, -0.012237548828125, -0.037078857421875, -0.0254058837890625, -0.033172607421875, -0.03759765625, -0.0234527587890625, 0.0037937164306640625, 0.0433349609375, 0.01468658447265625, -0.029998779296875, 0.0022869110107421875, 0.03582763671875, 0.0134735107421875, 0.00894927978515625, -0.00731658935546875, -0.01446533203125, 0.02838134765625, -0.0194549560546875, -0.001781463623046875, -0.01136016845703125, -0.01885986328125, -0.010009765625, 0.007083892822265625, 0.0168609619140625, -0.030487060546875, -0.005218505859375, -0.022796630859375, -0.0011997222900390625, -0.11968994140625, -0.05523681640625, -0.0335693359375, -0.044586181640625, -0.0283966064453125, -0.004421234130859375, -0.0283050537109375, -0.08245849609375, 0.033447265625, 0.0193023681640625, -0.0159912109375, -0.0037899017333984375, 0.045867919921875, 0.01335906982421875, -0.02337646484375, -0.05023193359375, 0.0034770965576171875, 0.01323699951171875, 0.01470184326171875, 0.047637939453125, -0.0011663436889648438, -0.004528045654296875, 0.08941650390625, -0.005382537841796875, 0.02838134765625, -0.010009765625, 0.07330322265625, -0.01212310791015625, -0.0217437744140625, 0.047607421875, 0.0143280029296875, -0.0523681640625, -0.0240325927734375, -0.0241241455078125, 0.007007598876953125, 0.0274658203125, 0.024505615234375, -0.033294677734375, 0.02154541015625, -0.0128631591796875, 0.0029659271240234375, 0.0114593505859375, -0.034759521484375, 0.0625, 0.0034008026123046875, 0.00659942626953125, 0.0010080337524414062, 0.0090179443359375, 0.024078369140625, 0.0251617431640625, 0.0704345703125, -0.001262664794921875, 0.058990478515625, 0.028289794921875, 0.023284912109375, -0.0283050537109375, 0.00989532470703125, -0.019378662109375, -0.0147857666015625, -0.017059326171875, -0.039581298828125, 0.006465911865234375, -0.00856781005859375, 0.0083160400390625, -0.008514404296875, 0.0255889892578125, 0.031890869140625, -0.0038204193115234375, 0.004917144775390625, -0.0050201416015625, -0.0152740478515625, -0.0272979736328125, 0.06982421875, 0.017974853515625, 0.01094818115234375, 0.00298309326171875, 0.030792236328125, 0.00289154052734375, 0.01220703125, -0.00713348388671875, 0.05316162109375, 0.0207061767578125, 0.0491943359375, 0.0029144287109375, -0.020660400390625, 0.015777587890625, 0.021697998046875, -0.00719451904296875, -0.0161895751953125, -0.037689208984375, -0.0011816024780273438, 0.002544403076171875, -0.0193328857421875, 0.0269927978515625, 0.0307769775390625, 0.0250396728515625, -0.034454345703125, -0.01316070556640625, -0.0283050537109375, -0.026031494140625, -0.033538818359375, -0.0019388198852539062, 0.0263519287109375, 0.013580322265625, 0.00457000732421875, -0.0313720703125, -0.02435302734375, 0.021759033203125, -0.05438232421875, 0.01139068603515625, 0.006282806396484375, -0.0136260986328125, 0.003116607666015625, 0.01418304443359375, -0.00830078125, -0.05535888671875, -0.0345458984375, 0.00962066650390625, -0.00524139404296875, 0.025146484375, -0.0160980224609375, 0.0163726806640625, -0.02203369140625, 0.01244354248046875, 0.042266845703125, 0.00067901611328125, 0.0531005859375, 0.00695037841796875, -0.018280029296875, -0.0034942626953125, -0.04864501953125, -0.02947998046875, -0.04278564453125, -0.032012939453125, -0.036102294921875, -0.004482269287109375, 0.006343841552734375, 0.00287628173828125, 0.01861572265625, 0.01611328125, -0.010223388671875, -0.0032634735107421875, -0.01593017578125, -0.026611328125, -0.002384185791015625, 0.04345703125, -0.002216339111328125, 0.025787353515625, -0.0019254684448242188, -0.005084991455078125, -0.0416259765625, 0.0006074905395507812, -0.04241943359375, -0.1195068359375, 0.006137847900390625, 0.06268310546875, -0.0810546875, 0.0703125, 0.0277252197265625, 0.03497314453125, 0.0017538070678710938, -0.0284881591796875, -0.014678955078125, -0.01751708984375, 0.04229736328125, 0.00591278076171875, 0.021087646484375, 0.0372314453125, -0.004222869873046875, 0.032684326171875, 0.0034694671630859375, -0.022674560546875, 0.0207672119140625, -0.01378631591796875, 0.0246429443359375, 0.0153045654296875, -0.005153656005859375, -0.0019893646240234375, 0.040924072265625, 0.0190582275390625, 0.0467529296875, 0.0224456787109375, 0.039031982421875, 0.0297088623046875, -0.01525115966796875, -0.020965576171875, 0.0189056396484375, 0.01131439208984375, -0.01358795166015625, 0.006072998046875, -0.0033969879150390625, -0.0170135498046875, -0.0305633544921875, 0.00205230712890625, 0.02044677734375, -0.0188751220703125, 0.0006256103515625, 0.0146636962890625, -0.006061553955078125, -0.0276641845703125, -0.003376007080078125, 0.01419830322265625, 0.033966064453125, -0.01007843017578125, 0.055877685546875, -0.01248931884765625, 0.02276611328125, 0.0543212890625, -0.00684356689453125, -0.006763458251953125, 0.03271484375, 0.01204681396484375, -0.0160064697265625, 0.0221099853515625, 0.0138397216796875, 0.026458740234375, -0.0207366943359375, -0.0076446533203125, 0.0272064208984375, -0.03094482421875, -0.042327880859375, 0.042999267578125, 0.001750946044921875, -0.0139312744140625, 0.0139007568359375, -0.0154266357421875, 0.0016298294067382812, 0.0187835693359375, -0.0190887451171875, 0.01412200927734375, -0.0167236328125, 0.00270843505859375, -0.0118408203125, -0.005077362060546875, -0.00489044189453125, 0.0312042236328125, -0.029205322265625, 0.01403045654296875, -0.022216796875, 0.0154876708984375, -0.0229034423828125, -0.03411865234375, 0.0869140625, -0.0229644775390625, -0.01384735107421875, 0.0276641845703125, 0.039581298828125, -0.021820068359375, -0.001201629638671875, -0.0186004638671875, -0.060333251953125, -0.0660400390625, -0.01528167724609375, -0.1024169921875, -0.001644134521484375, -0.034088134765625, -0.09881591796875, 0.082275390625, 0.01318359375, 0.049346923828125, -0.0322265625, 0.02838134765625, -0.022979736328125, -0.01021575927734375, -0.007373809814453125, 0.0202484130859375, -0.0034427642822265625, 0.01216888427734375, -0.0189361572265625, 0.008758544921875, -0.004093170166015625, 0.0190887451171875, 0.0187225341796875, -0.00388336181640625, 0.017364501953125, -0.0239105224609375, 0.023193359375, 0.058502197265625, 0.0209503173828125, -0.02301025390625, 0.015167236328125, 0.022491455078125, 0.040435791015625, 0.00421905517578125, 0.0271759033203125, -0.006988525390625, -0.0010576248168945312, 0.0484619140625, 0.019500732421875, 0.03369140625, 0.0081787109375, 0.051025390625, -0.023895263671875, -0.0129241943359375, 0.043975830078125, -0.052703857421875, -0.0141448974609375, 0.0027446746826171875, 0.01129150390625, -0.037017822265625, 0.030364990234375, -0.0362548828125, 0.034423828125, 0.0146026611328125, 0.0223846435546875, 0.0552978515625, 0.0193634033203125, 0.08123779296875, -0.05438232421875, 0.0009627342224121094, -0.02783203125, -0.005397796630859375, 0.0263671875, -0.00048613548278808594, 0.0188446044921875, -0.06903076171875, -0.0703125, 0.044525146484375, 0.06732177734375, -0.0117340087890625, -0.078369140625, -0.002040863037109375, 0.0045928955078125, 0.033935546875, 0.0294952392578125, 0.0391845703125, 0.047210693359375, 0.0902099609375, -0.053131103515625, 0.0084075927734375, 0.0307159423828125, 0.025543212890625, -0.0103607177734375, -0.0039825439453125, -0.0260009765625, -0.0010099411010742188, -0.040191650390625, -0.021026611328125, 0.030548095703125, 0.09271240234375, 0.0199127197265625, 0.05877685546875, -0.05078125, -0.040191650390625, 0.0022373199462890625, 0.002277374267578125, 0.011566162109375, -0.00806427001953125, -0.0080413818359375, -0.0200042724609375, 0.0007772445678710938, 0.03753662109375, 0.01016998291015625, 0.048187255859375, 0.03912353515625, 0.042724609375, 0.00833892822265625, 0.0030498504638671875, 0.03955078125, -0.020294189453125, 0.0080718994140625, -0.040130615234375, 0.01194000244140625, 0.032623291015625, -0.005809783935546875, 0.008087158203125, -0.0083465576171875, 0.06585693359375, -0.0287017822265625, 0.010467529296875, 0.0017709732055664062, -0.04718017578125, 0.05255126953125, -0.033294677734375, 0.0430908203125, -0.0228271484375, -0.1304931640625, -0.0205230712890625, -0.0260009765625, -0.07537841796875, 0.055816650390625, 0.0616455078125, -0.035980224609375, -0.0018939971923828125, 0.032562255859375, -0.051025390625, -0.0054168701171875, 0.0016260147094726562, 0.057891845703125, 0.0141754150390625, -0.048004150390625, 0.0173187255859375, -0.0574951171875, -0.0024127960205078125, 0.01389312744140625, -0.0140228271484375, -0.0260162353515625, 0.06597900390625, 0.0095672607421875, -0.01739501953125, 0.01308441162109375, 0.01152801513671875, -0.0027484893798828125, 0.0018148422241210938, 0.0242156982421875, -0.019500732421875, 0.0006117820739746094, -0.008392333984375, -0.0007596015930175781, 0.027801513671875, 0.0233917236328125, -0.040771484375, 0.0193023681640625, -0.0243682861328125, -0.0105438232421875, -0.031402587890625, 0.06884765625, -0.0343017578125, -0.053466796875, -0.087158203125, -0.028076171875, 0.02496337890625, 0.033538818359375, 0.0203399658203125, -0.01187896728515625, 0.00849151611328125, -0.00803375244140625, 0.034454345703125, -0.0008707046508789062, 0.053070068359375, 0.03662109375, -0.040771484375, -0.01055145263671875, 0.040924072265625, -0.0113983154296875, -0.0070037841796875, 0.027801513671875, -0.0036106109619140625, 0.01971435546875, -0.036468505859375, 0.0240936279296875, 0.027801513671875, 0.06597900390625, -0.00376129150390625, 0.0039043426513671875, 0.001338958740234375, 0.0045623779296875, -0.0010614395141601562, 0.045440673828125, -0.01178741455078125, 0.00362396240234375, -0.0210723876953125, -0.0157470703125, -0.0012884140014648438, -0.05224609375, -0.017425537109375, -0.0318603515625, 0.036346435546875, 0.0158233642578125, -0.0264129638671875, 0.00954437255859375, -0.01947021484375, -0.0037841796875, 0.007568359375, -0.0163726806640625, -0.019256591796875, -0.0145721435546875, -0.0283660888671875, -0.032073974609375, -0.05224609375, 0.0220184326171875, -0.0287933349609375, 0.0110626220703125, 0.03289794921875, -0.024749755859375, -0.005985260009765625, -0.0229949951171875, 0.025360107421875, 0.0240020751953125, 0.018646240234375, -0.004230499267578125, 0.051666259765625, 0.0150909423828125, -0.053680419921875, -0.07568359375, 0.0015630722045898438, -0.018096923828125, 0.0374755859375, -0.004154205322265625, -0.0138397216796875, -0.00775146484375, -0.047943115234375, -0.07568359375, 0.046875, -0.015625, -0.036651611328125, -0.0267181396484375, -0.021759033203125, 0.0146942138671875, -0.01267242431640625, -0.0193023681640625, -0.0204620361328125, -0.064453125, 0.00540924072265625, 0.0016279220581054688, 0.001094818115234375, 0.034332275390625, -0.01441192626953125, -0.03985595703125, 0.01461029052734375, 0.01398468017578125, 0.01276397705078125, -0.0225677490234375, -0.0103302001953125, 0.02227783203125, 0.05023193359375, 0.0002046823501586914, 0.0015716552734375, 0.0316162109375, -0.039459228515625, 0.01611328125, -0.01239776611328125, -0.017822265625, 0.0097808837890625, 0.066162109375, -0.00605010986328125, 0.016357421875, -0.025390625, -0.0178070068359375, -0.017852783203125, 0.004779815673828125, -0.01007080078125, 0.00537872314453125, -0.051422119140625, -0.0109710693359375, 0.00499725341796875, 0.00543212890625, 0.0164337158203125, -0.013916015625, -0.01788330078125, -0.0152435302734375, 0.0210113525390625, 0.024749755859375, -0.05615234375, 0.020965576171875, -0.01320648193359375, -0.026123046875, -0.045440673828125, 0.00586700439453125, -0.006053924560546875, -0.049530029296875, 0.007488250732421875, -0.040130615234375, 0.037933349609375, -0.02020263671875, -0.0165557861328125, 0.01064300537109375, 0.00901031494140625, 0.002742767333984375, 0.031158447265625, -0.038482666015625, 0.0122528076171875, 0.027374267578125, 0.0113983154296875, -0.0181884765625, -0.038604736328125, -0.003032684326171875, 0.021392822265625, -0.0227813720703125, 0.036346435546875, -0.0241546630859375, 0.033538818359375, 0.021820068359375, -0.018463134765625, 0.06793212890625, -0.005229949951171875, -0.0040435791015625, -0.00293731689453125, 0.0017070770263671875, -0.0175018310546875, 0.01084136962890625, 0.01470947265625, 0.002033233642578125, 0.00923919677734375 ]
7e98b7310e5213672c414f4f0391714c955a0c6a
Wordpress Stackexchange Q: Approve comment hook? I'm looking to send out emails to subscribers when a comment has been approved. The two actions in the Codex are: 1. add_action('comment_post', 'callback', $priority, $accepted_args); Where the arguments are comment_ID and approval status (0 or 1). 2. add_action('edit_comment', 'callback', $priority, $accepted_args); With argument comment_ID By default comments are not approved when they are posted so I think I would be editing them when I approve them but it's unclear in the Codex. Which option should I use when I approve a comment? A: Just like posts, a comment can have an array of different statuses, so instead of naming a hook with each status, they have transition hooks, which tell you what status it had before and what's the new status. In your case, this might do the trick: add_action('transition_comment_status', 'my_approve_comment_callback', 10, 3); function my_approve_comment_callback($new_status, $old_status, $comment) { if($old_status != $new_status) { if($new_status == 'approved') { // Your code here } } } Let us know how it goes?
Q: Approve comment hook? I'm looking to send out emails to subscribers when a comment has been approved. The two actions in the Codex are: 1. add_action('comment_post', 'callback', $priority, $accepted_args); Where the arguments are comment_ID and approval status (0 or 1). 2. add_action('edit_comment', 'callback', $priority, $accepted_args); With argument comment_ID By default comments are not approved when they are posted so I think I would be editing them when I approve them but it's unclear in the Codex. Which option should I use when I approve a comment? A: Just like posts, a comment can have an array of different statuses, so instead of naming a hook with each status, they have transition hooks, which tell you what status it had before and what's the new status. In your case, this might do the trick: add_action('transition_comment_status', 'my_approve_comment_callback', 10, 3); function my_approve_comment_callback($new_status, $old_status, $comment) { if($old_status != $new_status) { if($new_status == 'approved') { // Your code here } } } Let us know how it goes?
wordpress
{ "language": "en", "length": 164, "provenance": "stackexchange_00019.jsonl.gz:422318", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59894" }
[ 0.0308074951171875, -0.0228424072265625, -0.01215362548828125, -0.0288543701171875, -0.01087188720703125, -0.033782958984375, 0.021331787109375, 0.005603790283203125, 0.0289306640625, 0.053558349609375, -0.0240478515625, 0.0107421875, 0.01184844970703125, 0.006683349609375, -0.04290771484375, -0.0135345458984375, 0.0240936279296875, -0.002933502197265625, 0.025238037109375, -0.0090789794921875, 0.0224151611328125, 0.0169677734375, -0.010711669921875, 0.04461669921875, 0.0045166015625, -0.007427215576171875, 0.1021728515625, -0.025909423828125, 0.030181884765625, -0.00348663330078125, 0.0156402587890625, -0.054962158203125, 0.0216522216796875, 0.03839111328125, -0.0582275390625, -0.0023517608642578125, 0.031768798828125, -0.0170135498046875, -0.03338623046875, 0.0755615234375, 0.0673828125, -0.049041748046875, 0.0287322998046875, -0.0149383544921875, 0.0302276611328125, -0.0153045654296875, 0.07159423828125, -0.039794921875, 0.0225372314453125, 0.03009033203125, 0.0289306640625, 0.0262451171875, 0.028656005859375, -0.005382537841796875, -0.00485992431640625, 0.0202178955078125, -0.0589599609375, 0.0298309326171875, 0.024749755859375, 0.03485107421875, 0.015350341796875, -0.0069122314453125, -0.0029087066650390625, -0.0126800537109375, 0.019989013671875, -0.0211334228515625, 0.002696990966796875, 0.03948974609375, 0.02874755859375, 0.00919342041015625, -0.01088714599609375, -0.006443023681640625, -0.024017333984375, -0.0217437744140625, -0.00609588623046875, -0.00357818603515625, -0.0175018310546875, -0.035430908203125, 0.010345458984375, 0.021484375, 0.024688720703125, -0.03143310546875, -0.00576019287109375, -0.0156707763671875, 0.0189056396484375, 0.00928497314453125, -0.006107330322265625, -0.0117645263671875, -0.036773681640625, -0.02154541015625, -0.025665283203125, -0.041595458984375, 0.0006470680236816406, -0.025970458984375, -0.027435302734375, -0.0281829833984375, 0.00942230224609375, 0.02886962890625, -0.03350830078125, -0.0130615234375, 0.005855560302734375, -0.0169830322265625, -0.002513885498046875, -0.01377105712890625, 0.007904052734375, 0.060455322265625, 0.00801849365234375, -0.05517578125, -0.0022678375244140625, 0.01105499267578125, -0.0129852294921875, -0.0150604248046875, -0.011962890625, 0.000888824462890625, -0.0263824462890625, -0.01125335693359375, -0.05377197265625, 0.0157470703125, -0.007518768310546875, 0.01361083984375, -0.006488800048828125, 0.000682830810546875, 0.004520416259765625, -0.005886077880859375, -0.006206512451171875, -0.0187225341796875, -0.005748748779296875, -0.0228729248046875, 0.0207977294921875, 0.05059814453125, -0.02362060546875, -0.0120849609375, 0.0197296142578125, -0.004283905029296875, -0.007747650146484375, -0.024688720703125, -0.004032135009765625, 0.01268768310546875, -0.010101318359375, 0.00576019287109375, 0.002532958984375, -0.0301055908203125, -0.00655364990234375, -0.00841522216796875, 0.01068115234375, 0.0007967948913574219, 0.0090484619140625, 0.010498046875, 0.01074981689453125, -0.0280609130859375, 0.004642486572265625, -0.017791748046875, 0.047637939453125, -0.0170745849609375, -0.01433563232421875, -0.049774169921875, -0.01165771484375, -0.035400390625, 0.023193359375, -0.034149169921875, 0.034393310546875, -0.027679443359375, -0.0218963623046875, -0.0241546630859375, -0.06451416015625, 0.032867431640625, -0.05133056640625, -0.0163421630859375, 0.005367279052734375, -0.00794219970703125, -0.011322021484375, 0.00675201416015625, -0.020263671875, -0.0251617431640625, 0.00457763671875, 0.0012388229370117188, 0.004161834716796875, 0.03363037109375, 0.0047149658203125, -0.026702880859375, -0.035400390625, -0.053558349609375, 0.0163116455078125, -0.0135498046875, -0.0226593017578125, 0.03118896484375, 0.053253173828125, 0.0804443359375, -0.06536865234375, 0.04443359375, 0.0280303955078125, 0.06024169921875, -0.0282440185546875, -0.01177978515625, -0.039825439453125, -0.030670166015625, 0.0255889892578125, -0.005939483642578125, -0.01116943359375, 0.06317138671875, 0.056640625, 0.0186309814453125, -0.0115509033203125, -0.0292816162109375, -0.078369140625, 0.01538848876953125, -0.03704833984375, 0.04864501953125, -0.00682830810546875, 0.02734375, -0.0028591156005859375, -0.018829345703125, -0.004726409912109375, 0.0002827644348144531, -0.00022029876708984375, -0.0218658447265625, -0.03204345703125, 0.03179931640625, -0.01409912109375, 0.049072265625, -0.027435302734375, -0.01922607421875, -0.015472412109375, -0.002246856689453125, 0.036865234375, -0.0254669189453125, 0.00292205810546875, -0.0268402099609375, 0.00760650634765625, 0.0013608932495117188, -0.043487548828125, 0.02081298828125, 0.0088043212890625, 0.019927978515625, -0.004070281982421875, 0.01390838623046875, 0.03692626953125, -0.06201171875, 0.0080108642578125, 0.02984619140625, 0.038543701171875, -0.0160980224609375, 0.006473541259765625, 0.0253753662109375, 0.0526123046875, 0.013702392578125, 0.04150390625, -0.005802154541015625, -0.005275726318359375, 0.031982421875, 0.0009064674377441406, 0.00669097900390625, 0.00711822509765625, -0.0139923095703125, -0.00850677490234375, 0.0211639404296875, -0.01324462890625, -0.0222015380859375, 0.0015869140625, 0.01074981689453125, 0.0225372314453125, -0.048858642578125, -0.0423583984375, -0.00385284423828125, -0.01186370849609375, -0.032684326171875, 0.0008373260498046875, -0.01323699951171875, -0.00933837890625, -0.036651611328125, 0.037933349609375, 0.01027679443359375, 0.00023484230041503906, 0.06732177734375, 0.017791748046875, 0.042877197265625, -0.0211334228515625, -0.037933349609375, 0.014556884765625, 0.040313720703125, -0.01580810546875, 0.0282440185546875, 0.01157379150390625, -0.016204833984375, -0.0014801025390625, 0.019073486328125, 0.0039215087890625, -0.032684326171875, -0.023406982421875, -0.055877685546875, -0.0241546630859375, 0.03656005859375, 0.00803375244140625, -0.01084136962890625, 0.02886962890625, -0.030029296875, 0.0032253265380859375, -0.03057861328125, 0.0499267578125, -0.050872802734375, -0.0047149658203125, 0.05950927734375, -0.01910400390625, 0.0121612548828125, -0.003849029541015625, -0.030242919921875, -0.01325225830078125, 0.0178985595703125, 0.01435089111328125, -0.041656494140625, 0.0330810546875, 0.0684814453125, 0.03277587890625, 0.07666015625, -0.040191650390625, -0.0499267578125, -0.0278778076171875, 0.0235443115234375, -0.0151214599609375, 0.00435638427734375, 0.0166168212890625, -0.04681396484375, 0.022735595703125, -0.03369140625, -0.01450347900390625, -0.016998291015625, -0.024993896484375, 0.005523681640625, -0.05340576171875, -0.0229034423828125, 0.0080413818359375, -0.033935546875, -0.02685546875, 0.035400390625, 0.00632476806640625, 0.028076171875, 0.005645751953125, 0.046722412109375, -0.0107574462890625, -0.024658203125, 0.0024929046630859375, -0.03118896484375, -0.00284576416015625, -0.00595855712890625, -0.02105712890625, 0.01441192626953125, 0.008758544921875, -0.0097198486328125, 0.0458984375, 0.043365478515625, -0.030029296875, 0.0168304443359375, -0.0025424957275390625, 0.02374267578125, 0.002216339111328125, 0.0100860595703125, 0.0200042724609375, 0.04296875, 0.0150909423828125, -0.020721435546875, 0.0333251953125, 0.0072021484375, -0.0146942138671875, -0.09600830078125, 0.006465911865234375, -0.0225830078125, -0.044769287109375, -0.01502227783203125, 0.002254486083984375, 0.011474609375, 0.05926513671875, -0.01495361328125, -0.0022182464599609375, -0.026519775390625, -0.0269775390625, -0.0509033203125, -0.00983428955078125, -0.0054168701171875, 0.030731201171875, 0.004207611083984375, 0.0260162353515625, -0.0251007080078125, 0.03875732421875, -0.05950927734375, -0.078857421875, 0.046783447265625, -0.045501708984375, -0.00719451904296875, -0.06561279296875, -0.008026123046875, -0.003948211669921875, 0.1009521484375, -0.0352783203125, -0.025421142578125, -0.031219482421875, -0.0013837814331054688, 0.0094146728515625, -0.0107879638671875, 0.004978179931640625, -0.0027027130126953125, -0.05889892578125, 0.060028076171875, 0.028228759765625, -0.056793212890625, -0.04803466796875, -0.0357666015625, -0.0784912109375, -0.01519775390625, 0.0240020751953125, -0.01425933837890625, 0.01203155517578125, 0.083984375, -0.03778076171875, 0.0888671875, -0.037384033203125, -0.038726806640625, -0.01324462890625, 0.009033203125, -0.054718017578125, -0.01087188720703125, 0.02105712890625, 0.006908416748046875, -0.0211944580078125, 0.0000603795051574707, -0.007549285888671875, 0.02252197265625, -0.044464111328125, -0.0032444000244140625, -0.037841796875, 0.014007568359375, -0.0293121337890625, 0.0004780292510986328, 0.0022869110107421875, 0.04168701171875, 0.0045928955078125, 0.051300048828125, -0.0311279296875, -0.0308074951171875, 0.0083160400390625, -0.04669189453125, -0.057220458984375, -0.0455322265625, -0.029266357421875, -0.005649566650390625, -0.0292510986328125, 0.003467559814453125, -0.033447265625, -0.0714111328125, -0.01230621337890625, -0.07513427734375, -0.01434326171875, 0.0189361572265625, 0.05255126953125, 0.045745849609375, 0.030120849609375, 0.045745849609375, -0.026763916015625, 0.03778076171875, 0.0206146240234375, 0.03131103515625, 0.02996826171875, -0.0296783447265625, 0.04840087890625, 0.0450439453125, 0.005908966064453125, -0.01515960693359375, 0.0279998779296875, 0.0120391845703125, 0.00815582275390625, -0.0162506103515625, 0.007537841796875, 0.0216522216796875, -0.016937255859375, -0.0310211181640625, 0.004608154296875, 0.016845703125, 0.031768798828125, -0.0258941650390625, 0.04827880859375, -0.0226287841796875, -0.02960205078125, 0.00914764404296875, -0.06695556640625, 0.0294952392578125, 0.00858306884765625, 0.0068206787109375, -0.0035228729248046875, -0.0018415451049804688, 0.031646728515625, -0.032440185546875, -0.005741119384765625, -0.0291595458984375, 0.044647216796875, 0.00228118896484375, 0.0091552734375, -0.0164642333984375, -0.006183624267578125, 0.04364013671875, 0.0272979736328125, -0.0225067138671875, -0.03173828125, 0.01263427734375, 0.0250244140625, -0.00791168212890625, 0.021392822265625, 0.03424072265625, 0.0214996337890625, -0.0126800537109375, -0.0127105712890625, 0.00852203369140625, -0.01222991943359375, -0.037811279296875, -0.03271484375, 0.013946533203125, -0.027130126953125, 0.04400634765625, -0.0079498291015625, 0.00795745849609375, 0.01242828369140625, -0.0310211181640625, 0.0501708984375, 0.060272216796875, -0.030120849609375, 0.0124664306640625, 0.047607421875, -0.0263214111328125, -0.0294342041015625, -0.024078369140625, 0.00669097900390625, -0.005756378173828125, 0.038238525390625, -0.0033092498779296875, 0.018341064453125, 0.021942138671875, -0.0169219970703125, -0.012451171875, -0.026123046875, 0.041168212890625, 0.08013916015625, -0.00531005859375, -0.005096435546875, 0.002353668212890625, -0.01171875, 0.031036376953125, -0.0000559687614440918, -0.01447296142578125, -0.0325927734375, -0.01474761962890625, 0.006511688232421875, -0.0130767822265625, -0.0139007568359375, -0.00711822509765625, 0.01108551025390625, -0.0159149169921875, 0.0157470703125, -0.08563232421875, -0.0261077880859375, -0.00669097900390625, 0.0169677734375, 0.047607421875, 0.0035724639892578125, 0.0011949539184570312, -0.0191497802734375, 0.008575439453125, -0.0123748779296875, -0.0126495361328125, 0.056854248046875, 0.0024127960205078125, -0.0188140869140625, 0.00164031982421875, -0.0643310546875, -0.0243682861328125, -0.0628662109375, -0.0811767578125, -0.0179595947265625, 0.004016876220703125, 0.01490020751953125, 0.031341552734375, 0.0129241943359375, -0.0068359375, -0.006259918212890625, -0.00838470458984375, -0.00305938720703125, 0.042083740234375, 0.0007014274597167969, 0.046478271484375, -0.007625579833984375, 0.042327880859375, 0.02227783203125, 0.0303497314453125, -0.0267181396484375, -0.018646240234375, -0.0212860107421875, -0.0016698837280273438, 0.0177764892578125, 0.006011962890625, -0.01519775390625, 0.0015687942504882812, 0.0838623046875, 0.0135040283203125, 0.019256591796875, -0.0221405029296875, 0.002994537353515625, -0.00519561767578125, 0.01361083984375, -0.0007715225219726562, -0.00226593017578125, 0.02691650390625, -0.04461669921875, 0.013580322265625, -0.01641845703125, 0.0311737060546875, 0.0024433135986328125, -0.0645751953125, 0.0031147003173828125, 0.034637451171875, -0.02923583984375, 0.00406646728515625, 0.06402587890625, 0.004795074462890625, 0.044097900390625, 0.00777435302734375, 0.0263671875, 0.064453125, 0.025970458984375, 0.0192108154296875, -0.0280609130859375, 0.061004638671875, -0.003322601318359375, -0.00812530517578125, 0.034881591796875, -0.035491943359375, 0.03045654296875, 0.033905029296875, 0.06292724609375, -0.08892822265625, 0.04669189453125, 0.010772705078125, 0.01445770263671875, 0.06683349609375, -0.0362548828125, 0.003116607666015625, -0.0682373046875, 0.07745361328125, 0.005084991455078125, -0.016387939453125, 0.00481414794921875, -0.03607177734375, -0.00940704345703125, -0.0072479248046875, -0.019989013671875, -0.0167999267578125, -0.03363037109375, -0.0304718017578125, 0.0248565673828125, -0.03741455078125, -0.00481414794921875, -0.00829315185546875, 0.0145111083984375, -0.0273895263671875, -0.049530029296875, -0.0004973411560058594, -0.03369140625, -0.013153076171875, 0.01435089111328125, -0.0117034912109375, -0.0231781005859375, 0.02239990234375, -0.032623291015625, 0.0204925537109375, 0.01155853271484375, -0.065185546875, -0.06671142578125, 0.009124755859375, 0.01517486572265625, 0.03192138671875, 0.055999755859375, 0.035186767578125, -0.0033245086669921875, -0.024871826171875, -0.0015544891357421875, -0.00260162353515625, 0.0250244140625, -0.03948974609375, -0.001995086669921875, 0.040435791015625, -0.0195159912109375, -0.0152587890625, 0.0196685791015625, -0.007244110107421875, -0.0025615692138671875, -0.01100921630859375, -0.00457763671875, -0.05169677734375, 0.005031585693359375, -0.0003399848937988281, -0.0863037109375, 0.1153564453125, 0.059356689453125, 0.0233612060546875, -0.032958984375, 0.0460205078125, -0.0360107421875, 0.0134429931640625, -0.061737060546875, 0.061492919921875, -0.0186767578125, 0.052154541015625, -0.05975341796875, 0.01690673828125, 0.0025482177734375, -0.01346588134765625, 0.0740966796875, 0.0240020751953125, -0.020294189453125, 0.005008697509765625, 0.046783447265625, 0.02716064453125, -0.0064849853515625, 0.03497314453125, -0.01322174072265625, 0.0186767578125, 0.038909912109375, -0.02716064453125, 0.040435791015625, -0.03594970703125, -0.02484130859375, -0.00954437255859375, 0.007221221923828125, 0.025421142578125, 0.01361083984375, 0.07794189453125, -0.016204833984375, -0.004001617431640625, 0.02880859375, -0.0648193359375, 0.0243377685546875, 0.01215362548828125, 0.0185089111328125, -0.008056640625, 0.018798828125, -0.0199127197265625, 0.053192138671875, -0.0073394775390625, 0.0260009765625, 0.0106658935546875, 0.0252227783203125, 0.01201629638671875, 0.000030100345611572266, 0.0016241073608398438, 0.031585693359375, -0.025238037109375, 0.039642333984375, 0.00013935565948486328, 0.02197265625, -0.03179931640625, -0.00969696044921875, 0.0022220611572265625, 0.03485107421875, -0.031524658203125, 0.015716552734375, 0.0016031265258789062, 0.0126953125, 0.025543212890625, -0.029876708984375, 0.04730224609375, -0.01035308837890625, -0.02435302734375, -0.05633544921875, -0.00814056396484375, -0.0131683349609375, 0.0565185546875, -0.01605224609375, -0.01056671142578125, -0.01947021484375, -0.02618408203125, -0.04559326171875, 0.013519287109375, 0.0477294921875, 0.0142669677734375, -0.037994384765625, 0.08648681640625, 0.0345458984375, 0.00688934326171875, 0.0223541259765625, -0.0025730133056640625, 0.0183868408203125, -0.03204345703125, 0.0025348663330078125, -0.025299072265625, 0.00341796875, 0.027801513671875, -0.0142822265625, 0.0123138427734375, 0.020111083984375, 0.010528564453125, -0.035675048828125, -0.019744873046875, -0.0176849365234375, -0.04888916015625, -0.0067901611328125, -0.04376220703125, 0.01280975341796875, 0.03631591796875, 0.00537109375, 0.03277587890625, -0.022003173828125, 0.06640625, -0.0316162109375, 0.036590576171875, -0.0073089599609375, -0.03167724609375, -0.0005526542663574219, 0.0386962890625, 0.05108642578125, 0.0152740478515625, -0.0138397216796875, -0.005584716796875, -0.0078887939453125, -0.040618896484375, -0.0088348388671875, 0.039337158203125, 0.004425048828125, 0.01385498046875, -0.0298309326171875, 0.021728515625, -0.00829315185546875, -0.007656097412109375, -0.0077972412109375, 0.019134521484375, 0.036285400390625, 0.005451202392578125, -0.031341552734375, 0.011260986328125, -0.0167388916015625, 0.0125732421875, 0.01052093505859375, 0.0888671875, -0.017730712890625, 0.0122528076171875, 0.00350189208984375, -0.01318359375, -0.005084991455078125, -0.024993896484375, 0.036773681640625, -0.0174102783203125, -0.00533294677734375, 0.0089874267578125, -0.0016689300537109375, 0.043304443359375, 0.0207672119140625, 0.0037899017333984375, 0.0496826171875, -0.03076171875, 0.0084381103515625, -0.0192413330078125, -0.029205322265625, -0.0304412841796875, -0.035003662109375, -0.0158233642578125, -0.0037975311279296875, 0.006618499755859375, 0.03619384765625, 0.02734375, 0.055999755859375, -0.0401611328125, 0.0677490234375, -0.0286865234375, 0.0271453857421875, -0.0406494140625, 0.016845703125, -0.1134033203125, 0.0310211181640625, 0.05523681640625, -0.005802154541015625, 0.03887939453125, 0.0201568603515625, 0.0318603515625, 0.01528167724609375, -0.01264190673828125, -0.008514404296875, 0.006717681884765625, 0.047576904296875, 0.00750732421875, 0.025360107421875, -0.029632568359375, -0.001567840576171875, 0.012420654296875, -0.0096588134765625, -0.041351318359375, -0.058441162109375, 0.0305633544921875, 0.00588226318359375, -0.00481414794921875, -0.02056884765625, -0.007534027099609375, -0.0224456787109375, 0.01715087890625, 0.003246307373046875, -0.0213775634765625, -0.022979736328125, 0.004070281982421875, 0.0288848876953125, -0.01155853271484375, 0.06201171875, -0.00804901123046875, -0.0003628730773925781, -0.0640869140625, -0.037109375, -0.0127410888671875, 0.0740966796875, 0.0001080632209777832, 0.0286407470703125, 0.055816650390625, -0.0254974365234375, -0.037994384765625, 0.0055694580078125, 0.01360321044921875, 0.04833984375, -0.0181732177734375, 0.001964569091796875, 0.04583740234375, 0.00400543212890625, -0.0426025390625, -0.057098388671875, 0.01181793212890625, -0.02264404296875, 0.001468658447265625, -0.038299560546875, 0.031463623046875, 0.034820556640625, -0.027679443359375, -0.040496826171875, 0.03179931640625, -0.022796630859375, -0.02056884765625, -0.05914306640625, -0.02545166015625, -0.00502777099609375, 0.049163818359375, -0.02587890625, 0.0002505779266357422, -0.040985107421875, 0.028533935546875, -0.022735595703125, 0.06597900390625, 0.002338409423828125, -0.006866455078125, -0.01415252685546875, 0.0078887939453125, 0.001529693603515625, 0.0016384124755859375, -0.0136566162109375, -0.025726318359375, 0.05487060546875, 0.04351806640625, -0.0304107666015625, 0.00025582313537597656, 0.020233154296875, 0.01397705078125, -0.01026153564453125, -0.061431884765625, -0.005062103271484375, 0.005496978759765625, 0.06732177734375, 0.019683837890625, 0.00864410400390625, -0.043121337890625, 0.01364898681640625, -0.012969970703125, -0.03985595703125, -0.01041412353515625, 0.01255035400390625, -0.048553466796875, -0.00995635986328125, 0.0104522705078125, 0.0309600830078125, -0.036468505859375, -0.024505615234375, -0.00235748291015625, -0.053253173828125, -0.01270294189453125, 0.00830841064453125, 0.0086517333984375, -0.0577392578125, 0.039764404296875, -0.0127716064453125, 0.0075531005859375, 0.01107025146484375, 0.0260772705078125, 0.01039886474609375, 0.0372314453125, 0.00885009765625, 0.01114654541015625, -0.0201416015625, -0.01312255859375, 0.02923583984375, 0.034088134765625, 0.0036983489990234375, -0.022735595703125, -0.00586700439453125, -0.00618743896484375, -0.0039215087890625, -0.0262908935546875, 0.0094451904296875, 0.01526641845703125, -0.0245513916015625, 0.07958984375, -0.0225982666015625, 0.024932861328125, -0.017547607421875, 0.0281524658203125, 0.02679443359375, -0.00713348388671875, 0.06982421875, -0.0201568603515625, 0.0006732940673828125, 0.0182647705078125, 0.031707763671875, -0.038604736328125, 0.05902099609375, 0.03533935546875, 0.0116424560546875, 0.033111572265625 ]
16bcf6c8a31d6a063ad6ba6884827d01d6f866c9
Wordpress Stackexchange Q: How to detect single.php (but not single-portfolio.php)? When I'm using is_single(); in my <head> section to add some style to website navigation it executes correctly on blog posts but it also executes on single "portfolio" post type posts (so single-portfolio.php and single.php). How do I make it execute only on single.php? A: You could try something like (http://codex.wordpress.org/Function_Reference/get_post_type) : to check if it's not a specific post-type : if ( is_single() && 'portfolio' != get_post_type() ) { // DO STUFF } or to check if it's a post and not a post-type : if ( is_single() && 'post' == get_post_type() ) { // DO STUFF }
Q: How to detect single.php (but not single-portfolio.php)? When I'm using is_single(); in my <head> section to add some style to website navigation it executes correctly on blog posts but it also executes on single "portfolio" post type posts (so single-portfolio.php and single.php). How do I make it execute only on single.php? A: You could try something like (http://codex.wordpress.org/Function_Reference/get_post_type) : to check if it's not a specific post-type : if ( is_single() && 'portfolio' != get_post_type() ) { // DO STUFF } or to check if it's a post and not a post-type : if ( is_single() && 'post' == get_post_type() ) { // DO STUFF } A: You can use the following instead, if (is_singular('post')) { //your code here... } Where by is_singular is the WordPress API conditional function for testing for the existence of a post type. You can also pass an array of post types if you wish. http://codex.wordpress.org/Function_Reference/is_singular
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:422347", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/59979" }
[ 0.0736083984375, 0.0023441314697265625, 0.0182342529296875, -0.0207977294921875, 0.0276336669921875, -0.01438140869140625, 0.07275390625, -0.055389404296875, -0.0321044921875, 0.002460479736328125, -0.0126495361328125, 0.020904541015625, -0.07464599609375, -0.0267333984375, 0.01149749755859375, -0.05889892578125, 0.00476837158203125, 0.0020008087158203125, 0.034149169921875, -0.0115203857421875, 0.0265045166015625, -0.0158233642578125, 0.019439697265625, -0.00977325439453125, 0.00391387939453125, 0.00024056434631347656, 0.0565185546875, -0.0313720703125, 0.0252532958984375, -0.004512786865234375, 0.01250457763671875, 0.0002243518829345703, -0.00902557373046875, 0.040740966796875, -0.00478363037109375, 0.050048828125, -0.00444793701171875, 0.0238494873046875, 0.04327392578125, 0.01490020751953125, 0.029693603515625, -0.020751953125, 0.01210784912109375, 0.018524169921875, 0.007659912109375, -0.0335693359375, 0.031951904296875, -0.059967041015625, 0.027374267578125, -0.03448486328125, -0.0131683349609375, 0.01462554931640625, 0.0207061767578125, -0.052459716796875, -0.0278778076171875, -0.0220489501953125, -0.00527191162109375, -0.01495361328125, 0.0307769775390625, 0.01398468017578125, -0.020965576171875, -0.0183258056640625, 0.024322509765625, -0.046905517578125, -0.0242156982421875, 0.01824951171875, -0.03759765625, 0.00836944580078125, -0.05487060546875, -0.046051025390625, 0.019683837890625, -0.044036865234375, 0.01206207275390625, -0.0111846923828125, -0.00921630859375, -0.0233917236328125, 0.0018739700317382812, -0.0322265625, 0.0181732177734375, 0.00814056396484375, -0.0247344970703125, 0.0146331787109375, -0.057525634765625, -0.0298919677734375, 0.01274871826171875, 0.017333984375, -0.0260467529296875, -0.00983428955078125, -0.045989990234375, -0.020538330078125, -0.042999267578125, -0.014312744140625, -0.002079010009765625, -0.0290069580078125, -0.042205810546875, 0.0029354095458984375, 0.0297698974609375, 0.03900146484375, -0.02001953125, -0.00031185150146484375, 0.01345062255859375, -0.05279541015625, 0.0162811279296875, -0.03704833984375, 0.0259246826171875, 0.04290771484375, -0.00423431396484375, -0.046417236328125, 0.031158447265625, 0.00390625, -0.00589752197265625, 0.04583740234375, -0.0265350341796875, 0.00969696044921875, -0.038360595703125, -0.00799560546875, -0.049713134765625, -0.0008730888366699219, -0.0193939208984375, 0.00864410400390625, 0.01522064208984375, 0.033782958984375, 0.0498046875, -0.06610107421875, 0.00714111328125, 0.002445220947265625, -0.0263824462890625, -0.0782470703125, 0.0302734375, -0.00571441650390625, -0.0280609130859375, 0.002582550048828125, 0.03277587890625, 0.021820068359375, 0.01110076904296875, -0.014556884765625, 0.0306243896484375, 0.046539306640625, -0.01812744140625, 0.01788330078125, 0.033660888671875, -0.049407958984375, -0.03778076171875, 0.01806640625, -0.024261474609375, 0.0258026123046875, 0.03887939453125, 0.0012426376342773438, -0.0258331298828125, -0.05816650390625, -0.009613037109375, 0.0361328125, 0.005222320556640625, 0.024658203125, 0.0173492431640625, -0.0106048583984375, 0.0176849365234375, -0.0235748291015625, 0.0254974365234375, -0.0282135009765625, 0.040313720703125, -0.0196685791015625, -0.00894927978515625, -0.0087738037109375, -0.03399658203125, 0.02484130859375, -0.041259765625, -0.01119232177734375, 0.0160675048828125, -0.056884765625, -0.01413726806640625, -0.004852294921875, 0.0478515625, -0.0027523040771484375, 0.0017747879028320312, 0.032318115234375, -0.0261993408203125, -0.024871826171875, 0.02203369140625, 0.0537109375, -0.007373809814453125, -0.03173828125, 0.032623291015625, -0.0048065185546875, -0.0736083984375, 0.038726806640625, 0.01380157470703125, 0.0143585205078125, 0.0107421875, -0.00955963134765625, 0.09796142578125, 0.04339599609375, 0.010528564453125, -0.010040283203125, 0.00726318359375, -0.004299163818359375, -0.022674560546875, 0.0028553009033203125, -0.020477294921875, -0.00881195068359375, 0.044647216796875, 0.00473785400390625, 0.003459930419921875, -0.00914764404296875, -0.037750244140625, -0.0226593017578125, -0.00615692138671875, 0.013885498046875, -0.044158935546875, 0.022979736328125, 0.029205322265625, -0.0286712646484375, -0.01103973388671875, -0.00667572021484375, 0.005710601806640625, -0.0201568603515625, 0.00690460205078125, -0.01922607421875, -0.021514892578125, -0.027374267578125, -0.050140380859375, 0.01062774658203125, -0.05242919921875, 0.0384521484375, 0.0921630859375, 0.025390625, -0.043426513671875, -0.0111846923828125, 0.042633056640625, 0.03570556640625, -0.10302734375, 0.03436279296875, -0.01551055908203125, -0.01702880859375, -0.0374755859375, 0.0117340087890625, 0.0167083740234375, -0.011810302734375, 0.002590179443359375, 0.050048828125, 0.0215301513671875, 0.004970550537109375, -0.004833221435546875, 0.01300811767578125, 0.01739501953125, -0.0411376953125, 0.004634857177734375, -0.00104522705078125, -0.00836944580078125, 0.0352783203125, -0.0107879638671875, 0.0243682861328125, 0.015228271484375, -0.059173583984375, -0.00951385498046875, 0.04571533203125, -0.01419830322265625, -0.01219940185546875, 0.0095367431640625, 0.00028061866760253906, -0.0123748779296875, 0.006893157958984375, 0.00817108154296875, -0.004795074462890625, 0.046600341796875, 0.005512237548828125, 0.040191650390625, 0.04205322265625, 0.0004343986511230469, 0.0013303756713867188, -0.0105438232421875, -0.02349853515625, 0.0024127960205078125, 0.06939697265625, 0.043060302734375, 0.05242919921875, -0.03851318359375, -0.04620361328125, 0.0178070068359375, 0.059326171875, -0.0265045166015625, 0.0012922286987304688, 0.01061248779296875, -0.0230712890625, -0.00865936279296875, -0.016510009765625, 0.032989501953125, -0.032928466796875, 0.0084381103515625, -0.0156707763671875, 0.0301971435546875, 0.01042938232421875, -0.0099639892578125, 0.01525115966796875, 0.0064239501953125, -0.02978515625, 0.00766754150390625, -0.0501708984375, 0.04254150390625, -0.048797607421875, 0.030517578125, 0.047821044921875, -0.0238800048828125, 0.00635528564453125, -0.0197601318359375, -0.00795745849609375, -0.0120086669921875, -0.00807952880859375, -0.040069580078125, -0.00144195556640625, -0.07525634765625, 0.0005474090576171875, 0.00904083251953125, 0.0281524658203125, 0.0153961181640625, -0.0413818359375, 0.01212310791015625, 0.0184478759765625, -0.038360595703125, -0.027252197265625, 0.0167388916015625, -0.056427001953125, 0.01837158203125, -0.026763916015625, -0.01239013671875, -0.0208587646484375, -0.00965118408203125, 0.005245208740234375, 0.021270751953125, 0.0067901611328125, -0.0552978515625, -0.0216217041015625, -0.072265625, 0.01016998291015625, -0.0091094970703125, 0.019622802734375, 0.0191650390625, 0.0300750732421875, 0.0237579345703125, -0.0418701171875, 0.02984619140625, 0.0245513916015625, -0.04315185546875, 0.0121612548828125, -0.012298583984375, -0.0277557373046875, -0.01873779296875, 0.00214385986328125, -0.041748046875, -0.01611328125, 0.0229339599609375, -0.0208282470703125, 0.02197265625, 0.0294952392578125, 0.045623779296875, 0.004638671875, -0.0374755859375, 0.0307769775390625, 0.0286407470703125, -0.02392578125, -0.043548583984375, -0.0132904052734375, -0.07159423828125, 0.00811004638671875, 0.040008544921875, 0.01374053955078125, -0.0152587890625, 0.00934600830078125, -0.01605224609375, -0.00485992431640625, -0.02435302734375, -0.00934600830078125, 0.0557861328125, 0.006534576416015625, 0.0035381317138671875, 0.018585205078125, -0.036712646484375, -0.043060302734375, 0.030303955078125, -0.0189361572265625, -0.0159149169921875, -0.020233154296875, -0.005035400390625, -0.01486968994140625, -0.01552581787109375, 0.01947021484375, -0.031707763671875, 0.048095703125, -0.0478515625, -0.0146484375, -0.0176239013671875, 0.0677490234375, -0.0850830078125, 0.0041046142578125, -0.00476837158203125, 0.006732940673828125, -0.0006842613220214844, -0.06304931640625, -0.06939697265625, -0.0236968994140625, -0.04180908203125, 0.005313873291015625, -0.0099639892578125, -0.019775390625, -0.01934814453125, -0.0176544189453125, -0.02587890625, -0.024627685546875, 0.0246734619140625, -0.0543212890625, 0.038726806640625, 0.012725830078125, 0.01268768310546875, -0.01229095458984375, 0.004985809326171875, -0.0667724609375, -0.0335693359375, -0.0157318115234375, 0.011474609375, 0.01300811767578125, -0.032318115234375, 0.031280517578125, -0.0093841552734375, 0.0287628173828125, -0.00011783838272094727, -0.0246124267578125, 0.00875091552734375, 0.00254058837890625, 0.021331787109375, 0.039398193359375, -0.005481719970703125, -0.000804901123046875, -0.0228424072265625, 0.008270263671875, -0.00450897216796875, 0.03662109375, -0.01302337646484375, -0.0110931396484375, 0.00921630859375, -0.01031494140625, -0.0142669677734375, -0.010986328125, 0.01334381103515625, 0.034332275390625, -0.013641357421875, 0.009490966796875, -0.021148681640625, -0.0264892578125, 0.04473876953125, -0.01166534423828125, -0.0196075439453125, 0.00007581710815429688, 0.0870361328125, 0.0228424072265625, -0.02337646484375, -0.039337158203125, 0.0223236083984375, 0.034088134765625, 0.029327392578125, 0.03472900390625, 0.0166473388671875, -0.024658203125, 0.04278564453125, 0.0236968994140625, -0.030731201171875, -0.005916595458984375, 0.05133056640625, 0.01312255859375, -0.01082611083984375, -0.01241302490234375, -0.0175933837890625, 0.0307159423828125, 0.0283660888671875, -0.0027828216552734375, -0.0234832763671875, 0.031646728515625, 0.030029296875, -0.021240234375, -0.005161285400390625, -0.031219482421875, -0.0494384765625, 0.006351470947265625, 0.02410888671875, 0.008209228515625, 0.015472412109375, 0.001956939697265625, 0.052276611328125, 0.03533935546875, -0.0180206298828125, -0.01114654541015625, 0.072021484375, 0.0090789794921875, 0.034454345703125, -0.0014905929565429688, -0.0087432861328125, -0.06787109375, 0.0030002593994140625, 0.0103912353515625, 0.01287078857421875, -0.04437255859375, -0.0005664825439453125, 0.004184722900390625, 0.0164337158203125, 0.0049896240234375, 0.00768280029296875, 0.023895263671875, -0.01346588134765625, -0.0218963623046875, -0.0177764892578125, -0.032012939453125, -0.00952911376953125, -0.037689208984375, 0.003078460693359375, -0.0015993118286132812, -0.0115509033203125, 0.0621337890625, -0.007965087890625, -0.0007414817810058594, 0.036407470703125, -0.0231170654296875, 0.036285400390625, 0.038360595703125, 0.0206756591796875, 0.01081085205078125, -0.00882720947265625, -0.00504302978515625, -0.00396728515625, 0.01091766357421875, -0.05572509765625, -0.005359649658203125, 0.00786590576171875, 0.041290283203125, 0.01309967041015625, -0.014251708984375, 0.022705078125, 0.0097503662109375, -0.0343017578125, 0.0188751220703125, 0.0116424560546875, -0.022857666015625, -0.0240478515625, 0.02716064453125, 0.0382080078125, 0.03521728515625, -0.0195159912109375, 0.0244903564453125, -0.00638580322265625, -0.00745391845703125, 0.0487060546875, -0.078369140625, 0.01910400390625, 0.052032470703125, 0.010406494140625, -0.036773681640625, 0.01488494873046875, -0.0478515625, 0.0408935546875, -0.044891357421875, -0.032379150390625, 0.040313720703125, -0.0127716064453125, 0.03216552734375, -0.01447296142578125, -0.0445556640625, 0.005901336669921875, -0.0018091201782226562, 0.0711669921875, 0.039031982421875, -0.03460693359375, -0.0039005279541015625, -0.06488037109375, -0.0147705078125, 0.0233612060546875, -0.019256591796875, -0.0233306884765625, -0.00725555419921875, 0.00811767578125, 0.0237884521484375, 0.017181396484375, 0.0019102096557617188, -0.004032135009765625, 0.021270751953125, -0.00502777099609375, 0.04559326171875, -0.033599853515625, 0.05645751953125, 0.045623779296875, 0.0190277099609375, 0.0162200927734375, 0.028350830078125, -0.0010671615600585938, -0.013763427734375, 0.0041656494140625, -0.055145263671875, -0.0007181167602539062, -0.0183868408203125, 0.024993896484375, 0.0088043212890625, -0.004451751708984375, 0.0020923614501953125, -0.028076171875, -0.00322723388671875, 0.007259368896484375, -0.01525115966796875, -0.002933502197265625, 0.029296875, -0.0290679931640625, -0.007965087890625, -0.003406524658203125, 0.043701171875, 0.01165008544921875, -0.037933349609375, -0.0038356781005859375, 0.0206451416015625, 0.00628662109375, 0.0193328857421875, -0.03387451171875, 0.0169830322265625, 0.039459228515625, 0.0218353271484375, 0.03753662109375, -0.0051116943359375, 0.0187530517578125, 0.012908935546875, -0.01476287841796875, -0.006011962890625, 0.006786346435546875, 0.038421630859375, -0.01268768310546875, 0.00704193115234375, 0.0248565673828125, -0.016815185546875, 0.035491943359375, 0.0543212890625, 0.07623291015625, -0.074951171875, 0.015045166015625, 0.034027099609375, -0.0089874267578125, 0.033721923828125, -0.037506103515625, 0.0183258056640625, -0.01468658447265625, 0.0472412109375, 0.06561279296875, -0.027313232421875, 0.0237884521484375, -0.0011339187622070312, 0.0283966064453125, -0.0107421875, 0.0892333984375, 0.00582122802734375, -0.083740234375, -0.006427764892578125, 0.05633544921875, -0.01666259765625, -0.037567138671875, -0.01067352294921875, 0.0258941650390625, -0.02947998046875, -0.08282470703125, 0.01120758056640625, -0.0135498046875, 0.008758544921875, 0.03692626953125, 0.01358795166015625, 0.0181884765625, 0.0506591796875, -0.00902557373046875, 0.00849151611328125, 0.004917144775390625, -0.0433349609375, -0.07745361328125, -0.0202789306640625, 0.0240325927734375, 0.032745361328125, -0.054046630859375, 0.03692626953125, -0.043975830078125, -0.0228118896484375, 0.0079498291015625, -0.03460693359375, 0.049713134765625, -0.034637451171875, -0.002307891845703125, 0.0166015625, 0.0085296630859375, 0.006137847900390625, 0.00940704345703125, 0.01177215576171875, -0.05352783203125, -0.039093017578125, 0.022216796875, -0.061676025390625, -0.01629638671875, 0.0176544189453125, -0.060882568359375, 0.040802001953125, -0.01312255859375, 0.0369873046875, 0.01763916015625, 0.00821685791015625, -0.01959228515625, -0.017791748046875, -0.055328369140625, 0.03076171875, -0.018829345703125, 0.0726318359375, -0.03155517578125, 0.013671875, 0.027496337890625, -0.0018157958984375, 0.0526123046875, 0.005229949951171875, -0.0187835693359375, 0.00777435302734375, 0.08770751953125, 0.06732177734375, 0.01422119140625, 0.00982666015625, -0.0078887939453125, -0.005218505859375, 0.0029201507568359375, -0.004863739013671875, 0.0377197265625, -0.023773193359375, -0.0404052734375, 0.0228271484375, 0.034698486328125, 0.021942138671875, -0.00698089599609375, -0.0249481201171875, -0.0643310546875, 0.001739501953125, 0.03619384765625, 0.038848876953125, 0.003108978271484375, 0.044769287109375, 0.031005859375, -0.0304107666015625, 0.022918701171875, -0.035308837890625, 0.053375244140625, -0.006099700927734375, 0.0196075439453125, 0.023284912109375, 0.009796142578125, 0.044219970703125, -0.01776123046875, 0.0008292198181152344, 0.0120391845703125, -0.016204833984375, -0.0022220611572265625, 0.03375244140625, 0.0189361572265625, -0.017486572265625, 0.0439453125, 0.0308990478515625, 0.0023822784423828125, -0.03155517578125, -0.04669189453125, 0.0081024169921875, -0.0113525390625, -0.00348663330078125, -0.0008940696716308594, 0.0015850067138671875, -0.006977081298828125, 0.046966552734375, -0.048004150390625, -0.01043701171875, 0.0142669677734375, 0.031707763671875, -0.001239776611328125, 0.0092620849609375, -0.032012939453125, -0.0295867919921875, -0.0292510986328125, 0.022247314453125, 0.03680419921875, 0.055938720703125, -0.03326416015625, 0.07611083984375, -0.03778076171875, -0.006542205810546875, 0.0088958740234375, -0.01143646240234375, -0.048675537109375, 0.011199951171875, -0.09503173828125, -0.0902099609375, 0.033203125, 0.089111328125, 0.039581298828125, 0.01513671875, 0.0088653564453125, 0.0094146728515625, 0.01702880859375, 0.00196075439453125, 0.04364013671875, -0.0030117034912109375, -0.07830810546875, -0.005222320556640625, -0.05352783203125, 0.030029296875, -0.00832366943359375, 0.0233306884765625, 0.0164337158203125, 0.0155181884765625, -0.034576416015625, 0.05072021484375, 0.0010471343994140625, -0.012786865234375, 0.0262908935546875, 0.020233154296875, 0.052947998046875, 0.0181732177734375, -0.050445556640625, -0.0042572021484375, 0.0105743408203125, -0.04852294921875, 0.0221710205078125, 0.042816162109375, -0.039825439453125, 0.0224456787109375, 0.032806396484375, 0.0113067626953125, 0.004528045654296875, 0.0014066696166992188, 0.006862640380859375, -0.0052947998046875, 0.03448486328125, 0.021270751953125, -0.0546875, -0.05511474609375, -0.01383209228515625, 0.04840087890625, 0.00969696044921875, 0.03155517578125, -0.0072784423828125, 0.0289154052734375, -0.0345458984375, 0.05487060546875, -0.0628662109375, -0.0247039794921875, 0.01287841796875, -0.02117919921875, -0.0003142356872558594, 0.0081939697265625, -0.058013916015625, 0.0007691383361816406, 0.05096435546875, -0.0173492431640625, 0.00904083251953125, -0.00197601318359375, 0.01351165771484375, -0.014739990234375, 0.029144287109375, -0.031463623046875, -0.01454925537109375, -0.0191192626953125, -0.0180511474609375, 0.031494140625, -0.01739501953125, -0.0037841796875, 0.0296478271484375, 0.0042266845703125, -0.068115234375, 0.025634765625, -0.06268310546875, -0.006885528564453125, 0.0201568603515625, 0.0513916015625, -0.0007314682006835938, -0.007396697998046875, -0.01288604736328125, -0.0148773193359375, 0.025634765625, -0.00475311279296875, -0.01544189453125, 0.0140228271484375, 0.0301971435546875, 0.024139404296875, 0.037353515625, -0.025421142578125, 0.0016355514526367188, 0.055999755859375, -0.01081085205078125, -0.0224761962890625, 0.0233306884765625, -0.010406494140625, -0.0273284912109375, 0.00911712646484375, -0.002140045166015625, -0.0007047653198242188, -0.00469207763671875, 0.00131988525390625, -0.040863037109375, 0.043243408203125, -0.03814697265625, 0.032958984375, -0.048187255859375, -0.063720703125, -0.002773284912109375, -0.0257110595703125, 0.006305694580078125, 0.01763916015625, 0.043701171875, -0.035675048828125, 0.025543212890625, -0.004199981689453125, -0.03204345703125, 0.0174713134765625, 0.038421630859375, 0.06707763671875, -0.039764404296875, -0.024932861328125, 0.001556396484375, 0.015655517578125, 0.05816650390625, -0.0015172958374023438, -0.0135040283203125, 0.01047515869140625, -0.006031036376953125, -0.0173187255859375, -0.03302001953125, 0.0284576416015625, -0.053619384765625, -0.02734375, 0.007564544677734375, 0.0151824951171875, 0.0316162109375, -0.03192138671875, -0.0712890625, 0.1011962890625, -0.033172607421875, -0.0302886962890625, -0.048248291015625, 0.01194000244140625, -0.004425048828125, -0.034637451171875, -0.03192138671875, -0.00855255126953125, 0.00545501708984375, 0.06585693359375, 0.017974853515625, -0.006206512451171875, 0.028778076171875, 0.00395965576171875, -0.0098419189453125, 0.046539306640625, 0.051727294921875, -0.0118255615234375, -0.023223876953125, 0.00234222412109375, 0.02410888671875, 0.02362060546875, -0.043975830078125, 0.022064208984375, 0.022369384765625, 0.042388916015625, 0.04217529296875, -0.0026683807373046875, -0.07598876953125, -0.0300445556640625, 0.048248291015625, 0.061431884765625, 0.03839111328125, -0.0297698974609375, 0.01406097412109375, -0.01192474365234375, -0.058929443359375, 0.02001953125, 0.016357421875, -0.032257080078125, 0.0135650634765625, 0.0117645263671875, -0.01202392578125, -0.004375457763671875, 0.017608642578125, -0.0272369384765625, 0.006011962890625, 0.0247955322265625, -0.0017271041870117188, -0.040435791015625, -0.004207611083984375, -0.005695343017578125, -0.003963470458984375, -0.014739990234375, -0.0006814002990722656, 0.0034351348876953125, -0.0187835693359375, 0.0308380126953125, 0.0253753662109375, 0.0765380859375, -0.0215301513671875, -0.03192138671875, 0.061004638671875, -0.0192718505859375, 0.036590576171875, 0.004299163818359375, -0.02178955078125, 0.01374053955078125, 0.02783203125, 0.02880859375, -0.0273284912109375, -0.01236724853515625, 0.0163116455078125, -0.0149078369140625, 0.02008056640625, 0.05224609375, -0.004589080810546875, 0.04534912109375, -0.0052642822265625, -0.0261383056640625, 0.0003783702850341797, -0.0191497802734375, 0.0008287429809570312, 0.02691650390625, -0.028167724609375, -0.0552978515625, 0.03173828125, 0.055633544921875, 0.0236358642578125, 0.0242919921875 ]
d15f16034ef0086cb6ae5d16f67bf5f1553a3e31
Wordpress Stackexchange Q: Add a Page without header and menus? Is it possible to add a Page in WordPress, so that none of the header or the menus of the site appears on that page? And also so that the stuff in sidebars that's on the rest of the site doesn't appear. And the stuff at the bottom of the page (there's a 'Leave a reply' form on the other pages.) So on this site: http://richardclunan.com/ don't want any of the header handwriting or the 'hey there' / 'portfolio' / 'need copywriting' / 'etc' menu items to appear on one particular page, nor the side-bar sign-up box, nor the 'leave a reply' form. But I want all that stuff to appear on all other pages. A: Rich - If you create an HTML page (however you wish) called something.html, and drop it in the same folder as the wordpress install, then http://richardclunan.com/something.html will show that page. I had a blog made of static pages before flipping to WP. The old pages appear fine if fould on old bookmarks or search engines. http://joetaxpayer.com/gold is an example, get rid of the ending /gold and you see the WP site is there.
Q: Add a Page without header and menus? Is it possible to add a Page in WordPress, so that none of the header or the menus of the site appears on that page? And also so that the stuff in sidebars that's on the rest of the site doesn't appear. And the stuff at the bottom of the page (there's a 'Leave a reply' form on the other pages.) So on this site: http://richardclunan.com/ don't want any of the header handwriting or the 'hey there' / 'portfolio' / 'need copywriting' / 'etc' menu items to appear on one particular page, nor the side-bar sign-up box, nor the 'leave a reply' form. But I want all that stuff to appear on all other pages. A: Rich - If you create an HTML page (however you wish) called something.html, and drop it in the same folder as the wordpress install, then http://richardclunan.com/something.html will show that page. I had a blog made of static pages before flipping to WP. The old pages appear fine if fould on old bookmarks or search engines. http://joetaxpayer.com/gold is an example, get rid of the ending /gold and you see the WP site is there. A: Create a custom Page Template, leave out the get_header(), get_footer(), and get_sidebar() calls in it, and put in your own html header/footer code in the Page template instead. http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates A: you can create a new page template and associate it with that page. on the page template, don't include the sidebar ( <?php get_sidebar(); ?>) and don't allow comments on that specific page, either by removing the call to the comment template, usually comments_template() or using the wp page admin. the header and navigation is a bit more complicated but easily done by wrapping them in a conditional if( get_the_id() != '99' ) { ... } . Replace 99 with your page id surely. A: How to remove page elements by CSS Open the inspector, and try to find the class or the id of the elements that you want to hide: Then customize your CSS with : body.page-id-2 h1.title {display:none;} This way, you only hide the elements, not eliminate them. So that you don't break any potential function that requires to have the elements, e.g. page layout or scripts in footer. Source: https://thethemefoundry.com/tutorials/hiding-parts-of-your-theme-with-displaynone/
wordpress
{ "language": "en", "length": 382, "provenance": "stackexchange_00019.jsonl.gz:422351", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60000" }
[ 0.07171630859375, 0.02191162109375, 0.026702880859375, 0.0101318359375, 0.03289794921875, -0.047576904296875, 0.071044921875, -0.06475830078125, -0.0511474609375, -0.00934600830078125, -0.037506103515625, 0.022430419921875, -0.0294647216796875, -0.0226287841796875, 0.049896240234375, -0.041778564453125, 0.0238800048828125, 0.008453369140625, 0.059417724609375, 0.01332855224609375, 0.0274658203125, 0.01033782958984375, 0.0234527587890625, -0.004894256591796875, 0.00665283203125, -0.038299560546875, 0.04931640625, -0.0234222412109375, 0.0014085769653320312, -0.02239990234375, 0.0196075439453125, 0.02215576171875, 0.025787353515625, 0.04638671875, -0.04400634765625, 0.04559326171875, -0.031707763671875, 0.0254058837890625, 0.019775390625, 0.0034332275390625, 0.0203857421875, -0.00516510009765625, 0.016326904296875, 0.005252838134765625, 0.011962890625, -0.03363037109375, 0.0249786376953125, -0.052703857421875, -0.0121002197265625, -0.034759521484375, 0.004322052001953125, -0.0004248619079589844, 0.02093505859375, -0.00849151611328125, -0.025146484375, -0.003490447998046875, 0.024322509765625, 0.0007719993591308594, 0.0278472900390625, -0.01207733154296875, -0.031707763671875, 0.0032672882080078125, 0.0120391845703125, -0.01534271240234375, -0.004245758056640625, 0.01358795166015625, -0.0211639404296875, 0.0100860595703125, -0.06951904296875, 0.0063629150390625, 0.0335693359375, -0.0604248046875, -0.004207611083984375, -0.031707763671875, -0.033203125, -0.002140045166015625, 0.0005016326904296875, -0.0243377685546875, 0.004856109619140625, 0.000217437744140625, -0.003780364990234375, 0.0203094482421875, -0.07293701171875, -0.061248779296875, 0.0280914306640625, -0.032745361328125, -0.01239013671875, -0.0006117820739746094, -0.033843994140625, 0.0215911865234375, -0.03497314453125, -0.02618408203125, -0.004520416259765625, 0.0164031982421875, -0.004669189453125, 0.00579071044921875, 0.004535675048828125, 0.041748046875, 0.01250457763671875, 0.05706787109375, -0.0085296630859375, -0.056671142578125, 0.1051025390625, -0.08233642578125, 0.0124664306640625, 0.054656982421875, -0.01520538330078125, -0.0117340087890625, 0.045928955078125, 0.01465606689453125, 0.0159454345703125, 0.002971649169921875, -0.004421234130859375, -0.016204833984375, -0.0154266357421875, 0.04193115234375, -0.01885986328125, 0.00205230712890625, -0.00595855712890625, 0.030364990234375, -0.00885009765625, 0.0216827392578125, -0.0182037353515625, -0.031982421875, 0.018280029296875, -0.00812530517578125, -0.0028781890869140625, -0.00617218017578125, 0.0151519775390625, -0.01407623291015625, -0.03314208984375, 0.02838134765625, 0.036865234375, 0.01519012451171875, -0.0099334716796875, -0.00951385498046875, 0.023345947265625, -0.0208892822265625, -0.02813720703125, 0.039794921875, -0.010101318359375, -0.049407958984375, -0.01456451416015625, -0.035125732421875, 0.0026702880859375, -0.0117950439453125, 0.01467132568359375, 0.0438232421875, 0.00983428955078125, -0.01666259765625, 0.030120849609375, -0.0102386474609375, 0.02325439453125, 0.00445556640625, -0.057586669921875, -0.0296630859375, -0.0275421142578125, -0.01419830322265625, 0.00470733642578125, -0.0097503662109375, -0.005462646484375, -0.003631591796875, 0.01690673828125, -0.06109619140625, -0.045440673828125, -0.033599853515625, -0.023345947265625, 0.0047607421875, 0.016632080078125, -0.01934814453125, -0.01157379150390625, -0.0164031982421875, 0.0386962890625, 0.0299072265625, 0.018463134765625, 0.05157470703125, 0.021240234375, 0.040740966796875, -0.0206146240234375, 0.07940673828125, 0.03094482421875, -0.025299072265625, 0.046905517578125, -0.01409149169921875, -0.09033203125, 0.0732421875, -0.00434112548828125, 0.0804443359375, 0.01026153564453125, 0.002857208251953125, 0.07733154296875, -0.0107574462890625, -0.0211181640625, -0.013946533203125, 0.0186309814453125, -0.012420654296875, -0.0277252197265625, -0.0132293701171875, -0.004199981689453125, 0.0174560546875, -0.0036945343017578125, 0.01332855224609375, 0.0016965866088867188, 0.0239105224609375, -0.0115814208984375, 0.0176239013671875, -0.02154541015625, 0.0244140625, -0.007785797119140625, 0.022064208984375, 0.007106781005859375, -0.005420684814453125, -0.018707275390625, -0.0419921875, -0.030426025390625, -0.0158843994140625, 0.018524169921875, 0.06219482421875, 0.0089111328125, 0.035400390625, 0.0210113525390625, -0.0291595458984375, 0.021209716796875, 0.0200958251953125, 0.044830322265625, -0.0335693359375, -0.0174407958984375, -0.045013427734375, -0.0188751220703125, 0.0033473968505859375, -0.083251953125, 0.0645751953125, -0.0023097991943359375, 0.00982666015625, -0.03558349609375, 0.00591278076171875, -0.028289794921875, -0.0255279541015625, -0.01117706298828125, 0.043853759765625, 0.045196533203125, 0.032958984375, 0.0010623931884765625, 0.004863739013671875, 0.009613037109375, -0.0859375, -0.00705718994140625, -0.0213165283203125, -0.003414154052734375, 0.00606536865234375, 0.0689697265625, -0.0237274169921875, 0.0096893310546875, -0.03076171875, 0.056182861328125, -0.01256561279296875, -0.0165252685546875, 0.0011920928955078125, -0.0059356689453125, -0.015289306640625, 0.020751953125, 0.026275634765625, -0.01149749755859375, -0.0010013580322265625, 0.0168609619140625, 0.0018863677978515625, 0.010711669921875, 0.001964569091796875, -0.00977325439453125, -0.0162506103515625, 0.0164337158203125, -0.007232666015625, -0.0008978843688964844, 0.036590576171875, 0.05255126953125, 0.00444793701171875, -0.01309967041015625, -0.0296478271484375, 0.01537322998046875, 0.0166015625, -0.0325927734375, -0.01358795166015625, 0.0171356201171875, -0.0032291412353515625, -0.001979827880859375, -0.043426513671875, 0.04620361328125, 0.0018911361694335938, 0.018280029296875, 0.02618408203125, 0.034576416015625, 0.017608642578125, -0.00824737548828125, 0.00904083251953125, 0.032318115234375, -0.0096893310546875, 0.031585693359375, -0.032073974609375, 0.0291290283203125, -0.01384735107421875, 0.0214080810546875, 0.049530029296875, 0.01102447509765625, -0.02117919921875, -0.00592041015625, -0.0190582275390625, -0.0013380050659179688, 0.01000213623046875, -0.0047760009765625, -0.011474609375, -0.0281829833984375, 0.0271148681640625, 0.0177459716796875, -0.01006317138671875, 0.01233673095703125, -0.024078369140625, -0.00727081298828125, 0.00998687744140625, -0.05419921875, -0.04339599609375, 0.018829345703125, -0.007373809814453125, -0.043212890625, 0.036773681640625, -0.0216217041015625, 0.0022640228271484375, 0.066162109375, -0.009063720703125, -0.01153564453125, -0.029388427734375, -0.03875732421875, -0.05865478515625, -0.0706787109375, -0.053741455078125, -0.021331787109375, 0.0033359527587890625, -0.011474609375, 0.00823211669921875, -0.01215362548828125, -0.0208587646484375, -0.0090179443359375, 0.046051025390625, -0.00010079145431518555, -0.0206756591796875, 0.019256591796875, -0.036865234375, -0.01332855224609375, 0.00954437255859375, 0.01340484619140625, -0.003940582275390625, 0.006988525390625, -0.0027446746826171875, -0.04718017578125, -0.0003349781036376953, -0.04278564453125, 0.00797271728515625, 0.08538818359375, -0.01201629638671875, -0.049530029296875, -0.056396484375, -0.04974365234375, 0.015899658203125, -0.055755615234375, -0.0004425048828125, 0.0355224609375, -0.016754150390625, -0.021636962890625, 0.0081024169921875, 0.0179595947265625, 0.01386260986328125, 0.0253448486328125, 0.0204010009765625, -0.0095367431640625, -0.01398468017578125, -0.0031223297119140625, -0.0217742919921875, 0.01727294921875, -0.02691650390625, 0.032867431640625, 0.0173492431640625, -0.00023114681243896484, 0.0050506591796875, 0.0010547637939453125, -0.0020885467529296875, -0.03643798828125, 0.022430419921875, -0.028717041015625, 0.031707763671875, -0.01096343994140625, -0.030517578125, 0.01502227783203125, 0.091796875, -0.024383544921875, -0.0286102294921875, -0.0037021636962890625, 0.0234222412109375, -0.0173187255859375, -0.05572509765625, -0.00395965576171875, -0.02288818359375, -0.0601806640625, 0.02789306640625, -0.005588531494140625, -0.00922393798828125, -0.007747650146484375, 0.024139404296875, -0.0110626220703125, -0.03692626953125, 0.0226287841796875, -0.01172637939453125, -0.0126800537109375, 0.034698486328125, -0.030609130859375, 0.01033782958984375, -0.0182952880859375, -0.02264404296875, -0.05096435546875, -0.005523681640625, -0.0006785392761230469, 0.0161590576171875, -0.018829345703125, -0.0125885009765625, -0.00412750244140625, 0.006622314453125, -0.0079345703125, 0.019866943359375, 0.0197906494140625, 0.045013427734375, -0.00725555419921875, -0.0440673828125, 0.028167724609375, -0.063720703125, 0.0051422119140625, 0.006439208984375, 0.01436614990234375, 0.045440673828125, -0.027008056640625, -0.02001953125, 0.0002200603485107422, -0.0186767578125, 0.004337310791015625, -0.046630859375, 0.0096893310546875, 0.047821044921875, 0.01293182373046875, 0.0160675048828125, -0.055084228515625, 0.00055694580078125, -0.0131683349609375, 0.0186004638671875, -0.0168609619140625, 0.026031494140625, 0.013916015625, 0.033203125, -0.020782470703125, -0.00670623779296875, 0.036773681640625, 0.034881591796875, -0.0218353271484375, 0.04803466796875, 0.0002911090850830078, -0.023956298828125, 0.0697021484375, -0.0164947509765625, 0.029510498046875, -0.0127716064453125, 0.046051025390625, -0.0209197998046875, -0.0340576171875, 0.050048828125, -0.00829315185546875, -0.03765869140625, 0.0218505859375, 0.026702880859375, -0.01384735107421875, 0.0131378173828125, -0.0018396377563476562, -0.0023040771484375, -0.01515960693359375, -0.0007276535034179688, 0.046051025390625, -0.04388427734375, 0.035064697265625, 0.076416015625, 0.041168212890625, 0.01497650146484375, -0.0193328857421875, 0.06488037109375, -0.0150299072265625, -0.0023651123046875, -0.015838623046875, -0.0092926025390625, 0.01253509521484375, -0.02294921875, -0.0256195068359375, 0.008148193359375, -0.00775146484375, 0.063720703125, 0.033203125, -0.02294921875, 0.0124053955078125, -0.02294921875, -0.01369476318359375, 0.0017147064208984375, 0.057586669921875, 0.0291900634765625, -0.0404052734375, 0.03216552734375, -0.0284271240234375, -0.00467681884765625, -0.0019817352294921875, -0.036956787109375, 0.01861572265625, 0.04046630859375, -0.0269927978515625, 0.01038360595703125, 0.0200347900390625, 0.0019359588623046875, -0.004589080810546875, -0.004306793212890625, -0.01239013671875, 0.01263427734375, 0.013519287109375, 0.0013322830200195312, 0.04351806640625, -0.004192352294921875, 0.00555419921875, 0.046783447265625, -0.0204925537109375, -0.01024627685546875, 0.025299072265625, 0.032257080078125, 0.0231781005859375, 0.003009796142578125, -0.025848388671875, -0.03509521484375, 0.006504058837890625, 0.016265869140625, -0.01311492919921875, -0.02911376953125, -0.0121917724609375, 0.01140594482421875, 0.01326751708984375, -0.026275634765625, -0.01381683349609375, 0.00960540771484375, -0.0016584396362304688, -0.0114593505859375, 0.040374755859375, -0.0640869140625, 0.008636474609375, 0.01016998291015625, -0.0150909423828125, -0.005084991455078125, 0.0020122528076171875, -0.05389404296875, -0.0184478759765625, -0.0077056884765625, 0.00545501708984375, -0.0011692047119140625, -0.033294677734375, 0.033203125, -0.02587890625, 0.0022602081298828125, -0.0092926025390625, 0.01099395751953125, 0.0203704833984375, 0.0233612060546875, -0.030975341796875, -0.02557373046875, -0.04229736328125, -0.02545166015625, -0.031707763671875, -0.0251312255859375, -0.026458740234375, 0.0142974853515625, 0.037322998046875, 0.0306854248046875, -0.01861572265625, -0.07257080078125, -0.0266571044921875, 0.00891876220703125, 0.038421630859375, 0.0230712890625, -0.0279998779296875, 0.08245849609375, -0.01079559326171875, 0.048065185546875, 0.0186614990234375, 0.050201416015625, -0.004611968994140625, -0.0259246826171875, 0.041839599609375, -0.045928955078125, -0.04534912109375, -0.055419921875, -0.06390380859375, 0.0362548828125, 0.05535888671875, -0.00860595703125, -0.0020885467529296875, -0.01120758056640625, 0.0129547119140625, -0.035888671875, 0.03448486328125, -0.03704833984375, -0.034759521484375, 0.0181427001953125, -0.0179443359375, 0.04254150390625, 0.0185089111328125, 0.0018024444580078125, 0.01012420654296875, -0.016326904296875, 0.04681396484375, -0.00606536865234375, -0.044677734375, 0.041351318359375, 0.07440185546875, -0.0028247833251953125, 0.042205810546875, 0.01401519775390625, -0.0034770965576171875, 0.031280517578125, 0.01374053955078125, 0.005138397216796875, -0.0204925537109375, 0.0794677734375, 0.0261077880859375, -0.01270294189453125, 0.07415771484375, -0.037567138671875, 0.0309906005859375, 0.0687255859375, 0.0743408203125, -0.0916748046875, 0.0006747245788574219, 0.008270263671875, -0.02178955078125, 0.051422119140625, -0.0270843505859375, -0.00820159912109375, -0.021331787109375, 0.039306640625, 0.0298919677734375, -0.018707275390625, -0.0018596649169921875, 0.027008056640625, -0.0157623291015625, -0.029052734375, 0.015899658203125, -0.00409698486328125, -0.011871337890625, 0.0081634521484375, 0.0112762451171875, 0.0048065185546875, -0.017486572265625, -0.004444122314453125, 0.01055908203125, -0.031768798828125, -0.02728271484375, 0.0270843505859375, -0.006160736083984375, 0.0078582763671875, 0.04132080078125, 0.005832672119140625, -0.010711669921875, 0.016815185546875, -0.0239105224609375, 0.029205322265625, -0.036651611328125, -0.00040602684020996094, 0.00890350341796875, -0.0198974609375, -0.006500244140625, -0.02362060546875, 0.018310546875, 0.00997161865234375, -0.00966644287109375, -0.051422119140625, -0.0129852294921875, -0.01419830322265625, 0.08929443359375, -0.044952392578125, -0.036224365234375, 0.0178375244140625, -0.00605010986328125, -0.0055999755859375, -0.007740020751953125, 0.048248291015625, -0.01226043701171875, 0.0229339599609375, 0.0014619827270507812, 0.0167388916015625, -0.009124755859375, -0.01435089111328125, -0.0711669921875, 0.11187744140625, -0.03546142578125, 0.0399169921875, 0.036590576171875, 0.05377197265625, -0.0416259765625, 0.022705078125, -0.0182952880859375, 0.048553466796875, 0.006877899169921875, 0.06756591796875, -0.03363037109375, -0.0120697021484375, 0.0343017578125, 0.05596923828125, 0.041229248046875, -0.0016622543334960938, 0.0283050537109375, 0.01198577880859375, 0.0770263671875, 0.034576416015625, -0.01006317138671875, -0.0016498565673828125, -0.042694091796875, -0.01629638671875, -0.017791748046875, -0.032867431640625, 0.0224761962890625, -0.049468994140625, -0.048919677734375, -0.039031982421875, 0.007785797119140625, -0.0024089813232421875, -0.0016450881958007812, 0.0369873046875, -0.00839996337890625, -0.01084136962890625, -0.0029239654541015625, 0.006130218505859375, -0.018890380859375, 0.0151214599609375, 0.00640106201171875, -0.03558349609375, -0.0262603759765625, -0.03057861328125, 0.0347900390625, 0.022186279296875, 0.0240631103515625, -0.0178985595703125, 0.01467132568359375, 0.05157470703125, -0.037506103515625, 0.0015506744384765625, 0.0406494140625, -0.031646728515625, 0.02911376953125, 0.038726806640625, 0.03369140625, -0.053375244140625, -0.0406494140625, 0.0223846435546875, 0.055938720703125, -0.0174713134765625, -0.007625579833984375, 0.00043964385986328125, 0.00597381591796875, 0.019989013671875, -0.02569580078125, 0.043914794921875, -0.02154541015625, -0.00420379638671875, -0.003330230712890625, 0.0166015625, 0.004375457763671875, -0.00638580322265625, -0.018280029296875, 0.0036640167236328125, -0.00087738037109375, 0.0592041015625, -0.041107177734375, 0.01222991943359375, 0.009490966796875, 0.054412841796875, 0.02783203125, 0.05322265625, 0.00279998779296875, -0.0139312744140625, -0.017608642578125, 0.02496337890625, -0.039947509765625, 0.046112060546875, -0.0477294921875, -0.0243682861328125, -0.0404052734375, 0.03912353515625, 0.013427734375, 0.017181396484375, 0.049774169921875, 0.03167724609375, -0.0506591796875, -0.009185791015625, 0.025115966796875, -0.03668212890625, -0.01413726806640625, -0.0217437744140625, -0.011962890625, 0.0301666259765625, -0.0097198486328125, 0.01511383056640625, -0.0221710205078125, 0.049224853515625, 0.0081329345703125, -0.031524658203125, 0.0140380859375, -0.043548583984375, 0.0648193359375, -0.021331787109375, 0.047515869140625, 0.01175689697265625, -0.1051025390625, -0.0338134765625, -0.042144775390625, -0.0026702880859375, 0.0516357421875, 0.043060302734375, -0.024169921875, 0.0235137939453125, 0.0546875, 0.03515625, -0.032867431640625, -0.0270538330078125, 0.03717041015625, 0.033111572265625, 0.03924560546875, 0.07000732421875, -0.0789794921875, -0.041778564453125, -0.02581787109375, 0.00844573974609375, 0.00888824462890625, 0.061614990234375, 0.017364501953125, -0.002765655517578125, -0.047149658203125, 0.007965087890625, -0.01473236083984375, -0.040679931640625, 0.027862548828125, 0.0328369140625, -0.0014162063598632812, -0.0160980224609375, -0.06524658203125, 0.007129669189453125, 0.02044677734375, -0.03564453125, 0.0274810791015625, -0.01428985595703125, 0.0014543533325195312, -0.047607421875, 0.0015878677368164062, -0.005718231201171875, -0.0036182403564453125, 0.01004791259765625, 0.0002639293670654297, 0.0246124267578125, 0.0213623046875, 0.0038394927978515625, 0.055419921875, 0.00826263427734375, -0.0155792236328125, 0.036712646484375, -0.060272216796875, 0.060302734375, 0.031768798828125, 0.01593017578125, -0.0010128021240234375, 0.024871826171875, -0.01319122314453125, 0.0236358642578125, 0.0027217864990234375, 0.01861572265625, 0.0213775634765625, -0.0098419189453125, 0.0162811279296875, 0.005954742431640625, 0.041290283203125, -0.01308441162109375, -0.00289154052734375, 0.006381988525390625, -0.00913238525390625, -0.004154205322265625, 0.03192138671875, -0.0200958251953125, 0.0016002655029296875, -0.0132904052734375, 0.0135040283203125, -0.0158843994140625, -0.0299224853515625, -0.0836181640625, 0.00968170166015625, 0.0078125, 0.003719329833984375, -0.072509765625, 0.04229736328125, -0.01019287109375, 0.044952392578125, -0.034912109375, 0.05572509765625, -0.039520263671875, -0.0275115966796875, -0.043182373046875, -0.0202484130859375, -0.031768798828125, 0.045257568359375, -0.0106201171875, 0.005126953125, 0.054595947265625, -0.014801025390625, 0.0196380615234375, -0.050079345703125, -0.0007448196411132812, 0.01519775390625, -0.0165252685546875, -0.014129638671875, 0.01531219482421875, -0.0330810546875, 0.006206512451171875, 0.00676727294921875, 0.01432037353515625, -0.035797119140625, -0.0184173583984375, 0.010467529296875, -0.02484130859375, -0.016143798828125, -0.053070068359375, -0.052215576171875, 0.033233642578125, 0.023834228515625, -0.0390625, -0.00036406517028808594, -0.0166473388671875, -0.049652099609375, 0.0113525390625, -0.0179595947265625, 0.00047659873962402344, 0.034637451171875, 0.06671142578125, 0.01177215576171875, 0.01377105712890625, 0.00963592529296875, -0.001850128173828125, -0.052215576171875, 0.0234222412109375, 0.0131683349609375, 0.0171051025390625, 0.0013780593872070312, -0.00829315185546875, 0.01085662841796875, 0.042022705078125, -0.044708251953125, 0.0009665489196777344, -0.00843048095703125, -0.01143646240234375, 0.0131683349609375, -0.0011234283447265625, -0.050933837890625, -0.0244140625, 0.049041748046875, 0.050140380859375, 0.0256195068359375, -0.00403594970703125, 0.0257110595703125, -0.0028514862060546875, 0.00572967529296875, 0.0139923095703125, -0.01255035400390625, 0.0017251968383789062, 0.00470733642578125, -0.0097808837890625, -0.0189208984375, 0.0018854141235351562, -0.0199432373046875, -0.034210205078125, -0.0038127899169921875, -0.0052337646484375, 0.009674072265625, -0.0252838134765625, -0.0243377685546875, 0.04791259765625, -0.03875732421875, -0.0226593017578125, -0.00713348388671875, 0.0264892578125, -0.00412750244140625, -0.006183624267578125, -0.0198211669921875, 0.0110931396484375, -0.056060791015625, 0.03460693359375, -0.0269927978515625, 0.06982421875, -0.09674072265625, 0.00412750244140625, -0.0156402587890625, 0.042877197265625, 0.007740020751953125, 0.060272216796875, -0.0212554931640625, 0.027801513671875, 0.021759033203125, 0.0167236328125, 0.0107574462890625, -0.03265380859375, -0.0029506683349609375, 0.023223876953125, 0.02203369140625, -0.02935791015625, 0.053466796875, -0.0709228515625, -0.0242462158203125, -0.0186614990234375, -0.047210693359375, -0.0938720703125, 0.03778076171875, 0.006687164306640625, 0.0285797119140625, 0.037322998046875 ]
2287277c5e18ba18440205b08bf22dfeedc0dcc6
Wordpress Stackexchange Q: Custom headers for the WordPress plugin directory I just have submitted one of my simple WP Widget to the Wordpress Directory. http://wordpress.org/extend/plugins/wp-twitter-trends/ I want to add Plugin Title Image as like in http://wordpress.org/extend/plugins/contact-form-7/ How can I add that? From readme.txt file? How? A: Very simple, All you need to create a image of size exactly 772×250 pixel and name it as banner-772x250.jpg. You have to save this image in /assets/ folder in your plugins SVN directory. * *Make sure the image is of either .png or .jpg type. *The .gif images are not allowed. *It may take upto 15 minitues to appear on your plugin page. *Another note - WordPress adds title to lower left corner of image. Here is the example directory location and image name assets/banner-772x250.jpg) OR assets/banner-772x250.png Link to official update by matt (cofounder of wordpress ) Also, from the Codex: For development and testing, you can add a URL parameter to your plugin's URL of "?banner_url=A_LINK_TO_YOUR_IMAGE" to preview what the page will look like with your own image. This will only work with your own plugins, you can not use this parameter on anybody else's plugins.
Q: Custom headers for the WordPress plugin directory I just have submitted one of my simple WP Widget to the Wordpress Directory. http://wordpress.org/extend/plugins/wp-twitter-trends/ I want to add Plugin Title Image as like in http://wordpress.org/extend/plugins/contact-form-7/ How can I add that? From readme.txt file? How? A: Very simple, All you need to create a image of size exactly 772×250 pixel and name it as banner-772x250.jpg. You have to save this image in /assets/ folder in your plugins SVN directory. * *Make sure the image is of either .png or .jpg type. *The .gif images are not allowed. *It may take upto 15 minitues to appear on your plugin page. *Another note - WordPress adds title to lower left corner of image. Here is the example directory location and image name assets/banner-772x250.jpg) OR assets/banner-772x250.png Link to official update by matt (cofounder of wordpress ) Also, from the Codex: For development and testing, you can add a URL parameter to your plugin's URL of "?banner_url=A_LINK_TO_YOUR_IMAGE" to preview what the page will look like with your own image. This will only work with your own plugins, you can not use this parameter on anybody else's plugins.
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:422388", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60124" }
[ 0.08062744140625, 0.0003910064697265625, 0.047393798828125, -0.0482177734375, 0.0015935897827148438, -0.01404571533203125, 0.038848876953125, -0.037139892578125, -0.05224609375, 0.0103759765625, -0.037811279296875, 0.01274871826171875, -0.036163330078125, -0.011993408203125, 0.01113128662109375, -0.060882568359375, 0.036163330078125, -0.0178375244140625, 0.031005859375, -0.0035953521728515625, 0.0175018310546875, 0.0201263427734375, 0.007354736328125, 0.03131103515625, 0.015228271484375, -0.0149078369140625, 0.1461181640625, -0.05633544921875, 0.0198516845703125, -0.03997802734375, 0.03228759765625, -0.0017490386962890625, 0.03521728515625, 0.008575439453125, 0.001560211181640625, 0.01776123046875, 0.03521728515625, -0.020904541015625, -0.005237579345703125, 0.0189056396484375, 0.048187255859375, -0.026763916015625, 0.03179931640625, 0.01094818115234375, 0.0029506683349609375, -0.02532958984375, 0.05572509765625, -0.025482177734375, 0.01204681396484375, -0.0261688232421875, -0.012298583984375, 0.006114959716796875, 0.01216888427734375, -0.00811767578125, -0.01056671142578125, -0.00658416748046875, -0.0207366943359375, 0.03826904296875, 0.0222320556640625, -0.0212554931640625, -0.01313018798828125, 0.00390625, 0.01284027099609375, 0.02484130859375, 0.0256500244140625, 0.0087127685546875, -0.022674560546875, 0.018951416015625, 0.0179595947265625, 0.0252532958984375, -0.00909423828125, -0.038665771484375, -0.00559234619140625, -0.02734375, -0.045501708984375, -0.00186920166015625, 0.014129638671875, -0.05413818359375, 0.01593017578125, -0.01325225830078125, 0.0149383544921875, -0.04119873046875, 0.0182952880859375, 0.01146697998046875, 0.0232696533203125, 0.033966064453125, -0.00478363037109375, -0.022003173828125, -0.02105712890625, -0.005153656005859375, -0.0212860107421875, -0.0179443359375, -0.00720977783203125, -0.01369476318359375, -0.00583648681640625, -0.026153564453125, 0.0006341934204101562, 0.016448974609375, -0.007160186767578125, 0.040008544921875, 0.00728607177734375, -0.0302581787109375, 0.0582275390625, -0.0513916015625, 0.002185821533203125, 0.05096435546875, -0.0006399154663085938, 0.0196075439453125, 0.02587890625, 0.01412200927734375, 0.01067352294921875, 0.010009765625, -0.0226287841796875, -0.011566162109375, -0.021728515625, 0.029510498046875, -0.035400390625, -0.0019931793212890625, -0.0021762847900390625, 0.0382080078125, -0.0035419464111328125, 0.00746917724609375, 0.0231781005859375, 0.0021114349365234375, 0.0159454345703125, 0.0242156982421875, -0.009674072265625, -0.038604736328125, 0.006099700927734375, -0.0200347900390625, 0.0001252889633178711, 0.025115966796875, 0.036834716796875, 0.020904541015625, 0.0011034011840820312, -0.00952911376953125, -0.0005259513854980469, -0.0007190704345703125, -0.037078857421875, 0.01197052001953125, -0.02960205078125, 0.0011138916015625, 0.056854248046875, -0.053375244140625, -0.004535675048828125, 0.00450897216796875, -0.01800537109375, 0.030853271484375, 0.0231781005859375, -0.03619384765625, 0.03857421875, -0.04815673828125, 0.02911376953125, -0.0065460205078125, 0.006694793701171875, -0.0241546630859375, 0.00019609928131103516, -0.0174407958984375, 0.0201263427734375, -0.016693115234375, 0.0035877227783203125, -0.0004627704620361328, 0.0211181640625, -0.0061492919921875, 0.010986328125, -0.006961822509765625, -0.0372314453125, 0.0035343170166015625, 0.009521484375, -0.006519317626953125, -0.0197296142578125, 0.0154266357421875, 0.0010919570922851562, 0.00856781005859375, 0.01030731201171875, 0.019287109375, 0.017303466796875, 0.004825592041015625, 0.0269317626953125, 0.05804443359375, 0.0041046142578125, -0.00048732757568359375, 0.087646484375, -0.033599853515625, -0.03704833984375, -0.017852783203125, -0.01132965087890625, -0.0021648406982421875, 0.035003662109375, 0.000007808208465576172, 0.05035400390625, 0.0089111328125, -0.0645751953125, 0.0124969482421875, -0.018280029296875, 0.017364501953125, -0.0061492919921875, 0.0132598876953125, -0.0126800537109375, 0.00859832763671875, -0.0217132568359375, -0.0015535354614257812, 0.006847381591796875, 0.01271820068359375, 0.005504608154296875, -0.001995086669921875, -0.006801605224609375, 0.029327392578125, 0.00823974609375, -0.0008268356323242188, 0.006969451904296875, -0.01374053955078125, 0.00261688232421875, -0.045196533203125, -0.03668212890625, -0.0003559589385986328, 0.01763916015625, 0.0097198486328125, 0.0157012939453125, 0.03216552734375, -0.00302886962890625, 0.0186767578125, -0.0176544189453125, 0.0161590576171875, 0.0394287109375, 0.0187225341796875, -0.02935791015625, -0.011932373046875, 0.002536773681640625, 0.0207977294921875, -0.05511474609375, 0.0438232421875, -0.0185089111328125, -0.00893402099609375, -0.0114898681640625, -0.00908660888671875, -0.00949859619140625, -0.07733154296875, 0.0203399658203125, 0.04400634765625, 0.0224456787109375, -0.0128021240234375, -0.01311492919921875, 0.033905029296875, 0.0240020751953125, -0.00408935546875, 0.00970458984375, 0.007183074951171875, 0.0192108154296875, -0.0138397216796875, -0.0287628173828125, -0.061248779296875, 0.0638427734375, -0.048095703125, 0.005096435546875, 0.037750244140625, -0.032806396484375, -0.076416015625, -0.00646209716796875, 0.0181427001953125, 0.0211029052734375, -0.010101318359375, -0.02972412109375, 0.0037593841552734375, 0.0380859375, 0.0274810791015625, 0.0556640625, 0.038421630859375, -0.0380859375, 0.0123443603515625, 0.00428009033203125, -0.0017499923706054688, 0.01125335693359375, 0.0124664306640625, 0.036651611328125, 0.00968170166015625, -0.00955963134765625, -0.004940032958984375, 0.01294708251953125, 0.005138397216796875, -0.006961822509765625, 0.0015268325805664062, -0.014923095703125, -0.003017425537109375, -0.03582763671875, -0.080810546875, 0.035675048828125, 0.046173095703125, -0.0006132125854492188, 0.023284912109375, 0.03094482421875, 0.030517578125, -0.0191802978515625, 0.049072265625, 0.00011914968490600586, -0.0083770751953125, 0.0284271240234375, -0.061492919921875, 0.06036376953125, -0.0526123046875, 0.04632568359375, 0.06585693359375, -0.035858154296875, 0.016845703125, -0.007747650146484375, -0.023590087890625, -0.01245880126953125, 0.00276947021484375, -0.03021240234375, -0.044525146484375, -0.023651123046875, 0.005298614501953125, 0.00786590576171875, 0.0179290771484375, -0.028900146484375, -0.047332763671875, -0.04345703125, 0.0013380050659179688, -0.0902099609375, -0.0438232421875, 0.0266265869140625, -0.0643310546875, -0.0261993408203125, 0.0278778076171875, -0.044891357421875, -0.004985809326171875, 0.0692138671875, -0.0146636962890625, -0.03656005859375, -0.039794921875, -0.00891876220703125, -0.0823974609375, -0.060394287109375, -0.032684326171875, 0.0171966552734375, 0.017364501953125, 0.007793426513671875, 0.0023059844970703125, 0.0168304443359375, -0.006305694580078125, 0.027801513671875, 0.0997314453125, 0.005931854248046875, -0.0234832763671875, 0.00510406494140625, 0.0202484130859375, 0.01154327392578125, 0.0184478759765625, 0.043731689453125, 0.03179931640625, -0.049652099609375, -0.01248931884765625, -0.0181884765625, -0.07415771484375, -0.03826904296875, 0.0576171875, 0.0323486328125, -0.0858154296875, 0.005035400390625, -0.0826416015625, -0.0439453125, -0.006847381591796875, -0.05560302734375, 0.011627197265625, 0.050506591796875, -0.006305694580078125, -0.0272369384765625, 0.01409149169921875, -0.00977325439453125, 0.0160675048828125, 0.02056884765625, -0.0447998046875, 0.0343017578125, -0.008575439453125, 0.004486083984375, -0.0252227783203125, 0.0230560302734375, -0.0137481689453125, 0.048065185546875, 0.0152740478515625, 0.0188140869140625, -0.014556884765625, 0.0325927734375, -0.04669189453125, -0.019805908203125, 0.0185699462890625, -0.033721923828125, 0.0214080810546875, -0.00803375244140625, -0.01035308837890625, 0.003448486328125, 0.055755615234375, -0.046356201171875, -0.03143310546875, 0.0209197998046875, 0.03863525390625, -0.01497650146484375, -0.00737762451171875, -0.006855010986328125, -0.033111572265625, -0.09283447265625, 0.0214996337890625, 0.00786590576171875, -0.03497314453125, 0.01152801513671875, 0.006191253662109375, -0.0367431640625, -0.0382080078125, 0.007541656494140625, 0.021087646484375, -0.00817108154296875, 0.0204620361328125, -0.0264129638671875, 0.02294921875, 0.0032520294189453125, -0.0174713134765625, -0.0791015625, -0.006504058837890625, -0.00019609928131103516, 0.033203125, -0.01099395751953125, -0.0114593505859375, -0.0238494873046875, 0.03125, -0.0204010009765625, 0.0056915283203125, 0.0221405029296875, 0.031280517578125, -0.01198577880859375, -0.0197601318359375, 0.01284027099609375, -0.043487548828125, 0.014617919921875, -0.02142333984375, -0.062255859375, -0.007785797119140625, -0.0105133056640625, 0.0260772705078125, 0.01239776611328125, -0.0338134765625, -0.024444580078125, -0.03802490234375, 0.0131072998046875, 0.021392822265625, 0.014404296875, -0.00550079345703125, -0.052703857421875, -0.01351165771484375, 0.00240325927734375, 0.0026988983154296875, 0.0263824462890625, 0.0164794921875, 0.035888671875, 0.00727081298828125, -0.00601959228515625, -0.00791168212890625, 0.01503753662109375, 0.036346435546875, 0.031219482421875, 0.045654296875, 0.0033416748046875, -0.019500732421875, 0.06536865234375, 0.015655517578125, 0.0245208740234375, -0.004123687744140625, 0.04718017578125, -0.01357269287109375, -0.053558349609375, 0.056884765625, 0.00652313232421875, -0.042877197265625, 0.038238525390625, -0.0016069412231445312, -0.0224151611328125, -0.03076171875, 0.0213775634765625, -0.01143646240234375, 0.032989501953125, -0.005462646484375, -0.032135009765625, -0.002002716064453125, 0.017730712890625, 0.0321044921875, 0.0293731689453125, -0.01251220703125, 0.020477294921875, 0.0084075927734375, -0.00824737548828125, 0.033782958984375, -0.00527191162109375, -0.01038360595703125, -0.00873565673828125, 0.05267333984375, -0.037353515625, 0.007404327392578125, -0.0001264810562133789, 0.0390625, 0.037078857421875, 0.012054443359375, -0.044830322265625, -0.0220184326171875, -0.0056610107421875, -0.03515625, 0.036773681640625, 0.0245208740234375, -0.015899658203125, -0.0015811920166015625, -0.0008220672607421875, -0.013946533203125, 0.010528564453125, -0.034881591796875, 0.01462554931640625, 0.01523590087890625, -0.0230255126953125, 0.01413726806640625, 0.0182037353515625, 0.034637451171875, -0.01435089111328125, -0.014404296875, 0.02703857421875, 0.052520751953125, 0.016021728515625, 0.01245880126953125, 0.01004791259765625, -0.01461029052734375, 0.00894927978515625, 0.01476287841796875, -0.02923583984375, 0.04241943359375, -0.0257110595703125, 0.0301361083984375, -0.024627685546875, -0.06268310546875, 0.061920166015625, -0.0594482421875, -0.02301025390625, 0.03668212890625, -0.0064849853515625, -0.041259765625, -0.0278472900390625, 0.0156402587890625, 0.0628662109375, -0.0020008087158203125, -0.01538848876953125, -0.006069183349609375, -0.03076171875, 0.019622802734375, -0.0059661865234375, -0.0123748779296875, 0.01409912109375, 0.00384521484375, -0.004886627197265625, -0.00804901123046875, -0.022979736328125, 0.0172271728515625, 0.01019287109375, -0.019287109375, -0.019317626953125, 0.057830810546875, -0.03228759765625, 0.049713134765625, -0.03961181640625, 0.0008616447448730469, -0.049560546875, 0.02484130859375, 0.0195159912109375, 0.0189971923828125, -0.07025146484375, -0.0199432373046875, -0.0130462646484375, -0.001338958740234375, 0.0263214111328125, -0.028045654296875, -0.01560211181640625, -0.0205841064453125, 0.0184478759765625, 0.0291748046875, -0.01134490966796875, -0.028045654296875, -0.03338623046875, 0.0171966552734375, 0.035797119140625, 0.053131103515625, -0.006725311279296875, 0.00656890869140625, 0.02752685546875, 0.02691650390625, 0.01528167724609375, -0.01288604736328125, -0.01280975341796875, -0.0261993408203125, -0.000988006591796875, -0.0239105224609375, 0.0017423629760742188, 0.0016021728515625, 0.0256805419921875, 0.0125579833984375, 0.0281219482421875, 0.01215362548828125, 0.0036983489990234375, -0.0014295578002929688, 0.0025043487548828125, -0.0043792724609375, 0.0211029052734375, -0.005950927734375, -0.0389404296875, 0.0848388671875, -0.03363037109375, 0.055023193359375, 0.00927734375, 0.05133056640625, -0.00734710693359375, -0.072021484375, 0.0165252685546875, 0.040130615234375, -0.07373046875, 0.06683349609375, 0.1121826171875, 0.0160064697265625, 0.057891845703125, 0.020660400390625, 0.0081329345703125, 0.021484375, 0.0225067138671875, 0.06903076171875, -0.037261962890625, 0.06573486328125, -0.00319671630859375, -0.02117919921875, 0.041229248046875, -0.041259765625, 0.0116729736328125, -0.019927978515625, 0.010833740234375, -0.0008234977722167969, 0.0294342041015625, -0.0147857666015625, 0.00777435302734375, 0.085205078125, 0.00830841064453125, 0.00007051229476928711, 0.00244903564453125, 0.023956298828125, -0.007610321044921875, -0.00753021240234375, 0.01812744140625, 0.0193023681640625, 0.001918792724609375, 0.0274505615234375, 0.0343017578125, -0.006252288818359375, -0.058349609375, -0.07073974609375, 0.038055419921875, -0.043548583984375, 0.0095672607421875, -0.0156402587890625, 0.013671875, -0.02154541015625, -0.01471710205078125, 0.024169921875, -0.046722412109375, -0.0078582763671875, 0.0307159423828125, 0.0158843994140625, 0.04217529296875, 0.0162811279296875, 0.023529052734375, -0.035675048828125, -0.005176544189453125, -0.005603790283203125, 0.04364013671875, -0.0038890838623046875, -0.0040283203125, 0.038543701171875, -0.016326904296875, -0.0019502639770507812, -0.0117034912109375, 0.02679443359375, -0.006893157958984375, 0.0102691650390625, 0.07147216796875, -0.0340576171875, -0.0168609619140625, 0.0260772705078125, 0.0024585723876953125, -0.0225677490234375, -0.0070953369140625, 0.029693603515625, -0.06103515625, -0.01299285888671875, -0.00733184814453125, -0.0158233642578125, 0.0030078887939453125, -0.00545501708984375, -0.0657958984375, 0.111328125, -0.01435089111328125, 0.035247802734375, -0.010528564453125, 0.045806884765625, -0.00954437255859375, 0.0195465087890625, -0.0028285980224609375, -0.0013399124145507812, -0.041259765625, -0.0037479400634765625, -0.01995849609375, 0.0116119384765625, -0.0273590087890625, 0.022979736328125, 0.0859375, 0.03704833984375, -0.044403076171875, -0.0153961181640625, -0.0032825469970703125, 0.030670166015625, -0.0247344970703125, 0.04742431640625, 0.008270263671875, -0.005218505859375, -0.005954742431640625, 0.0293731689453125, 0.055908203125, -0.046844482421875, -0.0504150390625, 0.0206146240234375, 0.0208740234375, 0.0169677734375, 0.004180908203125, 0.007389068603515625, -0.019073486328125, 0.002696990966796875, 0.0174713134765625, -0.0007081031799316406, -0.00841522216796875, -0.0019683837890625, 0.01038360595703125, 0.020416259765625, -0.03375244140625, 0.00970458984375, 0.0239105224609375, 0.03497314453125, 0.0200347900390625, 0.0182037353515625, 0.01123046875, -0.0017747879028320312, 0.00749969482421875, 0.025970458984375, 0.046630859375, -0.02239990234375, 0.03778076171875, 0.019439697265625, 0.022186279296875, -0.044525146484375, 0.001880645751953125, 0.061553955078125, 0.058074951171875, -0.0394287109375, -0.0298919677734375, 0.00827789306640625, -0.0029087066650390625, 0.0205230712890625, -0.01390838623046875, 0.0274200439453125, -0.045562744140625, -0.0157012939453125, -0.059906005859375, 0.0180816650390625, 0.0740966796875, 0.00383758544921875, -0.0197601318359375, -0.0504150390625, -0.028472900390625, 0.03741455078125, -0.03912353515625, 0.029296875, -0.0090789794921875, 0.0270843505859375, 0.005687713623046875, 0.058441162109375, 0.0242767333984375, -0.015655517578125, -0.022857666015625, 0.06048583984375, 0.021575927734375, 0.02301025390625, -0.034942626953125, -0.03631591796875, 0.0288848876953125, 0.020843505859375, 0.013092041015625, -0.02545166015625, 0.0231781005859375, 0.013580322265625, -0.0634765625, -0.00974273681640625, 0.0034656524658203125, -0.024932861328125, 0.0221710205078125, -0.05181884765625, 0.04876708984375, 0.0217742919921875, -0.00151824951171875, 0.016143798828125, -0.0208282470703125, 0.0615234375, -0.04736328125, 0.02777099609375, -0.00754547119140625, -0.03662109375, 0.01473236083984375, -0.045318603515625, 0.0147705078125, -0.0305328369140625, -0.08642578125, -0.0184326171875, -0.005023956298828125, -0.048431396484375, 0.01456451416015625, 0.032470703125, -0.03955078125, 0.0300750732421875, -0.01461029052734375, 0.0119781494140625, -0.01450347900390625, -0.04241943359375, 0.03515625, 0.04290771484375, 0.003673553466796875, 0.032196044921875, -0.01265716552734375, -0.0199737548828125, -0.006072998046875, 0.040313720703125, 0.044952392578125, 0.05438232421875, -0.0273590087890625, 0.0298614501953125, -0.01134490966796875, -0.028076171875, 0.005298614501953125, -0.023101806640625, 0.035064697265625, -0.001682281494140625, -0.032958984375, -0.0211334228515625, -0.0379638671875, -0.002384185791015625, 0.0133209228515625, -0.034027099609375, -0.01580810546875, -0.01139068603515625, 0.0212249755859375, 0.01050567626953125, 0.033203125, -0.031524658203125, -0.037841796875, -0.05682373046875, -0.0263824462890625, 0.0249176025390625, 0.0004677772521972656, 0.00225830078125, 0.046478271484375, 0.006412506103515625, -0.0021915435791015625, 0.03240966796875, -0.06597900390625, 0.05938720703125, 0.051513671875, -0.016143798828125, -0.01058197021484375, -0.0029277801513671875, -0.00780487060546875, 0.01531219482421875, 0.00875091552734375, 0.024139404296875, -0.0142669677734375, -0.030548095703125, 0.01465606689453125, -0.01458740234375, -0.00128936767578125, -0.061004638671875, -0.0079803466796875, 0.02252197265625, 0.011383056640625, -0.0068206787109375, -0.029052734375, -0.0273284912109375, -0.06329345703125, 0.00843048095703125, 0.03656005859375, -0.0276031494140625, 0.0005154609680175781, -0.08563232421875, -0.00928497314453125, 0.0199127197265625, 0.003910064697265625, -0.05126953125, 0.0189361572265625, -0.0017147064208984375, 0.024658203125, -0.01062774658203125, -0.002208709716796875, -0.02105712890625, -0.0056610107421875, -0.0164947509765625, -0.05322265625, -0.040924072265625, 0.06494140625, -0.032684326171875, 0.012054443359375, 0.0458984375, -0.01873779296875, -0.0006365776062011719, 0.0239105224609375, 0.0166473388671875, 0.08148193359375, -0.0200347900390625, -0.017333984375, 0.0035247802734375, -0.0186920166015625, -0.0270843505859375, -0.02264404296875, 0.0272979736328125, -0.039947509765625, -0.03375244140625, -0.0301666259765625, 0.004352569580078125, -0.002208709716796875, -0.054046630859375, -0.06268310546875, 0.020172119140625, -0.0021305084228515625, -0.035736083984375, -0.037445068359375, 0.037261962890625, 0.003337860107421875, 0.00402069091796875, 0.0019388198852539062, -0.0262451171875, -0.007568359375, 0.01507568359375, 0.005947113037109375, 0.02069091796875, -0.0034885406494140625, -0.00525665283203125, -0.0258941650390625, 0.02447509765625, 0.0347900390625, -0.006221771240234375, -0.0020351409912109375, -0.0178680419921875, 0.01169586181640625, 0.0302886962890625, -0.040008544921875, -0.04620361328125, -0.00212860107421875, -0.0218505859375, -0.0303192138671875, -0.057464599609375, 0.0282745361328125, 0.01464080810546875, 0.045684814453125, 0.021697998046875, -0.009246826171875, -0.035491943359375, 0.0257110595703125, -0.004913330078125, 0.020965576171875, 0.00011551380157470703, -0.0027561187744140625, -0.037841796875, -0.0291900634765625, 0.03173828125, 0.0019502639770507812, -0.0057525634765625, 0.0186920166015625, -0.00896453857421875, -0.025634765625, 0.0060272216796875, -0.02606201171875, -0.030181884765625, 0.01557159423828125, 0.0958251953125, -0.05267333984375, 0.00800323486328125, -0.005062103271484375, 0.006031036376953125, 0.054595947265625, -0.060577392578125, 0.0085601806640625, 0.044464111328125, -0.0684814453125, 0.0191802978515625, -0.0150604248046875, 0.0350341796875, -0.09527587890625, -0.01285552978515625, -0.0167388916015625, 0.0184326171875, -0.0060577392578125, -0.01351165771484375, -0.0201263427734375, 0.040740966796875, -0.003971099853515625, 0.10198974609375, -0.004375457763671875, -0.0650634765625, -0.0142669677734375, 0.0172271728515625, -0.019256591796875, -0.016937255859375, 0.01009368896484375, -0.047607421875, 0.005062103271484375, 0.00357818603515625, 0.0092315673828125, -0.040374755859375, 0.00569915771484375, -0.051116943359375, 0.0081787109375, 0.011688232421875 ]
e9d55e186527cc449bc1a01178271cc71bb6e593
Wordpress Stackexchange Q: What does wp-list.js do? Pretty straightforward question! What does wp-list.js do? It's listed in the wp_enqueue_script codex page as one of the WP included javascript libraries. Thanks! A: This file is for list manipulations with jQuery: add, delete or dim list items. It was introduced in Ticket #4805 to replace some prototype code. Attached to the ticket is a sample plugin which holds the actual documentation. It doesn’t work really good … line 461 should be: $id = isset ( $_POST['id'] ) ? (int) $_POST['id'] : 0; But at least you can test what the code really does in a reduced example. The readable code for the file is in wp-includes/js/wp-lists.dev.js.
Q: What does wp-list.js do? Pretty straightforward question! What does wp-list.js do? It's listed in the wp_enqueue_script codex page as one of the WP included javascript libraries. Thanks! A: This file is for list manipulations with jQuery: add, delete or dim list items. It was introduced in Ticket #4805 to replace some prototype code. Attached to the ticket is a sample plugin which holds the actual documentation. It doesn’t work really good … line 461 should be: $id = isset ( $_POST['id'] ) ? (int) $_POST['id'] : 0; But at least you can test what the code really does in a reduced example. The readable code for the file is in wp-includes/js/wp-lists.dev.js.
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:422415", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60199" }
[ 0.022918701171875, 0.0209503173828125, -0.054901123046875, -0.01953125, 0.0440673828125, -0.0509033203125, 0.05120849609375, 0.0015478134155273438, -0.015716552734375, -0.00397491455078125, -0.039794921875, 0.0236358642578125, -0.039093017578125, -0.00775146484375, 0.0137481689453125, -0.05413818359375, 0.06207275390625, -0.060211181640625, 0.01934814453125, -0.00293731689453125, -0.0157318115234375, 0.01824951171875, 0.059234619140625, 0.06427001953125, 0.0033550262451171875, 0.0067596435546875, 0.033203125, 0.0005636215209960938, -0.00730133056640625, -0.001979827880859375, 0.0026226043701171875, -0.00482177734375, 0.022735595703125, 0.00817108154296875, -0.017669677734375, 0.0024890899658203125, 0.0328369140625, -0.0055999755859375, 0.020172119140625, 0.0209197998046875, 0.033966064453125, -0.024383544921875, -0.0033779144287109375, -0.039215087890625, -0.01395416259765625, -0.0132293701171875, 0.03375244140625, 0.005680084228515625, 0.0197906494140625, -0.05126953125, 0.0088348388671875, 0.004459381103515625, 0.0262451171875, -0.035125732421875, -0.018096923828125, 0.023345947265625, 0.0027923583984375, 0.0131683349609375, 0.03778076171875, 0.039764404296875, -0.025146484375, 0.006866455078125, 0.00159454345703125, -0.057830810546875, -0.034942626953125, -0.00905609130859375, -0.045745849609375, 0.0015287399291992188, -0.0173797607421875, -0.01557159423828125, 0.0190277099609375, -0.031646728515625, -0.01308441162109375, -0.0068817138671875, -0.01033782958984375, -0.0083465576171875, 0.03131103515625, 0.0005407333374023438, -0.006450653076171875, 0.0149078369140625, -0.0098419189453125, -0.0302886962890625, -0.02569580078125, 0.004100799560546875, -0.00274658203125, 0.0276947021484375, -0.025634765625, -0.01273345947265625, -0.041259765625, -0.0149383544921875, -0.0303955078125, -0.0284576416015625, -0.01111602783203125, -0.0003485679626464844, -0.0325927734375, 0.01275634765625, 0.00820159912109375, 0.0311737060546875, 0.032073974609375, 0.020538330078125, 0.0116424560546875, -0.03997802734375, 0.01375579833984375, -0.029632568359375, -0.031890869140625, 0.02099609375, 0.028167724609375, -0.02264404296875, -0.030914306640625, 0.01055145263671875, -0.0310821533203125, -0.01142120361328125, 0.045928955078125, 0.0010099411010742188, 0.0062408447265625, -0.07965087890625, -0.04583740234375, 0.052337646484375, -0.0019321441650390625, -0.045501708984375, 0.01062774658203125, 0.0237274169921875, -0.04071044921875, 0.01213836669921875, 0.0149383544921875, 0.0158843994140625, 0.007793426513671875, -0.014068603515625, -0.0017032623291015625, -0.0186309814453125, -0.034393310546875, 0.013519287109375, 0.09588623046875, 0.05517578125, 0.0263671875, -0.005825042724609375, 0.03326416015625, 0.0172271728515625, -0.0017366409301757812, 0.004261016845703125, 0.01259613037109375, -0.036956787109375, -0.0288543701171875, -0.00283050537109375, 0.045562744140625, 0.011627197265625, 0.0075531005859375, 0.0225982666015625, 0.042205810546875, 0.01617431640625, 0.01416015625, 0.004650115966796875, 0.01444244384765625, 0.040679931640625, 0.019378662109375, -0.0072174072265625, 0.05084228515625, -0.037017822265625, 0.00201416015625, -0.0413818359375, -0.025970458984375, -0.0184783935546875, 0.00836181640625, -0.0479736328125, -0.036102294921875, 0.022216796875, -0.031494140625, -0.0022563934326171875, 0.0312042236328125, 0.0513916015625, -0.029052734375, -0.055328369140625, 0.03424072265625, 0.01751708984375, -0.0182952880859375, 0.037261962890625, 0.003650665283203125, -0.00958251953125, 0.031768798828125, 0.0347900390625, -0.0006136894226074219, -0.0129547119140625, 0.06298828125, -0.01213836669921875, -0.04217529296875, 0.03216552734375, 0.0086517333984375, 0.064697265625, 0.00435638427734375, 0.005474090576171875, 0.068603515625, 0.01071929931640625, -0.044677734375, 0.01511383056640625, -0.01776123046875, -0.01497650146484375, -0.0162200927734375, 0.007781982421875, -0.0160675048828125, 0.01337432861328125, 0.0236053466796875, 0.01160430908203125, 0.0022792816162109375, 0.006732940673828125, -0.068115234375, 0.0301513671875, -0.0458984375, 0.04620361328125, 0.01488494873046875, 0.00555419921875, -0.00011223554611206055, -0.013153076171875, -0.005214691162109375, -0.00439453125, -0.03717041015625, 0.006805419921875, -0.040985107421875, 0.0031681060791015625, -0.02447509765625, -0.0095672607421875, -0.005275726318359375, -0.0199737548828125, -0.00748443603515625, 0.017852783203125, 0.041534423828125, 0.0020160675048828125, -0.03521728515625, -0.013275146484375, 0.010955810546875, -0.00014472007751464844, -0.00791168212890625, 0.04638671875, 0.061492919921875, 0.0604248046875, -0.0188140869140625, -0.0401611328125, -0.0197906494140625, -0.0928955078125, 0.0157623291015625, 0.06756591796875, 0.032470703125, 0.03662109375, -0.0115814208984375, -0.00330352783203125, 0.0562744140625, 0.003509521484375, 0.02642822265625, -0.0225372314453125, 0.0005512237548828125, 0.032012939453125, 0.025177001953125, 0.0002491474151611328, 0.016265869140625, 0.00626373291015625, 0.01629638671875, 0.016265869140625, 0.01399993896484375, 0.06463623046875, -0.020904541015625, -0.0163116455078125, -0.0233154296875, -0.0173492431640625, 0.00550079345703125, -0.019378662109375, 0.057830810546875, -0.0214385986328125, 0.032684326171875, 0.004856109619140625, -0.0015134811401367188, -0.007633209228515625, 0.006565093994140625, -0.054534912109375, 0.005931854248046875, 0.050750732421875, -0.03375244140625, 0.024932861328125, -0.02532958984375, -0.00685882568359375, 0.01580810546875, 0.027587890625, -0.0037631988525390625, 0.005863189697265625, -0.0303955078125, -0.01004791259765625, 0.0199737548828125, -0.034210205078125, -0.0013284683227539062, 0.01236724853515625, -0.0269317626953125, -0.02459716796875, 0.01029205322265625, 0.0272064208984375, -0.0149688720703125, -0.00806427001953125, 0.0455322265625, -0.0239105224609375, 0.05389404296875, 0.01424407958984375, 0.0017480850219726562, -0.0129241943359375, 0.03704833984375, 0.0295562744140625, -0.0165863037109375, 0.005458831787109375, 0.0070037841796875, -0.003002166748046875, -0.011505126953125, 0.01244354248046875, 0.0032100677490234375, -0.00920867919921875, -0.04803466796875, 0.033203125, 0.018402099609375, 0.032012939453125, 0.0024051666259765625, -0.050506591796875, -0.019927978515625, 0.0235595703125, -0.1102294921875, -0.09649658203125, 0.00487518310546875, -0.0760498046875, 0.0072174072265625, -0.01210784912109375, -0.05255126953125, 0.01227569580078125, 0.038970947265625, 0.011138916015625, -0.030517578125, -0.0189056396484375, 0.005279541015625, -0.058258056640625, -0.0224761962890625, -0.01494598388671875, 0.01102447509765625, 0.00421905517578125, 0.005199432373046875, 0.060302734375, 0.006145477294921875, -0.053558349609375, -0.00839996337890625, 0.05010986328125, -0.0227203369140625, -0.00693511962890625, 0.035430908203125, -0.054779052734375, -0.033966064453125, 0.005069732666015625, -0.0113372802734375, 0.0007677078247070312, 0.01465606689453125, -0.0072174072265625, -0.040618896484375, 0.0305938720703125, -0.01160430908203125, -0.026885986328125, 0.04559326171875, 0.0195770263671875, -0.0105133056640625, -0.046417236328125, 0.01142120361328125, -0.00815582275390625, -0.019927978515625, -0.037841796875, -0.021728515625, 0.0015163421630859375, -0.00701141357421875, -0.009765625, 0.04736328125, -0.00226593017578125, 0.0048065185546875, -0.0108642578125, 0.03753662109375, 0.0191192626953125, 0.045440673828125, -0.02227783203125, 0.068603515625, 0.0011167526245117188, -0.054962158203125, 0.01282501220703125, 0.00669097900390625, 0.006256103515625, -0.034088134765625, -0.038482666015625, -0.0235595703125, 0.045745849609375, 0.0104827880859375, -0.0025482177734375, -0.007022857666015625, -0.033050537109375, 0.0001900196075439453, 0.0516357421875, 0.002628326416015625, -0.0309906005859375, -0.00861358642578125, 0.0212860107421875, -0.015228271484375, -0.03411865234375, 0.015838623046875, -0.0213623046875, -0.038116455078125, 0.042755126953125, 0.01995849609375, 0.00621795654296875, -0.037689208984375, 0.10162353515625, -0.026092529296875, -0.005588531494140625, 0.038177490234375, -0.0679931640625, 0.02960205078125, -0.0292205810546875, 0.020843505859375, -0.06268310546875, -0.0092315673828125, -0.05706787109375, -0.0213775634765625, -0.009979248046875, -0.003749847412109375, 0.022979736328125, 0.0283660888671875, -0.05096435546875, 0.0223236083984375, 0.0316162109375, 0.00628662109375, 0.0406494140625, -0.00038909912109375, 0.00836181640625, -0.010223388671875, -0.024871826171875, 0.0246124267578125, -0.036407470703125, -0.0225067138671875, -0.0099945068359375, -0.0252838134765625, 0.004863739013671875, 0.0164947509765625, -0.0081329345703125, 0.03802490234375, -0.0142822265625, -0.0235443115234375, -0.040252685546875, -0.035369873046875, 0.01346588134765625, -0.0121307373046875, 0.0126953125, -0.03594970703125, -0.04400634765625, 0.0245361328125, -0.037261962890625, 0.018218994140625, 0.0103607177734375, 0.06280517578125, 0.01641845703125, -0.004241943359375, -0.05084228515625, 0.048553466796875, 0.0443115234375, -0.014129638671875, 0.06829833984375, 0.03399658203125, -0.020751953125, 0.0621337890625, 0.01415252685546875, 0.01045989990234375, 0.00933074951171875, 0.05755615234375, 0.023468017578125, 0.0156707763671875, -0.0075836181640625, 0.021514892578125, -0.06060791015625, 0.006488800048828125, -0.004642486572265625, 0.0027313232421875, 0.0148162841796875, 0.00951385498046875, -0.01093292236328125, -0.002658843994140625, -0.01366424560546875, -0.0309600830078125, -0.0005826950073242188, -0.047271728515625, 0.0615234375, 0.0283355712890625, 0.00860595703125, 0.03631591796875, 0.0367431640625, 0.020111083984375, -0.01326751708984375, 0.00299072265625, -0.010223388671875, 0.0143585205078125, 0.0224609375, 0.01508331298828125, -0.01430511474609375, -0.024017333984375, 0.088134765625, 0.002880096435546875, -0.052978515625, 0.015960693359375, -0.00904083251953125, 0.0262908935546875, 0.02618408203125, 0.05181884765625, 0.039520263671875, 0.05230712890625, -0.004413604736328125, -0.00679779052734375, 0.05010986328125, 0.033447265625, -0.0355224609375, 0.044647216796875, 0.023956298828125, -0.0030975341796875, 0.00827789306640625, 0.02618408203125, 0.04339599609375, -0.0025959014892578125, -0.029205322265625, 0.07330322265625, 0.06488037109375, 0.039520263671875, 0.01035308837890625, -0.0227203369140625, -0.024200439453125, 0.0228118896484375, -0.046630859375, -0.045440673828125, -0.0214691162109375, 0.048248291015625, 0.0360107421875, 0.0013723373413085938, -0.026641845703125, 0.01513671875, 0.01031494140625, -0.02728271484375, -0.003971099853515625, -0.005603790283203125, 0.0009355545043945312, -0.01153564453125, -0.00556182861328125, 0.01415252685546875, 0.0175933837890625, 0.0193023681640625, -0.0143890380859375, 0.005168914794921875, 0.0014238357543945312, -0.006298065185546875, 0.00475311279296875, -0.03155517578125, -0.0293426513671875, -0.04791259765625, 0.0086517333984375, 0.0159149169921875, -0.0557861328125, -0.05572509765625, 0.0050201416015625, -0.016693115234375, 0.01305389404296875, 0.0009670257568359375, 0.0006108283996582031, -0.0103759765625, -0.00849151611328125, 0.0098876953125, 0.0028324127197265625, 0.0408935546875, 0.00007826089859008789, -0.0178680419921875, -0.038665771484375, -0.020751953125, -0.0243988037109375, 0.0086822509765625, -0.0027904510498046875, -0.02362060546875, 0.0244903564453125, -0.019744873046875, 0.0099334716796875, -0.0294342041015625, -0.01568603515625, 0.0030040740966796875, 0.007190704345703125, -0.018035888671875, -0.0073394775390625, -0.014190673828125, 0.06646728515625, -0.01458740234375, 0.01708984375, 0.01934814453125, 0.046142578125, -0.0004093647003173828, -0.0196380615234375, 0.00966644287109375, -0.037384033203125, -0.0010213851928710938, -0.02667236328125, -0.009979248046875, -0.0169677734375, 0.034423828125, 0.0048370361328125, 0.0255889892578125, -0.00583648681640625, 0.009429931640625, -0.008575439453125, -0.020599365234375, -0.0187225341796875, -0.007564544677734375, 0.028961181640625, -0.0015630722045898438, 0.0007681846618652344, -0.001918792724609375, -0.018951416015625, 0.0179595947265625, 0.0005846023559570312, 0.023223876953125, -0.00981903076171875, -0.01181793212890625, 0.049957275390625, 0.06689453125, -0.0267791748046875, 0.0029773712158203125, 0.0178070068359375, -0.0302276611328125, -0.01013946533203125, 0.01995849609375, 0.01366424560546875, -0.033111572265625, 0.04327392578125, -0.0097198486328125, -0.020477294921875, 0.0024890899658203125, -0.042449951171875, 0.01560211181640625, 0.0615234375, 0.06927490234375, -0.0750732421875, 0.007778167724609375, -0.0026702880859375, -0.00934600830078125, 0.032073974609375, -0.0283050537109375, 0.0027370452880859375, -0.02130126953125, 0.054229736328125, -0.0009360313415527344, -0.0390625, 0.00951385498046875, -0.009979248046875, -0.0114288330078125, -0.00626373291015625, 0.02301025390625, 0.0215301513671875, 0.00274658203125, -0.00008100271224975586, 0.0058441162109375, 0.01025390625, -0.0215301513671875, 0.00762939453125, 0.01422882080078125, -0.0289764404296875, -0.06072998046875, -0.01364898681640625, -0.0019330978393554688, -0.0226593017578125, -0.0167236328125, 0.0193023681640625, -0.0216827392578125, 0.043975830078125, -0.02899169921875, 0.0186309814453125, 0.0255584716796875, -0.022064208984375, -0.0025577545166015625, -0.027374267578125, 0.01427459716796875, 0.021087646484375, -0.078369140625, 0.01369476318359375, -0.0325927734375, 0.001773834228515625, -0.01392364501953125, -0.037628173828125, 0.0794677734375, -0.0733642578125, 0.012786865234375, 0.0175018310546875, 0.02740478515625, -0.002063751220703125, -0.0309600830078125, 0.01544189453125, -0.06939697265625, -0.042236328125, -0.015472412109375, -0.0423583984375, 0.011993408203125, -0.035491943359375, -0.005764007568359375, 0.0751953125, -0.0037078857421875, -0.0240936279296875, 0.033172607421875, 0.035797119140625, -0.03094482421875, 0.0241241455078125, -0.045318603515625, 0.02166748046875, -0.0154266357421875, 0.031982421875, -0.03924560546875, 0.004047393798828125, -0.004398345947265625, -0.0008687973022460938, 0.039825439453125, -0.00824737548828125, -0.002552032470703125, -0.027984619140625, 0.037872314453125, 0.07550048828125, 0.0240020751953125, 0.0077972412109375, -0.0072784423828125, 0.02276611328125, -0.0014314651489257812, -0.056884765625, 0.00339508056640625, -0.03619384765625, -0.007617950439453125, 0.01343536376953125, 0.023590087890625, 0.00991058349609375, 0.0011339187622070312, 0.031341552734375, -0.021331787109375, -0.00039386749267578125, 0.0002701282501220703, 0.031768798828125, -0.01505279541015625, 0.06396484375, -0.020782470703125, 0.0015163421630859375, -0.0088958740234375, -0.040985107421875, 0.024139404296875, -0.050994873046875, 0.062103271484375, 0.031280517578125, 0.0238800048828125, 0.0406494140625, 0.0070343017578125, 0.0241851806640625, 0.0179595947265625, -0.024078369140625, 0.046295166015625, 0.0097198486328125, 0.02081298828125, -0.060821533203125, -0.0166168212890625, 0.054534912109375, 0.06756591796875, -0.040863037109375, -0.0465087890625, 0.018798828125, 0.0294342041015625, 0.0038909912109375, 0.02392578125, 0.036712646484375, -0.0220489501953125, 0.040740966796875, -0.01436614990234375, -0.00934600830078125, 0.025482177734375, -0.00690460205078125, 0.00994873046875, 0.03564453125, -0.023956298828125, 0.01151275634765625, -0.02703857421875, 0.006977081298828125, 0.0191192626953125, 0.051116943359375, 0.0239410400390625, 0.0243072509765625, -0.007781982421875, -0.024810791015625, 0.003307342529296875, 0.055877685546875, 0.02154541015625, 0.001861572265625, 0.0149383544921875, -0.0296478271484375, 0.0458984375, 0.0024509429931640625, 0.01531219482421875, 0.0714111328125, 0.057159423828125, 0.0005745887756347656, -0.0386962890625, 0.0156097412109375, 0.031402587890625, -0.045074462890625, -0.0758056640625, -0.0133209228515625, 0.05859375, 0.08544921875, 0.036773681640625, 0.0088958740234375, 0.0701904296875, 0.057952880859375, -0.04205322265625, 0.033416748046875, -0.01010894775390625, -0.035980224609375, 0.04742431640625, 0.0134124755859375, 0.09515380859375, -0.006610870361328125, -0.05096435546875, -0.0022106170654296875, -0.003040313720703125, -0.0275421142578125, 0.01486968994140625, 0.037200927734375, -0.020355224609375, 0.020263671875, 0.030670166015625, -0.0440673828125, 0.029693603515625, 0.0260467529296875, 0.007843017578125, 0.0086822509765625, 0.00426483154296875, -0.01146697998046875, -0.042510986328125, -0.0161285400390625, -0.00019037723541259766, 0.004207611083984375, 0.012115478515625, -0.00684356689453125, 0.0269622802734375, 0.026763916015625, -0.0019931793212890625, 0.0305938720703125, -0.021453857421875, -0.0236358642578125, 0.0511474609375, 0.006809234619140625, 0.0152130126953125, -0.023651123046875, -0.044891357421875, 0.01837158203125, 0.00872039794921875, -0.0166015625, 0.00865936279296875, -0.045623779296875, 0.03106689453125, 0.015655517578125, 0.0286712646484375, -0.0299072265625, 0.014495849609375, 0.00537109375, -0.026947021484375, 0.033966064453125, 0.0088348388671875, 0.0204010009765625, -0.008331298828125, -0.06573486328125, -0.07275390625, 0.0275421142578125, -0.054168701171875, -0.00847625732421875, 0.01267242431640625, 0.021636962890625, -0.0167083740234375, 0.00457000732421875, -0.0157623291015625, -0.005435943603515625, 0.00811767578125, 0.005855560302734375, 0.0022296905517578125, -0.0118560791015625, -0.01157379150390625, 0.0084686279296875, 0.0189666748046875, 0.0035762786865234375, -0.01268768310546875, -0.0178070068359375, -0.019134521484375, -0.0007381439208984375, 0.0007162094116210938, -0.0389404296875, -0.017608642578125, 0.00685882568359375, 0.0228271484375, -0.000018894672393798828, -0.0411376953125, -0.08160400390625, 0.005802154541015625, -0.0215301513671875, 0.00478363037109375, -0.06683349609375, 0.0767822265625, -0.023773193359375, -0.0215911865234375, -0.034759521484375, 0.06329345703125, -0.0367431640625, -0.02471923828125, -0.063720703125, -0.04925537109375, -0.046661376953125, 0.0770263671875, -0.0305633544921875, 0.04510498046875, 0.045166015625, -0.0599365234375, 0.01354217529296875, 0.0199127197265625, 0.062255859375, 0.07305908203125, 0.04388427734375, -0.0175323486328125, -0.00901031494140625, 0.040679931640625, 0.0035419464111328125, -0.05279541015625, -0.0230560302734375, 0.00959014892578125, 0.023956298828125, -0.004642486572265625, 0.017730712890625, 0.047698974609375, -0.034576416015625, -0.1038818359375, 0.032012939453125, -0.0164031982421875, -0.047332763671875, -0.0301055908203125, 0.00775909423828125, 0.0090789794921875, -0.0264892578125, -0.0384521484375, 0.009552001953125, -0.0210418701171875, 0.0138092041015625, -0.007080078125, 0.052886962890625, 0.0262908935546875, -0.008209228515625, -0.05853271484375, -0.038238525390625, -0.05902099609375, 0.00872802734375, -0.0010499954223632812, 0.0048828125, 0.0290985107421875, 0.037384033203125, -0.0190887451171875, 0.049530029296875, 0.0039005279541015625, -0.0137176513671875, 0.01239013671875, 0.0231170654296875, -0.06378173828125, -0.0250396728515625, 0.0259857177734375, 0.0601806640625, 0.0293121337890625, -0.01110076904296875, 0.02105712890625, -0.0252532958984375, 0.006984710693359375, 0.007259368896484375, -0.0181427001953125, -0.0010881423950195312, -0.00899505615234375, 0.006595611572265625, -0.0265655517578125, -0.0036029815673828125, -0.0216522216796875, -0.05401611328125, -0.00017774105072021484, -0.024322509765625, -0.024078369140625, -0.0198822021484375, -0.0248870849609375, 0.09051513671875, -0.048858642578125, -0.0018701553344726562, 0.020111083984375, 0.021148681640625, 0.04437255859375, 0.007389068603515625, -0.044036865234375, -0.024688720703125, -0.0137939453125, 0.047943115234375, -0.0384521484375, 0.05096435546875, -0.045379638671875, 0.0203094482421875, -0.0015916824340820312, 0.02130126953125, -0.0159759521484375, 0.0137939453125, 0.0250091552734375, 0.060821533203125, -0.0050201416015625, 0.036712646484375, -0.031768798828125, 0.038421630859375, -0.0146636962890625, 0.0545654296875, -0.00001823902130126953, 0.0007891654968261719, 0.052032470703125, -0.05072021484375, -0.001605987548828125, 0.0028057098388671875, -0.0316162109375, -0.0264892578125, -0.034210205078125, -0.0286102294921875, -0.003021240234375, 0.007450103759765625 ]
0de699b1a713b0adec1c107cd5f3728afae33167
Wordpress Stackexchange Q: How to hide "Trackback" on paginated comments My Setup: * *On my Single's page I have used this comments_template('', true); to separate Trackback's & regular comments. *The Heading "Trackbacks for this post" shows up only if a post has trackbacks. Now the issue is, if the comments are paginated: * *On First page, the trackback are shown and below them the regular comments are shown along with older/newer links to paginated comments pages. *On deeper comments pages (e.g. /comment-page-2/) , no trackbacks are shown, however the title still appears. Is there a way to hide the "Trackback title" on subsequent pages if there are no more trackbacks?
Q: How to hide "Trackback" on paginated comments My Setup: * *On my Single's page I have used this comments_template('', true); to separate Trackback's & regular comments. *The Heading "Trackbacks for this post" shows up only if a post has trackbacks. Now the issue is, if the comments are paginated: * *On First page, the trackback are shown and below them the regular comments are shown along with older/newer links to paginated comments pages. *On deeper comments pages (e.g. /comment-page-2/) , no trackbacks are shown, however the title still appears. Is there a way to hide the "Trackback title" on subsequent pages if there are no more trackbacks?
wordpress
{ "language": "en", "length": 108, "provenance": "stackexchange_00019.jsonl.gz:422422", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60225" }
[ 0.052001953125, -0.00995635986328125, 0.017913818359375, -0.041717529296875, 0.0020046234130859375, -0.012176513671875, 0.0127716064453125, -0.0189208984375, 0.027435302734375, 0.02545166015625, -0.031951904296875, -0.0011072158813476562, -0.0097808837890625, -0.0182342529296875, -0.0330810546875, -0.040283203125, 0.0305938720703125, -0.01297760009765625, 0.03955078125, 0.006038665771484375, 0.032745361328125, 0.0235748291015625, -0.00472259521484375, 0.07373046875, 0.0231475830078125, -0.032012939453125, 0.10931396484375, -0.019317626953125, 0.0256500244140625, -0.0191802978515625, 0.0247344970703125, -0.03717041015625, -0.00917816162109375, 0.001651763916015625, 0.026214599609375, -0.0084075927734375, -0.00445556640625, 0.00994110107421875, 0.01082611083984375, 0.00943756103515625, 0.016998291015625, -0.0228118896484375, -0.0091400146484375, -0.045745849609375, -0.0037822723388671875, -0.0081024169921875, 0.0247344970703125, -0.027191162109375, -0.0019464492797851562, 0.0313720703125, -0.004795074462890625, 0.049530029296875, 0.00363922119140625, 0.00746917724609375, 0.0189666748046875, 0.0139923095703125, -0.01279449462890625, -0.000904083251953125, 0.00341796875, 0.0027141571044921875, 0.02838134765625, 0.0264892578125, -0.004608154296875, 0.005107879638671875, -0.0209808349609375, 0.00725555419921875, 0.005207061767578125, 0.00746917724609375, 0.003631591796875, -0.0098419189453125, 0.0020389556884765625, -0.01605224609375, 0.023193359375, -0.023468017578125, -0.034149169921875, 0.01806640625, -0.0053863525390625, -0.0048980712890625, 0.023468017578125, -0.041595458984375, 0.01141357421875, -0.017669677734375, -0.04974365234375, -0.013519287109375, 0.0201416015625, 0.014190673828125, -0.0037479400634765625, -0.01279449462890625, 0.004474639892578125, 0.0132293701171875, -0.00907135009765625, -0.031219482421875, 0.016387939453125, 0.045379638671875, -0.00994110107421875, -0.0067138671875, 0.01477813720703125, 0.08428955078125, -0.047088623046875, -0.039031982421875, -0.044036865234375, 0.0234527587890625, -0.09124755859375, -0.024810791015625, -0.004375457763671875, 0.0114288330078125, -0.01317596435546875, -0.052337646484375, 0.0279998779296875, 0.040313720703125, 0.004810333251953125, 0.0372314453125, -0.03668212890625, -0.0063629150390625, -0.0161895751953125, -0.006256103515625, -0.07513427734375, 0.028411865234375, -0.00977325439453125, 0.0164794921875, -0.0224151611328125, -0.004268646240234375, -0.033203125, 0.0156402587890625, -0.006450653076171875, -0.0201568603515625, 0.021484375, 0.0129241943359375, 0.006946563720703125, 0.031524658203125, -0.0242767333984375, 0.010528564453125, 0.0237274169921875, 0.002780914306640625, -0.01529693603515625, -0.017547607421875, 0.0045928955078125, -0.0075531005859375, -0.0501708984375, 0.04888916015625, -0.027984619140625, -0.03369140625, -0.00527191162109375, -0.02972412109375, -0.048187255859375, -0.0087890625, 0.0284271240234375, 0.031158447265625, -0.03692626953125, -0.04742431640625, -0.009429931640625, 0.01617431640625, 0.020294189453125, 0.007030487060546875, -0.01076507568359375, -0.01500701904296875, -0.010528564453125, -0.009490966796875, 0.016571044921875, -0.011810302734375, 0.020111083984375, -0.021881103515625, -0.027587890625, -0.044647216796875, -0.07867431640625, 0.0153656005859375, -0.004787445068359375, -0.00592803955078125, 0.0169219970703125, 0.0073699951171875, -0.00402069091796875, -0.0210113525390625, -0.0094757080078125, 0.012359619140625, 0.0079498291015625, 0.0267486572265625, 0.00835418701171875, 0.0205078125, -0.0028667449951171875, -0.011016845703125, -0.025390625, -0.044769287109375, 0.01181793212890625, -0.0126800537109375, -0.0941162109375, 0.0726318359375, 0.0187225341796875, 0.06500244140625, 0.004608154296875, -0.006038665771484375, 0.07489013671875, 0.04071044921875, -0.0171051025390625, -0.038238525390625, 0.01306915283203125, 0.0131072998046875, -0.04248046875, -0.027984619140625, 0.00359344482421875, 0.036468505859375, 0.007476806640625, -0.005779266357421875, -0.032989501953125, 0.025238037109375, -0.049713134765625, -0.0223388671875, -0.0152435302734375, 0.0190277099609375, -0.0188751220703125, 0.05218505859375, 0.01552581787109375, -0.01508331298828125, -0.0120849609375, 0.017913818359375, 0.0162811279296875, -0.049560546875, -0.02398681640625, 0.0145721435546875, -0.00501251220703125, -0.01074981689453125, 0.00800323486328125, 0.014404296875, 0.005924224853515625, 0.024505615234375, 0.03399658203125, -0.01824951171875, -0.00850677490234375, -0.0282745361328125, 0.040313720703125, -0.0230712890625, 0.02215576171875, 0.0506591796875, -0.02947998046875, 0.01494598388671875, 0.005344390869140625, -0.005878448486328125, 0.03802490234375, -0.03216552734375, 0.0229034423828125, 0.016693115234375, 0.042022705078125, -0.0033435821533203125, 0.0177459716796875, 0.0178070068359375, 0.03094482421875, -0.01537322998046875, 0.0235748291015625, -0.015899658203125, -0.037567138671875, -0.04010009765625, 0.056060791015625, -0.01529693603515625, 0.036041259765625, -0.07025146484375, 0.01190185546875, 0.034820556640625, -0.0206298828125, 0.028839111328125, 0.00701141357421875, -0.006526947021484375, -0.0149993896484375, -0.03765869140625, 0.0264892578125, -0.033935546875, 0.0036163330078125, -0.0297088623046875, 0.0090484619140625, 0.0008869171142578125, -0.00765228271484375, -0.0240936279296875, 0.025054931640625, 0.0271453857421875, 0.01149749755859375, 0.0712890625, 0.0082550048828125, 0.0650634765625, 0.0070648193359375, -0.04541015625, 0.00022268295288085938, 0.05975341796875, 0.01418304443359375, 0.033966064453125, -0.027679443359375, -0.0097808837890625, 0.0209808349609375, 0.007720947265625, -0.006725311279296875, 0.028900146484375, -0.068115234375, -0.0247955322265625, -0.01129913330078125, 0.0892333984375, -0.00323486328125, 0.027557373046875, -0.01349639892578125, 0.036163330078125, 0.0159454345703125, -0.0175933837890625, 0.040283203125, -0.035919189453125, -0.0251922607421875, 0.0447998046875, 0.016143798828125, -0.007320404052734375, 0.0244903564453125, -0.001453399658203125, 0.05487060546875, -0.023468017578125, 0.0005540847778320312, 0.04669189453125, -0.048126220703125, 0.0230712890625, -0.006725311279296875, 0.0235443115234375, -0.0350341796875, -0.050567626953125, -0.0142059326171875, 0.007083892822265625, -0.0255584716796875, 0.0099639892578125, 0.00949859619140625, -0.101806640625, 0.03369140625, 0.0009708404541015625, -0.055450439453125, -0.0209808349609375, 0.05413818359375, 0.018402099609375, -0.002231597900390625, -0.027923583984375, -0.08154296875, -0.06341552734375, -0.07794189453125, 0.0090484619140625, -0.00540924072265625, 0.006793975830078125, 0.0011796951293945312, 0.076904296875, 0.006526947021484375, -0.030029296875, 0.00676727294921875, -0.018218994140625, -0.0106201171875, 0.013580322265625, -0.045074462890625, 0.012542724609375, 0.0249481201171875, 0.0084991455078125, -0.06707763671875, -0.002105712890625, 0.031982421875, -0.015533447265625, -0.00643157958984375, 0.044952392578125, 0.01134490966796875, -0.0036411285400390625, 0.0291290283203125, 0.0877685546875, 0.017059326171875, 0.020050048828125, -0.042816162109375, 0.004932403564453125, -0.05816650390625, -0.04571533203125, 0.034149169921875, -0.004058837890625, -0.027587890625, 0.00927734375, 0.06378173828125, 0.04364013671875, 0.020477294921875, 0.03582763671875, 0.00875091552734375, 0.004528045654296875, 0.0343017578125, -0.05694580078125, 0.025390625, -0.005580902099609375, 0.005092620849609375, 0.0120086669921875, 0.01242828369140625, -0.048858642578125, 0.044158935546875, -0.06500244140625, -0.034088134765625, 0.03057861328125, -0.02838134765625, -0.0089874267578125, -0.02752685546875, -0.004215240478515625, -0.0067138671875, 0.051849365234375, -0.08746337890625, -0.01270294189453125, -0.003856658935546875, 0.0182342529296875, 0.00472259521484375, -0.026092529296875, -0.0207977294921875, -0.029388427734375, -0.0386962890625, 0.04095458984375, 0.0015621185302734375, -0.00891876220703125, -0.0263671875, -0.00897216796875, -0.040771484375, -0.037200927734375, 0.014892578125, -0.0241546630859375, -0.004634857177734375, 0.028472900390625, -0.007404327392578125, -0.00965118408203125, 0.006191253662109375, -0.04510498046875, -0.0247650146484375, -0.005283355712890625, 0.0142822265625, 0.001678466796875, -0.003208160400390625, -0.0325927734375, -0.024383544921875, 0.019195556640625, -0.00627899169921875, 0.031494140625, -0.0073699951171875, -0.004573822021484375, -0.0162811279296875, 0.0010671615600585938, -0.004608154296875, -0.0266876220703125, -0.0135498046875, 0.00116729736328125, -0.0005354881286621094, 0.04998779296875, -0.03009033203125, -0.00798797607421875, -0.01035308837890625, -0.0112152099609375, -0.034027099609375, -0.029754638671875, -0.01904296875, 0.0251312255859375, -0.011016845703125, 0.01012420654296875, -0.0338134765625, -0.058197021484375, -0.0296173095703125, 0.018218994140625, -0.0174407958984375, 0.0186004638671875, -0.01073455810546875, 0.03948974609375, -0.0109405517578125, 0.016265869140625, 0.01763916015625, 0.031524658203125, 0.01375579833984375, 0.038970947265625, 0.003932952880859375, -0.0245513916015625, 0.09356689453125, -0.00640869140625, -0.01529693603515625, 0.0218048095703125, 0.001308441162109375, -0.003734588623046875, -0.04278564453125, 0.0112457275390625, -0.0286865234375, 0.03289794921875, 0.021209716796875, -0.007518768310546875, -0.024505615234375, -0.039581298828125, 0.048370361328125, -0.0027332305908203125, 0.0180511474609375, -0.057952880859375, -0.042144775390625, 0.0046539306640625, -0.04437255859375, 0.08001708984375, 0.021392822265625, 0.004611968994140625, 0.062744140625, 0.051422119140625, 0.022491455078125, -0.01136016845703125, -0.01470184326171875, -0.037109375, 0.0379638671875, 0.0182952880859375, 0.0038967132568359375, 0.018310546875, -0.0147247314453125, 0.0362548828125, -0.011566162109375, -0.0487060546875, -0.015716552734375, -0.0083770751953125, 0.06732177734375, 0.041015625, 0.0179595947265625, 0.01424407958984375, -0.036041259765625, 0.01192474365234375, -0.00907135009765625, -0.026031494140625, -0.0131683349609375, -0.01410675048828125, 0.0338134765625, 0.004154205322265625, 0.0026702880859375, 0.013031005859375, 0.060150146484375, 0.00634002685546875, 0.036346435546875, -0.028533935546875, 0.007343292236328125, -0.031707763671875, 0.01342010498046875, 0.00676727294921875, 0.0242462158203125, 0.01357269287109375, 0.0046234130859375, 0.0318603515625, -0.0011606216430664062, -0.013946533203125, 0.034515380859375, 0.006103515625, 0.037445068359375, 0.039093017578125, -0.0262451171875, 0.01076507568359375, -0.02984619140625, 0.031768798828125, 0.0504150390625, -0.034423828125, 0.0077972412109375, -0.0056304931640625, -0.0254058837890625, 0.00893402099609375, -0.006076812744140625, -0.034881591796875, -0.04278564453125, -0.0308685302734375, 0.038970947265625, -0.05694580078125, 0.007381439208984375, -0.002155303955078125, -0.00685882568359375, -0.049835205078125, -0.01056671142578125, -0.03363037109375, 0.014312744140625, -0.0004677772521972656, 0.006801605224609375, -0.00774383544921875, 0.0172576904296875, 0.0513916015625, -0.03118896484375, -0.05230712890625, -0.07879638671875, -0.0038318634033203125, 0.0438232421875, 0.022857666015625, -0.030609130859375, 0.0305633544921875, -0.064208984375, -0.032562255859375, -0.04443359375, -0.06878662109375, -0.04290771484375, -0.0338134765625, 0.0276947021484375, 0.00839996337890625, -0.003246307373046875, -0.032379150390625, 0.0060577392578125, 0.033782958984375, 0.0265960693359375, 0.05859375, -0.0005025863647460938, 0.04034423828125, 0.0088958740234375, 0.05560302734375, 0.0254669189453125, 0.030792236328125, 0.00447845458984375, -0.041961669921875, 0.021697998046875, -0.036285400390625, -0.0263824462890625, -0.03668212890625, -0.01456451416015625, 0.031494140625, 0.051666259765625, -0.006877899169921875, -0.03509521484375, -0.003253936767578125, 0.002044677734375, -0.0207366943359375, 0.0168304443359375, 0.0389404296875, -0.02777099609375, -0.02215576171875, 0.01201629638671875, 0.01285552978515625, -0.051025390625, -0.0335693359375, 0.01319122314453125, 0.00698089599609375, 0.00296783447265625, -0.0019245147705078125, -0.02227783203125, -0.00882720947265625, 0.051116943359375, -0.00878143310546875, 0.042205810546875, 0.007266998291015625, 0.017669677734375, 0.08551025390625, -0.006885528564453125, -0.05731201171875, -0.01422882080078125, 0.032440185546875, 0.0255584716796875, 0.0288848876953125, 0.080322265625, -0.004871368408203125, 0.0223541259765625, -0.0285491943359375, 0.02288818359375, -0.012786865234375, 0.0296783447265625, -0.005702972412109375, 0.0131378173828125, 0.0625, 0.0182342529296875, -0.004180908203125, -0.03778076171875, -0.025909423828125, 0.01427459716796875, -0.0164031982421875, -0.0182342529296875, -0.003170013427734375, 0.01256561279296875, 0.01256561279296875, -0.015625, -0.017730712890625, -0.073486328125, -0.031219482421875, 0.06280517578125, -0.0270843505859375, -0.08831787109375, -0.046478271484375, 0.0665283203125, -0.02618408203125, -0.09747314453125, 0.043182373046875, -0.028656005859375, 0.048797607421875, 0.051605224609375, 0.0150604248046875, -0.004425048828125, 0.031890869140625, -0.02069091796875, 0.0256500244140625, -0.0004181861877441406, -0.026397705078125, -0.019683837890625, 0.0066680908203125, 0.04620361328125, -0.0286865234375, 0.0186004638671875, 0.014251708984375, -0.0333251953125, -0.050750732421875, -0.0137176513671875, 0.01105499267578125, 0.062744140625, -0.018524169921875, -0.0241851806640625, 0.01561737060546875, 0.040618896484375, 0.01253509521484375, -0.01457977294921875, 0.033233642578125, 0.0140380859375, 0.059967041015625, -0.0193328857421875, 0.029327392578125, 0.00284576416015625, -0.037506103515625, -0.072998046875, 0.0584716796875, -0.004085540771484375, 0.049713134765625, 0.0002810955047607422, -0.004734039306640625, 0.01318359375, -0.0022602081298828125, -0.035308837890625, 0.048858642578125, -0.01371002197265625, 0.08135986328125, -0.05596923828125, -0.01462554931640625, 0.039215087890625, 0.06524658203125, 0.076904296875, 0.01235198974609375, -0.05023193359375, -0.02703857421875, 0.05084228515625, 0.059417724609375, 0.0129241943359375, 0.05084228515625, -0.01617431640625, 0.042633056640625, 0.00916290283203125, -0.0106658935546875, 0.032073974609375, -0.01526641845703125, -0.06329345703125, 0.0175628662109375, 0.03594970703125, 0.057403564453125, 0.0262908935546875, 0.052398681640625, 0.0234527587890625, 0.01012420654296875, 0.00684356689453125, -0.01422882080078125, -0.0089263916015625, 0.05560302734375, 0.0706787109375, -0.0714111328125, -0.0341796875, -0.04351806640625, 0.053497314453125, 0.02252197265625, 0.0251922607421875, 0.037811279296875, 0.03839111328125, 0.01543426513671875, -0.0250701904296875, 0.0202484130859375, 0.02166748046875, -0.04656982421875, -0.0052947998046875, -0.01500701904296875, 0.030914306640625, -0.052032470703125, -0.0308380126953125, -0.009185791015625, 0.005359649658203125, -0.003910064697265625, -0.0203094482421875, 0.007678985595703125, 0.00021696090698242188, -0.01324462890625, -0.0230255126953125, -0.01154327392578125, 0.01812744140625, 0.0455322265625, -0.0226287841796875, -0.0296478271484375, -0.009124755859375, 0.0506591796875, 0.0003631114959716797, -0.0036830902099609375, 0.0171356201171875, -0.05487060546875, -0.0204620361328125, -0.01383209228515625, 0.02215576171875, -0.0173187255859375, -0.003749847412109375, 0.03790283203125, 0.060821533203125, 0.018585205078125, 0.01071929931640625, 0.0175018310546875, 0.01169586181640625, -0.0206146240234375, -0.005573272705078125, -0.005855560302734375, 0.0009918212890625, 0.0149688720703125, 0.0298309326171875, 0.019287109375, 0.0267181396484375, 0.003582000732421875, 0.01265716552734375, -0.01248931884765625, -0.046112060546875, -0.0207366943359375, 0.0142059326171875, -0.01317596435546875, 0.02740478515625, 0.051513671875, -0.0014047622680664062, -0.0106353759765625, 0.007793426513671875, 0.08929443359375, -0.015655517578125, 0.038360595703125, 0.0123443603515625, -0.0136260986328125, -0.02593994140625, -0.002834320068359375, -0.0026874542236328125, 0.00443267822265625, -0.025909423828125, 0.00734710693359375, 0.032562255859375, -0.07257080078125, -0.00592803955078125, 0.035888671875, -0.043243408203125, 0.0244293212890625, 0.020538330078125, 0.0479736328125, -0.01541900634765625, -0.0496826171875, 0.0198211669921875, -0.0234222412109375, 0.01947021484375, 0.020721435546875, -0.062225341796875, -0.043853759765625, -0.01097869873046875, 0.02667236328125, -0.004283905029296875, 0.07476806640625, 0.0008540153503417969, 0.01090240478515625, -0.0085601806640625, 0.01200103759765625, -0.017822265625, -0.004924774169921875, 0.00872039794921875, 0.007404327392578125, -0.003498077392578125, -0.01070404052734375, -0.0758056640625, 0.0285186767578125, 0.032135009765625, 0.01245880126953125, 0.061676025390625, -0.0170440673828125, 0.0014219284057617188, -0.051666259765625, -0.058502197265625, -0.040771484375, -0.0115814208984375, 0.023468017578125, 0.017333984375, -0.00934600830078125, -0.028594970703125, -0.01459503173828125, 0.035400390625, 0.032806396484375, 0.0031299591064453125, 0.03057861328125, -0.031524658203125, 0.08587646484375, 0.035247802734375, -0.027801513671875, 0.059234619140625, 0.0182342529296875, -0.0122222900390625, 0.029083251953125, 0.0241241455078125, -0.0302886962890625, 0.01439666748046875, 0.032318115234375, -0.0227813720703125, -0.006649017333984375, 0.00795745849609375, -0.039886474609375, 0.0001023411750793457, -0.00672149658203125, -0.0027103424072265625, 0.0149993896484375, -0.01336669921875, -0.031524658203125, -0.0299530029296875, -0.0086669921875, -0.0015478134155273438, -0.0226593017578125, -0.0611572265625, -0.02740478515625, -0.0307769775390625, 0.004070281982421875, 0.00830078125, -0.0374755859375, 0.0030269622802734375, 0.0010614395141601562, 0.01261138916015625, -0.006317138671875, 0.03192138671875, -0.01287841796875, -0.00705718994140625, -0.0257415771484375, -0.00920867919921875, -0.03509521484375, 0.0261993408203125, -0.00725555419921875, 0.00717926025390625, 0.0144805908203125, -0.004459381103515625, 0.01983642578125, 0.017578125, 0.0076446533203125, 0.07244873046875, -0.0054168701171875, -0.0035648345947265625, 0.01263427734375, 0.0253143310546875, -0.040924072265625, -0.04302978515625, 0.00989532470703125, 0.012176513671875, 0.0010194778442382812, 0.01094818115234375, 0.00330352783203125, 0.01267242431640625, -0.029815673828125, -0.034820556640625, 0.0182342529296875, 0.020782470703125, -0.03387451171875, 0.01012420654296875, -0.004131317138671875, -0.03173828125, 0.061248779296875, 0.01105499267578125, -0.01568603515625, 0.0211334228515625, 0.027984619140625, 0.0107269287109375, 0.035614013671875, 0.053497314453125, 0.006114959716796875, 0.042205810546875, 0.023956298828125, 0.0135345458984375, -0.017730712890625, -0.00046706199645996094, -0.006916046142578125, 0.0260467529296875, 0.01241302490234375, -0.0438232421875, -0.035400390625, 0.01410675048828125, 0.063720703125, 0.022369384765625, 0.01544952392578125, -0.03607177734375, 0.0023937225341796875, 0.0304412841796875, 0.048553466796875, 0.0031719207763671875, -0.0212860107421875, 0.0009717941284179688, -0.033416748046875, -0.09722900390625, -0.0004901885986328125, 0.03375244140625, -0.04486083984375, 0.0189971923828125, 0.0141143798828125, 0.0012235641479492188, 0.0079345703125, -0.0241241455078125, -0.026275634765625, -0.0136566162109375, -0.030181884765625, -0.0108795166015625, -0.02056884765625, -0.01099395751953125, 0.01042938232421875, -0.024505615234375, -0.0294189453125, 0.005725860595703125, 0.0008859634399414062, -0.0245513916015625, -0.0004906654357910156, -0.023345947265625, -0.020721435546875, -0.034088134765625, -0.0081787109375, -0.009979248046875, 0.042999267578125, -0.0027370452880859375, -0.032562255859375, -0.00218963623046875, 0.011077880859375, 0.0022373199462890625, 0.005184173583984375, -0.0184173583984375, 0.0239715576171875, 0.0008220672607421875, 0.038543701171875, 0.0011930465698242188, 0.06719970703125, -0.00868988037109375, 0.03717041015625, -0.011322021484375, -0.0240020751953125, -0.0023670196533203125, 0.00603485107421875, -0.0157470703125, -0.0167999267578125, -0.0171661376953125, -0.07183837890625, 0.027862548828125, -0.002101898193359375, -0.0017862319946289062, 0.040313720703125 ]
24ce46e3860d0bbe84881a9dc73d2281b226dfb6
Wordpress Stackexchange Q: How to call images from your plugins image folder? I've done a lot of research and learned a lot about WP constants and function usage for getting image paths etc. but still my original problem persists. <img src="<?PHP echo WP_PLUGIN_DIR . 'vertical-social-buttons/images/facebook.png'?>"> <img src="<?PHP echo WP_PLUGIN_DIR . 'vertical-social-buttons/images/facebook.png'?>"> <img src="<?PHP echo plugins_url('vertical-social-buttons/images/facebook.png', __FILE__);?>"> All give me broken images. Am I missing something obvious? A: Use plugin_dir_url() to get the public URI for the directory where the calling PHP file is. <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/facebook.png'; ?>"> If the PHP file is in a sub directory of your plugin you have to go up: <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/facebook.png'; ?>">
Q: How to call images from your plugins image folder? I've done a lot of research and learned a lot about WP constants and function usage for getting image paths etc. but still my original problem persists. <img src="<?PHP echo WP_PLUGIN_DIR . 'vertical-social-buttons/images/facebook.png'?>"> <img src="<?PHP echo WP_PLUGIN_DIR . 'vertical-social-buttons/images/facebook.png'?>"> <img src="<?PHP echo plugins_url('vertical-social-buttons/images/facebook.png', __FILE__);?>"> All give me broken images. Am I missing something obvious? A: Use plugin_dir_url() to get the public URI for the directory where the calling PHP file is. <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/facebook.png'; ?>"> If the PHP file is in a sub directory of your plugin you have to go up: <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/facebook.png'; ?>">
wordpress
{ "language": "en", "length": 118, "provenance": "stackexchange_00019.jsonl.gz:422423", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60230" }
[ 0.0809326171875, -0.003932952880859375, 0.028350830078125, -0.05194091796875, 0.01751708984375, -0.020782470703125, 0.051513671875, -0.0266571044921875, 0.015594482421875, -0.0068817138671875, -0.0457763671875, 0.0213470458984375, -0.0511474609375, -0.01110076904296875, -0.0255584716796875, -0.044189453125, 0.048309326171875, -0.047393798828125, 0.04559326171875, 0.010101318359375, 0.03125, 0.0548095703125, 0.04425048828125, 0.0158233642578125, 0.0161590576171875, -0.03912353515625, 0.10107421875, -0.034332275390625, 0.0116729736328125, -0.03912353515625, 0.01546478271484375, 0.0247344970703125, -0.01161956787109375, 0.053497314453125, -0.0016565322875976562, -0.00931549072265625, 0.0034923553466796875, 0.0210113525390625, 0.0301055908203125, 0.01055145263671875, 0.02587890625, -0.020355224609375, 0.03387451171875, 0.005645751953125, 0.0071868896484375, -0.034637451171875, 0.0447998046875, -0.0272674560546875, -0.00119781494140625, 0.02374267578125, 0.0107574462890625, 0.009674072265625, 0.01397705078125, -0.0014123916625976562, -0.0180511474609375, -0.0418701171875, -0.0205841064453125, 0.054901123046875, 0.01654052734375, 0.00698089599609375, -0.032470703125, 0.030548095703125, 0.006488800048828125, -0.000766754150390625, -0.00995635986328125, -0.00572967529296875, -0.07586669921875, 0.019775390625, -0.004367828369140625, -0.01416015625, -0.00685882568359375, -0.0384521484375, 0.0035572052001953125, -0.06134033203125, -0.0017824172973632812, 0.047149658203125, -0.023773193359375, -0.0212554931640625, 0.0233306884765625, -0.0297088623046875, -0.007965087890625, -0.0173492431640625, -0.050445556640625, 0.050323486328125, -0.01303863525390625, 0.061920166015625, -0.0206451416015625, -0.023590087890625, -0.0273284912109375, 0.004459381103515625, -0.0374755859375, -0.018951416015625, 0.0032024383544921875, 0.0140228271484375, -0.0273590087890625, 0.00225067138671875, 0.047515869140625, 0.00736236572265625, 0.017913818359375, 0.0192718505859375, 0.007717132568359375, -0.058380126953125, 0.05548095703125, -0.026763916015625, 0.002277374267578125, 0.011474609375, -0.0147705078125, 0.020782470703125, 0.04217529296875, 0.0423583984375, 0.0170135498046875, -0.00531005859375, -0.0285797119140625, -0.0677490234375, 0.0161590576171875, 0.040802001953125, -0.037017822265625, 0.03033447265625, 0.0299072265625, 0.0121002197265625, -0.0126190185546875, -0.01447296142578125, 0.003948211669921875, 0.009246826171875, 0.01143646240234375, 0.0020160675048828125, -0.0152435302734375, 0.004352569580078125, -0.041107177734375, 0.01953125, -0.019073486328125, 0.02001953125, 0.04205322265625, 0.01029205322265625, -0.012725830078125, -0.01416015625, 0.002361297607421875, -0.013946533203125, -0.017547607421875, 0.007579803466796875, -0.0098419189453125, -0.022735595703125, 0.0014057159423828125, -0.0411376953125, -0.0261077880859375, -0.005756378173828125, -0.00431060791015625, 0.043426513671875, -0.01128387451171875, -0.043792724609375, 0.019012451171875, 0.006847381591796875, 0.0009174346923828125, 0.0169677734375, 0.0638427734375, -0.007480621337890625, 0.060577392578125, -0.03448486328125, 0.0289306640625, -0.0255889892578125, -0.0203094482421875, 0.006717681884765625, 0.020904541015625, -0.02044677734375, -0.00954437255859375, -0.018829345703125, -0.0198211669921875, 0.003932952880859375, 0.025665283203125, 0.00522613525390625, 0.0214080810546875, 0.00707244873046875, 0.022705078125, 0.0152130126953125, 0.0083465576171875, 0.007282257080078125, 0.01528167724609375, -0.01085662841796875, 0.025634765625, 0.019989013671875, -0.0234527587890625, -0.008026123046875, 0.058929443359375, -0.0255279541015625, -0.03192138671875, 0.005649566650390625, -0.005168914794921875, -0.00695037841796875, 0.0081634521484375, 0.0010852813720703125, 0.046112060546875, 0.046173095703125, -0.044464111328125, 0.040863037109375, -0.015472412109375, -0.00591278076171875, -0.03875732421875, 0.01153564453125, -0.0231475830078125, -0.0300750732421875, -0.0096435546875, 0.0141143798828125, -0.0232391357421875, 0.0255126953125, -0.046173095703125, -0.00278472900390625, -0.0166168212890625, 0.0231475830078125, 0.01922607421875, 0.017120361328125, -0.00841522216796875, 0.00794219970703125, 0.018524169921875, -0.0640869140625, -0.020263671875, 0.03936767578125, -0.0225830078125, -0.00687408447265625, -0.007537841796875, 0.048980712890625, -0.0220794677734375, -0.007762908935546875, -0.031829833984375, -0.007801055908203125, 0.036346435546875, 0.0194244384765625, -0.0258026123046875, -0.006916046142578125, 0.0159454345703125, 0.0193023681640625, -0.04180908203125, 0.0092315673828125, -0.0345458984375, 0.01526641845703125, 0.00510406494140625, -0.0161285400390625, 0.03692626953125, -0.043853759765625, 0.045318603515625, 0.016387939453125, 0.042144775390625, 0.0215301513671875, -0.0032024383544921875, -0.0005917549133300781, 0.032379150390625, 0.00388336181640625, 0.0396728515625, -0.04046630859375, 0.0088348388671875, -0.0087890625, -0.023162841796875, -0.031768798828125, 0.06005859375, -0.033355712890625, -0.0011796951293945312, 0.05389404296875, -0.0167694091796875, -0.05755615234375, 0.01526641845703125, 0.0243072509765625, 0.0160064697265625, -0.004505157470703125, -0.02716064453125, 0.00176239013671875, -0.0259857177734375, -0.005725860595703125, -0.0126495361328125, -0.01255035400390625, -0.01136016845703125, -0.010162353515625, 0.038177490234375, -0.020172119140625, -0.005252838134765625, 0.004596710205078125, 0.0204010009765625, -0.031707763671875, -0.0098876953125, 0.006511688232421875, 0.0102081298828125, -0.0159759521484375, -0.005756378173828125, -0.008270263671875, -0.008880615234375, -0.011474609375, -0.02874755859375, -0.03704833984375, 0.035369873046875, 0.046600341796875, -0.0014429092407226562, 0.030029296875, 0.040863037109375, 0.01849365234375, -0.01346588134765625, 0.0245208740234375, -0.01470947265625, 0.0037593841552734375, 0.0576171875, -0.0394287109375, 0.0577392578125, -0.01556396484375, 0.02069091796875, 0.0682373046875, 0.005649566650390625, -0.004241943359375, -0.01456451416015625, -0.007720947265625, -0.0133514404296875, -0.013763427734375, -0.028106689453125, -0.047637939453125, 0.00675201416015625, 0.0295562744140625, 0.009429931640625, 0.025787353515625, -0.0311737060546875, -0.054351806640625, -0.0172576904296875, -0.008331298828125, -0.107666015625, -0.08123779296875, -0.00983428955078125, -0.058929443359375, 0.0081634521484375, -0.00424957275390625, -0.019561767578125, 0.0016126632690429688, 0.0235137939453125, 0.0028743743896484375, -0.038604736328125, -0.0166015625, -0.0277557373046875, -0.05059814453125, -0.052825927734375, 0.015167236328125, 0.002880096435546875, 0.0156707763671875, 0.004741668701171875, -0.0166473388671875, 0.0032062530517578125, -0.00800323486328125, 0.03082275390625, 0.058746337890625, 0.00855255126953125, -0.017578125, 0.01151275634765625, -0.03997802734375, -0.00701141357421875, -0.018463134765625, 0.050201416015625, 0.044189453125, -0.037628173828125, 0.0113067626953125, -0.0007472038269042969, -0.049560546875, 0.0009641647338867188, 0.03662109375, -0.01361083984375, -0.047332763671875, 0.0160064697265625, -0.07354736328125, -0.006328582763671875, -0.04327392578125, -0.04669189453125, 0.06842041015625, 0.0261993408203125, 0.00403594970703125, -0.0129547119140625, 0.03173828125, 0.0193328857421875, 0.021636962890625, 0.006305694580078125, -0.0119476318359375, 0.042572021484375, -0.006679534912109375, 0.025299072265625, -0.0284881591796875, 0.00470733642578125, -0.0068359375, -0.007335662841796875, -0.006595611572265625, 0.02740478515625, -0.0160980224609375, 0.010162353515625, -0.04974365234375, 0.04180908203125, -0.00550079345703125, -0.039215087890625, 0.01727294921875, -0.01117706298828125, 0.015869140625, -0.046417236328125, -0.032806396484375, -0.02899169921875, -0.03936767578125, 0.01358795166015625, 0.0247039794921875, -0.02716064453125, -0.027435302734375, -0.023468017578125, -0.0287322998046875, -0.0894775390625, -0.007244110107421875, 0.002025604248046875, -0.049957275390625, 0.043670654296875, -0.053985595703125, -0.0345458984375, -0.049530029296875, 0.007965087890625, 0.025115966796875, 0.00408172607421875, 0.017974853515625, -0.0035991668701171875, 0.00467681884765625, 0.0131072998046875, -0.0151214599609375, -0.0968017578125, -0.0221710205078125, -0.0186920166015625, 0.07183837890625, -0.0103759765625, 0.0258331298828125, -0.039276123046875, 0.05657958984375, -0.03155517578125, 0.0242919921875, 0.01442718505859375, 0.036773681640625, -0.0212860107421875, 0.0014162063598632812, 0.03472900390625, -0.02789306640625, 0.01419830322265625, -0.0273284912109375, -0.05206298828125, -0.057861328125, -0.03570556640625, -0.00484466552734375, 0.0006365776062011719, -0.036468505859375, -0.0073699951171875, -0.00653076171875, -0.037017822265625, -0.00043773651123046875, -0.00699615478515625, -0.0285491943359375, -0.0237884521484375, -0.026092529296875, 0.01433563232421875, 0.0286865234375, 0.0026187896728515625, 0.0143585205078125, 0.035400390625, 0.01190185546875, -0.03033447265625, -0.038116455078125, 0.05303955078125, 0.038543701171875, -0.00386810302734375, 0.02777099609375, 0.01403045654296875, -0.0184173583984375, 0.017242431640625, 0.0149383544921875, 0.0165863037109375, -0.01453399658203125, 0.07037353515625, -0.005680084228515625, -0.03033447265625, 0.044403076171875, 0.0010404586791992188, -0.054840087890625, 0.0849609375, -0.0184478759765625, -0.01088714599609375, -0.043243408203125, 0.0251617431640625, -0.03704833984375, 0.0205841064453125, -0.02532958984375, -0.0506591796875, 0.0178985595703125, -0.0182342529296875, 0.045196533203125, 0.050201416015625, -0.031524658203125, 0.0750732421875, 0.02587890625, -0.00323486328125, 0.034027099609375, 0.034210205078125, -0.0009336471557617188, 0.0229034423828125, 0.04547119140625, -0.0139007568359375, -0.002010345458984375, 0.00598907470703125, 0.0170135498046875, 0.007373809814453125, -0.006206512451171875, -0.04736328125, -0.01335906982421875, -0.021453857421875, -0.0079193115234375, 0.00638580322265625, 0.03546142578125, 0.00762939453125, -0.00963592529296875, -0.0020961761474609375, -0.0187225341796875, 0.0029125213623046875, -0.0273895263671875, 0.031463623046875, 0.017791748046875, -0.0102386474609375, 0.01360321044921875, 0.03875732421875, 0.00594329833984375, 0.0136566162109375, -0.0014429092407226562, 0.00823974609375, -0.006195068359375, 0.021942138671875, 0.0195770263671875, -0.006877899169921875, -0.00396728515625, -0.0090484619140625, 0.0026721954345703125, -0.054931640625, 0.0140228271484375, -0.0009565353393554688, 0.06488037109375, -0.02490234375, -0.0704345703125, 0.0277252197265625, -0.05535888671875, -0.033599853515625, 0.024658203125, 0.018890380859375, -0.0098724365234375, -0.02783203125, -0.0169830322265625, 0.042938232421875, 0.01568603515625, -0.020111083984375, 0.026153564453125, 0.00734710693359375, 0.014404296875, -0.0146484375, -0.05401611328125, 0.0296783447265625, 0.05572509765625, -0.03717041015625, -0.03094482421875, -0.01068115234375, -0.0202178955078125, 0.019500732421875, -0.028167724609375, -0.033599853515625, 0.055419921875, -0.0177001953125, 0.0157623291015625, -0.01363372802734375, -0.00859832763671875, -0.0004177093505859375, 0.005596160888671875, 0.027191162109375, 0.0058441162109375, -0.06732177734375, 0.0086517333984375, -0.0163421630859375, 0.0033111572265625, 0.054168701171875, 0.01806640625, -0.0372314453125, -0.033721923828125, -0.0133209228515625, 0.01032257080078125, -0.0032634735107421875, 0.0357666015625, -0.0107879638671875, 0.033782958984375, -0.0191192626953125, 0.07098388671875, -0.0005826950073242188, 0.0087890625, 0.025665283203125, 0.0279693603515625, 0.0030841827392578125, -0.0031871795654296875, -0.0240325927734375, -0.0157928466796875, -0.018157958984375, -0.0278472900390625, 0.01220703125, 0.020782470703125, 0.029388427734375, 0.00311279296875, 0.03204345703125, 0.0201416015625, 0.001567840576171875, -0.01474761962890625, 0.0018491744995117188, -0.015655517578125, 0.054595947265625, -0.0005774497985839844, 0.022674560546875, 0.01262664794921875, -0.042388916015625, -0.01947021484375, 0.0108184814453125, 0.006427764892578125, 0.0180206298828125, -0.0126953125, -0.006443023681640625, 0.024749755859375, -0.0528564453125, 0.0721435546875, 0.09381103515625, 0.0181121826171875, 0.0748291015625, 0.0166473388671875, 0.0150146484375, 0.033447265625, 0.0621337890625, 0.05194091796875, -0.053497314453125, 0.07568359375, 0.0219573974609375, -0.0141143798828125, 0.036834716796875, -0.045196533203125, 0.0313720703125, -0.0010652542114257812, 0.041595458984375, -0.0276336669921875, 0.03271484375, 0.016265869140625, -0.015533447265625, 0.0506591796875, 0.0036334991455078125, -0.01424407958984375, -0.03265380859375, 0.042694091796875, -0.006893157958984375, 0.00194549560546875, 0.017364501953125, 0.01837158203125, 0.019317626953125, 0.064453125, 0.0160064697265625, -0.016571044921875, -0.0592041015625, -0.08782958984375, 0.047698974609375, -0.043731689453125, 0.0156707763671875, 0.0032501220703125, -0.0195159912109375, -0.0230712890625, -0.028045654296875, -0.0195770263671875, -0.03564453125, -0.0311737060546875, 0.00749969482421875, -0.01800537109375, 0.0173187255859375, 0.019989013671875, -0.00439453125, -0.035400390625, 0.0083465576171875, -0.049835205078125, 0.0721435546875, 0.01184844970703125, 0.0201568603515625, 0.0494384765625, -0.0594482421875, -0.01189422607421875, -0.0256500244140625, 0.06756591796875, -0.0048370361328125, -0.0156402587890625, 0.056732177734375, -0.0322265625, -0.0082855224609375, 0.0019474029541015625, 0.018829345703125, 0.0006771087646484375, -0.026275634765625, 0.01187896728515625, -0.0711669921875, -0.0114593505859375, -0.0014352798461914062, 0.0005235671997070312, 0.0230865478515625, -0.0026531219482421875, -0.04119873046875, 0.0498046875, -0.00586700439453125, 0.00801849365234375, 0.006023406982421875, 0.0198974609375, -0.01300811767578125, -0.012664794921875, 0.0000921487808227539, 0.00650787353515625, -0.0428466796875, -0.0136260986328125, -0.02398681640625, 0.017120361328125, -0.033294677734375, 0.0250091552734375, 0.08404541015625, 0.019989013671875, -0.0482177734375, -0.0411376953125, 0.03253173828125, 0.05230712890625, 0.01397705078125, 0.03411865234375, 0.035369873046875, 0.01715087890625, 0.017181396484375, -0.0173492431640625, 0.04473876953125, -0.077392578125, 0.01983642578125, 0.04364013671875, -0.0015010833740234375, -0.0280914306640625, 0.00734710693359375, -0.01910400390625, -0.0390625, 0.01171112060546875, 0.02032470703125, -0.021392822265625, 0.0219268798828125, 0.027557373046875, 0.016265869140625, 0.01421356201171875, -0.0227813720703125, 0.00206756591796875, 0.0360107421875, -0.0125579833984375, 0.021636962890625, 0.00583648681640625, 0.017730712890625, -0.01552581787109375, -0.01456451416015625, 0.01288604736328125, 0.0271148681640625, -0.038818359375, 0.05816650390625, 0.02001953125, 0.01507568359375, -0.0618896484375, -0.0400390625, 0.0377197265625, 0.06988525390625, -0.03204345703125, -0.05218505859375, 0.00604248046875, -0.0087432861328125, 0.0279388427734375, 0.0184326171875, 0.01934814453125, -0.06219482421875, -0.0266876220703125, -0.038909912109375, 0.00450897216796875, 0.036834716796875, 0.0335693359375, -0.0003924369812011719, -0.0254669189453125, -0.04522705078125, -0.0089874267578125, 0.01641845703125, 0.0113067626953125, 0.004669189453125, -0.04107666015625, -0.0313720703125, 0.015869140625, 0.0299530029296875, 0.0310516357421875, 0.004215240478515625, 0.037078857421875, -0.0115509033203125, 0.020294189453125, -0.0161895751953125, -0.025360107421875, 0.023956298828125, 0.0186767578125, 0.019683837890625, 0.0237274169921875, 0.060699462890625, 0.026123046875, -0.0479736328125, 0.0036106109619140625, 0.0257110595703125, -0.020965576171875, 0.0214080810546875, 0.0024700164794921875, 0.0023250579833984375, 0.0153350830078125, -0.0239715576171875, -0.01111602783203125, -0.0004642009735107422, 0.03515625, -0.051055908203125, 0.0760498046875, -0.0254364013671875, 0.009124755859375, 0.01366424560546875, -0.0207977294921875, 0.05194091796875, -0.027679443359375, -0.0223541259765625, -0.003223419189453125, 0.002597808837890625, 0.01343536376953125, -0.0248870849609375, 0.0099334716796875, 0.00028514862060546875, 0.05780029296875, 0.0080718994140625, -0.017822265625, -0.00884246826171875, 0.003330230712890625, 0.0189361572265625, 0.01139068603515625, 0.0106964111328125, 0.00843048095703125, -0.0124359130859375, -0.02227783203125, -0.05316162109375, 0.058746337890625, 0.038848876953125, 0.08843994140625, -0.06011962890625, 0.05047607421875, 0.0046234130859375, -0.03515625, -0.006252288818359375, -0.006214141845703125, 0.0228729248046875, -0.037567138671875, -0.032958984375, -0.007122039794921875, -0.01471710205078125, 0.03851318359375, 0.0170745849609375, -0.005481719970703125, -0.0193023681640625, 0.01451873779296875, 0.0180816650390625, 0.057281494140625, 0.038177490234375, -0.023681640625, -0.038604736328125, -0.08367919921875, -0.01446533203125, 0.04779052734375, 0.025115966796875, -0.0241851806640625, 0.00333404541015625, 0.0128326416015625, -0.0114288330078125, 0.041290283203125, -0.0166168212890625, 0.0535888671875, 0.038818359375, -0.0246124267578125, -0.0654296875, -0.01708984375, -0.0054931640625, -0.017822265625, -0.0162506103515625, 0.07476806640625, -0.039215087890625, -0.025665283203125, 0.01337432861328125, -0.0108642578125, 0.01406097412109375, -0.032501220703125, -0.017547607421875, 0.01543426513671875, 0.0144500732421875, -0.0197296142578125, -0.02838134765625, -0.01080322265625, -0.067138671875, 0.001007080078125, 0.02569580078125, -0.034271240234375, -0.01004791259765625, -0.0129547119140625, -0.006252288818359375, 0.05621337890625, 0.04229736328125, -0.0997314453125, 0.0271759033203125, 0.0031032562255859375, 0.033111572265625, 0.02239990234375, 0.0085906982421875, 0.0014495849609375, 0.0189361572265625, -0.01824951171875, -0.01290130615234375, -0.02984619140625, 0.0202484130859375, -0.0090179443359375, 0.055206298828125, 0.0460205078125, -0.048736572265625, 0.01151275634765625, 0.060699462890625, 0.046539306640625, 0.1129150390625, -0.0180816650390625, 0.00038886070251464844, 0.02490234375, -0.001007080078125, -0.043243408203125, -0.041229248046875, 0.02545166015625, -0.05438232421875, -0.031982421875, -0.037384033203125, 0.02008056640625, 0.008819580078125, -0.04644775390625, -0.07330322265625, 0.0399169921875, -0.013885498046875, -0.02398681640625, -0.035552978515625, 0.027557373046875, 0.014923095703125, -0.00624847412109375, 0.0024127960205078125, -0.0266571044921875, -0.0099639892578125, 0.006011962890625, 0.028533935546875, 0.018218994140625, 0.01163482666015625, 0.0178070068359375, -0.01094818115234375, 0.03765869140625, 0.03314208984375, 0.00824737548828125, 0.02874755859375, -0.027862548828125, 0.028778076171875, 0.0460205078125, -0.021759033203125, -0.042816162109375, -0.0059356689453125, -0.03533935546875, -0.025238037109375, -0.07061767578125, 0.0279693603515625, 0.01137542724609375, 0.038909912109375, 0.007965087890625, 0.0016851425170898438, -0.052978515625, -0.01134490966796875, -0.0164031982421875, -0.0115966796875, 0.007404327392578125, 0.01367950439453125, -0.059295654296875, 0.0007419586181640625, 0.0274505615234375, -0.0165252685546875, -0.01013946533203125, 0.00695037841796875, -0.0360107421875, -0.0122222900390625, -0.002471923828125, -0.026092529296875, 0.0097198486328125, 0.030792236328125, 0.06060791015625, -0.03277587890625, 0.04150390625, -0.0255584716796875, 0.0055084228515625, 0.06622314453125, -0.044708251953125, 0.0017671585083007812, 0.031524658203125, -0.0286407470703125, 0.0068817138671875, -0.0010385513305664062, 0.0180206298828125, -0.01519012451171875, -0.019195556640625, 0.00548553466796875, 0.0188751220703125, -0.0281829833984375, 0.01067352294921875, 0.0192108154296875, 0.049224853515625, -0.006023406982421875, 0.0943603515625, -0.0093994140625, 0.00502777099609375, -0.01568603515625, 0.028411865234375, -0.0302581787109375, -0.00467681884765625, -0.005035400390625, -0.0280914306640625, 0.007633209228515625, 0.01593017578125, -0.023834228515625, -0.04083251953125, 0.0124664306640625, -0.0121307373046875, -0.0092010498046875, 0.007049560546875 ]
1086f4daa8df57481f04aff256a8bb1f2b0fa4fd
Wordpress Stackexchange Q: WordPress - wp-admin subdomain I'm new with WordPress, trying to map the wp-admin to a subdomain: instead of: www.mydomain.net/wp-admin I would like: admin.mydomain.net I have already created a sub-domain (I use GoDaddy) that maps admin.mydomain.net to www.mydomain.net/wp-admin I'm posting this question after searching the whole wide web, but all I found is moving the entire site to a subdomain, which I am not interested in. Thanks in advance to all the helpers! A: The folder location /wp-admin is hardcoded into wordpress in multiple locations. It is pretty problematic to modify the location. WordPress will always go to /wp-admin. There are ways around this, but their are many steps. You can forward a subdomain to www.mydomain.net/wp-admin but WordPress will still always go through www.mydomain.net/wp-admin. Here is a reference if you really are interested in doing it... http://lists.automattic.com/pipermail/wp-hackers/2010-July/thread.html#33458
Q: WordPress - wp-admin subdomain I'm new with WordPress, trying to map the wp-admin to a subdomain: instead of: www.mydomain.net/wp-admin I would like: admin.mydomain.net I have already created a sub-domain (I use GoDaddy) that maps admin.mydomain.net to www.mydomain.net/wp-admin I'm posting this question after searching the whole wide web, but all I found is moving the entire site to a subdomain, which I am not interested in. Thanks in advance to all the helpers! A: The folder location /wp-admin is hardcoded into wordpress in multiple locations. It is pretty problematic to modify the location. WordPress will always go to /wp-admin. There are ways around this, but their are many steps. You can forward a subdomain to www.mydomain.net/wp-admin but WordPress will still always go through www.mydomain.net/wp-admin. Here is a reference if you really are interested in doing it... http://lists.automattic.com/pipermail/wp-hackers/2010-July/thread.html#33458
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:422426", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60234" }
[ 0.06011962890625, -0.019622802734375, 0.04595947265625, 0.0212249755859375, -0.0242767333984375, -0.042449951171875, 0.06744384765625, -0.06072998046875, -0.009307861328125, 0.0163421630859375, 0.012908935546875, -0.0003845691680908203, -0.003620147705078125, -0.03839111328125, 0.0032367706298828125, -0.0267791748046875, 0.012603759765625, -0.0224151611328125, -0.006130218505859375, -0.0181732177734375, 0.00867462158203125, 0.00336456298828125, -0.0018291473388671875, -0.0035724639892578125, 0.026519775390625, -0.0223388671875, 0.063720703125, -0.03851318359375, 0.0207061767578125, -0.02130126953125, 0.022125244140625, -0.00461578369140625, 0.0101470947265625, 0.00848388671875, 0.00676727294921875, -0.0301971435546875, -0.024169921875, 0.00988006591796875, 0.020843505859375, -0.0074310302734375, 0.037078857421875, -0.0113525390625, 0.013641357421875, 0.033905029296875, 0.013092041015625, -0.0633544921875, 0.04736328125, -0.07147216796875, 0.01474761962890625, -0.022796630859375, 0.005584716796875, 0.0251312255859375, 0.027496337890625, 0.0033626556396484375, -0.0172882080078125, -0.023162841796875, 0.0068359375, -0.0025310516357421875, 0.03131103515625, -0.0285797119140625, -0.02880859375, 0.0017232894897460938, 0.036590576171875, 0.017791748046875, -0.0164947509765625, 0.0012836456298828125, -0.02880859375, 0.013458251953125, -0.053253173828125, -0.02239990234375, 0.0257110595703125, -0.04302978515625, 0.00913238525390625, -0.0020313262939453125, 0.004894256591796875, -0.018402099609375, 0.0010442733764648438, -0.0011425018310546875, 0.0247802734375, -0.0004725456237792969, 0.0276031494140625, -0.005397796630859375, -0.00699615478515625, -0.003047943115234375, 0.01525115966796875, 0.035369873046875, -0.01197052001953125, -0.026824951171875, -0.040069580078125, -0.017791748046875, -0.032379150390625, -0.0240631103515625, 0.004421234130859375, -0.0036411285400390625, -0.030426025390625, 0.005092620849609375, 0.025238037109375, 0.0198974609375, 0.01776123046875, 0.0029010772705078125, 0.0002288818359375, -0.031951904296875, -0.0212249755859375, -0.0099029541015625, -0.01702880859375, 0.0305023193359375, 0.0164642333984375, 0.023284912109375, 0.011077880859375, 0.016510009765625, -0.0124053955078125, 0.007007598876953125, 0.00860595703125, -0.019683837890625, -0.032745361328125, 0.022216796875, -0.005649566650390625, -0.0065155029296875, 0.0006585121154785156, -0.005352020263671875, 0.0007023811340332031, 0.01480865478515625, -0.027496337890625, 0.01025390625, 0.00217437744140625, 0.003887176513671875, 0.000743865966796875, -0.006679534912109375, -0.01800537109375, -0.0068206787109375, -0.03466796875, 0.02911376953125, 0.034454345703125, 0.019775390625, -0.002216339111328125, -0.00562286376953125, 0.0302276611328125, 0.0010976791381835938, 0.036529541015625, 0.005680084228515625, 0.0182647705078125, -0.03662109375, -0.01441192626953125, 0.0139312744140625, -0.01494598388671875, 0.03509521484375, 0.00965118408203125, 0.0029697418212890625, -0.019683837890625, -0.05108642578125, 0.036407470703125, -0.069580078125, 0.0218505859375, 0.0406494140625, 0.01812744140625, 0.000591278076171875, 0.0418701171875, -0.026885986328125, -0.0092315673828125, -0.02593994140625, -0.0133209228515625, -0.005062103271484375, 0.030548095703125, -0.0465087890625, -0.028106689453125, -0.00241851806640625, -0.048248291015625, -0.006988525390625, 0.0175628662109375, -0.014862060546875, 0.0389404296875, 0.01248931884765625, 0.01541900634765625, 0.00943756103515625, 0.0167694091796875, 0.00431060791015625, 0.029144287109375, -0.02215576171875, 0.01052093505859375, 0.0843505859375, 0.01155853271484375, -0.01361083984375, 0.0096588134765625, 0.011566162109375, -0.01255035400390625, -0.005695343017578125, 0.0024051666259765625, 0.0093536376953125, 0.00485992431640625, 0.01546478271484375, -0.0008893013000488281, 0.0193634033203125, -0.0279388427734375, 0.035400390625, -0.042022705078125, -0.01361083984375, 0.0215911865234375, 0.043426513671875, -0.024261474609375, -0.02142333984375, -0.062744140625, -0.0166778564453125, -0.01036834716796875, 0.037811279296875, 0.05615234375, -0.043701171875, 0.0236358642578125, -0.003673553466796875, 0.0546875, 0.0194854736328125, -0.027008056640625, 0.01080322265625, 0.033294677734375, -0.11767578125, -0.06231689453125, 0.028106689453125, -0.02093505859375, 0.01282501220703125, -0.007472991943359375, 0.0223846435546875, -0.001209259033203125, -0.0160675048828125, -0.0100555419921875, -0.0012998580932617188, 0.031341552734375, -0.01340484619140625, -0.0228729248046875, -0.02587890625, 0.0028514862060546875, 0.00006628036499023438, -0.0654296875, 0.0457763671875, 0.01317596435546875, -0.0181884765625, -0.037811279296875, -0.011566162109375, -0.004810333251953125, -0.059417724609375, 0.0132598876953125, 0.060882568359375, 0.029632568359375, 0.016815185546875, -0.0158233642578125, -0.00222015380859375, 0.01334381103515625, -0.0745849609375, -0.00551605224609375, 0.006923675537109375, 0.00689697265625, 0.0435791015625, -0.02044677734375, -0.00428009033203125, 0.019561767578125, -0.0677490234375, -0.024688720703125, 0.06195068359375, -0.006404876708984375, -0.0257110595703125, 0.0116729736328125, -0.003147125244140625, 0.0151214599609375, -0.038055419921875, -0.04693603515625, -0.005558013916015625, -0.0162353515625, -0.0015697479248046875, -0.0013360977172851562, 0.01227569580078125, -0.0150909423828125, -0.018768310546875, 0.0345458984375, 0.0041351318359375, 0.0025157928466796875, 0.021026611328125, 0.05572509765625, -0.050506591796875, -0.03485107421875, -0.0055999755859375, 0.034393310546875, -0.0006122589111328125, -0.0021266937255859375, 0.0267333984375, -0.025543212890625, -0.0049896240234375, -0.0272064208984375, -0.058013916015625, 0.0179595947265625, 0.04486083984375, 0.004985809326171875, -0.0123291015625, 0.0161590576171875, 0.019989013671875, -0.03875732421875, 0.051177978515625, -0.00815582275390625, -0.0258026123046875, 0.052947998046875, -0.036285400390625, 0.036346435546875, -0.0282440185546875, 0.051666259765625, 0.06341552734375, -0.0101776123046875, 0.0000756978988647461, -0.0122833251953125, 0.01148223876953125, 0.006008148193359375, -0.004852294921875, -0.0187530517578125, 0.00598907470703125, -0.0980224609375, -0.03851318359375, 0.00890350341796875, -0.01245880126953125, -0.0059356689453125, -0.0399169921875, -0.0139007568359375, -0.0077972412109375, -0.07952880859375, -0.0286712646484375, -0.05340576171875, -0.0299530029296875, 0.007137298583984375, 0.044281005859375, -0.00836181640625, -0.0011348724365234375, 0.0587158203125, 0.02435302734375, 0.0169677734375, -0.046356201171875, -0.062286376953125, -0.03912353515625, -0.06939697265625, -0.01505279541015625, -0.002193450927734375, 0.0109710693359375, 0.016326904296875, -0.0201416015625, 0.004703521728515625, -0.0341796875, 0.01395416259765625, 0.06719970703125, 0.0010519027709960938, -0.0219879150390625, -0.0183868408203125, -0.0494384765625, -0.00020170211791992188, -0.019195556640625, 0.068115234375, 0.00962066650390625, 0.00902557373046875, 0.021270751953125, 0.00620269775390625, -0.029144287109375, 0.00742340087890625, -0.0313720703125, -0.005603790283203125, -0.026336669921875, -0.033203125, -0.0687255859375, 0.043304443359375, 0.00780487060546875, 0.013275146484375, 0.0282745361328125, -0.0214996337890625, -0.058258056640625, 0.024169921875, -0.0105133056640625, 0.01385498046875, 0.0283660888671875, -0.00579833984375, -0.01459503173828125, -0.0220184326171875, 0.019927978515625, 0.0267791748046875, 0.01690673828125, 0.0251312255859375, -0.032196044921875, -0.00774383544921875, -0.004085540771484375, -0.0286407470703125, -0.0218658447265625, 0.01085662841796875, -0.009307861328125, -0.07342529296875, 0.07269287109375, -0.033905029296875, -0.010101318359375, -0.052337646484375, -0.040191650390625, -0.01062774658203125, 0.128173828125, -0.013275146484375, -0.00567626953125, -0.0024776458740234375, 0.01470184326171875, -0.00904083251953125, -0.0545654296875, -0.053131103515625, -0.01995849609375, -0.0670166015625, -0.01548004150390625, -0.0238800048828125, -0.01465606689453125, 0.002269744873046875, 0.019927978515625, -0.007030487060546875, -0.04150390625, 0.02496337890625, -0.062286376953125, 0.03399658203125, 0.00780487060546875, 0.02789306640625, -0.032196044921875, -0.010986328125, -0.0504150390625, -0.0704345703125, -0.0183563232421875, 0.0108642578125, 0.032196044921875, -0.00597381591796875, -0.007801055908203125, 0.0016527175903320312, 0.0400390625, -0.018646240234375, 0.01200103759765625, -0.01239776611328125, 0.0195770263671875, -0.0024051666259765625, -0.0160369873046875, -0.004009246826171875, -0.01507568359375, -0.043548583984375, -0.0528564453125, -0.00579071044921875, -0.0170440673828125, -0.0204315185546875, 0.003200531005859375, 0.0007677078247070312, 0.005802154541015625, -0.0160064697265625, -0.01251983642578125, -0.054901123046875, 0.006366729736328125, -0.030029296875, -0.01091766357421875, -0.01320648193359375, -0.027374267578125, 0.0279541015625, -0.0157470703125, -0.00780487060546875, 0.0265655517578125, 0.0582275390625, 0.002777099609375, -0.0155029296875, -0.05889892578125, 0.01067352294921875, 0.031036376953125, -0.00977325439453125, 0.053436279296875, 0.031280517578125, -0.01250457763671875, 0.045806884765625, 0.0206451416015625, 0.0005583763122558594, 0.012054443359375, -0.00907135009765625, 0.02178955078125, -0.0171966552734375, -0.0002512931823730469, 0.0235595703125, -0.005924224853515625, 0.0245208740234375, -0.00727081298828125, -0.036346435546875, -0.045257568359375, 0.0504150390625, 0.0193939208984375, 0.006252288818359375, -0.0628662109375, -0.06396484375, 0.031097412109375, -0.04412841796875, 0.016693115234375, -0.01299285888671875, 0.0023937225341796875, 0.032196044921875, 0.036224365234375, -0.00891876220703125, -0.0113525390625, 0.007061004638671875, 0.033172607421875, 0.033233642578125, 0.0158843994140625, 0.0157318115234375, -0.03564453125, -0.023956298828125, 0.11114501953125, 0.02496337890625, -0.05126953125, 0.0259857177734375, -0.026397705078125, -0.00835418701171875, 0.0172271728515625, -0.042999267578125, 0.034271240234375, 0.04425048828125, -0.0269927978515625, 0.0237884521484375, -0.0251922607421875, -0.020355224609375, -0.0517578125, 0.0213165283203125, -0.014129638671875, 0.003871917724609375, -0.012786865234375, 0.08013916015625, -0.00394439697265625, 0.0296630859375, -0.005523681640625, 0.017425537109375, 0.0175628662109375, 0.055023193359375, 0.0145111083984375, -0.0108489990234375, -0.0006542205810546875, 0.02301025390625, 0.005523681640625, -0.02264404296875, 0.031341552734375, 0.0286865234375, 0.036651611328125, 0.06378173828125, -0.01287841796875, -0.0234832763671875, -0.038421630859375, -0.0234832763671875, 0.0067901611328125, -0.025299072265625, -0.035797119140625, -0.0078277587890625, 0.00530242919921875, 0.01049041748046875, -0.01244354248046875, 0.00676727294921875, -0.0178680419921875, -0.01084136962890625, -0.01004791259765625, -0.0158233642578125, -0.008819580078125, -0.0168304443359375, -0.017120361328125, -0.0156707763671875, 0.008087158203125, 0.0025615692138671875, -0.017059326171875, -0.03668212890625, -0.0201263427734375, -0.038055419921875, 0.04656982421875, -0.021026611328125, 0.00447845458984375, -0.003322601318359375, -0.0034198760986328125, -0.0648193359375, 0.02734375, -0.008544921875, -0.0026111602783203125, -0.0811767578125, 0.0150909423828125, -0.037750244140625, 0.00855255126953125, 0.038970947265625, -0.007335662841796875, -0.045989990234375, -0.0290985107421875, 0.005008697509765625, -0.012603759765625, 0.00046133995056152344, -0.0340576171875, -0.02081298828125, 0.00033473968505859375, 0.029266357421875, -0.06158447265625, -0.028289794921875, 0.051055908203125, -0.01568603515625, 0.007160186767578125, -0.01551055908203125, 0.007442474365234375, 0.026123046875, -0.004871368408203125, 0.0272369384765625, -0.040802001953125, -0.0212249755859375, -0.03717041015625, -0.0247802734375, -0.00437164306640625, 0.0231781005859375, 0.00008749961853027344, 0.0236968994140625, -0.0164947509765625, 0.0113983154296875, -0.0196533203125, -0.0246124267578125, -0.048095703125, 0.038299560546875, -0.07147216796875, 0.0023651123046875, 0.07415771484375, -0.021209716796875, -0.044677734375, 0.002788543701171875, 0.0032253265380859375, 0.00589752197265625, 0.046630859375, -0.010986328125, 0.0304412841796875, 0.08001708984375, 0.0282440185546875, 0.053741455078125, 0.022430419921875, 0.0288848876953125, 0.00949859619140625, 0.0182647705078125, 0.026123046875, -0.020843505859375, 0.056610107421875, 0.023712158203125, -0.0097198486328125, 0.056488037109375, -0.034149169921875, 0.00617218017578125, 0.08380126953125, 0.06524658203125, -0.1080322265625, 0.004428863525390625, 0.0144805908203125, -0.00005066394805908203, 0.00989532470703125, -0.0206451416015625, -0.01012420654296875, -0.005001068115234375, 0.032470703125, -0.029693603515625, -0.032623291015625, -0.01739501953125, -0.0014295578002929688, -0.0220947265625, 0.004497528076171875, 0.058380126953125, 0.0280303955078125, -0.00342559814453125, -0.009521484375, 0.004131317138671875, 0.01480865478515625, -0.00044608116149902344, -0.002422332763671875, 0.017181396484375, -0.02496337890625, -0.04608154296875, 0.0101776123046875, -0.018524169921875, -0.0092315673828125, -0.01497650146484375, -0.0014314651489257812, 0.0457763671875, 0.0716552734375, -0.0200653076171875, 0.00640106201171875, 0.038238525390625, 0.0287322998046875, 0.047088623046875, -0.03375244140625, -0.005397796630859375, 0.0169830322265625, -0.0309906005859375, -0.0029296875, -0.0008068084716796875, -0.007274627685546875, 0.0096282958984375, -0.023284912109375, 0.05816650390625, -0.05963134765625, -0.00730133056640625, 0.0164337158203125, -0.02911376953125, 0.0024662017822265625, -0.01345062255859375, 0.0019702911376953125, -0.049224853515625, -0.0150146484375, -0.00011807680130004883, -0.005931854248046875, 0.02349853515625, -0.016571044921875, -0.04644775390625, 0.0928955078125, -0.0103912353515625, 0.004940032958984375, 0.01203155517578125, 0.05413818359375, -0.029296875, 0.03240966796875, -0.015899658203125, 0.01464080810546875, 0.016632080078125, -0.0107574462890625, -0.0036296844482421875, -0.0021419525146484375, -0.0127410888671875, 0.0160980224609375, 0.06488037109375, 0.0275115966796875, -0.053558349609375, 0.0228729248046875, 0.044281005859375, -0.007640838623046875, 0.003200531005859375, 0.0889892578125, -0.004840850830078125, 0.0238494873046875, 0.0200653076171875, -0.02484130859375, 0.0083770751953125, -0.00457763671875, -0.042083740234375, 0.018096923828125, 0.0082550048828125, -0.0023021697998046875, 0.006011962890625, 0.00708770751953125, -0.0263824462890625, 0.005374908447265625, 0.032989501953125, -0.068359375, 0.01055145263671875, 0.0015478134155273438, -0.01171875, 0.01015472412109375, 0.053070068359375, -0.0294647216796875, 0.03839111328125, -0.00872039794921875, -0.017852783203125, 0.01751708984375, 0.0195159912109375, 0.012603759765625, -0.037200927734375, -0.0198822021484375, 0.02398681640625, -0.037200927734375, 0.06011962890625, 0.03167724609375, 0.03912353515625, -0.0311737060546875, -0.004589080810546875, 0.02899169921875, 0.0601806640625, -0.03662109375, -0.037384033203125, 0.01097869873046875, -0.000457763671875, 0.0172271728515625, -0.0152587890625, 0.0201263427734375, -0.00946807861328125, -0.0146026611328125, -0.00861358642578125, 0.01267242431640625, 0.04071044921875, -0.0057830810546875, 0.004619598388671875, 0.0248565673828125, -0.0164642333984375, 0.0287322998046875, -0.01540374755859375, -0.01629638671875, 0.0213623046875, 0.066162109375, 0.01666259765625, 0.053131103515625, -0.030609130859375, -0.017791748046875, 0.01172637939453125, 0.0274810791015625, -0.026824951171875, 0.004199981689453125, -0.03564453125, -0.07781982421875, 0.0325927734375, 0.045501708984375, 0.0004343986511230469, 0.039794921875, 0.03759765625, 0.0435791015625, 0.001758575439453125, -0.01081085205078125, 0.0271759033203125, -0.0196685791015625, 0.0225982666015625, -0.00766754150390625, 0.0125885009765625, 0.0093841552734375, -0.018798828125, -0.03076171875, 0.0292205810546875, 0.0372314453125, 0.0017910003662109375, 0.02044677734375, -0.00743865966796875, -0.0096588134765625, 0.040679931640625, -0.01078033447265625, 0.0289154052734375, 0.0178070068359375, -0.042236328125, -0.01776123046875, -0.0014867782592773438, -0.02117919921875, -0.0097808837890625, 0.031707763671875, -0.002162933349609375, 0.0167999267578125, 0.0010595321655273438, -0.01373291015625, -0.00421905517578125, 0.003688812255859375, 0.0177459716796875, -0.0132598876953125, 0.01483154296875, 0.00019037723541259766, -0.03570556640625, -0.0244293212890625, -0.041717529296875, 0.051788330078125, 0.03533935546875, 0.0950927734375, -0.057464599609375, 0.03643798828125, -0.053009033203125, -0.0038890838623046875, -0.03997802734375, -0.0546875, 0.0147552490234375, -0.0006527900695800781, -0.0174102783203125, 0.0169525146484375, -0.06341552734375, -0.0097198486328125, 0.02508544921875, -0.043853759765625, -0.0006837844848632812, -0.01128387451171875, 0.02655029296875, -0.0189666748046875, 0.038299560546875, -0.0308380126953125, -0.08294677734375, -0.07391357421875, 0.0230865478515625, 0.007175445556640625, 0.0211181640625, -0.044769287109375, 0.03155517578125, 0.0082855224609375, -0.0162506103515625, 0.018951416015625, -0.052734375, 0.047576904296875, 0.042572021484375, -0.048553466796875, -0.0377197265625, 0.0288848876953125, -0.005657196044921875, 0.01215362548828125, -0.01175689697265625, 0.0694580078125, 0.0152130126953125, -0.036224365234375, -0.0298614501953125, -0.0130462646484375, -0.00873565673828125, -0.0258941650390625, -0.003101348876953125, -0.010467529296875, -0.0138092041015625, 0.0180511474609375, -0.039703369140625, -0.039886474609375, -0.039031982421875, -0.00493621826171875, 0.0386962890625, -0.0295257568359375, -0.041748046875, -0.0811767578125, -0.0005316734313964844, 0.0537109375, 0.01413726806640625, -0.06365966796875, 0.0204010009765625, -0.0228271484375, 0.0516357421875, 0.0112762451171875, 0.022857666015625, -0.0203094482421875, -0.00010687112808227539, -0.0391845703125, -0.05731201171875, -0.055450439453125, 0.043212890625, -0.045654296875, 0.0165557861328125, 0.03033447265625, -0.03021240234375, 0.025390625, -0.00868988037109375, -0.0088348388671875, 0.053741455078125, -0.0100860595703125, -0.00612640380859375, -0.0093994140625, 0.01200103759765625, -0.0219879150390625, -0.0281982421875, 0.00665283203125, -0.0142974853515625, -0.00974273681640625, -0.028289794921875, 0.022918701171875, 0.015716552734375, -0.0303192138671875, -0.031524658203125, 0.018280029296875, 0.0015611648559570312, -0.019561767578125, -0.0628662109375, -0.00983428955078125, -0.0034084320068359375, 0.0224456787109375, -0.0158843994140625, -0.039703369140625, -0.037200927734375, 0.05401611328125, 0.034027099609375, 0.0128021240234375, -0.0121002197265625, 0.0631103515625, 0.0098419189453125, 0.0853271484375, 0.07232666015625, -0.003765106201171875, 0.006656646728515625, 0.0024509429931640625, 0.032928466796875, 0.07806396484375, 0.00438690185546875, -0.00919342041015625, -0.0032939910888671875, -0.060394287109375, -0.0022430419921875, -0.044921875, -0.04119873046875, -0.04400634765625, 0.041748046875, 0.04083251953125, 0.01189422607421875, 0.0011882781982421875, -0.039276123046875, -0.03399658203125, -0.0161590576171875, -0.01995849609375, 0.0208892822265625, -0.0771484375, 0.004520416259765625, 0.01378631591796875, -0.0026836395263671875, -0.008453369140625, 0.0009293556213378906, -0.024322509765625, 0.005893707275390625, 0.0164947509765625, -0.020599365234375, -0.0204925537109375, -0.03582763671875, 0.08819580078125, -0.055206298828125, -0.0236663818359375, 0.009765625, 0.03985595703125, 0.0205078125, -0.0274505615234375, 0.0082855224609375, 0.048187255859375, -0.0374755859375, 0.00508880615234375, 0.0189971923828125, 0.0103607177734375, -0.0178070068359375, -0.0167999267578125, -0.01360321044921875, 0.01800537109375, 0.00582122802734375, 0.0325927734375, -0.00643157958984375, 0.043548583984375, 0.0260772705078125, 0.0482177734375, 0.016510009765625, 0.0291900634765625, -0.0238494873046875, 0.081787109375, -0.02978515625, -0.042633056640625, -0.0158233642578125, -0.035552978515625, 0.007720947265625, 0.02996826171875, 0.030792236328125, -0.0227508544921875, 0.003376007080078125, -0.01007080078125, 0.038238525390625, -0.002643585205078125 ]
50a538ce8f3f3aa041ea671a8273428ed2ad399f
Wordpress Stackexchange Q: Sort posts by popularity/page views How can I sort posts by popularity or page views in my template file? I guess I need to count page views first, is there any good plugin to integrate with to sort posts by views or what is the best practice of doing it. A: The WP Postviews plugin is one of the most used to record post views. Then you can sort by amount by; <?php if (function_exists('get_most_viewed')): ?> <ul> <?php get_most_viewed(); ?> </ul> <?php endif; ?> Or pass in the variables to the URL: http://example.com/?v_sortby=views&amp;v_orderby=desc Or even run a custom query that sorts by the post_meta value.
Q: Sort posts by popularity/page views How can I sort posts by popularity or page views in my template file? I guess I need to count page views first, is there any good plugin to integrate with to sort posts by views or what is the best practice of doing it. A: The WP Postviews plugin is one of the most used to record post views. Then you can sort by amount by; <?php if (function_exists('get_most_viewed')): ?> <ul> <?php get_most_viewed(); ?> </ul> <?php endif; ?> Or pass in the variables to the URL: http://example.com/?v_sortby=views&amp;v_orderby=desc Or even run a custom query that sorts by the post_meta value.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:422439", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60276" }
[ 0.0250244140625, -0.01132965087890625, 0.012298583984375, 0.0135498046875, 0.00350189208984375, -0.0174407958984375, 0.049652099609375, -0.0297393798828125, 0.043365478515625, 0.008270263671875, -0.0274505615234375, -0.016082763671875, -0.06414794921875, -0.022857666015625, -0.053253173828125, -0.0426025390625, 0.0307769775390625, 0.00745391845703125, 0.0574951171875, -0.0032958984375, -0.0032100677490234375, 0.0078582763671875, 0.06414794921875, 0.0233001708984375, 0.0287933349609375, 0.003429412841796875, 0.036773681640625, -0.04217529296875, 0.00782012939453125, -0.0299835205078125, 0.022430419921875, 0.01012420654296875, -0.0031890869140625, -0.00934600830078125, 0.052154541015625, -0.03228759765625, 0.02886962890625, 0.0012693405151367188, 0.02728271484375, -0.0026798248291015625, -0.006458282470703125, 0.0207061767578125, 0.00614166259765625, 0.01023101806640625, -0.033294677734375, -0.02191162109375, -0.00917816162109375, -0.024139404296875, 0.0059051513671875, -0.0066986083984375, 0.01220703125, -0.007419586181640625, 0.0256805419921875, -0.048248291015625, -0.01262664794921875, -0.01134490966796875, 0.012969970703125, 0.019683837890625, 0.0244598388671875, -0.035064697265625, -0.045989990234375, 0.017852783203125, 0.0192718505859375, 0.00756072998046875, -0.0203399658203125, 0.0034427642822265625, -0.0094757080078125, 0.0166168212890625, -0.01184844970703125, -0.02825927734375, 0.007617950439453125, -0.01148223876953125, 0.0056915283203125, -0.0167236328125, -0.0102081298828125, -0.0245208740234375, 0.034393310546875, -0.021087646484375, -0.00009626150131225586, 0.005954742431640625, -0.01093292236328125, -0.000043451786041259766, 0.0030231475830078125, -0.01531219482421875, -0.04180908203125, -0.00010246038436889648, -0.0268402099609375, 0.00018453598022460938, -0.03790283203125, -0.036651611328125, -0.0211029052734375, -0.01122283935546875, -0.061920166015625, 0.0308074951171875, -0.0179443359375, 0.007617950439453125, 0.04034423828125, 0.044677734375, -0.00921630859375, -0.0187225341796875, -0.0069427490234375, -0.0361328125, -0.0149078369140625, -0.0117645263671875, -0.0023975372314453125, 0.0250091552734375, 0.01016998291015625, 0.07244873046875, 0.05792236328125, 0.042694091796875, 0.018096923828125, -0.0035572052001953125, 0.02001953125, 0.017974853515625, -0.042327880859375, -0.01399993896484375, -0.0244140625, 0.0022983551025390625, -0.0082244873046875, 0.00396728515625, 0.022491455078125, 0.0350341796875, -0.00826263427734375, -0.0074310302734375, 0.0011949539184570312, -0.01119232177734375, -0.0343017578125, -0.0292816162109375, -0.0257110595703125, 0.0272216796875, -0.019622802734375, 0.005741119384765625, 0.02886962890625, 0.016082763671875, -0.019287109375, -0.0244293212890625, 0.01416778564453125, -0.0625, -0.01264190673828125, -0.00962066650390625, -0.002132415771484375, 0.01206207275390625, 0.043792724609375, -0.02789306640625, 0.04034423828125, -0.00217437744140625, 0.00691986083984375, 0.04998779296875, 0.032623291015625, -0.0180511474609375, 0.0731201171875, -0.036346435546875, 0.005786895751953125, 0.006183624267578125, 0.0211181640625, -0.0015687942504882812, -0.0210723876953125, -0.0034580230712890625, 0.024169921875, 0.007602691650390625, 0.0196075439453125, -0.001735687255859375, 0.0089111328125, -0.01953125, -0.0235748291015625, 0.0017528533935546875, -0.044677734375, -0.0017518997192382812, 0.020416259765625, 0.00040459632873535156, 0.03271484375, -0.01898193359375, -0.0042724609375, 0.007785797119140625, -0.0021572113037109375, 0.02001953125, 0.0016469955444335938, -0.039703369140625, 0.01384735107421875, 0.021087646484375, -0.019500732421875, -0.0234832763671875, -0.0174102783203125, 0.009490966796875, -0.029388427734375, 0.055389404296875, 0.0106658935546875, 0.01605224609375, -0.02239990234375, -0.0038604736328125, 0.03790283203125, 0.060546875, -0.0180816650390625, 0.09759521484375, 0.0164642333984375, -0.041412353515625, -0.01273345947265625, 0.0274658203125, -0.00677490234375, -0.0928955078125, -0.04425048828125, 0.01097869873046875, -0.0191192626953125, 0.03350830078125, -0.009246826171875, 0.00211334228515625, -0.00885772705078125, 0.024383544921875, -0.0008420944213867188, 0.032958984375, 0.0140533447265625, 0.0102386474609375, -0.033721923828125, -0.00351715087890625, -0.0117034912109375, 0.008331298828125, 0.0238037109375, -0.007022857666015625, -0.01849365234375, 0.01534271240234375, -0.0215606689453125, -0.006649017333984375, -0.036376953125, 0.05560302734375, 0.0107879638671875, -0.0014476776123046875, -0.04473876953125, -0.02001953125, -0.062408447265625, -0.00037789344787597656, -0.05877685546875, 0.0811767578125, 0.00940704345703125, 0.069091796875, -0.022613525390625, -0.04815673828125, -0.0264434814453125, -0.050079345703125, 0.040679931640625, 0.05255126953125, 0.042572021484375, 0.0088653564453125, 0.016021728515625, 0.025482177734375, 0.0308837890625, -0.02105712890625, 0.0240936279296875, -0.0153350830078125, 0.0193634033203125, 0.0797119140625, 0.025634765625, 0.0213775634765625, -0.00762939453125, -0.039703369140625, 0.0238800048828125, 0.013092041015625, 0.0291595458984375, 0.05194091796875, -0.045867919921875, 0.03314208984375, -0.0206451416015625, 0.044158935546875, 0.0035533905029296875, 0.011322021484375, 0.03656005859375, -0.0174560546875, 0.0208892822265625, 0.00864410400390625, -0.02655029296875, -0.00759124755859375, 0.0235137939453125, 0.0026340484619140625, 0.016143798828125, -0.00879669189453125, -0.001979827880859375, 0.007083892822265625, -0.04852294921875, 0.01338958740234375, 0.0455322265625, -0.0172119140625, -0.0185546875, -0.022857666015625, -0.0272979736328125, 0.00159454345703125, -0.005237579345703125, -0.054962158203125, 0.0212249755859375, 0.051727294921875, 0.015869140625, 0.0261993408203125, 0.01123809814453125, 0.06134033203125, -0.003505706787109375, 0.050567626953125, 0.01291656494140625, 0.01629638671875, -0.017333984375, -0.08258056640625, 0.04266357421875, -0.061370849609375, 0.066650390625, 0.0816650390625, -0.00904083251953125, 0.0188446044921875, 0.0135040283203125, 0.02423095703125, 0.01143646240234375, 0.021636962890625, 0.01100921630859375, -0.01495361328125, -0.0300445556640625, 0.0005702972412109375, 0.029998779296875, 0.0296173095703125, -0.005718231201171875, -0.0308074951171875, -0.0014810562133789062, 0.0269012451171875, -0.07720947265625, -0.09033203125, 0.0064849853515625, -0.0794677734375, -0.0266571044921875, -0.0009984970092773438, -0.0604248046875, -0.002033233642578125, 0.030517578125, -0.0025177001953125, -0.030059814453125, 0.004062652587890625, -0.052490234375, -0.033203125, -0.048004150390625, 0.022613525390625, -0.0048065185546875, 0.0053253173828125, 0.0035114288330078125, 0.0615234375, 0.004459381103515625, -0.037017822265625, -0.01508331298828125, -0.0246124267578125, -0.02606201171875, -0.004573822021484375, 0.03289794921875, -0.029022216796875, -0.0445556640625, 0.031768798828125, 0.07275390625, 0.0180206298828125, -0.042144775390625, 0.00025916099548339844, -0.0253448486328125, -0.01983642578125, -0.019500732421875, 0.0101470947265625, 0.036529541015625, -0.0161895751953125, -0.00775146484375, -0.05535888671875, 0.003147125244140625, 0.0020503997802734375, -0.0190887451171875, -0.0273590087890625, -0.01126861572265625, -0.005336761474609375, -0.028564453125, 0.0239715576171875, 0.0161590576171875, -0.0006775856018066406, -0.0135498046875, -0.01090240478515625, -0.0157623291015625, 0.0156707763671875, 0.034576416015625, 0.01531982421875, -0.00627899169921875, -0.0352783203125, 0.039764404296875, -0.0033740997314453125, 0.0026950836181640625, -0.0159454345703125, 0.03179931640625, -0.0131072998046875, -0.03131103515625, 0.062469482421875, 0.041656494140625, 0.0187835693359375, -0.0219879150390625, -0.0648193359375, -0.0106353759765625, 0.0963134765625, -0.0266571044921875, -0.017120361328125, 0.006526947021484375, -0.01271820068359375, 0.0113372802734375, 0.0263671875, -0.048583984375, -0.0203094482421875, -0.0767822265625, 0.01493072509765625, -0.0031108856201171875, -0.0227813720703125, -0.06121826171875, 0.049407958984375, -0.081787109375, -0.016510009765625, 0.04779052734375, 0.01093292236328125, 0.01126861572265625, 0.024871826171875, -0.0033130645751953125, 0.012420654296875, -0.0504150390625, 0.016082763671875, -0.0034503936767578125, 0.011016845703125, -0.0234222412109375, -0.00495147705078125, 0.00809478759765625, -0.005001068115234375, -0.0216522216796875, 0.0027065277099609375, -0.0097198486328125, 0.020721435546875, -0.0018138885498046875, 0.01163482666015625, -0.0209197998046875, 0.01788330078125, 0.00464630126953125, -0.0191497802734375, 0.026153564453125, -0.04473876953125, -0.07147216796875, -0.0345458984375, -0.048736572265625, 0.0255279541015625, -0.034088134765625, -0.0302734375, -0.05145263671875, -0.042938232421875, -0.0207061767578125, 0.0264434814453125, 0.0025844573974609375, -0.00948333740234375, -0.06317138671875, -0.0731201171875, 0.041107177734375, 0.033416748046875, -0.01470184326171875, 0.008209228515625, 0.0784912109375, 0.0054473876953125, -0.022247314453125, -0.09173583984375, -0.034515380859375, 0.0202178955078125, 0.02520751953125, -0.0036640167236328125, -0.005115509033203125, -0.029876708984375, 0.026763916015625, 0.0004374980926513672, 0.0035076141357421875, -0.003505706787109375, 0.0244293212890625, -0.0025310516357421875, -0.01360321044921875, 0.006526947021484375, -0.00078582763671875, 0.03076171875, 0.034820556640625, -0.009796142578125, -0.022705078125, -0.0194091796875, 0.040802001953125, -0.0146484375, 0.0269012451171875, -0.026763916015625, -0.039581298828125, 0.01419830322265625, -0.072265625, 0.049163818359375, -0.0000527501106262207, -0.0172882080078125, 0.029754638671875, 0.01416015625, -0.0138702392578125, 0.036468505859375, 0.03948974609375, 0.0106658935546875, 0.00443267822265625, 0.0316162109375, -0.0207672119140625, -0.00926971435546875, 0.005474090576171875, 0.058319091796875, -0.011474609375, -0.026824951171875, -0.0462646484375, -0.041015625, -0.01593017578125, 0.002445220947265625, -0.0006694793701171875, 0.031524658203125, -0.00359344482421875, -0.01235198974609375, -0.0072479248046875, -0.01922607421875, -0.0228271484375, -0.048736572265625, 0.01641845703125, 0.005939483642578125, -0.022125244140625, -0.01351165771484375, 0.036895751953125, -0.033203125, 0.00850677490234375, 0.01013946533203125, 0.023193359375, 0.03887939453125, 0.00945281982421875, 0.01947021484375, -0.01250457763671875, -0.00641632080078125, -0.0228118896484375, 0.035186767578125, -0.004512786865234375, -0.00901031494140625, 0.007160186767578125, -0.0146026611328125, -0.040313720703125, -0.0058746337890625, 0.0552978515625, 0.0176239013671875, -0.035552978515625, 0.004642486572265625, 0.027008056640625, -0.01381683349609375, -0.0170135498046875, 0.00792694091796875, 0.0186309814453125, 0.031219482421875, 0.0176544189453125, -0.0143890380859375, -0.004852294921875, -0.0035858154296875, -0.0140380859375, 0.01080322265625, -0.04742431640625, -0.051025390625, -0.0107421875, 0.035552978515625, 0.0357666015625, -0.0701904296875, -0.047515869140625, -0.02008056640625, -0.0129241943359375, 0.07672119140625, -0.01279449462890625, 0.06573486328125, -0.02838134765625, -0.0234832763671875, 0.021209716796875, 0.01451873779296875, 0.0230865478515625, -0.005916595458984375, -0.04876708984375, 0.004856109619140625, -0.042572021484375, -0.0290985107421875, -0.035797119140625, -0.0268402099609375, -0.059356689453125, 0.01190185546875, 0.00437164306640625, 0.020416259765625, -0.013214111328125, -0.0350341796875, -0.01158905029296875, -0.027191162109375, -0.0006747245788574219, -0.038299560546875, 0.002658843994140625, 0.0758056640625, -0.0224151611328125, 0.0623779296875, 0.0078277587890625, 0.041900634765625, -0.0128173828125, -0.0268402099609375, 0.0242156982421875, -0.01290130615234375, -0.042694091796875, -0.01163482666015625, -0.0249786376953125, 0.013641357421875, 0.06573486328125, -0.01385498046875, 0.039093017578125, -0.0361328125, 0.01495361328125, -0.0225067138671875, 0.00403594970703125, -0.054534912109375, -0.00354766845703125, 0.00960540771484375, -0.0078582763671875, -0.0343017578125, 0.0181121826171875, -0.0211944580078125, 0.01105499267578125, 0.0309295654296875, -0.005496978759765625, -0.03857421875, -0.021026611328125, 0.007411956787109375, 0.06829833984375, 0.034149169921875, 0.04931640625, 0.0203857421875, 0.025238037109375, -0.0008854866027832031, -0.008819580078125, 0.03759765625, -0.0153350830078125, 0.058135986328125, -0.01220703125, -0.006011962890625, 0.0200347900390625, -0.040435791015625, -0.010406494140625, 0.049591064453125, 0.006000518798828125, -0.06329345703125, -0.00804901123046875, -0.00809478759765625, -0.005458831787109375, 0.0017652511596679688, -0.004901885986328125, 0.0290374755859375, 0.0056304931640625, 0.05450439453125, -0.01013946533203125, -0.0029754638671875, 0.023223876953125, -0.046234130859375, 0.0030155181884765625, 0.00211334228515625, 0.02593994140625, -0.0064697265625, -0.048736572265625, -0.031951904296875, 0.0161285400390625, -0.0211181640625, -0.03900146484375, 0.01551055908203125, -0.0122833251953125, 0.005893707275390625, -0.0244598388671875, 0.050323486328125, -0.0107269287109375, 0.01165008544921875, 0.0008206367492675781, -0.016357421875, -0.0008959770202636719, 0.0521240234375, -0.0294342041015625, -0.005443572998046875, 0.042144775390625, -0.058349609375, 0.028076171875, -0.003108978271484375, 0.005458831787109375, -0.01495361328125, 0.0192108154296875, -0.0026836395263671875, -0.0081634521484375, -0.03240966796875, -0.02471923828125, -0.026763916015625, 0.0792236328125, -0.0303955078125, -0.01277923583984375, 0.0220794677734375, 0.06488037109375, -0.0220184326171875, 0.020660400390625, 0.00809478759765625, -0.008331298828125, 0.00788116455078125, 0.01247406005859375, -0.01206207275390625, -0.0199127197265625, 0.0033969879150390625, -0.06353759765625, 0.08721923828125, 0.0199432373046875, 0.023895263671875, -0.004230499267578125, 0.040802001953125, -0.0137786865234375, 0.02471923828125, -0.0177764892578125, 0.0714111328125, -0.031524658203125, 0.073486328125, -0.037628173828125, -0.0004944801330566406, 0.034149169921875, 0.042449951171875, 0.02764892578125, 0.0010595321655273438, -0.04522705078125, 0.0102081298828125, 0.0916748046875, 0.038421630859375, 0.035919189453125, 0.035400390625, -0.0079345703125, 0.036224365234375, 0.023223876953125, -0.066650390625, 0.020721435546875, -0.012176513671875, 0.005352020263671875, 0.020965576171875, 0.01338958740234375, 0.01032257080078125, -0.0208892822265625, -0.0157012939453125, -0.07452392578125, 0.0014896392822265625, 0.03363037109375, 0.044281005859375, 0.03680419921875, 0.0205078125, 0.03753662109375, -0.06982421875, -0.099365234375, 0.0015735626220703125, 0.0301513671875, 0.0056610107421875, 0.034515380859375, 0.0230865478515625, 0.0279083251953125, 0.004970550537109375, -0.041351318359375, 0.02606201171875, 0.0003330707550048828, -0.0736083984375, 0.0538330078125, -0.00885009765625, 0.00988006591796875, -0.09979248046875, -0.03314208984375, 0.0219268798828125, 0.0704345703125, -0.027496337890625, -0.0106201171875, 0.01457977294921875, -0.0129241943359375, -0.0211639404296875, -0.0462646484375, -0.04217529296875, -0.0194549560546875, 0.0009355545043945312, -0.041748046875, -0.04058837890625, 0.017669677734375, 0.0278472900390625, -0.0032138824462890625, -0.0302886962890625, 0.0226287841796875, -0.058349609375, -0.0139617919921875, -0.00749969482421875, 0.0093841552734375, 0.0213623046875, 0.0133514404296875, 0.032867431640625, -0.0267791748046875, -0.003742218017578125, -0.025665283203125, 0.035400390625, -0.008544921875, 0.03155517578125, -0.04022216796875, -0.02679443359375, 0.003276824951171875, 0.0478515625, -0.0145263671875, 0.0207977294921875, 0.039398193359375, 0.050048828125, -0.0008211135864257812, -0.035003662109375, 0.043060302734375, -0.01314544677734375, -0.0128021240234375, -0.0201568603515625, -0.033599853515625, -0.0189208984375, -0.0245361328125, 0.0097198486328125, -0.01055908203125, 0.019287109375, -0.00015294551849365234, 0.0222320556640625, 0.01068115234375, -0.03466796875, 0.037567138671875, -0.0025959014892578125, 0.071533203125, 0.01763916015625, -0.04345703125, 0.0007495880126953125, -0.05230712890625, -0.04205322265625, 0.02691650390625, 0.030487060546875, -0.0194549560546875, 0.034393310546875, -0.01056671142578125, -0.00778961181640625, 0.044189453125, -0.044677734375, 0.01406097412109375, 0.0185699462890625, 0.002689361572265625, -0.006622314453125, -0.03985595703125, -0.0447998046875, -0.032989501953125, 0.068359375, 0.049835205078125, 0.049285888671875, -0.0159454345703125, 0.046600341796875, -0.00865936279296875, -0.0169677734375, 0.0025768280029296875, -0.018646240234375, 0.0292205810546875, -0.00676727294921875, -0.0275115966796875, -0.020477294921875, 0.0018482208251953125, 0.00787353515625, 0.0325927734375, -0.022796630859375, -0.04046630859375, -0.0022335052490234375, 0.02044677734375, 0.0194244384765625, 0.01158905029296875, -0.02923583984375, -0.00634765625, -0.04290771484375, -0.034332275390625, 0.0193939208984375, -0.01451873779296875, -0.01297760009765625, 0.03521728515625, -0.0037708282470703125, 0.00054931640625, -0.0006475448608398438, -0.002666473388671875, 0.0007395744323730469, 0.0304412841796875, -0.02435302734375, -0.0166778564453125, 0.0618896484375, 0.004497528076171875, 0.01479339599609375, 0.025665283203125, 0.02947998046875, 0.045806884765625, -0.072509765625, -0.0214996337890625, -0.0416259765625, 0.01432037353515625, -0.028961181640625, -0.008941650390625, -0.050811767578125, 0.023651123046875, -0.033843994140625, 0.0095977783203125, -0.01222991943359375, -0.0159759521484375, -0.004932403564453125, 0.00937652587890625, 0.01345062255859375, 0.0100860595703125, -0.006839752197265625, -0.0029277801513671875, 0.002552032470703125, -0.0183868408203125, -0.00003838539123535156, 0.0111846923828125, -0.0263671875, -0.04248046875, 0.0003311634063720703, -0.016845703125, 0.010528564453125, 0.04595947265625, 0.00705718994140625, 0.0111083984375, -0.011383056640625, -0.004856109619140625, -0.0029315948486328125, 0.031890869140625, 0.04168701171875, -0.03515625, -0.00617218017578125, 0.032989501953125, 0.02099609375, 0.0843505859375, 0.01055908203125, -0.00665283203125, 0.037628173828125, -0.0007801055908203125, -0.018157958984375, -0.0733642578125, -0.0024623870849609375, -0.050079345703125, 0.01467132568359375, -0.0248870849609375, 0.0275421142578125, 0.04656982421875, -0.0187530517578125, -0.112060546875, 0.0875244140625, -0.05206298828125, -0.04193115234375, -0.06353759765625, -0.00899505615234375, 0.0271453857421875, -0.002239227294921875, -0.0142059326171875, -0.0167083740234375, -0.08575439453125, 0.0172882080078125, 0.011199951171875, 0.0435791015625, 0.0180206298828125, 0.0270843505859375, -0.04193115234375, 0.004955291748046875, -0.01849365234375, -0.01552581787109375, -0.013275146484375, 0.00910186767578125, -0.0164642333984375, 0.0129547119140625, -0.035919189453125, -0.035919189453125, 0.0015707015991210938, 0.0216217041015625, 0.01218414306640625, -0.0023899078369140625, -0.020599365234375, -0.01006317138671875, 0.0189361572265625, 0.0137176513671875, 0.00759124755859375, -0.01337432861328125, -0.0025482177734375, -0.06634521484375, -0.037017822265625, -0.04541015625, 0.0168609619140625, -0.0850830078125, -0.0166015625, 0.0299224853515625, -0.007335662841796875, -0.0032062530517578125, -0.018829345703125, -0.03167724609375, -0.021484375, -0.0157928466796875, 0.0096588134765625, -0.03173828125, 0.06451416015625, 0.0192108154296875, -0.03497314453125, -0.018798828125, 0.017822265625, -0.040069580078125, -0.01387786865234375, -0.0013294219970703125, 0.03350830078125, 0.006191253662109375, -0.018951416015625, 0.00829315185546875, 0.029449462890625, 0.028472900390625, -0.00970458984375, -0.02435302734375, -0.0113067626953125, 0.03125, 0.0169525146484375, 0.0215301513671875, -0.0325927734375, 0.021575927734375, 0.006038665771484375, 0.0281829833984375, 0.0025882720947265625, 0.0279541015625, -0.003963470458984375, 0.0178375244140625, -0.036651611328125, -0.00615692138671875, -0.007305145263671875, -0.020782470703125, -0.0100250244140625, 0.01995849609375, -0.054779052734375, -0.0121307373046875, -0.0005216598510742188, 0.01953125, -0.0240478515625, 0.006183624267578125 ]
b001ebea5ad1b2f871e134246615f4b3e96351a1
Wordpress Stackexchange Q: wp query to get child pages of current page Can anyone please help me to with the wp_query. I am making a template file/loop to create and archive page of the current page children pages. This query needs to be automatic as I am using in on few pages. This is my query below, but it just returns my posts instead of child pages. <?php $parent = new WP_Query(array( 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'menu_order', 'posts_per_page' => -1 )); if ($parent->have_posts()) : ?> <?php while ($parent->have_posts()) : $parent->the_post(); ?> <div id="parent-<?php the_ID(); ?>" class="parent-page"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <p><?php the_advanced_excerpt(); ?></p> </div> <?php endwhile; ?> <?php unset($parent); endif; wp_reset_postdata(); ?> Thanks in advance for any help. Josh A: I know this is a very old question, but since I landed on it, others might as well. Wordpress has a very simple solution for listing pages, where you can add some arguments as well. This is all you will need to display a page's children: wp_list_pages(array( 'child_of' => $post->ID, 'title_li' => '' )) Look at the reference page for wp_list_pages for all options you can apply.
Q: wp query to get child pages of current page Can anyone please help me to with the wp_query. I am making a template file/loop to create and archive page of the current page children pages. This query needs to be automatic as I am using in on few pages. This is my query below, but it just returns my posts instead of child pages. <?php $parent = new WP_Query(array( 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'menu_order', 'posts_per_page' => -1 )); if ($parent->have_posts()) : ?> <?php while ($parent->have_posts()) : $parent->the_post(); ?> <div id="parent-<?php the_ID(); ?>" class="parent-page"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <p><?php the_advanced_excerpt(); ?></p> </div> <?php endwhile; ?> <?php unset($parent); endif; wp_reset_postdata(); ?> Thanks in advance for any help. Josh A: I know this is a very old question, but since I landed on it, others might as well. Wordpress has a very simple solution for listing pages, where you can add some arguments as well. This is all you will need to display a page's children: wp_list_pages(array( 'child_of' => $post->ID, 'title_li' => '' )) Look at the reference page for wp_list_pages for all options you can apply. A: You have to change child_of to post_parent and also add post_type => 'page': WordPress codex Wp_query Post & Page Parameters <?php $args = array( 'post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'menu_order' ); $parent = new WP_Query( $args ); if ( $parent->have_posts() ) : ?> <?php while ( $parent->have_posts() ) : $parent->the_post(); ?> <div id="parent-<?php the_ID(); ?>" class="parent-page"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <p><?php the_advanced_excerpt(); ?></p> </div> <?php endwhile; ?> <?php endif; wp_reset_postdata(); ?> A: Rewriting this to a function in functions.php you need to add global $post; function page_summary() { global $post; $args = array( 'post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'menu_order' ); $parent = new WP_Query( $args ); if ( $parent->have_posts() ) : while ( $parent->have_posts() ) : $parent->the_post(); ?> <div id="parent-<?php the_ID(); ?>" class="parent-page"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> </div> <?php endwhile; endif; wp_reset_postdata(); } A: Though OP asked specifically for a wp_query, this also works: get_pages('child_of='.$post->ID.'&sort_column=menu_order');
wordpress
{ "language": "en", "length": 368, "provenance": "stackexchange_00019.jsonl.gz:422443", "question_score": "54", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60292" }
[ 0.0244903564453125, 0.01064300537109375, -0.0291290283203125, -0.00827789306640625, 0.02630615234375, -0.0305633544921875, 0.03326416015625, -0.002109527587890625, 0.01227569580078125, 0.00675201416015625, -0.057708740234375, -0.02239990234375, -0.025909423828125, -0.027496337890625, -0.0098419189453125, -0.053497314453125, 0.05511474609375, -0.049407958984375, 0.022552490234375, 0.01071929931640625, -0.010986328125, 0.03509521484375, 0.057281494140625, 0.03472900390625, 0.0252532958984375, -0.016387939453125, 0.04693603515625, -0.01351165771484375, 0.00888824462890625, -0.033843994140625, 0.010223388671875, 0.003997802734375, 0.0264129638671875, -0.0244598388671875, 0.031524658203125, -0.030242919921875, 0.0184783935546875, -0.0292816162109375, -0.0042877197265625, 0.031890869140625, 0.0163726806640625, -0.0085601806640625, -0.006313323974609375, -0.0012836456298828125, -0.0251922607421875, -0.0268707275390625, 0.008026123046875, -0.0176849365234375, 0.0183563232421875, -0.0033245086669921875, 0.024261474609375, 0.0213470458984375, 0.0235443115234375, -0.006656646728515625, -0.0180816650390625, 0.0029239654541015625, 0.0457763671875, -0.039154052734375, 0.039459228515625, -0.06561279296875, -0.053924560546875, -0.0186920166015625, 0.0535888671875, 0.0200347900390625, 0.0022106170654296875, 0.003589630126953125, 0.03326416015625, 0.032318115234375, -0.0335693359375, -0.00762939453125, 0.0187835693359375, -0.0135955810546875, -0.004962921142578125, -0.0294647216796875, 0.0008287429809570312, -0.0024356842041015625, -0.01369476318359375, -0.0276031494140625, -0.0031414031982421875, 0.0303497314453125, -0.02838134765625, 0.01080322265625, -0.129150390625, 0.004840850830078125, -0.0016088485717773438, 0.0038089752197265625, -0.01308441162109375, 0.0013341903686523438, -0.05426025390625, -0.0016813278198242188, -0.03515625, -0.0205078125, -0.00551605224609375, -0.013275146484375, -0.026336669921875, -0.0097198486328125, 0.053985595703125, 0.08489990234375, -0.032867431640625, -0.00945281982421875, -0.013702392578125, -0.0244903564453125, -0.00811767578125, -0.035308837890625, 0.0307159423828125, 0.008331298828125, -0.00848388671875, 0.01132965087890625, 0.07379150390625, 0.0367431640625, 0.01499176025390625, 0.04766845703125, -0.019287109375, -0.0237274169921875, -0.03900146484375, 0.04742431640625, -0.007843017578125, -0.037017822265625, 0.01015472412109375, -0.01224517822265625, -0.01493072509765625, 0.004337310791015625, -0.00479888916015625, -0.00556182861328125, 0.01540374755859375, 0.00714111328125, -0.00868988037109375, -0.0223846435546875, 0.032470703125, 0.0309295654296875, -0.037506103515625, -0.00421905517578125, 0.05157470703125, 0.0230255126953125, 0.0079345703125, -0.01490020751953125, 0.0161590576171875, -0.0213623046875, 0.03863525390625, -0.0210418701171875, 0.0171356201171875, -0.04266357421875, 0.000029742717742919922, 0.02703857421875, 0.0006985664367675781, 0.006458282470703125, 0.01448822021484375, 0.0259857177734375, 0.0015926361083984375, -0.0032958984375, -0.003803253173828125, -0.0040130615234375, 0.04248046875, -0.0219879150390625, -0.0133819580078125, -0.06005859375, -0.00176239013671875, -0.035064697265625, 0.0240936279296875, -0.033966064453125, 0.02777099609375, 0.01165008544921875, 0.04278564453125, -0.02008056640625, -0.043121337890625, -0.00910186767578125, -0.074951171875, -0.034515380859375, 0.0233001708984375, -0.02020263671875, 0.06524658203125, -0.06378173828125, -0.0004820823669433594, -0.0020008087158203125, -0.002887725830078125, 0.020355224609375, -0.04150390625, -0.0250396728515625, 0.0310516357421875, 0.0181884765625, 0.0052947998046875, -0.0026149749755859375, -0.0292205810546875, 0.044708251953125, -0.037078857421875, 0.037933349609375, 0.01087188720703125, 0.0335693359375, -0.01428985595703125, 0.0111541748046875, 0.03912353515625, 0.03302001953125, -0.0673828125, 0.057525634765625, 0.0379638671875, -0.0120086669921875, -0.04351806640625, -0.0210113525390625, -0.009185791015625, -0.043426513671875, -0.00759124755859375, -0.0089874267578125, -0.01424407958984375, -0.0018186569213867188, -0.07513427734375, 0.0025634765625, -0.028839111328125, 0.03607177734375, 0.031494140625, 0.00611114501953125, 0.017059326171875, 0.003841400146484375, -0.019073486328125, -0.031097412109375, -0.0589599609375, 0.01708984375, -0.0157012939453125, 0.0022258758544921875, -0.004787445068359375, 0.0194854736328125, -0.0173797607421875, -0.002307891845703125, -0.0223236083984375, 0.007366180419921875, 0.0927734375, -0.02850341796875, -0.0224456787109375, -0.052520751953125, 0.03460693359375, -0.0077362060546875, -0.087890625, 0.068603515625, 0.018341064453125, 0.0235595703125, -0.0240478515625, -0.00022304058074951172, -0.0098419189453125, -0.0239715576171875, -0.005733489990234375, 0.0301513671875, 0.028839111328125, 0.047119140625, 0.00458526611328125, -0.01013946533203125, 0.0501708984375, -0.057525634765625, 0.0003559589385986328, -0.0105743408203125, 0.0087432861328125, 0.04541015625, 0.0298004150390625, -0.006870269775390625, 0.01174163818359375, 0.029510498046875, 0.022979736328125, 0.010711669921875, -0.00029659271240234375, 0.0428466796875, -0.03729248046875, 0.0010013580322265625, 0.0005102157592773438, 0.0013446807861328125, 0.0018835067749023438, -0.007598876953125, 0.0312347412109375, 0.01430511474609375, 0.026275634765625, 0.01343536376953125, 0.0038604736328125, -0.0031261444091796875, -0.014495849609375, -0.042816162109375, 0.00434112548828125, 0.00972747802734375, -0.061370849609375, -0.01947021484375, -0.01776123046875, 0.00762939453125, 0.00154876708984375, -0.018035888671875, 0.0131072998046875, 0.044708251953125, 0.01161956787109375, -0.00923919677734375, -0.0194244384765625, -0.041778564453125, 0.0023326873779296875, 0.040252685546875, -0.0117340087890625, 0.0174102783203125, 0.043548583984375, 0.0299224853515625, -0.046600341796875, 0.05426025390625, -0.012603759765625, 0.0043182373046875, 0.048370361328125, -0.02044677734375, 0.0255279541015625, -0.018829345703125, 0.0679931640625, 0.04522705078125, -0.026519775390625, 0.0246734619140625, -0.0036525726318359375, 0.0011310577392578125, 0.007297515869140625, 0.001171112060546875, -0.0044097900390625, -0.00557708740234375, -0.01306915283203125, 0.049163818359375, 0.0308990478515625, 0.0692138671875, -0.0004603862762451172, -0.046966552734375, -0.00215911865234375, 0.032257080078125, -0.074462890625, -0.09942626953125, 0.01180267333984375, -0.0838623046875, -0.02130126953125, -0.0057373046875, -0.0413818359375, -0.0036106109619140625, 0.0228118896484375, 0.00818634033203125, -0.00839996337890625, -0.02447509765625, -0.0755615234375, -0.06451416015625, -0.08489990234375, -0.0008335113525390625, -0.0044097900390625, 0.01036834716796875, -0.00400543212890625, 0.06298828125, 0.00397491455078125, -0.0660400390625, -0.043304443359375, 0.0273590087890625, -0.03131103515625, -0.0261383056640625, 0.003406524658203125, 0.025634765625, -0.0078277587890625, 0.0244903564453125, -0.0169219970703125, 0.009918212890625, -0.01727294921875, -0.025848388671875, -0.0196685791015625, 0.0116729736328125, 0.005962371826171875, -0.02777099609375, 0.0209808349609375, 0.0330810546875, 0.003803253173828125, -0.0242156982421875, -0.06494140625, -0.0190582275390625, -0.073974609375, 0.019927978515625, 0.043365478515625, 0.01953125, -0.0232086181640625, 0.0097503662109375, 0.0052490234375, -0.012237548828125, 0.0291900634765625, -0.0203857421875, 0.031585693359375, 0.005649566650390625, 0.006488800048828125, -0.020599365234375, 0.061981201171875, 0.00142669677734375, 0.0133056640625, 0.0265045166015625, 0.0238189697265625, 0.01023101806640625, -0.018646240234375, -0.0241241455078125, -0.07183837890625, 0.056732177734375, 0.00743865966796875, 0.0007386207580566406, -0.01617431640625, -0.029449462890625, 0.0140228271484375, 0.08734130859375, -0.05010986328125, -0.0193634033203125, -0.0259857177734375, 0.01007080078125, -0.03704833984375, -0.045684814453125, -0.028900146484375, -0.002307891845703125, -0.055572509765625, 0.01001739501953125, -0.0178070068359375, -0.01554107666015625, -0.01540374755859375, 0.00580596923828125, -0.03240966796875, -0.0278472900390625, 0.048614501953125, -0.013671875, -0.0076751708984375, 0.00762176513671875, -0.0215301513671875, -0.01139068603515625, -0.022674560546875, -0.01224517822265625, -0.0869140625, -0.025848388671875, 0.006011962890625, 0.07177734375, 0.0217132568359375, -0.050811767578125, -0.0161895751953125, 0.052032470703125, 0.02978515625, 0.0294342041015625, 0.0202178955078125, -0.009796142578125, -0.0010623931884765625, -0.01264190673828125, 0.02752685546875, -0.04986572265625, -0.024810791015625, -0.03411865234375, 0.036376953125, -0.0288543701171875, -0.05303955078125, -0.03863525390625, -0.0421142578125, 0.01262664794921875, -0.05609130859375, -0.0269622802734375, -0.019378662109375, 0.0157012939453125, -0.004180908203125, -0.01163482666015625, 0.0018072128295898438, -0.08294677734375, 0.03790283203125, 0.04193115234375, -0.03369140625, 0.009918212890625, 0.034271240234375, 0.0188140869140625, -0.038055419921875, -0.06048583984375, -0.0304718017578125, 0.01107025146484375, -0.01381683349609375, 0.05517578125, 0.01407623291015625, -0.0045013427734375, 0.045257568359375, -0.0045013427734375, 0.00848388671875, 0.0143585205078125, 0.03302001953125, 0.0035800933837890625, -0.016937255859375, 0.013641357421875, 0.00597381591796875, -0.036468505859375, 0.018310546875, -0.0233306884765625, -0.0244903564453125, -0.009765625, 0.06036376953125, -0.011199951171875, 0.029327392578125, -0.04345703125, -0.022308349609375, -0.00759124755859375, 0.047332763671875, 0.0211639404296875, 0.053802490234375, -0.0141754150390625, 0.0218658447265625, 0.0086517333984375, 0.007476806640625, 0.0179290771484375, 0.0716552734375, 0.0241241455078125, 0.0791015625, -0.034332275390625, 0.01128387451171875, -0.0197906494140625, 0.003261566162109375, 0.037933349609375, -0.00879669189453125, -0.046783447265625, 0.026336669921875, -0.0193328857421875, -0.0163116455078125, 0.0184173583984375, 0.031646728515625, 0.035430908203125, 0.0187225341796875, -0.0029506683349609375, -0.02459716796875, -0.0011854171752929688, 0.010528564453125, -0.039794921875, -0.0157470703125, 0.0034389495849609375, -0.006694793701171875, -0.0080413818359375, 0.06768798828125, -0.0321044921875, 0.05157470703125, -0.01251220703125, -0.0126190185546875, -0.01425933837890625, 0.0455322265625, 0.012542724609375, -0.01422119140625, 0.037261962890625, 0.006175994873046875, 0.055938720703125, -0.0228729248046875, -0.0200958251953125, 0.040191650390625, 0.046905517578125, -0.00794219970703125, -0.0202789306640625, 0.002899169921875, -0.0233306884765625, -0.018768310546875, 0.048675537109375, 0.033843994140625, -0.00563812255859375, -0.0340576171875, -0.00640106201171875, 0.0523681640625, 0.0197601318359375, -0.01439666748046875, 0.04022216796875, -0.0276641845703125, 0.00389862060546875, 0.026641845703125, -0.0224151611328125, -0.0012063980102539062, -0.0089874267578125, -0.0120697021484375, -0.0213165283203125, 0.015350341796875, -0.042144775390625, -0.006561279296875, -0.032684326171875, -0.019775390625, 0.0186920166015625, -0.003292083740234375, 0.04486083984375, -0.057037353515625, -0.0008015632629394531, -0.019500732421875, -0.01049041748046875, 0.0606689453125, 0.0308837890625, -0.03253173828125, -0.018096923828125, -0.059326171875, -0.025848388671875, -0.005718231201171875, -0.002040863037109375, -0.03851318359375, -0.000583648681640625, -0.0030689239501953125, 0.0163421630859375, 0.01062774658203125, -0.004039764404296875, -0.0313720703125, -0.00878143310546875, 0.00592803955078125, 0.0260162353515625, 0.0104522705078125, 0.08673095703125, -0.043212890625, 0.06536865234375, 0.01206207275390625, 0.027313232421875, -0.0460205078125, -0.00970458984375, 0.0274505615234375, -0.01126861572265625, -0.015899658203125, -0.023468017578125, -0.0232696533203125, -0.035125732421875, 0.0203704833984375, -0.003971099853515625, 0.015899658203125, -0.0218353271484375, 0.0070648193359375, -0.0185394287109375, 0.029144287109375, -0.034149169921875, -0.0239410400390625, 0.051788330078125, -0.01291656494140625, -0.01535797119140625, 0.00817108154296875, 0.00829315185546875, -0.02227783203125, 0.01102447509765625, -0.031036376953125, -0.00534820556640625, -0.047760009765625, 0.061187744140625, 0.08428955078125, -0.0088653564453125, 0.05975341796875, 0.00954437255859375, 0.01751708984375, 0.041778564453125, 0.0221405029296875, 0.017578125, 0.016571044921875, 0.0797119140625, 0.00292205810546875, -0.01271820068359375, 0.047882080078125, -0.041534423828125, -0.032379150390625, -0.0025386810302734375, 0.0178070068359375, -0.01309967041015625, 0.0017461776733398438, 0.01468658447265625, -0.005344390869140625, -0.0261383056640625, -0.00286102294921875, 0.00461578369140625, -0.01129913330078125, 0.01800537109375, 0.01537322998046875, -0.025634765625, 0.00661468505859375, -0.00363922119140625, -0.018646240234375, -0.01812744140625, 0.061126708984375, 0.0198974609375, 0.018951416015625, -0.0162353515625, -0.0210418701171875, -0.005985260009765625, -0.0279388427734375, 0.0228729248046875, -0.024932861328125, 0.007381439208984375, -0.0311279296875, 0.0236358642578125, -0.0123443603515625, 0.0233154296875, 0.01337432861328125, 0.0164031982421875, -0.028411865234375, 0.07086181640625, -0.049163818359375, 0.06195068359375, 0.032867431640625, -0.06878662109375, -0.054534912109375, -0.0214080810546875, 0.023284912109375, -0.0211334228515625, -0.0638427734375, 0.02313232421875, -0.0732421875, 0.0014772415161132812, 0.00777435302734375, -0.01398468017578125, 0.02490234375, -0.032470703125, -0.01068878173828125, 0.02655029296875, 0.01126861572265625, -0.00864410400390625, 0.001323699951171875, -0.0019025802612304688, -0.0203857421875, -0.0023555755615234375, 0.0009374618530273438, -0.005451202392578125, -0.0075836181640625, -0.035247802734375, -0.0618896484375, 0.107666015625, -0.034912109375, 0.0426025390625, 0.03619384765625, 0.0421142578125, -0.04571533203125, 0.0057830810546875, -0.0203704833984375, 0.05908203125, 0.06646728515625, 0.0321044921875, -0.0574951171875, -0.04132080078125, 0.01160430908203125, 0.0762939453125, 0.021484375, 0.0028553009033203125, -0.0338134765625, -0.003017425537109375, 0.02569580078125, 0.016815185546875, 0.003055572509765625, 0.055694580078125, 0.00659942626953125, 0.02606201171875, 0.043121337890625, -0.048492431640625, 0.0182952880859375, -0.016082763671875, 0.0008678436279296875, 0.0282440185546875, -0.0014896392822265625, -0.00799560546875, -0.027496337890625, 0.032318115234375, -0.050048828125, -0.0107574462890625, 0.021453857421875, -0.010040283203125, 0.0199127197265625, 0.050384521484375, 0.045501708984375, -0.0650634765625, -0.02447509765625, -0.0260009765625, 0.0484619140625, 0.0015821456909179688, 0.0179443359375, 0.007411956787109375, 0.01522064208984375, 0.0022640228271484375, 0.015960693359375, 0.02569580078125, 0.045745849609375, -0.046478271484375, 0.045654296875, 0.0447998046875, 0.0267486572265625, -0.0120391845703125, 0.03253173828125, 0.0330810546875, 0.06634521484375, -0.0545654296875, -0.05419921875, 0.01654052734375, -0.01354217529296875, -0.0024662017822265625, 0.020416259765625, 0.01158905029296875, 0.02459716796875, 0.06011962890625, 0.0015020370483398438, -0.03253173828125, 0.0113983154296875, 0.01346588134765625, -0.005420684814453125, -0.0232696533203125, 0.0233001708984375, -0.021942138671875, 0.01019287109375, -0.033233642578125, 0.01154327392578125, 0.029571533203125, 0.0082855224609375, 0.033203125, -0.04205322265625, -0.007343292236328125, 0.0006608963012695312, 0.00850677490234375, -0.0233154296875, -0.001209259033203125, -0.006744384765625, -0.0185394287109375, -0.019317626953125, 0.0224761962890625, 0.049774169921875, 0.0021190643310546875, 0.0462646484375, 0.00928497314453125, -0.0657958984375, 0.00289154052734375, 0.007549285888671875, -0.0267333984375, -0.0144195556640625, -0.00009441375732421875, -0.01329803466796875, 0.005207061767578125, -0.00905609130859375, -0.0029926300048828125, 0.0293426513671875, 0.0079498291015625, 0.000278472900390625, 0.03790283203125, -0.00394439697265625, 0.00955963134765625, 0.0247039794921875, -0.0016078948974609375, 0.0322265625, 0.00820159912109375, -0.1217041015625, -0.030059814453125, -0.019195556640625, -0.01396942138671875, 0.050201416015625, 0.041717529296875, -0.0048828125, -0.007568359375, 0.01593017578125, -0.013946533203125, -0.0163726806640625, 0.027862548828125, 0.0111083984375, 0.0416259765625, 0.0204315185546875, 0.0281219482421875, -0.03326416015625, -0.005146026611328125, 0.0036334991455078125, 0.004245758056640625, 0.02105712890625, 0.052520751953125, 0.010406494140625, 0.017333984375, 0.00041866302490234375, 0.01294708251953125, -0.0184478759765625, -0.018768310546875, 0.08209228515625, -0.0377197265625, -0.01959228515625, -0.007747650146484375, -0.0382080078125, 0.043426513671875, 0.026885986328125, 0.006031036376953125, 0.0141754150390625, -0.01226043701171875, 0.0175323486328125, -0.005725860595703125, 0.00794219970703125, -0.0172576904296875, 0.0014858245849609375, 0.006656646728515625, -0.0243682861328125, 0.041473388671875, 0.01214599609375, 0.0003063678741455078, 0.038787841796875, 0.010528564453125, -0.02728271484375, 0.0187225341796875, -0.036285400390625, 0.032196044921875, 0.034698486328125, 0.011077880859375, -0.0291290283203125, 0.01021575927734375, -0.01438140869140625, 0.0120697021484375, 0.00675201416015625, 0.033447265625, 0.00867462158203125, -0.01678466796875, 0.0014619827270507812, -0.00496673583984375, 0.00591278076171875, -0.0298614501953125, -0.010711669921875, 0.01160430908203125, -0.0132904052734375, 0.001995086669921875, -0.04632568359375, -0.023101806640625, -0.049407958984375, 0.00855255126953125, 0.0308685302734375, -0.0233612060546875, -0.020416259765625, -0.0142974853515625, -0.0017137527465820312, 0.0181732177734375, 0.03741455078125, -0.06689453125, 0.056488037109375, 0.012176513671875, -0.0018033981323242188, -0.0009660720825195312, -0.0008912086486816406, -0.007640838623046875, -0.038177490234375, -0.0283050537109375, 0.0231781005859375, -0.0472412109375, -0.01097869873046875, 0.0016613006591796875, 0.014129638671875, 0.017608642578125, -0.0150146484375, 0.0009069442749023438, 0.039215087890625, 0.0182647705078125, 0.0826416015625, 0.031768798828125, -0.0218963623046875, 0.0214080810546875, -0.0011434555053710938, -0.018798828125, -0.00958251953125, 0.0291290283203125, -0.0307769775390625, -0.00798797607421875, -0.0009765625, 0.0206298828125, 0.058929443359375, -0.019805908203125, -0.06866455078125, 0.06964111328125, -0.023223876953125, -0.0413818359375, 0.014556884765625, 0.027191162109375, 0.000545501708984375, -0.02105712890625, 0.02618408203125, -0.042633056640625, -0.002292633056640625, -0.0156707763671875, 0.005523681640625, 0.059661865234375, 0.01049041748046875, 0.0310821533203125, -0.05889892578125, -0.01080322265625, -0.0635986328125, 0.0194549560546875, 0.01239013671875, 0.0135345458984375, 0.0238494873046875, 0.0487060546875, -0.02838134765625, 0.0194244384765625, -0.0204925537109375, -0.00421905517578125, 0.0094757080078125, -0.0061798095703125, -0.01375579833984375, 0.0018558502197265625, -0.00614166259765625, 0.0213470458984375, -0.00017547607421875, -0.009490966796875, -0.028045654296875, -0.0189208984375, -0.0212249755859375, -0.01358795166015625, 0.01453399658203125, -0.05499267578125, 0.0010967254638671875, -0.006000518798828125, -0.022674560546875, -0.0175323486328125, -0.0202178955078125, -0.03643798828125, -0.016082763671875, -0.01491546630859375, 0.0190887451171875, -0.0189971923828125, 0.01171875, 0.027099609375, -0.0270843505859375, -0.0123138427734375, -0.0045166015625, 0.0032787322998046875, -0.007366180419921875, -0.005825042724609375, -0.001979827880859375, 0.055816650390625, -0.04364013671875, -0.0247039794921875, 0.0309600830078125, -0.0001302957534790039, 0.00994873046875, 0.013214111328125, -0.0241241455078125, 0.008636474609375, 0.01007843017578125, -0.006687164306640625, -0.01224517822265625, 0.076416015625, 0.0321044921875, 0.038665771484375, 0.024566650390625, 0.057647705078125, -0.004840850830078125, 0.0665283203125, 0.0115966796875, -0.0421142578125, 0.01422882080078125, -0.050537109375, -0.00872802734375, -0.0162200927734375, -0.023590087890625, -0.057891845703125, 0.02484130859375, -0.021575927734375, -0.02197265625, 0.030914306640625 ]
2c8525b126fc8137c6084a2ad581368e61704534
Wordpress Stackexchange Q: $wp_query->queried_object->ID throws warning: Undefined property <?php $current_term = $wp_query->queried_object->name; $current_term_id = $wp_query->queried_object->ID; ?> <hgroup class="section-heading wrapper"> <h1><?php echo $current_term; ?></h1> <h3><?php echo category_description( $current_term_id ); ?></h3> </hgroup> This works fine but the $current_term_id variable throws a warning … Notice: Undefined property: stdClass::$ID in /Users/my/htdocs/wr/wp-content/themes/wr/taxonomy-event_type.php on line 12 Any ideas what I'm doing wrong here or what's the real property for the ID of the current term? A: I faced the exact same problem for days and then found this! Use the function $wp_query->get_queried_object_id(). Check this for more details.
Q: $wp_query->queried_object->ID throws warning: Undefined property <?php $current_term = $wp_query->queried_object->name; $current_term_id = $wp_query->queried_object->ID; ?> <hgroup class="section-heading wrapper"> <h1><?php echo $current_term; ?></h1> <h3><?php echo category_description( $current_term_id ); ?></h3> </hgroup> This works fine but the $current_term_id variable throws a warning … Notice: Undefined property: stdClass::$ID in /Users/my/htdocs/wr/wp-content/themes/wr/taxonomy-event_type.php on line 12 Any ideas what I'm doing wrong here or what's the real property for the ID of the current term? A: I faced the exact same problem for days and then found this! Use the function $wp_query->get_queried_object_id(). Check this for more details. A: There's also a wrapper for this function get_queried_object_id(). It calls all parts like global $wp_query by itself. API Always use the most low level API, until you're forced to do otherwise. The definition of API by the (current) wikipedia article is like the following An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other. This means, that it was written to communicate with core internals and your theme or plugin. Why? Because of one easy reason: A wrapping API allows cores internals to transform, while still staying compatible with whatever you throw in as arguments. A wrapper function can add backwards compatibility where a core class/object may not. It also shortens your code, makes it more readable and allows you to focus on what needs to be done by your code. A: When you are on a taxonomy archive (is_tax() is true) queried_object is populated in this way (example from my site): public 'queried_object' => object(stdClass)[163] public 'term_id' => int 2 public 'name' => string 'Puglia' (length=6) public 'slug' => string 'puglia' (length=6) public 'term_group' => int 0 public 'term_taxonomy_id' => int 7 public 'taxonomy' => string 'region' (length=6) public 'description' => string 'Bari, Brindisi, Lecce, Taranto, Foggia' (length=38) public 'parent' => int 0 public 'count' => int 1 public 'filter' => string 'raw' (length=3) public 'queried_object_id' => int 2 So you directly get both name and description. The code you can use is: <?php $current_term_name = $wp_query->queried_object->name; $current_term_description = $wp_query->queried_object->description; ?> <hgroup class="section-heading wrapper"> <h1><?php echo $current_term_name; ?></h1> <h3><?php echo $current_term_description; ?></h3> </hgroup> A: $wp_query->queried_object->ID has several potential points of failure: * *Your query may not be dealing with a WP_Post object. The queried_object can also reference a taxonomy in some circumstances. *Your query may not have actually identified any results. Your queried_object could be null, and thus you're asking for a property on an nonexistent object. *You could be using $wp_query in code that does not have a reference to that global. If you determine that $wp_query itself is null, you should add global $wp_query; ... somewhere above your code.
wordpress
{ "language": "en", "length": 445, "provenance": "stackexchange_00019.jsonl.gz:422444", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60297" }
[ 0.03912353515625, 0.01873779296875, -0.0310821533203125, -0.034576416015625, 0.04534912109375, -0.048675537109375, 0.01727294921875, -0.00441741943359375, 0.0295562744140625, 0.0201568603515625, -0.052032470703125, -0.0216827392578125, -0.0192413330078125, -0.01294708251953125, -0.0254669189453125, -0.0299224853515625, 0.032440185546875, -0.0338134765625, 0.0274810791015625, 0.00830078125, 0.00023698806762695312, 0.033233642578125, 0.03790283203125, -0.01174163818359375, 0.037628173828125, -0.0667724609375, 0.06365966796875, -0.0220947265625, 0.02734375, -0.032379150390625, 0.019683837890625, 0.004688262939453125, 0.002704620361328125, 0.0333251953125, -0.025543212890625, 0.001995086669921875, 0.057830810546875, -0.01456451416015625, 0.020477294921875, 0.04248046875, 0.024017333984375, -0.0107574462890625, -0.0122833251953125, 0.0144805908203125, -0.05224609375, -0.0300445556640625, 0.004974365234375, 0.004619598388671875, -0.01715087890625, 0.043182373046875, 0.0244903564453125, 0.0379638671875, 0.0182342529296875, -0.0016241073608398438, -0.000751495361328125, 0.0047149658203125, 0.035552978515625, -0.04583740234375, 0.032958984375, 0.005584716796875, -0.0260772705078125, -0.006134033203125, 0.03350830078125, -0.0253143310546875, -0.00696563720703125, 0.00780487060546875, 0.08392333984375, 0.019744873046875, -0.02008056640625, -0.0267791748046875, 0.0174102783203125, 0.0157012939453125, 0.01043701171875, -0.0005135536193847656, 0.019500732421875, -0.0592041015625, 0.00878143310546875, -0.041259765625, -0.00839996337890625, 0.052337646484375, -0.006908416748046875, -0.0028743743896484375, -0.08258056640625, 0.068359375, -0.002643585205078125, 0.10076904296875, -0.0235748291015625, -0.046783447265625, 0.0072174072265625, -0.04986572265625, -0.01508331298828125, -0.046112060546875, 0.005786895751953125, -0.00827789306640625, -0.020751953125, -0.05755615234375, 0.0182952880859375, 0.09417724609375, -0.04315185546875, 0.007598876953125, -0.035980224609375, -0.00852203369140625, -0.004764556884765625, -0.05645751953125, -0.0044708251953125, 0.02398681640625, 0.0216064453125, 0.0215606689453125, 0.0303192138671875, 0.0030307769775390625, 0.0006647109985351562, 0.01108551025390625, 0.0035839080810546875, -0.004467010498046875, -0.022735595703125, 0.023193359375, -0.0003383159637451172, 0.00867462158203125, 0.0131072998046875, 0.01166534423828125, 0.007564544677734375, 0.01313018798828125, 0.0115966796875, -0.003772735595703125, 0.0020294189453125, -0.0017185211181640625, -0.0299530029296875, -0.009368896484375, -0.0218353271484375, 0.030914306640625, -0.042510986328125, 0.0169830322265625, 0.11004638671875, 0.017791748046875, -0.00403594970703125, -0.02655029296875, 0.08233642578125, 0.00766754150390625, 0.0145263671875, -0.004268646240234375, 0.01163482666015625, 0.004062652587890625, 0.01042938232421875, -0.01200103759765625, -0.0184173583984375, 0.04400634765625, 0.0227508544921875, -0.0055389404296875, -0.0307464599609375, -0.0716552734375, 0.010498046875, -0.0625, 0.0426025390625, 0.0258636474609375, -0.056549072265625, -0.01265716552734375, 0.04833984375, -0.05291748046875, -0.0253143310546875, -0.07464599609375, 0.04998779296875, 0.0051727294921875, 0.0216217041015625, -0.02545166015625, -0.01934814453125, -0.0400390625, -0.06964111328125, -0.00923919677734375, 0.01474761962890625, 0.0567626953125, -0.00405120849609375, -0.0282440185546875, 0.0147705078125, -0.003082275390625, -0.039306640625, -0.00098419189453125, -0.0180816650390625, -0.0281219482421875, 0.0299072265625, -0.006122589111328125, -0.0309295654296875, -0.0411376953125, -0.0178070068359375, 0.00832366943359375, -0.044036865234375, 0.047027587890625, -0.006610870361328125, 0.012542724609375, 0.0163116455078125, -0.0177001953125, 0.06866455078125, 0.04974365234375, -0.07098388671875, 0.0121307373046875, -0.009429931640625, 0.0128631591796875, -0.00455474853515625, 0.00955963134765625, -0.00870513916015625, -0.0022335052490234375, -0.01328277587890625, 0.00460052490234375, -0.03753662109375, -0.035888671875, -0.094970703125, -0.025726318359375, -0.0142974853515625, 0.06280517578125, -0.03948974609375, -0.006587982177734375, 0.04034423828125, -0.038726806640625, -0.01024627685546875, 0.005977630615234375, -0.0038433074951171875, -0.0090179443359375, -0.033843994140625, 0.0122222900390625, -0.02496337890625, 0.016754150390625, -0.0311431884765625, -0.0278472900390625, -0.00799560546875, 0.0369873046875, 0.044769287109375, 0.016357421875, -0.023681640625, -0.023712158203125, 0.06683349609375, 0.004253387451171875, 0.0300140380859375, -0.01183319091796875, 0.03558349609375, 0.05242919921875, 0.01432037353515625, 0.011077880859375, 0.0565185546875, -0.0653076171875, 0.00939178466796875, 0.0299530029296875, 0.0256805419921875, 0.043853759765625, -0.01099395751953125, -0.0120697021484375, 0.056884765625, 0.01079559326171875, 0.0305633544921875, -0.05352783203125, 0.0036869049072265625, 0.005039215087890625, -0.003345489501953125, -0.004276275634765625, 0.041534423828125, 0.056121826171875, 0.01092529296875, 0.051727294921875, -0.01479339599609375, -0.021820068359375, -0.0188446044921875, 0.00208282470703125, 0.00821685791015625, -0.056060791015625, -0.0269927978515625, -0.003204345703125, 0.030853271484375, 0.021820068359375, 0.051727294921875, 0.037384033203125, 0.00431060791015625, -0.00948333740234375, -0.019683837890625, -0.055450439453125, 0.00571441650390625, 0.048095703125, -0.01042938232421875, 0.00603485107421875, -0.03857421875, -0.004711151123046875, 0.023223876953125, 0.018463134765625, -0.00815582275390625, 0.0455322265625, -0.0220489501953125, -0.0230560302734375, 0.002628326416015625, -0.0027370452880859375, -0.02374267578125, -0.04327392578125, -0.01534271240234375, -0.02386474609375, 0.000667572021484375, 0.032012939453125, -0.036956787109375, 0.0672607421875, -0.058746337890625, -0.0144195556640625, 0.0194091796875, -0.01480865478515625, 0.0200042724609375, -0.0089263916015625, 0.049652099609375, 0.050689697265625, -0.01195526123046875, 0.0214996337890625, 0.004344940185546875, -0.010223388671875, 0.00487518310546875, 0.00295257568359375, -0.00156402587890625, 0.0229034423828125, -0.0743408203125, 0.00588226318359375, 0.02996826171875, 0.07470703125, 0.00975799560546875, -0.05322265625, 0.0201568603515625, 0.035614013671875, -0.090576171875, -0.1363525390625, 0.00716400146484375, -0.02490234375, -0.020599365234375, -0.00824737548828125, -0.03302001953125, 0.016021728515625, 0.0086822509765625, -0.005962371826171875, 0.0074310302734375, -0.03106689453125, -0.07403564453125, -0.05780029296875, -0.0802001953125, 0.0088348388671875, -0.0152435302734375, 0.01629638671875, 0.006717681884765625, 0.0209808349609375, 0.020843505859375, -0.0231170654296875, 0.011383056640625, 0.0262451171875, -0.0175933837890625, -0.002750396728515625, -0.026336669921875, 0.02496337890625, -0.015380859375, 0.0168304443359375, -0.0274658203125, 0.011810302734375, -0.0257568359375, -0.01297760009765625, 0.00009167194366455078, 0.047698974609375, 0.0303497314453125, 0.00628662109375, 0.000988006591796875, 0.048492431640625, 0.0300750732421875, -0.0159912109375, -0.01018524169921875, -0.0443115234375, -0.053802490234375, 0.032501220703125, 0.0266571044921875, 0.006374359130859375, 0.010162353515625, -0.0070953369140625, -0.01271820068359375, -0.0092926025390625, -0.0657958984375, -0.01029205322265625, 0.041900634765625, 0.014923095703125, 0.021697998046875, 0.047576904296875, 0.0230712890625, 0.0000578761100769043, 0.015716552734375, 0.012298583984375, 0.05511474609375, 0.02264404296875, -0.011016845703125, -0.01605224609375, -0.007686614990234375, 0.037994384765625, -0.033203125, 0.0284423828125, -0.043243408203125, -0.0280914306640625, -0.0186920166015625, 0.056884765625, 0.0014820098876953125, -0.0295867919921875, -0.020965576171875, -0.00136566162109375, -0.0257110595703125, 0.012969970703125, -0.007045745849609375, 0.003398895263671875, 0.000392913818359375, -0.02850341796875, -0.0011444091796875, -0.0184173583984375, -0.0313720703125, 0.0609130859375, -0.044830322265625, 0.0007419586181640625, 0.02825927734375, -0.05120849609375, 0.0016946792602539062, 0.06536865234375, -0.030731201171875, 0.0439453125, -0.035430908203125, -0.03594970703125, -0.1026611328125, -0.027130126953125, -0.0155792236328125, 0.07281494140625, -0.005123138427734375, 0.0090789794921875, -0.02032470703125, 0.052703857421875, -0.006053924560546875, -0.028778076171875, -0.0159759521484375, -0.00682830810546875, -0.0020542144775390625, 0.04058837890625, -0.022918701171875, 0.00421142578125, -0.005035400390625, -0.0238189697265625, -0.0211029052734375, -0.00481414794921875, -0.04705810546875, -0.0132598876953125, -0.02813720703125, -0.0079803466796875, -0.053070068359375, -0.03192138671875, 0.0296783447265625, 0.050994873046875, -0.0310211181640625, 0.0467529296875, -0.0172882080078125, -0.03155517578125, 0.059600830078125, 0.0159454345703125, -0.036865234375, -0.0014772415161132812, 0.07098388671875, 0.034515380859375, -0.02947998046875, -0.05255126953125, -0.012664794921875, 0.03369140625, -0.0027637481689453125, 0.0247955322265625, -0.001392364501953125, -0.0222625732421875, 0.035186767578125, 0.00130462646484375, -0.006145477294921875, 0.0128936767578125, 0.036529541015625, -0.01528167724609375, -0.041778564453125, 0.01611328125, -0.0280303955078125, -0.034332275390625, 0.0275726318359375, -0.0270843505859375, -0.00884246826171875, 0.0248260498046875, 0.03143310546875, -0.0767822265625, 0.07391357421875, 0.01294708251953125, -0.060028076171875, 0.029693603515625, 0.00693511962890625, 0.01364898681640625, 0.0128326416015625, -0.0006885528564453125, 0.0286712646484375, -0.007129669189453125, -0.003261566162109375, -0.006717681884765625, -0.0141143798828125, 0.0140228271484375, 0.031585693359375, -0.011138916015625, 0.02685546875, -0.01117706298828125, -0.0019426345825195312, 0.0777587890625, -0.019805908203125, -0.028564453125, 0.01232147216796875, -0.00731658935546875, -0.03668212890625, 0.04351806640625, 0.01407623291015625, -0.0012073516845703125, 0.026580810546875, 0.01300048828125, -0.00908660888671875, 0.0000674128532409668, 0.04681396484375, -0.005313873291015625, -0.0011920928955078125, -0.019683837890625, 0.0140838623046875, 0.026763916015625, 0.06390380859375, 0.0275115966796875, 0.048858642578125, -0.041351318359375, -0.0252838134765625, -0.01470947265625, 0.055328369140625, 0.0286712646484375, -0.047637939453125, 0.0190277099609375, 0.0372314453125, 0.043121337890625, -0.03460693359375, 0.001407623291015625, -0.0036716461181640625, 0.0277557373046875, -0.005863189697265625, -0.0240020751953125, 0.0283966064453125, -0.017974853515625, -0.01010894775390625, 0.0132904052734375, 0.0009298324584960938, -0.032958984375, -0.02276611328125, 0.0012464523315429688, 0.030853271484375, 0.004795074462890625, -0.00949859619140625, -0.0103912353515625, -0.0235748291015625, 0.037994384765625, -0.0201416015625, 0.0233612060546875, -0.0121917724609375, -0.0092315673828125, -0.016357421875, -0.0165557861328125, -0.016571044921875, -0.0261077880859375, -0.0212860107421875, -0.006862640380859375, -0.0169219970703125, 0.006778717041015625, 0.0026149749755859375, 0.021148681640625, -0.0606689453125, -0.004680633544921875, -0.020355224609375, -0.01019287109375, 0.037445068359375, 0.00354766845703125, -0.036712646484375, -0.01004791259765625, -0.05877685546875, -0.0213165283203125, 0.00783538818359375, 0.0078887939453125, -0.0192718505859375, -0.01561737060546875, -0.0024394989013671875, 0.00803375244140625, 0.0199432373046875, 0.007312774658203125, -0.0222625732421875, -0.00444793701171875, -0.00817108154296875, -0.009613037109375, -0.00292205810546875, 0.01119232177734375, 0.0180206298828125, 0.036529541015625, 0.0092620849609375, -0.0181427001953125, -0.01038360595703125, -0.00927734375, 0.005344390869140625, -0.03643798828125, 0.0000388026237487793, -0.01336669921875, 0.00440216064453125, -0.0107879638671875, -0.00397491455078125, -0.007747650146484375, 0.0506591796875, 0.004924774169921875, 0.0189666748046875, -0.005802154541015625, -0.04052734375, -0.0266876220703125, 0.005199432373046875, 0.041473388671875, -0.038848876953125, -0.0233001708984375, 0.002864837646484375, 0.039215087890625, -0.0012102127075195312, -0.045562744140625, -0.01021575927734375, 0.0249481201171875, -0.0143280029296875, 0.0278472900390625, 0.048187255859375, -0.0274505615234375, 0.0195770263671875, -0.010986328125, -0.0143585205078125, 0.01029205322265625, 0.0216522216796875, -0.04327392578125, -0.0281829833984375, 0.06072998046875, 0.01464080810546875, -0.023468017578125, 0.040771484375, -0.0186614990234375, -0.007656097412109375, -0.01152801513671875, 0.0213165283203125, -0.009979248046875, 0.01312255859375, 0.008056640625, -0.00952911376953125, 0.004985809326171875, 0.0166168212890625, 0.0258636474609375, 0.024444580078125, -0.029205322265625, 0.051116943359375, -0.003078460693359375, 0.0024871826171875, 0.01458740234375, -0.01129913330078125, -0.01279449462890625, 0.0489501953125, 0.016082763671875, -0.038787841796875, 0.0131072998046875, 0.000827789306640625, -0.00444793701171875, -0.023345947265625, 0.03314208984375, 0.0282135009765625, -0.00732421875, -0.0682373046875, 0.035369873046875, 0.023681640625, -0.021209716796875, 0.01123046875, 0.0029544830322265625, -0.00135040283203125, 0.0352783203125, -0.01195526123046875, 0.024932861328125, 0.007076263427734375, -0.033203125, 0.0245361328125, -0.029876708984375, 0.0017538070678710938, 0.08465576171875, -0.05157470703125, 0.0113525390625, 0.001987457275390625, 0.0283660888671875, -0.006366729736328125, -0.02471923828125, 0.0284271240234375, -0.053863525390625, 0.002178192138671875, 0.0293121337890625, 0.043792724609375, -0.002193450927734375, -0.03057861328125, 0.0115509033203125, -0.069091796875, -0.03515625, -0.0025539398193359375, -0.0072021484375, -0.004474639892578125, -0.04046630859375, -0.03765869140625, 0.01007080078125, 0.0189056396484375, 0.006511688232421875, 0.0228424072265625, 0.0019855499267578125, -0.032562255859375, -0.0263214111328125, -0.035064697265625, 0.01617431640625, -0.01605224609375, 0.039703369140625, -0.05450439453125, -0.0183868408203125, 0.031494140625, 0.022552490234375, 0.05487060546875, 0.005710601806640625, 0.0112152099609375, 0.00628662109375, 0.003757476806640625, -0.0021305084228515625, -0.040130615234375, 0.033782958984375, 0.03192138671875, 0.0096435546875, 0.0272064208984375, 0.00325775146484375, 0.029052734375, -0.03411865234375, -0.0007681846618652344, 0.0640869140625, 0.006927490234375, 0.0138092041015625, -0.01534271240234375, 0.019439697265625, 0.005016326904296875, -0.0206756591796875, 0.00551605224609375, -0.0259552001953125, 0.0262451171875, 0.04388427734375, 0.043212890625, -0.0787353515625, 0.0230865478515625, -0.041961669921875, 0.057220458984375, -0.01611328125, 0.005474090576171875, 0.061737060546875, 0.034271240234375, 0.0589599609375, -0.00872802734375, 0.001010894775390625, -0.0015659332275390625, -0.0086669921875, 0.054779052734375, 0.05572509765625, 0.0299072265625, -0.0254364013671875, -0.0106201171875, 0.08526611328125, 0.10589599609375, -0.047210693359375, -0.01158905029296875, 0.0181884765625, 0.0171051025390625, 0.01319122314453125, 0.003604888916015625, 0.037139892578125, 0.0740966796875, 0.06829833984375, -0.059814453125, 0.0084381103515625, 0.07659912109375, 0.00769805908203125, 0.0073394775390625, 0.003810882568359375, -0.05657958984375, -0.0180206298828125, -0.041748046875, 0.00626373291015625, -0.0102386474609375, 0.06304931640625, 0.0302734375, 0.010772705078125, -0.0380859375, -0.0253753662109375, 0.004795074462890625, 0.03399658203125, 0.0287933349609375, -0.0223388671875, -0.0025539398193359375, -0.005279541015625, -0.01397705078125, 0.00910186767578125, 0.00753021240234375, 0.0173797607421875, 0.0142059326171875, 0.0015354156494140625, -0.016204833984375, -0.004695892333984375, 0.01142120361328125, -0.03192138671875, -0.0120849609375, -0.01366424560546875, 0.016204833984375, 0.034271240234375, 0.013885498046875, -0.0079345703125, 0.0190277099609375, 0.06829833984375, 0.006420135498046875, 0.0179443359375, 0.0026607513427734375, -0.01093292236328125, 0.0281219482421875, -0.0124053955078125, 0.026458740234375, 0.030975341796875, -0.08251953125, 0.0048370361328125, -0.04681396484375, -0.018951416015625, 0.007236480712890625, 0.019989013671875, 0.00472259521484375, -0.00923919677734375, -0.00821685791015625, 0.0102691650390625, 0.005279541015625, -0.006649017333984375, -0.00547027587890625, -0.0032100677490234375, 0.03070068359375, -0.005474090576171875, -0.0279388427734375, -0.0257110595703125, 0.034759521484375, 0.0029544830322265625, 0.007648468017578125, 0.0198211669921875, 0.0106353759765625, 0.003173828125, -0.0276641845703125, 0.042205810546875, -0.08697509765625, -0.042327880859375, 0.058746337890625, -0.0214691162109375, 0.0013704299926757812, 0.0081787109375, -0.06451416015625, 0.024749755859375, 0.035736083984375, 0.0003063678741455078, 0.053558349609375, -0.010894775390625, 0.0081634521484375, -0.037353515625, 0.038543701171875, -0.01025390625, -0.01383209228515625, 0.01091766357421875, 0.0102996826171875, 0.0280914306640625, 0.03363037109375, -0.0211181640625, -0.02691650390625, 0.0099945068359375, -0.06719970703125, 0.03997802734375, -0.02215576171875, 0.068359375, 0.036712646484375, 0.011077880859375, 0.0210418701171875, -0.01113128662109375, -0.0191802978515625, 0.0088043212890625, 0.00986480712890625, -0.0258331298828125, -0.020965576171875, 0.0021648406982421875, 0.027130126953125, -0.035369873046875, 0.0091400146484375, -0.019805908203125, -0.0240631103515625, 0.00341796875, -0.00922393798828125, -0.0153656005859375, -0.0253753662109375, -0.025115966796875, -0.0288848876953125, -0.0067291259765625, 0.0202178955078125, -0.01898193359375, -0.0165863037109375, -0.05938720703125, -0.0147247314453125, 0.0214080810546875, -0.004901885986328125, 0.0237274169921875, 0.00643157958984375, -0.01277923583984375, -0.01152801513671875, 0.01143646240234375, -0.01377105712890625, 0.0019588470458984375, -0.0096282958984375, -0.0450439453125, 0.005218505859375, -0.04107666015625, -0.030181884765625, -0.0096893310546875, -0.006015777587890625, 0.00193023681640625, 0.01088714599609375, -0.03076171875, 0.005367279052734375, -0.00024771690368652344, 0.045684814453125, 0.014862060546875, -0.007190704345703125, 0.0256195068359375, -0.00690460205078125, -0.0704345703125, -0.0147705078125, 0.045684814453125, -0.03424072265625, -0.044464111328125, -0.0103302001953125, 0.013092041015625, 0.022186279296875, -0.03582763671875, -0.057952880859375, 0.01293182373046875, -0.0031032562255859375, -0.034149169921875, 0.0142822265625, 0.014007568359375, -0.00860595703125, 0.00868988037109375, 0.00955963134765625, -0.045501708984375, 0.007122039794921875, 0.00188446044921875, 0.003231048583984375, 0.0111541748046875, 0.04541015625, -0.01404571533203125, -0.0980224609375, -0.04571533203125, -0.0723876953125, 0.0249176025390625, -0.0149078369140625, 0.0003681182861328125, -0.0157318115234375, 0.005794525146484375, -0.04071044921875, -0.049896240234375, -0.007732391357421875, 0.02386474609375, -0.015655517578125, 0.010162353515625, -0.029541015625, 0.017974853515625, 0.0299530029296875, 0.05322265625, 0.007080078125, -0.032623291015625, 0.013916015625, -0.0183563232421875, -0.034271240234375, 0.0025196075439453125, 0.006839752197265625, -0.058990478515625, -0.0114898681640625, 0.039154052734375, -0.0258636474609375, 0.00821685791015625, 0.0090484619140625, -0.05670166015625, 0.01666259765625, -0.019500732421875, -0.0230560302734375, -0.044158935546875, 0.0130462646484375, -0.0281524658203125, -0.0167236328125, -0.0458984375, -0.01068115234375, 0.0016450881958007812, -0.040313720703125, -0.0139007568359375, -0.039398193359375, 0.0084228515625, 0.0158843994140625, -0.0206298828125, 0.0235443115234375, -0.015472412109375, 0.052825927734375, 0.021514892578125, -0.01390838623046875, 0.003276824951171875, -0.0017786026000976562, 0.002716064453125, 0.0306396484375, 0.018280029296875, 0.002719879150390625, 0.0250701904296875, -0.003429412841796875, 0.0241851806640625, -0.023101806640625, 0.0643310546875, -0.01180267333984375, -0.02081298828125, 0.0191192626953125, -0.005863189697265625, -0.0031414031982421875, 0.038818359375, -0.018341064453125, -0.044342041015625, 0.040863037109375, -0.002773284912109375, 0.0175628662109375, 0.0248260498046875 ]
4a0b0a46a74f0bc9de4884808f91e6e7a9827c1d
Wordpress Stackexchange Q: How can I have a static title on my blog page? My blog page is not my homepage. How can I add a title to the top of the page? i.e. "My Blog". Right now there is no title on the page. The title of the first post is at the top. (Sorry it's on my local machine or I'd provide a link and I'm too new to post an image.) Things I've tried: * *Creating a "blog" template page. It didn't work because the blog always uses index.php. (Thanks to Rev. Voodoo for the code that helps you see which template is used.) *There is a similar question on stackexchange but it's not really answered and I don't understand it. Thank you! A: the accepted answer in the similar question on stackexchange should work; try to add this to a suitable location in index.php of your theme: <?php if( is_home() && get_option( 'page_for_posts' ) ) echo get_the_title( get_option( 'page_for_posts' ) ); ?>
Q: How can I have a static title on my blog page? My blog page is not my homepage. How can I add a title to the top of the page? i.e. "My Blog". Right now there is no title on the page. The title of the first post is at the top. (Sorry it's on my local machine or I'd provide a link and I'm too new to post an image.) Things I've tried: * *Creating a "blog" template page. It didn't work because the blog always uses index.php. (Thanks to Rev. Voodoo for the code that helps you see which template is used.) *There is a similar question on stackexchange but it's not really answered and I don't understand it. Thank you! A: the accepted answer in the similar question on stackexchange should work; try to add this to a suitable location in index.php of your theme: <?php if( is_home() && get_option( 'page_for_posts' ) ) echo get_the_title( get_option( 'page_for_posts' ) ); ?> A: I discovered <?php single_post_title(); ?> that works for both blog title and for other pages without any modifications. :) So you can use it on the top of the page, and also in the page.
wordpress
{ "language": "en", "length": 200, "provenance": "stackexchange_00019.jsonl.gz:422448", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60307" }
[ 0.0289764404296875, -0.011199951171875, 0.044891357421875, 0.0634765625, -0.030609130859375, -0.01461029052734375, 0.05804443359375, -0.07672119140625, -0.0193328857421875, 0.0167999267578125, -0.01267242431640625, 0.03790283203125, -0.044952392578125, -0.020263671875, 0.0118408203125, -0.0209808349609375, 0.055145263671875, -0.02874755859375, 0.048492431640625, -0.00014519691467285156, 0.0081634521484375, 0.02691650390625, 0.06365966796875, 0.046417236328125, -0.006221771240234375, -0.0263671875, 0.0908203125, -0.037841796875, 0.0026493072509765625, -0.0294036865234375, 0.017059326171875, 0.017333984375, 0.00968170166015625, -0.01062774658203125, 0.0268707275390625, -0.00811767578125, 0.0159454345703125, -0.005931854248046875, 0.01253509521484375, 0.00395965576171875, 0.0124664306640625, 0.00804901123046875, 0.0166015625, 0.048187255859375, -0.004604339599609375, -0.051483154296875, 0.0201263427734375, -0.04046630859375, 0.0005879402160644531, -0.018829345703125, 0.021148681640625, 0.01073455810546875, 0.04522705078125, -0.0252227783203125, -0.0244598388671875, -0.0191497802734375, 0.041778564453125, -0.0291595458984375, 0.040283203125, -0.04766845703125, -0.035614013671875, -0.0119781494140625, 0.03662109375, 0.00315093994140625, 0.0180816650390625, -0.0008411407470703125, 0.053070068359375, 0.0201263427734375, -0.024871826171875, -0.01152801513671875, 0.01495361328125, -0.0204315185546875, -0.0111541748046875, -0.0192718505859375, -0.028778076171875, 0.01251983642578125, -0.019012451171875, -0.047760009765625, 0.0302581787109375, -0.0036258697509765625, 0.0009927749633789062, 0.013763427734375, 0.0110015869140625, -0.046142578125, 0.0213775634765625, -0.01898193359375, -0.01479339599609375, 0.0005526542663574219, -0.004669189453125, -0.031982421875, -0.0027599334716796875, 0.0021533966064453125, -0.01425933837890625, -0.00127410888671875, -0.0242767333984375, -0.0262298583984375, 0.0217437744140625, 0.08807373046875, -0.02716064453125, 0.00356292724609375, -0.04425048828125, -0.0036487579345703125, -0.0172882080078125, -0.0408935546875, -0.0121917724609375, 0.00969696044921875, 0.0035037994384765625, -0.022674560546875, -0.0001150965690612793, 0.038726806640625, -0.027984619140625, -0.0153045654296875, -0.0028591156005859375, -0.0263824462890625, -0.025482177734375, 0.0141143798828125, -0.0306854248046875, 0.0056304931640625, 0.00705718994140625, -0.0066375732421875, 0.00943756103515625, 0.0369873046875, -0.006114959716796875, 0.0012054443359375, -0.006313323974609375, -0.0019397735595703125, -0.0008869171142578125, -0.03240966796875, -0.03668212890625, -0.00724029541015625, -0.007389068603515625, 0.04217529296875, 0.03155517578125, 0.023468017578125, -0.018341064453125, -0.010040283203125, 0.0106658935546875, -0.04583740234375, -0.019378662109375, 0.004291534423828125, 0.0012121200561523438, -0.023651123046875, 0.01479339599609375, -0.0035572052001953125, 0.01145172119140625, 0.0203704833984375, 0.0130157470703125, 0.039154052734375, -0.0022068023681640625, -0.049591064453125, 0.058837890625, -0.0352783203125, 0.0121002197265625, 0.01092529296875, -0.004192352294921875, -0.03948974609375, -0.018310546875, -0.0287322998046875, 0.055389404296875, -0.0174102783203125, 0.01549530029296875, 0.0270843505859375, 0.004650115966796875, -0.0089111328125, -0.01313018798828125, -0.044403076171875, 0.013763427734375, 0.002140045166015625, 0.0103912353515625, -0.01427459716796875, 0.0019025802612304688, 0.046875, 0.00762176513671875, -0.006683349609375, -0.0022640228271484375, -0.0257568359375, -0.035797119140625, -0.00977325439453125, 0.0156402587890625, 0.03857421875, 0.01384735107421875, -0.007160186767578125, -0.0124664306640625, 0.03424072265625, -0.018157958984375, -0.0261993408203125, 0.01316070556640625, 0.0307464599609375, 0.005138397216796875, 0.034088134765625, -0.000018358230590820312, -0.00441741943359375, -0.035369873046875, 0.0181427001953125, 0.0025081634521484375, -0.01385498046875, -0.031402587890625, -0.00811767578125, -0.00595855712890625, 0.0012950897216796875, -0.01537322998046875, 0.000007212162017822266, -0.005512237548828125, 0.0242156982421875, 0.06927490234375, -0.046966552734375, 0.038787841796875, -0.007770538330078125, 0.003101348876953125, -0.0045623779296875, -0.005008697509765625, -0.043121337890625, 0.045806884765625, -0.096435546875, -0.051025390625, 0.0190887451171875, -0.0172576904296875, -0.018218994140625, 0.0027713775634765625, -0.0032196044921875, -0.007965087890625, 0.0189056396484375, -0.0108642578125, 0.022613525390625, 0.08111572265625, -0.04901123046875, -0.0188751220703125, -0.06329345703125, 0.0108642578125, 0.003017425537109375, -0.12359619140625, 0.06024169921875, 0.0011081695556640625, 0.01312255859375, -0.046112060546875, -0.01546478271484375, -0.0426025390625, -0.01129913330078125, 0.004642486572265625, 0.051055908203125, 0.00936126708984375, 0.00806427001953125, 0.0019969940185546875, 0.0582275390625, -0.01480865478515625, -0.0318603515625, 0.01491546630859375, 0.019500732421875, 0.019073486328125, 0.054931640625, -0.0101470947265625, -0.0304107666015625, 0.0146026611328125, -0.091796875, -0.005218505859375, 0.037139892578125, -0.01629638671875, -0.0151519775390625, -0.0161590576171875, 0.006313323974609375, 0.0073394775390625, -0.0212860107421875, -0.019805908203125, -0.006832122802734375, 0.0240020751953125, 0.04949951171875, 0.031463623046875, 0.047210693359375, -0.061859130859375, 0.0400390625, 0.0205841064453125, 0.037078857421875, 0.009979248046875, 0.0283966064453125, 0.0198211669921875, 0.0279693603515625, 0.003143310546875, -0.032928466796875, 0.0017442703247070312, 0.00637054443359375, -0.0206146240234375, 0.006195068359375, 0.01198577880859375, -0.0188140869140625, -0.006938934326171875, -0.045562744140625, 0.0266265869140625, -0.002597808837890625, 0.01477813720703125, -0.0280914306640625, 0.0033512115478515625, -0.0008111000061035156, -0.0261383056640625, 0.03125, 0.01114654541015625, -0.0379638671875, 0.008758544921875, -0.07196044921875, 0.054534912109375, -0.045684814453125, 0.086181640625, 0.08026123046875, -0.01523590087890625, 0.0262603759765625, -0.003368377685546875, 0.01023101806640625, -0.0030727386474609375, -0.015838623046875, -0.02764892578125, 0.0225067138671875, -0.0736083984375, 0.01412200927734375, 0.026580810546875, 0.04119873046875, 0.0037403106689453125, -0.0136871337890625, 0.0131072998046875, 0.014312744140625, -0.04541015625, -0.053009033203125, -0.004108428955078125, -0.056671142578125, 0.0016279220581054688, 0.00919342041015625, -0.032470703125, -0.022308349609375, 0.060211181640625, 0.0016031265258789062, -0.00034880638122558594, -0.0265655517578125, -0.042510986328125, -0.0513916015625, -0.0947265625, -0.041046142578125, -0.00498199462890625, 0.006977081298828125, 0.005794525146484375, 0.0185546875, -0.005382537841796875, -0.06304931640625, -0.006732940673828125, 0.045074462890625, 0.00199127197265625, 0.005809783935546875, 0.029693603515625, -0.021148681640625, -0.01168060302734375, 0.0166168212890625, -0.0364990234375, 0.0117950439453125, 0.0013513565063476562, -0.0149078369140625, -0.056243896484375, -0.04327392578125, -0.036712646484375, 0.044769287109375, 0.06878662109375, -0.01395416259765625, 0.00539398193359375, -0.045074462890625, -0.0318603515625, -0.0121307373046875, -0.055938720703125, -0.036895751953125, 0.039306640625, 0.004329681396484375, -0.04754638671875, -0.005893707275390625, -0.0241851806640625, -0.0063323974609375, 0.00890350341796875, -0.0007233619689941406, -0.01373291015625, -0.014404296875, -0.02392578125, 0.01227569580078125, 0.0012502670288085938, -0.0012035369873046875, 0.02874755859375, 0.005527496337890625, 0.0182037353515625, -0.03155517578125, 0.053924560546875, -0.066162109375, -0.04290771484375, 0.0439453125, -0.0211944580078125, 0.0281524658203125, -0.018798828125, -0.033966064453125, 0.0094757080078125, 0.095703125, -0.07232666015625, -0.01540374755859375, -0.006404876708984375, 0.0186920166015625, -0.0005769729614257812, -0.039337158203125, -0.0275726318359375, -0.033843994140625, -0.07940673828125, 0.03619384765625, -0.016876220703125, 0.0076446533203125, -0.049560546875, 0.049835205078125, -0.040435791015625, -0.040618896484375, 0.021514892578125, -0.01259613037109375, 0.0025310516357421875, 0.039764404296875, -0.040496826171875, 0.046478271484375, -0.029541015625, -0.030548095703125, -0.033355712890625, -0.01488494873046875, 0.0298919677734375, 0.01092529296875, -0.037689208984375, 0.01074981689453125, -0.00955963134765625, 0.04412841796875, -0.0234832763671875, 0.02764892578125, -0.0124664306640625, 0.0301513671875, 0.00109100341796875, -0.0276336669921875, -0.03961181640625, -0.030975341796875, 0.005512237548828125, -0.00792694091796875, -0.0265960693359375, 0.03131103515625, -0.017608642578125, 0.016571044921875, 0.022613525390625, -0.0292510986328125, -0.021697998046875, -0.035858154296875, 0.05511474609375, 0.061004638671875, 0.01232147216796875, 0.0258636474609375, -0.06768798828125, -0.01160430908203125, 0.01520538330078125, -0.02215576171875, -0.004535675048828125, 0.02569580078125, 0.07220458984375, 0.010406494140625, 0.0035114288330078125, -0.02056884765625, -0.0029296875, 0.038177490234375, -0.019805908203125, 0.031494140625, 0.0060882568359375, -0.031768798828125, 0.0634765625, -0.01015472412109375, -0.0154571533203125, -0.00847625732421875, 0.0223236083984375, -0.01476287841796875, -0.061767578125, 0.04376220703125, -0.0330810546875, 0.0204010009765625, -0.0020732879638671875, -0.02880859375, 0.0246124267578125, -0.009246826171875, 0.0052947998046875, -0.0270538330078125, 0.04376220703125, 0.006153106689453125, -0.0304412841796875, 0.00628662109375, -0.047515869140625, 0.003688812255859375, 0.02056884765625, 0.0087890625, -0.0316162109375, -0.0137786865234375, -0.01245880126953125, -0.0045928955078125, -0.036346435546875, 0.0013971328735351562, 0.01085662841796875, -0.0084075927734375, -0.01922607421875, 0.0107879638671875, -0.0183868408203125, 0.08660888671875, 0.02166748046875, -0.05133056640625, 0.0244140625, -0.02099609375, 0.01708984375, -0.0095672607421875, 0.024871826171875, 0.01837158203125, 0.00417327880859375, 0.0260162353515625, -0.005462646484375, -0.0264434814453125, 0.0159149169921875, -0.0216217041015625, 0.0235443115234375, 0.025421142578125, -0.015350341796875, 0.041595458984375, 0.0254364013671875, -0.011566162109375, 0.035400390625, -0.0286102294921875, 0.01300811767578125, 0.017333984375, 0.032012939453125, 0.0110931396484375, 0.0021610260009765625, 0.0005288124084472656, 0.01385498046875, 0.010894775390625, -0.0214385986328125, 0.03607177734375, -0.01189422607421875, 0.0303955078125, -0.0022945404052734375, -0.0282135009765625, 0.023101806640625, -0.0740966796875, -0.007617950439453125, 0.00438690185546875, 0.00012433528900146484, -0.0261077880859375, -0.00925445556640625, -0.023956298828125, -0.0025959014892578125, -0.0034198760986328125, -0.0013294219970703125, 0.019744873046875, -0.02471923828125, 0.045501708984375, 0.004253387451171875, 0.04339599609375, -0.0260162353515625, -0.033538818359375, -0.04461669921875, -0.00652313232421875, 0.01358795166015625, -0.0224151611328125, -0.038970947265625, -0.01033782958984375, -0.017425537109375, 0.038543701171875, -0.01042938232421875, 0.060089111328125, -0.0325927734375, -0.0301513671875, -0.0002732276916503906, 0.0178070068359375, 0.002315521240234375, -0.0009236335754394531, -0.069580078125, 0.011810302734375, -0.069091796875, -0.008697509765625, -0.038177490234375, -0.0272674560546875, -0.043487548828125, -0.01245880126953125, 0.0340576171875, 0.031158447265625, -0.006626129150390625, -0.0584716796875, -0.0384521484375, 0.0009698867797851562, 0.034576416015625, 0.031768798828125, -0.0173492431640625, 0.03546142578125, 0.00894927978515625, 0.039306640625, 0.006038665771484375, 0.027252197265625, -0.01360321044921875, -0.04083251953125, 0.0256500244140625, 0.0007772445678710938, -0.034210205078125, 0.00704193115234375, -0.038360595703125, -0.026947021484375, 0.039520263671875, -0.0191497802734375, 0.0178680419921875, 0.017120361328125, 0.0225677490234375, -0.00177764892578125, -0.0265350341796875, 0.0141754150390625, -0.03271484375, 0.06768798828125, -0.0116729736328125, 0.061187744140625, -0.0216217041015625, 0.0277557373046875, -0.01511383056640625, -0.04644775390625, 0.0025959014892578125, 0.0270233154296875, -0.0260467529296875, 0.048919677734375, 0.0777587890625, 0.017791748046875, 0.054595947265625, 0.0276641845703125, 0.01424407958984375, -0.0007023811340332031, 0.03289794921875, -0.01123809814453125, -0.0460205078125, 0.033203125, 0.0138397216796875, -0.0182342529296875, 0.02392578125, -0.034576416015625, 0.007648468017578125, 0.059112548828125, 0.035675048828125, -0.048065185546875, -0.0034236907958984375, -0.02294921875, -0.0307464599609375, 0.06365966796875, 0.0006451606750488281, 0.0189666748046875, -0.0113677978515625, 0.07550048828125, -0.027099609375, -0.00647735595703125, 0.033843994140625, -0.0269622802734375, 0.01387786865234375, -0.0213775634765625, 0.03839111328125, 0.004131317138671875, -0.0721435546875, 0.0174560546875, 0.046966552734375, -0.003810882568359375, -0.0256805419921875, -0.0013608932495117188, 0.00855255126953125, -0.0012378692626953125, -0.041961669921875, 0.046478271484375, -0.026092529296875, 0.0103302001953125, 0.0078125, 0.011383056640625, -0.0219573974609375, 0.06005859375, -0.031707763671875, 0.046783447265625, 0.035400390625, -0.05206298828125, -0.0152587890625, -0.004199981689453125, 0.01136016845703125, 0.00032591819763183594, -0.015533447265625, 0.0112457275390625, -0.017822265625, -0.0151824951171875, -0.0162811279296875, -0.03607177734375, 0.066650390625, 0.0026092529296875, -0.0323486328125, 0.03375244140625, -0.021209716796875, -0.0225372314453125, -0.00527191162109375, 0.028900146484375, -0.0234832763671875, 0.03216552734375, 0.0093994140625, 0.041748046875, 0.001522064208984375, 0.0018968582153320312, -0.050384521484375, 0.054351806640625, -0.0276031494140625, 0.017822265625, 0.0013055801391601562, 0.0243988037109375, 0.0169219970703125, 0.006557464599609375, -0.02349853515625, 0.0367431640625, -0.04022216796875, 0.0489501953125, -0.053680419921875, -0.008026123046875, 0.015533447265625, 0.051483154296875, 0.0211181640625, -0.003360748291015625, -0.0018434524536132812, -0.0161895751953125, 0.0367431640625, 0.03558349609375, -0.00012230873107910156, 0.0247802734375, -0.0289306640625, -0.0032329559326171875, -0.0284423828125, -0.000576019287109375, 0.033599853515625, -0.0194549560546875, -0.067138671875, 0.0002593994140625, 0.016693115234375, 0.0009465217590332031, 0.037139892578125, -0.0200347900390625, -0.0433349609375, 0.02447509765625, 0.0216522216796875, 0.019134521484375, 0.011993408203125, 0.0616455078125, 0.06842041015625, -0.03729248046875, -0.0205535888671875, -0.03009033203125, 0.06854248046875, 0.029632568359375, 0.0075531005859375, -0.00460052490234375, 0.0209808349609375, -0.02325439453125, -0.018890380859375, 0.00727081298828125, 0.04302978515625, -0.044525146484375, 0.057342529296875, 0.02203369140625, 0.027069091796875, -0.0428466796875, -0.0156707763671875, 0.01198577880859375, 0.0626220703125, -0.047882080078125, 0.029083251953125, 0.015716552734375, 0.0057220458984375, -0.04400634765625, -0.061981201171875, -0.04833984375, 0.00007742643356323242, 0.0213470458984375, -0.0180816650390625, 0.0051116943359375, 0.035858154296875, 0.0051422119140625, 0.0194549560546875, 0.03717041015625, -0.035430908203125, 0.0009102821350097656, -0.023193359375, -0.005001068115234375, -0.00884246826171875, 0.06451416015625, 0.0123443603515625, 0.07659912109375, -0.04693603515625, -0.0236053466796875, -0.0134429931640625, 0.049774169921875, 0.005184173583984375, 0.003021240234375, -0.0284423828125, -0.0361328125, 0.0013628005981445312, 0.0204620361328125, 0.0335693359375, 0.006534576416015625, 0.04034423828125, 0.01505279541015625, -0.0219268798828125, -0.0005636215209960938, 0.0004317760467529297, -0.024505615234375, 0.029571533203125, -0.0035152435302734375, 0.0100555419921875, 0.009307861328125, -0.0258636474609375, -0.0214691162109375, 0.0513916015625, 0.0235748291015625, -0.036285400390625, 0.0193939208984375, 0.0012302398681640625, -0.035614013671875, 0.021026611328125, -0.00875091552734375, 0.0301513671875, -0.007289886474609375, -0.072265625, -0.0160675048828125, -0.0205535888671875, -0.04107666015625, 0.031280517578125, 0.0411376953125, 0.004913330078125, -0.01409912109375, -0.01165771484375, 0.0105438232421875, 0.0306549072265625, -0.034149169921875, 0.0032634735107421875, 0.07684326171875, 0.037200927734375, 0.028717041015625, -0.0736083984375, -0.0406494140625, -0.0247955322265625, 0.0270233154296875, 0.0074462890625, 0.025848388671875, 0.0213623046875, 0.024658203125, -0.054443359375, 0.021026611328125, -0.05853271484375, -0.033447265625, 0.01036834716796875, 0.006168365478515625, -0.00835418701171875, -0.0008740425109863281, -0.09112548828125, 0.04046630859375, 0.01145172119140625, 0.0124359130859375, 0.0662841796875, -0.01052093505859375, -0.00856781005859375, -0.038787841796875, 0.027008056640625, -0.010101318359375, 0.001148223876953125, -0.003997802734375, -0.013153076171875, 0.03179931640625, 0.0027904510498046875, -0.018524169921875, 0.04443359375, 0.002971649169921875, -0.0252532958984375, 0.026275634765625, -0.063720703125, 0.0400390625, 0.034912109375, 0.007343292236328125, -0.03802490234375, 0.040557861328125, -0.003955841064453125, 0.01194000244140625, 0.007114410400390625, 0.047119140625, 0.0144500732421875, -0.038360595703125, -0.00015366077423095703, -0.021331787109375, 0.034637451171875, -0.032958984375, 0.01210784912109375, -0.00958251953125, 0.0257110595703125, -0.00519561767578125, 0.01519012451171875, -0.02850341796875, -0.0291595458984375, 0.0028533935546875, 0.023773193359375, -0.0158538818359375, -0.022796630859375, -0.0751953125, -0.03125, 0.00655364990234375, -0.022430419921875, 0.0189361572265625, -0.01702880859375, -0.020660400390625, -0.01534271240234375, -0.024627685546875, -0.0121307373046875, 0.0207061767578125, 0.044769287109375, -0.043182373046875, -0.0008115768432617188, -0.0292816162109375, -0.0185546875, -0.02325439453125, 0.017974853515625, 0.04376220703125, -0.00995635986328125, 0.034332275390625, 0.0207366943359375, 0.0027751922607421875, 0.07757568359375, -0.05718994140625, -0.003284454345703125, 0.0416259765625, -0.0202789306640625, -0.030609130859375, -0.062103271484375, 0.0229034423828125, -0.08770751953125, -0.01016998291015625, -0.0301513671875, -0.01397705078125, -0.020538330078125, -0.035400390625, -0.0043182373046875, 0.05035400390625, 0.004344940185546875, -0.02105712890625, -0.0291595458984375, -0.010711669921875, -0.028076171875, 0.03076171875, 0.006458282470703125, -0.032501220703125, 0.0129547119140625, 0.048797607421875, 0.0026569366455078125, 0.0183563232421875, 0.0238037109375, 0.0021457672119140625, -0.010498046875, 0.007671356201171875, 0.00884246826171875, -0.03662109375, 0.053466796875, -0.03265380859375, 0.03973388671875, 0.0281524658203125, -0.058837890625, 0.0030498504638671875, -0.0227508544921875, -0.00531768798828125, -0.00830841064453125, -0.044525146484375, -0.021148681640625, -0.0390625, 0.03192138671875, 0.023651123046875, 0.009033203125, -0.010345458984375, -0.00862884521484375, -0.013916015625, -0.083740234375, -0.0114288330078125, 0.0294342041015625, -0.05767822265625, 0.0187835693359375, 0.0025196075439453125, 0.001895904541015625, -0.011871337890625, -0.02685546875, -0.02947998046875, -0.0186309814453125, -0.01483917236328125, 0.026885986328125, -0.0218353271484375, -0.03155517578125, 0.0863037109375, -0.04400634765625, -0.00672149658203125, 0.005596160888671875, 0.030029296875, 0.0311126708984375, -0.006366729736328125, 0.0112152099609375, 0.0003046989440917969, -0.0037899017333984375, 0.0134124755859375, 0.017242431640625, 0.010589599609375, -0.007965087890625, -0.0272216796875, -0.0240631103515625, 0.042999267578125, 0.01348114013671875, 0.04608154296875, -0.0133514404296875, 0.06719970703125, 0.0233917236328125, 0.056243896484375, 0.0012159347534179688, 0.025634765625, -0.00954437255859375, 0.03973388671875, -0.04644775390625, 0.007476806640625, -0.0372314453125, -0.01525115966796875, 0.00506591796875, 0.0030689239501953125, 0.01413726806640625, -0.01348876953125, 0.0016002655029296875, -0.0220489501953125, 0.004604339599609375, 0.01009368896484375 ]
44f04613018b680fb5acf17d3866fb7311ac851f
Wordpress Stackexchange Q: Sending the reset password link programatically I have this manually created page: $user_login = sanitize_text_field( $_GET['user_login'] ); if ( username_exists( $user_login ) || email_exists($user_login) ) { ?> <!--Everything has been validated, proceed ....--> <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function submit() { var f = document.getElementById('lostpasswordform'); f.onclick = function () { }; document.lostpasswordform.submit(); } </script> </head> <body onload="submit()"> <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> <input type="hidden" name="user_login" id="user_login" class="input" value="<?php echo ($user_login); ?>" /> <?php do_action('lost_password'); ?> </form> </body> </html> <?php echo "SUCCESS"; exit(); } else { echo "Entered Username or Email was incorrect, please try again!"; } Everything seems right, but it doesn't work when called from an app. If I manually visit domain.example/forgot-password?user_login=username it does send the reset pass email fine. A: I noticed that after upgrading WordPress to Version 4.3 that the above no longer worked for my custom plugin. It would always report that the key was invalid. Change: $hashed = $wp_hasher->HashPassword( $key ); to $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); This fixed the issue for me, hope it helps someone else
Q: Sending the reset password link programatically I have this manually created page: $user_login = sanitize_text_field( $_GET['user_login'] ); if ( username_exists( $user_login ) || email_exists($user_login) ) { ?> <!--Everything has been validated, proceed ....--> <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function submit() { var f = document.getElementById('lostpasswordform'); f.onclick = function () { }; document.lostpasswordform.submit(); } </script> </head> <body onload="submit()"> <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> <input type="hidden" name="user_login" id="user_login" class="input" value="<?php echo ($user_login); ?>" /> <?php do_action('lost_password'); ?> </form> </body> </html> <?php echo "SUCCESS"; exit(); } else { echo "Entered Username or Email was incorrect, please try again!"; } Everything seems right, but it doesn't work when called from an app. If I manually visit domain.example/forgot-password?user_login=username it does send the reset pass email fine. A: I noticed that after upgrading WordPress to Version 4.3 that the above no longer worked for my custom plugin. It would always report that the key was invalid. Change: $hashed = $wp_hasher->HashPassword( $key ); to $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); This fixed the issue for me, hope it helps someone else A: Wordpress 4.3.1 function retrieve_password($user_login){ global $wpdb, $wp_hasher; $user_login = sanitize_text_field($user_login); if ( empty( $user_login) ) { return false; } else if ( strpos( $user_login, '@' ) ) { $user_data = get_user_by( 'email', trim( $user_login ) ); if ( empty( $user_data ) ) return false; } else { $login = trim($user_login); $user_data = get_user_by('login', $login); } do_action('lostpassword_post'); if ( !$user_data ) return false; // redefining user_login ensures we return the right case in the email $user_login = $user_data->user_login; $user_email = $user_data->user_email; do_action('retreive_password', $user_login); // Misspelled and deprecated do_action('retrieve_password', $user_login); $allow = apply_filters('allow_password_reset', true, $user_data->ID); if ( ! $allow ) return false; else if ( is_wp_error($allow) ) return false; $key = wp_generate_password( 20, false ); do_action( 'retrieve_password_key', $user_login, $key ); if ( empty( $wp_hasher ) ) { require_once ABSPATH . 'wp-includes/class-phpass.php'; $wp_hasher = new PasswordHash( 8, true ); } $hashed = $wp_hasher->HashPassword( $key ); $wpdb->update( $wpdb->users, array( 'user_activation_key' => time().":".$hashed ), array( 'user_login' => $user_login ) ); $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; $message .= network_home_url( '/' ) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n"; if ( is_multisite() ) $blogname = $GLOBALS['current_site']->site_name; else $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $title = sprintf( __('[%s] Password Reset'), $blogname ); $title = apply_filters('retrieve_password_title', $title); $message = apply_filters('retrieve_password_message', $message, $key); if ( $message && !wp_mail($user_email, $title, $message) ) wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') ); echo '<p>Link for password reset has been emailed to you. Please check your email.</p>';; } A: Combined Example ( Tested in 5.2 ) Frontend Form <form id="form-password-reset" action="<?php echo wp_lostpassword_url(); ?>" method="post"> <?php wp_nonce_field( 'ajax-resetpassword-nonce', 'security' ); ?> <div class="text-align-center margin-bottom-32"> <h3 class="h3">Reset Your Password</h3> </div> <div class="row"> <div class="col-12 col-md-4"> <div class="form-group"> <label for="auth-password-reset-email">Email</label> <div class="form-input-wrapper"> <input type="email" class="form-input" id="auth-password-reset-email" name="email" placeholder="eg. [email protected]"> </div> </div> <button type="submit" class="btn-solid btn-primary btn-block"> Submit</button> <p class="form__error margin-top-16"> // TODO you can show the message here </p> </div> <div class="col-12 col-md-4"></div> </div> </form> Js to handle the AJAX submit $(form).on('submit', function (event) { event.preventDefault(event) const email = $(`#auth-password-reset-email`).val() const security = $(`#security`).val() const action = 'authResetPassword' var has_error = false; if (email.length <= 0) { // TODO has_error = true; } if (security.length <= 0) { // TODO has_error = true; } if (has_error == true) { // TODO return false } $.ajax({ type: 'POST', dataType: 'json', url: ajax.ajaxurl, data: { action, email, security }, success: function (data) { if (data.status) { // TODO } if (!data.status) { // TODO } } }) return false; }) Server side to generate the reset link and trigger the e-mail try { check_ajax_referer('ajax-resetpassword-nonce', 'security'); $response = [ "status" => false, "error" => true, "data" => "", ]; extract($_POST); $user_email = sanitize_text_field($email); $user = get_user_by( 'email', $user_email ); if( $user instanceof WP_User ) { $user_id = $user->ID; $user_info = get_userdata($user_id); $unique = get_password_reset_key( $user_info ); $unique_url = network_site_url("wp-login.php?action=rp&key=$unique&login=" . rawurlencode($user_info->user_login), 'login'); $subject = "Reset Password Link"; $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; $message = "<p>Hi ".ucfirst( $user_info->first_name ).",</p>"; $message .= network_home_url( '/' ) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_info->user_login) . "\r\n\r\n"; $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; $message .= $unique_url; wp_mail( $user_email, $subject, $message ); // TODO $response['data'] = [ "message" => __('Password reset link sent.'), 'reset_link' => $unique_url ]; wp_send_json($response); } $response['data'] = [ "message" => __('Email address not exists.') ]; wp_send_json($response); } catch (Exception $e) { wp_send_json([ "status" => false, "error" => false, "data" => ["message" => $e->getMessage() ] ]); } To show your own custom reset password form add_action( 'login_form_lostpassword', 'redirect_to_custom_lostpassword' ); function redirect_to_custom_lostpassword() { if ( 'GET' == $_SERVER['REQUEST_METHOD'] ) { if ( is_user_logged_in() ) { // TODO exit; } wp_redirect( home_url( 'custom-password-lost' ) ); // TODO exit; } } A: So if you want to send the reset password link and you have access to the code base, you can use the following snippet and you can modify it further. Actually this code is a slightly modified version of wp-login.php /** * Handles sending password retrieval email to user. * * @uses $wpdb WordPress Database object * @param string $user_login User Login or Email * @return bool true on success false on error */ function retrieve_password($user_login) { global $wpdb, $current_site; if ( empty( $user_login) ) { return false; } else if ( strpos( $user_login, '@' ) ) { $user_data = get_user_by( 'email', trim( $user_login ) ); if ( empty( $user_data ) ) return false; } else { $login = trim($user_login); $user_data = get_user_by('login', $login); } do_action('lostpassword_post'); if ( !$user_data ) return false; // redefining user_login ensures we return the right case in the email $user_login = $user_data->user_login; $user_email = $user_data->user_email; do_action('retreive_password', $user_login); // Misspelled and deprecated do_action('retrieve_password', $user_login); $allow = apply_filters('allow_password_reset', true, $user_data->ID); if ( ! $allow ) return false; else if ( is_wp_error($allow) ) return false; $key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login)); if ( empty($key) ) { // Generate something random for a key... $key = wp_generate_password(20, false); do_action('retrieve_password_key', $user_login, $key); // Now insert the new md5 key into the db $wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login)); } $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; $message .= network_home_url( '/' ) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n"; if ( is_multisite() ) $blogname = $GLOBALS['current_site']->site_name; else // The blogname option is escaped with esc_html on the way into the database in sanitize_option // we want to reverse this for the plain text arena of emails. $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $title = sprintf( __('[%s] Password Reset'), $blogname ); $title = apply_filters('retrieve_password_title', $title); $message = apply_filters('retrieve_password_message', $message, $key); if ( $message && !wp_mail($user_email, $title, $message) ) wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') ); return true; } $user_login = sanitize_text_field( $_GET['user_login'] ); if (retrieve_password($user_login)) { echo "SUCCESS"; } else { echo "ERROR"; } A: Previous answer didn't worked for me (says that code is invalid, on wp login page), probably because answer is 1,5 yr old, and something is changed in WP code, so I have updated this code a bit (also from wp-login.php), here it is: function retrieve_password($user_login){ global $wpdb, $wp_hasher; $user_login = sanitize_text_field($user_login); if ( empty( $user_login) ) { return false; } else if ( strpos( $user_login, '@' ) ) { $user_data = get_user_by( 'email', trim( $user_login ) ); if ( empty( $user_data ) ) return false; } else { $login = trim($user_login); $user_data = get_user_by('login', $login); } do_action('lostpassword_post'); if ( !$user_data ) return false; // redefining user_login ensures we return the right case in the email $user_login = $user_data->user_login; $user_email = $user_data->user_email; do_action('retreive_password', $user_login); // Misspelled and deprecated do_action('retrieve_password', $user_login); $allow = apply_filters('allow_password_reset', true, $user_data->ID); if ( ! $allow ) return false; else if ( is_wp_error($allow) ) return false; $key = wp_generate_password( 20, false ); do_action( 'retrieve_password_key', $user_login, $key ); if ( empty( $wp_hasher ) ) { require_once ABSPATH . 'wp-includes/class-phpass.php'; $wp_hasher = new PasswordHash( 8, true ); } $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user_login ) ); $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; $message .= network_home_url( '/' ) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n"; if ( is_multisite() ) $blogname = $GLOBALS['current_site']->site_name; else $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $title = sprintf( __('[%s] Password Reset'), $blogname ); $title = apply_filters('retrieve_password_title', $title); $message = apply_filters('retrieve_password_message', $message, $key); if ( $message && !wp_mail($user_email, $title, $message) ) wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') ); echo '<p>Link for password reset has been emailed to you. Please check your email.</p>';; } A: None of the above answer worked for me so I looked into wp-login.php for their default reset functionality. They used get_password_reset_key( $userData ) function . In case someone stuck up on above answers here's my solution :- $userData = get_userdata($user_id); $user_login = $userData->user_login; $user_email = $userData->user_email; $key = get_password_reset_key( $userData ); $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; $message .= network_home_url( '/' ) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login'); A: Since the above solution was not working for me I did a minor changes in the bhavesh vala's code. Replace : $key = wp_generate_password( 20, false ); With this : $key = get_password_reset_key( $user_data ); And you don't need to use the update query, so remove the below query : $wpdb->update( $wpdb->users, array( 'user_activation_key' => time().":".$hashed ), array( 'user_login' => $user_login ) ); Happy coding!!! A: Try this $wpdb->update( $wpdb->users, array( 'user_activation_key' => $key ), array( 'user_login' => $user_login ) ); instead of $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user_login ) ); It worked me (wordpress 4.3.1)
wordpress
{ "language": "en", "length": 1846, "provenance": "stackexchange_00019.jsonl.gz:422451", "question_score": "43", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60318" }
[ 0.0225830078125, -0.028656005859375, 0.000873565673828125, 0.0196685791015625, -0.01617431640625, -0.044464111328125, 0.0377197265625, -0.0309906005859375, -0.0232391357421875, 0.032440185546875, 0.029083251953125, -0.036407470703125, 0.0231781005859375, -0.047119140625, 0.0010929107666015625, -0.038055419921875, 0.01959228515625, 0.00040650367736816406, 0.00485992431640625, -0.0230712890625, 0.0204315185546875, 0.0020904541015625, -0.00238800048828125, -0.0009341239929199219, 0.007633209228515625, 0.0645751953125, 0.0992431640625, -0.031585693359375, 0.00966644287109375, -0.00762939453125, 0.0157470703125, -0.065185546875, 0.03240966796875, 0.0218505859375, -0.04833984375, -0.0391845703125, -0.00800323486328125, 0.0016326904296875, -0.03729248046875, 0.048004150390625, 0.0311431884765625, -0.018890380859375, 0.0166168212890625, 0.004566192626953125, 0.006122589111328125, -0.049591064453125, 0.06842041015625, -0.01372528076171875, 0.006999969482421875, 0.0379638671875, -0.0015869140625, 0.0295867919921875, 0.0003986358642578125, 0.01617431640625, 0.0016088485717773438, 0.0163421630859375, 0.0191802978515625, -0.016204833984375, 0.01934814453125, 0.06365966796875, 0.0038585662841796875, 0.0104827880859375, -0.0211334228515625, -0.0638427734375, -0.01287078857421875, -0.020904541015625, 0.0205841064453125, 0.00846099853515625, 0.00640869140625, -0.0106048583984375, 0.016357421875, 0.006053924560546875, -0.008819580078125, -0.0245208740234375, -0.00548553466796875, 0.01556396484375, -0.0117340087890625, -0.0256805419921875, 0.01050567626953125, 0.0103912353515625, -0.004093170166015625, 0.020477294921875, -0.058837890625, 0.006683349609375, 0.0028362274169921875, 0.037384033203125, -0.01203155517578125, -0.0287017822265625, -0.023193359375, -0.03790283203125, -0.0115203857421875, -0.046844482421875, -0.03363037109375, -0.0189361572265625, -0.011993408203125, -0.0390625, 0.017181396484375, 0.04791259765625, 0.01277923583984375, -0.004329681396484375, 0.01160430908203125, -0.037567138671875, 0.0012187957763671875, -0.0282440185546875, -0.00811004638671875, 0.055511474609375, 0.01166534423828125, 0.0031833648681640625, -0.002685546875, -0.00377655029296875, -0.0083160400390625, -0.040435791015625, -0.02374267578125, -0.05120849609375, -0.014984130859375, 0.0157623291015625, -0.033966064453125, -0.01519012451171875, 0.01155853271484375, -0.029754638671875, -0.02630615234375, -0.0008711814880371094, -0.0278778076171875, -0.004528045654296875, 0.006206512451171875, -0.02728271484375, -0.01264190673828125, 0.0238037109375, 0.05267333984375, 0.0083770751953125, -0.078857421875, 0.0109710693359375, 0.086669921875, -0.0088348388671875, 0.010650634765625, -0.033782958984375, 0.003154754638671875, 0.019927978515625, -0.024688720703125, 0.039398193359375, 0.00034499168395996094, -0.0455322265625, 0.0079498291015625, -0.006267547607421875, -0.01220703125, 0.035980224609375, -0.00603485107421875, 0.0043487548828125, 0.01404571533203125, -0.0821533203125, 0.03515625, -0.0673828125, -0.01751708984375, 0.033111572265625, 0.0279693603515625, 0.0288238525390625, 0.0526123046875, -0.0161285400390625, -0.0253143310546875, -0.0046539306640625, 0.0733642578125, -0.017730712890625, -0.036041259765625, 0.0288543701171875, -0.035491943359375, 0.022125244140625, -0.043670654296875, -0.01629638671875, 0.01380157470703125, -0.006282806396484375, 0.0027256011962890625, 0.022247314453125, 0.03924560546875, 0.0062713623046875, 0.003173828125, 0.005466461181640625, -0.03778076171875, 0.068115234375, 0.022735595703125, -0.03363037109375, 0.00943756103515625, -0.046234130859375, 0.08331298828125, -0.00640106201171875, -0.0433349609375, -0.0167236328125, 0.0246429443359375, 0.05487060546875, 0.015838623046875, 0.0223541259765625, 0.057403564453125, -0.00008684396743774414, -0.0006690025329589844, 0.061553955078125, 0.007965087890625, -0.0379638671875, -0.048553466796875, -0.007137298583984375, -0.036468505859375, -0.01317596435546875, -0.01751708984375, -0.056182861328125, 0.04681396484375, -0.02349853515625, -0.0247955322265625, 0.01424407958984375, -0.0303955078125, 0.0273895263671875, -0.048370361328125, 0.0017232894897460938, 0.039337158203125, 0.0085296630859375, -0.03948974609375, 0.004817962646484375, -0.006153106689453125, -0.01305389404296875, -0.0504150390625, 0.045745849609375, -0.01544189453125, 0.08514404296875, -0.0227508544921875, -0.039642333984375, -0.0109405517578125, -0.0589599609375, 0.006389617919921875, -0.0182342529296875, -0.006046295166015625, -0.01113128662109375, -0.00833892822265625, -0.0110015869140625, -0.000026702880859375, 0.0240325927734375, 0.02239990234375, 0.015655517578125, -0.05279541015625, -0.029632568359375, -0.035614013671875, -0.035858154296875, 0.0049896240234375, 0.0662841796875, 0.0230560302734375, 0.04632568359375, -0.016815185546875, -0.01263427734375, 0.0246124267578125, -0.0286712646484375, 0.02069091796875, -0.020111083984375, -0.0276336669921875, 0.00939178466796875, 0.0028438568115234375, 0.01171875, 0.0120391845703125, -0.0155487060546875, -0.029541015625, 0.04241943359375, -0.0237884521484375, -0.01445770263671875, -0.03985595703125, 0.0224761962890625, 0.005123138427734375, -0.05194091796875, -0.0231475830078125, -0.02618408203125, 0.044586181640625, -0.046844482421875, 0.0049896240234375, -0.0100860595703125, -0.0191192626953125, -0.021331787109375, 0.0335693359375, -0.053985595703125, -0.01209259033203125, 0.0140380859375, 0.037017822265625, -0.0026454925537109375, -0.04815673828125, -0.01071929931640625, 0.0084381103515625, 0.0192413330078125, 0.001373291015625, -0.0034465789794921875, -0.0211029052734375, 0.002941131591796875, 0.004032135009765625, -0.031982421875, 0.0219879150390625, 0.04840087890625, 0.057220458984375, 0.01511383056640625, 0.064697265625, -0.0259857177734375, -0.0123138427734375, 0.034759521484375, -0.004062652587890625, -0.053375244140625, -0.060760498046875, -0.015625, 0.0313720703125, -0.04052734375, -0.01422882080078125, 0.049407958984375, -0.00838470458984375, 0.0175323486328125, -0.01123046875, -0.0102386474609375, -0.022918701171875, 0.0206451416015625, -0.0156707763671875, -0.034820556640625, -0.0374755859375, -0.00959014892578125, 0.035491943359375, 0.0692138671875, -0.0029964447021484375, -0.044464111328125, -0.0181427001953125, 0.025360107421875, -0.099365234375, -0.1265869140625, -0.0212860107421875, -0.0560302734375, 0.00749969482421875, 0.0171661376953125, -0.015594482421875, -0.0230560302734375, 0.053924560546875, 0.02130126953125, -0.0023593902587890625, -0.007396697998046875, -0.055267333984375, -0.048583984375, -0.06414794921875, -0.02545166015625, -0.01377105712890625, 0.0052337646484375, 0.003993988037109375, 0.0196075439453125, -0.003902435302734375, -0.01253509521484375, 0.0048980712890625, 0.005847930908203125, -0.00787353515625, -0.026275634765625, -0.037841796875, -0.03985595703125, 0.054962158203125, -0.018707275390625, -0.0153656005859375, -0.0080413818359375, 0.05560302734375, -0.02423095703125, -0.00563812255859375, -0.044647216796875, 0.01100921630859375, -0.00527191162109375, 0.00536346435546875, -0.022125244140625, 0.0217437744140625, -0.0418701171875, 0.0006418228149414062, -0.0052490234375, -0.03851318359375, 0.04034423828125, 0.024566650390625, -0.037322998046875, 0.031890869140625, -0.0142364501953125, -0.00046443939208984375, -0.01690673828125, -0.0093841552734375, -0.008270263671875, 0.0140533447265625, -0.0198822021484375, 0.00505828857421875, -0.003086090087890625, 0.037567138671875, -0.0218658447265625, -0.0207366943359375, 0.004375457763671875, 0.0170440673828125, 0.02154541015625, -0.044342041015625, -0.0125885009765625, -0.049163818359375, 0.03717041015625, -0.0374755859375, -0.01953125, -0.03118896484375, -0.0118408203125, -0.0031490325927734375, 0.06640625, 0.0274810791015625, -0.0200958251953125, -0.024749755859375, 0.01244354248046875, -0.06787109375, 0.0126190185546875, -0.0178375244140625, 0.033905029296875, -0.044464111328125, -0.040740966796875, -0.0113525390625, -0.045135498046875, 0.026397705078125, -0.07421875, 0.003238677978515625, -0.0298309326171875, 0.0251312255859375, -0.0018911361694335938, 0.034881591796875, -0.029876708984375, 0.01117706298828125, -0.0251007080078125, 0.004802703857421875, -0.0274505615234375, -0.0391845703125, -0.01043701171875, 0.001667022705078125, 0.0196990966796875, 0.037689208984375, -0.04974365234375, 0.0029087066650390625, 0.034759521484375, 0.037750244140625, -0.0244293212890625, 0.035430908203125, -0.016693115234375, 0.01068115234375, 0.022857666015625, 0.01432037353515625, -0.01236724853515625, -0.01175689697265625, 0.00394439697265625, -0.035430908203125, -0.038177490234375, -0.0007381439208984375, -0.0599365234375, 0.055267333984375, -0.047821044921875, -0.06512451171875, -0.04248046875, -0.01560211181640625, -0.028167724609375, -0.00836181640625, -0.0196075439453125, -0.0267486572265625, -0.02587890625, 0.046478271484375, 0.0273895263671875, -0.0043792724609375, -0.0221710205078125, 0.0059356689453125, 0.0020313262939453125, -0.04217529296875, 0.03631591796875, 0.03253173828125, 0.02484130859375, 0.01219940185546875, -0.0140838623046875, -0.0269012451171875, -0.0291748046875, 0.051910400390625, -0.0021820068359375, 0.03057861328125, -0.01654052734375, 0.0163726806640625, -0.0010547637939453125, -0.0170135498046875, 0.025665283203125, 0.01812744140625, -0.0033473968505859375, 0.036102294921875, 0.01140594482421875, -0.0012226104736328125, -0.005931854248046875, -0.0258636474609375, -0.01026153564453125, -0.01117706298828125, 0.02447509765625, -0.043792724609375, 0.0183258056640625, -0.03875732421875, -0.005001068115234375, -0.01406097412109375, 0.00617218017578125, -0.0172271728515625, -0.00556182861328125, -0.018646240234375, -0.00646209716796875, -0.0237579345703125, 0.0308380126953125, 0.006061553955078125, -0.0054168701171875, 0.002025604248046875, -0.0231170654296875, -0.02801513671875, 0.10150146484375, 0.03948974609375, -0.0163421630859375, 0.01061248779296875, -0.007335662841796875, 0.037322998046875, -0.0271759033203125, 0.00014650821685791016, 0.021392822265625, -0.01265716552734375, -0.0276336669921875, 0.01261138916015625, 0.0017042160034179688, -0.0023021697998046875, -0.0234527587890625, 0.026275634765625, 0.03387451171875, -0.0190277099609375, 0.01287078857421875, 0.053375244140625, -0.0400390625, 0.03826904296875, 0.01323699951171875, 0.007843017578125, 0.03594970703125, 0.01143646240234375, 0.03741455078125, -0.021820068359375, -0.00978851318359375, -0.0067291259765625, 0.0201416015625, -0.0421142578125, -0.04486083984375, 0.01313018798828125, 0.042266845703125, -0.00014281272888183594, 0.021942138671875, 0.006343841552734375, 0.01515960693359375, 0.00861358642578125, -0.0037860870361328125, -0.0726318359375, -0.054290771484375, -0.0126800537109375, 0.0182037353515625, 0.0146026611328125, -0.04718017578125, -0.0006031990051269531, -0.0112457275390625, -0.0037670135498046875, -0.003940582275390625, -0.00899505615234375, -0.0011539459228515625, -0.022308349609375, -0.007678985595703125, 0.04595947265625, 0.00922393798828125, -0.038787841796875, 0.028045654296875, 0.01435089111328125, -0.0167236328125, -0.026153564453125, 0.06298828125, -0.0066070556640625, 0.007434844970703125, -0.023712158203125, 0.0103607177734375, -0.0116424560546875, 0.002170562744140625, 0.03350830078125, -0.01163482666015625, -0.0276947021484375, -0.0191650390625, -0.032623291015625, -0.0173187255859375, -0.016265869140625, -0.0093994140625, -0.035369873046875, 0.00008004903793334961, 0.02667236328125, 0.0173492431640625, 0.01251983642578125, -0.0254974365234375, -0.02093505859375, -0.0008306503295898438, 0.033905029296875, 0.025115966796875, 0.003025054931640625, 0.030731201171875, -0.0004413127899169922, 0.039215087890625, 0.0256805419921875, 0.028839111328125, -0.01727294921875, -0.026885986328125, 0.0059051513671875, -0.02264404296875, -0.013916015625, -0.0406494140625, 0.0357666015625, 0.03338623046875, 0.05963134765625, 0.0004467964172363281, -0.035736083984375, -0.0245208740234375, 0.013275146484375, -0.019134521484375, 0.0606689453125, 0.0187225341796875, -0.047119140625, 0.0272979736328125, -0.059906005859375, -0.034271240234375, 0.01488494873046875, 0.02655029296875, 0.0228729248046875, -0.03717041015625, 0.0057220458984375, 0.012542724609375, -0.031524658203125, 0.031829833984375, 0.054779052734375, 0.004486083984375, 0.04339599609375, -0.0023956298828125, 0.029449462890625, 0.04058837890625, -0.046630859375, -0.00722503662109375, 0.023834228515625, 0.03460693359375, -0.01157379150390625, -0.0036144256591796875, 0.033355712890625, -0.0218505859375, -0.0015192031860351562, 0.0478515625, 0.06341552734375, -0.08587646484375, 0.0033664703369140625, -0.004978179931640625, -0.0061187744140625, 0.04022216796875, -0.00617218017578125, 0.020050048828125, 0.0014276504516601562, 0.01702880859375, -0.006038665771484375, -0.027496337890625, -0.0007805824279785156, -0.00013780593872070312, 0.011077880859375, -0.016448974609375, 0.032623291015625, 0.005077362060546875, -0.036895751953125, -0.0056610107421875, 0.0318603515625, -0.0131683349609375, 0.0004379749298095703, -0.0202484130859375, -0.005657196044921875, -0.033233642578125, -0.051666259765625, -0.03497314453125, -0.027923583984375, -0.0173797607421875, -0.0528564453125, -0.006420135498046875, 0.025054931640625, 0.02362060546875, -0.01129913330078125, -0.01316070556640625, -0.013458251953125, 0.02410888671875, 0.0283660888671875, -0.018890380859375, -0.0055694580078125, 0.020751953125, -0.04718017578125, 0.02142333984375, -0.00260162353515625, -0.0082244873046875, -0.0295257568359375, -0.00919342041015625, 0.07635498046875, 0.019561767578125, -0.03570556640625, 0.0247955322265625, 0.030792236328125, -0.0253143310546875, -0.0218658447265625, 0.0033588409423828125, -0.061981201171875, 0.0028781890869140625, -0.0157318115234375, 0.0018310546875, -0.00951385498046875, -0.0131988525390625, -0.0653076171875, 0.104248046875, 0.007904052734375, 0.0174102783203125, 0.0005888938903808594, 0.045257568359375, -0.01398468017578125, 0.02764892578125, -0.049560546875, 0.061370849609375, 0.0022983551025390625, 0.034332275390625, -0.031951904296875, 0.01226806640625, 0.00951385498046875, -0.0171356201171875, 0.046539306640625, 0.02777099609375, -0.0538330078125, -0.027130126953125, -0.0062255859375, 0.0235595703125, -0.01837158203125, 0.048583984375, 0.0302581787109375, 0.0184173583984375, 0.05712890625, -0.03155517578125, 0.0262908935546875, -0.0141754150390625, 0.0241241455078125, 0.04913330078125, -0.0235748291015625, -0.06207275390625, -0.0032806396484375, 0.029388427734375, -0.09759521484375, 0.01837158203125, 0.033660888671875, 0.0282745361328125, 0.0194854736328125, 0.0263671875, 0.0182647705078125, -0.0038318634033203125, 0.0064697265625, -0.0266876220703125, 0.034881591796875, -0.0222320556640625, 0.0108489990234375, 0.036163330078125, 0.0198822021484375, 0.048980712890625, -0.048004150390625, -0.0002567768096923828, -0.033966064453125, 0.0204620361328125, 0.07305908203125, 0.012451171875, 0.024658203125, -0.04522705078125, 0.04449462890625, 0.02178955078125, 0.080078125, -0.0714111328125, -0.0250091552734375, -0.003383636474609375, 0.02685546875, 0.053466796875, -0.0016431808471679688, 0.088134765625, -0.0164794921875, -0.00983428955078125, -0.0196380615234375, -0.0029735565185546875, 0.020721435546875, -0.0333251953125, 0.00809478759765625, 0.041839599609375, 0.012542724609375, 0.032745361328125, -0.0215606689453125, 0.02532958984375, 0.0040435791015625, 0.005680084228515625, -0.031585693359375, 0.057586669921875, 0.00048542022705078125, 0.003086090087890625, -0.0308990478515625, 0.001018524169921875, 0.0064239501953125, 0.0214385986328125, -0.004802703857421875, 0.037811279296875, -0.0208892822265625, 0.021209716796875, -0.0169677734375, -0.0162353515625, 0.036407470703125, 0.020660400390625, -0.044952392578125, -0.0242462158203125, -0.056854248046875, -0.035858154296875, -0.0028324127197265625, 0.018157958984375, -0.0288543701171875, -0.006191253662109375, -0.0164947509765625, -0.018463134765625, 0.0606689453125, -0.004314422607421875, 0.00316619873046875, 0.04718017578125, -0.0023097991943359375, 0.01551055908203125, 0.002223968505859375, -0.003955841064453125, 0.041778564453125, 0.033599853515625, -0.0205841064453125, -0.0155487060546875, 0.0186004638671875, -0.049835205078125, 0.0257568359375, 0.051544189453125, 0.00756072998046875, -0.0044097900390625, 0.0251007080078125, -0.057159423828125, 0.033477783203125, 0.034515380859375, -0.01605224609375, -0.0241241455078125, 0.0005459785461425781, -0.049530029296875, -0.0765380859375, -0.01026153564453125, -0.0201263427734375, -0.01224517822265625, 0.0173492431640625, 0.0623779296875, 0.0229339599609375, 0.009521484375, -0.032379150390625, 0.03009033203125, -0.046844482421875, -0.025360107421875, 0.00298309326171875, -0.0184783935546875, 0.0015325546264648438, 0.017822265625, -0.055511474609375, 0.102294921875, -0.0224761962890625, 0.065185546875, 0.05389404296875, -0.006866455078125, 0.00794219970703125, 0.03240966796875, 0.01129150390625, -0.00923919677734375, -0.04986572265625, 0.007045745849609375, 0.036041259765625, 0.015838623046875, 0.062225341796875, -0.01213836669921875, 0.055908203125, -0.0271759033203125, 0.01617431640625, 0.01035308837890625, -0.038970947265625, -0.0078582763671875, 0.0160980224609375, -0.031463623046875, -0.002391815185546875, -0.008392333984375, -0.01641845703125, -0.01363372802734375, 0.00928497314453125, -0.0103759765625, -0.003826141357421875, -0.002887725830078125, 0.0229034423828125, 0.03363037109375, 0.03985595703125, -0.0038852691650390625, -0.0010480880737304688, 0.013336181640625, -0.0232391357421875, 0.04351806640625, -0.034942626953125, -0.0216064453125, -0.0443115234375, -0.00861358642578125, 0.00157928466796875, -0.013824462890625, -0.04510498046875, -0.0014619827270507812, 0.0267486572265625, 0.009002685546875, 0.0081329345703125, -0.063232421875, 0.0333251953125, -0.00872802734375, 0.059844970703125, -0.0226287841796875, 0.0142059326171875, -0.014923095703125, 0.0343017578125, -0.0308380126953125, -0.006290435791015625, -0.0518798828125, -0.002193450927734375, -0.057220458984375, -0.0242919921875, 0.02117919921875, 0.0216064453125, -0.051605224609375, -0.0200958251953125, -0.03240966796875, 0.01261138916015625, -0.0523681640625, -0.0233917236328125, -0.02880859375, 0.0175628662109375, -0.005878448486328125, -0.047821044921875, 0.01010894775390625, -0.0675048828125, -0.01220703125, 0.017822265625, 0.007625579833984375, 0.0260162353515625, -0.0102996826171875, -0.04193115234375, 0.007396697998046875, 0.0108642578125, -0.0289306640625, -0.051483154296875, 0.0013265609741210938, 0.006771087646484375, -0.002910614013671875, -0.0186614990234375, -0.039154052734375, -0.041412353515625, 0.0239410400390625, -0.027435302734375, 0.0196380615234375, 0.00021648406982421875, 0.030059814453125, -0.04754638671875, 0.0027332305908203125, -0.0167236328125, -0.07440185546875, 0.01522064208984375, -0.00853729248046875, 0.0419921875, 0.0482177734375, -0.01470947265625, -0.005451202392578125, -0.006824493408203125, -0.023651123046875, -0.0016841888427734375, 0.0027980804443359375, 0.0028133392333984375, 0.0065155029296875, 0.0169677734375, 0.0439453125, -0.00846099853515625, -0.020477294921875, -0.0286102294921875, -0.0267791748046875, -0.0018949508666992188, -0.021453857421875, 0.0149383544921875, -0.06512451171875, -0.016937255859375, -0.01088714599609375, 0.01415252685546875, -0.027099609375, -0.0009975433349609375, -0.0008711814880371094, -0.026641845703125, 0.0233612060546875, -0.01129150390625, 0.03155517578125, -0.045867919921875, 0.0928955078125, -0.05108642578125, -0.0174560546875, 0.039276123046875, 0.0306549072265625, 0.038848876953125, 0.058807373046875, 0.04156494140625, 0.03375244140625, -0.01324462890625, -0.0260772705078125, 0.04644775390625, 0.034454345703125, 0.01090240478515625, -0.031280517578125, -0.006397247314453125, 0.019134521484375, -0.0059814453125, 0.00833892822265625, 0.013946533203125, 0.01026153564453125, 0.006504058837890625, 0.03424072265625, -0.01424407958984375, -0.0755615234375, -0.0279998779296875, 0.009002685546875, 0.015106201171875, -0.0080413818359375, 0.054718017578125, -0.0191650390625, -0.002361297607421875, 0.0236053466796875, 0.0343017578125, -0.0574951171875, 0.0428466796875, -0.0031757354736328125, 0.041534423828125, 0.0269775390625 ]
c973d0ef8b96014c448b627515ab255300608ff3
Wordpress Stackexchange Q: How to prevent automatic conversion of dashes to – When I put -- into a post it is automatically converted to the – &ndash; character in the output by wordpress. How can I get normal '--' double dashes in my content. A: In your functions.php: remove_filter( 'the_content', 'wptexturize' ); And the same for the_excerpt or the_title (if required).
Q: How to prevent automatic conversion of dashes to – When I put -- into a post it is automatically converted to the – &ndash; character in the output by wordpress. How can I get normal '--' double dashes in my content. A: In your functions.php: remove_filter( 'the_content', 'wptexturize' ); And the same for the_excerpt or the_title (if required). A: I found a solution: If you are using WordPress, in the beginning of your file single.php add these lines: <?php remove_filter( 'the_title', 'wptexturize' ); remove_filter( 'the_content', 'wptexturize' ); remove_filter( 'the_excerpt', 'wptexturize' ); ?> And do your test. I am 99.99% sure that will work because I had the same problem and I fixed it using that lines 10 seconds ago. ;) A: Another solution that override the origin function of wptexturize and update all related filters. define('EXCERPT_RARELY_2', '{[2}]'); function wptexturize_custom($text = '') { $text = preg_replace('!(^|[^\-])\-\-([^\-]|$)!', '$1' . EXCERPT_RARELY_2 . '$2', $text); // get through origin filter $text = wptexturize($text); return str_replace(EXCERPT_RARELY_2, '--', $text); } // remove default filter remove_filter('the_content', 'wptexturize'); // add custom filter add_filter('the_content', 'wptexturize_custom'); // remove default filter remove_filter('the_excerpt', 'wptexturize'); // add custom filter add_filter('the_excerpt', 'wptexturize_custom'); A: I had the same problem as the OP and the solution proposed by @TheDeadMedic almost worked for me. But my WP version has several function_something.php files and I had to add this to them all (making sure to add them after the php opening code <?php): remove_filter( 'the_title', 'wptexturize' ); remove_filter( 'the_content', 'wptexturize' ); remove_filter( 'the_excerpt', 'wptexturize' ); Of course only one of them would be needed if you only want to remove the filter for titles, content or excerpt.
wordpress
{ "language": "en", "length": 270, "provenance": "stackexchange_00019.jsonl.gz:422476", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60379" }
[ 0.04498291015625, 0.00823211669921875, -0.0235443115234375, 0.0134124755859375, 0.052947998046875, -0.06494140625, 0.113525390625, -0.019683837890625, -0.021759033203125, 0.02947998046875, 0.0300140380859375, -0.002079010009765625, 0.036346435546875, -0.058990478515625, -0.0035266876220703125, -0.0033283233642578125, 0.0036773681640625, -0.05322265625, -0.0282440185546875, -0.038848876953125, 0.039337158203125, -0.04248046875, 0.006793975830078125, 0.00249481201171875, -0.0064544677734375, -0.01013946533203125, 0.0931396484375, -0.01117706298828125, -0.0124359130859375, -0.0228729248046875, 0.007694244384765625, -0.016632080078125, 0.00354766845703125, 0.043701171875, -0.0201416015625, 0.06719970703125, -0.0169525146484375, 0.04217529296875, 0.01531982421875, 0.039947509765625, -0.01111602783203125, -0.00211334228515625, 0.0255279541015625, -0.05401611328125, 0.00930023193359375, -0.005847930908203125, 0.0272064208984375, -0.02105712890625, 0.06060791015625, -0.01519012451171875, 0.0183258056640625, 0.01457977294921875, 0.0189056396484375, 0.00382232666015625, -0.0311126708984375, -0.01300048828125, -0.0325927734375, 0.007568359375, 0.046722412109375, 0.0096588134765625, -0.01727294921875, -0.031402587890625, 0.01549530029296875, -0.048583984375, -0.005802154541015625, 0.0159454345703125, -0.05035400390625, 0.01354217529296875, -0.049774169921875, -0.0068817138671875, 0.00907135009765625, -0.057098388671875, 0.031951904296875, 0.0035953521728515625, 0.0088653564453125, -0.03173828125, -0.053985595703125, -0.034881591796875, 0.07110595703125, -0.0018663406372070312, 0.032012939453125, -0.0174102783203125, 0.034027099609375, -0.05072021484375, 0.040313720703125, -0.0194091796875, -0.006671905517578125, -0.008148193359375, -0.0291900634765625, -0.04071044921875, -0.0254669189453125, 0.015106201171875, -0.018310546875, 0.01568603515625, -0.05743408203125, 0.033203125, -0.0010318756103515625, 0.03564453125, -0.0224151611328125, 0.0308380126953125, -0.03466796875, -0.01203155517578125, 0.023529052734375, -0.042449951171875, 0.027740478515625, 0.0248565673828125, -0.0176849365234375, -0.003108978271484375, 0.06866455078125, 0.0266265869140625, 0.01052093505859375, 0.06353759765625, -0.00464630126953125, -0.09698486328125, 0.0200347900390625, 0.07745361328125, 0.03759765625, 0.018341064453125, 0.044891357421875, 0.01222991943359375, -0.014434814453125, -0.006488800048828125, 0.0191802978515625, -0.005573272705078125, 0.0010824203491210938, 0.006320953369140625, -0.00965118408203125, -0.0286102294921875, 0.01035308837890625, -0.00455474853515625, -0.0048980712890625, -0.01053619384765625, 0.022369384765625, 0.0283203125, -0.00774383544921875, -0.0223236083984375, 0.01438140869140625, -0.0222320556640625, -0.01934814453125, 0.041046142578125, -0.03594970703125, -0.05682373046875, 0.00189208984375, -0.0234527587890625, 0.0033054351806640625, 0.058868408203125, 0.0207977294921875, -0.02142333984375, -0.009918212890625, -0.07403564453125, -0.01499176025390625, -0.03656005859375, 0.056121826171875, 0.001018524169921875, -0.05853271484375, -0.03973388671875, -0.006885528564453125, -0.0110321044921875, -0.0185546875, -0.04583740234375, -0.0287017822265625, -0.0219268798828125, 0.010711669921875, -0.0252532958984375, -0.0132293701171875, 0.05181884765625, -0.010498046875, 0.002391815185546875, 0.0176239013671875, 0.016021728515625, -0.043701171875, -0.0229034423828125, 0.03509521484375, -0.03143310546875, -0.0501708984375, 0.00936126708984375, -0.04412841796875, -0.02093505859375, 0.02569580078125, 0.05181884765625, 0.0318603515625, -0.0018262863159179688, 0.00653076171875, 0.0233917236328125, -0.052734375, 0.06280517578125, -0.004177093505859375, 0.06927490234375, 0.032470703125, -0.0017843246459960938, -0.0006542205810546875, 0.00785064697265625, -0.051300048828125, 0.0245208740234375, 0.004116058349609375, -0.05584716796875, 0.02587890625, -0.0206146240234375, 0.01126861572265625, 0.0124053955078125, -0.0203704833984375, -0.0014734268188476562, -0.040191650390625, 0.053741455078125, -0.0537109375, -0.00783538818359375, -0.0147552490234375, 0.0177764892578125, 0.004558563232421875, 0.007144927978515625, 0.007076263427734375, -0.01800537109375, -0.0059356689453125, 0.01409149169921875, -0.01453399658203125, 0.008636474609375, 0.0154266357421875, -0.004764556884765625, 0.001251220703125, 0.047149658203125, 0.0008249282836914062, 0.0034637451171875, -0.046600341796875, -0.02685546875, 0.061737060546875, -0.0201416015625, -0.014129638671875, -0.04443359375, 0.051483154296875, -0.048492431640625, 0.035552978515625, 0.0882568359375, 0.008087158203125, 0.013031005859375, -0.0322265625, -0.0165557861328125, -0.016265869140625, -0.04791259765625, 0.007389068603515625, 0.0513916015625, 0.0179443359375, 0.03753662109375, -0.0179290771484375, 0.005481719970703125, 0.0247039794921875, -0.0206756591796875, 0.01232147216796875, -0.0197906494140625, 0.0230255126953125, 0.043426513671875, -0.0138092041015625, -0.03521728515625, 0.036376953125, -0.07647705078125, 0.00528717041015625, 0.061309814453125, -0.03741455078125, -0.032379150390625, -0.0015382766723632812, 0.01415252685546875, 0.0011110305786132812, -0.003513336181640625, 0.033782958984375, -0.0171356201171875, -0.0033817291259765625, -0.011260986328125, 0.031341552734375, 0.02001953125, 0.0146026611328125, -0.041717529296875, 0.005802154541015625, -0.0027313232421875, 0.010589599609375, -0.016632080078125, 0.01403045654296875, -0.038421630859375, 0.0085601806640625, 0.01308441162109375, -0.0002741813659667969, -0.02685546875, 0.0016489028930664062, 0.0584716796875, 0.019927978515625, -0.031646728515625, 0.0090789794921875, -0.01849365234375, -0.0165252685546875, -0.045623779296875, -0.01409149169921875, -0.0297393798828125, 0.0015516281127929688, 0.067138671875, 0.01332855224609375, 0.035491943359375, -0.01470947265625, 0.003162384033203125, 0.0205841064453125, -0.010467529296875, 0.005405426025390625, -0.00849151611328125, 0.03179931640625, 0.04779052734375, 0.0206298828125, -0.0221710205078125, 0.0127105712890625, -0.0002512931823730469, 0.039581298828125, -0.025390625, -0.03765869140625, 0.01520538330078125, -0.077880859375, -0.0305023193359375, 0.006084442138671875, 0.049896240234375, -0.052642822265625, -0.04608154296875, -0.025238037109375, -0.00017940998077392578, -0.1175537109375, -0.0675048828125, 0.0039215087890625, -0.01003265380859375, -0.0462646484375, -0.0033969879150390625, -0.01448822021484375, 0.016998291015625, -0.01031494140625, -0.017822265625, 0.0374755859375, -0.039794921875, -0.01904296875, -0.0195159912109375, -0.038116455078125, 0.0157012939453125, 0.023040771484375, 0.0006051063537597656, 0.00981903076171875, -0.00908660888671875, 0.005146026611328125, -0.01812744140625, 0.039642333984375, 0.0188446044921875, 0.00409698486328125, 0.0183258056640625, 0.00890350341796875, -0.0006170272827148438, 0.0298919677734375, -0.0037250518798828125, 0.0162200927734375, 0.0167694091796875, 0.0010814666748046875, -0.006122589111328125, -0.01432037353515625, 0.0052642822265625, 0.020477294921875, 0.003101348876953125, 0.01030731201171875, 0.06500244140625, 0.043212890625, 0.0032176971435546875, -0.003910064697265625, -0.0015344619750976562, -0.04345703125, -0.004180908203125, -0.0040283203125, -0.00363922119140625, -0.018585205078125, 0.02032470703125, -0.00789642333984375, -0.007320404052734375, -0.0001608133316040039, -0.0037708282470703125, 0.03570556640625, -0.0223388671875, -0.0019435882568359375, 0.00232696533203125, -0.022613525390625, -0.040008544921875, 0.048370361328125, -0.010009765625, 0.0228729248046875, 0.0253143310546875, -0.00555419921875, 0.018280029296875, -0.053192138671875, 0.0215301513671875, -0.058258056640625, -0.027099609375, 0.00836181640625, 0.00437164306640625, 0.006137847900390625, 0.04217529296875, -0.08660888671875, -0.03009033203125, 0.0202789306640625, 0.0379638671875, -0.04498291015625, -0.034515380859375, -0.040313720703125, -0.0209503173828125, -0.0309295654296875, -0.0270233154296875, -0.055389404296875, -0.016510009765625, -0.01065826416015625, -0.044342041015625, 0.0168914794921875, -0.053863525390625, 0.0361328125, -0.04296875, 0.00785064697265625, -0.00684356689453125, 0.0113983154296875, -0.04132080078125, -0.01398468017578125, -0.0117950439453125, -0.01387786865234375, -0.0232086181640625, -0.01105499267578125, 0.042877197265625, 0.0087432861328125, -0.005218505859375, 0.00225830078125, 0.040985107421875, 0.02197265625, -0.025482177734375, 0.0155792236328125, -0.02117919921875, -0.0019407272338867188, 0.01548004150390625, 0.0202178955078125, -0.0255126953125, -0.00490570068359375, -0.0265350341796875, -0.033233642578125, 0.0052032470703125, -0.0239715576171875, 0.050048828125, 0.0014524459838867188, -0.001697540283203125, -0.047332763671875, -0.046173095703125, -0.01468658447265625, 0.01198577880859375, -0.0137786865234375, 0.027740478515625, -0.04888916015625, -0.04193115234375, 0.0743408203125, 0.02886962890625, 0.008514404296875, -0.0229034423828125, 0.0379638671875, -0.005035400390625, -0.04498291015625, 0.0207366943359375, -0.03668212890625, -0.00977325439453125, -0.00726318359375, 0.07830810546875, 0.0311737060546875, 0.0121307373046875, 0.0809326171875, -0.036224365234375, 0.004657745361328125, -0.039520263671875, 0.061920166015625, -0.00812530517578125, 0.0012063980102539062, 0.0230560302734375, -0.045379638671875, 0.04522705078125, 0.01458740234375, 0.007198333740234375, 0.01317596435546875, 0.053070068359375, -0.000293731689453125, -0.0277862548828125, -0.0233306884765625, -0.00922393798828125, -0.038330078125, 0.02813720703125, -0.00974273681640625, -0.02685546875, 0.01219940185546875, -0.007236480712890625, -0.019500732421875, -0.025360107421875, 0.01325225830078125, -0.038299560546875, -0.0088348388671875, -0.061492919921875, 0.036712646484375, -0.031494140625, -0.0261688232421875, 0.014556884765625, -0.0091552734375, 0.020355224609375, -0.0106353759765625, -0.0280914306640625, -0.01690673828125, -0.00978851318359375, 0.0203704833984375, 0.040618896484375, 0.03729248046875, -0.0164794921875, 0.0218505859375, 0.0029163360595703125, -0.0035839080810546875, 0.051055908203125, 0.0062713623046875, -0.01001739501953125, -0.026611328125, -0.03607177734375, 0.01241302490234375, 0.0096282958984375, 0.0286407470703125, -0.04229736328125, 0.02801513671875, -0.018524169921875, 0.0213165283203125, 0.0193328857421875, 0.016326904296875, 0.0316162109375, -0.0400390625, 0.008575439453125, -0.0236968994140625, -0.00553131103515625, -0.068359375, -0.05072021484375, 0.10601806640625, 0.047515869140625, -0.00875091552734375, -0.01512908935546875, -0.0377197265625, 0.0313720703125, -0.01546478271484375, 0.034942626953125, 0.01238250732421875, -0.00975799560546875, -0.0220794677734375, -0.00881195068359375, 0.046600341796875, 0.0172119140625, -0.0321044921875, 0.0229034423828125, -0.03875732421875, 0.052154541015625, 0.0198822021484375, 0.01922607421875, -0.0020275115966796875, -0.0126953125, 0.0083160400390625, -0.0297088623046875, 0.0011034011840820312, -0.0426025390625, 0.0192413330078125, -0.02056884765625, -0.0258941650390625, 0.040924072265625, -0.022857666015625, 0.01044464111328125, -0.0170745849609375, 0.038482666015625, -0.0198516845703125, 0.007366180419921875, 0.0531005859375, 0.0208892822265625, -0.005878448486328125, -0.0190277099609375, -0.05133056640625, -0.037567138671875, -0.0014390945434570312, -0.014862060546875, -0.036895751953125, -0.012176513671875, 0.019622802734375, 0.0207366943359375, 0.001216888427734375, -0.031982421875, -0.0007739067077636719, -0.007122039794921875, 0.004520416259765625, 0.0191650390625, -0.007320404052734375, 0.00702667236328125, 0.0548095703125, -0.006893157958984375, 0.025238037109375, 0.05120849609375, 0.0645751953125, -0.04486083984375, 0.01305389404296875, -0.039154052734375, -0.018463134765625, -0.00481414794921875, -0.01317596435546875, 0.007415771484375, 0.01494598388671875, -0.01096343994140625, 0.0180816650390625, -0.0107421875, 0.007343292236328125, -0.01486968994140625, 0.0256500244140625, -0.0270233154296875, 0.024078369140625, -0.021636962890625, 0.009674072265625, 0.0284423828125, -0.0075225830078125, -0.04364013671875, 0.00980377197265625, 0.02630615234375, 0.00341033935546875, 0.047882080078125, 0.003204345703125, 0.005069732666015625, -0.01375579833984375, -0.029327392578125, -0.0024261474609375, -0.0037517547607421875, -0.0012464523315429688, 0.016693115234375, -0.008575439453125, 0.005886077880859375, 0.02252197265625, -0.004970550537109375, -0.032379150390625, -0.003482818603515625, -0.056610107421875, -0.0262298583984375, 0.016845703125, 0.1219482421875, 0.07861328125, -0.1171875, -0.0191192626953125, -0.0015201568603515625, -0.019073486328125, 0.062042236328125, 0.006481170654296875, -0.02392578125, 0.007678985595703125, -0.00791168212890625, -0.047576904296875, -0.046844482421875, -0.0216217041015625, 0.0171356201171875, -0.033233642578125, -0.0148468017578125, 0.07061767578125, 0.0316162109375, -0.023345947265625, 0.03179931640625, 0.0301666259765625, 0.00336456298828125, -0.05511474609375, 0.0113372802734375, -0.0169525146484375, -0.00377655029296875, -0.045318603515625, 0.0019588470458984375, -0.023040771484375, 0.015289306640625, 0.0193939208984375, -0.01104736328125, 0.0300750732421875, 0.052276611328125, -0.0192108154296875, -0.0145416259765625, 0.0199127197265625, 0.012176513671875, 0.038909912109375, -0.03118896484375, -0.0164642333984375, 0.05657958984375, 0.01096343994140625, 0.0196990966796875, 0.05352783203125, -0.043975830078125, 0.015228271484375, -0.036346435546875, 0.01473236083984375, -0.042205810546875, 0.0074005126953125, 0.041717529296875, -0.0355224609375, -0.01056671142578125, -0.01849365234375, -0.0097198486328125, -0.0310516357421875, 0.01036834716796875, -0.042816162109375, -0.0086669921875, 0.0251922607421875, -0.04388427734375, -0.06427001953125, 0.050384521484375, 0.0293426513671875, 0.0233612060546875, -0.005390167236328125, 0.0168609619140625, -0.02545166015625, -0.00678253173828125, -0.034576416015625, 0.042633056640625, 0.0088958740234375, 0.06976318359375, -0.05731201171875, -0.0322265625, 0.026641845703125, 0.049957275390625, 0.00444793701171875, -0.0175933837890625, -0.0014123916625976562, -0.0098419189453125, 0.045928955078125, 0.0430908203125, 0.01471710205078125, 0.01433563232421875, -0.00623321533203125, 0.0253448486328125, 0.007251739501953125, -0.055450439453125, 0.02532958984375, -0.03411865234375, -0.0147705078125, 0.02880859375, 0.03302001953125, 0.031890869140625, -0.01006317138671875, -0.040008544921875, -0.0032062530517578125, 0.006008148193359375, -0.0005917549133300781, 0.01065826416015625, -0.005855560302734375, 0.06109619140625, 0.07476806640625, -0.0823974609375, -0.0247650146484375, -0.0518798828125, 0.05108642578125, 0.0139617919921875, 0.0234375, 0.0210723876953125, -0.00957489013671875, -0.01483917236328125, 0.066650390625, 0.01030731201171875, 0.031707763671875, 0.0223236083984375, 0.0181732177734375, -0.003337860107421875, 0.033477783203125, -0.0430908203125, -0.03515625, 0.00415802001953125, 0.028228759765625, -0.00318145751953125, -0.004924774169921875, 0.017425537109375, 0.01517486572265625, -0.013153076171875, -0.033355712890625, -0.0166473388671875, -0.037933349609375, -0.01386260986328125, 0.039520263671875, -0.029449462890625, 0.0079803466796875, 0.01519775390625, 0.00824737548828125, -0.0004184246063232422, 0.01175689697265625, -0.011260986328125, -0.03521728515625, 0.0003955364227294922, 0.01560211181640625, 0.08612060546875, 0.023284912109375, 0.0491943359375, -0.051513671875, -0.046539306640625, 0.01177215576171875, 0.03997802734375, 0.048370361328125, -0.04034423828125, 0.007080078125, -0.019866943359375, 0.0325927734375, -0.0023212432861328125, -0.0023403167724609375, -0.0219573974609375, 0.0498046875, 0.0251617431640625, -0.08026123046875, -0.02044677734375, 0.022247314453125, -0.036163330078125, 0.020111083984375, -0.0210113525390625, 0.00007712841033935547, 0.0207977294921875, -0.01165008544921875, -0.0206756591796875, -0.00949859619140625, 0.07293701171875, -0.00579071044921875, -0.0004036426544189453, 0.0115509033203125, -0.0235443115234375, 0.031524658203125, -0.0178070068359375, 0.00383758544921875, -0.00257110595703125, -0.034210205078125, 0.0032520294189453125, 0.014678955078125, -0.1016845703125, 0.01418304443359375, 0.03753662109375, -0.0101165771484375, -0.022979736328125, 0.0075836181640625, -0.00707244873046875, -0.0034999847412109375, -0.0079498291015625, 0.0272369384765625, -0.017974853515625, -0.004756927490234375, 0.01078033447265625, -0.01111602783203125, -0.042999267578125, 0.00885009765625, 0.058624267578125, 0.0072784423828125, 0.0140228271484375, -0.007568359375, 0.0280303955078125, -0.031707763671875, -0.006259918212890625, -0.018218994140625, -0.0037517547607421875, -0.0380859375, 0.0293121337890625, 0.0052947998046875, -0.0183258056640625, -0.005237579345703125, 0.019561767578125, 0.029296875, -0.01080322265625, 0.031646728515625, -0.0210113525390625, 0.004161834716796875, -0.034698486328125, 0.0416259765625, -0.02569580078125, -0.03515625, -0.061614990234375, -0.00698089599609375, 0.0223236083984375, 0.0081939697265625, -0.0117340087890625, 0.031585693359375, 0.0364990234375, -0.00969696044921875, 0.0255126953125, -0.04022216796875, 0.042816162109375, 0.0304412841796875, 0.01355743408203125, 0.03515625, 0.01678466796875, -0.0218505859375, 0.020599365234375, 0.02423095703125, -0.046417236328125, 0.0430908203125, -0.042144775390625, -0.06878662109375, 0.00464630126953125, 0.02508544921875, -0.0011777877807617188, 0.025360107421875, -0.0599365234375, -0.0142669677734375, 0.02813720703125, 0.033721923828125, 0.00435638427734375, -0.01177215576171875, -0.024139404296875, -0.007617950439453125, -0.01554107666015625, 0.006500244140625, 0.0091552734375, -0.0206146240234375, 0.010101318359375, -0.03515625, 0.04638671875, -0.05865478515625, -0.01450347900390625, 0.015960693359375, -0.005573272705078125, 0.0291595458984375, -0.031646728515625, -0.0239410400390625, -0.054840087890625, -0.045501708984375, -0.06146240234375, 0.05889892578125, -0.051361083984375, -0.01282501220703125, -0.0233154296875, 0.0040435791015625, 0.0301971435546875, 0.0206756591796875, 0.0084991455078125, 0.05413818359375, 0.0302886962890625, -0.02587890625, 0.00409698486328125, 0.00754547119140625, 0.005336761474609375, -0.0308685302734375, -0.010986328125, -0.036529541015625, 0.0135955810546875, 0.047119140625, -0.01070404052734375, 0.01471710205078125, -0.029937744140625, -0.0718994140625, 0.028594970703125, 0.016326904296875, -0.042724609375, 0.0113677978515625, -0.0458984375, -0.0117645263671875, -0.004138946533203125, -0.0086669921875, -0.018707275390625, -0.06915283203125, 0.015625, -0.003772735595703125, 0.048126220703125, -0.01177215576171875, 0.0144195556640625, -0.0201263427734375, 0.03985595703125, 0.0169677734375, -0.0222320556640625, -0.0282135009765625, -0.007122039794921875, -0.0014314651489257812, 0.046356201171875, -0.0159149169921875, -0.043426513671875, -0.003002166748046875, 0.0070343017578125, -0.0134124755859375, -0.03759765625, 0.006374359130859375, -0.00138092041015625, 0.0023441314697265625, 0.03460693359375, -0.0181121826171875, -0.034515380859375, -0.006683349609375, -0.0345458984375, -0.054229736328125, -0.01163482666015625, 0.031494140625, -0.0701904296875, -0.00957489013671875, 0.01357269287109375, -0.007465362548828125, 0.0086822509765625, -0.055816650390625, -0.0081024169921875, -0.00959014892578125, 0.01085662841796875, 0.0292205810546875, 0.0157318115234375, -0.027740478515625, 0.000040411949157714844, -0.007770538330078125, -0.0174102783203125, 0.003696441650390625, 0.0125732421875, -0.0306396484375, 0.025726318359375, -0.0430908203125, -0.039459228515625, 0.0237274169921875, 0.0215911865234375, -0.01055145263671875, 0.014801025390625, -0.00815582275390625, -0.0034389495849609375, 0.0191497802734375, -0.000044345855712890625, -0.015533447265625, 0.034149169921875, -0.005542755126953125, -0.00308990478515625, -0.037200927734375, -0.011260986328125, -0.033172607421875, 0.01265716552734375, -0.003108978271484375, 0.0241241455078125, -0.021209716796875, -0.0212554931640625, 0.03558349609375, -0.047943115234375, 0.00444793701171875, 0.00585174560546875, -0.05682373046875, -0.004192352294921875, -0.0159149169921875, 0.00164794921875, -0.0187530517578125, -0.0057830810546875 ]
6ce80566bb7d8314d8e401ee9b2ca684ac82f1f0
Wordpress Stackexchange Q: Send email when a new post is published I'm looking for a method, or plugin, that will allow me to do the following: * *User can signup to a 'notifications' email list *When a new post is published on the site, users on this list are automatically emailed a notification This is for site visitors as opposed to administrators or registered users. Any suggestions much appreciated. A: Right now I'm using Subscribe2 WordPress plugin to manage all subscription, I found this plugin simple, neat and easy to use, also the plugin has good review/ratings over Wordpress Plugins directory.
Q: Send email when a new post is published I'm looking for a method, or plugin, that will allow me to do the following: * *User can signup to a 'notifications' email list *When a new post is published on the site, users on this list are automatically emailed a notification This is for site visitors as opposed to administrators or registered users. Any suggestions much appreciated. A: Right now I'm using Subscribe2 WordPress plugin to manage all subscription, I found this plugin simple, neat and easy to use, also the plugin has good review/ratings over Wordpress Plugins directory. A: I haven't used it yet, but you can accomplish this with Jetpack, which is made (at least partially) by the founders of WordPress. The advantage is that it uses the Wordpress.com servers to handle the outgoing mail. This is a big plus because shared servers have throttling limits that only allow you to send a certain amount of e-mails in a given time frame (usually an hour). You don't have to worry about the IP of your own servers ending up blacklisted if anyone marks the e-mails as spam instead of unsubscribing. Check it out, there are other features to it as well. A: Feedburner is the best because you also gets analytics. Connects to any gmail account via feedburner.google.com. On the Subscribe tab you can get the code for Email subscriptions. Just stick that into a Text widget.
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:422509", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60496" }
[ 0.00823974609375, -0.006832122802734375, -0.0289459228515625, 0.0082244873046875, -0.005939483642578125, -0.041412353515625, 0.0241851806640625, -0.025848388671875, 0.00334930419921875, 0.00240325927734375, 0.00485992431640625, 0.006351470947265625, -0.0232696533203125, -0.03472900390625, 0.002696990966796875, -0.006664276123046875, 0.023895263671875, 0.0060882568359375, 0.0174560546875, -0.01172637939453125, 0.00931549072265625, 0.01303863525390625, 0.001796722412109375, 0.03924560546875, -0.0230712890625, 0.0787353515625, 0.0819091796875, -0.0157470703125, -0.01412200927734375, -0.0009369850158691406, 0.004840850830078125, -0.0458984375, 0.00830841064453125, 0.04541015625, -0.04937744140625, 0.0304718017578125, 0.04132080078125, 0.0009274482727050781, 0.017730712890625, 0.02081298828125, 0.044830322265625, -0.0235137939453125, 0.036773681640625, 0.0082855224609375, 0.0240020751953125, -0.03509521484375, 0.055511474609375, -0.05670166015625, 0.0024871826171875, -0.004150390625, 0.004650115966796875, 0.004398345947265625, 0.0214385986328125, -0.0288543701171875, 0.0018405914306640625, 0.005619049072265625, -0.0304718017578125, 0.03045654296875, 0.031494140625, -0.0193023681640625, -0.033447265625, -0.006755828857421875, 0.03302001953125, 0.0023517608642578125, -0.032989501953125, -0.0065460205078125, -0.0291290283203125, 0.0018072128295898438, -0.01180267333984375, -0.0223846435546875, 0.0287017822265625, -0.016143798828125, -0.006473541259765625, -0.0273284912109375, -0.007190704345703125, -0.0009822845458984375, 0.01806640625, -0.0108489990234375, 0.005855560302734375, 0.0115509033203125, -0.0209808349609375, 0.00362396240234375, -0.0230712890625, -0.032135009765625, 0.004138946533203125, -0.0059967041015625, -0.0205078125, 0.001575469970703125, -0.034454345703125, -0.040313720703125, -0.031829833984375, 0.006702423095703125, -0.0306243896484375, -0.038360595703125, -0.0308990478515625, -0.0340576171875, 0.017181396484375, 0.0875244140625, -0.0284271240234375, 0.0011854171752929688, -0.049072265625, -0.0008258819580078125, -0.0322265625, -0.031341552734375, 0.01137542724609375, 0.04705810546875, -0.0258941650390625, -0.03814697265625, 0.0113372802734375, 0.0189056396484375, -0.0014801025390625, -0.0413818359375, 0.0226593017578125, 0.01035308837890625, 0.00698089599609375, -0.021087646484375, -0.0235595703125, 0.035064697265625, -0.00823211669921875, 0.019805908203125, 0.01279449462890625, 0.05084228515625, -0.0164337158203125, -0.04010009765625, 0.0006108283996582031, -0.00786590576171875, -0.004364013671875, -0.041168212890625, 0.01541900634765625, -0.0256500244140625, -0.025726318359375, 0.03369140625, 0.03045654296875, 0.0300445556640625, 0.0008482933044433594, 0.005222320556640625, 0.01556396484375, 0.00907135009765625, 0.02630615234375, -0.005794525146484375, -0.027008056640625, 0.0010786056518554688, 0.0168914794921875, -0.019989013671875, 0.029083251953125, 0.010498046875, -0.0032215118408203125, 0.004405975341796875, 0.034637451171875, 0.0164794921875, -0.033905029296875, -0.0198974609375, 0.018280029296875, -0.0032062530517578125, -0.016021728515625, -0.01137542724609375, -0.0511474609375, 0.0181121826171875, 0.00815582275390625, 0.00534820556640625, 0.034759521484375, -0.00457763671875, 0.007648468017578125, -0.0247039794921875, -0.041046142578125, 0.0016345977783203125, -0.058685302734375, -0.0087127685546875, 0.011505126953125, -0.04736328125, -0.0014677047729492188, 0.020355224609375, 0.056640625, -0.0206146240234375, -0.016815185546875, -0.00527191162109375, -0.0115814208984375, -0.00018274784088134766, 0.05413818359375, -0.0174102783203125, -0.011962890625, -0.00640869140625, 0.075439453125, -0.0180816650390625, -0.01251983642578125, 0.004062652587890625, 0.0026702880859375, 0.035552978515625, 0.01555633544921875, 0.0295867919921875, -0.008819580078125, 0.007518768310546875, -0.004390716552734375, 0.01702880859375, -0.0218963623046875, -0.0321044921875, -0.0023059844970703125, 0.00598907470703125, -0.01326751708984375, -0.0006508827209472656, -0.0175933837890625, -0.00899505615234375, 0.006023406982421875, 0.004261016845703125, -0.01274871826171875, -0.0015649795532226562, -0.01372528076171875, 0.0214996337890625, 0.021240234375, 0.00307464599609375, -0.01390838623046875, -0.020050048828125, 0.0254669189453125, -0.0723876953125, -0.046783447265625, 0.01534271240234375, -0.0325927734375, 0.000629425048828125, -0.016143798828125, 0.01526641845703125, -0.0305328369140625, -0.01421356201171875, -0.0218658447265625, 0.0008420944213867188, 0.02764892578125, -0.024658203125, 0.0031490325927734375, -0.03363037109375, 0.0094451904296875, 0.01348114013671875, -0.034271240234375, 0.025238037109375, -0.0202484130859375, -0.011077880859375, -0.029571533203125, 0.0093536376953125, 0.019012451171875, -0.02239990234375, 0.013427734375, 0.04071044921875, 0.007213592529296875, -0.0021820068359375, 0.0171966552734375, 0.048065185546875, 0.056488037109375, 0.032806396484375, 0.0374755859375, 0.01396942138671875, 0.0122222900390625, 0.051239013671875, -0.01055145263671875, 0.00458526611328125, 0.01763916015625, -0.07403564453125, -0.0185394287109375, 0.06170654296875, 0.056549072265625, 0.0158843994140625, -0.017822265625, 0.01800537109375, 0.002956390380859375, 0.0055084228515625, -0.047515869140625, 0.010955810546875, 0.006832122802734375, -0.01702880859375, 0.035888671875, 0.0276336669921875, 0.0054779052734375, -0.031463623046875, 0.00004029273986816406, -0.00446319580078125, 0.0212554931640625, 0.0277099609375, 0.024627685546875, 0.045257568359375, -0.01708984375, -0.046722412109375, 0.0577392578125, 0.036376953125, -0.04766845703125, -0.0226898193359375, -0.0072021484375, -0.0177154541015625, 0.0007615089416503906, 0.00826263427734375, 0.0246734619140625, -0.048004150390625, -0.0227508544921875, -0.0022830963134765625, 0.012176513671875, 0.0313720703125, -0.0222015380859375, 0.044036865234375, -0.02337646484375, -0.01039886474609375, -0.0687255859375, -0.0213470458984375, 0.0280303955078125, -0.031280517578125, -0.004119873046875, 0.06536865234375, 0.0283355712890625, -0.0195465087890625, 0.00333404541015625, 0.00572967529296875, 0.012542724609375, 0.01531219482421875, -0.004451751708984375, -0.00890350341796875, -0.04315185546875, -0.0037631988525390625, -0.009124755859375, 0.0017824172973632812, -0.047332763671875, -0.063720703125, -0.037322998046875, -0.028045654296875, -0.09735107421875, -0.043182373046875, -0.03338623046875, -0.048065185546875, -0.01248931884765625, -0.009124755859375, -0.010223388671875, 0.00667572021484375, -0.0005159378051757812, 0.005847930908203125, -0.0653076171875, -0.0253753662109375, -0.044830322265625, -0.054718017578125, -0.0235137939453125, 0.06402587890625, -0.00701904296875, 0.015716552734375, 0.002437591552734375, 0.043701171875, -0.005764007568359375, -0.06304931640625, -0.023406982421875, 0.03424072265625, -0.019378662109375, -0.004756927490234375, -0.01491546630859375, 0.031158447265625, -0.0236053466796875, 0.023468017578125, -0.00011616945266723633, 0.01934814453125, -0.04571533203125, -0.017486572265625, -0.0027904510498046875, -0.01078033447265625, 0.01212310791015625, -0.056610107421875, -0.00716400146484375, 0.03265380859375, -0.0218353271484375, -0.03472900390625, 0.048614501953125, 0.007312774658203125, -0.00402069091796875, -0.1026611328125, -0.0270538330078125, -0.0175018310546875, -0.037139892578125, -0.0156707763671875, -0.01079559326171875, -0.02105712890625, 0.07757568359375, -0.04681396484375, -0.006832122802734375, -0.0140380859375, -0.03948974609375, -0.033782958984375, -0.02105712890625, -0.01163482666015625, 0.0263824462890625, -0.0267791748046875, 0.04150390625, -0.0304718017578125, 0.07208251953125, -0.0638427734375, -0.071533203125, 0.039886474609375, -0.01049041748046875, -0.00814056396484375, -0.015106201171875, -0.034698486328125, 0.020782470703125, 0.0999755859375, -0.006343841552734375, -0.004150390625, 0.004947662353515625, 0.00261688232421875, -0.029937744140625, -0.026458740234375, -0.0657958984375, -0.01036834716796875, -0.004302978515625, -0.019989013671875, -0.042877197265625, 0.003864288330078125, -0.0271453857421875, 0.025390625, -0.0011806488037109375, -0.032196044921875, 0.03277587890625, -0.050018310546875, 0.021514892578125, 0.0166778564453125, 0.00701904296875, -0.0203704833984375, -0.0213165283203125, -0.042510986328125, -0.0108184814453125, 0.002960205078125, -0.0005478858947753906, -0.00665283203125, 0.00650787353515625, -0.0008525848388671875, -0.02130126953125, -0.0105743408203125, -0.01485443115234375, 0.040191650390625, -0.0379638671875, -0.0037631988525390625, -0.004451751708984375, 0.0112762451171875, -0.0102081298828125, 0.01027679443359375, 0.019134521484375, -0.0018377304077148438, -0.05291748046875, 0.02874755859375, -0.0309295654296875, 0.039947509765625, -0.01416015625, -0.024383544921875, -0.032440185546875, -0.026702880859375, 0.0032367706298828125, 0.0003178119659423828, 0.0028972625732421875, -0.00464630126953125, -0.016998291015625, -0.0194244384765625, 0.0142059326171875, -0.0141448974609375, -0.035125732421875, 0.00978851318359375, 0.05810546875, 0.02520751953125, -0.0011129379272460938, -0.00949859619140625, 0.0241851806640625, 0.07708740234375, 0.051544189453125, -0.006195068359375, 0.038848876953125, -0.055572509765625, 0.01316070556640625, 0.0760498046875, 0.0137481689453125, -0.032867431640625, 0.03741455078125, -0.018890380859375, -0.0225067138671875, 0.0306549072265625, -0.0386962890625, 0.050750732421875, 0.01146697998046875, -0.004146575927734375, -0.00418853759765625, -0.006317138671875, 0.01194000244140625, -0.0159454345703125, 0.018035888671875, -0.0006985664367675781, -0.03704833984375, 0.0218048095703125, 0.049102783203125, -0.0229644775390625, 0.0031070709228515625, 0.00322723388671875, -0.02459716796875, -0.0180206298828125, -0.039154052734375, -0.01261138916015625, -0.0021686553955078125, 0.03607177734375, -0.0085296630859375, 0.00997161865234375, -0.01087188720703125, -0.047698974609375, -0.005275726318359375, 0.033782958984375, 0.0166778564453125, -0.02947998046875, -0.0177459716796875, -0.0017070770263671875, 0.012908935546875, -0.003955841064453125, -0.038909912109375, 0.05029296875, 0.114990234375, -0.0279388427734375, -0.01654052734375, 0.0019245147705078125, 0.039825439453125, -0.06982421875, -0.0300140380859375, 0.00047898292541503906, -0.0243682861328125, 0.0240020751953125, 0.0233001708984375, -0.005908966064453125, 0.022430419921875, -0.0177154541015625, 0.039154052734375, 0.0347900390625, -0.00388336181640625, 0.014007568359375, 0.03363037109375, -0.01036834716796875, -0.0384521484375, 0.0014972686767578125, -0.0172271728515625, 0.002689361572265625, 0.00612640380859375, 0.007396697998046875, 0.0275421142578125, 0.0194091796875, 0.01210784912109375, 0.001800537109375, -0.0296630859375, 0.00585174560546875, 0.013397216796875, 0.00844573974609375, -0.0295867919921875, -0.0033359527587890625, 0.0105133056640625, 0.042083740234375, 0.0016202926635742188, -0.0183258056640625, -0.01068878173828125, 0.0197906494140625, -0.011810302734375, 0.004451751708984375, -0.013458251953125, -0.01861572265625, -0.0079193115234375, -0.00019240379333496094, 0.038818359375, -0.057159423828125, -0.005855560302734375, -0.0275726318359375, -0.01239776611328125, 0.056915283203125, -0.0185089111328125, 0.0279998779296875, -0.048095703125, 0.014801025390625, -0.05322265625, 0.0194549560546875, 0.022613525390625, 0.016754150390625, -0.034759521484375, -0.0164031982421875, -0.045074462890625, -0.0218963623046875, -0.04119873046875, -0.02105712890625, -0.043487548828125, 0.0009150505065917969, 0.051727294921875, 0.026763916015625, -0.036712646484375, -0.11737060546875, -0.0289306640625, -0.0238494873046875, 0.0675048828125, -0.00984954833984375, 0.01003265380859375, 0.037994384765625, -0.0023365020751953125, 0.06903076171875, 0.0084991455078125, -0.0243377685546875, -0.0692138671875, 0.0013036727905273438, -0.0181884765625, -0.04669189453125, 0.00860595703125, 0.02630615234375, 0.00920867919921875, -0.00855255126953125, -0.007396697998046875, 0.01050567626953125, 0.002872467041015625, -0.0186309814453125, 0.002460479736328125, -0.0157623291015625, 0.0198211669921875, -0.0240478515625, -0.0141143798828125, 0.0194091796875, -0.03692626953125, -0.00556182861328125, 0.039398193359375, 0.00218963623046875, 0.0011911392211914062, -0.002716064453125, -0.01178741455078125, 0.00899505615234375, 0.01520538330078125, 0.035308837890625, 0.02862548828125, -0.0297393798828125, 0.01068115234375, 0.0205841064453125, -0.001117706298828125, -0.017059326171875, -0.01264190673828125, 0.020965576171875, -0.038665771484375, 0.06341552734375, 0.011993408203125, -0.0169219970703125, 0.0645751953125, -0.042572021484375, 0.009033203125, 0.041229248046875, 0.057525634765625, -0.0689697265625, 0.01175689697265625, -0.0023193359375, -0.0023784637451171875, 0.0285797119140625, -0.006389617919921875, -0.00691986083984375, -0.032257080078125, 0.07598876953125, 0.0014219284057617188, 0.01495361328125, 0.0292816162109375, -0.0230255126953125, 0.011016845703125, -0.0122528076171875, 0.07818603515625, 0.0220947265625, -0.0005621910095214844, -0.02520751953125, 0.0006670951843261719, 0.016448974609375, -0.0283203125, -0.00994873046875, 0.0262451171875, -0.0062408447265625, -0.033111572265625, 0.04669189453125, -0.00832366943359375, 0.02166748046875, -0.032684326171875, -0.0162200927734375, 0.01036834716796875, 0.03363037109375, -0.0159912109375, -0.0120697021484375, 0.0263824462890625, -0.053924560546875, -0.02642822265625, -0.0304107666015625, 0.005893707275390625, 0.054656982421875, -0.046630859375, 0.02191162109375, -0.0154876708984375, 0.0032806396484375, -0.005947113037109375, -0.0010042190551757812, 0.0765380859375, -0.0235443115234375, -0.0275726318359375, 0.029296875, 0.00022900104522705078, -0.01019287109375, -0.0150604248046875, -0.01143646240234375, -0.0186004638671875, 0.03009033203125, -0.0293426513671875, -0.0197296142578125, 0.0131072998046875, -0.0164642333984375, -0.0736083984375, 0.078857421875, -0.01180267333984375, 0.0286865234375, 0.0022125244140625, 0.035247802734375, -0.0074005126953125, 0.01178741455078125, -0.040130615234375, 0.060211181640625, -0.053497314453125, 0.05926513671875, -0.060333251953125, 0.002964019775390625, 0.0094757080078125, 0.0305328369140625, 0.10394287109375, 0.041534423828125, -0.038543701171875, -0.0209197998046875, 0.0135955810546875, -0.0094757080078125, -0.046966552734375, 0.072509765625, 0.002391815185546875, 0.03460693359375, 0.07330322265625, -0.06103515625, 0.04052734375, -0.007411956787109375, 0.0187225341796875, 0.01702880859375, -0.0220794677734375, -0.038604736328125, 0.00710296630859375, 0.0182342529296875, 0.0010156631469726562, -0.01038360595703125, -0.01235198974609375, -0.005252838134765625, 0.043487548828125, -0.00539398193359375, 0.0286865234375, -0.022857666015625, 0.0335693359375, -0.01154327392578125, 0.051513671875, -0.023223876953125, 0.0030307769775390625, 0.004222869873046875, 0.00579833984375, 0.031036376953125, 0.00849151611328125, -0.0106048583984375, 0.03582763671875, 0.00374603271484375, 0.0263671875, -0.05340576171875, 0.0112152099609375, -0.12255859375, -0.0963134765625, 0.049407958984375, 0.0626220703125, -0.0013446807861328125, -0.007534027099609375, 0.0117340087890625, 0.0228424072265625, 0.017333984375, -0.0135955810546875, 0.0301971435546875, -0.053924560546875, -0.0221099853515625, -0.0198516845703125, -0.024627685546875, 0.0032291412353515625, 0.02642822265625, 0.0011110305786132812, -0.005950927734375, 0.0138092041015625, -0.03173828125, -0.0260009765625, 0.013336181640625, 0.034088134765625, 0.01029205322265625, -0.00406646728515625, 0.039703369140625, 0.0202178955078125, 0.00399017333984375, 0.0167083740234375, -0.04229736328125, 0.03271484375, -0.0232391357421875, -0.0070648193359375, -0.0097198486328125, 0.0460205078125, 0.028839111328125, -0.016998291015625, -0.0134429931640625, 0.0286407470703125, 0.04937744140625, -0.03814697265625, -0.04046630859375, -0.01419830322265625, -0.026824951171875, 0.017364501953125, -0.0124664306640625, -0.01959228515625, -0.013946533203125, -0.03216552734375, -0.002254486083984375, 0.019287109375, 0.0180206298828125, -0.04168701171875, 0.0259857177734375, -0.00738525390625, -0.023406982421875, 0.05645751953125, 0.004810333251953125, 0.06585693359375, -0.01541900634765625, -0.07666015625, 0.006549835205078125, -0.05670166015625, -0.032989501953125, 0.019744873046875, 0.021331787109375, -0.0390625, 0.041290283203125, 0.0288238525390625, 0.025604248046875, 0.028533935546875, -0.06298828125, -0.01092529296875, -0.0116729736328125, 0.02447509765625, 0.0008807182312011719, -0.01399993896484375, -0.0037021636962890625, -0.0257415771484375, 0.036895751953125, -0.002964019775390625, 0.07452392578125, -0.0261077880859375, 0.028594970703125, -0.027679443359375, 0.0167236328125, -0.06439208984375, -0.043487548828125, 0.03338623046875, -0.023712158203125, -0.02911376953125, 0.00954437255859375, -0.0687255859375, 0.02093505859375, 0.0116424560546875, 0.0017223358154296875, 0.026123046875, -0.022857666015625, 0.0006799697875976562, -0.01552581787109375, 0.004528045654296875, -0.0288848876953125, -0.0272216796875, -0.048828125, -0.0220947265625, 0.027008056640625, 0.03594970703125, 0.024200439453125, 0.031158447265625, -0.0214385986328125, -0.0252532958984375, -0.0247802734375, -0.0186004638671875, -0.036346435546875, 0.034332275390625, -0.0172271728515625, 0.00786590576171875, 0.01461029052734375, -0.0167083740234375, 0.0164337158203125, 0.0027523040771484375, 0.039886474609375, 0.019378662109375, 0.0145111083984375, -0.00916290283203125, -0.0206756591796875, 0.0141754150390625, -0.0248260498046875, -0.01180267333984375, -0.0162811279296875, 0.00974273681640625, -0.031890869140625, -0.039306640625, -0.004596710205078125, -0.0269622802734375, -0.0196380615234375, -0.002285003662109375, -0.0243988037109375, -0.0535888671875, -0.00032448768615722656, -0.00823211669921875, 0.026519775390625, -0.00743865966796875, -0.054443359375, -0.007183074951171875, 0.00626373291015625, 0.07635498046875, -0.022247314453125, -0.0005674362182617188, 0.001514434814453125, 0.03790283203125, -0.03607177734375, -0.05615234375, -0.040008544921875, 0.04248046875, -0.060089111328125, 0.00496673583984375, 0.0261688232421875, -0.0143280029296875, -0.047637939453125, -0.0238800048828125, -0.0180511474609375, 0.01166534423828125, 0.00974273681640625, -0.02630615234375, 0.007068634033203125, -0.0172576904296875, 0.0126800537109375, -0.051910400390625, -0.00537109375, -0.05743408203125, -0.015838623046875, -0.0180206298828125, 0.0209197998046875, 0.0269775390625, -0.022613525390625, -0.05499267578125, 0.07537841796875, -0.0277557373046875, -0.0214691162109375, -0.04180908203125, 0.023651123046875, 0.0005412101745605469, 0.0033740997314453125, -0.01009368896484375, -0.0272216796875, -0.01499176025390625, 0.030670166015625, -0.0090179443359375, 0.022003173828125, 0.0165252685546875, -0.040802001953125, -0.050384521484375, -0.0355224609375, -0.0221405029296875, -0.007221221923828125, -0.0135650634765625, -0.0085296630859375, 0.0156097412109375, 0.03204345703125, -0.0323486328125, -0.022125244140625, 0.0178680419921875, 0.0166015625, -0.03729248046875, -0.007579803466796875, -0.0017023086547851562, 0.0192718505859375, 0.0992431640625, 0.06390380859375, 0.024871826171875, -0.05548095703125, 0.0234832763671875, -0.0540771484375, -0.033477783203125, -0.034637451171875, 0.01538848876953125, -0.036346435546875, 0.0052490234375, -0.00811004638671875, -0.0024623870849609375, -0.06280517578125, -0.0189208984375, -0.0308685302734375, -0.037384033203125, -0.028717041015625, 0.01010894775390625, 0.032867431640625, -0.028717041015625, 0.023193359375, -0.0180206298828125, 0.004627227783203125, 0.04547119140625, -0.00728607177734375, 0.01070404052734375, 0.1260986328125, 0.03369140625, -0.00406646728515625, -0.035919189453125, 0.00650787353515625, 0.0283660888671875, 0.0263214111328125, -0.02166748046875, -0.040191650390625, 0.03094482421875, 0.029266357421875, -0.0222015380859375, 0.019744873046875, -0.00293731689453125, 0.06805419921875, -0.02777099609375, 0.1044921875, 0.004528045654296875, -0.05322265625, -0.03277587890625, 0.055267333984375, 0.005840301513671875, -0.031890869140625, 0.022369384765625, -0.044586181640625, 0.025177001953125, 0.0341796875, 0.062255859375, 0.01419830322265625, 0.00667572021484375, -0.01375579833984375, 0.0089263916015625, -0.001834869384765625 ]
282381f4942eb755082bb2794fb58ca2d700343b
Wordpress Stackexchange Q: Shortcode Not displayed at the Right Place Possible Duplicate: Shortcode always displaying at the top of the page I am using custom shortcode to show some message at the end of the post. I am finding it hard to do so because it shows up at the top of the post. Here is my code. I am placing the shortcode at the end of the post but the message appears at the top of the post. What should I do to fix this? function hello_kitty(){ if ( is_single() ){ echo 'This is hello Kitty message'; } } add_shortcode('hellokitty',hello_kitty); A: Shortcodes are supposed to return your html, not echo it. Make sure you check the documentation on the Shortcodes API http://codex.wordpress.org/Shortcode_API
Q: Shortcode Not displayed at the Right Place Possible Duplicate: Shortcode always displaying at the top of the page I am using custom shortcode to show some message at the end of the post. I am finding it hard to do so because it shows up at the top of the post. Here is my code. I am placing the shortcode at the end of the post but the message appears at the top of the post. What should I do to fix this? function hello_kitty(){ if ( is_single() ){ echo 'This is hello Kitty message'; } } add_shortcode('hellokitty',hello_kitty); A: Shortcodes are supposed to return your html, not echo it. Make sure you check the documentation on the Shortcodes API http://codex.wordpress.org/Shortcode_API
wordpress
{ "language": "en", "length": 121, "provenance": "stackexchange_00019.jsonl.gz:422519", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60529" }
[ 0.04608154296875, -0.0103607177734375, 0.0284576416015625, 0.01209259033203125, -0.01201629638671875, -0.00911712646484375, 0.0263519287109375, -0.067626953125, -0.00031638145446777344, 0.039276123046875, -0.0212554931640625, -0.006198883056640625, -0.00815582275390625, -0.0216827392578125, -0.03485107421875, -0.03985595703125, 0.0277099609375, 0.01337432861328125, 0.03363037109375, -0.00804901123046875, -0.01126861572265625, 0.011077880859375, 0.00311279296875, 0.03521728515625, -0.0173492431640625, -0.0116729736328125, 0.12548828125, -0.005535125732421875, -0.019439697265625, -0.034454345703125, 0.0172882080078125, 0.0214385986328125, 0.045440673828125, 0.0204315185546875, -0.05126953125, 0.024017333984375, -0.0045013427734375, -0.0021495819091796875, -0.0164337158203125, 0.0283660888671875, 0.0013275146484375, 0.0106201171875, 0.0765380859375, 0.0174407958984375, 0.020416259765625, -0.0235443115234375, 0.007904052734375, -0.054656982421875, -0.0176849365234375, -0.01428985595703125, 0.0154266357421875, 0.01036834716796875, 0.034515380859375, -0.043701171875, 0.00006866455078125, 0.005054473876953125, -0.0212554931640625, 0.007465362548828125, 0.0256195068359375, 0.0017080307006835938, -0.00044608116149902344, -0.00347900390625, 0.023895263671875, -0.0091400146484375, 0.0129241943359375, -0.00823974609375, 0.0009074211120605469, 0.0185089111328125, -0.030670166015625, -0.0018205642700195312, 0.047119140625, -0.0238494873046875, -0.0032367706298828125, 0.0012674331665039062, -0.032257080078125, 0.0233917236328125, -0.006847381591796875, 0.0017385482788085938, 0.0241546630859375, -0.01334381103515625, -0.0023193359375, 0.010467529296875, -0.00905609130859375, -0.010986328125, -0.0078582763671875, 0.0021820068359375, -0.0172271728515625, -0.00545501708984375, -0.022613525390625, -0.01136016845703125, -0.0299530029296875, 0.040802001953125, -0.037078857421875, -0.0017671585083007812, -0.01218414306640625, 0.00321197509765625, -0.00444793701171875, 0.05426025390625, -0.0380859375, 0.016632080078125, -0.0192108154296875, -0.005878448486328125, 0.00647735595703125, -0.04071044921875, -0.01177978515625, 0.025390625, -0.0179290771484375, -0.05474853515625, -0.001010894775390625, 0.03973388671875, -0.01611328125, -0.011871337890625, -0.005603790283203125, -0.0227813720703125, -0.0176239013671875, 0.01154327392578125, -0.03955078125, 0.0221099853515625, -0.0016727447509765625, -0.005138397216796875, 0.0211181640625, 0.04669189453125, 0.013763427734375, -0.051513671875, -0.005401611328125, -0.003986358642578125, -0.016937255859375, -0.05377197265625, 0.0202484130859375, 0.0274810791015625, -0.041351318359375, -0.01261138916015625, 0.05718994140625, 0.04180908203125, 0.023895263671875, -0.026885986328125, -0.005405426025390625, -0.06866455078125, -0.009735107421875, 0.00605010986328125, -0.006282806396484375, 0.00685882568359375, 0.045166015625, -0.0296173095703125, -0.0171966552734375, 0.0281524658203125, 0.030670166015625, 0.02978515625, -0.026458740234375, -0.082275390625, 0.04949951171875, -0.0144805908203125, 0.0396728515625, 0.00760650634765625, 0.00046896934509277344, -0.014801025390625, 0.027374267578125, -0.03619384765625, -0.00431060791015625, -0.034454345703125, 0.01299285888671875, -0.015594482421875, 0.023406982421875, -0.0572509765625, -0.06427001953125, -0.00667572021484375, -0.07244873046875, -0.0188446044921875, 0.00409698486328125, 0.0210418701171875, -0.025390625, 0.0259857177734375, -0.04376220703125, -0.0236968994140625, -0.006610870361328125, -0.0234832763671875, 0.0032596588134765625, 0.014068603515625, 0.03106689453125, -0.018035888671875, -0.039215087890625, -0.04364013671875, 0.047821044921875, -0.01143646240234375, -0.055145263671875, 0.0311279296875, 0.033233642578125, 0.0758056640625, -0.02484130859375, 0.0118255615234375, 0.06048583984375, 0.044036865234375, -0.006259918212890625, 0.00678253173828125, 0.01282501220703125, -0.0262298583984375, -0.04681396484375, -0.0210723876953125, -0.0163116455078125, 0.02459716796875, -0.07733154296875, 0.0037384033203125, -0.00299835205078125, 0.004039764404296875, 0.017242431640625, 0.0045166015625, -0.0069122314453125, 0.043792724609375, -0.00016248226165771484, -0.0287322998046875, 0.0027141571044921875, -0.039215087890625, 0.0082550048828125, -0.04547119140625, -0.043792724609375, 0.034088134765625, -0.0127105712890625, 0.061309814453125, 0.0029296875, 0.0560302734375, -0.012969970703125, -0.0280303955078125, -0.00926971435546875, 0.00916290283203125, 0.0307159423828125, -0.01454925537109375, -0.0299224853515625, -0.0305633544921875, -0.0177154541015625, 0.0136260986328125, -0.0714111328125, 0.03973388671875, -0.029266357421875, -0.00916290283203125, -0.093994140625, -0.038909912109375, -0.060577392578125, 0.0386962890625, 0.010040283203125, 0.05169677734375, 0.03643798828125, 0.044891357421875, 0.02587890625, 0.037933349609375, 0.06060791015625, -0.00885009765625, 0.031005859375, -0.0080413818359375, 0.04156494140625, 0.0355224609375, 0.0150146484375, -0.046844482421875, 0.01050567626953125, -0.08782958984375, 0.01788330078125, 0.0146636962890625, 0.0087127685546875, 0.0241241455078125, 0.01148223876953125, 0.0062713623046875, -0.0110931396484375, -0.03271484375, -0.0039043426513671875, -0.0308380126953125, 0.02117919921875, -0.005542755126953125, 0.0262603759765625, 0.0159759521484375, -0.0211944580078125, 0.00007832050323486328, 0.005290985107421875, -0.0111083984375, -0.0117645263671875, 0.031646728515625, 0.045501708984375, -0.0227813720703125, -0.0285491943359375, -0.016143798828125, 0.00798797607421875, 0.0184783935546875, 0.0035800933837890625, 0.0263519287109375, -0.0297393798828125, -0.01165008544921875, 0.01020050048828125, -0.036590576171875, -0.014678955078125, 0.019317626953125, 0.0276031494140625, 0.01406097412109375, 0.004589080810546875, 0.0653076171875, -0.01137542724609375, 0.04583740234375, 0.014129638671875, 0.006496429443359375, 0.0034351348876953125, -0.03643798828125, 0.055999755859375, -0.04083251953125, 0.01175689697265625, 0.0631103515625, -0.037811279296875, 0.044219970703125, -0.01187896728515625, 0.053558349609375, -0.0262603759765625, -0.0110931396484375, -0.0171966552734375, 0.01045989990234375, -0.03875732421875, 0.033447265625, 0.04730224609375, 0.08172607421875, 0.0141143798828125, -0.03302001953125, 0.0201568603515625, 0.0509033203125, -0.050933837890625, -0.10150146484375, 0.012725830078125, -0.03369140625, -0.00637054443359375, -0.00914764404296875, -0.0086822509765625, -0.01348114013671875, 0.004547119140625, -0.00467681884765625, -0.013458251953125, -0.0170135498046875, -0.0041961669921875, -0.0303497314453125, -0.0347900390625, -0.01141357421875, 0.00942230224609375, 0.0005421638488769531, 0.00707244873046875, 0.050048828125, 0.00682830810546875, -0.0477294921875, -0.010894775390625, 0.00812530517578125, -0.049163818359375, -0.003978729248046875, 0.04058837890625, -0.050811767578125, 0.002414703369140625, -0.00165557861328125, -0.0283355712890625, 0.0037326812744140625, 0.00946807861328125, -0.030487060546875, -0.04193115234375, -0.042083740234375, -0.0177764892578125, 0.044036865234375, 0.0256195068359375, -0.01499176025390625, 0.044586181640625, -0.04095458984375, 0.006427764892578125, -0.020050048828125, -0.053436279296875, -0.06988525390625, 0.021514892578125, 0.0121002197265625, -0.05975341796875, -0.0025177001953125, -0.01119232177734375, 0.005718231201171875, 0.047821044921875, -0.029449462890625, 0.001483917236328125, -0.01021575927734375, -0.00732421875, -0.022918701171875, 0.01102447509765625, -0.005306243896484375, 0.01715087890625, 0.004703521728515625, 0.04296875, -0.01163482666015625, 0.0272216796875, -0.04364013671875, -0.022979736328125, 0.038360595703125, 0.018218994140625, 0.042236328125, -0.029693603515625, -0.044342041015625, -0.0092620849609375, 0.084228515625, -0.05389404296875, -0.0007038116455078125, 0.025665283203125, -0.005611419677734375, -0.01172637939453125, -0.01080322265625, -0.0977783203125, -0.02105712890625, -0.051422119140625, 0.03350830078125, 0.01824951171875, 0.011871337890625, -0.057037353515625, 0.09124755859375, -0.06024169921875, -0.006267547607421875, 0.05999755859375, -0.052490234375, 0.022064208984375, 0.01490020751953125, 0.0017871856689453125, -0.02716064453125, -0.06365966796875, -0.00015807151794433594, -0.0496826171875, -0.0078582763671875, -0.01288604736328125, 0.0158538818359375, 0.00273895263671875, -0.0093231201171875, -0.0335693359375, 0.0212249755859375, 0.003368377685546875, -0.0028400421142578125, 0.0302276611328125, 0.0106201171875, 0.024444580078125, -0.00855255126953125, 0.0033206939697265625, -0.03350830078125, -0.000048041343688964844, 0.031097412109375, -0.002216339111328125, 0.034576416015625, -0.01444244384765625, -0.0406494140625, 0.04534912109375, -0.05029296875, -0.0218048095703125, -0.04949951171875, 0.005474090576171875, 0.0494384765625, -0.0229339599609375, 0.0258941650390625, -0.07135009765625, -0.03131103515625, -0.0257720947265625, -0.0256500244140625, -0.04620361328125, 0.04339599609375, 0.0164031982421875, 0.0230255126953125, 0.01153564453125, -0.0745849609375, 0.01480865478515625, 0.052276611328125, 0.0135345458984375, 0.0171356201171875, 0.036224365234375, -0.0264892578125, 0.009613037109375, 0.023406982421875, 0.01397705078125, 0.004543304443359375, 0.0538330078125, 0.0081939697265625, 0.004138946533203125, 0.00942230224609375, 0.01401519775390625, -0.05328369140625, 0.0044097900390625, -0.0226287841796875, 0.0335693359375, -0.01384735107421875, -0.0102386474609375, -0.0018453598022460938, -0.0021953582763671875, -0.0058135986328125, -0.0416259765625, 0.01275634765625, 0.0511474609375, 0.00366973876953125, 0.007137298583984375, 0.01085662841796875, -0.0007543563842773438, 0.018524169921875, 0.0237579345703125, -0.004276275634765625, -0.0018634796142578125, 0.00327301025390625, 0.045806884765625, -0.002593994140625, 0.0276336669921875, -0.011260986328125, 0.00579071044921875, 0.0709228515625, 0.020843505859375, -0.017181396484375, -0.0246734619140625, -0.035430908203125, -0.0155181884765625, -0.0289154052734375, 0.0184326171875, 0.0144500732421875, 0.0219573974609375, 0.0182037353515625, 0.0246734619140625, -0.01010894775390625, 0.018890380859375, -0.01450347900390625, 0.0226898193359375, -0.01708984375, 0.00962066650390625, -0.01953125, 0.07769775390625, -0.02886962890625, 0.045166015625, -0.00005620718002319336, -0.0265045166015625, -0.02227783203125, 0.027984619140625, 0.0391845703125, 0.00409698486328125, -0.01514434814453125, 0.01003265380859375, 0.0201416015625, -0.035491943359375, -0.01055145263671875, -0.010986328125, 0.036376953125, 0.003276824951171875, -0.00890350341796875, 0.038238525390625, -0.024993896484375, -0.01561737060546875, 0.00862884521484375, 0.0295867919921875, -0.0013017654418945312, -0.01381683349609375, -0.0014171600341796875, 0.0126495361328125, 0.029754638671875, -0.0113983154296875, -0.0106201171875, -0.023162841796875, 0.03448486328125, -0.0242767333984375, 0.0361328125, 0.013824462890625, -0.0257568359375, 0.00032639503479003906, -0.00591278076171875, -0.019866943359375, -0.021148681640625, -0.0362548828125, -0.00804901123046875, -0.01023101806640625, 0.0479736328125, -0.029327392578125, 0.0019483566284179688, -0.016143798828125, 0.00887298583984375, -0.011474609375, 0.021636962890625, 0.03302001953125, 0.0073089599609375, -0.0791015625, 0.0306854248046875, -0.06463623046875, 0.0166778564453125, -0.0024509429931640625, -0.03912353515625, -0.04046630859375, -0.0244598388671875, 0.037322998046875, 0.056854248046875, -0.019622802734375, -0.06964111328125, -0.06915283203125, -0.00994110107421875, 0.0460205078125, 0.11181640625, 0.00868988037109375, 0.0169525146484375, -0.005573272705078125, 0.04736328125, 0.0216064453125, 0.0243988037109375, 0.006832122802734375, -0.047210693359375, 0.051300048828125, 0.01464080810546875, -0.053680419921875, -0.006450653076171875, -0.0224609375, -0.06439208984375, -0.002796173095703125, -0.0350341796875, 0.0095672607421875, 0.01092529296875, 0.013916015625, -0.007785797119140625, 0.006381988525390625, 0.005462646484375, -0.0066986083984375, 0.028533935546875, -0.0087127685546875, 0.02288818359375, 0.01446533203125, -0.0184173583984375, 0.0017843246459960938, -0.0194244384765625, 0.011993408203125, -0.007160186767578125, 0.0198211669921875, 0.046234130859375, 0.045501708984375, -0.0217132568359375, 0.056488037109375, 0.08056640625, 0.0265045166015625, 0.0233917236328125, 0.048309326171875, -0.0048065185546875, -0.0638427734375, 0.0380859375, -0.00734710693359375, -0.020355224609375, 0.0093231201171875, -0.0301055908203125, 0.01406097412109375, 0.03472900390625, 0.05047607421875, -0.0443115234375, 0.0064697265625, 0.024261474609375, -0.046905517578125, -0.01253509521484375, -0.007427215576171875, 0.01763916015625, -0.0118255615234375, 0.042388916015625, 0.007049560546875, -0.013580322265625, 0.0218658447265625, -0.01265716552734375, 0.00977325439453125, -0.02801513671875, 0.0284423828125, -0.0009698867797851562, -0.06866455078125, -0.0120697021484375, 0.051513671875, -0.01983642578125, -0.006832122802734375, -0.0178985595703125, 0.0010366439819335938, -0.01500701904296875, -0.045074462890625, 0.0217437744140625, -0.035247802734375, 0.01332855224609375, 0.0184173583984375, -0.0258941650390625, -0.0340576171875, 0.044219970703125, -0.06085205078125, 0.0701904296875, 0.00011914968490600586, -0.034271240234375, 0.0714111328125, -0.0170745849609375, 0.006946563720703125, 0.039337158203125, -0.07244873046875, 0.00325775146484375, 0.0209197998046875, 0.01239776611328125, -0.025390625, -0.0531005859375, 0.08837890625, -0.06640625, 0.005718231201171875, 0.0025844573974609375, 0.02313232421875, -0.004268646240234375, -0.0094757080078125, 0.033966064453125, -0.0234375, 0.034820556640625, 0.005008697509765625, 0.025177001953125, -0.032989501953125, -0.0280914306640625, -0.039520263671875, 0.032684326171875, -0.00439453125, -0.00801849365234375, -0.007320404052734375, 0.0197906494140625, 0.0128173828125, 0.0096435546875, -0.0246734619140625, 0.04736328125, -0.025115966796875, 0.0465087890625, -0.042694091796875, -0.0125885009765625, 0.0113677978515625, 0.0457763671875, 0.0101470947265625, -0.00785064697265625, -0.01000213623046875, 0.0120086669921875, 0.0389404296875, 0.0088043212890625, -0.0142364501953125, 0.0303955078125, -0.01282501220703125, -0.0088653564453125, -0.00597381591796875, 0.01026153564453125, 0.0308990478515625, -0.0036525726318359375, -0.06939697265625, 0.019073486328125, -0.002899169921875, -0.023162841796875, 0.00856781005859375, 0.0268402099609375, -0.06884765625, 0.0177001953125, 0.04144287109375, -0.0019588470458984375, -0.011566162109375, 0.060638427734375, 0.052703857421875, -0.07855224609375, -0.061065673828125, -0.021942138671875, 0.0482177734375, 0.0016908645629882812, 0.0660400390625, 0.0277862548828125, 0.025665283203125, 0.05523681640625, -0.0018939971923828125, 0.0465087890625, 0.03759765625, -0.05487060546875, 0.03680419921875, 0.03887939453125, 0.040863037109375, -0.0048980712890625, -0.0258636474609375, 0.039642333984375, 0.0654296875, -0.035369873046875, 0.0131683349609375, 0.0263519287109375, 0.00628662109375, -0.034149169921875, -0.046142578125, -0.03912353515625, -0.005802154541015625, 0.0128631591796875, -0.0411376953125, -0.0103607177734375, 0.04119873046875, 0.0675048828125, 0.006053924560546875, 0.00254058837890625, -0.058929443359375, -0.041107177734375, -0.019989013671875, 0.01239013671875, 0.0104522705078125, 0.0184783935546875, -0.000835418701171875, 0.0245513916015625, 0.00787353515625, -0.001613616943359375, -0.0080413818359375, 0.0034275054931640625, -0.0142822265625, 0.0185394287109375, -0.031646728515625, 0.009521484375, -0.03228759765625, 0.04034423828125, -0.0004596710205078125, 0.02166748046875, 0.0126190185546875, 0.002445220947265625, 0.00449371337890625, -0.00011116266250610352, 0.047576904296875, -0.0250244140625, -0.005344390869140625, -0.02880859375, -0.0045623779296875, 0.021697998046875, -0.0101318359375, 0.00579071044921875, 0.02386474609375, 0.0226898193359375, -0.005908966064453125, 0.01580810546875, -0.0026836395263671875, -0.043304443359375, 0.0286407470703125, -0.0088043212890625, 0.0889892578125, 0.016143798828125, -0.0302276611328125, -0.02923583984375, -0.0299530029296875, -0.036376953125, 0.036163330078125, 0.052734375, 0.040008544921875, -0.027618408203125, -0.0303497314453125, -0.00670623779296875, 0.004932403564453125, -0.00933074951171875, 0.008270263671875, 0.01898193359375, -0.00018525123596191406, -0.007335662841796875, -0.067626953125, -0.02215576171875, 0.007114410400390625, 0.01427459716796875, 0.0006089210510253906, 0.01468658447265625, 0.04498291015625, -0.00069427490234375, -0.031585693359375, 0.0239715576171875, -0.04364013671875, -0.046142578125, 0.065673828125, -0.0018100738525390625, -0.0234527587890625, -0.0123138427734375, -0.03582763671875, 0.0153656005859375, 0.04498291015625, -0.016815185546875, 0.03167724609375, -0.0133056640625, 0.00849151611328125, -0.035430908203125, 0.03289794921875, -0.0216827392578125, -0.0038089752197265625, -0.01549530029296875, -0.0019273757934570312, 0.0168914794921875, 0.00337982177734375, -0.023773193359375, 0.04327392578125, 0.06939697265625, -0.00640106201171875, 0.03289794921875, -0.03717041015625, 0.0645751953125, 0.044952392578125, 0.0323486328125, 0.002719879150390625, -0.0291595458984375, -0.0189666748046875, 0.0185394287109375, -0.0043182373046875, -0.0128173828125, 0.01265716552734375, -0.038482666015625, 0.0216827392578125, 0.0067138671875, 0.01541900634765625, -0.03887939453125, -0.006015777587890625, 0.02447509765625, 0.0033512115478515625, -0.004974365234375, 0.052001953125, 0.00237274169921875, -0.025604248046875, 0.0196075439453125, 0.0209808349609375, 0.0080413818359375, 0.052734375, -0.021240234375, -0.007320404052734375, 0.0183868408203125, 0.0004138946533203125, -0.02044677734375, -0.0389404296875, 0.0185699462890625, 0.0716552734375, -0.01220703125, 0.0003943443298339844, 0.0117340087890625, 0.0237274169921875, -0.057952880859375, -0.00257110595703125, -0.013580322265625, -0.0028247833251953125, -0.02496337890625, -0.006256103515625, 0.032135009765625, 0.0035247802734375, -0.0036487579345703125, -0.00872802734375, -0.0091094970703125, 0.03753662109375, -0.048736572265625, -0.01403045654296875, 0.0204010009765625, 0.0094146728515625, -0.015106201171875, -0.0435791015625, 0.003498077392578125, -0.03192138671875, 0.0077056884765625, -0.046600341796875, 0.00852203369140625, 0.01015472412109375, -0.030670166015625, -0.031829833984375, -0.01457977294921875, 0.0135345458984375, -0.037933349609375, -0.0264739990234375, -0.061859130859375, -0.0130462646484375, 0.0252532958984375, -0.01702880859375, -0.0276641845703125, -0.04803466796875, 0.034454345703125, -0.0043487548828125, 0.030548095703125, 0.0149078369140625, 0.005100250244140625, 0.02020263671875, 0.00528717041015625, 0.0018672943115234375, -0.038726806640625, 0.0036907196044921875, -0.03692626953125, 0.047698974609375, 0.03594970703125, -0.036102294921875, -0.030426025390625, 0.031890869140625, -0.0157012939453125, 0.01232147216796875, -0.0206756591796875, 0.0015211105346679688, -0.036285400390625, 0.0261383056640625, 0.003536224365234375, -0.0031414031982421875, 0.0004870891571044922, -0.004425048828125, -0.01654052734375, 0.005733489990234375, 0.01078033447265625, -0.005313873291015625, -0.0155792236328125, 0.0242156982421875, -0.004993438720703125, -0.0102996826171875, -0.0096435546875, -0.0245208740234375, -0.041015625, -0.005947113037109375, -0.0172119140625, 0.0276031494140625, -0.07220458984375, -0.0273895263671875, 0.03021240234375, -0.01123809814453125, 0.0081024169921875, -0.00249481201171875, 0.02117919921875, 0.0224456787109375, 0.02545166015625, 0.03509521484375, 0.060546875, -0.050079345703125, -0.02783203125, 0.0330810546875, 0.03076171875, -0.0007920265197753906, -0.01190185546875, 0.00878143310546875, 0.032958984375, -0.01190948486328125, 0.032684326171875, -0.0187530517578125, 0.081298828125, 0.007781982421875, 0.031402587890625, -0.01038360595703125, 0.061676025390625, -0.0024166107177734375, 0.044342041015625, -0.01541900634765625, 0.0004725456237792969, 0.01107025146484375, -0.041778564453125, 0.0254974365234375, 0.044891357421875, 0.037384033203125, 0.037994384765625, -0.017974853515625, 0.0009431838989257812, 0.005298614501953125, -0.0228424072265625 ]
32094f73019c38f4481c634fdadb3380bf3ac02b
Wordpress Stackexchange Q: array_pop() expects array, boolean given for $event_type_term ->slug I have the following function I wrote … add_filter('post_type_link', 'events_permalink_structure', 10, 4); function events_permalink_structure($post_link, $post, $leavename, $sample) { if ( false !== strpos( $post_link, '%event_type%' ) ) { $event_type_term = get_the_terms( $post->ID, 'event_type' ); $post_link = str_replace( '%event_type%', array_pop( $event_type_term )->slug, $post_link ); } return $post_link; } When creating a new post I get the following Warnings in the backend … Warning: array_pop() expects parameter 1 to be array, boolean given in /Users/my/htdocs/wr/wp-content/themes/wr/functions.php on line 168 Notice: Trying to get property of non-object in /Users/my/htdocs/wr/wp-content/themes/wr/functions.php on line 168 Any ideas what I'm doing wrong here? Thank you in advance! A: get_the_terms() is probably returning false. Do a print_r($event_type_term) to see what you have in it. From: http://codex.wordpress.org/Function_Reference/get_the_terms Array of term objects on success. False if no terms are found in the given taxonomy and a wp_error object if an invalid taxonomy is entered.
Q: array_pop() expects array, boolean given for $event_type_term ->slug I have the following function I wrote … add_filter('post_type_link', 'events_permalink_structure', 10, 4); function events_permalink_structure($post_link, $post, $leavename, $sample) { if ( false !== strpos( $post_link, '%event_type%' ) ) { $event_type_term = get_the_terms( $post->ID, 'event_type' ); $post_link = str_replace( '%event_type%', array_pop( $event_type_term )->slug, $post_link ); } return $post_link; } When creating a new post I get the following Warnings in the backend … Warning: array_pop() expects parameter 1 to be array, boolean given in /Users/my/htdocs/wr/wp-content/themes/wr/functions.php on line 168 Notice: Trying to get property of non-object in /Users/my/htdocs/wr/wp-content/themes/wr/functions.php on line 168 Any ideas what I'm doing wrong here? Thank you in advance! A: get_the_terms() is probably returning false. Do a print_r($event_type_term) to see what you have in it. From: http://codex.wordpress.org/Function_Reference/get_the_terms Array of term objects on success. False if no terms are found in the given taxonomy and a wp_error object if an invalid taxonomy is entered.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:422533", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60570" }
[ 0.05059814453125, 0.026092529296875, 0.01055908203125, -0.058807373046875, 0.03924560546875, -0.039703369140625, 0.03656005859375, -0.0243072509765625, 0.03143310546875, -0.01340484619140625, -0.023712158203125, -0.030792236328125, -0.050262451171875, -0.050933837890625, -0.001613616943359375, -0.041900634765625, 0.0295257568359375, -0.032012939453125, 0.004177093505859375, -0.01308441162109375, 0.006725311279296875, 0.024658203125, 0.01250457763671875, 0.0247955322265625, 0.04766845703125, 0.0178375244140625, 0.076171875, -0.051666259765625, 0.044677734375, -0.0194244384765625, 0.0196685791015625, -0.03521728515625, -0.004131317138671875, 0.038726806640625, -0.033233642578125, -0.0030727386474609375, 0.0243377685546875, 0.00811004638671875, 0.0244140625, 0.01419830322265625, -0.0185089111328125, 0.032684326171875, -0.0228118896484375, 0.043365478515625, -0.055816650390625, -0.045654296875, -0.0214691162109375, -0.03265380859375, -0.019500732421875, -0.0164031982421875, 0.0267791748046875, -0.00244903564453125, 0.04949951171875, -0.00917816162109375, -0.006732940673828125, 0.0002899169921875, 0.006450653076171875, -0.01038360595703125, 0.0127716064453125, 0.000004947185516357422, -0.0212554931640625, 0.0189666748046875, 0.01221466064453125, -0.0198516845703125, -0.0266571044921875, 0.0095977783203125, -0.00623321533203125, 0.00013172626495361328, -0.0251617431640625, -0.01715087890625, 0.0105743408203125, -0.0228271484375, -0.004573822021484375, -0.0022945404052734375, 0.004688262939453125, -0.0413818359375, -0.00110626220703125, -0.041015625, -0.007053375244140625, 0.044464111328125, 0.0186767578125, 0.0097503662109375, -0.03424072265625, 0.0238037109375, -0.002948760986328125, 0.04022216796875, -0.00821685791015625, -0.0248260498046875, -0.0163726806640625, -0.009979248046875, -0.0022563934326171875, -0.036773681640625, -0.033721923828125, 0.01776123046875, 0.0205535888671875, -0.058349609375, 0.04962158203125, 0.0684814453125, -0.033966064453125, -0.0045928955078125, -0.019439697265625, -0.018035888671875, -0.01410675048828125, -0.037811279296875, 0.0172119140625, 0.035247802734375, 0.0122528076171875, -0.00600433349609375, 0.043212890625, 0.000766754150390625, 0.0160675048828125, 0.047698974609375, -0.00951385498046875, -0.01117706298828125, -0.0088653564453125, 0.036590576171875, -0.031951904296875, 0.0281829833984375, 0.00305938720703125, 0.0634765625, 0.00522613525390625, 0.0042572021484375, 0.0166168212890625, 0.046417236328125, -0.014556884765625, 0.0097808837890625, -0.003070831298828125, -0.045501708984375, 0.0080718994140625, 0.037017822265625, -0.032073974609375, -0.0089569091796875, 0.004314422607421875, -0.0003364086151123047, -0.00373077392578125, -0.026519775390625, 0.03900146484375, -0.0017337799072265625, -0.00768280029296875, -0.00643157958984375, 0.04718017578125, 0.01116943359375, -0.0220489501953125, 0.0305328369140625, 0.021514892578125, -0.0112762451171875, 0.02301025390625, 0.032958984375, -0.01195526123046875, -0.005252838134765625, 0.01436614990234375, -0.0019159317016601562, 0.051422119140625, 0.01540374755859375, -0.06414794921875, -0.015838623046875, 0.01206207275390625, -0.040863037109375, -0.01837158203125, -0.08258056640625, 0.0012149810791015625, -0.0154571533203125, -0.0160064697265625, -0.031646728515625, -0.04168701171875, 0.006481170654296875, -0.040069580078125, -0.0013036727905273438, 0.0157928466796875, 0.01763916015625, 0.04620361328125, -0.005779266357421875, -0.0343017578125, -0.0011358261108398438, -0.012725830078125, -0.020416259765625, 0.0221099853515625, -0.00670623779296875, 0.01253509521484375, 0.039642333984375, -0.0304107666015625, -0.0309600830078125, 0.025726318359375, -0.031494140625, -0.05413818359375, 0.03985595703125, 0.005096435546875, 0.022918701171875, 0.0119476318359375, 0.00231170654296875, 0.0141448974609375, 0.038909912109375, -0.031158447265625, 0.0007944107055664062, -0.0198516845703125, -0.002780914306640625, -0.0185699462890625, 0.002895355224609375, -0.02227783203125, 0.004058837890625, -0.037933349609375, -0.00531005859375, -0.009735107421875, 0.007015228271484375, -0.06060791015625, 0.007720947265625, -0.018951416015625, 0.040191650390625, -0.00605010986328125, 0.055419921875, 0.0229949951171875, 0.0340576171875, -0.07318115234375, 0.073486328125, 0.01824951171875, 0.0018606185913085938, -0.00666046142578125, 0.0036106109619140625, -0.051605224609375, 0.006195068359375, -0.06903076171875, -0.05621337890625, -0.0643310546875, 0.045318603515625, 0.056671142578125, -0.01355743408203125, 0.01152801513671875, -0.01352691650390625, 0.048828125, 0.008392333984375, -0.00571441650390625, 0.00445556640625, 0.057830810546875, 0.03778076171875, -0.00499725341796875, 0.01079559326171875, 0.056304931640625, -0.063232421875, 0.00020420551300048828, 0.03253173828125, 0.034393310546875, 0.0242156982421875, -0.0225677490234375, -0.0238494873046875, 0.0950927734375, 0.0087432861328125, 0.01274871826171875, -0.0289764404296875, -0.01528167724609375, 0.0175323486328125, 0.0261383056640625, 0.0284881591796875, 0.017303466796875, -0.00560760498046875, 0.0221099853515625, 0.0291900634765625, -0.0285186767578125, -0.0308074951171875, -0.0111083984375, 0.02301025390625, 0.00738525390625, -0.02972412109375, 0.0037822723388671875, -0.01094818115234375, 0.01351165771484375, 0.0113677978515625, -0.00916290283203125, -0.022705078125, -0.022003173828125, 0.00795745849609375, 0.0094757080078125, -0.050872802734375, -0.01251220703125, 0.028564453125, 0.0280303955078125, 0.048980712890625, -0.050323486328125, -0.0016946792602539062, 0.016998291015625, 0.0280914306640625, -0.0309295654296875, 0.03240966796875, 0.0033397674560546875, -0.0198974609375, -0.026397705078125, 0.0055694580078125, 0.004741668701171875, -0.03228759765625, 0.00562286376953125, 0.00566864013671875, 0.03765869140625, 0.0161285400390625, -0.035003662109375, 0.039215087890625, -0.005146026611328125, -0.011962890625, -0.019317626953125, -0.0277862548828125, 0.0290985107421875, -0.0360107421875, 0.0018014907836914062, 0.04107666015625, 0.0027942657470703125, -0.0154266357421875, 0.007293701171875, -0.023956298828125, -0.00917816162109375, 0.01800537109375, -0.01175689697265625, -0.014251708984375, -0.06634521484375, 0.0140380859375, 0.03387451171875, 0.04583740234375, 0.001926422119140625, -0.036346435546875, -0.004192352294921875, 0.031341552734375, -0.051727294921875, -0.0289154052734375, 0.0364990234375, -0.048919677734375, 0.0010547637939453125, -0.015655517578125, -0.0223388671875, -0.00847625732421875, -0.0009074211120605469, -0.007678985595703125, -0.037567138671875, -0.01265716552734375, -0.027130126953125, -0.04217529296875, -0.040191650390625, 0.03790283203125, -0.0003509521484375, 0.0189971923828125, 0.0022640228271484375, 0.058013916015625, 0.029937744140625, -0.05633544921875, 0.0235595703125, 0.06829833984375, -0.0252838134765625, 0.0218658447265625, -0.026611328125, 0.00643157958984375, 0.006404876708984375, -0.004611968994140625, 0.007720947265625, 0.0235748291015625, -0.019287109375, -0.01273345947265625, 0.005039215087890625, 0.03863525390625, 0.0330810546875, 0.022796630859375, -0.0082855224609375, 0.0222930908203125, 0.0389404296875, -0.0242919921875, -0.01294708251953125, 0.00907135009765625, -0.031463623046875, 0.05023193359375, 0.034454345703125, -0.0408935546875, -0.00021326541900634766, 0.008819580078125, 0.009490966796875, 0.041259765625, -0.03765869140625, 0.01070404052734375, 0.038360595703125, -0.00936126708984375, -0.0285186767578125, 0.00971221923828125, 0.038055419921875, -0.0284881591796875, 0.040008544921875, 0.0159759521484375, -0.0184478759765625, -0.0018339157104492188, -0.0175933837890625, -0.0218505859375, -0.042144775390625, 0.03692626953125, -0.08428955078125, -0.00836181640625, -0.05230712890625, -0.01149749755859375, -0.011505126953125, 0.07562255859375, 0.010284423828125, -0.041290283203125, -0.043243408203125, 0.00908660888671875, 0.0013360977172851562, -0.0292816162109375, 0.06646728515625, -0.0006928443908691406, -0.06304931640625, -0.01187896728515625, -0.007297515869140625, -0.01549530029296875, -0.01287841796875, 0.05712890625, -0.031585693359375, -0.0223388671875, 0.045501708984375, -0.0257568359375, -0.00506591796875, 0.044219970703125, -0.0024700164794921875, -0.006748199462890625, -0.037689208984375, -0.004764556884765625, -0.07733154296875, -0.019866943359375, 0.056915283203125, 0.056915283203125, -0.044952392578125, 0.01666259765625, -0.026336669921875, 0.049407958984375, 0.0196685791015625, -0.050872802734375, 0.0169830322265625, -0.01959228515625, -0.028350830078125, 0.03179931640625, -0.002620697021484375, -0.0181884765625, 0.0088653564453125, 0.008544921875, -0.055389404296875, 0.01190948486328125, -0.02947998046875, 0.00582122802734375, 0.023284912109375, -0.041473388671875, -0.0310211181640625, -0.0002989768981933594, 0.0157928466796875, 0.00801849365234375, 0.00392913818359375, -0.0093841552734375, -0.005542755126953125, -0.0300750732421875, 0.036224365234375, -0.0005259513854980469, -0.039947509765625, 0.01103973388671875, 0.0565185546875, 0.019439697265625, -0.01554107666015625, -0.07049560546875, -0.0165557861328125, 0.01065826416015625, -0.0399169921875, 0.035064697265625, 0.00838470458984375, 0.006793975830078125, 0.006710052490234375, -0.03857421875, 0.028045654296875, -0.0123443603515625, 0.0046844482421875, 0.01641845703125, -0.01104736328125, 0.0235137939453125, 0.0228118896484375, 0.01102447509765625, 0.0016756057739257812, -0.0104522705078125, -0.01338958740234375, 0.0273895263671875, 0.03668212890625, -0.0191192626953125, 0.0309600830078125, -0.0389404296875, -0.0252227783203125, 0.024200439453125, 0.0270233154296875, 0.01268768310546875, 0.016937255859375, -0.01078033447265625, -0.0056915283203125, -0.017181396484375, 0.01580810546875, -0.0196685791015625, 0.016204833984375, -0.004436492919921875, 0.02606201171875, 0.03289794921875, 0.026092529296875, -0.04022216796875, 0.0152587890625, -0.0023403167724609375, -0.0215606689453125, -0.033721923828125, -0.01218414306640625, -0.005161285400390625, -0.02593994140625, 0.0281829833984375, -0.0161285400390625, 0.036651611328125, 0.04974365234375, -0.00450897216796875, 0.0018091201782226562, -0.036102294921875, 0.041168212890625, -0.0300750732421875, -0.0202178955078125, -0.0217132568359375, 0.005218505859375, 0.019134521484375, 0.048980712890625, -0.0225067138671875, 0.04632568359375, -0.032989501953125, 0.01375579833984375, 0.02923583984375, 0.04437255859375, 0.0274200439453125, -0.058837890625, -0.01364898681640625, 0.0394287109375, 0.01030731201171875, -0.0638427734375, -0.054840087890625, 0.0141143798828125, 0.045654296875, -0.0191650390625, 0.01360321044921875, 0.0244140625, 0.042724609375, 0.00208282470703125, 0.0430908203125, -0.00931549072265625, -0.03173828125, -0.0263519287109375, 0.009857177734375, 0.043182373046875, -0.033477783203125, -0.0269775390625, 0.062042236328125, -0.0006384849548339844, 0.035675048828125, 0.0032405853271484375, -0.031097412109375, -0.005634307861328125, 0.01480865478515625, 0.01177978515625, -0.0280609130859375, -0.004486083984375, -0.00983428955078125, 0.0002722740173339844, -0.01641845703125, -0.01125335693359375, 0.0343017578125, -0.0284576416015625, 0.0192108154296875, -0.045562744140625, 0.0158233642578125, -0.041107177734375, 0.00455474853515625, 0.027801513671875, 0.0177459716796875, -0.08868408203125, 0.0189361572265625, -0.015960693359375, 0.040374755859375, -0.03265380859375, -0.043487548828125, -0.007904052734375, 0.007457733154296875, -0.0316162109375, 0.022125244140625, 0.01519012451171875, 0.05206298828125, 0.040252685546875, -0.012115478515625, -0.06646728515625, -0.00812530517578125, -0.0220184326171875, 0.04632568359375, 0.0305633544921875, 0.0323486328125, 0.007537841796875, -0.00945281982421875, -0.042572021484375, 0.00417327880859375, -0.040435791015625, -0.08026123046875, -0.0008568763732910156, 0.038970947265625, -0.004100799560546875, 0.035888671875, -0.0081024169921875, 0.00868988037109375, -0.0128021240234375, 0.0037479400634765625, 0.007656097412109375, -0.01012420654296875, 0.0165252685546875, 0.01436614990234375, -0.055877685546875, 0.055908203125, -0.035491943359375, 0.0369873046875, 0.0250396728515625, 0.022491455078125, -0.01044464111328125, -0.0379638671875, -0.01031494140625, 0.06756591796875, 0.047943115234375, 0.0012788772583007812, 0.051727294921875, -0.0205078125, 0.0271453857421875, 0.012664794921875, -0.0015115737915039062, 0.016082763671875, 0.0537109375, 0.011749267578125, -0.03997802734375, 0.0660400390625, 0.0147247314453125, -0.058929443359375, 0.01491546630859375, -0.052947998046875, -0.02618408203125, -0.005084991455078125, 0.021392822265625, -0.022796630859375, -0.007709503173828125, 0.0182952880859375, 0.02508544921875, 0.0017557144165039062, 0.027099609375, -0.01226043701171875, 0.0282135009765625, -0.03558349609375, -0.006259918212890625, -0.045257568359375, -0.00615692138671875, 0.029754638671875, -0.0009016990661621094, 0.01467132568359375, 0.059478759765625, 0.006183624267578125, -0.0694580078125, 0.0117340087890625, 0.0191802978515625, 0.00885772705078125, 0.02215576171875, 0.0584716796875, -0.0277099609375, -0.0206451416015625, -0.0318603515625, -0.01224517822265625, 0.01305389404296875, -0.04010009765625, 0.0180206298828125, -0.04083251953125, 0.035430908203125, 0.031829833984375, -0.0280914306640625, 0.02801513671875, -0.0005979537963867188, -0.0233306884765625, -0.0343017578125, 0.0003008842468261719, 0.032135009765625, 0.033599853515625, -0.0269622802734375, 0.0333251953125, -0.031280517578125, -0.0199127197265625, -0.036102294921875, -0.048614501953125, 0.10052490234375, -0.03509521484375, -0.0204925537109375, 0.03863525390625, 0.0279541015625, -0.0400390625, -0.0023899078369140625, 0.04986572265625, -0.056640625, -0.0281524658203125, 0.0238800048828125, -0.0160980224609375, -0.0404052734375, -0.00220489501953125, -0.052215576171875, 0.101318359375, -0.027984619140625, 0.0258026123046875, 0.0379638671875, 0.0284576416015625, -0.03509521484375, 0.01479339599609375, -0.040069580078125, 0.05462646484375, 0.01495361328125, 0.047393798828125, -0.047943115234375, -0.02294921875, 0.008026123046875, 0.0295257568359375, 0.01198577880859375, -0.009368896484375, 0.0224456787109375, 0.0124359130859375, 0.06463623046875, 0.01308441162109375, -0.01702880859375, 0.0023593902587890625, 0.004299163818359375, 0.004535675048828125, 0.059783935546875, -0.0004112720489501953, 0.0355224609375, -0.00994873046875, 0.006435394287109375, 0.0267181396484375, 0.0008859634399414062, 0.01031494140625, 0.00894927978515625, -0.045745849609375, -0.01235198974609375, -0.00598907470703125, -0.004734039306640625, 0.006927490234375, 0.008209228515625, 0.033050537109375, 0.0201416015625, -0.0279541015625, 0.00909423828125, -0.035980224609375, 0.0546875, 0.0005173683166503906, 0.01983642578125, 0.031951904296875, 0.00730133056640625, 0.041229248046875, -0.043731689453125, -0.003849029541015625, -0.016448974609375, 0.007022857666015625, 0.0399169921875, 0.0148162841796875, 0.01186370849609375, -0.08258056640625, -0.036834716796875, 0.09307861328125, 0.08843994140625, -0.0384521484375, -0.029937744140625, 0.0093536376953125, 0.021514892578125, 0.01055145263671875, -0.001049041748046875, 0.0228271484375, 0.041900634765625, 0.089111328125, -0.05340576171875, -0.0006322860717773438, 0.032958984375, 0.027435302734375, -0.01018524169921875, -0.01068115234375, -0.027191162109375, -0.02313232421875, -0.050567626953125, 0.041778564453125, 0.027374267578125, 0.08660888671875, -0.0010852813720703125, 0.04840087890625, -0.056915283203125, -0.021636962890625, -0.00536346435546875, 0.0177459716796875, -0.00215911865234375, 0.007801055908203125, -0.003787994384765625, 0.0079193115234375, -0.010833740234375, 0.01319122314453125, 0.0092926025390625, 0.003337860107421875, 0.03204345703125, 0.041748046875, -0.0122833251953125, 0.0004260540008544922, 0.08099365234375, -0.0045013427734375, -0.01108551025390625, -0.0157470703125, -0.00899505615234375, 0.020477294921875, -0.0064239501953125, 0.017913818359375, 0.0018072128295898438, 0.03369140625, -0.006618499755859375, 0.0271148681640625, -0.00890350341796875, 0.006542205810546875, 0.042022705078125, 0.0055999755859375, 0.01377105712890625, 0.0169219970703125, -0.06927490234375, -0.02484130859375, -0.044219970703125, -0.0021209716796875, 0.0304107666015625, 0.045074462890625, 0.0227203369140625, -0.0130462646484375, -0.0199432373046875, -0.006855010986328125, 0.028564453125, 0.01461029052734375, -0.0246124267578125, 0.021697998046875, 0.0364990234375, -0.0120849609375, 0.013946533203125, 0.0183258056640625, 0.0184783935546875, 0.01410675048828125, -0.0010633468627929688, 0.089599609375, -0.03118896484375, 0.0039825439453125, -0.01812744140625, 0.033172607421875, -0.039276123046875, -0.004638671875, 0.005367279052734375, 0.00516510009765625, 0.0240020751953125, -0.01003265380859375, -0.0295562744140625, 0.0020599365234375, 0.036041259765625, -0.0279083251953125, 0.0287628173828125, -0.0506591796875, 0.01232147216796875, -0.0285797119140625, 0.0770263671875, 0.0028934478759765625, -0.0226593017578125, -0.0245361328125, -0.01027679443359375, 0.04888916015625, 0.058135986328125, -0.01474761962890625, -0.0019502639770507812, 0.0257110595703125, -0.049346923828125, 0.0310821533203125, -0.037567138671875, 0.026397705078125, 0.03094482421875, 0.0655517578125, 0.02679443359375, 0.005428314208984375, -0.0012407302856445312, 0.039093017578125, 0.01983642578125, -0.0029296875, 0.01983642578125, 0.024078369140625, 0.0163726806640625, -0.056915283203125, -0.01032257080078125, -0.04150390625, -0.040771484375, 0.01293182373046875, 0.007236480712890625, -0.01540374755859375, 0.003204345703125, -0.0218353271484375, -0.0305023193359375, -0.0082550048828125, -0.00450897216796875, 0.005451202392578125, -0.035858154296875, -0.00045871734619140625, 0.01262664794921875, 0.054046630859375, -0.005100250244140625, 0.01108551025390625, -0.0183563232421875, -0.035125732421875, 0.0259857177734375, 0.00902557373046875, -0.04364013671875, 0.0219268798828125, 0.0194549560546875, -0.0094757080078125, -0.0026912689208984375, -0.0231781005859375, -0.01009368896484375, 0.0029010772705078125, 0.0023097991943359375, 0.034820556640625, -0.021026611328125, -0.07635498046875, -0.0102691650390625, -0.006343841552734375, 0.040069580078125, 0.0111236572265625, -0.02801513671875, 0.02484130859375, 0.023406982421875, -0.045989990234375, -0.038299560546875, 0.01212310791015625, -0.002773284912109375, -0.0057373046875, 0.004962921142578125, -0.03680419921875, -0.0224456787109375, -0.0687255859375, -0.10394287109375, 0.0780029296875, -0.01235198974609375, -0.02581787109375, -0.06121826171875, -0.0035152435302734375, 0.0126953125, -0.0030422210693359375, -0.01849365234375, -0.006145477294921875, -0.05755615234375, 0.0174560546875, 0.00020134449005126953, -0.0017194747924804688, 0.035552978515625, -0.03363037109375, -0.06646728515625, -0.03759765625, -0.0285797119140625, 0.007045745849609375, -0.006649017333984375, -0.0179290771484375, 0.005645751953125, 0.004512786865234375, -0.03594970703125, -0.04327392578125, -0.006927490234375, 0.01447296142578125, -0.018707275390625, -0.07958984375, -0.006328582763671875, -0.0214691162109375, 0.07562255859375, -0.0011444091796875, 0.020477294921875, -0.0214691162109375, -0.0501708984375, -0.0162506103515625, -0.062255859375, -0.02099609375, 0.052978515625, -0.0836181640625, 0.004451751708984375, -0.0214385986328125, -0.00760650634765625, 0.03997802734375, -0.0028743743896484375, -0.0215606689453125, -0.01204681396484375, -0.005950927734375, -0.0205535888671875, -0.0748291015625, -0.00829315185546875, -0.006114959716796875, -0.01849365234375, -0.0236358642578125, -0.0213470458984375, 0.0107574462890625, -0.0230560302734375, -0.0278778076171875, -0.007965087890625, 0.00098419189453125, 0.025115966796875, 0.006717681884765625, 0.032867431640625, -0.00981903076171875, 0.041595458984375, 0.000629425048828125, -0.00310516357421875, 0.006313323974609375, -0.00850677490234375, -0.014556884765625, -0.0152435302734375, 0.053741455078125, 0.0034885406494140625, 0.09625244140625, -0.01407623291015625, 0.078125, -0.007587432861328125, 0.032958984375, -0.0117645263671875, -0.00530242919921875, 0.00826263427734375, 0.006992340087890625, 0.007843017578125, -0.0087432861328125, -0.018035888671875, -0.0231475830078125, -0.01873779296875, 0.0010519027709960938, -0.009307861328125, 0.0147552490234375 ]
da124146c3218f86b6455b4b95c77ea2562f5ca4
Wordpress Stackexchange Q: How to manually activate user in dashboard only by admin I'm looking for a function that allows admins (only) to activate new users. When a user registers he have to be approved by the admin before he gets access to log in. Does anyone know how I can do this? A: We are using this wordpress plug in - New User Approve Provides functionality to approve/deny new user registrations.
Q: How to manually activate user in dashboard only by admin I'm looking for a function that allows admins (only) to activate new users. When a user registers he have to be approved by the admin before he gets access to log in. Does anyone know how I can do this? A: We are using this wordpress plug in - New User Approve Provides functionality to approve/deny new user registrations.
wordpress
{ "language": "en", "length": 70, "provenance": "stackexchange_00019.jsonl.gz:422537", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60579" }
[ 0.09014892578125, 0.037109375, 0.006500244140625, -0.0161895751953125, 0.04949951171875, -0.052825927734375, 0.043731689453125, -0.06317138671875, -0.0012979507446289062, 0.033843994140625, -0.03973388671875, 0.02056884765625, 0.013763427734375, -0.007686614990234375, -0.0190582275390625, -0.0251922607421875, -0.01419830322265625, -0.00047206878662109375, -0.0243377685546875, -0.03533935546875, 0.010101318359375, -0.03826904296875, 0.000461578369140625, -0.01485443115234375, 0.0086212158203125, 0.004222869873046875, -0.01073455810546875, -0.00055694580078125, 0.01229095458984375, 0.0097808837890625, 0.0096893310546875, -0.0167999267578125, -0.049041748046875, 0.037353515625, 0.039215087890625, -0.047943115234375, 0.01050567626953125, 0.037445068359375, 0.06103515625, -0.0242919921875, 0.053863525390625, -0.026123046875, -0.03387451171875, 0.061248779296875, -0.03179931640625, -0.044189453125, 0.047576904296875, -0.0142059326171875, 0.039703369140625, 0.003353118896484375, -0.01279449462890625, 0.0204315185546875, -0.0002123117446899414, -0.05224609375, 0.0009598731994628906, 0.0031375885009765625, -0.0018568038940429688, -0.008819580078125, 0.03753662109375, 0.039306640625, -0.028900146484375, -0.0237274169921875, -0.00022494792938232422, -0.0709228515625, 0.009918212890625, -0.03460693359375, -0.0595703125, 0.035430908203125, -0.03826904296875, -0.0008912086486816406, 0.048187255859375, -0.0187835693359375, -0.007106781005859375, 0.01117706298828125, -0.01322174072265625, -0.007049560546875, 0.0016469955444335938, -0.0003566741943359375, 0.0193328857421875, 0.03387451171875, 0.017364501953125, -0.00913238525390625, 0.01702880859375, -0.0070648193359375, -0.00792694091796875, 0.005207061767578125, -0.0130615234375, -0.00588226318359375, -0.023406982421875, -0.04547119140625, -0.0222625732421875, -0.0307159423828125, -0.024444580078125, -0.01221466064453125, -0.032257080078125, -0.024627685546875, 0.042755126953125, 0.06982421875, 0.006122589111328125, -0.0143890380859375, -0.0034618377685546875, -0.031951904296875, -0.039154052734375, -0.0218048095703125, 0.01239776611328125, 0.0836181640625, -0.00238800048828125, -0.00508880615234375, 0.0142364501953125, -0.0115203857421875, 0.029937744140625, -0.0027408599853515625, -0.004352569580078125, -0.01450347900390625, -0.01078033447265625, 0.005428314208984375, -0.025146484375, 0.00560760498046875, -0.006351470947265625, 0.02923583984375, -0.0262451171875, 0.0038585662841796875, -0.01166534423828125, -0.00887298583984375, -0.0140380859375, -0.0250701904296875, -0.00782012939453125, 0.00785064697265625, -0.0237884521484375, -0.003627777099609375, -0.01456451416015625, 0.031951904296875, 0.008544921875, -0.005802154541015625, -0.026153564453125, 0.007640838623046875, 0.0077972412109375, 0.0333251953125, 0.0159149169921875, -0.0135955810546875, 0.041351318359375, -0.033477783203125, -0.041656494140625, 0.033294677734375, -0.01104736328125, 0.042236328125, 0.007106781005859375, -0.0183563232421875, -0.002338409423828125, -0.007610321044921875, -0.052703857421875, -0.032745361328125, -0.019622802734375, 0.0300750732421875, 0.045684814453125, 0.03582763671875, 0.032012939453125, 0.011016845703125, -0.00859832763671875, 0.0172119140625, 0.08056640625, 0.005161285400390625, -0.0136260986328125, 0.02142333984375, -0.03857421875, -0.0217742919921875, -0.055908203125, -0.016326904296875, 0.030426025390625, -0.004932403564453125, 0.0309295654296875, -0.0186309814453125, 0.043212890625, 0.013824462890625, 0.008636474609375, 0.0205078125, 0.0242767333984375, 0.026885986328125, 0.006336212158203125, 0.00826263427734375, -0.00010579824447631836, -0.019866943359375, 0.07781982421875, -0.028472900390625, -0.040802001953125, -0.0192108154296875, 0.025146484375, 0.032989501953125, 0.034454345703125, 0.0194244384765625, 0.0288848876953125, -0.00093841552734375, 0.013580322265625, -0.00267791748046875, -0.0304412841796875, -0.029632568359375, 0.0207977294921875, 0.017608642578125, -0.02484130859375, 0.0224609375, 0.07928466796875, -0.0252227783203125, 0.04010009765625, -0.06585693359375, -0.037445068359375, -0.03363037109375, -0.00586700439453125, 0.0155029296875, 0.050750732421875, 0.016845703125, -0.0179443359375, -0.004535675048828125, 0.0106353759765625, -0.040130615234375, -0.052093505859375, -0.012359619140625, -0.0229949951171875, 0.051605224609375, 0.00848388671875, 0.0305938720703125, 0.0236358642578125, -0.028900146484375, 0.03082275390625, -0.0063018798828125, 0.0029582977294921875, -0.0250244140625, 0.005260467529296875, -0.018280029296875, 0.020843505859375, -0.00887298583984375, 0.020111083984375, 0.021881103515625, -0.04217529296875, 0.0033283233642578125, -0.0293426513671875, -0.013275146484375, -0.009490966796875, -0.0229339599609375, 0.03497314453125, 0.0292816162109375, 0.0150299072265625, -0.015869140625, 0.0001156926155090332, 0.0628662109375, 0.0111083984375, -0.036285400390625, 0.006885528564453125, 0.03729248046875, -0.015594482421875, 0.02947998046875, -0.0504150390625, 0.027740478515625, 0.03564453125, 0.0221099853515625, -0.0279541015625, 0.0596923828125, 0.01012420654296875, -0.0178375244140625, -0.037353515625, 0.018829345703125, 0.002899169921875, -0.0592041015625, -0.04656982421875, -0.0212860107421875, -0.05145263671875, -0.0115814208984375, -0.005336761474609375, 0.008056640625, 0.0224609375, -0.044708251953125, 0.0234527587890625, -0.0054473876953125, -0.007350921630859375, 0.01922607421875, 0.02679443359375, -0.0305023193359375, -0.032135009765625, -0.0017919540405273438, 0.0035762786865234375, 0.00348663330078125, -0.0279388427734375, -0.0306243896484375, 0.03448486328125, -0.00942230224609375, 0.0270843505859375, -0.0435791015625, 0.04559326171875, -0.03277587890625, -0.043975830078125, -0.0406494140625, -0.00983428955078125, 0.03326416015625, -0.015380859375, 0.03338623046875, -0.007472991943359375, -0.004993438720703125, -0.041748046875, -0.0247039794921875, 0.01375579833984375, -0.044525146484375, 0.04595947265625, 0.06732177734375, 0.01214599609375, -0.0083465576171875, -0.004512786865234375, -0.0008845329284667969, 0.01544952392578125, -0.0209808349609375, -0.01380157470703125, -0.0206298828125, -0.000949859619140625, 0.04754638671875, 0.0223236083984375, 0.06903076171875, -0.02874755859375, -0.059478759765625, -0.0139312744140625, 0.01270294189453125, -0.043792724609375, -0.031463623046875, -0.09466552734375, -0.052093505859375, 0.0280303955078125, -0.0162811279296875, -0.005878448486328125, 0.0146331787109375, -0.0005831718444824219, 0.0352783203125, -0.00585174560546875, 0.01392364501953125, -0.0200347900390625, -0.00713348388671875, -0.025177001953125, 0.025909423828125, -0.0129241943359375, -0.00875091552734375, 0.005161285400390625, -0.0223236083984375, -0.0271453857421875, -0.047515869140625, -0.0281829833984375, -0.0203094482421875, 0.0144500732421875, -0.01340484619140625, -0.020172119140625, -0.0025234222412109375, 0.005779266357421875, 0.0159759521484375, -0.00457763671875, -0.00933074951171875, 0.007083892822265625, -0.032135009765625, 0.00943756103515625, -0.030792236328125, 0.00827789306640625, 0.01517486572265625, -0.0143890380859375, -0.033447265625, 0.020477294921875, -0.0484619140625, 0.037139892578125, -0.0015811920166015625, -0.027618408203125, -0.0751953125, -0.0061187744140625, -0.0216827392578125, 0.012481689453125, -0.075927734375, 0.0141754150390625, 0.0084991455078125, -0.023773193359375, 0.0093994140625, -0.0023517608642578125, -0.01232147216796875, 0.002086639404296875, 0.00847625732421875, -0.0160980224609375, -0.0526123046875, 0.010040283203125, -0.017425537109375, -0.016693115234375, -0.0236663818359375, 0.0103759765625, -0.011505126953125, -0.061981201171875, 0.01617431640625, -0.028350830078125, 0.019012451171875, -0.029876708984375, -0.01352691650390625, 0.012939453125, 0.10302734375, -0.055511474609375, 0.0120391845703125, 0.03533935546875, 0.0013275146484375, -0.0384521484375, -0.0145721435546875, -0.11517333984375, -0.0019397735595703125, -0.032928466796875, -0.0228729248046875, -0.00797271728515625, -0.035430908203125, 0.0001875162124633789, -0.03765869140625, -0.0188140869140625, -0.020782470703125, 0.0283050537109375, 0.0201416015625, 0.0205230712890625, -0.0108642578125, 0.01123809814453125, -0.0236968994140625, -0.00018143653869628906, 0.00039839744567871094, -0.038604736328125, -0.004405975341796875, -0.0205230712890625, 0.033172607421875, 0.030517578125, -0.01363372802734375, -0.0135955810546875, 0.01180267333984375, -0.01013946533203125, -0.0178070068359375, -0.024688720703125, 0.0086212158203125, -0.00118255615234375, -0.0287322998046875, -0.0411376953125, -0.028656005859375, -0.0111083984375, -0.018157958984375, -0.021514892578125, 0.0262298583984375, -0.039825439453125, 0.0279541015625, -0.0214385986328125, -0.01493072509765625, -0.0654296875, -0.046295166015625, -0.00821685791015625, 0.035064697265625, -0.002166748046875, 0.00901031494140625, -0.059417724609375, -0.06402587890625, 0.0322265625, -0.0185089111328125, -0.007476806640625, 0.0004458427429199219, 0.05230712890625, 0.02520751953125, -0.00421905517578125, 0.0264129638671875, 0.004573822021484375, 0.0433349609375, 0.0153656005859375, 0.02520751953125, 0.029937744140625, -0.0247650146484375, 0.026611328125, 0.0288848876953125, 0.00797271728515625, -0.031036376953125, 0.0302886962890625, -0.01812744140625, -0.06103515625, 0.0460205078125, -0.0182342529296875, 0.017333984375, 0.0171356201171875, 0.0135650634765625, -0.0154876708984375, 0.01337432861328125, 0.008087158203125, 0.0077362060546875, -0.031768798828125, -0.01265716552734375, -0.03912353515625, 0.0215911865234375, -0.046112060546875, -0.0285491943359375, -0.0297393798828125, 0.008331298828125, -0.0472412109375, -0.037139892578125, -0.00887298583984375, -0.0118560791015625, -0.01024627685546875, -0.0029048919677734375, 0.0109710693359375, -0.0102996826171875, -0.00585174560546875, -0.0045318603515625, -0.0206146240234375, 0.03692626953125, -0.017547607421875, -0.0673828125, 0.017913818359375, -0.019287109375, 0.05499267578125, 0.044036865234375, -0.0027618408203125, 0.05224609375, 0.026885986328125, 0.005218505859375, -0.02093505859375, 0.0223541259765625, -0.041656494140625, -0.04376220703125, -0.004863739013671875, 0.004871368408203125, -0.01070404052734375, 0.04925537109375, 0.0340576171875, 0.0218505859375, 0.0256195068359375, -0.0243682861328125, 0.0738525390625, 0.0623779296875, -0.043609619140625, -0.0010051727294921875, 0.0692138671875, -0.010223388671875, -0.052886962890625, 0.0012683868408203125, -0.0213470458984375, 0.0032749176025390625, 0.04461669921875, 0.0282745361328125, 0.0704345703125, 0.0272674560546875, -0.046722412109375, -0.007598876953125, -0.01983642578125, 0.07501220703125, 0.01305389404296875, -0.07391357421875, -0.035675048828125, 0.00750732421875, 0.0307159423828125, -0.039703369140625, -0.0094146728515625, 0.0217437744140625, -0.018524169921875, 0.0469970703125, 0.04046630859375, -0.004955291748046875, 0.0007243156433105469, -0.004634857177734375, -0.01548004150390625, -0.0032100677490234375, 0.0036334991455078125, 0.0203094482421875, -0.0210418701171875, -0.008209228515625, -0.020538330078125, 0.059539794921875, 0.0018215179443359375, 0.003726959228515625, -0.03326416015625, 0.006549835205078125, -0.052886962890625, -0.015655517578125, 0.058197021484375, 0.00955963134765625, -0.018157958984375, -0.0128631591796875, -0.017974853515625, -0.026397705078125, -0.050323486328125, -0.04156494140625, -0.0199432373046875, 0.01282501220703125, 0.02880859375, 0.004848480224609375, 0.0008172988891601562, -0.033782958984375, -0.009033203125, 0.035736083984375, 0.0369873046875, 0.040130615234375, -0.005523681640625, 0.03875732421875, 0.0238189697265625, 0.0452880859375, 0.0304107666015625, 0.0159149169921875, -0.042266845703125, -0.0211181640625, -0.0399169921875, 0.036712646484375, 0.0172882080078125, 0.034942626953125, -0.01503753662109375, -0.0299072265625, 0.0694580078125, -0.0011262893676757812, 0.01287841796875, -0.002475738525390625, 0.0011129379272460938, -0.00240325927734375, 0.0092315673828125, 0.0016727447509765625, 0.0018091201782226562, 0.0151214599609375, -0.03216552734375, 0.0005421638488769531, -0.001377105712890625, 0.005214691162109375, 0.029815673828125, -0.016448974609375, 0.02001953125, 0.01806640625, -0.03533935546875, 0.0285797119140625, 0.02655029296875, -0.01541900634765625, 0.0181884765625, 0.020050048828125, 0.0110015869140625, 0.008544921875, -0.012054443359375, -0.034637451171875, -0.00550079345703125, -0.0008788108825683594, -0.0150909423828125, -0.0182342529296875, -0.01361846923828125, -0.01079559326171875, -0.00283050537109375, 0.0953369140625, 0.03564453125, -0.12432861328125, -0.00479888916015625, -0.0304412841796875, 0.01090240478515625, 0.0170440673828125, -0.008026123046875, -0.023834228515625, -0.026031494140625, 0.0694580078125, -0.05096435546875, -0.007228851318359375, 0.02850341796875, -0.016693115234375, -0.0299224853515625, 0.0086669921875, 0.005817413330078125, 0.014129638671875, 0.04364013671875, -0.01116943359375, -0.038421630859375, 0.025360107421875, -0.0247344970703125, 0.01461029052734375, 0.01303863525390625, -0.0089111328125, -0.062103271484375, 0.011138916015625, -0.0131683349609375, -0.01593017578125, -0.01134490966796875, 0.0249481201171875, 0.0765380859375, 0.0143585205078125, 0.0200958251953125, -0.0447998046875, -0.002227783203125, 0.01025390625, -0.03033447265625, -0.0300750732421875, -0.00778961181640625, 0.004352569580078125, 0.0094757080078125, 0.0194091796875, 0.00917816162109375, -0.051544189453125, -0.0033359527587890625, -0.06988525390625, 0.033294677734375, -0.01544189453125, -0.00537109375, 0.0232391357421875, -0.062469482421875, -0.0248565673828125, -0.00997161865234375, -0.0340576171875, -0.0418701171875, -0.0124664306640625, -0.0311126708984375, -0.0477294921875, 0.0198211669921875, -0.0118560791015625, -0.049346923828125, 0.059539794921875, 0.0207061767578125, 0.0028133392333984375, -0.003322601318359375, 0.029449462890625, -0.02386474609375, 0.0101318359375, -0.042633056640625, 0.090087890625, -0.0005383491516113281, 0.041229248046875, -0.06573486328125, 0.01007843017578125, 0.009246826171875, -0.011474609375, 0.018157958984375, 0.00481414794921875, -0.0214996337890625, -0.0202484130859375, -0.0258331298828125, -0.01922607421875, -0.02630615234375, 0.0560302734375, -0.0013036727905273438, 0.043365478515625, 0.054595947265625, -0.027496337890625, 0.0302581787109375, 0.0048675537109375, -0.0303802490234375, 0.020721435546875, -0.026519775390625, -0.046356201171875, 0.013519287109375, 0.0164031982421875, -0.048828125, 0.0187835693359375, 0.0207366943359375, -0.00005358457565307617, -0.0002663135528564453, 0.0271148681640625, 0.01226043701171875, -0.0011692047119140625, 0.028900146484375, -0.0272216796875, 0.0433349609375, -0.0015134811401367188, -0.01152801513671875, 0.01331329345703125, 0.0292510986328125, -0.041778564453125, -0.0110321044921875, -0.00507354736328125, 0.032867431640625, -0.034149169921875, -0.005123138427734375, 0.00829315185546875, 0.039337158203125, -0.040740966796875, -0.0606689453125, 0.023529052734375, 0.02398681640625, 0.007175445556640625, -0.02850341796875, 0.011260986328125, 0.03802490234375, 0.036651611328125, 0.06463623046875, 0.121826171875, 0.032806396484375, 0.035980224609375, -0.0164642333984375, 0.006137847900390625, 0.01473236083984375, 0.0149993896484375, -0.00861358642578125, 0.01690673828125, -0.0261993408203125, 0.017852783203125, 0.00736236572265625, 0.01229095458984375, 0.014801025390625, -0.026824951171875, -0.0281829833984375, 0.0168609619140625, 0.015655517578125, 0.0202178955078125, -0.031982421875, 0.0117034912109375, 0.0218658447265625, 0.033721923828125, -0.06341552734375, -0.0198516845703125, 0.028656005859375, 0.04730224609375, -0.036163330078125, -0.040557861328125, 0.04144287109375, 0.08221435546875, -0.03240966796875, -0.05291748046875, -0.0016679763793945312, -0.0036220550537109375, 0.006763458251953125, -0.0288543701171875, 0.0283660888671875, 0.0184326171875, 0.006725311279296875, -0.00379180908203125, 0.035247802734375, 0.0198516845703125, -0.03936767578125, 0.0308990478515625, -0.0100860595703125, -0.049835205078125, 0.00959014892578125, -0.002597808837890625, 0.05419921875, -0.00885772705078125, -0.07220458984375, -0.005771636962890625, -0.0330810546875, -0.06396484375, 0.028533935546875, 0.035400390625, -0.05133056640625, 0.03924560546875, 0.00243377685546875, 0.00847625732421875, -0.029296875, -0.013519287109375, 0.023681640625, -0.0125274658203125, 0.0018377304077148438, 0.0184478759765625, -0.0154571533203125, 0.02093505859375, -0.007656097412109375, -0.0009260177612304688, 0.018524169921875, 0.04925537109375, -0.00597381591796875, 0.0283050537109375, -0.00946807861328125, 0.00714111328125, -0.020538330078125, 0.0009679794311523438, 0.0133819580078125, -0.0084228515625, -0.0228424072265625, -0.007511138916015625, -0.07763671875, 0.060089111328125, -0.01100921630859375, 0.033416748046875, 0.06536865234375, -0.0057220458984375, -0.01361846923828125, 0.0068206787109375, 0.01285552978515625, -0.0299835205078125, -0.06707763671875, -0.0543212890625, 0.006206512451171875, -0.01267242431640625, 0.0243377685546875, 0.00868988037109375, 0.0234527587890625, -0.07135009765625, -0.041351318359375, -0.043670654296875, -0.0201568603515625, -0.1165771484375, -0.005157470703125, 0.0274810791015625, 0.035552978515625, 0.01187896728515625, -0.0236053466796875, 0.0372314453125, 0.015380859375, -0.0199737548828125, 0.0305633544921875, -0.017303466796875, -0.00614166259765625, 0.0107574462890625, 0.004730224609375, -0.035919189453125, -0.00579071044921875, 0.02734375, -0.026641845703125, -0.002849578857421875, -0.00704193115234375, -0.0208587646484375, -0.0197601318359375, -0.01174163818359375, 0.005771636962890625, -0.0069580078125, -0.041656494140625, -0.049957275390625, 0.04046630859375, 0.0283355712890625, 0.0013093948364257812, -0.08258056640625, 0.0469970703125, -0.032745361328125, 0.09307861328125, -0.036865234375, -0.0303802490234375, 0.03070068359375, 0.0156707763671875, -0.0313720703125, 0.0248565673828125, -0.01226806640625, -0.026947021484375, 0.01139068603515625, 0.0082244873046875, 0.0247802734375, -0.01241302490234375, 0.00154876708984375, -0.0015163421630859375, -0.0300750732421875, 0.0557861328125, -0.024658203125, -0.00701141357421875, 0.01654052734375, -0.01409912109375, 0.01338958740234375, -0.040863037109375, -0.0210723876953125, -0.030548095703125, -0.00897979736328125, -0.0015516281127929688, 0.0260009765625, 0.048126220703125, -0.01251220703125, -0.08477783203125, 0.06341552734375, -0.0212249755859375, -0.0313720703125, -0.039154052734375, 0.0352783203125, -0.004512786865234375, -0.028533935546875, -0.0292510986328125, -0.0020999908447265625, 0.0209503173828125, 0.02825927734375, 0.0222930908203125, -0.018402099609375, 0.039764404296875, 0.01201629638671875, -0.0311279296875, 0.025054931640625, 0.0124053955078125, 0.0001939535140991211, 0.002040863037109375, 0.0074920654296875, 0.0301055908203125, 0.054046630859375, -0.01065826416015625, 0.01898193359375, -0.006656646728515625, -0.035675048828125, -0.0156707763671875, -0.0584716796875, -0.002941131591796875, -0.0164337158203125, 0.06884765625, 0.0164337158203125, 0.01143646240234375, -0.03857421875, -0.03985595703125, -0.031951904296875, 0.0254669189453125, -0.0260162353515625, 0.006473541259765625, -0.0792236328125, -0.0185089111328125, 0.01434326171875, -0.00788116455078125, -0.031646728515625, -0.0009298324584960938, -0.03900146484375, -0.02044677734375, -0.0206451416015625, 0.0028228759765625, -0.0084991455078125, -0.01030731201171875, 0.017669677734375, -0.02703857421875, -0.032989501953125, -0.007305145263671875, 0.00710296630859375, -0.038787841796875, -0.024627685546875, -0.00799560546875, 0.01163482666015625, -0.0438232421875, 0.02667236328125, -0.007381439208984375, 0.020751953125, -0.052581787109375, 0.006023406982421875, 0.00395965576171875, 0.049560546875, 0.013702392578125, 0.06439208984375, -0.04290771484375, 0.055572509765625, 0.01477813720703125, 0.026458740234375, 0.0229644775390625, -0.025299072265625, -0.034332275390625, 0.057281494140625, 0.0210723876953125, -0.046661376953125, 0.0269775390625, -0.016204833984375, -0.005329132080078125, -0.01035308837890625, 0.01059722900390625, -0.0594482421875, 0.01824951171875, -0.01389312744140625, 0.023040771484375, 0.0191192626953125 ]
ccbd34e6a93d0040f9a50c54052b8da130f5962f
Wordpress Stackexchange Q: Limit access to posts/pages by user roles I'm looking for a way to protect content by user roles. Example: you have to be registered to view posts (frontend). If a user is a subscriber he can read post 1, 2 and 3, but if the user is a contributor he can view post 1,2,3 and 4,5,6... does anyone know how I can do this? A: you can use such conditions to show private posts only to logged in users with role contributor. Now you only need to make post private to make that post available for contributor. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $private = get_post_custom_values("private"); if (isset($private[0]) && $private == "true") { if ( current_user_can( 'contributor' ) ) { //passing role to it may sometime not work the_title(); the_content(); } else { // text to show instead the post echo 'this post is private, only contributor can view it'; } } else { // this is visible to all the_title(); the_content(); } endwhile; endif; ?>
Q: Limit access to posts/pages by user roles I'm looking for a way to protect content by user roles. Example: you have to be registered to view posts (frontend). If a user is a subscriber he can read post 1, 2 and 3, but if the user is a contributor he can view post 1,2,3 and 4,5,6... does anyone know how I can do this? A: you can use such conditions to show private posts only to logged in users with role contributor. Now you only need to make post private to make that post available for contributor. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $private = get_post_custom_values("private"); if (isset($private[0]) && $private == "true") { if ( current_user_can( 'contributor' ) ) { //passing role to it may sometime not work the_title(); the_content(); } else { // text to show instead the post echo 'this post is private, only contributor can view it'; } } else { // this is visible to all the_title(); the_content(); } endwhile; endif; ?> A: Although I haven't used this personally you are probably looking at a plugin like this Seems to provide all the functionality you have requested above. A: To achieve something like that you can make some posts private and show them just to the logged in users, first you need to add a custom field, you can name it "private" and value it "True". Then add replace the default WP loop with this code snippet: <?php if (have_posts()) : while (have_posts()) : the_post(); $private = get_post_custom_values("private"); if (isset($private[0]) && $private == "true") { if (is_user_logged_in()) { // Display private post to logged user } } else { // Display public post to everyone } endwhile; endif; ?>
wordpress
{ "language": "en", "length": 290, "provenance": "stackexchange_00019.jsonl.gz:422539", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60582" }
[ 0.058868408203125, -0.016632080078125, 0.027587890625, -0.026580810546875, -0.0008935928344726562, -0.021514892578125, 0.0152435302734375, -0.043426513671875, -0.0137176513671875, 0.009979248046875, 0.003475189208984375, -0.005706787109375, -0.05010986328125, -0.035186767578125, -0.0052337646484375, -0.043975830078125, 0.00984954833984375, 0.0212249755859375, 0.046630859375, -0.0198822021484375, 0.0221099853515625, -0.0037841796875, 0.047515869140625, 0.0078277587890625, 0.02789306640625, -0.0020961761474609375, 0.056884765625, -0.0236358642578125, 0.0249786376953125, -0.01128387451171875, 0.037261962890625, -0.0438232421875, -0.002288818359375, 0.0245361328125, 0.00174713134765625, 0.017822265625, -0.02459716796875, 0.0186920166015625, 0.03094482421875, -0.005764007568359375, -0.004047393798828125, 0.0217742919921875, -0.03155517578125, 0.053070068359375, -0.035308837890625, -0.07135009765625, 0.0178375244140625, -0.01500701904296875, 0.0142364501953125, 0.0184173583984375, 0.026824951171875, 0.00714111328125, 0.0289306640625, 0.0257568359375, -0.0037899017333984375, 0.0305633544921875, -0.0183563232421875, 0.0144805908203125, 0.0640869140625, -0.02001953125, -0.051361083984375, -0.055511474609375, 0.02587890625, -0.034942626953125, -0.005863189697265625, -0.01187896728515625, 0.032562255859375, 0.02899169921875, -0.04486083984375, -0.03173828125, 0.020050048828125, -0.00006896257400512695, 0.01313018798828125, -0.04571533203125, -0.0253143310546875, 0.0157623291015625, -0.0027179718017578125, -0.0289154052734375, 0.01027679443359375, -0.020965576171875, -0.04132080078125, 0.0159912109375, -0.032318115234375, 0.00360870361328125, -0.020233154296875, 0.019073486328125, -0.034423828125, -0.00003904104232788086, 0.0169677734375, 0.006374359130859375, 0.0002689361572265625, 0.0131988525390625, 0.0277099609375, 0.0292205810546875, -0.0211029052734375, -0.0175018310546875, 0.06597900390625, 0.055999755859375, -0.02484130859375, -0.04461669921875, 0.0208282470703125, -0.03875732421875, -0.0306396484375, -0.0196533203125, 0.00778961181640625, 0.059600830078125, -0.006317138671875, 0.00756072998046875, 0.0173797607421875, 0.0191802978515625, 0.019134521484375, -0.0257720947265625, -0.0183563232421875, -0.027374267578125, -0.0246734619140625, 0.040191650390625, -0.02655029296875, -0.00637054443359375, 0.005870819091796875, 0.0265655517578125, -0.0222320556640625, -0.004489898681640625, 0.01171112060546875, -0.0775146484375, 0.037445068359375, -0.009857177734375, -0.05743408203125, 0.01055908203125, 0.0165557861328125, 0.055389404296875, -0.02630615234375, -0.01155853271484375, 0.052764892578125, 0.0067901611328125, 0.00429534912109375, -0.03875732421875, 0.00859832763671875, -0.0019588470458984375, -0.0122528076171875, 0.017181396484375, -0.027313232421875, -0.007053375244140625, 0.0364990234375, -0.032318115234375, -0.00962066650390625, 0.028533935546875, 0.0173797607421875, 0.00853729248046875, -0.01143646240234375, -0.04791259765625, -0.0068359375, -0.006237030029296875, 0.017364501953125, -0.006443023681640625, 0.006526947021484375, -0.00896453857421875, 0.01152801513671875, -0.0092010498046875, -0.02044677734375, -0.00885009765625, 0.0611572265625, 0.012603759765625, -0.00690460205078125, -0.004306793212890625, -0.0297698974609375, -0.034820556640625, -0.022369384765625, -0.0024547576904296875, 0.023590087890625, -0.0111846923828125, 0.0239410400390625, -0.055328369140625, -0.005229949951171875, -0.0009064674377441406, -0.0015544891357421875, 0.046905517578125, -0.0086517333984375, 0.040435791015625, 0.01071929931640625, -0.00444793701171875, -0.0031414031982421875, -0.039337158203125, 0.044219970703125, -0.00013315677642822266, -0.0187835693359375, -0.0033664703369140625, 0.0005130767822265625, -0.0196990966796875, 0.0196990966796875, 0.004756927490234375, 0.01482391357421875, 0.036651611328125, -0.017669677734375, -0.00772857666015625, -0.01104736328125, -0.05126953125, 0.0292205810546875, -0.022979736328125, -0.01285552978515625, 0.049468994140625, 0.05535888671875, -0.01247406005859375, 0.00319671630859375, -0.03717041015625, -0.03778076171875, -0.0289306640625, -0.00044083595275878906, 0.0091552734375, -0.0323486328125, 0.0029010772705078125, 0.021484375, -0.0015554428100585938, 0.0031070709228515625, -0.06402587890625, -0.00640869140625, 0.00266265869140625, -0.0197296142578125, 0.050811767578125, -0.0003952980041503906, 0.028961181640625, 0.0235137939453125, -0.05023193359375, 0.01241302490234375, -0.004547119140625, 0.06561279296875, -0.0015935897827148438, 0.00763702392578125, -0.004848480224609375, 0.0733642578125, 0.035247802734375, -0.007232666015625, -0.044403076171875, 0.060302734375, 0.0276641845703125, -0.008636474609375, 0.0097503662109375, 0.00798797607421875, -0.0865478515625, -0.01374053955078125, 0.061767578125, 0.03546142578125, 0.0263519287109375, -0.0210418701171875, -0.0199737548828125, 0.035797119140625, -0.056121826171875, 0.01027679443359375, -0.0189056396484375, -0.0306396484375, 0.0367431640625, -0.01165008544921875, 0.0416259765625, 0.0211029052734375, -0.0076446533203125, -0.00913238525390625, 0.0587158203125, -0.012969970703125, 0.0207672119140625, -0.010650634765625, -0.005611419677734375, 0.0030879974365234375, -0.0185699462890625, 0.01494598388671875, -0.0232391357421875, -0.034515380859375, -0.0030269622802734375, 0.005687713623046875, 0.00144195556640625, -0.0036830902099609375, -0.0265655517578125, 0.0175933837890625, -0.00511932373046875, 0.0006103515625, -0.011627197265625, 0.036041259765625, -0.005413055419921875, -0.039306640625, -0.004772186279296875, 0.0277862548828125, 0.0003809928894042969, 0.00383758544921875, 0.029144287109375, -0.0195465087890625, -0.0029392242431640625, 0.0104217529296875, -0.026702880859375, -0.0021648406982421875, 0.0217742919921875, 0.023345947265625, -0.023468017578125, -0.0032787322998046875, 0.037445068359375, 0.009735107421875, 0.0435791015625, 0.0321044921875, -0.01470947265625, 0.00675201416015625, -0.09356689453125, 0.06903076171875, -0.0772705078125, 0.04193115234375, 0.075439453125, -0.01076507568359375, 0.0238494873046875, 0.0174713134765625, -0.0103759765625, 0.00746917724609375, 0.05035400390625, 0.0158843994140625, -0.032440185546875, -0.02410888671875, 0.0025501251220703125, 0.01195526123046875, -0.0247650146484375, 0.022857666015625, -0.007266998291015625, -0.005695343017578125, 0.006130218505859375, -0.0102081298828125, 0.036712646484375, 0.01529693603515625, -0.09130859375, -0.0128021240234375, -0.016510009765625, -0.04449462890625, 0.00217437744140625, 0.0223236083984375, 0.00612640380859375, -0.05145263671875, -0.0052490234375, -0.03936767578125, -0.01593017578125, -0.02142333984375, 0.0997314453125, -0.01812744140625, 0.0139923095703125, -0.01114654541015625, 0.054351806640625, -0.00919342041015625, -0.07855224609375, -0.0516357421875, 0.026458740234375, -0.01509857177734375, -0.014984130859375, -0.0237579345703125, -0.0002982616424560547, -0.0032711029052734375, 0.01169586181640625, -0.01107025146484375, -0.0297393798828125, 0.02008056640625, -0.0304718017578125, 0.021514892578125, -0.0193939208984375, 0.045013427734375, 0.0312042236328125, -0.045440673828125, 0.047882080078125, 0.08343505859375, -0.0112457275390625, -0.00841522216796875, -0.0270233154296875, -0.0504150390625, -0.0087432861328125, 0.0302581787109375, -0.0027103424072265625, -0.0292205810546875, -0.000885009765625, 0.048370361328125, 0.040313720703125, -0.047760009765625, 0.044403076171875, -0.03271484375, 0.0289306640625, 0.043121337890625, 0.033905029296875, 0.004230499267578125, -0.0185546875, 0.01861572265625, -0.0034942626953125, 0.0034389495849609375, -0.035186767578125, 0.043670654296875, -0.04278564453125, -0.046295166015625, 0.0321044921875, -0.0224609375, 0.041717529296875, -0.0623779296875, -0.0232391357421875, -0.047760009765625, 0.084716796875, -0.02081298828125, 0.00412750244140625, -0.0084075927734375, -0.004039764404296875, -0.0170135498046875, -0.0162506103515625, -0.05120849609375, -0.0037593841552734375, 0.01442718505859375, -0.00861358642578125, -0.0234527587890625, 0.005397796630859375, -0.038482666015625, -0.034576416015625, -0.01282501220703125, -0.013153076171875, 0.0270843505859375, -0.032501220703125, 0.0170745849609375, 0.0171661376953125, 0.0039520263671875, -0.0205078125, -0.0183563232421875, -0.028778076171875, -0.07000732421875, -0.02374267578125, 0.0063934326171875, 0.061553955078125, 0.01444244384765625, -0.00024080276489257812, -0.0066070556640625, 0.04998779296875, 0.01593017578125, 0.01371002197265625, -0.0185089111328125, -0.029754638671875, 0.01142120361328125, 0.005035400390625, -0.007122039794921875, 0.000675201416015625, 0.0150604248046875, -0.025970458984375, -0.01471710205078125, -0.01995849609375, -0.062286376953125, -0.01509857177734375, -0.032318115234375, -0.01297760009765625, -0.078857421875, -0.0271148681640625, 0.0155487060546875, 0.0157012939453125, -0.00978851318359375, 0.00774383544921875, -0.03265380859375, -0.0728759765625, 0.01165008544921875, -0.015777587890625, -0.020904541015625, 0.0046539306640625, 0.040557861328125, 0.029388427734375, -0.01043701171875, 0.0128631591796875, -0.005756378173828125, 0.0323486328125, -0.031768798828125, 0.08685302734375, 0.0628662109375, -0.01995849609375, 0.07861328125, 0.0077362060546875, 0.00978851318359375, -0.00754547119140625, 0.031890869140625, -0.0081787109375, -0.028594970703125, 0.0263214111328125, -0.01251983642578125, 0.01320648193359375, -0.03399658203125, -0.017578125, -0.0157012939453125, -0.004726409912109375, 0.0469970703125, -0.0146484375, 0.057373046875, -0.016998291015625, -0.00638580322265625, -0.01218414306640625, -0.037841796875, 0.035186767578125, 0.034698486328125, 0.00286102294921875, 0.0094757080078125, 0.033233642578125, -0.0175933837890625, -0.0311431884765625, -0.01444244384765625, 0.0071258544921875, 0.023590087890625, -0.030059814453125, -0.007080078125, -0.0170135498046875, -0.0098724365234375, 0.05694580078125, 0.01061248779296875, -0.055908203125, 0.006885528564453125, -0.01406097412109375, 0.05279541015625, 0.02020263671875, -0.006313323974609375, 0.0263671875, -0.006832122802734375, -0.0005812644958496094, 0.0159454345703125, -0.017486572265625, 0.01145172119140625, -0.029266357421875, 0.040252685546875, 0.004329681396484375, -0.0022335052490234375, 0.015625, 0.038421630859375, 0.0269317626953125, 0.024749755859375, -0.0303192138671875, 0.058746337890625, 0.06634521484375, -0.0281829833984375, -0.012054443359375, 0.0611572265625, -0.0322265625, -0.007625579833984375, 0.0252685546875, -0.011566162109375, -0.01800537109375, 0.01666259765625, 0.0002453327178955078, 0.0014190673828125, 0.0120391845703125, 0.00830841064453125, 0.01366424560546875, -0.00858306884765625, 0.0206298828125, -0.024627685546875, -0.04254150390625, -0.02764892578125, 0.0073699951171875, 0.0272064208984375, -0.0208587646484375, -0.014129638671875, -0.0186614990234375, -0.04107666015625, -0.01216888427734375, 0.01284027099609375, -0.043609619140625, 0.01444244384765625, 0.0158843994140625, -0.035858154296875, -0.0240478515625, 0.007564544677734375, 0.00818634033203125, -0.0016717910766601562, 0.0045013427734375, -0.028289794921875, 0.01287841796875, 0.0042724609375, 0.029266357421875, -0.038360595703125, -0.008026123046875, -0.0301055908203125, -0.0057220458984375, 0.048004150390625, 0.0168304443359375, -0.042694091796875, 0.016204833984375, -0.054779052734375, 0.005931854248046875, -0.020782470703125, -0.05126953125, -0.0197296142578125, -0.021331787109375, 0.035980224609375, 0.01418304443359375, -0.00679779052734375, -0.08062744140625, -0.022857666015625, 0.0032558441162109375, 0.053985595703125, 0.0243988037109375, -0.007762908935546875, 0.0592041015625, -0.00841522216796875, 0.06109619140625, 0.0107421875, 0.01428985595703125, -0.021240234375, -0.0162811279296875, -0.0167236328125, -0.043914794921875, 0.01337432861328125, 0.0220489501953125, -0.0026702880859375, 0.0162200927734375, 0.0169677734375, 0.0104522705078125, 0.0005040168762207031, -0.021728515625, 0.00605010986328125, -0.01329803466796875, 0.0121307373046875, -0.0284271240234375, -0.01363372802734375, 0.005584716796875, 0.0182037353515625, 0.062744140625, -0.0196685791015625, -0.04144287109375, 0.0200347900390625, 0.0001766681671142578, 0.032470703125, 0.003391265869140625, -0.0128326416015625, 0.0079498291015625, 0.0714111328125, 0.02178955078125, 0.075439453125, 0.0333251953125, 0.04473876953125, 0.06781005859375, -0.025726318359375, -0.017181396484375, 0.01363372802734375, 0.01049041748046875, -0.00998687744140625, 0.004123687744140625, 0.00439453125, -0.01543426513671875, 0.014190673828125, 0.06903076171875, 0.0693359375, -0.08013916015625, 0.01474761962890625, 0.01294708251953125, -0.0260009765625, 0.020721435546875, -0.0026683807373046875, 0.01104736328125, 0.003444671630859375, 0.051513671875, -0.020538330078125, -0.0162200927734375, 0.0207672119140625, -0.029052734375, -0.0014486312866210938, 0.0188446044921875, 0.0247955322265625, -0.001361846923828125, 0.025360107421875, -0.0278778076171875, -0.003875732421875, 0.01922607421875, -0.022064208984375, -0.0173797607421875, 0.0008521080017089844, -0.043670654296875, -0.08184814453125, -0.028167724609375, -0.01177978515625, -0.0077667236328125, 0.01800537109375, -0.0012636184692382812, -0.007762908935546875, 0.054962158203125, -0.0306243896484375, 0.019989013671875, 0.04241943359375, -0.045013427734375, -0.0089874267578125, -0.04339599609375, -0.0020999908447265625, 0.01043701171875, -0.024322509765625, 0.02069091796875, -0.0019893646240234375, -0.04693603515625, -0.01239776611328125, -0.0252838134765625, 0.07232666015625, -0.042694091796875, -0.004802703857421875, 0.0252227783203125, 0.008209228515625, -0.0115203857421875, 0.00496673583984375, 0.0007190704345703125, -0.0193634033203125, 0.00002771615982055664, 0.001983642578125, -0.00299835205078125, -0.0007581710815429688, 0.01142120361328125, -0.0689697265625, 0.06414794921875, -0.0289764404296875, 0.05865478515625, 0.015472412109375, -0.0020236968994140625, -0.0014600753784179688, -0.0163421630859375, -0.03460693359375, 0.05364990234375, -0.0031070709228515625, 0.05670166015625, -0.045379638671875, -0.006870269775390625, 0.0157623291015625, 0.0369873046875, 0.046478271484375, 0.031951904296875, -0.0462646484375, -0.032867431640625, -0.026275634765625, 0.005496978759765625, -0.024444580078125, 0.054656982421875, -0.0069122314453125, 0.0171661376953125, 0.011383056640625, -0.047119140625, 0.027557373046875, -0.03741455078125, -0.0258331298828125, 0.01296234130859375, 0.007053375244140625, -0.0101776123046875, -0.0032634735107421875, 0.033050537109375, -0.087158203125, 0.00841522216796875, 0.072509765625, -0.0251312255859375, 0.0085296630859375, 0.0241851806640625, 0.06549072265625, -0.042572021484375, -0.002674102783203125, -0.02294921875, 0.06298828125, 0.0308074951171875, 0.018096923828125, 0.0173492431640625, 0.02423095703125, -0.0011625289916992188, 0.0232391357421875, 0.0159149169921875, 0.028839111328125, -0.0249481201171875, 0.004650115966796875, 0.05596923828125, 0.0252685546875, -0.0218658447265625, -0.0182952880859375, 0.0689697265625, 0.0291290283203125, -0.0166168212890625, -0.0221710205078125, 0.00885009765625, 0.0115203857421875, -0.0162506103515625, 0.0026264190673828125, -0.034637451171875, 0.00884246826171875, 0.066650390625, -0.046539306640625, 0.00411224365234375, 0.0143890380859375, 0.0018253326416015625, -0.020538330078125, -0.019439697265625, 0.00321197509765625, 0.0169219970703125, 0.00031185150146484375, -0.06658935546875, 0.0156707763671875, -0.0217742919921875, 0.0372314453125, -0.021240234375, 0.0906982421875, 0.02142333984375, 0.02581787109375, 0.0003998279571533203, -0.01812744140625, -0.0268707275390625, -0.03521728515625, -0.073486328125, 0.01727294921875, 0.0428466796875, -0.02398681640625, -0.0299530029296875, -0.02008056640625, 0.0257110595703125, -0.0135955810546875, -0.0251312255859375, 0.00589752197265625, -0.01727294921875, 0.0256805419921875, -0.006038665771484375, -0.0171051025390625, 0.003231048583984375, -0.03717041015625, -0.0338134765625, -0.0006933212280273438, 0.03900146484375, -0.017913818359375, 0.02935791015625, -0.005779266357421875, -0.005435943603515625, 0.01727294921875, -0.0369873046875, 0.006252288818359375, -0.0221405029296875, -0.05596923828125, 0.037628173828125, -0.06427001953125, -0.10455322265625, 0.0160064697265625, 0.03369140625, -0.040740966796875, 0.02685546875, 0.02362060546875, 0.0007834434509277344, 0.01027679443359375, -0.0135040283203125, 0.0205841064453125, -0.0016307830810546875, 0.0107269287109375, 0.01299285888671875, -0.02880859375, -0.025146484375, -0.023834228515625, 0.04876708984375, 0.007663726806640625, 0.056793212890625, -0.0173187255859375, 0.043731689453125, -0.0537109375, 0.0347900390625, -0.06201171875, -0.07159423828125, 0.08489990234375, 0.0184173583984375, 0.0017232894897460938, 0.01145172119140625, -0.0183258056640625, 0.026641845703125, 0.0108642578125, -0.0224609375, -0.005191802978515625, -0.0178985595703125, 0.0135650634765625, 0.011810302734375, 0.006954193115234375, -0.01953125, 0.00997161865234375, -0.03143310546875, -0.03607177734375, 0.0452880859375, 0.010406494140625, 0.01123809814453125, 0.042205810546875, -0.06787109375, -0.0316162109375, -0.01277923583984375, -0.0411376953125, -0.0653076171875, 0.00461578369140625, -0.037109375, -0.0087890625, 0.02545166015625, 0.0001418590545654297, -0.009979248046875, 0.03369140625, -0.0211334228515625, 0.03558349609375, -0.0227813720703125, 0.006427764892578125, 0.0224609375, 0.06280517578125, 0.0028533935546875, 0.023468017578125, -0.002696990966796875, -0.004302978515625, -0.02215576171875, 0.0203399658203125, -0.033355712890625, -0.00406646728515625, 0.0022869110107421875, 0.007373809814453125, 0.009735107421875, -0.07879638671875, -0.06982421875, 0.0175933837890625, 0.0243682861328125, 0.00827789306640625, -0.08270263671875, 0.023956298828125, 0.0010776519775390625, 0.0850830078125, -0.03765869140625, 0.014892578125, 0.0083465576171875, 0.01094818115234375, -0.038055419921875, 0.0673828125, -0.0292816162109375, -0.05804443359375, 0.0222930908203125, 0.04071044921875, 0.062164306640625, -0.0174560546875, -0.027313232421875, 0.051910400390625, -0.004367828369140625, 0.0875244140625, -0.045379638671875, -0.0008306503295898438, -0.0028781890869140625, 0.00817108154296875, -0.0297088623046875, -0.06378173828125, 0.019775390625, -0.049102783203125, -0.038787841796875, -0.0093536376953125, -0.0014123916625976562, 0.0270233154296875, -0.0183258056640625, -0.005615234375, 0.111572265625, -0.0110321044921875, -0.0029430389404296875, -0.04779052734375, 0.0127716064453125, -0.0167388916015625, 0.023590087890625, -0.0008435249328613281, -0.03790283203125, -0.0101165771484375, 0.030487060546875, 0.0125579833984375, -0.04296875, 0.046600341796875, 0.0196990966796875, -0.049407958984375, 0.01959228515625, 0.03131103515625, -0.0220184326171875, -0.027679443359375, 0.0288543701171875, -0.0032863616943359375, 0.036895751953125, 0.00511932373046875, 0.0036296844482421875, 0.006893157958984375, -0.013275146484375, -0.007289886474609375, -0.0195770263671875, 0.006893157958984375, -0.027923583984375, -0.0122222900390625, 0.038970947265625, -0.006359100341796875, -0.00226593017578125, 0.0120391845703125, -0.0289459228515625, -0.06329345703125, 0.0032558441162109375, 0.0277557373046875, -0.03973388671875, 0.01230621337890625, 0.0154571533203125, -0.03192138671875, -0.00269317626953125, -0.01428985595703125, -0.05938720703125, 0.0009217262268066406, -0.020599365234375, 0.0095977783203125, -0.033721923828125, 0.029083251953125, 0.0017986297607421875, -0.0316162109375, -0.038543701171875, 0.013397216796875, -0.0231475830078125, -0.039581298828125, 0.0112457275390625, 0.0161285400390625, -0.0291290283203125, -0.04156494140625, 0.019805908203125, -0.00743865966796875, 0.054901123046875, -0.049560546875, -0.039215087890625, -0.01543426513671875, 0.02423095703125, 0.007022857666015625, 0.019317626953125, -0.00621795654296875, 0.020782470703125, -0.0003466606140136719, 0.021209716796875, -0.033172607421875, 0.022918701171875, -0.01080322265625, 0.0126800537109375, -0.00574493408203125, 0.017242431640625, 0.04931640625, -0.01345062255859375, 0.00482177734375, -0.008270263671875, -0.0082855224609375, -0.0232696533203125, 0.004917144775390625, -0.006870269775390625, -0.0107879638671875, 0.00521087646484375 ]
89948873d78ea207975ad38daf8b40426826d3c3
Wordpress Stackexchange Q: How can I limit the number of comments per registered user per day? I found this code on WPSE: global $current_user, $post; $args = array( 'user_id' => $current_user->ID, 'post_id' => $post->ID ); $usercomment = get_comments( $args ); if ( 1 <= count( $usercomment ) ) { echo 'disabled'; } else { comment_form(); } Note: It seems to limit the number of comments per post per user. I want to limit the number of comments per registered user per day. I would like to be able to change the amount of comments allowed per day in the code, please. If someone could help me with the correct code it would be very much appreciated. Also where would I put this code in the comments.php file? Thank you. A: You could pull all of the comments by current user and loop over them to see how may where today or you can create a custom sql Query to select just the count of comments for the last 24 hours, something like this: global $wpdb,$current_user; $sql = $wpdb->prepare(" SELECT count(*) FROM wp_comments WHERE comment_author = '%s' AND comment_date >= DATE_SUB(NOW(),INTERVAL 1 DAY);" ,$current_user); $count = $wpdb->get_results($sql);
Q: How can I limit the number of comments per registered user per day? I found this code on WPSE: global $current_user, $post; $args = array( 'user_id' => $current_user->ID, 'post_id' => $post->ID ); $usercomment = get_comments( $args ); if ( 1 <= count( $usercomment ) ) { echo 'disabled'; } else { comment_form(); } Note: It seems to limit the number of comments per post per user. I want to limit the number of comments per registered user per day. I would like to be able to change the amount of comments allowed per day in the code, please. If someone could help me with the correct code it would be very much appreciated. Also where would I put this code in the comments.php file? Thank you. A: You could pull all of the comments by current user and loop over them to see how may where today or you can create a custom sql Query to select just the count of comments for the last 24 hours, something like this: global $wpdb,$current_user; $sql = $wpdb->prepare(" SELECT count(*) FROM wp_comments WHERE comment_author = '%s' AND comment_date >= DATE_SUB(NOW(),INTERVAL 1 DAY);" ,$current_user); $count = $wpdb->get_results($sql); A: Here's the working version, I referred the technique by @Bainternet to get it done. Just replace <?php comment_form(); ?> with this code <?php global $wpdb,$current_user; $limit = 5; //this is limit per day per user $comment_count = $wpdb->get_var( $wpdb->prepare(" SELECT count(*) FROM wp_comments WHERE comment_author = '%s' AND comment_date >= DATE_SUB(NOW(),INTERVAL 1 DAY);" ,$current_user->user_login) ); if($comment_count < $limit) { comment_form(); } else { echo 'exceeded comments limit - '.$limit; } ?> -- Tested on Wordpress 3.4.1 with TwentyTen theme installed on_ Note - * *Simply Hides the comment form from users with more than 5 comment for that given day Regardless of comment status *This will show comment form to unregistered users unless we disable it from - Discussion Settings
wordpress
{ "language": "en", "length": 315, "provenance": "stackexchange_00019.jsonl.gz:422571", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60673" }
[ 0.0538330078125, -0.0166778564453125, -0.02850341796875, -0.044281005859375, 0.0216064453125, -0.05657958984375, 0.037628173828125, 0.0181732177734375, 0.0023040771484375, 0.032501220703125, -0.060272216796875, -0.0129547119140625, -0.0263519287109375, 0.00351715087890625, -0.050537109375, -0.0703125, 0.0205841064453125, 0.031524658203125, 0.023468017578125, -0.0239410400390625, 0.00921630859375, -0.00824737548828125, 0.006038665771484375, 0.092041015625, -0.0103759765625, -0.06781005859375, 0.121826171875, -0.0167083740234375, 0.02020263671875, -0.0209503173828125, 0.018768310546875, -0.00820159912109375, -0.001514434814453125, 0.0274810791015625, -0.00644683837890625, 0.019622802734375, 0.022216796875, 0.001728057861328125, 0.0228424072265625, 0.02960205078125, 0.021881103515625, -0.00592041015625, -0.04742431640625, 0.015350341796875, -0.038421630859375, -0.06036376953125, 0.06146240234375, 0.004909515380859375, 0.054046630859375, 0.01255035400390625, 0.0265045166015625, 0.048553466796875, 0.037628173828125, -0.005512237548828125, -0.0221710205078125, 0.022552490234375, -0.031829833984375, -0.00731658935546875, 0.0396728515625, -0.01300811767578125, -0.01251220703125, -0.04119873046875, 0.034698486328125, 0.0007963180541992188, 0.009857177734375, -0.0166168212890625, 0.0182342529296875, 0.04449462890625, 0.03228759765625, -0.0179290771484375, -0.0294036865234375, 0.027587890625, -0.00424957275390625, -0.003849029541015625, -0.00757598876953125, -0.03533935546875, -0.009002685546875, -0.051239013671875, 0.0261688232421875, 0.0474853515625, 0.0157470703125, 0.005615234375, -0.04345703125, 0.053009033203125, -0.04510498046875, 0.017913818359375, -0.0173187255859375, -0.0175933837890625, -0.0125885009765625, 0.00750732421875, -0.0136260986328125, -0.01763916015625, 0.005863189697265625, 0.0020008087158203125, -0.001956939697265625, -0.0299224853515625, 0.039764404296875, 0.05096435546875, -0.0374755859375, -0.054962158203125, 0.0016336441040039062, -0.007476806640625, -0.0640869140625, 0.00531005859375, 0.02001953125, 0.0662841796875, -0.031463623046875, 0.0014400482177734375, 0.057891845703125, 0.019866943359375, 0.04302978515625, -0.00020444393157958984, -0.0274200439453125, -0.0258636474609375, -0.00852203369140625, 0.006870269775390625, -0.062347412109375, -0.0003402233123779297, 0.003269195556640625, -0.039154052734375, -0.0242156982421875, -0.018829345703125, -0.034271240234375, -0.01313018798828125, 0.0277099609375, -0.0222015380859375, -0.01473236083984375, 0.037200927734375, -0.00720977783203125, 0.047332763671875, -0.0272979736328125, -0.0212860107421875, 0.03277587890625, 0.04925537109375, 0.013824462890625, -0.0249176025390625, 0.037200927734375, -0.0447998046875, -0.040771484375, 0.04949951171875, 0.014312744140625, -0.08026123046875, -0.0679931640625, -0.0038585662841796875, -0.01861572265625, 0.017791748046875, 0.0174102783203125, -0.004741668701171875, -0.00791168212890625, -0.0184478759765625, -0.043548583984375, -0.00839996337890625, 0.03704833984375, -0.003917694091796875, -0.039642333984375, -0.0139923095703125, -0.01082611083984375, -0.01715087890625, -0.01715087890625, -0.0335693359375, 0.04180908203125, -0.0052337646484375, -0.038726806640625, -0.0017518997192382812, -0.0504150390625, 0.007427215576171875, 0.0015573501586914062, -0.0009121894836425781, 0.0237579345703125, 0.0303955078125, 0.0011854171752929688, -0.03692626953125, 0.0445556640625, -0.00714874267578125, -0.029571533203125, 0.013458251953125, -0.01483917236328125, -0.0131988525390625, 0.0309600830078125, 0.00637054443359375, -0.0190887451171875, -0.029449462890625, 0.033599853515625, -0.00428009033203125, -0.0021572113037109375, 0.0007715225219726562, 0.0158843994140625, -0.0022678375244140625, -0.0022830963134765625, 0.00579071044921875, 0.016754150390625, 0.058685302734375, 0.00612640380859375, -0.014923095703125, 0.002506256103515625, -0.0572509765625, 0.0106658935546875, -0.032196044921875, -0.01253509521484375, 0.050048828125, 0.01325225830078125, -0.0276641845703125, 0.0297698974609375, -0.0113067626953125, -0.0809326171875, 0.01922607421875, -0.0355224609375, 0.034912109375, -0.01511383056640625, 0.0081024169921875, 0.03277587890625, -0.011138916015625, -0.0284576416015625, 0.004383087158203125, -0.01479339599609375, -0.01611328125, -0.01258087158203125, 0.05523681640625, 0.0011911392211914062, 0.058929443359375, -0.0018587112426757812, -0.036865234375, -0.0005621910095214844, -0.002872467041015625, 0.03656005859375, -0.039215087890625, 0.005107879638671875, -0.02532958984375, 0.022003173828125, 0.0021305084228515625, -0.0244293212890625, 0.016632080078125, 0.023193359375, 0.023529052734375, -0.0303192138671875, -0.007694244384765625, -0.0026760101318359375, -0.044586181640625, 0.0016393661499023438, 0.05816650390625, 0.033905029296875, 0.003391265869140625, 0.04534912109375, 0.046630859375, 0.05670166015625, 0.0009307861328125, 0.04095458984375, -0.01270294189453125, -0.0189208984375, 0.006549835205078125, 0.044189453125, 0.022918701171875, 0.0278778076171875, 0.006420135498046875, 0.0240325927734375, 0.040618896484375, -0.01129150390625, 0.0032520294189453125, -0.022491455078125, 0.0193634033203125, -0.007625579833984375, -0.0447998046875, -0.01253509521484375, -0.0231781005859375, -0.0251312255859375, -0.0240478515625, 0.01100921630859375, 0.005401611328125, 0.0262298583984375, -0.047027587890625, 0.0152130126953125, -0.0173797607421875, -0.0026092529296875, -0.038909912109375, -0.054718017578125, 0.022613525390625, -0.045623779296875, 0.051239013671875, 0.0173492431640625, -0.032623291015625, -0.0072021484375, 0.03387451171875, -0.00006079673767089844, -0.01422119140625, -0.006359100341796875, -0.04119873046875, 0.001651763916015625, -0.005573272705078125, -0.03515625, -0.05010986328125, -0.002384185791015625, 0.0283050537109375, -0.0140228271484375, 0.002826690673828125, 0.021697998046875, -0.0127105712890625, 0.0145416259765625, -0.0478515625, 0.05029296875, -0.0595703125, 0.042022705078125, 0.057220458984375, -0.03692626953125, 0.02581787109375, -0.009246826171875, -0.0017118453979492188, -0.0007805824279785156, 0.003383636474609375, -0.0215606689453125, -0.022613525390625, -0.032196044921875, 0.0264434814453125, 0.0176544189453125, 0.035430908203125, -0.01116943359375, -0.0238494873046875, -0.00922393798828125, 0.00829315185546875, -0.01528167724609375, -0.0167236328125, 0.0004496574401855469, -0.05108642578125, 0.00864410400390625, -0.0242156982421875, -0.0068817138671875, -0.01194000244140625, -0.0188140869140625, 0.010101318359375, -0.057220458984375, -0.030364990234375, -0.0304107666015625, -0.04693603515625, -0.038665771484375, 0.0745849609375, 0.003204345703125, 0.01548004150390625, -0.00933074951171875, 0.072021484375, -0.012786865234375, -0.0589599609375, -0.028656005859375, -0.0159454345703125, 0.00545501708984375, -0.0021648406982421875, 0.015625, -0.00656890869140625, 0.0222625732421875, 0.013946533203125, -0.0248260498046875, 0.036102294921875, -0.025482177734375, -0.02337646484375, 0.020111083984375, 0.011474609375, 0.0394287109375, 0.0084075927734375, -0.0300140380859375, 0.050323486328125, 0.04290771484375, -0.0088348388671875, -0.033721923828125, -0.0021953582763671875, -0.046661376953125, -0.034027099609375, 0.008453369140625, 0.00942230224609375, -0.004077911376953125, 0.004878997802734375, 0.05230712890625, 0.041259765625, 0.03271484375, -0.01209259033203125, 0.01222991943359375, 0.01306915283203125, 0.0238189697265625, -0.054779052734375, 0.0164337158203125, 0.005176544189453125, 0.007167816162109375, -0.0007829666137695312, 0.007686614990234375, -0.0305328369140625, 0.037078857421875, -0.04638671875, -0.05560302734375, 0.07464599609375, 0.046417236328125, 0.000701904296875, -0.0234527587890625, -0.0535888671875, -0.0003612041473388672, 0.0823974609375, -0.0269775390625, -0.0287628173828125, -0.00591278076171875, 0.00807952880859375, -0.047943115234375, 0.0103912353515625, -0.037200927734375, -0.0005331039428710938, -0.03802490234375, -0.007213592529296875, -0.03057861328125, -0.004032135009765625, -0.0174407958984375, -0.0199127197265625, -0.024688720703125, -0.037261962890625, 0.0245513916015625, -0.06695556640625, -0.003143310546875, 0.03106689453125, -0.048248291015625, 0.02093505859375, -0.01345062255859375, -0.060577392578125, -0.059814453125, -0.0257110595703125, -0.007511138916015625, 0.05621337890625, 0.01522064208984375, -0.029937744140625, -0.0211334228515625, 0.03533935546875, -0.012451171875, -0.0077056884765625, 0.00899505615234375, 0.01470184326171875, -0.007755279541015625, 0.0270843505859375, -0.0029048919677734375, -0.01204681396484375, -0.0301055908203125, -0.0241241455078125, 0.0200958251953125, 0.05377197265625, -0.032867431640625, 0.041595458984375, -0.036712646484375, 0.0120849609375, -0.02703857421875, -0.040191650390625, -0.00469207763671875, 0.064208984375, -0.042999267578125, 0.034515380859375, -0.041259765625, -0.041229248046875, 0.049224853515625, -0.0110931396484375, 0.0007195472717285156, -0.0033969879150390625, 0.0772705078125, 0.01244354248046875, -0.01505279541015625, -0.0016469955444335938, -0.0037746429443359375, 0.04107666015625, -0.01229095458984375, 0.01496124267578125, 0.01163482666015625, -0.04742431640625, 0.061553955078125, 0.0132904052734375, -0.0015974044799804688, -0.00460052490234375, 0.0174407958984375, 0.007534027099609375, -0.033721923828125, 0.0276947021484375, -0.00823211669921875, 0.0191650390625, -0.035858154296875, -0.0279388427734375, -0.0038967132568359375, -0.038299560546875, 0.059722900390625, 0.038238525390625, 0.0022125244140625, -0.051513671875, -0.036285400390625, 0.009368896484375, -0.06378173828125, 0.01432037353515625, -0.0021209716796875, 0.0088043212890625, 0.0266876220703125, 0.036651611328125, -0.027618408203125, 0.01904296875, 0.01280975341796875, 0.019927978515625, 0.028656005859375, 0.007205963134765625, -0.0010528564453125, -0.00066375732421875, -0.01031494140625, 0.06817626953125, 0.0237884521484375, -0.04522705078125, 0.022735595703125, -0.0146484375, 0.004207611083984375, -0.00258636474609375, 0.0042724609375, 0.05133056640625, -0.0036182403564453125, -0.0088348388671875, -0.0187225341796875, -0.057525634765625, -0.00893402099609375, -0.053558349609375, 0.029815673828125, 0.01904296875, -0.004962921142578125, 0.06085205078125, 0.032318115234375, 0.0401611328125, 0.050079345703125, -0.040771484375, 0.050811767578125, 0.059967041015625, 0.0273895263671875, 0.01934814453125, 0.0113983154296875, -0.048126220703125, 0.033905029296875, -0.0200347900390625, 0.0194244384765625, -0.006237030029296875, 0.016815185546875, -0.017486572265625, 0.0120086669921875, 0.0477294921875, -0.00995635986328125, -0.0038089752197265625, -0.01259613037109375, 0.032684326171875, 0.05169677734375, -0.006114959716796875, 0.0029296875, 0.01415252685546875, 0.0007762908935546875, 0.0124359130859375, -0.0005626678466796875, -0.02728271484375, -0.022003173828125, -0.00047397613525390625, 0.0196990966796875, -0.004840850830078125, -0.0193023681640625, -0.02667236328125, -0.05352783203125, -0.02337646484375, 0.01242828369140625, -0.0187530517578125, -0.0018939971923828125, -0.012481689453125, -0.024383544921875, 0.0361328125, 0.0261688232421875, 0.048431396484375, -0.057403564453125, -0.0216217041015625, -0.050384521484375, -0.01873779296875, 0.0283355712890625, 0.0030975341796875, -0.0225372314453125, -0.00838470458984375, -0.04388427734375, -0.0283050537109375, 0.0106353759765625, -0.020263671875, -0.02276611328125, -0.00896453857421875, 0.020965576171875, 0.0255584716796875, 0.007045745849609375, -0.03619384765625, -0.03570556640625, -0.0027980804443359375, 0.032073974609375, 0.0240020751953125, -0.023345947265625, 0.05126953125, 0.02984619140625, 0.0205535888671875, 0.03265380859375, 0.061492919921875, 0.040191650390625, -0.0396728515625, 0.04034423828125, -0.0186767578125, -0.044158935546875, -0.030059814453125, -0.0298309326171875, -0.0163421630859375, 0.0272216796875, -0.0235443115234375, 0.033111572265625, -0.01025390625, 0.0033416748046875, -0.0284881591796875, -0.036468505859375, -0.009246826171875, 0.033935546875, -0.0170440673828125, -0.0017423629760742188, 0.0265350341796875, -0.038360595703125, 0.0116119384765625, -0.0219573974609375, -0.017730712890625, -0.021636962890625, 0.01690673828125, 0.006786346435546875, 0.02703857421875, 0.054290771484375, -0.0169677734375, 0.038604736328125, 0.022186279296875, 0.019866943359375, 0.036285400390625, 0.034393310546875, -0.030029296875, -0.02044677734375, 0.045501708984375, 0.022491455078125, -0.012481689453125, 0.044097900390625, -0.015411376953125, 0.01331329345703125, 0.0196685791015625, 0.0367431640625, -0.060455322265625, 0.0204925537109375, -0.0034008026123046875, 0.0025806427001953125, 0.048980712890625, -0.003559112548828125, 0.0048828125, -0.0305633544921875, 0.06829833984375, -0.0316162109375, -0.012786865234375, 0.01751708984375, -0.03668212890625, -0.0091400146484375, -0.0078582763671875, 0.06402587890625, -0.0011892318725585938, 0.0012712478637695312, -0.043548583984375, -0.0066986083984375, -0.03179931640625, -0.0419921875, -0.02044677734375, 0.01096343994140625, -0.00157928466796875, -0.0889892578125, 0.0260162353515625, -0.039154052734375, 0.021270751953125, 0.01459503173828125, -0.007053375244140625, 0.03045654296875, 0.05670166015625, -0.0095672607421875, 0.005069732666015625, 0.0419921875, -0.0191802978515625, -0.08026123046875, -0.03570556640625, 0.007091522216796875, 0.01690673828125, -0.0050506591796875, 0.039825439453125, -0.019073486328125, -0.05072021484375, 0.0123748779296875, -0.0016002655029296875, 0.0270843505859375, -0.037689208984375, -0.00582122802734375, 0.0306549072265625, 0.0210418701171875, 0.004505157470703125, -0.006343841552734375, -0.0086669921875, -0.033721923828125, -0.0117645263671875, -0.0149993896484375, -0.043365478515625, 0.0059661865234375, -0.014068603515625, -0.02069091796875, 0.056610107421875, -0.035400390625, 0.0035533905029296875, 0.033843994140625, 0.02423095703125, -0.0099945068359375, 0.0205078125, -0.027069091796875, 0.0445556640625, -0.0209503173828125, 0.04974365234375, -0.0458984375, -0.01312255859375, 0.0179901123046875, 0.03607177734375, 0.0791015625, 0.029754638671875, -0.00786590576171875, -0.018157958984375, 0.0183868408203125, -0.008270263671875, -0.036468505859375, 0.055694580078125, 0.0019369125366210938, 0.0091094970703125, 0.0634765625, -0.0270538330078125, 0.0316162109375, -0.0021266937255859375, 0.005462646484375, -0.00360107421875, 0.0017910003662109375, -0.0121307373046875, -0.0091400146484375, 0.06597900390625, -0.022918701171875, -0.00579071044921875, 0.0197601318359375, 0.002685546875, -0.0548095703125, 0.1055908203125, 0.02801513671875, -0.03265380859375, -0.03662109375, -0.059295654296875, 0.046051025390625, 0.0029144287109375, 0.01242828369140625, 0.0703125, 0.043060302734375, 0.06085205078125, -0.0127716064453125, 0.0090789794921875, -0.0139007568359375, -0.01641845703125, 0.02142333984375, 0.053131103515625, 0.0295867919921875, -0.01349639892578125, -0.0275115966796875, 0.05291748046875, 0.061004638671875, -0.036773681640625, -0.0311126708984375, 0.028656005859375, 0.0157012939453125, 0.0007429122924804688, 0.0274810791015625, 0.0577392578125, 0.022186279296875, 0.02947998046875, -0.01849365234375, -0.0041351318359375, -0.006656646728515625, 0.0147552490234375, 0.000052869319915771484, 0.031341552734375, -0.005840301513671875, -0.006511688232421875, -0.0205230712890625, -0.0305328369140625, 0.00927734375, 0.01308441162109375, 0.0270843505859375, -0.0116424560546875, 0.0263671875, 0.00972747802734375, 0.04351806640625, -0.020782470703125, -0.003314971923828125, -0.061920166015625, 0.04296875, -0.029693603515625, -0.01067352294921875, 0.00926971435546875, -0.00794219970703125, -0.04901123046875, -0.037750244140625, -0.01203155517578125, -0.00412750244140625, -0.02056884765625, -0.01343536376953125, -0.00841522216796875, -0.0167236328125, -0.0158233642578125, 0.00965118408203125, 0.0022029876708984375, 0.001117706298828125, 0.014984130859375, 0.051666259765625, -0.00897216796875, -0.007045745849609375, -0.01183319091796875, 0.0082855224609375, -0.0222625732421875, 0.01515960693359375, 0.032684326171875, -0.03948974609375, 0.01445770263671875, -0.047088623046875, 0.00939178466796875, -0.033416748046875, -0.035003662109375, 0.01015472412109375, 0.009613037109375, -0.043304443359375, 0.06658935546875, -0.00026154518127441406, -0.0094451904296875, 0.012359619140625, -0.00809478759765625, 0.00019741058349609375, 0.00862884521484375, 0.0280303955078125, -0.00791168212890625, -0.0753173828125, -0.04583740234375, -0.028045654296875, 0.027008056640625, 0.01186370849609375, 0.062744140625, -0.0086669921875, 0.0205841064453125, -0.058197021484375, 0.0030536651611328125, -0.01385498046875, -0.04669189453125, 0.078369140625, 0.04852294921875, -0.016937255859375, -0.01364898681640625, -0.04425048828125, 0.02850341796875, 0.0416259765625, 0.0180511474609375, 0.0518798828125, -0.0216522216796875, 0.0177459716796875, -0.021240234375, -0.0262603759765625, -0.043060302734375, -0.0130615234375, -0.01148223876953125, -0.0183868408203125, 0.002796173095703125, -0.034759521484375, -0.00392913818359375, 0.04913330078125, -0.05633544921875, 0.03314208984375, -0.0105133056640625, -0.0011615753173828125, -0.0438232421875, 0.0247955322265625, -0.0848388671875, 0.0197906494140625, 0.028472900390625, -0.0207672119140625, -0.0066680908203125, 0.017242431640625, -0.023284912109375, 0.01153564453125, -0.0262451171875, -0.0007452964782714844, 0.0155487060546875, 0.05438232421875, -0.005931854248046875, 0.01531219482421875, -0.01708984375, -0.0113525390625, 0.0213165283203125, -0.047210693359375, -0.031707763671875, -0.039764404296875, -0.0038928985595703125, 0.02362060546875, -0.028350830078125, -0.0237274169921875, -0.030792236328125, 0.001758575439453125, -0.00453948974609375, 0.02069091796875, -0.07061767578125, 0.04901123046875, 0.024749755859375, 0.00704193115234375, -0.031768798828125, -0.021575927734375, -0.0002715587615966797, -0.01181793212890625, -0.0523681640625, -0.0087738037109375, -0.0511474609375, -0.00623321533203125, -0.04095458984375, 0.026031494140625, 0.044708251953125, -0.01328277587890625, -0.0367431640625, 0.048919677734375, -0.00406646728515625, 0.0841064453125, -0.0242462158203125, -0.002292633056640625, 0.038177490234375, 0.01502227783203125, -0.040008544921875, -0.0845947265625, 0.002796173095703125, -0.045074462890625, 0.01812744140625, -0.05010986328125, 0.01953125, 0.033660888671875, -0.033203125, -0.06646728515625, 0.0709228515625, -0.037109375, -0.02069091796875, -0.03936767578125, 0.017486572265625, -0.004638671875, 0.00508880615234375, -0.001129150390625, -0.040374755859375, -0.00617218017578125, 0.031951904296875, 0.0160675048828125, 0.0093841552734375, 0.04248046875, 0.01137542724609375, -0.0261993408203125, 0.01273345947265625, 0.0218505859375, 0.0185699462890625, -0.01910400390625, 0.02740478515625, 0.0218353271484375, 0.04449462890625, 0.001129150390625, 0.05670166015625, -0.00954437255859375, -0.0311431884765625, -0.0222930908203125, -0.04791259765625, -0.040740966796875, -0.0018596649169921875, 0.038543701171875, 0.1171875, 0.01194000244140625, -0.05419921875, -0.005016326904296875, 0.033294677734375, 0.0026111602783203125, -0.007129669189453125, 0.00910186767578125, -0.047882080078125, -0.0264434814453125, -0.00934600830078125, -0.011962890625, -0.016082763671875, 0.001140594482421875, -0.03643798828125, -0.000060498714447021484, 0.0017595291137695312, -0.024749755859375, -0.0058135986328125, 0.0234222412109375, -0.017791748046875, -0.014739990234375, -0.0127105712890625, -0.00209808349609375, -0.005817413330078125, -0.0217132568359375, 0.0128936767578125, -0.052276611328125, -0.015594482421875, -0.01178741455078125, 0.0186309814453125, -0.01061248779296875, 0.0257720947265625, -0.0213470458984375, 0.0204620361328125, -0.011932373046875, -0.005023956298828125, 0.00916290283203125, -0.009185791015625, 0.00853729248046875, -0.0116119384765625, -0.003002166748046875, -0.00010907649993896484, -0.0007328987121582031, 0.008697509765625, -0.01502227783203125, 0.03271484375, -0.0080413818359375, -0.01947021484375, 0.0145111083984375, 0.0009284019470214844, 0.0009760856628417969, 0.00299072265625, -0.0005216598510742188, -0.04412841796875, 0.03106689453125, 0.045196533203125, 0.00736236572265625, 0.01446533203125 ]
948a03d532a93b043ea99b061601c637afa814f2
Wordpress Stackexchange Q: Best practice way to delete user meta data during plugin uninstall? If a plugin stores data in the usermeta tables what is the best practice method to delete these entries for all users in uninstall.php? I could access the database directly but is there another way? A: It's best not to interact with the database directly, especially when issuing DELETE statements, since a single typo can destroy unintended data. Instead, use WordPress functions to get a list of all user IDs, then remove the user meta field for each user individually, like so: $all_user_ids = get_users( 'fields=ID' ); foreach ( $all_user_ids as $user_id ) { delete_user_meta( $user_id, 'your_meta_key_to_delete' ); } Function reference: http://codex.wordpress.org/Function_Reference/get_users http://codex.wordpress.org/Function_Reference/delete_user_meta
Q: Best practice way to delete user meta data during plugin uninstall? If a plugin stores data in the usermeta tables what is the best practice method to delete these entries for all users in uninstall.php? I could access the database directly but is there another way? A: It's best not to interact with the database directly, especially when issuing DELETE statements, since a single typo can destroy unintended data. Instead, use WordPress functions to get a list of all user IDs, then remove the user meta field for each user individually, like so: $all_user_ids = get_users( 'fields=ID' ); foreach ( $all_user_ids as $user_id ) { delete_user_meta( $user_id, 'your_meta_key_to_delete' ); } Function reference: http://codex.wordpress.org/Function_Reference/get_users http://codex.wordpress.org/Function_Reference/delete_user_meta A: Best practice is to prefix the meta data your plugin enters that way you can simply do something like a search for all meta_key's like this $wpdb->query( $wpdb->prepare( " DELETE FROM $wpdb->usermeta WHERE meta_key LIKE `_prefix_%` " ) ); A: You should not access the database directly, if at all possible. There are two main reasons for this: * *If the database structure changes (unlikely), your queries may become outdated. Using functions like delete_user_meta() will ensure that your query should work properly for all WordPress versions (past, present, and future) that support that function. *Caching. If you don't clean up the cache after deleting your data, it could cause problems. If you delete your data manually, you also need to clean up the cache manually. Using built in functions that do this automatically is definitely a better idea. For deleting meta data (such as user meta fields), I would recommend using the delete_metadata() function. This function has a fifth parameter that you can set to true to remove the metadata with a given meta_key for all objects (in this case users). Example: $meta_type = 'user'; $user_id = 0; // This will be ignored, since we are deleting for all users. $meta_key = 'your_meta_key'; $meta_value = ''; // Also ignored. The meta will be deleted regardless of value. $delete_all = true; delete_metadata( $meta_type, $user_id, $meta_key, $meta_value, $delete_all ); You can repeat that for each meta key your plugin uses. A: * *You should not access DB directly. *Must use WP wrapper functions to do any DB changes. *Never delete any plugin related data from DB at the time of plugin un installation. Because in WP there are so many cases when you have to un install your your plugins for testing purpose. *Always delete plugin related data from DB at the time of plugin delete. Check http://codex.wordpress.org/Function_Reference/register_deactivation_hook Sample code: register_uninstall_hook( __FILE__, 'plugin_uninstall' ); function plugin_uninstall () { //usermeta data delete code }
wordpress
{ "language": "en", "length": 437, "provenance": "stackexchange_00019.jsonl.gz:422595", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60769" }
[ 0.041412353515625, 0.006072998046875, 0.00272369384765625, -0.00408172607421875, 0.00801849365234375, -0.0181732177734375, 0.0341796875, -0.052490234375, 0.048126220703125, 0.038726806640625, 0.02056884765625, -0.0139007568359375, 0.0176544189453125, -0.03668212890625, -0.0251007080078125, -0.0012006759643554688, 0.020263671875, 0.0160064697265625, 0.047119140625, 0.00432586669921875, -0.00299072265625, 0.0225067138671875, 0.036163330078125, -0.007007598876953125, -0.0152435302734375, -0.0017347335815429688, 0.040771484375, -0.048858642578125, -0.01230621337890625, -0.053802490234375, -0.0145111083984375, 0.058135986328125, -0.011505126953125, 0.0171356201171875, 0.031341552734375, -0.015411376953125, -0.0009794235229492188, 0.0232696533203125, 0.044219970703125, -0.01824951171875, 0.0289459228515625, -0.00861358642578125, -0.04925537109375, 0.021026611328125, -0.034454345703125, -0.058990478515625, 0.0592041015625, -0.006313323974609375, -0.00446319580078125, -0.0027751922607421875, 0.035186767578125, -0.01538848876953125, 0.05450439453125, -0.008758544921875, -0.0095977783203125, 0.0088043212890625, -0.03753662109375, 0.021270751953125, 0.0241546630859375, 0.04010009765625, -0.00865936279296875, 0.01015472412109375, 0.007274627685546875, -0.0384521484375, 0.028350830078125, -0.037811279296875, -0.032318115234375, 0.046173095703125, -0.034149169921875, 0.038787841796875, 0.046295166015625, -0.024658203125, -0.0152587890625, -0.020660400390625, -0.00757598876953125, 0.033843994140625, 0.0222320556640625, 0.0201873779296875, -0.01806640625, 0.00873565673828125, -0.01273345947265625, 0.0024318695068359375, -0.0158233642578125, -0.00514984130859375, -0.02630615234375, 0.00565338134765625, -0.018829345703125, -0.0086517333984375, -0.0203704833984375, -0.0222625732421875, -0.0242462158203125, -0.03826904296875, -0.01296234130859375, 0.0201416015625, -0.0254058837890625, -0.0014972686767578125, 0.01505279541015625, 0.042449951171875, -0.025848388671875, -0.0269622802734375, 0.00991058349609375, -0.0199127197265625, -0.0478515625, -0.0100860595703125, 0.00290679931640625, 0.0513916015625, -0.0260772705078125, -0.0260162353515625, 0.0016794204711914062, 0.0361328125, 0.01337432861328125, -0.053436279296875, -0.01103973388671875, -0.0499267578125, 0.01097869873046875, 0.050262451171875, -0.0118865966796875, 0.033233642578125, 0.0180206298828125, 0.0243377685546875, -0.0245361328125, -0.00714874267578125, -0.039947509765625, -0.0115509033203125, -0.00656890869140625, -0.03955078125, -0.023834228515625, 0.046539306640625, -0.0606689453125, 0.021942138671875, -0.03033447265625, 0.02789306640625, 0.059326171875, 0.01175689697265625, -0.020965576171875, -0.0202789306640625, -0.004024505615234375, -0.026458740234375, -0.013214111328125, 0.02197265625, -0.0168304443359375, -0.0521240234375, -0.004474639892578125, -0.01123809814453125, -0.009002685546875, 0.03900146484375, 0.01280975341796875, -0.0297393798828125, 0.00969696044921875, 0.002605438232421875, -0.0963134765625, -0.011810302734375, 0.007778167724609375, 0.0223388671875, 0.042388916015625, -0.0023326873779296875, 0.0867919921875, -0.0535888671875, -0.01189422607421875, -0.042236328125, 0.00902557373046875, -0.0184326171875, 0.0021648406982421875, 0.008880615234375, -0.02996826171875, 0.0340576171875, -0.0125274658203125, -0.0193939208984375, 0.0253753662109375, -0.007518768310546875, 0.026763916015625, -0.0143585205078125, 0.005084991455078125, 0.00899505615234375, 0.00685882568359375, 0.019622802734375, -0.00878143310546875, 0.00039005279541015625, 0.030059814453125, 0.0017719268798828125, -0.0199737548828125, -0.0258636474609375, 0.037109375, -0.0022430419921875, -0.04998779296875, -0.0029964447021484375, 0.00540924072265625, 0.057037353515625, 0.049774169921875, 0.0233001708984375, 0.02166748046875, -0.0202484130859375, -0.0207977294921875, 0.03594970703125, 0.0034923553466796875, -0.049896240234375, 0.00897979736328125, -0.0186920166015625, -0.0044403076171875, -0.006603240966796875, 0.027984619140625, 0.024627685546875, -0.003322601318359375, -0.0296630859375, -0.1259765625, 0.022918701171875, -0.047637939453125, 0.058807373046875, -0.054168701171875, 0.0166015625, 0.0205535888671875, -0.038421630859375, -0.026885986328125, 0.04876708984375, 0.039154052734375, -0.01009368896484375, -0.005382537841796875, 0.034881591796875, 0.01329803466796875, 0.052154541015625, 0.003452301025390625, -0.0171966552734375, -0.0007982254028320312, -0.012451171875, 0.0097198486328125, 0.0016231536865234375, -0.01509857177734375, -0.014923095703125, 0.0372314453125, -0.0197296142578125, 0.0438232421875, 0.034332275390625, -0.004726409912109375, 0.01230621337890625, -0.0111083984375, 0.01503753662109375, 0.01690673828125, -0.057525634765625, 0.00965118408203125, 0.03460693359375, 0.0157470703125, 0.007320404052734375, -0.037506103515625, 0.0248565673828125, 0.0117034912109375, -0.0206146240234375, 0.003307342529296875, 0.03631591796875, 0.0285491943359375, 0.04022216796875, -0.019195556640625, -0.00505828857421875, 0.0179290771484375, -0.028472900390625, 0.0124969482421875, 0.0274200439453125, -0.0423583984375, -0.0158233642578125, 0.0150146484375, -0.0543212890625, 0.0202789306640625, -0.034576416015625, -0.025054931640625, -0.00827789306640625, 0.04486083984375, -0.01018524169921875, 0.0260467529296875, 0.0230865478515625, -0.0015344619750976562, 0.010955810546875, 0.004497528076171875, -0.03466796875, 0.01219940185546875, -0.0172119140625, 0.01556396484375, 0.007755279541015625, -0.040863037109375, -0.007663726806640625, 0.04339599609375, -0.008087158203125, -0.006649017333984375, 0.01299285888671875, 0.0171966552734375, -0.00450897216796875, -0.0106964111328125, 0.00701904296875, 0.0238037109375, 0.0044097900390625, -0.007122039794921875, 0.006481170654296875, 0.040863037109375, 0.018951416015625, -0.0220184326171875, 0.037078857421875, -0.0264434814453125, -0.00839996337890625, 0.025054931640625, 0.00778961181640625, 0.0004031658172607422, 0.0103759765625, 0.03369140625, 0.052032470703125, 0.018646240234375, -0.047760009765625, -0.01556396484375, 0.01227569580078125, -0.015533447265625, -0.007381439208984375, -0.017822265625, -0.0305633544921875, -0.0248870849609375, -0.00695037841796875, 0.0190887451171875, 0.06451416015625, -0.01035308837890625, -0.043426513671875, 0.010955810546875, 0.0283050537109375, -0.0345458984375, -0.03521728515625, -0.01453399658203125, -0.0516357421875, 0.01654052734375, -0.019927978515625, -0.018157958984375, -0.004299163818359375, 0.003292083740234375, 0.0193939208984375, 0.03387451171875, -0.02130126953125, -0.02166748046875, -0.0141143798828125, -0.04534912109375, -0.0245208740234375, -0.00495147705078125, -0.0157623291015625, -0.0040740966796875, 0.0269317626953125, -0.0102386474609375, -0.052276611328125, -0.0190277099609375, 0.0072784423828125, -0.0007176399230957031, -0.0153350830078125, 0.044403076171875, 0.021087646484375, -0.037933349609375, 0.036529541015625, 0.0084991455078125, 0.0267791748046875, -0.073974609375, -0.03466796875, 0.0196685791015625, -0.016204833984375, 0.04345703125, -0.040252685546875, -0.05487060546875, 0.0196075439453125, 0.0268096923828125, -0.031005859375, 0.02117919921875, 0.004077911376953125, -0.00424957275390625, 0.0250396728515625, -0.0252685546875, -0.01200103759765625, 0.027862548828125, 0.0047607421875, 0.024871826171875, 0.047119140625, -0.0104522705078125, 0.03656005859375, -0.035186767578125, -0.0207672119140625, -0.0106201171875, 0.00154876708984375, 0.03900146484375, -0.0132293701171875, -0.041656494140625, -0.0101318359375, 0.004405975341796875, 0.004184722900390625, -0.01520538330078125, -0.019012451171875, -0.01403045654296875, 0.058868408203125, 0.04534912109375, 0.046722412109375, -0.0284881591796875, -0.0498046875, -0.033782958984375, 0.08251953125, 0.0023937225341796875, -0.039581298828125, 0.010589599609375, 0.00690460205078125, -0.0214691162109375, 0.036895751953125, -0.0245513916015625, 0.0019893646240234375, -0.11358642578125, -0.009429931640625, 0.01178741455078125, -0.05859375, -0.024627685546875, 0.0207366943359375, -0.08782958984375, -0.036102294921875, 0.0160064697265625, -0.04498291015625, 0.050018310546875, -0.0206756591796875, 0.0290069580078125, -0.04217529296875, 0.014801025390625, -0.06903076171875, -0.0112762451171875, -0.019256591796875, -0.03497314453125, 0.0516357421875, 0.045684814453125, -0.03399658203125, -0.021453857421875, 0.0086212158203125, -0.0400390625, 0.05206298828125, -0.0253753662109375, 0.0215911865234375, -0.017608642578125, 0.0062408447265625, -0.002109527587890625, -0.0019969940185546875, 0.00017023086547851562, -0.0271453857421875, -0.0252838134765625, -0.0221099853515625, -0.039031982421875, 0.030487060546875, -0.0076904296875, -0.01629638671875, -0.024505615234375, -0.02557373046875, -0.061004638671875, -0.017822265625, -0.045684814453125, -0.0107421875, -0.01288604736328125, -0.0531005859375, 0.035919189453125, 0.02056884765625, -0.0118255615234375, 0.0137481689453125, 0.06396484375, 0.006938934326171875, -0.02825927734375, -0.07342529296875, 0.0345458984375, 0.0263824462890625, -0.01450347900390625, 0.04034423828125, 0.02386474609375, -0.00505828857421875, 0.0137176513671875, -0.0044097900390625, 0.018341064453125, -0.0557861328125, 0.08642578125, -0.01551055908203125, -0.02569580078125, 0.05096435546875, -0.00403594970703125, -0.01364898681640625, 0.0175323486328125, 0.0157012939453125, -0.023590087890625, 0.0109405517578125, 0.0109710693359375, 0.00812530517578125, -0.01232147216796875, -0.01111602783203125, -0.060791015625, 0.02899169921875, -0.060638427734375, -0.0009975433349609375, -0.0033855438232421875, -0.0126800537109375, 0.01131439208984375, -0.0177764892578125, -0.009368896484375, -0.0435791015625, -0.006618499755859375, -0.0297698974609375, -0.0027027130126953125, -0.012603759765625, -0.01934814453125, -0.0450439453125, -0.00948333740234375, 0.05322265625, -0.0182037353515625, -0.0367431640625, -0.050933837890625, -0.018402099609375, 0.0308685302734375, 0.036712646484375, 0.020263671875, 0.0596923828125, 0.0263671875, -0.011199951171875, -0.00980377197265625, -0.027801513671875, 0.004306793212890625, -0.056793212890625, -0.0164642333984375, -0.032196044921875, -0.00768280029296875, -0.0189208984375, 0.073486328125, -0.054168701171875, 0.03326416015625, 0.01047515869140625, 0.051361083984375, 0.007373809814453125, 0.037445068359375, 0.02325439453125, -0.020965576171875, -0.0068511962890625, 0.0011196136474609375, -0.031707763671875, -0.031768798828125, 0.0088348388671875, 0.019012451171875, 0.03173828125, 0.005290985107421875, -0.01161956787109375, 0.0099334716796875, -0.042205810546875, 0.005645751953125, 0.0191497802734375, -0.038665771484375, -0.058349609375, -0.00383758544921875, 0.042083740234375, 0.033233642578125, -0.0491943359375, 0.0217437744140625, -0.02276611328125, -0.01407623291015625, -0.00897979736328125, -0.0272064208984375, -0.00504302978515625, -0.037872314453125, -0.023529052734375, 0.00040984153747558594, -0.018341064453125, -0.01021575927734375, -0.00876617431640625, 0.00611114501953125, -0.0086517333984375, -0.016571044921875, 0.041900634765625, -0.01210784912109375, 0.0023403167724609375, -0.0015573501586914062, 0.0009069442749023438, -0.037200927734375, 0.01195526123046875, 0.0303192138671875, 0.0096435546875, -0.0516357421875, -0.0019626617431640625, -0.0170135498046875, -0.0050811767578125, -0.00514984130859375, -0.0220794677734375, -0.0243988037109375, -0.0117034912109375, -0.00833892822265625, 0.021759033203125, -0.019744873046875, -0.0004608631134033203, 0.024261474609375, 0.01971435546875, -0.02203369140625, 0.048919677734375, -0.004413604736328125, 0.0355224609375, -0.0113372802734375, 0.051300048828125, 0.030059814453125, 0.0499267578125, 0.0008025169372558594, -0.04736328125, 0.03204345703125, 0.006427764892578125, -0.035064697265625, -0.050537109375, 0.0061798095703125, -0.048614501953125, 0.0233917236328125, -0.0192718505859375, -0.0178375244140625, -0.0039215087890625, -0.006072998046875, -0.015167236328125, 0.06622314453125, 0.03961181640625, -0.00038051605224609375, -0.0029296875, -0.01904296875, -0.043853759765625, -0.017608642578125, -0.0019216537475585938, -0.007541656494140625, 0.0142059326171875, -0.0256195068359375, 0.00047588348388671875, -0.03485107421875, 0.056915283203125, 0.03668212890625, -0.017578125, 0.0212249755859375, 0.02252197265625, 0.005550384521484375, -0.0047607421875, -0.0203704833984375, 0.02783203125, 0.0097198486328125, 0.054046630859375, -0.01039886474609375, -0.0064849853515625, 0.028533935546875, -0.0254974365234375, 0.0243682861328125, 0.03985595703125, 0.04901123046875, -0.0863037109375, 0.034515380859375, -0.0033321380615234375, -0.0032291412353515625, 0.038909912109375, -0.00498199462890625, 0.00637054443359375, -0.0022983551025390625, 0.0404052734375, 0.00800323486328125, -0.01666259765625, 0.0275115966796875, 0.00887298583984375, -0.00970458984375, 0.007205963134765625, -0.0288238525390625, -0.007293701171875, 0.040740966796875, -0.040313720703125, -0.0158538818359375, -0.0063934326171875, -0.016876220703125, 0.0008020401000976562, 0.023651123046875, -0.020050048828125, -0.0697021484375, 0.01067352294921875, -0.0180206298828125, -0.037078857421875, 0.01410675048828125, 0.00565338134765625, 0.060760498046875, 0.036651611328125, 0.01175689697265625, -0.042388916015625, 0.01299285888671875, 0.02532958984375, -0.059906005859375, -0.0264434814453125, 0.00829315185546875, 0.018585205078125, -0.034271240234375, 0.0308685302734375, -0.034393310546875, -0.0265655517578125, -0.0302581787109375, -0.060302734375, 0.0850830078125, -0.052734375, -0.0044097900390625, 0.0034999847412109375, 0.04852294921875, 0.00443267822265625, -0.041717529296875, 0.039886474609375, -0.048980712890625, 0.0178070068359375, -0.00725555419921875, 0.0236358642578125, -0.00920867919921875, -0.0274505615234375, -0.057220458984375, 0.044036865234375, 0.005847930908203125, -0.0017185211181640625, -0.032073974609375, 0.02032470703125, 0.01934814453125, 0.004169464111328125, -0.0239105224609375, 0.07952880859375, -0.0235137939453125, 0.027618408203125, -0.0294036865234375, 0.0206298828125, 0.0101776123046875, -0.005512237548828125, 0.11376953125, 0.041412353515625, -0.048828125, -0.035491943359375, -0.0014400482177734375, 0.002307891845703125, -0.031768798828125, 0.0653076171875, 0.01358795166015625, 0.01473236083984375, 0.041473388671875, -0.01031494140625, 0.04742431640625, -0.020965576171875, -0.0114593505859375, 0.028594970703125, 0.0009284019470214844, -0.01038360595703125, -0.037078857421875, 0.074462890625, -0.0025806427001953125, -0.0290679931640625, 0.0037288665771484375, -0.0205535888671875, 0.030426025390625, -0.012420654296875, 0.0113677978515625, -0.005016326904296875, -0.00954437255859375, 0.002696990966796875, 0.038330078125, 0.01061248779296875, 0.033416748046875, 0.0516357421875, 0.0171051025390625, 0.0268096923828125, -0.020599365234375, 0.0108642578125, -0.00807952880859375, -0.0181884765625, 0.06561279296875, 0.017059326171875, 0.0010004043579101562, -0.04254150390625, 0.02325439453125, 0.057403564453125, 0.07855224609375, -0.061737060546875, -0.05810546875, 0.00640106201171875, 0.01215362548828125, 0.0111541748046875, 0.048858642578125, 0.027374267578125, -0.00971221923828125, 0.039459228515625, -0.041900634765625, 0.00974273681640625, 0.003726959228515625, 0.0164337158203125, -0.0088653564453125, -0.0106353759765625, -0.01434326171875, -0.00001138448715209961, 0.00304412841796875, -0.003589630126953125, -0.014068603515625, -0.045867919921875, 0.0109405517578125, -0.033203125, 0.062744140625, 0.041839599609375, 0.006500244140625, 0.036529541015625, 0.016571044921875, -0.019927978515625, -0.05322265625, -0.07220458984375, 0.033966064453125, 0.04278564453125, 0.01276397705078125, 0.005527496337890625, 0.05535888671875, 0.038665771484375, -0.0382080078125, -0.0222015380859375, 0.00951385498046875, -0.024261474609375, -0.0060577392578125, -0.0302734375, 0.0198974609375, -0.0193328857421875, 0.006061553955078125, -0.031158447265625, 0.063232421875, -0.024658203125, -0.001926422119140625, 0.0301971435546875, 0.0170135498046875, -0.012908935546875, 0.033843994140625, -0.0061187744140625, 0.023193359375, 0.020843505859375, -0.0006976127624511719, 0.0152740478515625, -0.03125, 0.03125, -0.0207672119140625, 0.0025196075439453125, -0.0099029541015625, 0.0701904296875, -0.0216064453125, -0.0240478515625, 0.030792236328125, 0.01171875, -0.024566650390625, 0.0218505859375, 0.019195556640625, -0.02716064453125, 0.0162506103515625, 0.0273590087890625, 0.0180206298828125, 0.015655517578125, -0.00362396240234375, 0.06072998046875, -0.028167724609375, 0.00494384765625, -0.039581298828125, -0.00927734375, -0.008087158203125, -0.0278472900390625, 0.023651123046875, 0.0135650634765625, -0.018951416015625, 0.0007677078247070312, -0.015655517578125, 0.019561767578125, 0.042999267578125, -0.00984954833984375, 0.0124359130859375, -0.004711151123046875, 0.00846099853515625, -0.0185699462890625, -0.004299163818359375, -0.0179595947265625, -0.03631591796875, -0.027130126953125, 0.01153564453125, 0.0330810546875, 0.049713134765625, -0.0321044921875, -0.00708770751953125, 0.045684814453125, -0.018646240234375, -0.00948333740234375, 0.04217529296875, -0.0009212493896484375, 0.0291748046875, 0.008087158203125, -0.016693115234375, 0.00591278076171875, -0.0214385986328125, 0.0277557373046875, -0.0035572052001953125, 0.04864501953125, 0.01934814453125, -0.05242919921875, -0.0033054351806640625, 0.00102996826171875, 0.04742431640625, 0.00848388671875, 0.0091552734375, -0.025970458984375, 0.0173797607421875, -0.01374053955078125, -0.01026153564453125, -0.0268707275390625, -0.04779052734375, -0.004413604736328125, 0.0191497802734375, -0.0297088623046875, -0.03399658203125, -0.07366943359375, 0.01056671142578125, 0.0200958251953125, 0.0301055908203125, -0.08612060546875, 0.07122802734375, -0.01177978515625, -0.0112152099609375, -0.005115509033203125, -0.0233001708984375, -0.0124664306640625, 0.0283050537109375, 0.006198883056640625, -0.04827880859375, -0.0343017578125, 0.0716552734375, -0.0253143310546875, 0.0014925003051757812, 0.00959014892578125, -0.0017642974853515625, -0.01474761962890625, 0.00811004638671875, 0.01348114013671875, 0.047698974609375, 0.026763916015625, -0.022308349609375, 0.0181427001953125, -0.01361083984375, 0.0290069580078125, -0.04937744140625, -0.03460693359375, -0.035888671875, 0.00244903564453125, 0.0009198188781738281, 0.0238189697265625, 0.0487060546875, -0.033050537109375, -0.0780029296875, 0.10894775390625, -0.02801513671875, -0.0295867919921875, -0.002643585205078125, 0.00016736984252929688, 0.032623291015625, -0.034454345703125, -0.007083892822265625, -0.0151214599609375, -0.0675048828125, -0.019287109375, -0.0013971328735351562, -0.01175689697265625, 0.01444244384765625, -0.0223236083984375, 0.0012149810791015625, 0.0229644775390625, 0.047607421875, -0.0189361572265625, -0.01103973388671875, -0.00244140625, 0.054595947265625, 0.05010986328125, -0.0088043212890625, 0.069580078125, 0.038421630859375, -0.0181427001953125, -0.04534912109375, -0.0245819091796875, -0.00669097900390625, 0.023162841796875, 0.09637451171875, 0.0478515625, 0.0175323486328125, -0.058746337890625, -0.0088958740234375, -0.012939453125, 0.039337158203125, -0.0299835205078125, -0.0007481575012207031, -0.072265625, -0.051727294921875, 0.0162811279296875, -0.0367431640625, 0.0190887451171875, -0.004558563232421875, -0.03948974609375, 0.024261474609375, 0.043212890625, 0.008087158203125, -0.0200653076171875, -0.0013380050659179688, 0.024993896484375, -0.025665283203125, -0.02392578125, -0.0024166107177734375, 0.00566864013671875, -0.015838623046875, -0.0214691162109375, 0.0011997222900390625, -0.007175445556640625, -0.057281494140625, 0.045928955078125, -0.0280609130859375, 0.04498291015625, -0.0810546875, -0.03338623046875, -0.0043182373046875, 0.0179443359375, -0.001811981201171875, 0.01580810546875, 0.00007486343383789062, 0.01267242431640625, 0.024078369140625, -0.0294189453125, -0.0291290283203125, -0.0093231201171875, -0.03741455078125, 0.0322265625, 0.0236053466796875, -0.0162506103515625, 0.089111328125, -0.0202484130859375, -0.01025390625, -0.0159149169921875, 0.024169921875, -0.0845947265625, 0.05877685546875, 0.0279388427734375, 0.017791748046875, 0.04425048828125 ]
e38897c3b55feef2203a27415c5d3a6e2bd4fcb2
Wordpress Stackexchange Q: Looking for a hook to add attachment information to the media library tab I would like to be able to determine if an image has been attached to a post by looking at the collapsed viewmedia library tab. Is there's a hook I can use to add that data to this view of the Media Libray tab? I've included a mock-up of what I'd like the media library to look like. Is it possible to amend the current media library tab or would I have to create a custom tab to get this functionality? A: As far as I know, and I've researched the topic a lot, there's no hook to do this. Neither an easy jQuery. And looking at WordPress 3.5 beta-1, all previous hacks and hooks may be obsolete soon or just after soon...
Q: Looking for a hook to add attachment information to the media library tab I would like to be able to determine if an image has been attached to a post by looking at the collapsed viewmedia library tab. Is there's a hook I can use to add that data to this view of the Media Libray tab? I've included a mock-up of what I'd like the media library to look like. Is it possible to amend the current media library tab or would I have to create a custom tab to get this functionality? A: As far as I know, and I've researched the topic a lot, there's no hook to do this. Neither an easy jQuery. And looking at WordPress 3.5 beta-1, all previous hacks and hooks may be obsolete soon or just after soon...
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:422616", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60830" }
[ 0.044708251953125, -0.0024356842041015625, 0.0071258544921875, 0.00521087646484375, 0.01251220703125, -0.0300750732421875, 0.0777587890625, -0.030303955078125, 0.0119476318359375, 0.016082763671875, 0.0015172958374023438, -0.00531768798828125, 0.006687164306640625, -0.0269775390625, -0.01287841796875, -0.01122283935546875, 0.045623779296875, -0.035858154296875, 0.057830810546875, 0.005443572998046875, 0.015869140625, 0.0120086669921875, 0.0762939453125, 0.007659912109375, -0.005527496337890625, 0.0213165283203125, 0.0653076171875, -0.05462646484375, 0.0275726318359375, 0.002559661865234375, 0.010406494140625, -0.0325927734375, 0.0214385986328125, 0.00279998779296875, -0.00940704345703125, 0.04156494140625, 0.06317138671875, -0.01213836669921875, 0.004886627197265625, 0.035430908203125, 0.01172637939453125, 0.0034046173095703125, 0.007068634033203125, 0.002193450927734375, 0.00896453857421875, -0.0198516845703125, -0.007350921630859375, -0.072509765625, 0.052825927734375, 0.0008873939514160156, -0.0162811279296875, -0.0021572113037109375, -0.0168304443359375, -0.0288238525390625, -0.01325225830078125, 0.004947662353515625, -0.015960693359375, 0.0031871795654296875, 0.00588226318359375, 0.01355743408203125, -0.007045745849609375, 0.0031108856201171875, 0.004268646240234375, -0.0152130126953125, 0.00537872314453125, -0.01549530029296875, -0.00047898292541503906, 0.032623291015625, -0.04296875, -0.018707275390625, 0.0258941650390625, -0.0294647216796875, -0.0234832763671875, 0.0018329620361328125, 0.0132904052734375, -0.03546142578125, 0.043609619140625, -0.0268096923828125, -0.016143798828125, 0.0379638671875, 0.0196533203125, 0.004241943359375, 0.014862060546875, -0.01343536376953125, 0.028076171875, 0.0188446044921875, -0.0049285888671875, -0.0193023681640625, -0.015716552734375, -0.006305694580078125, -0.0184478759765625, -0.007442474365234375, -0.007049560546875, 0.006183624267578125, -0.0226593017578125, 0.0031604766845703125, 0.035736083984375, 0.02032470703125, -0.005157470703125, -0.01062774658203125, 0.005878448486328125, -0.048797607421875, 0.01464080810546875, -0.0211029052734375, 0.03167724609375, -0.021514892578125, -0.0078887939453125, -0.06695556640625, 0.0274658203125, 0.00099945068359375, -0.052001953125, 0.059173583984375, 0.050323486328125, 0.035003662109375, -0.0149078369140625, -0.04559326171875, -0.0066070556640625, 0.05218505859375, -0.01641845703125, 0.031982421875, -0.0126190185546875, 0.017120361328125, -0.045013427734375, 0.0098419189453125, 0.0229644775390625, -0.003917694091796875, -0.0047760009765625, 0.0218353271484375, 0.0219879150390625, -0.0172576904296875, 0.0062103271484375, 0.042724609375, 0.0236663818359375, -0.01078033447265625, -0.034759521484375, 0.0161285400390625, -0.011627197265625, -0.0011768341064453125, 0.0018815994262695312, -0.005947113037109375, 0.01441192626953125, -0.0267486572265625, 0.000057697296142578125, 0.00833892822265625, 0.0021610260009765625, 0.011322021484375, 0.009002685546875, 0.0185546875, 0.01088714599609375, -0.05389404296875, 0.04693603515625, -0.053375244140625, 0.036651611328125, 0.00994873046875, 0.0031375885009765625, -0.01461029052734375, 0.05792236328125, -0.03204345703125, -0.013763427734375, -0.044158935546875, 0.0211334228515625, -0.0085296630859375, -0.00027251243591308594, -0.0294952392578125, -0.028717041015625, 0.002490997314453125, -0.044158935546875, -0.0002892017364501953, 0.022369384765625, 0.05615234375, -0.0034008026123046875, -0.0293426513671875, -0.0066986083984375, 0.012542724609375, -0.0150299072265625, 0.00804901123046875, -0.0036716461181640625, 0.04290771484375, 0.049560546875, 0.0167236328125, -0.004589080810546875, -0.0226287841796875, 0.1221923828125, -0.04833984375, -0.04443359375, 0.05859375, 0.00917816162109375, 0.0635986328125, 0.00799560546875, 0.0196075439453125, 0.0164794921875, 0.04876708984375, -0.006336212158203125, -0.0305938720703125, -0.0246429443359375, 0.0033111572265625, -0.002956390380859375, 0.01403045654296875, -0.0162506103515625, 0.0173187255859375, 0.0079345703125, 0.0372314453125, -0.02398681640625, -0.0009717941284179688, -0.02618408203125, 0.0036983489990234375, -0.00441741943359375, 0.039886474609375, -0.04376220703125, 0.0187835693359375, 0.0299072265625, 0.0043182373046875, -0.05242919921875, 0.030731201171875, 0.007488250732421875, -0.0174407958984375, -0.0004925727844238281, 0.015960693359375, -0.0037593841552734375, 0.0262603759765625, -0.014312744140625, -0.004589080810546875, -0.0184326171875, 0.00872802734375, 0.0018405914306640625, -0.0026226043701171875, -0.01873779296875, -0.0094146728515625, -0.027252197265625, 0.0267486572265625, -0.04754638671875, 0.01444244384765625, -0.01313018798828125, -0.030364990234375, -0.021270751953125, -0.0024356842041015625, 0.00788116455078125, -0.08251953125, 0.01092529296875, 0.058013916015625, 0.04144287109375, 0.059814453125, 0.0103607177734375, 0.00650787353515625, 0.1043701171875, 0.0161285400390625, 0.02996826171875, -0.0191497802734375, -0.01708984375, 0.02484130859375, -0.006378173828125, 0.028564453125, 0.00628662109375, -0.03326416015625, -0.00888824462890625, 0.0240631103515625, 0.007312774658203125, 0.0156402587890625, -0.043060302734375, 0.033172607421875, -0.0017023086547851562, 0.03302001953125, -0.0028705596923828125, 0.00243377685546875, 0.0223388671875, 0.00818634033203125, 0.038604736328125, 0.0279388427734375, -0.01605224609375, -0.01108551025390625, 0.00327301025390625, -0.0083465576171875, 0.0033588409423828125, 0.060302734375, 0.0032501220703125, 0.037506103515625, -0.03070068359375, -0.016448974609375, 0.00543212890625, 0.0303192138671875, -0.016876220703125, 0.0073089599609375, -0.020721435546875, -0.01297760009765625, 0.0039520263671875, -0.047088623046875, -0.004497528076171875, -0.01983642578125, -0.045867919921875, 0.0018310546875, 0.02435302734375, 0.043426513671875, 0.02142333984375, -0.01245880126953125, -0.00510406494140625, 0.0100860595703125, 0.00948333740234375, -0.041412353515625, 0.04931640625, -0.03228759765625, 0.0692138671875, 0.073974609375, -0.0289306640625, 0.023773193359375, -0.01517486572265625, -0.018463134765625, -0.0258026123046875, 0.026214599609375, 0.012664794921875, -0.07452392578125, 0.032196044921875, 0.026336669921875, -0.004528045654296875, -0.0103912353515625, -0.032684326171875, -0.04364013671875, -0.03887939453125, -0.030364990234375, -0.09735107421875, -0.044189453125, 0.004360198974609375, -0.0570068359375, 0.016204833984375, -0.0012197494506835938, -0.030853271484375, -0.04248046875, 0.061309814453125, 0.0007476806640625, -0.049468994140625, 0.005214691162109375, -0.036865234375, -0.04376220703125, -0.058319091796875, 0.00188446044921875, -0.01045989990234375, 0.041290283203125, 0.007068634033203125, 0.028106689453125, 0.0001233816146850586, -0.0181884765625, 0.0298919677734375, -0.0200653076171875, 0.0150146484375, -0.003093719482421875, -0.0190887451171875, 0.00446319580078125, -0.035400390625, 0.020721435546875, 0.00014340877532958984, 0.00830841064453125, -0.01070404052734375, 0.006072998046875, 0.00975799560546875, -0.0291290283203125, -0.0084075927734375, 0.052947998046875, 0.01184844970703125, -0.04168701171875, 0.01064300537109375, -0.0650634765625, 0.0285186767578125, -0.0023174285888671875, -0.0118255615234375, -0.041473388671875, -0.0159912109375, -0.006359100341796875, 0.0020904541015625, -0.0275115966796875, -0.006011962890625, -0.0142669677734375, 0.013580322265625, -0.0369873046875, 0.05902099609375, -0.0165557861328125, -0.01036834716796875, -0.0130157470703125, 0.00390625, -0.0117034912109375, -0.019561767578125, -0.0215606689453125, 0.02020263671875, -0.007171630859375, 0.009857177734375, -0.015838623046875, -0.004852294921875, 0.034912109375, 0.0034847259521484375, 0.040069580078125, -0.039764404296875, -0.04290771484375, -0.02471923828125, 0.0684814453125, -0.015777587890625, -0.0284576416015625, -0.035736083984375, 0.004077911376953125, 0.0193634033203125, -0.003673553466796875, 0.0230712890625, -0.0221405029296875, -0.053955078125, 0.025543212890625, 0.034088134765625, -0.021331787109375, -0.056396484375, 0.061767578125, -0.0635986328125, -0.006839752197265625, 0.034820556640625, -0.0298919677734375, -0.0031223297119140625, 0.037200927734375, -0.052703857421875, 0.04901123046875, -0.04119873046875, -0.032623291015625, -0.0704345703125, -0.0218963623046875, 0.001041412353515625, 0.051025390625, -0.006244659423828125, -0.0303192138671875, -0.0223541259765625, 0.03289794921875, 0.037628173828125, -0.0091552734375, 0.039276123046875, -0.0018634796142578125, 0.0308990478515625, -0.02545166015625, 0.0146484375, -0.035064697265625, -0.0252838134765625, -0.08514404296875, -0.055084228515625, -0.0203399658203125, -0.01085662841796875, 0.07421875, -0.009674072265625, 0.02020263671875, -0.031951904296875, 0.02197265625, 0.02191162109375, 0.033782958984375, 0.010284423828125, 0.00907135009765625, -0.01181793212890625, -0.033905029296875, -0.00730133056640625, 0.00872802734375, 0.007556915283203125, 0.0267181396484375, 0.031524658203125, 0.01331329345703125, 0.002002716064453125, -0.08941650390625, 0.00952911376953125, 0.044647216796875, -0.01544952392578125, 0.01103973388671875, 0.0082244873046875, -0.0295562744140625, 0.0230560302734375, 0.0052490234375, 0.02276611328125, -0.033172607421875, 0.03338623046875, 0.004108428955078125, 0.0160369873046875, 0.00264739990234375, 0.01155853271484375, 0.0084991455078125, -0.019073486328125, -0.033050537109375, 0.01357269287109375, -0.01387786865234375, 0.005649566650390625, -0.035003662109375, 0.092041015625, 0.01184844970703125, -0.045257568359375, -0.0010700225830078125, 0.0015916824340820312, 0.038482666015625, -0.003894805908203125, 0.0038356781005859375, 0.002201080322265625, 0.026397705078125, -0.0088348388671875, -0.0244293212890625, -0.0012331008911132812, -0.031036376953125, 0.038421630859375, -0.036407470703125, -0.007022857666015625, -0.01461029052734375, 0.00019311904907226562, -0.021392822265625, -0.01386260986328125, -0.057281494140625, -0.01486968994140625, -0.01110076904296875, -0.001895904541015625, 0.0260772705078125, 0.01016998291015625, 0.039886474609375, 0.022491455078125, -0.0266571044921875, -0.0271148681640625, -0.01479339599609375, 0.0089263916015625, -0.069580078125, 0.04290771484375, -0.0002377033233642578, 0.0020351409912109375, 0.045074462890625, 0.022247314453125, -0.00647735595703125, 0.0281524658203125, -0.011627197265625, -0.0020580291748046875, -0.00782012939453125, 0.0228729248046875, 0.026153564453125, 0.01263427734375, -0.01885986328125, 0.01537322998046875, 0.007106781005859375, -0.040130615234375, 0.039459228515625, 0.01471710205078125, 0.046112060546875, -0.030609130859375, -0.067138671875, 0.0208740234375, -0.0836181640625, -0.031219482421875, 0.0301513671875, -0.0217742919921875, -0.0552978515625, -0.036163330078125, -0.0014829635620117188, 0.029327392578125, -0.0171356201171875, 0.004611968994140625, -0.043548583984375, -0.01438140869140625, -0.0136566162109375, 0.021514892578125, -0.036865234375, 0.021728515625, 0.00836944580078125, 0.0008687973022460938, 0.020538330078125, 0.00681304931640625, -0.01453399658203125, -0.04656982421875, -0.0084991455078125, 0.007083892822265625, 0.06402587890625, -0.01910400390625, 0.049713134765625, -0.0293731689453125, -0.0233612060546875, -0.033599853515625, 0.0156402587890625, 0.044403076171875, 0.04150390625, -0.004467010498046875, 0.01096343994140625, -0.03875732421875, -0.015045166015625, 0.0037250518798828125, -0.045562744140625, -0.0163726806640625, -0.0404052734375, 0.01409149169921875, 0.04425048828125, -0.0104827880859375, -0.024200439453125, -0.005496978759765625, 0.0128631591796875, 0.00664520263671875, 0.05621337890625, 0.02301025390625, 0.0128936767578125, 0.0018472671508789062, 0.043731689453125, 0.0291900634765625, -0.0186920166015625, -0.048187255859375, -0.0305938720703125, -0.0289306640625, -0.055206298828125, 0.00887298583984375, 0.038970947265625, -0.016571044921875, 0.011383056640625, -0.00734710693359375, 0.0200042724609375, -0.01187896728515625, -0.01276397705078125, -0.0064849853515625, -0.01404571533203125, 0.0196075439453125, 0.0272369384765625, -0.0026035308837890625, 0.040771484375, -0.0208892822265625, 0.0175933837890625, -0.01085662841796875, -0.0104827880859375, 0.0216827392578125, -0.00475311279296875, 0.0102996826171875, 0.01317596435546875, -0.035491943359375, 0.044647216796875, 0.052490234375, 0.00847625732421875, 0.031402587890625, 0.0135040283203125, -0.01129150390625, 0.0128021240234375, 0.0310211181640625, 0.009796142578125, -0.06390380859375, 0.06781005859375, 0.0306549072265625, -0.019744873046875, 0.069091796875, -0.032440185546875, 0.00011414289474487305, -0.047393798828125, 0.0118408203125, 0.03094482421875, -0.00849151611328125, -0.0160675048828125, -0.03192138671875, 0.01525115966796875, -0.0147552490234375, -0.00923919677734375, -0.0181121826171875, 0.051788330078125, -0.031768798828125, -0.034820556640625, -0.0014171600341796875, -0.0228729248046875, -0.007694244384765625, -0.0150604248046875, 0.0286712646484375, 0.01555633544921875, -0.0081024169921875, -0.0239410400390625, 0.0252532958984375, -0.027557373046875, 0.004119873046875, 0.025360107421875, -0.02838134765625, -0.00971221923828125, -0.032806396484375, -0.011444091796875, -0.01202392578125, -0.02020263671875, -0.0122528076171875, -0.007389068603515625, 0.035125732421875, 0.047149658203125, -0.01558685302734375, 0.0034027099609375, 0.02593994140625, -0.041961669921875, -0.0174407958984375, 0.0136566162109375, 0.025848388671875, 0.0031604766845703125, -0.004550933837890625, 0.005344390869140625, -0.043304443359375, 0.0046844482421875, 0.00015926361083984375, -0.017791748046875, 0.034881591796875, -0.0667724609375, 0.018585205078125, 0.046783447265625, -0.00799560546875, -0.0014238357543945312, 0.0005965232849121094, 0.043304443359375, -0.048004150390625, -0.044677734375, 0.00789642333984375, -0.05218505859375, -0.045867919921875, -0.0408935546875, -0.044036865234375, 0.1019287109375, -0.0167388916015625, 0.043121337890625, 0.0014867782592773438, 0.037689208984375, 0.00768280029296875, 0.028289794921875, -0.046173095703125, 0.058349609375, 0.005401611328125, 0.0638427734375, -0.0697021484375, -0.01068878173828125, 0.0255584716796875, 0.040863037109375, 0.053558349609375, 0.009368896484375, -0.00102996826171875, -0.05029296875, 0.00827789306640625, 0.0281219482421875, -0.0025997161865234375, 0.012054443359375, -0.00870513916015625, -0.0198974609375, 0.0124359130859375, -0.0163116455078125, 0.036834716796875, -0.050994873046875, -0.015838623046875, 0.0081634521484375, 0.00555419921875, 0.0038280487060546875, 0.00017130374908447266, 0.060943603515625, -0.0179290771484375, -0.021392822265625, 0.03436279296875, -0.056488037109375, 0.035614013671875, 0.0189056396484375, 0.0169219970703125, 0.014556884765625, 0.0088653564453125, -0.005519866943359375, 0.032562255859375, -0.01476287841796875, 0.0126495361328125, 0.01027679443359375, 0.020660400390625, 0.024200439453125, -0.0027751922607421875, -0.0015325546264648438, 0.045074462890625, -0.019744873046875, 0.0179595947265625, -0.008514404296875, 0.003925323486328125, -0.059783935546875, -0.0104522705078125, 0.054046630859375, 0.040985107421875, -0.02178955078125, -0.034393310546875, 0.01120758056640625, -0.0037689208984375, -0.002349853515625, 0.00567626953125, 0.004619598388671875, 0.0018339157104492188, 0.0234222412109375, -0.01849365234375, -0.0206756591796875, -0.01230621337890625, 0.0869140625, 0.005706787109375, 0.00455474853515625, -0.04791259765625, -0.06500244140625, -0.0193023681640625, -0.017059326171875, 0.0011720657348632812, 0.041595458984375, 0.01444244384765625, 0.0308685302734375, -0.0268096923828125, -0.016448974609375, -0.0283966064453125, 0.053619384765625, 0.0027828216552734375, 0.03643798828125, -0.05328369140625, -0.055206298828125, 0.04486083984375, 0.038665771484375, 0.062347412109375, 0.0196075439453125, 0.048736572265625, 0.033966064453125, -0.00936126708984375, 0.016357421875, 0.0340576171875, -0.0079803466796875, 0.032501220703125, -0.0517578125, 0.0821533203125, 0.060394287109375, 0.0170440673828125, 0.001773834228515625, -0.002834320068359375, 0.105712890625, -0.035888671875, 0.041015625, -0.01093292236328125, -0.041473388671875, 0.0295867919921875, -0.0007328987121582031, 0.0802001953125, 0.010711669921875, -0.08380126953125, -0.01910400390625, 0.00020134449005126953, -0.0694580078125, 0.0004100799560546875, 0.042266845703125, -0.04315185546875, 0.00469207763671875, -0.032470703125, -0.0140228271484375, 0.0302276611328125, -0.0164337158203125, -0.0027637481689453125, -0.0211639404296875, -0.0035991668701171875, -0.02960205078125, -0.032196044921875, -0.005706787109375, 0.0002884864807128906, -0.0006289482116699219, -0.0176239013671875, 0.06500244140625, 0.0056304931640625, 0.0028228759765625, 0.00041294097900390625, 0.020416259765625, -0.0246429443359375, 0.0279998779296875, -0.04608154296875, 0.01290130615234375, 0.0190887451171875, -0.0249481201171875, 0.00787353515625, 0.027618408203125, -0.00010699033737182617, -0.0268096923828125, -0.013031005859375, -0.040008544921875, 0.001201629638671875, 0.0310821533203125, 0.017852783203125, -0.0163726806640625, -0.002117156982421875, 0.011444091796875, -0.001010894775390625, 0.0187225341796875, 0.0050811767578125, 0.005130767822265625, 0.025360107421875, 0.011962890625, 0.006671905517578125, -0.02532958984375, 0.0286865234375, -0.0224609375, 0.0287933349609375, -0.0340576171875, -0.018890380859375, -0.002719879150390625, -0.0163421630859375, 0.01788330078125, -0.005237579345703125, 0.04180908203125, 0.0081634521484375, -0.0220489501953125, 0.041473388671875, 0.02777099609375, 0.033477783203125, -0.03155517578125, -0.00739288330078125, 0.03387451171875, -0.0102386474609375, 0.01322174072265625, 0.0011911392211914062, -0.043060302734375, -0.0609130859375, 0.0004706382751464844, 0.0310211181640625, -0.031585693359375, -0.002849578857421875, -0.0787353515625, -0.004604339599609375, 0.00269317626953125, 0.01291656494140625, -0.05535888671875, 0.0175323486328125, 0.017730712890625, 0.037994384765625, -0.01091766357421875, 0.0027713775634765625, 0.011505126953125, 0.04150390625, -0.0299224853515625, -0.0567626953125, 0.0020294189453125, 0.046966552734375, -0.01335906982421875, 0.042510986328125, 0.040435791015625, -0.057159423828125, -0.00028324127197265625, 0.050079345703125, 0.0587158203125, 0.08697509765625, 0.0254058837890625, -0.042999267578125, -0.025360107421875, 0.0237884521484375, 0.0228729248046875, 0.0170440673828125, 0.00536346435546875, 0.0087432861328125, -0.0114898681640625, 0.01409149169921875, -0.0254669189453125, -0.0038127899169921875, -0.048858642578125, -0.08917236328125, 0.04498291015625, -0.0003821849822998047, -0.041015625, -0.0640869140625, 0.06683349609375, -0.01047515869140625, -0.0017118453979492188, -0.0225372314453125, 0.00911712646484375, 0.0302276611328125, 0.030029296875, 0.007343292236328125, -0.00971221923828125, 0.01580810546875, -0.016632080078125, -0.08251953125, -0.0105743408203125, -0.01276397705078125, 0.005367279052734375, 0.042938232421875, -0.04736328125, 0.055572509765625, 0.0248565673828125, -0.07940673828125, -0.0164642333984375, -0.017669677734375, 0.041900634765625, -0.0200958251953125, -0.045013427734375, -0.0205535888671875, 0.005619049072265625, 0.08465576171875, 0.0777587890625, 0.0195159912109375, -0.056610107421875, 0.0242767333984375, -0.01226806640625, -0.045745849609375, 0.004505157470703125, 0.0294342041015625, -0.046722412109375, -0.0005993843078613281, -0.0037670135498046875, 0.0098114013671875, -0.039520263671875, -0.0014429092407226562, -0.029998779296875, -0.0196380615234375, 0.0171051025390625, 0.04266357421875, -0.038909912109375, 0.005313873291015625, 0.08868408203125, -0.049835205078125, 0.017242431640625, 0.0274658203125, 0.0001735687255859375, 0.058349609375, 0.0245513916015625, 0.036651611328125, -0.00470733642578125, -0.014862060546875, 0.027008056640625, 0.0198516845703125, -0.01458740234375, -0.0187835693359375, -0.0311431884765625, -0.0097808837890625, 0.006076812744140625, 0.00830078125, 0.0075531005859375, 0.0024738311767578125, 0.0168914794921875, -0.006107330322265625, 0.050140380859375, -0.036956787109375, -0.0022182464599609375, -0.01611328125, 0.01343536376953125, -0.00778961181640625, 0.008453369140625, 0.051483154296875, -0.039825439453125, -0.002231597900390625, 0.0233001708984375, 0.0004901885986328125, -0.0538330078125, 0.036285400390625, -0.008514404296875, 0.0271148681640625, 0.0234527587890625 ]
77ebc8f071979092257aef9ae6d95e73eb3e2127
Wordpress Stackexchange Q: Merging two Custom Post Types into one I am new to all this so my ignorance may get in the way. I inherited a WP Blog with Custom Post Types. There are 4 Custom Post Types, out of which 2, Books and Magazines, have the same fields: Custom_Post_Type_Name, Author, City, Address, Categories, Tags, Date. I need to merge these two Custom Post Types into one. More specifically, I need to merge Books into Magazines and rename this new merged Custom Post Type to Publications. Can someone please show me how to do this? A: You can ran a simple query once and remove it from your code, something like this: if (!get_option('updated_my_books')){ global $wpdb; $wpdb->query("UPDATE $wpdb->posts SET post_type = 'publications' WHERE post_type IN('books','magazines')"); update_option('updated_my_books', true); }
Q: Merging two Custom Post Types into one I am new to all this so my ignorance may get in the way. I inherited a WP Blog with Custom Post Types. There are 4 Custom Post Types, out of which 2, Books and Magazines, have the same fields: Custom_Post_Type_Name, Author, City, Address, Categories, Tags, Date. I need to merge these two Custom Post Types into one. More specifically, I need to merge Books into Magazines and rename this new merged Custom Post Type to Publications. Can someone please show me how to do this? A: You can ran a simple query once and remove it from your code, something like this: if (!get_option('updated_my_books')){ global $wpdb; $wpdb->query("UPDATE $wpdb->posts SET post_type = 'publications' WHERE post_type IN('books','magazines')"); update_option('updated_my_books', true); }
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:422629", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/60869" }
[ 0.0287933349609375, -0.003322601318359375, -0.031494140625, -0.03363037109375, -0.00659942626953125, -0.031524658203125, 0.018768310546875, 0.00337982177734375, -0.0094757080078125, -0.0041046142578125, 0.016204833984375, -0.0148162841796875, -0.019805908203125, -0.057464599609375, 0.040496826171875, -0.0281524658203125, 0.03607177734375, -0.00458526611328125, 0.033355712890625, -0.0018339157104492188, 0.022705078125, 0.01319122314453125, 0.0171356201171875, -0.0022487640380859375, 0.017913818359375, -0.041778564453125, 0.0421142578125, 0.006374359130859375, -0.012176513671875, -0.022796630859375, 0.01393890380859375, 0.0235595703125, 0.02117919921875, 0.0107421875, -0.01983642578125, 0.0035572052001953125, 0.0251312255859375, -0.01511383056640625, -0.0162353515625, 0.042205810546875, 0.00931549072265625, 0.022430419921875, -0.00502777099609375, 0.00983428955078125, -0.02288818359375, -0.03558349609375, -0.0010595321655273438, -0.0269012451171875, 0.0181121826171875, -0.04730224609375, -0.0247802734375, -0.017181396484375, -0.0031223297119140625, -0.041412353515625, -0.02764892578125, 0.006381988525390625, 0.0185089111328125, -0.03533935546875, 0.039794921875, -0.01514434814453125, -0.0433349609375, -0.0382080078125, 0.0328369140625, -0.03192138671875, -0.01343536376953125, 0.0174102783203125, -0.00572967529296875, 0.0110626220703125, -0.0102386474609375, -0.0487060546875, -0.00931549072265625, -0.022430419921875, 0.0092926025390625, -0.0267181396484375, 0.0262908935546875, 0.00835418701171875, -0.01091766357421875, -0.002590179443359375, -0.004985809326171875, 0.031341552734375, -0.00391387939453125, 0.031646728515625, -0.0142364501953125, -0.05035400390625, 0.00772857666015625, -0.04522705078125, -0.0139923095703125, 0.005252838134765625, -0.02581787109375, -0.00734710693359375, -0.0164642333984375, -0.066162109375, -0.03961181640625, 0.044189453125, 0.0196075439453125, -0.031219482421875, 0.032684326171875, 0.0631103515625, -0.045928955078125, 0.02386474609375, 0.0014715194702148438, -0.02777099609375, 0.051513671875, -0.04730224609375, 0.053131103515625, 0.0144805908203125, -0.04547119140625, -0.006420135498046875, 0.09881591796875, 0.023101806640625, 0.0094451904296875, 0.07110595703125, -0.01751708984375, -0.0284271240234375, 0.0178375244140625, 0.0280303955078125, -0.024993896484375, 0.06781005859375, 0.003814697265625, 0.04791259765625, 0.0040283203125, 0.0223541259765625, -0.00948333740234375, -0.021240234375, -0.011077880859375, -0.013031005859375, -0.00835418701171875, -0.02001953125, 0.01445770263671875, 0.0155487060546875, -0.03399658203125, 0.00818634033203125, 0.06878662109375, 0.028289794921875, 0.03375244140625, -0.01070404052734375, 0.034576416015625, 0.01129913330078125, -0.0168609619140625, 0.025604248046875, 0.0181884765625, -0.0220947265625, -0.0189208984375, 0.007183074951171875, 0.01971435546875, 0.01226806640625, 0.00646209716796875, 0.0212249755859375, 0.00792694091796875, -0.0250396728515625, 0.0186004638671875, -0.01540374755859375, 0.0343017578125, -0.0099029541015625, -0.0196380615234375, -0.071533203125, 0.017547607421875, -0.0546875, 0.0345458984375, -0.0634765625, 0.0083465576171875, 0.00278472900390625, 0.0108795166015625, -0.033721923828125, -0.038421630859375, 0.0272979736328125, -0.05029296875, -0.0112457275390625, 0.025177001953125, -0.045440673828125, 0.0185089111328125, -0.034027099609375, 0.01319122314453125, 0.00727081298828125, -0.003875732421875, 0.0299835205078125, 0.0283966064453125, -0.0013294219970703125, 0.01519775390625, 0.0114898681640625, -0.0185089111328125, -0.0164642333984375, 0.0628662109375, -0.04217529296875, -0.055084228515625, 0.0283050537109375, 0.0134124755859375, 0.04266357421875, 0.0088348388671875, 0.00347137451171875, 0.039398193359375, 0.0229339599609375, -0.037872314453125, 0.0020275115966796875, -0.038330078125, -0.0067901611328125, 0.0177764892578125, 0.0214385986328125, -0.0187835693359375, 0.01153564453125, -0.026123046875, 0.046112060546875, -0.024017333984375, 0.0303802490234375, -0.00690460205078125, 0.0292510986328125, 0.0029888153076171875, 0.037994384765625, -0.06817626953125, 0.00972747802734375, 0.046844482421875, 0.0015716552734375, -0.048065185546875, 0.011138916015625, 0.0207061767578125, -0.01219940185546875, 0.0179290771484375, -0.01161956787109375, -0.011688232421875, -0.00432586669921875, -0.028106689453125, -0.0006399154663085938, -0.03851318359375, 0.027069091796875, 0.076416015625, -0.0322265625, -0.0011806488037109375, -0.0265655517578125, 0.046600341796875, 0.0083160400390625, -0.05621337890625, 0.0145263671875, 0.027313232421875, -0.008514404296875, -0.02301025390625, 0.017364501953125, 0.030853271484375, -0.0362548828125, 0.00405120849609375, 0.046173095703125, 0.01702880859375, 0.0116424560546875, -0.016357421875, 0.022369384765625, 0.0265655517578125, -0.0103912353515625, 0.008148193359375, 0.013214111328125, 0.0255584716796875, 0.07373046875, -0.0150909423828125, 0.029876708984375, 0.0054931640625, -0.04296875, 0.023193359375, 0.034149169921875, -0.017425537109375, -0.017669677734375, 0.03009033203125, -0.03857421875, 0.01554107666015625, -0.0584716796875, -0.0237579345703125, -0.0162506103515625, 0.055694580078125, 0.0190582275390625, 0.053680419921875, 0.04229736328125, -0.056976318359375, 0.0110931396484375, 0.0076751708984375, 0.019317626953125, 0.0017499923706054688, -0.007801055908203125, -0.0144805908203125, -0.0034942626953125, -0.027191162109375, 0.0219573974609375, -0.0155029296875, -0.01088714599609375, 0.0088653564453125, 0.0128021240234375, -0.053131103515625, 0.00039696693420410156, -0.00007766485214233398, -0.027099609375, -0.0003082752227783203, 0.04901123046875, -0.0252227783203125, -0.04620361328125, -0.0166473388671875, 0.030853271484375, 0.006641387939453125, 0.02081298828125, 0.0108184814453125, -0.0169525146484375, 0.0806884765625, -0.07635498046875, 0.060302734375, -0.0430908203125, 0.03656005859375, 0.06396484375, 0.002960205078125, -0.0129241943359375, -0.0154571533203125, 0.03192138671875, -0.00909423828125, 0.031341552734375, 0.007732391357421875, -0.058624267578125, 0.01922607421875, -0.0031185150146484375, 0.0300750732421875, 0.0313720703125, 0.033416748046875, 0.00562286376953125, 0.0191497802734375, 0.066162109375, 0.0036602020263671875, -0.030364990234375, 0.03125, -0.01078033447265625, 0.0022335052490234375, -0.02044677734375, 0.00530242919921875, -0.003406524658203125, -0.020355224609375, -0.0163421630859375, 0.02276611328125, -0.006427764892578125, -0.07598876953125, -0.041900634765625, -0.0828857421875, -0.03509521484375, -0.003948211669921875, 0.019500732421875, 0.005615234375, 0.02789306640625, 0.003204345703125, -0.0015802383422851562, 0.026947021484375, 0.0443115234375, 0.004741668701171875, -0.00496673583984375, 0.0184173583984375, -0.032928466796875, 0.022705078125, 0.0009312629699707031, 0.0181884765625, 0.04931640625, -0.0220947265625, -0.0059356689453125, -0.0151519775390625, 0.0015630722045898438, 0.018524169921875, 0.014801025390625, 0.003276824951171875, 0.0159454345703125, 0.04510498046875, -0.025543212890625, -0.05133056640625, -0.006076812744140625, -0.043853759765625, -0.018768310546875, 0.01552581787109375, 0.007598876953125, -0.046966552734375, 0.04754638671875, -0.016510009765625, -0.00518035888671875, 0.0166778564453125, -0.04205322265625, 0.04296875, -0.0005822181701660156, -0.00984954833984375, -0.0190277099609375, 0.0106353759765625, -0.01447296142578125, 0.05657958984375, 0.01285552978515625, 0.0177459716796875, 0.0078277587890625, 0.016143798828125, -0.0248565673828125, -0.1060791015625, 0.05535888671875, -0.051910400390625, -0.0212554931640625, -0.031890869140625, -0.0271759033203125, 0.03216552734375, 0.11419677734375, -0.0394287109375, 0.00205230712890625, 0.00029850006103515625, 0.0018148422241210938, -0.00264739990234375, -0.0340576171875, -0.044769287109375, -0.01824951171875, -0.0011720657348632812, 0.037994384765625, 0.01096343994140625, 0.01160430908203125, -0.029541015625, 0.03521728515625, 0.00004988908767700195, -0.01078033447265625, 0.03350830078125, 0.011016845703125, 0.021240234375, 0.044464111328125, -0.002201080322265625, 0.033172607421875, -0.033477783203125, -0.00716400146484375, -0.0888671875, 0.004241943359375, -0.0167236328125, 0.03759765625, -0.00858306884765625, -0.0023021697998046875, -0.01393890380859375, 0.03741455078125, 0.006046295166015625, 0.0029964447021484375, -0.00582122802734375, 0.0001583099365234375, -0.038238525390625, 0.0005483627319335938, -0.00939178466796875, -0.03076171875, -0.00551605224609375, -0.031524658203125, 0.0011444091796875, 0.033660888671875, -0.04730224609375, 0.01507568359375, -0.035675048828125, -0.002376556396484375, 0.0037784576416015625, -0.03472900390625, -0.02313232421875, 0.0035495758056640625, 0.0024662017822265625, -0.006977081298828125, -0.04638671875, -0.0200653076171875, 0.03985595703125, 0.00653839111328125, 0.004302978515625, 0.006145477294921875, 0.06268310546875, 0.00024437904357910156, -0.023773193359375, -0.072509765625, -0.029754638671875, 0.0178375244140625, 0.0214385986328125, 0.0090179443359375, 0.0131378173828125, -0.0017347335815429688, -0.0242156982421875, -0.01690673828125, -0.024169921875, -0.00720977783203125, 0.05584716796875, -0.0052490234375, 0.00719451904296875, -0.013641357421875, -0.0579833984375, 0.035858154296875, 0.03997802734375, -0.00617218017578125, -0.034881591796875, 0.0010080337524414062, 0.054229736328125, -0.03857421875, 0.047210693359375, -0.0094146728515625, -0.01090240478515625, 0.00980377197265625, 0.03851318359375, 0.01031494140625, 0.0150146484375, 0.00537872314453125, -0.01332855224609375, -0.0264434814453125, -0.0034046173095703125, -0.00435638427734375, -0.016998291015625, -0.0042877197265625, 0.01065826416015625, 0.01036834716796875, -0.0105438232421875, -0.0057220458984375, 0.0009646415710449219, 0.0261688232421875, -0.007297515869140625, -0.053466796875, -0.027740478515625, -0.0042572021484375, 0.0279388427734375, 0.01300048828125, 0.01378631591796875, 0.04522705078125, 0.01157379150390625, -0.002471923828125, 0.0035457611083984375, -0.004741668701171875, 0.005908966064453125, -0.03289794921875, -0.004650115966796875, 0.02886962890625, -0.0177459716796875, -0.053436279296875, 0.06011962890625, 0.025970458984375, -0.01554107666015625, -0.0274505615234375, 0.06292724609375, 0.0438232421875, 0.07305908203125, 0.01454925537109375, -0.0249786376953125, -0.02276611328125, 0.05194091796875, -0.057769775390625, -0.032745361328125, -0.01296234130859375, 0.0262451171875, 0.0321044921875, -0.00931549072265625, -0.0181427001953125, 0.0156097412109375, -0.00637054443359375, -0.0261383056640625, -0.01922607421875, 0.0084228515625, -0.001438140869140625, -0.0037937164306640625, 0.004627227783203125, -0.004489898681640625, 0.0267486572265625, -0.0020008087158203125, -0.0091552734375, -0.01520538330078125, 0.01171875, -0.0126953125, -0.003696441650390625, -0.01324462890625, -0.0026092529296875, 0.01088714599609375, -0.03619384765625, -0.022430419921875, -0.0175628662109375, 0.00830841064453125, -0.026611328125, -0.005138397216796875, 0.0058135986328125, -0.0239105224609375, 0.003040313720703125, -0.0263214111328125, 0.004817962646484375, 0.035888671875, 0.0036258697509765625, 0.076171875, 0.01342010498046875, 0.028289794921875, -0.0262298583984375, 0.0010385513305664062, -0.01451873779296875, -0.02001953125, -0.026336669921875, -0.025238037109375, -0.0194091796875, 0.0261077880859375, 0.0270843505859375, -0.006198883056640625, -0.03973388671875, -0.0066070556640625, -0.00084686279296875, 0.00678253173828125, 0.0131683349609375, -0.0094146728515625, 0.05108642578125, 0.0003159046173095703, 0.076171875, -0.002475738525390625, -0.0102081298828125, -0.045745849609375, -0.0157012939453125, -0.01251983642578125, -0.089111328125, -0.0135498046875, 0.00725555419921875, -0.046356201171875, 0.058990478515625, 0.049468994140625, 0.01372528076171875, 0.01763916015625, -0.019378662109375, 0.0047760009765625, -0.01457977294921875, 0.0281524658203125, -0.00830078125, -0.0158233642578125, 0.058258056640625, -0.005290985107421875, 0.026947021484375, 0.007106781005859375, -0.0233612060546875, 0.0007276535034179688, 0.0101776123046875, 0.0182952880859375, 0.0158233642578125, -0.019378662109375, -0.00787353515625, -0.0197906494140625, 0.0018205642700195312, 0.0192718505859375, -0.0307464599609375, 0.023529052734375, 0.02392578125, -0.0116424560546875, 0.0224761962890625, 0.033111572265625, 0.03582763671875, -0.0140380859375, -0.0015726089477539062, 0.00940704345703125, -0.0136260986328125, 0.00484466552734375, 0.043731689453125, 0.061065673828125, -0.08251953125, 0.035797119140625, 0.0316162109375, 0.01190185546875, 0.0234527587890625, 0.026611328125, -0.0223236083984375, -0.0012979507446289062, -0.0606689453125, -0.016937255859375, -0.03271484375, -0.0258636474609375, 0.037078857421875, -0.00011271238327026367, -0.026275634765625, 0.006427764892578125, 0.003509521484375, -0.00989532470703125, 0.012908935546875, -0.01154327392578125, 0.017120361328125, 0.0156402587890625, 0.036956787109375, -0.005893707275390625, -0.01568603515625, -0.0191650390625, 0.01418304443359375, -0.006801605224609375, -0.027557373046875, 0.0027446746826171875, 0.0191192626953125, 0.053497314453125, 0.04888916015625, 0.006824493408203125, -0.00730133056640625, 0.0208740234375, 0.023529052734375, -0.056182861328125, -0.0301361083984375, 0.00659942626953125, 0.007122039794921875, -0.026123046875, 0.03265380859375, -0.03564453125, -0.0161895751953125, 0.002140045166015625, 0.00333404541015625, 0.021728515625, -0.0062103271484375, -0.00963592529296875, 0.035186767578125, 0.04620361328125, -0.010498046875, 0.005100250244140625, 0.0299530029296875, -0.07293701171875, -0.07513427734375, 0.03228759765625, -0.08575439453125, -0.033721923828125, -0.007404327392578125, -0.09014892578125, 0.1136474609375, 0.00876617431640625, 0.0478515625, 0.032989501953125, 0.0238037109375, -0.0423583984375, 0.004627227783203125, -0.033843994140625, 0.0443115234375, 0.003936767578125, 0.035552978515625, -0.0176849365234375, -0.005184173583984375, 0.01465606689453125, 0.01062774658203125, 0.058807373046875, 0.016326904296875, -0.003253936767578125, -0.0152435302734375, 0.0269317626953125, 0.028900146484375, -0.02630615234375, 0.0220947265625, -0.023773193359375, -0.010833740234375, 0.03607177734375, 0.0169677734375, 0.04937744140625, -0.0201263427734375, -0.041748046875, -0.0152435302734375, 0.01117706298828125, 0.03631591796875, -0.04278564453125, 0.01271820068359375, 0.007015228271484375, -0.04461669921875, 0.01161956787109375, 0.0207061767578125, 0.0173187255859375, 0.020233154296875, 0.037139892578125, -0.00914764404296875, 0.05242919921875, -0.0250396728515625, 0.055816650390625, -0.0033473968505859375, 0.0157623291015625, 0.0216064453125, 0.0145416259765625, 0.030517578125, 0.004436492919921875, 0.00154876708984375, -0.0007424354553222656, 0.023101806640625, 0.06597900390625, 0.026336669921875, 0.0213165283203125, -0.0217742919921875, 0.037078857421875, 0.04840087890625, 0.07110595703125, -0.05633544921875, -0.0679931640625, 0.0200347900390625, 0.0080413818359375, -0.0144500732421875, -0.00311279296875, -0.0245208740234375, -0.042205810546875, 0.028717041015625, -0.036224365234375, -0.00370025634765625, 0.0045318603515625, -0.0092010498046875, -0.0242767333984375, -0.0111083984375, 0.011962890625, 0.0106658935546875, -0.07257080078125, 0.0447998046875, 0.00799560546875, 0.06549072265625, 0.0151824951171875, 0.08734130859375, 0.00887298583984375, -0.0325927734375, -0.022064208984375, 0.0016584396362304688, -0.0135345458984375, 0.031280517578125, -0.0633544921875, -0.034332275390625, 0.03082275390625, 0.05462646484375, 0.051605224609375, -0.018585205078125, 0.050628662109375, 0.0361328125, -0.01641845703125, -0.005733489990234375, 0.0428466796875, 0.0008096694946289062, -0.052032470703125, -0.02276611328125, -0.033416748046875, -0.0011148452758789062, -0.01183319091796875, 0.023193359375, 0.030242919921875, -0.01251220703125, -0.002964019775390625, -0.00337982177734375, 0.01526641845703125, -0.0523681640625, 0.044769287109375, 0.042205810546875, 0.0665283203125, 0.0291595458984375, -0.0989990234375, -0.003505706787109375, -0.07781982421875, -0.06622314453125, 0.045257568359375, 0.042724609375, -0.018463134765625, 0.0023403167724609375, -0.0152435302734375, -0.00855255126953125, 0.00504302978515625, 0.0091094970703125, -0.003276824951171875, 0.05029296875, 0.0140838623046875, 0.006763458251953125, -0.08721923828125, -0.039093017578125, -0.0273284912109375, 0.0246429443359375, 0.01065826416015625, 0.041107177734375, 0.021331787109375, 0.0207977294921875, -0.0115203857421875, 0.043121337890625, -0.08770751953125, -0.0048370361328125, -0.0112762451171875, -0.044189453125, 0.01468658447265625, 0.0180206298828125, 0.049835205078125, -0.02593994140625, 0.04901123046875, -0.0599365234375, -0.047393798828125, -0.00696563720703125, 0.03485107421875, -0.0146026611328125, -0.000850677490234375, -0.035064697265625, 0.0207366943359375, 0.0014133453369140625, -0.033233642578125, 0.035430908203125, -0.0234832763671875, 0.00995635986328125, 0.038665771484375, 0.055999755859375, -0.01351165771484375, 0.03814697265625, -0.042572021484375, 0.0662841796875, 0.037445068359375, 0.0196075439453125, -0.06976318359375, 0.0250701904296875, 0.004352569580078125, -0.0333251953125, 0.032623291015625, 0.043365478515625, 0.019073486328125, -0.0516357421875, -0.0037097930908203125, -0.00762939453125, -0.01007080078125, -0.01087188720703125, -0.001064300537109375, -0.0012025833129882812, -0.0276336669921875, 0.0019855499267578125, -0.032684326171875, -0.035980224609375, -0.04052734375, 0.00510406494140625, 0.029388427734375, -0.009185791015625, -0.043121337890625, -0.09332275390625, -0.020965576171875, 0.0232391357421875, 0.0018634796142578125, -0.000058531761169433594, 0.014251708984375, -0.038848876953125, -0.039947509765625, 0.01331329345703125, -0.06695556640625, 0.021270751953125, 0.062164306640625, 0.01666259765625, -0.02093505859375, -0.042205810546875, 0.004131317138671875, -0.047821044921875, 0.01995849609375, 0.0198974609375, -0.040557861328125, 0.0036449432373046875, 0.0172271728515625, 0.054412841796875, 0.052734375, 0.036376953125, -0.04290771484375, -0.00897979736328125, -0.0216217041015625, 0.006237030029296875, -0.057159423828125, 0.018402099609375, -0.09515380859375, -0.0181121826171875, -0.0034694671630859375, 0.0158233642578125, 0.0297698974609375, -0.00762176513671875, -0.0182952880859375, 0.053314208984375, -0.0035114288330078125, -0.0196380615234375, -0.0738525390625, 0.0273284912109375, 0.0104522705078125, 0.027618408203125, -0.0123443603515625, -0.010955810546875, -0.0254669189453125, 0.028076171875, -0.0270843505859375, 0.046600341796875, 0.005435943603515625, -0.003589630126953125, 0.003936767578125, -0.00707244873046875, -0.0087127685546875, -0.0264434814453125, 0.0254058837890625, -0.00444793701171875, 0.010528564453125, 0.0115966796875, -0.047210693359375, -0.004024505615234375, -0.02630615234375, 0.00212860107421875, 0.01070404052734375, -0.0157012939453125, -0.05218505859375, 0.00013566017150878906, 0.039794921875, 0.07177734375, 0.0257110595703125, -0.047821044921875, 0.037811279296875, 0.0032138824462890625, -0.035980224609375, 0.034912109375, 0.01215362548828125, -0.017974853515625, 0.002376556396484375, 0.02423095703125, -0.00910186767578125, -0.022796630859375, 0.0176544189453125, -0.0091552734375, -0.01290130615234375, 0.0258026123046875, -0.01367950439453125, -0.0233612060546875, 0.047821044921875, 0.0159454345703125, -0.0182647705078125, 0.007671356201171875, -0.0179595947265625, -0.0071868896484375, 0.01763916015625, -0.03466796875, -0.01305389404296875, 0.01471710205078125, -0.026885986328125, 0.001972198486328125, -0.003238677978515625, 0.00742340087890625, -0.0204620361328125, 0.018341064453125, 0.0018329620361328125, 0.03509521484375, -0.01153564453125, 0.0116729736328125, -0.004302978515625, 0.0537109375, -0.00865936279296875, 0.0760498046875, 0.006328582763671875, -0.01348876953125, -0.002002716064453125, 0.0097503662109375, 0.019775390625, -0.008392333984375, 0.045562744140625, -0.022735595703125, -0.0012187957763671875, 0.0012493133544921875, -0.034637451171875, -0.05975341796875, -0.0008449554443359375, 0.008026123046875, -0.004665374755859375, 0.013702392578125 ]
31e2f4eedaec537dacf9b8d9763029155df8fdd1
Wordpress Stackexchange Q: Varnish + W3 Total Page Cache I currently have varnish setup on my server. I'm also using the W3 Total Cache plugin to speed up the site through a CDN. Question: Is there any point in using varnish if the pages are being cached and severed through the CDN? (Does this make varnish redundant). A: It may seem a bit of an odd question ... but it does have a bit of an easy answer. I've been using W3 Total Cache on a multi-server setup for WordPress for 6+ months. For this project we decided to use memcached and not varnish. About WC Total Cache and CDN In W3 Total Cache you only sync static files like the theme files, CSS and images to the CDN. What does Varnish do for WordPress? Dynamic content such as requests for posts and pages is managed by WordPress and your WordPress database. Varnish will be used to cache your most commonly served pages. Rather than requesting a post / page and its content from your WordPress database, Varnish stores these pages. This will reduce the number of database queries and give your website a bit of a performance boost.
Q: Varnish + W3 Total Page Cache I currently have varnish setup on my server. I'm also using the W3 Total Cache plugin to speed up the site through a CDN. Question: Is there any point in using varnish if the pages are being cached and severed through the CDN? (Does this make varnish redundant). A: It may seem a bit of an odd question ... but it does have a bit of an easy answer. I've been using W3 Total Cache on a multi-server setup for WordPress for 6+ months. For this project we decided to use memcached and not varnish. About WC Total Cache and CDN In W3 Total Cache you only sync static files like the theme files, CSS and images to the CDN. What does Varnish do for WordPress? Dynamic content such as requests for posts and pages is managed by WordPress and your WordPress database. Varnish will be used to cache your most commonly served pages. Rather than requesting a post / page and its content from your WordPress database, Varnish stores these pages. This will reduce the number of database queries and give your website a bit of a performance boost.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:422681", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61044" }
[ 0.00348663330078125, -0.018035888671875, -0.0640869140625, -0.056854248046875, -0.01280975341796875, -0.036529541015625, -0.0139007568359375, 0.05938720703125, -0.0213470458984375, -0.0008273124694824219, 0.0011129379272460938, -0.011749267578125, -0.01204681396484375, -0.043975830078125, 0.01751708984375, -0.0362548828125, 0.063232421875, -0.007343292236328125, 0.07159423828125, 0.0296630859375, -0.025604248046875, 0.0843505859375, 0.059814453125, 0.0156402587890625, 0.0066680908203125, -0.0172882080078125, 0.034515380859375, -0.0296630859375, 0.004558563232421875, -0.0213623046875, 0.0012540817260742188, 0.01461029052734375, 0.0272979736328125, 0.029052734375, -0.040863037109375, -0.03521728515625, -0.008880615234375, 0.0036334991455078125, -0.0028781890869140625, 0.0145111083984375, 0.007785797119140625, -0.0038661956787109375, 0.0447998046875, 0.0014677047729492188, -0.0089569091796875, 0.0283966064453125, -0.034820556640625, -0.053314208984375, 0.0361328125, 0.01105499267578125, -0.0264129638671875, 0.03082275390625, -0.0158538818359375, 0.00896453857421875, -0.01227569580078125, -0.0238189697265625, -0.0242919921875, 0.04254150390625, 0.045745849609375, -0.0201873779296875, -0.050750732421875, 0.0027256011962890625, 0.0197296142578125, -0.034210205078125, -0.005680084228515625, -0.01274871826171875, 0.0172271728515625, 0.0021514892578125, -0.100830078125, -0.016357421875, 0.0748291015625, -0.05023193359375, 0.01995849609375, -0.01175689697265625, 0.0325927734375, -0.0021800994873046875, -0.01000213623046875, 0.033172607421875, 0.0200958251953125, 0.0265350341796875, -0.0372314453125, -0.006679534912109375, -0.076416015625, -0.0106048583984375, -0.0169525146484375, -0.0023193359375, -0.01837158203125, 0.0025310516357421875, -0.052642822265625, -0.0362548828125, -0.03668212890625, -0.0233612060546875, -0.039154052734375, -0.043121337890625, -0.0186309814453125, -0.01239776611328125, -0.01055908203125, 0.036956787109375, -0.004016876220703125, 0.0211639404296875, -0.021881103515625, -0.02685546875, 0.015533447265625, -0.03009033203125, 0.007442474365234375, 0.06475830078125, -0.0242767333984375, 0.0265960693359375, 0.05548095703125, 0.0212249755859375, 0.01904296875, 0.005802154541015625, 0.0163116455078125, -0.00917816162109375, -0.00848388671875, -0.005252838134765625, -0.0177154541015625, 0.0211334228515625, 0.00016748905181884766, -0.01409912109375, -0.0185089111328125, -0.0007066726684570312, -0.026947021484375, -0.038818359375, 0.0421142578125, 0.009521484375, -0.01296234130859375, 0.0196990966796875, -0.043914794921875, 0.00789642333984375, -0.0272979736328125, 0.0202178955078125, 0.0489501953125, 0.0249481201171875, -0.006542205810546875, -0.007068634033203125, 0.01149749755859375, 0.0117340087890625, 0.0232391357421875, -0.01320648193359375, 0.006381988525390625, -0.0032291412353515625, 0.031951904296875, -0.009033203125, 0.0025844573974609375, -0.00998687744140625, 0.028656005859375, 0.040863037109375, -0.021942138671875, -0.0038242340087890625, 0.0100860595703125, 0.04522705078125, 0.0450439453125, -0.03839111328125, -0.03472900390625, -0.025146484375, -0.066162109375, 0.005001068115234375, -0.0081787109375, 0.01403045654296875, 0.0028896331787109375, -0.0005440711975097656, -0.0003654956817626953, 0.01511383056640625, 0.0008940696716308594, -0.00843048095703125, 0.038177490234375, 0.00994873046875, 0.0223541259765625, 0.0428466796875, 0.0008678436279296875, -0.025390625, -0.009735107421875, 0.038818359375, 0.020111083984375, 0.029388427734375, 0.016326904296875, 0.055145263671875, 0.042755126953125, 0.006591796875, -0.00354766845703125, -0.0281829833984375, 0.1331787109375, -0.03692626953125, -0.028228759765625, -0.018157958984375, 0.0211944580078125, 0.03558349609375, -0.004276275634765625, 0.0311126708984375, 0.0390625, 0.00444793701171875, -0.03179931640625, 0.0321044921875, -0.00653076171875, -0.03289794921875, -0.0124359130859375, -0.0005106925964355469, -0.00037789344787597656, -0.007297515869140625, 0.04168701171875, 0.01519775390625, 0.00510406494140625, 0.00891876220703125, -0.004383087158203125, 0.0226287841796875, -0.0009107589721679688, 0.0178375244140625, 0.00757598876953125, 0.031585693359375, 0.00457000732421875, 0.0203094482421875, -0.043487548828125, 0.0421142578125, -0.009765625, -0.01678466796875, 0.01561737060546875, 0.04290771484375, 0.004302978515625, -0.00313568115234375, 0.03082275390625, -0.05419921875, 0.017822265625, 0.049591064453125, 0.0139007568359375, -0.0075531005859375, -0.00827789306640625, -0.00791168212890625, -0.00881195068359375, 0.01222991943359375, -0.0009016990661621094, 0.0157470703125, 0.0196990966796875, 0.0938720703125, 0.0199127197265625, -0.0079345703125, 0.0186309814453125, -0.07672119140625, 0.0308990478515625, 0.029571533203125, 0.022430419921875, 0.04290771484375, -0.039947509765625, -0.0195770263671875, 0.0390625, -0.00507354736328125, 0.00409698486328125, 0.00608062744140625, 0.01910400390625, 0.0565185546875, 0.01535797119140625, -0.0215301513671875, 0.0030307769775390625, -0.026947021484375, -0.01739501953125, 0.020843505859375, 0.0009484291076660156, 0.0261383056640625, -0.012939453125, 0.0162811279296875, -0.0013856887817382812, 0.028564453125, 0.00295257568359375, -0.0001493692398071289, 0.03179931640625, -0.0369873046875, 0.032318115234375, 0.01470184326171875, 0.023193359375, -0.01470184326171875, 0.0035610198974609375, -0.051849365234375, 0.0389404296875, 0.034149169921875, -0.00901031494140625, 0.03765869140625, -0.00539398193359375, -0.0306243896484375, 0.058349609375, 0.007404327392578125, -0.01439666748046875, -0.005199432373046875, -0.07208251953125, -0.006313323974609375, -0.0123138427734375, -0.048797607421875, -0.0152740478515625, 0.048431396484375, -0.0176544189453125, -0.01715087890625, 0.0020351409912109375, 0.029052734375, 0.0016298294067382812, 0.01068115234375, 0.020477294921875, -0.0103912353515625, 0.03564453125, -0.03277587890625, 0.026702880859375, -0.0209808349609375, 0.041473388671875, 0.06085205078125, -0.0110015869140625, 0.005191802978515625, -0.0007238388061523438, 0.01922607421875, 0.0146942138671875, 0.00640869140625, -0.0031681060791015625, 0.01032257080078125, -0.07806396484375, -0.0291290283203125, 0.002162933349609375, 0.019683837890625, -0.01497650146484375, -0.030853271484375, -0.01995849609375, -0.00897216796875, -0.10577392578125, -0.09918212890625, -0.0275421142578125, -0.0281829833984375, -0.02581787109375, 0.007617950439453125, -0.01372528076171875, 0.0163116455078125, 0.019378662109375, -0.002552032470703125, -0.00598907470703125, -0.0240020751953125, -0.0230255126953125, -0.07977294921875, -0.05389404296875, -0.0631103515625, -0.003070831298828125, -0.003131866455078125, 0.0124969482421875, 0.011871337890625, -0.007843017578125, -0.051849365234375, -0.042236328125, 0.0313720703125, -0.027099609375, -0.047088623046875, 0.01548004150390625, 0.0004851818084716797, 0.049346923828125, 0.00702667236328125, 0.01351165771484375, 0.02239990234375, -0.01500701904296875, -0.040618896484375, -0.03173828125, -0.028167724609375, 0.0099945068359375, 0.0179443359375, 0.0199737548828125, 0.01181793212890625, 0.03936767578125, -0.047821044921875, -0.0311431884765625, 0.012420654296875, -0.0433349609375, -0.023681640625, 0.04437255859375, -0.036712646484375, -0.01678466796875, -0.0227813720703125, 0.0164794921875, 0.00704193115234375, 0.0418701171875, -0.01253509521484375, 0.00891876220703125, -0.02191162109375, -0.007358551025390625, -0.041351318359375, 0.076904296875, 0.0116424560546875, -0.0014104843139648438, 0.05126953125, 0.0305023193359375, 0.0189208984375, -0.00638580322265625, -0.0325927734375, -0.029937744140625, 0.027618408203125, 0.015472412109375, 0.034332275390625, -0.007549285888671875, -0.024139404296875, -0.0083160400390625, 0.0740966796875, 0.006893157958984375, -0.01538848876953125, -0.0283966064453125, -0.01168060302734375, 0.00724029541015625, 0.003948211669921875, -0.0085906982421875, -0.01355743408203125, -0.048309326171875, 0.049407958984375, 0.0235137939453125, 0.0200042724609375, 0.0089111328125, 0.0238037109375, 0.0000546574592590332, -0.035919189453125, 0.01641845703125, -0.050445556640625, 0.0178985595703125, 0.0031299591064453125, 0.00968170166015625, -0.036956787109375, -0.0122222900390625, -0.037567138671875, 0.00470733642578125, 0.0027065277099609375, -0.00798797607421875, 0.00551605224609375, 0.036102294921875, -0.045654296875, 0.0233154296875, 0.0252685546875, -0.00231170654296875, 0.04815673828125, 0.01549530029296875, 0.016937255859375, 0.01023101806640625, -0.0171966552734375, 0.03240966796875, -0.04046630859375, 0.006687164306640625, 0.007198333740234375, -0.018707275390625, -0.05438232421875, -0.039825439453125, -0.07086181640625, 0.0116119384765625, -0.044403076171875, -0.038543701171875, -0.043426513671875, 0.036041259765625, -0.001934051513671875, 0.01213836669921875, 0.01074981689453125, -0.0208587646484375, 0.022247314453125, 0.04425048828125, -0.0146484375, 0.0178680419921875, 0.002803802490234375, 0.05499267578125, 0.0140533447265625, -0.0257415771484375, 0.00612640380859375, 0.0209197998046875, 0.036865234375, -0.051666259765625, 0.068115234375, 0.0244903564453125, -0.02728271484375, 0.0882568359375, -0.011627197265625, 0.0214691162109375, -0.00991058349609375, 0.0023899078369140625, -0.0199432373046875, -0.06427001953125, 0.052490234375, -0.0147247314453125, 0.01496124267578125, 0.060028076171875, 0.0248565673828125, -0.022247314453125, 0.006351470947265625, 0.0178985595703125, 0.03338623046875, -0.07366943359375, -0.033660888671875, -0.0594482421875, 0.00860595703125, -0.02191162109375, 0.0654296875, 0.056884765625, -0.0191497802734375, 0.08746337890625, 0.07354736328125, -0.00475311279296875, 0.0714111328125, 0.004299163818359375, 0.00818634033203125, 0.0139007568359375, 0.0382080078125, -0.041412353515625, 0.044097900390625, -0.006683349609375, 0.048309326171875, -0.01229095458984375, -0.044525146484375, 0.0005831718444824219, -0.021697998046875, -0.04205322265625, 0.0213165283203125, 0.0086669921875, 0.044586181640625, -0.0419921875, -0.0165863037109375, -0.0247650146484375, -0.0174560546875, -0.0572509765625, -0.05462646484375, 0.0181884765625, -0.02081298828125, 0.0017728805541992188, 0.00811004638671875, 0.059661865234375, -0.0265350341796875, 0.031463623046875, -0.00640869140625, 0.02008056640625, -0.0046234130859375, 0.031982421875, 0.00720977783203125, 0.0168914794921875, 0.01552581787109375, -0.01220703125, 0.01280975341796875, -0.046661376953125, -0.01361846923828125, 0.023712158203125, 0.0682373046875, -0.0213775634765625, -0.042022705078125, 0.013427734375, -0.0300750732421875, 0.001956939697265625, -0.005908966064453125, -0.051055908203125, -0.01454925537109375, -0.0218353271484375, 0.007518768310546875, 0.055145263671875, 0.003955841064453125, 0.006671905517578125, 0.01959228515625, -0.007694244384765625, 0.01505279541015625, 0.0352783203125, -0.0018453598022460938, -0.031829833984375, -0.03009033203125, -0.0068359375, -0.029541015625, 0.020111083984375, -0.0318603515625, 0.0173797607421875, -0.029998779296875, -0.0132598876953125, 0.03729248046875, -0.03289794921875, 0.0487060546875, -0.015716552734375, -0.0230712890625, -0.0156402587890625, 0.019989013671875, 0.00658416748046875, 0.0110626220703125, -0.00244903564453125, 0.009796142578125, -0.027679443359375, -0.015625, 0.033935546875, -0.017547607421875, -0.0249786376953125, -0.0302276611328125, -0.0028743743896484375, -0.0171661376953125, -0.01020050048828125, -0.0028667449951171875, -0.0240631103515625, 0.045623779296875, 0.03900146484375, -0.003589630126953125, -0.00904083251953125, 0.020355224609375, -0.0105743408203125, -0.00949859619140625, 0.00927734375, 0.0237274169921875, 0.01535797119140625, -0.01502227783203125, 0.01044464111328125, -0.048736572265625, -0.031646728515625, 0.005207061767578125, -0.08514404296875, 0.01396942138671875, 0.044647216796875, 0.0046539306640625, 0.06634521484375, 0.00850677490234375, 0.003421783447265625, 0.006786346435546875, -0.053619384765625, -0.003879547119140625, 0.032989501953125, 0.04327392578125, 0.046142578125, 0.05841064453125, -0.0259857177734375, -0.0498046875, 0.021575927734375, 0.024871826171875, 0.045257568359375, -0.044891357421875, -0.01041412353515625, 0.01641845703125, 0.019378662109375, -0.00365447998046875, 0.01016998291015625, 0.0193634033203125, 0.01180267333984375, -0.0010814666748046875, 0.007442474365234375, -0.007526397705078125, -0.0189666748046875, 0.01529693603515625, -0.0048828125, -0.007354736328125, 0.0014324188232421875, -0.01983642578125, 0.0272674560546875, 0.062286376953125, 0.04937744140625, -0.056365966796875, -0.01457977294921875, -0.024810791015625, -0.065673828125, 0.011016845703125, 0.0167083740234375, -0.035614013671875, -0.04107666015625, 0.01505279541015625, -0.0003952980041503906, -0.005908966064453125, 0.0080718994140625, 0.0188751220703125, 0.0005059242248535156, -0.00582122802734375, 0.057647705078125, 0.004436492919921875, -0.035797119140625, -0.035675048828125, 0.036041259765625, -0.034423828125, -0.016143798828125, 0.0087890625, 0.00870513916015625, -0.006900787353515625, 0.0174560546875, 0.07281494140625, -0.00820159912109375, 0.01129150390625, -0.0015859603881835938, 0.036346435546875, 0.007778167724609375, 0.0650634765625, -0.01021575927734375, 0.0302581787109375, 0.044464111328125, 0.02386474609375, -0.000028371810913085938, -0.027618408203125, 0.006671905517578125, -0.0069122314453125, -0.049774169921875, 0.0142669677734375, -0.0230865478515625, -0.01078033447265625, -0.00433349609375, 0.059173583984375, 0.064697265625, -0.033721923828125, -0.01099395751953125, 0.031463623046875, 0.0248870849609375, -0.01506805419921875, -0.005859375, 0.004360198974609375, -0.034942626953125, 0.007328033447265625, -0.0008873939514160156, 0.0117645263671875, 0.0154876708984375, 0.016571044921875, -0.06707763671875, 0.1221923828125, 0.048797607421875, 0.0167694091796875, -0.0004982948303222656, 0.04791259765625, -0.048614501953125, 0.0176239013671875, -0.01096343994140625, 0.055206298828125, -0.08502197265625, 0.054931640625, -0.053680419921875, 0.0131072998046875, 0.0202789306640625, 0.00408935546875, -0.0019006729125976562, 0.019073486328125, -0.06475830078125, -0.018707275390625, 0.0018968582153320312, 0.014739990234375, 0.012939453125, 0.0589599609375, -0.0160064697265625, 0.0010957717895507812, -0.024383544921875, -0.0088653564453125, 0.03094482421875, -0.031005859375, -0.060211181640625, 0.00634002685546875, 0.0150299072265625, 0.02545166015625, 0.01910400390625, 0.06744384765625, -0.050079345703125, 0.01580810546875, 0.053985595703125, -0.0032176971435546875, 0.0040435791015625, 0.0016260147094726562, 0.0012493133544921875, -0.0254364013671875, -0.026214599609375, -0.00811767578125, 0.0296478271484375, 0.0101470947265625, 0.0204620361328125, 0.04296875, 0.0169830322265625, 0.025482177734375, -0.011444091796875, 0.005878448486328125, -0.01009368896484375, -0.0085601806640625, 0.0193023681640625, 0.007160186767578125, 0.038543701171875, 0.00537109375, -0.00833892822265625, -0.029541015625, 0.00844573974609375, -0.01514434814453125, -0.0548095703125, 0.00435638427734375, 0.0023345947265625, 0.0278472900390625, -0.0011892318725585938, 0.0325927734375, -0.039825439453125, -0.0008492469787597656, 0.08416748046875, -0.0099639892578125, 0.01415252685546875, -0.048309326171875, 0.032135009765625, 0.0869140625, -0.0003535747528076172, 0.056732177734375, -0.00502777099609375, 0.00011402368545532227, 0.00872802734375, 0.044158935546875, 0.0021266937255859375, 0.0438232421875, -0.04888916015625, -0.01555633544921875, -0.02703857421875, 0.0300140380859375, 0.0009784698486328125, 0.04534912109375, -0.0631103515625, -0.0467529296875, 0.0496826171875, 0.04913330078125, -0.0124053955078125, 0.01983642578125, 0.039520263671875, 0.037628173828125, 0.0006394386291503906, -0.0165863037109375, 0.04296875, -0.01236724853515625, 0.018585205078125, 0.025634765625, -0.035888671875, 0.01056671142578125, -0.0408935546875, -0.030853271484375, -0.00437164306640625, 0.04034423828125, -0.00438690185546875, 0.002017974853515625, 0.004756927490234375, -0.0272064208984375, 0.0545654296875, -0.01084136962890625, 0.035980224609375, 0.0006051063537597656, 0.01141357421875, -0.0113372802734375, -0.03765869140625, 0.032257080078125, 0.005672454833984375, 0.0247955322265625, 0.05047607421875, -0.0033550262451171875, 0.005084991455078125, -0.04742431640625, 0.06396484375, 0.00028824806213378906, -0.024017333984375, 0.0042724609375, 0.01922607421875, -0.044525146484375, -0.01412200927734375, -0.0022983551025390625, 0.03192138671875, 0.027435302734375, -0.017547607421875, 0.03363037109375, -0.00728607177734375, -0.003986358642578125, 0.0667724609375, -0.04833984375, 0.06646728515625, 0.05120849609375, -0.0156707763671875, -0.01033782958984375, -0.005916595458984375, -0.01904296875, -0.0482177734375, -0.00004118680953979492, 0.037078857421875, -0.02423095703125, 0.0035495758056640625, -0.017913818359375, 0.0257568359375, -0.0002503395080566406, 0.01242828369140625, -0.0226898193359375, -0.0139617919921875, 0.0135955810546875, 0.016326904296875, 0.0036945343017578125, -0.0149688720703125, -0.0271759033203125, 0.057525634765625, 0.0203094482421875, -0.0248565673828125, 0.045562744140625, -0.07464599609375, 0.057891845703125, 0.032257080078125, 0.03759765625, -0.01275634765625, 0.0263824462890625, -0.0024433135986328125, -0.0154571533203125, 0.0273590087890625, -0.00501251220703125, 0.026336669921875, -0.043182373046875, -0.020782470703125, 0.0222320556640625, 0.007602691650390625, -0.0137786865234375, 0.00946044921875, -0.0010318756103515625, -0.0110931396484375, 0.0079803466796875, -0.005527496337890625, -0.032318115234375, -0.031982421875, 0.0033855438232421875, 0.01512908935546875, -0.005039215087890625, -0.0262603759765625, -0.0491943359375, -0.00091552734375, 0.034515380859375, 0.0152587890625, -0.07623291015625, 0.04962158203125, -0.0318603515625, 0.01812744140625, -0.006732940673828125, -0.017822265625, -0.034576416015625, -0.04888916015625, -0.004657745361328125, -0.0328369140625, -0.072509765625, 0.062286376953125, -0.02099609375, -0.0119781494140625, 0.005390167236328125, 0.015716552734375, 0.0124359130859375, -0.0467529296875, -0.0239410400390625, 0.01110076904296875, -0.05145263671875, 0.01131439208984375, 0.056854248046875, -0.01555633544921875, -0.037322998046875, -0.03240966796875, -0.011932373046875, 0.01166534423828125, -0.004627227783203125, -0.03216552734375, 0.006473541259765625, 0.00376129150390625, -0.0290069580078125, -0.032318115234375, 0.027130126953125, -0.002765655517578125, -0.02001953125, -0.07501220703125, -0.003505706787109375, -0.0014514923095703125, 0.00426483154296875, -0.03814697265625, -0.006565093994140625, -0.0399169921875, 0.043670654296875, 0.0267181396484375, 0.01531982421875, 0.028350830078125, 0.01422119140625, -0.06884765625, 0.0137481689453125, -0.0102386474609375, 0.03802490234375, -0.00858306884765625, 0.00968170166015625, 0.039215087890625, 0.03765869140625, -0.003814697265625, 0.0294342041015625, 0.032073974609375, 0.007061004638671875, 0.0158233642578125, -0.0168609619140625, -0.033355712890625, -0.010284423828125, 0.034820556640625, 0.0347900390625, 0.0209503173828125, -0.026702880859375, -0.0305633544921875, 0.01324462890625, -0.034637451171875, -0.004810333251953125, 0.0258941650390625, -0.053619384765625, 0.004543304443359375, -0.0277252197265625, -0.017333984375, 0.013702392578125, -0.00799560546875, -0.0198822021484375, 0.00621795654296875, 0.01494598388671875, -0.030609130859375, 0.00827789306640625, 0.01140594482421875, -0.00992584228515625, 0.005340576171875, 0.00518798828125, -0.0212860107421875, 0.01055908203125, -0.0203857421875, 0.0277099609375, -0.00785064697265625, -0.0114288330078125, -0.006458282470703125, 0.037872314453125, -0.00832366943359375, 0.046722412109375, -0.041351318359375, -0.0152740478515625, -0.00244140625, 0.0156097412109375, 0.0038852691650390625, 0.023284912109375, -0.0271453857421875, -0.0036525726318359375, -0.0013360977172851562, 0.0202484130859375, 0.0117034912109375, -0.0175323486328125, -0.004634857177734375, 0.037872314453125, -0.020843505859375, -0.02337646484375, 0.007965087890625, -0.043792724609375, -0.002536773681640625, 0.00677490234375, -0.02099609375, -0.05084228515625, 0.031585693359375, -0.085693359375, -0.0069732666015625, 0.02288818359375 ]
71072ef77fdbe3d2d9b110fc595aaf0a3b5429ed
Wordpress Stackexchange Q: Why does WordPress use serialize rather than json_encode for the options table? I have a basic understanding of serialize (I come across it often when I'm migrating WordPress installs) and I just discovered json_encode. Given that serialize causes so much trouble with replacing strings in the database (eg. editing an optinos field directly), why does WordPress prefer serialize to (the seemingly similar) json_encode, which doesn't insert the string length into the stored value. My first thought was that it may provide some security or error-checking benefits - WordPress will ignore the option if the string lengths are incorrect.. but I'm interested in a qualified explanation :) A: See here for a good discussion on the reasoning behind not changing it to JSON: https://core.trac.wordpress.org/ticket/23753
Q: Why does WordPress use serialize rather than json_encode for the options table? I have a basic understanding of serialize (I come across it often when I'm migrating WordPress installs) and I just discovered json_encode. Given that serialize causes so much trouble with replacing strings in the database (eg. editing an optinos field directly), why does WordPress prefer serialize to (the seemingly similar) json_encode, which doesn't insert the string length into the stored value. My first thought was that it may provide some security or error-checking benefits - WordPress will ignore the option if the string lengths are incorrect.. but I'm interested in a qualified explanation :) A: See here for a good discussion on the reasoning behind not changing it to JSON: https://core.trac.wordpress.org/ticket/23753 A: * *serialize representation can be stored in text and reversed *JSON representation can be stored in text but cannot always be precisely reversed Run this example: $query = new WP_Query(); var_dump( $query ); var_dump( unserialize( serialize( $query ) ) ); var_dump( json_decode( json_encode( $query ) ) ); * *After going through serialize accurate WP_Query object is re-created. *After going through JSON you get stdClass object. In a nutshell serialize is native part of PHP and has a lot of synergy with manipulating data in it. JSON is language-agnostic format that is convenient for systems talking to each other, but far from comprehensive and cannot do things in PHP which serialize does without second thought.
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:422691", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61088" }
[ 0.03021240234375, -0.00888824462890625, -0.029541015625, -0.0498046875, 0.005023956298828125, -0.043365478515625, 0.0208892822265625, 0.0121307373046875, -0.0035552978515625, 0.006618499755859375, -0.0038661956787109375, -0.004795074462890625, -0.005321502685546875, -0.0335693359375, -0.00644683837890625, -0.03594970703125, 0.0180511474609375, -0.01934814453125, 0.00611114501953125, -0.02667236328125, 0.0017032623291015625, -0.021759033203125, 0.03314208984375, 0.01374053955078125, 0.054290771484375, -0.048675537109375, 0.041839599609375, -0.031768798828125, 0.053924560546875, 0.01232147216796875, 0.0369873046875, -0.040679931640625, 0.03741455078125, 0.0288543701171875, -0.0278778076171875, 0.0308685302734375, 0.0159912109375, -0.00203704833984375, 0.01580810546875, 0.02581787109375, 0.035888671875, -0.0192413330078125, 0.09124755859375, -0.0090484619140625, 0.02874755859375, 0.00579833984375, 0.048431396484375, -0.04193115234375, -0.0187530517578125, -0.00875091552734375, 0.03509521484375, 0.006114959716796875, 0.052032470703125, -0.00009196996688842773, -0.005825042724609375, 0.0083465576171875, -0.004108428955078125, 0.05615234375, 0.0247955322265625, 0.01073455810546875, -0.0390625, 0.046295166015625, -0.00838470458984375, -0.020233154296875, 0.038665771484375, -0.01471710205078125, -0.031036376953125, 0.025543212890625, -0.04266357421875, 0.047821044921875, 0.04864501953125, -0.058380126953125, 0.019775390625, -0.03326416015625, -0.0175323486328125, 0.01494598388671875, 0.0012331008911132812, 0.0083160400390625, 0.0169830322265625, -0.0248260498046875, -0.01399993896484375, 0.0033855438232421875, 0.045562744140625, -0.03753662109375, -0.0009174346923828125, -0.0369873046875, -0.0173187255859375, 0.01262664794921875, 0.024078369140625, -0.0190582275390625, -0.00363922119140625, -0.009979248046875, -0.00445556640625, 0.05511474609375, -0.00872802734375, -0.005096435546875, -0.042510986328125, -0.05084228515625, -0.00955963134765625, 0.0237884521484375, 0.03802490234375, -0.0482177734375, 0.08172607421875, -0.0190277099609375, 0.01535797119140625, -0.0092010498046875, 0.0011806488037109375, -0.01739501953125, 0.0438232421875, 0.02105712890625, -0.039276123046875, 0.0592041015625, -0.02276611328125, -0.056671142578125, 0.044952392578125, 0.0207061767578125, -0.052154541015625, 0.07049560546875, 0.0229339599609375, 0.00115203857421875, -0.004138946533203125, 0.00322723388671875, -0.046356201171875, -0.005420684814453125, -0.00937652587890625, -0.045989990234375, -0.0236358642578125, 0.049896240234375, -0.023529052734375, 0.011566162109375, -0.0292510986328125, 0.0243988037109375, 0.07904052734375, 0.035980224609375, 0.01016998291015625, -0.0115814208984375, -0.00710296630859375, -0.036773681640625, -0.0100860595703125, 0.043212890625, -0.02178955078125, -0.039886474609375, 0.04229736328125, -0.01617431640625, 0.0144805908203125, 0.01427459716796875, 0.0313720703125, 0.01678466796875, -0.016937255859375, -0.037353515625, -0.01084136962890625, 0.05865478515625, 0.036102294921875, -0.00023663043975830078, -0.0125732421875, 0.0022907257080078125, 0.010711669921875, -0.01354217529296875, -0.0281829833984375, -0.0189666748046875, -0.0765380859375, -0.02056884765625, 0.032440185546875, -0.063232421875, -0.04730224609375, 0.01739501953125, -0.0034999847412109375, -0.0019931793212890625, 0.01806640625, 0.0323486328125, -0.01042938232421875, -0.00983428955078125, -0.0032367706298828125, -0.0245361328125, -0.0161895751953125, -0.014190673828125, -0.037109375, -0.0030059814453125, 0.0457763671875, 0.006649017333984375, 0.0098724365234375, -0.0254364013671875, 0.05474853515625, 0.004077911376953125, -0.050079345703125, 0.08074951171875, 0.01873779296875, 0.09674072265625, -0.01554107666015625, 0.011199951171875, 0.033660888671875, 0.050567626953125, -0.0350341796875, 0.050933837890625, 0.0020542144775390625, -0.041412353515625, 0.0037975311279296875, -0.0031566619873046875, -0.00870513916015625, -0.04217529296875, -0.032623291015625, 0.01776123046875, -0.0085296630859375, -0.0036449432373046875, -0.043212890625, -0.005893707275390625, -0.01148223876953125, 0.037750244140625, -0.033416748046875, 0.0188140869140625, 0.03680419921875, 0.0254058837890625, -0.061279296875, 0.052154541015625, 0.0131072998046875, 0.00835418701171875, -0.0219268798828125, 0.052825927734375, 0.0019311904907226562, 0.0137786865234375, 0.007511138916015625, -0.0318603515625, 0.01470184326171875, 0.00675201416015625, 0.0067901611328125, -0.0119781494140625, -0.01053619384765625, -0.01271820068359375, 0.03814697265625, -0.0243988037109375, 0.05194091796875, 0.03582763671875, 0.0280609130859375, 0.007568359375, -0.0162353515625, -0.0084228515625, -0.0121002197265625, -0.078125, -0.006656646728515625, 0.07037353515625, 0.011688232421875, 0.040496826171875, -0.007007598876953125, -0.0012378692626953125, 0.012420654296875, -0.0214385986328125, 0.01605224609375, -0.0161590576171875, -0.009490966796875, 0.0007238388061523438, 0.0061492919921875, -0.0263519287109375, 0.00873565673828125, -0.08026123046875, 0.01125335693359375, 0.00803375244140625, -0.087158203125, -0.051483154296875, 0.016021728515625, 0.007678985595703125, 0.00879669189453125, 0.00664520263671875, 0.051300048828125, -0.026458740234375, 0.02777099609375, 0.0080718994140625, 0.0208282470703125, 0.0114898681640625, -0.03375244140625, 0.023895263671875, 0.0255279541015625, -0.0250701904296875, 0.008453369140625, 0.060760498046875, 0.0041351318359375, 0.032806396484375, -0.038482666015625, -0.01666259765625, 0.0279998779296875, 0.0487060546875, 0.0225372314453125, 0.03228759765625, -0.030242919921875, -0.0179595947265625, 0.03875732421875, -0.01126861572265625, -0.02569580078125, 0.019927978515625, -0.0177154541015625, -0.0128021240234375, 0.02880859375, 0.04083251953125, 0.004360198974609375, -0.0012359619140625, 0.018798828125, -0.01428985595703125, 0.0540771484375, 0.0124664306640625, -0.00391387939453125, 0.0016012191772460938, 0.045684814453125, 0.0408935546875, -0.00234222412109375, -0.0179290771484375, 0.004291534423828125, 0.0038928985595703125, 0.0261688232421875, -0.019500732421875, -0.024444580078125, -0.00641632080078125, -0.052642822265625, -0.0035037994384765625, 0.031005859375, 0.03564453125, 0.0260772705078125, -0.0243682861328125, -0.00312042236328125, 0.043487548828125, -0.059906005859375, -0.0921630859375, -0.028350830078125, -0.0789794921875, -0.0241546630859375, 0.01197052001953125, -0.034881591796875, 0.0160369873046875, 0.0191192626953125, 0.00860595703125, -0.0135498046875, -0.031890869140625, -0.0335693359375, -0.058074951171875, -0.060882568359375, -0.0009431838989257812, -0.0022106170654296875, 0.01812744140625, 0.007755279541015625, -0.0225830078125, 0.002811431884765625, -0.01456451416015625, 0.019012451171875, 0.0028705596923828125, -0.0264434814453125, -0.0274810791015625, 0.04052734375, -0.031982421875, -0.0537109375, 0.0041656494140625, 0.033721923828125, 0.0071258544921875, -0.031524658203125, -0.006195068359375, -0.002437591552734375, 0.029693603515625, 0.006622314453125, 0.029998779296875, 0.01531219482421875, 0.050506591796875, 0.0158233642578125, -0.0126800537109375, -0.0199737548828125, 0.0152130126953125, -0.03253173828125, -0.00923919677734375, 0.007381439208984375, -0.01052093505859375, -0.0079803466796875, 0.006134033203125, 0.00833892822265625, -0.024200439453125, -0.0040283203125, -0.006458282470703125, 0.0196685791015625, -0.007221221923828125, 0.0008378028869628906, -0.00518035888671875, 0.05194091796875, -0.017425537109375, -0.011199951171875, 0.0240325927734375, -0.01739501953125, -0.010589599609375, -0.031402587890625, -0.037567138671875, -0.09649658203125, 0.046539306640625, -0.007465362548828125, 0.029449462890625, -0.046783447265625, -0.027679443359375, 0.0005259513854980469, 0.13037109375, -0.0008897781372070312, 0.005908966064453125, -0.0227203369140625, 0.0021381378173828125, -0.03759765625, -0.0296478271484375, -0.050933837890625, 0.007457733154296875, 0.043548583984375, -0.0254058837890625, -0.0292510986328125, -0.005161285400390625, -0.02203369140625, 0.039764404296875, 0.024810791015625, -0.0006241798400878906, 0.00653076171875, -0.04754638671875, 0.0255584716796875, -0.01251220703125, 0.030517578125, -0.05206298828125, 0.0312347412109375, -0.070556640625, -0.08392333984375, -0.020355224609375, 0.0212554931640625, 0.059478759765625, -0.01306915283203125, -0.00958251953125, -0.0211944580078125, 0.0482177734375, -0.01593017578125, 0.0029144287109375, -0.0201873779296875, 0.0186309814453125, -0.03717041015625, 0.0308990478515625, 0.0033969879150390625, -0.009429931640625, -0.020904541015625, -0.021331787109375, -0.01480865478515625, -0.01224517822265625, -0.0251617431640625, -0.0445556640625, -0.00919342041015625, -0.0164794921875, -0.07025146484375, -0.041595458984375, -0.03271484375, 0.01215362548828125, -0.04449462890625, 0.0222320556640625, -0.041473388671875, -0.06976318359375, 0.0809326171875, 0.02154541015625, 0.006671905517578125, -0.026641845703125, 0.0654296875, -0.00875091552734375, -0.046600341796875, -0.023590087890625, -0.00951385498046875, -0.00189971923828125, -0.006076812744140625, 0.04803466796875, -0.0038166046142578125, 0.00998687744140625, 0.053314208984375, -0.03466796875, 0.006160736083984375, -0.0299072265625, 0.01806640625, -0.01091766357421875, -0.006893157958984375, 0.0052642822265625, -0.035003662109375, 0.046844482421875, 0.0224151611328125, 0.01727294921875, -0.003414154052734375, 0.047637939453125, -0.004360198974609375, -0.01117706298828125, -0.037841796875, 0.003551483154296875, -0.06036376953125, 0.022979736328125, -0.053863525390625, 0.020263671875, 0.0135955810546875, 0.00009316205978393555, 0.037750244140625, 0.01605224609375, 0.0159454345703125, -0.0001920461654663086, 0.004589080810546875, -0.0279388427734375, 0.04498291015625, -0.02520751953125, -0.01102447509765625, -0.01488494873046875, -0.01395416259765625, 0.0416259765625, -0.02252197265625, -0.06549072265625, -0.00585174560546875, -0.0220489501953125, 0.00091552734375, 0.0277557373046875, 0.006137847900390625, 0.00424957275390625, 0.0201416015625, -0.02593994140625, -0.01456451416015625, -0.024017333984375, 0.034454345703125, -0.036224365234375, 0.04852294921875, 0.00687408447265625, 0.00426483154296875, 0.002819061279296875, 0.044769287109375, 0.007076263427734375, 0.0231781005859375, -0.017578125, 0.0296630859375, 0.005680084228515625, 0.0552978515625, 0.017913818359375, -0.029052734375, 0.016815185546875, 0.013214111328125, -0.01019287109375, -0.043975830078125, 0.01226043701171875, -0.00799560546875, 0.0238189697265625, -0.03955078125, -0.046661376953125, 0.06964111328125, -0.0219573974609375, -0.033935546875, -0.006435394287109375, -0.0030117034912109375, -0.007640838623046875, 0.001354217529296875, 0.027587890625, 0.01165771484375, 0.03668212890625, 0.019683837890625, -0.0012264251708984375, 0.01971435546875, 0.0226593017578125, -0.01849365234375, 0.0262603759765625, -0.041778564453125, -0.03131103515625, -0.002838134765625, -0.003353118896484375, -0.036407470703125, -0.0159912109375, -0.054046630859375, 0.01059722900390625, -0.007442474365234375, 0.0195159912109375, -0.0133209228515625, 0.048675537109375, -0.0254669189453125, -0.00867462158203125, -0.0091094970703125, 0.003955841064453125, 0.04388427734375, 0.0303802490234375, -0.00617218017578125, -0.0074310302734375, -0.0197906494140625, -0.00226593017578125, 0.0304718017578125, -0.0015535354614257812, -0.024993896484375, -0.025421142578125, -0.013946533203125, 0.0068817138671875, 0.00289154052734375, 0.00724029541015625, -0.00042819976806640625, 0.024688720703125, -0.01284027099609375, 0.0031719207763671875, -0.0269775390625, 0.06494140625, 0.01531219482421875, 0.009765625, -0.003124237060546875, 0.02587890625, -0.01233673095703125, 0.0098724365234375, -0.00444793701171875, -0.0290679931640625, -0.0022563934326171875, -0.0196380615234375, 0.006229400634765625, 0.01187896728515625, 0.0423583984375, 0.00588226318359375, 0.053619384765625, -0.00977325439453125, 0.00220489501953125, -0.004711151123046875, 0.001873016357421875, -0.0179901123046875, 0.0552978515625, 0.015838623046875, 0.00634765625, -0.0178680419921875, -0.04119873046875, -0.0251922607421875, -0.0110626220703125, 0.02093505859375, -0.02490234375, 0.0171966552734375, 0.0007224082946777344, 0.02899169921875, 0.049957275390625, -0.01287841796875, 0.00783538818359375, 0.03192138671875, -0.0140838623046875, -0.0294952392578125, 0.0067138671875, -0.04400634765625, 0.015167236328125, 0.041748046875, 0.01139068603515625, -0.0247802734375, 0.006866455078125, -0.01812744140625, 0.02398681640625, 0.0631103515625, 0.090576171875, -0.09613037109375, 0.019378662109375, 0.02642822265625, 0.0139007568359375, 0.045745849609375, -0.0107269287109375, -0.005008697509765625, 0.0015039443969726562, 0.032318115234375, -0.0300445556640625, -0.036407470703125, 0.006565093994140625, -0.018829345703125, -0.0144195556640625, -0.006008148193359375, 0.0082244873046875, 0.0232696533203125, -0.019073486328125, 0.046966552734375, 0.01197052001953125, 0.03790283203125, 0.0010728836059570312, -0.0189666748046875, -0.006061553955078125, -0.05731201171875, -0.0882568359375, -0.054443359375, -0.03424072265625, -0.019500732421875, -0.04266357421875, -0.0340576171875, 0.055023193359375, 0.04736328125, -0.0241546630859375, -0.03045654296875, 0.0330810546875, -0.029998779296875, 0.019134521484375, -0.01363372802734375, 0.022430419921875, 0.04901123046875, -0.07330322265625, 0.01526641845703125, -0.0198516845703125, 0.0194549560546875, -0.02734375, 0.003185272216796875, 0.101806640625, -0.053009033203125, -0.0065460205078125, 0.02557373046875, 0.04730224609375, -0.01268768310546875, -0.030548095703125, 0.00151824951171875, -0.045196533203125, -0.0181884765625, -0.029754638671875, -0.060150146484375, 0.004909515380859375, -0.047882080078125, -0.03216552734375, 0.08642578125, 0.01311492919921875, -0.01666259765625, -0.0236358642578125, 0.05682373046875, 0.0108184814453125, 0.054412841796875, 0.01165008544921875, 0.00010675191879272461, -0.037841796875, 0.004364013671875, -0.0001367330551147461, 0.01385498046875, 0.0008406639099121094, 0.0316162109375, 0.04132080078125, 0.01230621337890625, -0.0125732421875, 0.021026611328125, 0.042724609375, 0.01873779296875, -0.0128936767578125, 0.043365478515625, 0.0241546630859375, 0.012847900390625, 0.06573486328125, -0.0296478271484375, 0.00033926963806152344, 0.0550537109375, 0.040435791015625, 0.066650390625, 0.00637054443359375, 0.01117706298828125, 0.01090240478515625, 0.01396942138671875, -0.04052734375, 0.0124664306640625, 0.019683837890625, 0.0028781890869140625, -0.047607421875, 0.05230712890625, 0.0262908935546875, -0.048187255859375, -0.033233642578125, -0.040191650390625, 0.037353515625, 0.0157318115234375, 0.022216796875, 0.0254364013671875, 0.01513671875, 0.01000213623046875, 0.0013408660888671875, 0.00891876220703125, 0.0153045654296875, -0.0290069580078125, 0.0037784576416015625, 0.03509521484375, 0.0338134765625, -0.0155487060546875, -0.0218963623046875, 0.0706787109375, 0.03851318359375, -0.016998291015625, -0.039703369140625, 0.004497528076171875, 0.0106964111328125, 0.025421142578125, 0.004695892333984375, 0.052215576171875, -0.01708984375, 0.0016927719116210938, -0.0005168914794921875, 0.00919342041015625, 0.0088043212890625, 0.018310546875, 0.0160675048828125, 0.040435791015625, -0.04803466796875, 0.01241302490234375, -0.02740478515625, 0.003917694091796875, -0.004993438720703125, 0.039764404296875, 0.02557373046875, 0.0182342529296875, -0.00626373291015625, -0.016387939453125, -0.0238037109375, 0.029510498046875, 0.03564453125, 0.0231170654296875, -0.0005655288696289062, 0.025390625, 0.00868988037109375, 0.023223876953125, 0.01641845703125, 0.036865234375, 0.05535888671875, 0.061614990234375, 0.00844573974609375, 0.00445556640625, 0.07611083984375, -0.00493621826171875, -0.058380126953125, -0.02484130859375, -0.002986907958984375, 0.055816650390625, 0.0273284912109375, 0.004100799560546875, 0.044677734375, 0.040740966796875, -0.027618408203125, 0.037322998046875, -0.0001016855239868164, -0.032989501953125, 0.0291290283203125, 0.022247314453125, 0.0633544921875, 0.016265869140625, 0.03997802734375, 0.0009160041809082031, 0.0283203125, -0.01934814453125, -0.034393310546875, 0.0210113525390625, -0.00429534912109375, 0.035125732421875, -0.013458251953125, -0.043792724609375, -0.0155792236328125, 0.0594482421875, -0.00882720947265625, 0.0031108856201171875, 0.016998291015625, -0.0178375244140625, -0.0682373046875, -0.01434326171875, -0.0277252197265625, 0.0227203369140625, -0.0091705322265625, 0.053436279296875, 0.0097198486328125, 0.0125274658203125, -0.040802001953125, -0.0278778076171875, 0.0109405517578125, -0.0144805908203125, -0.012237548828125, 0.0302581787109375, -0.004573822021484375, -0.01163482666015625, 0.0355224609375, -0.00739288330078125, 0.0307464599609375, -0.09075927734375, -0.02313232421875, -0.0095367431640625, 0.025054931640625, -0.02386474609375, -0.001522064208984375, -0.0438232421875, -0.03082275390625, -0.001239776611328125, -0.005725860595703125, -0.009002685546875, -0.02264404296875, 0.032073974609375, 0.02655029296875, -0.005084991455078125, -0.0236968994140625, 0.00693511962890625, -0.04595947265625, 0.00759124755859375, 0.015716552734375, 0.0174102783203125, 0.023101806640625, 0.036407470703125, -0.00334930419921875, 0.038360595703125, -0.0003657341003417969, 0.03277587890625, 0.03875732421875, -0.01053619384765625, 0.01343536376953125, 0.0137176513671875, 0.03857421875, 0.0263214111328125, 0.005672454833984375, 0.005035400390625, -0.00978851318359375, -0.03314208984375, 0.0118865966796875, 0.002071380615234375, -0.03369140625, -0.03466796875, 0.01032257080078125, -0.02301025390625, -0.017608642578125, -0.016326904296875, -0.044342041015625, 0.010009765625, -0.01654052734375, 0.01708984375, -0.0183258056640625, -0.042205810546875, -0.043548583984375, -0.01294708251953125, -0.0167999267578125, -0.00908660888671875, 0.002460479736328125, -0.0172271728515625, -0.03369140625, -0.03875732421875, 0.01491546630859375, -0.003810882568359375, 0.034637451171875, 0.023712158203125, -0.04315185546875, -0.0280914306640625, 0.0478515625, 0.04205322265625, 0.0804443359375, 0.01396942138671875, -0.0035686492919921875, 0.024383544921875, 0.0233154296875, -0.0259552001953125, -0.08062744140625, -0.0114898681640625, -0.006443023681640625, 0.04095458984375, -0.01953125, 0.006870269775390625, 0.01259613037109375, -0.03729248046875, -0.06768798828125, 0.07073974609375, -0.0236663818359375, -0.02716064453125, -0.0014619827270507812, -0.0294342041015625, -0.0254974365234375, 0.0079803466796875, -0.00933837890625, -0.0105133056640625, -0.0187835693359375, 0.0302886962890625, -0.0019550323486328125, 0.02496337890625, 0.0045318603515625, -0.012969970703125, -0.06256103515625, 0.019744873046875, 0.01273345947265625, 0.01557159423828125, 0.0020656585693359375, -0.022430419921875, 0.04522705078125, 0.041900634765625, -0.013336181640625, 0.0240478515625, 0.00921630859375, 0.0066375732421875, -0.00688934326171875, -0.0038967132568359375, -0.00453948974609375, 0.029510498046875, 0.065673828125, 0.045013427734375, 0.01033782958984375, -0.055511474609375, -0.043212890625, -0.0247802734375, -0.0016527175903320312, -0.0153961181640625, 0.0122222900390625, -0.078125, -0.00888824462890625, 0.0232391357421875, 0.00849151611328125, 0.031646728515625, -0.002765655517578125, -0.0110321044921875, -0.01055908203125, 0.01050567626953125, -0.0208892822265625, -0.048736572265625, -0.022064208984375, 0.006866455078125, -0.02166748046875, -0.01010894775390625, 0.0080413818359375, 0.022491455078125, -0.0229034423828125, 0.037139892578125, -0.0180816650390625, -0.00873565673828125, -0.028106689453125, 0.0206756591796875, -0.0121307373046875, 0.056915283203125, -0.039520263671875, -0.0035800933837890625, -0.00033783912658691406, 0.033935546875, 0.0102386474609375, 0.048126220703125, -0.0157318115234375, 0.055511474609375, 0.0243072509765625, -0.03997802734375, -0.0205841064453125, -0.0308837890625, -0.036865234375, 0.0243072509765625, 0.010772705078125, -0.01047515869140625, 0.0565185546875, -0.034393310546875, 0.01337432861328125, 0.00537872314453125, -0.045440673828125, -0.0100860595703125, -0.0116424560546875, -0.009124755859375, -0.0263824462890625, 0.000675201416015625 ]
b7c05fae5411d003dbb1f9781cfa3b9ea4cad31e
Wordpress Stackexchange Q: Change slug with custom field I want to change the slug of a post with a custom field. In example, if the custom field is "keyword" my post link will become: mysite.com/keyword. If the custom field is empty, i want to generate a random key like mysite.com/xV5f7A. How can i do that without change the wordpress core? Any ideas are welcome! Thanks. A: The slug is saved on the wp_posts while custom fields are on the wp_posts_meta. If you want to make it like that you can use an action hook on save_post that will get the value of the custom fields and saves it as the post slug. Here is the code add_action('save_post', 'set_slug'); function set_slug($post_id){ $new_slug = get_post_meta($post_id,'custom-slug', true); $post_args = array( 'ID' => $post_id, 'post_name' => $new_slug, ); wp_update_post($post_args); }
Q: Change slug with custom field I want to change the slug of a post with a custom field. In example, if the custom field is "keyword" my post link will become: mysite.com/keyword. If the custom field is empty, i want to generate a random key like mysite.com/xV5f7A. How can i do that without change the wordpress core? Any ideas are welcome! Thanks. A: The slug is saved on the wp_posts while custom fields are on the wp_posts_meta. If you want to make it like that you can use an action hook on save_post that will get the value of the custom fields and saves it as the post slug. Here is the code add_action('save_post', 'set_slug'); function set_slug($post_id){ $new_slug = get_post_meta($post_id,'custom-slug', true); $post_args = array( 'ID' => $post_id, 'post_name' => $new_slug, ); wp_update_post($post_args); }
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:422709", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61148" }
[ 0.02703857421875, -0.0210113525390625, 0.010955810546875, -0.00286865234375, -0.0216217041015625, -0.01065826416015625, 0.0311737060546875, -0.01983642578125, -0.036834716796875, 0.006999969482421875, 0.01404571533203125, 0.01056671142578125, -0.0187835693359375, -0.038726806640625, 0.032257080078125, -0.0263214111328125, 0.033538818359375, -0.00726318359375, 0.0163421630859375, -0.025177001953125, 0.0308990478515625, -0.003559112548828125, 0.00402069091796875, 0.0616455078125, 0.014923095703125, -0.033843994140625, 0.02874755859375, -0.0210418701171875, 0.0078582763671875, -0.0196533203125, 0.023345947265625, 0.006622314453125, 0.023406982421875, -0.0008411407470703125, 0.000052094459533691406, 0.007518768310546875, 0.035003662109375, -0.01215362548828125, 0.00020933151245117188, 0.031158447265625, 0.03436279296875, -0.01517486572265625, -0.017791748046875, 0.0207366943359375, -0.007389068603515625, -0.021759033203125, 0.0218505859375, -0.041656494140625, 0.034210205078125, 0.01013946533203125, -0.0225677490234375, 0.034912109375, -0.0213623046875, -0.01544952392578125, -0.0004024505615234375, -0.007843017578125, -0.043212890625, 0.01490020751953125, 0.0293426513671875, 0.00461578369140625, 0.008880615234375, -0.0003898143768310547, 0.00635528564453125, 0.00817108154296875, 0.01555633544921875, -0.00403594970703125, -0.0291900634765625, 0.028167724609375, -0.046844482421875, -0.0011930465698242188, 0.02215576171875, -0.051177978515625, 0.015655517578125, -0.0172882080078125, -0.0243988037109375, -0.04400634765625, -0.002208709716796875, -0.052825927734375, 0.001262664794921875, 0.003692626953125, 0.00641632080078125, -0.034027099609375, 0.009002685546875, -0.0159759521484375, -0.0220794677734375, -0.0163116455078125, -0.0168304443359375, 0.005710601806640625, 0.00830841064453125, -0.011322021484375, -0.00876617431640625, 0.0014133453369140625, -0.021728515625, 0.023895263671875, 0.017333984375, -0.02752685546875, 0.01904296875, 0.00511932373046875, 0.0081024169921875, 0.0005702972412109375, 0.0298614501953125, -0.055755615234375, 0.036163330078125, -0.00945281982421875, -0.00022017955780029297, 0.06329345703125, 0.01486968994140625, -0.0140838623046875, 0.003917694091796875, -0.002490997314453125, 0.0060577392578125, -0.02301025390625, 0.004268646240234375, 0.0037841796875, -0.047454833984375, 0.0037746429443359375, -0.016021728515625, -0.03826904296875, -0.016326904296875, -0.0159454345703125, 0.013763427734375, 0.02008056640625, 0.05316162109375, -0.049713134765625, -0.00716400146484375, -0.0184783935546875, -0.04461669921875, -0.048553466796875, 0.007465362548828125, 0.01904296875, -0.05804443359375, -0.01087188720703125, 0.12890625, 0.08123779296875, 0.06890869140625, -0.0300750732421875, -0.005062103271484375, -0.0330810546875, -0.0216064453125, 0.0343017578125, -0.0203399658203125, -0.029144287109375, 0.0150146484375, -0.0237884521484375, 0.050537109375, 0.03411865234375, 0.00942230224609375, 0.00838470458984375, 0.02239990234375, -0.022705078125, 0.02020263671875, -0.0207672119140625, 0.026885986328125, 0.0188446044921875, -0.00820159912109375, -0.00998687744140625, 0.032440185546875, -0.0181121826171875, -0.01013946533203125, -0.0275115966796875, 0.0180511474609375, -0.0240020751953125, 0.00960540771484375, -0.047607421875, -0.050079345703125, 0.030029296875, -0.07049560546875, 0.0006861686706542969, 0.02197265625, -0.016265869140625, 0.028411865234375, 0.0224151611328125, 0.00677490234375, 0.0054779052734375, 0.007503509521484375, -0.00676727294921875, 0.0021724700927734375, 0.0219879150390625, 0.022308349609375, 0.038848876953125, 0.00608062744140625, -0.03179931640625, 0.0521240234375, -0.0186767578125, -0.0478515625, 0.042510986328125, -0.00553131103515625, 0.051483154296875, 0.039093017578125, 0.01285552978515625, -0.01629638671875, -0.007007598876953125, -0.0181732177734375, 0.0279541015625, 0.0267486572265625, -0.0101165771484375, -0.029266357421875, -0.0040435791015625, 0.0000022649765014648438, -0.0283203125, -0.0347900390625, 0.0090789794921875, -0.0165863037109375, 0.050537109375, -0.0004830360412597656, -0.0023632049560546875, -0.0010137557983398438, 0.0247650146484375, -0.00978851318359375, 0.0220489501953125, 0.00981903076171875, -0.01025390625, -0.00473785400390625, -0.0216522216796875, -0.032257080078125, -0.041595458984375, 0.0196685791015625, -0.02392578125, -0.0113525390625, 0.0002040863037109375, -0.0190887451171875, 0.0037841796875, -0.05072021484375, 0.0021076202392578125, 0.038299560546875, -0.032135009765625, 0.001026153564453125, -0.0277252197265625, 0.02203369140625, -0.003459930419921875, -0.0367431640625, 0.0261993408203125, 0.049224853515625, 0.00637054443359375, -0.042266845703125, 0.007076263427734375, 0.01392364501953125, -0.0350341796875, -0.007244110107421875, 0.05419921875, 0.0242156982421875, 0.003597259521484375, -0.0299224853515625, -0.019073486328125, 0.0419921875, 0.040771484375, 0.038665771484375, -0.0247955322265625, 0.0287628173828125, 0.05303955078125, 0.00040459632873535156, 0.00077056884765625, 0.0260772705078125, -0.002044677734375, 0.0134735107421875, 0.042510986328125, -0.03961181640625, -0.05987548828125, 0.023895263671875, -0.002208709716796875, 0.01251983642578125, -0.04376220703125, -0.0157928466796875, -0.021697998046875, -0.0255279541015625, 0.0254364013671875, 0.0024700164794921875, 0.007358551025390625, -0.035308837890625, 0.01512908935546875, 0.0286102294921875, -0.00832366943359375, -0.004848480224609375, 0.019683837890625, 0.0015430450439453125, -0.00638580322265625, -0.0297698974609375, 0.004314422607421875, 0.006168365478515625, 0.00460052490234375, -0.03179931640625, 0.0291290283203125, -0.001163482666015625, -0.0180206298828125, -0.0283966064453125, -0.07696533203125, 0.01267242431640625, -0.01503753662109375, 0.013641357421875, -0.0125274658203125, 0.0160064697265625, 0.0279388427734375, -0.01288604736328125, 0.03912353515625, -0.004894256591796875, -0.01898193359375, 0.0111541748046875, -0.03594970703125, 0.01922607421875, -0.01541900634765625, 0.035675048828125, 0.063720703125, 0.01336669921875, 0.005779266357421875, 0.0005211830139160156, -0.0031299591064453125, -0.031646728515625, 0.02191162109375, -0.0009946823120117188, -0.0313720703125, -0.04925537109375, -0.0075225830078125, 0.0168914794921875, 0.0010538101196289062, 0.01322174072265625, -0.028564453125, 0.005550384521484375, 0.0075531005859375, -0.086669921875, -0.07244873046875, 0.0111236572265625, -0.030242919921875, -0.04364013671875, -0.005031585693359375, -0.0273284912109375, 0.007205963134765625, 0.0126495361328125, -0.007457733154296875, -0.006866455078125, -0.03887939453125, -0.042694091796875, -0.046356201171875, -0.05401611328125, 0.0093994140625, 0.007747650146484375, 0.00865936279296875, 0.01387786865234375, 0.0168609619140625, -0.0011682510375976562, -0.01401519775390625, 0.0233306884765625, 0.025604248046875, -0.017913818359375, -0.0115509033203125, -0.0010976791381835938, -0.041290283203125, 0.0322265625, -0.0131988525390625, 0.08624267578125, 0.034210205078125, -0.01198577880859375, -0.005397796630859375, -0.0311126708984375, 0.0213470458984375, 0.005710601806640625, 0.0088958740234375, 0.028900146484375, 0.00757598876953125, 0.022552490234375, -0.0290679931640625, -0.0120086669921875, -0.029052734375, -0.0294647216796875, 0.041290283203125, -0.001712799072265625, 0.01136016845703125, -0.0264434814453125, 0.054107666015625, -0.003238677978515625, -0.00832366943359375, 0.02593994140625, -0.0203857421875, 0.0283203125, -0.0033206939697265625, -0.00795745849609375, -0.0221099853515625, 0.0151824951171875, -0.011322021484375, 0.01385498046875, -0.0027523040771484375, 0.0279998779296875, 0.004726409912109375, -0.01165771484375, -0.04595947265625, -0.06683349609375, 0.039825439453125, -0.044281005859375, 0.0095367431640625, -0.0308074951171875, -0.0290679931640625, -0.00064849853515625, 0.09259033203125, -0.02117919921875, -0.00962066650390625, -0.0182342529296875, -0.01910400390625, 0.01910400390625, -0.004161834716796875, -0.03875732421875, -0.0054779052734375, -0.04913330078125, 0.019927978515625, 0.01184844970703125, -0.0175018310546875, -0.0280914306640625, 0.052154541015625, -0.033660888671875, -0.01320648193359375, 0.0501708984375, -0.0093841552734375, 0.005401611328125, 0.0181121826171875, 0.0031108856201171875, 0.01374053955078125, -0.043243408203125, 0.00865936279296875, -0.07354736328125, -0.0242462158203125, 0.01727294921875, 0.05560302734375, 0.017303466796875, -0.045989990234375, 0.0197296142578125, 0.0653076171875, 0.0304412841796875, 0.049041748046875, 0.0233154296875, -0.0172882080078125, 0.0150146484375, 0.02630615234375, 0.048828125, -0.0097198486328125, 0.00397491455078125, -0.022613525390625, -0.0467529296875, 0.01136016845703125, -0.0207977294921875, 0.0307769775390625, 0.0274200439453125, -0.037750244140625, -0.015838623046875, -0.017059326171875, -0.007904052734375, 0.004764556884765625, -0.004993438720703125, -0.0128326416015625, -0.00798797607421875, -0.023345947265625, 0.056427001953125, -0.0087738037109375, -0.004024505615234375, -0.00875091552734375, 0.08514404296875, 0.008331298828125, -0.0224456787109375, -0.017547607421875, -0.0302581787109375, 0.007232666015625, 0.00897216796875, 0.031585693359375, -0.0021877288818359375, 0.003719329833984375, 0.030731201171875, -0.021331787109375, -0.037322998046875, -0.030120849609375, 0.06787109375, -0.0038433074951171875, 0.010406494140625, -0.006816864013671875, -0.052734375, 0.0653076171875, 0.0276031494140625, -0.021820068359375, -0.004947662353515625, -0.036102294921875, 0.04840087890625, 0.0040130615234375, 0.0121002197265625, -0.06304931640625, -0.07220458984375, 0.0318603515625, 0.00856781005859375, -0.01076507568359375, 0.00656890869140625, 0.004123687744140625, 0.0487060546875, -0.0006337165832519531, 0.0050811767578125, -0.04840087890625, -0.037109375, 0.0020732879638671875, 0.005352020263671875, 0.00330352783203125, 0.019378662109375, -0.035980224609375, -0.0020961761474609375, 0.04779052734375, 0.007808685302734375, -0.047454833984375, 0.000980377197265625, 0.0004436969757080078, -0.01055145263671875, 0.008270263671875, 0.00873565673828125, 0.0172576904296875, 0.02874755859375, -0.0196533203125, 0.014190673828125, -0.01273345947265625, 0.036712646484375, -0.039337158203125, 0.031402587890625, 0.0204620361328125, -0.020263671875, -0.0305633544921875, 0.041961669921875, 0.050933837890625, -0.0224609375, -0.0271148681640625, 0.030120849609375, 0.059844970703125, 0.0278778076171875, 0.022705078125, -0.0186309814453125, -0.00934600830078125, -0.01031494140625, -0.0025424957275390625, -0.0088043212890625, 0.0036602020263671875, 0.0009360313415527344, 0.00946044921875, -0.0239105224609375, -0.01316070556640625, 0.0305328369140625, -0.012664794921875, 0.0121002197265625, 0.00560760498046875, -0.03515625, -0.037567138671875, 0.01038360595703125, 0.0291595458984375, 0.006805419921875, -0.037628173828125, -0.00910186767578125, 0.01499176025390625, -0.03173828125, 0.032684326171875, -0.01380157470703125, 0.023773193359375, -0.020782470703125, -0.030731201171875, 0.01284027099609375, -0.011138916015625, -0.011688232421875, 0.0011034011840820312, -0.014862060546875, -0.0281829833984375, -0.01360321044921875, 0.06756591796875, -0.0007648468017578125, 0.03961181640625, -0.04638671875, -0.006134033203125, 0.030487060546875, -0.0021076202392578125, 0.039306640625, -0.00466156005859375, -0.033447265625, 0.016571044921875, -0.030853271484375, 0.00045490264892578125, 0.0501708984375, -0.024383544921875, -0.01549530029296875, -0.039459228515625, 0.0243682861328125, 0.0186767578125, 0.0310516357421875, -0.009765625, -0.0219879150390625, 0.0004410743713378906, 0.0163116455078125, 0.0021915435791015625, -0.0184478759765625, 0.01201629638671875, 0.033416748046875, -0.00852203369140625, -0.00007528066635131836, -0.030548095703125, -0.00887298583984375, -0.00453948974609375, -0.035980224609375, -0.035308837890625, -0.001209259033203125, 0.033966064453125, -0.005214691162109375, 0.04656982421875, 0.053802490234375, 0.007236480712890625, 0.0156707763671875, -0.007080078125, 0.01483917236328125, -0.0288238525390625, 0.01241302490234375, -0.020233154296875, 0.00914764404296875, 0.014984130859375, -0.033538818359375, 0.0361328125, 0.0200653076171875, 0.0175628662109375, 0.0223236083984375, -0.04815673828125, 0.042877197265625, 0.01611328125, -0.039581298828125, 0.043212890625, 0.043304443359375, 0.0273590087890625, 0.04388427734375, 0.0038471221923828125, 0.03912353515625, 0.00313568115234375, -0.015655517578125, 0.0034961700439453125, -0.0028743743896484375, 0.0594482421875, -0.005481719970703125, -0.0215606689453125, 0.03472900390625, -0.034149169921875, 0.004390716552734375, 0.0496826171875, 0.046112060546875, -0.08221435546875, 0.0130615234375, 0.006343841552734375, -0.0132598876953125, 0.023956298828125, 0.0308837890625, -0.01375579833984375, 0.0300140380859375, -0.00246429443359375, -0.07818603515625, -0.0188446044921875, 0.0117034912109375, 0.0019178390502929688, 0.0006771087646484375, -0.0177001953125, 0.039642333984375, 0.0014133453369140625, -0.00244903564453125, -0.01000213623046875, -0.0059051513671875, 0.005634307861328125, -0.0226593017578125, -0.01904296875, 0.01541900634765625, -0.0203704833984375, -0.05548095703125, 0.0301055908203125, -0.04400634765625, 0.01495361328125, 0.048858642578125, 0.035888671875, 0.04248046875, 0.046478271484375, 0.0122833251953125, 0.007720947265625, 0.00439453125, 0.005725860595703125, 0.014007568359375, -0.0380859375, -0.02374267578125, 0.0289459228515625, -0.0184783935546875, 0.00917816162109375, 0.00513458251953125, -0.0201263427734375, -0.033111572265625, -0.028900146484375, 0.09747314453125, -0.028076171875, -0.0323486328125, -0.00910186767578125, 0.037689208984375, 0.00632476806640625, -0.007785797119140625, 0.015777587890625, -0.063232421875, -0.0274505615234375, 0.0011358261108398438, -0.032196044921875, -0.012603759765625, -0.020904541015625, -0.07806396484375, 0.1761474609375, 0.026123046875, 0.03790283203125, -0.01873779296875, 0.07550048828125, -0.035797119140625, 0.0587158203125, -0.058746337890625, 0.0712890625, -0.0074615478515625, 0.045928955078125, -0.103515625, -0.01934814453125, -0.01352691650390625, 0.0298614501953125, 0.07269287109375, 0.0248565673828125, -0.007678985595703125, 0.01358795166015625, 0.044189453125, -0.01568603515625, -0.053314208984375, 0.0567626953125, -0.01140594482421875, 0.0411376953125, 0.042724609375, -0.045989990234375, 0.01010894775390625, 0.028564453125, -0.03369140625, 0.0238800048828125, 0.00978851318359375, 0.0007982254028320312, -0.0011777877807617188, -0.0054779052734375, -0.044677734375, 0.0016050338745117188, 0.028594970703125, 0.0140228271484375, 0.0015230178833007812, 0.05206298828125, 0.06011962890625, -0.0149078369140625, -0.0119171142578125, -0.0290679931640625, 0.055023193359375, 0.006046295166015625, 0.0029296875, -0.0076904296875, 0.005413055419921875, 0.04681396484375, -0.0294647216796875, -0.01149749755859375, 0.0137176513671875, -0.01074981689453125, 0.08929443359375, 0.03515625, 0.00980377197265625, -0.01157379150390625, 0.06732177734375, 0.01464080810546875, 0.085693359375, -0.08905029296875, -0.0225982666015625, 0.013092041015625, -0.0087432861328125, -0.004512786865234375, -0.019927978515625, -0.01580810546875, 0.00437164306640625, 0.00873565673828125, -0.0704345703125, 0.0188751220703125, 0.0595703125, 0.018218994140625, -0.01198577880859375, -0.0054473876953125, -0.06744384765625, -0.0080108642578125, -0.06488037109375, 0.01399993896484375, 0.019927978515625, 0.06341552734375, 0.034454345703125, 0.043609619140625, 0.02349853515625, -0.025115966796875, -0.003963470458984375, 0.037811279296875, 0.0254364013671875, -0.001850128173828125, -0.0006823539733886719, -0.01432037353515625, 0.0084991455078125, 0.0036029815673828125, 0.0235748291015625, -0.0081939697265625, 0.037200927734375, 0.01016998291015625, -0.045257568359375, -0.014129638671875, 0.0106201171875, -0.0293426513671875, 0.034210205078125, -0.014617919921875, 0.01026153564453125, 0.0030193328857421875, -0.01068115234375, -0.04193115234375, -0.007205963134765625, 0.050201416015625, 0.01006317138671875, 0.0494384765625, 0.00986480712890625, 0.0007905960083007812, 0.042572021484375, 0.03009033203125, 0.0628662109375, 0.06707763671875, -0.041229248046875, 0.01800537109375, -0.043212890625, -0.1083984375, 0.0234527587890625, 0.04486083984375, -0.029815673828125, 0.01251983642578125, -0.0246429443359375, -0.006786346435546875, 0.03363037109375, -0.011810302734375, -0.0194854736328125, 0.004199981689453125, 0.0164947509765625, -0.016265869140625, -0.045379638671875, -0.021270751953125, 0.032806396484375, -0.00331878662109375, -0.04046630859375, 0.06414794921875, -0.0038585662841796875, -0.0287322998046875, -0.00439453125, -0.02593994140625, 0.020111083984375, -0.00926971435546875, 0.0274200439453125, 0.00592041015625, 0.00252532958984375, -0.01404571533203125, 0.01171112060546875, -0.004795074462890625, 0.043701171875, -0.0240325927734375, -0.01381683349609375, -0.018310546875, 0.0254364013671875, -0.0130615234375, -0.00696563720703125, -0.03668212890625, -0.036529541015625, -0.034210205078125, -0.006763458251953125, 0.0095062255859375, -0.0209503173828125, -0.035247802734375, 0.03546142578125, -0.0159759521484375, -0.032501220703125, 0.0217437744140625, -0.055908203125, 0.031890869140625, 0.0555419921875, -0.008270263671875, -0.0024204254150390625, 0.0290985107421875, -0.0113372802734375, 0.0265350341796875, 0.005138397216796875, 0.0328369140625, 0.01268768310546875, -0.00421142578125, -0.0129852294921875, -0.03033447265625, 0.006793975830078125, -0.019256591796875, 0.0007872581481933594, -0.027435302734375, 0.013916015625, 0.0082244873046875, -0.05780029296875, -0.0269927978515625, -0.040679931640625, -0.0010166168212890625, 0.04425048828125, -0.04266357421875, -0.01383209228515625, -0.0672607421875, -0.007137298583984375, 0.05218505859375, -0.00024187564849853516, -0.0251312255859375, 0.00778961181640625, -0.0294647216796875, 0.035003662109375, 0.003143310546875, -0.004787445068359375, 0.00777435302734375, 0.055908203125, -0.0292205810546875, -0.01444244384765625, -0.0242156982421875, 0.0003826618194580078, -0.03363037109375, 0.02972412109375, 0.07501220703125, -0.031463623046875, -0.064453125, 0.0005502700805664062, 0.019866943359375, 0.042877197265625, -0.01302337646484375, -0.0197906494140625, 0.039886474609375, -0.01116943359375, -0.0276641845703125, -0.05084228515625, 0.0142364501953125, -0.0595703125, 0.006473541259765625, -0.022430419921875, 0.007717132568359375, 0.01137542724609375, -0.042022705078125, -0.0526123046875, 0.0246124267578125, -0.0189361572265625, -0.0276947021484375, -0.052032470703125, 0.016082763671875, 0.004817962646484375, 0.037750244140625, -0.0028934478759765625, -0.0245208740234375, -0.040374755859375, -0.0014009475708007812, 0.0179595947265625, 0.0672607421875, -0.0224151611328125, 0.07220458984375, -0.02655029296875, 0.061431884765625, 0.0131378173828125, 0.01433563232421875, 0.042022705078125, -0.02960205078125, 0.010162353515625, 0.0149993896484375, -0.07867431640625, -0.05181884765625, -0.033477783203125, 0.003383636474609375, -0.03594970703125, -0.035400390625, -0.033843994140625, -0.0090179443359375, 0.0992431640625, 0.072998046875, 0.015350341796875, -0.0423583984375, -0.0426025390625, -0.0220947265625, -0.0372314453125, -0.016754150390625, 0.0472412109375, -0.11474609375, -0.013580322265625, 0.045867919921875, 0.0168609619140625, -0.0264892578125, -0.0018014907836914062, 0.0059967041015625, -0.0162811279296875, 0.035186767578125, -0.0096435546875, 0.01047515869140625, 0.042083740234375, 0.067626953125, -0.043487548828125, 0.02532958984375, -0.0219879150390625, -0.0011844635009765625, 0.041900634765625, -0.03411865234375, -0.005245208740234375, -0.0209503173828125, -0.033416748046875, 0.0177459716796875, -0.01947021484375, 0.043426513671875, -0.0305633544921875, -0.025421142578125, -0.038726806640625, 0.02911376953125, 0.0095977783203125, 0.0263519287109375, -0.01971435546875, 0.016571044921875, 0.027252197265625, 0.050933837890625, -0.0196075439453125, -0.026031494140625, 0.00041937828063964844, 0.0023822784423828125, -0.035491943359375, 0.01959228515625, -0.004913330078125, -0.0217437744140625, 0.0050048828125, 0.0018033981323242188, -0.018341064453125, -0.0179595947265625, -0.01471710205078125, 0.001895904541015625, -0.0141448974609375, 0.007183074951171875 ]
ba48023af7bc5a1574ef8e2db803a28df1bfc209
Wordpress Stackexchange Q: How to let authors revise other authors drafts, but keep them from publishing? I want to give all authors permission to edit other authors drafts, but not publish them. It seems like the only way to give authors access to drafts by other authors is to grant them 'edit_others_posts', but this capability also lets them publish the posts. Is there any other way to do this? A: I'm using a plugin called Advanced Access Manager to enable certain permissions to different userlevels/groups, this should be able to do exactly what you are asking.
Q: How to let authors revise other authors drafts, but keep them from publishing? I want to give all authors permission to edit other authors drafts, but not publish them. It seems like the only way to give authors access to drafts by other authors is to grant them 'edit_others_posts', but this capability also lets them publish the posts. Is there any other way to do this? A: I'm using a plugin called Advanced Access Manager to enable certain permissions to different userlevels/groups, this should be able to do exactly what you are asking. A: I'd say you could hook the publish event and check there if the current user is the author of the post to publish (that should be just a few lines of plug-in code). Should be a whole lot more lightweight then the other 2 suggestions - while doing exactly what you want. A: Approval Workflow is meant to create a workflow process in WordPress. This plugin adds a box to the post edit screen when a user does not have publish permissions for that post type. It also allows you to set a WordPress role as the approvers. Note: this role must have publish permissions. The approvers get notified by email when someone has submitted something to the workflow. This works on WordPress Multisite too.
wordpress
{ "language": "en", "length": 220, "provenance": "stackexchange_00019.jsonl.gz:422722", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61192" }
[ -0.04718017578125, -0.0019140243530273438, -0.00588226318359375, 0.02960205078125, -0.034393310546875, -0.0036773681640625, -0.00739288330078125, -0.03179931640625, -0.003543853759765625, 0.036376953125, -0.0218658447265625, 0.01126861572265625, -0.03271484375, 0.003047943115234375, -0.045013427734375, -0.03546142578125, 0.0245513916015625, -0.033935546875, 0.020782470703125, -0.0191497802734375, 0.00025272369384765625, -0.0011987686157226562, 0.044830322265625, -0.0013513565063476562, 0.006046295166015625, 0.04962158203125, -0.01557159423828125, -0.00760650634765625, -0.01690673828125, -0.006900787353515625, 0.0143890380859375, -0.0192718505859375, 0.01117706298828125, 0.017303466796875, -0.01152801513671875, 0.04827880859375, -0.0036296844482421875, 0.0163421630859375, 0.005306243896484375, 0.015869140625, 0.06121826171875, -0.03668212890625, -0.0982666015625, 0.0224609375, -0.05560302734375, -0.052001953125, 0.061065673828125, -0.00133514404296875, 0.02899169921875, 0.0210113525390625, 0.01532745361328125, 0.01309967041015625, 0.006351470947265625, 0.036712646484375, -0.0307464599609375, -0.04876708984375, 0.045562744140625, 0.00829315185546875, 0.052459716796875, -0.078857421875, -0.068115234375, -0.0228424072265625, 0.045196533203125, 0.0197296142578125, 0.01055908203125, 0.0012969970703125, 0.01276397705078125, 0.019500732421875, -0.00637054443359375, 0.007053375244140625, 0.0196533203125, -0.038421630859375, 0.0254058837890625, -0.01396942138671875, -0.0019483566284179688, -0.0195159912109375, -0.01454925537109375, -0.0231170654296875, 0.034423828125, -0.01174163818359375, -0.00231170654296875, -0.004024505615234375, -0.013763427734375, -0.03765869140625, -0.003429412841796875, -0.022308349609375, -0.007724761962890625, 0.006229400634765625, -0.02130126953125, 0.038970947265625, -0.0143890380859375, -0.043212890625, -0.0006132125854492188, 0.0804443359375, 0.00847625732421875, 0.01001739501953125, 0.05413818359375, 0.03973388671875, 0.03216552734375, 0.0167999267578125, -0.004566192626953125, -0.0548095703125, 0.01141357421875, -0.033966064453125, 0.00930023193359375, 0.0169677734375, -0.0079498291015625, -0.0142669677734375, 0.017333984375, 0.016754150390625, -0.0278778076171875, 0.00350189208984375, 0.0289764404296875, -0.01338958740234375, 0.0145721435546875, -0.032562255859375, -0.03094482421875, 0.07196044921875, 0.0253753662109375, 0.02984619140625, 0.010406494140625, 0.0078887939453125, 0.0018663406372070312, -0.006793975830078125, -0.007236480712890625, -0.0181884765625, -0.039581298828125, 0.00811004638671875, 0.037567138671875, 0.037689208984375, -0.0294952392578125, -0.006290435791015625, 0.062103271484375, 0.0187225341796875, 0.0198211669921875, -0.0178680419921875, -0.034149169921875, -0.00838470458984375, -0.016571044921875, 0.0222015380859375, -0.03717041015625, 0.00745391845703125, 0.0631103515625, -0.036895751953125, -0.03973388671875, 0.0302886962890625, 0.00934600830078125, 0.006893157958984375, -0.00489044189453125, -0.020416259765625, -0.051849365234375, 0.01403045654296875, 0.0132598876953125, -0.0209197998046875, 0.08251953125, -0.07525634765625, 0.055145263671875, -0.060943603515625, 0.040985107421875, -0.0269622802734375, 0.0280914306640625, -0.0003941059112548828, 0.040069580078125, 0.01314544677734375, -0.01468658447265625, -0.00726318359375, -0.0526123046875, -0.006008148193359375, 0.01141357421875, -0.006946563720703125, -0.0079498291015625, -0.0297393798828125, -0.00940704345703125, -0.002155303955078125, -0.0164794921875, 0.040802001953125, 0.047271728515625, 0.00809478759765625, -0.02044677734375, 0.068359375, 0.0201568603515625, -0.023468017578125, 0.0267181396484375, -0.0390625, -0.0260162353515625, 0.034454345703125, -0.0265045166015625, 0.0213623046875, 0.0211944580078125, -0.0038242340087890625, -0.0234832763671875, 0.01444244384765625, 0.00896453857421875, 0.0115966796875, -0.01081085205078125, -0.00995635986328125, -0.0264739990234375, 0.0131683349609375, -0.036041259765625, -0.01309967041015625, 0.030914306640625, -0.0092926025390625, 0.003444671630859375, -0.006923675537109375, -0.011474609375, -0.0052642822265625, -0.0085601806640625, 0.004741668701171875, 0.01540374755859375, 0.008209228515625, 0.01528167724609375, 0.0008006095886230469, -0.0191650390625, 0.00750732421875, -0.024169921875, 0.00945281982421875, -0.0085601806640625, 0.03961181640625, 0.008270263671875, -0.002674102783203125, 0.0283050537109375, -0.020233154296875, 0.036376953125, 0.013214111328125, 0.048583984375, -0.07415771484375, 0.0032672882080078125, -0.0579833984375, 0.03192138671875, -0.039886474609375, -0.0204925537109375, 0.055389404296875, 0.038970947265625, 0.03485107421875, 0.024749755859375, -0.0024242401123046875, 0.02880859375, -0.10943603515625, 0.01806640625, 0.043426513671875, 0.020538330078125, 0.0122833251953125, -0.018890380859375, 0.0034084320068359375, 0.035675048828125, 0.0198516845703125, 0.0224456787109375, -0.00348663330078125, 0.04974365234375, 0.08245849609375, -0.04278564453125, 0.01605224609375, 0.0024051666259765625, -0.04510498046875, 0.020233154296875, 0.025726318359375, -0.019256591796875, -0.00635528564453125, 0.016815185546875, -0.0400390625, 0.027099609375, -0.07232666015625, -0.05181884765625, -0.0196380615234375, 0.0181121826171875, -0.0306243896484375, 0.0408935546875, 0.0455322265625, 0.007598876953125, -0.043731689453125, 0.00283050537109375, 0.00946807861328125, 0.0214080810546875, 0.052398681640625, -0.043182373046875, 0.04022216796875, 0.0037212371826171875, -0.0165557861328125, 0.034149169921875, 0.04180908203125, -0.0193634033203125, -0.009552001953125, 0.020294189453125, -0.0011682510375976562, 0.0158233642578125, -0.0279998779296875, 0.022003173828125, -0.02288818359375, -0.0222625732421875, -0.01534271240234375, 0.02886962890625, 0.01183319091796875, 0.0058135986328125, -0.003406524658203125, -0.002201080322265625, -0.00981903076171875, -0.03338623046875, -0.054595947265625, 0.07080078125, -0.0440673828125, 0.017791748046875, 0.09210205078125, 0.0396728515625, -0.00250244140625, -0.00830841064453125, 0.016571044921875, 0.008453369140625, 0.0038661956787109375, -0.0030651092529296875, -0.0117950439453125, -0.0489501953125, -0.0186767578125, 0.0221710205078125, -0.0182342529296875, 0.03668212890625, 0.0117034912109375, -0.0020904541015625, 0.0487060546875, 0.02740478515625, 0.039886474609375, 0.04302978515625, -0.01751708984375, 0.00859832763671875, -0.01082611083984375, -0.00824737548828125, -0.0260772705078125, 0.0201873779296875, -0.005283355712890625, -0.0150604248046875, -0.01342010498046875, -0.031005859375, -0.050506591796875, -0.045806884765625, -0.0265960693359375, -0.010498046875, -0.002410888671875, 0.0049591064453125, 0.030548095703125, 0.00765228271484375, -0.0265350341796875, -0.00577545166015625, 0.0247802734375, -0.0091400146484375, -0.01065826416015625, 0.01320648193359375, -0.00007706880569458008, -0.0067291259765625, 0.0041046142578125, 0.0369873046875, 0.037017822265625, -0.045318603515625, -0.0155487060546875, -0.01117706298828125, 0.0277252197265625, 0.0279998779296875, 0.05419921875, -0.0003979206085205078, 0.046722412109375, 0.07855224609375, 0.004657745361328125, 0.002918243408203125, 0.0203094482421875, -0.036956787109375, -0.04840087890625, -0.002681732177734375, -0.0116119384765625, -0.01629638671875, 0.0029773712158203125, 0.0557861328125, 0.050048828125, 0.00977325439453125, 0.032257080078125, -0.02008056640625, 0.00634002685546875, 0.030670166015625, -0.0187835693359375, 0.0175018310546875, -0.009368896484375, 0.018035888671875, -0.0155792236328125, 0.0245361328125, -0.03570556640625, 0.051483154296875, -0.075927734375, -0.006595611572265625, -0.007106781005859375, -0.10345458984375, 0.02777099609375, -0.045196533203125, 0.030609130859375, -0.0418701171875, 0.03173828125, -0.018341064453125, -0.0222015380859375, 0.004608154296875, 0.0228424072265625, -0.041107177734375, -0.0377197265625, -0.0295257568359375, -0.0097198486328125, 0.07666015625, -0.0307159423828125, -0.0288848876953125, 0.018463134765625, -0.0408935546875, 0.0134429931640625, 0.04412841796875, 0.00968170166015625, 0.0284576416015625, 0.0029506683349609375, 0.00969696044921875, 0.0026111602783203125, 0.00812530517578125, -0.0217742919921875, -0.00974273681640625, -0.02435302734375, -0.1253662109375, -0.0097808837890625, -0.01995849609375, 0.06341552734375, -0.021820068359375, 0.038055419921875, -0.029571533203125, 0.057830810546875, -0.016998291015625, 0.0263519287109375, -0.049346923828125, 0.0008077621459960938, -0.015411376953125, 0.0129547119140625, -0.0221710205078125, -0.003421783447265625, 0.011199951171875, -0.00342559814453125, -0.027984619140625, -0.02056884765625, -0.04656982421875, -0.061492919921875, -0.0156402587890625, -0.0511474609375, -0.0616455078125, -0.033599853515625, -0.008758544921875, 0.037384033203125, -0.0030155181884765625, 0.0156097412109375, -0.045928955078125, -0.07098388671875, 0.06219482421875, 0.02191162109375, -0.00995635986328125, -0.01540374755859375, 0.05120849609375, 0.0180511474609375, -0.0311431884765625, -0.00232696533203125, -0.02294921875, 0.0297698974609375, 0.007419586181640625, 0.040618896484375, 0.027557373046875, -0.017333984375, 0.0271148681640625, 0.0180206298828125, -0.0506591796875, 0.0303192138671875, 0.01788330078125, 0.00335693359375, -0.034759521484375, -0.003265380859375, -0.048614501953125, 0.0657958984375, -0.0036792755126953125, -0.0285491943359375, 0.05584716796875, 0.00394439697265625, -0.0037975311279296875, -0.0137939453125, -0.00850677490234375, -0.01200103759765625, -0.0296783447265625, 0.00864410400390625, -0.0003635883331298828, 0.004695892333984375, 0.044403076171875, -0.01534271240234375, -0.00978851318359375, -0.04364013671875, -0.0179901123046875, -0.017486572265625, -0.050445556640625, 0.0015659332275390625, 0.004283905029296875, -0.01329803466796875, -0.0145263671875, 0.003749847412109375, -0.031097412109375, 0.0750732421875, 0.0081024169921875, -0.0718994140625, 0.04815673828125, -0.0306549072265625, 0.040313720703125, 0.0150909423828125, -0.0528564453125, -0.0019140243530273438, 0.061614990234375, 0.0013408660888671875, 0.017242431640625, 0.0080108642578125, 0.0406494140625, -0.005565643310546875, 0.013397216796875, -0.0024089813232421875, -0.0076446533203125, 0.005481719970703125, 0.031646728515625, -0.005489349365234375, -0.009033203125, -0.006832122802734375, 0.0836181640625, 0.0535888671875, -0.060302734375, 0.00815582275390625, 0.08233642578125, 0.01410675048828125, -0.08575439453125, -0.00098419189453125, 0.0022640228271484375, -0.001293182373046875, 0.005352020263671875, 0.01287841796875, 0.0276336669921875, 0.0217437744140625, 0.00582122802734375, -0.03192138671875, -0.0173797607421875, 0.0020503997802734375, 0.0240020751953125, -0.00710296630859375, 0.01934814453125, -0.0003933906555175781, -0.03460693359375, 0.0008029937744140625, 0.01141357421875, -0.059173583984375, -0.007781982421875, -0.030914306640625, -0.02008056640625, -0.0533447265625, 0.004848480224609375, 0.00687408447265625, -0.0233612060546875, -0.003780364990234375, 0.008270263671875, -0.01256561279296875, -0.0225372314453125, -0.0204315185546875, -0.003360748291015625, 0.06427001953125, -0.018951416015625, -0.01468658447265625, -0.031982421875, 0.027069091796875, -0.004947662353515625, -0.01934814453125, 0.0885009765625, 0.04803466796875, -0.045379638671875, -0.02130126953125, -0.03814697265625, -0.03204345703125, -0.0443115234375, -0.050262451171875, -0.034759521484375, -0.0015401840209960938, 0.023040771484375, 0.034637451171875, -0.007671356201171875, -0.049163818359375, -0.004291534423828125, 0.0067901611328125, 0.0027523040771484375, 0.0516357421875, 0.0239105224609375, 0.03094482421875, -0.014678955078125, 0.0499267578125, 0.01389312744140625, 0.008697509765625, -0.0574951171875, -0.03173828125, -0.0128173828125, -0.05865478515625, -0.005222320556640625, 0.030670166015625, -0.0318603515625, -0.005611419677734375, -0.00777435302734375, 0.0240325927734375, 0.004329681396484375, -0.044158935546875, 0.0111236572265625, -0.00820159912109375, 0.08642578125, -0.053955078125, -0.0457763671875, 0.0487060546875, -0.04327392578125, 0.00827789306640625, 0.00867462158203125, 0.0017900466918945312, 0.045379638671875, -0.032196044921875, 0.0196990966796875, 0.0219879150390625, 0.002838134765625, -0.017364501953125, 0.0190887451171875, -0.0129241943359375, 0.0384521484375, 0.032989501953125, 0.034759521484375, 0.047576904296875, -0.05694580078125, 0.00324249267578125, 0.033660888671875, -0.0056915283203125, -0.03173828125, 0.051605224609375, 0.0391845703125, 0.01180267333984375, 0.0018339157104492188, 0.0631103515625, 0.039154052734375, -0.09271240234375, 0.005374908447265625, 0.0118865966796875, 0.00041961669921875, 0.0182037353515625, 0.0217437744140625, -0.02642822265625, -0.0223388671875, 0.045440673828125, -0.060638427734375, 0.00550079345703125, 0.039703369140625, 0.0006756782531738281, -0.01097869873046875, -0.04205322265625, -0.004222869873046875, 0.01080322265625, 0.0021514892578125, 0.040802001953125, -0.00749969482421875, 0.034027099609375, -0.0115814208984375, 0.0016803741455078125, 0.03326416015625, -0.01103973388671875, 0.004192352294921875, 0.0635986328125, -0.02215576171875, 0.012939453125, -0.005527496337890625, 0.00872039794921875, 0.026458740234375, 0.0338134765625, -0.0152435302734375, 0.0207366943359375, 0.024200439453125, -0.0161285400390625, 0.0009245872497558594, -0.045196533203125, 0.00817108154296875, 0.026031494140625, -0.03289794921875, 0.0157470703125, 0.003917694091796875, -0.0310516357421875, -0.0022411346435546875, 0.0303955078125, 0.04583740234375, 0.00830078125, -0.04083251953125, 0.050201416015625, -0.0140533447265625, -0.029693603515625, 0.0180816650390625, -0.050018310546875, -0.050872802734375, 0.00043487548828125, -0.00412750244140625, -0.021453857421875, 0.033477783203125, 0.0278472900390625, -0.0679931640625, 0.0770263671875, 0.00012612342834472656, 0.03814697265625, 0.017120361328125, 0.0196533203125, -0.03448486328125, -0.017120361328125, -0.0361328125, 0.05694580078125, -0.02490234375, 0.0418701171875, -0.07574462890625, -0.0207366943359375, -0.0105438232421875, 0.03863525390625, 0.0718994140625, 0.01499176025390625, -0.040191650390625, -0.03912353515625, 0.033447265625, 0.0086669921875, -0.005859375, 0.06610107421875, 0.052490234375, -0.0149688720703125, 0.055450439453125, 0.00380706787109375, 0.038848876953125, -0.04461669921875, 0.043853759765625, 0.048095703125, 0.01947021484375, -0.0000355839729309082, -0.023895263671875, 0.015106201171875, -0.0692138671875, -0.003314971923828125, 0.03582763671875, 0.067138671875, -0.003398895263671875, 0.004360198974609375, 0.0248870849609375, 0.006072998046875, -0.0302581787109375, 0.0015439987182617188, 0.0289459228515625, 0.042572021484375, 0.03521728515625, 0.0233306884765625, 0.0152740478515625, 0.0035400390625, 0.047821044921875, 0.035308837890625, 0.06591796875, -0.0157470703125, -0.0284881591796875, -0.00728607177734375, 0.0024127960205078125, -0.030059814453125, 0.006755828857421875, 0.06610107421875, -0.01222991943359375, -0.01007843017578125, 0.0095367431640625, 0.0194854736328125, -0.00504302978515625, -0.0113525390625, -0.0343017578125, -0.005702972412109375, -0.017669677734375, -0.0013494491577148438, -0.00811767578125, -0.005542755126953125, -0.0022182464599609375, 0.0228424072265625, -0.01247406005859375, -0.034515380859375, 0.012939453125, -0.0022792816162109375, -0.0212249755859375, -0.01505279541015625, 0.007717132568359375, 0.0119781494140625, 0.0267181396484375, 0.024078369140625, 0.035308837890625, 0.006847381591796875, -0.0056915283203125, 0.0413818359375, 0.0060577392578125, -0.00305938720703125, -0.06640625, -0.0655517578125, 0.044097900390625, 0.040679931640625, 0.01617431640625, -0.0249786376953125, 0.028076171875, 0.0269012451171875, -0.037109375, -0.0171661376953125, 0.0113677978515625, -0.011932373046875, -0.0042724609375, -0.03363037109375, -0.0013856887817382812, 0.0008921623229980469, -0.01430511474609375, 0.000026106834411621094, 0.0064697265625, 0.01480865478515625, -0.01409912109375, 0.0037250518798828125, 0.004436492919921875, -0.014007568359375, -0.008819580078125, -0.01495361328125, -0.03363037109375, -0.005794525146484375, -0.031524658203125, 0.038116455078125, -0.05010986328125, -0.048126220703125, 0.007106781005859375, 0.021575927734375, -0.055511474609375, 0.06024169921875, -0.0089569091796875, 0.0025730133056640625, 0.0023822784423828125, -0.0155487060546875, 0.006198883056640625, 0.0012454986572265625, 0.00453948974609375, -0.00266265869140625, -0.053436279296875, -0.042999267578125, -0.00968170166015625, 0.061737060546875, 0.006793975830078125, 0.03485107421875, -0.01139068603515625, 0.033203125, 0.026458740234375, 0.051422119140625, -0.043243408203125, -0.0218048095703125, 0.06549072265625, -0.050079345703125, 0.00522613525390625, 0.006320953369140625, -0.017730712890625, 0.054290771484375, 0.00945281982421875, -0.006793975830078125, 0.03521728515625, -0.0229644775390625, -0.0012187957763671875, -0.020416259765625, -0.039947509765625, -0.0299224853515625, -0.013092041015625, 0.0308990478515625, 0.0211944580078125, -0.006221771240234375, -0.048065185546875, -0.051544189453125, 0.00775146484375, -0.0269012451171875, -0.0509033203125, 0.000008344650268554688, -0.022979736328125, -0.04150390625, 0.0054168701171875, 0.051116943359375, 0.0115966796875, 0.024139404296875, -0.0077972412109375, 0.004528045654296875, 0.0247344970703125, -0.01708984375, 0.0188751220703125, -0.0078582763671875, -0.0243072509765625, -0.037109375, 0.0164031982421875, 0.00782012939453125, -0.00785064697265625, -0.04644775390625, 0.00153350830078125, -0.0330810546875, -0.0179901123046875, -0.01477813720703125, -0.01026153564453125, -0.0086669921875, 0.0171966552734375, 0.00917816162109375, -0.037322998046875, -0.051971435546875, 0.027923583984375, 0.00789642333984375, -0.0235443115234375, -0.041107177734375, 0.037322998046875, -0.039215087890625, 0.03765869140625, -0.0308074951171875, -0.01526641845703125, -0.0003771781921386719, 0.040557861328125, -0.031158447265625, -0.02392578125, -0.042236328125, 0.00870513916015625, -0.0440673828125, 0.011962890625, 0.03411865234375, -0.00910186767578125, 0.00018906593322753906, 0.0286712646484375, 0.009063720703125, 0.063720703125, -0.032684326171875, -0.03515625, -0.0170745849609375, 0.01416778564453125, 0.019073486328125, -0.00653076171875, 0.00560760498046875, 0.021148681640625, -0.0298309326171875, -0.0080413818359375, 0.039337158203125, 0.051727294921875, -0.01165008544921875, -0.04705810546875, 0.0035419464111328125, -0.0011386871337890625, -0.03973388671875, 0.021575927734375, -0.0106201171875, -0.020721435546875, 0.0220184326171875, 0.0141143798828125, -0.0159912109375, -0.006504058837890625, -0.01111602783203125, -0.005619049072265625, 0.05145263671875, -0.016693115234375, 0.0034503936767578125, -0.0291290283203125, 0.01519012451171875, -0.004817962646484375, -0.01340484619140625, -0.00240325927734375, 0.00836181640625, 0.007144927978515625, 0.031829833984375, -0.00994110107421875, -0.043212890625, 0.0229034423828125, -0.041748046875, -0.0003063678741455078, 0.002307891845703125, -0.019805908203125, -0.01666259765625, 0.022613525390625, 0.0196075439453125, 0.0107879638671875, -0.0081939697265625, 0.0863037109375, -0.006793975830078125, -0.05438232421875, 0.01213836669921875, 0.0093994140625, -0.01496124267578125, 0.0015239715576171875, 0.02044677734375, -0.00986480712890625, -0.0011796951293945312, 0.001567840576171875, -0.03857421875, -0.0177001953125, -0.046783447265625, -0.006450653076171875, -0.057403564453125, 0.00555419921875, 0.014892578125, -0.0283355712890625, -0.01548004150390625, 0.00823211669921875, -0.005218505859375, -0.016571044921875, 0.020782470703125, -0.01496124267578125, -0.012359619140625, -0.01219940185546875, 0.0037708282470703125, 0.00782012939453125, 0.0156402587890625, -0.0035724639892578125, -0.002323150634765625, -0.023590087890625, 0.016845703125, -0.006252288818359375, 0.0202484130859375, 0.0005898475646972656, 0.0355224609375, 0.00785064697265625, 0.052520751953125, -0.039337158203125, -0.053466796875, -0.0323486328125, -0.0035457611083984375, -0.01168060302734375, 0.0313720703125, 0.0413818359375, -0.01776123046875, 0.034912109375, -0.0168609619140625, 0.023681640625, 0.027130126953125, 0.00873565673828125, 0.0225372314453125, -0.0298919677734375, 0.0099945068359375 ]
302d0e7a357cd20d5a2a20c7805a41ac6dd96763
Wordpress Stackexchange Q: How can i add some static text above the editor? I created a custom post type and i want to display some text on the editor page below the title and above the text editor. How can i do this? I tried using add_meta_box, but i wasn't able to move it above the editor. A: The best way would be using JavaScript to inject the element. Here's the gist of the markup for that page: <div id="poststuff"> <div id="post-body" class="metabox-holder columns-2"> <div id="post-body-content"> <div id="titlediv"> ... other stuff ... </div> <div id="postdivrich" class="postarea"> ... other stuff ... </div> </div> </div> </div> The titlediv is the title. The postdivrich is the content editor. You want to insert something between them. Using jQuery, this is pretty easy. Just tell it to insert your markup after the titlediv: jQuery(function($) { var text_to_insert = "This is some text you'll throw between the title and editor."; $('<p>' + text_to_insert + '</p>').insertAfter('#titlediv') }); Here is the result of using that exact code on my own site:
Q: How can i add some static text above the editor? I created a custom post type and i want to display some text on the editor page below the title and above the text editor. How can i do this? I tried using add_meta_box, but i wasn't able to move it above the editor. A: The best way would be using JavaScript to inject the element. Here's the gist of the markup for that page: <div id="poststuff"> <div id="post-body" class="metabox-holder columns-2"> <div id="post-body-content"> <div id="titlediv"> ... other stuff ... </div> <div id="postdivrich" class="postarea"> ... other stuff ... </div> </div> </div> </div> The titlediv is the title. The postdivrich is the content editor. You want to insert something between them. Using jQuery, this is pretty easy. Just tell it to insert your markup after the titlediv: jQuery(function($) { var text_to_insert = "This is some text you'll throw between the title and editor."; $('<p>' + text_to_insert + '</p>').insertAfter('#titlediv') }); Here is the result of using that exact code on my own site: A: To anyone with this problem, check this post: More hooks on the edit screen It allows to insert custom content by new native Wordpress hook, which is by far more stable sollution. Mentioned hooks * *edit_form_after_title *edit_form_after_editor *edit_form_advanced Use as described in @DrMosko's answer. A: We add a Custom Meta Box and do our thing inside it. There are some hooks that are not Meta Boxes and we can use to insert content into that admin page: add_action( 'edit_form_top', function( $post ) { echo '<h1 style="color:red">edit_form_top</h1>'; }); add_action( 'edit_form_after_title', function( $post ) { echo '<h1 style="color:red">edit_form_after_title</h1>'; }); add_action( 'edit_form_after_editor', function( $post ) { echo '<h1 style="color:red">edit_form_after_editor</h1>'; }); add_action( 'edit_page_form', function( $post ) { // edit_page_form is ONLY for pages, the other is for the rest of post types echo '<h1 style="color:red">edit_page_form/edit_form_advanced</h1>'; }); add_action( 'dbx_post_sidebar', function( $post ) { echo '<h1 style="color:red">dbx_post_sidebar</h1>'; }); A: new hooks for the add/edit post screen: edit_form_after_title add_action( 'edit_form_after_title', 'myprefix_edit_form_after_title' ); function myprefix_edit_form_after_title() { echo '<h2>This is edit_form_after_title!</h2>'; }
wordpress
{ "language": "en", "length": 335, "provenance": "stackexchange_00019.jsonl.gz:422739", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61235" }
[ 0.0606689453125, -0.00449371337890625, 0.04449462890625, -0.02215576171875, -0.0053558349609375, -0.00897216796875, 0.0200347900390625, -0.055084228515625, 0.011260986328125, 0.048309326171875, -0.032745361328125, 0.01557159423828125, 0.023529052734375, -0.02276611328125, -0.006298065185546875, -0.00145721435546875, 0.00994873046875, -0.0191802978515625, 0.0056915283203125, -0.0153350830078125, 0.00494384765625, -0.0150146484375, 0.0164947509765625, 0.0007414817810058594, 0.0034332275390625, 0.0298004150390625, 0.1031494140625, -0.02606201171875, 0.004688262939453125, -0.0117645263671875, 0.0223236083984375, -0.040496826171875, 0.016082763671875, 0.0189971923828125, -0.005039215087890625, 0.022003173828125, 0.01302337646484375, 0.01068878173828125, 0.026824951171875, 0.002101898193359375, 0.0240020751953125, 0.004482269287109375, 0.011871337890625, 0.06939697265625, -0.0229034423828125, -0.06768798828125, 0.05291748046875, -0.03192138671875, 0.038787841796875, -0.01708984375, 0.0205841064453125, 0.01812744140625, 0.0367431640625, -0.0261688232421875, -0.022491455078125, 0.021209716796875, -0.01280975341796875, -0.04345703125, 0.0127105712890625, 0.05706787109375, 0.0171051025390625, -0.01184844970703125, 0.0005693435668945312, -0.03436279296875, 0.01544189453125, 0.0003478527069091797, 0.0109405517578125, 0.0087738037109375, -0.0531005859375, -0.003276824951171875, 0.0283966064453125, -0.061187744140625, -0.005359649658203125, -0.02032470703125, -0.032562255859375, 0.038543701171875, 0.0034275054931640625, -0.012298583984375, 0.0160369873046875, -0.00928497314453125, 0.0308685302734375, 0.03765869140625, 0.0028133392333984375, -0.045013427734375, 0.0211639404296875, -0.03326416015625, -0.01210784912109375, -0.023956298828125, -0.004596710205078125, -0.0328369140625, -0.01349639892578125, -0.0079193115234375, -0.0298004150390625, 0.00811767578125, -0.00666046142578125, -0.02459716796875, 0.00684356689453125, 0.067626953125, -0.03326416015625, 0.036651611328125, 0.0172882080078125, -0.0357666015625, 0.08892822265625, -0.06597900390625, 0.006927490234375, -0.005992889404296875, -0.0384521484375, -0.052276611328125, 0.009918212890625, 0.03515625, -0.041595458984375, -0.0264129638671875, 0.007579803466796875, 0.00794219970703125, -0.0200653076171875, 0.0022182464599609375, -0.023834228515625, 0.00836181640625, -0.0174713134765625, 0.0097808837890625, 0.000946044921875, 0.037109375, -0.022247314453125, -0.05078125, -0.00084686279296875, -0.0070648193359375, 0.0039215087890625, -0.0300140380859375, -0.0167694091796875, -0.030975341796875, -0.00667572021484375, 0.0236663818359375, 0.07940673828125, 0.0810546875, 0.032379150390625, 0.0012378692626953125, 0.04638671875, -0.034576416015625, -0.0038242340087890625, 0.007427215576171875, -0.0164031982421875, -0.0016927719116210938, 0.0156707763671875, -0.0274505615234375, -0.04119873046875, 0.021728515625, 0.01105499267578125, 0.013031005859375, -0.0172271728515625, -0.0751953125, 0.0196533203125, -0.04595947265625, 0.03387451171875, -0.00806427001953125, -0.024322509765625, -0.056549072265625, 0.005603790283203125, -0.03424072265625, 0.02191162109375, -0.0260162353515625, 0.001552581787109375, 0.027435302734375, 0.052947998046875, -0.037750244140625, -0.0037841796875, -0.0501708984375, -0.051025390625, 0.00872039794921875, 0.0150146484375, 0.0311126708984375, 0.000240325927734375, 0.0281982421875, 0.00991058349609375, -0.01552581787109375, -0.022064208984375, -0.030548095703125, -0.003749847412109375, 0.02508544921875, 0.0225067138671875, -0.0010833740234375, -0.0207672119140625, -0.03070068359375, 0.07861328125, -0.042083740234375, -0.037200927734375, 0.0016803741455078125, 0.003841400146484375, 0.027130126953125, 0.015716552734375, 0.0154876708984375, 0.0328369140625, 0.0009241104125976562, -0.018218994140625, -0.0269775390625, -0.0011186599731445312, -0.006168365478515625, -0.017669677734375, -0.014404296875, -0.004398345947265625, 0.031494140625, -0.043426513671875, 0.0188751220703125, -0.0031566619873046875, 0.0277252197265625, 0.017181396484375, 0.004528045654296875, 0.0034084320068359375, 0.033538818359375, 0.0080718994140625, -0.00925445556640625, 0.00461578369140625, -0.0105438232421875, 0.03521728515625, -0.100341796875, -0.050323486328125, 0.014617919921875, -0.009429931640625, 0.037200927734375, 0.007480621337890625, 0.03277587890625, 0.011993408203125, -0.01104736328125, 0.005023956298828125, 0.002956390380859375, 0.034912109375, 0.005084991455078125, -0.0182647705078125, -0.008056640625, 0.01375579833984375, 0.020782470703125, -0.03564453125, -0.0069580078125, 0.050872802734375, 0.01074981689453125, -0.048065185546875, -0.012969970703125, -0.006961822509765625, -0.053955078125, -0.00628662109375, 0.07611083984375, 0.012603759765625, 0.0933837890625, -0.0018787384033203125, 0.031463623046875, 0.0234527587890625, -0.047943115234375, -0.00281524658203125, -0.0009140968322753906, 0.007080078125, 0.03729248046875, -0.037994384765625, -0.01299285888671875, 0.035888671875, -0.08367919921875, 0.0169830322265625, 0.0496826171875, 0.0010843276977539062, 0.0236663818359375, -0.0113983154296875, -0.020294189453125, 0.01140594482421875, 0.01934814453125, -0.01555633544921875, 0.0230255126953125, 0.042022705078125, 0.0181427001953125, 0.06640625, 0.052764892578125, -0.03680419921875, -0.005634307861328125, -0.003383636474609375, 0.04241943359375, 0.003635406494140625, -0.0305023193359375, 0.00269317626953125, 0.0126800537109375, -0.02734375, 0.005542755126953125, 0.041107177734375, -0.0236663818359375, -0.00728607177734375, 0.02618408203125, 0.0157623291015625, -0.0306243896484375, 0.03631591796875, -0.007648468017578125, -0.016510009765625, -0.07818603515625, -0.0033664703369140625, 0.005504608154296875, 0.02630615234375, 0.002185821533203125, -0.024444580078125, 0.0251617431640625, -0.015960693359375, -0.0151519775390625, 0.032806396484375, -0.05621337890625, 0.045867919921875, -0.03973388671875, 0.0548095703125, 0.060943603515625, -0.0265655517578125, 0.01751708984375, -0.00879669189453125, 0.00420379638671875, -0.0253143310546875, 0.0186767578125, -0.00861358642578125, -0.022247314453125, -0.0350341796875, 0.0309295654296875, 0.0343017578125, 0.0007977485656738281, 0.02838134765625, -0.022705078125, 0.007656097412109375, 0.016815185546875, -0.07037353515625, -0.07440185546875, 0.03216552734375, -0.06866455078125, -0.0135498046875, 0.0275421142578125, -0.062469482421875, -0.006282806396484375, 0.08880615234375, -0.0148162841796875, -0.036712646484375, -0.0207061767578125, -0.0087890625, -0.0521240234375, -0.05023193359375, -0.03375244140625, 0.006076812744140625, 0.0008230209350585938, 0.01953125, 0.0274505615234375, 0.01398468017578125, -0.044219970703125, 0.035369873046875, 0.045684814453125, -0.00740814208984375, 0.042816162109375, 0.070556640625, -0.057952880859375, 0.0138702392578125, 0.007289886474609375, -0.01282501220703125, 0.022674560546875, -0.0163116455078125, -0.0224151611328125, -0.031890869140625, -0.0094757080078125, -0.0097808837890625, 0.042266845703125, 0.0421142578125, -0.0022125244140625, 0.016510009765625, -0.0374755859375, 0.0113983154296875, 0.00714874267578125, -0.01506805419921875, -0.0126800537109375, -0.01537322998046875, 0.00272369384765625, -0.0014486312866210938, 0.01012420654296875, -0.036224365234375, 0.00504302978515625, 0.06744384765625, -0.024017333984375, -0.032958984375, -0.04071044921875, -0.06121826171875, -0.02581787109375, -0.0234527587890625, -0.0279541015625, 0.0560302734375, 0.0006847381591796875, 0.0241546630859375, 0.01385498046875, 0.03363037109375, -0.0036602020263671875, -0.0261383056640625, 0.0345458984375, 0.0268707275390625, 0.052001953125, -0.008636474609375, -0.0509033203125, 0.0016841888427734375, 0.07659912109375, -0.06915283203125, -0.0027618408203125, -0.0002753734588623047, -0.0003921985626220703, -0.0146331787109375, -0.0166168212890625, -0.0721435546875, 0.000354766845703125, -0.04498291015625, 0.0386962890625, -0.0037822723388671875, 0.0167694091796875, -0.04815673828125, 0.04266357421875, -0.033843994140625, -0.0210113525390625, 0.029510498046875, -0.0294189453125, -0.01019287109375, 0.060577392578125, -0.042633056640625, 0.04144287109375, -0.042144775390625, -0.033843994140625, -0.06964111328125, -0.0256500244140625, 0.008270263671875, 0.053070068359375, -0.0252532958984375, 0.0199432373046875, -0.031494140625, 0.039306640625, -0.006031036376953125, 0.02001953125, -0.006587982177734375, 0.018707275390625, 0.0024242401123046875, -0.035430908203125, -0.0243377685546875, -0.0418701171875, 0.00537109375, 0.00662994384765625, -0.0030918121337890625, 0.045867919921875, -0.01392364501953125, -0.008941650390625, 0.031280517578125, -0.0196685791015625, -0.025909423828125, -0.03594970703125, -0.006988525390625, 0.02191162109375, 0.004650115966796875, -0.00559234619140625, -0.040771484375, -0.025909423828125, -0.006313323974609375, -0.0066986083984375, -0.0015363693237304688, 0.01348114013671875, 0.04833984375, 0.0303955078125, -0.0077972412109375, 0.0261688232421875, -0.007678985595703125, 0.046295166015625, 0.0093536376953125, -0.008148193359375, 0.0028133392333984375, -0.0509033203125, 0.043609619140625, 0.0224456787109375, 0.01306915283203125, -0.0217742919921875, 0.042266845703125, -0.00958251953125, -0.035064697265625, 0.032073974609375, -0.01268768310546875, 0.00301361083984375, 0.00792694091796875, -0.03875732421875, 0.019012451171875, -0.0214691162109375, 0.0010156631469726562, -0.036346435546875, 0.062744140625, 0.0102691650390625, 0.00469207763671875, -0.0249786376953125, -0.0019779205322265625, 0.044952392578125, 0.024749755859375, 0.0113372802734375, -0.0169219970703125, 0.039581298828125, -0.008544921875, 0.0254974365234375, -0.0278778076171875, 0.02294921875, -0.001220703125, 0.05731201171875, -0.010101318359375, 0.0152740478515625, -0.0025920867919921875, 0.06689453125, 0.0142059326171875, -0.0306854248046875, -0.034332275390625, -0.0023441314697265625, 0.03631591796875, -0.0161895751953125, 0.0307464599609375, -0.018402099609375, 0.0025119781494140625, 0.042572021484375, 0.038330078125, 0.04925537109375, 0.006908416748046875, 0.0299835205078125, -0.01148223876953125, 0.0185394287109375, -0.030853271484375, -0.012451171875, 0.04656982421875, -0.022705078125, -0.0002770423889160156, 0.00492095947265625, 0.029052734375, 0.0144195556640625, 0.0079498291015625, 0.01438140869140625, 0.00986480712890625, 0.00399017333984375, -0.0159759521484375, 0.0067901611328125, 0.004116058349609375, 0.024993896484375, 0.0208740234375, 0.017364501953125, 0.0083465576171875, -0.009796142578125, -0.0176849365234375, -0.040069580078125, -0.038726806640625, 0.007205963134765625, 0.0284576416015625, -0.0263519287109375, -0.018035888671875, -0.007747650146484375, 0.001781463623046875, 0.0252685546875, 0.02435302734375, 0.0472412109375, -0.007293701171875, 0.0166168212890625, -0.01003265380859375, 0.01155853271484375, -0.0625, -0.034759521484375, -0.011474609375, 0.00749969482421875, -0.0152740478515625, -0.035247802734375, -0.044769287109375, -0.00733184814453125, -0.00689697265625, 0.050628662109375, -0.024200439453125, 0.0199127197265625, -0.04315185546875, 0.01318359375, -0.0474853515625, 0.03033447265625, -0.01403045654296875, -0.03094482421875, 0.00421905517578125, 0.01555633544921875, -0.0273895263671875, -0.021942138671875, -0.034515380859375, -0.04840087890625, -0.038482666015625, -0.025177001953125, 0.0232391357421875, 0.050872802734375, -0.0291595458984375, -0.0709228515625, 0.0096893310546875, 0.008209228515625, 0.015533447265625, 0.05975341796875, 0.0110626220703125, 0.04388427734375, -0.03314208984375, 0.048980712890625, 0.00931549072265625, 0.031707763671875, 0.01055145263671875, -0.042388916015625, 0.038787841796875, -0.0183563232421875, -0.019866943359375, -0.044464111328125, 0.006526947021484375, -0.035736083984375, -0.004871368408203125, -0.01261138916015625, 0.026458740234375, 0.0224761962890625, 0.0082244873046875, -0.00414276123046875, -0.03045654296875, 0.0282440185546875, -0.0238037109375, 0.07196044921875, -0.0224609375, 0.0222320556640625, 0.0208587646484375, 0.004688262939453125, 0.01099395751953125, -0.02435302734375, 0.010772705078125, 0.0305023193359375, -0.054840087890625, 0.044677734375, 0.08056640625, 0.041717529296875, 0.049407958984375, 0.0028934478759765625, 0.01479339599609375, 0.02349853515625, 0.0100555419921875, -0.01387786865234375, -0.00707244873046875, 0.048095703125, 0.0019741058349609375, -0.01715087890625, 0.028045654296875, -0.018402099609375, 0.00992584228515625, 0.032867431640625, 0.06500244140625, -0.0377197265625, 0.00038552284240722656, 0.022064208984375, -0.041961669921875, 0.01091766357421875, 0.0049896240234375, -0.0004112720489501953, -0.0023632049560546875, 0.033905029296875, -0.01493072509765625, 0.0024394989013671875, 0.0220184326171875, 0.00148773193359375, -0.0232391357421875, -0.0152587890625, -0.03961181640625, 0.00034499168395996094, 0.01448822021484375, -0.0008778572082519531, -0.0147857666015625, 0.01153564453125, -0.03057861328125, -0.0178070068359375, 0.0105743408203125, -0.0259857177734375, -0.041900634765625, 0.0021820068359375, -0.0217132568359375, 0.003490447998046875, -0.004779815673828125, 0.0176544189453125, 0.0235137939453125, 0.0675048828125, -0.004711151123046875, -0.004001617431640625, 0.0548095703125, 0.01287841796875, -0.0010786056518554688, -0.030242919921875, -0.0123291015625, 0.01467132568359375, -0.037261962890625, 0.0186920166015625, -0.0140533447265625, 0.01068878173828125, -0.004657745361328125, 0.0166015625, 0.0699462890625, -0.01183319091796875, -0.033294677734375, 0.04254150390625, 0.00450897216796875, -0.0247955322265625, -0.003742218017578125, 0.0258941650390625, -0.0657958984375, -0.0187530517578125, -0.005146026611328125, -0.0296630859375, 0.0023746490478515625, -0.01334381103515625, -0.03802490234375, 0.1085205078125, 0.026702880859375, -0.00791168212890625, 0.00579833984375, 0.053466796875, -0.0567626953125, 0.02374267578125, 0.01114654541015625, 0.014739990234375, -0.0450439453125, -0.0023365020751953125, -0.01306915283203125, -0.005218505859375, 0.00743865966796875, 0.060821533203125, 0.026885986328125, 0.0030059814453125, -0.04119873046875, 0.007709503173828125, 0.037689208984375, 0.037689208984375, -0.0013952255249023438, 0.0369873046875, 0.0038299560546875, -0.0205841064453125, 0.00452423095703125, -0.0103302001953125, 0.027618408203125, -0.047271728515625, -0.02032470703125, 0.0135650634765625, 0.030364990234375, 0.0167694091796875, 0.0242767333984375, -0.006557464599609375, -0.058990478515625, 0.025360107421875, 0.03497314453125, 0.0248260498046875, 0.004199981689453125, 0.051025390625, 0.036163330078125, -0.01849365234375, -0.04156494140625, -0.0247344970703125, 0.0430908203125, 0.0172882080078125, 0.00882720947265625, 0.01493072509765625, 0.0118560791015625, -0.00382232666015625, 0.01076507568359375, 0.0016908645629882812, 0.00867462158203125, 0.006778717041015625, 0.0287933349609375, -0.01837158203125, -0.001300811767578125, -0.0775146484375, -0.0183563232421875, 0.064697265625, 0.03656005859375, -0.0225372314453125, 0.034912109375, 0.0218658447265625, 0.00719451904296875, -0.01953125, -0.061126708984375, -0.007740020751953125, -0.002788543701171875, -0.007213592529296875, -0.030670166015625, -0.040924072265625, 0.02313232421875, 0.050018310546875, 0.004566192626953125, -0.01055908203125, -0.0126800537109375, -0.067626953125, -0.06634521484375, 0.034698486328125, 0.00861358642578125, 0.04925537109375, 0.0254974365234375, 0.0667724609375, 0.0263214111328125, -0.0249481201171875, -0.02056884765625, -0.008514404296875, 0.036224365234375, 0.0150146484375, 0.0012874603271484375, 0.043243408203125, -0.0029315948486328125, 0.0189056396484375, 0.051177978515625, 0.0550537109375, 0.04949951171875, 0.0213623046875, 0.03277587890625, 0.0215301513671875, 0.020782470703125, -0.0066680908203125, 0.004749298095703125, -0.0384521484375, 0.034332275390625, 0.0162811279296875, 0.0182647705078125, -0.00548553466796875, 0.0293121337890625, 0.033111572265625, -0.004886627197265625, 0.0010709762573242188, 0.0012426376342773438, -0.004764556884765625, 0.00189971923828125, -0.01605224609375, -0.025238037109375, -0.005741119384765625, -0.06732177734375, -0.01169586181640625, -0.02325439453125, -0.043365478515625, 0.04205322265625, 0.0479736328125, -0.0086669921875, -0.001758575439453125, 0.0017862319946289062, -0.02557373046875, 0.0484619140625, -0.026824951171875, 0.0211181640625, 0.060577392578125, -0.01311492919921875, 0.01560211181640625, -0.01107025146484375, -0.00786590576171875, 0.0238037109375, 0.0298919677734375, 0.0058135986328125, -0.0286865234375, 0.008331298828125, 0.02685546875, -0.0250396728515625, 0.0411376953125, -0.02978515625, -0.027801513671875, 0.028961181640625, 0.01226806640625, 0.01812744140625, -0.0169525146484375, -0.03839111328125, 0.0225372314453125, 0.029815673828125, 0.017120361328125, 0.004932403564453125, -0.0011320114135742188, 0.0238800048828125, -0.0092620849609375, 0.0280609130859375, -0.01959228515625, 0.0138397216796875, -0.0248565673828125, -0.0390625, 0.034759521484375, -0.002803802490234375, 0.007274627685546875, 0.01995849609375, 0.035400390625, -0.0235748291015625, 0.0312042236328125, -0.0234375, 0.04461669921875, 0.026458740234375, 0.0210418701171875, -0.0143280029296875, 0.03863525390625, 0.0011167526245117188, 0.019439697265625, 0.0180816650390625, 0.01806640625, 0.0223541259765625, -0.0662841796875, -0.01557159423828125, 0.02294921875, 0.045501708984375, 0.0074310302734375, 0.01451873779296875, -0.0034732818603515625, -0.021820068359375, -0.0101776123046875, 0.011932373046875, -0.034088134765625, -0.038238525390625, 0.019805908203125, 0.05322265625, -0.0037174224853515625, 0.010894775390625, -0.11224365234375, 0.00421905517578125, 0.007415771484375, 0.00031113624572753906, -0.03875732421875, 0.0180206298828125, -0.0027904510498046875, 0.043853759765625, -0.0258026123046875, 0.0126190185546875, 0.0020236968994140625, 0.048126220703125, -0.0229034423828125, -0.046478271484375, -0.025848388671875, 0.04534912109375, -0.042327880859375, 0.0214691162109375, 0.0504150390625, -0.00821685791015625, -0.0029811859130859375, 0.0257415771484375, 0.016510009765625, 0.0791015625, -0.03759765625, 0.01361083984375, 0.048675537109375, 0.01171875, -0.07452392578125, -0.0673828125, 0.01678466796875, -0.0196380615234375, -0.00766754150390625, -0.011322021484375, 0.023040771484375, 0.038055419921875, -0.037872314453125, -0.08013916015625, 0.0249786376953125, -0.0104522705078125, -0.037078857421875, -0.00341033935546875, -0.0138702392578125, -0.02471923828125, 0.0238800048828125, -0.00820159912109375, -0.0010023117065429688, -0.01007080078125, 0.0222320556640625, -0.01485443115234375, 0.0173492431640625, 0.050994873046875, -0.03955078125, -0.0248260498046875, -0.036712646484375, -0.033966064453125, -0.0171966552734375, -0.002933502197265625, 0.00872039794921875, 0.01055908203125, 0.00902557373046875, -0.039154052734375, 0.00661468505859375, -0.011138916015625, 0.0029697418212890625, -0.01036834716796875, -0.060699462890625, -0.0152587890625, -0.022125244140625, 0.0762939453125, 0.0033054351806640625, 0.01476287841796875, -0.03521728515625, 0.0296630859375, -0.00705718994140625, -0.0016422271728515625, -0.01250457763671875, -0.0149688720703125, -0.034515380859375, -0.035614013671875, 0.00911712646484375, -0.019500732421875, 0.0015401840209960938, 0.0061187744140625, -0.0306243896484375, 0.002208709716796875, 0.017425537109375, 0.006580352783203125, -0.067138671875, -0.036651611328125, 0.134765625, -0.060821533203125, -0.01433563232421875, 0.038970947265625, 0.0205841064453125, 0.062408447265625, 0.018310546875, -0.014373779296875, -0.0489501953125, 0.0013742446899414062, 0.034088134765625, -0.0309906005859375, 0.08221435546875, -0.024749755859375, -0.0386962890625, -0.0208892822265625, 0.0178070068359375, 0.0085601806640625, 0.0001137852668762207, -0.019195556640625, 0.032379150390625, -0.0007419586181640625, 0.06982421875, -0.048583984375, 0.00823211669921875, -0.0281524658203125, 0.016998291015625, -0.024383544921875, 0.02911376953125, 0.01000213623046875, -0.004329681396484375, 0.0197906494140625, -0.00872802734375, -0.0313720703125, -0.00937652587890625, 0.0148162841796875, 0.04229736328125, -0.031982421875, 0.01317596435546875 ]
4f348e83bab83c65d7aace67167a74a7d4419bf7
Wordpress Stackexchange Q: wp enqueue style on specific page templates I am in the process of a theme, I would like to add landing pages using page-templates. I cannot find anywhere that shows how to enqueue style or js for specific page templates. Any suggestions. Ex. Landing Page 1 - landing-page-template-one.php will need very different style and js than the blog or homepage. A: If the page template is located in a subdirectory of the theme (since WP 3.4), prepend the folder name and a slash to the template filename, e.g.: is_page_template( 'templates/about.php' ); So, whole function look like: function my_enqueue_stuff() { if ( is_page_template( 'landing-page-template-one' ) ) { /** Call landing-page-template-one enqueue */ } else { /** Call regular enqueue */ } } add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' ); Reference: Official Documentations
Q: wp enqueue style on specific page templates I am in the process of a theme, I would like to add landing pages using page-templates. I cannot find anywhere that shows how to enqueue style or js for specific page templates. Any suggestions. Ex. Landing Page 1 - landing-page-template-one.php will need very different style and js than the blog or homepage. A: If the page template is located in a subdirectory of the theme (since WP 3.4), prepend the folder name and a slash to the template filename, e.g.: is_page_template( 'templates/about.php' ); So, whole function look like: function my_enqueue_stuff() { if ( is_page_template( 'landing-page-template-one' ) ) { /** Call landing-page-template-one enqueue */ } else { /** Call regular enqueue */ } } add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' ); Reference: Official Documentations A: If you plan to do a lot of WP development you should bookmark this page: http://codex.wordpress.org/Conditional_Tags The other answer works but the conditional relies upon your page slug (myurl.com/this-is-the-slug) never changing. A more reliable method (IMO), and one that fits this case, would be to use the is_page_template('example-template.php') conditional check instead. A: I don't know if the solutions provided in other answers used to work, but (since there's no accepted answer!) it seems the correct answer is currently: function my_enqueue_stuff() { if ( get_page_template_slug() == 'landing-page-template-one.php' ) { wp_enqueue_script('my-script-handle', 'script-path.js', ... ); } } add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' ); is_page_template() only works outside the loop, according to https://developer.wordpress.org/reference/functions/is_page_template/. A: You can use the is_page( 'landing-page-template-one' ) conditional around your page specific styles / scripts as part of your over-all enqueue statements. function my_enqueue_stuff() { if ( is_page( 'landing-page-template-one' ) ) { /** Call landing-page-template-one enqueue */ } else { /** Call regular enqueue */ } } add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' ); You could even chain more elseif into the above for other pages, etc. Reference: Functions Reference - is_page() A: Say your template name is temper and you want to load bootstrap on that page so you can enqueue style on specific page templates like this: go to function.php file then check the condition like this: function temper_scripts() { if(basename(get_page_template()) == 'temper.php'){ wp_enqueue_style('bootstrap', '//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css'); } } add_action('wp_enqueue_scripts', 'temper_scripts'); A: This one works perfectly. function my_enqueue_stuff() { // "page-templates/about.php" is the path of the template file. If your template file is in Theme's root folder, then use it as "about.php". if(is_page_template( 'page-templates/about.php' )) { wp_enqueue_script( 'lightgallery-js', get_template_directory_uri() . '/js/lightgallery-all.min.js'); wp_enqueue_script('raventours-picturefill', "https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js", true, null); } } add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' ); A: Try this if(is_page_template(array( 'custom-template/about.php') )) { wp_enqueue_style('about-css', get_template_directory_uri() . '/assets/css/about.css', array(), time(), 'all'); } A: function enqueue_my_script() { if ( is_page_template( 'my-page-template.php' ) ) { wp_enqueue_script( 'my-script', get_template_directory_uri() . '/js/my-script.js', array( 'jquery' ), '1.0', true ); } } add_action( 'wp_enqueue_scripts', 'enqueue_my_script' ); In this example, the enqueue_my_script function is hooked to the wp_enqueue_scripts action, which is called by WordPress when it is loading scripts and stylesheets. The function uses the is_page_template function to check if the current page is using a specific page template (in this case, 'my-page-template.php'). If the condition is true, the wp_enqueue_script function is called to enqueue the 'my-script' script. The wp_enqueue_script function takes the following arguments: 'my-script': This is the handle or identifier for the script. It should be unique and is used to reference the script when it is registered. get_template_directory_uri() . '/js/my-script.js': This is the URL of the JavaScript file. array( 'jquery' ): This specifies that the script depends on the jquery script, which means that it should be loaded after the jquery script. '1.0': This is the version number of the script. true: This specifies that the script should be loaded in the footer of the HTML document. You can use other conditional tags, such as is_home, is_front_page, is_single, and `
wordpress
{ "language": "en", "length": 615, "provenance": "stackexchange_00019.jsonl.gz:422741", "question_score": "34", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61244" }
[ -0.00034046173095703125, -0.00736236572265625, -0.042572021484375, -0.0186004638671875, -0.01152801513671875, -0.041015625, 0.02105712890625, 0.01513671875, -0.040557861328125, 0.01331329345703125, -0.039794921875, 0.043792724609375, -0.038299560546875, 0.005214691162109375, 0.03302001953125, -0.038299560546875, 0.0399169921875, -0.03253173828125, 0.019744873046875, -0.0095977783203125, 0.01568603515625, 0.006977081298828125, 0.0053863525390625, 0.06988525390625, 0.0070953369140625, -0.034210205078125, 0.08746337890625, 0.0186004638671875, 0.003143310546875, -0.0015764236450195312, 0.0245513916015625, -0.0310821533203125, 0.0289764404296875, 0.01378631591796875, -0.025238037109375, -0.0159149169921875, 0.0015535354614257812, -0.0104827880859375, -0.0104522705078125, 0.0341796875, 0.0200347900390625, -0.0019359588623046875, 0.02105712890625, 0.04193115234375, -0.00559234619140625, -0.041168212890625, 0.01303863525390625, -0.033294677734375, 0.01251983642578125, 0.03948974609375, 0.018218994140625, -0.0399169921875, 0.0086822509765625, 0.008453369140625, -0.0184173583984375, -0.01132965087890625, -0.0221405029296875, -0.01043701171875, 0.0184173583984375, 0.0275115966796875, 0.00897979736328125, 0.0003445148468017578, 0.00266265869140625, -0.02960205078125, -0.037200927734375, -0.007114410400390625, -0.0246734619140625, -0.0014553070068359375, -0.017181396484375, -0.032867431640625, 0.026702880859375, -0.0120391845703125, -0.014862060546875, -0.0241851806640625, -0.051849365234375, 0.0199737548828125, 0.044189453125, 0.00850677490234375, -0.0014753341674804688, -0.0184326171875, 0.0147705078125, -0.0162506103515625, 0.00554656982421875, -0.05975341796875, 0.052032470703125, -0.0182647705078125, -0.00855255126953125, -0.005626678466796875, -0.0247344970703125, -0.035614013671875, -0.033203125, -0.01424407958984375, -0.0019369125366210938, -0.035919189453125, -0.0345458984375, -0.019317626953125, 0.043609619140625, 0.0518798828125, 0.047515869140625, 0.0408935546875, 0.03070068359375, -0.08612060546875, 0.0888671875, -0.059417724609375, 0.003437042236328125, 0.056396484375, 0.000044286251068115234, 0.00933837890625, 0.045654296875, 0.0153961181640625, 0.0293426513671875, 0.039337158203125, 0.024383544921875, 0.0235137939453125, -0.031494140625, -0.022552490234375, -0.01239013671875, 0.0167388916015625, -0.0022106170654296875, 0.01436614990234375, 0.01297760009765625, 0.03936767578125, 0.036834716796875, -0.035614013671875, -0.0186004638671875, -0.01168060302734375, -0.012603759765625, -0.0816650390625, 0.0491943359375, 0.037994384765625, -0.005321502685546875, 0.0012636184692382812, 0.017852783203125, -0.01039886474609375, -0.035552978515625, -0.0258941650390625, 0.04266357421875, -0.0017309188842773438, -0.007259368896484375, -0.01375579833984375, 0.042022705078125, -0.027130126953125, -0.03228759765625, 0.016754150390625, -0.0002524852752685547, 0.00775146484375, 0.01031494140625, 0.0166015625, 0.0137481689453125, -0.0226287841796875, 0.0305938720703125, -0.05426025390625, 0.0194091796875, 0.01837158203125, -0.001800537109375, -0.016448974609375, 0.00849151611328125, -0.0028934478759765625, 0.00516510009765625, -0.0239105224609375, -0.048492431640625, 0.0153350830078125, 0.036529541015625, -0.01340484619140625, 0.030487060546875, -0.030426025390625, 0.0066680908203125, 0.021331787109375, 0.025970458984375, 0.058624267578125, -0.0171051025390625, -0.0596923828125, 0.01140594482421875, 0.0005903244018554688, -0.0296630859375, 0.021270751953125, -0.000018894672393798828, 0.054901123046875, 0.01215362548828125, 0.0557861328125, 0.0218658447265625, -0.03662109375, 0.08245849609375, -0.033538818359375, -0.03704833984375, -0.004673004150390625, 0.0299530029296875, 0.021148681640625, 0.0016126632690429688, 0.0198822021484375, 0.06756591796875, 0.01409912109375, -0.0183258056640625, 0.01727294921875, 0.0015611648559570312, -0.01094818115234375, -0.0303497314453125, 0.01549530029296875, -0.006381988525390625, -0.027008056640625, -0.0120849609375, 0.0233306884765625, 0.011627197265625, 0.0263519287109375, 0.0311279296875, 0.01448822021484375, -0.0017423629760742188, 0.0268402099609375, -0.03411865234375, 0.0010204315185546875, 0.01021575927734375, 0.004314422607421875, -0.02435302734375, -0.04498291015625, -0.031005859375, 0.008209228515625, 0.01239776611328125, 0.0418701171875, 0.006702423095703125, 0.002071380615234375, 0.0469970703125, -0.044891357421875, 0.0283660888671875, 0.045623779296875, 0.003360748291015625, -0.00324249267578125, -0.030670166015625, -0.007671356201171875, -0.041107177734375, 0.018798828125, -0.053375244140625, 0.03826904296875, -0.0015687942504882812, 0.058929443359375, -0.00982666015625, -0.0102691650390625, -0.006587982177734375, 0.00800323486328125, 0.01435089111328125, 0.0023822784423828125, 0.042327880859375, 0.049652099609375, 0.01300811767578125, 0.0009183883666992188, 0.08441162109375, 0.01126861572265625, 0.018218994140625, -0.01531219482421875, 0.01342010498046875, 0.0233154296875, 0.0116729736328125, 0.0028553009033203125, 0.0171051025390625, -0.0997314453125, 0.018890380859375, 0.04022216796875, -0.0169525146484375, 0.025177001953125, 0.003490447998046875, -0.006618499755859375, -0.008880615234375, 0.02734375, 0.0232391357421875, -0.0007977485656738281, 0.0132598876953125, -0.018646240234375, -0.004909515380859375, -0.0232086181640625, -0.0222625732421875, -0.0225982666015625, 0.043548583984375, -0.0247344970703125, 0.0074310302734375, 0.02801513671875, -0.029876708984375, 0.03759765625, -0.036865234375, -0.006000518798828125, 0.0245819091796875, 0.014862060546875, 0.014556884765625, 0.07196044921875, -0.01190185546875, -0.0171966552734375, -0.0254669189453125, -0.086181640625, -0.00925445556640625, 0.035186767578125, 0.049102783203125, 0.0244598388671875, 0.033966064453125, 0.04901123046875, 0.01026153564453125, 0.042572021484375, 0.01287078857421875, -0.0148468017578125, 0.05230712890625, -0.0238037109375, 0.042755126953125, -0.0377197265625, 0.0173797607421875, 0.037384033203125, -0.035919189453125, 0.0168609619140625, -0.01314544677734375, 0.0199127197265625, 0.0176239013671875, -0.0204925537109375, -0.00815582275390625, -0.035980224609375, 0.005413055419921875, 0.018035888671875, 0.044189453125, 0.0390625, 0.0246124267578125, -0.007843017578125, 0.01322174072265625, 0.0458984375, -0.0406494140625, -0.08660888671875, 0.035858154296875, -0.040283203125, 0.036041259765625, -0.0227203369140625, -0.01358795166015625, -0.03179931640625, 0.01312255859375, -0.0038280487060546875, -0.03179931640625, -0.01482391357421875, -0.058074951171875, -0.06878662109375, -0.0679931640625, 0.0036296844482421875, -0.005413055419921875, 0.01325225830078125, -0.0019054412841796875, 0.041046142578125, 0.005786895751953125, -0.03253173828125, 0.018646240234375, 0.01409912109375, -0.0121612548828125, -0.01258087158203125, 0.0199127197265625, -0.0438232421875, -0.0232391357421875, 0.0064239501953125, -0.04449462890625, -0.00913238525390625, 0.0270538330078125, 0.000023126602172851562, -0.03924560546875, -0.0155181884765625, -0.031646728515625, 0.01537322998046875, 0.06842041015625, -0.0216522216796875, -0.0186004638671875, -0.053131103515625, -0.0736083984375, 0.006618499755859375, -0.07440185546875, 0.03045654296875, 0.048797607421875, -0.00432586669921875, -0.0188446044921875, 0.019805908203125, 0.032257080078125, -0.0184326171875, -0.01309967041015625, -0.0014200210571289062, 0.0265350341796875, 0.001018524169921875, 0.0276641845703125, -0.006175994873046875, 0.033477783203125, -0.018585205078125, 0.0214080810546875, 0.0217132568359375, -0.01177215576171875, -0.0120086669921875, -0.0296478271484375, -0.04742431640625, -0.060028076171875, 0.0114898681640625, -0.04766845703125, 0.030609130859375, -0.0224456787109375, -0.000835418701171875, 0.03509521484375, 0.1005859375, -0.0250701904296875, -0.01215362548828125, 0.027801513671875, 0.015167236328125, -0.00829315185546875, -0.00275421142578125, -0.043731689453125, -0.0182342529296875, -0.07122802734375, 0.0082855224609375, -0.017913818359375, -0.0299835205078125, -0.0220947265625, -0.00212860107421875, -0.06634521484375, -0.037322998046875, 0.03167724609375, 0.019805908203125, -0.004726409912109375, 0.029022216796875, -0.0157470703125, 0.01264190673828125, -0.0122222900390625, -0.013885498046875, -0.055816650390625, -0.0167694091796875, 0.00006031990051269531, 0.05755615234375, 0.0201263427734375, -0.01605224609375, 0.019317626953125, 0.053497314453125, 0.009796142578125, -0.00339508056640625, 0.032440185546875, 0.024383544921875, -0.0193634033203125, -0.002986907958984375, 0.0152435302734375, -0.034423828125, 0.017181396484375, 0.0172576904296875, -0.049560546875, 0.01441192626953125, -0.0201263427734375, -0.016387939453125, 0.040313720703125, -0.049957275390625, -0.0289764404296875, 0.005542755126953125, 0.0310821533203125, 0.007549285888671875, 0.0296173095703125, -0.018310546875, -0.0113983154296875, -0.0164031982421875, 0.052581787109375, 0.007049560546875, -0.00015914440155029297, -0.01537322998046875, 0.046661376953125, 0.023895263671875, -0.052703857421875, 0.036224365234375, 0.0298309326171875, 0.0401611328125, 0.037109375, 0.03326416015625, -0.0158233642578125, -0.047698974609375, 0.0697021484375, 0.031494140625, -0.011474609375, 0.0217132568359375, 0.061492919921875, 0.005889892578125, -0.03216552734375, 0.01389312744140625, 0.0016574859619140625, -0.028533935546875, 0.032318115234375, -0.0087738037109375, -0.0103759765625, 0.0123291015625, 0.007724761962890625, -0.0160064697265625, 0.006687164306640625, -0.0135650634765625, -0.015167236328125, -0.029144287109375, 0.0352783203125, 0.0401611328125, 0.03656005859375, -0.00820159912109375, 0.00383758544921875, 0.068359375, -0.01145172119140625, 0.007129669189453125, 0.0224609375, -0.006664276123046875, -0.004199981689453125, 0.04608154296875, -0.024169921875, -0.01428985595703125, -0.0030765533447265625, 0.0263519287109375, 0.005405426025390625, -0.03350830078125, -0.0240631103515625, 0.00807952880859375, 0.04791259765625, 0.0091400146484375, 0.0265045166015625, 0.04541015625, 0.0235748291015625, -0.021575927734375, -0.0350341796875, -0.0005059242248535156, 0.0022830963134765625, -0.057586669921875, 0.014862060546875, -0.0145263671875, -0.01024627685546875, 0.01435089111328125, 0.01296234130859375, 0.0211029052734375, 0.0008878707885742188, -0.0116729736328125, -0.0162353515625, -0.0142059326171875, 0.037689208984375, 0.0274810791015625, -0.034088134765625, 0.004093170166015625, 0.01885986328125, 0.041534423828125, -0.0298919677734375, -0.006374359130859375, 0.01255035400390625, 0.0528564453125, -0.044952392578125, -0.038116455078125, 0.04364013671875, -0.0164337158203125, -0.00807952880859375, 0.0018787384033203125, -0.0013570785522460938, -0.0182037353515625, -0.005931854248046875, -0.005950927734375, 0.01194000244140625, 0.01183319091796875, 0.0256500244140625, -0.0193328857421875, 0.0009212493896484375, 0.0119476318359375, 0.01806640625, 0.004375457763671875, -0.02154541015625, -0.03753662109375, 0.004261016845703125, 0.00728607177734375, 0.0167388916015625, -0.07525634765625, -0.038299560546875, -0.0182952880859375, 0.0003445148468017578, 0.02239990234375, -0.0394287109375, 0.026092529296875, -0.009124755859375, -0.025238037109375, -0.0005164146423339844, 0.02947998046875, 0.0199432373046875, 0.01305389404296875, 0.016204833984375, -0.0273590087890625, -0.04473876953125, -0.028411865234375, -0.03240966796875, -0.050750732421875, 0.00008356571197509766, 0.01421356201171875, 0.005710601806640625, 0.0277862548828125, -0.032928466796875, -0.046051025390625, -0.038177490234375, -0.00028014183044433594, 0.0313720703125, 0.03863525390625, -0.044097900390625, 0.0648193359375, 0.023193359375, 0.0220184326171875, 0.00007730722427368164, 0.03717041015625, 0.0226898193359375, -0.014251708984375, -0.003444671630859375, -0.022552490234375, 0.0259246826171875, -0.0211944580078125, -0.004299163818359375, 0.004947662353515625, 0.081298828125, 0.014404296875, 0.048980712890625, -0.02288818359375, 0.0003170967102050781, -0.0181884765625, 0.01837158203125, -0.044097900390625, -0.0174713134765625, 0.07659912109375, 0.0301361083984375, 0.0662841796875, -0.0257568359375, 0.00920867919921875, -0.00786590576171875, -0.0109405517578125, 0.0292510986328125, -0.0206756591796875, -0.040435791015625, 0.05908203125, 0.039154052734375, 0.0194549560546875, 0.0121612548828125, -0.035369873046875, -0.004619598388671875, -0.02923583984375, 0.0165863037109375, -0.028289794921875, -0.03253173828125, 0.034027099609375, -0.0002894401550292969, -0.000728607177734375, 0.0184173583984375, -0.0045318603515625, -0.003925323486328125, 0.063232421875, 0.03472900390625, -0.07818603515625, -0.006450653076171875, -0.0005850791931152344, 0.0003859996795654297, -0.01165771484375, -0.03839111328125, 0.04693603515625, -0.01055145263671875, 0.07769775390625, 0.048797607421875, 0.005260467529296875, 0.033599853515625, -0.045989990234375, -0.02606201171875, -0.043914794921875, -0.006862640380859375, 0.01477813720703125, -0.0253143310546875, 0.041229248046875, 0.02557373046875, -0.00676727294921875, -0.00920867919921875, 0.0035762786865234375, -0.0130615234375, -0.024810791015625, -0.01105499267578125, 0.0155792236328125, -0.035400390625, -0.01212310791015625, -0.02874755859375, 0.0033416748046875, 0.024688720703125, 0.0182952880859375, -0.0114288330078125, -0.013458251953125, -0.0008120536804199219, 0.01018524169921875, -0.01074981689453125, -0.0254364013671875, 0.04742431640625, -0.034637451171875, -0.04974365234375, 0.0174560546875, -0.0281829833984375, -0.04254150390625, -0.0014848709106445312, 0.007488250732421875, 0.07684326171875, -0.040496826171875, -0.0089111328125, 0.006145477294921875, 0.02911376953125, 0.00986480712890625, -0.0102691650390625, 0.0328369140625, -0.067138671875, -0.061279296875, 0.024749755859375, -0.06817626953125, -0.035125732421875, -0.031463623046875, -0.0552978515625, 0.07672119140625, -0.0216064453125, 0.0287628173828125, 0.0244903564453125, 0.03167724609375, -0.0191497802734375, 0.00897979736328125, -0.00118255615234375, 0.034088134765625, 0.03369140625, 0.017822265625, -0.01230621337890625, -0.0124664306640625, 0.021942138671875, 0.057769775390625, 0.004985809326171875, -0.007007598876953125, 0.01898193359375, -0.008270263671875, 0.046142578125, 0.065673828125, 0.0272216796875, -0.0211029052734375, -0.039031982421875, -0.0004329681396484375, -0.02154541015625, -0.0654296875, -0.006763458251953125, -0.0194549560546875, -0.035186767578125, 0.0019426345825195312, 0.004177093505859375, 0.02093505859375, -0.021484375, 0.000001430511474609375, -0.042816162109375, 0.0006618499755859375, 0.0306854248046875, -0.01136016845703125, -0.0258026123046875, 0.042083740234375, -0.0151214599609375, -0.0230712890625, -0.05859375, -0.0180816650390625, 0.0089111328125, -0.008697509765625, -0.00710296630859375, -0.018218994140625, 0.00894927978515625, -0.00009113550186157227, -0.008209228515625, -0.0164337158203125, 0.0340576171875, -0.026092529296875, 0.055511474609375, -0.0276031494140625, 0.0124664306640625, -0.062744140625, -0.0250396728515625, -0.042022705078125, 0.0207366943359375, -0.035430908203125, 0.0189971923828125, 0.01268768310546875, 0.007110595703125, 0.0005645751953125, -0.043853759765625, 0.01224517822265625, -0.01068878173828125, -0.01178741455078125, -0.006061553955078125, -0.035614013671875, -0.00464630126953125, -0.006103515625, -0.01751708984375, -0.0260009765625, 0.049652099609375, 0.017181396484375, -0.04742431640625, 0.035247802734375, 0.0298004150390625, 0.053466796875, 0.005962371826171875, 0.00826263427734375, -0.0161285400390625, -0.0148773193359375, -0.025604248046875, 0.0357666015625, -0.01995849609375, 0.03729248046875, -0.0222320556640625, 0.019439697265625, -0.031524658203125, 0.032623291015625, -0.0079193115234375, -0.0071868896484375, 0.02996826171875, 0.0206298828125, -0.0364990234375, -0.020599365234375, 0.00774383544921875, -0.0298614501953125, 0.02978515625, -0.0157470703125, 0.004123687744140625, 0.01218414306640625, -0.03826904296875, -0.0038242340087890625, 0.002231597900390625, 0.050018310546875, -0.039306640625, 0.00846099853515625, 0.0012989044189453125, -0.031341552734375, 0.0289764404296875, 0.005672454833984375, 0.046966552734375, 0.0029315948486328125, -0.08074951171875, -0.0202178955078125, -0.02593994140625, -0.0177154541015625, 0.0250396728515625, 0.0428466796875, -0.035675048828125, 0.031646728515625, 0.033966064453125, 0.0233001708984375, -0.01355743408203125, 0.003932952880859375, -0.0006184577941894531, 0.0008363723754882812, 0.05181884765625, 0.0290679931640625, -0.06622314453125, -0.03509521484375, -0.0237579345703125, 0.04290771484375, -0.0033111572265625, 0.04754638671875, -0.01470947265625, 0.01459503173828125, 0.056671142578125, -0.017730712890625, 0.040252685546875, 0.01934814453125, 0.041168212890625, -0.0125274658203125, 0.005802154541015625, -0.0270233154296875, -0.052001953125, 0.0206451416015625, 0.0091705322265625, 0.0028095245361328125, 0.007221221923828125, -0.01245880126953125, 0.013824462890625, 0.01374053955078125, 0.0149993896484375, -0.033660888671875, -0.0280609130859375, -0.047454833984375, -0.0006709098815917969, 0.0018444061279296875, -0.00885009765625, -0.011993408203125, 0.03997802734375, -0.0032405853271484375, -0.041412353515625, 0.01922607421875, -0.056610107421875, 0.0302734375, 0.036041259765625, 0.0347900390625, -0.043487548828125, 0.0287322998046875, 0.00286865234375, -0.002826690673828125, 0.0121612548828125, 0.047210693359375, 0.010986328125, -0.04638671875, 0.01546478271484375, -0.0040283203125, -0.00091552734375, -0.015472412109375, -0.021331787109375, 0.05023193359375, -0.032562255859375, -0.0477294921875, -0.032470703125, -0.0343017578125, -0.050323486328125, 0.0240478515625, 0.045440673828125, -0.00994110107421875, 0.0260162353515625, -0.04705810546875, 0.0008416175842285156, 0.01143646240234375, 0.01371002197265625, -0.0517578125, 0.041900634765625, -0.035003662109375, 0.00605010986328125, 0.01043701171875, 0.0171661376953125, 0.01428985595703125, 0.0228271484375, -0.0731201171875, 0.021026611328125, -0.01369476318359375, -0.028900146484375, -0.00913238525390625, -0.021514892578125, 0.0159149169921875, 0.01421356201171875, 0.025390625, -0.0152587890625, -0.01739501953125, 0.04681396484375, -0.06640625, -0.02044677734375, 0.0361328125, -0.007343292236328125, 0.003955841064453125, -0.047210693359375, -0.0170745849609375, -0.01473236083984375, 0.0333251953125, 0.0231475830078125, -0.0283203125, 0.0015668869018554688, -0.035308837890625, -0.0860595703125, 0.058349609375, 0.00214385986328125, -0.04742431640625, -0.05621337890625, 0.03387451171875, 0.0266571044921875, -0.08154296875, -0.044586181640625, -0.0084075927734375, -0.01198577880859375, 0.03192138671875, 0.01666259765625, 0.031036376953125, 0.042144775390625, 0.0015287399291992188, -0.059906005859375, -0.0099029541015625, -0.0298614501953125, 0.003170013427734375, -0.0041351318359375, -0.039642333984375, 0.048065185546875, 0.030242919921875, -0.021820068359375, -0.0251922607421875, 0.030731201171875, -0.0118560791015625, -0.0029811859130859375, 0.03936767578125, -0.013641357421875, 0.00839996337890625, 0.0782470703125, 0.017669677734375, 0.0281829833984375, -0.0108795166015625, 0.0124969482421875, -0.0202789306640625, 0.0010843276977539062, -0.00008624792098999023, 0.00542449951171875, -0.03424072265625, -0.01108551025390625, 0.01324462890625, 0.00013875961303710938, -0.0279693603515625, -0.045074462890625, -0.03564453125, -0.025604248046875, -0.037384033203125, 0.032501220703125, -0.025634765625, -0.033050537109375, 0.11309814453125, -0.04168701171875, 0.03253173828125, -0.0002033710479736328, 0.0458984375, 0.060516357421875, -0.01024627685546875, -0.00970458984375, 0.06243896484375, -0.09307861328125, -0.01470184326171875, -0.025787353515625, -0.002044677734375, -0.060211181640625, 0.0272369384765625, -0.021514892578125, 0.042999267578125, 0.0159912109375, 0.05267333984375, -0.0289306640625, 0.05963134765625, 0.02166748046875, 0.0452880859375, -0.004016876220703125, 0.042877197265625, 0.00799560546875, 0.02685546875, 0.019805908203125, -0.0178680419921875, 0.0555419921875, -0.04095458984375, -0.0021114349365234375, -0.02239990234375, -0.02044677734375, -0.03814697265625, 0.01395416259765625, -0.0265655517578125, -0.0128173828125, 0.01009368896484375 ]
de10107e269e6a2c14166af1e779dc50b8eff7c9
Wordpress Stackexchange Q: Prevent wp_login_form() from redirecting to wp-admin when there are errors I have made a login form on the front-end of my site using wp_login_form(). However, when the user types in an incorrect username/password they are redirected to the wp-admin login form. How can you instead display any error messages above the login form? Ideally, I don't want the user to ever have to see the Wordpress admin section. I have tried using the redirect_invalid_login() hook but this doesn't seem to work? A: just add the following code to your function.php. it will redirect back user from where the login form is submitted. add_action( 'wp_login_failed', 'my_front_end_login_fail' ); // hook failed login function my_front_end_login_fail( $username ) { $referrer = $_SERVER['HTTP_REFERER']; // where did the post submission come from? // if there's a valid referrer, and it's not the default log-in screen if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) { wp_redirect( $referrer . '?login=failed' ); // let's append some information (login=failed) to the URL for the theme to use exit; } }
Q: Prevent wp_login_form() from redirecting to wp-admin when there are errors I have made a login form on the front-end of my site using wp_login_form(). However, when the user types in an incorrect username/password they are redirected to the wp-admin login form. How can you instead display any error messages above the login form? Ideally, I don't want the user to ever have to see the Wordpress admin section. I have tried using the redirect_invalid_login() hook but this doesn't seem to work? A: just add the following code to your function.php. it will redirect back user from where the login form is submitted. add_action( 'wp_login_failed', 'my_front_end_login_fail' ); // hook failed login function my_front_end_login_fail( $username ) { $referrer = $_SERVER['HTTP_REFERER']; // where did the post submission come from? // if there's a valid referrer, and it's not the default log-in screen if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) { wp_redirect( $referrer . '?login=failed' ); // let's append some information (login=failed) to the URL for the theme to use exit; } }
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:422744", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61267" }
[ 0.07147216796875, 0.0017242431640625, 0.01461029052734375, -0.028961181640625, 0.01459503173828125, -0.035675048828125, 0.0352783203125, -0.043609619140625, 0.000004708766937255859, 0.0279388427734375, 0.039337158203125, -0.032440185546875, 0.0258026123046875, -0.0521240234375, -0.01666259765625, -0.01239776611328125, 0.003643035888671875, 0.01995849609375, 0.019195556640625, -0.021026611328125, 0.0213165283203125, -0.01163482666015625, 0.0021533966064453125, -0.0181427001953125, -0.0027408599853515625, 0.00786590576171875, 0.09521484375, -0.0496826171875, 0.0214385986328125, -0.0059967041015625, 0.0108642578125, -0.052032470703125, 0.0249176025390625, 0.027587890625, -0.0467529296875, -0.030517578125, 0.0022373199462890625, 0.00940704345703125, -0.02056884765625, 0.0239715576171875, 0.03668212890625, -0.0178680419921875, -0.01468658447265625, 0.0108489990234375, -0.027557373046875, -0.0262603759765625, 0.0360107421875, -0.0005855560302734375, 0.0187835693359375, 0.00745391845703125, 0.00933837890625, 0.02813720703125, 0.0189971923828125, -0.004756927490234375, -0.0191497802734375, -0.0036869049072265625, -0.02752685546875, -0.004444122314453125, 0.02911376953125, 0.03961181640625, -0.0038471221923828125, -0.020355224609375, -0.01047515869140625, -0.046142578125, -0.01515960693359375, -0.00562286376953125, -0.0158233642578125, 0.020355224609375, -0.02203369140625, -0.0187835693359375, 0.00974273681640625, -0.0209808349609375, 0.005428314208984375, 0.021514892578125, 0.0011768341064453125, -0.061248779296875, 0.027923583984375, 0.00179290771484375, 0.007236480712890625, 0.0421142578125, -0.0105438232421875, -0.0204620361328125, 0.0133209228515625, -0.01001739501953125, 0.006244659423828125, 0.0271148681640625, -0.024200439453125, -0.0169677734375, 0.0023860931396484375, -0.04986572265625, -0.013702392578125, -0.037750244140625, -0.0306854248046875, 0.0030155181884765625, -0.00878143310546875, -0.035919189453125, 0.0292510986328125, 0.03216552734375, 0.007030487060546875, -0.0196990966796875, -0.006320953369140625, -0.023651123046875, -0.0399169921875, -0.003940582275390625, 0.0015697479248046875, 0.07513427734375, 0.005840301513671875, -0.02947998046875, -0.01371002197265625, 0.0010166168212890625, 0.0078887939453125, -0.035888671875, -0.056243896484375, -0.0560302734375, -0.0093841552734375, 0.069091796875, -0.037139892578125, -0.00122833251953125, 0.008697509765625, 0.03094482421875, -0.034088134765625, -0.03094482421875, 0.0198822021484375, -0.050079345703125, 0.04095458984375, -0.0130157470703125, -0.055267333984375, 0.03973388671875, -0.00568389892578125, 0.0389404296875, -0.031402587890625, -0.0037593841552734375, 0.048583984375, 0.004390716552734375, 0.00093841552734375, -0.033416748046875, 0.04351806640625, 0.0213470458984375, -0.00887298583984375, 0.0265350341796875, -0.00977325439453125, -0.05108642578125, -0.0340576171875, -0.003398895263671875, 0.0015964508056640625, 0.03167724609375, 0.028411865234375, 0.003261566162109375, -0.01346588134765625, -0.07470703125, 0.0183868408203125, -0.037567138671875, -0.0207977294921875, 0.0284423828125, 0.04766845703125, 0.0212860107421875, 0.040435791015625, -0.0061187744140625, -0.0035686492919921875, 0.007434844970703125, 0.040863037109375, 0.0190582275390625, 0.0092010498046875, -0.043975830078125, -0.0618896484375, -0.043914794921875, -0.058013916015625, -0.017242431640625, 0.01959228515625, 0.017852783203125, 0.0239105224609375, -0.0030002593994140625, -0.01506805419921875, 0.00988006591796875, 0.00322723388671875, -0.002529144287109375, -0.0131378173828125, 0.047760009765625, 0.0178375244140625, 0.00543975830078125, -0.00122833251953125, -0.035400390625, 0.05340576171875, 0.009796142578125, -0.03863525390625, 0.0028591156005859375, 0.035186767578125, 0.0308990478515625, -0.0062713623046875, 0.017303466796875, 0.052093505859375, 0.0279541015625, -0.00732421875, 0.000614166259765625, -0.05023193359375, -0.043182373046875, 0.04510498046875, 0.01605224609375, -0.0242156982421875, 0.04107666015625, -0.003253936767578125, -0.0027599334716796875, -0.01568603515625, -0.0155029296875, -0.0526123046875, -0.01397705078125, -0.01433563232421875, 0.0289764404296875, -0.01605224609375, 0.037445068359375, 0.010528564453125, 0.01238250732421875, -0.020111083984375, 0.0045928955078125, 0.003665924072265625, -0.00740814208984375, -0.0361328125, 0.0305938720703125, -0.00731658935546875, 0.054901123046875, -0.0237274169921875, -0.0276336669921875, -0.032135009765625, -0.06146240234375, 0.008544921875, -0.004566192626953125, -0.009185791015625, -0.01099395751953125, -0.0007281303405761719, 0.00040841102600097656, -0.01470184326171875, 0.0237274169921875, 0.021484375, 0.007717132568359375, -0.035369873046875, 0.00260162353515625, 0.00176239013671875, -0.051513671875, 0.0062713623046875, 0.032745361328125, 0.033447265625, 0.039459228515625, -0.0184783935546875, 0.015655517578125, -0.0033588409423828125, -0.08538818359375, 0.00279998779296875, 0.004512786865234375, -0.0009083747863769531, 0.0003495216369628906, -0.00688934326171875, -0.006061553955078125, 0.0433349609375, -0.050750732421875, 0.0001614093780517578, 0.05584716796875, -0.0018482208251953125, -0.02960205078125, -0.016571044921875, 0.01328277587890625, 0.0228118896484375, -0.060150146484375, -0.05169677734375, -0.01404571533203125, -0.0345458984375, -0.05206298828125, -0.03472900390625, -0.055328369140625, -0.00787353515625, -0.046173095703125, 0.048309326171875, -0.036773681640625, -0.00707244873046875, -0.01355743408203125, 0.046234130859375, -0.0472412109375, -0.046905517578125, 0.0121917724609375, 0.024993896484375, -0.0293121337890625, -0.008544921875, 0.0305328369140625, -0.006072998046875, -0.010589599609375, -0.0001817941665649414, -0.0124053955078125, 0.019683837890625, 0.01415252685546875, 0.0693359375, -0.013427734375, 0.02301025390625, -0.0117950439453125, -0.0211334228515625, 0.047821044921875, -0.0006699562072753906, -0.06488037109375, -0.0389404296875, -0.0281829833984375, 0.036834716796875, -0.049041748046875, 0.042816162109375, 0.06158447265625, -0.02874755859375, 0.03515625, 0.007465362548828125, 0.0286407470703125, 0.022857666015625, -0.006687164306640625, -0.013824462890625, -0.014617919921875, -0.0482177734375, -0.0267181396484375, 0.045013427734375, 0.037109375, 0.03759765625, -0.02447509765625, 0.0193023681640625, 0.0361328125, -0.03857421875, -0.0714111328125, -0.07489013671875, -0.032989501953125, 0.033477783203125, 0.0343017578125, 0.00209808349609375, 0.00594329833984375, 0.06097412109375, 0.0328369140625, 0.045562744140625, -0.00888824462890625, -0.05352783203125, -0.002712249755859375, -0.06280517578125, -0.01910400390625, -0.010528564453125, 0.0005140304565429688, 0.0082244873046875, 0.034515380859375, 0.014404296875, -0.046478271484375, 0.0181884765625, 0.05487060546875, -0.0177001953125, -0.0112762451171875, -0.059417724609375, -0.005268096923828125, 0.04425048828125, 0.0010423660278320312, -0.0248260498046875, -0.026824951171875, 0.06121826171875, -0.0233001708984375, 0.01593017578125, -0.050262451171875, 0.01166534423828125, -0.0007877349853515625, -0.039337158203125, -0.0313720703125, 0.00431060791015625, -0.056488037109375, 0.02044677734375, -0.0170135498046875, -0.055419921875, -0.0064697265625, 0.041290283203125, -0.0307159423828125, 0.035552978515625, -0.072998046875, 0.031280517578125, 0.01216888427734375, -0.0250396728515625, 0.00730133056640625, 0.006610870361328125, 0.005718231201171875, 0.042816162109375, 0.004505157470703125, 0.0213775634765625, -0.0119476318359375, -0.007465362548828125, -0.003047943115234375, 0.0288848876953125, 0.00994873046875, 0.0037689208984375, -0.006622314453125, -0.089599609375, 0.03765869140625, -0.053985595703125, -0.01226043701171875, -0.040008544921875, -0.006031036376953125, 0.005168914794921875, 0.10479736328125, -0.0004341602325439453, 0.0081939697265625, -0.035064697265625, -0.019744873046875, 0.0030879974365234375, -0.0093841552734375, -0.033905029296875, 0.004245758056640625, -0.03704833984375, -0.01983642578125, -0.01383209228515625, -0.0279693603515625, 0.02325439453125, -0.02374267578125, -0.0024566650390625, -0.03399658203125, 0.018768310546875, 0.004352569580078125, 0.02362060546875, -0.003429412841796875, -0.0012054443359375, -0.01268768310546875, 0.00965118408203125, -0.0252685546875, -0.09716796875, -0.0216217041015625, -0.0219268798828125, 0.08953857421875, 0.0186309814453125, -0.01009368896484375, -0.0277252197265625, 0.040740966796875, 0.03167724609375, -0.0081329345703125, -0.00507354736328125, -0.02691650390625, 0.024322509765625, -0.00656890869140625, -0.0245208740234375, -0.0010213851928710938, -0.0047760009765625, -0.00577545166015625, -0.048980712890625, -0.03424072265625, -0.0303955078125, -0.03302001953125, 0.034271240234375, -0.0390625, -0.0301361083984375, -0.0297698974609375, -0.01312255859375, -0.0096893310546875, 0.004611968994140625, -0.01065826416015625, -0.024200439453125, -0.0105743408203125, 0.030059814453125, 0.0108184814453125, -0.046783447265625, 0.002216339111328125, 0.0261077880859375, 0.025054931640625, -0.02362060546875, -0.005733489990234375, 0.0119171142578125, 0.0254974365234375, -0.04669189453125, 0.055755615234375, 0.0090789794921875, -0.0182647705078125, 0.1058349609375, -0.02410888671875, -0.01441192626953125, -0.002460479736328125, 0.031402587890625, -0.01528167724609375, -0.059600830078125, 0.0255126953125, -0.0430908203125, 0.02593994140625, 0.0200042724609375, -0.0020275115966796875, -0.0055389404296875, -0.006916046142578125, 0.018646240234375, -0.0176239013671875, 0.016632080078125, -0.005809783935546875, -0.0006575584411621094, -0.01029205322265625, -0.01505279541015625, -0.0093994140625, 0.03375244140625, -0.0060272216796875, -0.038330078125, 0.01052093505859375, -0.01617431640625, -0.004436492919921875, -0.0543212890625, 0.027374267578125, 0.028106689453125, -0.00980377197265625, 0.028533935546875, 0.00630950927734375, -0.01763916015625, 0.0885009765625, 0.035491943359375, -0.039825439453125, 0.0251617431640625, -0.02178955078125, -0.0254364013671875, -0.012420654296875, 0.002506256103515625, 0.0360107421875, -0.0144195556640625, -0.03460693359375, -0.0162506103515625, 0.01268768310546875, -0.05804443359375, -0.04541015625, 0.04656982421875, 0.005825042724609375, 0.0009355545043945312, 0.01180267333984375, 0.03802490234375, 0.004180908203125, 0.021331787109375, -0.007465362548828125, 0.0003650188446044922, 0.01483917236328125, 0.0185394287109375, 0.034271240234375, -0.005084991455078125, 0.004974365234375, -0.005329132080078125, 0.029388427734375, -0.044097900390625, -0.019744873046875, 0.00493621826171875, 0.0281829833984375, 0.005977630615234375, 0.00562286376953125, 0.0177001953125, 0.00885009765625, 0.00888824462890625, 0.0615234375, -0.019195556640625, -0.08880615234375, -0.0162353515625, 0.0013532638549804688, 0.0266571044921875, -0.0770263671875, -0.010223388671875, -0.0009946823120117188, -0.037811279296875, -0.028656005859375, 0.03546142578125, -0.066650390625, -0.007701873779296875, -0.0003173351287841797, 0.0006976127624511719, -0.02093505859375, -0.0306854248046875, -0.0035305023193359375, 0.006439208984375, -0.004657745361328125, -0.004787445068359375, 0.0001672506332397461, -0.02490234375, -0.0117034912109375, -0.035980224609375, 0.0364990234375, -0.04083251953125, -0.007015228271484375, 0.038787841796875, 0.002765655517578125, -0.039306640625, 0.0221710205078125, -0.04266357421875, -0.0124053955078125, -0.01288604736328125, -0.019683837890625, -0.0201416015625, -0.0243072509765625, 0.029815673828125, 0.004329681396484375, 0.0372314453125, -0.0006456375122070312, -0.0286712646484375, -0.00772857666015625, 0.0203399658203125, 0.0030364990234375, 0.0026531219482421875, 0.03424072265625, -0.040771484375, -0.00621795654296875, -0.0037288665771484375, 0.027130126953125, 0.0196075439453125, -0.00931549072265625, 0.007587432861328125, -0.004436492919921875, -0.01517486572265625, -0.0206756591796875, 0.01467132568359375, 0.006374359130859375, 0.058380126953125, -0.01519775390625, -0.0004584789276123047, 0.005390167236328125, 0.005916595458984375, -0.0178985595703125, 0.01233673095703125, 0.0260467529296875, -0.007049560546875, 0.0135498046875, 0.01258087158203125, 0.0114288330078125, -0.0182952880859375, -0.01491546630859375, -0.01264190673828125, 0.01171875, -0.00007987022399902344, -0.0180206298828125, -0.044342041015625, 0.0244598388671875, 0.080078125, 0.0330810546875, 0.047698974609375, 0.00475311279296875, 0.023895263671875, 0.031829833984375, 0.0025844573974609375, 0.00847625732421875, 0.0083160400390625, 0.035491943359375, -0.01155853271484375, -0.02752685546875, 0.007625579833984375, -0.037078857421875, -0.02142333984375, 0.07330322265625, 0.061920166015625, -0.09759521484375, 0.0010967254638671875, 0.02239990234375, 0.0259857177734375, 0.00897979736328125, 0.001873016357421875, 0.0139312744140625, -0.00801849365234375, 0.004146575927734375, -0.0143890380859375, -0.01097869873046875, -0.0038280487060546875, -0.004756927490234375, -0.006526947021484375, -0.01708984375, 0.0250091552734375, -0.01146697998046875, -0.0469970703125, -0.047271728515625, 0.03009033203125, -0.055206298828125, -0.0108642578125, 0.005584716796875, -0.0225982666015625, -0.032745361328125, -0.08123779296875, -0.04705810546875, -0.00391387939453125, -0.0211334228515625, 0.032440185546875, 0.003574371337890625, 0.053802490234375, 0.04559326171875, 0.003574371337890625, 0.0011348724365234375, -0.005970001220703125, 0.038970947265625, 0.06256103515625, -0.0243988037109375, 0.005283355712890625, -0.005443572998046875, -0.059234619140625, 0.0048980712890625, 0.0009098052978515625, -0.027862548828125, -0.0085906982421875, -0.01537322998046875, 0.07025146484375, 0.0206451416015625, -0.045379638671875, 0.015777587890625, -0.0242462158203125, -0.00678253173828125, -0.026153564453125, 0.0391845703125, -0.053802490234375, -0.029327392578125, -0.01285552978515625, -0.054840087890625, -0.01898193359375, -0.0648193359375, -0.063232421875, 0.07769775390625, 0.0030040740966796875, 0.03961181640625, 0.0157623291015625, 0.01446533203125, -0.0278472900390625, 0.0096893310546875, -0.0599365234375, 0.041015625, 0.0638427734375, 0.01392364501953125, -0.02862548828125, -0.019317626953125, -0.00859832763671875, 0.01226806640625, 0.02996826171875, 0.032989501953125, -0.0626220703125, 0.00589752197265625, 0.0295867919921875, 0.0238800048828125, 0.010589599609375, 0.06927490234375, 0.0064544677734375, -0.0004115104675292969, 0.037017822265625, -0.032501220703125, 0.0247344970703125, -0.0210723876953125, 0.00606536865234375, 0.0157470703125, -0.007511138916015625, -0.05645751953125, 0.0011463165283203125, -0.0023059844970703125, -0.1318359375, 0.025665283203125, 0.05108642578125, 0.039276123046875, -0.0017976760864257812, 0.0281524658203125, 0.0201873779296875, 0.0013980865478515625, 0.0300140380859375, -0.03607177734375, 0.042816162109375, -0.00959014892578125, -0.004093170166015625, 0.0217437744140625, 0.0172882080078125, 0.0206146240234375, -0.010498046875, -0.009613037109375, 0.0251922607421875, -0.0095367431640625, 0.038482666015625, 0.021026611328125, 0.038238525390625, -0.02227783203125, -0.004611968994140625, -0.0031032562255859375, 0.045745849609375, -0.03216552734375, -0.0330810546875, 0.007678985595703125, 0.0161895751953125, 0.019317626953125, 0.0110321044921875, 0.0389404296875, -0.020111083984375, 0.0094451904296875, -0.0007495880126953125, -0.00701141357421875, 0.033447265625, -0.0222930908203125, 0.00885772705078125, 0.0180816650390625, 0.0228271484375, 0.04150390625, 0.0100250244140625, -0.024139404296875, 0.006366729736328125, 0.02459716796875, -0.01229095458984375, 0.0212860107421875, -0.03143310546875, 0.0035152435302734375, -0.030853271484375, 0.005046844482421875, -0.00644683837890625, 0.019317626953125, -0.028839111328125, 0.00789642333984375, -0.031524658203125, 0.031890869140625, -0.034332275390625, -0.006008148193359375, -0.004703521728515625, 0.033050537109375, 0.0080413818359375, -0.032501220703125, -0.0033702850341796875, -0.020751953125, 0.0044403076171875, -0.00789642333984375, -0.03485107421875, -0.003173828125, -0.02740478515625, -0.0003528594970703125, -0.0079498291015625, 0.015380859375, -0.004817962646484375, 0.057769775390625, -0.0089569091796875, -0.01511383056640625, -0.026763916015625, -0.0330810546875, 0.058807373046875, 0.0201873779296875, -0.06561279296875, -0.025146484375, 0.0023288726806640625, -0.028900146484375, 0.01104736328125, 0.029998779296875, -0.0171661376953125, 0.0206451416015625, 0.0038814544677734375, -0.0135345458984375, 0.0090789794921875, -0.0218658447265625, 0.02435302734375, -0.0546875, -0.0117645263671875, -0.033966064453125, -0.053924560546875, -0.0009126663208007812, -0.00058746337890625, -0.00689697265625, -0.01108551025390625, 0.05926513671875, 0.0134735107421875, -0.004863739013671875, -0.04302978515625, 0.0083465576171875, -0.03741455078125, -0.037841796875, 0.0243682861328125, -0.01593017578125, -0.03460693359375, 0.005695343017578125, -0.062164306640625, 0.047332763671875, -0.007720947265625, 0.0282135009765625, 0.040740966796875, -0.024078369140625, 0.004062652587890625, 0.0034542083740234375, 0.0322265625, -0.01702880859375, -0.07293701171875, -0.01849365234375, 0.0572509765625, -0.0214385986328125, 0.04083251953125, -0.0208282470703125, 0.050537109375, -0.09088134765625, -0.02288818359375, 0.0128326416015625, -0.08233642578125, -0.0245361328125, 0.0155792236328125, -0.05072021484375, 0.04046630859375, -0.0255126953125, -0.027374267578125, 0.01081085205078125, 0.00911712646484375, -0.035064697265625, -0.0206756591796875, 0.03973388671875, 0.03411865234375, 0.00698089599609375, 0.029449462890625, -0.0027942657470703125, -0.007419586181640625, 0.006805419921875, -0.01274871826171875, -0.00466156005859375, -0.05267333984375, -0.040771484375, -0.0426025390625, -0.0068206787109375, 0.0163421630859375, -0.01004791259765625, -0.050384521484375, -0.0418701171875, 0.0701904296875, 0.03326416015625, -0.02685546875, -0.033172607421875, 0.0138397216796875, -0.056488037109375, 0.12115478515625, -0.01806640625, 0.0302886962890625, -0.006114959716796875, 0.011383056640625, -0.047698974609375, 0.009063720703125, -0.044158935546875, -0.00530242919921875, -0.032958984375, -0.03253173828125, 0.043609619140625, 0.0191497802734375, -0.009857177734375, -0.0609130859375, -0.044403076171875, -0.01558685302734375, -0.0836181640625, -0.01076507568359375, 0.0011835098266601562, 0.033294677734375, -0.006175994873046875, -0.025238037109375, -0.0143585205078125, 0.033538818359375, 0.0024433135986328125, -0.0129241943359375, -0.031829833984375, -0.0438232421875, -0.06781005859375, -0.07550048828125, 0.044219970703125, -0.0011434555053710938, -0.028564453125, -0.052978515625, -0.00281524658203125, 0.004184722900390625, -0.0162506103515625, -0.02044677734375, -0.0305938720703125, -0.026397705078125, 0.046539306640625, 0.0104827880859375, -0.0284423828125, 0.041534423828125, 0.018951416015625, -0.029632568359375, 0.017303466796875, 0.0184326171875, -0.01030731201171875, -0.0345458984375, 0.015655517578125, 0.03314208984375, 0.036651611328125, 0.0020771026611328125, 0.045989990234375, 0.0286865234375, -0.00826263427734375, -0.00736236572265625, -0.05218505859375, 0.0273284912109375, -0.028106689453125, -0.00823211669921875, -0.01000213623046875, -0.022918701171875, 0.0136871337890625, -0.03802490234375, -0.0303497314453125, -0.0191497802734375, -0.019500732421875, 0.02301025390625, -0.08172607421875, -0.0214996337890625, 0.007465362548828125, -0.011383056640625, -0.010284423828125, 0.0145416259765625, -0.01548004150390625, -0.0026454925537109375, 0.048492431640625, -0.0011644363403320312, 0.0034961700439453125, -0.032623291015625, 0.06988525390625, -0.039306640625, 0.00018966197967529297, 0.00035643577575683594, 0.031524658203125, 0.02679443359375, 0.0019283294677734375, 0.0130767822265625, -0.0003161430358886719, -0.0243072509765625, 0.0021877288818359375, 0.01812744140625, 0.004550933837890625, -0.01056671142578125, -0.0241546630859375, 0.002651214599609375, -0.00012183189392089844, -0.039276123046875, -0.007221221923828125, 0.0411376953125, 0.004878997802734375, -0.01145172119140625, 0.06298828125, -0.0105743408203125, 0.00762939453125, -0.017425537109375, 0.033538818359375, -0.0025615692138671875, -0.0118255615234375, 0.01096343994140625, 0.0033111572265625, 0.00798797607421875, 0.037109375, 0.0496826171875, -0.005306243896484375, 0.03216552734375, 0.0204925537109375, 0.046905517578125, 0.00551605224609375 ]
04b5227224caf214540d4f6c871634194b21f8ca
Wordpress Stackexchange Q: How do I add the featured image to the_content after the first paragraph? My problem: I'm trying to create a filter that will add the featured image of a post to the_content, so that I can have the first paragraph of the_content displayed before this image. What I basicly want to achieve: <p>First Paragraph of the_content</p> <img>The Post's Featured Image</img> <p>The rest of the_content</p> I someone is able to help me. Thanks in advance! A: You can do this using the 'the_content' filter: add_filter( 'the_content', 'insert_featured_image', 20 ); function insert_featured_image( $content ) { $content = preg_replace( "/<\/p>/", "</p>" . get_the_post_thumbnail($post->ID, 'post-single'), $content, 1 ); return $content; } Of course, you can add options to the the_post_thumbnail() function to define which size of thumbnail you'd like to use, etc... http://codex.wordpress.org/Function_Reference/the_post_thumbnail
Q: How do I add the featured image to the_content after the first paragraph? My problem: I'm trying to create a filter that will add the featured image of a post to the_content, so that I can have the first paragraph of the_content displayed before this image. What I basicly want to achieve: <p>First Paragraph of the_content</p> <img>The Post's Featured Image</img> <p>The rest of the_content</p> I someone is able to help me. Thanks in advance! A: You can do this using the 'the_content' filter: add_filter( 'the_content', 'insert_featured_image', 20 ); function insert_featured_image( $content ) { $content = preg_replace( "/<\/p>/", "</p>" . get_the_post_thumbnail($post->ID, 'post-single'), $content, 1 ); return $content; } Of course, you can add options to the the_post_thumbnail() function to define which size of thumbnail you'd like to use, etc... http://codex.wordpress.org/Function_Reference/the_post_thumbnail A: Technically the quickest solution would be to use a shortcode in your content. Otherwise you'll need a good handle on regex to dump the image between paragraphs using a filter. Best way would be to add this to functions.php <?php function featured_image($post) { if (has_post_thumbnail($post->id)) the_post_thumbnail('large'); } add_shortcode('featured_image', 'featured_image'); ?> After your first paragraph in the content just type [featured_image]. A: Note - Using some kind of regex matching you can do this. Here's one of them. Just drop in this snippet in yout theme's functions.php file so that it will print content of variable $img just after first paragraph (i.e. after first occurrence of </p> tag) in your post content. passing current posts thumbnail / featured image value to $img will print that image after first paragraph. // Goes into functions.php file // Adds $img content after after first paragraph (!.e. after first `</p>` tag) add_filter('the_content', function($content) { $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); $img = '<img src="'.$url.'" alt="" title=""/>'; $content = preg_replace('#(<p>.*?</p>)#','$1'.$img, $content, 1); return $content; }); Modified this to append variable after first paragraph. A: To customise the number of paragraphs before the featured image, I adapted the above answer and adapted the code from an ad placement solution. To use: Add the following two snippets to functions.php and customise the numeral where indicated to control the number of paragraphs. // Adds $featured_img and $caption after n paragraph add_filter( 'the_content', 'insert_featured_image' ); function insert_featured_image( $content ) { if ( has_post_thumbnail($post->ID) ) { if ( has_post_thumbnail($post->ID) ) { $caption = get_the_post_thumbnail_caption( $post ); } else { $caption = ''; } $featured_image = '<div>' . get_the_post_thumbnail( $post->ID, 'full' ) . '</div>'.'<div>' . $caption . '</div>'; if ( is_single() && ! is_admin() ) { return prefix_insert_after_paragraph( $featured_image, 2, $content ); // The numeral here controls the number of pars. Customise it to your needs } } return $content; } // Parent function function prefix_insert_after_paragraph( $insertion, $paragraph_id, $content ) { $closing_p = '</p>'; $paragraphs = explode( $closing_p, $content ); foreach ($paragraphs as $index => $paragraph) { if ( trim( $paragraph ) ) { $paragraphs[$index] .= $closing_p; } if ( $paragraph_id == $index + 1 ) { $paragraphs[$index] .= $insertion; } } return implode( '', $paragraphs ); } A: This Is Simple Process to Done it. Follow Simple Step. * *Login to Your Website and Go To Dashboard On WordPress. *Go To Appearance>Theme File Editor>Theme Functions (functions.php) *Paste This Code. // Adds $featured_img and $caption after n paragraph add_filter( 'the_content', 'insert_featured_image' ); function insert_featured_image( $content ) { if ( has_post_thumbnail($post->ID) ) { if ( has_post_thumbnail($post->ID) ) { } $featured_image = '<div>' . get_the_post_thumbnail( $post->ID, 'full' ) . '</div>'.'<div>' . $caption . '</div>'; if ( is_single() && ! is_admin() ) { return prefix_insert_after_paragraph( $featured_image, 2, $content ); // The numeral here controls the number of pars. Customise it to your needs } } return $content; } // Parent function function prefix_insert_after_paragraph( $insertion, $paragraph_id, $content ) { $closing_p = '</p>'; $paragraphs = explode( $closing_p, $content ); foreach ($paragraphs as $index => $paragraph) { if ( trim( $paragraph ) ) { $paragraphs[$index] .= $closing_p; } if ( $paragraph_id == $index + 1 ) { $paragraphs[$index] .= $insertion; } } return implode( '', $paragraphs ); }
wordpress
{ "language": "en", "length": 660, "provenance": "stackexchange_00019.jsonl.gz:422746", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61272" }
[ 0.042816162109375, -0.00782012939453125, 0.05572509765625, -0.016571044921875, 0.01190948486328125, -0.0206756591796875, 0.06951904296875, -0.0516357421875, 0.0164642333984375, 0.0128631591796875, -0.00791168212890625, -0.0136871337890625, -0.015838623046875, -0.0248565673828125, 0.004749298095703125, -0.027801513671875, 0.034912109375, -0.022216796875, 0.035369873046875, 0.0089111328125, 0.0096893310546875, 0.029388427734375, 0.0233154296875, 0.01149749755859375, 0.023040771484375, -0.0020084381103515625, 0.06695556640625, -0.0244293212890625, 0.0203399658203125, -0.0014095306396484375, 0.02294921875, -0.019561767578125, 0.004741668701171875, 0.0364990234375, -0.0189208984375, 0.00038623809814453125, 0.0024433135986328125, 0.005405426025390625, 0.0034313201904296875, 0.011962890625, -0.0034770965576171875, 0.025238037109375, -0.00717926025390625, 0.04730224609375, -0.0292510986328125, -0.02679443359375, -0.02374267578125, -0.05230712890625, 0.00274658203125, -0.0152587890625, 0.0097808837890625, -0.00008386373519897461, 0.03961181640625, -0.06964111328125, -0.005069732666015625, 0.012725830078125, -0.04815673828125, 0.04266357421875, 0.03375244140625, -0.00359344482421875, -0.02874755859375, -0.01160430908203125, 0.016693115234375, -0.0228729248046875, -0.00908660888671875, 0.01554107666015625, 0.00048351287841796875, -0.0180206298828125, -0.058746337890625, -0.0277557373046875, 0.023101806640625, -0.051177978515625, -0.01486968994140625, -0.03045654296875, -0.00807952880859375, 0.033721923828125, -0.0198822021484375, -0.0089263916015625, 0.0131683349609375, -0.001766204833984375, 0.00933074951171875, -0.01229095458984375, 0.012298583984375, -0.030914306640625, 0.0227813720703125, -0.01873779296875, -0.00702667236328125, 0.00994873046875, -0.045318603515625, -0.0081329345703125, -0.0286407470703125, -0.0281829833984375, -0.038330078125, 0.02264404296875, -0.007526397705078125, 0.00811767578125, 0.037322998046875, 0.048309326171875, -0.002300262451171875, 0.032257080078125, -0.0013113021850585938, -0.058502197265625, 0.07940673828125, -0.06402587890625, 0.0200347900390625, -0.0160675048828125, -0.0247802734375, -0.049713134765625, 0.042449951171875, 0.044647216796875, -0.0138397216796875, 0.029693603515625, 0.0236968994140625, -0.0247650146484375, -0.0246124267578125, 0.004627227783203125, 0.01177978515625, -0.00411224365234375, 0.0311126708984375, -0.0211334228515625, 0.0226898193359375, 0.0037021636962890625, 0.01303863525390625, -0.028045654296875, 0.0297088623046875, 0.0016765594482421875, -0.06304931640625, -0.00009256601333618164, -0.0233612060546875, 0.037994384765625, -0.028045654296875, 0.026275634765625, 0.06158447265625, 0.008026123046875, -0.00791168212890625, -0.028717041015625, 0.00954437255859375, -0.012847900390625, 0.00225830078125, -0.0034122467041015625, -0.0233306884765625, -0.007488250732421875, 0.032257080078125, -0.0262603759765625, 0.01554107666015625, 0.035003662109375, 0.009796142578125, 0.0204315185546875, -0.00594329833984375, -0.0723876953125, 0.057891845703125, -0.054473876953125, 0.023651123046875, -0.0019073486328125, -0.0177459716796875, -0.0103912353515625, -0.006496429443359375, -0.0112457275390625, 0.0014171600341796875, -0.021026611328125, 0.031890869140625, 0.00954437255859375, -0.0138092041015625, -0.0267333984375, -0.01556396484375, -0.035186767578125, -0.03948974609375, 0.006443023681640625, 0.010650634765625, 0.024566650390625, -0.014801025390625, 0.01806640625, -0.010223388671875, -0.0199127197265625, -0.034210205078125, -0.0121307373046875, 0.0404052734375, 0.0271148681640625, -0.00412750244140625, 0.08203125, 0.017852783203125, -0.018646240234375, 0.07257080078125, -0.04473876953125, -0.0174713134765625, 0.0007982254028320312, 0.0268707275390625, 0.04827880859375, -0.0238800048828125, 0.0303955078125, 0.01221466064453125, 0.01529693603515625, -0.048187255859375, 0.00730133056640625, 0.01081085205078125, -0.03436279296875, -0.007450103759765625, -0.040557861328125, -0.003902435302734375, 0.0296783447265625, 0.04119873046875, -0.0134735107421875, 0.043365478515625, 0.003208160400390625, -0.00492095947265625, 0.0064697265625, -0.0106201171875, 0.0146026611328125, -0.03167724609375, -0.014495849609375, 0.017364501953125, -0.007785797119140625, 0.0080108642578125, -0.056732177734375, -0.0247344970703125, 0.0318603515625, -0.0223846435546875, -0.00772857666015625, -0.0153045654296875, 0.05364990234375, -0.0133209228515625, 0.007312774658203125, -0.0401611328125, -0.01409149169921875, 0.090576171875, -0.006839752197265625, -0.0330810546875, -0.03460693359375, 0.0207977294921875, 0.004596710205078125, -0.0985107421875, 0.06512451171875, 0.0014314651489257812, -0.047149658203125, -0.046661376953125, 0.0205841064453125, 0.0212860107421875, -0.043670654296875, -0.00487518310546875, 0.0479736328125, 0.04095458984375, 0.06793212890625, 0.017791748046875, 0.0123748779296875, 0.0992431640625, -0.01513671875, 0.0164031982421875, -0.0288848876953125, 0.017486572265625, 0.01220703125, -0.004245758056640625, -0.0299072265625, 0.0240325927734375, -0.07952880859375, 0.04638671875, 0.01387786865234375, 0.01055908203125, 0.015045166015625, -0.043060302734375, 0.04071044921875, 0.00385284423828125, 0.0308837890625, -0.0109710693359375, -0.003833770751953125, 0.0203857421875, 0.035888671875, 0.0301971435546875, 0.0262908935546875, -0.03009033203125, 0.01407623291015625, 0.020477294921875, 0.03662109375, -0.0016412734985351562, 0.01641845703125, -0.01751708984375, -0.0181121826171875, -0.02001953125, 0.0216827392578125, -0.0169830322265625, -0.00997161865234375, -0.004322052001953125, -0.002040863037109375, 0.004558563232421875, 0.0024623870849609375, -0.004329681396484375, -0.03582763671875, 0.042205810546875, 0.03216552734375, -0.0159454345703125, -0.0258941650390625, -0.007335662841796875, 0.045745849609375, -0.0018062591552734375, 0.0185699462890625, 0.00396728515625, -0.002685546875, -0.0312042236328125, -0.0440673828125, 0.05255126953125, -0.053192138671875, 0.023681640625, 0.056396484375, -0.034027099609375, 0.022186279296875, 0.0036754608154296875, 0.023681640625, -0.0015544891357421875, 0.01219940185546875, -0.0026226043701171875, -0.00495147705078125, -0.033355712890625, 0.01494598388671875, 0.0340576171875, 0.041839599609375, 0.005191802978515625, -0.00450897216796875, -0.0005583763122558594, 0.029296875, -0.03692626953125, -0.04412841796875, -0.032501220703125, -0.066162109375, -0.050201416015625, 0.03350830078125, -0.054595947265625, 0.0250396728515625, 0.0625, -0.006458282470703125, -0.05767822265625, -0.0029296875, -0.0187835693359375, -0.038360595703125, -0.030029296875, 0.0303192138671875, -0.01374053955078125, 0.014892578125, 0.0176239013671875, 0.0601806640625, 0.01511383056640625, -0.05291748046875, 0.0303192138671875, 0.03985595703125, -0.0186309814453125, 0.031890869140625, 0.00418853759765625, 0.00589752197265625, -0.046539306640625, 0.00958251953125, -0.01219940185546875, 0.025604248046875, -0.0263671875, 0.0121002197265625, -0.055816650390625, -0.0088348388671875, -0.0284881591796875, 0.06231689453125, 0.07080078125, -0.0002770423889160156, 0.039276123046875, -0.042144775390625, 0.0067291259765625, -0.02960205078125, -0.042327880859375, -0.0254669189453125, 0.034088134765625, 0.0014066696166992188, -0.050018310546875, 0.005939483642578125, -0.0545654296875, -0.0345458984375, 0.056488037109375, -0.0618896484375, 0.034698486328125, -0.0235748291015625, -0.069580078125, -0.0210723876953125, 0.0172882080078125, 0.000518798828125, 0.031158447265625, 0.023895263671875, 0.06103515625, -0.00806427001953125, 0.031402587890625, -0.0626220703125, -0.0350341796875, 0.040435791015625, 0.00836944580078125, 0.0246124267578125, -0.0161285400390625, -0.039398193359375, 0.01079559326171875, 0.0867919921875, -0.053070068359375, -0.0203094482421875, -0.0213623046875, 0.00788116455078125, 0.013916015625, -0.0357666015625, -0.008209228515625, -0.01715087890625, -0.0523681640625, 0.015716552734375, -0.022216796875, -0.0116424560546875, -0.00780487060546875, -0.0074462890625, -0.0305633544921875, -0.037139892578125, 0.035797119140625, -0.05609130859375, -0.01525115966796875, 0.08917236328125, -0.059112548828125, 0.0648193359375, -0.057403564453125, -0.0298614501953125, -0.076416015625, 0.0012874603271484375, -0.0182952880859375, 0.04833984375, -0.02056884765625, 0.0330810546875, -0.041473388671875, 0.031768798828125, 0.006183624267578125, 0.0024814605712890625, 0.005489349365234375, 0.005695343017578125, 0.0106658935546875, -0.0180816650390625, 0.0022983551025390625, -0.042022705078125, -0.013824462890625, -0.038848876953125, -0.043487548828125, -0.00026535987854003906, -0.0249481201171875, 0.036407470703125, 0.0009784698486328125, -0.0004115104675292969, 0.0019931793212890625, -0.03302001953125, 0.0302581787109375, 0.043914794921875, 0.0130615234375, -0.0016717910766601562, -0.058441162109375, 0.006404876708984375, 0.024566650390625, -0.01316070556640625, 0.00004494190216064453, 0.0098724365234375, 0.07745361328125, 0.030731201171875, -0.01087188720703125, -0.0157928466796875, 0.005985260009765625, 0.0379638671875, 0.002964019775390625, 0.01824951171875, 0.006999969482421875, -0.0210418701171875, 0.031524658203125, 0.0145263671875, 0.010101318359375, -0.0276641845703125, 0.06134033203125, 0.0269927978515625, 0.00341796875, 0.007106781005859375, 0.0189666748046875, 0.0134124755859375, -0.01340484619140625, -0.041229248046875, 0.00902557373046875, -0.001140594482421875, 0.001819610595703125, -0.034332275390625, 0.05987548828125, -0.0007853507995605469, -0.00521087646484375, -0.0063323974609375, 0.0491943359375, 0.0260467529296875, 0.00981903076171875, 0.0091705322265625, -0.0098114013671875, 0.0201873779296875, 0.0026149749755859375, 0.006984710693359375, -0.01824951171875, 0.0303955078125, 0.037384033203125, -0.011627197265625, 0.019287109375, -0.006328582763671875, 0.0013599395751953125, 0.0114288330078125, 0.0030536651611328125, -0.0190277099609375, -0.03662109375, 0.00653076171875, 0.028961181640625, 0.0008969306945800781, 0.01103973388671875, 0.0113983154296875, 0.005931854248046875, 0.008148193359375, -0.00696563720703125, -0.005092620849609375, 0.005645751953125, -0.0213470458984375, -0.002552032470703125, 0.0018625259399414062, -0.021636962890625, 0.0228271484375, -0.010467529296875, -0.0244598388671875, 0.003299713134765625, -0.0013971328735351562, 0.034759521484375, 0.013397216796875, 0.014190673828125, 0.00732421875, 0.05194091796875, -0.027252197265625, 0.032501220703125, 0.007091522216796875, 0.0004470348358154297, 0.0036334991455078125, 0.0010499954223632812, 0.023895263671875, -0.08221435546875, -0.033782958984375, 0.052459716796875, -0.0280914306640625, -0.00763702392578125, -0.0150299072265625, -0.0208282470703125, -0.042877197265625, 0.007495880126953125, 0.0131378173828125, -0.00439453125, -0.007297515869140625, -0.0287017822265625, 0.0305633544921875, -0.004390716552734375, 0.032501220703125, -0.0207672119140625, -0.01450347900390625, 0.011016845703125, 0.0036144256591796875, 0.0168304443359375, -0.0247955322265625, -0.037811279296875, 0.041229248046875, -0.00225830078125, -0.02056884765625, 0.0063629150390625, 0.042816162109375, -0.02655029296875, 0.03375244140625, 0.0042877197265625, -0.0279541015625, -0.047882080078125, 0.0278472900390625, -0.0010318756103515625, 0.0063934326171875, -0.0272369384765625, 0.00829315185546875, -0.04669189453125, 0.0031375885009765625, 0.0511474609375, -0.01837158203125, -0.0118560791015625, -0.03826904296875, 0.023345947265625, 0.012237548828125, 0.00614166259765625, -0.00472259521484375, -0.003753662109375, 0.0310821533203125, 0.00595855712890625, 0.04913330078125, 0.0038700103759765625, 0.034637451171875, 0.004245758056640625, 0.0439453125, 0.017242431640625, 0.0192718505859375, 0.00927734375, -0.039337158203125, -0.034210205078125, -0.06658935546875, 0.03546142578125, 0.02618408203125, -0.00531768798828125, 0.03851318359375, 0.0279541015625, 0.0286865234375, 0.033233642578125, -0.002941131591796875, 0.004817962646484375, -0.010894775390625, -0.02996826171875, -0.007610321044921875, -0.019927978515625, 0.06610107421875, -0.026123046875, 0.02044677734375, -0.00848388671875, 0.00951385498046875, 0.0006103515625, -0.0234527587890625, -0.0186614990234375, 0.05029296875, 0.005016326904296875, 0.0005097389221191406, 0.033416748046875, 0.0172882080078125, 0.042877197265625, 0.01087188720703125, 0.019683837890625, -0.0159759521484375, 0.0244293212890625, -0.048919677734375, -0.021331787109375, 0.0212249755859375, 0.0178680419921875, 0.005645751953125, 0.033935546875, -0.0093994140625, 0.01155853271484375, -0.02752685546875, 0.00023162364959716797, 0.0205078125, 0.0013799667358398438, -0.0270538330078125, -0.03546142578125, 0.054046630859375, 0.00994873046875, 0.023223876953125, 0.018341064453125, 0.061737060546875, -0.035675048828125, 0.01538848876953125, 0.03814697265625, -0.029327392578125, -0.027496337890625, 0.00453948974609375, -0.05059814453125, 0.00685882568359375, -0.050201416015625, 0.009796142578125, 0.048553466796875, -0.0301361083984375, -0.01285552978515625, 0.0252838134765625, -0.03399658203125, 0.0006117820739746094, -0.027313232421875, 0.0026378631591796875, -0.0063323974609375, 0.0108795166015625, 0.04925537109375, 0.003997802734375, 0.0011472702026367188, 0.043792724609375, -0.017547607421875, 0.048980712890625, 0.01031494140625, -0.036163330078125, 0.0212860107421875, 0.0008730888366699219, 0.008941650390625, -0.00726318359375, -0.04766845703125, -0.0009012222290039062, -0.049468994140625, 0.01824951171875, -0.0102996826171875, -0.049041748046875, 0.044830322265625, -0.01322174072265625, -0.0167236328125, 0.0186004638671875, 0.025177001953125, -0.0236053466796875, -0.0251617431640625, 0.034515380859375, -0.04046630859375, 0.004947662353515625, -0.0060272216796875, 0.012542724609375, 0.006198883056640625, -0.039154052734375, -0.07659912109375, 0.08306884765625, -0.035491943359375, 0.0380859375, -0.01337432861328125, 0.0236968994140625, 0.00652313232421875, -0.01473236083984375, -0.00321197509765625, 0.025299072265625, -0.08135986328125, 0.048583984375, -0.040496826171875, 0.01044464111328125, 0.0200042724609375, 0.040069580078125, 0.06634521484375, 0.01187896728515625, -0.051605224609375, -0.01849365234375, 0.06060791015625, 0.0367431640625, 0.00965118408203125, 0.03863525390625, -0.0210418701171875, -0.00665283203125, -0.01065826416015625, -0.02508544921875, 0.0173797607421875, -0.0247955322265625, -0.047271728515625, -0.003971099853515625, 0.027801513671875, 0.046539306640625, 0.034637451171875, 0.01126861572265625, -0.0161895751953125, 0.0179901123046875, 0.0496826171875, -0.0594482421875, 0.01763916015625, 0.04052734375, 0.0012578964233398438, 0.0195770263671875, -0.021240234375, -0.006923675537109375, 0.02874755859375, -0.00728607177734375, 0.088134765625, 0.040496826171875, 0.03582763671875, 0.033721923828125, 0.031768798828125, 0.05474853515625, 0.0447998046875, -0.04522705078125, 0.0271759033203125, 0.0123138427734375, 0.00921630859375, -0.055816650390625, -0.03546142578125, 0.051513671875, 0.050567626953125, -0.039154052734375, 0.0012359619140625, 0.022003173828125, 0.022735595703125, 0.00537872314453125, -0.036773681640625, -0.005550384521484375, -0.0400390625, 0.00948333740234375, -0.027557373046875, -0.01477813720703125, 0.048004150390625, 0.034576416015625, 0.00849151611328125, -0.00026035308837890625, -0.0267791748046875, -0.0308990478515625, -0.0056915283203125, -0.0042266845703125, 0.0286102294921875, 0.0147552490234375, -0.0155181884765625, 0.048858642578125, 0.01052093505859375, 0.0207366943359375, -0.01453399658203125, -0.00008082389831542969, 0.00989532470703125, 0.0232086181640625, 0.0006995201110839844, 0.02105712890625, 0.0041046142578125, -0.0028820037841796875, 0.005863189697265625, -0.010986328125, 0.033660888671875, 0.0307769775390625, -0.06768798828125, -0.0183563232421875, 0.033355712890625, -0.03338623046875, 0.00940704345703125, -0.03997802734375, 0.003826141357421875, 0.0221710205078125, -0.019805908203125, 0.01146697998046875, -0.018524169921875, 0.043853759765625, -0.004421234130859375, 0.0204925537109375, -0.01020050048828125, -0.0296783447265625, 0.0104217529296875, 0.008392333984375, 0.07421875, 0.00933074951171875, -0.10345458984375, 0.00244903564453125, -0.05328369140625, -0.11187744140625, 0.047760009765625, 0.04559326171875, -0.0557861328125, 0.0150604248046875, 0.03179931640625, 0.00566864013671875, 0.00783538818359375, -0.031982421875, 0.0201568603515625, -0.0030002593994140625, 0.021697998046875, 0.0104522705078125, -0.0217742919921875, -0.0166168212890625, -0.00969696044921875, 0.0484619140625, 0.01378631591796875, 0.039764404296875, -0.0189208984375, 0.03961181640625, -0.016448974609375, 0.017852783203125, -0.0386962890625, -0.01090240478515625, 0.018768310546875, -0.00533294677734375, 0.00441741943359375, -0.0016880035400390625, -0.031524658203125, -0.03302001953125, 0.06951904296875, -0.0499267578125, -0.0169677734375, 0.00211334228515625, 0.025421142578125, -0.04248046875, 0.046051025390625, -0.032135009765625, 0.01276397705078125, -0.058990478515625, -0.06341552734375, 0.055389404296875, -0.01360321044921875, 0.027801513671875, -0.0023651123046875, 0.050933837890625, -0.0186767578125, 0.0283050537109375, -0.012176513671875, 0.0709228515625, 0.0369873046875, -0.0136260986328125, -0.04296875, -0.01453399658203125, -0.003997802734375, -0.024810791015625, -0.000019431114196777344, 0.036529541015625, -0.0119171142578125, -0.0237274169921875, -0.00908660888671875, 0.0108642578125, 0.04071044921875, -0.0198974609375, 0.01385498046875, 0.0019168853759765625, -0.0117950439453125, -0.025634765625, 0.06854248046875, -0.00852203369140625, -0.040496826171875, -0.0189971923828125, -0.005466461181640625, -0.027099609375, -0.0299072265625, -0.07122802734375, 0.0043487548828125, 0.03717041015625, 0.0256805419921875, -0.06304931640625, 0.03521728515625, -0.00847625732421875, 0.028472900390625, 0.015960693359375, -0.0189208984375, 0.0113677978515625, 0.032806396484375, -0.04150390625, -0.05419921875, -0.044158935546875, 0.0016422271728515625, -0.0679931640625, 0.00543212890625, 0.0254974365234375, -0.00024187564849853516, 0.0247650146484375, 0.034271240234375, -0.023773193359375, 0.087158203125, -0.102294921875, -0.035888671875, -0.01380157470703125, -0.00933074951171875, 0.0017824172973632812, -0.0027294158935546875, 0.0369873046875, -0.04656982421875, -0.03466796875, -0.044464111328125, 0.01995849609375, 0.0134735107421875, -0.034698486328125, -0.08892822265625, 0.035125732421875, -0.024627685546875, -0.03533935546875, -0.036590576171875, -0.0017862319946289062, -0.019256591796875, 0.0114288330078125, 0.0085906982421875, -0.0217132568359375, -0.0006265640258789062, 0.034515380859375, -0.0201568603515625, 0.00753021240234375, 0.0307769775390625, -0.046783447265625, -0.003734588623046875, -0.0238494873046875, 0.0024547576904296875, -0.0443115234375, 0.00788116455078125, -0.01047515869140625, 0.0294189453125, 0.0386962890625, -0.028045654296875, -0.0135498046875, -0.00797271728515625, -0.04217529296875, -0.0484619140625, -0.032745361328125, -0.0014543533325195312, -0.022491455078125, 0.09564208984375, 0.021575927734375, 0.018035888671875, -0.019775390625, 0.002056121826171875, -0.01282501220703125, -0.006381988525390625, 0.01312255859375, 0.0118255615234375, -0.049285888671875, -0.01525115966796875, 0.018402099609375, -0.0148162841796875, -0.003124237060546875, -0.04052734375, -0.05010986328125, -0.01032257080078125, -0.043548583984375, 0.0435791015625, -0.05975341796875, 0.0151214599609375, 0.0399169921875, -0.033172607421875, 0.0103607177734375, -0.023651123046875, 0.006725311279296875, 0.0160369873046875, -0.031463623046875, 0.0016307830810546875, 0.0262451171875, -0.01451873779296875, 0.00968170166015625, 0.0139617919921875, -0.0264129638671875, -0.010772705078125, 0.01331329345703125, -0.0234222412109375, 0.0056304931640625, 0.01064300537109375, 0.0192413330078125, 0.0238037109375, -0.00849151611328125, -0.0089874267578125, 0.0418701171875, -0.027587890625, 0.0296173095703125, -0.0211944580078125, 0.01262664794921875, -0.039642333984375, 0.01116943359375, -0.00359344482421875, -0.0027618408203125, 0.0114593505859375, 0.0225677490234375, -0.0243377685546875, 0.0028533935546875, -0.0179290771484375, -0.024169921875, -0.0198516845703125, -0.004131317138671875 ]
0570f183bcf015e89c924aa5c17b735cb59a08e4
Wordpress Stackexchange Q: htaccess rewrite conflict with wordpress rules and ssl this one has me buggered- I have the below htaccess rule to redirect ssl to non-ssl pages. this works fine, except I'd like to exclude certain wordpress requests from this rule- for example, https://mysite.com/info/. I've tried the following: #rewrite all ssl pages to non-ssl for everything that doesn't have /info/ in the request uri RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^/info/ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L] #wordpress RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] the result is that https://mysite.com/info/ redirects to http://mysite.com/ instead. If I disable the wordpress rewrite rules, the preceding rules work fine. Can anyone suggest the proper way to target pretty urls in a rewrite condition? A: Edit your existing code to exclude the index.php from redirecting like this: RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^/info/ RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L] For an explanation, check the answer to this question at Stackoverflow: Issue with .htaccess redirecting all pages to HTTPS except one .
Q: htaccess rewrite conflict with wordpress rules and ssl this one has me buggered- I have the below htaccess rule to redirect ssl to non-ssl pages. this works fine, except I'd like to exclude certain wordpress requests from this rule- for example, https://mysite.com/info/. I've tried the following: #rewrite all ssl pages to non-ssl for everything that doesn't have /info/ in the request uri RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^/info/ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L] #wordpress RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] the result is that https://mysite.com/info/ redirects to http://mysite.com/ instead. If I disable the wordpress rewrite rules, the preceding rules work fine. Can anyone suggest the proper way to target pretty urls in a rewrite condition? A: Edit your existing code to exclude the index.php from redirecting like this: RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^/info/ RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L] For an explanation, check the answer to this question at Stackoverflow: Issue with .htaccess redirecting all pages to HTTPS except one .
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:422747", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61283" }
[ 0.06451416015625, 0.008270263671875, -0.014007568359375, -0.00833892822265625, 0.00689697265625, -0.04376220703125, 0.050201416015625, -0.024993896484375, -0.01247406005859375, -0.01364898681640625, -0.027984619140625, 0.01209259033203125, -0.036712646484375, -0.035980224609375, 0.045562744140625, -0.027862548828125, 0.0003998279571533203, -0.02410888671875, -0.003509521484375, -0.0240478515625, 0.0027923583984375, -0.030792236328125, 0.0300750732421875, -0.01399993896484375, 0.0210113525390625, -0.053070068359375, 0.099365234375, -0.01235198974609375, 0.0079345703125, -0.040374755859375, 0.021942138671875, -0.007015228271484375, 0.02374267578125, 0.06292724609375, -0.0911865234375, -0.038421630859375, -0.015045166015625, 0.03289794921875, -0.01250457763671875, 0.02581787109375, 0.006908416748046875, -0.0186614990234375, 0.07244873046875, -0.002315521240234375, 0.00469207763671875, 0.004123687744140625, 0.0034275054931640625, -0.030914306640625, 0.0097503662109375, -0.009002685546875, 0.0204315185546875, 0.053131103515625, 0.042938232421875, -0.0115814208984375, -0.009521484375, 0.0163116455078125, 0.00016045570373535156, 0.043975830078125, 0.0079193115234375, -0.0307769775390625, -0.0248565673828125, 0.04833984375, 0.0019855499267578125, 0.03460693359375, -0.0281829833984375, -0.017822265625, -0.04425048828125, 0.017791748046875, -0.07720947265625, -0.042327880859375, 0.0543212890625, -0.037445068359375, 0.00911712646484375, -0.0284423828125, -0.0263671875, 0.005954742431640625, 0.042572021484375, 0.00940704345703125, -0.005069732666015625, -0.0268402099609375, 0.00795745849609375, -0.016632080078125, -0.025787353515625, -0.0200653076171875, 0.01611328125, 0.0176239013671875, -0.00469970703125, -0.01052093505859375, -0.01462554931640625, -0.01195526123046875, -0.0302581787109375, -0.0013265609741210938, -0.021514892578125, -0.001079559326171875, -0.0018157958984375, -0.0029850006103515625, 0.0298309326171875, 0.034027099609375, 0.019989013671875, -0.0029964447021484375, 0.0318603515625, -0.055633544921875, 0.0217132568359375, -0.018585205078125, -0.0020313262939453125, 0.0694580078125, 0.02508544921875, 0.057098388671875, 0.029937744140625, -0.0013074874877929688, 0.042633056640625, -0.01149749755859375, -0.024810791015625, -0.009033203125, -0.0282135009765625, 0.02587890625, -0.035675048828125, -0.0171966552734375, -0.01910400390625, -0.0019397735595703125, 0.0008993148803710938, 0.0310211181640625, -0.01806640625, -0.01393890380859375, 0.0202484130859375, -0.0030155181884765625, -0.01081085205078125, -0.0048065185546875, 0.0123443603515625, 0.027587890625, -0.02935791015625, -0.00666046142578125, 0.035247802734375, 0.0236053466796875, 0.00569915771484375, -0.0284423828125, 0.059173583984375, -0.0183258056640625, -0.0360107421875, 0.0306854248046875, 0.00029087066650390625, -0.042816162109375, -0.036529541015625, -0.0168609619140625, 0.008392333984375, 0.024749755859375, 0.025238037109375, 0.024627685546875, -0.006855010986328125, -0.052032470703125, 0.0193023681640625, -0.045684814453125, 0.0701904296875, -0.0013341903686523438, -0.029449462890625, -0.03302001953125, 0.03558349609375, -0.04010009765625, -0.049041748046875, -0.054595947265625, -0.000004887580871582031, -0.0012149810791015625, 0.032196044921875, -0.02984619140625, -0.036865234375, -0.01543426513671875, -0.05194091796875, -0.01953125, 0.022552490234375, -0.002227783203125, 0.0244293212890625, -0.0233154296875, -0.007259368896484375, 0.004199981689453125, -0.006214141845703125, 0.0192108154296875, -0.002216339111328125, 0.013153076171875, -0.007587432861328125, 0.07843017578125, 0.042694091796875, -0.018524169921875, 0.00909423828125, 0.035675048828125, -0.056610107421875, 0.052337646484375, -0.006282806396484375, 0.06939697265625, 0.0067901611328125, 0.0123748779296875, 0.040771484375, 0.01558685302734375, -0.002471923828125, 0.01464080810546875, -0.02716064453125, -0.0625, 0.0205841064453125, -0.0160675048828125, -0.0146942138671875, 0.04010009765625, -0.0282745361328125, -0.0038299560546875, -0.01971435546875, 0.01629638671875, -0.023773193359375, -0.0093994140625, -0.00510406494140625, 0.01523590087890625, -0.029876708984375, 0.032012939453125, 0.0255889892578125, 0.0223846435546875, -0.041351318359375, 0.0091094970703125, 0.0064544677734375, -0.01288604736328125, -0.01493072509765625, 0.042694091796875, 0.004146575927734375, 0.042236328125, 0.0151214599609375, -0.05401611328125, 0.025726318359375, -0.013397216796875, 0.0278778076171875, -0.0270843505859375, -0.0269317626953125, -0.0255126953125, 0.02227783203125, -0.01064300537109375, -0.012664794921875, 0.042694091796875, 0.011627197265625, 0.03680419921875, -0.059356689453125, -0.0165252685546875, -0.04974365234375, 0.0018663406372070312, 0.002864837646484375, 0.04156494140625, 0.038665771484375, 0.03277587890625, -0.046783447265625, -0.037872314453125, 0.0267486572265625, -0.06414794921875, -0.006595611572265625, -0.019622802734375, -0.00821685791015625, 0.000743865966796875, 0.044952392578125, -0.01224517822265625, 0.01374053955078125, -0.042694091796875, 0.00107574462890625, 0.019256591796875, -0.00325775146484375, 0.004825592041015625, -0.010498046875, -0.00548553466796875, 0.01235198974609375, -0.03594970703125, -0.046356201171875, -0.00963592529296875, 0.0031280517578125, -0.010467529296875, 0.007549285888671875, 0.019195556640625, 0.0064544677734375, -0.026947021484375, 0.01126861572265625, -0.02325439453125, 0.0020275115966796875, 0.05096435546875, 0.06451416015625, -0.00861358642578125, -0.035736083984375, -0.01096343994140625, 0.0162353515625, 0.03515625, -0.00140380859375, 0.0310516357421875, 0.02154541015625, -0.000027418136596679688, -0.001678466796875, -0.06683349609375, 0.00971221923828125, 0.0085906982421875, 0.019073486328125, 0.00962066650390625, 0.041015625, -0.0134429931640625, -0.011749267578125, -0.0013494491577148438, 0.0350341796875, -0.043731689453125, -0.006374359130859375, -0.038116455078125, 0.0416259765625, -0.041839599609375, 0.030181884765625, 0.054779052734375, -0.0311737060546875, 0.007694244384765625, 0.0049285888671875, -0.0301361083984375, -0.007091522216796875, -0.0163421630859375, -0.0263671875, 0.01241302490234375, -0.089599609375, 0.004436492919921875, 0.0209197998046875, -0.03753662109375, 0.04541015625, 0.0010309219360351562, 0.0183563232421875, 0.00732421875, -0.04107666015625, -0.044677734375, -0.05706787109375, -0.0182342529296875, -0.0253448486328125, 0.0196380615234375, -0.00188446044921875, 0.00948333740234375, 0.0084075927734375, 0.01103973388671875, 0.0212249755859375, -0.003627777099609375, -0.090087890625, -0.034271240234375, -0.083740234375, 0.0168914794921875, -0.0165252685546875, 0.0181121826171875, 0.00829315185546875, 0.014739990234375, 0.007274627685546875, -0.029388427734375, 0.0219268798828125, 0.01473236083984375, -0.017181396484375, -0.0184173583984375, -0.06396484375, 0.0053253173828125, -0.012939453125, 0.0038013458251953125, 0.07293701171875, -0.017669677734375, 0.0229339599609375, 0.01416778564453125, -0.004077911376953125, -0.0273895263671875, 0.003261566162109375, -0.044586181640625, -0.00597381591796875, -0.03668212890625, -0.01546478271484375, -0.051544189453125, -0.006244659423828125, -0.0288543701171875, -0.032989501953125, -0.0261077880859375, 0.045928955078125, -0.0229339599609375, -0.032257080078125, -0.0240631103515625, 0.02288818359375, 0.0008978843688964844, 0.0164337158203125, -0.0162200927734375, 0.059112548828125, -0.0109405517578125, 0.016845703125, -0.04791259765625, 0.03094482421875, -0.0129547119140625, -0.000354766845703125, -0.0014848709106445312, -0.0166015625, -0.0247039794921875, -0.013702392578125, -0.07879638671875, 0.0012035369873046875, 0.00930023193359375, -0.055938720703125, 0.0028553009033203125, -0.031707763671875, 0.0107574462890625, -0.029815673828125, 0.043487548828125, 0.016937255859375, -0.03753662109375, -0.00882720947265625, 0.03369140625, -0.031646728515625, -0.047271728515625, 0.015472412109375, -0.0177001953125, -0.1226806640625, 0.00273895263671875, 0.003444671630859375, -0.0445556640625, 0.0281524658203125, -0.048980712890625, -0.0292205810546875, -0.07586669921875, 0.0264434814453125, 0.035491943359375, -0.006160736083984375, 0.0181884765625, 0.00604248046875, -0.0219268798828125, -0.01824951171875, 0.010986328125, -0.04718017578125, -0.007595062255859375, 0.00492095947265625, 0.0279388427734375, -0.0115814208984375, 0.00677490234375, 0.0008196830749511719, 0.044281005859375, 0.00800323486328125, 0.0091400146484375, 0.0173187255859375, -0.0213775634765625, 0.0171356201171875, 0.0447998046875, 0.0212249755859375, 0.00440216064453125, -0.01837158203125, 0.004302978515625, -0.00577545166015625, 0.029022216796875, -0.0172271728515625, -0.0237274169921875, 0.038116455078125, -0.03497314453125, -0.06707763671875, -0.01363372802734375, -0.027313232421875, -0.00925445556640625, -0.0035839080810546875, -0.027984619140625, -0.0020008087158203125, -0.06048583984375, 0.059173583984375, 0.0089874267578125, -0.04681396484375, -0.00797271728515625, 0.04168701171875, 0.01141357421875, -0.047515869140625, 0.002040863037109375, 0.0277252197265625, 0.02923583984375, -0.0233306884765625, 0.041839599609375, 0.005695343017578125, -0.0010004043579101562, 0.033721923828125, -0.0247650146484375, -0.0055694580078125, -0.00007641315460205078, -0.0007386207580566406, -0.0171661376953125, -0.0419921875, 0.0017299652099609375, -0.046539306640625, 0.026519775390625, 0.005767822265625, 0.0298309326171875, -0.0085906982421875, 0.029266357421875, -0.009521484375, 0.0267333984375, -0.0198822021484375, 0.019622802734375, -0.024444580078125, 0.0137176513671875, 0.012939453125, 0.060333251953125, 0.0287628173828125, 0.01213836669921875, 0.033172607421875, 0.0218353271484375, -0.0047454833984375, -0.026702880859375, 0.0240631103515625, -0.0379638671875, 0.030792236328125, -0.0362548828125, -0.03607177734375, -0.0250091552734375, -0.004302978515625, 0.062164306640625, 0.029205322265625, -0.047698974609375, 0.042327880859375, -0.0159759521484375, -0.0550537109375, -0.0068817138671875, -0.0102996826171875, 0.03350830078125, -0.01016998291015625, -0.0255889892578125, -0.003936767578125, -0.0224609375, -0.03009033203125, -0.050506591796875, 0.01502227783203125, 0.01458740234375, -0.005985260009765625, 0.016387939453125, 0.0806884765625, 0.03594970703125, 0.042999267578125, -0.020660400390625, 0.01776123046875, 0.0180816650390625, 0.0023632049560546875, 0.0084075927734375, 0.0270843505859375, 0.031097412109375, -0.032440185546875, 0.0165252685546875, -0.03216552734375, -0.0309295654296875, 0.022705078125, 0.044647216796875, 0.01546478271484375, 0.00040030479431152344, -0.0098419189453125, -0.01296234130859375, -0.01352691650390625, 0.01526641845703125, 0.03411865234375, -0.0198211669921875, -0.01885986328125, 0.00936126708984375, 0.01525115966796875, 0.00982666015625, -0.03900146484375, 0.041961669921875, -0.01277923583984375, 0.040985107421875, 0.0225982666015625, -0.0243988037109375, 0.0162353515625, 0.020538330078125, 0.02374267578125, -0.0210723876953125, -0.00637054443359375, -0.04083251953125, 0.00791168212890625, -0.04583740234375, -0.01148223876953125, 0.0677490234375, -0.01995849609375, 0.03057861328125, -0.00801849365234375, -0.023590087890625, 0.0498046875, 0.0202178955078125, 0.0164337158203125, -0.0037326812744140625, -0.017669677734375, -0.0029926300048828125, -0.045440673828125, -0.0255126953125, 0.044769287109375, 0.0144805908203125, -0.01904296875, -0.020751953125, 0.01134490966796875, 0.016754150390625, -0.013671875, -0.0283355712890625, -0.0506591796875, 0.024322509765625, 0.03228759765625, 0.034393310546875, -0.019378662109375, 0.06915283203125, -0.018280029296875, 0.030181884765625, 0.0024776458740234375, 0.0506591796875, 0.0154266357421875, -0.01528167724609375, 0.006595611572265625, -0.055877685546875, -0.0253143310546875, -0.01373291015625, -0.0185699462890625, 0.052642822265625, 0.057281494140625, -0.00742340087890625, 0.0010623931884765625, 0.00189208984375, 0.00531768798828125, -0.03277587890625, -0.0012331008911132812, -0.01027679443359375, 0.016571044921875, -0.0186004638671875, 0.039825439453125, 0.037750244140625, -0.038848876953125, -0.00732421875, -0.0450439453125, 0.027862548828125, -0.0187835693359375, -0.0129241943359375, -0.01812744140625, 0.0272674560546875, 0.0855712890625, 0.002582550048828125, 0.07275390625, 0.017669677734375, 0.0161895751953125, 0.07708740234375, -0.00327301025390625, -0.036956787109375, 0.0011444091796875, 0.0309906005859375, -0.0027179718017578125, -0.017333984375, 0.030029296875, -0.013885498046875, 0.028106689453125, 0.10748291015625, 0.08221435546875, -0.1280517578125, -0.00812530517578125, 0.00868988037109375, -0.035491943359375, -0.009521484375, 0.01100921630859375, -0.002796173095703125, -0.0038318634033203125, -0.0250091552734375, 0.005138397216796875, -0.033721923828125, -0.00893402099609375, 0.040313720703125, -0.015869140625, -0.0116729736328125, 0.03863525390625, 0.009490966796875, -0.042205810546875, -0.0074462890625, 0.0190277099609375, -0.0206756591796875, 0.008697509765625, 0.03131103515625, -0.0257415771484375, -0.01207733154296875, -0.02874755859375, -0.01580810546875, 0.0137786865234375, -0.05316162109375, 0.0292816162109375, 0.00927734375, 0.00716400146484375, 0.07177734375, -0.0193939208984375, 0.012451171875, 0.03814697265625, -0.0312347412109375, 0.04296875, -0.01158905029296875, -0.007617950439453125, -0.009613037109375, 0.008941650390625, -0.000385284423828125, 0.0033721923828125, -0.02532958984375, -0.004512786865234375, 0.02008056640625, 0.05364990234375, -0.026763916015625, -0.018096923828125, 0.01428985595703125, 0.0220947265625, 0.0153656005859375, 0.012054443359375, 0.048828125, -0.0274200439453125, 0.0004718303680419922, 0.01444244384765625, 0.0088043212890625, -0.00942230224609375, -0.019012451171875, -0.054840087890625, 0.056304931640625, 0.0050048828125, 0.035186767578125, 0.01467132568359375, 0.0226898193359375, -0.0243682861328125, 0.0109100341796875, -0.0011577606201171875, 0.07025146484375, 0.058319091796875, -0.005962371826171875, -0.0038738250732421875, -0.0085601806640625, 0.01117706298828125, 0.048126220703125, 0.118408203125, 0.019927978515625, -0.06829833984375, 0.004535675048828125, 0.10675048828125, 0.07086181640625, 0.0240478515625, 0.03955078125, -0.0015125274658203125, -0.0258941650390625, 0.01300048828125, -0.01220703125, 0.016021728515625, -0.01464080810546875, -0.0095672607421875, 0.013336181640625, 0.017608642578125, -0.01180267333984375, 0.01251983642578125, 0.002323150634765625, -0.05401611328125, 0.027313232421875, 0.0181121826171875, 0.04229736328125, 0.006732940673828125, 0.003780364990234375, -0.0027942657470703125, -0.03704833984375, -0.0006766319274902344, -0.03460693359375, 0.03619384765625, -0.02001953125, -0.004337310791015625, 0.01763916015625, -0.0019025802612304688, 0.05108642578125, 0.0286865234375, -0.0066375732421875, 0.034942626953125, 0.016143798828125, -0.00799560546875, 0.0271453857421875, 0.031768798828125, 0.013702392578125, 0.0222930908203125, 0.0014514923095703125, -0.007099151611328125, -0.01110076904296875, -0.021942138671875, -0.01461029052734375, -0.011199951171875, 0.01041412353515625, -0.0421142578125, 0.005168914794921875, -0.042022705078125, -0.03521728515625, 0.0164642333984375, 0.00974273681640625, 0.0239105224609375, 0.017578125, 0.01396942138671875, 0.0166168212890625, -0.048248291015625, 0.033660888671875, -0.0171966552734375, -0.030853271484375, 0.02557373046875, 0.059539794921875, 0.024505615234375, 0.039306640625, 0.003631591796875, -0.036529541015625, 0.00872802734375, 0.01171875, -0.0255584716796875, -0.0266571044921875, -0.0308074951171875, -0.061492919921875, 0.0256805419921875, 0.040863037109375, 0.033905029296875, 0.0158843994140625, 0.0306396484375, 0.044830322265625, 0.017059326171875, 0.0055694580078125, 0.06964111328125, -0.004100799560546875, 0.039794921875, -0.051483154296875, 0.0179901123046875, -0.01142120361328125, -0.0193023681640625, -0.0218505859375, -0.02996826171875, 0.038421630859375, 0.0269927978515625, 0.030609130859375, 0.00823211669921875, 0.00157928466796875, -0.01971435546875, -0.0136566162109375, -0.01363372802734375, 0.039459228515625, 0.017547607421875, -0.0134124755859375, 0.01068878173828125, 0.01007080078125, -0.01107025146484375, 0.014434814453125, 0.00684356689453125, 0.0192108154296875, 0.049560546875, -0.0104217529296875, 0.0160980224609375, -0.001300811767578125, 0.0113983154296875, -0.02569580078125, 0.0189971923828125, 0.0031261444091796875, -0.03045654296875, -0.011749267578125, 0.00585174560546875, 0.0247039794921875, -0.0138092041015625, 0.12408447265625, -0.055206298828125, -0.01349639892578125, -0.01433563232421875, -0.006061553955078125, 0.0159759521484375, 0.0034198760986328125, -0.01531219482421875, 0.0179901123046875, -0.0088348388671875, -0.008941650390625, -0.0372314453125, 0.0198974609375, 0.00031185150146484375, -0.03399658203125, 0.0296173095703125, -0.03271484375, 0.00766754150390625, -0.01727294921875, -0.005092620849609375, -0.044586181640625, -0.078857421875, -0.06158447265625, 0.03497314453125, -0.0111083984375, 0.01291656494140625, -0.0494384765625, 0.07281494140625, -0.019561767578125, 0.0013742446899414062, -0.0107269287109375, -0.0491943359375, -0.039398193359375, 0.0183258056640625, -0.0171661376953125, -0.002376556396484375, 0.01485443115234375, -0.019500732421875, 0.0139617919921875, 0.0079193115234375, 0.0016717910766601562, -0.01349639892578125, 0.00812530517578125, -0.038848876953125, 0.010406494140625, 0.0012483596801757812, 0.017120361328125, 0.01061248779296875, -0.00592041015625, -0.045166015625, -0.025634765625, 0.001026153564453125, -0.0137481689453125, -0.018768310546875, -0.00621795654296875, 0.0025463104248046875, 0.00588226318359375, -0.051910400390625, 0.00632476806640625, -0.019683837890625, 0.01094818115234375, -0.007488250732421875, -0.03802490234375, 0.010528564453125, -0.0248565673828125, 0.057281494140625, -0.05303955078125, 0.061004638671875, -0.00714874267578125, 0.01447296142578125, -0.06378173828125, -0.039947509765625, -0.0144500732421875, 0.0447998046875, -0.02667236328125, -0.0010843276977539062, 0.0455322265625, -0.00466156005859375, -0.011993408203125, -0.021209716796875, -0.018310546875, 0.02685546875, -0.07647705078125, -0.006893157958984375, 0.0236663818359375, 0.0088348388671875, -0.05755615234375, -0.03729248046875, 0.0215301513671875, -0.036590576171875, -0.0190277099609375, 0.0310211181640625, -0.0169677734375, -0.01288604736328125, -0.043243408203125, -0.0821533203125, 0.080322265625, 0.0027256011962890625, -0.031585693359375, -0.0298614501953125, 0.0164031982421875, -0.00760650634765625, 0.0400390625, 0.00727081298828125, -0.0175933837890625, -0.0082244873046875, 0.01268768310546875, 0.0279693603515625, 0.043212890625, -0.049591064453125, 0.050140380859375, -0.0211944580078125, 0.072509765625, 0.03778076171875, 0.014251708984375, -0.0196685791015625, 0.022491455078125, 0.0306396484375, 0.0670166015625, 0.01279449462890625, 0.044036865234375, 0.0120849609375, -0.039337158203125, 0.021087646484375, -0.0341796875, -0.07049560546875, -0.08502197265625, 0.0516357421875, 0.02008056640625, 0.0276947021484375, 0.0196990966796875, -0.04296875, -0.01605224609375, -0.0147705078125, -0.02587890625, 0.02508544921875, -0.05291748046875, -0.00563812255859375, -0.0084075927734375, 0.006008148193359375, 0.0226898193359375, 0.00502777099609375, -0.01995849609375, -0.00689697265625, 0.004238128662109375, -0.03515625, 0.0008907318115234375, 0.015716552734375, 0.046173095703125, -0.04437255859375, -0.0255584716796875, -0.0167236328125, 0.0284423828125, -0.00836181640625, -0.05352783203125, 0.0008721351623535156, 0.0254364013671875, -0.01055145263671875, 0.010345458984375, 0.007091522216796875, -0.0167083740234375, -0.0253753662109375, -0.011077880859375, -0.00897979736328125, 0.017974853515625, 0.025543212890625, 0.0280609130859375, -0.0224609375, 0.0067138671875, 0.0101470947265625, -0.0012197494506835938, 0.0005273818969726562, -0.023040771484375, 0.00372314453125, 0.0355224609375, 0.005939483642578125, -0.0098876953125, 0.03973388671875, -0.049530029296875, 0.01654052734375, 0.04351806640625, 0.0028896331787109375, 0.0163726806640625, -0.007122039794921875, -0.03692626953125, -0.00994110107421875, -0.023651123046875 ]
85bd55802f7577a5e3446e6e33fb53bfada0ab2d
Wordpress Stackexchange Q: Theme customizer - settings order If I add more than 5 Settings to a single section, the order of the settings gets weird. For example: // Link color $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color1]', array( 'default'           => $themeOptions['link_color1'], 'type'              => 'option', 'sanitize_callback' => 'sanitize_hex_color', 'capability'        => 'edit_theme_options', 'transport'         => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color1]', array( 'label' => __( 'Link color1', 'tonal' ), 'section' => 'colors', 'settings' => 'tonal_'.$themeslug.'_settings[link_color1]', 'choices' => '#ffffff' ) ) ); Further examples in a pastebin - no expiration time The colors are numbered from 1 to 7, but in the settings they appear in that order: 2,1,3,4,6,5,7 Has anybody experienced the same? Or does anybody even know how to solve this? A: If you need them in a specific order, then give a priority value to the controls. Otherwise, their order is not defined and cannot be guaranteed. If you don't define a priority, then the control gets the default priority of "10". When two controls have the same priority, then the resulting order is undefined, because that's how PHP works.
Q: Theme customizer - settings order If I add more than 5 Settings to a single section, the order of the settings gets weird. For example: // Link color $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color1]', array( 'default'           => $themeOptions['link_color1'], 'type'              => 'option', 'sanitize_callback' => 'sanitize_hex_color', 'capability'        => 'edit_theme_options', 'transport'         => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color1]', array( 'label' => __( 'Link color1', 'tonal' ), 'section' => 'colors', 'settings' => 'tonal_'.$themeslug.'_settings[link_color1]', 'choices' => '#ffffff' ) ) ); Further examples in a pastebin - no expiration time The colors are numbered from 1 to 7, but in the settings they appear in that order: 2,1,3,4,6,5,7 Has anybody experienced the same? Or does anybody even know how to solve this? A: If you need them in a specific order, then give a priority value to the controls. Otherwise, their order is not defined and cannot be guaranteed. If you don't define a priority, then the control gets the default priority of "10". When two controls have the same priority, then the resulting order is undefined, because that's how PHP works. A: CleanUp Iterating is much easier for debugging, as you'll see step by step information: »What happens, after I added this to that?« So simply start with a clean up and see how it gets added. foreach ( range( 1, 7 ) as $nr ) { $wp_customize->add_setting( "tonal_{$themeslug}_settings[link_color{$nr}]", array( 'default' => $themeOptions[ "link_color{$nr}" ], 'type' => 'option', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, "tonal_{$themeslug}_settings[link_color{$nr}]", array( 'label' => __( sprintf( 'Link color%s', $nr ), 'tonal' ), 'section' => 'colors', 'settings' => "tonal_{$themeslug}_settings[link_color{$nr}]", 'choices' => '#ffffff' ) ) ); // DEBUG: echo '<pre>'; var_export( $wp_customize, true ); echo '</pre>'; } Sorting The chance is pretty high, that you'll get around it with default php sorting mechanisms. Just take a look at the output and than see what you can do with simple array sorting (Hint: You can easily type cast (array) $object and (object) $array.
wordpress
{ "language": "en", "length": 327, "provenance": "stackexchange_00019.jsonl.gz:422755", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61321" }
[ 0.051849365234375, 0.0010557174682617188, -0.0062713623046875, -0.0693359375, 0.006031036376953125, -0.008026123046875, -0.01462554931640625, -0.004360198974609375, -0.0235748291015625, 0.0030307769775390625, 0.0401611328125, -0.00714874267578125, -0.0584716796875, -0.061737060546875, 0.01258087158203125, -0.038909912109375, 0.03277587890625, -0.0262908935546875, -0.005584716796875, -0.022918701171875, -0.005634307861328125, -0.0181732177734375, 0.01284027099609375, 0.0784912109375, 0.032989501953125, -0.0283203125, 0.00782012939453125, -0.011810302734375, 0.005367279052734375, -0.005580902099609375, 0.01515960693359375, 0.00555419921875, 0.03350830078125, -0.00395965576171875, 0.0054168701171875, -0.01282501220703125, 0.0489501953125, -0.037689208984375, -0.022003173828125, 0.044464111328125, 0.0201568603515625, 0.0099029541015625, 0.04510498046875, 0.0548095703125, -0.0193328857421875, -0.030303955078125, 0.031890869140625, -0.01439666748046875, 0.00897216796875, -0.036102294921875, 0.00490570068359375, 0.01239776611328125, 0.035308837890625, -0.037384033203125, -0.0207061767578125, -0.020172119140625, 0.00566864013671875, 0.0113525390625, 0.0236968994140625, -0.0361328125, -0.0239715576171875, 0.00849151611328125, 0.01374053955078125, -0.007236480712890625, 0.005970001220703125, 0.01314544677734375, 0.032318115234375, 0.0171356201171875, -0.0528564453125, 0.0212249755859375, 0.0303497314453125, -0.044677734375, -0.00733184814453125, -0.0478515625, 0.0188446044921875, 0.043548583984375, -0.0628662109375, -0.0200347900390625, 0.037628173828125, -0.00414276123046875, 0.036865234375, -0.03948974609375, 0.02978515625, -0.01047515869140625, 0.02227783203125, 0.016754150390625, 0.0145721435546875, -0.0157470703125, 0.0197601318359375, -0.03924560546875, 0.005031585693359375, -0.0115509033203125, 0.01013946533203125, 0.01357269287109375, -0.028564453125, -0.0294036865234375, 0.0306396484375, 0.0245361328125, 0.0092010498046875, 0.00276947021484375, -0.006130218505859375, -0.0382080078125, 0.0217742919921875, -0.02081298828125, -0.00775909423828125, -0.04205322265625, 0.01479339599609375, 0.0452880859375, 0.0309600830078125, 0.0401611328125, -0.045562744140625, 0.03594970703125, 0.028472900390625, -0.0070343017578125, -0.0118560791015625, -0.048980712890625, -0.033966064453125, 0.030242919921875, 0.01371002197265625, -0.0305023193359375, 0.0008568763732910156, 0.035247802734375, -0.0303955078125, -0.0445556640625, -0.032623291015625, -0.052825927734375, -0.01511383056640625, -0.0016374588012695312, -0.007488250732421875, 0.0254669189453125, -0.02880859375, 0.007076263427734375, 0.0491943359375, 0.01953125, 0.01000213623046875, -0.0286865234375, 0.026275634765625, -0.0229034423828125, -0.0125732421875, 0.0164947509765625, 0.01959228515625, -0.01367950439453125, -0.011962890625, -0.0025157928466796875, -0.01324462890625, 0.015380859375, 0.0304718017578125, 0.0246429443359375, -0.00672149658203125, -0.0721435546875, 0.050994873046875, -0.018524169921875, 0.0309295654296875, 0.0013303756713867188, -0.043182373046875, 0.005641937255859375, -0.0174102783203125, 0.006473541259765625, -0.0198822021484375, -0.01073455810546875, -0.0008687973022460938, -0.0206146240234375, -0.00980377197265625, 0.004047393798828125, -0.00432586669921875, 0.02056884765625, -0.006885528564453125, -0.0037136077880859375, 0.0159454345703125, 0.019195556640625, -0.04058837890625, 0.002803802490234375, 0.01229095458984375, 0.013519287109375, -0.00949859619140625, 0.0197906494140625, 0.007083892822265625, -0.021759033203125, 0.009796142578125, 0.035430908203125, -0.028961181640625, -0.03375244140625, 0.005626678466796875, -0.0155487060546875, -0.07476806640625, 0.022491455078125, -0.0031414031982421875, 0.06878662109375, 0.054595947265625, 0.026458740234375, 0.017791748046875, -0.032379150390625, -0.00811767578125, 0.0064544677734375, -0.0265350341796875, -0.0234527587890625, -0.01517486572265625, 0.0203857421875, -0.0251617431640625, 0.01146697998046875, 0.005199432373046875, -0.01158905029296875, 0.01605224609375, -0.027069091796875, -0.037933349609375, -0.0304412841796875, -0.015899658203125, 0.0299835205078125, 0.016265869140625, -0.01000213623046875, -0.0021762847900390625, -0.03790283203125, 0.0262908935546875, -0.053802490234375, -0.038848876953125, 0.0243377685546875, -0.008392333984375, 0.0504150390625, -0.004878997802734375, 0.008941650390625, 0.0173492431640625, -0.057708740234375, 0.0107269287109375, 0.04388427734375, 0.045166015625, -0.0106964111328125, -0.004138946533203125, -0.024505615234375, 0.046417236328125, 0.0007500648498535156, 0.0238037109375, 0.0308837890625, 0.031524658203125, 0.03289794921875, -0.01177978515625, 0.01427459716796875, 0.042022705078125, -0.04705810546875, -0.002635955810546875, 0.02532958984375, 0.03302001953125, 0.0335693359375, -0.007808685302734375, 0.009552001953125, 0.044036865234375, -0.0036792755126953125, 0.0259552001953125, -0.005298614501953125, 0.01666259765625, 0.05328369140625, -0.004146575927734375, -0.01190185546875, 0.0017728805541992188, -0.027801513671875, 0.0254974365234375, 0.011077880859375, -0.00676727294921875, -0.0218353271484375, -0.0015392303466796875, 0.0085601806640625, 0.0124664306640625, -0.033416748046875, -0.0261077880859375, -0.0154266357421875, 0.058685302734375, -0.01204681396484375, 0.026092529296875, 0.002796173095703125, -0.0172271728515625, 0.021392822265625, 0.006397247314453125, -0.0565185546875, -0.0057525634765625, -0.030975341796875, -0.0020008087158203125, -0.03509521484375, -0.02642822265625, 0.03326416015625, -0.032318115234375, -0.044891357421875, -0.0167083740234375, 0.029144287109375, -0.0306396484375, -0.0011310577392578125, -0.01385498046875, -0.05267333984375, -0.00598907470703125, 0.0280303955078125, 0.0122222900390625, -0.0082550048828125, 0.00817108154296875, 0.01525115966796875, -0.048095703125, 0.059326171875, -0.006744384765625, -0.02783203125, 0.0105438232421875, -0.0141754150390625, 0.0118560791015625, -0.0166015625, 0.00290679931640625, 0.041748046875, -0.0036792755126953125, 0.0064697265625, -0.0034656524658203125, 0.01209259033203125, 0.0250091552734375, -0.02838134765625, -0.0197601318359375, -0.0200653076171875, -0.015594482421875, 0.0384521484375, 0.003147125244140625, -0.01058197021484375, -0.01021575927734375, -0.02777099609375, 0.0020694732666015625, -0.00800323486328125, -0.06744384765625, -0.065673828125, 0.03802490234375, -0.04473876953125, 0.046722412109375, -0.0229339599609375, -0.007843017578125, -0.03790283203125, -0.0032806396484375, 0.0031185150146484375, -0.0255584716796875, -0.00555419921875, 0.01508331298828125, 0.0010232925415039062, -0.02520751953125, 0.0200958251953125, 0.0203704833984375, 0.01059722900390625, 0.003814697265625, 0.10321044921875, 0.0089111328125, -0.08343505859375, -0.01276397705078125, -0.06781005859375, -0.01739501953125, 0.031707763671875, 0.01727294921875, -0.004730224609375, 0.006404876708984375, 0.0128326416015625, 0.059295654296875, 0.03521728515625, -0.056060791015625, 0.00775146484375, -0.03216552734375, 0.007625579833984375, -0.0161590576171875, 0.03851318359375, 0.045684814453125, 0.00858306884765625, 0.01177978515625, -0.04046630859375, -0.00714111328125, -0.010589599609375, -0.04217529296875, 0.0384521484375, 0.027313232421875, -0.01751708984375, 0.007354736328125, -0.0086669921875, 0.0093536376953125, -0.0112762451171875, 0.0055389404296875, -0.01349639892578125, 0.0352783203125, 0.00154876708984375, 0.0216064453125, -0.004528045654296875, 0.0264892578125, -0.016815185546875, 0.0117950439453125, 0.0067901611328125, 0.00795745849609375, -0.01168060302734375, -0.02874755859375, -0.0465087890625, -0.0180206298828125, 0.0199127197265625, -0.0384521484375, 0.036651611328125, -0.045135498046875, -0.002803802490234375, -0.019927978515625, 0.06329345703125, -0.1275634765625, -0.005985260009765625, 0.0014867782592773438, 0.044830322265625, -0.027191162109375, -0.058380126953125, -0.0372314453125, -0.01436614990234375, -0.1158447265625, 0.0237579345703125, 0.0145263671875, -0.043853759765625, -0.021087646484375, -0.00494384765625, -0.0772705078125, -0.0360107421875, 0.02435302734375, 0.0025634765625, -0.026458740234375, 0.021148681640625, -0.00980377197265625, -0.004978179931640625, 0.00911712646484375, -0.0131072998046875, -0.07342529296875, -0.03240966796875, 0.0118408203125, 0.048919677734375, 0.01129913330078125, -0.05810546875, 0.00024318695068359375, 0.06231689453125, 0.001983642578125, 0.047882080078125, 0.0016994476318359375, 0.007610321044921875, -0.025848388671875, -0.0007076263427734375, 0.01560211181640625, -0.02618408203125, -0.004390716552734375, 0.003116607666015625, -0.049041748046875, 0.00740814208984375, -0.0025539398193359375, 0.023590087890625, 0.035980224609375, -0.03173828125, -0.08428955078125, -0.00937652587890625, -0.04901123046875, -0.009918212890625, -0.00612640380859375, -0.0208587646484375, -0.0034809112548828125, -0.09649658203125, 0.018951416015625, -0.05926513671875, -0.0079345703125, -0.00482177734375, 0.059295654296875, 0.028076171875, 0.00344085693359375, 0.0255889892578125, -0.034942626953125, 0.039093017578125, 0.052734375, -0.0159149169921875, -0.0137176513671875, -0.04803466796875, 0.01947021484375, 0.0292205810546875, 0.004848480224609375, 0.002285003662109375, 0.02423095703125, -0.022491455078125, -0.04461669921875, 0.031280517578125, -0.0201873779296875, 0.0069732666015625, 0.037322998046875, 0.005001068115234375, -0.0082244873046875, -0.01172637939453125, 0.0110321044921875, -0.0118255615234375, -0.006015777587890625, -0.01081085205078125, -0.0023288726806640625, 0.0055694580078125, -0.031463623046875, 0.05859375, 0.0357666015625, -0.00336456298828125, 0.007648468017578125, 0.0017604827880859375, 0.02081298828125, 0.07257080078125, 0.051483154296875, 0.0190277099609375, 0.068359375, 0.046661376953125, 0.0156707763671875, 0.023193359375, -0.014678955078125, 0.0877685546875, 0.0189666748046875, -0.0296478271484375, -0.01053619384765625, -0.01126861572265625, 0.00934600830078125, -0.004344940185546875, -0.037811279296875, 0.00897979736328125, 0.0070343017578125, -0.01532745361328125, 0.042083740234375, -0.04217529296875, -0.0023326873779296875, -0.0235137939453125, 0.0169525146484375, 0.021270751953125, -0.020782470703125, 0.00542449951171875, 0.020904541015625, 0.0221405029296875, -0.0210723876953125, -0.02581787109375, -0.020355224609375, 0.01137542724609375, -0.01433563232421875, 0.00276947021484375, 0.0418701171875, 0.00977325439453125, -0.035491943359375, 0.0841064453125, -0.0259857177734375, -0.003231048583984375, 0.01470947265625, 0.00789642333984375, 0.022735595703125, 0.010986328125, 0.0054168701171875, 0.008697509765625, -0.01224517822265625, 0.01253509521484375, -0.0205078125, -0.0538330078125, -0.00823211669921875, 0.016693115234375, 0.01293182373046875, -0.01385498046875, -0.00025081634521484375, 0.006343841552734375, 0.0029430389404296875, -0.0010690689086914062, -0.00444793701171875, -0.042388916015625, -0.00850677490234375, 0.0016460418701171875, -0.022857666015625, -0.00698089599609375, -0.006908416748046875, -0.06805419921875, -0.066650390625, 0.028045654296875, -0.00945281982421875, 0.00843048095703125, -0.031585693359375, 0.03839111328125, -0.01447296142578125, -0.007724761962890625, -0.0185089111328125, 0.036346435546875, 0.0098114013671875, -0.014251708984375, -0.004077911376953125, -0.00643157958984375, -0.042572021484375, -0.0196380615234375, -0.04095458984375, -0.061431884765625, -0.02703857421875, -0.00959014892578125, -0.0095062255859375, 0.01189422607421875, -0.0187530517578125, -0.01490020751953125, -0.013275146484375, 0.04327392578125, 0.0218963623046875, 0.0653076171875, -0.0167388916015625, 0.0186920166015625, -0.0019969940185546875, 0.0411376953125, 0.0011014938354492188, -0.0252227783203125, -0.01168060302734375, -0.002796173095703125, 0.024688720703125, 0.01525115966796875, -0.0303955078125, -0.050567626953125, 0.01534271240234375, 0.0011730194091796875, 0.0552978515625, -0.010528564453125, 0.0595703125, -0.0341796875, 0.006526947021484375, -0.0036296844482421875, -0.0406494140625, -0.057464599609375, -0.0242462158203125, 0.059295654296875, -0.008453369140625, 0.0238189697265625, -0.01387786865234375, -0.04205322265625, 0.031890869140625, -0.0038585662841796875, 0.04144287109375, 0.004306793212890625, -0.043914794921875, 0.00763702392578125, 0.0036602020263671875, 0.0265960693359375, 0.03857421875, -0.0143280029296875, 0.0430908203125, 0.0209197998046875, -0.00547027587890625, 0.026824951171875, 0.0232086181640625, 0.0423583984375, -0.01352691650390625, -0.00035119056701660156, 0.01068115234375, -0.01139068603515625, 0.004886627197265625, 0.019287109375, 0.0225982666015625, -0.0728759765625, 0.0072174072265625, -0.0256195068359375, 0.01076507568359375, 0.053619384765625, -0.017059326171875, 0.0131072998046875, -0.0019550323486328125, 0.06573486328125, -0.006198883056640625, -0.006977081298828125, 0.027740478515625, -0.029388427734375, -0.005031585693359375, -0.0100250244140625, -0.0067291259765625, -0.0219268798828125, -0.0166778564453125, -0.036468505859375, -0.013336181640625, -0.01922607421875, 0.0257110595703125, 0.0198211669921875, -0.024200439453125, -0.02850341796875, -0.046661376953125, -0.032196044921875, -0.0310821533203125, -0.0589599609375, 0.01035308837890625, -0.0413818359375, 0.01328277587890625, 0.040191650390625, -0.040771484375, 0.0277252197265625, 0.0095977783203125, -0.01126861572265625, 0.04937744140625, -0.0145111083984375, 0.01186370849609375, 0.0241241455078125, -0.03521728515625, 0.0018634796142578125, -0.00479888916015625, -0.0078582763671875, -0.020263671875, 0.0011730194091796875, 0.06683349609375, -0.032867431640625, -0.012359619140625, 0.05316162109375, 0.0307159423828125, -0.033050537109375, 0.01544189453125, 0.024444580078125, -0.052825927734375, -0.0517578125, 0.01629638671875, -0.042510986328125, 0.011505126953125, 0.0247955322265625, -0.038360595703125, 0.06976318359375, -0.035308837890625, 0.0440673828125, 0.023040771484375, 0.017120361328125, -0.006927490234375, 0.00859832763671875, -0.01177215576171875, 0.01317596435546875, -0.030731201171875, 0.0184326171875, -0.03570556640625, -0.0098876953125, -0.01250457763671875, 0.05303955078125, 0.06451416015625, -0.00568389892578125, -0.024658203125, 0.03643798828125, 0.13916015625, 0.03814697265625, 0.001369476318359375, 0.0361328125, -0.022247314453125, -0.027740478515625, -0.0220947265625, -0.008148193359375, 0.003070831298828125, -0.0124969482421875, -0.04522705078125, 0.022552490234375, 0.004024505615234375, 0.01058197021484375, 0.010040283203125, 0.06451416015625, -0.0841064453125, 0.00884246826171875, 0.0709228515625, -0.015716552734375, -0.01367950439453125, -0.0213165283203125, -0.01522064208984375, -0.0233001708984375, -0.0134124755859375, -0.011962890625, 0.0211181640625, 0.0173492431640625, 0.003307342529296875, -0.0041351318359375, 0.0211334228515625, -0.02777099609375, -0.06396484375, -0.018768310546875, -0.004375457763671875, -0.054412841796875, 0.01305389404296875, 0.01361846923828125, 0.040435791015625, 0.001678466796875, -0.0094451904296875, -0.0196685791015625, 0.01557159423828125, -0.01470184326171875, -0.00812530517578125, 0.0228271484375, -0.00658416748046875, -0.00357818603515625, -0.007328033447265625, -0.004314422607421875, -0.0758056640625, -0.057403564453125, -0.075439453125, -0.006504058837890625, 0.03515625, 0.05609130859375, -0.00004982948303222656, 0.006374359130859375, -0.04498291015625, -0.047515869140625, -0.038421630859375, 0.0374755859375, 0.012298583984375, 0.0178375244140625, -0.0419921875, 0.0596923828125, 0.005001068115234375, 0.005207061767578125, -0.00957489013671875, 0.024169921875, -0.0178070068359375, 0.01428985595703125, -0.0217437744140625, -0.038116455078125, -0.026092529296875, 0.0237884521484375, 0.003940582275390625, -0.01418304443359375, 0.027435302734375, 0.0721435546875, 0.0117645263671875, -0.00922393798828125, 0.027313232421875, 0.00191497802734375, -0.025146484375, -0.0119781494140625, 0.033172607421875, 0.0528564453125, 0.01375579833984375, 0.0091094970703125, 0.007404327392578125, 0.06109619140625, 0.0236663818359375, 0.005855560302734375, 0.0184783935546875, 0.0194854736328125, 0.004608154296875, 0.03997802734375, -0.0024566650390625, 0.07476806640625, -0.041900634765625, -0.0267333984375, -0.0160980224609375, -0.0076904296875, 0.0282745361328125, 0.03704833984375, 0.00560760498046875, 0.01352691650390625, 0.007904052734375, -0.06292724609375, 0.0263671875, 0.044189453125, -0.0126953125, 0.05560302734375, 0.0222015380859375, -0.0109405517578125, -0.06884765625, -0.03448486328125, -0.005649566650390625, 0.0244903564453125, 0.0119171142578125, -0.0015954971313476562, 0.0235595703125, 0.0209197998046875, 0.0291290283203125, 0.01389312744140625, 0.0042266845703125, -0.0056304931640625, 0.08056640625, 0.006683349609375, -0.0123443603515625, -0.02679443359375, -0.007282257080078125, -0.00582122802734375, 0.0239715576171875, -0.0345458984375, -0.021697998046875, -0.01280975341796875, 0.025146484375, 0.01122283935546875, 0.05096435546875, -0.022705078125, -0.06072998046875, -0.08770751953125, -0.03399658203125, 0.0265655517578125, 0.061798095703125, 0.024566650390625, 0.01137542724609375, 0.029937744140625, 0.0246734619140625, 0.005603790283203125, 0.0271759033203125, 0.023590087890625, 0.0176544189453125, -0.0267791748046875, -0.061309814453125, -0.0154571533203125, -0.01239013671875, -0.0291900634765625, 0.03314208984375, -0.01148223876953125, 0.015228271484375, -0.034210205078125, 0.081787109375, 0.05389404296875, 0.057098388671875, -0.025634765625, 0.0055999755859375, 0.08319091796875, -0.0068359375, -0.0216217041015625, 0.005222320556640625, -0.017822265625, -0.022857666015625, 0.0035343170166015625, -0.0008406639099121094, 0.009490966796875, -0.0003197193145751953, 0.00843048095703125, 0.0014715194702148438, 0.01904296875, -0.02154541015625, -0.005115509033203125, -0.002178192138671875, -0.052337646484375, 0.0216217041015625, -0.011962890625, 0.00275421142578125, -0.00798797607421875, -0.008392333984375, 0.005672454833984375, -0.01445770263671875, -0.029083251953125, 0.044219970703125, 0.022247314453125, -0.020263671875, -0.005405426025390625, 0.031494140625, -0.02252197265625, -0.020782470703125, -0.05230712890625, 0.0297088623046875, -0.05157470703125, 0.00852203369140625, 0.059814453125, -0.02044677734375, -0.045684814453125, -0.10003662109375, 0.00777435302734375, -0.0941162109375, 0.01546478271484375, 0.004398345947265625, -0.043975830078125, -0.0261383056640625, -0.06134033203125, -0.04339599609375, 0.059173583984375, 0.003795623779296875, -0.035247802734375, -0.01413726806640625, -0.0164794921875, -0.022613525390625, 0.03497314453125, 0.005435943603515625, -0.026336669921875, -0.01904296875, 0.028289794921875, -0.00904083251953125, 0.031341552734375, -0.0042572021484375, -0.007785797119140625, -0.052734375, -0.0064239501953125, -0.02423095703125, -0.01493072509765625, -0.00041413307189941406, -0.01026153564453125, 0.01531982421875, 0.04315185546875, -0.037109375, -0.032012939453125, -0.0101165771484375, 0.023895263671875, 0.0186309814453125, -0.0117950439453125, -0.055816650390625, -0.0269775390625, 0.048004150390625, 0.036163330078125, 0.0247650146484375, -0.01316070556640625, -0.00894927978515625, 0.01110076904296875, 0.0159912109375, -0.03338623046875, 0.0175018310546875, -0.067626953125, -0.050506591796875, 0.0078125, 0.0089263916015625, 0.00902557373046875, -0.01090240478515625, -0.00919342041015625, -0.03399658203125, -0.005756378173828125, 0.00536346435546875, -0.0770263671875, -0.022857666015625, 0.0290374755859375, -0.02032470703125, 0.00148773193359375, -0.0005464553833007812, 0.0164337158203125, -0.0003771781921386719, 0.06243896484375, -0.00994873046875, -0.0237884521484375, -0.0237274169921875, 0.027099609375, -0.004474639892578125, 0.051513671875, -0.0312347412109375, -0.030670166015625, 0.006092071533203125, -0.0213623046875, -0.0206298828125, -0.057373046875, 0.0015611648559570312, 0.0328369140625, -0.024932861328125, 0.08154296875, -0.0174407958984375, 0.0833740234375, -0.00833892822265625, 0.0170440673828125, 0.004222869873046875, -0.00262451171875, 0.051788330078125, -0.010833740234375, 0.024566650390625, 0.01885986328125, 0.055206298828125, 0.01181793212890625, 0.014007568359375, 0.039947509765625, 0.00811004638671875, 0.001415252685546875 ]
dfbe44002d8da43993da5fbfdfd5ac42da81eb24
Wordpress Stackexchange Q: What is the use of the wp_links table? I'm wondering what is the use of the wp_links table, couldn't links have been implemented as a custom post type, if the menu system also uses custom post types? A: In short YES, they could have. As anything else could have been implemented as custom post type and/or custom taxonomy. But WordPress is a grown system - now 9 years old - and things are moving slowly to keep most stuff backwards compatible. In short, with WP 3.5, the Links Manager will be moved to a plugin, as you can read in the trac ticket.
Q: What is the use of the wp_links table? I'm wondering what is the use of the wp_links table, couldn't links have been implemented as a custom post type, if the menu system also uses custom post types? A: In short YES, they could have. As anything else could have been implemented as custom post type and/or custom taxonomy. But WordPress is a grown system - now 9 years old - and things are moving slowly to keep most stuff backwards compatible. In short, with WP 3.5, the Links Manager will be moved to a plugin, as you can read in the trac ticket.
wordpress
{ "language": "en", "length": 104, "provenance": "stackexchange_00019.jsonl.gz:422762", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61351" }
[ 0.06512451171875, -0.01235198974609375, 0.028533935546875, -0.00792694091796875, 0.0010776519775390625, -0.029510498046875, 0.06536865234375, -0.0198516845703125, 0.011871337890625, 0.0186309814453125, 0.01409149169921875, -0.0174560546875, -0.0084228515625, -0.043212890625, -0.01271820068359375, -0.0265960693359375, 0.040069580078125, 0.00301361083984375, 0.04693603515625, -0.0081634521484375, 0.01384735107421875, 0.0098114013671875, 0.04345703125, 0.0086669921875, 0.04150390625, -0.03857421875, 0.00762176513671875, -0.0202178955078125, 0.05584716796875, 0.02362060546875, 0.0236358642578125, -0.04522705078125, 0.0309906005859375, -0.04083251953125, 0.04217529296875, -0.006618499755859375, 0.032623291015625, -0.016754150390625, 0.0003933906555175781, 0.0026531219482421875, -0.00014793872833251953, 0.0029430389404296875, 0.066650390625, -0.0484619140625, 0.0092620849609375, 0.02362060546875, -0.01226043701171875, -0.03717041015625, 0.022308349609375, -0.0169219970703125, 0.01263427734375, 0.022216796875, 0.031097412109375, -0.037445068359375, -0.030426025390625, -0.0190277099609375, 0.030975341796875, -0.03826904296875, 0.017181396484375, -0.0252532958984375, -0.0206298828125, -0.0004124641418457031, 0.0212860107421875, -0.00428009033203125, -0.0005483627319335938, -0.007732391357421875, 0.06280517578125, 0.0101776123046875, -0.0194854736328125, -0.020294189453125, 0.010772705078125, 0.01497650146484375, -0.0106964111328125, -0.0203399658203125, -0.0021953582763671875, -0.00830841064453125, 0.01428985595703125, -0.0290985107421875, -0.0128936767578125, 0.04205322265625, -0.051116943359375, -0.01410675048828125, -0.0263214111328125, -0.048583984375, 0.017425537109375, -0.01215362548828125, -0.0277557373046875, 0.007659912109375, -0.009674072265625, -0.02801513671875, -0.0184478759765625, -0.021331787109375, -0.007572174072265625, -0.00537109375, -0.0243072509765625, -0.033203125, 0.0350341796875, 0.0247802734375, -0.0106353759765625, 0.019012451171875, 0.006011962890625, -0.056365966796875, 0.06085205078125, -0.01953125, 0.0125885009765625, 0.043426513671875, -0.019622802734375, -0.0232391357421875, 0.035369873046875, 0.0277557373046875, 0.0082550048828125, 0.0343017578125, 0.034454345703125, -0.007068634033203125, -0.0108642578125, -0.0171966552734375, -0.002101898193359375, 0.033782958984375, -0.0009508132934570312, 0.026458740234375, -0.0128631591796875, -0.006656646728515625, 0.0150299072265625, 0.0189208984375, 0.01045989990234375, 0.006317138671875, -0.0006237030029296875, -0.01190948486328125, -0.014312744140625, 0.05377197265625, -0.0162200927734375, -0.0243988037109375, 0.0278778076171875, 0.041290283203125, 0.0006999969482421875, -0.03240966796875, 0.0282135009765625, -0.0264739990234375, -0.01513671875, 0.03363037109375, -0.0248260498046875, -0.044677734375, -0.01043701171875, -0.0235137939453125, 0.002269744873046875, 0.006755828857421875, 0.01465606689453125, 0.04144287109375, -0.004665374755859375, -0.043975830078125, 0.0264434814453125, 0.02960205078125, 0.0156402587890625, 0.003734588623046875, 0.006496429443359375, -0.025848388671875, 0.019927978515625, -0.0286865234375, 0.016571044921875, -0.026031494140625, -0.0188751220703125, -0.01108551025390625, 0.02587890625, -0.07177734375, -0.0701904296875, 0.00997161865234375, -0.049285888671875, -0.01325225830078125, 0.031768798828125, 0.01250457763671875, 0.01105499267578125, -0.068359375, 0.01425933837890625, 0.008758544921875, -0.007778167724609375, 0.04107666015625, 0.020172119140625, -0.0032939910888671875, 0.034820556640625, 0.026763916015625, -0.008758544921875, -0.0394287109375, 0.0819091796875, -0.04095458984375, -0.0289306640625, 0.0245513916015625, 0.0245361328125, 0.08197021484375, -0.00936126708984375, 0.045806884765625, -0.007686614990234375, 0.01087188720703125, -0.0035800933837890625, 0.0516357421875, 0.0167236328125, -0.0443115234375, -0.050537109375, -0.01654052734375, -0.0253753662109375, -0.0203399658203125, -0.0201416015625, 0.0309295654296875, -0.00505828857421875, 0.021942138671875, -0.055267333984375, 0.054107666015625, -0.0270233154296875, 0.044525146484375, -0.00894927978515625, -0.0005879402160644531, 0.0185699462890625, -0.0037384033203125, -0.038909912109375, 0.01488494873046875, -0.0087432861328125, 0.016571044921875, -0.0109710693359375, -0.01451873779296875, -0.007549285888671875, -0.04058837890625, 0.0009570121765136719, 0.0015316009521484375, -0.00983428955078125, 0.042877197265625, 0.00469207763671875, -0.01274871826171875, -0.023956298828125, -0.003360748291015625, -0.0227508544921875, 0.026031494140625, -0.0232086181640625, 0.01538848876953125, 0.056121826171875, 0.0275115966796875, -0.0235137939453125, 0.00156402587890625, 0.018310546875, -0.068359375, -0.007625579833984375, 0.052764892578125, 0.052581787109375, -0.002185821533203125, -0.015472412109375, -0.05718994140625, 0.0048675537109375, -0.031829833984375, 0.035186767578125, -0.0501708984375, -0.0269927978515625, 0.0170745849609375, 0.0182952880859375, 0.0139617919921875, 0.0022430419921875, 0.03485107421875, -0.0171966552734375, 0.02728271484375, 0.004749298095703125, 0.018890380859375, 0.0202178955078125, 0.00014483928680419922, -0.0011091232299804688, 0.01267242431640625, -0.005413055419921875, -0.004497528076171875, 0.038543701171875, 0.007293701171875, 0.04595947265625, 0.03265380859375, -0.0301513671875, 0.01081085205078125, 0.0243072509765625, 0.00408172607421875, -0.0031585693359375, 0.035400390625, 0.0087738037109375, 0.01285552978515625, -0.0225830078125, -0.0057373046875, 0.004817962646484375, 0.016998291015625, -0.041748046875, -0.006557464599609375, -0.018524169921875, -0.012786865234375, -0.002864837646484375, -0.04559326171875, 0.01245880126953125, -0.0198974609375, 0.03973388671875, -0.0017747879028320312, 0.024017333984375, 0.0015850067138671875, -0.0265350341796875, 0.0399169921875, 0.035552978515625, -0.03985595703125, -0.0301055908203125, -0.01227569580078125, 0.00986480712890625, -0.025360107421875, -0.0007882118225097656, 0.050994873046875, -0.0207366943359375, 0.002288818359375, 0.00797271728515625, -0.0186309814453125, 0.019134521484375, 0.034637451171875, 0.01015472412109375, -0.044830322265625, -0.0159149169921875, 0.0153350830078125, -0.0022449493408203125, 0.0092926025390625, -0.047271728515625, -0.04901123046875, -0.0384521484375, -0.01361083984375, -0.089599609375, -0.049957275390625, 0.0088348388671875, -0.08319091796875, -0.0230560302734375, -0.01462554931640625, -0.05169677734375, 0.01003265380859375, 0.0213775634765625, 0.00017726421356201172, -0.002368927001953125, -0.0227508544921875, -0.0198211669921875, -0.04571533203125, -0.050628662109375, -0.01451873779296875, 0.005344390869140625, -0.0015869140625, -0.0129852294921875, 0.037841796875, -0.006374359130859375, -0.026947021484375, -0.0159454345703125, 0.00567626953125, -0.0088348388671875, -0.03076171875, 0.058624267578125, -0.0277557373046875, 0.00439453125, 0.01316070556640625, 0.009918212890625, 0.0372314453125, -0.046142578125, -0.03564453125, 0.00833892822265625, 0.0546875, 0.052032470703125, -0.028076171875, -0.0279388427734375, 0.07879638671875, 0.01012420654296875, -0.005340576171875, 0.006885528564453125, 0.012939453125, -0.01117706298828125, -0.029541015625, 0.0008969306945800781, -0.031280517578125, -0.0305633544921875, 0.0096282958984375, 0.0341796875, 0.0274200439453125, -0.00337982177734375, -0.0145263671875, 0.0426025390625, 0.0231781005859375, 0.033721923828125, -0.0242767333984375, 0.01502227783203125, -0.03302001953125, 0.03485107421875, 0.00540924072265625, 0.0161590576171875, 0.0266876220703125, -0.007190704345703125, -0.0031280517578125, -0.0394287109375, 0.031646728515625, -0.039276123046875, 0.02777099609375, -0.02899169921875, -0.020416259765625, 0.012359619140625, 0.09442138671875, -0.0430908203125, -0.013946533203125, -0.00682830810546875, 0.0230255126953125, 0.0005168914794921875, -0.055694580078125, -0.0028209686279296875, -0.031707763671875, -0.018035888671875, 0.00882720947265625, 0.010894775390625, 0.00803375244140625, -0.030975341796875, 0.0888671875, -0.00959014892578125, -0.00452423095703125, 0.03558349609375, -0.0162506103515625, -0.023284912109375, 0.042694091796875, -0.043853759765625, 0.0270843505859375, -0.049713134765625, -0.000018775463104248047, -0.03466796875, -0.00832366943359375, -0.023162841796875, 0.033172607421875, 0.04608154296875, -0.040863037109375, 0.012298583984375, 0.0298614501953125, 0.0543212890625, 0.03466796875, 0.040679931640625, -0.024139404296875, 0.0243377685546875, -0.01190948486328125, 0.0411376953125, -0.03509521484375, -0.0036334991455078125, -0.032318115234375, -0.05157470703125, 0.0191650390625, 0.01021575927734375, 0.052276611328125, 0.0222625732421875, -0.01073455810546875, 0.006439208984375, -0.019683837890625, -0.039276123046875, 0.038726806640625, -0.02117919921875, -0.006305694580078125, -0.03118896484375, -0.0364990234375, 0.03179931640625, -0.002361297607421875, -0.005405426025390625, 0.007343292236328125, 0.055206298828125, 0.0178985595703125, -0.0128631591796875, -0.037872314453125, -0.0197906494140625, 0.0401611328125, -0.0176239013671875, 0.038604736328125, 0.032073974609375, -0.0250396728515625, 0.047454833984375, 0.017181396484375, -0.015869140625, -0.00823211669921875, 0.01071929931640625, 0.015655517578125, 0.005069732666015625, -0.0007944107055664062, -0.005954742431640625, 0.0443115234375, 0.033782958984375, 0.00698089599609375, -0.042724609375, -0.002056121826171875, 0.068359375, 0.006046295166015625, -0.01392364501953125, -0.0703125, 0.0004801750183105469, -0.005123138427734375, -0.0150146484375, 0.059967041015625, 0.0406494140625, -0.01364898681640625, 0.023712158203125, 0.01355743408203125, 0.00884246826171875, 0.010955810546875, 0.032501220703125, -0.00568389892578125, 0.04522705078125, -0.0203094482421875, 0.00241851806640625, -0.0299224853515625, -0.01065826416015625, 0.0809326171875, 0.0153656005859375, -0.040679931640625, -0.006317138671875, -0.00905609130859375, 0.0036525726318359375, -0.006992340087890625, 0.03302001953125, 0.0408935546875, 0.0043487548828125, -0.0159912109375, -0.0186309814453125, 0.01525115966796875, -0.01568603515625, -0.04412841796875, -0.01483154296875, 0.00782012939453125, -0.0059814453125, -0.00665283203125, 0.047149658203125, 0.00841522216796875, 0.0213470458984375, -0.0161285400390625, 0.016815185546875, 0.036529541015625, 0.0100860595703125, 0.01409149169921875, 0.0261993408203125, -0.022796630859375, 0.018646240234375, 0.00435638427734375, -0.034454345703125, -0.0265350341796875, 0.0285797119140625, 0.02252197265625, 0.0273590087890625, 0.009307861328125, -0.0019435882568359375, 0.01187896728515625, -0.024749755859375, 0.06866455078125, -0.009552001953125, -0.08331298828125, -0.044769287109375, 0.019439697265625, 0.05902099609375, -0.032470703125, 0.00290679931640625, 0.0111846923828125, 0.0012388229370117188, 0.0262298583984375, -0.08270263671875, 0.01477813720703125, -0.00391387939453125, 0.01434326171875, -0.017120361328125, -0.0309906005859375, -0.006313323974609375, -0.0051422119140625, -0.004528045654296875, -0.021820068359375, -0.006397247314453125, 0.0189056396484375, -0.00682830810546875, 0.039581298828125, -0.028961181640625, -0.0322265625, -0.022857666015625, 0.01168060302734375, 0.041961669921875, 0.0089874267578125, -0.051116943359375, 0.01383209228515625, -0.020111083984375, -0.00144195556640625, -0.025177001953125, -0.067138671875, -0.051727294921875, -0.018524169921875, 0.00701141357421875, 0.0138397216796875, 0.01200103759765625, -0.00632476806640625, -0.036285400390625, 0.00730133056640625, 0.01001739501953125, -0.029754638671875, 0.00396728515625, 0.048187255859375, 0.01001739501953125, 0.040863037109375, 0.0312347412109375, 0.039703369140625, -0.0223236083984375, -0.015716552734375, 0.032806396484375, -0.0312042236328125, -0.06683349609375, -0.0221405029296875, -0.028533935546875, 0.01007080078125, 0.01093292236328125, -0.028076171875, 0.0595703125, -0.043304443359375, -0.005222320556640625, -0.0047760009765625, 0.00042128562927246094, -0.0721435546875, 0.0212860107421875, 0.041259765625, -0.00966644287109375, 0.029571533203125, 0.00897979736328125, 0.02825927734375, -0.00460052490234375, -0.0034942626953125, 0.0140228271484375, -0.01496124267578125, -0.0233612060546875, 0.036712646484375, 0.072021484375, 0.016357421875, 0.04864501953125, 0.0160064697265625, 0.0047454833984375, 0.026275634765625, 0.0107574462890625, 0.0223846435546875, -0.0217132568359375, 0.0384521484375, -0.005039215087890625, 0.00799560546875, 0.0209808349609375, -0.029510498046875, 0.007785797119140625, 0.045654296875, 0.061370849609375, -0.06927490234375, 0.00437164306640625, 0.0102691650390625, -0.0084686279296875, 0.03057861328125, 0.003284454345703125, -0.0214691162109375, -0.0091094970703125, -0.0206146240234375, -0.035308837890625, -0.04833984375, -0.037139892578125, -0.0030498504638671875, 0.01386260986328125, 0.0018110275268554688, 0.068115234375, -0.0041046142578125, -0.0018815994262695312, -0.0772705078125, -0.0031757354736328125, -0.0169677734375, 0.0019044876098632812, 0.026947021484375, -0.053131103515625, 0.013214111328125, -0.003459930419921875, 0.01190948486328125, -0.0350341796875, 0.00675201416015625, 0.01171875, 0.01177978515625, 0.041229248046875, 0.05401611328125, -0.008331298828125, 0.002529144287109375, 0.0238494873046875, 0.0027027130126953125, -0.05218505859375, -0.0509033203125, 0.01500701904296875, 0.030853271484375, -0.01513671875, 0.03643798828125, 0.0068817138671875, -0.06402587890625, -0.0106658935546875, 0.01178741455078125, 0.11346435546875, -0.045501708984375, -0.0185546875, 0.00853729248046875, -0.0037593841552734375, 0.0078125, -0.0186767578125, 0.006961822509765625, -0.0445556640625, -0.035400390625, -0.027374267578125, -0.057861328125, 0.02215576171875, -0.039337158203125, -0.01522064208984375, 0.098876953125, -0.062347412109375, 0.005084991455078125, 0.0126800537109375, 0.05987548828125, 0.032470703125, 0.071533203125, -0.0310516357421875, 0.042083740234375, -0.012786865234375, 0.045623779296875, -0.025543212890625, 0.0047607421875, 0.0164947509765625, 0.02117919921875, 0.00848388671875, 0.005069732666015625, 0.0028285980224609375, -0.0163726806640625, 0.0080108642578125, 0.031280517578125, -0.004245758056640625, -0.00921630859375, -0.033172607421875, 0.021392822265625, 0.034423828125, -0.029937744140625, 0.025604248046875, 0.028106689453125, -0.046173095703125, -0.01568603515625, 0.0209503173828125, 0.01020050048828125, 0.01161956787109375, 0.003143310546875, -0.0489501953125, 0.0173492431640625, 0.0230560302734375, 0.006504058837890625, -0.0241546630859375, 0.040740966796875, -0.000017404556274414062, -0.0013904571533203125, 0.0025691986083984375, -0.0211334228515625, 0.0306549072265625, -0.0022945404052734375, 0.0226287841796875, -0.0234222412109375, -0.00737762451171875, 0.053192138671875, -0.034393310546875, -0.0183258056640625, 0.020538330078125, -0.01055145263671875, 0.06524658203125, -0.00962066650390625, 0.0214080810546875, -0.0875244140625, -0.07098388671875, 0.03521728515625, 0.09814453125, -0.032470703125, -0.04913330078125, 0.0008783340454101562, -0.01038360595703125, 0.0203857421875, 0.0122222900390625, 0.0322265625, 0.0158538818359375, 0.01332855224609375, 0.0032100677490234375, 0.01100921630859375, 0.0307464599609375, -0.00635528564453125, 0.024383544921875, 0.047149658203125, -0.061553955078125, 0.015533447265625, -0.029937744140625, -0.00531005859375, 0.0175628662109375, 0.0084381103515625, -0.0005154609680175781, 0.02923583984375, 0.03912353515625, 0.005840301513671875, -0.0021305084228515625, 0.017486572265625, -0.030364990234375, 0.00736236572265625, -0.0250091552734375, -0.059539794921875, 0.00318145751953125, 0.04559326171875, 0.033843994140625, 0.0286712646484375, 0.0192108154296875, -0.00949859619140625, 0.01062774658203125, 0.0105743408203125, 0.044158935546875, -0.0157928466796875, -0.001903533935546875, -0.038726806640625, 0.0362548828125, 0.033843994140625, 0.01242828369140625, 0.0041961669921875, -0.0038967132568359375, 0.048065185546875, -0.0211944580078125, 0.07684326171875, -0.00640869140625, -0.01641845703125, 0.03125, -0.0036754608154296875, 0.067626953125, 0.02313232421875, -0.07720947265625, -0.043670654296875, 0.00203704833984375, 0.011474609375, 0.0180206298828125, 0.036376953125, -0.0079193115234375, 0.018280029296875, -0.0258636474609375, -0.003971099853515625, 0.000782012939453125, 0.0009393692016601562, -0.01026153564453125, 0.034698486328125, 0.0217742919921875, -0.00445556640625, -0.025238037109375, 0.0027980804443359375, -0.005382537841796875, -0.0025653839111328125, 0.01393890380859375, 0.04913330078125, -0.00927734375, 0.006900787353515625, 0.01068115234375, 0.0269775390625, -0.0165863037109375, 0.01568603515625, 0.0210113525390625, 0.0172271728515625, 0.022552490234375, -0.032318115234375, -0.0291900634765625, -0.005741119384765625, 0.053741455078125, -0.060272216796875, -0.00307464599609375, -0.0021839141845703125, 0.0214080810546875, -0.0472412109375, 0.0269927978515625, -0.0355224609375, 0.0016698837280273438, -0.0024013519287109375, -0.036468505859375, 0.0242462158203125, 0.004199981689453125, 0.05645751953125, 0.046875, -0.011016845703125, -0.0309600830078125, 0.00858306884765625, -0.061553955078125, -0.0009207725524902344, 0.01454925537109375, 0.054046630859375, 0.03643798828125, 0.0416259765625, -0.0171356201171875, 0.0305328369140625, 0.01248931884765625, -0.002838134765625, 0.031463623046875, -0.02423095703125, 0.024017333984375, 0.045440673828125, 0.0634765625, 0.01904296875, 0.0223236083984375, 0.0030612945556640625, -0.00750732421875, 0.001140594482421875, 0.00989532470703125, -0.0300445556640625, -0.0302886962890625, -0.0120391845703125, 0.0058746337890625, -0.0256500244140625, -0.0504150390625, -0.08221435546875, -0.01383209228515625, 0.02142333984375, 0.0232391357421875, -0.0936279296875, 0.065673828125, -0.009429931640625, 0.00861358642578125, -0.00445556640625, 0.0022792816162109375, 0.01166534423828125, 0.05218505859375, -0.024749755859375, -0.00859832763671875, -0.0012140274047851562, 0.005619049072265625, -0.00704193115234375, 0.053436279296875, 0.036041259765625, -0.06683349609375, 0.01666259765625, 0.06695556640625, 0.06280517578125, 0.104248046875, 0.048828125, -0.0117645263671875, 0.0028858184814453125, 0.0105438232421875, -0.0183563232421875, -0.040191650390625, 0.00949859619140625, -0.037506103515625, -0.01345062255859375, -0.0178680419921875, -0.002666473388671875, 0.00469207763671875, -0.043182373046875, -0.12164306640625, 0.072998046875, -0.041839599609375, -0.044677734375, -0.04388427734375, -0.033294677734375, -0.019927978515625, 0.04534912109375, -0.01389312744140625, -0.0181121826171875, -0.0310821533203125, 0.050384521484375, -0.006694793701171875, 0.0479736328125, -0.019256591796875, 0.00960540771484375, -0.0748291015625, 0.007061004638671875, -0.00922393798828125, 0.01561737060546875, 0.03143310546875, -0.016387939453125, 0.0308990478515625, 0.019866943359375, -0.0531005859375, 0.00255584716796875, -0.032562255859375, 0.028472900390625, 0.0273590087890625, -0.031005859375, 0.01093292236328125, -0.01079559326171875, -0.00881195068359375, 0.00838470458984375, 0.0087432861328125, -0.006366729736328125, -0.0009088516235351562, -0.050079345703125, -0.03277587890625, 0.0079345703125, 0.0093231201171875, -0.0452880859375, 0.02337646484375, 0.049774169921875, -0.01678466796875, -0.0217132568359375, 0.00609588623046875, -0.0308380126953125, 0.004421234130859375, 0.01143646240234375, -0.0011119842529296875, -0.03631591796875, 0.0908203125, 0.0282135009765625, -0.0242156982421875, 0.036834716796875, -0.022216796875, -0.0208740234375, 0.02978515625, -0.0288238525390625, 0.007762908935546875, -0.0394287109375, -0.025177001953125, 0.019866943359375, -0.01453399658203125, 0.0011739730834960938, -0.0208587646484375, -0.05029296875, 0.006439208984375, 0.0416259765625, -0.0189666748046875, 0.044921875, -0.0113372802734375, 0.06695556640625, -0.0027751922607421875, 0.08978271484375, -0.0032901763916015625, -0.0200653076171875, -0.0136260986328125, 0.0379638671875, -0.03778076171875, -0.002536773681640625, -0.03021240234375, -0.0153045654296875, 0.00864410400390625, -0.0264434814453125, -0.0173492431640625, -0.028045654296875, -0.005756378173828125, -0.01654052734375, -0.0328369140625, 0.0107269287109375 ]
76a574b74820a3adc0e4eba865a02832df8f0a3d
Wordpress Stackexchange Q: Installed successfully; home page still redirects to install.php I've done WP installs in the past and haven't had issues, so I'm a little stumped here. I've correctly created wp-config.php. I ran the install script, and everything appeared to be successful. I have all the tables in MySQL and am able to log into the dashboard with the admin account I created. However, the home page is still redirected to install.php. Clicking the button to install brings up a message that WP is already installed (which is what I would expect to see), but the home page doesn't want to load the blog. I can, however, open the test post that comes with the install just fine. It's only the home page that isn't working. If it helps any, this is an installation I've set up for a project on Sourceforge. A: Try repairing the wp_options table, that solved the issue for me months ago. Also make sure the table prefix in wp-config.php is correct.
Q: Installed successfully; home page still redirects to install.php I've done WP installs in the past and haven't had issues, so I'm a little stumped here. I've correctly created wp-config.php. I ran the install script, and everything appeared to be successful. I have all the tables in MySQL and am able to log into the dashboard with the admin account I created. However, the home page is still redirected to install.php. Clicking the button to install brings up a message that WP is already installed (which is what I would expect to see), but the home page doesn't want to load the blog. I can, however, open the test post that comes with the install just fine. It's only the home page that isn't working. If it helps any, this is an installation I've set up for a project on Sourceforge. A: Try repairing the wp_options table, that solved the issue for me months ago. Also make sure the table prefix in wp-config.php is correct. A: Please clean your browser cache and try it again! Worked for me. A: Try with this: in wp-admin delete/rename install.php
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:422782", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61417" }
[ 0.030059814453125, 0.0016765594482421875, 0.004497528076171875, 0.00885772705078125, 0.006305694580078125, -0.038970947265625, 0.060760498046875, -0.06610107421875, -0.00582122802734375, 0.019500732421875, -0.019775390625, -0.0003364086151123047, -0.0200958251953125, -0.026123046875, -0.00925445556640625, -0.036895751953125, 0.047149658203125, -0.03076171875, 0.0195465087890625, -0.007724761962890625, -0.00742340087890625, 0.02801513671875, 0.029510498046875, 0.04656982421875, -0.00553131103515625, 0.005443572998046875, 0.0213470458984375, -0.0008759498596191406, -0.01148223876953125, -0.01357269287109375, -0.004070281982421875, 0.0007367134094238281, -0.0015850067138671875, 0.050262451171875, -0.02716064453125, -0.03973388671875, 0.0007152557373046875, 0.0283050537109375, -0.0171051025390625, 0.046417236328125, 0.002017974853515625, -0.0036468505859375, 0.046356201171875, 0.0496826171875, -0.011932373046875, -0.019866943359375, 0.018280029296875, -0.0224456787109375, -0.0160369873046875, -0.04180908203125, 0.0045623779296875, 0.019622802734375, 0.0271453857421875, -0.046142578125, 0.004833221435546875, 0.0084075927734375, 0.01215362548828125, 0.0474853515625, 0.0172119140625, -0.0247344970703125, -0.0247802734375, 0.04205322265625, -0.0072021484375, 0.00933074951171875, -0.0016994476318359375, 0.004955291748046875, 0.02545166015625, 0.020416259765625, -0.0989990234375, -0.002101898193359375, 0.042449951171875, -0.060394287109375, -0.00047850608825683594, -0.048980712890625, -0.0045318603515625, -0.00664520263671875, 0.00926971435546875, -0.029541015625, 0.01145172119140625, 0.0036869049072265625, -0.004962921142578125, -0.00847625732421875, 0.0209808349609375, -0.040740966796875, 0.0249481201171875, 0.0008649826049804688, -0.0167999267578125, -0.00701904296875, 0.00878143310546875, 0.0005660057067871094, -0.0023632049560546875, -0.0138702392578125, 0.031158447265625, 0.0267181396484375, -0.0278167724609375, -0.02032470703125, 0.016265869140625, 0.04815673828125, -0.0089874267578125, 0.019683837890625, -0.03961181640625, -0.01288604736328125, 0.00855255126953125, -0.038543701171875, 0.006195068359375, 0.01442718505859375, -0.004940032958984375, 0.036865234375, 0.047515869140625, 0.036651611328125, -0.00913238525390625, 0.0196380615234375, -0.0413818359375, -0.071044921875, -0.00569915771484375, 0.058929443359375, -0.0335693359375, -0.0281524658203125, 0.0245513916015625, -0.03619384765625, -0.00986480712890625, 0.0230712890625, -0.0210113525390625, -0.00836944580078125, 0.001125335693359375, -0.005321502685546875, 0.0188140869140625, -0.024688720703125, -0.03900146484375, 0.018096923828125, -0.0190887451171875, 0.0295867919921875, 0.0283355712890625, -0.00038695335388183594, -0.033477783203125, -0.006805419921875, 0.047607421875, 0.006256103515625, -0.0033931732177734375, 0.01363372802734375, 0.027099609375, -0.033935546875, -0.040802001953125, 0.00032019615173339844, 0.03973388671875, 0.04595947265625, 0.017791748046875, -0.010894775390625, 0.007083892822265625, -0.049285888671875, 0.0038852691650390625, -0.0146636962890625, 0.005420684814453125, 0.0247344970703125, 0.045989990234375, -0.03338623046875, 0.0016326904296875, -0.0197601318359375, 0.05706787109375, -0.021240234375, 0.00818634033203125, 0.007625579833984375, 0.01396942138671875, -0.029205322265625, -0.0369873046875, -0.026031494140625, -0.040557861328125, -0.0114288330078125, 0.0183563232421875, 0.007251739501953125, 0.00748443603515625, -0.0203094482421875, 0.007526397705078125, -0.010223388671875, -0.006183624267578125, 0.00482940673828125, 0.035247802734375, -0.044891357421875, 0.0162353515625, 0.07379150390625, -0.01175689697265625, -0.0145263671875, 0.0204315185546875, -0.010498046875, -0.052764892578125, 0.018035888671875, 0.006374359130859375, 0.060943603515625, 0.00968170166015625, 0.025360107421875, 0.0401611328125, 0.0012645721435546875, -0.06689453125, 0.04547119140625, -0.0063323974609375, -0.033233642578125, -0.01000213623046875, -0.0177154541015625, -0.00652313232421875, 0.00868988037109375, 0.04876708984375, 0.01885986328125, -0.00719451904296875, 0.001384735107421875, -0.019805908203125, -0.009552001953125, -0.0005817413330078125, 0.005275726318359375, 0.009552001953125, 0.0043792724609375, 0.0132598876953125, -0.0195159912109375, 0.0124053955078125, -0.055023193359375, -0.035369873046875, 0.01873779296875, -0.038909912109375, 0.0689697265625, -0.00505828857421875, 0.05517578125, -0.043853759765625, -0.0269317626953125, -0.01739501953125, -0.03912353515625, 0.0195770263671875, -0.002780914306640625, -0.0217742919921875, -0.0080718994140625, 0.00420379638671875, -0.00841522216796875, 0.003261566162109375, 0.039459228515625, 0.007625579833984375, 0.01218414306640625, -0.038726806640625, 0.0011949539184570312, -0.01727294921875, -0.04620361328125, 0.01316070556640625, 0.037841796875, 0.03369140625, -0.00858306884765625, -0.0236663818359375, 0.0018892288208007812, 0.003917694091796875, -0.06573486328125, -0.004322052001953125, 0.0007071495056152344, 0.006580352783203125, 0.074462890625, 0.01036834716796875, 0.029876708984375, -0.01397705078125, -0.061492919921875, 0.0010042190551757812, 0.038970947265625, -0.0433349609375, 0.024017333984375, -0.0068511962890625, -0.006298065185546875, -0.006458282470703125, -0.0146026611328125, 0.02117919921875, -0.0284881591796875, -0.0269622802734375, 0.035186767578125, 0.005954742431640625, 0.01291656494140625, -0.042877197265625, 0.0035114288330078125, 0.027130126953125, 0.028167724609375, -0.0067138671875, 0.0180511474609375, 0.058837890625, -0.06561279296875, -0.030609130859375, 0.0042572021484375, 0.004825592041015625, -0.0010480880737304688, 0.002288818359375, 0.0123291015625, 0.007396697998046875, 0.005054473876953125, -0.0180206298828125, -0.0408935546875, 0.03955078125, 0.06561279296875, 0.0197906494140625, 0.0018405914306640625, 0.0136566162109375, 0.0164794921875, -0.019683837890625, 0.04443359375, 0.007656097412109375, -0.0394287109375, 0.0004775524139404297, -0.051666259765625, 0.037750244140625, -0.0004901885986328125, 0.08306884765625, 0.0858154296875, 0.0258026123046875, 0.026092529296875, -0.005260467529296875, 0.0341796875, 0.0213470458984375, -0.01654052734375, -0.0294952392578125, 0.0015869140625, -0.053009033203125, -0.012359619140625, 0.045745849609375, 0.08966064453125, 0.021514892578125, -0.03289794921875, 0.0126800537109375, 0.05859375, -0.046783447265625, -0.0933837890625, -0.08013916015625, -0.03448486328125, 0.038604736328125, -0.0194854736328125, 0.00603485107421875, -0.00797271728515625, -0.00463104248046875, 0.0399169921875, 0.01007843017578125, -0.05340576171875, -0.03887939453125, -0.08856201171875, -0.0965576171875, -0.0501708984375, 0.018890380859375, 0.0191650390625, -0.0020542144775390625, 0.05291748046875, -0.01654052734375, -0.066162109375, -0.017974853515625, -0.005588531494140625, 0.0087127685546875, 0.00005644559860229492, -0.0240936279296875, -0.004878997802734375, 0.004062652587890625, -0.01038360595703125, 0.038055419921875, 0.00493621826171875, -0.004985809326171875, -0.0150909423828125, 0.007755279541015625, -0.0250244140625, -0.0033054351806640625, -0.004730224609375, -0.0154571533203125, -0.0399169921875, -0.0226287841796875, -0.07415771484375, 0.0209197998046875, -0.0029163360595703125, -0.017059326171875, -0.0228729248046875, 0.0155029296875, -0.0296783447265625, -0.0004601478576660156, -0.026275634765625, 0.007457733154296875, 0.00901031494140625, 0.0195159912109375, -0.0293731689453125, 0.053558349609375, -0.004913330078125, 0.0084991455078125, -0.03192138671875, 0.040557861328125, -0.00531768798828125, -0.0221710205078125, 0.00894927978515625, -0.01255035400390625, -0.034088134765625, -0.017913818359375, -0.07550048828125, -0.09466552734375, 0.059844970703125, -0.0171051025390625, 0.01276397705078125, -0.05224609375, -0.03173828125, 0.0202178955078125, 0.1273193359375, -0.044830322265625, -0.00798797607421875, 0.03497314453125, 0.0066986083984375, -0.04620361328125, 0.0182647705078125, -0.08270263671875, -0.01036834716796875, -0.044403076171875, -0.0023326873779296875, -0.01404571533203125, -0.0196075439453125, -0.00936126708984375, -0.033905029296875, -0.0175018310546875, -0.045501708984375, 0.044036865234375, -0.00540924072265625, 0.024078369140625, 0.007091522216796875, 0.01430511474609375, 0.00139617919921875, -0.0095367431640625, 0.00493621826171875, -0.10845947265625, -0.024627685546875, -0.006511688232421875, 0.0548095703125, -0.0282745361328125, 0.0523681640625, -0.048980712890625, 0.036651611328125, 0.0006155967712402344, 0.01015472412109375, 0.01019287109375, 0.0067291259765625, -0.0021209716796875, -0.0198516845703125, -0.004123687744140625, -0.0197296142578125, -0.00640106201171875, -0.041046142578125, -0.01776123046875, -0.009429931640625, -0.034210205078125, 0.0325927734375, -0.0010652542114257812, 0.0037403106689453125, -0.007785797119140625, -0.030975341796875, -0.0220947265625, 0.0008664131164550781, -0.024749755859375, 0.016815185546875, -0.0206756591796875, 0.00325775146484375, 0.020751953125, -0.032684326171875, -0.006328582763671875, 0.00799560546875, 0.08197021484375, 0.0219573974609375, 0.0098114013671875, 0.0157928466796875, 0.00732421875, 0.0250091552734375, 0.03509521484375, 0.0560302734375, 0.0151824951171875, 0.0093841552734375, 0.021484375, 0.0056304931640625, 0.0017805099487304688, 0.006443023681640625, 0.060791015625, 0.016265869140625, -0.0304107666015625, 0.031982421875, 0.0214691162109375, -0.048797607421875, 0.03424072265625, 0.0189971923828125, -0.01335906982421875, 0.0126800537109375, 0.00014019012451171875, -0.0301971435546875, 0.0228118896484375, 0.0084228515625, -0.040008544921875, 0.0196685791015625, -0.022552490234375, 0.0254058837890625, -0.009613037109375, 0.014007568359375, 0.0098114013671875, 0.007434844970703125, 0.00727081298828125, 0.034637451171875, 0.0217742919921875, 0.0031414031982421875, 0.048583984375, -0.00009703636169433594, -0.01003265380859375, 0.01092529296875, -0.017608642578125, 0.077392578125, 0.0260467529296875, -0.054290771484375, 0.0021724700927734375, -0.0219879150390625, 0.0031948089599609375, -0.005191802978515625, 0.01953125, 0.03778076171875, 0.0140838623046875, -0.0374755859375, -0.021697998046875, 0.005496978759765625, -0.0177154541015625, -0.0548095703125, 0.00006920099258422852, -0.0253143310546875, 0.0019321441650390625, 0.051727294921875, 0.0258636474609375, -0.0123291015625, 0.054290771484375, -0.03271484375, 0.0170440673828125, 0.04119873046875, 0.0201873779296875, 0.004993438720703125, 0.01499176025390625, 0.01264190673828125, -0.003528594970703125, 0.046875, -0.048065185546875, -0.02020263671875, 0.011871337890625, 0.06170654296875, -0.01166534423828125, -0.0399169921875, 0.0280914306640625, -0.044891357421875, -0.006122589111328125, 0.050750732421875, -0.03594970703125, -0.10626220703125, -0.005260467529296875, 0.060546875, 0.038970947265625, -0.05670166015625, -0.018890380859375, -0.0030384063720703125, -0.054962158203125, 0.037017822265625, -0.0052947998046875, 0.0171661376953125, -0.00923919677734375, -0.0296630859375, 0.004425048828125, -0.011322021484375, -0.01219940185546875, -0.0108184814453125, -0.01371002197265625, -0.01097869873046875, -0.00736236572265625, 0.0477294921875, -0.01250457763671875, 0.029754638671875, -0.0225372314453125, -0.0239105224609375, -0.032196044921875, 0.01023101806640625, 0.045257568359375, 0.033966064453125, -0.04998779296875, -0.01105499267578125, -0.037567138671875, -0.0303192138671875, -0.0098724365234375, -0.027069091796875, -0.056610107421875, -0.007549285888671875, 0.034698486328125, 0.0087127685546875, -0.0009660720825195312, -0.054901123046875, -0.05914306640625, -0.0046539306640625, 0.0546875, 0.005863189697265625, 0.007007598876953125, 0.0426025390625, -0.037200927734375, 0.041778564453125, -0.0048675537109375, 0.03924560546875, -0.00249481201171875, -0.028564453125, 0.026153564453125, -0.0103302001953125, -0.01326751708984375, -0.017791748046875, 0.002902984619140625, -0.0240020751953125, 0.02191162109375, -0.01641845703125, -0.042816162109375, 0.004634857177734375, 0.008544921875, -0.007343292236328125, 0.02191162109375, 0.0208892822265625, -0.0287933349609375, 0.0244598388671875, -0.031585693359375, -0.03387451171875, -0.009796142578125, 0.0118255615234375, -0.0010738372802734375, -0.0020389556884765625, -0.03253173828125, 0.0251312255859375, -0.025360107421875, 0.045501708984375, 0.109619140625, 0.02886962890625, 0.0850830078125, 0.0279083251953125, 0.0269622802734375, 0.053466796875, 0.0357666015625, -0.037628173828125, -0.052001953125, 0.0128936767578125, 0.0002810955047607422, 0.002960205078125, 0.0184173583984375, -0.006687164306640625, -0.0167388916015625, 0.0760498046875, 0.0333251953125, -0.077880859375, -0.0144805908203125, -0.0006823539733886719, -0.006496429443359375, 0.002857208251953125, -0.0239105224609375, 0.0284271240234375, 0.03985595703125, 0.00870513916015625, 0.0253753662109375, -0.0198516845703125, 0.006244659423828125, 0.012939453125, -0.0085906982421875, -0.035797119140625, 0.0311737060546875, 0.01227569580078125, -0.0474853515625, 0.0175018310546875, 0.025390625, -0.01751708984375, -0.0120697021484375, -0.01971435546875, 0.0256195068359375, -0.028472900390625, -0.06536865234375, 0.0191802978515625, -0.04296875, -0.007488250732421875, 0.0247650146484375, -0.0184326171875, -0.005329132080078125, 0.040985107421875, -0.03839111328125, 0.03546142578125, 0.0019407272338867188, 0.01262664794921875, 0.054840087890625, -0.007404327392578125, 0.02496337890625, -0.023834228515625, -0.0252838134765625, -0.0005116462707519531, -0.0116424560546875, -0.040985107421875, -0.01161956787109375, -0.018218994140625, 0.0635986328125, -0.02386474609375, -0.01087188720703125, 0.0197601318359375, 0.01190185546875, -0.0011529922485351562, 0.002445220947265625, 0.020294189453125, -0.0272064208984375, -0.00739288330078125, 0.00408172607421875, -0.0147552490234375, -0.01090240478515625, -0.00586700439453125, -0.021728515625, 0.11029052734375, -0.00040793418884277344, -0.007732391357421875, 0.01052093505859375, 0.05084228515625, -0.035247802734375, 0.04425048828125, -0.019683837890625, 0.043548583984375, 0.0251617431640625, 0.0252685546875, -0.0279998779296875, -0.005718231201171875, 0.0019044876098632812, 0.033477783203125, -0.0267486572265625, 0.0013933181762695312, -0.0272979736328125, 0.0012197494506835938, 0.0156097412109375, 0.007274627685546875, 0.0082244873046875, 0.0467529296875, -0.0223541259765625, 0.002685546875, -0.019866943359375, -0.040802001953125, 0.01384735107421875, -0.0192718505859375, -0.05072021484375, -0.0159454345703125, 0.0211334228515625, -0.002468109130859375, -0.009765625, 0.01190185546875, -0.033294677734375, 0.01074981689453125, 0.01111602783203125, 0.002750396728515625, 0.007709503173828125, -0.0078277587890625, -0.0206451416015625, 0.006866455078125, 0.0301666259765625, -0.020111083984375, 0.013671875, -0.0022907257080078125, -0.0223846435546875, -0.034088134765625, 0.0177001953125, -0.0222930908203125, -0.01442718505859375, -0.03033447265625, 0.055328369140625, -0.041229248046875, 0.0220489501953125, 0.03570556640625, 0.037872314453125, -0.023223876953125, -0.0108795166015625, 0.03887939453125, 0.041473388671875, -0.0198822021484375, -0.0080108642578125, 0.005634307861328125, -0.01233673095703125, 0.0006384849548339844, -0.0472412109375, -0.004299163818359375, 0.0225982666015625, 0.01480865478515625, -0.018585205078125, -0.002948760986328125, 0.0152740478515625, -0.01885986328125, 0.00868988037109375, -0.000004172325134277344, 0.0263519287109375, 0.030792236328125, 0.0246124267578125, -0.020263671875, -0.0096588134765625, 0.0260162353515625, 0.006847381591796875, 0.0242462158203125, -0.0775146484375, -0.0030536651611328125, -0.0280914306640625, 0.043792724609375, 0.0029048919677734375, 0.0233001708984375, -0.09991455078125, -0.06671142578125, 0.02484130859375, 0.0748291015625, -0.0006580352783203125, 0.0193939208984375, 0.03314208984375, 0.056304931640625, -0.0024127960205078125, -0.01117706298828125, 0.07720947265625, -0.01326751708984375, -0.0283660888671875, -0.0298004150390625, 0.026947021484375, 0.031585693359375, 0.0195159912109375, 0.0106964111328125, 0.07269287109375, 0.0028591156005859375, -0.004283905029296875, 0.040069580078125, -0.0032482147216796875, -0.032379150390625, 0.0013093948364257812, 0.0221710205078125, 0.0789794921875, 0.035430908203125, -0.02362060546875, -0.060089111328125, 0.026214599609375, 0.0257720947265625, 0.0185699462890625, 0.035888671875, 0.0209808349609375, 0.0010156631469726562, -0.0128631591796875, -0.036041259765625, 0.00839996337890625, 0.01947021484375, 0.01751708984375, 0.0208740234375, -0.0057830810546875, -0.0152740478515625, -0.041839599609375, -0.0178375244140625, -0.0162811279296875, 0.026275634765625, -0.0137176513671875, 0.1151123046875, -0.036956787109375, 0.004367828369140625, -0.028839111328125, 0.004375457763671875, -0.01512908935546875, -0.02880859375, 0.025970458984375, 0.01788330078125, 0.00021195411682128906, -0.0178985595703125, -0.060089111328125, 0.03765869140625, 0.024688720703125, 0.00086212158203125, 0.0491943359375, -0.037841796875, 0.004486083984375, -0.02508544921875, 0.0020122528076171875, -0.041900634765625, -0.03729248046875, -0.06292724609375, -0.01139068603515625, 0.0209503173828125, 0.00653839111328125, 0.004573822021484375, 0.0433349609375, 0.01128387451171875, -0.007312774658203125, 0.035888671875, -0.0305938720703125, 0.033203125, 0.021484375, 0.005664825439453125, -0.0474853515625, 0.0087432861328125, -0.00017464160919189453, -0.0015325546264648438, 0.0214996337890625, 0.0391845703125, 0.01227569580078125, -0.015899658203125, -0.039825439453125, 0.0285491943359375, 0.0214996337890625, -0.005290985107421875, 0.0205535888671875, -0.0028705596923828125, -0.041259765625, 0.0215911865234375, 0.0154876708984375, -0.004558563232421875, 0.024078369140625, -0.042694091796875, -0.0131683349609375, 0.0012998580932617188, -0.04400634765625, -0.0390625, 0.01552581787109375, 0.0289764404296875, -0.0251617431640625, -0.00789642333984375, 0.0064697265625, -0.056610107421875, 0.05242919921875, -0.02642822265625, -0.005001068115234375, 0.0014667510986328125, 0.03729248046875, -0.0200042724609375, 0.00598907470703125, -0.032470703125, -0.014739990234375, -0.0267486572265625, 0.01248931884765625, 0.031585693359375, -0.0338134765625, 0.00875091552734375, -0.0177154541015625, 0.0045013427734375, 0.029754638671875, 0.03271484375, -0.0259857177734375, 0.002254486083984375, -0.016876220703125, -0.001743316650390625, -0.0511474609375, 0.0183868408203125, -0.0902099609375, -0.03546142578125, -0.0689697265625, 0.0274810791015625, 0.0078125, -0.051025390625, -0.0682373046875, 0.032318115234375, -0.0266571044921875, -0.0182342529296875, -0.055999755859375, -0.0009021759033203125, -0.0090484619140625, 0.002410888671875, -0.01488494873046875, -0.037750244140625, -0.0196685791015625, 0.046356201171875, -0.001117706298828125, 0.036468505859375, 0.01479339599609375, 0.00849151611328125, 0.01250457763671875, 0.0161285400390625, 0.0077056884765625, -0.0178375244140625, 0.0078125, -0.01044464111328125, 0.0220184326171875, 0.05706787109375, -0.004589080810546875, -0.0310821533203125, 0.001972198486328125, -0.052398681640625, 0.003803253173828125, -0.041046142578125, 0.0014085769653320312, -0.019287109375, -0.02496337890625, -0.01145172119140625, -0.008331298828125, 0.010406494140625, -0.04730224609375, -0.0333251953125, 0.0128021240234375, -0.0313720703125, 0.0022563934326171875, -0.08258056640625, -0.007396697998046875, 0.007476806640625, -0.00431060791015625, -0.0191802978515625, 0.0104522705078125, -0.023773193359375, -0.01129150390625, 0.0297393798828125, 0.0194549560546875, -0.004425048828125, -0.05120849609375, 0.0640869140625, -0.035491943359375, -0.0006651878356933594, 0.0025081634521484375, 0.031402587890625, 0.0180206298828125, 0.0113067626953125, 0.0261383056640625, 0.03912353515625, -0.02325439453125, -0.032318115234375, 0.0300750732421875, 0.022491455078125, -0.0013217926025390625, -0.019500732421875, 0.03460693359375, 0.025970458984375, -0.0300445556640625, 0.018829345703125, 0.0307464599609375, 0.0184478759765625, -0.04742431640625, 0.051239013671875, -0.0094146728515625, -0.048370361328125, -0.033721923828125, 0.03765869140625, -0.04638671875, -0.004749298095703125, -0.005710601806640625, -0.0186767578125, -0.0034809112548828125, -0.007083892822265625, 0.0211029052734375, -0.0091552734375, -0.01000213623046875, -0.011077880859375, -0.0098419189453125, -0.00621795654296875 ]
8fcc44e8d218b222726a9c656c0d3c97c3904362
Wordpress Stackexchange Q: Run function on plugin upgrade Hi a new version of a plugin I have in the repository changes the way the data is stored in the database, how can I perform a check on upgrade that automatically moves the data to the new location, so the users don't lose any of their settings and are not aware of what is happening beneath the hood? A: global $myplugin_db_version; $myplugin_db_version = "1.0"; function myplugin_install() { global $wpdb; global $myplugin_db_version; $table_name = $wpdb->prefix . "myplugin"; $installed_ver = get_option( "myplugin_db_version" ); if( $installed_ver != $myplugin_db_version ) { $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, name tinytext NOT NULL, text text NOT NULL, url VARCHAR(100) DEFAULT '' NOT NULL, UNIQUE KEY id (id)); "; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); update_option( "myplugin_db_version", $myplugin_db_version ); } } function myplugin_update_db_check() { global $myplugin_db_version; if ( get_site_option( 'myplugin_db_version' ) != $myplugin_db_version) { myplugin_install(); } } add_action('plugins_loaded', 'myplugin_update_db_check');
Q: Run function on plugin upgrade Hi a new version of a plugin I have in the repository changes the way the data is stored in the database, how can I perform a check on upgrade that automatically moves the data to the new location, so the users don't lose any of their settings and are not aware of what is happening beneath the hood? A: global $myplugin_db_version; $myplugin_db_version = "1.0"; function myplugin_install() { global $wpdb; global $myplugin_db_version; $table_name = $wpdb->prefix . "myplugin"; $installed_ver = get_option( "myplugin_db_version" ); if( $installed_ver != $myplugin_db_version ) { $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, name tinytext NOT NULL, text text NOT NULL, url VARCHAR(100) DEFAULT '' NOT NULL, UNIQUE KEY id (id)); "; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); update_option( "myplugin_db_version", $myplugin_db_version ); } } function myplugin_update_db_check() { global $myplugin_db_version; if ( get_site_option( 'myplugin_db_version' ) != $myplugin_db_version) { myplugin_install(); } } add_action('plugins_loaded', 'myplugin_update_db_check');
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:422797", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61456" }
[ 0.0377197265625, 0.0235748291015625, -0.0408935546875, -0.0606689453125, 0.045562744140625, -0.0231170654296875, -0.00679779052734375, -0.0017061233520507812, 0.0174407958984375, 0.007511138916015625, -0.017852783203125, -0.01495361328125, -0.04412841796875, -0.027435302734375, -0.02801513671875, -0.036865234375, 0.05096435546875, -0.0318603515625, 0.000827789306640625, -0.0028476715087890625, -0.004848480224609375, 0.0293426513671875, 0.0047607421875, 0.08660888671875, 0.01666259765625, -0.037811279296875, 0.07720947265625, -0.031158447265625, 0.02288818359375, -0.02276611328125, 0.0248565673828125, -0.0087738037109375, -0.01265716552734375, 0.026702880859375, -0.007694244384765625, -0.0299072265625, 0.056793212890625, -0.004241943359375, -0.0011959075927734375, 0.06854248046875, 0.060211181640625, -0.03076171875, -0.0014019012451171875, 0.032501220703125, -0.00856781005859375, -0.07623291015625, 0.09405517578125, -0.021026611328125, 0.0008335113525390625, -0.032379150390625, 0.0208740234375, 0.0323486328125, 0.0288543701171875, -0.0180511474609375, 0.00859832763671875, 0.047943115234375, -0.0703125, 0.058502197265625, 0.004947662353515625, 0.0948486328125, 0.0171966552734375, 0.025299072265625, -0.032623291015625, -0.047698974609375, -0.00513458251953125, 0.004337310791015625, 0.054443359375, 0.0035228729248046875, -0.048980712890625, -0.00643157958984375, 0.046600341796875, -0.0190277099609375, -0.02001953125, 0.0203094482421875, -0.0010051727294921875, -0.0112152099609375, 0.017303466796875, -0.0009393692016601562, 0.00504302978515625, 0.039794921875, 0.026153564453125, 0.005401611328125, 0.03656005859375, -0.0283966064453125, 0.0262908935546875, -0.0004544258117675781, -0.00714111328125, -0.02178955078125, 0.01422119140625, -0.0009312629699707031, -0.00750732421875, 0.0255279541015625, 0.02886962890625, -0.00702667236328125, -0.0421142578125, -0.0218048095703125, 0.0100860595703125, 0.049560546875, -0.034149169921875, 0.02484130859375, -0.015777587890625, -0.024749755859375, 0.0243682861328125, -0.051239013671875, 0.00722503662109375, 0.059783935546875, 0.01190185546875, -0.06500244140625, -0.02166748046875, -0.01474761962890625, -0.01082611083984375, -0.002918243408203125, -0.055908203125, -0.019775390625, -0.00457000732421875, 0.045654296875, -0.061248779296875, 0.007568359375, -0.021514892578125, 0.01873779296875, -0.0163726806640625, 0.0181732177734375, -0.06793212890625, -0.037506103515625, -0.023040771484375, -0.06634521484375, -0.00225067138671875, 0.049072265625, -0.10589599609375, 0.0245208740234375, -0.018707275390625, 0.032684326171875, 0.086181640625, 0.040679931640625, -0.002674102783203125, -0.00504302978515625, 0.0173187255859375, 0.01409149169921875, -0.00217437744140625, 0.016845703125, 0.0036563873291015625, -0.057586669921875, -0.031707763671875, -0.0020599365234375, -0.00789642333984375, -0.00868988037109375, 0.0146942138671875, 0.01910400390625, -0.0091552734375, -0.039581298828125, 0.003993988037109375, 0.0023345947265625, 0.018585205078125, -0.01397705078125, -0.0012054443359375, -0.034698486328125, -0.0196380615234375, -0.0182037353515625, 0.01861572265625, -0.0012454986572265625, -0.01180267333984375, -0.0350341796875, 0.0013561248779296875, -0.0213165283203125, -0.0543212890625, 0.0498046875, -0.0208282470703125, -0.0013647079467773438, 0.032135009765625, 0.039520263671875, -0.0193634033203125, -0.005352020263671875, 0.044830322265625, 0.0226898193359375, -0.0114898681640625, 0.017242431640625, -0.033233642578125, 0.0016164779663085938, 0.06298828125, -0.01044464111328125, -0.038818359375, -0.0191650390625, 0.08319091796875, -0.0138702392578125, -0.042724609375, 0.047576904296875, -0.0189666748046875, 0.03704833984375, 0.031280517578125, 0.00801849365234375, -0.022796630859375, -0.006103515625, -0.07000732421875, 0.037322998046875, -0.007389068603515625, 0.0164947509765625, 0.0182342529296875, 0.02838134765625, 0.0011997222900390625, -0.055023193359375, -0.0207061767578125, 0.043792724609375, -0.03338623046875, 0.009307861328125, -0.06781005859375, 0.0204620361328125, -0.0161590576171875, 0.047515869140625, 0.06683349609375, 0.06439208984375, -0.0165252685546875, 0.059417724609375, -0.01413726806640625, -0.0307769775390625, -0.01378631591796875, 0.0242919921875, -0.038665771484375, 0.0189056396484375, -0.0216522216796875, 0.0771484375, -0.032806396484375, -0.018585205078125, -0.0257110595703125, -0.01837158203125, -0.0002868175506591797, -0.0034923553466796875, -0.0058746337890625, 0.0032215118408203125, 0.0177001953125, -0.004207611083984375, 0.0399169921875, 0.0168304443359375, -0.00017774105072021484, 0.0026264190673828125, -0.01273345947265625, -0.0182037353515625, -0.007053375244140625, -0.125, 0.0243072509765625, 0.06396484375, 0.01275634765625, -0.03240966796875, -0.055389404296875, -0.00852203369140625, -0.01116180419921875, -0.053009033203125, -0.01082611083984375, 0.0275726318359375, 0.0152130126953125, 0.038177490234375, -0.018798828125, -0.003826141357421875, 0.0264739990234375, -0.0006833076477050781, 0.002025604248046875, 0.040802001953125, -0.006664276123046875, 0.0002913475036621094, -0.0142364501953125, -0.01264190673828125, 0.0030384063720703125, -0.0241851806640625, -0.0187530517578125, -0.00766754150390625, 0.04144287109375, -0.0200958251953125, 0.0540771484375, 0.037139892578125, -0.00811767578125, -0.018096923828125, 0.01209259033203125, 0.0224761962890625, 0.00333404541015625, 0.0030879974365234375, -0.04693603515625, 0.0248260498046875, -0.04583740234375, 0.02264404296875, 0.008514404296875, -0.0027256011962890625, -0.01727294921875, 0.0164031982421875, 0.00844573974609375, -0.0096893310546875, -0.00766754150390625, -0.0092010498046875, 0.02960205078125, -0.004169464111328125, -0.054656982421875, -0.0300750732421875, 0.0281829833984375, -0.020233154296875, -0.06640625, 0.0160675048828125, 0.0092010498046875, -0.046905517578125, 0.06182861328125, -0.0258941650390625, 0.0197601318359375, -0.0169677734375, 0.048492431640625, 0.0504150390625, -0.010498046875, -0.0238494873046875, 0.001811981201171875, 0.00081634521484375, 0.007472991943359375, 0.0033893585205078125, -0.0223236083984375, 0.00010854005813598633, -0.0792236328125, -0.00640869140625, 0.037628173828125, -0.02044677734375, 0.03997802734375, -0.00952911376953125, -0.02178955078125, 0.015838623046875, -0.08197021484375, -0.07464599609375, -0.08514404296875, -0.0192718505859375, 0.0262298583984375, 0.00467681884765625, 0.01108551025390625, 0.0014295578002929688, 0.0020961761474609375, 0.03155517578125, -0.0182952880859375, -0.035186767578125, -0.03753662109375, -0.04742431640625, -0.06439208984375, 0.01314544677734375, 0.0091400146484375, 0.02423095703125, -0.00554656982421875, 0.0279083251953125, -0.0160064697265625, -0.072509765625, -0.0233306884765625, -0.00826263427734375, 0.0024013519287109375, 0.0200042724609375, 0.030029296875, -0.02203369140625, -0.0018405914306640625, 0.00351715087890625, 0.0660400390625, 0.0408935546875, -0.049530029296875, 0.0009417533874511719, 0.0177154541015625, 0.0236358642578125, 0.04827880859375, -0.0309295654296875, -0.041107177734375, 0.042816162109375, 0.0185394287109375, -0.0232696533203125, 0.028533935546875, 0.0055999755859375, -0.004062652587890625, -0.0007605552673339844, -0.029083251953125, -0.00640106201171875, 0.0246734619140625, -0.0146026611328125, 0.020904541015625, 0.0219879150390625, 0.029937744140625, 0.0152130126953125, -0.023834228515625, -0.022369384765625, -0.0278472900390625, -0.03765869140625, 0.02301025390625, -0.0223541259765625, -0.0050506591796875, 0.005451202392578125, -0.01314544677734375, 0.01255035400390625, -0.022735595703125, 0.0115814208984375, -0.0279541015625, 0.0225372314453125, -0.018096923828125, 0.0135498046875, -0.0281829833984375, -0.01922607421875, -0.0164947509765625, 0.06024169921875, 0.00980377197265625, -0.0169830322265625, 0.02117919921875, 0.00021004676818847656, -0.02496337890625, 0.013397216796875, -0.056304931640625, 0.0034332275390625, -0.042236328125, -0.029632568359375, -0.017669677734375, -0.04083251953125, -0.0026683807373046875, 0.0008802413940429688, -0.02081298828125, -0.032684326171875, 0.0221710205078125, -0.01995849609375, 0.0024166107177734375, 0.035736083984375, -0.01422882080078125, 0.01552581787109375, -0.0163726806640625, -0.01473236083984375, -0.08416748046875, -0.0018205642700195312, -0.053680419921875, 0.03802490234375, 0.00933074951171875, 0.013885498046875, -0.040924072265625, 0.0166778564453125, 0.00225830078125, -0.00011438131332397461, -0.01245880126953125, 0.007419586181640625, -0.06402587890625, -0.00727081298828125, -0.002048492431640625, -0.026458740234375, 0.0008563995361328125, -0.04498291015625, -0.01678466796875, -0.01071929931640625, -0.0264892578125, 0.0435791015625, -0.022857666015625, -0.01000213623046875, -0.034881591796875, -0.02874755859375, -0.0042266845703125, -0.0187225341796875, -0.03228759765625, 0.00864410400390625, 0.002994537353515625, -0.035003662109375, 0.051361083984375, -0.04022216796875, -0.00618743896484375, 0.003208160400390625, 0.08038330078125, 0.01003265380859375, 0.0026454925537109375, -0.007274627685546875, 0.0017185211181640625, 0.048431396484375, 0.03558349609375, -0.0002541542053222656, 0.018096923828125, -0.04083251953125, 0.050140380859375, 0.053955078125, -0.0034961700439453125, -0.01157379150390625, 0.0311431884765625, 0.0121307373046875, -0.013916015625, -0.0032253265380859375, 0.006008148193359375, -0.00972747802734375, 0.025848388671875, -0.0165863037109375, -0.00023865699768066406, -0.02984619140625, 0.0146636962890625, -0.022003173828125, 0.044891357421875, -0.00965118408203125, -0.05621337890625, 0.0214080810546875, 0.0142974853515625, -0.022491455078125, 0.0266571044921875, -0.00664520263671875, 0.01451873779296875, -0.01861572265625, -0.00609588623046875, 0.0013599395751953125, 0.06732177734375, -0.0034427642822265625, 0.051361083984375, 0.0014600753784179688, -0.004367828369140625, -0.045623779296875, -0.005157470703125, 0.0128936767578125, 0.0167999267578125, -0.04779052734375, 0.00982666015625, -0.004703521728515625, 0.01308441162109375, 0.016998291015625, 0.004486083984375, 0.0139312744140625, -0.007198333740234375, -0.046875, -0.0131683349609375, 0.0007162094116210938, -0.0187835693359375, -0.034820556640625, -0.044464111328125, -0.007381439208984375, -0.041656494140625, 0.0088958740234375, -0.0205535888671875, -0.011199951171875, -0.01806640625, -0.0002071857452392578, 0.05804443359375, 0.05059814453125, -0.0095977783203125, 0.0031108856201171875, 0.033721923828125, 0.002483367919921875, -0.03729248046875, -0.01458740234375, -0.0116119384765625, -0.00567626953125, -0.004512786865234375, 0.01175689697265625, -0.0305938720703125, -0.00203704833984375, 0.03387451171875, -0.01238250732421875, 0.007259368896484375, 0.037322998046875, -0.0102081298828125, -0.05194091796875, -0.02130126953125, 0.0426025390625, 0.06536865234375, -0.0308990478515625, -0.009429931640625, -0.033294677734375, -0.043212890625, 0.0021038055419921875, -0.015869140625, -0.0129852294921875, -0.0001704692840576172, 0.0082244873046875, 0.013824462890625, -0.04840087890625, -0.057891845703125, 0.057037353515625, 0.027496337890625, -0.0180206298828125, -0.0109710693359375, 0.00759124755859375, -0.0012884140014648438, 0.01476287841796875, -0.02545166015625, -0.0226593017578125, 0.019256591796875, -0.0148773193359375, 0.07708740234375, 0.023773193359375, -0.00811767578125, -0.039520263671875, -0.0161895751953125, -0.0219268798828125, -0.0088653564453125, -0.0226898193359375, -0.042877197265625, 0.000942230224609375, -0.00653839111328125, 0.0024623870849609375, -0.0140533447265625, -0.0248565673828125, 0.00536346435546875, 0.003681182861328125, 0.01483917236328125, -0.016448974609375, -0.00771331787109375, 0.0501708984375, -0.0233917236328125, 0.046051025390625, 0.002071380615234375, -0.005931854248046875, -0.035919189453125, 0.0032596588134765625, 0.00667572021484375, 0.03173828125, 0.00756072998046875, -0.031890869140625, 0.034210205078125, -0.051513671875, 0.0207061767578125, -0.00873565673828125, 0.00220489501953125, 0.0131683349609375, 0.00399017333984375, -0.001079559326171875, 0.0309600830078125, 0.0290374755859375, 0.01074981689453125, 0.036346435546875, -0.04925537109375, -0.044342041015625, 0.006366729736328125, 0.039825439453125, 0.0010614395141601562, -0.0244293212890625, -0.0260162353515625, 0.0174407958984375, -0.031951904296875, 0.050445556640625, 0.041290283203125, -0.0037784576416015625, 0.043731689453125, -0.01346588134765625, 0.016204833984375, 0.015045166015625, -0.048980712890625, 0.06658935546875, 0.043670654296875, 0.024444580078125, -0.0211181640625, 0.03533935546875, 0.032135009765625, -0.00943756103515625, 0.031768798828125, -0.0022487640380859375, 0.054962158203125, -0.0030975341796875, 0.0251617431640625, 0.03997802734375, -0.03564453125, 0.00550079345703125, -0.00958251953125, -0.021148681640625, -0.04296875, 0.01132965087890625, -0.020355224609375, -0.041229248046875, -0.021392822265625, 0.00717926025390625, -0.03070068359375, -0.004253387451171875, 0.0191192626953125, 0.031585693359375, 0.0207672119140625, 0.0122528076171875, -0.004756927490234375, 0.025146484375, 0.006984710693359375, 0.01751708984375, 0.01512908935546875, -0.032562255859375, -0.0447998046875, 0.00970458984375, 0.01495361328125, -0.03411865234375, -0.0123748779296875, 0.016204833984375, 0.057342529296875, 0.056976318359375, 0.0078277587890625, -0.018798828125, 0.04278564453125, 0.024688720703125, -0.0294036865234375, -0.0083465576171875, 0.0007300376892089844, 0.03778076171875, -0.01251220703125, 0.0183563232421875, -0.017608642578125, -0.01154327392578125, -0.0016374588012695312, -0.031341552734375, 0.018402099609375, -0.0160064697265625, -0.00749969482421875, 0.0249786376953125, 0.01540374755859375, 0.0010976791381835938, 0.00382232666015625, 0.0279541015625, -0.032562255859375, -0.0288848876953125, 0.01284027099609375, -0.06719970703125, -0.049072265625, -0.00643157958984375, -0.06024169921875, 0.10858154296875, 0.0224456787109375, 0.002811431884765625, -0.006805419921875, 0.0458984375, -0.0305023193359375, 0.0261993408203125, -0.03472900390625, 0.034515380859375, 0.0256195068359375, 0.01910400390625, -0.03546142578125, 0.002941131591796875, 0.0054473876953125, 0.01055145263671875, 0.036712646484375, 0.01221466064453125, -0.041534423828125, -0.0168609619140625, 0.0008459091186523438, 0.02349853515625, 0.002285003662109375, 0.043212890625, 0.016082763671875, 0.04681396484375, 0.07098388671875, 0.0038166046142578125, 0.051025390625, -0.00377655029296875, -0.03375244140625, 0.0255889892578125, 0.023895263671875, 0.020965576171875, -0.049530029296875, 0.0693359375, 0.0533447265625, -0.047943115234375, -0.01383209228515625, -0.005451202392578125, 0.0261077880859375, 0.01763916015625, 0.0250091552734375, -0.006626129150390625, 0.01654052734375, -0.005367279052734375, 0.041015625, -0.0022449493408203125, -0.0181884765625, 0.015899658203125, 0.0133819580078125, -0.010009765625, 0.0146636962890625, -0.023834228515625, 0.01629638671875, 0.0233154296875, 0.07269287109375, 0.061859130859375, 0.047393798828125, 0.0252838134765625, 0.0384521484375, -0.004787445068359375, 0.06817626953125, -0.0478515625, -0.0197601318359375, 0.01116180419921875, 0.007663726806640625, -0.037017822265625, -0.00811004638671875, -0.024749755859375, -0.01055145263671875, 0.0279693603515625, -0.03497314453125, -0.0168304443359375, 0.0146636962890625, -0.0163116455078125, 0.00196075439453125, 0.01165008544921875, 0.02789306640625, -0.0223846435546875, -0.0182952880859375, 0.01207733154296875, 0.01255035400390625, 0.00382232666015625, -0.033538818359375, 0.03594970703125, 0.0235595703125, 0.01216888427734375, -0.03424072265625, 0.051666259765625, 0.001140594482421875, 0.056121826171875, -0.0894775390625, -0.062255859375, -0.005828857421875, 0.08111572265625, -0.023101806640625, -0.0192413330078125, -0.00685882568359375, 0.045440673828125, 0.0004978179931640625, -0.0089874267578125, 0.0814208984375, 0.01042938232421875, 0.0111846923828125, -0.029022216796875, 0.03240966796875, 0.0164031982421875, 0.0163116455078125, -0.0089111328125, 0.050323486328125, 0.004497528076171875, -0.003108978271484375, 0.05145263671875, -0.0002715587615966797, 0.0098419189453125, 0.0274658203125, 0.008819580078125, 0.0565185546875, 0.021484375, 0.00885772705078125, 0.0027141571044921875, -0.005077362060546875, 0.0024318695068359375, -0.0271453857421875, 0.0161285400390625, -0.00830841064453125, 0.04083251953125, -0.01263427734375, 0.01335906982421875, 0.01012420654296875, -0.01407623291015625, -0.0177764892578125, 0.019866943359375, 0.058624267578125, 0.007213592529296875, 0.030975341796875, 0.0061492919921875, 0.006076812744140625, 0.039093017578125, 0.00382232666015625, 0.05792236328125, -0.033355712890625, 0.03668212890625, 0.00934600830078125, -0.00760650634765625, -0.013946533203125, 0.00565338134765625, -0.0081787109375, -0.0028324127197265625, -0.00365447998046875, -0.0019350051879882812, -0.038848876953125, 0.0019989013671875, 0.03558349609375, 0.007389068603515625, -0.0025386810302734375, -0.0194091796875, 0.040924072265625, -0.0003952980041503906, 0.00547027587890625, -0.0244903564453125, -0.02996826171875, -0.00519561767578125, 0.00856781005859375, 0.00647735595703125, -0.0021076202392578125, 0.0010128021240234375, 0.0166168212890625, -0.00383758544921875, 0.0153961181640625, -0.00403594970703125, 0.032562255859375, -0.02191162109375, 0.0271453857421875, -0.0341796875, -0.01108551025390625, 0.018310546875, -0.02081298828125, 0.0160980224609375, 0.004863739013671875, 0.043212890625, -0.0019159317016601562, -0.01522064208984375, -0.007808685302734375, 0.0235443115234375, 0.0238800048828125, -0.0193328857421875, 0.0169219970703125, 0.0177764892578125, -0.0028133392333984375, -0.007442474365234375, -0.0273590087890625, -0.0220489501953125, -0.040283203125, -0.01154327392578125, 0.00647735595703125, -0.01396942138671875, -0.043060302734375, -0.01181793212890625, 0.03521728515625, 0.03802490234375, 0.0162811279296875, -0.10699462890625, 0.042327880859375, -0.0186767578125, 0.10504150390625, -0.02886962890625, -0.02813720703125, -0.01036834716796875, 0.01629638671875, -0.005001068115234375, -0.05364990234375, -0.044952392578125, 0.053070068359375, -0.0170135498046875, 0.002323150634765625, -0.0038661956787109375, -0.0192718505859375, -0.0242462158203125, 0.00992584228515625, 0.0105133056640625, 0.050689697265625, 0.051971435546875, -0.020721435546875, 0.060577392578125, -0.043426513671875, -0.018402099609375, -0.05975341796875, -0.0160064697265625, -0.09326171875, 0.00762939453125, -0.005176544189453125, 0.0024967193603515625, 0.0240020751953125, -0.0287933349609375, -0.044036865234375, 0.018310546875, -0.00244140625, -0.0293731689453125, -0.0235443115234375, -0.020111083984375, -0.003276824951171875, 0.019866943359375, 0.00000852346420288086, -0.044219970703125, -0.042022705078125, 0.024139404296875, -0.0048675537109375, 0.04473876953125, -0.0057220458984375, 0.004650115966796875, -0.055450439453125, -0.0002224445343017578, -0.0202484130859375, 0.005645751953125, 0.0287628173828125, -0.0271148681640625, 0.041107177734375, 0.0305633544921875, -0.02142333984375, -0.007740020751953125, -0.0037975311279296875, -0.0462646484375, -0.01461029052734375, -0.0452880859375, -0.0253143310546875, -0.00881195068359375, 0.09918212890625, 0.0634765625, 0.0243988037109375, -0.056060791015625, -0.038665771484375, -0.0179595947265625, 0.006195068359375, -0.01105499267578125, 0.02703857421875, -0.071533203125, 0.00962066650390625, 0.01509857177734375, -0.00920867919921875, -0.00557708740234375, 0.020263671875, -0.01055908203125, -0.003978729248046875, 0.0587158203125, -0.00858306884765625, -0.021728515625, -0.04974365234375, 0.0246734619140625, -0.01261138916015625, -0.005657196044921875, 0.0253143310546875, -0.0005764961242675781, 0.006336212158203125, 0.0765380859375, -0.0164794921875, 0.0394287109375, -0.0178070068359375, 0.01003265380859375, 0.005809783935546875, -0.0126800537109375, -0.0087432861328125, 0.01024627685546875, -0.00103759765625, 0.004215240478515625, -0.0008068084716796875, 0.0016126632690429688, -0.042510986328125, 0.03900146484375, -0.01432037353515625, 0.0655517578125, 0.00591278076171875, -0.0239715576171875, -0.00792694091796875, 0.0266265869140625, -0.0010271072387695312, -0.041900634765625, 0.0156097412109375, -0.0426025390625, 0.007724761962890625, 0.007091522216796875, 0.00658416748046875, -0.0223541259765625, 0.034088134765625, -0.032867431640625, -0.006160736083984375, 0.0178985595703125 ]
c987079c10172af9b152314a1d060e3203059502
Wordpress Stackexchange Q: Using php to overwrite or replace title tag, while using yoast I use yoast for my seo, indexing, title, sitemap etc. But I have one issue, for my product pages I want to use costum taxonomy data and yoast doesnt support that. Now I got the code to echo the exact title I want in the product pages but how do I let it overwrite the title set by yoast, or how do I replace the title set by yoast for this specific post type? A: The WPSEO plugin by Yoast has a filter for the title: 'wpseo_title'. You'll need to add something like this: add_filter('wpseo_title', 'filter_product_wpseo_title'); function filter_product_wpseo_title($title) { if( is_singular( 'product') ) { $title = //your code } return $title; } More info at the WordPress SEO API Docs page.
Q: Using php to overwrite or replace title tag, while using yoast I use yoast for my seo, indexing, title, sitemap etc. But I have one issue, for my product pages I want to use costum taxonomy data and yoast doesnt support that. Now I got the code to echo the exact title I want in the product pages but how do I let it overwrite the title set by yoast, or how do I replace the title set by yoast for this specific post type? A: The WPSEO plugin by Yoast has a filter for the title: 'wpseo_title'. You'll need to add something like this: add_filter('wpseo_title', 'filter_product_wpseo_title'); function filter_product_wpseo_title($title) { if( is_singular( 'product') ) { $title = //your code } return $title; } More info at the WordPress SEO API Docs page.
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:422801", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61472" }
[ 0.0347900390625, 0.016143798828125, -0.01299285888671875, -0.007282257080078125, 0.0291595458984375, -0.037933349609375, 0.05780029296875, -0.0283966064453125, 0.00698089599609375, -0.011199951171875, 0.0052642822265625, -0.0167694091796875, -0.018829345703125, -0.048004150390625, 0.008941650390625, -0.0303192138671875, -0.00614166259765625, 0.0084075927734375, 0.00909423828125, -0.014404296875, 0.006259918212890625, -0.01020050048828125, 0.004955291748046875, -0.02154541015625, 0.004772186279296875, -0.0494384765625, 0.060577392578125, -0.03411865234375, -0.0010328292846679688, -0.0238800048828125, 0.0059661865234375, 0.01274871826171875, 0.040191650390625, -0.0310821533203125, -0.0026416778564453125, 0.0233001708984375, 0.0078125, -0.0225677490234375, -0.017822265625, 0.01012420654296875, 0.039459228515625, -0.01995849609375, -0.00467681884765625, 0.002628326416015625, 0.0171051025390625, -0.039337158203125, 0.046051025390625, -0.04315185546875, 0.0027370452880859375, 0.00846099853515625, 0.0276336669921875, 0.01418304443359375, 0.037841796875, -0.0222015380859375, 0.006969451904296875, 0.03509521484375, -0.03948974609375, 0.00859832763671875, 0.021209716796875, -0.01090240478515625, 0.0004925727844238281, -0.032012939453125, 0.035919189453125, 0.0160980224609375, -0.01129913330078125, -0.014739990234375, 0.032257080078125, 0.015869140625, -0.040740966796875, -0.0201873779296875, 0.053253173828125, -0.00400543212890625, -0.034759521484375, -0.007549285888671875, -0.0275115966796875, 0.0005402565002441406, 0.02239990234375, -0.035797119140625, -0.00470733642578125, 0.0278167724609375, 0.062103271484375, -0.02862548828125, 0.0654296875, -0.03662109375, 0.019866943359375, -0.0236663818359375, 0.0190582275390625, -0.007801055908203125, -0.0390625, -0.0119476318359375, -0.0288543701171875, -0.0004839897155761719, -0.07501220703125, 0.0033016204833984375, 0.008270263671875, -0.02923583984375, -0.006595611572265625, 0.03118896484375, -0.0229644775390625, 0.01432037353515625, 0.0192413330078125, -0.0293121337890625, 0.0181121826171875, -0.023681640625, 0.00829315185546875, 0.005100250244140625, -0.02557373046875, -0.019378662109375, 0.041778564453125, 0.0138702392578125, -0.0164031982421875, 0.04669189453125, -0.049652099609375, -0.027923583984375, -0.034576416015625, 0.06298828125, -0.03302001953125, -0.031646728515625, 0.000583648681640625, 0.005176544189453125, -0.01265716552734375, -0.00875091552734375, 0.0269622802734375, -0.012969970703125, 0.032073974609375, 0.00838470458984375, -0.03826904296875, 0.0023956298828125, 0.0189056396484375, -0.0104827880859375, -0.0162200927734375, 0.01380157470703125, 0.0401611328125, 0.0283355712890625, 0.01849365234375, -0.0031642913818359375, 0.01216888427734375, 0.0010585784912109375, -0.00641632080078125, 0.020751953125, -0.027191162109375, -0.00693511962890625, 0.01227569580078125, -0.032440185546875, 0.0293731689453125, 0.0117340087890625, -0.0005855560302734375, 0.028594970703125, 0.024658203125, -0.0206146240234375, 0.033355712890625, -0.022003173828125, 0.0072479248046875, 0.01306915283203125, -0.01149749755859375, -0.0176849365234375, 0.02410888671875, -0.0225067138671875, 0.0240020751953125, -0.04620361328125, -0.0106658935546875, -0.009307861328125, 0.0016345977783203125, -0.005992889404296875, -0.023162841796875, 0.00865936279296875, -0.005519866943359375, -0.01076507568359375, 0.01024627685546875, -0.0285491943359375, -0.00725555419921875, 0.03045654296875, 0.0008692741394042969, -0.00861358642578125, 0.01103973388671875, 0.00797271728515625, -0.0284576416015625, 0.04071044921875, 0.03717041015625, -0.02862548828125, -0.02294921875, -0.044158935546875, 0.08453369140625, -0.0249481201171875, -0.040191650390625, -0.02081298828125, 0.0045013427734375, 0.0352783203125, 0.030517578125, 0.032012939453125, 0.0182952880859375, -0.0192413330078125, -0.005458831787109375, -0.00901031494140625, -0.0071563720703125, -0.065185546875, 0.044219970703125, -0.0267333984375, -0.0101776123046875, 0.03778076171875, 0.0115509033203125, 0.027557373046875, -0.013916015625, 0.0343017578125, -0.0210723876953125, 0.0233154296875, -0.0209197998046875, 0.01473236083984375, -0.0245208740234375, 0.048095703125, 0.0227508544921875, 0.0038776397705078125, -0.0257415771484375, -0.032684326171875, -0.005596160888671875, -0.05413818359375, 0.01438140869140625, -0.005825042724609375, 0.008636474609375, -0.0037746429443359375, 0.02349853515625, 0.0035762786865234375, 0.005519866943359375, 0.040863037109375, 0.06195068359375, -0.00482940673828125, -0.0019779205322265625, -0.0297698974609375, 0.0921630859375, -0.0079498291015625, 0.004230499267578125, 0.0295562744140625, 0.04998779296875, 0.025543212890625, -0.0087127685546875, 0.0135955810546875, 0.00989532470703125, -0.091552734375, -0.0245208740234375, 0.0654296875, 0.0234832763671875, 0.0081329345703125, -0.01285552978515625, 0.0259552001953125, 0.05908203125, 0.0074615478515625, 0.00542449951171875, 0.01128387451171875, 0.0304107666015625, 0.0235137939453125, -0.007083892822265625, -0.025909423828125, 0.024322509765625, -0.061004638671875, 0.0052490234375, 0.040496826171875, -0.016265869140625, -0.0258941650390625, -0.0004181861877441406, -0.0059051513671875, -0.00472259521484375, -0.04144287109375, -0.0228729248046875, -0.01202392578125, 0.0770263671875, 0.01508331298828125, 0.046417236328125, 0.04620361328125, -0.06494140625, 0.025390625, 0.03448486328125, 0.038543701171875, 0.004962921142578125, 0.03466796875, 0.0035343170166015625, -0.008026123046875, -0.04095458984375, 0.0022029876708984375, -0.00445556640625, 0.0040435791015625, 0.0171661376953125, 0.0226898193359375, -0.002452850341796875, -0.015045166015625, 0.01265716552734375, -0.058197021484375, -0.01030731201171875, 0.015716552734375, 0.01122283935546875, -0.01458740234375, -0.006885528564453125, 0.0267486572265625, -0.0256805419921875, 0.061431884765625, -0.0003147125244140625, -0.02166748046875, -0.00299835205078125, -0.0362548828125, 0.055572509765625, -0.0306243896484375, 0.058013916015625, 0.0679931640625, -0.0245361328125, 0.0305328369140625, 0.01152801513671875, -0.0158538818359375, 0.0098114013671875, -0.005542755126953125, -0.018157958984375, 0.049530029296875, -0.11712646484375, -0.003452301025390625, 0.00698089599609375, 0.05474853515625, 0.00896453857421875, -0.050048828125, 0.0200347900390625, 0.03314208984375, -0.0736083984375, -0.06134033203125, 0.049835205078125, -0.056396484375, -0.0149993896484375, 0.0183868408203125, -0.049285888671875, -0.034454345703125, 0.053985595703125, -0.0013990402221679688, 0.035369873046875, -0.042022705078125, -0.033416748046875, -0.04681396484375, -0.06268310546875, -0.07470703125, 0.00951385498046875, -0.0163116455078125, 0.004230499267578125, -0.019287109375, 0.021392822265625, 0.0281982421875, 0.06488037109375, 0.058685302734375, -0.0005693435668945312, -0.01526641845703125, 0.0026454925537109375, -0.06219482421875, 0.0189056396484375, -0.005596160888671875, -0.0248870849609375, 0.0263519287109375, 0.002811431884765625, 0.00266265869140625, 0.00890350341796875, 0.032257080078125, 0.0318603515625, -0.018035888671875, -0.0269317626953125, 0.0517578125, 0.016357421875, -0.01824951171875, -0.05413818359375, 0.0029926300048828125, -0.05340576171875, 0.017059326171875, 0.019805908203125, -0.01137542724609375, -0.0104522705078125, 0.019927978515625, 0.040130615234375, 0.0216522216796875, 0.048492431640625, -0.0114898681640625, -0.0467529296875, 0.00859832763671875, 0.02130126953125, -0.049163818359375, 0.035186767578125, 0.0021457672119140625, -0.0068511962890625, 0.01047515869140625, 0.0101776123046875, 0.0018444061279296875, 0.014739990234375, -0.027313232421875, -0.0487060546875, 0.03857421875, -0.0325927734375, -0.0077056884765625, -0.038482666015625, -0.0186309814453125, -0.00431060791015625, 0.06793212890625, -0.0163116455078125, -0.0238494873046875, 0.004665374755859375, 0.01129913330078125, -0.0021877288818359375, -0.0233917236328125, -0.0275421142578125, -0.02142333984375, -0.119140625, 0.04473876953125, 0.0123291015625, -0.01354217529296875, -0.00092315673828125, 0.024200439453125, -0.04302978515625, -0.0316162109375, 0.00731658935546875, -0.004974365234375, 0.006702423095703125, 0.003948211669921875, -0.051971435546875, 0.0227813720703125, -0.0298004150390625, -0.019622802734375, 0.0010395050048828125, -0.0150299072265625, -0.0088653564453125, 0.0296478271484375, -0.002750396728515625, 0.0192108154296875, -0.028228759765625, 0.0221099853515625, 0.0235595703125, 0.0162353515625, -0.0077362060546875, -0.0189361572265625, -0.014495849609375, -0.03594970703125, -0.01290130615234375, -0.0238037109375, 0.0114288330078125, 0.039031982421875, -0.04559326171875, 0.06170654296875, 0.005733489990234375, 0.0465087890625, 0.046661376953125, -0.054840087890625, -0.1103515625, -0.044769287109375, 0.0135040283203125, -0.0310821533203125, -0.019989013671875, -0.00684356689453125, -0.00530242919921875, -0.06707763671875, 0.060943603515625, 0.0283050537109375, -0.0158843994140625, -0.0131072998046875, 0.01177215576171875, -0.0024204254150390625, -0.060211181640625, -0.0009584426879882812, -0.0174407958984375, 0.0147705078125, -0.03466796875, 0.01378631591796875, -0.04345703125, -0.0285186767578125, 0.0731201171875, -0.062286376953125, -0.04547119140625, 0.00920867919921875, 0.011383056640625, 0.0207366943359375, -0.0267791748046875, 0.00368499755859375, -0.0233154296875, 0.049407958984375, -0.031402587890625, -0.02215576171875, 0.00994873046875, 0.0024852752685546875, 0.007129669189453125, 0.00270843505859375, 0.017425537109375, 0.0014753341674804688, -0.0460205078125, 0.0158843994140625, 0.0174102783203125, -0.0210113525390625, 0.0032482147216796875, -0.0019588470458984375, -0.0160675048828125, -0.041351318359375, -0.00702667236328125, -0.03802490234375, 0.0004277229309082031, -0.030364990234375, 0.03045654296875, -0.04034423828125, -0.040252685546875, -0.019134521484375, -0.00258636474609375, -0.01849365234375, 0.01104736328125, -0.02618408203125, 0.005069732666015625, 0.007076263427734375, 0.004764556884765625, 0.004085540771484375, 0.00039458274841308594, 0.0070953369140625, 0.0299835205078125, 0.0019483566284179688, 0.0008912086486816406, -0.017242431640625, 0.048065185546875, -0.01044464111328125, 0.020111083984375, 0.032806396484375, -0.019317626953125, 0.004390716552734375, 0.02178955078125, 0.01023101806640625, 0.00778961181640625, 0.00262451171875, 0.015899658203125, 0.0208892822265625, 0.01383209228515625, 0.0073394775390625, -0.0262451171875, 0.02520751953125, -0.0155029296875, 0.03546142578125, -0.036773681640625, -0.036376953125, 0.043487548828125, 0.03656005859375, -0.02056884765625, -0.0063629150390625, -0.007045745849609375, -0.003238677978515625, 0.0166778564453125, 0.00824737548828125, -0.02105712890625, -0.0247955322265625, -0.01678466796875, 0.0007696151733398438, 0.036041259765625, -0.03125, -0.004974365234375, -0.04791259765625, -0.028594970703125, -0.014404296875, 0.031524658203125, -0.037353515625, 0.003429412841796875, 0.00494384765625, -0.016510009765625, -0.0310211181640625, 0.004909515380859375, -0.03466796875, 0.00865936279296875, -0.0296173095703125, -0.006862640380859375, 0.026947021484375, -0.053253173828125, 0.10400390625, -0.02093505859375, -0.039886474609375, 0.02825927734375, 0.0253753662109375, 0.00951385498046875, 0.04486083984375, -0.021484375, -0.013702392578125, -0.03778076171875, -0.0167999267578125, 0.018951416015625, 0.00539398193359375, -0.0267333984375, -0.022674560546875, 0.0017614364624023438, 0.01273345947265625, 0.0019931793212890625, -0.00530242919921875, 0.00885772705078125, 0.01910400390625, 0.0030231475830078125, 0.032684326171875, -0.02215576171875, 0.04351806640625, -0.00771331787109375, 0.0192413330078125, -0.022796630859375, -0.007110595703125, -0.0122833251953125, -0.0007252693176269531, 0.0028057098388671875, -0.036376953125, -0.0517578125, -0.015716552734375, -0.06402587890625, 0.06756591796875, 0.091064453125, -0.005481719970703125, 0.027435302734375, 0.01016998291015625, 0.0118560791015625, -0.02166748046875, -0.01239013671875, -0.019378662109375, -0.01538848876953125, 0.0303497314453125, -0.0338134765625, 0.0465087890625, 0.002147674560546875, 0.0175628662109375, 0.0191192626953125, -0.053741455078125, 0.030487060546875, 0.043426513671875, -0.03399658203125, 0.0252227783203125, 0.029052734375, -0.01468658447265625, 0.03729248046875, -0.025787353515625, 0.01329803466796875, 0.0635986328125, -0.037200927734375, -0.004425048828125, 0.0176239013671875, 0.01006317138671875, -0.03131103515625, 0.0184783935546875, 0.02069091796875, -0.0037555694580078125, -0.007091522216796875, 0.043121337890625, 0.01513671875, -0.063232421875, -0.004436492919921875, -0.004726409912109375, -0.01158905029296875, 0.004535675048828125, 0.041534423828125, -0.01727294921875, -0.0144500732421875, -0.02227783203125, -0.00524139404296875, 0.00453948974609375, 0.00672149658203125, 0.027862548828125, -0.0014896392822265625, -0.00782012939453125, 0.056121826171875, 0.023101806640625, -0.041717529296875, -0.0285491943359375, 0.0379638671875, -0.01247406005859375, -0.0013170242309570312, -0.0025196075439453125, 0.0972900390625, -0.0201873779296875, -0.04486083984375, 0.1025390625, -0.01096343994140625, -0.019500732421875, -0.0225372314453125, 0.0196533203125, 0.00406646728515625, 0.0244140625, -0.0128326416015625, -0.015655517578125, -0.00296783447265625, -0.002788543701171875, -0.0065765380859375, -0.011138916015625, -0.0069427490234375, 0.0266265869140625, -0.046600341796875, 0.00682830810546875, -0.050384521484375, 0.04168701171875, 0.0021762847900390625, -0.0218048095703125, 0.007106781005859375, 0.005931854248046875, -0.01343536376953125, 0.03692626953125, 0.01030731201171875, 0.0003361701965332031, 0.019256591796875, 0.017791748046875, -0.034423828125, -0.022369384765625, 0.0254364013671875, -0.041900634765625, -0.015777587890625, 0.0176544189453125, -0.0802001953125, 0.1175537109375, 0.05450439453125, 0.0230255126953125, 0.00992584228515625, 0.044342041015625, -0.0888671875, -0.0152435302734375, -0.0295867919921875, 0.0268402099609375, -0.0283660888671875, 0.049102783203125, -0.031036376953125, -0.002300262451171875, 0.0234375, 0.0311737060546875, 0.0151824951171875, 0.01062774658203125, -0.0307159423828125, -0.0123291015625, 0.00907135009765625, 0.01497650146484375, -0.01140594482421875, 0.041229248046875, -0.01953125, -0.02227783203125, 0.0049896240234375, -0.0301361083984375, 0.0090484619140625, -0.023101806640625, -0.0015230178833007812, 0.02703857421875, 0.0206298828125, 0.003795623779296875, 0.0182342529296875, 0.0032215118408203125, -0.052398681640625, 0.016845703125, 0.0447998046875, -0.01029205322265625, -0.007190704345703125, 0.03277587890625, 0.00904083251953125, -0.00867462158203125, -0.01213836669921875, -0.0158233642578125, 0.039276123046875, -0.002544403076171875, 0.0408935546875, 0.054840087890625, 0.0179901123046875, 0.0672607421875, -0.0273590087890625, 0.0178985595703125, -0.0148468017578125, 0.00917816162109375, -0.0007658004760742188, 0.01432037353515625, 0.007343292236328125, -0.00514984130859375, 0.041961669921875, 0.056365966796875, 0.007373809814453125, -0.034637451171875, -0.007434844970703125, 0.01561737060546875, 0.004085540771484375, -0.01300811767578125, -0.0257720947265625, -0.0142059326171875, -0.0291595458984375, -0.002349853515625, -0.03558349609375, 0.0091552734375, 0.058868408203125, 0.002185821533203125, 0.024871826171875, 0.0169525146484375, -0.03582763671875, 0.006504058837890625, -0.049713134765625, 0.0150299072265625, 0.00926971435546875, 0.0755615234375, -0.005008697509765625, 0.0736083984375, -0.0284271240234375, -0.0556640625, 0.01039886474609375, 0.0187530517578125, -0.0125579833984375, -0.0167236328125, -0.04779052734375, -0.093505859375, 0.05352783203125, 0.042694091796875, 0.032684326171875, 0.055908203125, 0.041107177734375, 0.03314208984375, 0.030517578125, 0.00913238525390625, 0.0679931640625, -0.01287078857421875, 0.00832366943359375, -0.0017147064208984375, 0.031524658203125, 0.0215911865234375, 0.00769805908203125, -0.0307159423828125, 0.10089111328125, -0.014007568359375, -0.05792236328125, 0.025726318359375, -0.01248931884765625, -0.057952880859375, 0.02557373046875, 0.0234222412109375, 0.083251953125, -0.0054931640625, -0.035247802734375, -0.007061004638671875, -0.004238128662109375, -0.005626678466796875, -0.008026123046875, 0.0147247314453125, -0.0137939453125, 0.0175933837890625, -0.01226043701171875, -0.01995849609375, 0.01506805419921875, 0.0101776123046875, -0.0072784423828125, 0.031768798828125, 0.0216217041015625, -0.00800323486328125, 0.029327392578125, 0.0304718017578125, 0.0191802978515625, 0.01031494140625, 0.04046630859375, -0.007030487060546875, 0.006145477294921875, 0.025970458984375, -0.00632476806640625, 0.0188140869140625, -0.03900146484375, -0.037841796875, 0.063720703125, -0.0304107666015625, -0.010284423828125, -0.0041046142578125, -0.0282135009765625, 0.0008816719055175781, 0.061187744140625, 0.01003265380859375, 0.02386474609375, -0.020599365234375, 0.0290069580078125, -0.039337158203125, 0.019134521484375, -0.028045654296875, -0.0131683349609375, -0.0270233154296875, -0.0273284912109375, 0.03973388671875, 0.039306640625, 0.01500701904296875, 0.026763916015625, 0.0036163330078125, -0.0014982223510742188, 0.019683837890625, -0.039093017578125, 0.03533935546875, 0.034942626953125, -0.0234222412109375, -0.0025959014892578125, 0.009002685546875, -0.01465606689453125, -0.034393310546875, 0.037200927734375, -0.0140380859375, -0.007251739501953125, 0.020751953125, -0.001708984375, -0.02935791015625, -0.0018644332885742188, -0.0094146728515625, 0.001331329345703125, -0.0008826255798339844, -0.0002353191375732422, -0.04119873046875, -0.05126953125, -0.0259857177734375, -0.026611328125, 0.0002009868621826172, 0.0292205810546875, -0.00760650634765625, -0.046478271484375, -0.054901123046875, -0.03497314453125, 0.024444580078125, 0.0011234283447265625, -0.005603790283203125, -0.0031261444091796875, -0.0206298828125, -0.014862060546875, 0.0220794677734375, -0.0614013671875, 0.01169586181640625, 0.0384521484375, -0.058197021484375, -0.051788330078125, -0.059295654296875, -0.01361846923828125, -0.112548828125, -0.0214385986328125, 0.007213592529296875, 0.0123291015625, -0.036102294921875, -0.025177001953125, -0.01500701904296875, 0.0245513916015625, -0.01788330078125, -0.0176849365234375, 0.01788330078125, -0.005451202392578125, -0.0276947021484375, -0.0684814453125, 0.043701171875, -0.1009521484375, -0.0103759765625, 0.014556884765625, -0.0211334228515625, -0.00792694091796875, -0.0304412841796875, -0.0306243896484375, 0.0474853515625, 0.003398895263671875, -0.0162353515625, 0.01367950439453125, -0.02447509765625, -0.01325225830078125, 0.02911376953125, 0.01055908203125, -0.0242767333984375, -0.02423095703125, 0.0209808349609375, 0.00263214111328125, 0.05340576171875, 0.000751495361328125, 0.0386962890625, -0.0047760009765625, 0.0289459228515625, 0.0037021636962890625, -0.0076751708984375, 0.01039886474609375, 0.0101470947265625, 0.0250396728515625, 0.0198211669921875, -0.033477783203125, 0.0222015380859375, -0.007740020751953125, -0.014495849609375, 0.000640869140625, -0.003765106201171875, -0.04290771484375, -0.0126190185546875, 0.07208251953125, 0.050750732421875, 0.025238037109375, -0.035247802734375, 0.00846099853515625, 0.01058197021484375, -0.061370849609375, -0.0036144256591796875, 0.031280517578125, -0.06610107421875, -0.0113983154296875, 0.021209716796875, 0.0021953582763671875, -0.0240631103515625, 0.004993438720703125, -0.04705810546875, -0.037811279296875, -0.05072021484375, -0.00749969482421875, -0.030609130859375, -0.02801513671875, 0.046844482421875, -0.02923583984375, -0.01157379150390625, -0.0020465850830078125, 0.033721923828125, 0.0030994415283203125, -0.036224365234375, 0.006343841552734375, -0.01088714599609375, 0.016632080078125, 0.0009813308715820312, 0.031829833984375, 0.03399658203125, 0.0306243896484375, -0.03436279296875, -0.032318115234375, 0.045379638671875, 0.01387786865234375, 0.03778076171875, -0.0322265625, 0.048614501953125, 0.0251312255859375, 0.08074951171875, -0.032318115234375, 0.0135345458984375, -0.017242431640625, 0.0257720947265625, -0.007335662841796875, -0.0027523040771484375, 0.045745849609375, -0.02789306640625, 0.00492095947265625, -0.026275634765625, -0.01435089111328125, -0.03131103515625, -0.00824737548828125, -0.08258056640625, -0.0296173095703125, 0.010009765625 ]
f47df859a06706c69a9c92f2c9ffb09410358c19
Wordpress Stackexchange Q: How to get an array of post data from wp_query result? When run a query with WP_Query method, I got an object. I understand that I can then do the loop to display stuffs. But, my goal is not to display anything, instead, I want to get some post data by doing something like "foreach...". How can I get an array of post data that I can loop through and get data? A: you can also use get_posts( $args ) instead of wp_Query(), which will give you a list of posts
Q: How to get an array of post data from wp_query result? When run a query with WP_Query method, I got an object. I understand that I can then do the loop to display stuffs. But, my goal is not to display anything, instead, I want to get some post data by doing something like "foreach...". How can I get an array of post data that I can loop through and get data? A: you can also use get_posts( $args ) instead of wp_Query(), which will give you a list of posts A: Actually, you don't need to refuse to use while() loop. Same WP_Post Object is already stored in post property: $query = new WP_Query( $args ); if ( $query->have_posts() ) { // some code here if you want. while ( $query->have_posts() ) { $query->the_post(); // now $query->post is WP_Post Object, use: // $query->post->ID, $query->post->post_title, etc. } } A: You should read the function reference for WP_Query on the WordPress codex. There you have a lot of examples to look at. If you don't want to loop over the result set using a while, you could get all posts returned by the query with the WP_Query in the property posts. For example $query = new WP_Query( array( 'post_type' => 'page' ) ); $posts = $query->posts; foreach($posts as $post) { // Do your stuff, e.g. // echo $post->post_name; }
wordpress
{ "language": "en", "length": 229, "provenance": "stackexchange_00019.jsonl.gz:422821", "question_score": "56", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61530" }
[ 0.04180908203125, -0.010589599609375, -0.024566650390625, 0.028289794921875, 0.024505615234375, -0.05877685546875, 0.0985107421875, -0.010009765625, 0.0143890380859375, 0.0133819580078125, -0.062744140625, -0.01235198974609375, -0.03997802734375, -0.004299163818359375, -0.0269927978515625, -0.06414794921875, 0.04400634765625, -0.045928955078125, 0.01471710205078125, -0.0034770965576171875, 0.0040740966796875, 0.0277557373046875, 0.0313720703125, 0.0670166015625, 0.03143310546875, 0.046600341796875, 0.0294647216796875, -0.015869140625, 0.00704193115234375, -0.0112457275390625, 0.013092041015625, -0.01030731201171875, 0.0067291259765625, 0.0361328125, -0.00677490234375, 0.0240325927734375, 0.03302001953125, -0.01227569580078125, 0.0263824462890625, 0.01454925537109375, 0.0228271484375, -0.0104827880859375, -0.01178741455078125, 0.0309906005859375, -0.0156402587890625, -0.00576019287109375, 0.004730224609375, -0.037689208984375, 0.019012451171875, -0.00524139404296875, 0.010040283203125, 0.0284881591796875, 0.0247344970703125, 0.0105438232421875, -0.011260986328125, 0.01171112060546875, 0.0361328125, -0.043304443359375, 0.0458984375, -0.06488037109375, -0.06500244140625, -0.043731689453125, 0.061798095703125, 0.0096435546875, 0.0005884170532226562, 0.006168365478515625, 0.028778076171875, 0.00930023193359375, -0.01727294921875, 0.0131988525390625, 0.033660888671875, -0.0274658203125, -0.02117919921875, -0.0113677978515625, -0.01812744140625, -0.02288818359375, 0.005954742431640625, -0.0304107666015625, 0.0007948875427246094, 0.0307159423828125, -0.0272674560546875, -0.005558013916015625, -0.07293701171875, 0.0054931640625, -0.02069091796875, 0.001827239990234375, -0.024810791015625, -0.0113525390625, -0.007965087890625, -0.021759033203125, -0.00707244873046875, -0.02001953125, -0.031707763671875, 0.021759033203125, -0.002651214599609375, -0.04345703125, -0.001384735107421875, -0.004222869873046875, -0.007167816162109375, 0.01287078857421875, -0.0257415771484375, -0.0232696533203125, 0.01328277587890625, -0.00783538818359375, 0.00870513916015625, -0.01052093505859375, -0.0037689208984375, 0.0286712646484375, 0.0499267578125, 0.05206298828125, -0.00626373291015625, 0.046051025390625, -0.037261962890625, -0.0196380615234375, -0.04620361328125, 0.05377197265625, -0.0275115966796875, -0.0328369140625, -0.0028705596923828125, 0.0004470348358154297, -0.0010900497436523438, 0.026702880859375, -0.006824493408203125, -0.00872802734375, 0.0301055908203125, 0.02978515625, 0.0035419464111328125, -0.03277587890625, -0.01751708984375, 0.063232421875, -0.0174713134765625, 0.00032401084899902344, 0.00904083251953125, 0.00226593017578125, -0.025543212890625, -0.026092529296875, 0.0141448974609375, -0.023590087890625, 0.022247314453125, 0.003177642822265625, 0.015380859375, -0.04364013671875, -0.0150909423828125, 0.028228759765625, 0.0242462158203125, 0.0004622936248779297, 0.0298309326171875, 0.01690673828125, 0.00324249267578125, -0.01039886474609375, -0.0257415771484375, 0.05120849609375, -0.0109405517578125, 0.028167724609375, 0.041473388671875, 0.0243988037109375, 0.0447998046875, -0.0226287841796875, -0.00040912628173828125, -0.0103912353515625, 0.016357421875, 0.0305633544921875, 0.0254669189453125, 0.026153564453125, -0.00557708740234375, -0.03485107421875, -0.00675201416015625, -0.01336669921875, 0.02423095703125, 0.00801849365234375, -0.00444793701171875, -0.023406982421875, 0.044281005859375, -0.00865936279296875, -0.026763916015625, 0.015899658203125, 0.005535125732421875, -0.0123138427734375, 0.0098419189453125, 0.024505615234375, -0.026641845703125, -0.03778076171875, -0.0155487060546875, 0.00782012939453125, -0.0284576416015625, 0.0426025390625, 0.00733184814453125, 0.045074462890625, -0.0024204254150390625, 0.018890380859375, 0.005756378173828125, 0.0257568359375, -0.047210693359375, 0.03265380859375, 0.00621795654296875, -0.0157623291015625, -0.01751708984375, -0.0061187744140625, 0.0022945404052734375, -0.0256195068359375, 0.029693603515625, 0.005741119384765625, -0.017547607421875, 0.0236053466796875, -0.048065185546875, 0.002349853515625, -0.009674072265625, 0.003536224365234375, 0.010040283203125, 0.03607177734375, 0.0173492431640625, 0.0191192626953125, -0.04083251953125, 0.00919342041015625, -0.030731201171875, 0.01174163818359375, -0.0233612060546875, -0.020538330078125, -0.01293182373046875, -0.0182037353515625, -0.01328277587890625, -0.0157623291015625, -0.0260467529296875, 0.037445068359375, 0.0677490234375, -0.060943603515625, 0.022796630859375, -0.06732177734375, 0.0440673828125, -0.033172607421875, -0.041259765625, 0.04193115234375, 0.01116943359375, 0.044464111328125, 0.0012941360473632812, -0.0233154296875, 0.00777435302734375, -0.06201171875, 0.020294189453125, 0.04217529296875, 0.034637451171875, 0.029754638671875, -0.013641357421875, -0.0262298583984375, 0.05206298828125, -0.03399658203125, 0.0003287792205810547, -0.01922607421875, 0.029510498046875, 0.05218505859375, 0.004634857177734375, -0.001033782958984375, 0.018585205078125, -0.013824462890625, 0.0236053466796875, 0.0321044921875, 0.027679443359375, 0.0693359375, -0.052886962890625, 0.0139923095703125, -0.0139617919921875, -0.0144500732421875, -0.0222320556640625, -0.01505279541015625, 0.01076507568359375, 0.029571533203125, 0.012664794921875, 0.012939453125, -0.0391845703125, 0.04638671875, 0.004730224609375, -0.0296630859375, 0.00646209716796875, 0.01073455810546875, -0.045654296875, 0.0194854736328125, -0.0239105224609375, 0.0000036954879760742188, 0.026031494140625, -0.0032787322998046875, 0.0027618408203125, 0.045196533203125, 0.0258941650390625, -0.0082244873046875, -0.007213592529296875, 0.0008387565612792969, 0.01397705078125, 0.0105133056640625, -0.0273590087890625, 0.00037789344787597656, 0.0298919677734375, 0.03509521484375, -0.028228759765625, 0.028656005859375, -0.048248291015625, 0.006744384765625, 0.0231170654296875, -0.0172119140625, 0.0176544189453125, -0.0145416259765625, 0.039459228515625, 0.054595947265625, 0.0023345947265625, -0.01125335693359375, -0.0007405281066894531, -0.021820068359375, 0.005001068115234375, 0.023590087890625, -0.0022029876708984375, -0.0235595703125, -0.05621337890625, 0.003513336181640625, 0.034881591796875, 0.09527587890625, -0.0023174285888671875, -0.042388916015625, 0.00547027587890625, 0.056976318359375, -0.07037353515625, -0.0946044921875, 0.0374755859375, -0.09033203125, -0.0257568359375, -0.046051025390625, -0.049713134765625, 0.0085296630859375, -0.03277587890625, -0.0065765380859375, 0.0235595703125, 0.0178985595703125, -0.07757568359375, -0.004383087158203125, -0.0963134765625, 0.0017871856689453125, -0.016143798828125, 0.03973388671875, -0.0016622543334960938, 0.05523681640625, 0.006404876708984375, -0.031646728515625, -0.0232086181640625, 0.042327880859375, -0.020660400390625, -0.038665771484375, -0.017242431640625, 0.0042572021484375, -0.0243682861328125, 0.00618743896484375, 0.006343841552734375, -0.003345489501953125, -0.0107269287109375, -0.006366729736328125, 0.01444244384765625, 0.0218353271484375, 0.049530029296875, -0.0218963623046875, -0.04925537109375, 0.041839599609375, 0.026092529296875, -0.0227813720703125, -0.0283355712890625, -0.0194854736328125, -0.054351806640625, -0.0216827392578125, 0.0290985107421875, 0.0172119140625, -0.04583740234375, 0.0240478515625, 0.00025725364685058594, -0.01445770263671875, -0.03564453125, -0.0294036865234375, 0.054473876953125, 0.022125244140625, 0.04534912109375, 0.026763916015625, -0.00661468505859375, -0.03485107421875, 0.0214080810546875, -0.0103759765625, -0.01210784912109375, -0.01187896728515625, -0.01457977294921875, -0.0189056396484375, -0.0543212890625, 0.07110595703125, 0.023193359375, 0.0167694091796875, -0.04217529296875, -0.056182861328125, -0.01080322265625, 0.10394287109375, -0.00508880615234375, -0.033172607421875, -0.042022705078125, 0.0134429931640625, -0.04888916015625, -0.03106689453125, 0.003993988037109375, 0.0017881393432617188, -0.039031982421875, -0.015777587890625, -0.035308837890625, -0.015289306640625, -0.016754150390625, -0.01259613037109375, -0.0290985107421875, -0.041290283203125, 0.02276611328125, -0.041290283203125, 0.0152130126953125, -0.01412200927734375, 0.0088043212890625, -0.0421142578125, -0.00982666015625, -0.034912109375, -0.0703125, -0.01580810546875, 0.04864501953125, 0.038665771484375, -0.01515960693359375, -0.03851318359375, -0.0157928466796875, 0.038787841796875, 0.005207061767578125, 0.029266357421875, 0.0228118896484375, 0.028900146484375, 0.0005822181701660156, -0.0197906494140625, 0.025390625, -0.0435791015625, -0.015899658203125, -0.039764404296875, 0.042266845703125, 0.023773193359375, -0.055419921875, 0.0028667449951171875, -0.080810546875, 0.0178375244140625, -0.00298309326171875, 0.00412750244140625, -0.0034198760986328125, 0.030731201171875, -0.0238494873046875, 0.02069091796875, -0.0047454833984375, -0.0125274658203125, 0.060455322265625, 0.045257568359375, -0.024566650390625, -0.005279541015625, 0.0810546875, 0.012054443359375, -0.047454833984375, -0.10015869140625, -0.023681640625, 0.0259857177734375, -0.019927978515625, 0.0282440185546875, -0.006198883056640625, -0.029083251953125, 0.06817626953125, -0.010650634765625, 0.00853729248046875, 0.003437042236328125, 0.03741455078125, 0.0211029052734375, -0.00745391845703125, 0.0133209228515625, 0.00402069091796875, -0.02093505859375, 0.043548583984375, -0.0011262893676757812, -0.020660400390625, 0.01392364501953125, 0.03790283203125, -0.0223846435546875, 0.009765625, -0.025299072265625, -0.042694091796875, 0.01003265380859375, -0.00820159912109375, 0.01165008544921875, 0.0077972412109375, -0.01132965087890625, 0.0051727294921875, 0.01131439208984375, 0.0151214599609375, 0.01107025146484375, 0.024749755859375, 0.00595855712890625, 0.055389404296875, -0.005016326904296875, 0.00891876220703125, -0.00943756103515625, -0.0017023086547851562, 0.030853271484375, -0.0285186767578125, -0.05291748046875, 0.0027179718017578125, -0.0105743408203125, 0.0251617431640625, 0.04022216796875, 0.0130767822265625, 0.048187255859375, 0.0540771484375, -0.00396728515625, -0.0008873939514160156, 0.0084381103515625, 0.01617431640625, -0.0360107421875, 0.03533935546875, 0.001308441162109375, 0.010589599609375, 0.03338623046875, 0.08477783203125, -0.03900146484375, 0.07171630859375, -0.0182342529296875, 0.0251312255859375, -0.01457977294921875, 0.04150390625, 0.0175018310546875, -0.01274871826171875, 0.0197906494140625, 0.01201629638671875, -0.0110626220703125, -0.054595947265625, -0.0009775161743164062, -0.0198822021484375, 0.039703369140625, 0.0411376953125, -0.0107269287109375, 0.031768798828125, -0.0098114013671875, -0.0173187255859375, 0.03680419921875, 0.04461669921875, -0.0173797607421875, -0.0291748046875, -0.017333984375, 0.0199737548828125, 0.0116424560546875, 0.0004699230194091797, 0.018402099609375, 0.0006909370422363281, 0.0382080078125, -0.047210693359375, 0.0230560302734375, -0.01092529296875, -0.0060882568359375, -0.03277587890625, -0.031707763671875, -0.0263824462890625, -0.0338134765625, -0.010589599609375, -0.004245758056640625, -0.0105438232421875, 0.01531982421875, -0.03436279296875, 0.0318603515625, -0.0430908203125, 0.006618499755859375, -0.048919677734375, -0.00571441650390625, 0.06341552734375, 0.051849365234375, -0.056884765625, -0.0011014938354492188, -0.0423583984375, 0.004146575927734375, 0.0191802978515625, -0.035858154296875, -0.03302001953125, -0.036895751953125, -0.0024433135986328125, 0.020660400390625, 0.00782012939453125, -0.005001068115234375, -0.02447509765625, -0.00492095947265625, -0.007465362548828125, 0.0233917236328125, -0.00836944580078125, 0.06512451171875, -0.023590087890625, 0.034027099609375, -0.013763427734375, 0.02728271484375, -0.03143310546875, -0.00266265869140625, 0.0003993511199951172, -0.08734130859375, -0.0148162841796875, 0.03009033203125, -0.048553466796875, -0.01280975341796875, -0.037750244140625, 0.0126953125, 0.00495147705078125, -0.019561767578125, -0.00618743896484375, -0.01220703125, 0.044464111328125, -0.033447265625, -0.00629425048828125, 0.046356201171875, 0.01934814453125, -0.004924774169921875, -0.010101318359375, -0.01186370849609375, -0.033172607421875, 0.036102294921875, -0.02166748046875, -0.052581787109375, -0.037078857421875, 0.03155517578125, 0.06878662109375, 0.004680633544921875, 0.033538818359375, 0.0272216796875, 0.00682830810546875, 0.026885986328125, 0.0243377685546875, -0.009033203125, -0.023773193359375, 0.07843017578125, 0.0096282958984375, -0.044708251953125, 0.04229736328125, -0.057220458984375, 0.00487518310546875, -0.0016374588012695312, 0.055145263671875, -0.0308990478515625, 0.03302001953125, 0.041229248046875, -0.0092010498046875, 0.004299163818359375, 0.01314544677734375, -0.00858306884765625, -0.0203857421875, 0.00623321533203125, -0.008575439453125, -0.019287109375, 0.0030307769775390625, 0.0165252685546875, 0.014190673828125, -0.0229644775390625, 0.03729248046875, -0.0036334991455078125, -0.07086181640625, 0.020416259765625, 0.048583984375, -0.0080718994140625, -0.028961181640625, 0.022369384765625, -0.026397705078125, 0.002471923828125, -0.06939697265625, -0.01082611083984375, -0.02752685546875, -0.004909515380859375, -0.0188140869140625, -0.006145477294921875, 0.0247650146484375, 0.04559326171875, 0.0015811920166015625, -0.033050537109375, 0.028228759765625, -0.0472412109375, -0.03961181640625, -0.0213623046875, 0.00357818603515625, 0.04986572265625, -0.045135498046875, 0.038482666015625, -0.0254058837890625, 0.00693511962890625, 0.0026760101318359375, 0.01328277587890625, 0.0200958251953125, -0.0227508544921875, -0.017181396484375, 0.0421142578125, 0.0136566162109375, -0.00666046142578125, -0.024139404296875, 0.00681304931640625, -0.0102081298828125, 0.049102783203125, -0.0207366943359375, 0.0391845703125, -0.0023555755615234375, -0.052459716796875, -0.0242156982421875, 0.045745849609375, 0.00792694091796875, -0.0164794921875, 0.02935791015625, 0.021728515625, -0.03485107421875, 0.0036602020263671875, -0.048431396484375, 0.060760498046875, -0.00713348388671875, 0.053192138671875, -0.09088134765625, -0.021942138671875, 0.0017900466918945312, 0.05511474609375, 0.05731201171875, 0.00925445556640625, -0.0181884765625, -0.0242767333984375, 0.02850341796875, 0.06976318359375, 0.00618743896484375, 0.007904052734375, 0.0238494873046875, 0.0784912109375, 0.0953369140625, -0.07098388671875, 0.019683837890625, 0.0216064453125, 0.00818634033203125, 0.05047607421875, 0.002452850341796875, -0.0006175041198730469, 0.03961181640625, -0.006969451904296875, 0.00972747802734375, 0.0004124641418457031, -0.00598907470703125, -0.030426025390625, -0.002429962158203125, 0.067138671875, 0.04473876953125, -0.027191162109375, -0.048583984375, -0.021026611328125, 0.038330078125, 0.00466156005859375, 0.0283660888671875, 0.0240325927734375, 0.01200103759765625, 0.08203125, 0.0078887939453125, 0.0242462158203125, 0.045013427734375, -0.0169525146484375, 0.04510498046875, 0.0196533203125, 0.0269775390625, -0.07647705078125, -0.043670654296875, 0.058197021484375, 0.0751953125, -0.032562255859375, -0.029083251953125, 0.01302337646484375, 0.00103759765625, -0.006015777587890625, -0.0097503662109375, 0.00616455078125, 0.042510986328125, 0.06414794921875, -0.0301666259765625, -0.0212554931640625, -0.0099334716796875, 0.0192413330078125, -0.016387939453125, -0.0195770263671875, 0.026458740234375, -0.01557159423828125, -0.0020885467529296875, -0.02520751953125, -0.005001068115234375, 0.0396728515625, 0.0281829833984375, 0.0098114013671875, -0.0484619140625, -0.0087890625, 0.00789642333984375, 0.0302276611328125, -0.005214691162109375, -0.0059356689453125, 0.00461578369140625, -0.0305633544921875, -0.029693603515625, 0.0214996337890625, 0.037261962890625, -0.022247314453125, 0.039520263671875, 0.05438232421875, -0.01544189453125, -0.0178375244140625, 0.0275726318359375, -0.005855560302734375, -0.047119140625, -0.031494140625, -0.007080078125, 0.04205322265625, 0.004547119140625, 0.0182647705078125, 0.0083160400390625, 0.0440673828125, 0.0024261474609375, 0.0343017578125, -0.01212310791015625, 0.0016241073608398438, 0.0330810546875, -0.031402587890625, 0.034332275390625, 0.00628662109375, -0.049560546875, -0.01351165771484375, -0.013916015625, -0.02734375, 0.01270294189453125, 0.0257568359375, -0.02105712890625, 0.0287322998046875, -0.0251007080078125, -0.044219970703125, 0.01434326171875, 0.02606201171875, 0.01465606689453125, 0.01265716552734375, -0.00553131103515625, -0.0193328857421875, -0.09136962890625, -0.06085205078125, -0.045013427734375, 0.0244140625, 0.0198516845703125, 0.0083160400390625, 0.044647216796875, 0.032501220703125, -0.0408935546875, 0.007480621337890625, -0.0226593017578125, -0.0234222412109375, 0.016998291015625, 0.00966644287109375, -0.012847900390625, -0.005828857421875, 0.0228118896484375, -0.0011339187622070312, 0.0513916015625, -0.0523681640625, -0.024078369140625, -0.0102386474609375, 0.0157318115234375, -0.0247344970703125, 0.03509521484375, -0.01352691650390625, -0.006786346435546875, 0.0079498291015625, -0.0044403076171875, 0.032562255859375, 0.03228759765625, 0.028839111328125, 0.00916290283203125, -0.0017642974853515625, -0.040252685546875, 0.034088134765625, -0.043182373046875, 0.049713134765625, 0.042724609375, -0.00785064697265625, 0.01480865478515625, -0.01349639892578125, -0.0308837890625, 0.0211334228515625, -0.003284454345703125, 0.01415252685546875, -0.0193634033203125, 0.039093017578125, -0.0195770263671875, -0.0118560791015625, 0.0478515625, 0.010894775390625, 0.01293182373046875, -0.053619384765625, 0.0056915283203125, -0.015472412109375, 0.0035037994384765625, -0.03619384765625, -0.04052734375, -0.0029888153076171875, -0.0008769035339355469, -0.010650634765625, -0.055206298828125, -0.032440185546875, -0.0194244384765625, 0.00516510009765625, -0.0048828125, -0.002285003662109375, -0.0114593505859375, -0.0260772705078125, -0.006969451904296875, -0.0406494140625, -0.0426025390625, 0.042449951171875, 0.046417236328125, -0.0281219482421875, 0.0088653564453125, -0.0115814208984375, -0.03759765625, 0.0016880035400390625, 0.017730712890625, 0.006256103515625, -0.0362548828125, -0.0217437744140625, 0.072509765625, 0.0253753662109375, 0.09765625, 0.0638427734375, -0.00551605224609375, 0.027313232421875, 0.015380859375, -0.0200347900390625, -0.06695556640625, 0.007747650146484375, -0.021820068359375, 0.0192413330078125, 0.01593017578125, 0.007495880126953125, 0.052642822265625, -0.01525115966796875, -0.0732421875, 0.08111572265625, -0.03375244140625, -0.029083251953125, -0.0447998046875, 0.00024819374084472656, 0.037750244140625, -0.0631103515625, -0.0240020751953125, -0.003223419189453125, -0.05902099609375, -0.0108184814453125, 0.00812530517578125, -0.011016845703125, 0.04644775390625, -0.0116729736328125, -0.06903076171875, -0.007801055908203125, -0.0256805419921875, 0.01561737060546875, -0.003932952880859375, -0.01326751708984375, 0.0311279296875, 0.0284271240234375, -0.03125, 0.0105743408203125, 0.00824737548828125, 0.0022907257080078125, -0.0042266845703125, 0.01197052001953125, -0.01059722900390625, 0.01641845703125, 0.045928955078125, 0.0399169921875, 0.024200439453125, -0.04437255859375, -0.0159759521484375, 0.0083770751953125, -0.023681640625, -0.00969696044921875, 0.025543212890625, -0.059234619140625, -0.0165557861328125, -0.0015277862548828125, -0.01739501953125, 0.01247406005859375, -0.035247802734375, -0.0244293212890625, -0.0214385986328125, -0.0479736328125, -0.0147705078125, -0.002460479736328125, -0.0273590087890625, 0.01293182373046875, -0.01082611083984375, -0.0175933837890625, -0.01055908203125, 0.023590087890625, -0.01727294921875, 0.0098724365234375, 0.007740020751953125, -0.00908660888671875, 0.0132904052734375, 0.00014078617095947266, 0.0246734619140625, -0.0006995201110839844, 0.027313232421875, -0.025634765625, -0.010040283203125, 0.018798828125, 0.0019083023071289062, 0.0172882080078125, -0.0018310546875, 0.0265960693359375, 0.01515960693359375, 0.04534912109375, -0.00417327880859375, 0.04931640625, -0.007755279541015625, 0.033966064453125, -0.01409149169921875, -0.0140838623046875, 0.0173492431640625, -0.037811279296875, 0.00736236572265625, 0.004810333251953125, -0.0166778564453125, -0.0016145706176757812, -0.0152587890625, 0.038360595703125, -0.0085296630859375, -0.00453948974609375 ]
b37ff0a14ef6669cc4c98474599605043c3e9d24
Wordpress Stackexchange Q: Oauth user Authorisation I work with Oauth 1. I want when the user enters the admin page of my plugin, it is redirected to the site should perform authorization and come back on my page but it does not work get_user_authorization(); do not work. session_unset(); $OAUTH->set_site("http://www.site.com/fr/", $key, $secret); $OAUTH->set_callback($callback_url); $OAUTH->get_request_token() ->get_user_authorization();
Q: Oauth user Authorisation I work with Oauth 1. I want when the user enters the admin page of my plugin, it is redirected to the site should perform authorization and come back on my page but it does not work get_user_authorization(); do not work. session_unset(); $OAUTH->set_site("http://www.site.com/fr/", $key, $secret); $OAUTH->set_callback($callback_url); $OAUTH->get_request_token() ->get_user_authorization();
wordpress
{ "language": "en", "length": 52, "provenance": "stackexchange_00019.jsonl.gz:422830", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61562" }
[ 0.032318115234375, 0.0186004638671875, -0.0220184326171875, -0.018798828125, 0.0203857421875, -0.0269622802734375, -0.00472259521484375, -0.03204345703125, 0.0032405853271484375, 0.017059326171875, -0.00737762451171875, 0.008880615234375, -0.0241546630859375, -0.0304718017578125, -0.00676727294921875, -0.01593017578125, -0.00026297569274902344, 0.00823211669921875, -0.0192413330078125, -0.0340576171875, -0.0104522705078125, -0.03155517578125, 0.004268646240234375, 0.007114410400390625, 0.00891876220703125, -0.00826263427734375, 0.04345703125, -0.020843505859375, -0.01412200927734375, -0.021331787109375, 0.0085296630859375, 0.009613037109375, -0.008392333984375, 0.029388427734375, -0.017608642578125, -0.080322265625, 0.00702667236328125, 0.0033359527587890625, -0.00600433349609375, 0.0167236328125, 0.062744140625, -0.037841796875, -0.0396728515625, 0.0423583984375, -0.0108489990234375, -0.053436279296875, 0.09344482421875, -0.0234832763671875, -0.03875732421875, 0.07611083984375, 0.00510406494140625, -0.0148773193359375, -0.0036678314208984375, -0.005809783935546875, 0.01611328125, -0.01525115966796875, -0.0078277587890625, -0.03656005859375, 0.04443359375, -0.01450347900390625, -0.0445556640625, -0.063720703125, 0.034027099609375, -0.00936126708984375, 0.01528167724609375, -0.0007224082946777344, -0.0552978515625, 0.0285186767578125, -0.047760009765625, 0.00482177734375, 0.0164337158203125, -0.0650634765625, -0.0059051513671875, 0.03350830078125, -0.0675048828125, -0.0374755859375, 0.0293121337890625, -0.0188751220703125, 0.01824951171875, -0.0078582763671875, 0.0186767578125, 0.008544921875, -0.0272369384765625, -0.0089569091796875, -0.0007243156433105469, 0.01299285888671875, -0.00791168212890625, -0.0280609130859375, -0.00885009765625, 0.0005059242248535156, -0.0238037109375, -0.00789642333984375, 0.04595947265625, -0.0024738311767578125, -0.06378173828125, 0.004497528076171875, 0.034027099609375, 0.034881591796875, 0.0219879150390625, -0.0169830322265625, 0.01016998291015625, -0.043365478515625, -0.037628173828125, -0.01541900634765625, -0.0201416015625, 0.0034732818603515625, 0.0267181396484375, 0.000911712646484375, -0.0134429931640625, 0.0166168212890625, -0.0192413330078125, -0.0138702392578125, -0.029022216796875, -0.03619384765625, 0.0184478759765625, 0.0264434814453125, -0.0310516357421875, 0.00363922119140625, -0.007259368896484375, -0.0079803466796875, -0.01446533203125, 0.0025844573974609375, 0.002521514892578125, -0.0009026527404785156, -0.0090179443359375, -0.0188140869140625, -0.017608642578125, 0.0035610198974609375, -0.001056671142578125, -0.00525665283203125, -0.01212310791015625, 0.0278472900390625, 0.0182952880859375, -0.0071868896484375, -0.025177001953125, -0.011260986328125, 0.051971435546875, -0.034912109375, -0.014373779296875, 0.00640869140625, 0.019134521484375, -0.00791168212890625, -0.02703857421875, -0.015594482421875, -0.036407470703125, -0.0007562637329101562, 0.000980377197265625, 0.0237579345703125, -0.005985260009765625, -0.0736083984375, 0.0232086181640625, -0.03607177734375, -0.0243072509765625, 0.019622802734375, 0.060333251953125, 0.00690460205078125, 0.0218963623046875, -0.005458831787109375, 0.05596923828125, 0.021575927734375, 0.04876708984375, -0.006439208984375, -0.016204833984375, 0.0096588134765625, -0.036041259765625, -0.00959014892578125, -0.01605224609375, -0.007450103759765625, 0.0187835693359375, 0.0194244384765625, 0.032623291015625, 0.01302337646484375, 0.01480865478515625, 0.029205322265625, 0.012451171875, 0.008392333984375, -0.036956787109375, 0.02984619140625, 0.03790283203125, 0.0343017578125, 0.024322509765625, -0.01132965087890625, 0.07763671875, 0.01197052001953125, -0.0168304443359375, 0.0284423828125, 0.0182647705078125, 0.025848388671875, -0.0289154052734375, 0.01197052001953125, 0.034942626953125, 0.080810546875, -0.0193939208984375, 0.0208282470703125, -0.01385498046875, -0.0272064208984375, 0.007068634033203125, 0.0113067626953125, -0.02117919921875, -0.020538330078125, 0.021484375, -0.0037822723388671875, -0.0298919677734375, -0.002223968505859375, -0.030059814453125, -0.029296875, 0.00251007080078125, -0.0026416778564453125, 0.016876220703125, 0.06121826171875, -0.025360107421875, -0.002796173095703125, -0.00412750244140625, 0.00983428955078125, 0.0211639404296875, 0.0034694671630859375, -0.005107879638671875, 0.06817626953125, 0.022308349609375, 0.038818359375, 0.02734375, -0.034698486328125, 0.02813720703125, 0.002559661865234375, 0.03863525390625, -0.01678466796875, -0.016632080078125, -0.0182647705078125, 0.03839111328125, -0.0268402099609375, 0.01381683349609375, 0.057830810546875, 0.0186614990234375, 0.01702880859375, -0.032073974609375, -0.01081085205078125, -0.029632568359375, -0.040191650390625, 0.0029850006103515625, 0.048431396484375, 0.0237884521484375, 0.0159912109375, -0.000431060791015625, 0.0044097900390625, 0.019683837890625, -0.041900634765625, 0.0194854736328125, -0.0207977294921875, 0.02117919921875, 0.04443359375, -0.011932373046875, -0.0233612060546875, 0.008453369140625, -0.07489013671875, 0.005611419677734375, 0.0299224853515625, -0.035003662109375, -0.02764892578125, -0.00420379638671875, 0.0038661956787109375, 0.003681182861328125, -0.064208984375, 0.001934051513671875, -0.0281982421875, -0.0106964111328125, 0.00670623779296875, -0.0080718994140625, -0.0010519027709960938, -0.035614013671875, -0.011688232421875, 0.0254364013671875, 0.0208892822265625, -0.00028443336486816406, 0.06756591796875, 0.072998046875, -0.06329345703125, -0.02642822265625, -0.0316162109375, 0.0011272430419921875, 0.0270843505859375, 0.0228729248046875, 0.036102294921875, -0.0245361328125, -0.00380706787109375, 0.02215576171875, 0.0017910003662109375, -0.01194000244140625, 0.05084228515625, 0.057769775390625, 0.0244293212890625, 0.04180908203125, 0.0157623291015625, -0.028472900390625, 0.08447265625, -0.052703857421875, -0.034637451171875, -0.007236480712890625, -0.044952392578125, 0.0433349609375, -0.04718017578125, 0.028411865234375, 0.06280517578125, 0.0018815994262695312, 0.0053253173828125, 0.01383209228515625, -0.042694091796875, -0.0221710205078125, 0.037811279296875, 0.0123291015625, -0.046875, -0.0281219482421875, 0.0236663818359375, 0.030548095703125, 0.054779052734375, -0.00614166259765625, -0.048492431640625, -0.00408935546875, 0.0240936279296875, -0.0794677734375, -0.0960693359375, -0.00431060791015625, -0.079833984375, 0.04693603515625, -0.027923583984375, -0.0159912109375, -0.036163330078125, 0.0242462158203125, 0.021453857421875, 0.01186370849609375, 0.0013589859008789062, -0.019683837890625, -0.01422882080078125, -0.03961181640625, -0.02008056640625, -0.0084686279296875, 0.00066375732421875, 0.01092529296875, -0.003505706787109375, -0.01209259033203125, -0.0211944580078125, 0.002532958984375, 0.016204833984375, 0.00402069091796875, -0.0240325927734375, -0.0280914306640625, -0.0173492431640625, -0.0251312255859375, -0.001186370849609375, 0.0302581787109375, -0.0177154541015625, 0.01523590087890625, 0.004741668701171875, 0.022705078125, -0.0419921875, -0.01175689697265625, -0.01251220703125, -0.0215606689453125, -0.04132080078125, -0.0224456787109375, -0.06695556640625, 0.0399169921875, -0.01953125, -0.0311126708984375, -0.040435791015625, 0.04766845703125, -0.04010009765625, -0.037384033203125, -0.030853271484375, 0.010162353515625, -0.00044155120849609375, -0.0198211669921875, -0.016082763671875, 0.0216064453125, -0.009124755859375, 0.01068115234375, 0.004425048828125, 0.0494384765625, -0.0024089813232421875, -0.003326416015625, 0.01519775390625, 0.0071563720703125, 0.00093841552734375, 0.001895904541015625, -0.021270751953125, -0.0187225341796875, 0.036285400390625, 0.0019779205322265625, 0.0101165771484375, -0.0014638900756835938, -0.011444091796875, -0.004047393798828125, 0.05426025390625, 0.00260162353515625, -0.006328582763671875, 0.01422119140625, 0.01641845703125, -0.07806396484375, -0.0237884521484375, -0.0662841796875, -0.01039886474609375, -0.054931640625, -0.00707244873046875, -0.011383056640625, -0.0254364013671875, -0.0086669921875, -0.0225372314453125, -0.038665771484375, -0.02154541015625, 0.01525115966796875, -0.052032470703125, 0.0241241455078125, -0.004894256591796875, 0.0312042236328125, -0.056610107421875, 0.0256805419921875, -0.052459716796875, -0.038848876953125, -0.0305633544921875, 0.00766754150390625, 0.07061767578125, 0.04949951171875, -0.06622314453125, 0.0015192031860351562, 0.04913330078125, -0.00315093994140625, -0.00984954833984375, -0.031097412109375, -0.0222930908203125, 0.00229644775390625, 0.00499725341796875, -0.04022216796875, 0.006389617919921875, 0.0160064697265625, 0.028167724609375, -0.029266357421875, -0.018035888671875, -0.038421630859375, -0.057037353515625, 0.026214599609375, -0.07171630859375, -0.04754638671875, -0.02337646484375, -0.0225830078125, -0.02313232421875, -0.018463134765625, -0.005950927734375, -0.00856781005859375, -0.0261383056640625, 0.045379638671875, -0.0034465789794921875, -0.01776123046875, 0.006290435791015625, 0.04547119140625, 0.00894927978515625, -0.0231475830078125, -0.0104217529296875, 0.039398193359375, 0.007244110107421875, -0.0007762908935546875, 0.0635986328125, -0.00714874267578125, -0.0269012451171875, 0.10687255859375, -0.0232696533203125, 0.0249786376953125, 0.002223968505859375, 0.0150604248046875, -0.01036834716796875, -0.047882080078125, 0.03692626953125, 0.007236480712890625, -0.050933837890625, 0.0355224609375, -0.00510406494140625, 0.0261077880859375, 0.0023746490478515625, -0.0323486328125, -0.02294921875, -0.01073455810546875, 0.019378662109375, -0.05010986328125, 0.04541015625, -0.007022857666015625, -0.038177490234375, -0.002025604248046875, 0.00977325439453125, -0.00909423828125, -0.03912353515625, 0.004375457763671875, -0.0196990966796875, -0.0162200927734375, -0.0177459716796875, 0.027252197265625, -0.004253387451171875, 0.0165557861328125, -0.01422882080078125, -0.0094451904296875, 0.0811767578125, -0.0020294189453125, -0.0611572265625, 0.01241302490234375, -0.029449462890625, -0.0173492431640625, 0.0242767333984375, 0.0169525146484375, 0.04705810546875, -0.007404327392578125, -0.00811004638671875, 0.007762908935546875, 0.0017642974853515625, -0.0283050537109375, -0.0411376953125, 0.0257568359375, 0.0112762451171875, 0.00576019287109375, -0.0219573974609375, 0.125, -0.01468658447265625, 0.059356689453125, -0.0159454345703125, 0.0246734619140625, 0.01800537109375, -0.0061187744140625, 0.00652313232421875, 0.041595458984375, 0.0014438629150390625, -0.025238037109375, 0.0106353759765625, -0.01390838623046875, -0.01039886474609375, 0.039337158203125, -0.0001099705696105957, 0.016265869140625, 0.0072021484375, -0.0013151168823242188, 0.0174407958984375, -0.01168060302734375, 0.03363037109375, -0.04473876953125, -0.068359375, -0.0254669189453125, 0.0083770751953125, 0.0254669189453125, -0.03656005859375, 0.00241851806640625, 0.02215576171875, -0.0170440673828125, 0.00334930419921875, 0.01451873779296875, -0.02264404296875, -0.0229339599609375, -0.023406982421875, -0.0028076171875, -0.035980224609375, -0.0091094970703125, -0.012969970703125, 0.0203399658203125, -0.0239715576171875, -0.0065155029296875, 0.03521728515625, -0.0097503662109375, 0.022064208984375, -0.043975830078125, 0.01593017578125, -0.032073974609375, -0.00791168212890625, 0.057891845703125, 0.034881591796875, -0.06915283203125, -0.0004863739013671875, -0.05511474609375, 0.01062774658203125, -0.023468017578125, -0.01163482666015625, -0.02764892578125, 0.0016832351684570312, 0.0199737548828125, 0.0239715576171875, -0.0020122528076171875, -0.001712799072265625, -0.0202178955078125, 0.0189971923828125, 0.0261383056640625, 0.0897216796875, -0.0021209716796875, 0.09552001953125, -0.02667236328125, 0.08868408203125, 0.001857757568359375, 0.0245208740234375, -0.05474853515625, -0.0140228271484375, 0.00846099853515625, -0.0022525787353515625, -0.0179290771484375, -0.033203125, 0.039459228515625, 0.0240020751953125, 0.070068359375, -0.00043845176696777344, -0.0220489501953125, 0.004062652587890625, 0.02587890625, -0.0172271728515625, 0.05572509765625, 0.025146484375, -0.05377197265625, 0.0535888671875, -0.0313720703125, 0.025238037109375, -0.006988525390625, -0.03277587890625, 0.0298004150390625, -0.012359619140625, 0.0201873779296875, 0.036346435546875, -0.062469482421875, 0.03472900390625, 0.07421875, 0.003307342529296875, 0.04595947265625, -0.008453369140625, 0.00800323486328125, 0.06378173828125, -0.00250244140625, -0.010986328125, 0.0002810955047607422, -0.00921630859375, -0.01409149169921875, 0.0150604248046875, 0.006893157958984375, -0.00038909912109375, 0.019378662109375, 0.045257568359375, 0.0557861328125, -0.08367919921875, 0.003269195556640625, -0.026580810546875, -0.026824951171875, 0.047698974609375, -0.006557464599609375, -0.01050567626953125, -0.042236328125, 0.041290283203125, 0.0057525634765625, -0.01558685302734375, 0.00392913818359375, 0.018585205078125, -0.00527191162109375, -0.0195465087890625, 0.051422119140625, 0.0014715194702148438, -0.01812744140625, 0.0164337158203125, -0.0006985664367675781, 0.01953125, -0.0021953582763671875, -0.0029048919677734375, 0.0083160400390625, -0.03253173828125, -0.047454833984375, 0.01509857177734375, -0.02752685546875, -0.00579071044921875, 0.0149993896484375, -0.001247406005859375, 0.050048828125, 0.045440673828125, 0.0027256011962890625, -0.013336181640625, 0.0131988525390625, 0.002559661865234375, 0.01331329345703125, -0.0148468017578125, 0.00653076171875, 0.02215576171875, -0.07147216796875, 0.00948333740234375, -0.037872314453125, 0.019500732421875, -0.0128021240234375, 0.004150390625, 0.054046630859375, -0.0194091796875, -0.0283966064453125, 0.0419921875, 0.00334930419921875, -0.025970458984375, 0.0171356201171875, 0.00600433349609375, -0.025970458984375, 0.0230560302734375, 0.01152801513671875, 0.00514984130859375, 0.007297515869140625, 0.03533935546875, -0.0694580078125, 0.075927734375, 0.0428466796875, 0.02374267578125, -0.00852203369140625, 0.0192718505859375, -0.031280517578125, -0.001926422119140625, -0.038177490234375, 0.03936767578125, 0.03564453125, -0.0211334228515625, -0.005260467529296875, 0.0205078125, -0.01287841796875, -0.0236358642578125, 0.07183837890625, 0.0294647216796875, -0.061309814453125, -0.0086669921875, -0.00836944580078125, -0.006237030029296875, -0.0288238525390625, 0.0682373046875, 0.020416259765625, 0.02001953125, 0.0274505615234375, -0.013458251953125, 0.042999267578125, -0.05120849609375, -0.00930023193359375, 0.033233642578125, -0.021453857421875, -0.04052734375, -0.0178985595703125, 0.0204925537109375, -0.091796875, 0.01041412353515625, 0.042083740234375, -0.01322174072265625, 0.0218963623046875, -0.0188751220703125, 0.0133209228515625, -0.0050506591796875, 0.046417236328125, -0.0291748046875, 0.035003662109375, 0.0083160400390625, 0.005466461181640625, -0.01305389404296875, 0.01123809814453125, 0.01102447509765625, -0.00986480712890625, -0.0034198760986328125, 0.041656494140625, -0.045623779296875, 0.017120361328125, 0.0308990478515625, 0.0239105224609375, -0.01495361328125, -0.0211639404296875, 0.015899658203125, 0.032318115234375, -0.0156402587890625, -0.03594970703125, -0.007537841796875, 0.0269775390625, 0.061767578125, 0.0234527587890625, 0.0911865234375, -0.01154327392578125, 0.0325927734375, -0.0218048095703125, 0.00640106201171875, 0.0065460205078125, 0.0137176513671875, 0.0098876953125, 0.030120849609375, -0.027801513671875, 0.00860595703125, -0.009490966796875, 0.0017375946044921875, 0.00928497314453125, -0.038116455078125, -0.01152801513671875, 0.00820159912109375, 0.049468994140625, 0.035125732421875, -0.000823974609375, 0.0204620361328125, -0.023590087890625, 0.00667572021484375, -0.043487548828125, -0.05517578125, -0.01898193359375, 0.04425048828125, -0.0162353515625, -0.0377197265625, -0.01824951171875, 0.03265380859375, 0.0205841064453125, -0.0303955078125, 0.0032749176025390625, -0.004730224609375, -0.01053619384765625, -0.0285186767578125, -0.0270843505859375, -0.0035266876220703125, -0.0178375244140625, 0.0205078125, -0.0098114013671875, 0.0121002197265625, -0.0100250244140625, 0.0635986328125, -0.006122589111328125, -0.01300048828125, -0.01084136962890625, -0.045379638671875, 0.08770751953125, 0.0030918121337890625, -0.07501220703125, 0.0046844482421875, -0.055328369140625, -0.08026123046875, 0.0176544189453125, 0.03814697265625, -0.025390625, 0.033782958984375, -0.03173828125, 0.0146026611328125, 0.035400390625, -0.03424072265625, -0.01078033447265625, 0.03277587890625, 0.033233642578125, -0.0006413459777832031, -0.033843994140625, -0.0156707763671875, -0.01116943359375, 0.0166778564453125, 0.004520416259765625, -0.00582122802734375, 0.0197906494140625, 0.03533935546875, -0.003726959228515625, -0.027374267578125, 0.01311492919921875, -0.00023365020751953125, 0.0276947021484375, -0.0184326171875, -0.037078857421875, -0.0012063980102539062, -0.04034423828125, 0.04296875, -0.0023365020751953125, 0.01346588134765625, -0.0058441162109375, 0.0255126953125, 0.0190582275390625, 0.03717041015625, 0.0297088623046875, -0.032470703125, -0.0843505859375, -0.091796875, 0.04425048828125, 0.004360198974609375, 0.03411865234375, -0.04779052734375, 0.044189453125, -0.042938232421875, -0.031768798828125, -0.0201263427734375, -0.058502197265625, -0.04095458984375, 0.023956298828125, -0.02679443359375, 0.04791259765625, 0.035125732421875, -0.005863189697265625, 0.045257568359375, 0.0309906005859375, -0.0220794677734375, 0.056793212890625, 0.044403076171875, -0.0299224853515625, -0.0226593017578125, 0.0041656494140625, -0.004077911376953125, -0.01065826416015625, -0.036468505859375, -0.01183319091796875, -0.039703369140625, -0.044097900390625, -0.02838134765625, -0.047637939453125, 0.018707275390625, 0.015716552734375, -0.0030193328857421875, -0.0129852294921875, -0.016754150390625, 0.033111572265625, 0.0251617431640625, -0.01155853271484375, -0.042877197265625, 0.0308685302734375, -0.04888916015625, 0.08160400390625, -0.0148773193359375, 0.030181884765625, 0.020782470703125, 0.026519775390625, -0.07244873046875, 0.0111541748046875, -0.0176849365234375, -0.0203094482421875, -0.019439697265625, 0.00567626953125, 0.047088623046875, -0.0037250518798828125, -0.0307464599609375, -0.0029144287109375, -0.03857421875, 0.05792236328125, -0.0623779296875, -0.004550933837890625, -0.006855010986328125, 0.016265869140625, -0.032928466796875, -0.0232696533203125, 0.0208282470703125, -0.030303955078125, -0.03955078125, -0.0193023681640625, 0.00009238719940185547, -0.003078460693359375, -0.035491943359375, -0.029937744140625, -0.0003414154052734375, 0.01403045654296875, -0.0208282470703125, -0.0689697265625, 0.0199737548828125, 0.03277587890625, -0.013824462890625, -0.0205841064453125, 0.01438140869140625, -0.052978515625, -0.01117706298828125, 0.009979248046875, -0.0260162353515625, 0.0192718505859375, -0.00911712646484375, -0.048492431640625, 0.0291595458984375, 0.033599853515625, -0.0203399658203125, -0.01009368896484375, -0.005619049072265625, 0.0189666748046875, 0.033966064453125, -0.00925445556640625, -0.020233154296875, 0.02545166015625, 0.001598358154296875, -0.0168304443359375, -0.017364501953125, 0.03717041015625, 0.014404296875, -0.010986328125, 0.025054931640625, -0.025390625, -0.037841796875, -0.05828857421875, -0.0187530517578125, -0.0266571044921875, -0.0289154052734375, 0.043121337890625, -0.08721923828125, -0.0093231201171875, -0.00323486328125, 0.0030918121337890625, 0.012481689453125, 0.009918212890625, 0.0043487548828125, -0.0160675048828125, 0.0271759033203125, -0.033721923828125, 0.005794525146484375, -0.0303497314453125, 0.034637451171875, -0.031982421875, -0.0158843994140625, 0.0008382797241210938, 0.02752685546875, -0.005336761474609375, -0.033935546875, 0.05328369140625, 0.0252685546875, -0.01535797119140625, -0.008819580078125, 0.045318603515625, 0.020263671875, 0.0028228759765625, -0.042083740234375, 0.0024356842041015625, 0.03814697265625, -0.000362396240234375, 0.038055419921875, -0.002902984619140625, 0.046875, 0.001415252685546875, 0.021240234375, -0.004512786865234375, -0.031280517578125, -0.03338623046875, 0.03143310546875, -0.0050811767578125, -0.024993896484375, 0.023590087890625, -0.022735595703125, 0.0191650390625, 0.0299072265625, 0.06427001953125, -0.00925445556640625, 0.0265960693359375, -0.01218414306640625, 0.0290985107421875, 0.00783538818359375 ]
0c5219a7d66b5db0aa106c52b28f1148ba086964
Wordpress Stackexchange Q: Plugin options will not save in database I'm not sure what's happening here, since this has worked in another plugin I've created. I'm simply trying to store data in the options table. Here is the code I'm using: function on_myplugin_start () { register_setting('first_tab_options', 'first_tab_items'); } add_action('admin_init','on_myplugin_start'); Here is the form that gets submitted: <form action="options.php" method="post" > <?php settings_fields( 'first_tab_options' ); ?> <input type="text" name="some_name" value=""> <input type="submit" value="Save Settings" name="submit" class="button-primary"> </form> That's it..when I look at the source code, everything looks fine...there is all the hidden fields put in by the settings API..but when I put in a value and hit submit (and it says successfully saved, nothing is in the database field that was successfully created (first_tab_items). I would appreciate any help on this....thanks A: ...because your input (POST) name needs to match the one in your register_setting call: register_setting( 'first_tab_options', 'first_tab_items' ); .... <input type="text" name="first_tab_items"... Otherwise how the hell does WP know that some_name in POST holds your option data? ;)
Q: Plugin options will not save in database I'm not sure what's happening here, since this has worked in another plugin I've created. I'm simply trying to store data in the options table. Here is the code I'm using: function on_myplugin_start () { register_setting('first_tab_options', 'first_tab_items'); } add_action('admin_init','on_myplugin_start'); Here is the form that gets submitted: <form action="options.php" method="post" > <?php settings_fields( 'first_tab_options' ); ?> <input type="text" name="some_name" value=""> <input type="submit" value="Save Settings" name="submit" class="button-primary"> </form> That's it..when I look at the source code, everything looks fine...there is all the hidden fields put in by the settings API..but when I put in a value and hit submit (and it says successfully saved, nothing is in the database field that was successfully created (first_tab_items). I would appreciate any help on this....thanks A: ...because your input (POST) name needs to match the one in your register_setting call: register_setting( 'first_tab_options', 'first_tab_items' ); .... <input type="text" name="first_tab_items"... Otherwise how the hell does WP know that some_name in POST holds your option data? ;) A: Adding to TheDeadMedic's answer: if you want to register just one setting for an entire form like you implied, you can use an array: <form action="options.php" method="post" > <?php settings_fields( 'first_tab_options' ); ?> <input type="text" name="first_tab_items[some_name]" value=""> <input type="text" name="first_tab_items[some_name2]" value=""> <input type="submit" value="Save Settings" name="submit" class="button-primary"> </form> And register: register_setting('first_tab_options', 'first_tab_items');
wordpress
{ "language": "en", "length": 220, "provenance": "stackexchange_00019.jsonl.gz:422835", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61571" }
[ -0.00887298583984375, -0.00704193115234375, 0.014739990234375, 0.03912353515625, -0.02203369140625, -0.012969970703125, 0.015869140625, -0.05694580078125, 0.03448486328125, 0.0172271728515625, -0.030731201171875, -0.002490997314453125, -0.0229034423828125, -0.0252685546875, -0.0260772705078125, -0.025177001953125, 0.024932861328125, 0.0026111602783203125, 0.0061492919921875, -0.01898193359375, 0.00397491455078125, 0.0074462890625, -0.0074462890625, 0.08447265625, 0.07342529296875, -0.07537841796875, -0.00501251220703125, -0.0014934539794921875, 0.0633544921875, 0.01568603515625, 0.037139892578125, -0.038360595703125, 0.013214111328125, 0.010284423828125, 0.01812744140625, -0.0213165283203125, 0.0645751953125, -0.01580810546875, 0.0201873779296875, 0.030303955078125, 0.060394287109375, -0.02978515625, 0.0212860107421875, 0.0264739990234375, -0.0011501312255859375, -0.076416015625, 0.1026611328125, -0.016326904296875, -0.004730224609375, -0.015167236328125, 0.007293701171875, -0.00836181640625, 0.020751953125, -0.04010009765625, -0.01335906982421875, -0.01277923583984375, -0.035797119140625, 0.01280975341796875, 0.0091705322265625, 0.062347412109375, 0.01085662841796875, 0.0164947509765625, -0.0141448974609375, -0.0347900390625, 0.01328277587890625, -0.0178985595703125, 0.0283660888671875, 0.01189422607421875, -0.014495849609375, 0.01404571533203125, 0.04345703125, -0.019134521484375, 0.0254058837890625, -0.0027332305908203125, -0.026031494140625, -0.02740478515625, 0.0433349609375, 0.002780914306640625, 0.002849578857421875, -0.0160064697265625, 0.0205841064453125, -0.03717041015625, 0.03546142578125, -0.0066986083984375, -0.0030422210693359375, -0.0018186569213867188, -0.00641632080078125, -0.004459381103515625, -0.00675201416015625, -0.01166534423828125, -0.00836181640625, 0.002292633056640625, 0.01145172119140625, -0.0073394775390625, -0.02001953125, -0.0260772705078125, 0.05975341796875, 0.0628662109375, 0.0132293701171875, -0.01042938232421875, 0.02166748046875, -0.06024169921875, 0.0115966796875, -0.02008056640625, 0.0300140380859375, 0.07318115234375, 0.00576019287109375, -0.05035400390625, 0.02252197265625, -0.02618408203125, 0.00040435791015625, 0.054229736328125, 0.0114288330078125, -0.033172607421875, 0.023406982421875, -0.0404052734375, -0.05255126953125, 0.041961669921875, 0.0229034423828125, -0.0391845703125, 0.01523590087890625, 0.033172607421875, -0.04742431640625, -0.04083251953125, -0.01363372802734375, -0.048614501953125, -0.0179290771484375, 0.00626373291015625, -0.046966552734375, 0.02459716796875, -0.014373779296875, 0.00943756103515625, 0.063720703125, 0.0236968994140625, 0.00824737548828125, -0.00917816162109375, 0.0455322265625, -0.015167236328125, -0.01348876953125, 0.0153656005859375, 0.0070343017578125, -0.0088043212890625, -0.0023174285888671875, -0.02142333984375, -0.022613525390625, 0.035614013671875, 0.01392364501953125, 0.0014171600341796875, -0.0257415771484375, -0.0438232421875, -0.0041961669921875, -0.043975830078125, 0.038482666015625, 0.019317626953125, -0.0242919921875, 0.02947998046875, -0.0097808837890625, 0.01309967041015625, -0.03778076171875, 0.01078033447265625, -0.0160064697265625, -0.03338623046875, 0.0020694732666015625, -0.05859375, -0.0537109375, 0.03662109375, -0.04986572265625, -0.00916290283203125, 0.0207366943359375, 0.009368896484375, 0.006103515625, 0.043212890625, 0.03271484375, -0.001346588134765625, -0.003406524658203125, -0.014862060546875, -0.01065826416015625, -0.01898193359375, 0.036224365234375, -0.01678466796875, -0.046905517578125, -0.0236663818359375, 0.02691650390625, -0.019561767578125, -0.056732177734375, 0.052825927734375, 0.01000213623046875, 0.05859375, 0.00940704345703125, 0.0026035308837890625, 0.0269775390625, 0.0221405029296875, -0.0113067626953125, 0.0015630722045898438, -0.0017042160034179688, 0.00102996826171875, 0.01538848876953125, 0.042449951171875, -0.011444091796875, -0.038177490234375, 0.01317596435546875, -0.015625, 0.006641387939453125, -0.007778167724609375, -0.0232696533203125, -0.0264739990234375, -0.0008101463317871094, 0.01090240478515625, -0.0164337158203125, 0.00823974609375, 0.036407470703125, 0.033355712890625, -0.04193115234375, -0.0293426513671875, -0.03851318359375, 0.01165008544921875, -0.01605224609375, 0.07501220703125, 0.0028514862060546875, 0.055938720703125, 0.007213592529296875, -0.039794921875, 0.0200042724609375, -0.01142120361328125, 0.00286102294921875, 0.01361083984375, -0.0244903564453125, -0.00936126708984375, 0.01226043701171875, -0.01165771484375, 0.026885986328125, 0.037445068359375, -0.01129913330078125, -0.0177459716796875, -0.03729248046875, -0.005474090576171875, -0.0229339599609375, -0.044647216796875, 0.007843017578125, 0.04608154296875, 0.015533447265625, 0.02825927734375, -0.01080322265625, 0.0084686279296875, -0.00251007080078125, -0.04229736328125, 0.01422882080078125, -0.00440216064453125, 0.028961181640625, 0.034454345703125, -0.0028667449951171875, -0.01181793212890625, 0.01509857177734375, -0.035980224609375, 0.032745361328125, 0.021331787109375, -0.06927490234375, -0.042236328125, 0.03759765625, -0.0260467529296875, 0.00710296630859375, -0.0355224609375, 0.024658203125, -0.036376953125, 0.07965087890625, -0.0208740234375, 0.026641845703125, -0.004425048828125, -0.05517578125, 0.0452880859375, 0.0250701904296875, -0.052337646484375, -0.00875091552734375, -0.0139617919921875, 0.06201171875, -0.0275726318359375, -0.052276611328125, 0.004077911376953125, 0.0250244140625, -0.01061248779296875, 0.005352020263671875, 0.0161895751953125, -0.008636474609375, -0.00867462158203125, 0.017547607421875, -0.049774169921875, 0.00887298583984375, 0.0286865234375, 0.00179290771484375, -0.03802490234375, 0.01430511474609375, -0.0042724609375, -0.03778076171875, 0.037322998046875, 0.00785064697265625, -0.0594482421875, 0.0016336441040039062, -0.0008215904235839844, 0.004001617431640625, -0.01171112060546875, 0.046234130859375, 0.050750732421875, 0.00380706787109375, -0.002536773681640625, 0.004009246826171875, -0.0202178955078125, -0.002101898193359375, 0.0011091232299804688, -0.0228118896484375, -0.01522064208984375, -0.060150146484375, 0.02178955078125, 0.03192138671875, 0.07525634765625, -0.0004627704620361328, -0.053192138671875, -0.00279998779296875, 0.04656982421875, -0.053955078125, -0.04034423828125, -0.050384521484375, -0.0244140625, -0.00426483154296875, -0.026214599609375, -0.00826263427734375, 0.0187225341796875, -0.0190887451171875, 0.01287078857421875, -0.001438140869140625, -0.022491455078125, -0.0164642333984375, -0.0302276611328125, -0.050079345703125, 0.0006327629089355469, 0.013214111328125, 0.017578125, 0.016265869140625, 0.0343017578125, 0.01213836669921875, -0.03594970703125, 0.031707763671875, -0.08319091796875, -0.0071563720703125, 0.04498291015625, 0.035064697265625, -0.06378173828125, -0.0008068084716796875, -0.0030117034912109375, 0.00661468505859375, 0.0286407470703125, -0.0089263916015625, -0.00518798828125, 0.004367828369140625, -0.0250701904296875, 0.035400390625, 0.0175628662109375, -0.0281982421875, 0.0183258056640625, 0.0516357421875, -0.032379150390625, -0.0012416839599609375, -0.0190887451171875, -0.03289794921875, -0.0150299072265625, -0.0052490234375, 0.014984130859375, -0.007434844970703125, 0.0181427001953125, -0.006622314453125, -0.007099151611328125, 0.034820556640625, -0.033782958984375, 0.01044464111328125, -0.0213775634765625, -0.0233917236328125, -0.00858306884765625, 0.03582763671875, 0.002216339111328125, -0.06298828125, -0.00787353515625, 0.0018911361694335938, 0.001605987548828125, -0.03155517578125, -0.034210205078125, -0.07147216796875, 0.0404052734375, -0.05145263671875, -0.01168060302734375, -0.04736328125, -0.014434814453125, -0.002368927001953125, 0.07916259765625, -0.0672607421875, -0.0263671875, 0.0004987716674804688, 0.042938232421875, -0.027801513671875, -0.0833740234375, 0.0079498291015625, -0.01861572265625, -0.04229736328125, -0.03424072265625, -0.01514434814453125, -0.04388427734375, 0.0055389404296875, -0.008514404296875, -0.0273284912109375, -0.022003173828125, 0.040863037109375, -0.032501220703125, 0.032867431640625, 0.003551483154296875, 0.0244903564453125, -0.039154052734375, -0.00992584228515625, -0.01372528076171875, -0.10919189453125, -0.0178070068359375, -0.0004112720489501953, 0.05120849609375, -0.0017032623291015625, -0.004749298095703125, -0.0230712890625, 0.05810546875, 0.018524169921875, 0.0011835098266601562, 0.021026611328125, 0.00765228271484375, -0.0061492919921875, -0.027252197265625, -0.0110931396484375, -0.046356201171875, 0.0102691650390625, -0.00988006591796875, -0.041534423828125, -0.00374603271484375, -0.03338623046875, -0.0232391357421875, -0.005962371826171875, -0.0304107666015625, -0.0305938720703125, 0.00013911724090576172, -0.039703369140625, -0.01508331298828125, -0.045684814453125, -0.01580810546875, 0.0106964111328125, -0.041290283203125, 0.037078857421875, -0.0712890625, -0.00506591796875, 0.0194854736328125, 0.09912109375, 0.0123443603515625, 0.0165252685546875, -0.03704833984375, -0.0244598388671875, 0.035858154296875, 0.032623291015625, -0.0147552490234375, -0.01329803466796875, -0.039398193359375, 0.034759521484375, 0.0165557861328125, 0.00591278076171875, -0.0533447265625, 0.064697265625, -0.001361846923828125, -0.01502227783203125, 0.0007653236389160156, -0.0216217041015625, 0.020263671875, -0.0159912109375, -0.0087890625, 0.0013265609741210938, 0.0098876953125, -0.005523681640625, -0.031341552734375, 0.057159423828125, 0.01158905029296875, -0.045440673828125, 0.0009021759033203125, 0.0103912353515625, 0.0404052734375, 0.0587158203125, -0.0208892822265625, 0.0438232421875, -0.0015211105346679688, -0.0291595458984375, -0.01183319091796875, 0.03387451171875, 0.01403045654296875, 0.006626129150390625, 0.005931854248046875, -0.02081298828125, -0.049346923828125, -0.0150604248046875, 0.05364990234375, -0.0277252197265625, -0.06634521484375, -0.00815582275390625, -0.0343017578125, 0.038360595703125, 0.029388427734375, -0.00896453857421875, -0.0235443115234375, 0.037811279296875, 0.00092315673828125, 0.0172882080078125, 0.07855224609375, -0.002239227294921875, 0.0168304443359375, 0.04351806640625, 0.01323699951171875, -0.002239227294921875, -0.0068511962890625, 0.045684814453125, -0.01338958740234375, 0.0103607177734375, -0.0113372802734375, 0.0208892822265625, -0.004039764404296875, 0.01541900634765625, 0.040679931640625, -0.01416778564453125, 0.03460693359375, -0.052978515625, 0.0028247833251953125, -0.041717529296875, 0.04345703125, 0.0121612548828125, 0.0287933349609375, 0.0152587890625, -0.051025390625, 0.041839599609375, -0.0312042236328125, 0.004123687744140625, 0.0109100341796875, -0.045166015625, -0.06683349609375, -0.00630950927734375, 0.03912353515625, 0.03057861328125, -0.04052734375, 0.00788116455078125, 0.032318115234375, -0.0050201416015625, 0.004154205322265625, 0.01265716552734375, -0.034210205078125, -0.004974365234375, 0.0133819580078125, 0.0188140869140625, -0.0128173828125, -0.03271484375, 0.01258087158203125, -0.0220184326171875, -0.01250457763671875, -0.00263214111328125, 0.04449462890625, -0.03363037109375, 0.032684326171875, -0.0306549072265625, 0.00897216796875, -0.045623779296875, -0.002933502197265625, 0.06219482421875, 0.047882080078125, -0.0290374755859375, 0.0062713623046875, -0.01788330078125, -0.0032291412353515625, 0.0261993408203125, -0.005802154541015625, -0.020904541015625, -0.0556640625, -0.0056915283203125, 0.0169219970703125, -0.021087646484375, -0.03131103515625, 0.0083465576171875, 0.0003993511199951172, -0.0033245086669921875, 0.0020599365234375, -0.01419830322265625, 0.06884765625, -0.0089263916015625, 0.0262298583984375, -0.01259613037109375, 0.01201629638671875, -0.041839599609375, 0.0179901123046875, -0.00659942626953125, -0.02459716796875, -0.0231170654296875, -0.00946807861328125, -0.017425537109375, 0.037811279296875, 0.058502197265625, -0.0024967193603515625, 0.006565093994140625, 0.016876220703125, 0.010711669921875, 0.002590179443359375, -0.011962890625, 0.033294677734375, -0.035888671875, 0.07440185546875, -0.04071044921875, -0.019866943359375, 0.000774383544921875, 0.027313232421875, 0.0025691986083984375, -0.0284423828125, -0.004360198974609375, 0.018310546875, -0.035675048828125, 0.0287017822265625, 0.0305633544921875, 0.01873779296875, 0.037017822265625, -0.013458251953125, 0.02783203125, 0.0249176025390625, 0.033660888671875, -0.046661376953125, -0.01424407958984375, 0.050537109375, 0.026458740234375, 0.004520416259765625, 0.054290771484375, -0.0119781494140625, 0.02642822265625, 0.07366943359375, 0.0745849609375, -0.111572265625, 0.020721435546875, 0.030609130859375, -0.006114959716796875, 0.030303955078125, 0.004123687744140625, -0.0180511474609375, -0.009857177734375, -0.0004761219024658203, -0.0042572021484375, -0.039520263671875, -0.01116943359375, 0.0155487060546875, -0.0172882080078125, -0.017669677734375, 0.0297393798828125, 0.007366180419921875, -0.032257080078125, 0.00644683837890625, 0.0162811279296875, -0.0224456787109375, 0.004230499267578125, 0.01763916015625, 0.0179901123046875, -0.039703369140625, -0.0748291015625, -0.0123748779296875, 0.0017185211181640625, -0.058380126953125, 0.0253143310546875, -0.0068359375, 0.043670654296875, 0.036468505859375, -0.0021800994873046875, 0.007106781005859375, -0.01435089111328125, 0.04254150390625, 0.0101318359375, 0.002063751220703125, 0.005290985107421875, 0.00760650634765625, -0.04913330078125, 0.007572174072265625, -0.03521728515625, 0.0217132568359375, -0.0242767333984375, -0.01053619384765625, 0.0838623046875, 0.0077362060546875, -0.0372314453125, 0.00791168212890625, 0.036468505859375, -0.004657745361328125, -0.01026153564453125, -0.044097900390625, -0.00949859619140625, 0.00757598876953125, -0.04608154296875, -0.0460205078125, 0.02435302734375, -0.04443359375, -0.05145263671875, 0.0821533203125, 0.01485443115234375, 0.0018529891967773438, -0.01340484619140625, 0.040985107421875, -0.0081787109375, 0.021881103515625, -0.06781005859375, 0.032135009765625, 0.000995635986328125, 0.047576904296875, -0.07293701171875, 0.0018949508666992188, -0.0187530517578125, 0.02166748046875, 0.058868408203125, 0.015411376953125, -0.037261962890625, 0.021514892578125, 0.065185546875, -0.013092041015625, -0.0207672119140625, 0.06817626953125, 0.03582763671875, -0.00984954833984375, 0.06732177734375, -0.007965087890625, 0.03350830078125, -0.01052093505859375, 0.054046630859375, 0.046661376953125, -0.0031986236572265625, -0.0030918121337890625, -0.054168701171875, -0.0058441162109375, 0.0111541748046875, -0.03802490234375, -0.00710296630859375, -0.043212890625, 0.01398468017578125, 0.006244659423828125, 0.01525115966796875, -0.001705169677734375, 0.00417327880859375, -0.01200103759765625, 0.034637451171875, 0.024932861328125, -0.0245513916015625, 0.023406982421875, 0.0189971923828125, 0.0145416259765625, -0.03826904296875, -0.03021240234375, -0.023101806640625, 0.0236968994140625, 0.01140594482421875, -0.0277252197265625, 0.0208740234375, -0.055511474609375, 0.0012559890747070312, 0.0160064697265625, 0.021392822265625, -0.0357666015625, -0.073974609375, 0.003772735595703125, 0.007289886474609375, 0.003795623779296875, 0.041351318359375, 0.0261688232421875, -0.0210113525390625, 0.0491943359375, -0.03924560546875, 0.0024204254150390625, 0.0155181884765625, 0.0217132568359375, -0.0009407997131347656, 0.0162811279296875, -0.04302978515625, -0.009002685546875, -0.033538818359375, 0.01421356201171875, 0.01458740234375, 0.040557861328125, 0.0022220611572265625, 0.060821533203125, -0.015106201171875, -0.0240325927734375, -0.054290771484375, 0.021881103515625, -0.0159912109375, 0.0677490234375, -0.067626953125, 0.015899658203125, 0.0137176513671875, 0.039093017578125, 0.0231475830078125, 0.037200927734375, 0.041107177734375, 0.0166778564453125, -0.012237548828125, 0.0193328857421875, 0.057220458984375, -0.022613525390625, -0.01043701171875, -0.0182037353515625, 0.00835418701171875, 0.0257415771484375, 0.0026798248291015625, -0.0169525146484375, 0.033538818359375, 0.028076171875, -0.0111236572265625, 0.053924560546875, -0.006439208984375, -0.0017576217651367188, 0.0149993896484375, 0.004848480224609375, 0.057464599609375, 0.021759033203125, -0.0469970703125, -0.005767822265625, -0.019287109375, -0.0396728515625, 0.00836944580078125, 0.0244293212890625, -0.017303466796875, 0.022796630859375, -0.01403045654296875, -0.04266357421875, 0.032257080078125, -0.00014841556549072266, 0.035186767578125, 0.0312042236328125, -0.030029296875, -0.01239013671875, -0.0128326416015625, -0.00592803955078125, 0.0201416015625, 0.030303955078125, -0.0243988037109375, 0.0226287841796875, -0.0034580230712890625, 0.01000213623046875, -0.01023101806640625, 0.0257720947265625, -0.02667236328125, -0.026519775390625, 0.05230712890625, -0.0036907196044921875, -0.01523590087890625, -0.00717926025390625, -0.049224853515625, 0.0313720703125, 0.02099609375, -0.0124053955078125, -0.002288818359375, 0.0226287841796875, 0.00907135009765625, -0.00439453125, 0.0465087890625, -0.00749969482421875, 0.00772857666015625, 0.0035247802734375, -0.01568603515625, 0.03277587890625, 0.00972747802734375, 0.007564544677734375, 0.06329345703125, 0.0325927734375, 0.048309326171875, -0.00274658203125, 0.0022430419921875, -0.00745391845703125, 0.018218994140625, -0.00982666015625, -0.056121826171875, -0.026153564453125, -0.019287109375, 0.0108795166015625, -0.0072479248046875, 0.06365966796875, -0.01165771484375, 0.0135650634765625, 0.02838134765625, 0.06256103515625, 0.0472412109375, -0.019989013671875, 0.0152435302734375, 0.04876708984375, -0.00913238525390625, 0.0013380050659179688, -0.0139007568359375, -0.033660888671875, -0.04254150390625, -0.0189056396484375, 0.004467010498046875, -0.0204315185546875, -0.078369140625, -0.061767578125, -0.005832672119140625, 0.0088653564453125, -0.0150909423828125, -0.037078857421875, -0.029754638671875, -0.0170135498046875, 0.06573486328125, -0.05023193359375, -0.0207061767578125, 0.0281524658203125, 0.069091796875, -0.025665283203125, -0.0173797607421875, -0.00015842914581298828, -0.00824737548828125, -0.017242431640625, 0.023284912109375, 0.02691650390625, -0.020751953125, -0.047332763671875, 0.02984619140625, -0.01190948486328125, 0.07122802734375, 0.004619598388671875, -0.0167236328125, 0.053741455078125, -0.0132904052734375, -0.034912109375, -0.054595947265625, -0.018768310546875, -0.039337158203125, 0.018707275390625, -0.02740478515625, -0.00954437255859375, -0.01328277587890625, -0.034027099609375, -0.035552978515625, 0.0489501953125, 0.00374603271484375, -0.011871337890625, -0.027557373046875, 0.01389312744140625, -0.00949859619140625, 0.015716552734375, 0.0003635883331298828, -0.027862548828125, -0.012542724609375, 0.005100250244140625, -0.020172119140625, 0.026458740234375, 0.00662994384765625, -0.04486083984375, -0.061737060546875, -0.033843994140625, -0.020477294921875, 0.00027680397033691406, 0.051483154296875, 0.0021038055419921875, 0.015899658203125, 0.059722900390625, -0.025299072265625, -0.025726318359375, -0.044403076171875, -0.049835205078125, -0.004421234130859375, -0.038421630859375, -0.0219573974609375, 0.01006317138671875, 0.06353759765625, 0.059173583984375, 0.016754150390625, -0.06365966796875, -0.024322509765625, -0.0302276611328125, -0.023712158203125, -0.0103759765625, 0.0302734375, -0.07354736328125, -0.000125885009765625, 0.01032257080078125, 0.005443572998046875, -0.006740570068359375, 0.0260009765625, 0.0215606689453125, -0.0258331298828125, 0.0799560546875, -0.016510009765625, 0.01371002197265625, -0.02972412109375, 0.023193359375, -0.0214080810546875, -0.0306396484375, 0.011749267578125, 0.022186279296875, -0.022613525390625, 0.028076171875, 0.01273345947265625, 0.0144195556640625, -0.0248260498046875, -0.00167083740234375, 0.0225067138671875, 0.02130126953125, -0.01508331298828125, -0.029571533203125, 0.01395416259765625, 0.0124664306640625, -0.001010894775390625, 0.0100555419921875, -0.0194854736328125, 0.026580810546875, -0.0152130126953125, 0.02716064453125, -0.0060272216796875, -0.052734375, -0.02587890625, 0.0179290771484375, 0.02008056640625, -0.02191162109375, 0.031280517578125, 0.005191802978515625, -0.006565093994140625, -0.019195556640625, -0.0019931793212890625, -0.04620361328125, 0.032867431640625, -0.002788543701171875, -0.01419830322265625, 0.026702880859375 ]
6910fc47aaf37d69faad9588d76fcb43549bc057
Wordpress Stackexchange Q: Drag-and-drop "Panels"-style visual layout editor? I'm a combination Drupal and WordPress developer and have recently started playing with Drupal's Panels module -- which allows you to create flexible layouts and drop content blocks (The Drupal equivalent of widgets) in place on either a per-layout or per-content item basis. I'm now working on a WordPress project that would really benefit from this kind of functionality — is there a visual layout editor for WordPress that even slightly resembles Panels? By "visual layout editor", I mean something that can have text and/or widgets added on an ad-hoc basis to regions created by either dragging column widths or click-and-dragging selections (Similar to Adobe InDesign). Edit: It's a year later, so I've created a wiki answer below. The original question has been updated to reflect this. A: Have you tried PressWork? It's http://wordpress.org/extend/themes/presswork. This post might yield some interesting leads: http://www.smartfoxes.ca/blog/2012/04/11/top-5-drag-and-drop-wordpress-themes/
Q: Drag-and-drop "Panels"-style visual layout editor? I'm a combination Drupal and WordPress developer and have recently started playing with Drupal's Panels module -- which allows you to create flexible layouts and drop content blocks (The Drupal equivalent of widgets) in place on either a per-layout or per-content item basis. I'm now working on a WordPress project that would really benefit from this kind of functionality — is there a visual layout editor for WordPress that even slightly resembles Panels? By "visual layout editor", I mean something that can have text and/or widgets added on an ad-hoc basis to regions created by either dragging column widths or click-and-dragging selections (Similar to Adobe InDesign). Edit: It's a year later, so I've created a wiki answer below. The original question has been updated to reflect this. A: Have you tried PressWork? It's http://wordpress.org/extend/themes/presswork. This post might yield some interesting leads: http://www.smartfoxes.ca/blog/2012/04/11/top-5-drag-and-drop-wordpress-themes/ A: There's been a lot of development in this sphere since I posted this question, not only in using visual layout tools for the overall site theme, but also for laying out individual pages. Some plugins I've evaluated: * *SiteOrigin Page Builder has a Panels-esque fluid grid layout engine, into which you can place any kind of widget. This makes it pretty powerful. I've built a few widgets specifically for use with this, and it works decently well. Free! *Page Layout Builder is really similar to SiteOrigin Page Builder, albeit with 1/8th as many downloads (~8k versus SiteOrigin's ~64k). Free! *ScrollKit, which allows you to do some really interesting scrolling effects while doing InDesign-esque visual layout, has a WordPress plugin. Note that finished pages are hosted by ScrollKit. Free! *PlugNEdit is a similar deal to ScrollKit, but looks eye-gougingly terrible by comparison. Free! *Zedity looks really similar to PlugNEdit. Free! *Pagelines' "DMS" is probably the most polished of the commercial offerings and it looks really snazzy. Unfortunately, it's brutally expensive, and if you stop paying their monthly subscription fee (?!), they add a "Powered by Pagelines" link to your site, effectively turning your site into a free ad for their company. I can't tell whether it works on the page level, though I get the feeling it does. Plans range from $8 /mo. (1 site) to $24 /mo. (unlimited sites). *Visual Composer for WordPress is similar to SiteOrigin Page Builder, but seems to use its own specialized widgets instead of WordPress' own. Appears to work on the page level. $25. *Elegant Builder seems to be pretty similar to SiteOrigin Page Builder, albeit for $89. Seems to work on the page-level. *Headway looks pretty snazzy, I like the visual grid-based workflow. $87, includes 1 year support. I've made this answer community wiki, so feel free to add more. IMO, what would be awesome is something at SiteOrigin Page Builder's level of quality and cost, but directed towards free-form (i.e., "gridless") visual layout like ScrollKit or PlugNEdit.
wordpress
{ "language": "en", "length": 483, "provenance": "stackexchange_00019.jsonl.gz:422843", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61595" }
[ -0.05511474609375, -0.01119232177734375, -0.0679931640625, -0.00559234619140625, -0.005680084228515625, -0.029205322265625, 0.006778717041015625, 0.02178955078125, 0.051544189453125, 0.019561767578125, -0.0167236328125, 0.00447845458984375, 0.00255584716796875, -0.01052093505859375, -0.052215576171875, 0.00141143798828125, 0.020355224609375, -0.0777587890625, -0.01389312744140625, -0.034088134765625, 0.011199951171875, -0.03955078125, 0.06024169921875, 0.0016355514526367188, 0.0017986297607421875, 0.06951904296875, -0.0081787109375, -0.0249481201171875, -0.01142120361328125, -0.0210723876953125, 0.01320648193359375, -0.00024509429931640625, 0.00971221923828125, 0.0156707763671875, 0.02410888671875, 0.0294036865234375, -0.012237548828125, 0.01451873779296875, 0.0164337158203125, 0.004161834716796875, -0.034576416015625, 0.0245819091796875, 0.02142333984375, -0.008880615234375, -0.0087890625, -0.036468505859375, -0.01137542724609375, -0.06610107421875, 0.01236724853515625, 0.0400390625, 0.01389312744140625, -0.0077362060546875, 0.0224456787109375, -0.0396728515625, -0.0069427490234375, -0.0250396728515625, -0.0310821533203125, 0.0328369140625, 0.0216064453125, 0.0248870849609375, 0.00437164306640625, -0.004863739013671875, 0.00176239013671875, -0.020172119140625, -0.0306243896484375, -0.005397796630859375, -0.045684814453125, -0.031951904296875, 0.004375457763671875, -0.01227569580078125, 0.03192138671875, -0.023345947265625, -0.032318115234375, -0.0498046875, 0.01436614990234375, 0.0477294921875, 0.005207061767578125, -0.0052337646484375, -0.0279541015625, 0.03790283203125, -0.023406982421875, 0.036285400390625, -0.0290374755859375, -0.0390625, 0.0200042724609375, -0.03009033203125, -0.025604248046875, 0.00897979736328125, -0.037200927734375, -0.01052093505859375, 0.006175994873046875, -0.026214599609375, -0.077880859375, 0.03643798828125, 0.031768798828125, -0.0003685951232910156, -0.016998291015625, -0.02752685546875, 0.023040771484375, 0.03594970703125, 0.00879669189453125, -0.05133056640625, 0.046173095703125, -0.020416259765625, 0.0030670166015625, 0.0036220550537109375, -0.007007598876953125, 0.019989013671875, 0.02716064453125, 0.0272216796875, -0.02044677734375, 0.0037479400634765625, 0.031707763671875, 0.046539306640625, -0.0406494140625, -0.036468505859375, -0.0180816650390625, 0.0001614093780517578, -0.029388427734375, 0.0239105224609375, -0.007781982421875, 0.01462554931640625, -0.0291748046875, 0.0151519775390625, 0.01380157470703125, 0.006023406982421875, 0.0155792236328125, -0.01529693603515625, 0.016387939453125, -0.0120849609375, -0.028106689453125, 0.01593017578125, 0.06939697265625, 0.0389404296875, 0.034698486328125, -0.00901031494140625, 0.0133819580078125, -0.04345703125, -0.0007157325744628906, 0.005779266357421875, -0.020843505859375, -0.006183624267578125, 0.032196044921875, -0.0240478515625, 0.0203094482421875, 0.0214080810546875, 0.0460205078125, 0.0106658935546875, -0.0179595947265625, -0.03643798828125, 0.024932861328125, 0.0192413330078125, 0.041168212890625, -0.00806427001953125, 0.034332275390625, -0.0263824462890625, 0.05108642578125, -0.03778076171875, -0.015960693359375, -0.03509521484375, 0.0139617919921875, 0.01015472412109375, 0.049591064453125, -0.04345703125, -0.0182952880859375, -0.03179931640625, -0.0701904296875, -0.0012750625610351562, 0.0289306640625, 0.0238037109375, 0.0087738037109375, -0.0300445556640625, 0.034423828125, 0.0283660888671875, -0.00611114501953125, 0.048126220703125, 0.0009360313415527344, -0.0161590576171875, 0.0146636962890625, 0.031158447265625, -0.01319122314453125, -0.03887939453125, 0.0225067138671875, -0.0216522216796875, -0.0238189697265625, 0.003261566162109375, 0.01279449462890625, 0.02569580078125, -0.0005650520324707031, 0.0212554931640625, 0.0030956268310546875, 0.03741455078125, 0.0090179443359375, -0.0036754608154296875, -0.006557464599609375, -0.0253448486328125, -0.00008296966552734375, -0.00006508827209472656, -0.01788330078125, -0.002796173095703125, 0.0322265625, -0.01386260986328125, 0.0229339599609375, -0.0160064697265625, -0.00414276123046875, -0.01517486572265625, -0.006900787353515625, 0.0218505859375, -0.005229949951171875, 0.003749847412109375, 0.01171112060546875, -0.0181427001953125, -0.00543975830078125, -0.0110626220703125, -0.0223541259765625, 0.003978729248046875, 0.0238800048828125, 0.08978271484375, 0.037322998046875, 0.020111083984375, 0.052642822265625, -0.057037353515625, 0.06927490234375, 0.0219879150390625, 0.037353515625, -0.02105712890625, -0.0078582763671875, -0.0195159912109375, 0.042938232421875, -0.004947662353515625, 0.017547607421875, 0.02593994140625, 0.004058837890625, 0.045074462890625, -0.011566162109375, -0.0260467529296875, -0.020660400390625, -0.039520263671875, 0.0212249755859375, 0.034210205078125, 0.0259857177734375, 0.0313720703125, -0.0237274169921875, -0.0157012939453125, 0.06787109375, -0.0274658203125, -0.00052642822265625, -0.01258087158203125, -0.01548004150390625, 0.0196685791015625, 0.00897216796875, 0.0347900390625, 0.0166168212890625, -0.0009007453918457031, 0.0208587646484375, 0.02679443359375, -0.025634765625, 0.0220794677734375, -0.0203704833984375, 0.0185546875, 0.0035533905029296875, 0.042755126953125, 0.0159149169921875, -0.003009796142578125, -0.00229644775390625, 0.0232086181640625, 0.028228759765625, 0.0106353759765625, -0.0202789306640625, 0.01267242431640625, 0.0038166046142578125, 0.0018157958984375, -0.0022144317626953125, 0.046875, 0.005016326904296875, 0.042999267578125, -0.009552001953125, -0.0198211669921875, -0.005329132080078125, 0.0171356201171875, -0.027374267578125, 0.024566650390625, -0.033355712890625, -0.01525115966796875, -0.0026836395263671875, -0.045440673828125, -0.01873779296875, -0.031829833984375, 0.0036144256591796875, 0.0032501220703125, 0.0183563232421875, 0.0253143310546875, -0.0032958984375, 0.024261474609375, -0.0003781318664550781, -0.010467529296875, 0.057769775390625, -0.01031494140625, -0.0016937255859375, 0.01195526123046875, 0.066162109375, 0.06353759765625, 0.0159149169921875, -0.0157012939453125, 0.023101806640625, 0.0169219970703125, 0.038330078125, 0.0125732421875, 0.0178070068359375, -0.0001995563507080078, -0.035003662109375, 0.009796142578125, 0.026611328125, -0.03955078125, 0.03985595703125, -0.01255035400390625, -0.0269927978515625, 0.022613525390625, -0.0614013671875, -0.0243377685546875, 0.0279998779296875, -0.0484619140625, -0.039337158203125, 0.00957489013671875, -0.055267333984375, 0.003574371337890625, 0.028778076171875, -0.01007843017578125, -0.034423828125, -0.019683837890625, -0.0300140380859375, -0.044677734375, -0.044586181640625, 0.0282135009765625, -0.00914764404296875, 0.026519775390625, 0.02117919921875, 0.00609588623046875, 0.01264190673828125, -0.033355712890625, 0.03265380859375, -0.005458831787109375, -0.01898193359375, 0.0007886886596679688, 0.0255584716796875, -0.033172607421875, 0.0010938644409179688, 0.010711669921875, -0.03265380859375, -0.00372314453125, -0.0023345947265625, -0.016876220703125, -0.006511688232421875, 0.01088714599609375, -0.0240020751953125, 0.02642822265625, 0.041015625, -0.0199127197265625, -0.015838623046875, -0.046600341796875, 0.009552001953125, 0.037933349609375, 0.00823974609375, 0.0352783203125, -0.0159759521484375, -0.039886474609375, 0.0225830078125, 0.009124755859375, 0.017852783203125, 0.01476287841796875, -0.0019931793212890625, 0.015655517578125, -0.01477813720703125, -0.023345947265625, -0.030517578125, -0.0341796875, -0.029632568359375, -0.051483154296875, 0.048095703125, -0.017822265625, -0.01328277587890625, -0.01312255859375, 0.0222320556640625, 0.020965576171875, -0.004291534423828125, 0.0158233642578125, 0.0007119178771972656, 0.0237884521484375, 0.00432586669921875, 0.0017871856689453125, 0.014495849609375, 0.035552978515625, -0.055511474609375, 0.0149078369140625, 0.003948211669921875, -0.003871917724609375, -0.00948333740234375, -0.00799560546875, -0.10223388671875, -0.0004222393035888672, -0.081787109375, 0.024658203125, 0.0214385986328125, -0.0341796875, -0.0604248046875, 0.07666015625, -0.0987548828125, -0.01535797119140625, 0.04742431640625, 0.030609130859375, -0.0097808837890625, 0.03729248046875, 0.01250457763671875, -0.0159149169921875, -0.0235443115234375, 0.018157958984375, -0.050140380859375, -0.0254058837890625, -0.020538330078125, 0.0609130859375, 0.0229949951171875, 0.0006022453308105469, -0.0158843994140625, 0.041473388671875, -0.0161285400390625, -0.0009360313415527344, 0.00811004638671875, 0.041046142578125, -0.048370361328125, -0.0357666015625, 0.00399017333984375, -0.063720703125, -0.02490234375, -0.044219970703125, -0.035400390625, -0.04022216796875, -0.0102081298828125, 0.0138702392578125, 0.02716064453125, -0.005870819091796875, -0.0300750732421875, -0.0401611328125, -0.042266845703125, 0.0164794921875, -0.00966644287109375, -0.0176544189453125, -0.0595703125, -0.055938720703125, 0.02239990234375, 0.00707244873046875, -0.013702392578125, 0.0255889892578125, 0.056640625, 0.0186309814453125, -0.01171875, -0.07177734375, 0.0140838623046875, 0.0253143310546875, 0.02581787109375, 0.00998687744140625, -0.00026226043701171875, -0.01244354248046875, -0.0019779205322265625, 0.0022335052490234375, -0.039886474609375, -0.01071929931640625, 0.0011987686157226562, 0.003498077392578125, -0.036407470703125, 0.0059661865234375, -0.03948974609375, 0.0849609375, 0.00836181640625, 0.003314971923828125, -0.0086517333984375, 0.0128173828125, 0.047088623046875, 0.002841949462890625, -0.0172119140625, -0.043792724609375, 0.01751708984375, -0.02239990234375, 0.076416015625, 0.051513671875, 0.054107666015625, 0.006977081298828125, -0.004741668701171875, 0.03314208984375, -0.022430419921875, 0.01947021484375, 0.004367828369140625, -0.0137939453125, 0.0016307830810546875, 0.0185089111328125, -0.03765869140625, 0.006683349609375, 0.002685546875, 0.0033321380615234375, 0.00901031494140625, -0.025421142578125, -0.043060302734375, 0.015411376953125, -0.00255584716796875, -0.0030269622802734375, 0.06134033203125, -0.0228729248046875, 0.00478363037109375, 0.00439453125, 0.0232696533203125, 0.08758544921875, -0.003204345703125, 0.00859832763671875, -0.023895263671875, -0.01323699951171875, -0.0205078125, 0.0212249755859375, 0.01012420654296875, -0.01305389404296875, 0.01213836669921875, -0.01381683349609375, 0.0443115234375, 0.0775146484375, 0.0160369873046875, 0.007511138916015625, -0.0264129638671875, 0.0223388671875, -0.04364013671875, 0.00978851318359375, -0.0472412109375, -0.0281982421875, 0.0201416015625, 0.0804443359375, -0.00025272369384765625, -0.0155029296875, 0.0015954971313476562, -0.03192138671875, 0.0074615478515625, 0.0026645660400390625, -0.0165557861328125, -0.0262451171875, 0.0377197265625, 0.0263671875, -0.0221405029296875, -0.032012939453125, 0.0142059326171875, -0.012359619140625, -0.01210784912109375, -0.0041656494140625, 0.01739501953125, -0.009429931640625, -0.0221405029296875, -0.02734375, -0.034698486328125, -0.0059967041015625, 0.03497314453125, -0.134521484375, -0.05206298828125, 0.004131317138671875, -0.00937652587890625, 0.038482666015625, -0.04193115234375, 0.03759765625, -0.031890869140625, 0.007396697998046875, -0.0777587890625, 0.0033550262451171875, 0.06158447265625, 0.06689453125, -0.02215576171875, -0.01232147216796875, -0.061126708984375, -0.025421142578125, -0.0830078125, -0.048431396484375, -0.0577392578125, 0.01236724853515625, 0.0152587890625, 0.00891876220703125, 0.0231170654296875, -0.0012273788452148438, 0.0036373138427734375, 0.0171356201171875, -0.006473541259765625, 0.0379638671875, 0.00998687744140625, 0.036041259765625, 0.00293731689453125, 0.07391357421875, 0.01141357421875, -0.02520751953125, -0.062469482421875, -0.018402099609375, 0.01045989990234375, -0.038909912109375, -0.01275634765625, -0.03253173828125, 0.00521087646484375, 0.0237579345703125, 0.0134124755859375, -0.004169464111328125, 0.0294647216796875, -0.036407470703125, 0.00838470458984375, -0.0032367706298828125, -0.006015777587890625, -0.047027587890625, -0.04107666015625, 0.062286376953125, -0.0130157470703125, -0.0006875991821289062, -0.0230255126953125, 0.001071929931640625, 0.005016326904296875, 0.002895355224609375, -0.0206451416015625, 0.020721435546875, -0.038970947265625, 0.025726318359375, 0.0165557861328125, 0.0085601806640625, 0.049957275390625, -0.01422882080078125, 0.029022216796875, 0.0423583984375, -0.0207977294921875, 0.0069427490234375, -0.01296234130859375, 0.01216888427734375, -0.0170745849609375, 0.00798797607421875, 0.029052734375, -0.005023956298828125, 0.003810882568359375, 0.03656005859375, 0.03631591796875, -0.036285400390625, 0.0005307197570800781, -0.0310821533203125, -0.0295257568359375, 0.049224853515625, -0.0270538330078125, -0.01107025146484375, -0.050079345703125, 0.035980224609375, 0.049407958984375, -0.036346435546875, -0.0115509033203125, 0.013824462890625, 0.002681732177734375, -0.049346923828125, 0.02801513671875, 0.016021728515625, -0.0087890625, 0.01239776611328125, -0.0042572021484375, 0.0162353515625, -0.047271728515625, 0.004638671875, 0.0345458984375, -0.01543426513671875, -0.03265380859375, 0.0762939453125, 0.01397705078125, 0.033966064453125, 0.03350830078125, -0.004039764404296875, 0.005268096923828125, 0.04022216796875, -0.02789306640625, 0.0285797119140625, 0.005016326904296875, -0.00701141357421875, 0.0198822021484375, 0.01129150390625, 0.0389404296875, -0.032958984375, -0.0127410888671875, -0.00791168212890625, -0.031646728515625, -0.0177764892578125, 0.005313873291015625, 0.046356201171875, 0.04150390625, -0.0240631103515625, -0.0178070068359375, 0.043121337890625, -0.00913238525390625, -0.00991058349609375, 0.04376220703125, -0.005615234375, -0.0809326171875, -0.0784912109375, 0.043975830078125, -0.10797119140625, -0.00716400146484375, 0.042877197265625, -0.03369140625, 0.059661865234375, 0.0231170654296875, -0.019561767578125, 0.0089569091796875, 0.0219573974609375, -0.0494384765625, -0.01396942138671875, -0.0032176971435546875, 0.052032470703125, 0.025665283203125, -0.041656494140625, -0.003814697265625, 0.0131988525390625, -0.0262908935546875, 0.006488800048828125, 0.01203155517578125, 0.0066680908203125, -0.033538818359375, -0.01139068603515625, 0.02911376953125, 0.0689697265625, 0.0207977294921875, 0.0132293701171875, -0.0008935928344726562, -0.0035114288330078125, 0.0384521484375, 0.0140838623046875, 0.03948974609375, 0.006122589111328125, -0.0240020751953125, 0.0127716064453125, 0.004161834716796875, 0.01538848876953125, 0.0003311634063720703, 0.01328277587890625, -0.01468658447265625, -0.0005745887756347656, 0.0010347366333007812, 0.016357421875, 0.0654296875, -0.0154266357421875, 0.054168701171875, -0.045745849609375, -0.030670166015625, -0.005619049072265625, 0.037353515625, 0.0219879150390625, 0.0305633544921875, 0.0205535888671875, 0.022216796875, -0.0094146728515625, 0.020050048828125, 0.0283660888671875, 0.04595947265625, -0.0426025390625, -0.017608642578125, -0.02752685546875, 0.0034389495849609375, -0.044891357421875, 0.00525665283203125, 0.03759765625, -0.0032787322998046875, -0.0036563873291015625, -0.06341552734375, 0.01488494873046875, 0.0099029541015625, -0.00616455078125, 0.02313232421875, -0.01253509521484375, -0.04180908203125, 0.035247802734375, -0.0193328857421875, -0.03314208984375, 0.0008897781372070312, 0.006237030029296875, -0.007465362548828125, -0.0274810791015625, 0.057586669921875, -0.0218658447265625, 0.0058135986328125, 0.0213470458984375, -0.000003635883331298828, -0.004367828369140625, -0.0277862548828125, 0.040191650390625, -0.023101806640625, 0.0149383544921875, -0.040771484375, 0.004055023193359375, 0.002101898193359375, 0.041656494140625, -0.046173095703125, -0.009521484375, 0.0254669189453125, 0.04736328125, 0.00452423095703125, -0.01200103759765625, 0.012603759765625, 0.0311279296875, -0.0145721435546875, -0.00847625732421875, 0.031646728515625, -0.003582000732421875, -0.01229095458984375, -0.0250396728515625, -0.040374755859375, 0.01087188720703125, -0.0236358642578125, 0.006916046142578125, -0.01389312744140625, 0.033477783203125, -0.05059814453125, 0.0310516357421875, -0.007564544677734375, -0.005992889404296875, 0.022491455078125, -0.038970947265625, -0.0201568603515625, -0.0266571044921875, -0.065185546875, -0.017486572265625, -0.0255584716796875, -0.00036525726318359375, 0.015838623046875, 0.0269622802734375, -0.018829345703125, 0.0300445556640625, -0.004756927490234375, -0.0263214111328125, -0.006622314453125, 0.0159454345703125, 0.0233154296875, 0.0165863037109375, 0.00739288330078125, 0.00007259845733642578, -0.07513427734375, -0.034332275390625, -0.03228759765625, 0.04412841796875, -0.0279693603515625, 0.0985107421875, -0.034637451171875, 0.01355743408203125, 0.02069091796875, 0.01739501953125, 0.01029205322265625, 0.007511138916015625, 0.01953125, 0.03521728515625, 0.014007568359375, -0.05596923828125, 0.0618896484375, -0.037689208984375, 0.036163330078125, -0.08355712890625, -0.058319091796875, -0.004840850830078125, 0.033294677734375, 0.01045989990234375, 0.0228271484375, -0.0193939208984375, -0.034332275390625, -0.022430419921875, 0.0135345458984375, -0.009429931640625, 0.007747650146484375, 0.0086822509765625, -0.004611968994140625, -0.031219482421875, -0.04193115234375, -0.01073455810546875, -0.0362548828125, -0.0270233154296875, 0.006237030029296875, 0.00594329833984375, -0.08074951171875, 0.056488037109375, 0.00726318359375, -0.023162841796875, 0.036285400390625, 0.071044921875, 0.0252227783203125, -0.039764404296875, 0.0498046875, 0.034820556640625, 0.07415771484375, -0.0130462646484375, 0.028564453125, 0.01004791259765625, 0.0029354095458984375, 0.01335906982421875, 0.006923675537109375, -0.0262908935546875, -0.0163726806640625, -0.019195556640625, 0.01654052734375, -0.01239013671875, -0.045562744140625, -0.0758056640625, -0.001255035400390625, 0.0087127685546875, 0.0101776123046875, -0.043212890625, 0.045135498046875, -0.0097503662109375, -0.035675048828125, -0.0017004013061523438, -0.02911376953125, 0.0193939208984375, 0.01490020751953125, -0.034576416015625, -0.0038909912109375, -0.023773193359375, 0.00705718994140625, -0.0192108154296875, 0.00923919677734375, 0.0204010009765625, -0.027496337890625, -0.0210723876953125, 0.0177154541015625, 0.034942626953125, 0.06451416015625, 0.041656494140625, -0.0142669677734375, 0.0214691162109375, -0.0007433891296386719, 0.0172882080078125, -0.00737762451171875, -0.023956298828125, 0.016845703125, -0.002391815185546875, 0.01922607421875, -0.035308837890625, -0.01078033447265625, -0.056732177734375, -0.1103515625, -0.00024187564849853516, 0.01042938232421875, -0.060638427734375, -0.023956298828125, 0.0182647705078125, -0.0087890625, 0.0223236083984375, 0.009246826171875, -0.0017232894897460938, -0.006748199462890625, -0.0123748779296875, 0.000377655029296875, 0.06787109375, 0.0005974769592285156, -0.00232696533203125, -0.0270233154296875, -0.01279449462890625, -0.0426025390625, 0.00527191162109375, 0.009063720703125, -0.016326904296875, 0.021484375, 0.035247802734375, -0.036895751953125, -0.04547119140625, -0.0266571044921875, -0.035430908203125, -0.0096588134765625, -0.005615234375, -0.05780029296875, -0.01496124267578125, 0.09417724609375, 0.0577392578125, 0.033782958984375, -0.035858154296875, -0.01357269287109375, -0.0166473388671875, -0.051116943359375, -0.06494140625, 0.0296630859375, -0.0736083984375, -0.04364013671875, -0.035675048828125, -0.018524169921875, 0.046783447265625, -0.0198822021484375, -0.029205322265625, 0.0135040283203125, -0.0107421875, -0.0021572113037109375, -0.06939697265625, -0.0160064697265625, 0.082275390625, -0.03955078125, 0.0343017578125, 0.0133819580078125, 0.00362396240234375, 0.05169677734375, 0.0701904296875, -0.0271453857421875, -0.021942138671875, -0.06304931640625, 0.02752685546875, -0.0350341796875, 0.0762939453125, -0.07232666015625, -0.01238250732421875, -0.0037860870361328125, -0.004199981689453125, -0.007289886474609375, -0.0172882080078125, 0.003536224365234375, 0.0234375, -0.0005064010620117188, 0.049530029296875, -0.0172882080078125, -0.00298309326171875, -0.0211029052734375, 0.01132965087890625, 0.0030059814453125, -0.00592803955078125, 0.03143310546875, -0.0173797607421875, 0.0072021484375, 0.0150299072265625, -0.008209228515625, -0.007099151611328125, -0.0156402587890625, -0.05859375, 0.0019359588623046875, -0.0033435821533203125 ]
b6238b3bcdc626261c3a4d5be44ceca47822712f
Wordpress Stackexchange Q: Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php Why uninstalling the following (empty) plugin results in error? Here is my-plugin/my-plugin.php: <?php /* Plugin Name: My Plugin */ and my-plugin/uninstall.php: <?php When I click 'Delete' and then confirm, I get the following error: Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php. What's wrong here? ~/Sites/wordpress/wp-content/plugins/my-plugin $ ls -ll total 16 -rwxrwxrwx@ 1 me staff 34 13 Aug 21:43 my-plugin.php -rwxrwxrwx@ 1 me staff 6 13 Aug 21:44 uninstall.php A: I also had the same problem. It was due to the permission issue in wordpress directory. Navigate to the Directory where you have installed WordPress and…. run the following in your terminal: sudo chown www-data:www-data * -R sudo usermod -a -G www-data username Replace username with the username you are using like root.
Q: Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php Why uninstalling the following (empty) plugin results in error? Here is my-plugin/my-plugin.php: <?php /* Plugin Name: My Plugin */ and my-plugin/uninstall.php: <?php When I click 'Delete' and then confirm, I get the following error: Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php. What's wrong here? ~/Sites/wordpress/wp-content/plugins/my-plugin $ ls -ll total 16 -rwxrwxrwx@ 1 me staff 34 13 Aug 21:43 my-plugin.php -rwxrwxrwx@ 1 me staff 6 13 Aug 21:44 uninstall.php A: I also had the same problem. It was due to the permission issue in wordpress directory. Navigate to the Directory where you have installed WordPress and…. run the following in your terminal: sudo chown www-data:www-data * -R sudo usermod -a -G www-data username Replace username with the username you are using like root. A: It could be a result of either local file permissions or WordPress configuration. To fix local file permissions, you can either: * *If you have root shell access (such as on a VPS server) you can run something like: sudo chown www-data:www-data * -R sudo usermod -a -G www-data YOUR-USERNAME-HERE This ensures that the groups and permissions are set correctly. *Change the file and directory permissions to 775 (or 777 if that fails) so that PHP can write to the necessary files/folders. For best security (especially if you're on a shared host), some recommend only doing this temporarily for performing updates and then removing the write permissions again afterward. More rarely, this error can also occur if your WordPress configuration in /wp-config.php is set to use something like: define( 'FS_METHOD', 'ftpext' ); This tells WordPress that it needs to use FTP to make file changes instead of working directly with the local file system. The line will likely be followed by FTP login information. If this login information is incorrect then WordPress will be unable to login and perform file-system changes.
wordpress
{ "language": "en", "length": 330, "provenance": "stackexchange_00019.jsonl.gz:422855", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61659" }
[ 0.022247314453125, 0.0235443115234375, -0.0094757080078125, 0.020050048828125, 0.005779266357421875, -0.03955078125, 0.047760009765625, -0.04803466796875, 0.029754638671875, 0.0026111602783203125, 0.005767822265625, -0.00604248046875, 0.0089111328125, -0.04376220703125, 0.0003790855407714844, -0.01134490966796875, 0.0295562744140625, -0.0032558441162109375, 0.0352783203125, -0.0107574462890625, 0.03314208984375, 0.004650115966796875, 0.047210693359375, 0.05975341796875, -0.017242431640625, 0.0218353271484375, 0.0831298828125, -0.04150390625, -0.02752685546875, -0.05517578125, -0.0079803466796875, 0.037994384765625, -0.0128021240234375, 0.044921875, -0.0316162109375, -0.049713134765625, 0.0012407302856445312, 0.004161834716796875, 0.01407623291015625, -0.00044846534729003906, 0.01538848876953125, -0.0036830902099609375, 0.00884246826171875, 0.032257080078125, -0.001148223876953125, -0.079345703125, 0.06549072265625, -0.0360107421875, -0.00908660888671875, 0.006740570068359375, 0.0193634033203125, 0.0023040771484375, 0.03204345703125, -0.01097869873046875, -0.004657745361328125, 0.0057830810546875, -0.015045166015625, 0.07623291015625, 0.01092529296875, -0.00684356689453125, -0.029541015625, 0.025238037109375, 0.01065826416015625, 0.006061553955078125, 0.024688720703125, -0.0185394287109375, 0.023590087890625, 0.01534271240234375, -0.048065185546875, 0.033050537109375, 0.05474853515625, -0.0194244384765625, 0.00009447336196899414, 0.0194091796875, -0.00841522216796875, -0.0408935546875, 0.037994384765625, -0.01190948486328125, 0.00782012939453125, 0.02001953125, 0.031158447265625, -0.0015153884887695312, -0.0190582275390625, 0.003997802734375, -0.005352020263671875, 0.033203125, -0.0007081031799316406, -0.028717041015625, -0.01076507568359375, 0.003047943115234375, -0.017333984375, -0.03778076171875, 0.0182647705078125, 0.034454345703125, -0.0081787109375, 0.0123138427734375, 0.00823211669921875, 0.0367431640625, -0.00290679931640625, 0.0023517608642578125, 0.00466156005859375, -0.03289794921875, 0.005950927734375, -0.0283050537109375, -0.028106689453125, 0.04742431640625, 0.0198516845703125, 0.00803375244140625, -0.0193634033203125, 0.0203399658203125, -0.0042266845703125, -0.0416259765625, -0.0078125, -0.052520751953125, 0.00007784366607666016, 0.059539794921875, -0.019256591796875, -0.012939453125, 0.007282257080078125, 0.01373291015625, -0.0049896240234375, 0.001190185546875, -0.07196044921875, 0.02001953125, -0.00640106201171875, -0.0367431640625, 0.002349853515625, 0.053070068359375, -0.0007023811340332031, -0.021881103515625, -0.031341552734375, 0.034210205078125, 0.05889892578125, 0.003253936767578125, -0.007598876953125, -0.005931854248046875, 0.00392913818359375, 0.0182037353515625, -0.0135650634765625, -0.01788330078125, 0.04193115234375, -0.00335693359375, 0.00015079975128173828, -0.01328277587890625, 0.0285797119140625, 0.0226287841796875, 0.029266357421875, 0.00557708740234375, 0.00441741943359375, -0.037628173828125, 0.00815582275390625, 0.006435394287109375, 0.020111083984375, 0.0031528472900390625, 0.02398681640625, -0.027679443359375, 0.040863037109375, -0.04400634765625, 0.0023250579833984375, -0.037841796875, 0.01336669921875, -0.02606201171875, -0.013702392578125, -0.0087738037109375, -0.032958984375, 0.03277587890625, -0.02972412109375, 0.004791259765625, 0.0180206298828125, -0.029449462890625, 0.00792694091796875, 0.0060272216796875, 0.004131317138671875, 0.00736236572265625, 0.02789306640625, 0.0265655517578125, -0.022430419921875, -0.0013952255249023438, 0.0205535888671875, 0.03857421875, -0.01287078857421875, -0.031951904296875, 0.0175933837890625, 0.0118560791015625, -0.048583984375, -0.0189361572265625, 0.037506103515625, 0.031951904296875, -0.005123138427734375, 0.022735595703125, 0.07611083984375, 0.003993988037109375, -0.0093536376953125, 0.02618408203125, -0.01192474365234375, -0.0684814453125, 0.01288604736328125, -0.0206146240234375, 0.0013141632080078125, 0.0117645263671875, 0.0098419189453125, -0.005458831787109375, -0.0220794677734375, -0.022674560546875, -0.1468505859375, 0.005157470703125, -0.041748046875, 0.055145263671875, -0.01363372802734375, 0.00909423828125, 0.0338134765625, 0.000988006591796875, -0.0214080810546875, -0.03619384765625, -0.0343017578125, -0.00482940673828125, -0.0305633544921875, 0.03521728515625, 0.0024166107177734375, 0.06036376953125, -0.003246307373046875, -0.01751708984375, 0.0057373046875, -0.0175933837890625, 0.011566162109375, 0.0179901123046875, -0.0241241455078125, 0.010650634765625, -0.00537109375, -0.0006394386291503906, -0.004329681396484375, 0.024322509765625, 0.0032939910888671875, 0.00952911376953125, -0.00984954833984375, -0.015472412109375, -0.0021514892578125, -0.07513427734375, 0.0225372314453125, 0.0435791015625, 0.0277252197265625, 0.0051116943359375, -0.04632568359375, -0.0195770263671875, 0.0224151611328125, -0.04638671875, 0.0010347366333007812, -0.0032100677490234375, 0.020050048828125, 0.03436279296875, 0.0191497802734375, 0.003734588623046875, 0.0307159423828125, 0.005298614501953125, 0.0199737548828125, 0.0284576416015625, -0.0291900634765625, -0.0131988525390625, -0.042572021484375, 0.00818634033203125, 0.007083892822265625, -0.044769287109375, -0.0196380615234375, -0.0193328857421875, 0.00989532470703125, -0.024749755859375, 0.0040435791015625, -0.01009368896484375, 0.0006809234619140625, -0.01448822021484375, 0.0241851806640625, -0.0733642578125, 0.0057220458984375, -0.01021575927734375, 0.04266357421875, -0.00849151611328125, -0.033905029296875, 0.0003025531768798828, 0.01488494873046875, -0.005603790283203125, -0.01168060302734375, -0.042755126953125, 0.0034503936767578125, 0.005214691162109375, 0.0196380615234375, -0.035919189453125, 0.0546875, 0.037750244140625, -0.035064697265625, -0.0246429443359375, 0.00231170654296875, 0.041595458984375, -0.043853759765625, 0.052703857421875, -0.005062103271484375, -0.0145721435546875, 0.07293701171875, -0.031524658203125, 0.0250396728515625, 0.0006823539733886719, 0.043060302734375, 0.0621337890625, 0.0469970703125, -0.05364990234375, -0.00428009033203125, -0.005443572998046875, 0.03472900390625, -0.038909912109375, -0.024688720703125, 0.0020160675048828125, -0.049713134765625, -0.0024967193603515625, 0.025909423828125, 0.04827880859375, 0.0035343170166015625, -0.04437255859375, -0.03729248046875, 0.033599853515625, -0.1011962890625, -0.071533203125, -0.0452880859375, -0.0234527587890625, 0.031524658203125, -0.00661468505859375, 0.003742218017578125, -0.005542755126953125, 0.0015010833740234375, 0.02459716796875, 0.01055908203125, -0.072509765625, -0.0013475418090820312, -0.06591796875, -0.060272216796875, -0.015655517578125, 0.042205810546875, 0.01480865478515625, 0.0010881423950195312, 0.06500244140625, -0.019195556640625, -0.062042236328125, -0.049072265625, -0.00653839111328125, -0.00928497314453125, -0.0113525390625, 0.002178192138671875, 0.0178680419921875, 0.01186370849609375, 0.002971649169921875, 0.01390838623046875, 0.034423828125, -0.0474853515625, -0.037872314453125, 0.01052093505859375, -0.042724609375, 0.036407470703125, -0.005157470703125, -0.04302978515625, -0.0301055908203125, 0.0236663818359375, -0.0697021484375, -0.011749267578125, -0.00579833984375, -0.0292205810546875, 0.07696533203125, 0.0098114013671875, -0.01666259765625, 0.0159149169921875, 0.01430511474609375, 0.0021419525146484375, 0.033233642578125, -0.0113983154296875, -0.003787994384765625, 0.00664520263671875, -0.00998687744140625, -0.0015630722045898438, 0.00777435302734375, 0.02044677734375, -0.017547607421875, -0.01474761962890625, -0.00489044189453125, -0.0243682861328125, 0.00510406494140625, -0.041534423828125, -0.0080413818359375, -0.03240966796875, 0.05560302734375, 0.00887298583984375, -0.0022525787353515625, -0.01110076904296875, -0.0325927734375, 0.004421234130859375, 0.0792236328125, -0.0196685791015625, -0.027435302734375, 0.03057861328125, 0.010772705078125, 0.0021915435791015625, 0.025543212890625, -0.040771484375, -0.039154052734375, -0.062744140625, -0.0201263427734375, -0.00252532958984375, -0.0411376953125, 0.0020465850830078125, 0.00025725364685058594, -0.042633056640625, -0.026885986328125, 0.03216552734375, -0.0487060546875, 0.057586669921875, -0.033050537109375, 0.00836944580078125, -0.0244140625, -0.0208282470703125, -0.0400390625, -0.06842041015625, -0.0006389617919921875, -0.030303955078125, 0.037109375, -0.0179595947265625, 0.061187744140625, -0.070556640625, 0.0070953369140625, -0.03448486328125, 0.025970458984375, -0.0214385986328125, 0.00698089599609375, -0.018402099609375, 0.0423583984375, 0.007472991943359375, 0.00954437255859375, -0.0088348388671875, -0.00608062744140625, -0.0085906982421875, 0.0284881591796875, -0.0305938720703125, 0.000014722347259521484, 0.00536346435546875, -0.02349853515625, 0.0002779960632324219, -0.005828857421875, -0.07891845703125, -0.0211639404296875, -0.0132904052734375, -0.027069091796875, -0.0191802978515625, -0.038665771484375, 0.0640869140625, -0.031829833984375, 0.004177093505859375, 0.0220489501953125, 0.10113525390625, 0.004131317138671875, -0.0042572021484375, -0.06170654296875, 0.002964019775390625, 0.01433563232421875, 0.03802490234375, 0.07757568359375, 0.031219482421875, 0.0179901123046875, 0.01416015625, 0.00751495361328125, 0.0191802978515625, -0.0187530517578125, 0.020599365234375, -0.0018215179443359375, -0.0433349609375, 0.039337158203125, 0.007293701171875, 0.002323150634765625, 0.040435791015625, 0.005100250244140625, 0.00334930419921875, -0.006378173828125, -0.010528564453125, 0.0012197494506835938, -0.02093505859375, -0.007587432861328125, -0.06365966796875, 0.019317626953125, -0.0640869140625, 0.0091094970703125, 0.0170135498046875, -0.0179901123046875, 0.031402587890625, -0.0018444061279296875, -0.0172576904296875, -0.03424072265625, -0.00873565673828125, -0.025421142578125, 0.01367950439453125, -0.00914764404296875, -0.0290374755859375, -0.021087646484375, -0.026031494140625, 0.0914306640625, 0.0306396484375, -0.026397705078125, -0.028533935546875, -0.0081787109375, -0.0130615234375, -0.010986328125, 0.0155487060546875, 0.0018873214721679688, 0.05828857421875, -0.01320648193359375, 0.0021152496337890625, 0.044769287109375, 0.036376953125, -0.0208892822265625, 0.0008726119995117188, 0.00806427001953125, -0.0259857177734375, -0.01058197021484375, 0.038848876953125, 0.0008630752563476562, -0.008544921875, 0.007144927978515625, 0.044921875, 0.004360198974609375, 0.0504150390625, 0.017486572265625, -0.019134521484375, 0.01122283935546875, -0.0188140869140625, -0.0159759521484375, -0.033355712890625, -0.005706787109375, 0.011871337890625, 0.059722900390625, -0.0024204254150390625, -0.017578125, 0.0172882080078125, -0.0391845703125, 0.00701904296875, 0.020538330078125, -0.029510498046875, -0.06103515625, 0.0171051025390625, 0.0306854248046875, 0.011260986328125, -0.05731201171875, 0.0035858154296875, -0.0235748291015625, -0.03717041015625, -0.043304443359375, 0.037689208984375, -0.04376220703125, -0.0260467529296875, -0.016876220703125, 0.0498046875, -0.000008046627044677734, -0.041473388671875, -0.0237884521484375, 0.00089263916015625, -0.0291595458984375, 0.0009756088256835938, 0.09454345703125, 0.0034198760986328125, 0.004611968994140625, -0.01837158203125, -0.0022907257080078125, -0.0217132568359375, 0.005207061767578125, 0.03485107421875, 0.0216522216796875, -0.07855224609375, 0.0166778564453125, -0.01284027099609375, -0.01035308837890625, -0.0005235671997070312, -0.04376220703125, -0.06494140625, -0.03594970703125, 0.00682830810546875, 0.015869140625, -0.031524658203125, -0.03302001953125, -0.0115966796875, 0.0438232421875, 0.0269775390625, 0.0635986328125, -0.0303497314453125, 0.0240936279296875, 0.0284881591796875, 0.021026611328125, 0.0083465576171875, 0.01029205322265625, 0.0293426513671875, -0.0291900634765625, 0.03863525390625, 0.007740020751953125, -0.028594970703125, -0.0523681640625, -0.0030918121337890625, -0.03143310546875, 0.042266845703125, -0.02093505859375, -0.0401611328125, 0.0234832763671875, 0.0025653839111328125, -0.0146026611328125, 0.06005859375, 0.07427978515625, 0.03033447265625, -0.0218505859375, -0.052703857421875, 0.01226806640625, 0.020416259765625, 0.0194091796875, 0.01044464111328125, -0.046417236328125, 0.0018177032470703125, 0.057769775390625, -0.0252685546875, 0.038360595703125, 0.0297698974609375, -0.00472259521484375, 0.026519775390625, 0.025909423828125, 0.029541015625, -0.0008788108825683594, 0.02899169921875, 0.032562255859375, -0.033233642578125, 0.04022216796875, -0.0093231201171875, -0.01433563232421875, 0.02508544921875, -0.040313720703125, 0.038482666015625, 0.08477783203125, 0.06658935546875, -0.121337890625, 0.02105712890625, 0.0012331008911132812, 0.006206512451171875, 0.0772705078125, -0.01526641845703125, 0.0286712646484375, -0.003665924072265625, -0.0023975372314453125, 0.01018524169921875, -0.01971435546875, 0.0120391845703125, -0.0168304443359375, -0.01357269287109375, 0.02911376953125, 0.0299835205078125, 0.01140594482421875, 0.00384521484375, -0.00922393798828125, -0.01082611083984375, 0.022613525390625, -0.00655364990234375, 0.0193634033203125, 0.014129638671875, -0.0218658447265625, -0.037841796875, 0.0147247314453125, -0.0201568603515625, -0.031463623046875, 0.049835205078125, 0.00035381317138671875, 0.035919189453125, 0.04638671875, 0.004436492919921875, -0.001750946044921875, 0.01953125, -0.0137939453125, 0.01593017578125, -0.0426025390625, 0.0086212158203125, 0.04180908203125, -0.038177490234375, 0.016021728515625, -0.002086639404296875, -0.02423095703125, -0.00650787353515625, -0.005954742431640625, 0.0498046875, -0.030609130859375, 0.00832366943359375, 0.032958984375, 0.0309600830078125, -0.019378662109375, -0.0245361328125, 0.01611328125, -0.0478515625, 0.01149749755859375, 0.0016584396362304688, 0.02105712890625, -0.01380157470703125, -0.007419586181640625, -0.07861328125, 0.092529296875, 0.003437042236328125, 0.0210723876953125, -0.01097869873046875, 0.029083251953125, -0.0220184326171875, -0.0043182373046875, -0.0190277099609375, 0.04345703125, -0.019378662109375, 0.01421356201171875, -0.0155487060546875, 0.012725830078125, -0.01203155517578125, 0.01128387451171875, 0.07135009765625, 0.011962890625, -0.028839111328125, -0.03875732421875, 0.00968170166015625, 0.036407470703125, 0.01198577880859375, 0.03472900390625, 0.02630615234375, 0.0063934326171875, 0.041778564453125, -0.004726409912109375, 0.048431396484375, -0.03692626953125, -0.0037479400634765625, 0.03009033203125, -0.0108489990234375, -0.0255279541015625, -0.002895355224609375, 0.0303802490234375, 0.00200653076171875, -0.007022857666015625, -0.0135345458984375, 0.010467529296875, 0.031280517578125, 0.0007104873657226562, 0.03839111328125, 0.0030193328857421875, -0.0179901123046875, -0.0030345916748046875, 0.04974365234375, 0.0281219482421875, 0.01104736328125, 0.01678466796875, 0.014251708984375, -0.0013799667358398438, -0.0238189697265625, -0.0023708343505859375, 0.0019817352294921875, -0.02227783203125, 0.021331787109375, 0.0277862548828125, 0.014068603515625, 0.01302337646484375, 0.06158447265625, 0.0276031494140625, 0.01727294921875, -0.041534423828125, -0.06976318359375, 0.0027370452880859375, 0.01256561279296875, 0.0236663818359375, 0.049041748046875, 0.03076171875, 0.0030670166015625, 0.051849365234375, -0.051910400390625, 0.0218963623046875, 0.025665283203125, -0.00023055076599121094, -0.01462554931640625, 0.002521514892578125, -0.01959228515625, 0.0257720947265625, -0.006305694580078125, 0.00823974609375, 0.003932952880859375, 0.005847930908203125, -0.01407623291015625, 0.005298614501953125, 0.005138397216796875, 0.0163726806640625, 0.0220184326171875, 0.03936767578125, 0.0005884170532226562, -0.00533294677734375, -0.0450439453125, -0.080810546875, 0.02569580078125, 0.04339599609375, -0.02789306640625, -0.00829315185546875, -0.01422119140625, 0.0188446044921875, -0.032623291015625, -0.0302276611328125, -0.003215789794921875, -0.036376953125, -0.0246734619140625, -0.003498077392578125, 0.008941650390625, 0.01131439208984375, 0.0018863677978515625, -0.0238037109375, 0.0699462890625, -0.020965576171875, -0.02978515625, 0.0217742919921875, -0.0013132095336914062, -0.038818359375, 0.019287109375, -0.029693603515625, 0.0426025390625, -0.0164031982421875, -0.046722412109375, -0.012969970703125, -0.02008056640625, 0.037017822265625, -0.01546478271484375, 0.006015777587890625, 0.0019702911376953125, 0.028778076171875, -0.01259613037109375, -0.0404052734375, 0.01084136962890625, 0.01496124267578125, 0.01406097412109375, 0.02838134765625, 0.002086639404296875, 0.003215789794921875, 0.01230621337890625, -0.01403045654296875, -0.011016845703125, 0.0667724609375, 0.00545501708984375, 0.08306884765625, -0.053741455078125, 0.026123046875, -0.0455322265625, -0.00527191162109375, -0.01259613037109375, -0.02349853515625, 0.006130218505859375, 0.01349639892578125, -0.0269775390625, -0.0061187744140625, -0.04962158203125, 0.0496826171875, -0.004421234130859375, 0.0005269050598144531, 0.029998779296875, -0.01540374755859375, 0.00971221923828125, 0.0196533203125, 0.021697998046875, -0.01038360595703125, -0.032135009765625, -0.01316070556640625, 0.035430908203125, 0.01959228515625, 0.051605224609375, -0.0178680419921875, 0.00484466552734375, 0.028656005859375, -0.0256195068359375, 0.0114898681640625, -0.00493621826171875, -0.02044677734375, 0.02392578125, 0.03973388671875, -0.0625, -0.0369873046875, -0.02618408203125, -0.027587890625, 0.0006885528564453125, 0.047454833984375, -0.0251617431640625, -0.01268768310546875, -0.0237274169921875, -0.0208892822265625, 0.0005688667297363281, -0.01488494873046875, -0.007415771484375, -0.0157623291015625, 0.0016508102416992188, 0.00603485107421875, -0.03277587890625, -0.026214599609375, -0.035369873046875, -0.033355712890625, 0.007007598876953125, -0.0421142578125, -0.051239013671875, -0.05657958984375, 0.015655517578125, -0.005939483642578125, 0.0248565673828125, -0.09161376953125, 0.053070068359375, -0.005828857421875, 0.003314971923828125, -0.0231170654296875, -0.039947509765625, 0.01335906982421875, 0.03533935546875, -0.01508331298828125, -0.01548004150390625, -0.023712158203125, 0.01708984375, -0.00942230224609375, 0.02423095703125, 0.031768798828125, -0.021209716796875, -0.002040863037109375, 0.04656982421875, 0.02197265625, 0.08380126953125, 0.0199737548828125, -0.032257080078125, 0.01073455810546875, -0.038818359375, -0.0003597736358642578, -0.052490234375, 0.0022869110107421875, -0.09619140625, -0.019012451171875, 0.0025768280029296875, 0.0080718994140625, 0.020599365234375, -0.03814697265625, -0.04638671875, 0.048980712890625, 0.0141754150390625, -0.025634765625, -0.0171356201171875, -0.031707763671875, 0.0013666152954101562, 0.0117340087890625, 0.00023174285888671875, -0.037445068359375, -0.06304931640625, 0.019439697265625, 0.00548553466796875, 0.0180816650390625, -0.0128631591796875, 0.018218994140625, 0.021240234375, 0.05615234375, 0.050201416015625, -0.0191192626953125, 0.01806640625, -0.01336669921875, 0.03399658203125, 0.052490234375, -0.0084686279296875, 0.02105712890625, 0.004093170166015625, -0.07427978515625, -0.0302276611328125, -0.016754150390625, -0.02069091796875, 0.00882720947265625, 0.0982666015625, 0.04052734375, 0.02667236328125, -0.042236328125, -0.06695556640625, -0.056365966796875, 0.0104522705078125, -0.03509521484375, 0.018341064453125, -0.0928955078125, -0.00684356689453125, 0.0177764892578125, -0.01120758056640625, 0.01430511474609375, -0.011322021484375, -0.0280609130859375, -0.0082550048828125, -0.0146026611328125, -0.020263671875, -0.0106658935546875, 0.00054168701171875, 0.0264129638671875, -0.0219573974609375, -0.0016641616821289062, -0.00844573974609375, -0.00225830078125, 0.0033397674560546875, -0.01041412353515625, 0.002399444580078125, -0.024566650390625, -0.036041259765625, 0.0268402099609375, -0.01494598388671875, 0.04638671875, -0.037322998046875, -0.051849365234375, -0.002788543701171875, 0.01471710205078125, -0.0053558349609375, 0.02056884765625, 0.0220184326171875, 0.01413726806640625, 0.0030727386474609375, 0.02197265625, -0.00170135498046875, -0.0487060546875, -0.017181396484375, 0.029937744140625, 0.00812530517578125, -0.019378662109375, 0.03204345703125, -0.0225830078125, -0.0086517333984375, 0.02703857421875, 0.0208892822265625, -0.06939697265625, 0.0675048828125, 0.041046142578125, 0.043853759765625, 0.03179931640625 ]
b7f9c662c808f30911e291d3cca6cee592c11516
Wordpress Stackexchange Q: Different template of products for specific category. WooCommerce For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement this? i haven't access to this post http://www.woothemes.com/support-forum/?viewtopic=83667 but it have similar question, with pages and categories in WordPress it simple, but how to do it in woocommerce? A: You could change your single-product.php to just be a redirect to the correct template depending on what product category the current product it. To do so you'd copy single-product.php to your theme's woocommerce folder. Rename it to single-product-default.php or anything. Create another copy and call it single-product-coffee.php. You can make whatever changes you'd like to make to this one. Then in your single-product.php you could add a simple conditional to redirect to the appropriate single-product-something.php if( has_term( 'coffee-maker', 'product_cat' ) ) { $file = 'single-product-coffee.php'; } else { $file = 'single-product-default.php'; } global $woocommerce; load_template( $woocommerce->template_url . $file );
Q: Different template of products for specific category. WooCommerce For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement this? i haven't access to this post http://www.woothemes.com/support-forum/?viewtopic=83667 but it have similar question, with pages and categories in WordPress it simple, but how to do it in woocommerce? A: You could change your single-product.php to just be a redirect to the correct template depending on what product category the current product it. To do so you'd copy single-product.php to your theme's woocommerce folder. Rename it to single-product-default.php or anything. Create another copy and call it single-product-coffee.php. You can make whatever changes you'd like to make to this one. Then in your single-product.php you could add a simple conditional to redirect to the appropriate single-product-something.php if( has_term( 'coffee-maker', 'product_cat' ) ) { $file = 'single-product-coffee.php'; } else { $file = 'single-product-default.php'; } global $woocommerce; load_template( $woocommerce->template_url . $file ); A: Make the new template and name it: taxonomy-product_cat-Your_category_product_slug.php as simple as this A: I made a redirection in single-product.php using the product ID. Then created different product templates in the overriden woocommerce folder (../your-theme/woocommerce/) such as single-product-product1.php and the default one (single-product-default.php, which simply was a copy of the previous single-product.php). if($post->ID == '103'){ wc_get_template_part( 'single-product-product1' ); } else{ wc_get_template_part( 'single-product-default' ); } A: I have done this (Woocommerce 2.1) by creating a template for the product in my theme's woocommerce templates named 'content-single-product-{$product_cat}.php' and adding a 'wc_get_template_part' filter that searches for templates named after the product category. Now you can override the content-single-product template by product category: function my_custom_product_template($template, $slug, $name) { if ($name === 'single-product' && $slug === 'content') { global $product_cat; $temp = locate_template(array("{$slug}-{$name}-{$product_cat}.php", WC()->template_path() . "{$slug}-{$name}-{$product_cat}.php")); if($temp) { $template = $temp; } } return $template; } add_filter('wc_get_template_part', 'my_custom_product_template', 10, 3);
wordpress
{ "language": "en", "length": 312, "provenance": "stackexchange_00019.jsonl.gz:422859", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61667" }
[ 0.0119781494140625, -0.01387786865234375, -0.0256805419921875, -0.05352783203125, 0.0030078887939453125, -0.01125335693359375, 0.00926971435546875, 0.0020313262939453125, -0.04718017578125, 0.019927978515625, -0.0145721435546875, -0.0108642578125, -0.0216827392578125, -0.01493072509765625, 0.021270751953125, -0.0501708984375, 0.00667572021484375, 0.0101165771484375, 0.03826904296875, -0.00885009765625, 0.0269775390625, 0.004169464111328125, -0.01142120361328125, 0.047454833984375, 0.0240936279296875, -0.059661865234375, 0.0858154296875, -0.04302978515625, 0.0287322998046875, -0.03790283203125, 0.0175628662109375, 0.02099609375, 0.04217529296875, -0.016571044921875, -0.0020542144775390625, 0.0236053466796875, 0.025482177734375, -0.00615692138671875, -0.0017442703247070312, 0.0155181884765625, 0.03729248046875, -0.01885986328125, 0.01393890380859375, 0.026458740234375, 0.01100921630859375, -0.048583984375, 0.03851318359375, -0.051116943359375, 0.0301666259765625, -0.0178985595703125, 0.01358795166015625, -0.00775146484375, 0.015838623046875, -0.0171966552734375, -0.03057861328125, -0.00689697265625, -0.060943603515625, -0.0017852783203125, 0.009002685546875, 0.052001953125, 0.020965576171875, -0.0162353515625, -0.012237548828125, -0.0146942138671875, -0.0374755859375, 0.00728607177734375, 0.0038909912109375, 0.0308074951171875, -0.031585693359375, -0.044586181640625, 0.007534027099609375, -0.0011987686157226562, 0.0139617919921875, -0.0127410888671875, -0.03515625, -0.038543701171875, 0.0498046875, -0.01934814453125, -0.01263427734375, 0.0010986328125, -0.005504608154296875, -0.0246124267578125, 0.017120361328125, -0.07891845703125, 0.0521240234375, -0.0229034423828125, -0.005157470703125, 0.005001068115234375, -0.0267333984375, -0.03515625, -0.025726318359375, -0.050994873046875, -0.0433349609375, 0.0293121337890625, -0.025390625, -0.004146575927734375, -0.00875091552734375, 0.004703521728515625, 0.0053558349609375, 0.0198974609375, 0.001728057861328125, -0.029815673828125, 0.0211334228515625, -0.0233612060546875, 0.0009064674377441406, 0.028350830078125, 0.020263671875, 0.007572174072265625, 0.0167083740234375, 0.015869140625, -0.004535675048828125, 0.03326416015625, -0.01300811767578125, -0.049530029296875, -0.0196075439453125, 0.0261993408203125, -0.0361328125, 0.021331787109375, 0.0254364013671875, 0.0014896392822265625, -0.0023345947265625, 0.04608154296875, 0.068359375, -0.05377197265625, -0.0206756591796875, -0.016082763671875, -0.005054473876953125, -0.08575439453125, -0.02825927734375, -0.036346435546875, -0.017181396484375, 0.02685546875, 0.07354736328125, 0.07330322265625, 0.029449462890625, 0.01093292236328125, 0.0193023681640625, 0.05816650390625, 0.00737762451171875, -0.018341064453125, 0.024505615234375, 0.01256561279296875, -0.00687408447265625, 0.0032215118408203125, 0.03619384765625, -0.0015697479248046875, 0.0186920166015625, 0.0207672119140625, 0.01303863525390625, 0.009765625, 0.0002810955047607422, 0.027496337890625, 0.005329132080078125, 0.0288543701171875, 0.0389404296875, 0.01306915283203125, 0.0435791015625, -0.007633209228515625, -0.026336669921875, -0.0212249755859375, -0.00792694091796875, -0.0149078369140625, 0.024658203125, -0.03057861328125, -0.037567138671875, 0.0256500244140625, -0.036956787109375, -0.00901031494140625, 0.017486572265625, -0.0151824951171875, -0.03765869140625, 0.011077880859375, 0.034149169921875, -0.003787994384765625, -0.01462554931640625, 0.025238037109375, -0.0192108154296875, 0.01027679443359375, 0.023681640625, 0.009033203125, -0.035858154296875, -0.0501708984375, 0.035400390625, -0.0168609619140625, -0.06256103515625, 0.03875732421875, 0.02032470703125, 0.041046142578125, -0.0084686279296875, 0.004009246826171875, 0.07257080078125, 0.0236663818359375, -0.035125732421875, 0.01214599609375, -0.0024871826171875, -0.038177490234375, 0.003391265869140625, -0.0014753341674804688, -0.0113525390625, -0.00020301342010498047, 0.0030059814453125, 0.0033016204833984375, 0.0214080810546875, 0.0023746490478515625, -0.0116119384765625, 0.0207977294921875, -0.01409149169921875, 0.035797119140625, -0.0604248046875, 0.0194854736328125, 0.0283660888671875, -0.0014505386352539062, 0.00960540771484375, -0.0711669921875, 0.010101318359375, -0.007244110107421875, 0.02899169921875, 0.070556640625, 0.01088714599609375, 0.0281982421875, 0.029052734375, -0.04840087890625, 0.0169219970703125, 0.0260467529296875, 0.052764892578125, 0.056732177734375, -0.0484619140625, 0.005130767822265625, 0.02606201171875, 0.045989990234375, -0.07916259765625, 0.0236358642578125, 0.0201416015625, 0.01519012451171875, -0.032806396484375, 0.039886474609375, 0.015716552734375, 0.00490570068359375, -0.0283660888671875, 0.0195770263671875, 0.0211334228515625, 0.0048980712890625, -0.01404571533203125, 0.026947021484375, 0.048797607421875, 0.0006098747253417969, -0.006099700927734375, 0.00972747802734375, -0.0243377685546875, 0.01275634765625, -0.0174407958984375, 0.017181396484375, 0.01288604736328125, -0.0421142578125, -0.024139404296875, 0.044952392578125, -0.037261962890625, -0.023529052734375, 0.01415252685546875, 0.024627685546875, -0.011749267578125, 0.040618896484375, 0.035858154296875, -0.00727081298828125, 0.04388427734375, -0.00998687744140625, 0.0190887451171875, 0.00450897216796875, -0.030914306640625, -0.00399017333984375, 0.0238800048828125, -0.01561737060546875, -0.019134521484375, 0.00876617431640625, 0.0203399658203125, 0.0031299591064453125, -0.059600830078125, 0.0187530517578125, 0.02423095703125, -0.00859832763671875, 0.006534576416015625, 0.050567626953125, -0.010894775390625, -0.010986328125, -0.037353515625, -0.08197021484375, -0.002223968505859375, 0.03790283203125, 0.0187835693359375, 0.00289154052734375, 0.0157623291015625, 0.05303955078125, 0.003170013427734375, 0.041015625, -0.0173492431640625, 0.001590728759765625, 0.04425048828125, -0.038055419921875, 0.045196533203125, -0.0306243896484375, 0.03961181640625, 0.05535888671875, -0.0281219482421875, 0.0304718017578125, 0.004241943359375, 0.0190277099609375, 0.029296875, -0.010498046875, -0.029815673828125, 0.00031757354736328125, -0.05938720703125, -0.0256805419921875, 0.019866943359375, 0.06500244140625, 0.0129241943359375, -0.024017333984375, 0.034515380859375, 0.03302001953125, 0.00048351287841796875, -0.05023193359375, 0.0028743743896484375, -0.044525146484375, 0.064208984375, -0.034149169921875, 0.0013790130615234375, -0.047393798828125, -0.01473236083984375, 0.0291595458984375, 0.00691986083984375, -0.011993408203125, -0.04010009765625, -0.037841796875, -0.05780029296875, -0.0233917236328125, -0.007076263427734375, 0.00006192922592163086, 0.0006194114685058594, 0.03070068359375, 0.00897979736328125, -0.029815673828125, 0.015777587890625, 0.05548095703125, -0.004364013671875, -0.01025390625, 0.023834228515625, -0.06890869140625, -0.0259857177734375, -0.0038356781005859375, 0.0213165283203125, 0.0234527587890625, -0.0230255126953125, 0.0188446044921875, 0.01250457763671875, 0.0035800933837890625, 0.0243377685546875, -0.0247650146484375, -0.0091552734375, 0.01934814453125, 0.00884246826171875, -0.030609130859375, -0.0758056640625, -0.01430511474609375, -0.062744140625, 0.059112548828125, 0.057647705078125, 0.0009660720825195312, -0.0067138671875, 0.031219482421875, 0.01068115234375, 0.01708984375, 0.0159759521484375, -0.0271453857421875, -0.0073699951171875, 0.006252288818359375, -0.005062103271484375, -0.0111236572265625, 0.0159149169921875, -0.0244293212890625, -0.0479736328125, -0.007076263427734375, 0.00702667236328125, 0.014068603515625, -0.02178955078125, 0.004444122314453125, -0.0268707275390625, 0.043853759765625, -0.026763916015625, 0.018585205078125, -0.04095458984375, -0.02105712890625, -0.01107025146484375, 0.0723876953125, -0.0174713134765625, -0.0140533447265625, -0.001033782958984375, 0.00952911376953125, -0.0098114013671875, -0.0206298828125, -0.0309295654296875, -0.0187835693359375, -0.041473388671875, 0.0231781005859375, -0.00315093994140625, 0.004077911376953125, -0.0128631591796875, -0.0091400146484375, -0.0180206298828125, -0.0299835205078125, 0.0244140625, -0.01230621337890625, 0.0160064697265625, 0.0229949951171875, -0.006298065185546875, 0.01495361328125, 0.004833221435546875, -0.036590576171875, -0.01297760009765625, -0.0000020265579223632812, -0.0022449493408203125, 0.028228759765625, 0.021728515625, -0.005039215087890625, -0.0206756591796875, 0.022705078125, -0.022003173828125, 0.0058441162109375, -0.00792694091796875, 0.03289794921875, 0.0206298828125, -0.00959014892578125, -0.030029296875, -0.0036945343017578125, -0.019927978515625, -0.0439453125, -0.0286102294921875, -0.0024566650390625, -0.0157928466796875, 0.019317626953125, 0.0027294158935546875, -0.006610870361328125, -0.11309814453125, -0.0213470458984375, 0.0272979736328125, 0.00798797607421875, 0.0038700103759765625, 0.01262664794921875, -0.0145416259765625, -0.0732421875, 0.042572021484375, 0.007190704345703125, -0.03594970703125, 0.01213836669921875, 0.022186279296875, 0.0175933837890625, -0.0290985107421875, -0.0213775634765625, 0.0233306884765625, 0.038726806640625, 0.02880859375, 0.0004558563232421875, -0.0068206787109375, -0.01654052734375, 0.0086212158203125, 0.0182342529296875, -0.017608642578125, 0.017547607421875, 0.054046630859375, -0.01419830322265625, -0.0364990234375, 0.0177154541015625, -0.06341552734375, 0.0163421630859375, 0.024993896484375, -0.0138092041015625, -0.024749755859375, -0.033233642578125, 0.06719970703125, 0.0015850067138671875, 0.01045989990234375, -0.0655517578125, -0.008697509765625, -0.004207611083984375, 0.021453857421875, 0.01311492919921875, 0.034912109375, -0.002330780029296875, 0.0104827880859375, 0.01358795166015625, -0.018096923828125, -0.01296234130859375, 0.0247802734375, -0.0135498046875, -0.007472991943359375, 0.0357666015625, -0.0176849365234375, -0.04058837890625, 0.0017757415771484375, -0.0103759765625, 0.021453857421875, -0.007434844970703125, -0.0274200439453125, -0.01187896728515625, -0.03350830078125, -0.028564453125, -0.050262451171875, 0.0307464599609375, 0.020751953125, -0.0258331298828125, 0.0212860107421875, -0.066162109375, -0.03619384765625, -0.05267333984375, 0.00244903564453125, 0.0031604766845703125, -0.01727294921875, 0.0372314453125, 0.0264129638671875, 0.01468658447265625, 0.0205078125, -0.0092620849609375, 0.0418701171875, 0.0340576171875, 0.0184173583984375, 0.0188446044921875, -0.004642486572265625, -0.03436279296875, 0.00811004638671875, -0.0236663818359375, -0.038970947265625, -0.007965087890625, 0.003154754638671875, 0.0288543701171875, -0.043426513671875, -0.049163818359375, 0.040618896484375, -0.0237884521484375, -0.0174560546875, 0.0018415451049804688, -0.0297698974609375, -0.035888671875, -0.027923583984375, 0.01041412353515625, 0.0222320556640625, 0.0030117034912109375, -0.022918701171875, -0.0021991729736328125, -0.055938720703125, -0.006542205810546875, 0.030914306640625, -0.040191650390625, 0.0197296142578125, 0.0131378173828125, -0.0283050537109375, -0.004917144775390625, 0.038543701171875, -0.03887939453125, -0.00885772705078125, -0.032318115234375, -0.030975341796875, 0.05181884765625, 0.004302978515625, 0.05322265625, -0.03717041015625, -0.04486083984375, -0.00799560546875, -0.0049285888671875, 0.051361083984375, 0.03033447265625, -0.020538330078125, 0.0024890899658203125, -0.036376953125, -0.038116455078125, -0.021881103515625, -0.0304107666015625, -0.036865234375, 0.004650115966796875, -0.01097869873046875, 0.02825927734375, -0.007030487060546875, -0.005340576171875, -0.0088043212890625, 0.006870269775390625, -0.0124359130859375, 0.023651123046875, -0.005016326904296875, 0.045684814453125, 0.01174163818359375, 0.040130615234375, 0.017974853515625, 0.009613037109375, -0.043182373046875, -0.0231170654296875, -0.03338623046875, -0.043792724609375, 0.0193328857421875, 0.033111572265625, -0.01971435546875, 0.037200927734375, 0.06634521484375, 0.0276947021484375, -0.00891876220703125, -0.026702880859375, -0.0006365776062011719, -0.0225067138671875, 0.0135345458984375, -0.043853759765625, -0.04156494140625, -0.003742218017578125, -0.041748046875, 0.0011720657348632812, 0.00432586669921875, -0.011199951171875, 0.0460205078125, -0.034454345703125, 0.0283050537109375, 0.056243896484375, -0.0643310546875, 0.06781005859375, 0.0282745361328125, 0.01221466064453125, 0.0169830322265625, -0.0246429443359375, -0.0005183219909667969, -0.0254364013671875, 0.0301971435546875, -0.00222015380859375, -0.0180511474609375, 0.0236663818359375, -0.0077362060546875, -0.0126800537109375, 0.0082855224609375, -0.021636962890625, -0.003208160400390625, 0.07061767578125, 0.046417236328125, -0.10797119140625, 0.0015840530395507812, 0.021575927734375, 0.0132904052734375, -0.00978851318359375, 0.00505828857421875, -0.0268096923828125, -0.046966552734375, 0.0222320556640625, 0.0015192031860351562, -0.005558013916015625, 0.013092041015625, 0.01934814453125, 0.018463134765625, 0.0097808837890625, 0.05999755859375, 0.0026378631591796875, -0.0802001953125, -0.028045654296875, 0.04052734375, -0.0328369140625, -0.0360107421875, -0.0197906494140625, 0.00739288330078125, -0.00034332275390625, -0.02191162109375, 0.0543212890625, -0.041656494140625, 0.06439208984375, 0.03802490234375, -0.004413604736328125, 0.019927978515625, 0.043304443359375, -0.006641387939453125, 0.0201873779296875, -0.007965087890625, -0.01317596435546875, 0.012939453125, -0.018585205078125, 0.00040149688720703125, -0.00846099853515625, -0.056243896484375, -0.0143585205078125, -0.042449951171875, 0.01128387451171875, -0.01375579833984375, 0.0007123947143554688, 0.02423095703125, 0.0200958251953125, -0.034423828125, 0.03485107421875, 0.03179931640625, -0.007625579833984375, 0.01323699951171875, 0.037445068359375, -0.03363037109375, -0.0191497802734375, 0.0301971435546875, -0.02935791015625, -0.0038471221923828125, 0.0240936279296875, -0.09814453125, 0.046905517578125, -0.0094146728515625, 0.0679931640625, 0.012969970703125, -0.0183868408203125, -0.00653076171875, -0.0274658203125, -0.0107421875, 0.0174102783203125, 0.0408935546875, 0.0268707275390625, 0.006946563720703125, -0.00991058349609375, 0.01410675048828125, 0.0474853515625, 0.0660400390625, 0.01210784912109375, -0.006633758544921875, 0.0347900390625, 0.07672119140625, 0.002391815185546875, -0.040496826171875, 0.051788330078125, -0.007843017578125, -0.0618896484375, 0.00001901388168334961, 0.00571441650390625, 0.008270263671875, -0.01177978515625, -0.005706787109375, 0.01172637939453125, 0.029052734375, 0.0243988037109375, -0.0172882080078125, 0.0273895263671875, -0.0030231475830078125, -0.0244598388671875, 0.01983642578125, -0.050079345703125, -0.007175445556640625, -0.0157470703125, -0.03619384765625, -0.00002950429916381836, 0.08526611328125, -0.0435791015625, 0.041748046875, 0.0023097991943359375, -0.004169464111328125, 0.0269317626953125, 0.0098724365234375, 0.060699462890625, -0.02288818359375, -0.00739288330078125, 0.0120391845703125, -0.000682830810546875, 0.02362060546875, 0.0032405853271484375, 0.017578125, -0.018280029296875, 0.065673828125, 0.01535797119140625, 0.0018672943115234375, -0.0382080078125, -0.026214599609375, 0.0035228729248046875, -0.013580322265625, 0.01303863525390625, -0.0269927978515625, 0.020416259765625, -0.012969970703125, -0.00004750490188598633, -0.032562255859375, 0.00968170166015625, 0.0517578125, -0.006046295166015625, 0.0029697418212890625, 0.00864410400390625, -0.039825439453125, 0.0220489501953125, -0.07745361328125, 0.06561279296875, 0.045196533203125, 0.1043701171875, -0.0039043426513671875, 0.07952880859375, -0.054046630859375, -0.06982421875, -0.00867462158203125, 0.0026874542236328125, -0.0477294921875, 0.0195159912109375, -0.055145263671875, -0.035858154296875, 0.005710601806640625, 0.055419921875, -0.01654052734375, 0.0263519287109375, 0.0201263427734375, 0.048675537109375, 0.01326751708984375, -0.01499176025390625, 0.06146240234375, -0.004924774169921875, 0.044586181640625, -0.0164642333984375, -0.00222015380859375, -0.038421630859375, -0.0306243896484375, -0.0300750732421875, 0.038604736328125, -0.0016069412231445312, -0.042327880859375, 0.042816162109375, -0.0116119384765625, -0.056365966796875, 0.0457763671875, -0.0242462158203125, 0.14013671875, 0.0003368854522705078, -0.09912109375, -0.0234527587890625, -0.0186309814453125, -0.0460205078125, 0.0308990478515625, 0.0548095703125, -0.040679931640625, 0.045318603515625, 0.005962371826171875, 0.03076171875, -0.012054443359375, -0.0270233154296875, 0.01308441162109375, -0.0309600830078125, 0.0237274169921875, 0.0170440673828125, -0.047271728515625, -0.00527191162109375, -0.00762176513671875, 0.001926422119140625, 0.0290679931640625, 0.032623291015625, 0.0207977294921875, 0.0284271240234375, -0.004123687744140625, 0.049041748046875, -0.03228759765625, -0.036407470703125, 0.08111572265625, -0.00859832763671875, 0.002471923828125, -0.01263427734375, 0.00998687744140625, -0.0284881591796875, 0.08404541015625, -0.0382080078125, -0.01654052734375, -0.015625, 0.03515625, -0.055572509765625, 0.044952392578125, -0.0181121826171875, -0.035888671875, -0.039642333984375, 0.002197265625, 0.01435089111328125, 0.013153076171875, -0.007709503173828125, 0.0367431640625, -0.0083465576171875, -0.03277587890625, -0.00032067298889160156, -0.0227203369140625, 0.01374053955078125, 0.0305328369140625, -0.017822265625, 0.00495147705078125, 0.0104217529296875, -0.0171966552734375, 0.00647735595703125, 0.0036773681640625, -0.0006551742553710938, 0.00836181640625, -0.06634521484375, 0.0235595703125, 0.01947021484375, -0.0020084381103515625, -0.052093505859375, -0.01470184326171875, 0.094482421875, -0.03173828125, -0.036651611328125, 0.0189208984375, -0.0279998779296875, -0.0100250244140625, -0.00003153085708618164, -0.01666259765625, 0.0231475830078125, -0.0268402099609375, -0.006725311279296875, -0.01270294189453125, 0.037841796875, -0.0020923614501953125, -0.0163421630859375, -0.0182037353515625, -0.031097412109375, 0.055206298828125, -0.0013217926025390625, -0.03863525390625, 0.0185089111328125, 0.039764404296875, -0.032012939453125, 0.0013608932495117188, -0.049713134765625, -0.049957275390625, -0.047454833984375, -0.0198822021484375, 0.0201568603515625, 0.005565643310546875, -0.039886474609375, -0.01186370849609375, -0.033172607421875, 0.047821044921875, -0.03631591796875, -0.0222625732421875, 0.042510986328125, -0.0217132568359375, -0.034637451171875, -0.035675048828125, 0.00930023193359375, -0.03509521484375, -0.01505279541015625, 0.0271453857421875, -0.02777099609375, 0.0025920867919921875, -0.052093505859375, -0.07196044921875, 0.031524658203125, 0.0122833251953125, -0.037139892578125, 0.0011768341064453125, -0.000029027462005615234, -0.028656005859375, 0.035980224609375, 0.0014600753784179688, 0.003170013427734375, 0.0129241943359375, 0.04559326171875, 0.00943756103515625, 0.01275634765625, 0.03839111328125, -0.01178741455078125, 0.023681640625, 0.03045654296875, 0.032012939453125, -0.0012922286987304688, -0.024383544921875, -0.01448822021484375, -0.0024776458740234375, 0.021270751953125, -0.0212860107421875, -0.050384521484375, 0.0176544189453125, 0.01204681396484375, 0.027374267578125, -0.0215911865234375, -0.04498291015625, -0.031768798828125, 0.040283203125, 0.031585693359375, 0.019561767578125, -0.006206512451171875, 0.0101776123046875, -0.004638671875, -0.0213623046875, 0.0294036865234375, 0.0201263427734375, -0.0478515625, 0.0023097991943359375, 0.041168212890625, -0.0321044921875, 0.0189208984375, 0.0423583984375, -0.0657958984375, 0.0276031494140625, 0.016082763671875, -0.0077972412109375, -0.0892333984375, -0.004058837890625, 0.008209228515625, -0.0138397216796875, -0.0193328857421875, -0.012481689453125, 0.01334381103515625, -0.0190887451171875, -0.031585693359375, 0.0262908935546875, 0.04327392578125, -0.055816650390625, -0.01372528076171875, 0.018768310546875, 0.0237579345703125, -0.020599365234375, -0.0121612548828125, -0.0294036865234375, 0.03619384765625, 0.01483917236328125, 0.039398193359375, 0.00021851062774658203, 0.01702880859375, 0.036956787109375, 0.055419921875, 0.0034198760986328125, -0.00891876220703125, -0.025115966796875, 0.03594970703125, -0.0289764404296875, 0.0015325546264648438, -0.02142333984375, -0.0087432861328125, -0.0027923583984375, 0.0022525787353515625, -0.02874755859375, -0.0290985107421875, 0.011016845703125, -0.001190185546875, -0.024169921875, 0.00482940673828125 ]
caa2dab355931b6281743bab21590116ab160381
Wordpress Stackexchange Q: plugins_url vs plugin_dir_url Im seeing WordPress plugins either use plugins_url or plugin_dir_url when creating constants to some of their folders. Is one better than the other? examples: define( 'MEMBERS_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) ); define( 'WPACCESS_INC', plugins_url( 'inc', __FILE__ ) , true ); A: Checkout - wp-includes/plugin.php#L585 plugin_dir_url() function internally uses plugins_url() to get the link to plugin directory. plugin_dir_url() This will return url of the plugin directory with a trailing slash at the end. So this can be easily used to link to the plugin directory. e.g - http://www.example.com/wp-content/plugins/foo/ plugins_url If no arguments are passed this will deliver the same result as the above function; but with or without a trailing slash at the end. This can be configured to link to files within plugin directory; a useful shortcut. e.g - plugins_url( 'img/bar.jpg' , __FILE__ ) will return a url like http://www.example.com/wp-content/plugins/foo/img/bar.jpg
Q: plugins_url vs plugin_dir_url Im seeing WordPress plugins either use plugins_url or plugin_dir_url when creating constants to some of their folders. Is one better than the other? examples: define( 'MEMBERS_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) ); define( 'WPACCESS_INC', plugins_url( 'inc', __FILE__ ) , true ); A: Checkout - wp-includes/plugin.php#L585 plugin_dir_url() function internally uses plugins_url() to get the link to plugin directory. plugin_dir_url() This will return url of the plugin directory with a trailing slash at the end. So this can be easily used to link to the plugin directory. e.g - http://www.example.com/wp-content/plugins/foo/ plugins_url If no arguments are passed this will deliver the same result as the above function; but with or without a trailing slash at the end. This can be configured to link to files within plugin directory; a useful shortcut. e.g - plugins_url( 'img/bar.jpg' , __FILE__ ) will return a url like http://www.example.com/wp-content/plugins/foo/img/bar.jpg
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:422866", "question_score": "20", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61679" }
[ 0.039154052734375, -0.04010009765625, -0.0021572113037109375, -0.055816650390625, -0.01385498046875, -0.003467559814453125, -0.01074981689453125, -0.005672454833984375, -0.0111236572265625, 0.005462646484375, 0.002803802490234375, -0.00012505054473876953, -0.0187835693359375, -0.041534423828125, -0.002338409423828125, -0.0282135009765625, 0.01544189453125, 0.0205841064453125, 0.0175323486328125, -0.0234832763671875, 0.0002884864807128906, -0.00403594970703125, -0.005802154541015625, 0.056060791015625, 0.0211944580078125, 0.00408935546875, 0.10601806640625, -0.0287017822265625, -0.006763458251953125, -0.0273590087890625, 0.01395416259765625, -0.011077880859375, 0.02386474609375, 0.025421142578125, 0.002227783203125, 0.02020263671875, 0.0184326171875, 0.0115509033203125, 0.022979736328125, 0.01331329345703125, 0.038909912109375, -0.0093536376953125, -0.0016918182373046875, 0.006938934326171875, -0.005340576171875, -0.055450439453125, 0.06329345703125, -0.010162353515625, 0.0022258758544921875, 0.0283203125, 0.031829833984375, 0.006999969482421875, 0.035186767578125, -0.0206298828125, -0.01483154296875, 0.001499176025390625, -0.012939453125, 0.0174560546875, 0.016845703125, -0.006099700927734375, -0.01212310791015625, 0.0073089599609375, 0.0137176513671875, 0.00847625732421875, -0.02630615234375, -0.004283905029296875, -0.0251312255859375, 0.02130126953125, -0.01165008544921875, -0.0240936279296875, 0.0084075927734375, -0.019195556640625, -0.009002685546875, 0.0178680419921875, -0.059967041015625, -0.006084442138671875, 0.024505615234375, -0.00847625732421875, 0.034454345703125, -0.0211639404296875, -0.018280029296875, -0.017120361328125, -0.04833984375, -0.02630615234375, 0.0231781005859375, 0.042144775390625, -0.01248931884765625, -0.016387939453125, -0.0213165283203125, 0.01556396484375, -0.02716064453125, 0.0099029541015625, 0.03466796875, -0.0296783447265625, -0.038482666015625, -0.0190277099609375, 0.01132965087890625, -0.0206756591796875, -0.0169830322265625, -0.021728515625, 0.02166748046875, -0.039886474609375, -0.0167694091796875, 0.006694793701171875, -0.01032257080078125, 0.076904296875, 0.0280303955078125, 0.0216827392578125, 0.00876617431640625, -0.006420135498046875, 0.0255584716796875, 0.01153564453125, -0.01239013671875, -0.040679931640625, -0.0036792755126953125, 0.005489349365234375, -0.0382080078125, 0.0135040283203125, 0.0141143798828125, -0.00740814208984375, -0.03460693359375, -0.01471710205078125, 0.04278564453125, 0.02447509765625, 0.002765655517578125, 0.01416015625, -0.00565338134765625, -0.037872314453125, -0.020660400390625, 0.0032749176025390625, -0.0092926025390625, 0.00992584228515625, 0.0362548828125, 0.0219573974609375, 0.00772857666015625, -0.004119873046875, 0.014007568359375, 0.00514984130859375, 0.00241851806640625, 0.004749298095703125, -0.0134429931640625, 0.00641632080078125, 0.038543701171875, -0.030120849609375, 0.0193328857421875, 0.0171966552734375, 0.022735595703125, 0.031280517578125, -0.0200958251953125, -0.043182373046875, 0.03558349609375, -0.00030040740966796875, 0.057220458984375, -0.0301361083984375, -0.041259765625, -0.04931640625, -0.013336181640625, -0.033203125, 0.0052642822265625, -0.025665283203125, 0.001373291015625, -0.012359619140625, -0.0158538818359375, -0.041290283203125, -0.043060302734375, -0.01074981689453125, -0.005039215087890625, -0.0038890838623046875, 0.021514892578125, 0.02728271484375, 0.0151519775390625, 0.004993438720703125, -0.0312347412109375, 0.03375244140625, 0.0208587646484375, 0.0207672119140625, -0.036376953125, 0.01074981689453125, 0.034393310546875, 0.043426513671875, 0.006671905517578125, -0.01302337646484375, 0.055999755859375, -0.00714111328125, -0.04150390625, 0.023834228515625, 0.005321502685546875, 0.034423828125, 0.01995849609375, -0.0001590251922607422, 0.0335693359375, 0.0231475830078125, -0.00963592529296875, -0.0089263916015625, -0.002899169921875, -0.025665283203125, 0.02154541015625, 0.0005321502685546875, -0.01134490966796875, 0.007793426513671875, 0.01499176025390625, -0.0020923614501953125, 0.009185791015625, 0.01004791259765625, -0.01424407958984375, 0.01393890380859375, -0.0120391845703125, 0.02960205078125, -0.01462554931640625, 0.0243377685546875, 0.00043010711669921875, 0.009307861328125, 0.0027637481689453125, -0.06622314453125, 0.01078033447265625, 0.04779052734375, -0.0110931396484375, 0.043060302734375, 0.0092010498046875, 0.049835205078125, 0.00681304931640625, -0.009765625, -0.00605010986328125, -0.024261474609375, 0.034088134765625, 0.013824462890625, -0.0282135009765625, -0.00917816162109375, 0.02032470703125, 0.0118560791015625, -0.03741455078125, 0.039215087890625, 0.027069091796875, 0.02154541015625, -0.0219879150390625, -0.020751953125, -0.004673004150390625, -0.07989501953125, 0.026336669921875, 0.0662841796875, 0.03948974609375, 0.00415802001953125, -0.040130615234375, -0.059478759765625, 0.0168304443359375, -0.047210693359375, 0.005718231201171875, -0.050811767578125, 0.0183563232421875, 0.00807952880859375, 0.0051727294921875, -0.035308837890625, 0.0088653564453125, -0.0036296844482421875, -0.00722503662109375, 0.0008120536804199219, -0.03277587890625, -0.05975341796875, 0.0140228271484375, 0.02020263671875, 0.00872039794921875, 0.0156402587890625, 0.0012102127075195312, 0.0076446533203125, -0.055023193359375, 0.025909423828125, -0.0062408447265625, 0.0301666259765625, -0.0163116455078125, 0.01194000244140625, 0.02130126953125, 0.040374755859375, -0.01195526123046875, 0.031951904296875, 0.075927734375, -0.057861328125, -0.031646728515625, -0.0163726806640625, 0.0131683349609375, 0.00611114501953125, -0.020050048828125, -0.00736236572265625, 0.005512237548828125, -0.0038051605224609375, -0.006237030029296875, -0.0400390625, 0.04534912109375, 0.034332275390625, -0.0019254684448242188, 0.02783203125, 0.0621337890625, 0.00383758544921875, -0.01062774658203125, 0.01125335693359375, -0.02099609375, -0.01313018798828125, 0.055999755859375, -0.012359619140625, 0.0247955322265625, -0.03375244140625, 0.036041259765625, 0.032073974609375, -0.0177001953125, -0.02392578125, 0.0081634521484375, -0.0032138824462890625, -0.00272369384765625, 0.005039215087890625, -0.0188140869140625, -0.0171966552734375, -0.0679931640625, -0.025634765625, 0.0265045166015625, -0.004428863525390625, 0.014373779296875, -0.034454345703125, -0.014373779296875, 0.0129852294921875, -0.09271240234375, -0.08544921875, -0.013153076171875, -0.062042236328125, 0.0357666015625, 0.03497314453125, -0.020477294921875, -0.033111572265625, 0.060516357421875, 0.023193359375, -0.0078125, -0.01090240478515625, -0.0794677734375, -0.061492919921875, -0.08868408203125, -0.003025054931640625, -0.02130126953125, 0.01532745361328125, 0.01361846923828125, -0.0010862350463867188, 0.0167083740234375, -0.0352783203125, 0.00347137451171875, 0.0745849609375, 0.01067352294921875, -0.0225372314453125, 0.009765625, 0.0120391845703125, -0.049591064453125, 0.0089569091796875, 0.07928466796875, 0.04144287109375, -0.06317138671875, 0.00891876220703125, -0.0014801025390625, -0.0015382766723632812, 0.036895751953125, -0.034515380859375, -0.018310546875, 0.01517486572265625, 0.02423095703125, -0.04730224609375, -0.00984954833984375, -0.04034423828125, -0.0523681640625, 0.0858154296875, 0.0265045166015625, 0.00005733966827392578, 0.0188140869140625, 0.0242156982421875, 0.00437164306640625, 0.0038299560546875, 0.0027332305908203125, -0.061065673828125, 0.052001953125, 0.01107025146484375, 0.037506103515625, -0.012542724609375, 0.07373046875, -0.00249481201171875, -0.02947998046875, 0.0150604248046875, 0.01580810546875, 0.0195159912109375, -0.037200927734375, -0.037750244140625, 0.00811004638671875, 0.0244903564453125, -0.039459228515625, 0.0295867919921875, -0.04498291015625, -0.004703521728515625, -0.070556640625, 0.007598876953125, -0.0439453125, -0.0231170654296875, 0.004001617431640625, 0.053924560546875, -0.045623779296875, -0.07470703125, -0.024383544921875, -0.02032470703125, -0.064208984375, 0.0033283233642578125, 0.01055908203125, -0.0404052734375, 0.0091094970703125, -0.01236724853515625, -0.0270538330078125, -0.0287628173828125, 0.026092529296875, -0.01424407958984375, 0.0100555419921875, 0.02032470703125, 0.021820068359375, -0.01198577880859375, -0.007228851318359375, -0.0300750732421875, -0.047210693359375, -0.0167999267578125, 0.0144500732421875, 0.03448486328125, 0.0029850006103515625, -0.0287017822265625, -0.0211181640625, 0.03961181640625, -0.0114593505859375, -0.02423095703125, 0.038116455078125, 0.031768798828125, -0.0279998779296875, 0.051177978515625, 0.052490234375, -0.00794219970703125, 0.024017333984375, -0.04827880859375, -0.1014404296875, -0.0496826171875, -0.0232696533203125, 0.0310211181640625, 0.02130126953125, -0.03558349609375, -0.0107574462890625, -0.006664276123046875, 0.0019083023071289062, -0.0006561279296875, 0.0180511474609375, -0.0316162109375, -0.00605010986328125, -0.0128021240234375, 0.0141448974609375, 0.00540924072265625, -0.00920867919921875, 0.002231597900390625, 0.0263214111328125, 0.030517578125, -0.025604248046875, -0.0052642822265625, 0.03277587890625, 0.03179931640625, 0.023834228515625, 0.044219970703125, 0.027008056640625, -0.019561767578125, 0.034088134765625, 0.019561767578125, 0.040496826171875, 0.011322021484375, 0.01398468017578125, -0.0104217529296875, -0.01436614990234375, 0.0110626220703125, -0.0031108856201171875, -0.04473876953125, 0.046295166015625, -0.0178375244140625, 0.0115966796875, -0.0301666259765625, -0.00044608116149902344, -0.01788330078125, 0.006961822509765625, -0.020660400390625, -0.046295166015625, 0.0243988037109375, 0.0283660888671875, 0.042083740234375, 0.0268707275390625, -0.017333984375, 0.040313720703125, 0.006694793701171875, -0.020599365234375, 0.079833984375, 0.074951171875, 0.0400390625, 0.0274658203125, 0.060028076171875, -0.01800537109375, -0.0208282470703125, 0.0034351348876953125, 0.00925445556640625, -0.00597381591796875, 0.0028057098388671875, -0.073486328125, -0.01447296142578125, 0.0081329345703125, -0.01727294921875, 0.0002002716064453125, 0.05316162109375, -0.004364013671875, -0.0164947509765625, -0.0279998779296875, -0.04168701171875, -0.0108489990234375, -0.05340576171875, 0.02496337890625, -0.00597381591796875, -0.00142669677734375, -0.00963592529296875, 0.07000732421875, -0.03759765625, 0.050079345703125, 0.0145263671875, -0.0130615234375, -0.034576416015625, 0.0438232421875, 0.0224609375, -0.0355224609375, -0.00951385498046875, 0.0243988037109375, 0.0225372314453125, -0.0382080078125, 0.010772705078125, 0.0304107666015625, 0.041107177734375, -0.0190582275390625, -0.049560546875, 0.012969970703125, -0.00588226318359375, -0.01904296875, 0.044525146484375, 0.01232147216796875, -0.015899658203125, -0.05023193359375, -0.016204833984375, 0.0794677734375, 0.005748748779296875, -0.036834716796875, 0.0143280029296875, -0.026641845703125, 0.004001617431640625, 0.0220947265625, -0.067138671875, 0.043914794921875, 0.0518798828125, 0.021636962890625, 0.007808685302734375, 0.0036220550537109375, -0.0292510986328125, 0.0086669921875, -0.0390625, -0.0175018310546875, 0.049957275390625, -0.04876708984375, 0.046295166015625, -0.042999267578125, -0.004062652587890625, -0.0194854736328125, 0.0158233642578125, 0.034912109375, 0.045379638671875, -0.07269287109375, 0.0328369140625, -0.038665771484375, 0.00864410400390625, 0.01490020751953125, -0.027069091796875, -0.040283203125, -0.041473388671875, 0.010833740234375, 0.02276611328125, 0.00994110107421875, 0.01288604736328125, -0.007625579833984375, -0.0026702880859375, -0.0001556873321533203, 0.009246826171875, 0.0033359527587890625, -0.0135955810546875, 0.027862548828125, 0.0286865234375, 0.0185546875, -0.02886962890625, -0.0224151611328125, -0.015777587890625, 0.006351470947265625, -0.005859375, -0.0078277587890625, -0.0288848876953125, 0.038330078125, -0.0136260986328125, 0.03326416015625, -0.00238037109375, -0.000576019287109375, 0.00728607177734375, -0.01015472412109375, -0.0223846435546875, 0.0199127197265625, 0.0308380126953125, 0.047637939453125, -0.036712646484375, -0.0081329345703125, -0.0007572174072265625, -0.0014705657958984375, 0.00908660888671875, -0.00385284423828125, 0.004390716552734375, 0.0023040771484375, -0.0008220672607421875, -0.055938720703125, 0.06060791015625, 0.09130859375, 0.0162506103515625, 0.061798095703125, 0.01013946533203125, 0.0137176513671875, 0.01678466796875, 0.0021381378173828125, 0.03515625, -0.00952911376953125, 0.09765625, 0.026458740234375, -0.0184478759765625, 0.07879638671875, -0.0391845703125, 0.0267181396484375, 0.0243988037109375, 0.0279541015625, -0.049102783203125, 0.0181427001953125, -0.00958251953125, 0.0008764266967773438, 0.0498046875, 0.007801055908203125, -0.025146484375, -0.0268707275390625, 0.0205230712890625, -0.0114288330078125, -0.01032257080078125, 0.0038051605224609375, 0.00655364990234375, -0.01168060302734375, 0.04193115234375, -0.00292205810546875, 0.0031795501708984375, -0.0380859375, -0.03216552734375, 0.0250396728515625, -0.040496826171875, 0.0181121826171875, -0.008758544921875, 0.0080108642578125, -0.0175323486328125, 0.007373809814453125, 0.027740478515625, -0.0394287109375, 0.004215240478515625, 0.05010986328125, -0.02490234375, 0.09906005859375, 0.041229248046875, 0.00875091552734375, -0.01520538330078125, 0.0108489990234375, 0.01328277587890625, 0.05535888671875, 0.01049041748046875, -0.022857666015625, 0.06988525390625, -0.017852783203125, -0.0167694091796875, 0.0021209716796875, 0.0491943359375, -0.01361083984375, -0.01471710205078125, 0.123291015625, -0.032684326171875, -0.0139617919921875, 0.01282501220703125, -0.0019178390502929688, 0.0025272369384765625, -0.00946807861328125, 0.00749969482421875, -0.042816162109375, -0.0271453857421875, -0.00667572021484375, -0.05133056640625, 0.0064849853515625, -0.04071044921875, -0.0210723876953125, 0.048553466796875, -0.0123443603515625, -0.0008687973022460938, -0.003475189208984375, 0.0181732177734375, 0.01910400390625, 0.0252227783203125, 0.006053924560546875, 0.033599853515625, -0.03515625, -0.0117645263671875, -0.018829345703125, 0.0088958740234375, -0.01332855224609375, 0.02301025390625, 0.08319091796875, 0.0228271484375, -0.0626220703125, -0.01538848876953125, 0.044769287109375, 0.01947021484375, 0.0031642913818359375, 0.05743408203125, 0.057159423828125, 0.020294189453125, 0.0699462890625, 0.0028324127197265625, 0.061004638671875, -0.042510986328125, 0.0245208740234375, 0.035614013671875, 0.00977325439453125, -0.0047454833984375, -0.0157470703125, 0.0097198486328125, -0.0289306640625, -0.00939178466796875, 0.021331787109375, -0.0243682861328125, 0.004680633544921875, 0.01544952392578125, 0.03173828125, -0.0007777214050292969, -0.01593017578125, 0.0029888153076171875, 0.05194091796875, 0.006317138671875, 0.01418304443359375, 0.00859832763671875, 0.00470733642578125, 0.038665771484375, -0.017730712890625, 0.0042724609375, 0.0124359130859375, -0.017913818359375, 0.045166015625, 0.0218048095703125, 0.018951416015625, -0.0093231201171875, 0.0261993408203125, 0.043487548828125, 0.04278564453125, -0.0435791015625, -0.0870361328125, -0.0162811279296875, -0.037139892578125, 0.02923583984375, 0.0261383056640625, 0.00649261474609375, -0.051849365234375, -0.0124053955078125, -0.050994873046875, 0.0156402587890625, 0.042449951171875, 0.0260467529296875, -0.024932861328125, -0.06524658203125, -0.021484375, 0.0192108154296875, -0.02008056640625, 0.038330078125, 0.00970458984375, 0.0205841064453125, -0.02276611328125, 0.032470703125, -0.01554107666015625, 0.000017642974853515625, -0.021881103515625, 0.071044921875, -0.0060577392578125, 0.00434112548828125, -0.051513671875, -0.06622314453125, 0.01470184326171875, 0.057037353515625, 0.036529541015625, 0.03570556640625, 0.0455322265625, 0.006137847900390625, -0.020111083984375, 0.01378631591796875, 0.04351806640625, -0.00586700439453125, 0.0567626953125, -0.033447265625, 0.06890869140625, 0.0177764892578125, 0.0020961761474609375, -0.00397491455078125, -0.03656005859375, 0.06756591796875, -0.041107177734375, 0.06085205078125, -0.005466461181640625, 0.007076263427734375, 0.03302001953125, -0.0401611328125, 0.036590576171875, -0.0225677490234375, -0.0421142578125, -0.01296234130859375, 0.0305023193359375, 0.001888275146484375, -0.0019931793212890625, 0.040283203125, -0.0016002655029296875, 0.0335693359375, 0.01178741455078125, 0.00440216064453125, 0.0155487060546875, -0.0311737060546875, 0.0082550048828125, -0.0186767578125, 0.0230712890625, -0.0012655258178710938, -0.0086517333984375, 0.0076446533203125, -0.0234832763671875, 0.044769287109375, 0.038360595703125, 0.068603515625, -0.050048828125, 0.0435791015625, 0.01308441162109375, -0.04107666015625, 0.0005092620849609375, 0.004886627197265625, 0.0128631591796875, -0.050994873046875, -0.0217742919921875, 0.0127410888671875, -0.012481689453125, -0.0249481201171875, 0.0259552001953125, -0.046722412109375, -0.021087646484375, -0.0272674560546875, 0.031646728515625, 0.01012420654296875, 0.032928466796875, -0.01104736328125, -0.049896240234375, -0.03662109375, 0.0007357597351074219, 0.04156494140625, 0.056427001953125, -0.037109375, 0.0023899078369140625, 0.02984619140625, -0.00821685791015625, 0.0223846435546875, 0.0050048828125, 0.055267333984375, 0.039764404296875, -0.04095458984375, -0.043670654296875, -0.0204315185546875, -0.0214996337890625, -0.00421142578125, -0.00211334228515625, 0.053009033203125, -0.0203399658203125, -0.0083160400390625, -0.0173797607421875, -0.0209808349609375, 0.0156707763671875, -0.02569580078125, 0.01120758056640625, -0.02880859375, 0.0301971435546875, -0.0021305084228515625, -0.061767578125, -0.0304412841796875, -0.03167724609375, -0.00273895263671875, 0.0097808837890625, -0.005153656005859375, -0.040283203125, -0.00821685791015625, 0.014007568359375, 0.02490234375, 0.0031261444091796875, -0.06036376953125, 0.022552490234375, -0.01412200927734375, 0.031524658203125, -0.0001913309097290039, 0.038818359375, -0.022003173828125, 0.0115966796875, -0.040771484375, -0.0367431640625, -0.031829833984375, 0.03533935546875, -0.0182647705078125, 0.036224365234375, 0.038482666015625, -0.0382080078125, -0.01256561279296875, 0.047454833984375, 0.041168212890625, 0.10540771484375, -0.0186767578125, -0.029205322265625, 0.01024627685546875, -0.0085906982421875, -0.03350830078125, -0.0028553009033203125, 0.00492095947265625, -0.005237579345703125, -0.0274810791015625, 0.0201568603515625, -0.03033447265625, -0.007904052734375, -0.039031982421875, -0.049560546875, 0.048583984375, 0.0018320083618164062, -0.02984619140625, -0.04168701171875, -0.007061004638671875, -0.002498626708984375, 0.051971435546875, -0.00496673583984375, -0.00418853759765625, -0.037689208984375, 0.0243377685546875, 0.040924072265625, 0.030792236328125, 0.038482666015625, 0.0142364501953125, 0.02911376953125, 0.023345947265625, 0.0225067138671875, 0.01084136962890625, 0.01274871826171875, -0.003173828125, 0.0312347412109375, 0.046173095703125, -0.01476287841796875, 0.013031005859375, -0.00009429454803466797, -0.03985595703125, -0.039642333984375, -0.0433349609375, 0.0219573974609375, 0.0164642333984375, 0.04766845703125, 0.042449951171875, -0.00382232666015625, -0.04888916015625, -0.03411865234375, -0.0253143310546875, 0.007038116455078125, -0.0194549560546875, -0.005008697509765625, -0.0394287109375, 0.0197906494140625, -0.01134490966796875, -0.01922607421875, -0.01184844970703125, 0.00534820556640625, -0.038787841796875, 0.0167388916015625, -0.0135040283203125, -0.033843994140625, 0.0124359130859375, 0.002155303955078125, 0.0435791015625, -0.0293426513671875, 0.01430511474609375, -0.01141357421875, 0.01300048828125, 0.025177001953125, -0.020904541015625, 0.023529052734375, 0.0478515625, -0.04193115234375, 0.003337860107421875, 0.028900146484375, 0.0296783447265625, -0.0283660888671875, -0.01493072509765625, 0.0241851806640625, 0.0252838134765625, -0.021820068359375, 0.006885528564453125, 0.00928497314453125, 0.057342529296875, -0.0083160400390625, 0.103759765625, 0.017120361328125, 0.00403594970703125, 0.01326751708984375, 0.024322509765625, -0.044281005859375, -0.01763916015625, -0.016265869140625, -0.045501708984375, -0.01446533203125, 0.01158905029296875, -0.01544189453125, -0.06591796875, 0.028717041015625, -0.0211181640625, 0.029541015625, 0.0201416015625 ]
03adf9df5260911e5333af4d86683b61c9990d70
Wordpress Stackexchange Q: Singular name Plugin localization I'm trying to localize the singular name of a custom post type. ... 'singular_name' => __('key', 'plugindomain') ... I created a .po and compiled it as .mo. I also loaded the translation using load_plugin_textdomain using the init action. // $directory plugin directory relative to plugins dir load_plugin_textdomain('plugindomain', false, $directory); The string are localized correctly in the backend sidebar. However, the strings are not translated in the frontend with: // $post_type returned from get_post_type_object echo $post_type->labels->singular_name; Am I doing something wrong? Edit Apparently the problem is related to Polylang. Strings are loaded before the multilanguage plugin mentioned sets the current language during the execution. Is there a way to trigger the registration of post types after the language changes made by Polylang have had their effect?
Q: Singular name Plugin localization I'm trying to localize the singular name of a custom post type. ... 'singular_name' => __('key', 'plugindomain') ... I created a .po and compiled it as .mo. I also loaded the translation using load_plugin_textdomain using the init action. // $directory plugin directory relative to plugins dir load_plugin_textdomain('plugindomain', false, $directory); The string are localized correctly in the backend sidebar. However, the strings are not translated in the frontend with: // $post_type returned from get_post_type_object echo $post_type->labels->singular_name; Am I doing something wrong? Edit Apparently the problem is related to Polylang. Strings are loaded before the multilanguage plugin mentioned sets the current language during the execution. Is there a way to trigger the registration of post types after the language changes made by Polylang have had their effect?
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:422874", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61697" }
[ 0.03314208984375, -0.0248260498046875, 0.0244598388671875, -0.031707763671875, -0.01611328125, 0.0006475448608398438, 0.0004260540008544922, -0.0087738037109375, -0.0027027130126953125, 0.039093017578125, 0.00787353515625, 0.0295257568359375, 0.00958251953125, -0.0203704833984375, 0.005542755126953125, -0.0010585784912109375, 0.00392913818359375, 0.0240325927734375, 0.0283355712890625, -0.022796630859375, 0.0155792236328125, -0.023406982421875, 0.01123809814453125, -0.0229949951171875, 0.069091796875, -0.049835205078125, 0.038238525390625, -0.0235748291015625, 0.026092529296875, -0.025054931640625, 0.047576904296875, 0.00408172607421875, 0.0191650390625, -0.001674652099609375, 0.0027065277099609375, -0.021942138671875, -0.00856781005859375, 0.00623321533203125, -0.002071380615234375, 0.01389312744140625, 0.0311279296875, -0.0311279296875, -0.0255279541015625, 0.03955078125, 0.0053863525390625, -0.054901123046875, 0.036407470703125, -0.0404052734375, 0.0174560546875, -0.025848388671875, 0.01111602783203125, -0.020233154296875, 0.0294036865234375, -0.03509521484375, -0.035125732421875, -0.015777587890625, -0.052947998046875, 0.039794921875, 0.0283203125, 0.04736328125, -0.001148223876953125, -0.0156402587890625, 0.00688934326171875, -0.04595947265625, -0.017669677734375, 0.01374053955078125, -0.042388916015625, -0.0004048347473144531, 0.006641387939453125, -0.00154876708984375, 0.0034942626953125, -0.019439697265625, 0.019317626953125, 0.0072479248046875, -0.001033782958984375, -0.032745361328125, -0.00399017333984375, 0.00525665283203125, 0.0217437744140625, 0.0008192062377929688, 0.04473876953125, 0.0002562999725341797, 0.0176849365234375, -0.0003399848937988281, -0.00246429443359375, 0.01078033447265625, -0.00817108154296875, -0.03216552734375, -0.0623779296875, -0.019683837890625, -0.04083251953125, -0.049072265625, -0.07196044921875, 0.01319122314453125, 0.013214111328125, -0.02069091796875, 0.0167236328125, 0.00616455078125, -0.0193023681640625, -0.0188751220703125, 0.0222320556640625, -0.054046630859375, 0.043731689453125, -0.0300445556640625, 0.025054931640625, 0.0186767578125, 0.002956390380859375, 0.0380859375, 0.06695556640625, 0.016265869140625, 0.01183319091796875, 0.057830810546875, 0.0078125, -0.01094818115234375, -0.0299224853515625, 0.017059326171875, -0.00983428955078125, 0.00916290283203125, 0.0151824951171875, 0.01210784912109375, 0.0234832763671875, 0.023773193359375, -0.0132293701171875, 0.01100921630859375, 0.01117706298828125, 0.00018703937530517578, -0.0295562744140625, -0.004665374755859375, 0.00754547119140625, 0.0247344970703125, -0.00988006591796875, 0.0184173583984375, 0.051544189453125, -0.01029205322265625, -0.0299072265625, -0.022430419921875, -0.00737762451171875, 0.013397216796875, 0.0022144317626953125, -0.0215606689453125, 0.01255035400390625, 0.0101318359375, 0.0185089111328125, 0.004650115966796875, -0.02227783203125, 0.00461578369140625, 0.006072998046875, 0.01093292236328125, -0.00502777099609375, -0.03228759765625, 0.004940032958984375, -0.0209808349609375, 0.0335693359375, 0.0377197265625, -0.0246429443359375, -0.010467529296875, 0.07586669921875, -0.05767822265625, -0.019744873046875, -0.0877685546875, 0.033416748046875, -0.032623291015625, -0.061065673828125, 0.00347900390625, -0.0303802490234375, 0.050323486328125, 0.01312255859375, 0.0122222900390625, 0.016021728515625, -0.0007615089416503906, -0.00887298583984375, 0.041717529296875, -0.0257568359375, -0.0006580352783203125, 0.004909515380859375, -0.00873565673828125, -0.035675048828125, 0.00647735595703125, 0.0302734375, -0.013519287109375, -0.0184783935546875, -0.03607177734375, 0.03173828125, 0.00865936279296875, -0.03271484375, -0.015899658203125, 0.0185546875, 0.00406646728515625, 0.031280517578125, 0.01024627685546875, 0.0255584716796875, 0.01495361328125, -0.07916259765625, 0.03118896484375, -0.0035724639892578125, 0.01299285888671875, 0.00878143310546875, 0.02667236328125, 0.001361846923828125, -0.037506103515625, -0.0279388427734375, -0.005306243896484375, 0.0081787109375, 0.0187835693359375, -0.01555633544921875, -0.0014257431030273438, -0.02093505859375, 0.02154541015625, 0.0305328369140625, -0.01288604736328125, 0.0010385513305664062, 0.0079498291015625, -0.0011110305786132812, -0.0265350341796875, -0.041168212890625, 0.037811279296875, -0.01102447509765625, 0.01043701171875, 0.00641632080078125, -0.015533447265625, 0.0284423828125, -0.027557373046875, 0.0255584716796875, 0.01910400390625, -0.005306243896484375, 0.04254150390625, -0.039703369140625, 0.0221099853515625, -0.00009435415267944336, 0.0189971923828125, 0.02447509765625, 0.0364990234375, -0.0136260986328125, 0.00537872314453125, -0.00579833984375, -0.0127105712890625, 0.015716552734375, -0.049774169921875, 0.03277587890625, 0.046234130859375, 0.023040771484375, 0.0060272216796875, 0.01107025146484375, 0.043182373046875, 0.014923095703125, -0.01062774658203125, 0.02410888671875, 0.0005788803100585938, 0.0281982421875, 0.04669189453125, -0.0252532958984375, -0.00507354736328125, 0.00849151611328125, -0.065673828125, 0.03607177734375, 0.027679443359375, -0.0450439453125, -0.09521484375, 0.043060302734375, 0.00830078125, 0.017791748046875, 0.0016880035400390625, -0.0115814208984375, 0.006256103515625, 0.006206512451171875, 0.030029296875, -0.00955963134765625, -0.002140045166015625, -0.058074951171875, 0.04168701171875, 0.03741455078125, -0.0219573974609375, 0.0009226799011230469, 0.0017843246459960938, 0.052276611328125, -0.00894927978515625, -0.03466796875, -0.0157318115234375, 0.03521728515625, 0.00615692138671875, -0.009368896484375, 0.02203369140625, -0.017242431640625, -0.01369476318359375, -0.00708770751953125, -0.05499267578125, 0.00931549072265625, 0.008331298828125, -0.025909423828125, -0.0132293701171875, 0.00004225969314575195, 0.042633056640625, -0.027923583984375, 0.030181884765625, 0.003955841064453125, -0.01490020751953125, 0.059112548828125, -0.06634521484375, 0.045806884765625, -0.0283050537109375, 0.083984375, 0.06988525390625, 0.01031494140625, 0.0063934326171875, 0.01160430908203125, -0.0172576904296875, 0.010345458984375, 0.01134490966796875, -0.00249481201171875, -0.0377197265625, -0.006046295166015625, 0.021728515625, -0.0053253173828125, 0.06707763671875, -0.044677734375, -0.07122802734375, -0.003971099853515625, 0.014373779296875, -0.054229736328125, -0.04302978515625, 0.00496673583984375, -0.0188751220703125, 0.01251983642578125, -0.0018053054809570312, -0.0009918212890625, -0.0164031982421875, -0.00125885009765625, -0.0022907257080078125, 0.0255126953125, -0.0145111083984375, -0.0628662109375, -0.06494140625, -0.0826416015625, -0.046051025390625, -0.0009918212890625, -0.0007824897766113281, 0.016998291015625, -0.042022705078125, 0.004962921142578125, -0.0178375244140625, 0.0390625, 0.073974609375, -0.0012760162353515625, 0.0084075927734375, -0.01291656494140625, 0.0032444000244140625, 0.036834716796875, 0.0006947517395019531, -0.05450439453125, 0.038421630859375, -0.020782470703125, -0.0260009765625, 0.02593994140625, 0.0269622802734375, 0.033233642578125, -0.02484130859375, -0.042388916015625, 0.04052734375, 0.0013227462768554688, -0.0288543701171875, -0.021881103515625, -0.01195526123046875, -0.033660888671875, -0.003353118896484375, 0.0081024169921875, 0.0002186298370361328, -0.032958984375, 0.04791259765625, -0.00852203369140625, -0.01177215576171875, 0.03106689453125, -0.01181793212890625, -0.0290069580078125, -0.00016748905181884766, -0.0221099853515625, -0.0019779205322265625, 0.016448974609375, -0.006610870361328125, -0.0280914306640625, -0.01270294189453125, 0.034149169921875, 0.01013946533203125, -0.006694793701171875, -0.03485107421875, -0.032867431640625, 0.029876708984375, -0.032745361328125, 0.0036220550537109375, -0.0090484619140625, -0.0174407958984375, -0.002643585205078125, 0.051300048828125, -0.038787841796875, -0.0026149749755859375, -0.0003800392150878906, 0.00803375244140625, -0.0183258056640625, -0.03961181640625, -0.045623779296875, -0.0089111328125, -0.03094482421875, 0.021697998046875, 0.0108795166015625, -0.015899658203125, -0.0161285400390625, 0.024261474609375, -0.031707763671875, -0.0185546875, 0.033111572265625, -0.052886962890625, 0.027862548828125, -0.0213165283203125, 0.0019741058349609375, -0.04388427734375, -0.007221221923828125, -0.049530029296875, -0.0657958984375, -0.0015840530395507812, -0.00382232666015625, 0.02685546875, -0.0009365081787109375, -0.0157318115234375, -0.0244140625, 0.031829833984375, -0.0159454345703125, 0.0102386474609375, 0.01070404052734375, 0.01111602783203125, 0.0440673828125, 0.037872314453125, 0.00794219970703125, 0.01055908203125, -0.0016727447509765625, 0.046234130859375, -0.048614501953125, 0.056243896484375, 0.005268096923828125, -0.0249176025390625, 0.04864501953125, -0.08184814453125, -0.048095703125, -0.0138702392578125, -0.01158905029296875, 0.012847900390625, -0.01406097412109375, 0.0003039836883544922, -0.0162200927734375, -0.055999755859375, 0.049896240234375, 0.0251312255859375, -0.004535675048828125, -0.0083770751953125, 0.07537841796875, 0.02203369140625, -0.037506103515625, -0.0438232421875, 0.01308441162109375, 0.03546142578125, 0.035858154296875, 0.0282745361328125, 0.03082275390625, -0.017791748046875, 0.0310516357421875, 0.0440673828125, -0.01824951171875, 0.0364990234375, 0.00014770030975341797, 0.004180908203125, -0.042266845703125, 0.023590087890625, -0.03570556640625, -0.0207672119140625, 0.0234527587890625, -0.0137786865234375, -0.02691650390625, 0.018585205078125, 0.05072021484375, -0.0643310546875, 0.05120849609375, -0.0299224853515625, -0.07403564453125, 0.046539306640625, -0.040924072265625, -0.0701904296875, -0.0251312255859375, 0.01050567626953125, -0.0186614990234375, -0.048828125, -0.024993896484375, 0.021575927734375, 0.0304107666015625, 0.040771484375, -0.00739288330078125, 0.041351318359375, -0.0220794677734375, -0.0335693359375, 0.0117034912109375, 0.037078857421875, -0.0026569366455078125, -0.04217529296875, -0.050506591796875, 0.0015087127685546875, 0.01177978515625, 0.004833221435546875, 0.062744140625, -0.0128021240234375, 0.007297515869140625, 0.034942626953125, 0.0019407272338867188, 0.0655517578125, 0.049072265625, 0.0035858154296875, -0.02880859375, 0.0222625732421875, -0.027801513671875, -0.0010385513305664062, 0.047515869140625, 0.01434326171875, 0.0019235610961914062, -0.013671875, 0.003757476806640625, 0.004329681396484375, 0.0516357421875, 0.040802001953125, -0.060302734375, -0.006366729736328125, 0.0170440673828125, -0.0191192626953125, -0.0245208740234375, 0.004550933837890625, -0.01007843017578125, 0.0176544189453125, -0.03436279296875, -0.016387939453125, 0.0538330078125, -0.00899505615234375, -0.01456451416015625, 0.055999755859375, -0.01177978515625, -0.086181640625, -0.022674560546875, 0.0243072509765625, 0.046051025390625, -0.042999267578125, 0.006198883056640625, 0.0067596435546875, -0.0223236083984375, -0.0243377685546875, -0.002285003662109375, -0.0269317626953125, -0.0188140869140625, -0.006229400634765625, -0.038970947265625, -0.0196380615234375, -0.00078582763671875, -0.006435394287109375, -0.01119232177734375, -0.00405120849609375, -0.0028324127197265625, 0.0026092529296875, 0.031005859375, 0.03509521484375, -0.0255889892578125, -0.0185394287109375, -0.01085662841796875, -0.01259613037109375, 0.043548583984375, -0.018157958984375, -0.0268707275390625, -0.0016641616821289062, -0.0298004150390625, -0.0212249755859375, 0.01483154296875, -0.0275115966796875, -0.0362548828125, -0.026947021484375, 0.0251617431640625, 0.0260772705078125, -0.0146331787109375, -0.043548583984375, -0.010467529296875, 0.00934600830078125, 0.01824951171875, 0.039947509765625, -0.03289794921875, 0.043487548828125, 0.036376953125, 0.01184844970703125, 0.007404327392578125, 0.033477783203125, -0.0119171142578125, -0.0009675025939941406, 0.004360198974609375, -0.0267486572265625, -0.033172607421875, -0.018096923828125, 0.00202178955078125, 0.0267181396484375, 0.03948974609375, -0.00946044921875, 0.00560760498046875, 0.023590087890625, 0.0160980224609375, 0.004199981689453125, -0.0283050537109375, 0.05328369140625, 0.0205078125, 0.0299530029296875, -0.070556640625, 0.0125732421875, 0.0265045166015625, 0.00606536865234375, 0.033782958984375, -0.055511474609375, 0.01021575927734375, 0.08184814453125, -0.027496337890625, 0.0059661865234375, 0.024871826171875, 0.03033447265625, 0.03179931640625, 0.00031304359436035156, 0.03131103515625, -0.00811767578125, -0.03265380859375, 0.03619384765625, 0.0162506103515625, 0.04254150390625, -0.02447509765625, -0.00801849365234375, 0.005092620849609375, -0.027313232421875, 0.029541015625, 0.0640869140625, 0.07568359375, -0.10528564453125, 0.02496337890625, 0.03900146484375, -0.01110076904296875, 0.0174102783203125, -0.0012912750244140625, 0.0172576904296875, 0.004413604736328125, 0.00879669189453125, 0.022857666015625, -0.01751708984375, 0.0080718994140625, -0.01041412353515625, 0.005779266357421875, -0.01058197021484375, 0.045806884765625, 0.01433563232421875, -0.00870513916015625, -0.00919342041015625, -0.007076263427734375, 0.006099700927734375, -0.04345703125, 0.00225067138671875, 0.0127716064453125, -0.0250701904296875, -0.062042236328125, 0.0258331298828125, -0.00946044921875, 0.006008148193359375, 0.030792236328125, 0.00286865234375, 0.004261016845703125, 0.047210693359375, -0.007106781005859375, -0.02520751953125, 0.005939483642578125, -0.018585205078125, 0.048187255859375, -0.0189056396484375, -0.02081298828125, 0.06475830078125, -0.053009033203125, -0.0004589557647705078, -0.005146026611328125, 0.03192138671875, -0.0159759521484375, -0.04736328125, 0.041290283203125, -0.005962371826171875, -0.0158233642578125, -0.0163421630859375, 0.0185699462890625, 0.042633056640625, -0.01531982421875, -0.0286407470703125, -0.06866455078125, -0.056121826171875, -0.0249786376953125, -0.07818603515625, 0.00933074951171875, -0.022308349609375, -0.09405517578125, 0.087158203125, 0.0084228515625, 0.06732177734375, -0.0117645263671875, 0.0174713134765625, 0.0019197463989257812, -0.0005474090576171875, -0.03289794921875, 0.0462646484375, -0.0189056396484375, 0.03680419921875, -0.054473876953125, 0.00115203857421875, 0.00708770751953125, 0.033477783203125, 0.038116455078125, 0.01447296142578125, -0.020050048828125, -0.00010561943054199219, 0.0190582275390625, 0.01141357421875, -0.01441192626953125, 0.035736083984375, 0.01522064208984375, 0.0083465576171875, 0.0145416259765625, 0.0262908935546875, 0.04833984375, -0.02264404296875, -0.04376220703125, 0.037506103515625, 0.010833740234375, -0.0114288330078125, -0.009246826171875, -0.0229949951171875, -0.073486328125, 0.00818634033203125, 0.043701171875, -0.005634307861328125, 0.0059967041015625, 0.03497314453125, 0.03826904296875, -0.0020503997802734375, 0.04248046875, -0.033477783203125, 0.059967041015625, 0.0029010772705078125, -0.016632080078125, 0.0002849102020263672, -0.00637054443359375, 0.0027980804443359375, -0.035552978515625, -0.04022216796875, -0.0037174224853515625, 0.0221710205078125, 0.01308441162109375, 0.0016145706176757812, 0.006046295166015625, -0.038818359375, 0.01155853271484375, 0.033843994140625, 0.032562255859375, -0.02911376953125, -0.0416259765625, 0.0200042724609375, 0.0231781005859375, -0.0030269622802734375, 0.0159149169921875, 0.005588531494140625, -0.0210418701171875, 0.04937744140625, -0.0055694580078125, -0.0010995864868164062, 0.01529693603515625, 0.0305023193359375, -0.002315521240234375, 0.01580810546875, -0.04656982421875, -0.0037212371826171875, -0.0295867919921875, 0.0238189697265625, 0.01462554931640625, 0.06451416015625, -0.022369384765625, 0.06103515625, -0.048828125, -0.01285552978515625, -0.00017321109771728516, 0.0211334228515625, 0.01445770263671875, -0.0029888153076171875, -0.03436279296875, -0.03619384765625, 0.0112762451171875, 0.027740478515625, 0.050018310546875, 0.025848388671875, 0.07257080078125, 0.06268310546875, 0.0007028579711914062, 0.001384735107421875, 0.040771484375, -0.0031070709228515625, -0.0293121337890625, -0.00875091552734375, -0.005939483642578125, 0.0027675628662109375, -0.005451202392578125, -0.008270263671875, 0.07086181640625, -0.0219573974609375, 0.010894775390625, 0.0498046875, 0.008514404296875, -0.041107177734375, 0.0276641845703125, -0.01299285888671875, 0.1480712890625, 0.0299224853515625, -0.041595458984375, 0.01114654541015625, -0.044281005859375, -0.05078125, -0.00264739990234375, 0.034271240234375, -0.0098419189453125, 0.0280914306640625, 0.022369384765625, -0.0292205810546875, 0.01629638671875, -0.00791168212890625, 0.05120849609375, 0.03607177734375, -0.00998687744140625, 0.0220489501953125, -0.05364990234375, -0.012786865234375, -0.01537322998046875, 0.01422119140625, 0.0218963623046875, 0.02880859375, 0.017364501953125, 0.0227203369140625, -0.05474853515625, 0.0223541259765625, -0.058258056640625, -0.044158935546875, -0.005214691162109375, 0.0021228790283203125, 0.0005083084106445312, 0.01535797119140625, -0.022735595703125, -0.0081787109375, 0.04248046875, -0.043243408203125, -0.03759765625, 0.03668212890625, 0.0170135498046875, -0.0123291015625, 0.0556640625, -0.0169830322265625, -0.06048583984375, -0.035797119140625, 0.017364501953125, 0.007587432861328125, 0.037628173828125, -0.0255279541015625, 0.0240020751953125, -0.0075531005859375, -0.053131103515625, 0.0281829833984375, -0.056915283203125, 0.006099700927734375, 0.0094451904296875, 0.033172607421875, -0.034820556640625, -0.0218963623046875, -0.022308349609375, -0.00885772705078125, 0.01210784912109375, 0.01404571533203125, 0.000942230224609375, 0.0128173828125, 0.037750244140625, -0.04931640625, 0.01136016845703125, -0.0285491943359375, -0.020263671875, 0.0302276611328125, 0.0360107421875, -0.0203399658203125, -0.052825927734375, -0.039398193359375, -0.08349609375, 0.013214111328125, 0.017333984375, -0.02569580078125, -0.0275726318359375, -0.0133056640625, -0.0335693359375, -0.006275177001953125, -0.03887939453125, 0.02337646484375, -0.039764404296875, -0.037353515625, -0.019775390625, -0.0498046875, -0.05157470703125, 0.0269012451171875, 0.06329345703125, -0.03619384765625, 0.019744873046875, -0.01447296142578125, -0.062042236328125, 0.0018033981323242188, 0.027984619140625, 0.0513916015625, -0.00608062744140625, -0.075927734375, 0.03424072265625, 0.00034356117248535156, 0.076171875, -0.0194244384765625, -0.018585205078125, 0.02593994140625, -0.01157379150390625, -0.044708251953125, -0.105224609375, 0.031524658203125, -0.12298583984375, -0.00310516357421875, -0.0159912109375, 0.0014133453369140625, -0.00027179718017578125, -0.041778564453125, -0.023681640625, 0.0294036865234375, 0.008056640625, -0.02325439453125, -0.041748046875, 0.008880615234375, 0.0128326416015625, 0.019744873046875, -0.01367950439453125, -0.029541015625, -0.05047607421875, 0.002346038818359375, -0.00750732421875, 0.04766845703125, 0.0161590576171875, -0.005889892578125, 0.03485107421875, 0.0308837890625, 0.04412841796875, -0.0168609619140625, 0.0188446044921875, 0.0005750656127929688, -0.0004665851593017578, 0.01377105712890625, -0.0740966796875, -0.0004506111145019531, -0.025909423828125, 0.045989990234375, -0.022369384765625, -0.059417724609375, -0.0128173828125, -0.00713348388671875, 0.06304931640625, 0.040069580078125, 0.001922607421875, -0.043243408203125, 0.035369873046875, -0.0300750732421875, -0.0589599609375, 0.02337646484375, 0.03436279296875, -0.050933837890625, 0.007740020751953125, 0.05279541015625, -0.00012242794036865234, 0.00022041797637939453, 0.0134735107421875, -0.012054443359375, -0.012176513671875, 0.01113128662109375, -0.02557373046875, -0.022796630859375, -0.01009368896484375, 0.01317596435546875, -0.00540924072265625, -0.0298309326171875, 0.005008697509765625, 0.01030731201171875, -0.026092529296875, 0.03460693359375, 0.004131317138671875, 0.0123748779296875, 0.00118255615234375, 0.0099334716796875, 0.0193328857421875, 0.0037212371826171875, 0.0142364501953125, -0.007686614990234375, -0.016693115234375, 0.0285491943359375, 0.01068878173828125, 0.028472900390625, -0.046905517578125, 0.0489501953125, 0.0138092041015625, 0.02935791015625, 0.0192718505859375, 0.0028781890869140625, -0.00891876220703125, 0.031402587890625, -0.00439453125, -0.02099609375, -0.0014505386352539062, -0.0208587646484375, 0.0245361328125, -0.007488250732421875, -0.0102081298828125, 0.00983428955078125, -0.0192413330078125, -0.028656005859375, -0.037750244140625, 0.00313568115234375 ]
af518673e9f620156c701da2390ce469c013a5a0
Wordpress Stackexchange Q: Match two posts in categories I have blog posts each having three or more categories. The issue is that I need to search related posts and I have to match at least two categories i.e. there must be two common categories. I am using this query: $args = wp_parse_args($args, array( 'showposts' => 10, 'post__not_in' => array($post_id), 'ignore_sticky_posts' => 1, 'category__in' => wp_get_post_categories($post->ID) )); $query = new WP_Query($args); I am trying category__in but it gives all posts which match even just one category. A: Perhaps try using 'category__and' instead? E.g. 'category__and' => array(1,3) http://codex.wordpress.org/Function_Reference/query_posts
Q: Match two posts in categories I have blog posts each having three or more categories. The issue is that I need to search related posts and I have to match at least two categories i.e. there must be two common categories. I am using this query: $args = wp_parse_args($args, array( 'showposts' => 10, 'post__not_in' => array($post_id), 'ignore_sticky_posts' => 1, 'category__in' => wp_get_post_categories($post->ID) )); $query = new WP_Query($args); I am trying category__in but it gives all posts which match even just one category. A: Perhaps try using 'category__and' instead? E.g. 'category__and' => array(1,3) http://codex.wordpress.org/Function_Reference/query_posts
wordpress
{ "language": "en", "length": 94, "provenance": "stackexchange_00019.jsonl.gz:422888", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61745" }
[ 0.0325927734375, -0.0141754150390625, 0.0016622543334960938, -0.014404296875, 0.00818634033203125, -0.0274505615234375, 0.04425048828125, -0.0152130126953125, -0.0196990966796875, 0.0221710205078125, -0.051605224609375, 0.0201263427734375, -0.035308837890625, -0.0022563934326171875, -0.00501251220703125, -0.058197021484375, 0.0241241455078125, -0.0171356201171875, 0.02337646484375, -0.01397705078125, 0.026763916015625, -0.0019245147705078125, 0.044708251953125, 0.04583740234375, 0.0489501953125, -0.00921630859375, 0.06585693359375, -0.0418701171875, 0.050262451171875, -0.01947021484375, 0.043853759765625, -0.038238525390625, 0.01531219482421875, -0.0026187896728515625, -0.0023517608642578125, -0.0126190185546875, 0.004512786865234375, -0.00725555419921875, -0.0019626617431640625, 0.04833984375, 0.0158843994140625, -0.0259552001953125, 0.029754638671875, -0.0018167495727539062, 0.015625, -0.022125244140625, 0.0265045166015625, -0.058563232421875, 0.04339599609375, -0.06805419921875, -0.017486572265625, -0.0123748779296875, 0.01018524169921875, -0.0670166015625, -0.0298614501953125, 0.00540924072265625, -0.007183074951171875, -0.0016355514526367188, 0.0526123046875, -0.031341552734375, -0.06170654296875, -0.052642822265625, 0.0384521484375, -0.03466796875, -0.0250396728515625, 0.0256805419921875, 0.04302978515625, -0.0012159347534179688, 0.006916046142578125, -0.03997802734375, -0.0082244873046875, -0.00130462646484375, -0.01873779296875, 0.00641632080078125, -0.0164794921875, -0.02227783203125, 0.0022411346435546875, -0.039459228515625, 0.006160736083984375, 0.04150390625, -0.0154571533203125, 0.00029921531677246094, -0.0382080078125, -0.006927490234375, -0.01264190673828125, -0.002513885498046875, -0.0182952880859375, -0.00232696533203125, -0.03424072265625, -0.04473876953125, -0.0187225341796875, -0.046051025390625, -0.10540771484375, 0.0416259765625, 0.032989501953125, -0.0238189697265625, 0.01654052734375, 0.0679931640625, -0.0277557373046875, 0.0075225830078125, -0.051055908203125, -0.013641357421875, -0.0256805419921875, -0.0244903564453125, 0.052032470703125, 0.06146240234375, -0.00499725341796875, 0.0220489501953125, 0.07904052734375, 0.0136260986328125, 0.0223388671875, 0.0687255859375, -0.0015878677368164062, -0.0171051025390625, -0.0216522216796875, 0.0201263427734375, -0.023345947265625, 0.01377105712890625, -0.004116058349609375, 0.00411224365234375, -0.015655517578125, 0.01373291015625, 0.01123809814453125, -0.034423828125, 0.00800323486328125, -0.0079193115234375, -0.0010976791381835938, -0.02484130859375, 0.01055145263671875, 0.005840301513671875, -0.0184326171875, 0.024169921875, 0.0279388427734375, 0.0006923675537109375, -0.0343017578125, -0.018463134765625, 0.0284881591796875, -0.0146026611328125, 0.015716552734375, -0.029998779296875, 0.0269775390625, -0.0080108642578125, 0.00711822509765625, 0.022491455078125, 0.048004150390625, 0.0038909912109375, 0.0099029541015625, 0.01210784912109375, 0.0169677734375, -0.018707275390625, 0.047332763671875, -0.045135498046875, 0.05413818359375, 0.009857177734375, -0.06640625, -0.018096923828125, -0.0061187744140625, -0.0198516845703125, -0.04254150390625, -0.055572509765625, 0.01172637939453125, 0.024169921875, 0.0498046875, -0.053619384765625, -0.058929443359375, -0.01551055908203125, -0.07000732421875, -0.0248870849609375, 0.00940704345703125, -0.039825439453125, -0.01251983642578125, 0.026214599609375, 0.0458984375, -0.005237579345703125, -0.00028014183044433594, -0.0086517333984375, -0.00800323486328125, -0.0087127685546875, 0.01308441162109375, 0.050262451171875, 0.0209197998046875, -0.005962371826171875, 0.0088653564453125, 0.0160980224609375, -0.038482666015625, 0.054412841796875, 0.01363372802734375, 0.041961669921875, -0.0231781005859375, 0.01056671142578125, 0.04620361328125, 0.043609619140625, -0.022796630859375, 0.01556396484375, -0.0184326171875, -0.050750732421875, 0.033172607421875, -0.0000514984130859375, 0.004909515380859375, 0.00537872314453125, 0.007602691650390625, 0.0022068023681640625, -0.018524169921875, 0.047149658203125, -0.0506591796875, 0.014129638671875, -0.0248870849609375, 0.0139007568359375, -0.0179595947265625, 0.0277252197265625, 0.01299285888671875, -0.0107421875, -0.0038776397705078125, -0.0240478515625, 0.008880615234375, 0.031463623046875, 0.0004391670227050781, -0.004241943359375, -0.0047607421875, -0.004962921142578125, -0.01013946533203125, -0.00981903076171875, -0.0160980224609375, 0.042388916015625, 0.0572509765625, -0.0124053955078125, -0.00725555419921875, -0.0244598388671875, 0.01556396484375, 0.046051025390625, -0.121826171875, -0.004730224609375, 0.09295654296875, 0.08917236328125, -0.0128631591796875, 0.0280303955078125, 0.06390380859375, 0.0298004150390625, -0.01922607421875, 0.0025615692138671875, 0.033599853515625, -0.002010345458984375, -0.0200347900390625, -0.02886962890625, 0.05413818359375, -0.05743408203125, -0.0024890899658203125, -0.0160064697265625, 0.017730712890625, 0.06866455078125, 0.0101318359375, 0.00848388671875, 0.0146026611328125, -0.0229339599609375, 0.025054931640625, 0.0197601318359375, -0.01435089111328125, 0.004077911376953125, -0.0258331298828125, -0.0011148452758789062, 0.00302886962890625, -0.038848876953125, -0.021148681640625, -0.01181793212890625, 0.04638671875, -0.0021877288818359375, 0.039520263671875, 0.0215911865234375, -0.0302276611328125, 0.0087127685546875, 0.007328033447265625, -0.01445770263671875, 0.0024204254150390625, 0.0169219970703125, 0.006256103515625, 0.01554107666015625, -0.041748046875, 0.00736236572265625, 0.0290374755859375, 0.0003018379211425781, 0.0035533905029296875, 0.037994384765625, 0.0055694580078125, -0.004123687744140625, -0.02191162109375, -0.04229736328125, 0.01157379150390625, 0.0148468017578125, -0.036346435546875, -0.0203857421875, 0.012939453125, 0.03167724609375, 0.00884246826171875, 0.00978851318359375, -0.0140228271484375, -0.00498199462890625, -0.0176849365234375, -0.053009033203125, 0.043701171875, -0.042022705078125, 0.017669677734375, 0.06787109375, 0.004840850830078125, -0.00275421142578125, 0.01270294189453125, 0.016448974609375, 0.0113525390625, 0.028472900390625, 0.0078125, -0.00016999244689941406, -0.0310516357421875, 0.01116180419921875, 0.0294952392578125, 0.032562255859375, 0.045562744140625, -0.022705078125, 0.02264404296875, 0.03607177734375, -0.062347412109375, -0.08673095703125, 0.0257110595703125, -0.0282745361328125, -0.006008148193359375, 0.002758026123046875, -0.01430511474609375, -0.0156707763671875, 0.0023517608642578125, -0.0149383544921875, 0.0261688232421875, -0.03082275390625, -0.09454345703125, -0.0531005859375, -0.075439453125, 0.021240234375, -0.01552581787109375, -0.00469207763671875, 0.016387939453125, 0.069091796875, 0.0232086181640625, -0.047607421875, 0.03125, 0.017913818359375, -0.0272064208984375, 0.031097412109375, -0.0068206787109375, 0.0243988037109375, -0.0159454345703125, 0.0147552490234375, 0.0167236328125, 0.01425933837890625, -0.030853271484375, -0.00585174560546875, 0.006809234619140625, 0.038360595703125, 0.03900146484375, -0.00713348388671875, -0.016021728515625, 0.089599609375, 0.0404052734375, 0.015838623046875, 0.017822265625, -0.0246734619140625, -0.017974853515625, -0.032318115234375, 0.02728271484375, -0.01904296875, -0.04302978515625, -0.029144287109375, -0.0068206787109375, -0.018951416015625, -0.0286102294921875, -0.043609619140625, 0.08612060546875, 0.01568603515625, 0.0367431640625, 0.002208709716796875, -0.061187744140625, -0.052276611328125, -0.01435089111328125, -0.06378173828125, -0.0223846435546875, -0.041595458984375, 0.051849365234375, -0.035675048828125, -0.0117950439453125, 0.037872314453125, 0.039520263671875, 0.056182861328125, -0.03863525390625, -0.05224609375, -0.049041748046875, 0.0753173828125, -0.060272216796875, -0.0400390625, -0.0276641845703125, 0.0242919921875, 0.005458831787109375, -0.07275390625, 0.0294036865234375, -0.034881591796875, -0.037384033203125, -0.022369384765625, -0.0281829833984375, -0.0187225341796875, -0.0186614990234375, 0.0389404296875, -0.0203857421875, -0.033172607421875, 0.041412353515625, -0.047332763671875, 0.019866943359375, -0.0013227462768554688, 0.01483917236328125, -0.04736328125, -0.0380859375, 0.005695343017578125, -0.035064697265625, -0.011444091796875, 0.004779815673828125, 0.0002084970474243164, -0.016387939453125, 0.004421234130859375, -0.00479888916015625, 0.022735595703125, 0.02716064453125, 0.040130615234375, -0.007793426513671875, -0.02789306640625, -0.0014514923095703125, 0.014129638671875, 0.01012420654296875, -0.007633209228515625, -0.0212860107421875, -0.02813720703125, -0.006511688232421875, -0.00826263427734375, -0.0252227783203125, -0.0211639404296875, -0.006443023681640625, -0.0216522216796875, -0.051422119140625, -0.0077667236328125, 0.004367828369140625, 0.01123046875, -0.035125732421875, 0.0156402587890625, -0.0003063678741455078, -0.056488037109375, 0.033966064453125, 0.051513671875, -0.0136260986328125, 0.00135040283203125, 0.06402587890625, 0.0157623291015625, -0.035797119140625, -0.076416015625, -0.032012939453125, 0.0307464599609375, -0.0032520294189453125, 0.0303192138671875, 0.01334381103515625, -0.0278778076171875, 0.058258056640625, 0.003887176513671875, 0.0172271728515625, -0.01898193359375, 0.0308837890625, -0.00287628173828125, -0.0095977783203125, -0.0003304481506347656, -0.0218505859375, 0.020843505859375, 0.0222930908203125, 0.00023627281188964844, -0.0305938720703125, 0.006683349609375, 0.0283660888671875, -0.00177001953125, -0.0141754150390625, -0.026336669921875, -0.01396942138671875, 0.01084136962890625, 0.0171051025390625, 0.04193115234375, 0.038482666015625, -0.018310546875, 0.0350341796875, 0.0306396484375, -0.019439697265625, 0.035125732421875, 0.031036376953125, -0.0152435302734375, 0.018341064453125, -0.0023136138916015625, -0.0496826171875, 0.01513671875, 0.0139007568359375, 0.00311279296875, 0.01325225830078125, -0.0094451904296875, -0.014739990234375, 0.006237030029296875, 0.004150390625, -0.01198577880859375, -0.0137786865234375, 0.046112060546875, 0.014251708984375, -0.006656646728515625, -0.004364013671875, -0.0305633544921875, -0.045867919921875, -0.042816162109375, -0.039093017578125, -0.00444793701171875, -0.00409698486328125, 0.03436279296875, 0.044921875, 0.006519317626953125, 0.0518798828125, -0.0450439453125, 0.0027313232421875, -0.01049041748046875, 0.042022705078125, 0.0308990478515625, -0.04119873046875, 0.002674102783203125, -0.0032939910888671875, -0.000701904296875, -0.050994873046875, -0.02581787109375, -0.0004162788391113281, 0.03607177734375, -0.004974365234375, -0.01074981689453125, 0.0450439453125, 0.00971221923828125, -0.0166473388671875, -0.0209808349609375, 0.0174407958984375, 0.0400390625, -0.0316162109375, -0.03656005859375, 0.012420654296875, 0.040008544921875, -0.014984130859375, 0.00902557373046875, -0.06024169921875, -0.0101165771484375, -0.0005502700805664062, -0.0161590576171875, -0.02020263671875, -0.0053558349609375, -0.038726806640625, -0.0226593017578125, -0.0095367431640625, 0.015716552734375, -0.033782958984375, 0.008880615234375, -0.020599365234375, 0.0276336669921875, -0.008453369140625, 0.046722412109375, -0.0189361572265625, -0.035064697265625, 0.023406982421875, 0.0093231201171875, 0.05877685546875, 0.0282135009765625, -0.045379638671875, 0.0013570785522460938, -0.0345458984375, -0.0102386474609375, 0.013336181640625, -0.02996826171875, -0.0228271484375, -0.0181732177734375, 0.0289764404296875, 0.03900146484375, 0.0162200927734375, -0.0030460357666015625, -0.039886474609375, -0.01739501953125, 0.00736236572265625, 0.0217132568359375, -0.017730712890625, 0.01062774658203125, 0.03546142578125, 0.034454345703125, -0.01380157470703125, -0.0035953521728515625, -0.00600433349609375, -0.0244598388671875, -0.00992584228515625, -0.09930419921875, -0.0031681060791015625, 0.05218505859375, -0.0703125, 0.0201873779296875, -0.0019931793212890625, 0.01175689697265625, -0.003360748291015625, -0.026397705078125, 0.01007080078125, -0.0062255859375, 0.004817962646484375, -0.01502227783203125, -0.03363037109375, 0.06524658203125, -0.005523681640625, 0.032012939453125, -0.0218353271484375, -0.0169525146484375, -0.006439208984375, -0.0192718505859375, 0.0036563873291015625, 0.039886474609375, -0.00487518310546875, 0.0026187896728515625, -0.01070404052734375, 0.018585205078125, 0.00568389892578125, 0.01355743408203125, 0.0217132568359375, -0.044891357421875, -0.01262664794921875, 0.051025390625, 0.0330810546875, 0.0276336669921875, -0.032867431640625, 0.0083465576171875, -0.0115509033203125, -0.030609130859375, -0.044342041015625, -0.002429962158203125, -0.006908416748046875, -0.0185089111328125, -0.01129150390625, -0.004596710205078125, 0.00897979736328125, -0.00893402099609375, 0.0131072998046875, -0.036285400390625, -0.026458740234375, -0.010589599609375, -0.037506103515625, -0.050384521484375, -0.0202484130859375, 0.0156402587890625, -0.0135040283203125, 0.004367828369140625, 0.00815582275390625, 0.0200653076171875, -0.044952392578125, 0.0149078369140625, 0.054962158203125, -0.0044403076171875, 0.004589080810546875, -0.01042938232421875, 0.038970947265625, -0.05255126953125, -0.08135986328125, 0.0195770263671875, -0.0130615234375, -0.043060302734375, -0.0011625289916992188, -0.023712158203125, 0.034515380859375, 0.05126953125, -0.019561767578125, 0.00860595703125, 0.0028533935546875, 0.0036067962646484375, -0.0066986083984375, 0.01325225830078125, 0.025299072265625, 0.039398193359375, -0.054534912109375, 0.0095367431640625, -0.04095458984375, 0.0280303955078125, -0.00870513916015625, -0.01313018798828125, 0.058868408203125, -0.05902099609375, 0.01467132568359375, 0.036407470703125, 0.050811767578125, -0.004917144775390625, -0.005084991455078125, 0.0011196136474609375, -0.02154541015625, -0.0106201171875, -0.006961822509765625, -0.0177764892578125, 0.0031871795654296875, -0.022918701171875, -0.07342529296875, -0.0023193359375, 0.0014200210571289062, 0.054290771484375, 0.012664794921875, -0.034149169921875, 0.005825042724609375, -0.042022705078125, -0.0264434814453125, 0.0736083984375, -0.009429931640625, 0.03729248046875, -0.051422119140625, -0.0134735107421875, 0.01395416259765625, 0.033416748046875, 0.04833984375, -0.005031585693359375, -0.0264129638671875, -0.042236328125, 0.0189056396484375, 0.06591796875, 0.017364501953125, 0.0139923095703125, 0.0208282470703125, -0.003986358642578125, 0.034698486328125, 0.0043182373046875, 0.053558349609375, -0.0275726318359375, 0.006633758544921875, 0.033172607421875, 0.005992889404296875, 0.0211334228515625, -0.01824951171875, 0.041290283203125, -0.01495361328125, -0.0201568603515625, 0.01293182373046875, -0.0400390625, 0.018707275390625, 0.044769287109375, 0.041534423828125, -0.054229736328125, 0.0022487640380859375, -0.042633056640625, 0.044921875, -0.0033779144287109375, 0.058319091796875, 0.0021266937255859375, 0.01312255859375, 0.0716552734375, 0.002826690673828125, 0.027679443359375, 0.038299560546875, -0.051483154296875, 0.05035400390625, 0.049713134765625, 0.0298004150390625, -0.0217132568359375, -0.0279541015625, 0.053314208984375, 0.067138671875, -0.0341796875, -0.045867919921875, 0.016571044921875, 0.0223541259765625, -0.012420654296875, 0.00972747802734375, -0.01544952392578125, 0.0003285408020019531, 0.0743408203125, -0.038360595703125, -0.01142120361328125, 0.015625, -0.01129150390625, -0.017608642578125, -0.012969970703125, 0.006378173828125, 0.006328582763671875, -0.02093505859375, 0.048431396484375, 0.017303466796875, 0.04248046875, -0.01178741455078125, 0.0465087890625, -0.081787109375, -0.0034961700439453125, 0.0196075439453125, 0.0276641845703125, -0.00922393798828125, -0.02191162109375, -0.0284576416015625, -0.06976318359375, 0.00225830078125, 0.044097900390625, 0.017364501953125, 0.00876617431640625, 0.037841796875, 0.050140380859375, -0.0162200927734375, -0.005390167236328125, 0.04559326171875, -0.009307861328125, -0.007167816162109375, -0.04180908203125, -0.0032253265380859375, 0.00833892822265625, -0.01513671875, -0.005626678466796875, 0.01113128662109375, 0.0162506103515625, 0.0137176513671875, -0.01256561279296875, 0.03070068359375, -0.029296875, 0.005382537841796875, 0.0265045166015625, 0.01093292236328125, 0.049285888671875, -0.0716552734375, -0.01052093505859375, -0.04693603515625, -0.06689453125, 0.05499267578125, 0.04693603515625, -0.0169525146484375, -0.00007492303848266602, 0.045684814453125, -0.04840087890625, -0.0205841064453125, 0.026123046875, 0.0272979736328125, -0.027496337890625, -0.01146697998046875, 0.0034122467041015625, -0.005096435546875, 0.002895355224609375, 0.039398193359375, 0.01181793212890625, -0.0002601146697998047, 0.0152435302734375, 0.0161895751953125, 0.0014905929565429688, -0.018218994140625, 0.052398681640625, -0.06634521484375, -0.0206298828125, 0.0362548828125, -0.0187225341796875, 0.0018301010131835938, 0.01090240478515625, 0.06787109375, 0.02069091796875, 0.057830810546875, -0.048004150390625, -0.007488250732421875, -0.032012939453125, -0.0009255409240722656, -0.03656005859375, 0.00177001953125, -0.021484375, -0.00437164306640625, -0.067626953125, -0.041900634765625, 0.055206298828125, 0.0087127685546875, -0.0212860107421875, 0.0230712890625, 0.015594482421875, -0.005340576171875, 0.0147552490234375, -0.00028228759765625, 0.0183868408203125, 0.04071044921875, -0.008331298828125, 0.01309967041015625, -0.0002968311309814453, -0.0196990966796875, 0.0011777877807617188, 0.01019287109375, -0.01125335693359375, -0.0239715576171875, -0.01262664794921875, 0.0009851455688476562, 0.05914306640625, 0.046112060546875, -0.0028362274169921875, 0.0274505615234375, 0.0140228271484375, -0.0294189453125, 0.0335693359375, -0.015533447265625, -0.03826904296875, -0.037017822265625, -0.00653839111328125, 0.0052642822265625, -0.01611328125, -0.053924560546875, -0.044219970703125, 0.004913330078125, 0.0198974609375, -0.0159454345703125, 0.0085296630859375, 0.0238189697265625, -0.058624267578125, -0.015716552734375, -0.00968170166015625, -0.043670654296875, 0.00479888916015625, 0.0269317626953125, -0.0202789306640625, 0.0133819580078125, -0.037872314453125, -0.0341796875, -0.0264892578125, 0.0207672119140625, 0.037567138671875, -0.032867431640625, -0.0180206298828125, 0.0276641845703125, 0.0386962890625, 0.061553955078125, 0.0093841552734375, -0.00940704345703125, 0.0137939453125, 0.0163726806640625, -0.0467529296875, -0.00600433349609375, 0.044525146484375, -0.0150146484375, -0.0255279541015625, -0.01280975341796875, 0.0232391357421875, 0.03143310546875, -0.02813720703125, -0.0789794921875, 0.08551025390625, -0.0287628173828125, -0.02880859375, -0.0880126953125, -0.005519866943359375, 0.01093292236328125, -0.00856781005859375, -0.037109375, -0.0127410888671875, -0.059051513671875, 0.035858154296875, 0.01323699951171875, -0.007724761962890625, 0.0190887451171875, -0.0115509033203125, -0.06488037109375, 0.0222015380859375, 0.01332855224609375, 0.01117706298828125, 0.006526947021484375, 0.004302978515625, 0.016815185546875, 0.05657958984375, -0.02691650390625, -0.001453399658203125, -0.0170745849609375, -0.033721923828125, 0.037841796875, -0.020111083984375, -0.0753173828125, -0.044586181640625, 0.0292205810546875, 0.0208282470703125, 0.02655029296875, 0.0048980712890625, -0.0115966796875, -0.0248870849609375, -0.01392364501953125, -0.005168914794921875, 0.01152801513671875, -0.0408935546875, 0.012054443359375, -0.0074462890625, -0.007503509521484375, -0.01268768310546875, -0.0192718505859375, -0.0308074951171875, -0.020599365234375, -0.0164337158203125, 0.0014438629150390625, -0.017242431640625, 0.046234130859375, -0.00567626953125, -0.0149688720703125, -0.026763916015625, -0.0272674560546875, -0.0006165504455566406, -0.03350830078125, -0.031585693359375, 0.0244140625, 0.0029201507568359375, 0.0014286041259765625, 0.00213623046875, 0.0289306640625, -0.028778076171875, 0.0211639404296875, -0.012939453125, -0.0259857177734375, 0.00751495361328125, 0.011383056640625, -0.0036983489990234375, -0.0192718505859375, -0.0143890380859375, 0.00807952880859375, 0.0273590087890625, 0.0234527587890625, -0.042724609375, 0.006809234619140625, 0.03192138671875, -0.01451873779296875, -0.035552978515625, 0.0148468017578125, -0.04779052734375, -0.003009796142578125, 0.01198577880859375, -0.0022125244140625, -0.03509521484375, 0.020477294921875, 0.0560302734375, 0.0109710693359375, 0.0186309814453125 ]
93e38eb7f11b321f9bec02d01cab72df613da2ce
Wordpress Stackexchange Q: How to display term description in empty terms archive? I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least one post is using it # Filters seems the best thing but I can't find the right one. Thanks for any idea.
Q: How to display term description in empty terms archive? I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least one post is using it # Filters seems the best thing but I can't find the right one. Thanks for any idea.
wordpress
{ "language": "en", "length": 70, "provenance": "stackexchange_00019.jsonl.gz:422919", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61869" }
[ 0.039306640625, 0.011810302734375, -0.0014400482177734375, -0.0012273788452148438, 0.007770538330078125, -0.0309295654296875, 0.0241241455078125, -0.03631591796875, 0.043853759765625, 0.02569580078125, -0.064453125, -0.0338134765625, -0.0022144317626953125, -0.006656646728515625, -0.0621337890625, -0.05975341796875, 0.0261688232421875, 0.0030422210693359375, 0.0250701904296875, -0.0033512115478515625, 0.00007200241088867188, 0.023193359375, 0.01554107666015625, -0.02880859375, -0.01045989990234375, -0.00498199462890625, 0.08856201171875, -0.042388916015625, 0.006870269775390625, -0.0289459228515625, 0.00450897216796875, 0.0165863037109375, -0.0024852752685546875, -0.005405426025390625, 0.05401611328125, 0.01080322265625, 0.008453369140625, 0.005218505859375, 0.017547607421875, 0.00849151611328125, 0.0447998046875, -0.0318603515625, 0.049835205078125, -0.0188446044921875, 0.04107666015625, 0.0164337158203125, 0.01161956787109375, -0.077880859375, -0.016632080078125, -0.054229736328125, 0.04241943359375, 0.0258636474609375, 0.06414794921875, -0.032745361328125, -0.0135650634765625, 0.0178070068359375, 0.0164947509765625, -0.0024089813232421875, 0.032928466796875, -0.054046630859375, -0.04168701171875, -0.01568603515625, 0.03314208984375, 0.0117950439453125, 0.036041259765625, 0.0022125244140625, -0.019622802734375, 0.039642333984375, -0.0273895263671875, 0.034393310546875, 0.0184478759765625, -0.049713134765625, 0.0277099609375, -0.0171966552734375, 0.0185546875, -0.050018310546875, 0.006473541259765625, -0.034210205078125, 0.0223846435546875, 0.0138092041015625, 0.00717926025390625, -0.0396728515625, -0.029449462890625, -0.0001938343048095703, 0.0020847320556640625, 0.01922607421875, 0.002338409423828125, -0.013427734375, -0.0157012939453125, -0.010772705078125, 0.0084686279296875, -0.038177490234375, -0.04559326171875, 0.0302581787109375, 0.0302581787109375, -0.034942626953125, 0.0160675048828125, 0.06732177734375, -0.036834716796875, 0.007049560546875, -0.051910400390625, -0.0009899139404296875, -0.01087188720703125, -0.029266357421875, 0.00972747802734375, -0.002460479736328125, 0.006855010986328125, -0.01065826416015625, 0.04022216796875, 0.02423095703125, -0.01080322265625, 0.043182373046875, 0.01459503173828125, 0.016143798828125, -0.022796630859375, -0.0201263427734375, -0.0231475830078125, 0.041107177734375, -0.01016998291015625, 0.040924072265625, 0.027252197265625, 0.02972412109375, 0.01407623291015625, 0.04132080078125, -0.037994384765625, -0.0112457275390625, -0.002674102783203125, -0.057220458984375, 0.04364013671875, 0.000042438507080078125, -0.0242919921875, 0.01366424560546875, 0.019134521484375, -0.005962371826171875, -0.0198974609375, -0.007175445556640625, 0.00586700439453125, -0.0212860107421875, 0.0036792755126953125, -0.006214141845703125, 0.016387939453125, 0.0012445449829101562, 0.0171661376953125, 0.00243377685546875, -0.01531219482421875, 0.0229949951171875, 0.0212249755859375, 0.0234222412109375, -0.00901031494140625, -0.054595947265625, -0.00048542022705078125, -0.0097808837890625, 0.048980712890625, 0.00506591796875, -0.036224365234375, -0.026123046875, 0.048004150390625, -0.042633056640625, -0.049102783203125, -0.0472412109375, 0.037811279296875, -0.004886627197265625, -0.042572021484375, -0.0044097900390625, -0.02734375, -0.0120697021484375, 0.01213836669921875, 0.008331298828125, 0.0254669189453125, 0.018890380859375, -0.00017654895782470703, -0.00748443603515625, 0.018585205078125, 0.00897216796875, -0.0145721435546875, 0.005626678466796875, -0.033660888671875, -0.02685546875, 0.0380859375, -0.0113677978515625, -0.01393890380859375, -0.022552490234375, 0.02752685546875, 0.00260162353515625, -0.051727294921875, 0.03564453125, -0.0004508495330810547, 0.051239013671875, 0.0265350341796875, 0.007610321044921875, 0.0396728515625, -0.003948211669921875, -0.059051513671875, 0.03515625, 0.0259857177734375, 0.01273345947265625, -0.0740966796875, -0.02203369140625, -0.00836181640625, -0.03656005859375, 0.0097808837890625, 0.0280303955078125, -0.0404052734375, 0.00859832763671875, -0.055938720703125, -0.0150299072265625, -0.0086669921875, 0.0206146240234375, 0.00954437255859375, 0.04119873046875, -0.0002799034118652344, -0.0190277099609375, -0.012603759765625, -0.006046295166015625, -0.027008056640625, 0.00365447998046875, -0.00400543212890625, 0.0038661956787109375, 0.0250701904296875, -0.0205078125, 0.0309295654296875, 0.01523590087890625, 0.0165252685546875, 0.026458740234375, 0.031585693359375, -0.03204345703125, -0.0142669677734375, -0.0277557373046875, 0.039093017578125, -0.00798797607421875, 0.0123443603515625, 0.035186767578125, 0.061431884765625, 0.06597900390625, -0.00597381591796875, -0.0103302001953125, 0.03173828125, -0.039520263671875, 0.00858306884765625, 0.0352783203125, 0.01094818115234375, 0.0253753662109375, -0.02435302734375, 0.03289794921875, 0.07598876953125, -0.0025844573974609375, 0.006328582763671875, 0.02581787109375, 0.01058197021484375, -0.0128326416015625, 0.04010009765625, -0.0257415771484375, 0.032012939453125, -0.0197906494140625, 0.01483154296875, 0.0234832763671875, -0.007747650146484375, -0.0189666748046875, -0.0053863525390625, 0.0177001953125, 0.00008672475814819336, 0.00775146484375, -0.0110321044921875, 0.0075836181640625, 0.0223236083984375, 0.0242919921875, 0.0186004638671875, 0.0274200439453125, -0.048980712890625, 0.0225982666015625, 0.01507568359375, -0.0016908645629882812, 0.0181732177734375, 0.053680419921875, 0.02703857421875, -0.00516510009765625, -0.0117340087890625, -0.045562744140625, 0.034210205078125, 0.0193023681640625, 0.015106201171875, 0.00560760498046875, 0.00565338134765625, 0.0016231536865234375, 0.01678466796875, -0.0328369140625, 0.0224609375, 0.0260772705078125, -0.0640869140625, -0.0199127197265625, -0.01428985595703125, 0.07666015625, -0.0231170654296875, 0.039825439453125, -0.0308380126953125, 0.032623291015625, -0.09173583984375, -0.056793212890625, 0.044952392578125, -0.07012939453125, -0.026519775390625, 0.0684814453125, 0.0234527587890625, -0.01125335693359375, 0.022857666015625, 0.002536773681640625, 0.03546142578125, 0.00217437744140625, 0.0037097930908203125, 0.0303955078125, -0.070068359375, -0.0228729248046875, 0.01275634765625, 0.027069091796875, -0.029571533203125, -0.0268707275390625, -0.0172271728515625, 0.006656646728515625, -0.0360107421875, -0.010009765625, -0.009033203125, -0.03955078125, 0.0186309814453125, -0.021453857421875, -0.001316070556640625, -0.01000213623046875, -0.0239105224609375, 0.00673675537109375, 0.0186614990234375, -0.04876708984375, -0.04833984375, -0.062286376953125, -0.0753173828125, -0.013763427734375, -0.0000616312026977539, 0.00823974609375, -0.001800537109375, 0.0972900390625, 0.022705078125, -0.06744384765625, 0.00970458984375, 0.0206298828125, -0.0231170654296875, 0.056182861328125, 0.0251922607421875, 0.005779266357421875, -0.021575927734375, 0.0239410400390625, 0.0257720947265625, 0.03125, -0.05169677734375, -0.0006995201110839844, 0.0000756978988647461, -0.01129150390625, -0.0098419189453125, 0.0039043426513671875, 0.006378173828125, -0.024261474609375, 0.005207061767578125, -0.038909912109375, -0.0147857666015625, -0.005626678466796875, -0.036407470703125, 0.005970001220703125, -0.006500244140625, -0.015655517578125, -0.0193328857421875, 0.005886077880859375, -0.053192138671875, -0.0188140869140625, -0.014312744140625, -0.048309326171875, 0.01392364501953125, -0.01690673828125, -0.032958984375, 0.039459228515625, 0.026580810546875, -0.0213165283203125, 0.007770538330078125, 0.008697509765625, 0.0362548828125, 0.04791259765625, -0.022613525390625, 0.0104827880859375, -0.0070343017578125, -0.00843048095703125, -0.05438232421875, 0.04925537109375, -0.04107666015625, 0.01087188720703125, -0.0294647216796875, 0.04852294921875, -0.0247802734375, -0.023590087890625, 0.02264404296875, 0.000579833984375, 0.0164794921875, 0.00021839141845703125, -0.0220184326171875, -0.0245208740234375, -0.053558349609375, 0.0200653076171875, -0.004642486572265625, -0.0233917236328125, -0.027069091796875, -0.023895263671875, -0.043914794921875, -0.0369873046875, 0.033538818359375, -0.0484619140625, 0.02008056640625, -0.015960693359375, 0.00817108154296875, -0.044342041015625, -0.0167694091796875, -0.04241943359375, -0.037567138671875, -0.0162200927734375, 0.01512908935546875, 0.0188140869140625, -0.005706787109375, -0.00579833984375, 0.0186614990234375, 0.04559326171875, 0.028106689453125, 0.00510406494140625, 0.0003535747528076172, -0.0218658447265625, 0.0006337165832519531, -0.010894775390625, 0.001125335693359375, -0.0328369140625, -0.0271759033203125, -0.017791748046875, 0.00452423095703125, 0.01861572265625, -0.016937255859375, -0.01346588134765625, -0.002048492431640625, -0.002349853515625, -0.0198974609375, -0.0168304443359375, -0.0323486328125, 0.014984130859375, -0.005130767822265625, -0.017120361328125, -0.0231170654296875, -0.040985107421875, 0.0274505615234375, 0.032958984375, -0.0374755859375, 0.0212554931640625, 0.02020263671875, 0.00850677490234375, -0.0226287841796875, -0.0860595703125, 0.0087890625, 0.02069091796875, 0.0104217529296875, 0.0264434814453125, -0.01145172119140625, -0.0154876708984375, 0.04168701171875, -0.016876220703125, 0.0266571044921875, -0.033966064453125, 0.043975830078125, -0.0255584716796875, -0.053558349609375, 0.06451416015625, -0.01274871826171875, -0.0032062530517578125, 0.02685546875, -0.0208740234375, -0.0179443359375, -0.009796142578125, 0.0516357421875, -0.036376953125, 0.04736328125, -0.035003662109375, -0.024932861328125, 0.007610321044921875, 0.018707275390625, 0.0035648345947265625, -0.00217437744140625, 0.0063629150390625, -0.008636474609375, 0.0105133056640625, -0.0009446144104003906, -0.02545166015625, 0.01873779296875, -0.04840087890625, -0.006000518798828125, -0.0037326812744140625, -0.0404052734375, -0.01062774658203125, -0.0218048095703125, 0.053863525390625, -0.018798828125, -0.09185791015625, 0.057037353515625, -0.0051116943359375, 0.024993896484375, 0.06439208984375, 0.045135498046875, -0.00238800048828125, 0.020294189453125, 0.00965118408203125, 0.01348876953125, 0.040618896484375, 0.0162811279296875, -0.0148162841796875, 0.0195465087890625, 0.007480621337890625, -0.004909515380859375, 0.01132965087890625, 0.042083740234375, -0.034912109375, 0.0305328369140625, -0.00299835205078125, -0.05914306640625, -0.0338134765625, 0.052276611328125, 0.0498046875, -0.06640625, -0.005718231201171875, 0.049102783203125, 0.03863525390625, -0.038421630859375, -0.0572509765625, 0.0019330978393554688, 0.032379150390625, -0.06427001953125, -0.012847900390625, 0.06396484375, 0.01422119140625, -0.015960693359375, 0.014190673828125, -0.0367431640625, -0.045989990234375, -0.0263519287109375, -0.00986480712890625, 0.0231781005859375, -0.0238189697265625, -0.0134124755859375, 0.04205322265625, -0.00795745849609375, 0.0191192626953125, -0.0088958740234375, -0.047210693359375, 0.0157470703125, 0.0301513671875, -0.0173187255859375, -0.02886962890625, -0.0119476318359375, -0.0467529296875, 0.00820159912109375, -0.02508544921875, -0.01145172119140625, 0.04925537109375, -0.0244903564453125, 0.0097198486328125, -0.0012636184692382812, -0.0107574462890625, 0.0260467529296875, 0.0257415771484375, 0.032623291015625, 0.0111541748046875, -0.0712890625, 0.0024585723876953125, -0.07659912109375, -0.0190887451171875, -0.05950927734375, -0.048614501953125, -0.048248291015625, 0.01171875, 0.00937652587890625, 0.02362060546875, 0.00899505615234375, -0.0224609375, -0.028564453125, 0.0247650146484375, 0.033050537109375, 0.01983642578125, -0.003387451171875, 0.004302978515625, 0.013885498046875, 0.00045371055603027344, 0.003559112548828125, -0.00724029541015625, -0.0216217041015625, -0.010406494140625, -0.0011358261108398438, -0.07861328125, -0.00881195068359375, 0.0022220611572265625, -0.04339599609375, 0.0292816162109375, 0.00600433349609375, 0.0126190185546875, -0.0208740234375, -0.0190582275390625, -0.0092315673828125, -0.031585693359375, 0.076904296875, 0.005336761474609375, -0.006305694580078125, 0.0004534721374511719, 0.0010824203491210938, 0.0292205810546875, 0.004241943359375, -0.021484375, 0.004749298095703125, -0.01203155517578125, 0.015716552734375, -0.0167694091796875, 0.006900787353515625, -0.00307464599609375, -0.003726959228515625, -0.019683837890625, 0.0107421875, 0.0233154296875, 0.01378631591796875, 0.00014781951904296875, 0.01003265380859375, -0.037628173828125, -0.037567138671875, 0.0318603515625, 0.00751495361328125, -0.0285797119140625, 0.04156494140625, -0.036865234375, -0.03106689453125, 0.036376953125, 0.03704833984375, -0.0303192138671875, -0.01448822021484375, 0.015472412109375, 0.003978729248046875, -0.0196990966796875, -0.01007080078125, -0.023345947265625, -0.048187255859375, -0.01467132568359375, -0.00040531158447265625, -0.037933349609375, -0.0443115234375, 0.0079345703125, 0.00394439697265625, -0.01287841796875, 0.053680419921875, 0.0227813720703125, -0.06591796875, 0.0295562744140625, 0.042388916015625, 0.00218963623046875, -0.03778076171875, -0.018218994140625, -0.0159912109375, -0.01065826416015625, -0.038909912109375, 0.0216827392578125, -0.043212890625, 0.0521240234375, -0.00250244140625, 0.0215301513671875, -0.037078857421875, 0.0222625732421875, -0.027801513671875, 0.0253448486328125, -0.005970001220703125, -0.0513916015625, -0.00865936279296875, -0.033599853515625, 0.0063018798828125, 0.044342041015625, -0.01091766357421875, 0.0281524658203125, 0.0197296142578125, -0.03216552734375, -0.0372314453125, -0.08197021484375, 0.09234619140625, -0.0241241455078125, -0.004833221435546875, 0.0136260986328125, 0.060394287109375, -0.016632080078125, -0.00847625732421875, -0.0084228515625, -0.042877197265625, 0.038970947265625, -0.0092315673828125, 0.042755126953125, 0.038299560546875, 0.01508331298828125, -0.0845947265625, 0.10272216796875, 0.00508880615234375, 0.0145263671875, -0.03472900390625, 0.0367431640625, -0.0007081031799316406, 0.03558349609375, -0.03533935546875, 0.03857421875, 0.0297393798828125, 0.031036376953125, -0.01580810546875, 0.0007257461547851562, 0.0082244873046875, 0.01413726806640625, 0.024444580078125, 0.0013418197631835938, 0.0070343017578125, 0.00998687744140625, 0.07550048828125, 0.008331298828125, -0.0200347900390625, 0.0272369384765625, 0.025634765625, 0.02008056640625, 0.053985595703125, 0.0265960693359375, 0.055694580078125, -0.0106201171875, -0.0248260498046875, 0.047882080078125, 0.0159912109375, 0.0364990234375, 0.00745391845703125, -0.0226287841796875, -0.006465911865234375, 0.007076263427734375, 0.0182647705078125, -0.0009007453918457031, 0.01197052001953125, 0.01447296142578125, 0.023406982421875, -0.07537841796875, 0.05615234375, -0.04315185546875, 0.06298828125, -0.01495361328125, 0.03607177734375, 0.06463623046875, 0.0154571533203125, 0.0596923828125, -0.065673828125, 0.0201568603515625, -0.0323486328125, -0.029266357421875, 0.03900146484375, -0.0103912353515625, 0.025360107421875, -0.08258056640625, -0.06134033203125, 0.0198516845703125, 0.07080078125, -0.0274810791015625, -0.044921875, 0.0029163360595703125, -0.0036296844482421875, -0.0184783935546875, -0.0015439987182617188, -0.0286712646484375, 0.056671142578125, 0.09576416015625, -0.0189666748046875, -0.01123046875, -0.0015096664428710938, 0.036346435546875, -0.0150146484375, -0.0197601318359375, 0.0024433135986328125, -0.03350830078125, -0.026214599609375, -0.001026153564453125, 0.02801513671875, 0.052398681640625, -0.00789642333984375, 0.032135009765625, -0.0221405029296875, 0.000675201416015625, -0.019073486328125, 0.06671142578125, 0.01367950439453125, 0.0082244873046875, -0.03460693359375, -0.0290069580078125, -0.021392822265625, 0.0285491943359375, 0.0019388198852539062, 0.0017986297607421875, 0.035736083984375, 0.036407470703125, -0.0257110595703125, -0.01348876953125, 0.00821685791015625, -0.0321044921875, 0.0084381103515625, -0.0162506103515625, 0.044677734375, 0.06622314453125, 0.01132965087890625, -0.00382232666015625, 0.006389617919921875, 0.103515625, -0.027008056640625, 0.049957275390625, -0.0042266845703125, -0.0283966064453125, 0.0299530029296875, -0.0458984375, 0.049041748046875, -0.0069580078125, -0.10009765625, -0.0153656005859375, -0.0355224609375, -0.023193359375, 0.033447265625, 0.045135498046875, -0.00787353515625, -0.0031280517578125, 0.01910400390625, 0.0032291412353515625, -0.01250457763671875, -0.0096435546875, 0.0085601806640625, -0.0369873046875, 0.0116119384765625, -0.01096343994140625, -0.054656982421875, 0.005428314208984375, -0.00353240966796875, -0.0170135498046875, -0.004985809326171875, 0.0875244140625, -0.0005521774291992188, -0.0013952255249023438, 0.004016876220703125, 0.0286712646484375, -0.032379150390625, 0.00705718994140625, -0.006572723388671875, -0.016204833984375, 0.0350341796875, 0.00852203369140625, -0.0745849609375, 0.05255126953125, 0.00684356689453125, -0.0015707015991210938, 0.0653076171875, -0.017303466796875, -0.00036406517028808594, -0.035003662109375, 0.034271240234375, -0.024139404296875, -0.0200347900390625, -0.032012939453125, -0.0196380615234375, 0.029052734375, 0.0124969482421875, -0.004703521728515625, 0.0046234130859375, 0.00807952880859375, -0.07818603515625, 0.023712158203125, -0.050445556640625, 0.04345703125, 0.03662109375, 0.05792236328125, 0.03350830078125, -0.0201568603515625, -0.030487060546875, 0.055908203125, -0.0189361572265625, -0.004634857177734375, -0.01277923583984375, 0.007724761962890625, -0.004306793212890625, -0.05218505859375, 0.0012969970703125, -0.039276123046875, -0.01617431640625, -0.005268096923828125, 0.0257720947265625, 0.0010128021240234375, 0.002696990966796875, -0.025390625, -0.05364990234375, -0.00817108154296875, -0.013641357421875, -0.03790283203125, -0.0474853515625, -0.0178070068359375, -0.002105712890625, 0.0224761962890625, 0.0043182373046875, -0.01074981689453125, 0.017578125, -0.0189361572265625, -0.01354217529296875, 0.0032825469970703125, -0.0158538818359375, 0.044921875, 0.0689697265625, 0.005916595458984375, 0.0276947021484375, 0.01136016845703125, -0.03778076171875, 0.038177490234375, 0.0032367706298828125, 0.038482666015625, -0.01605224609375, 0.00035071372985839844, 0.016510009765625, 0.0272216796875, 0.0655517578125, 0.0201263427734375, -0.001071929931640625, 0.0007872581481933594, 0.01383209228515625, -0.046630859375, -0.05035400390625, 0.032073974609375, -0.0236968994140625, -0.03704833984375, -0.033660888671875, -0.028076171875, -0.021148681640625, -0.06390380859375, -0.0931396484375, 0.06561279296875, -0.032440185546875, -0.03363037109375, -0.029571533203125, -0.0087890625, -0.01201629638671875, -0.0023365020751953125, -0.0181884765625, 0.00557708740234375, -0.0268096923828125, 0.024169921875, 0.0034923553466796875, 0.022674560546875, 0.03704833984375, 0.00862884521484375, 0.0007300376892089844, 0.00943756103515625, -0.004665374755859375, -0.02197265625, 0.03265380859375, -0.0098724365234375, 0.01146697998046875, 0.048614501953125, -0.057891845703125, -0.022003173828125, -0.037689208984375, -0.00693511962890625, 0.022552490234375, -0.022247314453125, -0.038665771484375, -0.043212890625, 0.02508544921875, -0.002841949462890625, 0.0023403167724609375, 0.01079559326171875, -0.01352691650390625, -0.0128631591796875, -0.0007224082946777344, -0.0025424957275390625, 0.0101776123046875, -0.06292724609375, -0.009429931640625, 0.03790283203125, -0.019317626953125, 0.040679931640625, -0.03173828125, -0.03997802734375, 0.01383209228515625, -0.0291900634765625, 0.00347900390625, -0.0567626953125, -0.04638671875, -0.0011577606201171875, -0.01511383056640625, -0.018157958984375, -0.0273590087890625, 0.040771484375, -0.0300140380859375, -0.020843505859375, -0.0251617431640625, -0.0035343170166015625, 0.0027904510498046875, 0.003627777099609375, 0.0043182373046875, -0.0240325927734375, 0.00673675537109375, 0.0090484619140625, 0.0005044937133789062, 0.0151214599609375, -0.00989532470703125, 0.0266571044921875, -0.013885498046875, -0.00276947021484375, -0.01465606689453125, 0.0010938644409179688, -0.023040771484375, 0.00963592529296875, -0.023681640625, 0.054779052734375, -0.03106689453125, -0.0138397216796875, 0.00899505615234375, -0.032806396484375, 0.0132598876953125, 0.0028743743896484375, 0.01227569580078125, -0.020477294921875, 0.007007598876953125, -0.0308685302734375, 0.00370025634765625, 0.0248260498046875 ]
d051be4797dfb67ef3bfec7c05730635b566025c
Wordpress Stackexchange Q: How to wrap an element around an iframe or embed in content automatically? Id like to have wordpress automatically wrap a div around any iframe or embed when they are used in the_content...how might this be achieved? A: With Wordpress filters. Add this to your functions.php: function div_wrapper($content) { // match any iframes $pattern = '~<iframe.*</iframe>|<embed.*</embed>~'; preg_match_all($pattern, $content, $matches); foreach ($matches[0] as $match) { // wrap matched iframe with div $wrappedframe = '<div>' . $match . '</div>'; //replace original iframe with new in content $content = str_replace($match, $wrappedframe, $content); } return $content; } add_filter('the_content', 'div_wrapper');
Q: How to wrap an element around an iframe or embed in content automatically? Id like to have wordpress automatically wrap a div around any iframe or embed when they are used in the_content...how might this be achieved? A: With Wordpress filters. Add this to your functions.php: function div_wrapper($content) { // match any iframes $pattern = '~<iframe.*</iframe>|<embed.*</embed>~'; preg_match_all($pattern, $content, $matches); foreach ($matches[0] as $match) { // wrap matched iframe with div $wrappedframe = '<div>' . $match . '</div>'; //replace original iframe with new in content $content = str_replace($match, $wrappedframe, $content); } return $content; } add_filter('the_content', 'div_wrapper'); A: Here's the solution I used: function wrap_embed_with_div($html, $url, $attr) { return '<div class="video-container">' . $html . '</div>'; } add_filter('embed_oembed_html', 'wrap_embed_with_div', 10, 3); A: try jQuery $('iframe').wrap('<div class="wrapper" />');
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:422924", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/61877" }
[ 0.053497314453125, -0.0009851455688476562, -0.003940582275390625, -0.00664520263671875, 0.0265045166015625, -0.0411376953125, 0.0533447265625, -0.0301513671875, 0.01165008544921875, -0.0030155181884765625, -0.08258056640625, 0.03131103515625, -0.01629638671875, 0.00750732421875, 0.0192718505859375, -0.03839111328125, 0.0242156982421875, 0.01207733154296875, 0.020233154296875, -0.0175628662109375, 0.01398468017578125, -0.0186920166015625, 0.03948974609375, 0.018951416015625, 0.05023193359375, -0.07049560546875, 0.1298828125, -0.0076446533203125, 0.04046630859375, -0.018829345703125, 0.046356201171875, -0.041290283203125, 0.04248046875, 0.054718017578125, -0.10711669921875, -0.0006771087646484375, -0.02532958984375, 0.0157623291015625, -0.02471923828125, 0.044769287109375, 0.007556915283203125, 0.0102081298828125, 0.09100341796875, -0.00952911376953125, 0.01568603515625, 0.006443023681640625, -0.0032329559326171875, -0.028839111328125, 0.00511932373046875, -0.02435302734375, 0.016815185546875, 0.0220947265625, 0.034454345703125, -0.052734375, -0.0078277587890625, 0.04541015625, -0.0171966552734375, -0.02630615234375, 0.0186309814453125, -0.0037822723388671875, 0.00787353515625, -0.014892578125, 0.0151824951171875, 0.005367279052734375, -0.0065155029296875, -0.01551055908203125, 0.0030059814453125, -0.0013647079467773438, -0.020111083984375, 0.006847381591796875, 0.050872802734375, -0.01067352294921875, -0.0184783935546875, -0.0165863037109375, 0.0013208389282226562, 0.01134490966796875, 0.006984710693359375, -0.00395965576171875, -0.00923919677734375, 0.0115509033203125, -0.01128387451171875, 0.0262908935546875, -0.00287628173828125, -0.033721923828125, 0.028656005859375, -0.010498046875, -0.015899658203125, 0.0001493692398071289, -0.0010843276977539062, -0.0068511962890625, -0.01580810546875, 0.0287017822265625, -0.0173797607421875, 0.00750732421875, -0.033843994140625, -0.0181427001953125, 0.0118560791015625, 0.04449462890625, -0.0360107421875, 0.0098724365234375, -0.004116058349609375, -0.043182373046875, 0.056365966796875, -0.0576171875, 0.00244903564453125, 0.050933837890625, 0.00830841064453125, 0.00988006591796875, 0.032073974609375, 0.007137298583984375, 0.01410675048828125, 0.0029659271240234375, -0.01209259033203125, -0.0227508544921875, -0.0279541015625, 0.00421905517578125, -0.0323486328125, 0.007747650146484375, 0.01445770263671875, 0.0106353759765625, -0.0211639404296875, -0.0023784637451171875, 0.0243988037109375, 0.007678985595703125, 0.0227508544921875, 0.028350830078125, -0.0024089813232421875, -0.0311737060546875, 0.016143798828125, 0.0015354156494140625, -0.040283203125, -0.0021381378173828125, 0.07427978515625, 0.04571533203125, 0.039886474609375, -0.01849365234375, 0.0675048828125, 0.0280303955078125, 0.000904083251953125, 0.004642486572265625, 0.003620147705078125, -0.0247955322265625, -0.00966644287109375, -0.01038360595703125, -0.03143310546875, 0.0235748291015625, 0.0216217041015625, -0.0007491111755371094, -0.03472900390625, -0.0948486328125, 0.04302978515625, -0.0452880859375, 0.044891357421875, -0.00823211669921875, 0.0008859634399414062, -0.043365478515625, 0.07342529296875, -0.05767822265625, -0.030426025390625, -0.068115234375, -0.0203857421875, 0.01194000244140625, 0.0594482421875, -0.00269317626953125, 0.0248870849609375, -0.0247650146484375, -0.060516357421875, 0.013519287109375, 0.026611328125, 0.10247802734375, -0.0158233642578125, -0.07421875, -0.009185791015625, 0.0009794235229492188, -0.051300048828125, 0.028778076171875, 0.0122222900390625, 0.0179595947265625, 0.020263671875, 0.00748443603515625, 0.00104522705078125, -0.0124969482421875, 0.08740234375, -0.0277252197265625, -0.011505126953125, 0.0011186599731445312, 0.006519317626953125, 0.02362060546875, -0.0004024505615234375, 0.03497314453125, -0.006866455078125, 0.007038116455078125, -0.037811279296875, -0.01032257080078125, 0.008087158203125, -0.00925445556640625, 0.0157623291015625, -0.00792694091796875, -0.01111602783203125, -0.0011510848999023438, -0.036224365234375, -0.0157623291015625, 0.0069427490234375, -0.0084991455078125, -0.0030803680419921875, -0.034881591796875, -0.0058746337890625, 0.0252838134765625, 0.0230560302734375, -0.005641937255859375, 0.0005555152893066406, -0.03387451171875, 0.0228271484375, -0.051727294921875, -0.054901123046875, -0.007709503173828125, 0.01047515869140625, 0.043487548828125, 0.0008044242858886719, 0.045623779296875, 0.0148162841796875, -0.0283966064453125, -0.0010967254638671875, 0.016632080078125, 0.0574951171875, -0.038787841796875, -0.01561737060546875, -0.034576416015625, 0.006351470947265625, -0.0033512115478515625, -0.0675048828125, 0.072998046875, 0.03955078125, 0.02294921875, -0.0487060546875, -0.01023101806640625, -0.045318603515625, -0.03863525390625, -0.0258941650390625, 0.057830810546875, 0.0242767333984375, 0.047027587890625, -0.0022487640380859375, 0.036865234375, 0.0180816650390625, -0.043731689453125, 0.01413726806640625, 0.007114410400390625, 0.0037384033203125, 0.03216552734375, 0.00920867919921875, -0.0248870849609375, 0.01512908935546875, -0.0845947265625, 0.01259613037109375, 0.01389312744140625, -0.006557464599609375, 0.027923583984375, -0.032684326171875, 0.0242767333984375, -0.0185546875, -0.01129150390625, 0.00457000732421875, -0.0304718017578125, 0.004055023193359375, -0.03594970703125, 0.049835205078125, 0.031768798828125, 0.039031982421875, -0.053558349609375, -0.006671905517578125, 0.0330810546875, -0.0194549560546875, 0.05303955078125, 0.0364990234375, -0.0386962890625, -0.04083251953125, 0.0007886886596679688, -0.0218048095703125, 0.0142669677734375, 0.0169830322265625, 0.07342529296875, -0.025970458984375, -0.0145721435546875, -0.007312774658203125, -0.0289459228515625, -0.036102294921875, 0.00525665283203125, 0.004215240478515625, -0.0272216796875, -0.0089874267578125, 0.035675048828125, -0.00974273681640625, 0.023712158203125, 0.08038330078125, -0.031982421875, -0.0184478759765625, -0.06207275390625, 0.0550537109375, -0.042999267578125, 0.053497314453125, 0.07281494140625, -0.016693115234375, 0.02532958984375, -0.0014400482177734375, 0.0278778076171875, 0.0172882080078125, -0.00262451171875, -0.0080413818359375, -0.003513336181640625, -0.015380859375, -0.004146575927734375, -0.0001442432403564453, 0.02581787109375, -0.017974853515625, -0.03558349609375, -0.0014400482177734375, -0.00669097900390625, -0.057891845703125, -0.040496826171875, 0.053466796875, -0.10821533203125, -0.048431396484375, 0.005634307861328125, -0.07269287109375, 0.0006952285766601562, 0.054168701171875, -0.0307159423828125, -0.048370361328125, -0.0211944580078125, -0.0504150390625, -0.0562744140625, -0.051055908203125, 0.048583984375, -0.022369384765625, 0.0220184326171875, 0.0176544189453125, -0.01366424560546875, 0.020660400390625, -0.0245819091796875, 0.045135498046875, 0.0179290771484375, -0.00943756103515625, 0.0270538330078125, -0.004383087158203125, -0.0286407470703125, -0.00949859619140625, 0.01296234130859375, -0.04931640625, -0.0185394287109375, 0.025726318359375, -0.0234832763671875, -0.023193359375, -0.028900146484375, 0.01328277587890625, 0.01849365234375, 0.015655517578125, 0.0023212432861328125, 0.0272064208984375, -0.04498291015625, 0.019927978515625, 0.0117950439453125, -0.0172576904296875, -0.0328369140625, 0.00901031494140625, -0.038116455078125, 0.006626129150390625, -0.045806884765625, 0.010040283203125, 0.0210113525390625, 0.0111846923828125, 0.003376007080078125, 0.00865936279296875, -0.01035308837890625, -0.0145416259765625, -0.01169586181640625, 0.0229339599609375, -0.004650115966796875, 0.03179931640625, 0.01172637939453125, 0.0400390625, 0.005191802978515625, 0.0175323486328125, -0.045013427734375, -0.032257080078125, 0.054351806640625, 0.014007568359375, -0.005756378173828125, 0.006397247314453125, -0.031890869140625, 0.037322998046875, 0.07916259765625, -0.049224853515625, -0.01548004150390625, 0.01007843017578125, 0.005695343017578125, 0.0247802734375, -0.0137176513671875, -0.05596923828125, -0.020355224609375, -0.0433349609375, -0.0031223297119140625, -0.022430419921875, -0.0130157470703125, -0.008209228515625, 0.03863525390625, -0.017822265625, -0.03314208984375, -0.0019989013671875, -0.005901336669921875, -0.0345458984375, 0.005950927734375, -0.040130615234375, -0.0134124755859375, 0.02935791015625, -0.0423583984375, -0.056640625, -0.01245880126953125, -0.0274505615234375, 0.06890869140625, 0.0239105224609375, 0.01554107666015625, -0.0176849365234375, 0.04046630859375, -0.024810791015625, -0.0006060600280761719, 0.001773834228515625, -0.0008325576782226562, 0.031646728515625, 0.04376220703125, 0.0162200927734375, 0.00984954833984375, 0.0030879974365234375, -0.0033206939697265625, -0.01244354248046875, 0.06719970703125, 0.00450897216796875, 0.03485107421875, 0.0229644775390625, -0.0095672607421875, -0.0313720703125, -0.0141448974609375, -0.0178985595703125, -0.01323699951171875, -0.0299072265625, -0.0005202293395996094, -0.00405120849609375, -0.04107666015625, 0.0697021484375, 0.036224365234375, -0.0301055908203125, -0.0019025802612304688, 0.06396484375, 0.01232147216796875, -0.0572509765625, -0.04547119140625, 0.0310821533203125, 0.03204345703125, -0.0288848876953125, 0.031707763671875, 0.01873779296875, -0.005184173583984375, 0.0133056640625, -0.0072174072265625, 0.0213470458984375, -0.00010919570922851562, 0.060089111328125, 0.01525115966796875, -0.0242156982421875, 0.033477783203125, 0.01079559326171875, -0.055755615234375, -0.01197052001953125, -0.03887939453125, 0.0286712646484375, -0.045440673828125, -0.0026226043701171875, 0.004787445068359375, 0.0182952880859375, -0.0268402099609375, 0.002689361572265625, -0.000858306884765625, 0.03265380859375, 0.0236358642578125, 0.035797119140625, 0.00817108154296875, 0.003170013427734375, 0.033477783203125, -0.008514404296875, 0.0310516357421875, -0.020172119140625, 0.0011911392211914062, 0.03314208984375, -0.009796142578125, -0.0099639892578125, 0.036651611328125, -0.0080413818359375, 0.051849365234375, 0.0162353515625, -0.03411865234375, -0.01265716552734375, -0.010406494140625, -0.00116729736328125, 0.0078887939453125, 0.0246734619140625, 0.0186309814453125, -0.025421142578125, -0.000705718994140625, -0.026153564453125, -0.0001862049102783203, -0.01702880859375, -0.03411865234375, -0.0308837890625, 0.007007598876953125, -0.01947021484375, -0.008209228515625, 0.032958984375, 0.005695343017578125, 0.00980377197265625, -0.0267486572265625, 0.0285797119140625, 0.0212554931640625, 0.036163330078125, 0.0137786865234375, -0.01229095458984375, -0.0239715576171875, 0.01953125, -0.0028591156005859375, -0.0020275115966796875, -0.0070343017578125, 0.0281829833984375, 0.023529052734375, -0.0284576416015625, -0.004344940185546875, -0.0021762847900390625, -0.019805908203125, -0.0283660888671875, 0.007659912109375, 0.044281005859375, -0.004497528076171875, -0.0012121200561523438, 0.052581787109375, 0.01174163818359375, 0.046051025390625, -0.042572021484375, 0.0100860595703125, -0.076171875, -0.0249176025390625, 0.0167694091796875, -0.059906005859375, 0.020050048828125, 0.0175323486328125, 0.00946807861328125, -0.01092529296875, -0.031494140625, -0.07470703125, -0.0260009765625, -0.02728271484375, 0.00908660888671875, 0.08782958984375, -0.06488037109375, 0.0031890869140625, -0.033599853515625, 0.031280517578125, -0.04364013671875, 0.036651611328125, -0.005092620849609375, 0.01094818115234375, -0.03936767578125, -0.01244354248046875, -0.049346923828125, -0.036102294921875, -0.07080078125, -0.01483154296875, -0.046783447265625, 0.032623291015625, -0.016693115234375, 0.0170440673828125, -0.024383544921875, 0.025848388671875, 0.0214691162109375, 0.038330078125, -0.0282745361328125, 0.06787109375, 0.00731658935546875, 0.009765625, -0.017059326171875, 0.0606689453125, -0.00034165382385253906, 0.0013837814331054688, -0.00383758544921875, -0.046783447265625, -0.02166748046875, -0.06610107421875, -0.0190582275390625, 0.0042266845703125, -0.004978179931640625, 0.06524658203125, 0.030487060546875, 0.012451171875, 0.0206451416015625, -0.034637451171875, -0.00016188621520996094, -0.04058837890625, 0.0307769775390625, -0.07720947265625, -0.00730133056640625, -0.0212554931640625, 0.0014066696166992188, 0.004619598388671875, -0.0438232421875, -0.005237579345703125, -0.002166748046875, -0.00186920166015625, 0.004177093505859375, -0.0261993408203125, -0.00902557373046875, 0.0305633544921875, 0.01558685302734375, -0.017608642578125, 0.01300811767578125, -0.0006914138793945312, 0.01137542724609375, -0.002552032470703125, 0.034149169921875, -0.0173187255859375, -0.007244110107421875, 0.052703857421875, 0.0122222900390625, -0.0125885009765625, 0.035797119140625, -0.021087646484375, 0.002841949462890625, 0.0069732666015625, 0.022674560546875, -0.0179290771484375, -0.004024505615234375, -0.0276336669921875, -0.039581298828125, 0.0222625732421875, -0.0006480216979980469, 0.0151519775390625, 0.002590179443359375, 0.032470703125, -0.01763916015625, -0.0005741119384765625, 0.0081939697265625, -0.016571044921875, -0.0115203857421875, 0.0030975341796875, 0.01280975341796875, 0.006855010986328125, -0.056640625, 0.00502777099609375, 0.01739501953125, 0.0174407958984375, -0.016815185546875, -0.0186614990234375, 0.0097808837890625, -0.047119140625, -0.0587158203125, -0.0124969482421875, -0.021484375, -0.0004374980926513672, -0.01094818115234375, 0.017181396484375, -0.003326416015625, 0.057586669921875, -0.02001953125, 0.0149383544921875, 0.032745361328125, -0.01690673828125, -0.0099334716796875, -0.00519561767578125, 0.057373046875, -0.0087432861328125, -0.044586181640625, 0.0205841064453125, -0.045562744140625, -0.019378662109375, 0.0038089752197265625, 0.002414703369140625, 0.0308685302734375, -0.0246429443359375, -0.0015964508056640625, 0.028350830078125, 0.025726318359375, -0.0159149169921875, -0.0216827392578125, 0.0316162109375, -0.0670166015625, -0.0035114288330078125, -0.00829315185546875, 0.00543975830078125, -0.0010280609130859375, -0.040618896484375, -0.0748291015625, 0.09228515625, 0.0310211181640625, 0.0174560546875, -0.0236663818359375, 0.03143310546875, -0.040435791015625, 0.0001327991485595703, -0.01512908935546875, 0.037750244140625, 0.01497650146484375, 0.0188140869140625, -0.0281829833984375, -0.01248931884765625, 0.0025920867919921875, 0.0288543701171875, -0.016845703125, -0.0004284381866455078, -0.035919189453125, -0.0138702392578125, 0.033111572265625, 0.0709228515625, 0.039825439453125, 0.0094451904296875, -0.0130462646484375, 0.043792724609375, 0.0160369873046875, -0.058624267578125, 0.01102447509765625, -0.0197296142578125, -0.021453857421875, 0.0230865478515625, 0.021728515625, 0.00397491455078125, 0.02783203125, 0.020843505859375, -0.036834716796875, 0.018890380859375, 0.0259552001953125, -0.0012235641479492188, -0.015869140625, 0.06610107421875, 0.0146026611328125, -0.029998779296875, 0.0343017578125, -0.0482177734375, 0.050384521484375, -0.033416748046875, 0.0279693603515625, 0.0183258056640625, 0.00749969482421875, 0.005863189697265625, 0.06243896484375, 0.0236968994140625, 0.043853759765625, 0.019195556640625, -0.01203155517578125, 0.00787353515625, 0.0181427001953125, -0.045928955078125, -0.0249176025390625, 0.04998779296875, 0.01410675048828125, 0.005260467529296875, -0.0308685302734375, 0.0033779144287109375, -0.006984710693359375, 0.0038604736328125, -0.020263671875, 0.0098419189453125, -0.052581787109375, -0.0297393798828125, -0.022186279296875, -0.0316162109375, 0.0301971435546875, 0.031219482421875, 0.01922607421875, 0.0000889897346496582, -0.0122528076171875, -0.04913330078125, -0.04742431640625, -0.02423095703125, 0.00029969215393066406, 0.0506591796875, 0.05615234375, 0.0284271240234375, 0.01511383056640625, -0.024169921875, 0.01216888427734375, -0.0222625732421875, 0.01470184326171875, -0.0274200439453125, 0.0010166168212890625, -0.01739501953125, 0.052337646484375, 0.01200103759765625, -0.012054443359375, -0.0281524658203125, -0.005840301513671875, 0.01163482666015625, -0.03167724609375, -0.01312255859375, 0.006557464599609375, -0.0226898193359375, 0.0260772705078125, -0.06427001953125, 0.059539794921875, 0.02642822265625, 0.0103912353515625, -0.009490966796875, -0.0168609619140625, 0.08050537109375, 0.0033626556396484375, 0.031341552734375, -0.00273895263671875, 0.0272979736328125, -0.04248046875, -0.042938232421875, -0.041015625, 0.004627227783203125, -0.06353759765625, -0.001979827880859375, -0.0267486572265625, -0.063720703125, 0.00926971435546875, 0.042449951171875, -0.01174163818359375, -0.002498626708984375, 0.02325439453125, 0.018646240234375, -0.03411865234375, 0.006320953369140625, 0.0038814544677734375, -0.026458740234375, 0.026611328125, 0.012725830078125, -0.014862060546875, -0.0413818359375, 0.0005297660827636719, 0.0726318359375, -0.005340576171875, -0.0182037353515625, -0.0030231475830078125, 0.041656494140625, -0.0057373046875, -0.00225830078125, 0.0037212371826171875, -0.008544921875, 0.038787841796875, 0.005245208740234375, -0.0212860107421875, -0.03851318359375, -0.0289764404296875, 0.01142120361328125, 0.0137481689453125, -0.0089111328125, -0.0101470947265625, -0.004535675048828125, 0.0268096923828125, 0.02801513671875, 0.0233001708984375, -0.0240631103515625, -0.0496826171875, -0.00687408447265625, 0.01326751708984375, -0.004718780517578125, -0.0008254051208496094, 0.00188446044921875, 0.07562255859375, 0.013336181640625, 0.014801025390625, 0.008514404296875, -0.049102783203125, 0.00879669189453125, 0.029266357421875, -0.0167694091796875, -0.047454833984375, -0.050537109375, -0.0255279541015625, 0.0031337738037109375, -0.0225677490234375, 0.04095458984375, -0.0069427490234375, -0.0037822723388671875, -0.004474639892578125, 0.053192138671875, 0.06048583984375, 0.016143798828125, 0.0352783203125, -0.0063018798828125, -0.0300750732421875, 0.027557373046875, -0.017425537109375, -0.022308349609375, -0.0276947021484375, -0.00836181640625, 0.0241851806640625, -0.02874755859375, -0.0246124267578125, -0.0565185546875, -0.036895751953125, 0.0438232421875, 0.0252685546875, -0.04339599609375, -0.01898193359375, -0.0006556510925292969, 0.0269927978515625, 0.0069580078125, 0.004024505615234375, -0.0056915283203125, 0.0269622802734375, -0.0256805419921875, -0.041168212890625, -0.02374267578125, 0.040557861328125, -0.023284912109375, -0.00043654441833496094, -0.00318145751953125, 0.0076751708984375, 0.0272064208984375, -0.0016460418701171875, 0.007038116455078125, 0.049591064453125, -0.016937255859375, -0.0160064697265625, 0.005641937255859375, -0.0167999267578125, -0.005733489990234375, 0.036529541015625, 0.0240631103515625, 0.00948333740234375, -0.049072265625, 0.017822265625, -0.021392822265625, 0.005794525146484375, -0.032470703125, -0.0679931640625, -0.01641845703125, 0.025482177734375, -0.047149658203125, -0.047119140625, 0.004146575927734375, 0.00836944580078125, -0.0177154541015625, -0.0287628173828125, 0.03125, -0.0181732177734375, 0.038726806640625, -0.01523590087890625, 0.03143310546875, 0.005832672119140625, -0.03448486328125, -0.019378662109375, -0.017547607421875, -0.00240325927734375, -0.0178985595703125, 0.01303863525390625, -0.00804901123046875, 0.034759521484375, 0.04095458984375, -0.031585693359375, 0.00592041015625, -0.0004949569702148438, -0.0123748779296875, 0.0009613037109375, -0.012115478515625, -0.005603790283203125, 0.01222991943359375, 0.053131103515625, 0.0192718505859375, 0.00524139404296875, -0.041534423828125, 0.0207672119140625, 0.0168609619140625, -0.0260772705078125, -0.0184326171875, 0.0205230712890625, -0.061859130859375, -0.033233642578125, -0.0123138427734375, 0.007312774658203125, 0.002552032470703125, -0.0389404296875, -0.01363372802734375, -0.0100555419921875, 0.004852294921875, 0.0157928466796875, -0.007366180419921875, 0.049774169921875, 0.12298583984375, -0.07489013671875, -0.018035888671875, 0.02008056640625, -0.01210784912109375, 0.06353759765625, -0.040740966796875, 0.024993896484375, -0.00994110107421875, -0.049560546875, 0.0045318603515625, 0.003734588623046875, 0.043304443359375, -0.018768310546875, -0.06842041015625, -0.0430908203125, 0.00727081298828125, 0.007213592529296875, 0.0200347900390625, 0.006641387939453125, -0.002147674560546875, 0.033935546875, 0.00728607177734375, -0.0360107421875, 0.044281005859375, 0.0033969879150390625, -0.036041259765625, 0.01168060302734375, 0.047515869140625, 0.0743408203125, -0.0300140380859375, 0.01218414306640625, 0.0093841552734375, 0.0009679794311523438, -0.0364990234375, 0.02520751953125, -0.0404052734375, -0.005313873291015625, 0.017608642578125 ]
ce92d463f8c6054a9f5c6db1f13b573b476ed120
Wordpress Stackexchange Q: Recover the user that have been deleted I have deleted some users, and now I want to recover onen of them. But I have a mesage that the user name and his email already exist. A: Go into the Users section in the WP back end and type in the username that exists. You should find a record if it is still there. Deleting users completely deletes them - there is no "trash" normally, so the user should no longer exist in the database unless you have a plugin which keeps them.
Q: Recover the user that have been deleted I have deleted some users, and now I want to recover onen of them. But I have a mesage that the user name and his email already exist. A: Go into the Users section in the WP back end and type in the username that exists. You should find a record if it is still there. Deleting users completely deletes them - there is no "trash" normally, so the user should no longer exist in the database unless you have a plugin which keeps them.
wordpress
{ "language": "en", "length": 93, "provenance": "stackexchange_00019.jsonl.gz:422963", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62019" }
[ 0.03936767578125, 0.0130767822265625, -0.02679443359375, 0.0028858184814453125, 0.01611328125, -0.050567626953125, 0.046051025390625, -0.04541015625, 0.00882720947265625, 0.05902099609375, -0.01617431640625, -0.00820159912109375, 0.057342529296875, -0.0116729736328125, -0.039642333984375, -0.004180908203125, 0.00879669189453125, -0.00958251953125, -0.006565093994140625, -0.0290374755859375, 0.0208587646484375, -0.0236053466796875, 0.00450897216796875, -0.0027027130126953125, -0.02789306640625, 0.04876708984375, 0.07037353515625, -0.034088134765625, -0.0239410400390625, -0.033935546875, -0.0010318756103515625, 0.01528167724609375, 0.000499725341796875, -0.004230499267578125, 0.03900146484375, -0.02313232421875, 0.01187896728515625, 0.0011911392211914062, 0.033599853515625, -0.0299835205078125, 0.024932861328125, -0.0047149658203125, -0.0005478858947753906, -0.0025920867919921875, -0.01251983642578125, -0.0799560546875, 0.0655517578125, -0.02081298828125, 0.03936767578125, 0.058258056640625, 0.00925445556640625, -0.011627197265625, 0.0190277099609375, -0.01444244384765625, -0.006702423095703125, -0.034515380859375, 0.002742767333984375, 0.0279083251953125, 0.0297698974609375, -0.037078857421875, -0.040557861328125, 0.00748443603515625, 0.03411865234375, 0.0026302337646484375, 0.01010894775390625, -0.01172637939453125, 0.00789642333984375, 0.0239105224609375, -0.04351806640625, -0.00994110107421875, 0.02398681640625, -0.0221710205078125, -0.00604248046875, 0.0246429443359375, -0.00039005279541015625, -0.03558349609375, 0.0191650390625, 0.0050048828125, 0.006317138671875, 0.04412841796875, 0.004505157470703125, -0.005443572998046875, -0.095703125, 0.0090179443359375, -0.00791168212890625, 0.031494140625, -0.0127410888671875, -0.0305023193359375, -0.0310516357421875, -0.019378662109375, -0.01397705078125, -0.061248779296875, -0.030792236328125, 0.020050048828125, -0.01690673828125, 0.0019330978393554688, 0.01885986328125, 0.0843505859375, -0.00594329833984375, -0.0270538330078125, -0.0153350830078125, 0.00333404541015625, -0.0723876953125, -0.0081939697265625, 0.0012226104736328125, -0.0033893585205078125, 0.01377105712890625, -0.02362060546875, -0.00311279296875, 0.02239990234375, -0.038055419921875, 0.02581787109375, -0.030853271484375, -0.072021484375, -0.00957489013671875, 0.055267333984375, -0.0277099609375, -0.0048675537109375, 0.0192718505859375, -0.01349639892578125, -0.01213836669921875, 0.0187835693359375, -0.07281494140625, 0.0018053054809570312, -0.0131988525390625, -0.051361083984375, 0.0008697509765625, 0.06280517578125, 0.0211944580078125, 0.003215789794921875, -0.0199737548828125, 0.057525634765625, 0.006099700927734375, -0.051239013671875, -0.062286376953125, 0.00452423095703125, -0.01114654541015625, 0.000888824462890625, -0.01129150390625, -0.0031261444091796875, 0.031280517578125, -0.037506103515625, -0.02294921875, 0.0179901123046875, 0.007686614990234375, 0.0074920654296875, 0.0010366439819335938, 0.01244354248046875, 0.01384735107421875, -0.0091094970703125, -0.0135955810546875, -0.0132904052734375, -0.0197906494140625, 0.028076171875, 0.046630859375, -0.018402099609375, 0.053924560546875, -0.035858154296875, 0.034088134765625, -0.0237884521484375, 0.043182373046875, 0.0029468536376953125, -0.00861358642578125, 0.0060272216796875, -0.03338623046875, -0.00270843505859375, -0.0443115234375, -0.01070404052734375, 0.0230865478515625, -0.041107177734375, 0.0011930465698242188, -0.0028209686279296875, 0.02606201171875, 0.01468658447265625, 0.0154266357421875, 0.036346435546875, 0.002780914306640625, -0.00954437255859375, -0.0017995834350585938, 0.0312042236328125, 0.0009870529174804688, -0.03515625, -0.0186004638671875, 0.0091400146484375, -0.033203125, -0.0125579833984375, 0.007350921630859375, 0.037506103515625, 0.041290283203125, 0.01206207275390625, -0.00018489360809326172, -0.006256103515625, 0.00911712646484375, 0.005596160888671875, -0.00763702392578125, -0.060546875, 0.014373779296875, -0.02923583984375, -0.0001341104507446289, 0.03143310546875, 0.04168701171875, -0.00579833984375, 0.033599853515625, -0.05517578125, -0.09417724609375, 0.030975341796875, -0.03765869140625, 0.042144775390625, 0.015411376953125, 0.031280517578125, 0.01824951171875, 0.018463134765625, -0.03851318359375, -0.0012416839599609375, -0.0111083984375, 0.0125885009765625, -0.039886474609375, -0.01348114013671875, -0.004962921142578125, 0.0274810791015625, -0.0299072265625, 0.002727508544921875, -0.0226287841796875, -0.040191650390625, -0.009765625, -0.0227203369140625, -0.000408172607421875, -0.0211029052734375, -0.003448486328125, 0.002170562744140625, 0.01203155517578125, 0.0224609375, 0.0164794921875, 0.06304931640625, -0.005039215087890625, -0.01342010498046875, -0.00591278076171875, -0.034088134765625, 0.0128631591796875, 0.03656005859375, 0.0213775634765625, 0.041839599609375, -0.01497650146484375, -0.0019197463989257812, 0.0222015380859375, -0.0197296142578125, 0.0260772705078125, 0.004627227783203125, -0.01010894775390625, 0.08062744140625, -0.001827239990234375, 0.0277252197265625, -0.027252197265625, -0.052642822265625, -0.02764892578125, 0.0350341796875, 0.00897216796875, 0.058929443359375, -0.017974853515625, 0.0128021240234375, -0.0277862548828125, -0.0384521484375, -0.00027298927307128906, -0.0377197265625, 0.0333251953125, -0.0218505859375, 0.01165008544921875, -0.001708984375, -0.0050506591796875, -0.002628326416015625, 0.0232696533203125, -0.058074951171875, 0.0131683349609375, 0.0163726806640625, 0.0252838134765625, 0.0562744140625, -0.03460693359375, -0.024688720703125, 0.047332763671875, 0.02386474609375, -0.0162811279296875, -0.03564453125, 0.02069091796875, 0.00458526611328125, 0.022125244140625, -0.0299835205078125, 0.058746337890625, 0.022552490234375, 0.00756072998046875, 0.005584716796875, 0.0279388427734375, 0.038818359375, 0.00024700164794921875, 0.041656494140625, -0.025604248046875, -0.00614166259765625, -0.0275421142578125, -0.0193328857421875, -0.00035309791564941406, -0.018280029296875, 0.00341796875, 0.066162109375, 0.042724609375, -0.045318603515625, 0.0086517333984375, -0.005092620849609375, 0.0223388671875, -0.01222991943359375, -0.005718231201171875, -0.0301513671875, 0.00319671630859375, 0.041290283203125, 0.03302001953125, 0.058929443359375, 0.005779266357421875, -0.0273590087890625, -0.011627197265625, 0.033538818359375, -0.069091796875, -0.06561279296875, -0.058441162109375, -0.04803466796875, 0.0005822181701660156, -0.0033893585205078125, -0.0111541748046875, 0.00759124755859375, 0.01493072509765625, 0.02008056640625, 0.022857666015625, -0.0279083251953125, -0.0212860107421875, -0.041748046875, -0.0780029296875, -0.037261962890625, 0.008056640625, 0.01094818115234375, 0.01055908203125, -0.00197601318359375, -0.016265869140625, -0.0389404296875, -0.00878143310546875, -0.00628662109375, 0.003986358642578125, -0.01413726806640625, -0.005321502685546875, 0.00902557373046875, 0.00565338134765625, 0.0128936767578125, 0.03546142578125, 0.037261962890625, -0.038604736328125, -0.01168060302734375, -0.004268646240234375, -0.0282440185546875, 0.0168609619140625, 0.011199951171875, -0.013336181640625, 0.00342559814453125, 0.036102294921875, -0.03863525390625, -0.01027679443359375, 0.0056610107421875, 0.005031585693359375, 0.0274658203125, -0.018463134765625, -0.01165008544921875, -0.0081024169921875, 0.03399658203125, 0.0447998046875, 0.02734375, -0.031280517578125, 0.0299530029296875, -0.00995635986328125, 0.01525115966796875, 0.03961181640625, 0.0204620361328125, 0.03594970703125, -0.0251922607421875, -0.039642333984375, -0.0074005126953125, -0.03118896484375, -0.0177154541015625, -0.0238189697265625, -0.01543426513671875, -0.021636962890625, 0.04046630859375, -0.009429931640625, 0.040740966796875, -0.0455322265625, -0.035308837890625, -0.031219482421875, 0.0797119140625, -0.0008726119995117188, -0.0302276611328125, 0.01374053955078125, 0.012451171875, -0.04986572265625, 0.0196990966796875, -0.03814697265625, -0.0022182464599609375, -0.06427001953125, 0.00006133317947387695, 0.0002002716064453125, -0.01873779296875, -0.01873779296875, -0.0176544189453125, -0.020660400390625, -0.038818359375, 0.023284912109375, -0.06195068359375, 0.047821044921875, -0.05865478515625, 0.0255279541015625, -0.064697265625, 0.01111602783203125, -0.077392578125, 0.006412506103515625, -0.0038299560546875, 0.0008544921875, 0.0005044937133789062, -0.0028629302978515625, 0.019012451171875, -0.0124053955078125, 0.01470947265625, 0.0041656494140625, 0.011322021484375, 0.0005998611450195312, -0.007480621337890625, 0.006988525390625, -0.0247344970703125, -0.01190185546875, -0.0182647705078125, -0.0023097991943359375, -0.055419921875, -0.03497314453125, -0.023162841796875, -0.0584716796875, 0.032135009765625, -0.05963134765625, 0.0083770751953125, -0.021697998046875, 0.00006085634231567383, -0.038360595703125, -0.0090179443359375, -0.022064208984375, -0.0179595947265625, -0.00009936094284057617, -0.02459716796875, 0.04486083984375, 0.0053558349609375, 0.0030078887939453125, 0.0161895751953125, 0.07574462890625, -0.004085540771484375, -0.0239105224609375, -0.044769287109375, 0.01096343994140625, 0.0229644775390625, 0.0159912109375, 0.037200927734375, 0.0176239013671875, 0.006793975830078125, -0.0091705322265625, 0.016143798828125, 0.0005369186401367188, -0.0291900634765625, 0.0252532958984375, -0.0229644775390625, -0.02801513671875, 0.0283050537109375, -0.0281829833984375, 0.0190277099609375, 0.00965118408203125, 0.01031494140625, -0.004894256591796875, 0.042266845703125, -0.00447845458984375, -0.0298309326171875, 0.00037860870361328125, 0.0098419189453125, -0.051849365234375, 0.0167236328125, -0.09539794921875, 0.0229034423828125, 0.0016927719116210938, 0.0073699951171875, 0.00379180908203125, 0.01073455810546875, -0.015655517578125, -0.047393798828125, -0.051513671875, -0.0090484619140625, 0.0240325927734375, -0.0723876953125, -0.00441741943359375, -0.00989532470703125, -0.0261993408203125, 0.1099853515625, 0.022064208984375, -0.0208282470703125, 0.0135040283203125, -0.029937744140625, -0.01483154296875, 0.00727081298828125, 0.0214385986328125, 0.0146026611328125, 0.018157958984375, -0.005596160888671875, 0.012786865234375, -0.01157379150390625, 0.0295867919921875, -0.02520751953125, 0.0269622802734375, -0.01438140869140625, 0.02020263671875, 0.020294189453125, 0.10491943359375, -0.003009796142578125, 0.06976318359375, -0.0152740478515625, 0.04791259765625, 0.0204925537109375, 0.016754150390625, 0.0293426513671875, -0.01055908203125, -0.007476806640625, -0.0117034912109375, -0.02984619140625, -0.02166748046875, -0.01140594482421875, 0.03009033203125, 0.032440185546875, 0.047821044921875, 0.0178375244140625, -0.028900146484375, -0.0300445556640625, 0.02099609375, 0.021270751953125, -0.04974365234375, -0.049591064453125, -0.0291748046875, -0.00778961181640625, 0.034454345703125, -0.058929443359375, -0.0019159317016601562, -0.03497314453125, -0.0345458984375, -0.03192138671875, 0.038330078125, -0.02581787109375, -0.033447265625, -0.021240234375, 0.006595611572265625, -0.04351806640625, -0.030517578125, 0.01496124267578125, 0.035919189453125, -0.03436279296875, -0.0265045166015625, 0.051910400390625, -0.0028629302978515625, 0.007572174072265625, -0.054534912109375, 0.0438232421875, -0.025360107421875, 0.00853729248046875, 0.023590087890625, -0.00797271728515625, -0.0273590087890625, 0.0033893585205078125, -0.039459228515625, -0.0155029296875, 0.031890869140625, 0.00530242919921875, -0.0380859375, -0.0166778564453125, 0.005382537841796875, 0.0305633544921875, 0.0005435943603515625, 0.00995635986328125, -0.002155303955078125, 0.00511932373046875, 0.00042057037353515625, 0.01287078857421875, -0.0125732421875, 0.035003662109375, -0.007049560546875, 0.064208984375, 0.0017547607421875, 0.00466156005859375, -0.00922393798828125, -0.0298919677734375, 0.02374267578125, 0.0023174285888671875, -0.0144195556640625, -0.06536865234375, 0.049346923828125, -0.03167724609375, 0.029510498046875, -0.010711669921875, -0.040252685546875, -0.01904296875, -0.0037441253662109375, -0.0245513916015625, 0.09466552734375, 0.0160675048828125, -0.023284912109375, 0.00786590576171875, -0.0321044921875, 0.00026035308837890625, -0.0022907257080078125, 0.00705718994140625, -0.018096923828125, -0.003612518310546875, -0.02386474609375, 0.020538330078125, -0.0038909912109375, 0.00891876220703125, -0.007244110107421875, -0.0297393798828125, 0.0007185935974121094, 0.01390838623046875, 0.01113128662109375, 0.01453399658203125, -0.002437591552734375, -0.039764404296875, -0.0056915283203125, 0.034759521484375, -0.004634857177734375, -0.0162200927734375, 0.0215606689453125, -0.0144195556640625, -0.0016736984252929688, 0.068359375, 0.049285888671875, -0.10693359375, 0.0008907318115234375, -0.0181427001953125, 0.01328277587890625, 0.042022705078125, 0.0113525390625, 0.007526397705078125, -0.01044464111328125, 0.0229339599609375, -0.0306854248046875, -0.00959014892578125, 0.017303466796875, -0.02288818359375, -0.01300048828125, -0.03582763671875, 0.01387786865234375, 0.00986480712890625, -0.00823974609375, 0.02069091796875, -0.00206756591796875, 0.0173492431640625, -0.04718017578125, 0.005054473876953125, 0.03692626953125, 0.005401611328125, -0.04876708984375, 0.053375244140625, -0.0196075439453125, 0.0261993408203125, 0.038055419921875, -0.006534576416015625, 0.06439208984375, 0.038726806640625, 0.00566864013671875, -0.00839996337890625, 0.00909423828125, 0.00859832763671875, -0.0262908935546875, -0.034393310546875, 0.020172119140625, -0.0175933837890625, -0.044219970703125, 0.0218353271484375, -0.0338134765625, -0.0372314453125, -0.0222320556640625, -0.0138702392578125, 0.080810546875, -0.003314971923828125, -0.033966064453125, 0.022430419921875, 0.018218994140625, -0.01377105712890625, -0.0236663818359375, -0.01263427734375, -0.0240631103515625, 0.01386260986328125, -0.03094482421875, -0.0213623046875, 0.0263824462890625, -0.0242462158203125, -0.072021484375, 0.0220489501953125, 0.0097503662109375, 0.0406494140625, -0.02203369140625, 0.0091705322265625, 0.0100250244140625, -0.006256103515625, -0.047149658203125, 0.0556640625, -0.023681640625, 0.0633544921875, -0.0740966796875, 0.017303466796875, 0.0025691986083984375, 0.0176239013671875, 0.07489013671875, 0.0178680419921875, -0.004261016845703125, -0.0239715576171875, 0.01763916015625, 0.01479339599609375, -0.03460693359375, 0.0362548828125, 0.005672454833984375, 0.01241302490234375, 0.02252197265625, -0.008392333984375, 0.03192138671875, -0.0302581787109375, -0.0244598388671875, 0.0220947265625, -0.000270843505859375, 0.006687164306640625, -0.0062408447265625, 0.052093505859375, -0.0141448974609375, -0.0271148681640625, 0.01250457763671875, -0.051513671875, 0.032867431640625, 0.01262664794921875, 0.01259613037109375, -0.044158935546875, -0.03521728515625, -0.01702880859375, 0.035888671875, 0.00722503662109375, -0.0040130615234375, 0.07861328125, 0.030303955078125, -0.01513671875, -0.01451873779296875, 0.0151824951171875, -0.024932861328125, -0.0004887580871582031, 0.06536865234375, 0.0517578125, 0.0250244140625, -0.046630859375, -0.044281005859375, 0.036956787109375, 0.09100341796875, -0.043792724609375, -0.0677490234375, 0.01267242431640625, 0.04254150390625, 0.0295257568359375, 0.047088623046875, 0.058013916015625, -0.0272979736328125, 0.047607421875, -0.0556640625, 0.01287841796875, 0.01250457763671875, 0.0033664703369140625, -0.0122833251953125, -0.005031585693359375, 0.00531768798828125, 0.00864410400390625, -0.021820068359375, 0.00510406494140625, 0.0159454345703125, -0.03814697265625, -0.0141448974609375, -0.01044464111328125, 0.093017578125, 0.0223846435546875, -0.0163421630859375, 0.04266357421875, 0.0308380126953125, 0.00885009765625, -0.0167694091796875, -0.0220794677734375, -0.0010652542114257812, 0.0262298583984375, -0.037109375, -0.016265869140625, 0.03131103515625, 0.042083740234375, -0.0609130859375, -0.053680419921875, -0.03240966796875, -0.04364013671875, 0.06817626953125, 0.004528045654296875, 0.017913818359375, -0.01470184326171875, -0.016571044921875, -0.0740966796875, 0.02276611328125, 0.031463623046875, -0.005619049072265625, 0.0130767822265625, 0.00344085693359375, -0.0180206298828125, 0.039337158203125, -0.020172119140625, 0.026763916015625, 0.0077362060546875, -0.06231689453125, -0.03839111328125, -0.0010662078857421875, 0.02813720703125, -0.00605010986328125, 0.0268707275390625, 0.0235595703125, -0.0081939697265625, 0.0254058837890625, -0.06805419921875, 0.037841796875, 0.033203125, 0.01367950439453125, 0.038421630859375, -0.001667022705078125, -0.0007219314575195312, -0.064697265625, -0.03179931640625, 0.018035888671875, 0.004558563232421875, -0.0186309814453125, 0.028106689453125, 0.024200439453125, -0.00940704345703125, -0.0396728515625, 0.036285400390625, -0.0665283203125, -0.050811767578125, 0.0283355712890625, -0.01554107666015625, -0.032501220703125, 0.005702972412109375, -0.0543212890625, 0.0679931640625, -0.003475189208984375, 0.016632080078125, 0.04388427734375, -0.0306396484375, -0.00392913818359375, 0.01152801513671875, -0.0125274658203125, -0.0251007080078125, -0.0173797607421875, -0.0152587890625, -0.00263214111328125, 0.033355712890625, 0.0321044921875, -0.0152740478515625, 0.001373291015625, 0.01593017578125, -0.040374755859375, 0.00984954833984375, -0.00571441650390625, 0.00658416748046875, 0.0201873779296875, 0.0443115234375, -0.0170745849609375, -0.044921875, -0.01873779296875, -0.0155792236328125, 0.006134033203125, -0.01389312744140625, 0.006412506103515625, 0.023956298828125, -0.019439697265625, -0.034393310546875, 0.00719451904296875, -0.004421234130859375, -0.0127716064453125, -0.04156494140625, 0.012298583984375, 0.01525115966796875, 0.01141357421875, -0.0203094482421875, 0.0040130615234375, -0.0229034423828125, 0.005889892578125, -0.0162811279296875, -0.04571533203125, -0.073974609375, -0.00743865966796875, 0.0124969482421875, 0.0248870849609375, -0.07061767578125, 0.05316162109375, 0.0009760856628417969, -0.033294677734375, -0.0086669921875, -0.0655517578125, 0.0185394287109375, 0.029632568359375, -0.025238037109375, -0.0005970001220703125, -0.04345703125, -0.0193023681640625, -0.0160369873046875, 0.0129852294921875, 0.0311126708984375, -0.006404876708984375, -0.018951416015625, 0.0297698974609375, 0.003437042236328125, 0.061431884765625, -0.0308380126953125, -0.0443115234375, -0.02239990234375, 0.0290985107421875, 0.0308990478515625, -0.0419921875, -0.02703857421875, -0.006214141845703125, 0.01322174072265625, -0.04168701171875, 0.04522705078125, 0.044677734375, -0.0228729248046875, -0.03375244140625, 0.06829833984375, -0.017547607421875, -0.008941650390625, -0.0282135009765625, -0.016998291015625, -0.01166534423828125, 0.00048041343688964844, -0.0131988525390625, 0.0093536376953125, -0.04217529296875, 0.0272216796875, -0.0157318115234375, 0.050628662109375, -0.0041351318359375, 0.006015777587890625, -0.04217529296875, -0.01355743408203125, -0.032470703125, -0.00513458251953125, 0.0195159912109375, -0.019256591796875, 0.0364990234375, 0.087646484375, 0.01071929931640625, -0.0161590576171875, -0.0173187255859375, -0.08447265625, -0.03643798828125, -0.019287109375, -0.0130767822265625, -0.04632568359375, 0.049835205078125, 0.054290771484375, 0.00446319580078125, -0.0111541748046875, -0.05963134765625, -0.047332763671875, 0.0016326904296875, -0.0400390625, 0.01499176025390625, -0.085205078125, 0.007335662841796875, -0.01385498046875, -0.031341552734375, 0.007305145263671875, -0.02386474609375, -0.04290771484375, 0.00571441650390625, -0.0156097412109375, -0.0050506591796875, -0.0190582275390625, -0.006805419921875, 0.0238494873046875, -0.0216217041015625, -0.0271148681640625, -0.00838470458984375, 0.0138702392578125, -0.01197052001953125, 0.002040863037109375, 0.00762939453125, -0.00444793701171875, -0.0163421630859375, 0.014678955078125, 0.007076263427734375, 0.0079498291015625, -0.0265045166015625, -0.0115203857421875, -0.0004925727844238281, 0.0416259765625, -0.003322601318359375, 0.0430908203125, 0.01149749755859375, 0.0406494140625, 0.01299285888671875, 0.04296875, 0.00909423828125, -0.0000680685043334961, -0.020477294921875, 0.0428466796875, 0.0139312744140625, -0.0287017822265625, 0.034576416015625, -0.0250244140625, -0.0215911865234375, 0.00788116455078125, -0.00383758544921875, -0.11480712890625, 0.06793212890625, 0.046234130859375, 0.04791259765625, 0.047882080078125 ]
3bea90d3bda56d15f750238d6ba0daf4de35f2d2
Wordpress Stackexchange Q: WP_Query vs get_posts I have read a number of questions on SE regarding these but I still can't figure the exact difference wrt usage. Would it be true to say that I would probably use WP_Query for the majority of secondary loops and only use get_posts if I need the results returned in an array, or to put it another way is the main difference between the two the array vs object return, or is there some other major factor I should be aware of? A: One important thing to note is that get_posts() has a bunch of default arguments that new WP_Query() doesn't have, which include post_type and post_status. The function's defaults are configured to facilitate getting published posts. If you want something different, you'll need to pass in thos parameters explicitly, whereas with WP_Query() you wouldn't have to do that. For example, if you want to get all posts, regardless of their post status, you would need to call: get_posts( array( "post_type" => 'any' ) ); (leaving "post_type" blank - or anything that empty() would evaluate to true will cause get_posts() to apply its default value of "publish").
Q: WP_Query vs get_posts I have read a number of questions on SE regarding these but I still can't figure the exact difference wrt usage. Would it be true to say that I would probably use WP_Query for the majority of secondary loops and only use get_posts if I need the results returned in an array, or to put it another way is the main difference between the two the array vs object return, or is there some other major factor I should be aware of? A: One important thing to note is that get_posts() has a bunch of default arguments that new WP_Query() doesn't have, which include post_type and post_status. The function's defaults are configured to facilitate getting published posts. If you want something different, you'll need to pass in thos parameters explicitly, whereas with WP_Query() you wouldn't have to do that. For example, if you want to get all posts, regardless of their post status, you would need to call: get_posts( array( "post_type" => 'any' ) ); (leaving "post_type" blank - or anything that empty() would evaluate to true will cause get_posts() to apply its default value of "publish"). A: The difference between get_posts & WP_Query You can view get_posts() as a slimmed down WP_Query. In fact looking at the source: //... prepares query array $r $get_posts = new WP_Query; return $get_posts->query($r); get_posts() use WP_Query, but only returns an array of posts - nothing more. Furthermore it sets: $r['no_found_rows'] = true; Normally (by default with WP_Query object) - WordPress queries how many posts there are in total - even if you are only after the first 10. It does this so it can perform pagination. So get_posts() is actually (slightly) quicker (it also ignores sticky posts). Which to use... If you only need an array of posts, and don't need the query object -use get_posts(). Otherwise, if you do need the access to the query object methods, or pagination, or sticky posts at the top, you should use WP_Query.
wordpress
{ "language": "en", "length": 331, "provenance": "stackexchange_00019.jsonl.gz:423001", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62142" }
[ 0.072265625, 0.000046253204345703125, 0.0178680419921875, -0.00624847412109375, 0.0151824951171875, -0.02825927734375, 0.0833740234375, -0.0185394287109375, -0.012359619140625, 0.0284423828125, -0.047454833984375, 0.012176513671875, -0.0281829833984375, 0.0007243156433105469, -0.01070404052734375, -0.046234130859375, 0.056732177734375, -0.051666259765625, 0.0265655517578125, -0.0248565673828125, 0.039031982421875, -0.00555419921875, 0.055938720703125, 0.095703125, -0.000732421875, -0.0338134765625, 0.05938720703125, -0.01959228515625, 0.0186614990234375, -0.011810302734375, 0.00688934326171875, -0.00930023193359375, 0.0217742919921875, 0.010833740234375, -0.021453857421875, 0.01152801513671875, -0.0026302337646484375, 0.002216339111328125, -0.0009417533874511719, 0.019561767578125, -0.0009393692016601562, 0.0008544921875, 0.008880615234375, -0.0159454345703125, -0.0099639892578125, -0.00257110595703125, -0.007160186767578125, -0.018341064453125, 0.00998687744140625, -0.026611328125, 0.00733184814453125, 0.0184478759765625, 0.041961669921875, -0.036834716796875, -0.0194244384765625, 0.0014333724975585938, 0.0391845703125, -0.0211181640625, 0.0565185546875, -0.0667724609375, -0.06951904296875, -0.038330078125, 0.05279541015625, -0.004863739013671875, 0.012481689453125, 0.0198516845703125, 0.049591064453125, 0.0207672119140625, -0.0587158203125, -0.00933074951171875, 0.0176239013671875, -0.042999267578125, -0.0196990966796875, -0.01029205322265625, -0.010833740234375, -0.0238189697265625, 0.0084686279296875, -0.0377197265625, -0.0012693405151367188, 0.034942626953125, -0.0296478271484375, -0.0362548828125, -0.0938720703125, 0.01337432861328125, -0.00399017333984375, 0.01505279541015625, -0.0234832763671875, -0.0032634735107421875, -0.0261077880859375, -0.043182373046875, -0.0082855224609375, -0.051513671875, -0.051666259765625, -0.00757598876953125, 0.01078033447265625, -0.0684814453125, 0.00524139404296875, 0.018646240234375, -0.00943756103515625, 0.005382537841796875, -0.0304107666015625, -0.0291748046875, -0.00373077392578125, -0.003997802734375, 0.0311279296875, 0.027008056640625, 0.0012578964233398438, 0.03729248046875, 0.048980712890625, 0.0249176025390625, 0.0115966796875, 0.03875732421875, 0.0035457611083984375, -0.01947021484375, -0.0224151611328125, 0.019287109375, -0.007381439208984375, -0.0030231475830078125, 0.0007729530334472656, 0.00568389892578125, 0.0138092041015625, 0.026031494140625, 0.021331787109375, -0.0138702392578125, -0.004302978515625, 0.00821685791015625, -0.019134521484375, -0.0440673828125, -0.02484130859375, 0.0697021484375, -0.0238494873046875, -0.014984130859375, 0.044097900390625, 0.007076263427734375, -0.011810302734375, -0.04351806640625, -0.034881591796875, 0.0034027099609375, 0.0038127899169921875, -0.0019989013671875, -0.004726409912109375, -0.04058837890625, 0.02252197265625, 0.0172882080078125, -0.0022907257080078125, 0.021697998046875, 0.02984619140625, 0.01514434814453125, -0.0080108642578125, -0.057281494140625, -0.0097503662109375, 0.027862548828125, -0.0031719207763671875, -0.0014524459838867188, 0.0301971435546875, -0.01432037353515625, -0.001964569091796875, -0.02313232421875, 0.023529052734375, 0.006931304931640625, 0.0269622802734375, 0.01364898681640625, -0.0012607574462890625, -0.01413726806640625, -0.037567138671875, -0.015106201171875, -0.0182647705078125, -0.0120391845703125, 0.01776123046875, 0.00374603271484375, 0.0333251953125, -0.02911376953125, 0.0267333984375, 0.0011148452758789062, -0.007595062255859375, 0.005298614501953125, 0.006031036376953125, -0.00623321533203125, 0.018646240234375, 0.0037841796875, -0.0595703125, -0.047393798828125, 0.0010623931884765625, -0.02325439453125, -0.053924560546875, 0.058990478515625, 0.00872039794921875, 0.0537109375, 0.0034503936767578125, 0.018463134765625, 0.03173828125, 0.041473388671875, -0.03125, 0.0621337890625, 0.014923095703125, -0.047607421875, -0.007465362548828125, -0.0166473388671875, 0.0046539306640625, -0.03448486328125, -0.00829315185546875, 0.00475311279296875, -0.0118408203125, 0.0225677490234375, -0.077392578125, 0.01348114013671875, -0.0316162109375, 0.02685546875, -0.035797119140625, 0.0157012939453125, 0.02252197265625, 0.00409698486328125, -0.03887939453125, 0.0249176025390625, -0.0164947509765625, -0.0217132568359375, -0.028106689453125, -0.0028018951416015625, -0.00811004638671875, -0.01061248779296875, -0.0029048919677734375, -0.014617919921875, -0.023223876953125, 0.031036376953125, 0.0887451171875, -0.02093505859375, 0.0128631591796875, -0.04290771484375, 0.07080078125, 0.00342559814453125, -0.036376953125, 0.020751953125, 0.055145263671875, 0.08135986328125, 0.01155853271484375, 0.004856109619140625, 0.0286865234375, -0.05169677734375, 0.01407623291015625, 0.0391845703125, 0.026580810546875, 0.015869140625, -0.02557373046875, -0.0013561248779296875, 0.0323486328125, -0.0273284912109375, 0.0023021697998046875, -0.00566864013671875, 0.0161285400390625, 0.03759765625, 0.0061187744140625, -0.0274810791015625, 0.009124755859375, -0.0316162109375, -0.012603759765625, 0.0181732177734375, 0.00894927978515625, 0.05035400390625, -0.040130615234375, 0.0064544677734375, -0.01029205322265625, -0.032196044921875, 0.0005702972412109375, -0.0214691162109375, -0.0038738250732421875, 0.0144195556640625, 0.009063720703125, 0.0181121826171875, -0.010101318359375, 0.01143646240234375, -0.003108978271484375, -0.03076171875, 0.0011768341064453125, 0.036224365234375, -0.027191162109375, 0.01220703125, -0.024627685546875, -0.00586700439453125, -0.0004916191101074219, 0.0034580230712890625, 0.00507354736328125, 0.04705810546875, -0.007617950439453125, -0.01806640625, 0.007106781005859375, 0.0020160675048828125, -0.00909423828125, 0.0060882568359375, 0.0020618438720703125, -0.0146026611328125, 0.02593994140625, 0.006725311279296875, -0.04412841796875, 0.0447998046875, -0.0163116455078125, -0.02569580078125, 0.0146636962890625, -0.06988525390625, 0.03863525390625, -0.04803466796875, 0.046295166015625, 0.0615234375, 0.0094451904296875, -0.01318359375, 0.0101470947265625, 0.009918212890625, 0.023529052734375, -0.006679534912109375, -0.0288238525390625, 0.020843505859375, -0.0841064453125, -0.0118865966796875, 0.018310546875, 0.0482177734375, 0.01172637939453125, -0.037628173828125, -0.0031890869140625, 0.02166748046875, -0.09051513671875, -0.10296630859375, -0.01288604736328125, -0.0723876953125, -0.00736236572265625, -0.025970458984375, -0.0242919921875, 0.0168914794921875, -0.031585693359375, 0.009765625, 0.01163482666015625, 0.022918701171875, -0.057159423828125, -0.00909423828125, -0.0723876953125, 0.00838470458984375, -0.0159912109375, 0.0277252197265625, 0.004650115966796875, 0.06414794921875, 0.01074981689453125, -0.0274200439453125, -0.009918212890625, 0.04034423828125, -0.0115509033203125, -0.011627197265625, -0.0025615692138671875, -0.0032520294189453125, 0.0041961669921875, -0.007694244384765625, -0.00035643577575683594, 0.019683837890625, -0.018798828125, -0.0120391845703125, 0.003688812255859375, 0.00803375244140625, 0.0545654296875, 0.01210784912109375, -0.0391845703125, 0.03948974609375, 0.06817626953125, -0.00333404541015625, -0.041107177734375, -0.0272674560546875, -0.054290771484375, 0.044403076171875, 0.01044464111328125, 0.0340576171875, -0.0066680908203125, 0.037567138671875, 0.0009708404541015625, -0.0078887939453125, -0.006961822509765625, -0.0284576416015625, 0.05474853515625, 0.0121307373046875, 0.0255126953125, 0.0027523040771484375, -0.01556396484375, -0.04071044921875, 0.00110626220703125, -0.0218505859375, -0.006771087646484375, -0.0026092529296875, -0.0295562744140625, -0.02142333984375, -0.06640625, 0.0386962890625, -0.044830322265625, -0.0169677734375, -0.032196044921875, -0.005718231201171875, -0.0012559890747070312, 0.07379150390625, 0.0146026611328125, -0.03192138671875, -0.005237579345703125, 0.035400390625, -0.0858154296875, -0.074462890625, 0.0178680419921875, 0.0109710693359375, -0.01467132568359375, -0.01232147216796875, -0.033660888671875, 0.00444793701171875, -0.02838134765625, 0.03033447265625, -0.01079559326171875, -0.03277587890625, 0.0213470458984375, -0.033905029296875, 0.0186309814453125, 0.004428863525390625, -0.003925323486328125, -0.006160736083984375, -0.00875091552734375, -0.04248046875, -0.05889892578125, -0.02679443359375, 0.060821533203125, 0.01617431640625, -0.0300140380859375, -0.006908416748046875, -0.0072174072265625, 0.0369873046875, 0.007724761962890625, 0.016571044921875, 0.01288604736328125, 0.01018524169921875, -0.00601959228515625, -0.018707275390625, 0.002529144287109375, -0.035888671875, -0.015533447265625, -0.05047607421875, -0.0154266357421875, -0.0194549560546875, -0.04949951171875, 0.030670166015625, -0.065185546875, 0.00958251953125, -0.03411865234375, 0.003551483154296875, -0.001445770263671875, 0.031646728515625, -0.005126953125, -0.0033283233642578125, -0.013153076171875, -0.037841796875, 0.0679931640625, 0.026824951171875, 0.0008530616760253906, -0.0213775634765625, 0.08837890625, 0.00780487060546875, -0.0413818359375, -0.030120849609375, -0.045654296875, 0.00904083251953125, -0.0255126953125, 0.057647705078125, 0.025390625, -0.0201873779296875, 0.04425048828125, -0.004100799560546875, -0.026702880859375, 0.0086669921875, 0.0546875, 0.00376129150390625, 0.0017747879028320312, -0.005008697509765625, -0.01959228515625, 0.0067138671875, 0.05859375, 0.0068817138671875, -0.03497314453125, 0.0186614990234375, 0.060882568359375, -0.04071044921875, 0.0206146240234375, -0.0472412109375, 0.003971099853515625, -0.007350921630859375, 0.033355712890625, 0.01558685302734375, 0.0007348060607910156, 0.01561737060546875, -0.0343017578125, -0.0098419189453125, 0.0110015869140625, 0.0185089111328125, 0.044769287109375, 0.01548004150390625, 0.051849365234375, 0.03155517578125, 0.0145111083984375, -0.033355712890625, 0.0007610321044921875, 0.01497650146484375, -0.0153961181640625, -0.051055908203125, -0.0121612548828125, -0.0023059844970703125, 0.033782958984375, 0.02593994140625, -0.01047515869140625, 0.06561279296875, 0.051605224609375, -0.0292816162109375, -0.0166473388671875, -0.006885528564453125, -0.01491546630859375, -0.064697265625, 0.01507568359375, 0.0171051025390625, 0.005886077880859375, 0.035736083984375, 0.08502197265625, -0.028472900390625, 0.085205078125, -0.0272064208984375, 0.01186370849609375, 0.01169586181640625, 0.01416015625, 0.005512237548828125, 0.016876220703125, 0.016571044921875, -0.0103912353515625, 0.0132598876953125, -0.0195159912109375, -0.004581451416015625, 0.0037746429443359375, 0.01464080810546875, 0.01337432861328125, 0.00609588623046875, 0.0230255126953125, 0.0168914794921875, -0.0261993408203125, 0.03704833984375, 0.05767822265625, -0.0035228729248046875, -0.0262451171875, 0.00806427001953125, 0.035736083984375, 0.031280517578125, -0.0206451416015625, 0.0306549072265625, -0.025146484375, 0.04052734375, -0.0251617431640625, -0.0010967254638671875, 0.016082763671875, 0.0142822265625, -0.015594482421875, -0.042755126953125, -0.00434112548828125, -0.01006317138671875, 0.032684326171875, -0.034332275390625, -0.038116455078125, 0.02166748046875, -0.01678466796875, 0.022552490234375, -0.04534912109375, 0.00875091552734375, -0.0360107421875, -0.004238128662109375, 0.0845947265625, 0.05267333984375, -0.033966064453125, -0.01457977294921875, -0.053314208984375, -0.0194091796875, -0.0198211669921875, -0.032806396484375, -0.03887939453125, 0.00403594970703125, 0.006465911865234375, 0.0106201171875, 0.033355712890625, -0.01062774658203125, -0.04705810546875, 0.007160186767578125, 0.0297393798828125, 0.00033211708068847656, -0.00887298583984375, 0.057159423828125, 0.006206512451171875, 0.018646240234375, 0.004444122314453125, 0.029083251953125, -0.018341064453125, -0.0080413818359375, -0.007785797119140625, -0.09075927734375, -0.0125274658203125, -0.004138946533203125, -0.01348114013671875, 0.0204315185546875, -0.0289306640625, 0.00518798828125, 0.0033054351806640625, -0.026611328125, -0.0162200927734375, -0.00832366943359375, 0.041290283203125, -0.01226043701171875, 0.01142120361328125, 0.01806640625, -0.00344085693359375, 0.005496978759765625, -0.010040283203125, -0.03759765625, 0.0029697418212890625, 0.0112457275390625, -0.0042572021484375, 0.008270263671875, -0.0160369873046875, 0.0203704833984375, 0.051666259765625, 0.007373809814453125, 0.040496826171875, -0.0024280548095703125, 0.01213836669921875, 0.022369384765625, -0.0021610260009765625, -0.005146026611328125, 0.00360870361328125, 0.07415771484375, -0.004299163818359375, -0.0296478271484375, 0.040802001953125, -0.039337158203125, 0.0261383056640625, 0.0192108154296875, 0.082275390625, -0.0367431640625, 0.0162506103515625, 0.058746337890625, -0.03704833984375, -0.01493072509765625, 0.0215301513671875, -0.0239410400390625, -0.0241851806640625, 0.01678466796875, -0.0220947265625, -0.00669097900390625, 0.01103973388671875, 0.0031299591064453125, -0.004878997802734375, -0.0258331298828125, 0.0294189453125, 0.022491455078125, -0.01541900634765625, 0.044281005859375, 0.0207977294921875, 0.0157470703125, -0.006496429443359375, 0.0159149169921875, -0.0291595458984375, -0.018890380859375, -0.06793212890625, -0.0285491943359375, -0.009765625, -0.028045654296875, 0.032257080078125, 0.0212554931640625, 0.01496124267578125, 0.05792236328125, 0.006565093994140625, 0.00661468505859375, 0.020599365234375, -0.0196533203125, -0.055389404296875, -0.002964019775390625, 0.0478515625, 0.050811767578125, -0.056488037109375, 0.048797607421875, -0.0299072265625, -0.01271820068359375, 0.003993988037109375, -0.04608154296875, 0.0450439453125, -0.06414794921875, 0.01280975341796875, 0.023101806640625, -0.016082763671875, 0.004573822021484375, -0.006740570068359375, -0.00209808349609375, -0.0186614990234375, 0.019439697265625, -0.00992584228515625, 0.0014896392822265625, -0.007266998291015625, -0.024169921875, -0.02587890625, 0.035858154296875, 0.005527496337890625, 0.00167083740234375, 0.04534912109375, 0.0003306865692138672, -0.0413818359375, -0.015380859375, -0.053741455078125, 0.044525146484375, 0.0096588134765625, 0.04925537109375, -0.087890625, -0.01214599609375, -0.01219940185546875, 0.028717041015625, 0.07110595703125, 0.00959014892578125, -0.04071044921875, -0.00930023193359375, 0.07659912109375, 0.06121826171875, 0.0220184326171875, 0.0197601318359375, 0.02862548828125, 0.07476806640625, 0.07843017578125, -0.041717529296875, 0.033111572265625, 0.006343841552734375, 0.01045989990234375, 0.05194091796875, -0.00737762451171875, -0.01904296875, 0.00719451904296875, -0.0131988525390625, -0.048553466796875, 0.0018796920776367188, 0.02215576171875, 0.017730712890625, -0.000026047229766845703, 0.042510986328125, 0.047515869140625, -0.038604736328125, -0.0362548828125, -0.024078369140625, 0.03668212890625, 0.02337646484375, 0.0254364013671875, 0.036895751953125, 0.00943756103515625, 0.089111328125, -0.01049041748046875, 0.020050048828125, 0.007389068603515625, -0.0003998279571533203, 0.057403564453125, 0.006793975830078125, 0.024688720703125, -0.07391357421875, -0.0018758773803710938, 0.04840087890625, 0.06903076171875, -0.033050537109375, -0.034820556640625, 0.001705169677734375, -0.006744384765625, 0.0142822265625, -0.0152435302734375, 0.00594329833984375, -0.0072021484375, 0.00045037269592285156, -0.0184173583984375, -0.00772857666015625, -0.01056671142578125, -0.02178955078125, -0.0249176025390625, -0.027679443359375, 0.0556640625, 0.0252532958984375, -0.028594970703125, -0.0142974853515625, 0.0030364990234375, 0.049713134765625, 0.0151824951171875, 0.0435791015625, -0.0322265625, -0.0202789306640625, -0.00981903076171875, 0.014617919921875, -0.01824951171875, 0.02642822265625, -0.055816650390625, -0.061431884765625, 0.0281219482421875, 0.048614501953125, 0.0723876953125, 0.003589630126953125, 0.04254150390625, 0.045928955078125, -0.004985809326171875, 0.0169525146484375, 0.039886474609375, 0.0019855499267578125, -0.026824951171875, -0.0182342529296875, -0.01259613037109375, 0.0172576904296875, -0.007564544677734375, 0.00975799560546875, 0.0152130126953125, 0.0183563232421875, -0.008758544921875, 0.041168212890625, -0.0034046173095703125, 0.0006570816040039062, 0.0667724609375, -0.01052093505859375, 0.053985595703125, 0.0158843994140625, -0.05303955078125, -0.016754150390625, -0.00580596923828125, -0.01036834716796875, -0.00374603271484375, 0.020599365234375, -0.0025539398193359375, 0.0301361083984375, -0.00986480712890625, -0.0188751220703125, 0.011962890625, 0.0014867782592773438, 0.0249786376953125, -0.0015583038330078125, -0.0003962516784667969, -0.0037326812744140625, -0.07757568359375, -0.0482177734375, -0.0268707275390625, 0.01351165771484375, -0.01087188720703125, 0.0283660888671875, 0.027984619140625, 0.0179901123046875, -0.00569915771484375, 0.02716064453125, -0.0246734619140625, -0.0169830322265625, 0.0248565673828125, -0.02362060546875, -0.004215240478515625, -0.003978729248046875, 0.0089874267578125, -0.0185089111328125, 0.048431396484375, -0.06365966796875, -0.009002685546875, -0.023468017578125, 0.0173187255859375, -0.032623291015625, 0.006328582763671875, -0.03240966796875, 0.025421142578125, 0.0243377685546875, -0.00823211669921875, 0.02252197265625, -0.05462646484375, -0.03399658203125, 0.012603759765625, -0.0170440673828125, -0.0557861328125, 0.040313720703125, -0.066650390625, 0.049896240234375, 0.0270233154296875, -0.012359619140625, 0.036956787109375, -0.01152801513671875, -0.033172607421875, 0.0225677490234375, 0.01442718505859375, -0.018524169921875, -0.005794525146484375, 0.01995849609375, -0.061981201171875, -0.0295257568359375, 0.01540374755859375, -0.007305145263671875, 0.01580810546875, -0.043212890625, 0.0029354095458984375, -0.005489349365234375, -0.00420379638671875, -0.0135650634765625, 0.0115509033203125, -0.0259552001953125, -0.0177764892578125, 0.01305389404296875, -0.0789794921875, 0.0009584426879882812, -0.029449462890625, 0.02557373046875, -0.0018758773803710938, -0.028289794921875, -0.0020427703857421875, -0.015289306640625, -0.015289306640625, -0.0203399658203125, -0.0357666015625, 0.01250457763671875, 0.020721435546875, -0.021331787109375, 0.016693115234375, -0.0458984375, -0.043975830078125, -0.013671875, 0.03387451171875, 0.0447998046875, -0.0391845703125, -0.039581298828125, 0.06207275390625, 0.01360321044921875, 0.0850830078125, 0.00957489013671875, -0.0164031982421875, 0.006893157958984375, 0.0065155029296875, -0.0183563232421875, -0.052734375, 0.0262451171875, -0.046478271484375, -0.0318603515625, 0.0165557861328125, 0.0093231201171875, 0.04095458984375, -0.010955810546875, -0.040557861328125, 0.07989501953125, -0.0092315673828125, -0.0147857666015625, -0.0438232421875, -0.01302337646484375, 0.01873779296875, -0.00452423095703125, -0.01114654541015625, -0.01308441162109375, -0.07537841796875, -0.007320404052734375, 0.005542755126953125, 0.040771484375, 0.0246734619140625, 0.0088653564453125, -0.0509033203125, -0.01995849609375, -0.02850341796875, 0.0062103271484375, -0.01837158203125, 0.004634857177734375, 0.011566162109375, 0.035125732421875, -0.0222625732421875, 0.0242462158203125, 0.006671905517578125, 0.02593994140625, -0.0179901123046875, 0.001903533935546875, 0.00591278076171875, 0.0265655517578125, 0.05224609375, 0.0361328125, 0.01058197021484375, -0.053497314453125, 0.004364013671875, -0.01360321044921875, -0.038177490234375, -0.01088714599609375, 0.0258636474609375, -0.0694580078125, -0.0166473388671875, 0.019378662109375, -0.0290374755859375, 0.011627197265625, -0.059356689453125, -0.048675537109375, -0.005130767822265625, -0.0714111328125, -0.0146026611328125, -0.0068511962890625, -0.045745849609375, 0.017822265625, 0.0001246929168701172, -0.0037097930908203125, 0.00872802734375, 0.031341552734375, -0.0184326171875, 0.03839111328125, 0.03277587890625, 0.025482177734375, -0.00970458984375, -0.0079803466796875, 0.0390625, -0.0323486328125, 0.03424072265625, -0.0234832763671875, 0.004169464111328125, 0.03411865234375, -0.002079010009765625, 0.032012939453125, -0.0007653236389160156, 0.052459716796875, 0.01174163818359375, 0.0401611328125, -0.004703521728515625, 0.07659912109375, 0.00021898746490478516, 0.0208740234375, -0.0178680419921875, -0.006084442138671875, 0.01552581787109375, -0.0341796875, 0.001071929931640625, 0.0019207000732421875, -0.036773681640625, -0.03350830078125, 0.00830078125, 0.00403594970703125, -0.01302337646484375, 0.0174407958984375 ]
91bf0492c4602ec78b9fca7aab327e5281651126
Wordpress Stackexchange Q: Is it necessary to reset the query after using get_posts()? Is it necessary to reset the query after using get_posts() ? I have been looking at this page and I don't see any reference to get_posts() ... I can't make it out for sure from this page either. I can't see why it wouldn't be necessary ( though on my test page it doesnt cause any problems without wp_reset_postsdata() `wp_reset_query()' or ''rewind_posts()' ) but if it is which is the right function(s) to use. A: No. get_posts() does not modify global $wp_query variable and it doesn't need to be cleaned up. Note that if you further use setup_postdata() you do need to wp_reset_postdata() afterwards.
Q: Is it necessary to reset the query after using get_posts()? Is it necessary to reset the query after using get_posts() ? I have been looking at this page and I don't see any reference to get_posts() ... I can't make it out for sure from this page either. I can't see why it wouldn't be necessary ( though on my test page it doesnt cause any problems without wp_reset_postsdata() `wp_reset_query()' or ''rewind_posts()' ) but if it is which is the right function(s) to use. A: No. get_posts() does not modify global $wp_query variable and it doesn't need to be cleaned up. Note that if you further use setup_postdata() you do need to wp_reset_postdata() afterwards.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:423012", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62185" }
[ 0.05963134765625, 0.01244354248046875, 0.0027408599853515625, -0.0182952880859375, 0.039886474609375, -0.0208282470703125, 0.048126220703125, -0.0279541015625, 0.037841796875, 0.0210113525390625, -0.0635986328125, -0.0399169921875, 0.0308685302734375, -0.0177764892578125, -0.0174713134765625, -0.0283660888671875, 0.05865478515625, -0.045989990234375, 0.0078277587890625, -0.017547607421875, 0.022369384765625, 0.02069091796875, 0.037384033203125, 0.0821533203125, -0.00728607177734375, -0.000008702278137207031, 0.060272216796875, -0.008941650390625, -0.0202178955078125, -0.04046630859375, -0.003124237060546875, 0.0167236328125, 0.0284271240234375, 0.0006537437438964844, -0.016571044921875, 0.004425048828125, 0.006755828857421875, -0.0017080307006835938, -0.00563812255859375, 0.0384521484375, -0.00199127197265625, 0.00649261474609375, -0.0270233154296875, -0.01435089111328125, -0.03125, 0.01320648193359375, -0.030181884765625, -0.0182952880859375, 0.0136566162109375, -0.003749847412109375, 0.019439697265625, -0.0008435249328613281, 0.03509521484375, 0.00516510009765625, -0.03564453125, -0.0263824462890625, 0.0352783203125, -0.04998779296875, 0.047882080078125, -0.034332275390625, -0.04248046875, -0.03173828125, 0.042999267578125, -0.0219573974609375, 0.0074920654296875, 0.0104217529296875, 0.006397247314453125, 0.014892578125, -0.07373046875, 0.0102081298828125, 0.057525634765625, -0.07183837890625, -0.0234222412109375, 0.002384185791015625, 0.0272064208984375, -0.035614013671875, -0.0055999755859375, -0.040802001953125, -0.006622314453125, 0.07696533203125, -0.0276031494140625, -0.0618896484375, -0.06512451171875, 0.01016998291015625, -0.01001739501953125, 0.00473785400390625, -0.00550079345703125, 0.008575439453125, -0.024993896484375, -0.0643310546875, -0.0213470458984375, -0.03424072265625, -0.035919189453125, -0.01220703125, -0.037384033203125, -0.0304107666015625, 0.01922607421875, 0.05767822265625, -0.0236053466796875, -0.00928497314453125, 0.003940582275390625, -0.0191802978515625, -0.01385498046875, -0.020355224609375, 0.035064697265625, -0.00638580322265625, -0.04290771484375, 0.001506805419921875, 0.08111572265625, 0.072998046875, 0.008636474609375, 0.056915283203125, -0.0257568359375, -0.0330810546875, -0.065185546875, 0.0433349609375, -0.01885986328125, -0.03466796875, 0.01201629638671875, -0.002391815185546875, 0.00830841064453125, 0.01456451416015625, -0.030853271484375, 0.02410888671875, 0.031005859375, 0.0266876220703125, -0.0204010009765625, 0.016357421875, -0.0272674560546875, 0.05242919921875, -0.016204833984375, 0.005313873291015625, 0.07000732421875, 0.00383758544921875, -0.0160980224609375, -0.040313720703125, -0.04052734375, 0.0066070556640625, 0.0173492431640625, 0.01557159423828125, -0.0244140625, -0.052215576171875, 0.0338134765625, 0.007602691650390625, 0.03228759765625, 0.01351165771484375, 0.025726318359375, 0.014739990234375, 0.0102386474609375, -0.02880859375, 0.007656097412109375, 0.033782958984375, -0.0074005126953125, -0.006397247314453125, 0.03607177734375, -0.0208282470703125, 0.01000213623046875, -0.033111572265625, 0.00843048095703125, -0.0033779144287109375, 0.0281982421875, 0.006519317626953125, 0.012451171875, 0.0173797607421875, -0.03643798828125, 0.0156402587890625, -0.0150909423828125, -0.014678955078125, 0.022430419921875, 0.0031604766845703125, 0.0772705078125, -0.01971435546875, 0.0172119140625, -0.0078125, 0.0016412734985351562, -0.0211639404296875, 0.018096923828125, -0.033935546875, 0.0196533203125, 0.0416259765625, -0.02813720703125, -0.037109375, 0.002712249755859375, -0.02545166015625, -0.054931640625, 0.034271240234375, 0.0178070068359375, 0.10003662109375, 0.0088043212890625, 0.03192138671875, 0.036041259765625, -0.0169677734375, -0.042022705078125, 0.0180206298828125, 0.03759765625, 0.01103973388671875, -0.0447998046875, -0.0208587646484375, 0.01861572265625, -0.04248046875, 0.004932403564453125, 0.00959014892578125, -0.0465087890625, -0.006244659423828125, -0.127197265625, 0.003559112548828125, -0.037261962890625, 0.03289794921875, 0.005615234375, 0.021209716796875, 0.0243682861328125, 0.034149169921875, -0.0609130859375, 0.0347900390625, -0.037811279296875, 0.00923919677734375, -0.0215911865234375, 0.0302734375, -0.0277557373046875, 0.016204833984375, -0.0419921875, -0.0233001708984375, -0.039703369140625, 0.0164794921875, 0.060760498046875, -0.02197265625, 0.00434112548828125, -0.04327392578125, 0.035858154296875, -0.0304718017578125, -0.016876220703125, 0.06292724609375, 0.0298614501953125, 0.0555419921875, 0.00003641843795776367, 0.008941650390625, 0.0212860107421875, -0.051300048828125, 0.0012331008911132812, 0.03643798828125, 0.015411376953125, 0.00617218017578125, -0.038787841796875, -0.0101470947265625, -0.0267486572265625, -0.053924560546875, -0.001071929931640625, -0.0008225440979003906, 0.0209197998046875, 0.08563232421875, 0.020172119140625, -0.01495361328125, -0.01345062255859375, -0.01070404052734375, -0.002803802490234375, 0.001758575439453125, 0.01035308837890625, 0.032806396484375, 0.0196380615234375, -0.007701873779296875, -0.0190277099609375, 0.018402099609375, 0.006870269775390625, -0.01050567626953125, 0.0181427001953125, 0.00003629922866821289, 0.0020923614501953125, 0.0109100341796875, -0.0011968612670898438, 0.00957489013671875, 0.0032482147216796875, -0.04644775390625, -0.006710052490234375, 0.026275634765625, -0.035888671875, 0.01226043701171875, -0.039581298828125, 0.0033626556396484375, 0.00756072998046875, -0.0007929801940917969, -0.0010662078857421875, -0.00701141357421875, -0.004138946533203125, -0.01041412353515625, 0.023284912109375, -0.03607177734375, 0.0099334716796875, -0.00739288330078125, 0.044525146484375, 0.0143585205078125, 0.042816162109375, 0.00016415119171142578, -0.05120849609375, 0.06842041015625, -0.01873779296875, -0.029998779296875, 0.004253387451171875, -0.03179931640625, 0.0238800048828125, -0.01226043701171875, 0.03955078125, 0.0672607421875, 0.032958984375, 0.0013341903686523438, 0.013031005859375, 0.023895263671875, 0.034576416015625, 0.0171051025390625, 0.00917816162109375, 0.0200958251953125, -0.061126708984375, -0.00920867919921875, 0.039031982421875, 0.09088134765625, 0.0012769699096679688, -0.042572021484375, 0.0033054351806640625, 0.056243896484375, -0.06951904296875, -0.0869140625, -0.0258941650390625, -0.0369873046875, -0.0173797607421875, -0.00962066650390625, -0.0099945068359375, 0.0044708251953125, -0.0307769775390625, 0.0167999267578125, 0.00440216064453125, 0.011260986328125, -0.033599853515625, -0.052642822265625, -0.061279296875, -0.07415771484375, 0.00008529424667358398, 0.002681732177734375, 0.0015115737915039062, 0.0667724609375, -0.0014400482177734375, -0.055419921875, -0.0294036865234375, -0.0023822784423828125, -0.0302276611328125, -0.0189361572265625, 0.00384521484375, 0.006198883056640625, 0.00514984130859375, 0.0119476318359375, -0.0211944580078125, 0.01654052734375, -0.0174407958984375, -0.037811279296875, 0.00859832763671875, 0.0119781494140625, 0.036102294921875, -0.004608154296875, -0.022705078125, 0.0511474609375, 0.01222991943359375, -0.00897216796875, -0.0265350341796875, -0.01168060302734375, -0.0411376953125, -0.034515380859375, 0.00913238525390625, 0.016326904296875, -0.036590576171875, 0.01611328125, 0.02117919921875, -0.0163726806640625, -0.00548553466796875, -0.0221099853515625, 0.06463623046875, 0.0137176513671875, 0.03265380859375, -0.01436614990234375, -0.0160064697265625, -0.04547119140625, -0.0187835693359375, -0.032745361328125, -0.0167999267578125, -0.00921630859375, -0.032958984375, -0.00824737548828125, -0.04962158203125, 0.0237274169921875, -0.02392578125, -0.00705718994140625, -0.0119476318359375, -0.006511688232421875, -0.0020465850830078125, 0.057098388671875, -0.02294921875, -0.0218505859375, -0.0178985595703125, 0.0012884140014648438, -0.054718017578125, -0.049957275390625, -0.033233642578125, 0.001434326171875, -0.03436279296875, -0.00750732421875, -0.0087738037109375, -0.015777587890625, -0.02435302734375, 0.0341796875, -0.01806640625, -0.01485443115234375, 0.0265655517578125, -0.046142578125, 0.007354736328125, -0.0201263427734375, 0.0018014907836914062, -0.0379638671875, -0.00603485107421875, -0.05126953125, -0.099609375, -0.0265045166015625, 0.01007843017578125, 0.06829833984375, 0.025787353515625, -0.05767822265625, -0.01263427734375, 0.048004150390625, 0.00919342041015625, 0.00252532958984375, 0.021484375, 0.0142974853515625, -0.00794219970703125, -0.00020992755889892578, 0.01050567626953125, -0.0242919921875, -0.01293182373046875, -0.0208740234375, 0.030120849609375, 0.0133209228515625, -0.05389404296875, -0.0142822265625, -0.054962158203125, 0.0081024169921875, -0.057525634765625, -0.01236724853515625, -0.0011920928955078125, -0.00543212890625, -0.019073486328125, 0.0033283233642578125, 0.00238037109375, -0.04156494140625, 0.0096588134765625, 0.0672607421875, -0.01000213623046875, 0.0007815361022949219, 0.0052490234375, 0.016265869140625, -0.055145263671875, -0.029998779296875, -0.0109405517578125, 0.0216217041015625, -0.030242919921875, 0.036590576171875, 0.0151214599609375, -0.020355224609375, 0.037750244140625, -0.005084991455078125, -0.0164642333984375, -0.0287322998046875, 0.049530029296875, 0.0006756782531738281, -0.007007598876953125, 0.02001953125, -0.0208282470703125, 0.044769287109375, 0.0347900390625, -0.00887298583984375, 0.01546478271484375, 0.0419921875, 0.0283966064453125, -0.04925537109375, -0.00907135009765625, -0.031707763671875, -0.008056640625, 0.004642486572265625, 0.031463623046875, 0.00461578369140625, 0.0156707763671875, 0.00798797607421875, -0.026702880859375, -0.00438690185546875, 0.007770538330078125, 0.01483154296875, 0.0343017578125, 0.00714111328125, 0.057861328125, -0.0019817352294921875, 0.01065826416015625, -0.031951904296875, -0.005069732666015625, 0.0192108154296875, -0.00878143310546875, -0.06268310546875, 0.0498046875, -0.0106964111328125, 0.0007791519165039062, 0.0224456787109375, 0.0131378173828125, 0.0523681640625, -0.0038280487060546875, -0.00853729248046875, -0.0037899017333984375, -0.001354217529296875, -0.031341552734375, -0.045745849609375, 0.055633544921875, 0.0280914306640625, -0.013336181640625, 0.023651123046875, 0.04248046875, -0.0222625732421875, 0.032135009765625, 0.00525665283203125, 0.0228424072265625, -0.00460052490234375, 0.013427734375, -0.0051116943359375, 0.04986572265625, 0.0179901123046875, 0.01013946533203125, 0.0142364501953125, -0.05767822265625, -0.0010118484497070312, 0.01392364501953125, 0.041595458984375, 0.0010080337524414062, -0.0301055908203125, 0.040313720703125, 0.00708770751953125, -0.016510009765625, 0.055419921875, 0.046844482421875, -0.031524658203125, -0.035919189453125, 0.004634857177734375, 0.046142578125, 0.00453948974609375, 0.01434326171875, 0.0180816650390625, -0.00933074951171875, 0.01611328125, -0.0187530517578125, 0.0058441162109375, -0.0230560302734375, -0.00673675537109375, 0.0026607513427734375, -0.036712646484375, -0.009796142578125, 0.03729248046875, 0.02691650390625, -0.0294036865234375, -0.024932861328125, 0.045166015625, 0.0032176971435546875, 0.04156494140625, -0.04376220703125, -0.01202392578125, -0.032562255859375, 0.006473541259765625, 0.033050537109375, 0.018646240234375, -0.022430419921875, -0.0274810791015625, -0.076416015625, -0.03369140625, -0.03839111328125, -0.0197906494140625, -0.04583740234375, 0.0301666259765625, 0.03192138671875, 0.03948974609375, 0.01320648193359375, -0.04595947265625, -0.00897979736328125, -0.0223236083984375, 0.0241851806640625, 0.06988525390625, 0.0005879402160644531, 0.01479339599609375, 0.00218963623046875, -0.004131317138671875, 0.0207977294921875, 0.0131072998046875, 0.0031337738037109375, -0.031341552734375, 0.0032901763916015625, -0.050323486328125, -0.0289459228515625, -0.001949310302734375, -0.017974853515625, 0.01058197021484375, 0.01299285888671875, -0.01132965087890625, 0.00823211669921875, -0.0313720703125, 0.00157928466796875, -0.01441192626953125, 0.03076171875, -0.0556640625, -0.01421356201171875, 0.03515625, -0.0188140869140625, 0.0235137939453125, -0.011474609375, -0.0002770423889160156, 0.01096343994140625, -0.02911376953125, 0.0029392242431640625, 0.0037441253662109375, -0.0145416259765625, 0.0207366943359375, 0.044891357421875, -0.00205230712890625, 0.032073974609375, 0.0129852294921875, 0.00856781005859375, 0.028106689453125, -0.0218505859375, 0.0082550048828125, 0.0252685546875, 0.039825439453125, -0.0188446044921875, -0.00597381591796875, 0.01129913330078125, -0.0207977294921875, 0.00447845458984375, 0.01438140869140625, 0.0504150390625, -0.02105712890625, 0.00213623046875, 0.041839599609375, -0.01474761962890625, -0.0005092620849609375, 0.01403045654296875, -0.002605438232421875, -0.0014400482177734375, 0.0190277099609375, -0.0269012451171875, -0.0214691162109375, 0.0103912353515625, 0.001453399658203125, 0.01215362548828125, -0.032958984375, 0.0706787109375, 0.0073394775390625, -0.0179595947265625, 0.0177001953125, 0.01317596435546875, 0.001678466796875, -0.0210418701171875, 0.0197906494140625, -0.0115966796875, -0.017547607421875, -0.06036376953125, 0.019012451171875, 0.007549285888671875, -0.016448974609375, 0.0113983154296875, 0.0095367431640625, -0.0087127685546875, 0.04681396484375, -0.02435302734375, 0.02496337890625, 0.006824493408203125, -0.0141448974609375, -0.051300048828125, -0.020294189453125, 0.04217529296875, 0.056243896484375, -0.055267333984375, 0.05059814453125, -0.01007080078125, -0.0254058837890625, -0.017974853515625, -0.037506103515625, 0.033660888671875, 0.0022945404052734375, -0.0173492431640625, 0.01312255859375, 0.0183258056640625, 0.007320404052734375, -0.01374053955078125, -0.0201416015625, 0.009735107421875, 0.05584716796875, -0.01971435546875, 0.024566650390625, -0.0132598876953125, -0.04351806640625, -0.04791259765625, 0.07720947265625, -0.01148223876953125, 0.033233642578125, 0.0283966064453125, 0.01212310791015625, -0.0218963623046875, 0.005218505859375, -0.03399658203125, 0.05078125, 0.0308380126953125, 0.061798095703125, -0.1058349609375, -0.047119140625, 0.01493072509765625, 0.08758544921875, 0.04925537109375, -0.001972198486328125, -0.0161895751953125, -0.02197265625, 0.040496826171875, 0.088134765625, 0.031646728515625, -0.01153564453125, -0.0032825469970703125, 0.0682373046875, 0.08544921875, -0.0523681640625, 0.038421630859375, -0.00025963783264160156, -0.017364501953125, 0.01702880859375, -0.004550933837890625, -0.01403045654296875, -0.0294647216796875, 0.01165008544921875, -0.03387451171875, -0.0169830322265625, 0.005062103271484375, 0.027130126953125, -0.0101776123046875, 0.0384521484375, 0.020416259765625, -0.00609588623046875, -0.006130218505859375, -0.022216796875, 0.041534423828125, 0.0079345703125, 0.036041259765625, 0.061248779296875, 0.015350341796875, 0.05615234375, 0.0197906494140625, 0.0266571044921875, 0.0082244873046875, 0.0011434555053710938, 0.0662841796875, 0.036529541015625, 0.05303955078125, -0.0182037353515625, 0.00312042236328125, 0.006763458251953125, 0.06158447265625, -0.046783447265625, -0.002880096435546875, 0.0011262893676757812, -0.021881103515625, 0.01250457763671875, -0.047393798828125, 0.01509857177734375, 0.0236358642578125, -0.0169677734375, -0.0157470703125, 0.001598358154296875, 0.0273895263671875, -0.0191497802734375, -0.0015583038330078125, -0.023895263671875, 0.00640106201171875, 0.0247955322265625, -0.006893157958984375, -0.007099151611328125, 0.0189361572265625, 0.0281829833984375, -0.003841400146484375, 0.04052734375, -0.006694793701171875, -0.0006518363952636719, -0.0125274658203125, 0.032257080078125, -0.00716400146484375, 0.0218658447265625, -0.0239105224609375, -0.04437255859375, -0.00850677490234375, 0.034637451171875, 0.07647705078125, -0.007190704345703125, 0.07977294921875, 0.037261962890625, -0.043853759765625, 0.0055084228515625, -0.01488494873046875, -0.009735107421875, 0.0418701171875, -0.0189208984375, 0.006549835205078125, -0.015228271484375, -0.00959014892578125, -0.036376953125, 0.00835418701171875, 0.00640106201171875, 0.01457977294921875, 0.01485443115234375, 0.0107421875, -0.0265045166015625, 0.036163330078125, 0.008026123046875, 0.07952880859375, 0.0276947021484375, -0.049072265625, 0.0042266845703125, -0.027984619140625, -0.02685546875, -0.0202484130859375, 0.020416259765625, 0.00922393798828125, 0.022064208984375, -0.0162353515625, -0.042938232421875, 0.0260772705078125, 0.031982421875, -0.019744873046875, 0.0122222900390625, 0.01727294921875, -0.032745361328125, -0.048980712890625, -0.039642333984375, -0.01335906982421875, 0.0168609619140625, 0.00311279296875, 0.02899169921875, 0.01546478271484375, 0.0145111083984375, 0.0027980804443359375, -0.00406646728515625, -0.000629425048828125, 0.0104217529296875, -0.01010894775390625, -0.0153961181640625, -0.00495147705078125, -0.001789093017578125, 0.0079803466796875, 0.052154541015625, 0.01715087890625, -0.0305023193359375, 0.057891845703125, -0.034759521484375, -0.01177215576171875, -0.045989990234375, 0.02288818359375, -0.0111236572265625, 0.0118560791015625, 0.040191650390625, -0.003326416015625, 0.01959228515625, -0.032318115234375, -0.0341796875, 0.029541015625, -0.01464080810546875, -0.0014591217041015625, 0.024993896484375, -0.03277587890625, 0.0096588134765625, 0.0214385986328125, -0.00911712646484375, 0.0338134765625, -0.0218048095703125, -0.032867431640625, 0.00983428955078125, 0.01532745361328125, -0.03662109375, 0.0002772808074951172, 0.0008692741394042969, -0.05975341796875, -0.0205535888671875, 0.062744140625, 0.0207061767578125, 0.019439697265625, -0.07928466796875, 0.0294342041015625, -0.045196533203125, -0.00962066650390625, -0.0097503662109375, 0.01534271240234375, -0.052642822265625, -0.00968170166015625, -0.021087646484375, -0.0850830078125, -0.033660888671875, 0.0010776519775390625, 0.038970947265625, 0.0244903564453125, -0.07086181640625, 0.0350341796875, -0.0186767578125, 0.01436614990234375, 0.0007719993591308594, -0.053436279296875, 0.0225677490234375, 0.0289764404296875, -0.022430419921875, -0.0159759521484375, -0.0386962890625, -0.024139404296875, -0.028350830078125, 0.0157470703125, 0.040863037109375, -0.04095458984375, -0.02899169921875, 0.026702880859375, 0.02593994140625, 0.053985595703125, 0.0158843994140625, -0.0012722015380859375, 0.035369873046875, 0.027679443359375, -0.030242919921875, -0.100830078125, -0.0101776123046875, -0.045166015625, 0.0504150390625, -0.031219482421875, 0.03558349609375, 0.0555419921875, -0.01715087890625, -0.07464599609375, 0.047882080078125, -0.0244293212890625, -0.0265960693359375, -0.03375244140625, -0.012298583984375, 0.005069732666015625, 0.02374267578125, 0.018890380859375, -0.029296875, -0.047454833984375, 0.0007243156433105469, 0.0086212158203125, 0.029693603515625, 0.053558349609375, 0.0124053955078125, -0.035400390625, -0.021575927734375, -0.043212890625, 0.0090484619140625, -0.0151519775390625, -0.00963592529296875, 0.016632080078125, 0.0289154052734375, -0.0292816162109375, -0.00391387939453125, -0.0024776458740234375, 0.01971435546875, -0.0290374755859375, 0.03973388671875, 0.0300750732421875, 0.04449462890625, 0.01568603515625, 0.052581787109375, -0.0002034902572631836, -0.047332763671875, -0.0146484375, 0.0134429931640625, 0.0248260498046875, -0.01230621337890625, 0.012237548828125, -0.046173095703125, -0.021148681640625, -0.020416259765625, -0.005889892578125, -0.001861572265625, -0.07135009765625, -0.0338134765625, -0.021270751953125, -0.0679931640625, 0.0005884170532226562, 0.00009530782699584961, -0.010589599609375, -0.029754638671875, 0.010772705078125, -0.006175994873046875, -0.00684356689453125, 0.013336181640625, -0.039276123046875, 0.037078857421875, 0.023651123046875, 0.026611328125, -0.0208892822265625, -0.01267242431640625, 0.023345947265625, 0.0033588409423828125, 0.01261138916015625, -0.0175933837890625, -0.0230865478515625, 0.006282806396484375, 0.01190948486328125, 0.007129669189453125, 0.0011739730834960938, 0.0487060546875, 0.032989501953125, -0.0027370452880859375, 0.006893157958984375, 0.0792236328125, 0.0222015380859375, 0.04144287109375, -0.014312744140625, -0.01335906982421875, 0.0219268798828125, -0.06011962890625, 0.0017175674438476562, 0.0131072998046875, -0.0001729726791381836, -0.0237579345703125, 0.0009207725524902344, 0.022430419921875, 0.0038967132568359375, -0.00017142295837402344 ]
c6c8d7f5dbc3e227b8a5660c2d2acde77abdeb3f
Wordpress Stackexchange Q: Is there a variable for a template parts name? One you have called a template with get_template_part() (or locate_template()) is there a way to know what template you are in. For example if you call get_template_part('loop','archive'); from archive.php and then are working in your loop-archive.php file. is there a way to define a variable that has the name of the current template part.... so $template = 'loop-archive'. better still, maybe in two parts so 'loop' and 'archive' but I can do that with some string splitting. Question #10537 seems sort of related but doesn't seem to cover template parts. A: bit of a facepalm, because the answer is in pure PHP $path_parts = pathinfo(__FILE__); //var_dump($path_parts); echo $path_parts['filename'];
Q: Is there a variable for a template parts name? One you have called a template with get_template_part() (or locate_template()) is there a way to know what template you are in. For example if you call get_template_part('loop','archive'); from archive.php and then are working in your loop-archive.php file. is there a way to define a variable that has the name of the current template part.... so $template = 'loop-archive'. better still, maybe in two parts so 'loop' and 'archive' but I can do that with some string splitting. Question #10537 seems sort of related but doesn't seem to cover template parts. A: bit of a facepalm, because the answer is in pure PHP $path_parts = pathinfo(__FILE__); //var_dump($path_parts); echo $path_parts['filename']; A: There isn't a core global variable that returns the current context. However, you can construct your own, using contextual template conditional tags. You can step through the conditional tags in the same order as WordPress core, by following wp-includes/template-loader.php. Simply wrap your output in a custom Theme function. Here's how I do it (note: I don't think I strictly follow template-loader.php): function oenology_get_context() { $context = 'index'; if ( is_home() ) { // Blog Posts Index $context = 'home'; if ( is_front_page() ) { // Front Page $context = 'front-page'; } }else if ( is_date() ) { // Date Archive Index $context = 'date'; } else if ( is_author() ) { // Author Archive Index $context = 'author'; } else if ( is_category() ) { // Category Archive Index $context = 'category'; } else if ( is_tag() ) { // Tag Archive Index $context = 'tag'; } else if ( is_tax() ) { // Taxonomy Archive Index $context = 'taxonomy'; } else if ( is_archive() ) { // Archive Index $context = 'archive'; } else if ( is_search() ) { // Search Results Page $context = 'search'; } else if ( is_404() ) { // Error 404 Page $context = '404'; } else if ( is_attachment() ) { // Attachment Page $context = 'attachment'; } else if ( is_single() ) { // Single Blog Post $context = 'single'; } else if ( is_page() ) { // Static Page $context = 'page'; } return $context; } Then, I just pass oenology_get_context() as a parameter, e.g.: get_template_part( 'loop', oenology_get_context() ); I think something along these lines would be a good candidate for core, though I'm not sure the best way to implement. I'd love to submit a patch, though. A: If you look at the source code of get_template_part function, you'll see: function get_template_part( $slug, $name = null ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); if ( isset($name) ) $templates[] = "{$slug}-{$name}.php"; $templates[] = "{$slug}.php"; locate_template($templates, true, false); } It creates an array of 2 template names: {$slug}-{$name}.php and {$slug}.php and use load_template to find the template file and include it (the 2nd parameter is true, which means include that file). You can mimic this function to return the template file path instead of include it, like: function my_get_template_part( $slug, $name = null, $include = false ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); if ( isset($name) ) $templates[] = "{$slug}-{$name}.php"; $templates[] = "{$slug}.php"; return locate_template($templates, $include, false); } Usage: // Don't load the template $template = my_get_template_part( 'loop', 'archive', false ); // Or load the template $template = my_get_template_part( 'loop', 'archive', true ); // Get the file name only $template = basename( $template ); // Without .php extension $template = substr( $template, 0, -4 ); You can play more with $template to get what you want. A: List all conditionals that are true As all is_*() functions have their equivalent in a query variable (the functions are just wrappers), you can access them also another way: Get simply all that are true. I wrote a ticket on core/trac that adds a function to list them all. In the meanwhile you can use both listed functions as helper plugins that show you on which request which conditional is available. It will print a var_dump() below the footer (both admin & public) at the shutdown hook. <?php /** Plugin Name: (#62232) »kaiser« List all conditionals that are true */ function get_conditionals() { global $wp_query; foreach ( get_object_vars( $wp_query ) as $is_key => $is_value ) { if ( $is_value && preg_match( "/is_/", $is_key ) ) $conditionals[] = $is_key; } return var_dump( $conditionals ); } add_action( 'shutdown', 'get_conditionals' ); This way you can simply loop through them. @scribu added his own function to the ticket (an interesting solution too).     <?php /** Plugin Name: (#62232) »scribu« List all conditionals that are true */ function get_query_flags( $wp_query = null ) { if ( !$wp_query ) $wp_query = $GLOBALS['wp_query']; $flags = array(); foreach ( get_object_vars( $wp_query ) as $key => $val ) { if ( 'is_' == substr( $key, 0, 3 ) && $val ) $flags[] = substr( $key, 3 ); } return var_dump( $flags ); } add_action( 'shutdown', 'get_query_flags' ); Performance I ran a performance test on each function in the middle of a template using timer_start/*_stop();. TO be fair, I renamed all functions to a one character name a/b/c(). As you can see, Chips hard coded function is fastest, then goes mine and last is in this case scribus. Update If you know me, then you know my love for iterators for their elegance, clearness and their ability to hold only a single item in memory instead of of copy of a whole array while looping. So here's a quick custom class that extends a \FilterIterator, therefore needing only a single method reworked. <?php namespace WPSE; class ConditionalsFilter extends \FilterIterator { /** * Accepts properties that start with `is_` and have a positive boolean value * @return bool */ public function accept() { return 0 === strncasecmp( $this->key(), 'is_', 3 ) and filter_var( $this->current(), FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE ); } } It can be used quite easily. The $it->current() holds the value, while $it->key() returns the conditional/property name. $cond = new WPSE\ConditionalsFilter( new \ArrayIterator( get_object_vars( $GLOBALS['wp_query'] ) ) ); foreach ( $cond as $c ) { var_dump( $cond->key(), $cond->current() ); }
wordpress
{ "language": "en", "length": 1007, "provenance": "stackexchange_00019.jsonl.gz:423024", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62232" }
[ -0.07183837890625, -0.00858306884765625, -0.04522705078125, 0.01389312744140625, -0.0202178955078125, -0.0042266845703125, -0.0061798095703125, 0.0116729736328125, 0.039154052734375, 0.004726409912109375, -0.01287078857421875, -0.027313232421875, -0.004756927490234375, -0.035186767578125, -0.016204833984375, -0.00965118408203125, 0.04962158203125, -0.0350341796875, 0.033721923828125, 0.00806427001953125, 0.01263427734375, 0.0256805419921875, 0.04010009765625, 0.0609130859375, 0.0244903564453125, -0.0107574462890625, 0.051849365234375, -0.0032558441162109375, 0.0084991455078125, -0.018280029296875, 0.0139007568359375, -0.005321502685546875, 0.01145172119140625, -0.01026153564453125, 0.00919342041015625, 0.0105438232421875, 0.016510009765625, 0.00345611572265625, 0.0184478759765625, 0.01044464111328125, 0.00592803955078125, -0.009185791015625, 0.0189208984375, 0.0238189697265625, -0.0241546630859375, -0.01983642578125, 0.0074615478515625, -0.0208282470703125, 0.004909515380859375, 0.0609130859375, 0.0312042236328125, -0.0022602081298828125, 0.016357421875, 0.050201416015625, -0.009033203125, -0.019317626953125, 0.0185089111328125, 0.007328033447265625, 0.0308074951171875, -0.0301055908203125, -0.0498046875, 0.0020599365234375, 0.032501220703125, -0.02813720703125, 0.000980377197265625, -0.01152801513671875, 0.0266876220703125, 0.01416778564453125, -0.0023193359375, 0.02191162109375, 0.023529052734375, 0.01181793212890625, 0.0103302001953125, -0.0217742919921875, 0.007843017578125, -0.0169525146484375, 0.023345947265625, -0.0281829833984375, 0.0009322166442871094, 0.004535675048828125, -0.0014505386352539062, -0.01309967041015625, -0.0274200439453125, -0.0022678375244140625, 0.030120849609375, 0.038360595703125, -0.01065826416015625, -0.016387939453125, -0.019134521484375, -0.0242767333984375, -0.0313720703125, -0.019439697265625, 0.0111236572265625, 0.003204345703125, -0.031158447265625, -0.0151214599609375, 0.0244903564453125, 0.0570068359375, -0.0029468536376953125, 0.01042938232421875, -0.0192108154296875, -0.032470703125, 0.0208282470703125, -0.04168701171875, 0.0127716064453125, 0.05804443359375, 0.03076171875, 0.04736328125, 0.0148773193359375, -0.0131988525390625, -0.0032958984375, 0.0213165283203125, -0.036590576171875, -0.032806396484375, -0.029937744140625, 0.02435302734375, -0.046966552734375, -0.0191497802734375, 0.00922393798828125, -0.01200103759765625, 0.01363372802734375, 0.018890380859375, 0.048553466796875, -0.0033893585205078125, 0.007495880126953125, 0.038543701171875, -0.03118896484375, -0.069580078125, -0.01482391357421875, 0.050750732421875, 0.0017137527465820312, -0.005870819091796875, -0.006378173828125, -0.0105133056640625, -0.046783447265625, -0.01248931884765625, -0.00339508056640625, -0.00490570068359375, 0.0006561279296875, -0.0076446533203125, 0.004547119140625, -0.0283966064453125, 0.004108428955078125, -0.0191650390625, 0.004566192626953125, -0.0043487548828125, 0.0243988037109375, 0.036376953125, -0.00414276123046875, -0.03302001953125, 0.03179931640625, -0.0021686553955078125, -0.005809783935546875, 0.0173187255859375, 0.01207733154296875, -0.0355224609375, -0.0284271240234375, -0.01316070556640625, 0.05078125, 0.000820159912109375, -0.00728607177734375, -0.0216522216796875, 0.0291595458984375, 0.00621795654296875, -0.0194854736328125, 0.037200927734375, -0.036407470703125, -0.0016536712646484375, 0.005680084228515625, 0.010009765625, -0.00934600830078125, -0.0157623291015625, -0.0084991455078125, 0.0009975433349609375, -0.00917816162109375, 0.0038909912109375, -0.017425537109375, -0.01216888427734375, 0.02056884765625, 0.029541015625, 0.00698089599609375, -0.012908935546875, 0.0164947509765625, 0.01288604736328125, -0.043243408203125, 0.0081787109375, 0.002124786376953125, -0.0033512115478515625, 0.02264404296875, -0.00539398193359375, 0.050445556640625, 0.03369140625, -0.01178741455078125, 0.029541015625, -0.0011720657348632812, -0.016387939453125, 0.006397247314453125, 0.01837158203125, -0.0036449432373046875, -0.045745849609375, -0.009002685546875, 0.021331787109375, -0.0071563720703125, 0.005527496337890625, -0.040069580078125, 0.01763916015625, -0.0147857666015625, 0.040191650390625, -0.0206451416015625, 0.027618408203125, 0.0222320556640625, 0.002338409423828125, -0.030029296875, -0.0102691650390625, -0.01296234130859375, -0.0018901824951171875, -0.025787353515625, -0.00940704345703125, 0.0009822845458984375, 0.021514892578125, 0.0196685791015625, 0.00396728515625, 0.007236480712890625, 0.01538848876953125, 0.007747650146484375, 0.0205230712890625, -0.048095703125, 0.00563812255859375, -0.048614501953125, 0.05377197265625, -0.0902099609375, 0.0227813720703125, -0.046844482421875, 0.020111083984375, -0.0010433197021484375, -0.0214080810546875, -0.0224761962890625, -0.055023193359375, 0.0310211181640625, 0.0318603515625, 0.0330810546875, 0.037628173828125, 0.0042266845703125, -0.007503509521484375, 0.096923828125, 0.02008056640625, 0.0201873779296875, -0.0231781005859375, 0.03253173828125, 0.0709228515625, -0.04339599609375, 0.0195770263671875, 0.0204010009765625, -0.030517578125, -0.00726318359375, 0.040679931640625, 0.0033245086669921875, -0.0031299591064453125, -0.02886962890625, 0.040679931640625, -0.0086517333984375, 0.06072998046875, 0.0023517608642578125, 0.020599365234375, 0.0501708984375, 0.0248870849609375, 0.035247802734375, 0.0258331298828125, -0.0294342041015625, 0.0271148681640625, 0.0018463134765625, -0.0183258056640625, -0.0013761520385742188, 0.0217437744140625, -0.02166748046875, 0.005046844482421875, -0.0164337158203125, -0.00429534912109375, -0.010833740234375, -0.005584716796875, -0.0333251953125, -0.00417327880859375, -0.0199432373046875, -0.01039886474609375, -0.039215087890625, -0.07354736328125, 0.037139892578125, 0.025146484375, 0.017333984375, 0.023162841796875, 0.0380859375, 0.0301361083984375, -0.0123291015625, 0.038726806640625, -0.0231781005859375, -0.00951385498046875, 0.054656982421875, 0.006023406982421875, 0.01227569580078125, -0.0148468017578125, 0.02496337890625, 0.023529052734375, 0.002643585205078125, -0.05072021484375, -0.0068206787109375, 0.0059661865234375, 0.00867462158203125, -0.004726409912109375, -0.016387939453125, -0.038116455078125, -0.0177459716796875, 0.0091552734375, 0.01136016845703125, 0.06451416015625, -0.006298065185546875, -0.04742431640625, 0.009033203125, 0.01241302490234375, -0.067626953125, -0.07958984375, 0.07928466796875, -0.08221435546875, 0.0224151611328125, -0.03192138671875, -0.0511474609375, -0.055084228515625, 0.0174560546875, -0.0108184814453125, 0.0222015380859375, -0.047454833984375, -0.0653076171875, -0.06768798828125, -0.08392333984375, -0.0200347900390625, -0.008148193359375, 0.01140594482421875, -0.01021575927734375, 0.05126953125, -0.028045654296875, -0.06396484375, -0.0548095703125, -0.01020050048828125, 0.0258026123046875, -0.00881195068359375, -0.0010128021240234375, -0.035003662109375, -0.041412353515625, 0.005138397216796875, -0.0225982666015625, -0.01464080810546875, 0.0211639404296875, -0.0118255615234375, -0.0023479461669921875, 0.01396942138671875, 0.02923583984375, 0.057647705078125, -0.0113983154296875, 0.0009741783142089844, 0.030975341796875, -0.056915283203125, -0.06536865234375, -0.0124664306640625, -0.06341552734375, 0.07940673828125, 0.052947998046875, -0.007633209228515625, 0.002391815185546875, 0.021575927734375, -0.00013899803161621094, -0.0203704833984375, -0.06036376953125, -0.008697509765625, 0.051025390625, 0.01079559326171875, 0.044830322265625, 0.03656005859375, 0.0222015380859375, -0.0233917236328125, -0.0004203319549560547, 0.0026111602783203125, -0.0023288726806640625, -0.0029582977294921875, -0.023895263671875, -0.0185089111328125, -0.0335693359375, 0.048919677734375, 0.01134490966796875, 0.047607421875, -0.0535888671875, -0.046661376953125, -0.0167083740234375, 0.1019287109375, -0.035186767578125, -0.031646728515625, 0.0028591156005859375, 0.01093292236328125, -0.0183868408203125, -0.0175018310546875, -0.0275726318359375, -0.015655517578125, -0.0621337890625, -0.0016374588012695312, 0.004787445068359375, -0.042327880859375, -0.0241851806640625, 0.019287109375, -0.0418701171875, -0.01557159423828125, 0.01025390625, -0.053924560546875, 0.0163726806640625, 0.008087158203125, -0.0019369125366210938, -0.00315093994140625, 0.00824737548828125, -0.062347412109375, -0.052978515625, -0.02593994140625, -0.035003662109375, 0.07171630859375, 0.04302978515625, -0.038787841796875, -0.0102081298828125, 0.049530029296875, -0.007633209228515625, 0.0082550048828125, 0.02557373046875, 0.0267486572265625, 0.005199432373046875, 0.0288848876953125, 0.015899658203125, -0.02056884765625, -0.006103515625, -0.039764404296875, -0.07635498046875, -0.0325927734375, -0.022796630859375, 0.01496124267578125, 0.02911376953125, -0.0399169921875, -0.022125244140625, 0.0014543533325195312, 0.059417724609375, 0.0247039794921875, 0.0283966064453125, 0.0039520263671875, -0.00010323524475097656, -0.01290130615234375, 0.044586181640625, 0.01421356201171875, -0.0281524658203125, 0.008392333984375, 0.07244873046875, 0.01311492919921875, -0.03228759765625, -0.07843017578125, 0.01055145263671875, 0.047943115234375, -0.018096923828125, 0.051605224609375, 0.03167724609375, -0.037445068359375, 0.053009033203125, 0.02008056640625, -0.012451171875, 0.0322265625, 0.006175994873046875, 0.00919342041015625, -0.04754638671875, 0.0316162109375, -0.00342559814453125, -0.003448486328125, 0.00824737548828125, -0.017242431640625, -0.0178070068359375, 0.01419830322265625, 0.054718017578125, -0.035552978515625, 0.046173095703125, -0.043975830078125, -0.07269287109375, 0.00807952880859375, -0.023834228515625, -0.00290679931640625, 0.0084381103515625, 0.004131317138671875, 0.0289764404296875, 0.017822265625, -0.034576416015625, 0.00995635986328125, -0.0090789794921875, 0.03802490234375, 0.0220184326171875, -0.009124755859375, -0.00815582275390625, -0.0189666748046875, -0.00814056396484375, 0.0212249755859375, 0.0020885467529296875, -0.032958984375, -0.010101318359375, -0.006439208984375, 0.0196533203125, -0.001049041748046875, -0.00943756103515625, 0.01934814453125, 0.038055419921875, -0.0206756591796875, 0.0125885009765625, -0.007083892822265625, 0.0015850067138671875, -0.015899658203125, 0.032470703125, 0.0242462158203125, -0.01568603515625, 0.0031833648681640625, 0.03778076171875, 0.03997802734375, -0.01055145263671875, -0.02178955078125, -0.017120361328125, -0.0291900634765625, 0.02301025390625, 0.04534912109375, -0.0404052734375, 0.0082855224609375, -0.013275146484375, 0.0135498046875, -0.0223846435546875, 0.033935546875, 0.01385498046875, 0.09771728515625, -0.050018310546875, -0.07537841796875, 0.0225067138671875, -0.11663818359375, 0.02093505859375, 0.01329803466796875, -0.0136260986328125, -0.040924072265625, -0.0219268798828125, 0.026702880859375, 0.03887939453125, -0.0274658203125, 0.0024318695068359375, -0.027313232421875, -0.0248260498046875, -0.0289459228515625, 0.050872802734375, -0.04742431640625, -0.0096893310546875, -0.0036067962646484375, -0.0220184326171875, -0.0027637481689453125, 0.00018703937530517578, -0.08209228515625, -0.032501220703125, -0.014373779296875, -0.00521087646484375, 0.05950927734375, -0.0264129638671875, 0.027130126953125, -0.016754150390625, -0.018402099609375, -0.0172882080078125, -0.0018262863159179688, 0.057098388671875, 0.0517578125, -0.061431884765625, 0.0142364501953125, -0.06561279296875, -0.012664794921875, -0.0611572265625, -0.08251953125, -0.04327392578125, -0.003147125244140625, -0.043731689453125, -0.0081329345703125, 0.01499176025390625, 0.07379150390625, 0.0212554931640625, 0.0679931640625, -0.039154052734375, 0.05078125, 0.01105499267578125, 0.05047607421875, -0.0123138427734375, 0.0282440185546875, 0.015777587890625, -0.0036945343017578125, -0.05108642578125, 0.001361846923828125, 0.01535797119140625, 0.0117950439453125, -0.0169525146484375, -0.01495361328125, 0.01409912109375, -0.0230865478515625, 0.042633056640625, -0.0093231201171875, -0.023529052734375, -0.0242919921875, 0.00856781005859375, -0.029998779296875, 0.041748046875, -0.0076446533203125, -0.05145263671875, -0.0029964447021484375, -0.0218048095703125, -0.039093017578125, -0.004940032958984375, -0.0225067138671875, 0.050872802734375, 0.01171875, 0.01349639892578125, -0.00727081298828125, -0.059173583984375, 0.053680419921875, 0.060638427734375, 0.0172119140625, 0.056976318359375, -0.0074310302734375, 0.027496337890625, 0.04473876953125, 0.0258636474609375, 0.0191650390625, -0.024749755859375, 0.05352783203125, 0.00635528564453125, 0.00475311279296875, 0.0458984375, -0.0263824462890625, 0.0009336471557617188, 0.0198822021484375, 0.0157318115234375, -0.033966064453125, -0.01068115234375, -0.018890380859375, -0.02294921875, -0.00951385498046875, -0.0254974365234375, 0.003719329833984375, -0.014984130859375, 0.07965087890625, 0.034454345703125, -0.005126953125, 0.05029296875, -0.00908660888671875, -0.0111236572265625, -0.0194091796875, 0.03802490234375, 0.0203704833984375, 0.004619598388671875, 0.0228424072265625, -0.01093292236328125, 0.01537322998046875, -0.052978515625, 0.0137176513671875, -0.0082550048828125, 0.01959228515625, -0.00972747802734375, 0.04949951171875, -0.03326416015625, 0.049285888671875, -0.005435943603515625, 0.04193115234375, 0.016754150390625, 0.044586181640625, 0.002471923828125, -0.0002357959747314453, 0.01525115966796875, 0.0123291015625, 0.0005583763122558594, -0.0162200927734375, -0.00860595703125, 0.02532958984375, -0.03253173828125, 0.0055999755859375, -0.0260162353515625, 0.01806640625, -0.005401611328125, 0.01282501220703125, 0.049530029296875, 0.0005431175231933594, -0.033416748046875, 0.056182861328125, 0.005245208740234375, -0.0509033203125, 0.0297393798828125, 0.02801513671875, -0.0229949951171875, -0.04498291015625, 0.028167724609375, -0.07562255859375, -0.01385498046875, 0.01209259033203125, -0.05352783203125, 0.09210205078125, 0.04022216796875, 0.0036163330078125, 0.0160675048828125, 0.029571533203125, -0.04803466796875, 0.003021240234375, -0.03338623046875, 0.048248291015625, 0.056793212890625, 0.05279541015625, -0.01097869873046875, -0.01102447509765625, 0.038421630859375, 0.040283203125, -0.005352020263671875, -0.004550933837890625, 0.052764892578125, -0.00673675537109375, 0.0305328369140625, 0.058502197265625, 0.0011615753173828125, -0.037017822265625, 0.03271484375, 0.0205078125, 0.055694580078125, -0.0280303955078125, 0.026824951171875, -0.00604248046875, 0.023529052734375, 0.03680419921875, 0.015838623046875, 0.0258026123046875, -0.0169677734375, 0.013671875, -0.01027679443359375, -0.0284576416015625, 0.012939453125, -0.03070068359375, -0.0159759521484375, 0.0089263916015625, -0.01021575927734375, -0.04998779296875, 0.00677490234375, -0.0230865478515625, 0.03289794921875, -0.005161285400390625, -0.00876617431640625, 0.0247344970703125, 0.0105133056640625, -0.004131317138671875, -0.010223388671875, -0.0243072509765625, -0.005462646484375, 0.0198516845703125, 0.0142364501953125, 0.004886627197265625, 0.0140533447265625, -0.02239990234375, 0.0310211181640625, 0.0181732177734375, 0.01934814453125, -0.0220947265625, 0.006435394287109375, 0.006412506103515625, 0.00286102294921875, -0.01412200927734375, -0.030853271484375, -0.00588226318359375, 0.0404052734375, 0.036773681640625, -0.0231170654296875, -0.03668212890625, 0.022186279296875, 0.037841796875, 0.01198577880859375, -0.0162200927734375, -0.02716064453125, -0.0543212890625, -0.0218963623046875, 0.0031375885009765625, -0.00937652587890625, 0.05712890625, 0.01172637939453125, 0.021026611328125, -0.05364990234375, -0.0229339599609375, -0.016815185546875, 0.045318603515625, 0.004360198974609375, 0.0075531005859375, -0.003875732421875, 0.0018215179443359375, -0.009674072265625, 0.0193023681640625, 0.040435791015625, 0.0052337646484375, 0.038299560546875, 0.005458831787109375, -0.03900146484375, 0.0115814208984375, 0.0003437995910644531, -0.03594970703125, 0.08587646484375, -0.048736572265625, 0.019805908203125, -0.0308380126953125, -0.023223876953125, -0.033721923828125, -0.0199127197265625, 0.044464111328125, -0.02484130859375, 0.0185699462890625, -0.0035686492919921875, -0.022796630859375, 0.0098419189453125, -0.0214996337890625, 0.04058837890625, 0.004787445068359375, -0.027435302734375, 0.01849365234375, -0.006305694580078125, -0.05267333984375, -0.0236663818359375, 0.021636962890625, -0.045623779296875, 0.039398193359375, 0.0142822265625, 0.00023806095123291016, -0.0103607177734375, -0.012786865234375, 0.01837158203125, 0.0177459716796875, 0.01241302490234375, 0.03314208984375, -0.005092620849609375, -0.021209716796875, -0.033203125, 0.04449462890625, 0.03778076171875, 0.043975830078125, -0.01544952392578125, 0.045074462890625, -0.01739501953125, 0.012664794921875, -0.03338623046875, -0.0163726806640625, 0.0389404296875, 0.008575439453125, -0.0199737548828125, -0.02288818359375, -0.0297393798828125, 0.00455474853515625, 0.042999267578125, -0.0198974609375, 0.010955810546875, -0.00894927978515625, 0.01953125, -0.01041412353515625, 0.03558349609375, 0.0117950439453125, -0.039764404296875, -0.002349853515625, 0.0289154052734375, 0.0291595458984375, 0.11065673828125, 0.00537109375, 0.018951416015625, 0.0232086181640625, -0.0325927734375, 0.023223876953125, 0.002254486083984375, 0.0232696533203125, 0.0202178955078125, 0.00391387939453125, -0.099609375, -0.04522705078125, -0.0124359130859375, -0.0206756591796875, -0.00167083740234375, 0.06475830078125, -0.037322998046875, 0.0379638671875, 0.01416015625, -0.0200958251953125, 0.036041259765625, -0.0013532638549804688, 0.011993408203125, -0.0178375244140625, 0.0173187255859375, -0.0218505859375, -0.060302734375, -0.019866943359375, -0.06170654296875, 0.0089569091796875, 0.0189361572265625, -0.0058135986328125, 0.002902984619140625, 0.01174163818359375, -0.018646240234375, 0.00942230224609375, -0.0005588531494140625, 0.007068634033203125, -0.0005536079406738281, -0.01885986328125, -0.050384521484375, 0.01959228515625, -0.035552978515625, 0.02557373046875, 0.034088134765625, -0.035675048828125, 0.00904083251953125, -0.00852203369140625, -0.02337646484375, 0.00566864013671875, 0.0067596435546875, 0.0279693603515625, 0.00667572021484375, -0.0168914794921875, 0.0204620361328125, 0.0026912689208984375, 0.061859130859375, -0.05352783203125, -0.0301666259765625, 0.01190948486328125, -0.03369140625, 0.0178375244140625, -0.0199127197265625, 0.0011796951293945312, -0.04119873046875, -0.024688720703125, 0.01033782958984375, -0.031494140625, -0.0296173095703125, -0.047271728515625, -0.0802001953125, 0.043060302734375, 0.0006570816040039062, -0.048065185546875, -0.0718994140625, -0.022979736328125, 0.016082763671875, -0.008697509765625, -0.040008544921875, 0.0182952880859375, -0.045074462890625, 0.04754638671875, 0.01210784912109375, 0.0142669677734375, 0.025360107421875, -0.00792694091796875, -0.03924560546875, -0.0000565648078918457, -0.0190277099609375, -0.006252288818359375, 0.00499725341796875, 0.0004668235778808594, 0.005161285400390625, 0.031219482421875, -0.04052734375, -0.038787841796875, -0.01407623291015625, 0.0128021240234375, -0.008758544921875, 0.01340484619140625, -0.03350830078125, -0.00441741943359375, 0.044036865234375, 0.06793212890625, 0.0157470703125, -0.0213470458984375, -0.00734710693359375, 0.00489044189453125, -0.0538330078125, -0.0070343017578125, 0.040802001953125, -0.07305908203125, -0.0172271728515625, 0.00884246826171875, -0.01392364501953125, -0.0256500244140625, -0.0267486572265625, -0.041839599609375, 0.0021839141845703125, -0.00013911724090576172, 0.016021728515625, 0.0052642822265625, -0.035552978515625, 0.0576171875, -0.038177490234375, -0.003124237060546875, -0.0232696533203125, 0.043487548828125, 0.01280975341796875, -0.026702880859375, 0.00571441650390625, 0.04705810546875, -0.050811767578125, -0.007244110107421875, 0.01186370849609375, -0.00791168212890625, -0.01953125, -0.0004665851593017578, -0.003589630126953125, -0.00603485107421875, -0.0157928466796875, -0.04339599609375, -0.02978515625, 0.0672607421875, -0.009246826171875, 0.09796142578125, 0.0032501220703125, 0.050323486328125, 0.0222015380859375, 0.033660888671875, -0.0325927734375, -0.0154876708984375, -0.005359649658203125, -0.065673828125, -0.01042938232421875, 0.010528564453125, -0.019775390625, -0.053436279296875, 0.027374267578125, -0.0291900634765625, 0.01317596435546875, 0.0211639404296875 ]
ce70aecb5b0946df204494398a7c14dce436fc41
Wordpress Stackexchange Q: How to Add Tags to Custom Post Type? I have a custom post type called portfolio and I'm trying to add the tags taxonomy to it, how do I do this? A: Or just add: 'taxonomies' => array('post_tag') An array of registered taxonomies like category or post_tag that will be used with this post type. This can be used in lieu of calling register_taxonomy_for_object_type() directly. Custom taxonomies still need to be registered with register_taxonomy(). to the $args array in the functions.php-file where you create the custom post type with register_post_type(). This will add a custom post type to use the same categories and/or tags as built-in posts.
Q: How to Add Tags to Custom Post Type? I have a custom post type called portfolio and I'm trying to add the tags taxonomy to it, how do I do this? A: Or just add: 'taxonomies' => array('post_tag') An array of registered taxonomies like category or post_tag that will be used with this post type. This can be used in lieu of calling register_taxonomy_for_object_type() directly. Custom taxonomies still need to be registered with register_taxonomy(). to the $args array in the functions.php-file where you create the custom post type with register_post_type(). This will add a custom post type to use the same categories and/or tags as built-in posts. A: Like this: (Where it says "portfolio" is where you register the taxonomy to a post type add_action( 'init', 'create_tag_taxonomies', 0 ); //create two taxonomies, genres and tags for the post type "tag" function create_tag_taxonomies() { // Add new taxonomy, NOT hierarchical (like tags) $labels = array( 'name' => _x( 'Tags', 'taxonomy general name' ), 'singular_name' => _x( 'Tag', 'taxonomy singular name' ), 'search_items' => __( 'Search Tags' ), 'popular_items' => __( 'Popular Tags' ), 'all_items' => __( 'All Tags' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Tag' ), 'update_item' => __( 'Update Tag' ), 'add_new_item' => __( 'Add New Tag' ), 'new_item_name' => __( 'New Tag Name' ), 'separate_items_with_commas' => __( 'Separate tags with commas' ), 'add_or_remove_items' => __( 'Add or remove tags' ), 'choose_from_most_used' => __( 'Choose from the most used tags' ), 'menu_name' => __( 'Tags' ), ); register_taxonomy('tag','portfolio',array( 'hierarchical' => false, 'labels' => $labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array( 'slug' => 'tag' ), )); } ?> A: Method 1 (from answers above: https://wordpress.stackexchange.com/a/106211/38771) Different post types will use the same "Tags" data of the default "post" type. * *Benefits * *Everything (should) works out of the box with one line *All your tags in one place in the CMS *Downsides * *Forget about a well structured / easy to use CMS - the Tags listing on the custom post types page will show all Tags (not just the tags used in the custom post type articles) with the wrong count ... *Changes to a Tag will affect the default "post" articles as well as the custom post type articles (Delete a Tag deletes it in both types of articles) *Harder (possibly impossible) to setup any distinct Tag functionality: different descriptions, custom fields, images, etc (at least not without much custom coding on top of core Wordpress code)... Method 2 (from answers above: https://wordpress.stackexchange.com/a/62263/38771) Different post types use different "Tags" configuration / data. * *Benefits * *Create different/clearly distinct tag-related functionality: frontend templates, capabilities, query filters, actions) *Assign different tag related data: fields data or even custom fields *Manage Tags better in CMS * *Example: Editing/Delete a "post" tag won't affect the (similarily named/slugged) tag for the other post types *Tradeoff A bit more code to setup In truth, they are an extremely powerful way to group various items in all sorts of ways. https://codex.wordpress.org/Taxonomies#Custom_Taxonomies A: Use this: add_action( 'init', 'gp_register_taxonomy_for_object_type' ); function gp_register_taxonomy_for_object_type() { register_taxonomy_for_object_type( 'post_tag', 'portfolio' ); }; A: Just use this code may be it help you add_action( 'init', 'create_client_tax' ); function create_client_tax() { register_taxonomy( 'client_tag', //your tags taxonomy 'client', // Your post type array( 'hierarchical' => false, 'label' => __( 'Tags', CURRENT_THEME ), 'singular_name' => __( 'Tag', CURRENT_THEME ), 'rewrite' => true, 'query_var' => true ) ); } A: This always works fine. ref: https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/ /** * Create taxonomies tag for CPT portfolio */ if ( ! function_exists( 'ns_register_team_category' ) ) { function ns_register_team_category() { $labels = array( 'name' => __( 'Tags', 'ns' ), 'singular_name' => __( 'Tag', 'ns' ), 'search_items' => __( 'Search Tags' ), 'popular_items' => __( 'Popular Tags' ), 'all_items' => __( 'All Tags' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Tag' ), 'update_item' => __( 'Update Tag' ), 'add_new_item' => __( 'Add New Tag' ), 'new_item_name' => __( 'New Tag Name' ), 'separate_items_with_commas' => __( 'Separate tags with commas' ), 'add_or_remove_items' => __( 'Add or remove tags' ), 'choose_from_most_used' => __( 'Choose from the most used tags' ), 'menu_name' => __( 'Tags' ), ); $args = array( 'label' => __( 'Tag', 'ns' ), 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'hierarchical' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'tag', 'with_front' => false, ), 'show_admin_column' => false, 'show_in_rest' => true, 'rest_base' => 'tag', 'rest_controller_class' => 'WP_REST_Terms_Controller', 'show_in_quick_edit' => true, 'update_count_callback' => '_update_post_term_count', ); register_taxonomy( 'tag', array( 'portfolio' ), $args ); } add_action( 'init', 'ns_register_team_category', 0 ); } A: You can just add an already registered taxonomy to an object type, see the code below. /** * Function to add Tag Selection to Custom Post Type */ function ns_reg_tag() { register_taxonomy_for_object_type('post_tag', 'Custom_Post_Type'); } add_action('init', 'ns_reg_tag'); A: Although the answer of Marcus solves the majority of the problem, be aware that it is not a complete solution. The answer of chifliiiii is more complete but like mentioned in the comments it's not reusing the already existing tags taxonomy. According to the OP, a solution must use "the tag taxonomy" and not "a tag taxonomy". Thus that's why I think the answer of chifliiiii is incorrect. On the other hand I think the answer of Marcus is partly correct, the same goes for similar answers like the one Giovanni Putignano posted. I will explain below why. A complete solution By registering your custom post type to the post_tag taxonomy, using either the method Marcus or Giovanni is suggesting, will not display tagged posts of your custom post type on the tag's archive page. It will only display posts of the post post type, because the built-in tag template is rendered with a query what only targets the post post type. To fix this you need to alter the query with the pre_get_posts hook. This is a generic way to solve this (don't ask me why this isn't implemented in the core): add_action('pre_get_posts', function($query) { // This will target the queries used to generate the tag archive template. // You may remove the `is_main_query()` condition if you want to get posts // by tag outside the loop. if (!is_admin() && is_tag() && $query->is_main_query()) { // Will set to something like: Array( 'post', 'portfolio' ) $types = get_taxonomy('post_tag')->object_type; // Alter the query to only use the types which are registered to the // `post_tag` taxonomy. $query->set('post_type', $types); } }); A: In my case following code is worked. register_taxonomy( 'events_tag',array('events'), array( 'hierarchical' => false, 'label' => 'Tag', 'show_admin_column' => true, 'singular_label' => 'Your Post type Tag', 'query_var' => true, 'rewrite' => array( 'slug' => 'events_tag' ), 'show_in_rest' => true, 'rest_base' => 'events_tag', 'rest_controller_class' => 'WP_REST_Terms_Controller', ) );
wordpress
{ "language": "en", "length": 1128, "provenance": "stackexchange_00019.jsonl.gz:423029", "question_score": "44", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62260" }
[ 0.07708740234375, 0.00018656253814697266, 0.0010662078857421875, -0.03826904296875, 0.0404052734375, -0.0274810791015625, 0.0721435546875, -0.01029205322265625, -0.055755615234375, 0.0014142990112304688, -0.0211181640625, -0.0009045600891113281, -0.0557861328125, -0.0247650146484375, 0.007068634033203125, -0.06378173828125, 0.020782470703125, 0.01255035400390625, 0.052154541015625, -0.004314422607421875, 0.0203704833984375, 0.005886077880859375, 0.034698486328125, -0.019439697265625, 0.0202789306640625, 0.0196685791015625, 0.023529052734375, -0.0287628173828125, 0.01300811767578125, -0.007183074951171875, 0.0219573974609375, -0.00455474853515625, 0.0133819580078125, 0.0195159912109375, -0.01158905029296875, 0.0277557373046875, 0.034454345703125, 0.003932952880859375, 0.02154541015625, 0.021697998046875, 0.0352783203125, -0.0168914794921875, 0.0255279541015625, 0.028167724609375, 0.006343841552734375, -0.033935546875, 0.028167724609375, -0.056365966796875, 0.005428314208984375, -0.05291748046875, 0.0171356201171875, -0.025665283203125, 0.0567626953125, -0.079833984375, -0.0361328125, -0.01410675048828125, -0.00045299530029296875, -0.015960693359375, 0.04296875, -0.01434326171875, -0.032012939453125, -0.0264739990234375, 0.0328369140625, -0.0230865478515625, 0.0031261444091796875, 0.0294189453125, 0.024688720703125, 0.002262115478515625, -0.0594482421875, -0.0105438232421875, 0.027130126953125, -0.05242919921875, 0.0167388916015625, -0.005924224853515625, 0.00911712646484375, -0.04840087890625, 0.0203399658203125, -0.0302886962890625, -0.0027923583984375, 0.02471923828125, 0.017852783203125, -0.01166534423828125, 0.0283050537109375, -0.00039386749267578125, -0.0211181640625, 0.01120758056640625, -0.0137176513671875, -0.004817962646484375, -0.01605224609375, -0.0224456787109375, -0.0182952880859375, -0.01666259765625, -0.040435791015625, 0.03594970703125, 0.0117645263671875, -0.01058197021484375, -0.007389068603515625, 0.0128326416015625, -0.0007452964782714844, 0.0411376953125, 0.00847625732421875, -0.050018310546875, 0.0797119140625, -0.05767822265625, 0.034698486328125, 0.040435791015625, -0.02667236328125, -0.028533935546875, 0.058380126953125, 0.01959228515625, 0.0085601806640625, 0.029327392578125, 0.00605010986328125, -0.0280303955078125, -0.01812744140625, 0.01325225830078125, -0.0084075927734375, 0.0009255409240722656, 0.0020465850830078125, -0.0233917236328125, 0.0088958740234375, 0.04180908203125, 0.00933074951171875, -0.0174560546875, 0.00710296630859375, 0.015899658203125, 0.00843048095703125, -0.06524658203125, 0.01708984375, 0.0181884765625, -0.039154052734375, 0.0237274169921875, 0.048431396484375, 0.009124755859375, -0.006591796875, -0.025360107421875, 0.0252685546875, -0.0484619140625, -0.02984619140625, 0.015350341796875, 0.015228271484375, -0.037078857421875, -0.017791748046875, -0.015716552734375, 0.039031982421875, 0.02276611328125, 0.023284912109375, 0.0203399658203125, 0.005413055419921875, -0.0352783203125, 0.05462646484375, -0.030426025390625, 0.0288848876953125, 0.0263519287109375, -0.03253173828125, 0.00452423095703125, 0.01236724853515625, -0.01421356201171875, -0.02337646484375, -0.033843994140625, 0.009857177734375, -0.00634002685546875, 0.001407623291015625, -0.01171875, -0.0252532958984375, 0.015350341796875, -0.016357421875, 0.00672149658203125, 0.0333251953125, -0.0234527587890625, 0.0386962890625, -0.002422332763671875, 0.032257080078125, 0.004955291748046875, 0.004146575927734375, 0.0036716461181640625, -0.007732391357421875, 0.002910614013671875, 0.033172607421875, 0.040740966796875, 0.0017261505126953125, -0.03143310546875, 0.06201171875, -0.0222930908203125, -0.050384521484375, -0.008941650390625, 0.0229644775390625, 0.05975341796875, 0.0279388427734375, 0.023681640625, 0.02471923828125, -0.021881103515625, -0.057281494140625, 0.0074615478515625, 0.01338958740234375, 0.0141448974609375, -0.03448486328125, 0.00008386373519897461, 0.00322723388671875, -0.01352691650390625, -0.054840087890625, -0.0091400146484375, 0.0033435821533203125, 0.0024261474609375, -0.00656890869140625, -0.0155181884765625, -0.004291534423828125, 0.037384033203125, -0.0037517547607421875, -0.002231597900390625, 0.0194244384765625, -0.03173828125, 0.00027298927307128906, -0.044952392578125, -0.031494140625, 0.0018444061279296875, -0.0148468017578125, -0.0247344970703125, -0.004314422607421875, -0.03399658203125, -0.004535675048828125, 0.006290435791015625, -0.0126495361328125, 0.0272979736328125, 0.048431396484375, 0.01319122314453125, -0.0206146240234375, -0.00580596923828125, 0.00644683837890625, 0.061981201171875, -0.11029052734375, 0.0002353191375732422, -0.0010480880737304688, -0.0197296142578125, -0.032196044921875, -0.00510406494140625, 0.016754150390625, -0.045379638671875, 0.006778717041015625, 0.05364990234375, 0.00827789306640625, 0.0085906982421875, -0.000053048133850097656, 0.034423828125, 0.0682373046875, 0.03521728515625, 0.0201873779296875, 0.00881195068359375, -0.005306243896484375, 0.0294036865234375, 0.01337432861328125, 0.020843505859375, 0.0167388916015625, -0.008392333984375, 0.02166748046875, 0.025787353515625, -0.0187835693359375, -0.01184844970703125, 0.0253448486328125, -0.038482666015625, 0.00788116455078125, -0.05413818359375, -0.044281005859375, -0.01715087890625, 0.06341552734375, 0.0430908203125, 0.072998046875, 0.061492919921875, -0.034393310546875, 0.0162353515625, -0.00909423828125, 0.0039215087890625, -0.0015697479248046875, 0.0169219970703125, 0.01025390625, 0.007343292236328125, -0.036834716796875, 0.002979278564453125, 0.00844573974609375, 0.007061004638671875, -0.016265869140625, 0.035858154296875, -0.01418304443359375, -0.007160186767578125, -0.03289794921875, -0.050384521484375, 0.0124053955078125, 0.040435791015625, -0.053863525390625, -0.046234130859375, 0.006916046142578125, -0.0050811767578125, -0.0258026123046875, -0.0167236328125, 0.0178375244140625, -0.0198974609375, -0.023162841796875, -0.06060791015625, 0.0509033203125, -0.05267333984375, 0.04791259765625, 0.0709228515625, -0.0095367431640625, 0.00722503662109375, 0.0185546875, -0.014678955078125, 0.0102081298828125, 0.0220794677734375, 0.0026149749755859375, -0.0285186767578125, -0.027862548828125, 0.0149078369140625, 0.01355743408203125, -0.032440185546875, 0.00634002685546875, -0.0270843505859375, -0.0219879150390625, -0.002658843994140625, -0.05718994140625, -0.01983642578125, 0.08074951171875, -0.040496826171875, -0.0323486328125, -0.035247802734375, -0.03955078125, -0.0228424072265625, -0.0204925537109375, -0.023223876953125, -0.01268768310546875, -0.029022216796875, -0.041778564453125, -0.077880859375, -0.0723876953125, -0.033477783203125, 0.00335693359375, 0.00498199462890625, 0.02386474609375, 0.08447265625, 0.031158447265625, -0.035736083984375, 0.066162109375, -0.039398193359375, -0.0297698974609375, 0.060211181640625, 0.037872314453125, -0.0386962890625, 0.03045654296875, 0.0133056640625, 0.00881195068359375, 0.037506103515625, -0.0264892578125, -0.034912109375, -0.01629638671875, 0.012237548828125, 0.003955841064453125, 0.007427215576171875, 0.0209503173828125, 0.015899658203125, 0.00809478759765625, -0.036102294921875, 0.0022029876708984375, 0.016845703125, 0.01202392578125, -0.034149169921875, -0.048370361328125, -0.02044677734375, -0.0304107666015625, 0.05169677734375, -0.03228759765625, 0.0068359375, 0.005474090576171875, -0.025421142578125, 0.038177490234375, -0.018035888671875, -0.0256805419921875, -0.00412750244140625, -0.02435302734375, -0.049591064453125, 0.04473876953125, -0.0157623291015625, -0.002422332763671875, -0.03192138671875, 0.0216522216796875, -0.044189453125, -0.068603515625, 0.04473876953125, -0.051910400390625, -0.01494598388671875, -0.032867431640625, -0.0178985595703125, 0.009521484375, 0.09368896484375, -0.04388427734375, -0.0010967254638671875, -0.007114410400390625, -0.0038623809814453125, 0.00994110107421875, -0.018218994140625, -0.047943115234375, -0.0311431884765625, -0.01812744140625, 0.008270263671875, -0.01110076904296875, -0.00855255126953125, -0.0323486328125, 0.0077972412109375, -0.041168212890625, -0.0180511474609375, 0.038848876953125, -0.06231689453125, 0.0242156982421875, -0.018646240234375, 0.0161285400390625, -0.049652099609375, -0.02789306640625, -0.0278472900390625, -0.061737060546875, 0.0024700164794921875, -0.039794921875, 0.024200439453125, 0.0004622936248779297, -0.00676727294921875, -0.0011205673217773438, 0.03057861328125, 0.04864501953125, -0.0022735595703125, 0.027191162109375, -0.00643157958984375, -0.020111083984375, -0.0182037353515625, 0.01297760009765625, -0.034515380859375, -0.0300140380859375, 0.004608154296875, 0.0113372802734375, 0.07476806640625, 0.004459381103515625, 0.00521087646484375, 0.0258331298828125, -0.022918701171875, -0.01090240478515625, -0.02581787109375, -0.034698486328125, -0.000659942626953125, -0.02532958984375, -0.0034332275390625, -0.02545166015625, -0.016448974609375, 0.04461669921875, -0.0193328857421875, 0.002208709716796875, 0.01184844970703125, 0.109130859375, 0.00823211669921875, -0.00543212890625, -0.07513427734375, 0.036102294921875, 0.056304931640625, -0.00975799560546875, 0.0240020751953125, 0.006591796875, -0.040557861328125, 0.050384521484375, 0.01258087158203125, -0.0223388671875, -0.01361083984375, 0.0574951171875, -0.00036978721618652344, -0.00004947185516357422, -0.005764007568359375, -0.052886962890625, 0.048553466796875, 0.0008807182312011719, -0.0220489501953125, -0.01270294189453125, 0.00801849365234375, 0.0391845703125, -0.0276336669921875, 0.0297698974609375, -0.031890869140625, -0.0182037353515625, 0.0173187255859375, 0.0433349609375, -0.022979736328125, 0.00689697265625, -0.002727508544921875, -0.036865234375, -0.06427001953125, 0.0004968643188476562, -0.015380859375, -0.015960693359375, 0.0116119384765625, 0.0169830322265625, 0.018798828125, 0.008636474609375, -0.012481689453125, 0.01256561279296875, -0.00937652587890625, -0.0006971359252929688, -0.0321044921875, -0.027374267578125, -0.00021767616271972656, 0.03070068359375, 0.008087158203125, 0.007488250732421875, 0.040283203125, 0.0174102783203125, 0.003997802734375, 0.00540924072265625, -0.0386962890625, 0.025177001953125, -0.0467529296875, -0.0203094482421875, 0.005321502685546875, -0.02276611328125, -0.0103607177734375, 0.037078857421875, 0.00901031494140625, -0.0007510185241699219, -0.017425537109375, 0.05291748046875, 0.04144287109375, 0.02520751953125, 0.01300048828125, -0.0145416259765625, -0.00969696044921875, -0.0013294219970703125, -0.0309295654296875, -0.032379150390625, 0.0188751220703125, -0.0109405517578125, 0.032196044921875, -0.035003662109375, -0.053680419921875, 0.06048583984375, -0.049896240234375, -0.00580596923828125, -0.027099609375, -0.03887939453125, -0.0175018310546875, -0.01251983642578125, 0.0036334991455078125, 0.0238189697265625, 0.002483367919921875, -0.0265045166015625, 0.052154541015625, -0.03167724609375, 0.06781005859375, -0.018463134765625, 0.036895751953125, 0.00025272369384765625, -0.007198333740234375, -0.0428466796875, -0.00788116455078125, 0.0228729248046875, -0.0312347412109375, -0.025390625, -0.0017070770263671875, -0.020965576171875, 0.0089263916015625, -0.038360595703125, 0.04644775390625, -0.0131683349609375, -0.0254058837890625, 0.03466796875, 0.00974273681640625, 0.047882080078125, 0.020538330078125, -0.00875091552734375, -0.00640869140625, -0.01702880859375, -0.007965087890625, 0.0202789306640625, -0.03717041015625, -0.018341064453125, -0.0190887451171875, 0.0123443603515625, 0.018310546875, -0.0020351409912109375, -0.02117919921875, -0.02593994140625, 0.01983642578125, 0.0261077880859375, 0.0276947021484375, -0.01678466796875, 0.005245208740234375, 0.025970458984375, 0.0276031494140625, 0.0032825469970703125, -0.02374267578125, -0.00873565673828125, -0.020904541015625, -0.0188446044921875, -0.1038818359375, -0.0121612548828125, 0.027008056640625, -0.0450439453125, 0.055816650390625, 0.0295562744140625, 0.01386260986328125, 0.02996826171875, -0.0157470703125, 0.00592803955078125, -0.016632080078125, -0.006473541259765625, -0.0171661376953125, 0.00946044921875, 0.045501708984375, -0.00212860107421875, 0.02801513671875, 0.0010023117065429688, -0.006092071533203125, 0.0092926025390625, -0.019805908203125, 0.0278778076171875, 0.0072784423828125, 0.007701873779296875, -0.006381988525390625, -0.006420135498046875, 0.0098114013671875, 0.0189971923828125, -0.0126953125, 0.02362060546875, -0.00543975830078125, 0.0018930435180664062, -0.040069580078125, -0.0308990478515625, 0.052459716796875, 0.0184478759765625, -0.02337646484375, 0.0693359375, -0.0303497314453125, -0.024566650390625, 0.026275634765625, 0.01190948486328125, -0.054901123046875, -0.003513336181640625, 0.00018346309661865234, 0.02203369140625, 0.0369873046875, 0.00667572021484375, -0.00572967529296875, -0.0080413818359375, 0.007568359375, -0.01363372802734375, -0.025634765625, -0.003444671630859375, 0.00952911376953125, -0.01085662841796875, 0.007709503173828125, 0.02313232421875, 0.01552581787109375, -0.0038433074951171875, -0.0215606689453125, 0.0022125244140625, -0.027374267578125, -0.0038299560546875, 0.0240936279296875, -0.018890380859375, -0.00897216796875, -0.02239990234375, 0.03985595703125, -0.03216552734375, 0.01265716552734375, 0.03887939453125, -0.027374267578125, 0.0301361083984375, 0.01511383056640625, 0.0007228851318359375, -0.0183868408203125, -0.0156707763671875, -0.032623291015625, -0.0190277099609375, -0.0277099609375, -0.00730133056640625, 0.00787353515625, -0.00516510009765625, 0.0187225341796875, -0.0194854736328125, -0.0215911865234375, -0.01433563232421875, -0.0085296630859375, 0.06549072265625, -0.0223388671875, -0.0170745849609375, 0.0282745361328125, 0.036590576171875, 0.005695343017578125, -0.000023424625396728516, 0.0007381439208984375, -0.042388916015625, -0.0243988037109375, -0.002895355224609375, -0.042755126953125, -0.00830078125, -0.0005984306335449219, -0.0594482421875, 0.10595703125, 0.00968170166015625, -0.0006594657897949219, 0.008514404296875, 0.05322265625, -0.027191162109375, 0.0311279296875, -0.02923583984375, 0.029693603515625, -0.0097503662109375, 0.02117919921875, -0.0643310546875, -0.0129241943359375, -0.007778167724609375, 0.048553466796875, 0.068359375, 0.01427459716796875, -0.0165252685546875, -0.006641387939453125, 0.048797607421875, 0.04241943359375, -0.011688232421875, 0.01560211181640625, 0.004505157470703125, 0.0161285400390625, 0.0108184814453125, 0.0020751953125, 0.05657958984375, -0.021942138671875, -0.04986572265625, 0.027557373046875, 0.021820068359375, 0.0174560546875, -0.0124664306640625, -0.0472412109375, -0.0187225341796875, 0.004207611083984375, 0.0138397216796875, 0.0171661376953125, 0.0150909423828125, 0.0321044921875, 0.029571533203125, 0.01239013671875, -0.017303466796875, -0.0166778564453125, 0.042999267578125, 0.0007610321044921875, 0.043365478515625, -0.0024127960205078125, 0.01357269287109375, 0.047821044921875, -0.0177459716796875, 0.0243072509765625, 0.035675048828125, -0.03997802734375, 0.0445556640625, 0.0173492431640625, 0.01273345947265625, -0.05230712890625, 0.00942230224609375, 0.0555419921875, 0.054107666015625, -0.055084228515625, -0.02911376953125, 0.02044677734375, 0.0255889892578125, -0.007350921630859375, -0.002506256103515625, 0.0216522216796875, 0.00933074951171875, 0.036102294921875, -0.049560546875, -0.01995849609375, 0.010498046875, 0.037872314453125, -0.006103515625, -0.0168914794921875, -0.021728515625, -0.01995849609375, -0.066650390625, 0.042388916015625, 0.025390625, 0.06640625, 0.000701904296875, 0.08624267578125, -0.01361846923828125, -0.0215911865234375, 0.0013828277587890625, 0.016510009765625, 0.006122589111328125, -0.002994537353515625, -0.0185394287109375, -0.033203125, 0.01898193359375, 0.031829833984375, -0.007488250732421875, -0.004070281982421875, -0.0007243156433105469, 0.04412841796875, 0.03619384765625, -0.023590087890625, 0.059478759765625, 0.00830078125, -0.0201568603515625, -0.0582275390625, 0.02081298828125, 0.018646240234375, 0.0017862319946289062, 0.04205322265625, -0.0215911865234375, 0.043365478515625, -0.024261474609375, 0.035247802734375, -0.002910614013671875, -0.04034423828125, 0.049652099609375, -0.0275115966796875, 0.08837890625, 0.00146484375, -0.06488037109375, -0.003772735595703125, -0.065673828125, -0.0823974609375, 0.061492919921875, 0.05291748046875, -0.0355224609375, 0.00439453125, 0.0275726318359375, -0.0455322265625, 0.0010805130004882812, 0.04205322265625, 0.017974853515625, 0.045379638671875, 0.0162811279296875, 0.0202484130859375, -0.0265045166015625, -0.0235443115234375, 0.0115966796875, 0.0301666259765625, 0.007476806640625, 0.035491943359375, -0.005939483642578125, 0.01519775390625, -0.053070068359375, 0.059295654296875, -0.06512451171875, -0.037628173828125, 0.041229248046875, 0.032073974609375, 0.0024509429931640625, -0.01470184326171875, -0.0061492919921875, 0.00850677490234375, 0.05511474609375, -0.0447998046875, -0.005710601806640625, 0.018768310546875, 0.00759124755859375, -0.037628173828125, 0.052947998046875, -0.0176544189453125, -0.0263671875, -0.062744140625, -0.038848876953125, 0.03240966796875, 0.03729248046875, 0.0228118896484375, 0.035064697265625, 0.00015938282012939453, -0.0030078887939453125, 0.0085296630859375, -0.0228729248046875, 0.00887298583984375, 0.0310516357421875, -0.019287109375, -0.0592041015625, 0.0244903564453125, -0.01221466064453125, 0.006687164306640625, 0.00446319580078125, 0.07025146484375, 0.0214691162109375, -0.06451416015625, 0.0113372802734375, 0.03857421875, 0.045806884765625, -0.012451171875, 0.028961181640625, 0.00627899169921875, -0.0145111083984375, 0.0204315185546875, 0.010009765625, -0.04290771484375, -0.048858642578125, 0.0138702392578125, 0.0198516845703125, -0.012359619140625, -0.037841796875, -0.09417724609375, -0.02001953125, 0.06103515625, -0.0038433074951171875, -0.0105743408203125, -0.0091705322265625, -0.044158935546875, 0.00923919677734375, 0.0228424072265625, -0.07568359375, 0.033172607421875, 0.0457763671875, -0.016387939453125, 0.0011339187622070312, -0.028472900390625, -0.0275726318359375, -0.0263671875, 0.035430908203125, 0.02685546875, -0.04296875, 0.0031223297119140625, 0.05548095703125, 0.03076171875, 0.09197998046875, 0.0270843505859375, -0.027984619140625, 0.00868988037109375, 0.001995086669921875, -0.027313232421875, -0.055023193359375, 0.018218994140625, -0.07666015625, -0.01499176025390625, -0.003856658935546875, 0.016387939453125, 0.04229736328125, -0.0275115966796875, -0.112548828125, 0.08062744140625, -0.0418701171875, -0.037811279296875, -0.062103271484375, 0.02386474609375, -0.0054931640625, -0.002826690673828125, -0.0234832763671875, -0.024139404296875, 0.0008912086486816406, 0.0521240234375, 0.004878997802734375, 0.031768798828125, 0.019561767578125, -0.0033931732177734375, -0.00965118408203125, 0.004474639892578125, 0.01158905029296875, -0.01084136962890625, 0.0140838623046875, -0.02313232421875, 0.0199127197265625, 0.0213470458984375, -0.06219482421875, -0.026580810546875, -0.01187896728515625, 0.022735595703125, 0.01015472412109375, -0.06451416015625, -0.0123748779296875, -0.049530029296875, 0.01390838623046875, -0.0208740234375, -0.00202178955078125, 0.016204833984375, -0.026824951171875, -0.04205322265625, -0.059722900390625, -0.0085906982421875, 0.027557373046875, -0.06414794921875, 0.01087188720703125, 0.0294647216796875, 0.03668212890625, -0.0052490234375, -0.0062713623046875, 0.01239776611328125, -0.0248565673828125, 0.0204315185546875, 0.006496429443359375, -0.04388427734375, 0.04205322265625, -0.0131378173828125, -0.002872467041015625, -0.0103912353515625, -0.026702880859375, -0.007572174072265625, -0.0169677734375, -0.0193634033203125, -0.0142059326171875, -0.021728515625, 0.031585693359375, 0.01849365234375, 0.01727294921875, 0.0111236572265625, 0.0221099853515625, 0.01416015625, -0.01071929931640625, 0.0212554931640625, 0.0161590576171875, 0.02923583984375, -0.031402587890625, 0.04339599609375, 0.01433563232421875, 0.024169921875, -0.00865936279296875, 0.0009121894836425781, -0.01131439208984375, 0.03070068359375, -0.02374267578125, 0.00634765625, -0.007747650146484375, -0.00469207763671875, -0.0015249252319335938, -0.00879669189453125, -0.0310516357421875, -0.037445068359375, 0.0136871337890625, -0.006977081298828125, -0.01398468017578125, 0.0263214111328125 ]
2d1a982ba5020500341c577a1a99f3ef85d37040
Wordpress Stackexchange Q: Get list of registered or enqued styles? looking for filters or actions Where can I get the list of styles about to be printed? What i want is to either filter the list, doing what i want with each, then return empty list. Or do an action that recieves the list, then i can remove_action the print_styles. Something like that, anyway. I'm creating a css minifier concatenizer. A: There is a global variable named $wp_styles. It is a WP_Styles object (if it exists at all) and it holds all the enqueued styles in a public variable $queue. Untested: global $wp_styles; if ( is_a( $wp_styles, 'WP_Styles' ) ) { print_r( $wp_styles->queue ); } else { print 'no styles enqueued'; } Make sure you test that after the init hook, because stylesheets should not be enqueued earlier. For details see: * */wp-includes/functions.wp-styles.php, */wp-includes/class.wp-styles.php and */wp-includes/class.wp-dependencies.php
Q: Get list of registered or enqued styles? looking for filters or actions Where can I get the list of styles about to be printed? What i want is to either filter the list, doing what i want with each, then return empty list. Or do an action that recieves the list, then i can remove_action the print_styles. Something like that, anyway. I'm creating a css minifier concatenizer. A: There is a global variable named $wp_styles. It is a WP_Styles object (if it exists at all) and it holds all the enqueued styles in a public variable $queue. Untested: global $wp_styles; if ( is_a( $wp_styles, 'WP_Styles' ) ) { print_r( $wp_styles->queue ); } else { print 'no styles enqueued'; } Make sure you test that after the init hook, because stylesheets should not be enqueued earlier. For details see: * */wp-includes/functions.wp-styles.php, */wp-includes/class.wp-styles.php and */wp-includes/class.wp-dependencies.php
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:423035", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62277" }
[ -0.001644134521484375, 0.006175994873046875, -0.045989990234375, 0.00994110107421875, 0.00608062744140625, -0.05010986328125, 0.044342041015625, -0.004512786865234375, -0.00609588623046875, -0.005290985107421875, -0.040283203125, 0.0184173583984375, -0.02435302734375, -0.0159912109375, 0.033905029296875, -0.037353515625, 0.06634521484375, -0.03387451171875, 0.024078369140625, 0.01189422607421875, -0.0189361572265625, 0.04150390625, 0.023956298828125, 0.067138671875, 0.032989501953125, -0.042327880859375, 0.0977783203125, -0.00821685791015625, 0.048095703125, -0.004344940185546875, 0.02587890625, -0.045745849609375, -0.005767822265625, 0.042144775390625, -0.01166534423828125, -0.0270538330078125, 0.0214385986328125, 0.00551605224609375, 0.015777587890625, 0.024261474609375, 0.0269622802734375, -0.005947113037109375, -0.0053863525390625, 0.00579833984375, -0.0276031494140625, -0.02447509765625, 0.0225372314453125, -0.0026760101318359375, -0.0288848876953125, 0.031829833984375, 0.039764404296875, -0.01044464111328125, 0.03643798828125, 0.00579833984375, -0.00004976987838745117, -0.0030231475830078125, -0.017425537109375, 0.005634307861328125, 0.024017333984375, -0.0011386871337890625, -0.0186004638671875, -0.004642486572265625, 0.0328369140625, -0.0136871337890625, -0.0160064697265625, 0.0127410888671875, 0.0298004150390625, -0.011871337890625, -0.003734588623046875, -0.02392578125, 0.00893402099609375, -0.00705718994140625, -0.005954742431640625, -0.024169921875, -0.01250457763671875, 0.01543426513671875, -0.007152557373046875, -0.013763427734375, 0.018218994140625, -0.005168914794921875, 0.00513458251953125, -0.0002040863037109375, -0.0716552734375, 0.025177001953125, -0.01019287109375, 0.02325439453125, -0.0186614990234375, -0.0213623046875, -0.0003440380096435547, -0.03350830078125, -0.00965118408203125, -0.01399993896484375, -0.004974365234375, 0.00350189208984375, -0.0196685791015625, -0.0301666259765625, 0.062286376953125, 0.081298828125, 0.008026123046875, 0.00015211105346679688, -0.0250091552734375, -0.048736572265625, 0.0006046295166015625, -0.032928466796875, 0.01250457763671875, 0.0261383056640625, -0.036285400390625, 0.013763427734375, 0.04913330078125, 0.0277252197265625, 0.0182037353515625, -0.0391845703125, -0.0005736351013183594, -0.0181732177734375, -0.0023193359375, 0.00858306884765625, -0.01070404052734375, 0.0036869049072265625, -0.004604339599609375, -0.01342010498046875, 0.0248260498046875, 0.03375244140625, 0.01172637939453125, -0.0281219482421875, -0.0226287841796875, -0.0172271728515625, -0.005146026611328125, -0.0546875, 0.057586669921875, 0.03839111328125, -0.0074310302734375, 0.0009493827819824219, 0.004779815673828125, -0.0308685302734375, -0.035369873046875, -0.0243988037109375, 0.0244140625, 0.01416778564453125, -0.00942230224609375, -0.01104736328125, 0.0177001953125, -0.0178375244140625, -0.026123046875, -0.01210784912109375, 0.023895263671875, 0.0201263427734375, 0.0224456787109375, -0.00001895427703857422, -0.0040740966796875, -0.033935546875, 0.035675048828125, -0.032806396484375, 0.0369873046875, 0.01166534423828125, -0.003513336181640625, -0.0175933837890625, 0.048736572265625, -0.0325927734375, -0.03472900390625, -0.058441162109375, -0.0472412109375, 0.02777099609375, 0.050994873046875, -0.01322174072265625, 0.0230560302734375, -0.0200958251953125, 0.0085906982421875, 0.023773193359375, 0.0270843505859375, 0.0260772705078125, -0.0318603515625, -0.04119873046875, 0.047943115234375, 0.005771636962890625, -0.0229339599609375, 0.037200927734375, 0.0020122528076171875, -0.0152740478515625, 0.0308837890625, 0.0072021484375, -0.042449951171875, -0.0290374755859375, 0.03961181640625, -0.035980224609375, -0.0294647216796875, -0.03704833984375, 0.0250701904296875, 0.02606201171875, 0.0205535888671875, 0.0173187255859375, 0.03607177734375, -0.021148681640625, -0.0224609375, -0.01983642578125, 0.0005288124084472656, 0.001190185546875, 0.0182952880859375, 0.0278778076171875, 0.01059722900390625, -0.00728607177734375, 0.05780029296875, -0.00823211669921875, 0.0266876220703125, -0.048309326171875, -0.0931396484375, 0.021820068359375, -0.032196044921875, 0.042083740234375, -0.0501708984375, -0.0008487701416015625, 0.0144195556640625, -0.03118896484375, 0.00618743896484375, -0.0251617431640625, 0.0022830963134765625, 0.034027099609375, 0.00717926025390625, 0.00946044921875, -0.0014476776123046875, -0.01617431640625, 0.033966064453125, -0.01024627685546875, 0.0187225341796875, 0.047149658203125, 0.0021209716796875, -0.006664276123046875, -0.0291595458984375, -0.00649261474609375, -0.0133209228515625, 0.00978851318359375, 0.0034637451171875, 0.02203369140625, 0.057586669921875, 0.09112548828125, 0.0131378173828125, -0.004016876220703125, 0.01313018798828125, -0.06622314453125, 0.025299072265625, 0.036651611328125, 0.043243408203125, 0.05230712890625, 0.0270843505859375, 0.00875091552734375, 0.1051025390625, 0.012451171875, 0.03240966796875, -0.0286102294921875, -0.0135955810546875, 0.0140228271484375, 0.0209503173828125, 0.01197052001953125, 0.0218353271484375, 0.0183563232421875, 0.004913330078125, 0.020599365234375, -0.014312744140625, 0.00983428955078125, -0.02313232421875, 0.029815673828125, -0.0119476318359375, -0.00434112548828125, 0.0014982223510742188, -0.01166534423828125, 0.04034423828125, -0.006992340087890625, 0.01187896728515625, -0.006618499755859375, -0.018218994140625, 0.0245819091796875, 0.035491943359375, -0.057586669921875, 0.0027256011962890625, 0.0013914108276367188, -0.0318603515625, 0.0027561187744140625, -0.0170440673828125, 0.01230621337890625, -0.00424957275390625, -0.0150909423828125, -0.004161834716796875, 0.025970458984375, -0.0265350341796875, -0.023834228515625, -0.0107269287109375, -0.021820068359375, 0.004245758056640625, -0.0007638931274414062, -0.01523590087890625, 0.01520538330078125, 0.0116424560546875, 0.0848388671875, 0.0251922607421875, 0.0026836395263671875, 0.0156402587890625, 0.0248870849609375, 0.0269622802734375, 0.004718780517578125, 0.0305633544921875, -0.01629638671875, -0.0069122314453125, 0.03717041015625, -0.0212249755859375, 0.005329132080078125, 0.00279998779296875, 0.0069122314453125, 0.036102294921875, -0.037506103515625, -0.0292205810546875, 0.00395965576171875, -0.041473388671875, 0.0139617919921875, 0.0421142578125, 0.0296478271484375, 0.0159149169921875, -0.032470703125, -0.01407623291015625, 0.03350830078125, -0.07415771484375, -0.05023193359375, -0.038360595703125, -0.07464599609375, 0.00630950927734375, -0.035400390625, -0.0302886962890625, 0.0052642822265625, 0.0014753341674804688, 0.0170135498046875, -0.002552032470703125, -0.0079803466796875, -0.040557861328125, -0.042572021484375, -0.0733642578125, 0.010711669921875, 0.009063720703125, 0.045379638671875, -0.01074981689453125, 0.0911865234375, 0.0179290771484375, -0.04559326171875, -0.003753662109375, 0.01806640625, -0.025115966796875, -0.0102691650390625, 0.01073455810546875, -0.041046142578125, -0.037567138671875, -0.002285003662109375, -0.006954193115234375, 0.004791259765625, 0.0013370513916015625, 0.00890350341796875, -0.01308441162109375, -0.0024356842041015625, 0.0184783935546875, 0.031951904296875, 0.0090789794921875, -0.0019397735595703125, 0.04010009765625, -0.037200927734375, -0.05035400390625, 0.01033782958984375, -0.031829833984375, 0.04913330078125, 0.01178741455078125, -0.0137939453125, -0.0009565353393554688, 0.039520263671875, 0.01629638671875, -0.0227203369140625, 0.0265045166015625, -0.03131103515625, 0.0858154296875, 0.007221221923828125, 0.022613525390625, -0.033050537109375, 0.01885986328125, -0.02606201171875, 0.0081939697265625, 0.007587432861328125, -0.0080108642578125, -0.00873565673828125, -0.00908660888671875, -0.00948333740234375, -0.048583984375, 0.02728271484375, -0.016143798828125, 0.0196075439453125, -0.03125, -0.0265655517578125, 0.01447296142578125, 0.09234619140625, -0.0523681640625, -0.04107666015625, 0.017608642578125, 0.0389404296875, -0.03167724609375, -0.0938720703125, 0.021575927734375, -0.028228759765625, -0.1431884765625, 0.01302337646484375, -0.0321044921875, -0.0521240234375, 0.01446533203125, -0.058013916015625, -0.07147216796875, -0.0777587890625, 0.0216064453125, 0.034759521484375, -0.0117645263671875, -0.01043701171875, -0.0174713134765625, -0.0294647216796875, 0.0036373138427734375, 0.0014657974243164062, -0.1044921875, -0.00616455078125, -0.066650390625, 0.0858154296875, 0.046539306640625, -0.01126861572265625, 0.0166778564453125, 0.05859375, 0.0022754669189453125, 0.0280303955078125, 0.0098724365234375, 0.03399658203125, -0.007419586181640625, -0.039520263671875, 0.008758544921875, -0.041839599609375, -0.0088653564453125, 0.024749755859375, -0.04852294921875, 0.031005859375, 0.0005497932434082031, -0.0247039794921875, 0.0665283203125, -0.0408935546875, -0.0184173583984375, 0.0124664306640625, 0.0307159423828125, -0.016357421875, 0.00678253173828125, -0.017669677734375, 0.033843994140625, 0.002899169921875, 0.022369384765625, -0.0127716064453125, -0.0184478759765625, 0.00453948974609375, 0.05267333984375, 0.03759765625, -0.0174560546875, -0.0267791748046875, 0.0182342529296875, 0.056884765625, -0.0004067420959472656, -0.003414154052734375, 0.027923583984375, -0.036102294921875, -0.003009796142578125, 0.03857421875, -0.020721435546875, 0.005290985107421875, 0.050018310546875, 0.01064300537109375, -0.019989013671875, -0.001987457275390625, -0.015777587890625, 0.010345458984375, 0.029083251953125, -0.004123687744140625, -0.01184844970703125, 0.03729248046875, 0.01142120361328125, -0.0160369873046875, -0.0002620220184326172, -0.0028247833251953125, 0.00011670589447021484, -0.0117950439453125, -0.017547607421875, 0.07806396484375, 0.0306549072265625, -0.0036296844482421875, 0.0173187255859375, 0.04974365234375, 0.0230712890625, 0.045745849609375, 0.036163330078125, 0.0155029296875, 0.05517578125, 0.034332275390625, 0.0205078125, -0.00251007080078125, -0.01123046875, 0.019683837890625, -0.037628173828125, -0.077392578125, -0.0016222000122070312, 0.007411956787109375, 0.0633544921875, 0.06671142578125, 0.0181427001953125, 0.082763671875, 0.0262451171875, -0.0243682861328125, -0.037689208984375, -0.036712646484375, 0.0262451171875, -0.07720947265625, 0.032257080078125, -0.045623779296875, 0.009429931640625, 0.018463134765625, 0.0266265869140625, -0.0291900634765625, 0.0249176025390625, -0.01105499267578125, -0.0098114013671875, -0.02874755859375, 0.0259552001953125, 0.004425048828125, 0.0076141357421875, 0.023590087890625, 0.01216888427734375, 0.06964111328125, -0.0367431640625, -0.02825927734375, 0.01451873779296875, 0.0445556640625, -0.0244293212890625, 0.00830078125, 0.0264892578125, 0.001773834228515625, -0.052093505859375, 0.01245880126953125, 0.016571044921875, -0.01538848876953125, -0.046722412109375, -0.01593017578125, 0.0308990478515625, 0.043121337890625, -0.0155487060546875, -0.01776123046875, 0.00038504600524902344, -0.003482818603515625, -0.0113677978515625, -0.05389404296875, 0.0268096923828125, 0.0399169921875, -0.04144287109375, -0.01126861572265625, 0.0221405029296875, -0.0765380859375, -0.034393310546875, -0.0130767822265625, -0.015045166015625, 0.0259246826171875, -0.033294677734375, 0.0213165283203125, -0.002834320068359375, -0.02301025390625, -0.056854248046875, 0.01528167724609375, 0.05120849609375, 0.049072265625, 0.0028247833251953125, -0.0261993408203125, -0.0138397216796875, -0.0150299072265625, 0.0030117034912109375, -0.0121612548828125, 0.0106658935546875, 0.0165252685546875, -0.01125335693359375, 0.00640106201171875, -0.0256805419921875, -0.035003662109375, -0.0367431640625, 0.03533935546875, 0.0455322265625, 0.034759521484375, -0.0064544677734375, 0.0601806640625, 0.013275146484375, 0.02362060546875, 0.0108184814453125, 0.0177001953125, -0.0277557373046875, 0.0010614395141601562, -0.006671905517578125, -0.035888671875, 0.009979248046875, -0.0209808349609375, 0.010498046875, 0.036834716796875, 0.06341552734375, 0.02178955078125, 0.014404296875, -0.002777099609375, 0.0093994140625, -0.0263671875, -0.0247039794921875, -0.01074981689453125, -0.0190277099609375, 0.037109375, -0.0045166015625, 0.02886962890625, -0.0228118896484375, 0.00811767578125, 0.0117034912109375, -0.018951416015625, 0.0287933349609375, -0.01251220703125, -0.02557373046875, 0.02838134765625, 0.0147705078125, 0.0318603515625, 0.0294189453125, -0.0020580291748046875, 0.022247314453125, -0.01323699951171875, 0.01256561279296875, 0.003864288330078125, -0.0163116455078125, 0.0712890625, 0.01290130615234375, -0.01027679443359375, 0.055755615234375, -0.0307769775390625, -0.027618408203125, 0.037872314453125, 0.042205810546875, -0.04010009765625, -0.00794219970703125, 0.01678466796875, 0.01837158203125, -0.0158538818359375, -0.00634002685546875, -0.011260986328125, -0.014312744140625, 0.056610107421875, 0.007450103759765625, -0.005626678466796875, 0.03436279296875, -0.01560211181640625, 0.0021076202392578125, -0.032135009765625, -0.0009050369262695312, -0.01480865478515625, -0.018951416015625, -0.0304718017578125, 0.022613525390625, -0.0209503173828125, -0.028289794921875, 0.009857177734375, -0.0377197265625, 0.0056610107421875, -0.03594970703125, 0.0019969940185546875, -0.0168914794921875, 0.00354766845703125, -0.001857757568359375, -0.01824951171875, 0.0068206787109375, 0.01617431640625, -0.0283660888671875, 0.0283050537109375, -0.01558685302734375, -0.0144195556640625, -0.0164337158203125, -0.028411865234375, 0.0165557861328125, 0.033447265625, -0.047515869140625, 0.03424072265625, 0.0004963874816894531, -0.032379150390625, -0.0060577392578125, -0.0160980224609375, 0.061492919921875, -0.0501708984375, 0.005573272705078125, 0.017486572265625, 0.032867431640625, 0.0154266357421875, -0.0208892822265625, 0.01546478271484375, -0.032379150390625, -0.007266998291015625, 0.00037670135498046875, -0.024871826171875, -0.0152435302734375, -0.033203125, -0.036712646484375, 0.0180511474609375, -0.0261383056640625, 0.0146484375, 0.045928955078125, -0.01114654541015625, -0.032684326171875, -0.040069580078125, -0.0309295654296875, 0.0289459228515625, 0.0127105712890625, 0.027984619140625, -0.016937255859375, -0.006458282470703125, 0.0191802978515625, 0.04046630859375, 0.0465087890625, 0.00939178466796875, -0.000015437602996826172, 0.0015668869018554688, 0.03643798828125, 0.01248931884765625, -0.02294921875, 0.0228271484375, 0.003997802734375, 0.071044921875, 0.00391387939453125, -0.0443115234375, 0.025115966796875, -0.053985595703125, -0.035858154296875, 0.031646728515625, -0.01349639892578125, -0.00899505615234375, -0.007343292236328125, 0.0012559890747070312, -0.0182647705078125, -0.00537109375, -0.00493621826171875, -0.02362060546875, -0.0138397216796875, 0.0462646484375, 0.0103912353515625, -0.0243377685546875, 0.01190948486328125, -0.034088134765625, 0.032623291015625, -0.0276031494140625, -0.00524139404296875, 0.010955810546875, -0.00498199462890625, 0.04376220703125, -0.0045013427734375, -0.028717041015625, 0.01157379150390625, 0.027008056640625, 0.051239013671875, -0.002117156982421875, 0.01523590087890625, -0.020599365234375, 0.0092926025390625, -0.028594970703125, 0.025054931640625, -0.032958984375, -0.0458984375, 0.0182037353515625, 0.0305328369140625, 0.00232696533203125, 0.010498046875, 0.0238494873046875, -0.0809326171875, 0.0014715194702148438, -0.028594970703125, -0.0103759765625, 0.0248260498046875, 0.00913238525390625, -0.0016736984252929688, 0.00963592529296875, -0.00730133056640625, 0.00797271728515625, -0.03125, 0.00020039081573486328, 0.0006461143493652344, 0.044525146484375, 0.021636962890625, 0.037933349609375, -0.01251983642578125, -0.01409912109375, -0.0178985595703125, 0.00036144256591796875, 0.0017385482788085938, 0.030670166015625, -0.0018157958984375, 0.04815673828125, -0.0294647216796875, 0.0252227783203125, 0.033203125, -0.038482666015625, 0.05419921875, -0.006195068359375, -0.11553955078125, -0.0067596435546875, 0.000030934810638427734, -0.04327392578125, -0.0027637481689453125, -0.0272369384765625, 0.01154327392578125, 0.0259246826171875, -0.00785064697265625, 0.00615692138671875, -0.0020542144775390625, 0.052978515625, -0.052764892578125, 0.03204345703125, 0.0018434524536132812, -0.0179290771484375, -0.015625, -0.037261962890625, -0.0117645263671875, -0.0296478271484375, -0.062164306640625, -0.028778076171875, -0.007701873779296875, 0.049224853515625, 0.00510406494140625, 0.01493072509765625, -0.0298004150390625, 0.05072021484375, 0.03375244140625, -0.045654296875, -0.01457977294921875, 0.047088623046875, 0.01087188720703125, 0.0438232421875, 0.0152130126953125, 0.02264404296875, -0.07965087890625, -0.044769287109375, -0.05889892578125, 0.050567626953125, 0.018524169921875, 0.0060272216796875, 0.0029449462890625, 0.052703857421875, 0.017120361328125, 0.0028934478759765625, -0.00727081298828125, -0.022308349609375, 0.038787841796875, -0.033203125, 0.003246307373046875, 0.0017747879028320312, -0.08135986328125, -0.006511688232421875, 0.050750732421875, -0.0285186767578125, -0.0133514404296875, 0.0163726806640625, 0.021209716796875, -0.0183563232421875, 0.0218963623046875, -0.032684326171875, -0.051971435546875, -0.045135498046875, -0.00753021240234375, -0.00862884521484375, 0.00850677490234375, 0.04339599609375, -0.025787353515625, 0.047882080078125, -0.053070068359375, 0.0643310546875, -0.004421234130859375, 0.08447265625, 0.0283660888671875, 0.016143798828125, -0.017364501953125, -0.0011510848999023438, -0.0184326171875, 0.008941650390625, 0.004364013671875, 0.01287078857421875, -0.009796142578125, 0.00986480712890625, -0.0052947998046875, 0.02825927734375, 0.06597900390625, 0.0282135009765625, 0.01483154296875, 0.00911712646484375, -0.0234527587890625, -0.0439453125, -0.0322265625, -0.0302276611328125, -0.07232666015625, 0.0064697265625, 0.0138092041015625, -0.0208587646484375, -0.051116943359375, -0.015289306640625, -0.0249786376953125, 0.00948333740234375, 0.0029735565185546875, -0.041656494140625, 0.03662109375, -0.032745361328125, -0.0111083984375, -0.028167724609375, 0.03729248046875, -0.00768280029296875, -0.0278778076171875, -0.04254150390625, 0.003505706787109375, -0.01282501220703125, 0.036285400390625, 0.0173797607421875, -0.024810791015625, 0.00821685791015625, 0.007114410400390625, 0.054656982421875, -0.043365478515625, -0.007068634033203125, 0.01078033447265625, -0.04571533203125, -0.015594482421875, 0.0101165771484375, 0.018157958984375, -0.024505615234375, -0.07147216796875, 0.017242431640625, -0.059967041015625, 0.0164031982421875, 0.0225372314453125, -0.013519287109375, 0.016937255859375, -0.024932861328125, -0.08209228515625, 0.042510986328125, -0.00923919677734375, -0.0288238525390625, -0.06787109375, 0.0399169921875, 0.024444580078125, -0.053436279296875, -0.026824951171875, -0.0282440185546875, -0.01538848876953125, 0.032379150390625, 0.00890350341796875, 0.0252532958984375, 0.043304443359375, -0.0228424072265625, -0.049530029296875, -0.0190582275390625, -0.008544921875, 0.032562255859375, -0.0599365234375, 0.023834228515625, 0.01062774658203125, 0.011322021484375, 0.0034732818603515625, 0.0149383544921875, 0.06195068359375, 0.00470733642578125, 0.01904296875, 0.03125, -0.04461669921875, -0.0218353271484375, 0.0478515625, 0.0241241455078125, 0.020721435546875, 0.00521087646484375, 0.03131103515625, 0.020050048828125, -0.0255584716796875, -0.001743316650390625, 0.01031494140625, -0.040313720703125, -0.04595947265625, -0.027496337890625, 0.0023937225341796875, -0.042449951171875, -0.04461669921875, -0.049285888671875, -0.0286407470703125, -0.045501708984375, 0.038421630859375, -0.007724761962890625, -0.0350341796875, 0.0066375732421875, 0.00013637542724609375, 0.0275421142578125, -0.0179595947265625, 0.036407470703125, 0.02117919921875, 0.04034423828125, -0.05706787109375, 0.006183624267578125, -0.02813720703125, 0.0196533203125, -0.0224151611328125, -0.020263671875, -0.0304412841796875, 0.05206298828125, 0.002864837646484375, -0.001953125, -0.006206512451171875, -0.0198211669921875, -0.00838470458984375, -0.00786590576171875, -0.0401611328125, 0.0657958984375, -0.0037078857421875, 0.0782470703125, 0.0257415771484375, 0.0256805419921875, 0.01157379150390625, -0.01263427734375, 0.0550537109375, -0.058837890625, 0.004444122314453125, 0.00295257568359375, 0.00716400146484375, -0.05126953125, 0.006961822509765625, 0.0145111083984375, 0.0167388916015625, 0.023345947265625 ]
f80fa7fa5d5d81344fef65e47706ceccfc854b08
Wordpress Stackexchange Q: What server settings are required to import WordPress XML file I am trying to import my site using the WordPress import XML page. My XML file is 7mb so when I try to import it I receive a "500 Internal Server Error" page. I read some other posts and tried using the "WordPress WXR File splitter" and tried to split the files into files only 300kb each. Tried to import again and still receive the 500 error page. I am on a VPS server so can change settings if required. Where would I find the error log to view what is going on and do I need to change any server settings to get WordPress to import my XML file. Thanks. A: This is really more of a server admin question than Wordpress. Error logs and php.ini file locations can vary depending on the server OS. You need to change the upload and timeout limits for php. Do that either in the main php.ini file or enable php.ini in your web directory and try: max_execution_time = 120 max_input_time = 120 memory_limit = 128M post_max_size = 10M upload_max_filesize = 10M
Q: What server settings are required to import WordPress XML file I am trying to import my site using the WordPress import XML page. My XML file is 7mb so when I try to import it I receive a "500 Internal Server Error" page. I read some other posts and tried using the "WordPress WXR File splitter" and tried to split the files into files only 300kb each. Tried to import again and still receive the 500 error page. I am on a VPS server so can change settings if required. Where would I find the error log to view what is going on and do I need to change any server settings to get WordPress to import my XML file. Thanks. A: This is really more of a server admin question than Wordpress. Error logs and php.ini file locations can vary depending on the server OS. You need to change the upload and timeout limits for php. Do that either in the main php.ini file or enable php.ini in your web directory and try: max_execution_time = 120 max_input_time = 120 memory_limit = 128M post_max_size = 10M upload_max_filesize = 10M
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:423061", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62361" }
[ 0.032012939453125, -0.024627685546875, -0.0003108978271484375, 0.021636962890625, -0.0247039794921875, -0.032989501953125, 0.038055419921875, -0.0311737060546875, 0.01360321044921875, -0.012420654296875, -0.0775146484375, 0.033721923828125, -0.036224365234375, -0.006557464599609375, 0.024017333984375, -0.0406494140625, 0.00542449951171875, -0.0060882568359375, 0.01294708251953125, -0.020294189453125, 0.0032939910888671875, -0.008544921875, 0.0192108154296875, -0.0152435302734375, 0.0029544830322265625, 0.0168914794921875, 0.050140380859375, -0.0211944580078125, 0.0070953369140625, -0.025360107421875, 0.005573272705078125, 0.0104522705078125, 0.03082275390625, 0.02386474609375, -0.0684814453125, -0.01629638671875, -0.03875732421875, 0.0172271728515625, -0.030303955078125, 0.047027587890625, -0.0103912353515625, 0.0174407958984375, 0.059234619140625, -0.005084991455078125, 0.00213623046875, -0.04290771484375, 0.0122833251953125, -0.035919189453125, -0.001155853271484375, -0.02392578125, -0.00443267822265625, -0.0179290771484375, 0.02734375, -0.05029296875, -0.02490234375, -0.03228759765625, -0.016693115234375, 0.037445068359375, 0.023101806640625, -0.0064239501953125, -0.035552978515625, 0.0126190185546875, 0.008331298828125, -0.0007510185241699219, -0.00827789306640625, -0.01276397705078125, 0.0253143310546875, 0.000021755695343017578, -0.002597808837890625, -0.00482177734375, 0.032379150390625, 0.0234222412109375, -0.0083160400390625, 0.0088043212890625, -0.0174102783203125, -0.017822265625, 0.0556640625, -0.023712158203125, -0.016082763671875, 0.028472900390625, 0.039642333984375, 0.0015897750854492188, -0.0031261444091796875, -0.03936767578125, 0.02667236328125, -0.005565643310546875, 0.004840850830078125, -0.013153076171875, -0.01454925537109375, -0.00469970703125, -0.021575927734375, 0.0046844482421875, -0.0274200439453125, 0.0032787322998046875, -0.01070404052734375, -0.0109405517578125, -0.035369873046875, -0.021881103515625, -0.0171356201171875, 0.0275726318359375, 0.007617950439453125, -0.0259857177734375, 0.07513427734375, -0.030303955078125, 0.016571044921875, 0.0206756591796875, -0.0259246826171875, -0.03485107421875, 0.03485107421875, 0.025299072265625, -0.0015249252319335938, 0.038818359375, 0.01255035400390625, -0.0021915435791015625, -0.03973388671875, 0.005893707275390625, 0.004039764404296875, 0.0011262893676757812, -0.00140380859375, 0.023193359375, -0.0273895263671875, 0.042694091796875, -0.11212158203125, -0.041748046875, 0.00033211708068847656, -0.04742431640625, 0.0256805419921875, 0.06103515625, -0.02655029296875, 0.0304107666015625, -0.029266357421875, 0.0282135009765625, 0.0235595703125, -0.0174407958984375, -0.03436279296875, -0.018829345703125, 0.07464599609375, 0.0176239013671875, -0.0198822021484375, 0.00751495361328125, 0.01006317138671875, -0.01422119140625, -0.0241241455078125, -0.021148681640625, -0.005634307861328125, 0.01351165771484375, 0.0261688232421875, 0.0260009765625, -0.021697998046875, -0.03692626953125, 0.0175933837890625, 0.015777587890625, 0.025665283203125, -0.00434112548828125, -0.01036834716796875, -0.071533203125, 0.0132598876953125, -0.0631103515625, 0.0380859375, -0.068115234375, -0.0115509033203125, -0.006561279296875, 0.06756591796875, 0.016815185546875, -0.0112762451171875, 0.01303863525390625, -0.040069580078125, -0.011962890625, 0.0122833251953125, 0.0218353271484375, -0.046112060546875, 0.009429931640625, 0.0203399658203125, 0.0203704833984375, -0.006793975830078125, 0.028228759765625, 0.04412841796875, -0.0224761962890625, -0.0181427001953125, 0.053314208984375, 0.00850677490234375, -0.01438140869140625, -0.0062103271484375, 0.0014677047729492188, -0.031097412109375, 0.0009279251098632812, 0.025787353515625, 0.0228118896484375, 0.004901885986328125, 0.01995849609375, 0.0305633544921875, 0.0156402587890625, -0.01220703125, 0.00035953521728515625, -0.00130462646484375, -0.0253753662109375, -0.001308441162109375, -0.007587432861328125, -0.0010957717895507812, 0.00360107421875, -0.0426025390625, 0.004001617431640625, 0.0084381103515625, 0.004589080810546875, 0.00888824462890625, 0.0080413818359375, -0.00801849365234375, 0.0270233154296875, -0.0134735107421875, -0.01282501220703125, 0.01346588134765625, -0.0137176513671875, 0.0043487548828125, -0.046478271484375, -0.022186279296875, 0.0251922607421875, -0.034271240234375, 0.041473388671875, 0.011444091796875, 0.031402587890625, -0.00399017333984375, -0.020416259765625, 0.0023593902587890625, -0.02227783203125, -0.00811767578125, 0.0301055908203125, -0.033538818359375, 0.0272674560546875, 0.0287933349609375, 0.023040771484375, 0.050262451171875, -0.01617431640625, 0.0340576171875, 0.05316162109375, -0.0017747879028320312, -0.015045166015625, -0.0068359375, -0.08685302734375, 0.0216064453125, 0.045196533203125, 0.022369384765625, -0.012725830078125, 0.00629425048828125, 0.06634521484375, -0.024139404296875, -0.008544921875, 0.0379638671875, 0.0083465576171875, -0.006504058837890625, -0.007068634033203125, -0.058349609375, -0.02783203125, 0.05389404296875, -0.0389404296875, -0.0313720703125, 0.06475830078125, -0.026275634765625, -0.034515380859375, 0.006061553955078125, 0.0031909942626953125, 0.0001519918441772461, 0.004116058349609375, -0.013946533203125, 0.00351715087890625, 0.020294189453125, 0.03900146484375, 0.058624267578125, 0.049407958984375, -0.005161285400390625, 0.0044708251953125, -0.015960693359375, -0.006252288818359375, 0.00284576416015625, 0.0138092041015625, 0.0006451606750488281, 0.03839111328125, -0.0223236083984375, -0.0016832351684570312, -0.0038051605224609375, 0.00901031494140625, -0.0180511474609375, 0.0006933212280273438, -0.017364501953125, 0.0012159347534179688, -0.004894256591796875, -0.06402587890625, 0.02117919921875, 0.0428466796875, -0.003589630126953125, -0.007099151611328125, 0.0004565715789794922, 0.050872802734375, -0.01165771484375, 0.043914794921875, 0.013427734375, 0.0039215087890625, 0.08770751953125, -0.07177734375, 0.049163818359375, -0.0231781005859375, 0.08001708984375, 0.0589599609375, -0.0184173583984375, 0.008392333984375, 0.0024127960205078125, -0.0031108856201171875, -0.0024089813232421875, 0.00858306884765625, -0.0224456787109375, -0.00992584228515625, -0.08184814453125, -0.02197265625, 0.01503753662109375, -0.00493621826171875, -0.01267242431640625, -0.04107666015625, -0.048675537109375, -0.01064300537109375, -0.0823974609375, -0.03765869140625, -0.000040411949157714844, -0.07318115234375, 0.003971099853515625, -0.0169219970703125, -0.0310821533203125, -0.006717681884765625, -0.0001436471939086914, 0.0153656005859375, 0.0236053466796875, -0.05841064453125, -0.055267333984375, -0.08221435546875, -0.0936279296875, -0.060821533203125, 0.00493621826171875, -0.0031414031982421875, -0.0046234130859375, 0.067138671875, -0.0009102821350097656, -0.07366943359375, -0.0325927734375, 0.040008544921875, -0.01806640625, -0.0076141357421875, -0.01146697998046875, 0.007038116455078125, 0.0269012451171875, 0.01129150390625, 0.031494140625, 0.02801513671875, -0.0299835205078125, -0.025054931640625, -0.00797271728515625, 0.00476837158203125, -0.024261474609375, 0.0218353271484375, 0.0225372314453125, -0.031829833984375, -0.0423583984375, -0.06707763671875, -0.02911376953125, 0.016143798828125, -0.043060302734375, 0.0028858184814453125, 0.0193939208984375, -0.0261383056640625, 0.035003662109375, -0.0287322998046875, -0.052520751953125, -0.0021076202392578125, 0.024627685546875, -0.032806396484375, 0.0382080078125, -0.033477783203125, -0.0615234375, -0.0109710693359375, 0.06561279296875, 0.0019626617431640625, -0.005786895751953125, 0.03424072265625, -0.0195159912109375, -0.032867431640625, 0.0033092498779296875, -0.06097412109375, -0.060577392578125, 0.04083251953125, -0.01837158203125, -0.006381988525390625, -0.006710052490234375, -0.01812744140625, 0.0276336669921875, 0.0859375, -0.01361083984375, -0.007293701171875, -0.01467132568359375, 0.0222320556640625, -0.0435791015625, -0.07415771484375, -0.038421630859375, 0.008697509765625, 0.01800537109375, -0.01239776611328125, -0.0012655258178710938, 0.0012674331665039062, 0.0197601318359375, -0.09454345703125, 0.040557861328125, -0.0255126953125, 0.0193328857421875, 0.019012451171875, 0.018341064453125, 0.0100250244140625, 0.01611328125, -0.0175018310546875, -0.004795074462890625, -0.0088348388671875, -0.10418701171875, -0.024932861328125, -0.01198577880859375, 0.080078125, -0.0121307373046875, -0.0013027191162109375, -0.0322265625, 0.045135498046875, -0.0293426513671875, -0.0239105224609375, 0.01397705078125, 0.0179443359375, -0.00972747802734375, 0.0278472900390625, -0.005161285400390625, -0.00936126708984375, 0.0026760101318359375, -0.0026702880859375, -0.036224365234375, -0.012359619140625, -0.03326416015625, -0.03338623046875, 0.006725311279296875, -0.03240966796875, -0.0268096923828125, -0.022491455078125, -0.00928497314453125, 0.0238800048828125, 0.0101470947265625, -0.0186614990234375, -0.0469970703125, -0.061859130859375, 0.047149658203125, -0.0262451171875, 0.003650665283203125, 0.0031566619873046875, 0.1236572265625, 0.003173828125, -0.002338409423828125, -0.08123779296875, -0.04510498046875, -0.00482940673828125, 0.007099151611328125, 0.059326171875, 0.029876708984375, 0.0035305023193359375, 0.025787353515625, -0.01371002197265625, 0.0009756088256835938, -0.00891876220703125, 0.01470947265625, 0.007354736328125, -0.018157958984375, 0.0131378173828125, 0.0010805130004882812, 0.0180816650390625, 0.0228424072265625, -0.0214996337890625, -0.010467529296875, 0.011138916015625, 0.032745361328125, -0.0399169921875, 0.0294342041015625, -0.0169219970703125, -0.033477783203125, 0.02459716796875, -0.035308837890625, -0.0237274169921875, -0.01544952392578125, 0.01177978515625, -0.0164794921875, 0.0001156926155090332, -0.01419830322265625, 0.04833984375, 0.0814208984375, 0.004123687744140625, 0.01331329345703125, 0.06903076171875, -0.0299072265625, -0.03265380859375, 0.0018644332885742188, 0.01042938232421875, -0.00472259521484375, -0.0222625732421875, -0.06060791015625, 0.0050048828125, -0.0184783935546875, -0.007350921630859375, 0.0020885467529296875, 0.01580810546875, 0.00740814208984375, -0.017120361328125, 0.0007829666137695312, -0.004451751708984375, -0.003833770751953125, -0.0268096923828125, -0.0419921875, -0.0022068023681640625, -0.0252532958984375, -0.00406646728515625, 0.0193023681640625, -0.032196044921875, -0.000194549560546875, 0.00807952880859375, 0.0217132568359375, 0.0035457611083984375, 0.03887939453125, 0.00696563720703125, -0.03826904296875, 0.0166778564453125, 0.00977325439453125, 0.00658416748046875, -0.0287322998046875, 0.0003364086151123047, -0.0021514892578125, 0.045989990234375, -0.0302734375, -0.0347900390625, 0.036224365234375, -0.0178375244140625, 0.0035953521728515625, 0.0482177734375, -0.005039215087890625, -0.054443359375, -0.00930023193359375, 0.00424957275390625, 0.0201568603515625, -0.06280517578125, 0.001934051513671875, 0.046875, 0.00360107421875, 0.01009368896484375, 0.0352783203125, -0.04510498046875, -0.004058837890625, 0.0167083740234375, 0.01010894775390625, -0.0159149169921875, -0.0202178955078125, -0.03643798828125, -0.0008645057678222656, -0.01357269287109375, -0.0156707763671875, 0.04437255859375, -0.0165863037109375, -0.019256591796875, -0.0228424072265625, 0.026580810546875, -0.03582763671875, 0.0179595947265625, 0.0015096664428710938, -0.022369384765625, 0.021820068359375, -0.00637054443359375, -0.02886962890625, -0.047393798828125, 0.0184478759765625, 0.015289306640625, -0.048248291015625, -0.0152587890625, -0.036163330078125, 0.00974273681640625, -0.00524139404296875, 0.04327392578125, -0.001850128173828125, 0.04266357421875, -0.0276641845703125, 0.01184844970703125, -0.03741455078125, 0.020751953125, 0.0160980224609375, 0.005405426025390625, -0.004489898681640625, 0.0215911865234375, 0.036956787109375, -0.0194854736328125, 0.0186920166015625, -0.005008697509765625, -0.039093017578125, -0.0382080078125, 0.0012874603271484375, 0.0140228271484375, 0.06201171875, -0.02593994140625, 0.0297393798828125, -0.0517578125, -0.00589752197265625, -0.00905609130859375, 0.0755615234375, -0.02716064453125, -0.0010747909545898438, 0.06976318359375, -0.012542724609375, 0.0255126953125, -0.007411956787109375, -0.0020923614501953125, 0.01387786865234375, -0.00894927978515625, 0.004192352294921875, -0.00489044189453125, 0.01363372802734375, 0.0131072998046875, 0.0452880859375, -0.004756927490234375, 0.0148773193359375, 0.04449462890625, -0.0044097900390625, -0.01047515869140625, 0.052703857421875, -0.04034423828125, -0.04248046875, -0.0193634033203125, -0.00039696693420410156, -0.01380157470703125, -0.041534423828125, -0.00592041015625, 0.034759521484375, 0.04217529296875, 0.0870361328125, -0.0718994140625, 0.025054931640625, 0.053436279296875, -0.040435791015625, -0.0248870849609375, -0.004150390625, -0.026336669921875, -0.0477294921875, 0.05047607421875, -0.01103973388671875, -0.006946563720703125, 0.0264739990234375, 0.0081634521484375, -0.0163116455078125, -0.0218963623046875, 0.04656982421875, 0.026519775390625, -0.003387451171875, 0.01397705078125, 0.004505157470703125, 0.02301025390625, 0.02374267578125, 0.0538330078125, -0.0504150390625, -0.0196685791015625, -0.00652313232421875, -0.021209716796875, -0.0195159912109375, -0.05499267578125, 0.01279449462890625, 0.0157012939453125, 0.04632568359375, 0.043212890625, 0.0142822265625, -0.02618408203125, 0.0223236083984375, 0.0211944580078125, 0.03265380859375, -0.053680419921875, 0.00007390975952148438, 0.044769287109375, -0.0206451416015625, 0.0181884765625, 0.049713134765625, -0.040863037109375, 0.00977325439453125, 0.0262298583984375, 0.02618408203125, -0.0004787445068359375, -0.0281524658203125, 0.031829833984375, -0.03314208984375, -0.00875091552734375, 0.005542755126953125, 0.08819580078125, -0.029052734375, -0.032012939453125, 0.043212890625, -0.02935791015625, -0.0731201171875, -0.00457000732421875, -0.048828125, 0.0810546875, 0.002506256103515625, 0.0149993896484375, 0.029632568359375, 0.0282745361328125, -0.044097900390625, 0.00036716461181640625, 0.009613037109375, 0.033721923828125, 0.037689208984375, -0.01544952392578125, -0.025238037109375, -0.02020263671875, -0.0014400482177734375, 0.0528564453125, 0.02838134765625, -0.004245758056640625, -0.037872314453125, -0.00591278076171875, 0.0645751953125, 0.045745849609375, 0.022369384765625, 0.02655029296875, -0.01313018798828125, 0.0183563232421875, 0.029144287109375, -0.059326171875, 0.014923095703125, -0.00357818603515625, -0.0074310302734375, 0.006011962890625, -0.0093841552734375, -0.0216522216796875, 0.00030517578125, -0.035919189453125, -0.0167083740234375, -0.01031494140625, 0.0084381103515625, -0.019989013671875, 0.026702880859375, -0.0200958251953125, -0.018829345703125, -0.05072021484375, -0.03363037109375, -0.01523590087890625, 0.016754150390625, -0.0272979736328125, 0.0178375244140625, 0.0318603515625, 0.02105712890625, 0.057281494140625, -0.0162506103515625, 0.0146636962890625, 0.007755279541015625, -0.0201416015625, 0.01275634765625, 0.02947998046875, 0.031890869140625, 0.0279541015625, 0.0268402099609375, -0.0118865966796875, 0.0033283233642578125, -0.0168304443359375, -0.0306243896484375, -0.003330230712890625, 0.0164031982421875, 0.00542449951171875, -0.003803253173828125, 0.0076904296875, 0.01763916015625, 0.0572509765625, 0.00444793701171875, 0.00872039794921875, 0.0195465087890625, 0.0022907257080078125, 0.0171356201171875, 0.05963134765625, -0.043701171875, -0.0019464492797851562, -0.00798797607421875, 0.01273345947265625, 0.0107879638671875, 0.017364501953125, -0.021728515625, 0.0264892578125, -0.022369384765625, -0.0003445148468017578, 0.01081085205078125, -0.0010175704956054688, 0.01031494140625, -0.03948974609375, -0.0063018798828125, -0.03314208984375, 0.0184326171875, 0.036376953125, -0.0110015869140625, 0.0295257568359375, 0.0545654296875, 0.021697998046875, -0.08197021484375, -0.0303497314453125, -0.004302978515625, -0.0435791015625, -0.06402587890625, -0.0457763671875, -0.01861572265625, 0.01477813720703125, 0.0194854736328125, 0.03680419921875, 0.0151824951171875, 0.00766754150390625, -0.0215606689453125, 0.0284881591796875, 0.0025615692138671875, -0.01255035400390625, 0.03265380859375, -0.001285552978515625, 0.054443359375, 0.0216827392578125, -0.028411865234375, -0.0003979206085205078, -0.022491455078125, 0.057525634765625, -0.0247039794921875, 0.01378631591796875, 0.010101318359375, 0.03375244140625, 0.01568603515625, -0.0174102783203125, 0.003780364990234375, 0.00014889240264892578, 0.00830078125, 0.0154266357421875, 0.01473236083984375, 0.0156097412109375, -0.0458984375, -0.041015625, -0.041412353515625, 0.04864501953125, 0.045318603515625, 0.07379150390625, -0.018463134765625, 0.03887939453125, 0.0270233154296875, -0.0231781005859375, 0.034881591796875, 0.01451873779296875, -0.00847625732421875, -0.004634857177734375, 0.0113677978515625, -0.0295867919921875, -0.03338623046875, 0.045562744140625, 0.00021266937255859375, 0.0116119384765625, 0.018768310546875, -0.017730712890625, 0.0207061767578125, 0.0465087890625, 0.040130615234375, -0.0198516845703125, -0.0628662109375, -0.046234130859375, 0.019744873046875, 0.0027332305908203125, 0.03704833984375, -0.004364013671875, 0.00788116455078125, 0.031982421875, -0.02984619140625, 0.01551055908203125, -0.005695343017578125, 0.04656982421875, 0.040283203125, 0.0111083984375, -0.0631103515625, 0.0106658935546875, -0.01392364501953125, -0.0200958251953125, 0.0057830810546875, 0.0545654296875, -0.01177978515625, -0.04034423828125, 0.0011186599731445312, 0.040313720703125, 0.048553466796875, -0.024261474609375, 0.0244598388671875, 0.018035888671875, -0.0146026611328125, 0.036346435546875, -0.0257720947265625, -0.0208892822265625, -0.0325927734375, -0.00916290283203125, 0.020538330078125, -0.025909423828125, -0.0007915496826171875, -0.0141448974609375, 0.01284027099609375, 0.0174560546875, -0.0036602020263671875, -0.024261474609375, 0.0227508544921875, -0.031768798828125, 0.009918212890625, -0.00960540771484375, -0.038482666015625, 0.0055084228515625, -0.0023956298828125, -0.035614013671875, -0.056640625, -0.0477294921875, 0.0253448486328125, -0.060028076171875, 0.0028839111328125, 0.039459228515625, -0.0260467529296875, -0.0151519775390625, -0.0253753662109375, 0.00321197509765625, 0.01593017578125, -0.0125732421875, -0.038848876953125, -0.0240325927734375, 0.0160675048828125, 0.010009765625, -0.046295166015625, 0.00353240966796875, -0.059478759765625, -0.0012979507446289062, -0.053070068359375, 0.0194854736328125, -0.0024433135986328125, -0.06085205078125, -0.11395263671875, 0.04583740234375, -0.03936767578125, -0.02978515625, -0.006275177001953125, -0.0308837890625, -0.01396942138671875, 0.02825927734375, 0.006183624267578125, -0.00786590576171875, -0.0322265625, 0.02410888671875, -0.0006809234619140625, 0.01253509521484375, 0.03228759765625, -0.036895751953125, -0.0110321044921875, 0.00030994415283203125, 0.01413726806640625, 0.0024433135986328125, 0.01517486572265625, 0.00930023193359375, 0.029449462890625, 0.06658935546875, -0.00984954833984375, 0.041961669921875, -0.0084381103515625, -0.05023193359375, -0.0013217926025390625, 0.0264434814453125, -0.0330810546875, 0.0074462890625, 0.08111572265625, 0.042144775390625, 0.0192108154296875, -0.031585693359375, 0.0263519287109375, 0.0040130615234375, 0.00914764404296875, -0.00453948974609375, -0.01128387451171875, -0.032379150390625, -0.0391845703125, 0.00887298583984375, -0.0279693603515625, 0.04638671875, -0.01531982421875, -0.0416259765625, 0.02325439453125, -0.0026454925537109375, -0.00481414794921875, -0.07525634765625, 0.042327880859375, 0.06982421875, -0.040496826171875, -0.00861358642578125, -0.003509521484375, -0.0173797607421875, 0.0237274169921875, -0.025238037109375, -0.004016876220703125, 0.01224517822265625, -0.051483154296875, 0.02691650390625, -0.019134521484375, 0.06451416015625, -0.038726806640625, -0.014862060546875, 0.049102783203125, -0.0153045654296875, -0.0260009765625, -0.0343017578125, 0.0204315185546875, -0.0262451171875, -0.073974609375, 0.08349609375, -0.0078887939453125, 0.0014925003051757812, -0.032623291015625, 0.04351806640625, -0.01544189453125, -0.010162353515625, -0.00841522216796875, 0.0034275054931640625, 0.01006317138671875, 0.0157623291015625, 0.0011224746704101562, -0.00646209716796875, 0.007053375244140625, -0.0357666015625, -0.0007543563842773438, 0.0036296844482421875 ]
b3406eb10b2517f2b48f23db96aefe093c59a33b
Wordpress Stackexchange Q: Preserving line breaks when saving and displaying custom fields data I'm collecting data via a form plugin and saving that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template using... if( get_post_meta( $post->ID, '_aboutus', true ) ) : echo '<div class="companyaboutus">' . get_post_meta($post->ID, '_aboutus', true) . '</div>'; endif; The form field for the "About Us" text is a textarea and most contributors add several lines of text into the field. Displaying the content/text via the code above doesn't show any line breaks though - any idea how to preserve the line breaks? A: I stuck with the same question and actually tested wpautop(). It worked, e.g. echo wpautop(get_post_meta($post->ID, '_aboutus', true)); Still, I came around one issue. When sanitizing the user input, don’t use a sanitization method that removed the line breaks before using wpautop :)
Q: Preserving line breaks when saving and displaying custom fields data I'm collecting data via a form plugin and saving that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template using... if( get_post_meta( $post->ID, '_aboutus', true ) ) : echo '<div class="companyaboutus">' . get_post_meta($post->ID, '_aboutus', true) . '</div>'; endif; The form field for the "About Us" text is a textarea and most contributors add several lines of text into the field. Displaying the content/text via the code above doesn't show any line breaks though - any idea how to preserve the line breaks? A: I stuck with the same question and actually tested wpautop(). It worked, e.g. echo wpautop(get_post_meta($post->ID, '_aboutus', true)); Still, I came around one issue. When sanitizing the user input, don’t use a sanitization method that removed the line breaks before using wpautop :) A: This could probably help, http://codex.wordpress.org/Function_Reference/wpautop This converts the new lines into html <br/> tags A: I dont't know which form plugin you use and how it saves data to the database. But I would asume that the linebreaks are saved to the database. But as you might know, a line break in the source code of a HTML page does not show a line break on the browser. The is a very handy PHP function called nl2br() which will add a tag for each line break in the user content text. A: What I like to do is re-create all the default filters that are applied to the_content by adding the following in functions.php. /* * Recreate the default filters on the_content * this will make it much easier to output the meta content with proper/expected formatting */ add_filter( 'meta_content', 'wptexturize' ); add_filter( 'meta_content', 'convert_smilies' ); add_filter( 'meta_content', 'convert_chars' ); add_filter( 'meta_content', 'wpautop' ); add_filter( 'meta_content', 'shortcode_unautop' ); add_filter( 'meta_content', 'prepend_attachment' ); Then the template code would look like: <?php if( $about = get_post_meta($post->ID, '_aboutus', true ) ): echo '<div class="companyaboutus">'. apply_filters( 'meta_content', $about ) . '</div>'; endif; ?> You could, of course, use the_content but I found that plugins also like to hook into that for displaying sharing buttons and the like and so this method avoids sharing buttons from taking over your page. A: This seems to work fine: <? $source = get_post_meta($post->ID, '_aboutus', true); if($source){ $source = explode("\n", $source); ?> <? for($i = 0;$i<sizeof($source);$i++){ ?> <? echo $source[$i]; ?><br /> <? } ?> <? } ?> <?php if(get_post_meta($post->ID, '_aboutus', true)): echo '</div>'; endif; ?> A: Concerts \n to <br> nl2br(get_post_meta($post->ID, '_aboutus', true)); A: Use wp_kses with an empty array as the allowed_html parameter. This will sanitize the string without removing line breaks and should pass most coding standards
wordpress
{ "language": "en", "length": 455, "provenance": "stackexchange_00019.jsonl.gz:423073", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62396" }
[ -0.0114898681640625, -0.032745361328125, -0.06329345703125, -0.0307464599609375, -0.026824951171875, -0.028900146484375, -0.01271820068359375, 0.038360595703125, 0.0304107666015625, 0.002140045166015625, -0.039093017578125, -0.026153564453125, -0.00005525350570678711, -0.036651611328125, 0.020904541015625, -0.02484130859375, 0.00978851318359375, 0.01190948486328125, 0.026092529296875, -0.00490570068359375, 0.0031280517578125, -0.005279541015625, -0.01027679443359375, -0.01541900634765625, -0.005950927734375, -0.024383544921875, 0.10882568359375, 0.0015888214111328125, 0.013916015625, -0.01514434814453125, 0.022216796875, -0.03338623046875, 0.028656005859375, 0.033203125, -0.044677734375, 0.06451416015625, 0.0195159912109375, 0.01025390625, 0.005687713623046875, 0.03070068359375, 0.00972747802734375, 0.0120697021484375, 0.048370361328125, 0.0077056884765625, -0.0172271728515625, -0.0355224609375, 0.0110626220703125, -0.015899658203125, 0.0010442733764648438, 0.08050537109375, -0.01131439208984375, -0.004489898681640625, -0.01995849609375, 0.023406982421875, 0.01435089111328125, -0.0035724639892578125, -0.0667724609375, -0.0911865234375, 0.005191802978515625, 0.030609130859375, 0.05352783203125, -0.057647705078125, 0.041259765625, 0.02374267578125, 0.019866943359375, -0.0350341796875, -0.039825439453125, 0.02294921875, -0.046234130859375, 0.0250396728515625, 0.0694580078125, -0.0537109375, 0.03680419921875, -0.033172607421875, -0.003814697265625, -0.0033054351806640625, -0.0092010498046875, 0.00010752677917480469, 0.01432037353515625, -0.0137481689453125, -0.007411956787109375, -0.01500701904296875, -0.034698486328125, -0.02734375, 0.007602691650390625, -0.021759033203125, -0.002033233642578125, 0.018646240234375, -0.032501220703125, -0.042755126953125, -0.016632080078125, -0.0284576416015625, -0.061431884765625, 0.00540924072265625, -0.01320648193359375, -0.042755126953125, -0.037628173828125, -0.00856781005859375, -0.0288848876953125, -0.0014896392822265625, 0.048431396484375, -0.043914794921875, 0.03240966796875, -0.0196990966796875, 0.020477294921875, 0.0095977783203125, -0.02581787109375, 0.0083465576171875, 0.072509765625, 0.034942626953125, -0.0015087127685546875, 0.0158538818359375, -0.0048828125, -0.039306640625, 0.012115478515625, 0.035797119140625, -0.01384735107421875, 0.018218994140625, -0.00039386749267578125, -0.035003662109375, 0.006439208984375, 0.0007333755493164062, 0.0053863525390625, -0.0012598037719726562, -0.025787353515625, -0.020172119140625, -0.01074981689453125, -0.01678466796875, -0.00792694091796875, 0.0267181396484375, 0.006137847900390625, -0.003612518310546875, -0.0259857177734375, 0.02734375, -0.00830078125, -0.00351715087890625, 0.02691650390625, -0.032257080078125, -0.043243408203125, 0.0289764404296875, -0.07537841796875, -0.00734710693359375, 0.03729248046875, -0.0836181640625, -0.0078125, 0.0273284912109375, 0.028167724609375, 0.01497650146484375, -0.01617431640625, -0.07086181640625, 0.00475311279296875, 0.01047515869140625, 0.06396484375, -0.01308441162109375, -0.01007080078125, -0.056610107421875, 0.0810546875, -0.07080078125, -0.026580810546875, -0.089111328125, -0.01490020751953125, -0.0008249282836914062, 0.03662109375, -0.08599853515625, -0.055450439453125, -0.0182342529296875, -0.0682373046875, -0.0088653564453125, 0.0269317626953125, -0.0452880859375, 0.044830322265625, 0.0036678314208984375, 0.0303192138671875, 0.0014925003051757812, 0.004703521728515625, 0.015869140625, 0.0010318756103515625, -0.0031566619873046875, 0.03424072265625, -0.0166015625, -0.0068817138671875, -0.0244293212890625, 0.03265380859375, -0.0130767822265625, -0.048858642578125, 0.036773681640625, 0.012603759765625, 0.0880126953125, 0.0355224609375, 0.01528167724609375, 0.01297760009765625, -0.03851318359375, -0.0458984375, -0.0384521484375, 0.0002225637435913086, 0.00787353515625, 0.00939178466796875, -0.00714874267578125, 0.004459381103515625, 0.0224761962890625, 0.0013551712036132812, 0.0026950836181640625, -0.0018024444580078125, 0.0006232261657714844, -0.0267486572265625, -0.004047393798828125, -0.00763702392578125, 0.0191192626953125, -0.0085601806640625, 0.028228759765625, 0.0081939697265625, 0.01198577880859375, -0.0088653564453125, -0.0303802490234375, -0.032379150390625, -0.01221466064453125, 0.031341552734375, 0.024444580078125, 0.0296630859375, -0.02496337890625, 0.048095703125, -0.00533294677734375, 0.057952880859375, 0.050750732421875, -0.04254150390625, -0.046875, 0.007152557373046875, -0.0147705078125, -0.0189208984375, -0.035186767578125, 0.08990478515625, 0.01140594482421875, 0.05914306640625, 0.051361083984375, -0.02545166015625, 0.00189971923828125, -0.0267791748046875, -0.06500244140625, -0.026092529296875, 0.046356201171875, 0.00843048095703125, 0.040435791015625, -0.0209503173828125, -0.0146331787109375, 0.0345458984375, -0.022552490234375, 0.004955291748046875, -0.0065765380859375, -0.00522613525390625, 0.01009368896484375, -0.00904083251953125, -0.0194091796875, 0.034210205078125, -0.035369873046875, -0.0168914794921875, 0.0345458984375, -0.060333251953125, 0.0113067626953125, 0.016265869140625, -0.031494140625, -0.00124359130859375, -0.0208282470703125, 0.04266357421875, -0.036651611328125, 0.006984710693359375, 0.0146331787109375, 0.030548095703125, 0.035247802734375, -0.0190277099609375, -0.01560211181640625, 0.0278778076171875, 0.048858642578125, 0.0013446807861328125, 0.01251220703125, -0.02777099609375, 0.0333251953125, -0.029510498046875, 0.002956390380859375, -0.016510009765625, 0.004718780517578125, 0.0067138671875, 0.033203125, 0.0184478759765625, -0.022491455078125, 0.0179595947265625, -0.07305908203125, -0.0064849853515625, -0.0213165283203125, 0.032073974609375, 0.00031828880310058594, 0.0209197998046875, 0.020965576171875, -0.01094818115234375, 0.037689208984375, -0.006084442138671875, -0.01374053955078125, 0.004425048828125, -0.0184478759765625, 0.0362548828125, -0.041595458984375, 0.01027679443359375, 0.053436279296875, -0.028594970703125, 0.0144805908203125, -0.0047760009765625, -0.00836944580078125, -0.0030384063720703125, 0.0311737060546875, 0.00763702392578125, -0.023834228515625, -0.0540771484375, -0.043060302734375, 0.038055419921875, 0.08453369140625, -0.00205230712890625, -0.0462646484375, 0.0256195068359375, 0.04248046875, -0.0677490234375, -0.0745849609375, -0.0191192626953125, -0.0804443359375, -0.038330078125, 0.01418304443359375, -0.053131103515625, 0.0367431640625, 0.0347900390625, -0.00109100341796875, -0.04119873046875, -0.0268096923828125, -0.06939697265625, -0.06170654296875, -0.0863037109375, 0.0416259765625, 0.00733184814453125, 0.05438232421875, 0.0026950836181640625, 0.06268310546875, 0.02227783203125, -0.05218505859375, 0.0265350341796875, 0.013916015625, -0.041351318359375, 0.033203125, -0.018646240234375, -0.025543212890625, -0.0040283203125, 0.004596710205078125, -0.0110931396484375, -0.0186309814453125, 0.022613525390625, -0.01666259765625, 0.005344390869140625, -0.01361083984375, 0.03662109375, 0.0220947265625, -0.00879669189453125, 0.01172637939453125, 0.035064697265625, -0.031463623046875, -0.0489501953125, 0.01529693603515625, -0.0290679931640625, 0.0240936279296875, -0.01263427734375, 0.007205963134765625, -0.028961181640625, 0.09954833984375, -0.0202789306640625, 0.032623291015625, 0.017364501953125, -0.037139892578125, 0.02862548828125, 0.006389617919921875, -0.002628326416015625, -0.00860595703125, 0.0216217041015625, -0.0118255615234375, -0.001678466796875, -0.00408935546875, 0.005161285400390625, -0.01500701904296875, 0.034454345703125, -0.03436279296875, 0.0050048828125, 0.0221710205078125, -0.03955078125, 0.043212890625, -0.0105133056640625, -0.0014352798461914062, -0.0196533203125, 0.04754638671875, -0.0285797119140625, 0.0013875961303710938, 0.0040740966796875, 0.0175323486328125, -0.0202178955078125, -0.031494140625, -0.055755615234375, -0.00614166259765625, -0.06744384765625, 0.01044464111328125, -0.0289764404296875, -0.0145416259765625, 0.0012350082397460938, -0.00484466552734375, -0.01107025146484375, -0.057403564453125, 0.0207061767578125, -0.022552490234375, 0.0355224609375, 0.022552490234375, 0.00174713134765625, -0.0022335052490234375, -0.016632080078125, -0.034912109375, -0.06329345703125, 0.0009255409240722656, -0.03155517578125, 0.039215087890625, 0.0178375244140625, -0.0228118896484375, 0.0106964111328125, 0.0616455078125, 0.0014486312866210938, -0.0022678375244140625, 0.0070953369140625, 0.013336181640625, -0.0265655517578125, -0.0096435546875, 0.006134033203125, -0.0242919921875, -0.0240936279296875, -0.03271484375, -0.0229034423828125, -0.006359100341796875, -0.02362060546875, -0.027069091796875, 0.01160430908203125, -0.005992889404296875, -0.020904541015625, -0.0347900390625, -0.06341552734375, 0.018157958984375, -0.05535888671875, 0.007183074951171875, -0.04876708984375, -0.041900634765625, -0.0047149658203125, -0.0268707275390625, -0.0197601318359375, 0.03631591796875, 0.047882080078125, 0.01329803466796875, 0.01546478271484375, -0.054107666015625, 0.00885009765625, 0.0389404296875, 0.0015172958374023438, 0.0275115966796875, 0.013031005859375, -0.033905029296875, 0.0673828125, 0.01629638671875, 0.0119781494140625, -0.01384735107421875, 0.040435791015625, 0.0053863525390625, 0.021759033203125, -0.01125335693359375, -0.002788543701171875, 0.00820159912109375, 0.01439666748046875, 0.0060577392578125, -0.0099334716796875, 0.018829345703125, -0.00521087646484375, -0.01023101806640625, -0.0019311904907226562, 0.01131439208984375, -0.040924072265625, 0.0168914794921875, -0.02679443359375, 0.0257720947265625, 0.0208587646484375, -0.006378173828125, 0.02728271484375, -0.0035457611083984375, -0.01168060302734375, -0.004688262939453125, 0.001953125, -0.0190582275390625, -0.0038814544677734375, 0.004619598388671875, -0.03961181640625, -0.02020263671875, -0.0015239715576171875, 0.0272216796875, -0.05047607421875, -0.07562255859375, -0.03009033203125, 0.0008845329284667969, 0.069091796875, 0.07281494140625, 0.028076171875, -0.007808685302734375, 0.0177154541015625, 0.01061248779296875, 0.01448822021484375, 0.0330810546875, 0.026031494140625, -0.01190185546875, 0.01290130615234375, 0.01104736328125, -0.01290130615234375, -0.0015592575073242188, 0.01058197021484375, -0.04071044921875, 0.005947113037109375, 0.0173797607421875, 0.04840087890625, 0.034454345703125, 0.041046142578125, 0.0252227783203125, -0.026611328125, -0.0205535888671875, 0.01947021484375, -0.04443359375, -0.049041748046875, -0.014068603515625, 0.028045654296875, 0.03643798828125, 0.0243988037109375, 0.00476837158203125, -0.01506805419921875, -0.0211181640625, -0.004604339599609375, 0.0167694091796875, 0.0033893585205078125, -0.03948974609375, -0.00693511962890625, 0.0021381378173828125, 0.0104522705078125, -0.00402069091796875, 0.02197265625, -0.0238494873046875, 0.0023250579833984375, -0.0176239013671875, -0.021270751953125, -0.0212554931640625, -0.038177490234375, -0.015869140625, 0.03533935546875, -0.02301025390625, -0.050018310546875, -0.0155487060546875, 0.012054443359375, -0.014984130859375, -0.0009112358093261719, 0.038726806640625, -0.08428955078125, 0.0157470703125, -0.041717529296875, 0.0511474609375, -0.06109619140625, 0.04107666015625, 0.035980224609375, 0.056060791015625, -0.0289306640625, -0.00433349609375, -0.05078125, -0.010101318359375, -0.016876220703125, -0.041839599609375, -0.02587890625, -0.017059326171875, -0.000186920166015625, 0.04132080078125, -0.033599853515625, -0.033538818359375, 0.0006847381591796875, -0.003658294677734375, 0.01320648193359375, 0.08062744140625, -0.037078857421875, 0.054412841796875, 0.0242767333984375, 0.057373046875, -0.0081329345703125, 0.0040130615234375, 0.0001838207244873047, -0.007366180419921875, 0.0220794677734375, -0.023773193359375, -0.017303466796875, -0.033111572265625, 0.01708984375, 0.0014247894287109375, -0.0005345344543457031, -0.00489044189453125, -0.018768310546875, 0.0237579345703125, 0.004642486572265625, -0.01806640625, -0.01076507568359375, 0.03741455078125, -0.004352569580078125, -0.0125885009765625, -0.007190704345703125, 0.0015497207641601562, -0.005046844482421875, -0.04718017578125, 0.03228759765625, 0.01450347900390625, 0.0287933349609375, -0.01177978515625, 0.00417327880859375, 0.0177154541015625, 0.0148162841796875, 0.0018768310546875, 0.01312255859375, 0.02813720703125, 0.0119171142578125, -0.01131439208984375, 0.00267791748046875, -0.0002899169921875, 0.0206146240234375, 0.00907135009765625, -0.005664825439453125, 0.005817413330078125, -0.0108642578125, -0.0005550384521484375, 0.06756591796875, 0.0284423828125, 0.1142578125, -0.07183837890625, 0.04620361328125, 0.060150146484375, 0.00013434886932373047, 0.0675048828125, -0.0240020751953125, 0.0071563720703125, 0.006168365478515625, 0.041290283203125, 0.00415802001953125, -0.027313232421875, 0.0172271728515625, 0.0144500732421875, -0.01151275634765625, -0.045318603515625, 0.0545654296875, 0.00919342041015625, -0.014862060546875, 0.00397491455078125, 0.00836181640625, -0.013397216796875, -0.013214111328125, -0.0024662017822265625, 0.01506805419921875, -0.036102294921875, -0.07275390625, 0.01059722900390625, -0.0150299072265625, -0.0135345458984375, 0.004474639892578125, 0.01500701904296875, 0.0307769775390625, 0.0657958984375, -0.0097503662109375, 0.012420654296875, 0.03338623046875, -0.013641357421875, 0.0025730133056640625, -0.02435302734375, -0.00495147705078125, 0.059661865234375, -0.05511474609375, 0.01305389404296875, -0.00616455078125, 0.01352691650390625, -0.0167694091796875, 0.0149383544921875, 0.097412109375, -0.006900787353515625, -0.04144287109375, 0.0131683349609375, 0.005519866943359375, -0.007328033447265625, -0.03350830078125, 0.01806640625, -0.03814697265625, 0.006763458251953125, -0.0308685302734375, -0.03509521484375, -0.01253509521484375, -0.07867431640625, -0.0855712890625, 0.047271728515625, 0.05999755859375, 0.0411376953125, -0.031768798828125, 0.002452850341796875, -0.0160675048828125, -0.018768310546875, -0.02667236328125, 0.0181427001953125, -0.0175323486328125, 0.01511383056640625, -0.04791259765625, -0.01153564453125, -0.00299835205078125, 0.033416748046875, 0.0049285888671875, 0.01081085205078125, -0.0107574462890625, -0.047119140625, -0.0229644775390625, 0.016937255859375, -0.020050048828125, 0.01447296142578125, 0.015594482421875, 0.053375244140625, 0.028167724609375, -0.0694580078125, 0.031829833984375, -0.058837890625, 0.007526397705078125, 0.033782958984375, 0.0157928466796875, 0.0193634033203125, -0.0025310516357421875, -0.029266357421875, -0.006317138671875, -0.0160980224609375, -0.006923675537109375, -0.0010175704956054688, -0.0160980224609375, 0.0303802490234375, 0.0196685791015625, -0.01165008544921875, -0.0426025390625, -0.0177001953125, 0.02093505859375, 0.0229339599609375, 0.057861328125, 0.040130615234375, 0.024505615234375, 0.0465087890625, 0.02142333984375, 0.036865234375, 0.00527191162109375, 0.00982666015625, -0.0273895263671875, -0.0171356201171875, -0.00899505615234375, -0.0406494140625, 0.031036376953125, 0.05902099609375, -0.01129150390625, -0.0227813720703125, -0.00013446807861328125, 0.00749969482421875, 0.00453948974609375, -0.0005335807800292969, -0.0234375, 0.01873779296875, -0.01561737060546875, 0.0002923011779785156, -0.005115509033203125, -0.01129150390625, 0.01080322265625, -0.005176544189453125, 0.017547607421875, 0.04827880859375, -0.0250701904296875, -0.0164947509765625, -0.058197021484375, 0.003795623779296875, 0.01227569580078125, 0.049591064453125, 0.06298828125, -0.0099639892578125, 0.03387451171875, -0.0457763671875, -0.007720947265625, -0.01155853271484375, 0.00865936279296875, -0.0012111663818359375, 0.032470703125, 0.033660888671875, -0.0227508544921875, -0.001667022705078125, 0.0210418701171875, 0.03350830078125, 0.07464599609375, 0.0199737548828125, -0.058197021484375, -0.0013456344604492188, 0.044769287109375, -0.0379638671875, -0.027099609375, -0.0150604248046875, -0.036346435546875, 0.0256195068359375, 0.00539398193359375, 0.02276611328125, -0.0198211669921875, 0.046661376953125, -0.006683349609375, 0.058563232421875, -0.00728607177734375, 0.0173797607421875, 0.01342010498046875, -0.0209503173828125, 0.0175018310546875, 0.033111572265625, -0.06536865234375, -0.027801513671875, -0.0129547119140625, -0.00153350830078125, 0.0123291015625, 0.0204620361328125, -0.005542755126953125, 0.029052734375, 0.0215606689453125, -0.0120697021484375, 0.0162506103515625, -0.0250091552734375, 0.021209716796875, -0.0274810791015625, -0.005893707275390625, -0.0078582763671875, -0.039642333984375, -0.03497314453125, -0.0015716552734375, 0.016632080078125, -0.01788330078125, 0.0494384765625, 0.003238677978515625, 0.01059722900390625, -0.054473876953125, 0.001941680908203125, -0.0192718505859375, -0.0253448486328125, 0.034820556640625, 0.05828857421875, 0.00469207763671875, -0.023834228515625, 0.004756927490234375, 0.032073974609375, 0.0364990234375, -0.047210693359375, 0.0220489501953125, 0.027374267578125, 0.0003864765167236328, -0.057525634765625, -0.0002143383026123047, -0.0189208984375, -0.02947998046875, -0.0565185546875, -0.02618408203125, 0.033843994140625, 0.029327392578125, 0.0247344970703125, 0.0721435546875, 0.038238525390625, -0.0015420913696289062, 0.023590087890625, -0.089599609375, 0.053985595703125, 0.05523681640625, 0.005168914794921875, 0.0058441162109375, -0.02301025390625, -0.0306854248046875, -0.004611968994140625, -0.00472259521484375, 0.0099639892578125, -0.0172271728515625, 0.005634307861328125, -0.01513671875, 0.0259857177734375, 0.036895751953125, -0.01042938232421875, 0.0256805419921875, 0.0204620361328125, 0.00441741943359375, -0.01454925537109375, -0.01428985595703125, 0.0030422210693359375, -0.0110015869140625, -0.0012483596801757812, 0.036376953125, -0.0070037841796875, 0.0269622802734375, -0.0694580078125, -0.0307159423828125, 0.0224151611328125, -0.0009050369262695312, -0.01910400390625, -0.01425933837890625, 0.00010782480239868164, 0.0014276504516601562, -0.006134033203125, 0.0255889892578125, 0.0005049705505371094, 0.052520751953125, 0.0011606216430664062, -0.06439208984375, -0.0186920166015625, 0.08062744140625, -0.0244140625, -0.0017881393432617188, -0.01151275634765625, 0.007293701171875, -0.01105499267578125, 0.0159454345703125, 0.01137542724609375, 0.05096435546875, 0.016571044921875, -0.022308349609375, 0.008880615234375, 0.0229644775390625, -0.0164642333984375, -0.0019054412841796875, 0.006130218505859375, 0.0212860107421875, 0.0020046234130859375, 0.008941650390625, -0.007747650146484375, -0.0005855560302734375, -0.040283203125, -0.0863037109375, 0.0293426513671875, 0.005584716796875, -0.029205322265625, 0.0147857666015625, -0.0244598388671875, -0.0162506103515625, 0.0237274169921875, 0.0140838623046875, -0.017425537109375, -0.0124053955078125, 0.021759033203125, -0.0015869140625, 0.07489013671875, 0.031768798828125, -0.01218414306640625, 0.0167388916015625, 0.0036373138427734375, 0.002742767333984375, -0.0007567405700683594, -0.030853271484375, 0.0188446044921875, 0.006927490234375, 0.0089569091796875, -0.0105438232421875, -0.01390838623046875, 0.0297698974609375, 0.0075531005859375, -0.0104217529296875, -0.02484130859375, -0.0038013458251953125, 0.004947662353515625, 0.0193328857421875, 0.048309326171875, -0.005702972412109375, -0.047149658203125, 0.0161285400390625, 0.040313720703125, -0.00604248046875, 0.00921630859375, 0.004734039306640625, -0.061737060546875, -0.040008544921875, 0.0017566680908203125, -0.00099945068359375, 0.0189971923828125, 0.005336761474609375, -0.0008130073547363281, -0.030242919921875, -0.00009399652481079102, -0.0185699462890625, -0.035614013671875, -0.06732177734375, 0.06915283203125, -0.036376953125, -0.031982421875, 0.0189971923828125, 0.040924072265625, 0.008392333984375, 0.0328369140625, -0.0184173583984375, -0.0218505859375, -0.058441162109375, -0.0149993896484375, -0.009521484375, 0.0665283203125, -0.0263671875, -0.0201873779296875, 0.0210418701171875, -0.0058746337890625, -0.012237548828125, -0.02447509765625, 0.016357421875, -0.0160675048828125, -0.044708251953125, -0.004718780517578125, -0.0367431640625, 0.0084686279296875, -0.023834228515625, 0.01239776611328125, -0.004367828369140625, 0.0236968994140625, 0.036041259765625, -0.0186309814453125, 0.004119873046875, -0.01390838623046875, -0.0223846435546875, -0.04998779296875, 0.036590576171875, 0.0163726806640625, -0.027923583984375, 0.0204620361328125 ]
17d9efaca53d5ab3429df1282bbdf54c8b3d7059
Wordpress Stackexchange Q: wp_get_archives() - Get CSS selector for current month I'm looking for how to get a class in the wp_get_archives functions to get the current month (when we are in a month archive) just like when we call wp_list_categories, the current category has a ".current-cat" selector for CSS or when we call wp_list_pages we have a '.current_page_item' selector. A: Put the following function in your functions.php function wpse_62509_current_month_selector( $link_html ) { $current_month = date("F Y"); if ( preg_match('/'.$current_month.'/i', $link_html ) ) $link_html = preg_replace('/<li>/i', '<li class="current-month">', $link_html ); return $link_html; } And then add the following line just before calling wp_get_archives() add_filter( 'get_archives_link', 'wpse_62509_current_month_selector' ); You might also want to remove the filter after calling wp_get_archives() so that it doesn't mess with other wp_get_archives() or get_archives_link() function calls. remove_filter( 'get_archives_link', 'wpse_62509_current_month_selector' );
Q: wp_get_archives() - Get CSS selector for current month I'm looking for how to get a class in the wp_get_archives functions to get the current month (when we are in a month archive) just like when we call wp_list_categories, the current category has a ".current-cat" selector for CSS or when we call wp_list_pages we have a '.current_page_item' selector. A: Put the following function in your functions.php function wpse_62509_current_month_selector( $link_html ) { $current_month = date("F Y"); if ( preg_match('/'.$current_month.'/i', $link_html ) ) $link_html = preg_replace('/<li>/i', '<li class="current-month">', $link_html ); return $link_html; } And then add the following line just before calling wp_get_archives() add_filter( 'get_archives_link', 'wpse_62509_current_month_selector' ); You might also want to remove the filter after calling wp_get_archives() so that it doesn't mess with other wp_get_archives() or get_archives_link() function calls. remove_filter( 'get_archives_link', 'wpse_62509_current_month_selector' ); A: This function was created with the great help of Joshua Abenazer. Thanks! Basically, if is a monthly archive, go and get the current month watched, and add a class on the li. Worked great. function wpse_62509_current_month_selector( $link_html ) { if (is_month()){ $current_month = get_the_date("F Y"); if ( preg_match('/'.$current_month.'/i', $link_html ) ) $link_html = preg_replace('/<li>/i', '<li class="current-month">', $link_html ); } return $link_html; } add_filter( 'get_archives_link', 'wpse_62509_current_month_selector' ); A: As of WordPress 5.3, <a> elements generated by wp_get_archives (etc) for links to the current page have the attribute aria-current="page" added to them. If you just want to style the current page link differently, you can now target this with CSS, assuming you are happy for the styles to all be on the <a>: a[aria-current="page"] { color: red; } …or even just: a[aria-current] { color: red; }
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:423111", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62509" }
[ 0.032867431640625, 0.0013399124145507812, -0.056915283203125, -0.01373291015625, 0.041717529296875, -0.0601806640625, 0.06414794921875, 0.01416015625, 0.00013649463653564453, -0.01629638671875, 0.028167724609375, -0.044189453125, -0.0237579345703125, -0.0665283203125, 0.01354217529296875, -0.0201416015625, 0.0343017578125, -0.029327392578125, 0.006771087646484375, -0.00897979736328125, -0.0180816650390625, 0.017822265625, 0.00691986083984375, 0.039886474609375, 0.0135040283203125, -0.023651123046875, 0.06988525390625, 0.020904541015625, 0.01346588134765625, 0.003753662109375, 0.019500732421875, -0.03253173828125, 0.03643798828125, -0.007251739501953125, 0.002834320068359375, 0.02593994140625, 0.027557373046875, -0.0084381103515625, 0.0085906982421875, 0.0115966796875, 0.015350341796875, -0.01541900634765625, -0.06610107421875, -0.04595947265625, -0.0379638671875, -0.023895263671875, 0.00771331787109375, -0.004085540771484375, -0.00577545166015625, 0.019989013671875, 0.041107177734375, 0.0262603759765625, 0.041534423828125, -0.0169677734375, -0.00817108154296875, 0.0172882080078125, -0.028900146484375, 0.0281829833984375, 0.026458740234375, -0.0015153884887695312, -0.0194854736328125, 0.005046844482421875, 0.004573822021484375, -0.0161590576171875, 0.005664825439453125, 0.00705718994140625, 0.0372314453125, 0.0192108154296875, -0.029296875, 0.002685546875, 0.01203155517578125, -0.01261138916015625, -0.002902984619140625, -0.03143310546875, 0.00174713134765625, 0.01363372802734375, -0.02606201171875, -0.016845703125, 0.0186614990234375, 0.01097869873046875, 0.0277557373046875, 0.029388427734375, -0.06378173828125, 0.0255279541015625, 0.005687713623046875, 0.0238494873046875, -0.007083892822265625, -0.045440673828125, -0.024993896484375, -0.0158538818359375, -0.025421142578125, -0.026397705078125, -0.013671875, -0.00395965576171875, -0.021514892578125, -0.039520263671875, 0.025238037109375, 0.10003662109375, -0.029876708984375, -0.00835418701171875, -0.0257568359375, -0.0103759765625, -0.03564453125, -0.03558349609375, 0.00435638427734375, 0.03973388671875, -0.008819580078125, 0.0499267578125, 0.0701904296875, 0.011383056640625, 0.0193634033203125, 0.0238037109375, -0.01812744140625, -0.047607421875, 0.00238800048828125, 0.031097412109375, -0.0194244384765625, -0.01824951171875, 0.01024627685546875, -0.032257080078125, 0.021331787109375, 0.0253448486328125, 0.01180267333984375, -0.0288848876953125, 0.0018663406372070312, 0.01122283935546875, -0.0279541015625, -0.039581298828125, 0.053131103515625, 0.0330810546875, -0.022796630859375, -0.0025882720947265625, -0.015655517578125, -0.01666259765625, -0.01323699951171875, -0.0187835693359375, 0.08050537109375, -0.038299560546875, 0.0005660057067871094, 0.02825927734375, 0.01030731201171875, -0.0240325927734375, -0.043121337890625, 0.0082244873046875, -0.001659393310546875, 0.004833221435546875, 0.007625579833984375, 0.0068511962890625, 0.0224151611328125, -0.0171661376953125, -0.02886962890625, -0.0021305084228515625, 0.01174163818359375, 0.0249176025390625, -0.0161285400390625, -0.01065826416015625, 0.0411376953125, -0.025726318359375, -0.006145477294921875, -0.0517578125, 0.03277587890625, -0.0080718994140625, -0.032012939453125, -0.0160675048828125, -0.047119140625, 0.005039215087890625, -0.0245513916015625, -0.00601959228515625, 0.01558685302734375, -0.012298583984375, 0.036376953125, -0.0193023681640625, 0.04034423828125, 0.00939178466796875, -0.0194244384765625, 0.006366729736328125, 0.0030956268310546875, 0.0215606689453125, 0.006103515625, 0.006778717041015625, -0.0282440185546875, -0.039276123046875, 0.04827880859375, -0.0294647216796875, -0.0157928466796875, -0.0208282470703125, 0.02850341796875, -0.002796173095703125, -0.0019512176513671875, 0.0251007080078125, 0.046722412109375, 0.03424072265625, -0.05072021484375, -0.0275726318359375, 0.0222930908203125, 0.01081085205078125, 0.0204010009765625, -0.0019016265869140625, 0.018402099609375, 0.0012531280517578125, 0.0215911865234375, 0.02142333984375, 0.01177978515625, 0.0026092529296875, -0.044708251953125, 0.049591064453125, -0.019683837890625, 0.0482177734375, -0.023223876953125, -0.0076446533203125, 0.020843505859375, -0.013916015625, -0.006732940673828125, -0.0168914794921875, -0.01181793212890625, 0.031036376953125, 0.002452850341796875, -0.007389068603515625, -0.01739501953125, -0.013519287109375, -0.0067291259765625, -0.01308441162109375, -0.01467132568359375, 0.03656005859375, 0.036163330078125, -0.0009899139404296875, -0.03192138671875, -0.0304412841796875, 0.0146026611328125, -0.0054779052734375, -0.047637939453125, 0.05267333984375, 0.0254669189453125, 0.08026123046875, -0.00966644287109375, -0.01593017578125, 0.005107879638671875, -0.049102783203125, 0.027008056640625, 0.031951904296875, 0.036895751953125, 0.03094482421875, 0.010406494140625, -0.00933837890625, 0.0799560546875, -0.00991058349609375, 0.0310211181640625, -0.040618896484375, -0.00534820556640625, 0.024688720703125, 0.01904296875, -0.0006990432739257812, -0.0048675537109375, 0.029449462890625, 0.015869140625, 0.0129547119140625, 0.0202789306640625, -0.0108642578125, -0.004810333251953125, 0.03021240234375, 0.0039215087890625, 0.02130126953125, -0.0202178955078125, 0.0142364501953125, 0.0240325927734375, 0.012542724609375, 0.0288238525390625, 0.020538330078125, 0.0091552734375, 0.0006299018859863281, 0.00147247314453125, -0.033905029296875, 0.0079803466796875, 0.04571533203125, 0.007564544677734375, -0.014434814453125, 0.0012407302856445312, -0.0262908935546875, 0.0006513595581054688, 0.0137939453125, -0.00144195556640625, 0.051849365234375, 0.035858154296875, -0.003665924072265625, -0.0216064453125, -0.03302001953125, 0.03045654296875, -0.0018987655639648438, -0.0126190185546875, -0.00716400146484375, 0.035430908203125, -0.0092926025390625, -0.048370361328125, 0.0281524658203125, 0.034912109375, -0.0218963623046875, 0.0292816162109375, 0.028778076171875, 0.0066680908203125, 0.01105499267578125, 0.0186614990234375, 0.0235748291015625, -0.016693115234375, 0.01511383056640625, -0.01520538330078125, -0.050537109375, -0.030487060546875, 0.0067596435546875, -0.0117645263671875, -0.003307342529296875, -0.0478515625, 0.061065673828125, 0.00623321533203125, 0.00267791748046875, -0.03125, -0.046417236328125, -0.04302978515625, -0.016021728515625, -0.10174560546875, -0.04998779296875, 0.080322265625, -0.0953369140625, 0.0171356201171875, 0.0198974609375, -0.07208251953125, -0.048370361328125, 0.08551025390625, 0.00010854005813598633, 0.01432037353515625, -0.0055084228515625, -0.03289794921875, -0.00658416748046875, -0.056610107421875, 0.0125274658203125, 0.0005621910095214844, 0.001529693603515625, -0.0158843994140625, 0.1007080078125, -0.0011129379272460938, -0.07275390625, -0.044525146484375, 0.0272216796875, -0.01523590087890625, 0.00844573974609375, 0.0155792236328125, 0.00867462158203125, -0.0164794921875, 0.01061248779296875, 0.01045989990234375, 0.032073974609375, -0.03741455078125, -0.00701904296875, -0.015289306640625, 0.0249176025390625, 0.0167694091796875, 0.044586181640625, 0.0283355712890625, 0.06622314453125, 0.06085205078125, 0.00982666015625, -0.04364013671875, -0.0158843994140625, -0.057403564453125, 0.0245819091796875, 0.0121612548828125, 0.01047515869140625, 0.0009565353393554688, 0.0184326171875, -0.021820068359375, -0.0125579833984375, 0.04437255859375, -0.06658935546875, 0.09814453125, 0.005809783935546875, -0.0305633544921875, -0.02679443359375, 0.04144287109375, -0.015960693359375, 0.006378173828125, 0.0214996337890625, 0.006999969482421875, 0.00963592529296875, -0.043365478515625, -0.01580810546875, -0.025054931640625, 0.049102783203125, -0.00751495361328125, 0.0037059783935546875, -0.0247039794921875, -0.027984619140625, 0.0031490325927734375, 0.06365966796875, -0.037384033203125, -0.052398681640625, 0.028106689453125, 0.04327392578125, -0.0026340484619140625, -0.0665283203125, 0.0121917724609375, -0.04400634765625, -0.1160888671875, -0.00217437744140625, -0.03802490234375, -0.00846099853515625, -0.001285552978515625, -0.018157958984375, -0.05242919921875, -0.0640869140625, 0.04071044921875, -0.0168304443359375, -0.02349853515625, 0.02752685546875, -0.0469970703125, -0.004764556884765625, -0.0347900390625, 0.01044464111328125, -0.053863525390625, -0.01094818115234375, -0.0279388427734375, 0.059326171875, 0.0389404296875, -0.01354217529296875, -0.0129241943359375, 0.044647216796875, 0.022430419921875, -0.00916290283203125, 0.016143798828125, -0.0021839141845703125, 0.041717529296875, 0.0270538330078125, 0.0122222900390625, -0.00958251953125, 0.007053375244140625, -0.021942138671875, -0.0430908203125, 0.00949859619140625, -0.037689208984375, 0.04290771484375, -0.02264404296875, -0.01544952392578125, -0.043853759765625, -0.019866943359375, 0.0197296142578125, 0.0242919921875, -0.01277923583984375, 0.0292205810546875, 0.009063720703125, -0.04083251953125, 0.0227813720703125, 0.041748046875, -0.0318603515625, -0.0013666152954101562, 0.02825927734375, 0.03558349609375, -0.0297088623046875, 0.0129547119140625, 0.05316162109375, 0.0006442070007324219, -0.049896240234375, 0.10565185546875, 0.025726318359375, 0.0009450912475585938, 0.08538818359375, -0.04052734375, -0.004695892333984375, -0.02117919921875, 0.029541015625, 0.0252532958984375, -0.0083770751953125, 0.0084381103515625, 0.01371002197265625, 0.01314544677734375, 0.01763916015625, 0.0002429485321044922, -0.04339599609375, 0.0182037353515625, 0.04034423828125, -0.0032558441162109375, 0.00017201900482177734, -0.0120086669921875, -0.01397705078125, -0.005397796630859375, -0.012237548828125, 0.03753662109375, 0.0271148681640625, -0.00438690185546875, -0.0006699562072753906, 0.0245208740234375, -0.0015745162963867188, -0.054962158203125, -0.01947021484375, -0.0251922607421875, 0.0276947021484375, -0.056121826171875, -0.005428314208984375, -0.0158843994140625, 0.00965118408203125, -0.01212310791015625, -0.004444122314453125, -0.035552978515625, -0.00679779052734375, 0.0058441162109375, 0.000705718994140625, 0.0206756591796875, -0.06585693359375, 0.0914306640625, 0.032867431640625, -0.0262908935546875, -0.01507568359375, -0.1015625, -0.031982421875, -0.089111328125, 0.041259765625, 0.0134124755859375, 0.01317596435546875, 0.03814697265625, 0.05572509765625, 0.04241943359375, 0.045013427734375, -0.036346435546875, -0.0183563232421875, -0.033935546875, 0.0693359375, 0.0212554931640625, -0.04962158203125, 0.0264739990234375, 0.035003662109375, 0.032073974609375, -0.0235748291015625, -0.01168060302734375, 0.0242156982421875, 0.0101165771484375, 0.021881103515625, 0.0005693435668945312, 0.017822265625, 0.030670166015625, -0.01629638671875, 0.031463623046875, 0.0193939208984375, -0.00713348388671875, -0.0423583984375, -0.007785797119140625, 0.0557861328125, 0.022491455078125, -0.04290771484375, 0.03436279296875, 0.007053375244140625, 0.020477294921875, 0.0423583984375, -0.053863525390625, 0.036224365234375, 0.0267333984375, -0.00875091552734375, -0.0214691162109375, 0.0178985595703125, -0.043060302734375, 0.00789642333984375, -0.0423583984375, -0.0250396728515625, 0.07489013671875, -0.01024627685546875, 0.051483154296875, -0.050933837890625, -0.01392364501953125, -0.0572509765625, -0.00812530517578125, 0.043548583984375, 0.035614013671875, -0.06854248046875, -0.0026416778564453125, -0.0648193359375, -0.020751953125, -0.06402587890625, -0.05413818359375, -0.035858154296875, 0.01311492919921875, 0.005054473876953125, 0.01314544677734375, 0.02691650390625, 0.0018711090087890625, -0.002109527587890625, 0.031829833984375, 0.0182952880859375, 0.05694580078125, -0.0021114349365234375, 0.08148193359375, 0.0251312255859375, 0.035552978515625, 0.0274658203125, 0.0276947021484375, -0.052490234375, 0.0008134841918945312, 0.019256591796875, -0.032196044921875, -0.028350830078125, -0.0191802978515625, -0.04681396484375, -0.0006413459777832031, 0.04681396484375, -0.007549285888671875, -0.035919189453125, -0.01189422607421875, -0.0101318359375, -0.0293426513671875, 0.044342041015625, 0.0227508544921875, 0.0007672309875488281, -0.02398681640625, -0.0136871337890625, 0.053924560546875, -0.01407623291015625, 0.0011892318725585938, 0.011810302734375, -0.032440185546875, 0.017547607421875, 0.048919677734375, 0.004180908203125, 0.03924560546875, 0.0662841796875, -0.004550933837890625, 0.044921875, 0.004718780517578125, 0.0187835693359375, 0.0101165771484375, -0.013946533203125, 0.02557373046875, 0.033599853515625, 0.061126708984375, -0.01044464111328125, 0.0224151611328125, 0.054534912109375, -0.00537872314453125, 0.0167999267578125, -0.0014829635620117188, 0.033050537109375, -0.011932373046875, 0.01381683349609375, 0.0187225341796875, -0.021697998046875, 0.01531982421875, 0.02587890625, -0.035125732421875, -0.043487548828125, 0.0258331298828125, -0.032745361328125, -0.010467529296875, 0.0181884765625, 0.007415771484375, -0.00283050537109375, -0.006885528564453125, 0.049041748046875, 0.0175628662109375, -0.030029296875, -0.032073974609375, 0.01288604736328125, -0.013946533203125, -0.004024505615234375, 0.0079803466796875, -0.01953125, -0.0119781494140625, -0.047821044921875, -0.00235748291015625, -0.0106658935546875, -0.0196990966796875, -0.0163116455078125, -0.0104827880859375, 0.0187225341796875, 0.0207672119140625, -0.016876220703125, -0.005207061767578125, -0.005390167236328125, -0.006500244140625, -0.037445068359375, -0.035888671875, 0.014678955078125, 0.034942626953125, -0.03680419921875, 0.034027099609375, -0.0091094970703125, -0.035003662109375, 0.005901336669921875, -0.0265960693359375, 0.08349609375, -0.035400390625, -0.0263671875, 0.01995849609375, -0.0238800048828125, -0.019012451171875, 0.0024433135986328125, 0.01439666748046875, -0.033233642578125, -0.004283905029296875, 0.005641937255859375, -0.016448974609375, 0.01044464111328125, -0.01361083984375, -0.004619598388671875, 0.04901123046875, -0.04132080078125, -0.0035114288330078125, 0.046722412109375, 0.0227813720703125, -0.027313232421875, 0.002532958984375, -0.036285400390625, 0.04730224609375, 0.01041412353515625, -0.0010118484497070312, -0.034698486328125, -0.007442474365234375, -0.01922607421875, 0.0106353759765625, 0.0294952392578125, -0.00514984130859375, 0.00884246826171875, -0.008331298828125, 0.06561279296875, 0.061248779296875, 0.01300811767578125, -0.00006365776062011719, -0.01384735107421875, 0.018035888671875, -0.003204345703125, -0.0614013671875, 0.01141357421875, -0.0267333984375, -0.01953125, 0.039764404296875, 0.005126953125, 0.00501251220703125, 0.005886077880859375, 0.0240631103515625, -0.0462646484375, 0.00798797607421875, 0.040283203125, -0.0128326416015625, -0.00334930419921875, 0.06243896484375, 0.056640625, -0.060333251953125, -0.053741455078125, -0.03778076171875, 0.043853759765625, 0.0073699951171875, 0.01273345947265625, 0.035491943359375, 0.02191162109375, 0.005329132080078125, 0.0004897117614746094, 0.00136566162109375, -0.0159912109375, 0.00013828277587890625, 0.04364013671875, 0.035736083984375, 0.016510009765625, -0.017303466796875, 0.005794525146484375, 0.041839599609375, 0.0640869140625, -0.0389404296875, -0.05255126953125, 0.02056884765625, -0.0058135986328125, 0.0092315673828125, 0.0350341796875, 0.034698486328125, -0.03753662109375, -0.00616455078125, -0.0201873779296875, -0.01467132568359375, 0.01434326171875, 0.0178375244140625, 0.00034117698669433594, -0.01108551025390625, -0.0067138671875, -0.020843505859375, -0.05694580078125, 0.017852783203125, 0.02020263671875, 0.036041259765625, 0.0104522705078125, 0.05877685546875, 0.01495361328125, -0.0174713134765625, 0.006427764892578125, 0.031524658203125, -0.0113372802734375, -0.021148681640625, 0.0191497802734375, -0.00849151611328125, -0.01297760009765625, 0.01419830322265625, 0.046722412109375, -0.0357666015625, -0.0135498046875, -0.0318603515625, -0.0204925537109375, -0.00026535987854003906, -0.0401611328125, -0.0105438232421875, -0.00208282470703125, -0.022613525390625, 0.0233154296875, 0.031585693359375, -0.004367828369140625, 0.0171966552734375, -0.03564453125, 0.08056640625, -0.022613525390625, 0.018707275390625, -0.0002982616424560547, 0.0159912109375, 0.0111236572265625, -0.0126800537109375, -0.0304107666015625, -0.01558685302734375, -0.07061767578125, -0.01168060302734375, -0.027923583984375, 0.0129241943359375, 0.0186767578125, 0.0347900390625, -0.0018291473388671875, 0.02398681640625, 0.018798828125, -0.031585693359375, 0.0119171142578125, 0.01300048828125, 0.026885986328125, 0.0280914306640625, 0.0048980712890625, 0.0195159912109375, -0.001399993896484375, 0.0005030632019042969, 0.0053558349609375, 0.02471923828125, 0.0084228515625, -0.009857177734375, 0.00128936767578125, 0.0164337158203125, 0.00024819374084472656, 0.0267791748046875, -0.04498291015625, -0.025604248046875, 0.0677490234375, -0.011962890625, -0.0028438568115234375, -0.00920867919921875, -0.00780487060546875, 0.00852203369140625, 0.059906005859375, 0.01025390625, 0.00946807861328125, -0.005924224853515625, 0.031402587890625, -0.019927978515625, 0.01348114013671875, -0.029022216796875, -0.00975799560546875, -0.001644134521484375, -0.032745361328125, 0.031097412109375, 0.02081298828125, 0.036346435546875, 0.014251708984375, 0.0175018310546875, -0.0120697021484375, 0.016204833984375, 0.0195465087890625, 0.0212249755859375, 0.025146484375, -0.01007080078125, 0.02880859375, -0.00428009033203125, -0.023223876953125, 0.018707275390625, -0.007083892822265625, -0.003387451171875, -0.00957489013671875, 0.01739501953125, 0.027191162109375, 0.0159454345703125, 0.041229248046875, 0.0083465576171875, 0.01087188720703125, 0.01531219482421875, -0.0134124755859375, -0.00943756103515625, -0.058319091796875, -0.0174407958984375, -0.0083160400390625, -0.0218048095703125, 0.0168609619140625, 0.002899169921875, -0.04718017578125, -0.0112762451171875, 0.0003509521484375, 0.025115966796875, 0.00554656982421875, -0.05853271484375, 0.03692626953125, -0.00731658935546875, 0.044586181640625, -0.012481689453125, -0.01166534423828125, 0.00046515464782714844, 0.00815582275390625, -0.016815185546875, -0.00710296630859375, -0.033355712890625, 0.0191650390625, -0.0181884765625, -0.005859375, -0.00704193115234375, 0.0068206787109375, -0.0010805130004882812, 0.00972747802734375, -0.023162841796875, 0.044036865234375, -0.05474853515625, -0.003650665283203125, 0.03717041015625, -0.001758575439453125, -0.029327392578125, -0.06732177734375, 0.006816864013671875, -0.050994873046875, 0.022247314453125, 0.048980712890625, -0.053741455078125, -0.020111083984375, -0.0416259765625, -0.08740234375, 0.040985107421875, 0.01050567626953125, -0.053497314453125, -0.00666046142578125, 0.06121826171875, 0.00563812255859375, -0.0364990234375, 0.00568389892578125, -0.039764404296875, 0.0169677734375, -0.015350341796875, 0.019561767578125, 0.078369140625, -0.031768798828125, 0.03778076171875, -0.07452392578125, 0.00856781005859375, -0.032257080078125, 0.052825927734375, -0.04644775390625, 0.01812744140625, -0.000621795654296875, 0.025360107421875, -0.02569580078125, 0.0016813278198242188, 0.00897979736328125, 0.04364013671875, 0.0005197525024414062, -0.04742431640625, -0.06378173828125, -0.03985595703125, 0.07269287109375, 0.0343017578125, 0.01447296142578125, -0.00623321533203125, -0.006198883056640625, 0.0180511474609375, -0.0205230712890625, -0.0286407470703125, 0.0238037109375, -0.07025146484375, -0.041473388671875, -0.005779266357421875, 0.00492095947265625, 0.00007534027099609375, -0.01190185546875, -0.0247802734375, -0.0164031982421875, -0.016845703125, 0.00665283203125, -0.0428466796875, 0.0272369384765625, 0.046356201171875, -0.043487548828125, -0.01029205322265625, 0.00766754150390625, -0.0010099411010742188, 0.0210418701171875, -0.00029277801513671875, -0.0254364013671875, 0.01995849609375, -0.01187896728515625, -0.01297760009765625, 0.02606201171875, 0.015716552734375, 0.036346435546875, 0.0106353759765625, 0.0207061767578125, -0.020599365234375, -0.01171112060546875, -0.0289154052734375, 0.0224456787109375, -0.039581298828125, -0.053131103515625, 0.00841522216796875, 0.01280975341796875, 0.0537109375, 0.004833221435546875, 0.040679931640625, -0.037261962890625, -0.02728271484375, -0.0035991668701171875, -0.06048583984375, -0.023101806640625, 0.01116943359375, -0.04583740234375, -0.07666015625, 0.03173828125, -0.05322265625, 0.0227203369140625, 0.0182037353515625 ]
e71719e75c8bd72ef6aaf2196d30705e5f160670
Wordpress Stackexchange Q: How to use wp_schedule_event in a class? This is first time that I tried the OOP method of writing an application. I don't quite understand it yet. Currently I have this cron hook: if( !wp_next_scheduled( 'my_cron_hook' ) ) { //schedule the event to run daily wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_cron_hook' ); } add_action('my_cron_hook',array($this,'do_daily_job')); It seems that it can't use if within a class directly. Do I need to put the entire code above into the __construct() function? Also, I found this in WordPress wp_schedule_event documentation. function my_activation() { if ( !wp_next_scheduled( 'my_hourly_event' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'my_hourly_event'); } } add_action('wp', 'my_activation'); What dose 'wp' hook here means? I have never seen this in the hook API. Should I wrapped my cron code (above) in a function and put this 'wp' action in the __construct() function, like this? function __construct() { add_action('wp', array($this,'my_activation')); } function my_activation() { if( !wp_next_scheduled( 'my_cron_hook' ) ) { //schedule the event to run daily wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_cron_hook' ); } add_action('my_cron_hook',array($this,'do_daily_job')); } A: Add an action outside your class definition: add_action('my_unique_plugin_event_hook', array($this,'hook')); And then use this in your event: wp_schedule_event(time(), 'daily', 'my_unique_plugin_event_hook');
Q: How to use wp_schedule_event in a class? This is first time that I tried the OOP method of writing an application. I don't quite understand it yet. Currently I have this cron hook: if( !wp_next_scheduled( 'my_cron_hook' ) ) { //schedule the event to run daily wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_cron_hook' ); } add_action('my_cron_hook',array($this,'do_daily_job')); It seems that it can't use if within a class directly. Do I need to put the entire code above into the __construct() function? Also, I found this in WordPress wp_schedule_event documentation. function my_activation() { if ( !wp_next_scheduled( 'my_hourly_event' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'my_hourly_event'); } } add_action('wp', 'my_activation'); What dose 'wp' hook here means? I have never seen this in the hook API. Should I wrapped my cron code (above) in a function and put this 'wp' action in the __construct() function, like this? function __construct() { add_action('wp', array($this,'my_activation')); } function my_activation() { if( !wp_next_scheduled( 'my_cron_hook' ) ) { //schedule the event to run daily wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_cron_hook' ); } add_action('my_cron_hook',array($this,'do_daily_job')); } A: Add an action outside your class definition: add_action('my_unique_plugin_event_hook', array($this,'hook')); And then use this in your event: wp_schedule_event(time(), 'daily', 'my_unique_plugin_event_hook'); A: You could create a function in your class and call the hook in your constructor. The code below which is similar to what you showed. If you create this into a plugin, you could instantiate your class upon activation and create your cron job. In addition to the code below, here's a good link on Cron Jobs in PHP Managing Cron Jobs in PHP class My_Class { function __construct() { //Register ajax scripts add_action( 'admin_enqueue_scripts', array( $this, 'register_ajax_scripts' ) ); } /** * Registers and enqueues admin-specific JavaScript. */ public function register_ajax_scripts() { wp_enqueue_script ('test-ajax' , plugins_url( 'myPlugin/test-ajax.js' )); } A: * *PHP will throw a syntax error if you try to put an if-statement directly inside a class - the only things that can go between those curly brackets are variable declarations (eg public $foo) and functions (eg function bar(){ /*stuff*/}). *It's absolutely fine to set the job from a class constructor - or indeed any other function in the class. Just make sure you actually instantiate the class (and call the necessary function, if it's not in the constructor) in time for the hook to be added. *To put it briefly, WP is a hook that fires when the whole thing is loaded, all the posts fetched etc, but before templates are loaded. Some will argue that the best way to register a cron job is to attach it to an activation hook. This is a hook that's only fired when the plugin is first activated. Otherwise you run the risk of registering the same job more than once, which has obvious drawbacks. That's what the code from the codex you include is for - to check it hasn't already been scheduled. That's one way of doing it, this is another. Before the main class begin (eg in your base plugin.php file with the header info at the top), your code should look something like register_activation_hook( __FILE__, '62565_activate'); function 62565_activate() { wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_cron_hook' ); } Obviously if you de- and re-activate the plugin this may cause trouble.
wordpress
{ "language": "en", "length": 538, "provenance": "stackexchange_00019.jsonl.gz:423132", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62565" }
[ 0.08013916015625, 0.035858154296875, -0.044586181640625, -0.0518798828125, 0.07293701171875, -0.053497314453125, 0.0430908203125, -0.0238189697265625, -0.0308074951171875, 0.0030384063720703125, -0.02703857421875, 0.0389404296875, -0.01367950439453125, -0.0205230712890625, 0.017913818359375, -0.0196990966796875, 0.0384521484375, -0.0196685791015625, 0.00583648681640625, -0.01250457763671875, 0.00698089599609375, 0.027252197265625, -0.01593017578125, 0.0771484375, 0.051910400390625, -0.032196044921875, 0.05047607421875, -0.010894775390625, 0.04351806640625, 0.00939178466796875, 0.0267486572265625, -0.0518798828125, 0.0176849365234375, -0.0016355514526367188, -0.00014984607696533203, 0.0017538070678710938, 0.004451751708984375, -0.004146575927734375, 0.0019502639770507812, 0.01947021484375, 0.036468505859375, -0.004199981689453125, -0.011993408203125, 0.01256561279296875, -0.02508544921875, -0.053436279296875, 0.052642822265625, -0.01123046875, -0.004451751708984375, -0.01013946533203125, 0.029541015625, 0.004375457763671875, 0.052001953125, 0.01165771484375, -0.0205841064453125, -0.00795745849609375, -0.0655517578125, 0.034820556640625, 0.01016998291015625, 0.03704833984375, 0.025115966796875, 0.0194091796875, -0.00616455078125, -0.01300048828125, 0.01369476318359375, -0.00992584228515625, -0.0223388671875, 0.0253143310546875, -0.038818359375, 0.0122222900390625, 0.035980224609375, -0.041107177734375, -0.0274200439453125, 0.0201568603515625, -0.03704833984375, -0.0267791748046875, 0.0229339599609375, -0.028900146484375, 0.012054443359375, 0.023956298828125, 0.0100250244140625, 0.02642822265625, -0.00286865234375, -0.0032405853271484375, -0.00791168212890625, 0.002910614013671875, -0.0202178955078125, -0.01385498046875, -0.0255126953125, -0.00807952880859375, -0.0289764404296875, 0.0190582275390625, 0.0027675628662109375, -0.0482177734375, -0.0282135009765625, -0.04046630859375, 0.0144805908203125, 0.0230255126953125, -0.036102294921875, 0.01137542724609375, -0.00873565673828125, -0.022674560546875, 0.026611328125, -0.0284271240234375, -0.01424407958984375, 0.08087158203125, 0.042449951171875, 0.04522705078125, -0.023681640625, -0.0001819133758544922, -0.004238128662109375, -0.061279296875, 0.0205078125, -0.01293182373046875, -0.002155303955078125, -0.041290283203125, -0.028411865234375, 0.046905517578125, 0.0284881591796875, -0.00882720947265625, 0.00504302978515625, 0.0015249252319335938, 0.0106353759765625, -0.00597381591796875, -0.01140594482421875, -0.006633758544921875, -0.0287017822265625, -0.01739501953125, 0.0303955078125, -0.00788116455078125, -0.006683349609375, 0.0208587646484375, 0.02960205078125, -0.01338958740234375, -0.022796630859375, 0.00360870361328125, 0.0300750732421875, -0.004909515380859375, 0.0025615692138671875, -0.0037975311279296875, 0.0163116455078125, -0.0269622802734375, -0.020263671875, 0.0022907257080078125, 0.040496826171875, 0.01959228515625, -0.00013530254364013672, 0.0011758804321289062, 0.019500732421875, 0.0132904052734375, 0.00197601318359375, -0.04266357421875, 0.0006580352783203125, 0.0244293212890625, 0.039337158203125, 0.029144287109375, 0.040191650390625, -0.0117034912109375, 0.0026683807373046875, 0.004425048828125, 0.005832672119140625, -0.02105712890625, -0.01519775390625, -0.032318115234375, -0.044586181640625, 0.03076171875, -0.038177490234375, 0.0028896331787109375, 0.03173828125, -0.0215301513671875, 0.0247344970703125, -0.021392822265625, 0.03631591796875, 0.0091705322265625, -0.00029015541076660156, 0.022613525390625, 0.015899658203125, -0.005016326904296875, 0.040496826171875, 0.01142120361328125, -0.040069580078125, -0.0311126708984375, 0.06396484375, -0.05279541015625, -0.0257720947265625, 0.00878143310546875, 0.0182037353515625, 0.045562744140625, 0.0012178421020507812, 0.033477783203125, 0.006015777587890625, -0.01155853271484375, -0.040679931640625, 0.0028171539306640625, -0.028106689453125, 0.022552490234375, -0.0095367431640625, 0.0267791748046875, -0.01519012451171875, -0.005405426025390625, 0.00336456298828125, 0.0240936279296875, -0.01470947265625, -0.00799560546875, -0.09368896484375, 0.04486083984375, -0.037384033203125, 0.057281494140625, -0.0028858184814453125, 0.003559112548828125, -0.0106658935546875, -0.020111083984375, 0.02410888671875, -0.07659912109375, -0.01500701904296875, 0.00959014892578125, -0.042236328125, 0.03350830078125, -0.006908416748046875, 0.0254058837890625, 0.01055908203125, -0.04034423828125, 0.00716400146484375, -0.0224456787109375, 0.042205810546875, -0.0273284912109375, -0.019195556640625, -0.0361328125, -0.01690673828125, 0.0026912689208984375, -0.0679931640625, 0.042388916015625, 0.028656005859375, 0.04034423828125, -0.002166748046875, 0.0220184326171875, 0.044189453125, -0.007488250732421875, -0.0089111328125, 0.014190673828125, 0.0423583984375, 0.04766845703125, 0.01898193359375, 0.0138092041015625, 0.047119140625, -0.023956298828125, 0.02935791015625, -0.0245208740234375, -0.03466796875, -0.01293182373046875, -0.004245758056640625, 0.0033893585205078125, 0.022705078125, -0.028839111328125, -0.0294952392578125, 0.0401611328125, 0.0045318603515625, -0.04266357421875, 0.0245513916015625, -0.004192352294921875, 0.0225830078125, -0.054351806640625, -0.062744140625, 0.008636474609375, -0.0343017578125, -0.00783538818359375, -0.01404571533203125, -0.002986907958984375, -0.0013332366943359375, -0.02288818359375, 0.03192138671875, -0.0121002197265625, 0.002071380615234375, 0.041961669921875, -0.0242462158203125, 0.0033016204833984375, -0.0212554931640625, 0.01317596435546875, -0.032623291015625, 0.015777587890625, -0.016204833984375, 0.03936767578125, -0.0212554931640625, -0.0255584716796875, -0.030914306640625, -0.04766845703125, -0.00402069091796875, -0.0140533447265625, 0.0030727386474609375, -0.020782470703125, 0.030670166015625, 0.027740478515625, -0.030517578125, 0.044921875, -0.0217437744140625, -0.0266571044921875, -0.052093505859375, 0.00804901123046875, 0.045379638671875, -0.0687255859375, -0.036834716796875, 0.0209197998046875, -0.050384521484375, 0.0281982421875, 0.004852294921875, -0.0467529296875, -0.0008044242858886719, 0.01678466796875, -0.01401519775390625, 0.0240631103515625, -0.09716796875, 0.006389617919921875, 0.034515380859375, 0.1192626953125, -0.021697998046875, -0.05938720703125, 0.00850677490234375, 0.043243408203125, -0.0396728515625, -0.07720947265625, -0.040679931640625, -0.044891357421875, 0.0307464599609375, -0.018585205078125, -0.0070953369140625, -0.01549530029296875, -0.006633758544921875, 0.01617431640625, -0.06298828125, 0.0265655517578125, 0.044677734375, -0.01001739501953125, -0.0165557861328125, 0.0005354881286621094, 0.0060882568359375, 0.024017333984375, 0.00630950927734375, 0.0625, 0.00762176513671875, -0.042755126953125, 0.016265869140625, 0.0213165283203125, -0.022125244140625, 0.02593994140625, -0.00540924072265625, -0.024871826171875, 0.0196990966796875, -0.01451873779296875, 0.02886962890625, 0.02996826171875, -0.002437591552734375, -0.00514984130859375, 0.003467559814453125, -0.0177459716796875, 0.0183868408203125, 0.07464599609375, -0.011962890625, -0.0162811279296875, 0.05914306640625, -0.0340576171875, 0.038604736328125, -0.017852783203125, -0.01140594482421875, -0.01922607421875, -0.0098419189453125, -0.007373809814453125, 0.0210113525390625, -0.037689208984375, -0.0277862548828125, 0.004650115966796875, 0.049652099609375, 0.0016326904296875, 0.0021610260009765625, -0.040008544921875, -0.057342529296875, -0.0272674560546875, 0.0276031494140625, -0.003192901611328125, 0.01495361328125, -0.0054779052734375, -0.00563812255859375, -0.055023193359375, 0.0292816162109375, -0.10467529296875, -0.03216552734375, 0.02569580078125, -0.0237884521484375, -0.00902557373046875, 0.0051116943359375, -0.01032257080078125, 0.038726806640625, 0.058807373046875, 0.01470184326171875, -0.03692626953125, -0.01010894775390625, 0.0250244140625, -0.08837890625, -0.034912109375, -0.004650115966796875, 0.013336181640625, -0.08636474609375, 0.005767822265625, -0.0059051513671875, -0.0245819091796875, -0.018768310546875, 0.020751953125, -0.07342529296875, -0.047454833984375, 0.0021209716796875, 0.013214111328125, 0.005817413330078125, 0.0289764404296875, -0.028106689453125, 0.0296630859375, 0.0013971328735351562, -0.02496337890625, -0.07244873046875, -0.0211181640625, -0.04541015625, 0.0745849609375, 0.04949951171875, -0.0411376953125, -0.0014219284057617188, 0.05169677734375, 0.040557861328125, 0.0192718505859375, 0.017578125, -0.0330810546875, 0.0203857421875, 0.0134429931640625, 0.01016998291015625, -0.004100799560546875, 0.01145172119140625, -0.0004506111145019531, -0.048614501953125, 0.0238189697265625, -0.035125732421875, 0.003070831298828125, -0.0023059844970703125, -0.035125732421875, -0.01018524169921875, 0.0028057098388671875, 0.025115966796875, 0.035125732421875, -0.023223876953125, 0.0224151611328125, -0.0128173828125, -0.01438140869140625, 0.0576171875, -0.0251617431640625, -0.0101318359375, -0.01441192626953125, 0.07012939453125, 0.0166015625, -0.0306549072265625, 0.0250396728515625, 0.00930023193359375, 0.01033782958984375, -0.0008068084716796875, 0.0391845703125, -0.017578125, 0.005229949951171875, 0.0364990234375, -0.021636962890625, -0.0014801025390625, -0.023651123046875, 0.05206298828125, 0.01300048828125, 0.0065765380859375, 0.0009641647338867188, -0.005466461181640625, 0.010589599609375, 0.001476287841796875, -0.006275177001953125, -0.0229949951171875, 0.0394287109375, 0.043426513671875, -0.0408935546875, 0.058685302734375, -0.005401611328125, 0.004787445068359375, 0.0020313262939453125, -0.00533294677734375, 0.033843994140625, 0.038818359375, -0.008056640625, -0.0222015380859375, -0.01561737060546875, 0.0253143310546875, -0.0025615692138671875, 0.0011234283447265625, -0.022369384765625, 0.0235443115234375, 0.058319091796875, 0.01788330078125, -0.0214691162109375, -0.00390625, 0.0460205078125, 0.001995086669921875, -0.0173187255859375, -0.0205078125, -0.0017442703247070312, -0.0182647705078125, 0.01702880859375, -0.039886474609375, 0.058868408203125, 0.053619384765625, -0.03033447265625, -0.0255584716796875, -0.042572021484375, 0.0080413818359375, -0.064697265625, -0.01788330078125, 0.0135650634765625, -0.0127716064453125, 0.04119873046875, 0.0189361572265625, 0.05474853515625, 0.00005269050598144531, -0.038482666015625, 0.09014892578125, 0.07098388671875, 0.018524169921875, 0.0016937255859375, -0.020782470703125, -0.018341064453125, 0.0098876953125, -0.037872314453125, -0.02142333984375, -0.0034351348876953125, 0.025146484375, 0.02593994140625, 0.02532958984375, 0.01025390625, -0.0011205673217773438, 0.0004138946533203125, -0.036376953125, 0.007068634033203125, 0.0151214599609375, -0.0102081298828125, -0.019073486328125, 0.0222930908203125, 0.032073974609375, 0.031585693359375, -0.01282501220703125, 0.04644775390625, -0.016326904296875, 0.050048828125, -0.022247314453125, 0.041259765625, -0.0198211669921875, -0.0210418701171875, -0.0240325927734375, 0.00988006591796875, 0.0158843994140625, -0.040985107421875, -0.03985595703125, -0.005107879638671875, -0.0107574462890625, 0.02886962890625, -0.0296478271484375, 0.0171051025390625, -0.0548095703125, 0.0170135498046875, -0.121337890625, -0.007427215576171875, 0.06231689453125, 0.061248779296875, -0.07269287109375, -0.005615234375, -0.006351470947265625, 0.010711669921875, -0.058868408203125, -0.0511474609375, -0.036163330078125, 0.01280975341796875, -0.005100250244140625, 0.00820159912109375, -0.032470703125, -0.0242767333984375, 0.023345947265625, 0.0167999267578125, -0.006427764892578125, 0.01462554931640625, -0.0082855224609375, 0.08050537109375, 0.01433563232421875, 0.051239013671875, 0.025787353515625, 0.0423583984375, -0.0089111328125, -0.0255279541015625, -0.00916290283203125, -0.03411865234375, -0.022491455078125, 0.0037136077880859375, -0.0287933349609375, 0.037933349609375, 0.057281494140625, -0.01226806640625, 0.01155853271484375, -0.013275146484375, -0.00656890869140625, -0.0148773193359375, 0.039703369140625, -0.0238800048828125, -0.00417327880859375, 0.018157958984375, -0.028533935546875, 0.0137176513671875, -0.028656005859375, 0.0479736328125, 0.007625579833984375, -0.055816650390625, 0.00836944580078125, 0.0190582275390625, -0.045318603515625, 0.07568359375, 0.1025390625, 0.004947662353515625, 0.056732177734375, 0.00872039794921875, 0.00623321533203125, 0.02679443359375, 0.07421875, -0.0113525390625, -0.044219970703125, 0.049896240234375, 0.0009317398071289062, -0.0150146484375, -0.0076751708984375, -0.024627685546875, 0.0023250579833984375, 0.03790283203125, 0.0249786376953125, -0.051971435546875, 0.00574493408203125, -0.01337432861328125, -0.01450347900390625, 0.034942626953125, 0.01406097412109375, 0.00772857666015625, -0.037261962890625, 0.01490020751953125, -0.010223388671875, -0.0003440380096435547, -0.00021076202392578125, -0.00847625732421875, -0.0097198486328125, 0.00594329833984375, 0.018218994140625, 0.012725830078125, -0.0660400390625, 0.034515380859375, 0.024078369140625, 0.0153045654296875, -0.0362548828125, 0.0126953125, 0.01236724853515625, -0.0053863525390625, -0.02789306640625, 0.048828125, -0.003368377685546875, 0.0246734619140625, -0.017364501953125, -0.039642333984375, 0.0633544921875, 0.0148773193359375, 0.007114410400390625, -0.037628173828125, 0.00650787353515625, -0.00870513916015625, -0.050933837890625, -0.0171966552734375, 0.03692626953125, 0.047119140625, -0.06707763671875, 0.04058837890625, -0.0308837890625, -0.01131439208984375, 0.0175018310546875, -0.018768310546875, 0.0089263916015625, -0.0165252685546875, -0.0142364501953125, 0.00910186767578125, -0.04815673828125, 0.024993896484375, -0.01187896728515625, 0.034332275390625, -0.04638671875, -0.02783203125, -0.0024776458740234375, -0.03643798828125, -0.0184173583984375, -0.017364501953125, 0.0007348060607910156, 0.147216796875, 0.013916015625, -0.042449951171875, 0.01000213623046875, 0.07843017578125, -0.04217529296875, 0.0706787109375, -0.0225067138671875, 0.0312347412109375, -0.02880859375, 0.032135009765625, -0.0286865234375, 0.0016317367553710938, 0.01190948486328125, 0.0242767333984375, 0.034576416015625, 0.018096923828125, -0.02056884765625, -0.0033092498779296875, -0.005344390869140625, -0.004352569580078125, -0.0293426513671875, 0.043701171875, -0.002994537353515625, 0.023651123046875, 0.0206451416015625, -0.0261688232421875, 0.047149658203125, -0.04925537109375, -0.0180206298828125, 0.01308441162109375, -0.0149688720703125, -0.024078369140625, 0.0102081298828125, 0.0160980224609375, -0.0084686279296875, 0.004467010498046875, 0.00650787353515625, -0.0189971923828125, 0.00909423828125, 0.02960205078125, 0.033599853515625, -0.01073455810546875, -0.024322509765625, -0.02044677734375, 0.047149658203125, -0.01514434814453125, -0.006038665771484375, 0.0224761962890625, 0.01146697998046875, -0.0011882781982421875, -0.01537322998046875, -0.01103973388671875, 0.01146697998046875, -0.00014722347259521484, 0.01148223876953125, 0.039581298828125, 0.02557373046875, 0.0182037353515625, 0.0386962890625, 0.032958984375, 0.02642822265625, -0.036407470703125, -0.0255889892578125, -0.00229644775390625, 0.032928466796875, 0.036956787109375, 0.012176513671875, 0.06890869140625, -0.002391815185546875, 0.00211334228515625, 0.01953125, -0.0006327629089355469, 0.0037937164306640625, -0.01092529296875, 0.01392364501953125, 0.033172607421875, -0.0172882080078125, 0.01593017578125, -0.0295867919921875, -0.0003731250762939453, 0.022552490234375, 0.04730224609375, 0.001220703125, 0.03253173828125, 0.0156707763671875, -0.014801025390625, 0.0367431640625, 0.032501220703125, 0.0079193115234375, -0.05517578125, 0.0166015625, -0.05145263671875, -0.00151824951171875, 0.0073394775390625, 0.03472900390625, 0.0450439453125, 0.0278472900390625, 0.034881591796875, 0.05126953125, 0.0142669677734375, 0.0286712646484375, -0.007427215576171875, -0.038543701171875, -0.0093841552734375, -0.00565338134765625, -0.0182647705078125, -0.00415802001953125, 0.004680633544921875, 0.067626953125, -0.037353515625, -0.0157012939453125, 0.01169586181640625, -0.01534271240234375, -0.01439666748046875, 0.02764892578125, -0.0168609619140625, 0.0165557861328125, -0.0015039443969726562, -0.0430908203125, 0.00989532470703125, -0.039581298828125, -0.079833984375, 0.0394287109375, 0.047576904296875, -0.0301666259765625, 0.0273284912109375, 0.03240966796875, 0.0296173095703125, 0.0014448165893554688, -0.00984954833984375, -0.0222625732421875, -0.046478271484375, 0.052093505859375, -0.007389068603515625, -0.0029621124267578125, -0.016204833984375, -0.00476837158203125, 0.043670654296875, 0.01470184326171875, 0.02264404296875, -0.0002046823501586914, 0.033538818359375, 0.01531219482421875, -0.0118865966796875, 0.021514892578125, 0.0308074951171875, -0.032806396484375, 0.00844573974609375, 0.016448974609375, -0.0267333984375, -0.052947998046875, -0.0166778564453125, 0.055206298828125, -0.0115203857421875, -0.01544952392578125, 0.0136260986328125, 0.0357666015625, -0.006450653076171875, 0.057891845703125, -0.002788543701171875, -0.0043182373046875, -0.0063629150390625, 0.00508880615234375, 0.038238525390625, 0.0201416015625, -0.0225067138671875, -0.000024378299713134766, -0.025146484375, -0.038116455078125, -0.0032291412353515625, -0.01227569580078125, -0.052459716796875, 0.00908660888671875, 0.0239105224609375, -0.021331787109375, 0.0170745849609375, -0.006069183349609375, -0.0008268356323242188, 0.02252197265625, 0.012481689453125, 0.00969696044921875, -0.046844482421875, 0.0013551712036132812, 0.0469970703125, 0.033447265625, -0.0063934326171875, 0.022308349609375, 0.03643798828125, -0.021331787109375, -0.003360748291015625, -0.0540771484375, -0.03143310546875, -0.041473388671875, -0.0003368854522705078, 0.02032470703125, -0.021575927734375, -0.024322509765625, -0.06707763671875, -0.00222015380859375, 0.0389404296875, 0.00439453125, -0.0194549560546875, 0.00533294677734375, -0.0241241455078125, 0.01280975341796875, 0.005664825439453125, -0.0238494873046875, 0.012115478515625, 0.0212249755859375, -0.0297393798828125, -0.027740478515625, -0.041412353515625, 0.01482391357421875, -0.045074462890625, -0.0087890625, 0.037872314453125, -0.006114959716796875, -0.060638427734375, -0.022735595703125, -0.0160675048828125, 0.0213470458984375, -0.0253448486328125, -0.0140380859375, -0.01163482666015625, 0.0160369873046875, -0.01222991943359375, 0.005481719970703125, 0.0216064453125, 0.006153106689453125, -0.056427001953125, 0.01282501220703125, -0.0279998779296875, -0.0037784576416015625, -0.03515625, -0.06268310546875, 0.08544921875, -0.006969451904296875, -0.0144500732421875, -0.07415771484375, 0.0550537109375, 0.01519775390625, -0.02703857421875, -0.0369873046875, 0.0205230712890625, 0.0088653564453125, 0.0215606689453125, 0.027130126953125, -0.02386474609375, 0.05389404296875, 0.004322052001953125, -0.03302001953125, 0.0135955810546875, 0.016571044921875, -0.002010345458984375, 0.02947998046875, -0.0211944580078125, 0.046966552734375, 0.027191162109375, -0.038116455078125, 0.006114959716796875, -0.006916046142578125, -0.0263671875, -0.039794921875, -0.02862548828125, 0.00023746490478515625, 0.021728515625, 0.0863037109375, 0.051116943359375, 0.01303863525390625, -0.07537841796875, -0.046356201171875, -0.03363037109375, -0.0068817138671875, -0.019012451171875, 0.004180908203125, -0.04058837890625, 0.0135650634765625, -0.037322998046875, 0.0164031982421875, 0.00695037841796875, 0.0150146484375, 0.0034503936767578125, -0.0261688232421875, 0.014617919921875, -0.00276947021484375, -0.04998779296875, -0.04437255859375, 0.0257415771484375, -0.00827789306640625, 0.0205535888671875, 0.0197601318359375, 0.01910400390625, 0.0184173583984375, 0.07415771484375, 0.03265380859375, 0.0235443115234375, -0.03631591796875, -0.00786590576171875, 0.02142333984375, 0.017852783203125, -0.021453857421875, -0.034820556640625, 0.0031566619873046875, 0.027587890625, -0.01061248779296875, 0.029388427734375, 0.022003173828125, 0.0038661956787109375, -0.0036773681640625, -0.0000489354133605957, -0.00826263427734375, 0.0360107421875, -0.01555633544921875, 0.045654296875, 0.0054931640625, -0.009033203125, 0.01397705078125, -0.0017795562744140625, 0.0107421875, -0.022125244140625, 0.033721923828125, -0.025970458984375, 0.01166534423828125, -0.0288238525390625, -0.006862640380859375, 0.01491546630859375 ]
909f4d116487ef23c83008a50d637821324a04e6
Wordpress Stackexchange Q: Remove the Yoast SEO Post Metabox Yoasts SEO plugin adds a metabox to the post edit screen. I'm trying to remove this for users who aren't editors or above. I've tried putting a remove_meta_box call in on admin_init, trying to remove the action on $wpseo_metabox but to no avail. How do I remove this metabox without requiring user intervention (the user should never know the metabox existed, so clicking on screen options is not an option ) A: Remove metaboxes for non-admin accounts: add_filter ( 'manage_edit-post_columns', 'rkv_remove_columns' ); function rkv_remove_columns( $columns ) { if ( ! current_user_can('administrator') ) { unset( $columns['wpseo-score'] ); unset( $columns['wpseo-title'] ); unset( $columns['wpseo-metadesc'] ); unset( $columns['wpseo-focuskw'] ); } return $columns; }
Q: Remove the Yoast SEO Post Metabox Yoasts SEO plugin adds a metabox to the post edit screen. I'm trying to remove this for users who aren't editors or above. I've tried putting a remove_meta_box call in on admin_init, trying to remove the action on $wpseo_metabox but to no avail. How do I remove this metabox without requiring user intervention (the user should never know the metabox existed, so clicking on screen options is not an option ) A: Remove metaboxes for non-admin accounts: add_filter ( 'manage_edit-post_columns', 'rkv_remove_columns' ); function rkv_remove_columns( $columns ) { if ( ! current_user_can('administrator') ) { unset( $columns['wpseo-score'] ); unset( $columns['wpseo-title'] ); unset( $columns['wpseo-metadesc'] ); unset( $columns['wpseo-focuskw'] ); } return $columns; } A: On remove_meta_box is a note: Because you can't remove a meta box until it's been added, it's important to make sure your call to remove_meta_box() happens in the right sequence. WordPress SEO adds meta boxes on add_meta_boxes action with default priority - 10, which run after admin_init, so that won't remove them. Instead you need to hook into add_meta_boxes, but with lower priority - 11, 12, etc. function mamaduka_remove_metabox() { if ( ! current_user_can( 'edit_others_posts' ) ) remove_meta_box( 'wpseo_meta', 'post', 'normal' ); } add_action( 'add_meta_boxes', 'mamaduka_remove_metabox', 11 );
wordpress
{ "language": "en", "length": 205, "provenance": "stackexchange_00019.jsonl.gz:423135", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62573" }
[ 0.05657958984375, 0.0168304443359375, 0.021575927734375, 0.00693511962890625, 0.02923583984375, -0.0265045166015625, 0.055084228515625, -0.06170654296875, 0.0264129638671875, 0.0251617431640625, 0.0276641845703125, -0.051300048828125, -0.00333404541015625, -0.043975830078125, -0.053558349609375, -0.011566162109375, 0.019744873046875, -0.0009832382202148438, 0.022308349609375, -0.0106353759765625, -0.003498077392578125, -0.0010461807250976562, 0.0221405029296875, 0.042510986328125, -0.0204315185546875, 0.027130126953125, 0.03240966796875, 0.01084136962890625, -0.015350341796875, -0.003978729248046875, 0.0065460205078125, -0.00542449951171875, -0.00024306774139404297, 0.01361083984375, -0.0173187255859375, 0.00021576881408691406, -0.0279083251953125, 0.029510498046875, 0.0202178955078125, -0.03826904296875, -0.00384521484375, -0.00579071044921875, -0.013214111328125, -0.01160430908203125, -0.01218414306640625, -0.01505279541015625, 0.0013189315795898438, -0.03973388671875, 0.017852783203125, -0.0063629150390625, 0.004199981689453125, 0.0200653076171875, 0.0242919921875, -0.04766845703125, -0.0040130615234375, -0.011016845703125, -0.045318603515625, 0.00948333740234375, 0.00972747802734375, 0.049774169921875, 0.0159912109375, 0.0165557861328125, -0.01494598388671875, -0.03265380859375, -0.0289764404296875, -0.0194244384765625, -0.047515869140625, 0.0162353515625, -0.063720703125, -0.0208892822265625, 0.0421142578125, -0.0350341796875, -0.0278472900390625, -0.0261688232421875, -0.0290374755859375, 0.023651123046875, 0.01380157470703125, -0.0172576904296875, -0.0028705596923828125, 0.0031585693359375, 0.039886474609375, 0.00377655029296875, 0.001796722412109375, -0.004261016845703125, 0.0139007568359375, 0.017608642578125, -0.005146026611328125, -0.029571533203125, -0.030517578125, -0.0570068359375, -0.0223388671875, -0.09576416015625, -0.06927490234375, -0.0028839111328125, 0.0216217041015625, -0.06134033203125, 0.022003173828125, 0.025604248046875, -0.0005908012390136719, -0.0256500244140625, 0.0260467529296875, -0.033203125, -0.021026611328125, 0.0055084228515625, -0.005146026611328125, -0.00385284423828125, -0.033447265625, -0.018157958984375, 0.04443359375, 0.05804443359375, -0.00460052490234375, -0.00017976760864257812, -0.02203369140625, 0.01348114013671875, -0.050384521484375, 0.0284423828125, -0.01457977294921875, -0.0312042236328125, -0.03399658203125, 0.0052490234375, -0.019744873046875, -0.0230560302734375, 0.0496826171875, -0.06689453125, 0.0423583984375, -0.01044464111328125, -0.08056640625, 0.0186920166015625, 0.0255279541015625, -0.02630615234375, -0.06585693359375, 0.0038127899169921875, 0.10516357421875, 0.07769775390625, 0.066650390625, -0.0194854736328125, -0.01284027099609375, -0.01390838623046875, 0.001190185546875, 0.022796630859375, -0.03460693359375, -0.068603515625, -0.0013551712036132812, -0.00948333740234375, -0.0219268798828125, 0.0119476318359375, 0.01528167724609375, 0.005096435546875, 0.0276947021484375, -0.035369873046875, -0.0550537109375, -0.0032100677490234375, 0.05621337890625, 0.0124969482421875, -0.02606201171875, 0.002902984619140625, 0.06842041015625, -0.033538818359375, -0.0565185546875, -0.06329345703125, -0.00496673583984375, 0.0009546279907226562, 0.00927734375, -0.005615234375, -0.024322509765625, 0.002178192138671875, 0.0123291015625, -0.0013103485107421875, 0.0215911865234375, -0.00983428955078125, 0.0084228515625, -0.0128326416015625, -0.0004856586456298828, -0.0002334117889404297, -0.0012302398681640625, 0.0174102783203125, 0.011688232421875, 0.059814453125, -0.0066680908203125, 0.021484375, 0.005733489990234375, -0.0516357421875, 0.05859375, -0.0220489501953125, -0.0284576416015625, 0.0228424072265625, -0.000881195068359375, 0.00482177734375, 0.01898193359375, 0.0023345947265625, 0.041015625, 0.026275634765625, 0.038604736328125, -0.05853271484375, 0.0266571044921875, -0.040130615234375, 0.00004082918167114258, -0.0266265869140625, 0.0059661865234375, 0.022308349609375, 0.02349853515625, -0.01248931884765625, -0.00623321533203125, 0.0083465576171875, -0.067138671875, 0.0037059783935546875, -0.0259246826171875, 0.0224456787109375, -0.0614013671875, -0.0029544830322265625, 0.03765869140625, -0.03143310546875, -0.030792236328125, 0.0157623291015625, -0.0222930908203125, -0.0197906494140625, -0.0067596435546875, 0.00220489501953125, 0.0100555419921875, 0.016754150390625, 0.001651763916015625, -0.019989013671875, -0.0047454833984375, -0.0223236083984375, 0.060150146484375, 0.0176239013671875, -0.034576416015625, -0.0205535888671875, 0.052581787109375, -0.018310546875, 0.003314971923828125, 0.0662841796875, 0.037750244140625, 0.005512237548828125, -0.0008840560913085938, 0.01053619384765625, 0.037689208984375, -0.103271484375, -0.014984130859375, 0.05377197265625, 0.0209808349609375, 0.01666259765625, -0.03265380859375, -0.005706787109375, 0.0198516845703125, -0.057830810546875, -0.0210418701171875, 0.028778076171875, 0.003635406494140625, 0.016510009765625, -0.006336212158203125, -0.0028438568115234375, 0.0214996337890625, -0.00489044189453125, 0.01087188720703125, 0.01226043701171875, -0.013275146484375, -0.021759033203125, 0.037353515625, -0.0279541015625, 0.009765625, -0.01404571533203125, -0.02734375, 0.0015573501586914062, 0.0897216796875, -0.0139007568359375, 0.08514404296875, 0.06585693359375, -0.03759765625, -0.0096893310546875, 0.0222015380859375, 0.054534912109375, -0.01483917236328125, 0.029632568359375, 0.048828125, 0.039215087890625, -0.07244873046875, -0.0086822509765625, 0.0148162841796875, 0.042449951171875, 0.0113983154296875, -0.01258087158203125, 0.018951416015625, 0.004638671875, 0.036956787109375, -0.04736328125, 0.032958984375, 0.022430419921875, 0.018310546875, 0.00482177734375, 0.020416259765625, 0.004444122314453125, -0.0020046234130859375, 0.0328369140625, 0.01412200927734375, -0.024627685546875, -0.001468658447265625, -0.01477813720703125, 0.0303497314453125, -0.033172607421875, 0.040313720703125, 0.056640625, -0.049346923828125, 0.059051513671875, 0.0015583038330078125, -0.01216888427734375, -0.0300140380859375, 0.0291900634765625, 0.0090484619140625, -0.0015764236450195312, -0.05426025390625, 0.035919189453125, 0.0173797607421875, -0.0056915283203125, 0.0164337158203125, -0.023834228515625, -0.01611328125, 0.00951385498046875, -0.08270263671875, -0.06060791015625, 0.08746337890625, -0.034515380859375, -0.06494140625, 0.002933502197265625, -0.060699462890625, -0.00527191162109375, 0.035308837890625, -0.021575927734375, -0.00926971435546875, -0.033203125, -0.045654296875, -0.05145263671875, -0.033966064453125, -0.0443115234375, 0.0015697479248046875, -0.01776123046875, -0.003330230712890625, 0.051544189453125, 0.004741668701171875, -0.004703521728515625, 0.00649261474609375, -0.026031494140625, -0.0090789794921875, -0.004428863525390625, -0.01268768310546875, 0.007480621337890625, 0.037017822265625, 0.006771087646484375, 0.0012178421020507812, 0.0302581787109375, -0.0265045166015625, -0.0201416015625, 0.006862640380859375, 0.0249176025390625, 0.020782470703125, -0.0265655517578125, -0.020751953125, -0.0015411376953125, -0.0186004638671875, -0.051544189453125, -0.0145416259765625, 0.0242156982421875, -0.0153045654296875, -0.0167083740234375, -0.022918701171875, -0.007709503173828125, -0.006977081298828125, 0.028839111328125, 0.0662841796875, 0.0126800537109375, 0.0616455078125, 0.0168304443359375, -0.01380157470703125, 0.00278472900390625, 0.02557373046875, -0.08074951171875, 0.019989013671875, -0.0210723876953125, 0.017364501953125, -0.0012693405151367188, 0.0144500732421875, -0.0076446533203125, 0.0279693603515625, -0.0167694091796875, -0.006977081298828125, 0.039825439453125, 0.0118408203125, -0.0123138427734375, -0.005825042724609375, -0.01038360595703125, -0.01116943359375, 0.02142333984375, -0.041748046875, -0.0255889892578125, 0.01174163818359375, 0.01313018798828125, -0.0175323486328125, -0.0014638900756835938, -0.0231170654296875, -0.019744873046875, -0.118408203125, 0.018280029296875, 0.028472900390625, -0.061004638671875, -0.01280975341796875, 0.023529052734375, -0.0887451171875, -0.033233642578125, 0.042755126953125, 0.01172637939453125, 0.0036983489990234375, -0.007656097412109375, -0.0029468536376953125, -0.0302276611328125, -0.033416748046875, 0.0130462646484375, -0.06378173828125, -0.024932861328125, -0.00970458984375, 0.065673828125, -0.0227508544921875, 0.0386962890625, -0.055877685546875, 0.01534271240234375, 0.0238037109375, -0.00927734375, 0.00913238525390625, 0.0038471221923828125, 0.00844573974609375, -0.017242431640625, 0.00984954833984375, -0.02740478515625, 0.03338623046875, 0.03411865234375, -0.0307159423828125, 0.046661376953125, -0.031951904296875, 0.03179931640625, 0.0144195556640625, -0.049407958984375, -0.01132965087890625, -0.0694580078125, -0.041748046875, 0.02423095703125, -0.03289794921875, 0.0382080078125, -0.07012939453125, -0.027099609375, -0.00815582275390625, 0.045318603515625, -0.0355224609375, 0.0116729736328125, -0.0133056640625, 0.0259246826171875, -0.0293731689453125, -0.0247955322265625, -0.007537841796875, 0.0098876953125, -0.0014333724975585938, 0.04217529296875, 0.0206451416015625, 0.0013246536254882812, 0.020599365234375, -0.0283050537109375, -0.014251708984375, -0.03839111328125, 0.053253173828125, 0.003570556640625, -0.02325439453125, 0.0149383544921875, -0.034881591796875, 0.0516357421875, -0.0222625732421875, 0.00504302978515625, -0.017730712890625, -0.00792694091796875, 0.027862548828125, 0.026763916015625, -0.006092071533203125, -0.0186920166015625, -0.033447265625, -0.0023746490478515625, -0.01727294921875, 0.022308349609375, 0.028350830078125, -0.00997161865234375, 0.0226593017578125, 0.007965087890625, -0.02545166015625, -0.048309326171875, -0.0202484130859375, -0.051788330078125, 0.00814056396484375, -0.060943603515625, -0.047393798828125, -0.00861358642578125, 0.0013742446899414062, 0.0247650146484375, 0.0007004737854003906, -0.0390625, -0.033721923828125, 0.0044097900390625, 0.06573486328125, 0.006832122802734375, -0.007701873779296875, 0.033599853515625, 0.043701171875, -0.0228424072265625, -0.036346435546875, -0.0018634796142578125, -0.009979248046875, -0.0706787109375, -0.032958984375, 0.00783538818359375, -0.0135040283203125, 0.0203399658203125, 0.03411865234375, -0.0294342041015625, 0.034881591796875, -0.0022716522216796875, 0.006549835205078125, -0.0162506103515625, 0.03265380859375, 0.009552001953125, -0.031585693359375, 0.0134735107421875, 0.0029888153076171875, 0.0135040283203125, -0.02471923828125, -0.0015659332275390625, 0.056488037109375, 0.00861358642578125, 0.02752685546875, -0.007965087890625, -0.023681640625, 0.00959014892578125, 0.00310516357421875, 0.015228271484375, 0.0203857421875, -0.0229339599609375, 0.006378173828125, 0.006847381591796875, -0.0201416015625, -0.03131103515625, 0.003948211669921875, 0.0031719207763671875, -0.007305145263671875, -0.003795623779296875, 0.0221710205078125, -0.06085205078125, -0.004276275634765625, 0.0222015380859375, -0.0181884765625, 0.005901336669921875, 0.001567840576171875, -0.0504150390625, -0.039154052734375, -0.0011529922485351562, -0.01151275634765625, 0.0296478271484375, -0.032684326171875, 0.055389404296875, -0.0176239013671875, -0.006488800048828125, 0.0220489501953125, 0.04132080078125, -0.0150604248046875, -0.01617431640625, -0.0042724609375, -0.0380859375, -0.04620361328125, -0.01226043701171875, 0.01079559326171875, -0.01593017578125, -0.0013294219970703125, 0.0010957717895507812, 0.01422882080078125, 0.02764892578125, 0.007511138916015625, -0.0026340484619140625, 0.00533294677734375, -0.0179595947265625, -0.00417327880859375, 0.014739990234375, -0.0325927734375, 0.05682373046875, -0.011444091796875, 0.023406982421875, -0.00693511962890625, 0.025177001953125, 0.020599365234375, -0.01042938232421875, 0.033599853515625, -0.0576171875, -0.06982421875, -0.024017333984375, -0.070068359375, 0.0244140625, 0.0202484130859375, -0.0260772705078125, 0.01593017578125, -0.003841400146484375, 0.00461578369140625, -0.029052734375, 0.0116119384765625, -0.0222625732421875, 0.02001953125, 0.0082244873046875, -0.016265869140625, 0.0498046875, -0.01010894775390625, -0.021942138671875, 0.059844970703125, -0.04217529296875, 0.061309814453125, 0.020294189453125, -0.0272064208984375, 0.059173583984375, 0.02496337890625, 0.0232086181640625, 0.050872802734375, -0.0183258056640625, 0.024688720703125, -0.00858306884765625, -0.03192138671875, 0.01861572265625, 0.02099609375, 0.0552978515625, 0.004634857177734375, 0.038360595703125, 0.0721435546875, -0.01104736328125, 0.0304718017578125, 0.05908203125, 0.067138671875, -0.1021728515625, 0.021392822265625, 0.0164794921875, 0.000461578369140625, 0.047821044921875, 0.0167388916015625, 0.0054931640625, -0.01343536376953125, -0.0347900390625, 0.01157379150390625, -0.012786865234375, -0.001758575439453125, 0.009918212890625, -0.01776123046875, -0.037322998046875, -0.00933074951171875, 0.014434814453125, -0.0201416015625, 0.0209503173828125, 0.0286712646484375, -0.00951385498046875, 0.01708984375, 0.00800323486328125, 0.0240325927734375, -0.0264739990234375, -0.061126708984375, 0.0023555755615234375, -0.020416259765625, -0.047088623046875, 0.0200042724609375, 0.0194854736328125, 0.0011854171752929688, 0.043609619140625, -0.0201416015625, -0.0088958740234375, -0.0002319812774658203, -0.003795623779296875, -0.00984954833984375, -0.0455322265625, -0.019561767578125, 0.0377197265625, -0.0092315673828125, 0.0207061767578125, 0.02496337890625, -0.037200927734375, 0.000965118408203125, -0.0034084320068359375, 0.038818359375, 0.0011119842529296875, -0.02349853515625, 0.0396728515625, -0.00017070770263671875, -0.019744873046875, 0.0143280029296875, 0.0347900390625, -0.0269622802734375, -0.01207733154296875, 0.01812744140625, -0.00881195068359375, -0.007350921630859375, 0.0183258056640625, -0.11297607421875, 0.07122802734375, 0.035369873046875, 0.055633544921875, -0.0292816162109375, 0.011962890625, -0.045623779296875, -0.0284576416015625, -0.020538330078125, 0.051544189453125, 0.007472991943359375, 0.0295562744140625, -0.0242919921875, -0.00921630859375, 0.0013151168823242188, 0.0443115234375, 0.0163421630859375, 0.01409912109375, -0.0178985595703125, -0.03314208984375, -0.0201568603515625, 0.037109375, -0.00478363037109375, 0.0187530517578125, -0.0078887939453125, 0.035736083984375, 0.01146697998046875, -0.043426513671875, 0.0212554931640625, -0.0183563232421875, -0.04205322265625, 0.0207672119140625, 0.0156402587890625, -0.00453948974609375, 0.01505279541015625, 0.05120849609375, -0.018524169921875, 0.0008234977722167969, 0.0130767822265625, -0.01470184326171875, -0.0232696533203125, 0.06298828125, 0.02337646484375, 0.00823211669921875, -0.04217529296875, -0.02166748046875, 0.04852294921875, 0.024200439453125, 0.057586669921875, 0.048126220703125, 0.048614501953125, 0.0252838134765625, -0.032135009765625, 0.05511474609375, 0.00589752197265625, -0.06280517578125, 0.01549530029296875, 0.019683837890625, 0.0043487548828125, -0.0230255126953125, 0.0601806640625, 0.0423583984375, 0.0180511474609375, -0.043548583984375, -0.01079559326171875, 0.007171630859375, -0.004169464111328125, 0.00606536865234375, -0.0296783447265625, 0.01195526123046875, -0.0008249282836914062, 0.003322601318359375, -0.030548095703125, -0.01525115966796875, -0.0175628662109375, 0.03070068359375, -0.0199737548828125, 0.0017232894897460938, 0.0098724365234375, -0.0287017822265625, -0.026123046875, 0.0086822509765625, 0.0228271484375, 0.0251312255859375, -0.00853729248046875, 0.051910400390625, 0.015869140625, -0.01189422607421875, -0.007678985595703125, 0.01389312744140625, -0.01496124267578125, 0.0020542144775390625, -0.057464599609375, -0.06890869140625, 0.030242919921875, 0.044586181640625, 0.0347900390625, 0.03448486328125, 0.0254364013671875, 0.047607421875, 0.043609619140625, -0.0023040771484375, 0.047821044921875, 0.00647735595703125, -0.0157623291015625, -0.032745361328125, 0.07342529296875, 0.05108642578125, 0.03350830078125, -0.01442718505859375, 0.07562255859375, 0.0216217041015625, -0.004119873046875, -0.0185089111328125, 0.0123138427734375, -0.043792724609375, 0.051422119140625, 0.024688720703125, 0.027130126953125, 0.02337646484375, -0.0350341796875, -0.0024509429931640625, -0.0179290771484375, -0.00789642333984375, -0.0014028549194335938, 0.01125335693359375, -0.052215576171875, 0.07049560546875, -0.0240020751953125, -0.0206146240234375, 0.01513671875, -0.000934600830078125, 0.0012235641479492188, 0.037139892578125, 0.0111541748046875, -0.008941650390625, 0.01528167724609375, 0.00510406494140625, 0.037078857421875, 0.02215576171875, -0.0078582763671875, 0.03314208984375, -0.0181427001953125, -0.004467010498046875, -0.01122283935546875, -0.0219268798828125, 0.0030879974365234375, -0.020477294921875, 0.005985260009765625, 0.00916290283203125, -0.00756072998046875, -0.00490570068359375, -0.0219879150390625, 0.005584716796875, 0.06494140625, -0.0020198822021484375, 0.01282501220703125, 0.0241851806640625, 0.00460052490234375, -0.0506591796875, 0.0128326416015625, -0.0269775390625, 0.004856109619140625, -0.0211029052734375, -0.0225982666015625, 0.043182373046875, 0.01007843017578125, -0.0236968994140625, 0.03387451171875, 0.0125732421875, -0.00609588623046875, 0.00830078125, -0.00817108154296875, 0.00971221923828125, 0.022003173828125, 0.012054443359375, 0.034423828125, 0.0169525146484375, -0.0159454345703125, 0.0026264190673828125, 0.033111572265625, -0.031707763671875, 0.03271484375, -0.026885986328125, 0.00029850006103515625, 0.021240234375, 0.008209228515625, -0.0082244873046875, -0.0095672607421875, 0.030242919921875, -0.0265045166015625, -0.04656982421875, 0.0038509368896484375, -0.0172882080078125, -0.006748199462890625, -0.00963592529296875, 0.028411865234375, -0.006587982177734375, -0.0450439453125, -0.079833984375, -0.003170013427734375, 0.00920867919921875, 0.006511688232421875, -0.060577392578125, 0.050994873046875, 0.0027141571044921875, 0.024932861328125, -0.007537841796875, -0.01264190673828125, -0.0167083740234375, 0.041961669921875, -0.01050567626953125, -0.042572021484375, -0.047027587890625, 0.037200927734375, -0.062164306640625, -0.0098114013671875, 0.0096893310546875, -0.004634857177734375, -0.0036792755126953125, -0.015472412109375, -0.01450347900390625, 0.027801513671875, 0.00807952880859375, -0.027069091796875, 0.008331298828125, 0.0127105712890625, 0.0120697021484375, -0.05438232421875, -0.031890869140625, -0.0080718994140625, 0.01309967041015625, 0.0284576416015625, -0.0188446044921875, 0.007053375244140625, -0.02032470703125, -0.03955078125, 0.053009033203125, 0.005828857421875, -0.033660888671875, 0.0005688667297363281, -0.0293731689453125, 0.0193328857421875, 0.010101318359375, 0.0027942657470703125, 0.0016279220581054688, -0.060302734375, -0.007564544677734375, 0.0120086669921875, -0.00860595703125, 0.0236358642578125, 0.0225067138671875, -0.0234375, 0.03594970703125, 0.0211944580078125, -0.020751953125, -0.034210205078125, 0.0447998046875, -0.0234222412109375, 0.02252197265625, -0.0302734375, 0.0169219970703125, -0.00215911865234375, 0.002384185791015625, -0.0010929107666015625, -0.032257080078125, -0.025970458984375, -0.0007486343383789062, 0.0599365234375, 0.058868408203125, 0.0167999267578125, -0.046600341796875, -0.0267486572265625, -0.06524658203125, -0.032470703125, -0.0528564453125, 0.02410888671875, -0.10137939453125, -0.01064300537109375, 0.03765869140625, -0.005931854248046875, -0.01279449462890625, -0.0251312255859375, -0.031341552734375, -0.011627197265625, 0.0103912353515625, 0.036712646484375, -0.040130615234375, 0.03662109375, 0.0016431808471679688, -0.01169586181640625, 0.037628173828125, -0.03558349609375, 0.00015044212341308594, 0.024017333984375, 0.01210784912109375, -0.00838470458984375, -0.05511474609375, -0.0189056396484375, 0.046051025390625, -0.0263214111328125, 0.049041748046875, -0.05615234375, -0.035247802734375, -0.0258636474609375, 0.0233154296875, 0.01355743408203125, 0.033905029296875, -0.03228759765625, 0.031341552734375, 0.0194091796875, 0.016265869140625, -0.031463623046875, 0.0343017578125, -0.0124359130859375, 0.01629638671875, 0.0204925537109375, -0.0005102157592773438, 0.0880126953125, -0.0221710205078125, -0.0125274658203125, -0.018798828125, -0.01459503173828125, -0.07232666015625, 0.0103302001953125, -0.0173492431640625, 0.01024627685546875, 0.0219573974609375 ]
c7a605df8b9934693b86b435bf6cf9e55feb9129
Wordpress Stackexchange Q: List of Default Translated Phrases With <?php _e('Save Changes') ?>, I know the phrase, "Save Changes" can be translated automatically if the user's locale is set to a different language. I'd like to know if there is a list of those already translated WordPress default messages. What else can I use? A: The list is available in $GLOBALS['l10n'][ $text_domain ]. To get the looong list of translatable WordPress strings just use: print '<pre>' . htmlspecialchars( print_r( $GLOBALS['l10n']['default'], TRUE ) ) . '</pre>'; Do not use these strings in your theme or plugin. They are internal, de facto private. They can change any time, even in minor updates. Always use your own strings only, even when you think: this was stable for years! Recently the HTML tab in the post editor has been renamed to Text. I wonder how many plugins will break now … :)
Q: List of Default Translated Phrases With <?php _e('Save Changes') ?>, I know the phrase, "Save Changes" can be translated automatically if the user's locale is set to a different language. I'd like to know if there is a list of those already translated WordPress default messages. What else can I use? A: The list is available in $GLOBALS['l10n'][ $text_domain ]. To get the looong list of translatable WordPress strings just use: print '<pre>' . htmlspecialchars( print_r( $GLOBALS['l10n']['default'], TRUE ) ) . '</pre>'; Do not use these strings in your theme or plugin. They are internal, de facto private. They can change any time, even in minor updates. Always use your own strings only, even when you think: this was stable for years! Recently the HTML tab in the post editor has been renamed to Text. I wonder how many plugins will break now … :) A: Default wordpress translation files are available here: http://i18n.svn.wordpress.org/ Here is an example with the french file: http://i18n.svn.wordpress.org/fr_FR/trunk/glotpress/fr_FR.po Use msgid like this: <?php _e('msgid') ?>
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:423145", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62595" }
[ -0.0205535888671875, -0.03143310546875, 0.0221405029296875, 0.038726806640625, -0.027130126953125, -0.016998291015625, 0.05035400390625, -0.03369140625, -0.0015811920166015625, 0.04168701171875, 0.003139495849609375, -0.0005135536193847656, 0.0255889892578125, -0.020355224609375, -0.0167388916015625, -0.003978729248046875, 0.0552978515625, -0.0175628662109375, 0.038330078125, 0.007801055908203125, -0.0217437744140625, 0.040313720703125, 0.032135009765625, 0.0333251953125, 0.0118408203125, -0.0396728515625, 0.0556640625, -0.0272369384765625, 0.005359649658203125, -0.0258331298828125, 0.0159149169921875, 0.01552581787109375, 0.0226593017578125, 0.01398468017578125, -0.0384521484375, -0.078125, 0.0003859996795654297, -0.004802703857421875, -0.021636962890625, 0.032379150390625, 0.01099395751953125, -0.0085906982421875, 0.0247344970703125, -0.007686614990234375, 0.006771087646484375, -0.040496826171875, 0.051666259765625, -0.025299072265625, -0.002552032470703125, 0.0203094482421875, 0.0258941650390625, -0.0114898681640625, 0.03570556640625, 0.005035400390625, -0.015106201171875, -0.019500732421875, -0.03216552734375, 0.02301025390625, 0.04254150390625, 0.0216064453125, -0.0208587646484375, -0.0174102783203125, 0.00952911376953125, -0.02618408203125, -0.0172882080078125, -0.0014791488647460938, -0.0221099853515625, 0.006481170654296875, 0.01348114013671875, -0.034912109375, 0.0016727447509765625, 0.00351715087890625, 0.034149169921875, -0.04815673828125, 0.050506591796875, 0.0201873779296875, -0.05023193359375, 0.005390167236328125, 0.02789306640625, -0.004367828369140625, 0.0643310546875, -0.00865936279296875, 0.0308380126953125, 0.00557708740234375, 0.0136871337890625, 0.004817962646484375, 0.005397796630859375, -0.018096923828125, -0.06488037109375, -0.013946533203125, -0.0260009765625, -0.026153564453125, -0.0880126953125, 0.00807952880859375, 0.0223388671875, -0.0186920166015625, -0.0240325927734375, 0.01629638671875, -0.045745849609375, 0.0017251968383789062, -0.040985107421875, 0.01001739501953125, -0.018280029296875, -0.007480621337890625, 0.00039196014404296875, -0.0081787109375, -0.01013946533203125, -0.00579071044921875, 0.02691650390625, 0.045989990234375, -0.002685546875, 0.0173187255859375, 0.0243072509765625, 0.0194244384765625, -0.0013275146484375, -0.01363372802734375, -0.0222320556640625, 0.03741455078125, -0.02996826171875, 0.0318603515625, -0.00403594970703125, -0.00627899169921875, 0.02850341796875, -0.020111083984375, 0.0280914306640625, -0.0181427001953125, -0.052337646484375, 0.0007257461547851562, -0.0445556640625, 0.054290771484375, -0.0180511474609375, -0.0237579345703125, 0.029632568359375, 0.049591064453125, -0.0015716552734375, -0.03057861328125, -0.00905609130859375, 0.0240478515625, 0.008056640625, 0.0185699462890625, 0.0022258758544921875, -0.0450439453125, -0.02374267578125, 0.009613037109375, -0.004547119140625, -0.004535675048828125, 0.0139923095703125, 0.038177490234375, 0.00530242919921875, -0.035400390625, 0.0278472900390625, 0.006267547607421875, 0.047821044921875, -0.00860595703125, -0.0240631103515625, -0.0223541259765625, 0.035308837890625, -0.04632568359375, -0.03955078125, -0.05645751953125, -0.03173828125, -0.05078125, -0.055023193359375, -0.0270233154296875, -0.067626953125, 0.08148193359375, 0.06842041015625, 0.015899658203125, 0.0175323486328125, -0.00183868408203125, -0.022430419921875, 0.03253173828125, 0.05255126953125, 0.02093505859375, 0.00446319580078125, 0.0159454345703125, -0.06329345703125, -0.0216217041015625, 0.035430908203125, -0.0047607421875, 0.0018815994262695312, -0.019317626953125, -0.01361846923828125, 0.0433349609375, -0.0379638671875, 0.0079498291015625, -0.006206512451171875, 0.046295166015625, 0.07135009765625, 0.00850677490234375, -0.01580810546875, -0.045562744140625, -0.00922393798828125, -0.00005048513412475586, -0.024993896484375, 0.01441192626953125, -0.025146484375, 0.0439453125, -0.0303955078125, -0.024505615234375, 0.03289794921875, -0.06451416015625, 0.0249176025390625, -0.0189208984375, -0.080078125, -0.0225677490234375, -0.029998779296875, 0.005084991455078125, 0.017364501953125, 0.0009565353393554688, -0.00670623779296875, -0.031768798828125, 0.0181427001953125, -0.036834716796875, -0.041778564453125, 0.01430511474609375, 0.0028209686279296875, 0.058013916015625, 0.0180816650390625, 0.0211944580078125, 0.038177490234375, -0.037017822265625, 0.03887939453125, 0.0191192626953125, -0.008392333984375, 0.01285552978515625, -0.030517578125, 0.00948333740234375, 0.0101776123046875, 0.01537322998046875, 0.053558349609375, 0.00539398193359375, -0.0003414154052734375, -0.002277374267578125, -0.029876708984375, 0.006855010986328125, -0.01242828369140625, -0.039031982421875, 0.0008497238159179688, 0.0533447265625, 0.00848388671875, 0.0274810791015625, -0.0291290283203125, 0.014373779296875, 0.0311431884765625, 0.0104522705078125, 0.01617431640625, 0.0102081298828125, 0.04620361328125, 0.0186309814453125, 0.01357269287109375, -0.0594482421875, 0.0310821533203125, -0.0697021484375, 0.03765869140625, 0.0101318359375, -0.03424072265625, -0.03271484375, 0.0094451904296875, -0.020965576171875, 0.0006856918334960938, -0.066650390625, -0.0238189697265625, -0.020843505859375, 0.0419921875, -0.044219970703125, -0.00945281982421875, -0.017425537109375, -0.036285400390625, 0.00850677490234375, 0.032257080078125, -0.023773193359375, -0.00323486328125, 0.0262603759765625, 0.01134490966796875, 0.0216217041015625, -0.0175323486328125, -0.0005831718444824219, -0.0107574462890625, 0.007659912109375, -0.00970458984375, 0.0482177734375, -0.06591796875, -0.0212860107421875, -0.01270294189453125, -0.03857421875, -0.0369873046875, -0.01983642578125, -0.007061004638671875, -0.036102294921875, 0.012481689453125, 0.007110595703125, -0.034820556640625, 0.0251312255859375, -0.0047149658203125, -0.050445556640625, 0.01354217529296875, -0.06756591796875, 0.029327392578125, -0.033050537109375, 0.027496337890625, 0.0816650390625, 0.0171051025390625, -0.006114959716796875, -0.0032100677490234375, -0.005931854248046875, 0.032623291015625, -0.0173797607421875, -0.036041259765625, 0.008697509765625, -0.09515380859375, -0.062042236328125, -0.01557159423828125, 0.048492431640625, -0.082763671875, -0.06982421875, -0.03802490234375, -0.042205810546875, -0.0665283203125, -0.021942138671875, 0.01806640625, 0.003971099853515625, -0.03643798828125, -0.005035400390625, 0.00528717041015625, 0.00191497802734375, -0.01273345947265625, -0.00872039794921875, -0.007343292236328125, -0.02362060546875, -0.04119873046875, -0.07098388671875, -0.0667724609375, -0.022552490234375, 0.0034122467041015625, 0.01532745361328125, 0.00017404556274414062, 0.01433563232421875, 0.01084136962890625, -0.040557861328125, 0.03253173828125, 0.05108642578125, 0.002994537353515625, 0.03460693359375, -0.0034008026123046875, -0.03033447265625, 0.031768798828125, -0.0013427734375, 0.025238037109375, 0.03741455078125, -0.019561767578125, 0.001987457275390625, 0.019378662109375, 0.0112152099609375, 0.0239715576171875, -0.05413818359375, -0.0204315185546875, 0.026153564453125, -0.027587890625, -0.044525146484375, -0.037322998046875, 0.010040283203125, -0.024139404296875, 0.06622314453125, -0.005298614501953125, 0.003993988037109375, 0.004940032958984375, 0.050079345703125, 0.016815185546875, 0.02288818359375, 0.028289794921875, 0.01306915283203125, -0.04730224609375, -0.0180511474609375, -0.0239105224609375, -0.0207672119140625, 0.0628662109375, 0.01245880126953125, -0.01325225830078125, 0.0287017822265625, 0.0474853515625, 0.0330810546875, -0.0083160400390625, -0.0005192756652832031, -0.032196044921875, 0.022796630859375, -0.04534912109375, 0.007091522216796875, -0.005218505859375, -0.005573272705078125, -0.00031304359436035156, 0.04736328125, -0.01190948486328125, -0.041107177734375, -0.00617218017578125, 0.0135650634765625, -0.0101470947265625, -0.0214385986328125, 0.030029296875, -0.0162200927734375, -0.026824951171875, 0.0313720703125, 0.005001068115234375, 0.0003337860107421875, -0.01141357421875, -0.013824462890625, -0.0006384849548339844, -0.026611328125, 0.027313232421875, 0.00977325439453125, 0.001857757568359375, -0.01096343994140625, 0.0028285980224609375, -0.0163116455078125, 0.006542205810546875, -0.0254974365234375, -0.09185791015625, -0.0191497802734375, -0.046722412109375, 0.07293701171875, 0.03216552734375, -0.037628173828125, -0.01702880859375, 0.04888916015625, 0.010223388671875, 0.0460205078125, 0.0141143798828125, 0.0144805908203125, 0.0105438232421875, -0.0186920166015625, 0.0439453125, -0.040283203125, -0.0183258056640625, 0.021453857421875, -0.0196380615234375, 0.07794189453125, 0.022491455078125, -0.003192901611328125, 0.0626220703125, -0.046539306640625, -0.0494384765625, -0.0361328125, -0.0267333984375, 0.01342010498046875, 0.0034236907958984375, -0.01320648193359375, -0.040771484375, -0.0738525390625, 0.040008544921875, 0.0199737548828125, 0.0147857666015625, 0.015380859375, 0.039764404296875, -0.0080718994140625, -0.0225982666015625, -0.08380126953125, 0.0005626678466796875, 0.044525146484375, 0.03546142578125, -0.01506805419921875, -0.0021533966064453125, -0.0306396484375, 0.0172119140625, 0.0214385986328125, 0.0070343017578125, -0.01324462890625, 0.0157928466796875, -0.0011816024780273438, 0.007297515869140625, -0.01174163818359375, -0.01910400390625, 0.00861358642578125, 0.00455474853515625, -0.0097808837890625, -0.0304718017578125, -0.00293731689453125, 0.049072265625, -0.02484130859375, 0.07696533203125, -0.0227203369140625, -0.005634307861328125, 0.00440216064453125, 0.0255279541015625, -0.041412353515625, 0.011016845703125, 0.0135955810546875, -0.04290771484375, -0.03485107421875, 0.004329681396484375, 0.03277587890625, -0.0056304931640625, 0.008331298828125, 0.0210113525390625, 0.031829833984375, -0.00826263427734375, 0.004222869873046875, 0.003208160400390625, 0.037506103515625, -0.01229095458984375, -0.048736572265625, 0.0014657974243164062, 0.0122528076171875, 0.03271484375, 0.042999267578125, 0.0246734619140625, 0.0039825439453125, 0.029144287109375, -0.00904083251953125, 0.026031494140625, 0.019439697265625, 0.0275421142578125, -0.0296630859375, -0.002712249755859375, 0.0177459716796875, -0.0241241455078125, 0.02734375, 0.040557861328125, -0.036041259765625, 0.0289764404296875, -0.0004949569702148438, -0.003841400146484375, 0.006778717041015625, 0.0242919921875, 0.007434844970703125, 0.0030689239501953125, -0.007427215576171875, 0.01084136962890625, 0.0361328125, -0.00899505615234375, 0.01715087890625, 0.00730133056640625, 0.004657745361328125, -0.0006256103515625, -0.02105712890625, 0.027587890625, -0.0279541015625, -0.016448974609375, 0.0711669921875, 0.07135009765625, -0.023895263671875, -0.0287322998046875, -0.006587982177734375, 0.02410888671875, -0.01812744140625, -0.0122222900390625, -0.0106048583984375, -0.05975341796875, -0.0294189453125, -0.00948333740234375, -0.037200927734375, -0.0170135498046875, -0.01025390625, -0.050201416015625, -0.023773193359375, 0.025970458984375, -0.030670166015625, -0.0140228271484375, -0.007152557373046875, -0.012725830078125, 0.03271484375, 0.014007568359375, -0.0273895263671875, -0.00799560546875, -0.0166473388671875, 0.031524658203125, 0.0015516281127929688, 0.039642333984375, -0.044708251953125, 0.035308837890625, -0.028564453125, -0.056365966796875, -0.044586181640625, -0.0034008026123046875, -0.0158233642578125, -0.000054001808166503906, 0.0027923583984375, 0.02056884765625, 0.033233642578125, -0.0015125274658203125, -0.0068511962890625, -0.00635528564453125, 0.047088623046875, 0.0193634033203125, 0.07855224609375, -0.007366180419921875, 0.017425537109375, 0.034576416015625, -0.043487548828125, -0.0027256011962890625, 0.0070037841796875, 0.010772705078125, 0.00007516145706176758, 0.0058135986328125, 0.0015535354614257812, -0.00125885009765625, -0.005126953125, -0.0009851455688476562, -0.030517578125, 0.0229034423828125, -0.0023746490478515625, 0.0027484893798828125, -0.01113128662109375, 0.0110015869140625, -0.00798797607421875, 0.0192108154296875, 0.00811767578125, -0.021240234375, 0.060882568359375, -0.032806396484375, -0.00853729248046875, -0.0257720947265625, 0.02203369140625, 0.0147857666015625, -0.03302001953125, -0.021209716796875, 0.0272979736328125, -0.045318603515625, 0.006626129150390625, 0.0362548828125, 0.0428466796875, 0.0626220703125, 0.003795623779296875, 0.04351806640625, 0.021026611328125, -0.025482177734375, 0.04302978515625, -0.0025997161865234375, 0.0157928466796875, -0.02252197265625, -0.00528717041015625, -0.0138092041015625, -0.0197601318359375, 0.02752685546875, 0.10662841796875, 0.0850830078125, -0.1182861328125, 0.001987457275390625, 0.0117034912109375, -0.039215087890625, -0.021942138671875, 0.0254974365234375, -0.04620361328125, -0.08233642578125, -0.0139617919921875, -0.052520751953125, -0.035797119140625, -0.05218505859375, -0.00415802001953125, 0.0081634521484375, -0.013336181640625, 0.016845703125, -0.003978729248046875, -0.0055084228515625, -0.046783447265625, -0.00959014892578125, -0.0137176513671875, -0.0560302734375, 0.018585205078125, 0.0093231201171875, -0.0015535354614257812, -0.07464599609375, 0.027069091796875, 0.01442718505859375, 0.0122528076171875, -0.048553466796875, -0.0501708984375, -0.0007967948913574219, 0.060882568359375, -0.06890869140625, 0.037750244140625, 0.0360107421875, 0.0023937225341796875, -0.02294921875, -0.0247955322265625, 0.024688720703125, 0.023651123046875, -0.052703857421875, 0.023773193359375, -0.038818359375, -0.0283355712890625, -0.00014913082122802734, -0.021759033203125, 0.04205322265625, -0.004241943359375, -0.028839111328125, 0.031646728515625, 0.0084075927734375, -0.00766754150390625, -0.021392822265625, -0.033935546875, -0.0576171875, -0.0198822021484375, -0.042022705078125, -0.06781005859375, -0.003963470458984375, -0.051361083984375, -0.074462890625, 0.08306884765625, 0.032012939453125, 0.0239715576171875, -0.0252532958984375, 0.0305328369140625, -0.01018524169921875, 0.0228271484375, -0.03594970703125, 0.01432037353515625, -0.000010371208190917969, 0.03607177734375, -0.039306640625, -0.01116943359375, 0.01338958740234375, 0.045745849609375, 0.01401519775390625, 0.00522613525390625, -0.002300262451171875, 0.022491455078125, 0.043304443359375, 0.0108184814453125, -0.0127105712890625, 0.01617431640625, 0.018951416015625, 0.055023193359375, -0.0080108642578125, -0.041229248046875, 0.0204315185546875, -0.059295654296875, -0.0223388671875, 0.034820556640625, -0.013427734375, -0.0252532958984375, 0.007213592529296875, -0.02618408203125, -0.0246124267578125, -0.00261688232421875, -0.00339508056640625, -0.044403076171875, 0.009368896484375, 0.005645751953125, 0.0225067138671875, -0.025482177734375, -0.00011259317398071289, -0.0289459228515625, 0.03839111328125, 0.0160675048828125, 0.0006852149963378906, 0.06988525390625, 0.0248260498046875, 0.0117340087890625, -0.033843994140625, -0.0031909942626953125, -0.023773193359375, -0.00551605224609375, 0.02532958984375, 0.03662109375, -0.0017499923706054688, -0.0301361083984375, 0.0185699462890625, 0.0677490234375, 0.044036865234375, -0.036590576171875, -0.029998779296875, 0.00390625, 0.0025196075439453125, 0.00510406494140625, -0.002315521240234375, 0.0159912109375, -0.029510498046875, 0.008819580078125, -0.0007343292236328125, -0.0201568603515625, 0.0008382797241210938, -0.017608642578125, 0.0031585693359375, 0.01490020751953125, 0.050750732421875, -0.007511138916015625, -0.04888916015625, 0.01122283935546875, -0.0072479248046875, 0.04217529296875, 0.0377197265625, 0.05303955078125, 0.01520538330078125, -0.0384521484375, 0.00800323486328125, 0.01009368896484375, -0.00605010986328125, -0.021759033203125, 0.007472991943359375, 0.0035152435302734375, -0.0059661865234375, -0.0027408599853515625, 0.0179595947265625, 0.00005424022674560547, 0.07379150390625, 0.031280517578125, -0.10089111328125, -0.0003094673156738281, 0.0260772705078125, -0.04052734375, -0.01026153564453125, -0.0014781951904296875, -0.0015735626220703125, 0.030548095703125, -0.01111602783203125, -0.0006504058837890625, 0.043975830078125, 0.037628173828125, -0.01415252685546875, 0.045928955078125, 0.00815582275390625, -0.0007996559143066406, 0.01346588134765625, -0.0136566162109375, 0.03955078125, 0.0128936767578125, -0.0711669921875, -0.00005918741226196289, -0.03204345703125, -0.01319122314453125, -0.0002872943878173828, 0.019775390625, -0.01947021484375, 0.050079345703125, 0.01415252685546875, -0.00409698486328125, 0.00496673583984375, -0.0335693359375, 0.0253143310546875, 0.0039520263671875, -0.00330352783203125, 0.014739990234375, -0.041168212890625, -0.0249786376953125, -0.00063323974609375, 0.0323486328125, -0.00875091552734375, 0.01136016845703125, 0.014404296875, 0.0167388916015625, -0.0462646484375, 0.0191192626953125, -0.05810546875, -0.043121337890625, 0.00560760498046875, 0.01183319091796875, 0.01515960693359375, -0.006816864013671875, -0.060821533203125, 0.039398193359375, 0.03009033203125, 0.011810302734375, 0.04046630859375, -0.0030117034912109375, 0.0084228515625, -0.022186279296875, 0.021636962890625, -0.0335693359375, -0.0599365234375, -0.037139892578125, 0.01611328125, -0.00943756103515625, -0.00968170166015625, -0.02545166015625, 0.04705810546875, -0.0209808349609375, 0.01251983642578125, 0.00647735595703125, -0.0099945068359375, -0.01122283935546875, 0.0180816650390625, -0.029632568359375, 0.00093841552734375, -0.007801055908203125, -0.02947998046875, -0.0104827880859375, 0.00499725341796875, 0.00628662109375, -0.0208587646484375, 0.0177459716796875, -0.053558349609375, -0.0220794677734375, 0.0228271484375, -0.03570556640625, 0.0178680419921875, -0.045501708984375, 0.032440185546875, 0.043365478515625, 0.0198974609375, -0.0221099853515625, -0.03057861328125, 0.00482940673828125, -0.01605224609375, -0.0122222900390625, -0.06011962890625, -0.0007905960083007812, -0.012786865234375, 0.0234832763671875, -0.000919342041015625, 0.01025390625, -0.0220184326171875, -0.004512786865234375, -0.01422882080078125, -0.0196075439453125, -0.02435302734375, -0.00026154518127441406, -0.0155181884765625, -0.032867431640625, 0.0010213851928710938, -0.049591064453125, -0.01898193359375, -0.00971221923828125, -0.00897979736328125, 0.021728515625, 0.0164794921875, 0.0007925033569335938, 0.0015010833740234375, -0.00960540771484375, 0.05419921875, -0.032928466796875, -0.0225982666015625, 0.0095367431640625, -0.0092315673828125, -0.029510498046875, -0.09710693359375, 0.02490234375, -0.1280517578125, -0.01401519775390625, -0.00849151611328125, -0.0029296875, 0.0262298583984375, -0.035491943359375, -0.09912109375, 0.0865478515625, -0.033782958984375, -0.019073486328125, -0.0162811279296875, 0.00920867919921875, -0.0215606689453125, 0.02423095703125, -0.0079803466796875, -0.01244354248046875, 0.0006213188171386719, 0.0333251953125, 0.00530242919921875, 0.0223236083984375, 0.0200347900390625, -0.00830841064453125, -0.029388427734375, 0.00022494792938232422, 0.01385498046875, -0.01141357421875, 0.049224853515625, -0.0113677978515625, 0.004787445068359375, 0.026702880859375, -0.06134033203125, -0.06976318359375, -0.05975341796875, -0.0172119140625, -0.005886077880859375, -0.0004220008850097656, -0.013153076171875, 0.00908660888671875, 0.0343017578125, 0.0574951171875, -0.0027980804443359375, -0.0400390625, 0.0806884765625, 0.012664794921875, -0.03643798828125, 0.02813720703125, -0.0082550048828125, -0.0005197525024414062, -0.0149078369140625, 0.00292205810546875, 0.0009527206420898438, -0.017822265625, 0.00823211669921875, -0.0258941650390625, -0.0007481575012207031, 0.031768798828125, -0.0155487060546875, -0.0005221366882324219, -0.0245513916015625, 0.08843994140625, -0.026275634765625, 0.0207061767578125, 0.0081939697265625, 0.0167388916015625, 0.058135986328125, 0.042877197265625, -0.036895751953125, 0.00699615478515625, 0.0008120536804199219, 0.004993438720703125, 0.0027904510498046875, 0.008941650390625, 0.0157470703125, 0.01189422607421875, -0.0298004150390625, 0.018096923828125, 0.01335906982421875, 0.033050537109375, -0.05316162109375, 0.034759521484375, 0.037841796875, -0.003932952880859375, -0.01039886474609375, -0.00893402099609375, -0.028350830078125, 0.0297393798828125, -0.0380859375, 0.0119171142578125, -0.02569580078125, -0.0236663818359375, 0.0227508544921875, -0.014495849609375, -0.0234222412109375, 0.00617218017578125, -0.01454925537109375, -0.00728607177734375, -0.048187255859375, 0.0017080307006835938 ]
f214dbadcc1166e5a2b9e73257bad3a5cbeb9e93
Wordpress Stackexchange Q: Mysqldump add drop table? I notice in the Codex that the --add-drop-table option is displayed for backing up a database. Before I screw anything up, does this just mean that when the backup is eventually imported, the tables will overwrite if they exist in the destination db? I don't want to drop the tables when I back them up! user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver -u mysqlusername -p databasename (tablename tablename tablename) | bzip2 -c > blog.bak.sql.bz2 Enter password: (enter your mysql password) user@linux~/files/blog> http://codex.wordpress.org/Backing_Up_Your_Database#Using_Straight_MySQL_Commands A: That's because the overall syntax goes something like: mysql>mysqldump --opt --all-databses > all.sql --opt is enabled by default (which implies: --add-drop-table) as mentioned in MySQL documentation.
Q: Mysqldump add drop table? I notice in the Codex that the --add-drop-table option is displayed for backing up a database. Before I screw anything up, does this just mean that when the backup is eventually imported, the tables will overwrite if they exist in the destination db? I don't want to drop the tables when I back them up! user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver -u mysqlusername -p databasename (tablename tablename tablename) | bzip2 -c > blog.bak.sql.bz2 Enter password: (enter your mysql password) user@linux~/files/blog> http://codex.wordpress.org/Backing_Up_Your_Database#Using_Straight_MySQL_Commands A: That's because the overall syntax goes something like: mysql>mysqldump --opt --all-databses > all.sql --opt is enabled by default (which implies: --add-drop-table) as mentioned in MySQL documentation. A: It only affects the output of your MySQL dump in the file that is created. It isn't necessary. It is just there so that if you import the created dump file into a database that already has a table with the same name, it will drop that table and then add the new table in its place. Otherwise you will get an error, and the dump file won't be imported. It adds this line before the create table statement in the dump file: DROP TABLE IF EXISTS `tablename`; If you plan to import the dump file into a fresh database, it won't matter. A: When removing --add-drop-table in this syntax, --add-drop-table is used anyways, because --opt is default (unless you use --skip-opt) and --opt includes --add-drop-table. See here: https://dev.mysql.com/doc/refman/5.6/en/mysqldump.html#option_mysqldump_opt And, as stated above, it doesnt mean that your tables are dropped when you backup, but that the commands for dropping tables are included in the sql file, because that is what you want for a dump, so you can import the dump without getting errors that the tables already exist. A: Yes this would do exactly what it said i.e. It would delete the table if it already existed. Please remember that you are creating a dump that would be imported (with two scenarios); * *if in case of fresh database (or table) creation it make no difference by the drop table statement, because there is no table to drop in the first place. *But to skip deletion of the table already created; use --skip-add-drop-table instead. (Also use --no-create-info with --skip-add-drop-table because you also wouldn't want create table statement as well) i.e. mysqldump --skip-add-drop-table --no-create-info -h mysqlhostserver -u mysqlusername -p databasename tablename | bzip2 -c > blog.bak.sql.bz2 FYI: You can't export more than one table using (tablename, tablename, tablename). Either you export all tables don't use any tablename after databasename OR use only one tablename. Edit Please note that if your table is huge then its is wise to export it in parts. i.e. create a dumps files of 80k (eighty thousand) records (roughly equal to 10 Mb) using the following command; FYI:I had split the export using the where to mysqldump. mysqldump -h mysqlhostserver -u mysqlusername -p --add-drop-table --add-drop-trigger --skip-triggers --dump-date --single-transaction --where='1 limit 0,80000' databasename tablename > /home/blog1.bak.sql mysqldump mysqlhostserver -u mysqlusername -p --skip-add-drop-table --no-create-info --dump-date --single-transaction --where='1 limit 80000,999999' databasename tablename > /home/blog2.bak.sql The above command first creates first 80K record file blog1.bak.sql file (note that i had skipped trigger(s) in this dump. I found that later because it had made me crazy that if the first dump had any associated triggers on insert or update. then when you would be importing this first dump file, * *it would create the table *insert the records in the newly created table. *create triggers associated with this table and enforced them So When you would be importing the other dump file after first; it would enforce the triggers (no way to disable triggers for now; except to rewrite those triggers and add complicated code to disable triggers for debuging Or in our case importing). Usually trigger had code with joins to others tables; that might not be imported before this import and thus cause failure to import.
wordpress
{ "language": "en", "length": 651, "provenance": "stackexchange_00019.jsonl.gz:423164", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62672" }
[ 0.0164337158203125, 0.0192413330078125, -0.01200103759765625, -0.0031185150146484375, 0.01363372802734375, -0.0229339599609375, 0.0242462158203125, -0.0308074951171875, 0.00514984130859375, 0.0107879638671875, -0.0159454345703125, 0.004428863525390625, -0.0204925537109375, -0.0209197998046875, -0.0098114013671875, -0.0127716064453125, 0.052886962890625, -0.040130615234375, 0.032196044921875, 0.01291656494140625, -0.006298065185546875, 0.0430908203125, 0.031982421875, 0.0037441253662109375, -0.003147125244140625, 0.00933837890625, 0.0286712646484375, -0.011016845703125, 0.004749298095703125, 0.00417327880859375, 0.0061187744140625, -0.0256805419921875, -0.004894256591796875, 0.0166015625, 0.038818359375, 0.0270538330078125, 0.0245361328125, 0.011260986328125, 0.017486572265625, 0.025146484375, 0.015625, -0.005962371826171875, 0.046295166015625, -0.009063720703125, 0.006011962890625, -0.035247802734375, 0.042724609375, -0.033843994140625, -0.007099151611328125, -0.019683837890625, -0.00829315185546875, 0.0306243896484375, 0.01503753662109375, -0.0239105224609375, 0.00949859619140625, 0.002285003662109375, 0.012786865234375, 0.042999267578125, 0.010589599609375, 0.00763702392578125, -0.0278167724609375, 0.048736572265625, -0.00481414794921875, -0.024139404296875, -0.009429931640625, -0.007843017578125, 0.0245819091796875, -0.00797271728515625, -0.041961669921875, 0.0129241943359375, 0.0567626953125, -0.019012451171875, -0.0266876220703125, -0.038909912109375, -0.030059814453125, 0.0220184326171875, 0.033050537109375, -0.01555633544921875, -0.0182952880859375, 0.0032634735107421875, 0.010223388671875, -0.01381683349609375, 0.04266357421875, -0.0672607421875, 0.035858154296875, -0.0294189453125, 0.004817962646484375, -0.002017974853515625, -0.0087890625, -0.0094146728515625, -0.0015707015991210938, -0.0238494873046875, -0.0233917236328125, 0.03955078125, -0.01163482666015625, -0.0140380859375, -0.00003319978713989258, 0.01995849609375, 0.0224151611328125, 0.048858642578125, -0.0615234375, -0.0169525146484375, 0.01373291015625, -0.037017822265625, 0.022186279296875, -0.03155517578125, -0.044708251953125, -0.08294677734375, 0.033935546875, 0.04632568359375, -0.04998779296875, 0.03436279296875, -0.010894775390625, -0.0032939910888671875, -0.012451171875, -0.0025920867919921875, -0.053070068359375, 0.033050537109375, -0.0167388916015625, 0.01593017578125, -0.0115966796875, 0.00913238525390625, -0.08233642578125, -0.045501708984375, -0.0104522705078125, -0.0838623046875, -0.0168609619140625, 0.07958984375, -0.062408447265625, 0.0277252197265625, -0.0025177001953125, 0.027618408203125, 0.036041259765625, 0.022918701171875, -0.02362060546875, 0.00473785400390625, 0.04547119140625, -0.024505615234375, 0.0032672882080078125, 0.015869140625, 0.01715087890625, -0.04345703125, -0.035675048828125, 0.0186767578125, -0.00493621826171875, 0.0259552001953125, 0.0233612060546875, 0.010467529296875, -0.0223541259765625, -0.047882080078125, -0.0036411285400390625, -0.01140594482421875, -0.0015811920166015625, 0.002597808837890625, -0.0207366943359375, -0.046966552734375, -0.035980224609375, -0.033905029296875, 0.051483154296875, -0.017669677734375, -0.037261962890625, -0.0079193115234375, 0.0379638671875, -0.0268402099609375, -0.03466796875, 0.020111083984375, -0.03594970703125, -0.004634857177734375, 0.02703857421875, -0.04559326171875, -0.0184326171875, -0.02410888671875, 0.095703125, 0.0008864402770996094, -0.0175933837890625, 0.04058837890625, -0.0004239082336425781, -0.02252197265625, 0.02728271484375, 0.040863037109375, -0.0167388916015625, -0.034423828125, 0.0301666259765625, -0.02105712890625, -0.03668212890625, 0.019439697265625, -0.00547027587890625, 0.05072021484375, 0.031219482421875, 0.0296478271484375, -0.006740570068359375, -0.0204315185546875, -0.036041259765625, 0.0179290771484375, 0.004520416259765625, -0.037994384765625, -0.01432037353515625, -0.024139404296875, -0.0092620849609375, 0.0159454345703125, -0.00579071044921875, 0.0254058837890625, -0.034698486328125, 0.0233917236328125, -0.06756591796875, 0.0198211669921875, -0.0287933349609375, 0.02752685546875, -0.01337432861328125, 0.00225067138671875, 0.0121612548828125, -0.00634765625, -0.015838623046875, -0.001312255859375, -0.009124755859375, 0.01352691650390625, -0.0177459716796875, 0.03436279296875, -0.020263671875, 0.05499267578125, -0.03375244140625, -0.0284881591796875, -0.01313018798828125, -0.0166168212890625, -0.00015270709991455078, -0.04608154296875, -0.002620697021484375, -0.023162841796875, -0.0026092529296875, -0.0206146240234375, 0.00846099853515625, 0.040863037109375, -0.00511932373046875, 0.00635528564453125, -0.0247650146484375, -0.0220489501953125, -0.0038433074951171875, -0.07818603515625, 0.0224609375, 0.06549072265625, 0.03271484375, 0.0205841064453125, -0.005962371826171875, 0.00702667236328125, 0.01983642578125, -0.040252685546875, 0.0179443359375, -0.01377105712890625, -0.005443572998046875, 0.041107177734375, 0.013336181640625, 0.01538848876953125, -0.01300048828125, -0.0775146484375, -0.0028133392333984375, 0.0251922607421875, -0.04833984375, -0.0023632049560546875, -0.0241851806640625, 0.005397796630859375, -0.015472412109375, -0.02752685546875, 0.0287322998046875, -0.034210205078125, 0.04302978515625, -0.01531219482421875, 0.030029296875, 0.0091705322265625, -0.0032176971435546875, -0.0117950439453125, 0.01287078857421875, -0.03802490234375, 0.00582122802734375, 0.0184326171875, -0.003536224365234375, 0.050262451171875, -0.0237579345703125, -0.0101470947265625, 0.03143310546875, 0.01480865478515625, -0.0007085800170898438, 0.0249481201171875, 0.0031299591064453125, -0.01244354248046875, 0.026275634765625, -0.040863037109375, -0.01412200927734375, -0.0274658203125, -0.043304443359375, -0.0023403167724609375, 0.0167388916015625, 0.034637451171875, 0.006496429443359375, -0.027374267578125, 0.016143798828125, 0.006500244140625, 0.07525634765625, -0.01499176025390625, 0.01226806640625, 0.005565643310546875, 0.022735595703125, 0.04571533203125, 0.003917694091796875, -0.0247344970703125, 0.004730224609375, -0.0137176513671875, 0.026458740234375, -0.00977325439453125, -0.01727294921875, -0.011627197265625, -0.05224609375, 0.003917694091796875, 0.034210205078125, 0.018829345703125, 0.0266265869140625, -0.015960693359375, -0.0005960464477539062, 0.03265380859375, -0.032257080078125, -0.026214599609375, -0.0018568038940429688, -0.0083465576171875, -0.010406494140625, 0.009490966796875, -0.013031005859375, -0.01220703125, 0.0031833648681640625, 0.00032329559326171875, -0.0015993118286132812, -0.0226898193359375, -0.00124359130859375, -0.042816162109375, -0.054473876953125, -0.07183837890625, 0.0111083984375, 0.0196990966796875, 0.006252288818359375, 0.07867431640625, 0.0027866363525390625, -0.053436279296875, -0.0208892822265625, -0.060577392578125, -0.0255584716796875, 0.00885772705078125, 0.010009765625, -0.020538330078125, -0.01214599609375, 0.0080413818359375, 0.0208282470703125, 0.0148162841796875, -0.037841796875, -0.0007090568542480469, -0.02276611328125, -0.0008177757263183594, -0.015533447265625, -0.0200042724609375, 0.032470703125, -0.0052337646484375, -0.0227813720703125, -0.052276611328125, -0.00006586313247680664, 0.004741668701171875, -0.001110076904296875, -0.041595458984375, -0.019989013671875, 0.00911712646484375, -0.045684814453125, 0.039459228515625, 0.0699462890625, 0.041900634765625, -0.0008640289306640625, 0.035797119140625, -0.0616455078125, 0.006458282470703125, 0.037139892578125, -0.0309295654296875, 0.05517578125, -0.0307159423828125, -0.0222015380859375, 0.0195770263671875, -0.02508544921875, 0.0008893013000488281, -0.044708251953125, -0.007411956787109375, -0.078125, 0.042327880859375, -0.036895751953125, 0.0124664306640625, -0.04473876953125, -0.022247314453125, -0.0025653839111328125, 0.12103271484375, 0.012847900390625, -0.03704833984375, -0.0133209228515625, -0.00534820556640625, 0.0034351348876953125, 0.0219879150390625, 0.011627197265625, -0.01357269287109375, -0.00676727294921875, -0.038116455078125, -0.02337646484375, -0.0240631103515625, 0.01837158203125, -0.06298828125, 0.0219268798828125, -0.041259765625, 0.0111236572265625, -0.00994873046875, -0.0015916824340820312, 0.049346923828125, 0.003643035888671875, 0.045135498046875, 0.0093536376953125, -0.048065185546875, -0.037353515625, -0.02813720703125, -0.005039215087890625, 0.033721923828125, -0.00542449951171875, 0.0230865478515625, -0.0249786376953125, 0.03631591796875, 0.02685546875, 0.00576019287109375, 0.0274200439453125, 0.0032215118408203125, -0.029541015625, -0.04095458984375, 0.0297698974609375, -0.060394287109375, -0.006134033203125, -0.06536865234375, -0.0426025390625, -0.033416748046875, -0.006343841552734375, 0.063232421875, 0.01128387451171875, -0.007785797119140625, -0.028717041015625, -0.021209716796875, 0.0019521713256835938, 0.00014472007751464844, -0.01555633544921875, 0.0025043487548828125, -0.0183258056640625, -0.0116424560546875, 0.0232086181640625, -0.01259613037109375, -0.02960205078125, 0.0160369873046875, 0.0264892578125, 0.0204010009765625, -0.019439697265625, -0.043243408203125, 0.0396728515625, 0.01218414306640625, -0.03485107421875, 0.0716552734375, 0.037139892578125, 0.044036865234375, 0.007720947265625, -0.0299530029296875, -0.02862548828125, -0.0748291015625, 0.0308837890625, -0.0075225830078125, 0.003154754638671875, 0.0001691579818725586, -0.061187744140625, 0.11810302734375, 0.055450439453125, 0.0017805099487304688, -0.0226287841796875, -0.010284423828125, 0.034454345703125, -0.01549530029296875, -0.00946044921875, -0.058319091796875, -0.056365966796875, 0.020263671875, -0.0445556640625, 0.02178955078125, 0.00926971435546875, -0.0149993896484375, 0.033203125, 0.001708984375, -0.0200958251953125, 0.0163421630859375, 0.0240325927734375, 0.006206512451171875, 0.03497314453125, 0.0013885498046875, -0.00986480712890625, -0.01255035400390625, -0.01110076904296875, 0.09429931640625, 0.0229644775390625, -0.03656005859375, -0.007724761962890625, -0.0175323486328125, 0.0178985595703125, -0.0123748779296875, 0.01323699951171875, -0.0031528472900390625, 0.0035800933837890625, 0.0014524459838867188, 0.0007677078247070312, 0.006656646728515625, 0.007259368896484375, -0.001251220703125, -0.0012760162353515625, 0.0186004638671875, -0.01416778564453125, 0.0196075439453125, 0.0122833251953125, 0.00421142578125, -0.0027008056640625, -0.004650115966796875, 0.01102447509765625, 0.01313018798828125, 0.0227508544921875, 0.01532745361328125, 0.00213623046875, 0.0201568603515625, -0.0145721435546875, 0.0172576904296875, -0.05999755859375, 0.0019741058349609375, -0.000053942203521728516, 0.05810546875, -0.005474090576171875, -0.047271728515625, 0.02838134765625, -0.030670166015625, -0.00775146484375, 0.033233642578125, 0.027069091796875, -0.047698974609375, 0.01256561279296875, -0.005161285400390625, -0.007656097412109375, -0.036407470703125, 0.012115478515625, -0.015960693359375, -0.0037784576416015625, 0.0029659271240234375, 0.0095367431640625, 0.0101165771484375, -0.041473388671875, -0.0423583984375, -0.00890350341796875, -0.0478515625, -0.0411376953125, 0.00885772705078125, 0.022705078125, -0.034027099609375, -0.02435302734375, 0.044219970703125, -0.00751495361328125, 0.038360595703125, -0.01392364501953125, -0.0276336669921875, -0.0186920166015625, 0.004009246826171875, 0.03521728515625, 0.0128631591796875, 0.018646240234375, -0.0296478271484375, -0.029022216796875, -0.025482177734375, 0.01200103759765625, -0.012664794921875, -0.0196075439453125, -0.0146484375, 0.01308441162109375, -0.0033473968505859375, -0.0008859634399414062, -0.035797119140625, -0.021484375, 0.003520965576171875, 0.04254150390625, -0.05963134765625, -0.0232391357421875, 0.0877685546875, -0.042236328125, 0.042572021484375, -0.00457763671875, 0.03717041015625, -0.0242767333984375, 0.00910186767578125, 0.013427734375, -0.022430419921875, -0.00896453857421875, -0.005279541015625, -0.033843994140625, -0.0310211181640625, -0.00751495361328125, -0.00959014892578125, -0.0082855224609375, -0.00965118408203125, -0.0027141571044921875, -0.0169830322265625, 0.0653076171875, 0.01532745361328125, -0.004032135009765625, 0.01953125, -0.04443359375, 0.043182373046875, 0.0095367431640625, 0.022552490234375, 0.00402069091796875, -0.051361083984375, 0.01285552978515625, 0.033203125, -0.0257415771484375, 0.06365966796875, 0.07049560546875, -0.0214385986328125, 0.0462646484375, 0.004375457763671875, 0.013153076171875, 0.026214599609375, -0.019012451171875, -0.0250701904296875, -0.028656005859375, 0.026947021484375, 0.00951385498046875, 0.004413604736328125, 0.034454345703125, -0.007137298583984375, 0.033416748046875, 0.0008516311645507812, 0.043975830078125, -0.0295867919921875, 0.0228118896484375, 0.01300048828125, -0.027587890625, 0.03228759765625, -0.0030155181884765625, 0.008270263671875, 0.0197296142578125, -0.03656005859375, 0.01177215576171875, -0.06500244140625, -0.043548583984375, 0.007965087890625, -0.0286102294921875, -0.02947998046875, -0.06561279296875, 0.006031036376953125, 0.01171875, 0.03778076171875, -0.02374267578125, 0.01654052734375, 0.036468505859375, 0.0290679931640625, -0.004974365234375, -0.0020084381103515625, 0.00531005859375, 0.0243988037109375, -0.0377197265625, -0.0279388427734375, -0.0013647079467773438, -0.045654296875, 0.062469482421875, 0.043853759765625, -0.02972412109375, 0.005283355712890625, 0.0032672882080078125, 0.027587890625, -0.038116455078125, -0.00922393798828125, 0.01445770263671875, -0.052886962890625, -0.00893402099609375, 0.018798828125, -0.06732177734375, -0.0333251953125, -0.0023136138916015625, -0.0265655517578125, 0.042633056640625, -0.06317138671875, 0.001708984375, 0.028045654296875, 0.00974273681640625, -0.00553131103515625, -0.004947662353515625, 0.047760009765625, -0.045135498046875, -0.0199737548828125, 0.021820068359375, -0.026947021484375, -0.05078125, 0.00848388671875, -0.04388427734375, 0.07977294921875, -0.003620147705078125, -0.002521514892578125, -0.0022563934326171875, 0.037628173828125, -0.02191162109375, 0.0255889892578125, -0.0791015625, 0.032318115234375, 0.01284027099609375, 0.075927734375, -0.072265625, 0.00299835205078125, 0.0102996826171875, -0.0051727294921875, 0.020965576171875, -0.00371551513671875, -0.02935791015625, -0.00809478759765625, 0.034820556640625, 0.03759765625, 0.0292205810546875, 0.0189971923828125, -0.00946807861328125, 0.03765869140625, 0.0545654296875, -0.0204925537109375, 0.0138397216796875, 0.03973388671875, -0.034637451171875, 0.0150146484375, 0.01151275634765625, 0.0311279296875, -0.00876617431640625, -0.0051116943359375, 0.06549072265625, -0.03656005859375, -0.044158935546875, -0.039886474609375, 0.032257080078125, -0.002758026123046875, 0.0119781494140625, -0.03314208984375, -0.00788116455078125, -0.018035888671875, 0.03125, -0.0010004043579101562, 0.007427215576171875, 0.06719970703125, 0.0123748779296875, 0.0034122467041015625, 0.035980224609375, 0.0144195556640625, 0.014923095703125, 0.0196990966796875, 0.05322265625, 0.0419921875, 0.051116943359375, 0.0014629364013671875, 0.0180511474609375, -0.00614166259765625, 0.055145263671875, -0.0401611328125, 0.0004949569702148438, 0.0192108154296875, 0.0024356842041015625, -0.0248565673828125, -0.0307159423828125, -0.022857666015625, -0.0301971435546875, -0.0013179779052734375, -0.0183258056640625, -0.036041259765625, -0.01042938232421875, -0.0180206298828125, 0.00267791748046875, 0.01184844970703125, 0.0750732421875, -0.0182342529296875, 0.0182037353515625, 0.0073394775390625, -0.0247650146484375, -0.02740478515625, -0.011199951171875, 0.00740814208984375, 0.026885986328125, 0.01238250732421875, -0.029632568359375, 0.00749969482421875, 0.007419586181640625, 0.044097900390625, -0.05926513671875, -0.0275726318359375, 0.0389404296875, 0.05126953125, 0.0172576904296875, 0.0024623870849609375, 0.049835205078125, 0.018829345703125, -0.054534912109375, -0.00873565673828125, 0.0095367431640625, -0.04119873046875, 0.0054473876953125, -0.046783447265625, 0.044769287109375, 0.047119140625, 0.0235595703125, -0.005054473876953125, 0.0141448974609375, 0.050262451171875, -0.03668212890625, 0.01690673828125, -0.00473785400390625, -0.00875091552734375, 0.0158843994140625, -0.00290679931640625, -0.0189666748046875, -0.00782012939453125, -0.03033447265625, -0.00893402099609375, -0.0150299072265625, 0.0293121337890625, -0.004665374755859375, 0.00562286376953125, 0.01308441162109375, 0.02392578125, 0.0247344970703125, -0.0263519287109375, 0.0010938644409179688, 0.038665771484375, -0.0171356201171875, -0.0191650390625, 0.039703369140625, -0.0191497802734375, -0.0248870849609375, -0.023681640625, 0.0014696121215820312, 0.0289306640625, -0.005321502685546875, 0.043121337890625, -0.0107879638671875, 0.0089874267578125, 0.027557373046875, 0.0211029052734375, 0.00836944580078125, 0.026947021484375, -0.01023101806640625, 0.0103302001953125, 0.03363037109375, -0.024322509765625, -0.0213623046875, -0.00405120849609375, 0.032073974609375, -0.036468505859375, -0.019622802734375, -0.007015228271484375, 0.035491943359375, -0.0153656005859375, 0.026031494140625, -0.0180816650390625, -0.027069091796875, 0.0200347900390625, 0.023712158203125, 0.01027679443359375, 0.01331329345703125, 0.003509521484375, 0.0160064697265625, 0.0124053955078125, 0.003452301025390625, 0.0187530517578125, -0.01023101806640625, 0.0218658447265625, 0.01139068603515625, -0.01093292236328125, -0.034515380859375, 0.0201416015625, 0.0012950897216796875, 0.01544189453125, 0.0154266357421875, 0.04351806640625, 0.04498291015625, -0.01169586181640625, -0.0208740234375, 0.042999267578125, 0.052978515625, -0.0019130706787109375, 0.021453857421875, -0.012359619140625, -0.026580810546875, 0.0472412109375, 0.00423431396484375, -0.034423828125, -0.01451873779296875, -0.0360107421875, 0.0173797607421875, -0.0286865234375, -0.04437255859375, -0.097412109375, 0.023529052734375, 0.016571044921875, 0.003467559814453125, -0.06158447265625, 0.0474853515625, -0.0126495361328125, 0.0262603759765625, -0.0212554931640625, -0.01480865478515625, -0.0120697021484375, 0.037628173828125, -0.016632080078125, -0.10076904296875, -0.048736572265625, 0.0850830078125, -0.078125, -0.01114654541015625, -0.013641357421875, -0.004230499267578125, 0.02252197265625, -0.0028934478759765625, 0.0035419464111328125, 0.051361083984375, 0.004917144775390625, -0.047821044921875, 0.02996826171875, -0.0228424072265625, 0.006870269775390625, -0.055328369140625, -0.0208282470703125, -0.08343505859375, 0.01276397705078125, -0.042144775390625, 0.0287017822265625, 0.0264892578125, -0.0227508544921875, -0.034637451171875, 0.033111572265625, -0.01242828369140625, -0.01473236083984375, 0.004199981689453125, -0.0180511474609375, -0.048492431640625, 0.0758056640625, 0.0224761962890625, -0.027130126953125, 0.0029315948486328125, 0.03533935546875, 0.0094451904296875, 0.0300140380859375, 0.0025177001953125, 0.00923919677734375, -0.044097900390625, 0.0149078369140625, -0.0006432533264160156, 0.019805908203125, 0.02978515625, -0.04949951171875, 0.09002685546875, 0.0784912109375, -0.00563812255859375, 0.0234375, 0.01009368896484375, -0.051483154296875, -0.007320404052734375, 0.00354766845703125, -0.05816650390625, -0.0159912109375, 0.10772705078125, 0.07098388671875, 0.040008544921875, -0.035400390625, -0.06689453125, -0.08251953125, 0.00466156005859375, -0.03741455078125, 0.0193634033203125, -0.0899658203125, 0.0003139972686767578, 0.01447296142578125, -0.0134429931640625, 0.053863525390625, 0.0165557861328125, -0.00897979736328125, 0.0254058837890625, 0.038787841796875, -0.025054931640625, -0.070068359375, 0.035491943359375, 0.051239013671875, -0.032745361328125, -0.0132598876953125, 0.019073486328125, -0.0214385986328125, 0.0172271728515625, 0.04241943359375, -0.040069580078125, -0.0364990234375, 0.0185699462890625, 0.029144287109375, -0.024871826171875, -0.00923919677734375, -0.00750732421875, 0.00439453125, 0.01108551025390625, 0.0188751220703125, -0.0087127685546875, 0.03631591796875, -0.003360748291015625, 0.05718994140625, -0.0052642822265625, 0.021209716796875, 0.005962371826171875, -0.06915283203125, -0.0147552490234375, 0.0135498046875, 0.000507354736328125, -0.0035190582275390625, 0.0158538818359375, -0.01471710205078125, -0.0036525726318359375, -0.0181427001953125, 0.0184173583984375, -0.06903076171875, 0.062164306640625, -0.0272674560546875, 0.01238250732421875, 0.0457763671875 ]
8fa1c343c3569167a3fac216a0930c38f72c4347
Wordpress Stackexchange Q: When switching from html to visual editor the tag gets corrupted I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. <iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;embedded=true" class="scale-with-grid"></iframe> And then I switch to visual mode and come back, it immediately removes the class="scale-with-grid" and changes it to width="320" height="240" <iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;embedded=true" width="320" height="240"></iframe> How do I avoid this? I used this "Raw HTML" plugin but it didn't apply to this iframe situation whatsoever. A: On default is the iframe tag a not allowed tag in the editor. You must change the filter for allowed this html tag. Copy the follow source in a plugin and allow iframe for the editor TinyMCE. add_filter( 'tiny_mce_before_init', 'fb_change_mce_options' ); function fb_change_mce_options( $tags ) { // Comma separated string od extendes tags // Command separated string of extended elements $ext = 'iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src|id|class|title|style]'; if ( isset( $tags['extended_valid_elements'] ) ) $tags['extended_valid_elements'] .= ',' . $ext; else $tags['extended_valid_elements'] = $ext; return $tags; }
Q: When switching from html to visual editor the tag gets corrupted I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. <iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;embedded=true" class="scale-with-grid"></iframe> And then I switch to visual mode and come back, it immediately removes the class="scale-with-grid" and changes it to width="320" height="240" <iframe src="https://docs.google.com/document/pub?id=1fsm-cvpdfX-8tXauGrQgRmgWONTpX8J3almvZhzBeCA&amp;embedded=true" width="320" height="240"></iframe> How do I avoid this? I used this "Raw HTML" plugin but it didn't apply to this iframe situation whatsoever. A: On default is the iframe tag a not allowed tag in the editor. You must change the filter for allowed this html tag. Copy the follow source in a plugin and allow iframe for the editor TinyMCE. add_filter( 'tiny_mce_before_init', 'fb_change_mce_options' ); function fb_change_mce_options( $tags ) { // Comma separated string od extendes tags // Command separated string of extended elements $ext = 'iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src|id|class|title|style]'; if ( isset( $tags['extended_valid_elements'] ) ) $tags['extended_valid_elements'] .= ',' . $ext; else $tags['extended_valid_elements'] = $ext; return $tags; } A: You could make use of an iframe-shortcode. Here's a small plugin to allow that: <?php ! defined( 'ABSPATH' ) AND exit; /** Plugin Name: (#62729) Shortcode to display an iframe */ function wpse62729_allow_iframes_tinymce( $attr ) { global $post; $attr = shortcode_atts( array( 'src' => '' ,'width' => '100%' ,'height' => '100%' ,'name' => md5( $post->post_title ) ,'scrolling' => 'no' ,'marginheight' => 0 ,'marginwidth' => 0 ,'frameborder' => 0 ,'align' => is_rtl() ? 'right' : 'left' ), $attr ); $html = "<iframe"; foreach ( $attr as $key => $val ) { $html .= " {$key}='{$val}'"; } $html .= "><p>"; // Message if not possible to display iframe $html .= sprinft( 'Displaying the iframe is not possible. View the %ssource following this link%s.' ,"<a href='{$attr['src']}' target='_blank'>" ,"</a>" ); $html .= "</p></iframe>"; return $html; } add_shortcode( 'iframe', 'wpse62729_allow_iframes_tinymce' );
wordpress
{ "language": "en", "length": 314, "provenance": "stackexchange_00019.jsonl.gz:423187", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62729" }
[ 0.02203369140625, -0.0196380615234375, 0.000667572021484375, 0.0105438232421875, 0.01678466796875, -0.035430908203125, 0.05438232421875, -0.0106658935546875, 0.01233673095703125, 0.021881103515625, -0.0233001708984375, 0.01458740234375, -0.00969696044921875, -0.0156707763671875, 0.004791259765625, -0.005008697509765625, 0.017791748046875, 0.0188446044921875, 0.0163421630859375, -0.0152130126953125, 0.0013484954833984375, -0.0005087852478027344, 0.005855560302734375, 0.00017070770263671875, 0.0251312255859375, -0.0286712646484375, 0.03814697265625, -0.033111572265625, 0.00047016143798828125, -0.0233306884765625, 0.0207977294921875, 0.0019445419311523438, 0.045745849609375, 0.0670166015625, -0.1165771484375, 0.0360107421875, -0.021942138671875, 0.0289154052734375, -0.0275726318359375, 0.04498291015625, 0.0242156982421875, -0.01708984375, 0.046356201171875, -0.006015777587890625, 0.00920867919921875, -0.00914764404296875, 0.01482391357421875, -0.05902099609375, 0.014923095703125, -0.0171661376953125, 0.00499725341796875, -0.02435302734375, 0.0272064208984375, -0.0477294921875, -0.020721435546875, 0.004833221435546875, -0.0206298828125, -0.0173187255859375, -0.00594329833984375, 0.0726318359375, 0.040069580078125, 0.023284912109375, -0.023681640625, -0.0215606689453125, 0.007495880126953125, -0.041473388671875, -0.063720703125, 0.0198211669921875, -0.00009530782699584961, 0.027069091796875, 0.040679931640625, -0.0251617431640625, 0.00814056396484375, -0.037689208984375, 0.0006728172302246094, 0.0283203125, -0.0229034423828125, 0.004924774169921875, 0.034393310546875, -0.033966064453125, 0.01092529296875, 0.0252685546875, -0.005046844482421875, -0.01678466796875, -0.00797271728515625, -0.01165008544921875, -0.0084991455078125, -0.01702880859375, -0.003276824951171875, 0.02752685546875, -0.01009368896484375, 0.0011196136474609375, 0.03314208984375, 0.0226898193359375, -0.02606201171875, -0.00821685791015625, 0.019439697265625, 0.018341064453125, -0.010498046875, 0.0171356201171875, 0.0032024383544921875, -0.054931640625, 0.0494384765625, -0.03997802734375, 0.0171966552734375, 0.045623779296875, 0.00730133056640625, 0.0244598388671875, 0.054168701171875, -0.0083160400390625, 0.0191650390625, 0.041015625, -0.0284881591796875, -0.007244110107421875, -0.03509521484375, 0.00010401010513305664, -0.036041259765625, -0.0095062255859375, -0.0117340087890625, 0.0089111328125, 0.00907135009765625, 0.035186767578125, -0.016571044921875, -0.0189666748046875, -0.01442718505859375, -0.022918701171875, 0.00943756103515625, -0.034393310546875, -0.0080413818359375, 0.010162353515625, -0.034271240234375, -0.009063720703125, 0.049163818359375, 0.051849365234375, 0.0310821533203125, -0.01690673828125, 0.0041656494140625, -0.0235137939453125, -0.0269622802734375, 0.024017333984375, -0.0190277099609375, -0.0236663818359375, 0.0028057098388671875, -0.0226593017578125, -0.0323486328125, 0.046966552734375, 0.05218505859375, -0.0161590576171875, -0.0777587890625, -0.11199951171875, 0.024322509765625, -0.007476806640625, 0.06561279296875, 0.01239776611328125, -0.03271484375, -0.06610107421875, 0.07879638671875, -0.07568359375, -0.011566162109375, -0.1146240234375, 0.00476837158203125, 0.0023059844970703125, 0.055206298828125, -0.05047607421875, -0.0109100341796875, -0.0309600830078125, -0.09210205078125, 0.0005440711975097656, 0.035400390625, 0.0987548828125, -0.0202178955078125, 0.00804901123046875, 0.003177642822265625, 0.01165008544921875, -0.0177764892578125, -0.0033817291259765625, -0.0166015625, 0.015380859375, 0.0236968994140625, 0.0030040740966796875, -0.00012290477752685547, -0.0290679931640625, 0.061859130859375, -0.01444244384765625, -0.035552978515625, 0.002758026123046875, -0.001132965087890625, 0.0341796875, 0.0202789306640625, 0.023193359375, 0.0122833251953125, -0.0015430450439453125, 0.0199127197265625, 0.0185699462890625, 0.0271148681640625, -0.032501220703125, -0.0251312255859375, -0.01473236083984375, -0.0011911392211914062, -0.04071044921875, 0.056732177734375, -0.029266357421875, 0.0309906005859375, -0.06396484375, -0.06292724609375, -0.0203399658203125, -0.0298614501953125, 0.040557861328125, 0.008697509765625, -0.0015125274658203125, -0.0013093948364257812, -0.039581298828125, -0.00841522216796875, 0.05767822265625, -0.0064697265625, 0.0223236083984375, 0.01053619384765625, 0.0518798828125, -0.001552581787109375, 0.045013427734375, 0.0040130615234375, -0.034149169921875, 0.00872802734375, 0.03240966796875, 0.0170440673828125, -0.009857177734375, 0.0038890838623046875, -0.0031223297119140625, 0.041900634765625, 0.0145111083984375, 0.034698486328125, 0.0018291473388671875, -0.012542724609375, 0.020751953125, -0.02313232421875, -0.0229644775390625, -0.0181732177734375, -0.0628662109375, 0.043792724609375, 0.050506591796875, 0.038818359375, 0.0194854736328125, -0.01110076904296875, -0.011932373046875, 0.061004638671875, -0.006732940673828125, 0.0145111083984375, -0.03118896484375, -0.01922607421875, -0.00630950927734375, 0.014556884765625, -0.0102996826171875, 0.026763916015625, -0.00887298583984375, 0.0116729736328125, 0.00567626953125, -0.00891876220703125, 0.01296234130859375, -0.006610870361328125, 0.0101318359375, 0.003688812255859375, 0.014312744140625, -0.0045318603515625, -0.0109405517578125, 0.04779052734375, 0.007274627685546875, 0.03155517578125, 0.0174407958984375, -0.036376953125, 0.0109710693359375, 0.0230255126953125, 0.020416259765625, -0.01399993896484375, 0.036163330078125, 0.04937744140625, 0.010528564453125, -0.0546875, -0.0004875659942626953, -0.004657745361328125, 0.0276641845703125, 0.0013799667358398438, 0.03680419921875, -0.03167724609375, -0.011962890625, -0.0112762451171875, -0.0193328857421875, -0.008087158203125, 0.02374267578125, 0.0287628173828125, -0.0179443359375, 0.01328277587890625, -0.006549835205078125, -0.0394287109375, 0.04876708984375, -0.007465362548828125, -0.054168701171875, 0.0138397216796875, -0.061981201171875, 0.06536865234375, -0.0386962890625, 0.061492919921875, 0.0679931640625, -0.036468505859375, 0.043182373046875, 0.0016193389892578125, -0.00933074951171875, -0.004756927490234375, 0.004390716552734375, -0.005428314208984375, -0.014617919921875, -0.026031494140625, 0.029510498046875, 0.01800537109375, -0.0239715576171875, 0.03570556640625, -0.0216064453125, -0.031707763671875, 0.025421142578125, -0.05084228515625, 0.0276336669921875, 0.040069580078125, -0.0888671875, -0.0406494140625, 0.01212310791015625, -0.086181640625, -0.0022411346435546875, 0.054351806640625, -0.0062103271484375, 0.00934600830078125, -0.01511383056640625, -0.007617950439453125, 0.009613037109375, -0.035675048828125, 0.03741455078125, 0.00917816162109375, 0.0011377334594726562, 0.0254364013671875, -0.0202484130859375, 0.0095062255859375, -0.0211334228515625, 0.044036865234375, -0.0487060546875, -0.01580810546875, 0.0274505615234375, -0.014923095703125, -0.06036376953125, -0.0247039794921875, -0.005817413330078125, -0.03448486328125, -0.0230712890625, 0.03619384765625, 0.0027618408203125, -0.0129547119140625, -0.03863525390625, 0.006832122802734375, -0.0009684562683105469, -0.003509521484375, 0.00031256675720214844, 0.04107666015625, -0.030487060546875, -0.025604248046875, 0.00357818603515625, -0.02740478515625, 0.040313720703125, -0.005077362060546875, -0.0038509368896484375, 0.022735595703125, 0.028045654296875, 0.0284576416015625, 0.0161285400390625, 0.09515380859375, -0.0167388916015625, -0.0068359375, -0.033477783203125, -0.016693115234375, -0.07568359375, 0.0091094970703125, -0.02606201171875, 0.01123046875, 0.0006623268127441406, -0.026611328125, -0.01169586181640625, -0.0188751220703125, -0.01325225830078125, 0.0267791748046875, 0.0240020751953125, -0.038604736328125, 0.0285797119140625, -0.01837158203125, 0.00567626953125, -0.0169219970703125, 0.0277099609375, -0.01407623291015625, -0.017303466796875, -0.01113128662109375, -0.020843505859375, 0.036376953125, 0.00023877620697021484, -0.01428985595703125, -0.018096923828125, -0.045806884765625, -0.002780914306640625, -0.0280609130859375, -0.018890380859375, -0.01222991943359375, 0.00255584716796875, -0.007564544677734375, -0.035247802734375, 0.032745361328125, 0.0445556640625, -0.03253173828125, 0.01372528076171875, -0.01338958740234375, -0.0063629150390625, -0.0186767578125, 0.021942138671875, -0.0987548828125, -0.02215576171875, -0.0300750732421875, 0.062042236328125, -0.01091766357421875, 0.048248291015625, -0.0416259765625, 0.062286376953125, 0.0009503364562988281, 0.01026153564453125, -0.00637054443359375, -0.000904083251953125, -0.00010138750076293945, -0.01561737060546875, -0.00971221923828125, -0.02740478515625, -0.0166168212890625, -0.0017147064208984375, -0.0231781005859375, -0.0193328857421875, -0.018035888671875, -0.0537109375, 0.0401611328125, -0.03173828125, -0.07952880859375, -0.033294677734375, -0.016265869140625, -0.015380859375, 0.00621795654296875, -0.0270843505859375, -0.014373779296875, -0.061737060546875, 0.0675048828125, 0.03350830078125, 0.01113128662109375, -0.0189666748046875, 0.0594482421875, 0.00412750244140625, -0.054718017578125, -0.00771331787109375, -0.023040771484375, 0.0247344970703125, -0.01323699951171875, 0.00344085693359375, -0.003078460693359375, -0.0148468017578125, 0.039093017578125, -0.019012451171875, 0.0233612060546875, -0.028900146484375, 0.06689453125, -0.006099700927734375, -0.02166748046875, 0.036285400390625, 0.006816864013671875, -0.0292510986328125, -0.0146484375, -0.013763427734375, 0.0316162109375, 0.02069091796875, -0.006145477294921875, 0.006404876708984375, -0.00995635986328125, -0.00551605224609375, 0.0104827880859375, -0.0233001708984375, 0.06756591796875, 0.037506103515625, 0.04791259765625, -0.007213592529296875, -0.017578125, 0.01166534423828125, -0.0265960693359375, -0.012451171875, 0.011077880859375, -0.0030765533447265625, 0.01396942138671875, -0.016387939453125, -0.036529541015625, -0.0247344970703125, 0.0025177001953125, 0.01064300537109375, 0.009124755859375, -0.0205078125, -0.03369140625, -0.0008358955383300781, 0.01276397705078125, -0.004764556884765625, 0.03643798828125, 0.0171051025390625, 0.01549530029296875, -0.01873779296875, -0.00881195068359375, 0.046234130859375, -0.0025157928466796875, -0.032928466796875, -0.03265380859375, -0.02667236328125, -0.01145172119140625, 0.0004010200500488281, 0.0225677490234375, 0.0062713623046875, 0.0004010200500488281, -0.01690673828125, 0.0247650146484375, -0.00481414794921875, 0.02642822265625, 0.0110931396484375, 0.005573272705078125, 0.006153106689453125, 0.004489898681640625, 0.0019159317016601562, -0.021514892578125, -0.0190277099609375, -0.01183319091796875, 0.01800537109375, -0.0202789306640625, -0.00830078125, 0.049835205078125, -0.01033782958984375, -0.01311492919921875, 0.029541015625, 0.00014388561248779297, -0.0333251953125, -0.01800537109375, 0.004276275634765625, 0.02191162109375, -0.00800323486328125, -0.053070068359375, -0.0003960132598876953, -0.0687255859375, -0.004497528076171875, 0.0015125274658203125, -0.050567626953125, 0.024871826171875, 0.01354217529296875, -0.0003509521484375, -0.00919342041015625, -0.030914306640625, -0.0498046875, -0.01419830322265625, -0.0183563232421875, -0.0222625732421875, 0.07476806640625, -0.045318603515625, 0.0301361083984375, -0.01244354248046875, 0.0098114013671875, -0.03155517578125, 0.02362060546875, -0.004489898681640625, 0.004550933837890625, -0.029296875, -0.00707244873046875, -0.0787353515625, -0.03729248046875, -0.05548095703125, -0.017974853515625, -0.035491943359375, 0.006305694580078125, -0.01560211181640625, 0.0223846435546875, -0.0236358642578125, -0.005657196044921875, -0.0013151168823242188, 0.0201416015625, 0.0004489421844482422, 0.068359375, -0.024505615234375, 0.02447509765625, 0.01502227783203125, 0.042510986328125, -0.002483367919921875, -0.01561737060546875, -0.02178955078125, -0.013275146484375, -0.0178985595703125, -0.0186614990234375, 0.005794525146484375, 0.03448486328125, -0.0260009765625, -0.005397796630859375, 0.0318603515625, 0.0084075927734375, 0.00923919677734375, -0.035614013671875, -0.0189971923828125, -0.0257720947265625, 0.0570068359375, -0.053863525390625, 0.0091094970703125, 0.00888824462890625, -0.02069091796875, -0.00968170166015625, -0.00032138824462890625, 0.0289459228515625, 0.0011854171752929688, -0.0143890380859375, 0.0048065185546875, -0.00708770751953125, 0.01270294189453125, -0.0110321044921875, 0.025604248046875, -0.01047515869140625, 0.0218505859375, 0.0245208740234375, 0.01425933837890625, 0.025665283203125, -0.0028438568115234375, -0.0194549560546875, 0.01529693603515625, 0.0247039794921875, -0.0200042724609375, 0.0010128021240234375, 0.017669677734375, -0.0086517333984375, 0.01953125, 0.043731689453125, 0.0657958984375, -0.066650390625, 0.00652313232421875, 0.0240325927734375, -0.0089263916015625, 0.01548004150390625, -0.004741668701171875, -0.0061187744140625, -0.0662841796875, 0.0673828125, -0.01235198974609375, 0.0038776397705078125, 0.024169921875, -0.020477294921875, -0.000988006591796875, -0.01508331298828125, 0.035552978515625, 0.0032482147216796875, -0.05133056640625, 0.0009298324584960938, 0.0061187744140625, -0.004016876220703125, 0.00007253885269165039, 0.032073974609375, -0.0140380859375, -0.0306396484375, -0.04913330078125, -0.02191162109375, 0.003154754638671875, -0.061279296875, -0.00925445556640625, 0.01348114013671875, 0.002777099609375, 0.0307464599609375, -0.024505615234375, 0.011016845703125, 0.0152587890625, -0.03533935546875, 0.042449951171875, 0.0043792724609375, -0.00690460205078125, -0.003864288330078125, 0.03179931640625, 0.0017910003662109375, -0.0017719268798828125, -0.01261138916015625, 0.0024089813232421875, -0.0164031982421875, -0.03680419921875, 0.047119140625, -0.0252532958984375, 0.03582763671875, 0.0288238525390625, -0.0125885009765625, -0.01157379150390625, -0.02557373046875, -0.067138671875, -0.02362060546875, -0.023406982421875, -0.05841064453125, 0.030914306640625, -0.0178375244140625, -0.09576416015625, 0.123291015625, 0.035125732421875, 0.036102294921875, -0.0035457611083984375, 0.053192138671875, -0.0714111328125, -0.00838470458984375, -0.0038909912109375, -0.01433563232421875, 0.01419830322265625, -0.016082763671875, -0.001773834228515625, -0.006591796875, -0.00934600830078125, 0.0423583984375, -0.020477294921875, -0.012054443359375, -0.036651611328125, 0.00960540771484375, 0.05084228515625, 0.055816650390625, 0.03314208984375, 0.01318359375, -0.005901336669921875, -0.00740814208984375, -0.01690673828125, -0.012939453125, 0.0168609619140625, -0.04266357421875, -0.042449951171875, 0.0088348388671875, -0.0098724365234375, -0.011016845703125, 0.01441192626953125, -0.05926513671875, 0.019378662109375, -0.0008983612060546875, -0.03240966796875, -0.04937744140625, -0.0266265869140625, 0.058685302734375, 0.01465606689453125, -0.03436279296875, -0.049346923828125, -0.0246124267578125, 0.023406982421875, 0.00618743896484375, -0.011322021484375, 0.001068115234375, -0.004840850830078125, 0.048553466796875, -0.022186279296875, -0.0228424072265625, 0.00887298583984375, 0.028533935546875, -0.0116424560546875, -0.032562255859375, -0.0086212158203125, -0.0709228515625, -0.005359649658203125, 0.04888916015625, 0.006954193115234375, -0.021728515625, -0.00901031494140625, -0.0050048828125, -0.006725311279296875, -0.01201629638671875, -0.039306640625, -0.028045654296875, 0.022125244140625, 0.048614501953125, -0.0173187255859375, -0.003314971923828125, 0.01058197021484375, 0.0216827392578125, 0.01922607421875, 0.0295257568359375, -0.0179901123046875, -0.01224517822265625, -0.0687255859375, -0.0025730133056640625, 0.0225067138671875, 0.07330322265625, 0.051849365234375, 0.04449462890625, 0.046875, -0.041168212890625, -0.052490234375, 0.0364990234375, 0.00809478759765625, 0.046844482421875, -0.039306640625, 0.0163421630859375, 0.0119476318359375, 0.039093017578125, -0.0312347412109375, -0.01229095458984375, -0.00295257568359375, -0.0207977294921875, -0.061614990234375, -0.01250457763671875, 0.00789642333984375, -0.049774169921875, -0.003307342529296875, -0.03656005859375, -0.01416015625, 0.01019287109375, -0.01953125, 0.03094482421875, -0.0177459716796875, 0.044952392578125, 0.0014324188232421875, 0.06280517578125, 0.004512786865234375, 0.01776123046875, -0.01334381103515625, -0.0014886856079101562, 0.017608642578125, 0.04437255859375, 0.00124359130859375, 0.0267333984375, -0.03875732421875, -0.040130615234375, -0.012542724609375, 0.0272979736328125, -0.01337432861328125, 0.0296783447265625, 0.0086212158203125, -0.0323486328125, -0.018157958984375, 0.03326416015625, 0.026275634765625, 0.04833984375, -0.0011110305786132812, 0.024749755859375, -0.02716064453125, -0.030731201171875, -0.0213623046875, 0.06341552734375, 0.017730712890625, 0.07598876953125, -0.040985107421875, 0.0377197265625, -0.01340484619140625, -0.00959014892578125, 0.0014867782592773438, -0.031768798828125, 0.06024169921875, 0.019866943359375, -0.0141143798828125, -0.031280517578125, 0.019317626953125, 0.06640625, -0.002410888671875, -0.006122589111328125, 0.00701141357421875, 0.0020122528076171875, -0.0018405914306640625, 0.02947998046875, 0.0171661376953125, -0.021636962890625, -0.06719970703125, -0.040130615234375, 0.02825927734375, 0.00249481201171875, 0.058013916015625, -0.0011301040649414062, 0.064453125, 0.0001552104949951172, 0.0222625732421875, 0.01044464111328125, -0.030792236328125, 0.009033203125, 0.0294647216796875, -0.042449951171875, -0.046356201171875, 0.0484619140625, -0.006145477294921875, 0.0214385986328125, 0.007236480712890625, 0.07281494140625, 0.0274200439453125, -0.042694091796875, 0.05145263671875, 0.04376220703125, 0.0667724609375, -0.001678466796875, 0.0193634033203125, 0.03662109375, -0.01317596435546875, 0.0150909423828125, 0.035400390625, -0.0218505859375, -0.0166473388671875, -0.00373077392578125, 0.009033203125, 0.00281524658203125, -0.048248291015625, -0.053680419921875, -0.0107879638671875, 0.0740966796875, 0.0185546875, -0.06494140625, 0.0177001953125, -0.039794921875, 0.041778564453125, 0.0266571044921875, 0.017578125, -0.02838134765625, -0.028533935546875, -0.04302978515625, -0.0275726318359375, -0.0589599609375, 0.056304931640625, -0.044921875, 0.0149383544921875, 0.04632568359375, -0.01256561279296875, -0.032745361328125, -0.01546478271484375, -0.00848388671875, 0.050201416015625, -0.04742431640625, 0.006130218505859375, 0.03192138671875, -0.01027679443359375, -0.0203704833984375, -0.05914306640625, -0.00809478759765625, -0.0452880859375, 0.0034923553466796875, 0.06292724609375, -0.072021484375, -0.04010009765625, -0.05621337890625, -0.06134033203125, 0.010040283203125, 0.04205322265625, -0.043212890625, 0.024383544921875, -0.005939483642578125, -0.0216827392578125, 0.052490234375, 0.023834228515625, -0.0014801025390625, 0.01800537109375, -0.0084075927734375, -0.01062774658203125, 0.018096923828125, 0.014862060546875, -0.040252685546875, -0.047821044921875, -0.0137176513671875, -0.00962066650390625, -0.01094818115234375, 0.0087432861328125, 0.0045318603515625, 0.0233154296875, 0.04168701171875, -0.0033702850341796875, -0.04437255859375, -0.00888824462890625, -0.041595458984375, 0.03131103515625, -0.028472900390625, -0.04180908203125, -0.0218658447265625, 0.036956787109375, 0.038665771484375, 0.00891876220703125, -0.018463134765625, -0.0140380859375, 0.0037708282470703125, -0.039276123046875, -0.0135498046875, 0.0261077880859375, -0.07122802734375, -0.022064208984375, -0.00878143310546875, -0.0005521774291992188, 0.03448486328125, -0.01983642578125, -0.0264129638671875, 0.0013418197631835938, 0.021270751953125, 0.00754547119140625, -0.047576904296875, 0.037109375, 0.0352783203125, -0.044158935546875, -0.018310546875, -0.00023436546325683594, -0.0184783935546875, 0.003612518310546875, -0.01146697998046875, -0.00885772705078125, -0.036895751953125, -0.0025196075439453125, 0.038970947265625, -0.0029582977294921875, 0.02142333984375, -0.0377197265625, -0.024169921875, -0.01004791259765625, 0.0030155181884765625, 0.00331878662109375, 0.0009016990661621094, -0.005123138427734375, -0.0280303955078125, -0.00830841064453125, -0.012969970703125, -0.05682373046875, 0.03790283203125, -0.01715087890625, -0.016815185546875, -0.01319122314453125, 0.038787841796875, 0.043914794921875, 0.00774383544921875, 0.00885009765625, 0.037841796875, 0.0021152496337890625, -0.02081298828125, 0.022613525390625, -0.05291748046875, 0.01511383056640625, 0.00846099853515625 ]
43a62ad63e7ca0fe91faa318e691c4cc2d3cc0b5
Wordpress Stackexchange Q: How to get IDs for objects in menu branch? Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ? Once I click on About Us I wish for new page to display content of all it's children links. So basically I am looking for a way to get IDs of those posts/pages and use them inside my WP Query. A: I am lazy to write supporting logic from scratch so I am reusing functions from linked answer on branches: /** * Retrieve IDs of posts in branch of menu. * * @param mixed $menu * @param string $branch_title * * @link http://wordpress.stackexchange.com/questions/2802/display-a-portion-branch-of-the-menu-tree-using-wp-nav-menu * * @return array */ function get_post_ids_from_menu_branch( $menu, $branch_title ) { $menu_object = wp_get_nav_menu_object( $menu ); $menu_items = wp_get_nav_menu_items( $menu_object->term_id ); $items = submenu_limit( $menu_items, (object) array( 'submenu' => $branch_title ) ); $items = wp_list_filter( $items, array( 'object' => 'post' ) ); $ids = wp_list_pluck( $items, 'object_id' ); return $ids; } // example var_dump( get_post_ids_from_menu_branch( 'Test menu', 'Level 1' ) );
Q: How to get IDs for objects in menu branch? Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ? Once I click on About Us I wish for new page to display content of all it's children links. So basically I am looking for a way to get IDs of those posts/pages and use them inside my WP Query. A: I am lazy to write supporting logic from scratch so I am reusing functions from linked answer on branches: /** * Retrieve IDs of posts in branch of menu. * * @param mixed $menu * @param string $branch_title * * @link http://wordpress.stackexchange.com/questions/2802/display-a-portion-branch-of-the-menu-tree-using-wp-nav-menu * * @return array */ function get_post_ids_from_menu_branch( $menu, $branch_title ) { $menu_object = wp_get_nav_menu_object( $menu ); $menu_items = wp_get_nav_menu_items( $menu_object->term_id ); $items = submenu_limit( $menu_items, (object) array( 'submenu' => $branch_title ) ); $items = wp_list_filter( $items, array( 'object' => 'post' ) ); $ids = wp_list_pluck( $items, 'object_id' ); return $ids; } // example var_dump( get_post_ids_from_menu_branch( 'Test menu', 'Level 1' ) );
wordpress
{ "language": "en", "length": 179, "provenance": "stackexchange_00019.jsonl.gz:423193", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62758" }
[ 0.0606689453125, 0.0007462501525878906, 0.0224456787109375, 0.005992889404296875, 0.02362060546875, -0.0289764404296875, 0.06805419921875, -0.04345703125, 0.03656005859375, 0.0084686279296875, -0.061798095703125, -0.01241302490234375, -0.022613525390625, -0.005275726318359375, -0.0313720703125, -0.039825439453125, 0.032867431640625, -0.0253448486328125, 0.016845703125, -0.00006514787673950195, 0.00548553466796875, 0.00823974609375, 0.029815673828125, 0.05535888671875, 0.06842041015625, -0.0712890625, -0.0207977294921875, 0.0133056640625, 0.0178985595703125, -0.00817108154296875, 0.01076507568359375, 0.01441192626953125, 0.0234375, -0.045654296875, 0.06036376953125, 0.0169830322265625, 0.067138671875, -0.036712646484375, 0.01305389404296875, 0.01739501953125, 0.02911376953125, -0.0193634033203125, 0.0026721954345703125, 0.0012388229370117188, -0.0148162841796875, -0.034881591796875, 0.0232696533203125, -0.0240020751953125, 0.0279083251953125, -0.01178741455078125, -0.0022487640380859375, 0.051483154296875, 0.0015106201171875, 0.006587982177734375, 0.01003265380859375, 0.0181121826171875, 0.0258636474609375, -0.0435791015625, 0.0426025390625, 0.0231170654296875, -0.02587890625, -0.034393310546875, 0.0267181396484375, -0.05120849609375, 0.005451202392578125, 0.00420379638671875, 0.0740966796875, 0.0006074905395507812, -0.05633544921875, -0.003177642822265625, 0.048980712890625, -0.0159759521484375, 0.006725311279296875, -0.014190673828125, -0.035614013671875, -0.04107666015625, 0.010711669921875, -0.053070068359375, 0.0164794921875, -0.00405120849609375, -0.0203399658203125, -0.0222320556640625, -0.07672119140625, 0.0243988037109375, -0.01062774658203125, 0.04730224609375, -0.02001953125, -0.022216796875, -0.0090789794921875, -0.0074462890625, -0.00466156005859375, 0.0076904296875, -0.037353515625, 0.0182037353515625, 0.006946563720703125, -0.0352783203125, 0.0056304931640625, 0.07220458984375, -0.0643310546875, 0.0169525146484375, -0.0421142578125, 0.004055023193359375, 0.0217437744140625, -0.06903076171875, 0.00978851318359375, 0.023406982421875, 0.0009908676147460938, -0.018035888671875, 0.0318603515625, 0.0285186767578125, -0.004589080810546875, 0.0309906005859375, -0.0056304931640625, -0.00713348388671875, -0.0181121826171875, 0.0328369140625, -0.0187530517578125, -0.0025920867919921875, -0.0024929046630859375, 0.005695343017578125, -0.0100250244140625, -0.01117706298828125, 0.019439697265625, 0.0404052734375, 0.0235748291015625, 0.05206298828125, 0.006710052490234375, -0.0352783203125, -0.0355224609375, 0.023162841796875, -0.01305389404296875, -0.003765106201171875, 0.089111328125, 0.0787353515625, 0.028045654296875, -0.0260772705078125, -0.018463134765625, -0.006103515625, 0.0170440673828125, -0.01837158203125, 0.009521484375, 0.0027313232421875, 0.0333251953125, 0.00006312131881713867, 0.007007598876953125, 0.013946533203125, 0.0096893310546875, 0.01338958740234375, 0.0150299072265625, -0.03076171875, 0.00782012939453125, -0.00968170166015625, 0.041839599609375, 0.00617218017578125, -0.034393310546875, -0.037689208984375, 0.0357666015625, -0.0625, -0.01477813720703125, -0.07879638671875, -0.013153076171875, -0.007610321044921875, 0.00443267822265625, -0.05267333984375, -0.049713134765625, -0.0028514862060546875, -0.01611328125, -0.0008516311645507812, 0.01751708984375, 0.0538330078125, 0.0198822021484375, -0.03240966796875, 0.009002685546875, 0.004299163818359375, -0.017181396484375, 0.0120391845703125, 0.0018815994262695312, -0.025146484375, 0.03271484375, 0.037322998046875, -0.0253143310546875, -0.035186767578125, 0.0077362060546875, -0.00115966796875, -0.05621337890625, 0.054290771484375, 0.000270843505859375, 0.072998046875, 0.03143310546875, 0.0097198486328125, 0.01311492919921875, -0.008575439453125, -0.09417724609375, 0.0228424072265625, 0.0013437271118164062, 0.022186279296875, 0.0160369873046875, 0.01300811767578125, 0.013946533203125, -0.0188446044921875, -0.00435638427734375, -0.0247650146484375, 0.035064697265625, -0.01297760009765625, -0.0244293212890625, -0.0084228515625, -0.0194549560546875, 0.02984619140625, 0.00429534912109375, 0.0205078125, 0.005474090576171875, -0.01224517822265625, -0.00901031494140625, -0.021942138671875, -0.0142669677734375, 0.00514984130859375, -0.0194549560546875, -0.05413818359375, -0.042388916015625, -0.0220489501953125, -0.056976318359375, 0.016571044921875, -0.06689453125, 0.0301055908203125, 0.051422119140625, 0.023773193359375, -0.0035686492919921875, -0.0015506744384765625, 0.07293701171875, 0.0307769775390625, -0.0240478515625, -0.0208740234375, 0.034088134765625, 0.0513916015625, -0.0069580078125, 0.003910064697265625, 0.018280029296875, -0.05975341796875, 0.005992889404296875, 0.03973388671875, 0.05096435546875, 0.016265869140625, 0.0134429931640625, -0.0340576171875, 0.068603515625, -0.0006289482116699219, 0.030670166015625, -0.054595947265625, -0.032379150390625, 0.00775909423828125, 0.0306243896484375, 0.04046630859375, 0.0289154052734375, 0.048431396484375, 0.00791168212890625, 0.041168212890625, 0.0005359649658203125, -0.00823211669921875, 0.00780487060546875, -0.006000518798828125, 0.0127716064453125, -0.0176849365234375, -0.04010009765625, 0.00405120849609375, 0.036468505859375, 0.025787353515625, 0.04803466796875, 0.040008544921875, -0.02685546875, 0.00804901123046875, 0.00986480712890625, 0.0206298828125, -0.0006237030029296875, -0.0052337646484375, -0.004268646240234375, -0.0272979736328125, -0.0087890625, 0.00617218017578125, -0.006374359130859375, -0.0287628173828125, 0.00786590576171875, 0.052459716796875, 0.042510986328125, -0.01331329345703125, -0.005435943603515625, -0.032012939453125, 0.018310546875, -0.003566741943359375, -0.00580596923828125, 0.031646728515625, 0.01898193359375, 0.06787109375, -0.00830078125, 0.033905029296875, -0.0196533203125, 0.02996826171875, 0.08221435546875, -0.01303863525390625, 0.0244903564453125, -0.0098876953125, 0.0288848876953125, 0.04241943359375, -0.007480621337890625, 0.0014171600341796875, 0.004360198974609375, -0.016021728515625, 0.0155029296875, 0.022674560546875, 0.0093994140625, -0.0217742919921875, -0.00902557373046875, 0.04327392578125, 0.01343536376953125, 0.08154296875, -0.031646728515625, -0.07049560546875, -0.01507568359375, 0.0023822784423828125, -0.10601806640625, -0.10711669921875, 0.0247039794921875, -0.0240936279296875, -0.01491546630859375, -0.0025882720947265625, -0.02984619140625, -0.006366729736328125, 0.00939178466796875, -0.00531005859375, 0.00646209716796875, -0.0163726806640625, -0.059600830078125, -0.02691650390625, -0.06494140625, 0.0271148681640625, -0.01412200927734375, 0.0186767578125, 0.0115203857421875, 0.01140594482421875, 0.01983642578125, -0.018463134765625, 0.048675537109375, 0.07733154296875, -0.026336669921875, -0.01085662841796875, -0.00738525390625, -0.0020046234130859375, -0.02056884765625, -0.00040721893310546875, -0.01375579833984375, 0.0072174072265625, 0.00511932373046875, 0.005313873291015625, -0.0070343017578125, 0.042388916015625, 0.04046630859375, -0.035003662109375, 0.0034999847412109375, 0.07861328125, 0.050018310546875, 0.013763427734375, -0.0263519287109375, -0.049407958984375, -0.049468994140625, 0.0322265625, 0.02899169921875, 0.021209716796875, -0.041168212890625, 0.042327880859375, 0.031494140625, 0.003894805908203125, 0.01393890380859375, 0.0015392303466796875, -0.004222869873046875, 0.00189971923828125, 0.01444244384765625, -0.0137786865234375, 0.052734375, 0.001964569091796875, -0.02581787109375, 0.006622314453125, 0.00555419921875, -0.0218963623046875, -0.018768310546875, -0.05859375, -0.0092620849609375, 0.041412353515625, -0.00986480712890625, 0.03350830078125, -0.02838134765625, -0.031585693359375, -0.0202484130859375, 0.067626953125, -0.01824951171875, -0.03228759765625, -0.024749755859375, 0.016357421875, 0.0016803741455078125, -0.056060791015625, 0.0204010009765625, -0.0209197998046875, -0.061981201171875, 0.0216522216796875, -0.013824462890625, -0.0093536376953125, -0.029052734375, 0.04150390625, -0.04632568359375, -0.0233917236328125, 0.03472900390625, -0.0156707763671875, -0.0167999267578125, 0.02276611328125, -0.032196044921875, 0.01482391357421875, -0.0562744140625, 0.0146942138671875, -0.0665283203125, -0.0167388916015625, 0.0124053955078125, 0.040740966796875, 0.01308441162109375, -0.0401611328125, 0.004428863525390625, 0.047210693359375, -0.0160369873046875, 0.05047607421875, -0.003570556640625, 0.047149658203125, -0.0181732177734375, -0.06585693359375, -0.005397796630859375, -0.057159423828125, -0.005245208740234375, -0.04986572265625, -0.037933349609375, -0.027557373046875, -0.027313232421875, 0.0306549072265625, -0.0189361572265625, -0.006191253662109375, -0.07611083984375, -0.0275726318359375, -0.01367950439453125, 0.005260467529296875, -0.018707275390625, -0.00493621826171875, -0.0248565673828125, -0.07318115234375, 0.0202789306640625, 0.0249786376953125, -0.0219573974609375, 0.0024890899658203125, 0.0251007080078125, 0.0251312255859375, -0.03875732421875, 0.0012922286987304688, -0.0222015380859375, 0.024993896484375, -0.04742431640625, 0.0650634765625, 0.045623779296875, -0.008514404296875, 0.050811767578125, 0.0034732818603515625, 0.010223388671875, -0.0035762786865234375, 0.06915283203125, 0.009857177734375, 0.00994873046875, -0.003383636474609375, 0.0121307373046875, -0.02880859375, 0.0219268798828125, -0.0066375732421875, -0.035797119140625, -0.0103759765625, 0.055267333984375, -0.00933837890625, 0.04144287109375, -0.0283660888671875, -0.0037555694580078125, 0.008026123046875, -0.007137298583984375, 0.050079345703125, 0.0345458984375, -0.00432586669921875, 0.021728515625, 0.01528167724609375, 0.0079345703125, 0.03289794921875, 0.0207366943359375, 0.0171051025390625, 0.0330810546875, 0.0025882720947265625, -0.00128173828125, -0.007015228271484375, -0.00617218017578125, 0.04949951171875, -0.0061798095703125, -0.031280517578125, 0.00377655029296875, -0.00743865966796875, -0.0198822021484375, 0.030975341796875, -0.0178070068359375, 0.034454345703125, 0.0266876220703125, -0.0045318603515625, -0.006938934326171875, -0.044586181640625, 0.0103302001953125, -0.034759521484375, 0.025146484375, 0.0044403076171875, -0.0006613731384277344, 0.0201263427734375, 0.0293121337890625, -0.0115203857421875, 0.0252838134765625, -0.0079193115234375, 0.016937255859375, 0.0079803466796875, 0.01308441162109375, 0.01557159423828125, -0.01025390625, 0.00594329833984375, 0.01035308837890625, 0.02197265625, -0.0293731689453125, -0.025299072265625, 0.039215087890625, 0.0452880859375, 0.011016845703125, -0.0005106925964355469, -0.01812744140625, -0.01245880126953125, -0.0204010009765625, 0.035491943359375, -0.0139007568359375, -0.044158935546875, -0.02960205078125, 0.021636962890625, 0.04034423828125, -0.0096893310546875, 0.002880096435546875, -0.0128936767578125, 0.01004791259765625, 0.0177001953125, -0.027496337890625, -0.0237884521484375, 0.006107330322265625, 0.023223876953125, -0.025604248046875, -0.036376953125, 0.0051422119140625, -0.05523681640625, -0.0094146728515625, -0.0114288330078125, -0.002658843994140625, 0.039459228515625, -0.02716064453125, 0.05767822265625, -0.034881591796875, -0.00621795654296875, -0.00362396240234375, -0.01340484619140625, 0.08001708984375, 0.056427001953125, -0.051483154296875, 0.0149993896484375, -0.0237274169921875, 0.0108795166015625, 0.01873779296875, -0.0667724609375, -0.035125732421875, -0.036590576171875, -0.050384521484375, 0.020599365234375, -0.0163726806640625, 0.05194091796875, 0.00904083251953125, 0.01473236083984375, -0.03680419921875, 0.01453399658203125, 0.00528717041015625, 0.04876708984375, -0.0178985595703125, 0.023895263671875, 0.005970001220703125, 0.00312042236328125, -0.04815673828125, 0.0032958984375, 0.0012063980102539062, -0.0304412841796875, 0.0010519027709960938, 0.00579833984375, -0.0173797607421875, -0.0283355712890625, 0.0203704833984375, 0.0038356781005859375, 0.039276123046875, -0.0180816650390625, -0.0036468505859375, -0.00902557373046875, -0.03460693359375, -0.039581298828125, -0.004093170166015625, 0.0308837890625, -0.054351806640625, -0.062225341796875, 0.037078857421875, 0.058837890625, -0.0307769775390625, -0.0159759521484375, -0.040985107421875, 0.004947662353515625, -0.022857666015625, 0.041229248046875, 0.08203125, 0.01505279541015625, 0.03521728515625, 0.0131378173828125, -0.002109527587890625, -0.01386260986328125, 0.032379150390625, 0.004062652587890625, -0.018341064453125, 0.060577392578125, 0.00604248046875, -0.0089263916015625, 0.028167724609375, -0.046875, -0.0225677490234375, -0.02081298828125, -0.0021953582763671875, 0.01239776611328125, -0.006011962890625, 0.0024929046630859375, -0.0237274169921875, -0.0211944580078125, -0.0023326873779296875, -0.0235595703125, -0.01302337646484375, 0.0084686279296875, 0.00421142578125, -0.038116455078125, 0.00290679931640625, 0.03515625, -0.0038299560546875, -0.01708984375, 0.051055908203125, -0.0030117034912109375, 0.0164947509765625, -0.0228271484375, -0.020904541015625, -0.0032711029052734375, -0.03704833984375, 0.005939483642578125, 0.0035552978515625, 0.01111602783203125, -0.024505615234375, 0.0653076171875, -0.045745849609375, 0.0499267578125, 0.031341552734375, 0.0168304443359375, -0.02044677734375, 0.0272064208984375, -0.012542724609375, 0.00782012939453125, 0.01320648193359375, -0.04473876953125, -0.036956787109375, -0.0115509033203125, 0.0078582763671875, 0.04150390625, -0.029510498046875, 0.0247955322265625, -0.01580810546875, 0.01239013671875, -0.01047515869140625, -0.01256561279296875, 0.08966064453125, -0.05841064453125, -0.0098114013671875, 0.0330810546875, -0.00806427001953125, -0.01299285888671875, 0.00334930419921875, 0.06524658203125, -0.034881591796875, -0.00975799560546875, 0.03277587890625, -0.0066070556640625, -0.055755615234375, -0.004650115966796875, -0.052398681640625, 0.047454833984375, 0.00495147705078125, 0.0052490234375, 0.01244354248046875, 0.0093994140625, -0.033538818359375, -0.020751953125, -0.04522705078125, 0.049774169921875, 0.0306549072265625, 0.050048828125, -0.0293426513671875, 0.001094818115234375, 0.0219879150390625, 0.018524169921875, 0.04498291015625, 0.00914764404296875, -0.039215087890625, -0.03765869140625, 0.022308349609375, 0.032928466796875, 0.00800323486328125, 0.0465087890625, -0.001094818115234375, 0.01522064208984375, 0.060333251953125, -0.048095703125, 0.028594970703125, -0.0266265869140625, 0.029693603515625, 0.01258087158203125, 0.0011157989501953125, 0.00640869140625, 0.0267791748046875, -0.03167724609375, -0.013458251953125, 0.00832366943359375, -0.0016794204711914062, 0.0024356842041015625, 0.01123046875, -0.00458526611328125, 0.023223876953125, -0.045318603515625, -0.02203369140625, -0.0159759521484375, 0.039886474609375, 0.018829345703125, -0.00521087646484375, 0.035675048828125, 0.01363372802734375, 0.01174163818359375, 0.003604888916015625, -0.0099334716796875, 0.01016998291015625, 0.01435089111328125, 0.0204620361328125, 0.00890350341796875, 0.0223388671875, -0.062225341796875, -0.056610107421875, 0.05682373046875, 0.044403076171875, -0.015960693359375, -0.051605224609375, 0.022674560546875, 0.013427734375, 0.01065826416015625, 0.050445556640625, 0.056732177734375, 0.028076171875, 0.0693359375, -0.027557373046875, -0.02362060546875, 0.03955078125, 0.0242156982421875, 0.01464080810546875, 0.00019347667694091797, -0.00946044921875, -0.03948974609375, -0.034454345703125, 0.0209197998046875, 0.03607177734375, 0.0197906494140625, -0.0272979736328125, 0.077880859375, 0.01427459716796875, -0.005878448486328125, 0.0160980224609375, 0.034637451171875, 0.02374267578125, -0.0272979736328125, 0.023651123046875, -0.0172119140625, -0.008270263671875, -0.0031032562255859375, 0.0018377304077148438, 0.002758026123046875, 0.050445556640625, -0.009857177734375, -0.06439208984375, -0.0143280029296875, 0.003902435302734375, -0.050384521484375, 0.00907135009765625, -0.0024204254150390625, 0.006389617919921875, 0.022216796875, -0.0065155029296875, -0.001129150390625, 0.0265350341796875, 0.038787841796875, -0.009429931640625, 0.036834716796875, 0.0009899139404296875, -0.01119232177734375, -0.0168914794921875, -0.01166534423828125, 0.0123748779296875, 0.0201873779296875, -0.15478515625, -0.0228118896484375, -0.0458984375, -0.005901336669921875, 0.0419921875, 0.019744873046875, -0.0182647705078125, 0.03851318359375, 0.0253753662109375, -0.00933837890625, 0.01226043701171875, 0.003093719482421875, -0.0009584426879882812, 0.03399658203125, 0.0254669189453125, 0.0194854736328125, -0.050079345703125, -0.019683837890625, -0.025787353515625, -0.0012025833129882812, 0.056365966796875, -0.041046142578125, 0.06500244140625, 0.04962158203125, -0.03717041015625, 0.01557159423828125, -0.061309814453125, -0.034820556640625, 0.035400390625, -0.016357421875, -0.00994873046875, 0.01488494873046875, -0.058380126953125, 0.0282745361328125, 0.020751953125, -0.01207733154296875, 0.041229248046875, -0.034454345703125, 0.01432037353515625, -0.02386474609375, 0.0165557861328125, 0.0007944107055664062, 0.021453857421875, -0.003498077392578125, -0.03533935546875, 0.064453125, 0.0767822265625, 0.024261474609375, 0.0211181640625, -0.00783538818359375, -0.04443359375, 0.0244903564453125, -0.036865234375, 0.004718780517578125, 0.0186920166015625, 0.02923583984375, 0.022247314453125, -0.0005850791931152344, -0.0228729248046875, 0.0194549560546875, 0.007568359375, -0.006565093994140625, 0.0037384033203125, -0.01122283935546875, 0.0289154052734375, 0.032501220703125, 0.05426025390625, -0.01166534423828125, 0.00983428955078125, 0.0291595458984375, 0.000179290771484375, -0.0203399658203125, -0.04248046875, -0.016082763671875, -0.055267333984375, 0.003719329833984375, 0.021240234375, -0.0143280029296875, -0.00004851818084716797, 0.0005521774291992188, -0.0255126953125, 0.024658203125, 0.021026611328125, -0.035430908203125, 0.052459716796875, -0.016571044921875, -0.0304718017578125, -0.0206451416015625, 0.03619384765625, -0.0190887451171875, -0.0254058837890625, -0.0068817138671875, 0.0167999267578125, -0.03167724609375, 0.05438232421875, 0.032958984375, -0.00027441978454589844, 0.0084228515625, -0.034027099609375, -0.01253509521484375, -0.0186004638671875, 0.044464111328125, 0.025390625, 0.0692138671875, -0.0289764404296875, -0.0226593017578125, 0.012481689453125, -0.01221466064453125, -0.0011301040649414062, 0.036163330078125, -0.03826904296875, -0.041778564453125, -0.01165008544921875, 0.00991058349609375, 0.0131378173828125, -0.029388427734375, -0.04034423828125, 0.05810546875, -0.0173492431640625, -0.0289306640625, -0.0017118453979492188, -0.0236663818359375, -0.0054779052734375, -0.007450103759765625, 0.007305145263671875, -0.0304718017578125, -0.030548095703125, 0.017913818359375, -0.0082855224609375, 0.038421630859375, 0.0360107421875, -0.009185791015625, -0.01290130615234375, -0.0033168792724609375, -0.01178741455078125, -0.0157623291015625, -0.007564544677734375, 0.0096435546875, 0.0035800933837890625, 0.004703521728515625, -0.046539306640625, -0.0174560546875, -0.00565338134765625, 0.03460693359375, 0.003086090087890625, -0.0011472702026367188, -0.044219970703125, -0.00478363037109375, 0.059326171875, 0.057281494140625, 0.0362548828125, -0.0419921875, 0.0025920867919921875, -0.006008148193359375, -0.043426513671875, -0.0200653076171875, 0.0235595703125, -0.047698974609375, -0.006866455078125, 0.0006361007690429688, -0.01538848876953125, -0.014801025390625, -0.0247955322265625, -0.02117919921875, -0.0212249755859375, -0.02081298828125, -0.01006317138671875, 0.012969970703125, 0.0133209228515625, 0.0255126953125, -0.038970947265625, -0.033203125, -0.02362060546875, 0.0162811279296875, -0.0201873779296875, -0.07098388671875, -0.033935546875, -0.0272369384765625, -0.0200042724609375, 0.0249176025390625, -0.016998291015625, 0.0418701171875, -0.02197265625, -0.01161956787109375, -0.028656005859375, 0.010833740234375, 0.0245513916015625, 0.019134521484375, -0.005138397216796875, 0.0203399658203125, 0.0160675048828125, 0.052764892578125, 0.0123138427734375, 0.04736328125, 0.01532745361328125, 0.057159423828125, -0.0185699462890625, -0.030731201171875, 0.0023632049560546875, -0.04730224609375, -0.01113128662109375, -0.007381439208984375, -0.046783447265625, -0.06805419921875, 0.02593994140625, 0.042510986328125, -0.018035888671875, 0.0308990478515625 ]
b63d84b152ce8f05af5bbf218109933bdc50abfa
Wordpress Stackexchange Q: WP_Query not looking at child category Hi all I have a loop that shows a post on a single page and puts the first category name in the variable $cat: $cat = $category[0]->cat_name;?> Now after the post I have a link to show related posts based on this category: $catPosts1 = new WP_Query(array('category_name'=> $cat, 'orderby' => 'rand', 'posts_per_page' => 1)); while ($catPosts1->have_posts()) : $catPosts1->the_post(); The problem I'm having if a Child Category is selected for the first post I.e. Under the category Phones the child category Accessories is chosen nothing is appearing in the related link area. Is there a way of making Wordpress use this child category? Thanks A: You'll have to get the child or parent categories yourself and pass all the IDs as an array via the category__in argument of WP_Query. You can use get_ancestors to get the top parent category, and get all child categories of that parent via the child_of argument of get_categories.
Q: WP_Query not looking at child category Hi all I have a loop that shows a post on a single page and puts the first category name in the variable $cat: $cat = $category[0]->cat_name;?> Now after the post I have a link to show related posts based on this category: $catPosts1 = new WP_Query(array('category_name'=> $cat, 'orderby' => 'rand', 'posts_per_page' => 1)); while ($catPosts1->have_posts()) : $catPosts1->the_post(); The problem I'm having if a Child Category is selected for the first post I.e. Under the category Phones the child category Accessories is chosen nothing is appearing in the related link area. Is there a way of making Wordpress use this child category? Thanks A: You'll have to get the child or parent categories yourself and pass all the IDs as an array via the category__in argument of WP_Query. You can use get_ancestors to get the top parent category, and get all child categories of that parent via the child_of argument of get_categories.
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:423233", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62884" }
[ 0.005786895751953125, 0.0156402587890625, -0.0214080810546875, -0.0088653564453125, 0.026458740234375, -0.0307159423828125, 0.0255584716796875, -0.03033447265625, -0.001522064208984375, 0.0232391357421875, -0.04913330078125, -0.006107330322265625, 0.01027679443359375, -0.0221710205078125, -0.01259613037109375, -0.035430908203125, 0.0250091552734375, -0.0206146240234375, 0.00829315185546875, -0.01131439208984375, -0.0027675628662109375, 0.0014410018920898438, 0.030853271484375, 0.020904541015625, 0.038299560546875, -0.032806396484375, 0.0206756591796875, -0.03216552734375, 0.041778564453125, -0.0182037353515625, 0.020843505859375, 0.005840301513671875, 0.0168609619140625, -0.01336669921875, 0.035552978515625, -0.00978851318359375, 0.039642333984375, -0.0199737548828125, 0.00901031494140625, 0.0443115234375, 0.0134429931640625, -0.0072784423828125, 0.042694091796875, 0.0218048095703125, 0.007061004638671875, -0.033416748046875, 0.01983642578125, -0.053863525390625, 0.022369384765625, -0.05499267578125, 0.0281219482421875, 0.015655517578125, 0.046234130859375, -0.053497314453125, -0.02899169921875, 0.0164031982421875, -0.0193328857421875, 0.019439697265625, 0.025238037109375, -0.01255035400390625, -0.039337158203125, 0.0025196075439453125, 0.0140380859375, -0.0080413818359375, 0.00138092041015625, 0.01227569580078125, 0.04583740234375, 0.005619049072265625, -0.022491455078125, 0.0029735565185546875, 0.036041259765625, -0.00778961181640625, -0.0030536651611328125, 0.01027679443359375, -0.04461669921875, -0.04254150390625, 0.034027099609375, -0.02886962890625, -0.004119873046875, 0.01068115234375, -0.037628173828125, -0.001110076904296875, -0.05230712890625, -0.0022678375244140625, -0.0135040283203125, 0.0076446533203125, -0.0270843505859375, 0.0010280609130859375, -0.044769287109375, -0.031280517578125, -0.0345458984375, -0.0123138427734375, -0.057586669921875, 0.00992584228515625, -0.0135040283203125, -0.01207733154296875, 0.07196044921875, 0.0828857421875, -0.0122528076171875, -0.0235595703125, -0.0182952880859375, -0.0266265869140625, -0.04156494140625, -0.0234527587890625, 0.03692626953125, 0.03106689453125, -0.00943756103515625, 0.017913818359375, 0.08135986328125, 0.026214599609375, 0.025482177734375, 0.10321044921875, 0.005458831787109375, 0.0025482177734375, -0.032989501953125, 0.022216796875, -0.0093841552734375, -0.002254486083984375, -0.006931304931640625, 0.009033203125, 0.0023746490478515625, 0.020416259765625, 0.005199432373046875, -0.0134429931640625, 0.027099609375, 0.01197052001953125, -0.0162811279296875, -0.018218994140625, 0.035980224609375, 0.0086212158203125, -0.03466796875, 0.011260986328125, 0.046905517578125, 0.031036376953125, 0.01458740234375, -0.00705718994140625, -0.00897216796875, 0.00689697265625, 0.0257720947265625, -0.0297393798828125, 0.023712158203125, -0.0046539306640625, 0.020233154296875, 0.0220947265625, 0.0150146484375, 0.00704193115234375, 0.016815185546875, 0.020843505859375, -0.002681732177734375, -0.011077880859375, 0.0263214111328125, -0.017669677734375, 0.042022705078125, 0.0001437664031982422, -0.0251312255859375, -0.035400390625, 0.0126495361328125, -0.0199127197265625, -0.015960693359375, -0.04486083984375, 0.04669189453125, 0.03094482421875, 0.046112060546875, -0.026580810546875, -0.0482177734375, -0.036163330078125, -0.0958251953125, -0.029815673828125, 0.007221221923828125, -0.0285491943359375, 0.00440216064453125, -0.0135345458984375, 0.0008826255798339844, -0.00682830810546875, 0.004791259765625, 0.0177001953125, -0.0180511474609375, -0.004207611083984375, 0.0252838134765625, 0.0125274658203125, -0.0198516845703125, -0.040008544921875, -0.00934600830078125, -0.0009698867797851562, -0.018707275390625, 0.04669189453125, 0.00980377197265625, 0.007083892822265625, -0.035858154296875, 0.0103302001953125, 0.0322265625, 0.09136962890625, -0.05047607421875, 0.0300140380859375, 0.0020580291748046875, -0.0127105712890625, 0.0117340087890625, 0.0143890380859375, 0.00269317626953125, -0.027313232421875, 0.00229644775390625, -0.01091766357421875, 0.01140594482421875, -0.0174560546875, -0.05450439453125, 0.021881103515625, -0.0283355712890625, 0.0419921875, 0.00998687744140625, 0.0244140625, 0.0208282470703125, 0.034759521484375, -0.040924072265625, -0.058074951171875, -0.03240966796875, 0.0221099853515625, 0.011627197265625, 0.0283966064453125, 0.0015840530395507812, -0.015411376953125, 0.017822265625, -0.0237579345703125, 0.0130462646484375, 0.058929443359375, 0.0697021484375, 0.015228271484375, -0.028564453125, -0.01515960693359375, 0.022979736328125, 0.046142578125, -0.11846923828125, 0.0191802978515625, 0.0210113525390625, 0.0178375244140625, -0.045623779296875, 0.019500732421875, 0.0012073516845703125, 0.035430908203125, -0.0237274169921875, 0.0179901123046875, 0.028594970703125, 0.006626129150390625, -0.0273895263671875, -0.0243377685546875, 0.02532958984375, -0.06585693359375, -0.002559661865234375, -0.01265716552734375, 0.00562286376953125, 0.03179931640625, 0.023651123046875, -0.006885528564453125, 0.021728515625, 0.0034923553466796875, 0.039764404296875, 0.012359619140625, 0.034576416015625, -0.00823211669921875, -0.0195465087890625, 0.033782958984375, 0.015289306640625, -0.0262908935546875, -0.0579833984375, 0.00165557861328125, 0.06732177734375, -0.02337646484375, 0.0195770263671875, -0.00815582275390625, -0.0244293212890625, 0.014129638671875, 0.00550079345703125, -0.04730224609375, -0.00627899169921875, 0.0206298828125, -0.00156402587890625, -0.0028667449951171875, -0.008575439453125, -0.0026378631591796875, -0.0236053466796875, -0.005283355712890625, 0.02276611328125, 0.0762939453125, 0.04522705078125, -0.01039886474609375, -0.04644775390625, -0.040191650390625, 0.021484375, 0.031951904296875, -0.040985107421875, 0.014923095703125, 0.03436279296875, 0.055267333984375, 0.0010547637939453125, 0.0036792755126953125, -0.03802490234375, 0.026763916015625, -0.00930023193359375, -0.0090789794921875, 0.031402587890625, -0.016845703125, 0.0105438232421875, 0.05889892578125, -0.0098114013671875, 0.02471923828125, -0.009124755859375, 0.01515960693359375, 0.0021915435791015625, 0.019012451171875, -0.00525665283203125, -0.027801513671875, -0.0220184326171875, -0.01244354248046875, 0.044708251953125, 0.08642578125, 0.011016845703125, -0.043670654296875, 0.020660400390625, 0.04656982421875, -0.052001953125, -0.1051025390625, -0.01004791259765625, -0.053192138671875, 0.0171356201171875, 0.015777587890625, -0.0012416839599609375, -0.0188140869140625, 0.0225677490234375, 0.00814056396484375, 0.0247039794921875, -0.048004150390625, -0.105712890625, -0.08038330078125, -0.0914306640625, -0.0011730194091796875, -0.0063934326171875, 0.0076141357421875, 0.00775146484375, 0.059600830078125, 0.0178985595703125, -0.0433349609375, 0.007320404052734375, 0.048431396484375, -0.0262298583984375, 0.003734588623046875, 0.0263824462890625, -0.01236724853515625, -0.013580322265625, 0.0257415771484375, 0.005084991455078125, 0.0198211669921875, -0.036895751953125, -0.01204681396484375, 0.0160064697265625, 0.04351806640625, 0.053802490234375, 0.019683837890625, -0.0309600830078125, 0.08624267578125, 0.06536865234375, 0.0115203857421875, -0.0164794921875, -0.05230712890625, -0.049224853515625, -0.005199432373046875, 0.033935546875, 0.0284423828125, -0.046661376953125, 0.0010995864868164062, -0.0114288330078125, -0.01309967041015625, -0.016204833984375, -0.0635986328125, 0.07122802734375, 0.0182952880859375, 0.035308837890625, 0.01580810546875, 0.00933837890625, -0.0067138671875, -0.00359344482421875, -0.005397796630859375, 0.0148468017578125, -0.0146331787109375, 0.0206756591796875, -0.028472900390625, -0.0141143798828125, 0.0207977294921875, -0.01371002197265625, 0.01508331298828125, -0.02178955078125, -0.008392333984375, -0.0164337158203125, 0.039306640625, -0.05279541015625, -0.039337158203125, -0.01171112060546875, 0.0309906005859375, -0.03460693359375, -0.0570068359375, 0.0009107589721679688, -0.00457000732421875, -0.0540771484375, -0.0007648468017578125, -0.0024623870849609375, -0.036712646484375, -0.023101806640625, 0.01258087158203125, -0.046478271484375, -0.01346588134765625, 0.042633056640625, -0.024200439453125, -0.00717926025390625, -0.0200347900390625, -0.01438140869140625, -0.041961669921875, -0.03271484375, 0.00281524658203125, -0.0772705078125, -0.01059722900390625, 0.02752685546875, 0.033966064453125, -0.01302337646484375, -0.02435302734375, -0.02154541015625, 0.047607421875, 0.02569580078125, 0.0295867919921875, 0.00677490234375, -0.0162811279296875, -0.010040283203125, 0.006793975830078125, 0.0168304443359375, -0.019256591796875, -0.01031494140625, -0.0302886962890625, 0.01445770263671875, 0.004222869873046875, -0.0457763671875, -0.01043701171875, -0.050567626953125, 0.0078582763671875, -0.02508544921875, -0.035064697265625, -0.0362548828125, 0.0311431884765625, -0.010955810546875, -0.0004229545593261719, -0.052001953125, -0.0635986328125, 0.02740478515625, -0.004367828369140625, -0.02490234375, 0.007015228271484375, 0.046142578125, 0.0222320556640625, -0.02337646484375, -0.00848388671875, -0.028411865234375, 0.008392333984375, -0.00756072998046875, 0.04620361328125, 0.0098419189453125, -0.006893157958984375, 0.047576904296875, -0.0010061264038085938, 0.022003173828125, 0.01035308837890625, 0.059173583984375, 0.00531768798828125, -0.0184478759765625, 0.0250244140625, 0.0224609375, -0.0550537109375, 0.00875091552734375, -0.013916015625, -0.0216522216796875, 0.0077667236328125, 0.04376220703125, -0.01515960693359375, 0.0137786865234375, -0.036651611328125, 0.0164947509765625, -0.018646240234375, 0.055145263671875, 0.053466796875, 0.049560546875, -0.004756927490234375, -0.0045013427734375, 0.01580810546875, -0.014678955078125, -0.00356292724609375, 0.05023193359375, -0.00788116455078125, 0.033599853515625, -0.0390625, -0.02154541015625, -0.035247802734375, -0.0006623268127441406, 0.0220947265625, 0.00640869140625, -0.0134124755859375, 0.01165008544921875, -0.00893402099609375, -0.01085662841796875, 0.00311279296875, -0.0006666183471679688, 0.0193328857421875, 0.01206207275390625, 0.019805908203125, 0.00848388671875, -0.00518798828125, -0.0265960693359375, -0.003360748291015625, 0.033416748046875, 0.00838470458984375, -0.003437042236328125, 0.0174713134765625, 0.035186767578125, -0.0190582275390625, 0.02923583984375, 0.00225067138671875, -0.0118560791015625, -0.04144287109375, 0.046600341796875, 0.0266571044921875, -0.031768798828125, 0.029022216796875, 0.00600433349609375, 0.03363037109375, -0.032745361328125, 0.004314422607421875, 0.0216827392578125, 0.03765869140625, 0.0103912353515625, -0.0231475830078125, 0.0198822021484375, -0.02178955078125, -0.023345947265625, 0.015045166015625, 0.0212860107421875, 0.0193328857421875, -0.0270538330078125, -0.0214691162109375, 0.0154876708984375, 0.04632568359375, -0.035003662109375, 0.023651123046875, -0.042266845703125, 0.038818359375, 0.0181732177734375, -0.0007596015930175781, 0.0186614990234375, 0.0013151168823242188, -0.036895751953125, -0.035980224609375, -0.0166015625, 0.041015625, 0.0221099853515625, -0.0209197998046875, -0.043609619140625, 0.03277587890625, 0.0019741058349609375, 0.07513427734375, -0.045013427734375, -0.051239013671875, -0.0277099609375, -0.0174560546875, 0.0753173828125, 0.044677734375, -0.0242919921875, -0.01053619384765625, -0.050811767578125, -0.033355712890625, -0.0038852691650390625, -0.0261688232421875, -0.04864501953125, -0.01392364501953125, -0.0036487579345703125, 0.0246429443359375, 0.0226898193359375, -0.004161834716796875, -0.07525634765625, -0.0022907257080078125, 0.0302886962890625, -0.006443023681640625, -0.0271148681640625, 0.06072998046875, 0.00763702392578125, 0.0158843994140625, 0.0002841949462890625, -0.00160980224609375, -0.01580810546875, 0.01160430908203125, 0.0015163421630859375, -0.048248291015625, -0.0038661956787109375, -0.00408935546875, -0.02850341796875, -0.0024509429931640625, 0.03460693359375, 0.005695343017578125, 0.03509521484375, -0.0081787109375, 0.0121307373046875, -0.005096435546875, -0.0345458984375, -0.0243988037109375, -0.0189056396484375, 0.06439208984375, -0.0221099853515625, -0.01430511474609375, -0.0000152587890625, -0.023590087890625, 0.016265869140625, 0.0033779144287109375, -0.004364013671875, 0.0117340087890625, -0.042144775390625, 0.0550537109375, 0.0567626953125, 0.0189666748046875, 0.043975830078125, 0.0031585693359375, 0.0296783447265625, -0.01261138916015625, 0.0085601806640625, 0.031646728515625, -0.01222991943359375, 0.0531005859375, -0.009857177734375, -0.005573272705078125, 0.032867431640625, -0.035919189453125, -0.044036865234375, -0.02703857421875, -0.0038509368896484375, 0.005451202392578125, -0.00724029541015625, 0.017364501953125, -0.0024261474609375, -0.0648193359375, 0.0196685791015625, -0.02740478515625, 0.006244659423828125, -0.0006685256958007812, -0.0251922607421875, -0.02587890625, 0.016632080078125, 0.02392578125, 0.011138916015625, -0.0136871337890625, 0.0419921875, 0.0158538818359375, -0.03143310546875, -0.015655517578125, 0.0450439453125, -0.0048980712890625, -0.0257568359375, -0.006969451904296875, 0.0276336669921875, -0.0312347412109375, -0.0751953125, 0.0214385986328125, 0.0045318603515625, -0.0031681060791015625, 0.00036025047302246094, -0.0221405029296875, -0.001438140869140625, 0.03564453125, -0.0232086181640625, 0.00841522216796875, 0.00496673583984375, -0.059051513671875, 0.01751708984375, -0.00750732421875, 0.00785064697265625, 0.0181121826171875, -0.0745849609375, 0.0075225830078125, -0.0257568359375, 0.01262664794921875, -0.0170440673828125, -0.033905029296875, 0.0300140380859375, -0.0196533203125, -0.00829315185546875, 0.044647216796875, 0.035675048828125, -0.0157470703125, 0.0113067626953125, -0.000045299530029296875, 0.009765625, 0.01416778564453125, 0.00843048095703125, 0.00563812255859375, -0.00946044921875, -0.0110321044921875, -0.038848876953125, 0.014190673828125, -0.0294036865234375, 0.035430908203125, 0.037384033203125, -0.0051727294921875, 0.0024204254150390625, -0.010498046875, -0.060699462890625, 0.09075927734375, 0.08258056640625, 0.056884765625, -0.07379150390625, -0.032440185546875, 0.0112457275390625, 0.059967041015625, 0.04486083984375, 0.00179290771484375, -0.0244903564453125, -0.02490234375, 0.01532745361328125, 0.027099609375, -0.023651123046875, 0.04107666015625, 0.0011148452758789062, -0.0095062255859375, 0.039764404296875, 0.0262603759765625, 0.0467529296875, 0.005756378173828125, -0.034149169921875, 0.016021728515625, 0.0265350341796875, 0.044464111328125, -0.0178680419921875, 0.032745361328125, -0.02813720703125, -0.00980377197265625, 0.03533935546875, -0.05047607421875, 0.00409698486328125, 0.04815673828125, 0.04400634765625, -0.068115234375, -0.0296173095703125, -0.042205810546875, 0.048126220703125, 0.0005517005920410156, 0.0143890380859375, 0.01192474365234375, 0.01067352294921875, 0.04217529296875, -0.0271148681640625, 0.0005402565002441406, 0.00986480712890625, -0.036163330078125, 0.04364013671875, 0.0117340087890625, 0.038116455078125, -0.0316162109375, 0.0144195556640625, 0.0247650146484375, 0.0548095703125, -0.037078857421875, -0.06988525390625, 0.01236724853515625, 0.01421356201171875, -0.00745391845703125, 0.041015625, 0.0142364501953125, 0.047607421875, 0.103515625, -0.04449462890625, 0.0009427070617675781, 0.0335693359375, 0.01494598388671875, -0.00467681884765625, 0.0066680908203125, -0.0159759521484375, -0.01047515869140625, -0.0008864402770996094, -0.011383056640625, 0.004425048828125, 0.0330810546875, 0.00911712646484375, 0.035064697265625, -0.06378173828125, -0.01461029052734375, -0.0151214599609375, 0.004505157470703125, -0.018463134765625, 0.00262451171875, 0.00992584228515625, 0.01238250732421875, -0.0265350341796875, 0.017425537109375, 0.0222320556640625, 0.01367950439453125, 0.0592041015625, 0.044281005859375, -0.033935546875, -0.00981903076171875, 0.0352783203125, -0.0179290771484375, -0.0252838134765625, -0.017303466796875, 0.0196990966796875, 0.040985107421875, 0.005672454833984375, 0.0017185211181640625, 0.0291595458984375, 0.0386962890625, 0.015899658203125, 0.02496337890625, 0.00656890869140625, -0.004180908203125, 0.0328369140625, 0.0038661956787109375, 0.05950927734375, 0.033233642578125, -0.121826171875, -0.04656982421875, 0.00246429443359375, -0.0189208984375, 0.0501708984375, 0.052215576171875, -0.0163421630859375, 0.005336761474609375, -0.005764007568359375, -0.0477294921875, 0.01270294189453125, 0.01155853271484375, 0.01535797119140625, 0.0111083984375, -0.023590087890625, -0.00972747802734375, 0.004901885986328125, 0.01155853271484375, 0.039886474609375, 0.0103607177734375, -0.002605438232421875, 0.0321044921875, 0.0008358955383300781, -0.005157470703125, -0.027008056640625, 0.06402587890625, -0.06622314453125, -0.054229736328125, 0.0823974609375, -0.0411376953125, -0.02703857421875, 0.00789642333984375, -0.029296875, 0.0017709732055664062, 0.048248291015625, -0.0212249755859375, -0.01702880859375, 0.00017344951629638672, 0.018341064453125, -0.0239410400390625, 0.0221710205078125, -0.011199951171875, 0.0235443115234375, -0.024932861328125, -0.06109619140625, 0.0738525390625, 0.060791015625, 0.0266571044921875, 0.020660400390625, 0.01488494873046875, -0.00021350383758544922, 0.01111602783203125, 0.017486572265625, 0.0038700103759765625, 0.028656005859375, -0.0086669921875, 0.029449462890625, 0.0111083984375, -0.0193023681640625, 0.03363037109375, 0.00820159912109375, -0.004116058349609375, 0.019683837890625, -0.020477294921875, -0.023162841796875, 0.03497314453125, 0.036590576171875, -0.0259246826171875, 0.00907135009765625, 0.0182647705078125, -0.0229644775390625, 0.01959228515625, -0.03631591796875, -0.03582763671875, -0.020416259765625, -0.0005803108215332031, 0.01532745361328125, -0.0015344619750976562, -0.024871826171875, -0.024200439453125, 0.0218963623046875, 0.0419921875, 0.006687164306640625, -0.049041748046875, 0.04132080078125, -0.040283203125, 0.042327880859375, -0.005977630615234375, -0.014923095703125, 0.0187835693359375, 0.00994873046875, -0.068603515625, 0.0029659271240234375, -0.014404296875, -0.0301971435546875, -0.0175628662109375, 0.045379638671875, 0.031585693359375, -0.034423828125, 0.0005593299865722656, 0.051513671875, 0.0391845703125, 0.09307861328125, 0.0233612060546875, -0.013519287109375, 0.00206756591796875, 0.0292510986328125, -0.02923583984375, 0.010467529296875, 0.0305328369140625, 0.005710601806640625, -0.0306854248046875, -0.020782470703125, 0.01020050048828125, 0.0241241455078125, -0.0313720703125, -0.0504150390625, 0.08935546875, -0.0243377685546875, -0.0250244140625, -0.0283203125, -0.00365447998046875, -0.009063720703125, -0.0085296630859375, -0.0106658935546875, -0.027313232421875, -0.02874755859375, 0.0109100341796875, 0.0025615692138671875, 0.02911376953125, -0.0026302337646484375, -0.0260009765625, -0.07476806640625, -0.0111083984375, -0.019927978515625, 0.03790283203125, -0.01529693603515625, 0.0343017578125, -0.019012451171875, 0.0191802978515625, -0.0298614501953125, 0.031402587890625, 0.003002166748046875, 0.0158538818359375, 0.0275115966796875, -0.0202178955078125, -0.05322265625, -0.059051513671875, 0.01129150390625, -0.0017147064208984375, 0.004627227783203125, 0.029571533203125, -0.054779052734375, -0.0675048828125, -0.02764892578125, -0.0247039794921875, 0.0228729248046875, -0.0662841796875, 0.02130126953125, 0.0221710205078125, -0.026702880859375, 0.01407623291015625, -0.006839752197265625, -0.03717041015625, 0.0019292831420898438, -0.01253509521484375, 0.00495147705078125, -0.052276611328125, 0.0208740234375, -0.0092315673828125, -0.0156707763671875, -0.0560302734375, 0.00806427001953125, -0.00278472900390625, -0.049102783203125, 0.0126800537109375, 0.0158233642578125, 0.041748046875, -0.01059722900390625, -0.03326416015625, 0.048004150390625, -0.030029296875, 0.043182373046875, -0.0031719207763671875, -0.043365478515625, 0.0022029876708984375, 0.0166015625, -0.009307861328125, -0.017791748046875, 0.039703369140625, 0.033599853515625, 0.02130126953125, 0.0275421142578125, 0.009429931640625, 0.00788116455078125, 0.0501708984375, 0.0149078369140625, -0.03790283203125, 0.0156402587890625, -0.0374755859375, -0.01302337646484375, -0.0050201416015625, -0.0230560302734375, -0.049346923828125, 0.0011301040649414062, -0.02960205078125, -0.006458282470703125, 0.01554107666015625 ]
f5b1f1a13e1199dbab94f470b9739ecc69283d40
Wordpress Stackexchange Q: Disable Or Redirect WP-login.php Is there a way to prevent visitors, whether logged in or not, from reaching mysite.com/wp-login.php? I have a separate login form which is all we need. I know I can re-style the form generated by wp-login but I'd rather not have to deal with it at all. I've tried various filters and hooks and I can't seem to get it to redirect. I also tried using a .htaccess redirect and I found that this works, but then it prevents my custom login/logout form from working. Ideas? A: Add a GET var for the logout action and it works fine. add_action('init','custom_login'); function custom_login(){ global $pagenow; if( 'wp-login.php' == $pagenow && $_GET['action']!="logout") { wp_redirect('http://YOURSITE.com/'); exit(); } }
Q: Disable Or Redirect WP-login.php Is there a way to prevent visitors, whether logged in or not, from reaching mysite.com/wp-login.php? I have a separate login form which is all we need. I know I can re-style the form generated by wp-login but I'd rather not have to deal with it at all. I've tried various filters and hooks and I can't seem to get it to redirect. I also tried using a .htaccess redirect and I found that this works, but then it prevents my custom login/logout form from working. Ideas? A: Add a GET var for the logout action and it works fine. add_action('init','custom_login'); function custom_login(){ global $pagenow; if( 'wp-login.php' == $pagenow && $_GET['action']!="logout") { wp_redirect('http://YOURSITE.com/'); exit(); } } A: I have been using the WordPress plugin Rename wp-login.php for quite sometime. It lets you switch wp-login.php to any other path. I was having bots slam my login pages, and now I get zero hits. A: After finding this question, and testing a few of the answers, the below is a "cleaned up" version of what I am using in a production environment. This version does not throw any notices / errors, and also allows for password resets to work: // Hook the appropriate WordPress action add_action('init', 'prevent_wp_login'); function prevent_wp_login() { // WP tracks the current page - global the variable to access it global $pagenow; // Check if a $_GET['action'] is set, and if so, load it into $action variable $action = (isset($_GET['action'])) ? $_GET['action'] : ''; // Check if we're on the login page, and ensure the action is not 'logout' if( $pagenow == 'wp-login.php' && ( ! $action || ( $action && ! in_array($action, array('logout', 'lostpassword', 'rp', 'resetpass'))))) { // Load the home page url $page = get_bloginfo('url'); // Redirect to the home page wp_redirect($page); // Stop execution to prevent the page loading for any reason exit(); } } A: WP-login handles login, logout, registeration, password reset and retrieval. Assuming you want to change the front-end login page. You can safely use the following code : function custom_login_page() { $new_login_page_url = home_url( '/login/' ); // new login page global $pagenow; if( $pagenow == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') { wp_redirect($new_login_page_url); exit; } } if(!is_user_logged_in()){ add_action('init','custom_login_page'); } This code snippet will: * *Redirect all website visitors to new login page. *Logout will work without any problem *On your custom login page you will have to create custom login , registration and password reset forms, However your custom forms can safely post data to wp-login.php as post requests are not redirected. A: Try this in your theme's functions.php add_action('init','custom_login'); function custom_login(){ global $pagenow; if( 'wp-login.php' == $pagenow && !is_user_logged_in()) { wp_redirect('http://yoursite.com/'); exit(); } } A: // https://codex.wordpress.org/Plugin_API/Filter_Reference/login_url#Examples add_filter('login_url', 'custom_login_url', 10, 3); function custom_login_url($login_url, $redirect, $force_reauth) { return home_url('/login/?redirect_to=' . $redirect); } This will redirect to /login instead of the nasty wp-login form. A: If your intention is to protect wp-login.php from strangers even being able to see it, the simplest efficient way to do so is to require authorization (basic auth) to access wp-login.php. In Apache, auth is implemented via a combination of htaccess and a password file. The first time, within a browser session, that anyone tries to access wp-login.php they will be prompted to enter an username and password (before the wordpress login). To simplify things, this username and password can be the same for every person you want to give access to wp-login.php, as they still have to enter their wordpress login after successfully getting past the first the auth dialog box. A: Replace $pageid with the page you want users to be redirected to /* Redirect log in page */ function redirect_login_page(){ // Store for checking if this page equals wp-login.php $page_viewed = basename( $_SERVER['REQUEST_URI'] ); // permalink to the custom login page $login_page = get_permalink($pageid); if( $page_viewed == "wp-login.php" ) { wp_redirect( $login_page ); exit(); } } add_action( 'init','redirect_login_page' ); A: <?php /* Template Name: Register Template */ if(is_user_logged_in()) { $user_id = get_current_user_id();$current_user = wp_get_current_user();$profile_url = get_author_posts_url($user_id);$edit_profile_url = get_edit_profile_url($user_id); ?> <div class="regted"> You're login with nickname <a href="<?php echo $profile_url ?>"><?php echo $current_user->display_name; ?></a> Are you want to <a href="<?php echo esc_url(wp_logout_url($current_url)); ?>">Exit</a> ? </div> <?php } else { ?> <div class="register"> <?php $err = ''; $success = ''; global $wpdb, $PasswordHash, $current_user, $user_ID; if(isset($_POST['task']) && $_POST['task'] == 'register' ) { $pwd1 = $wpdb->escape(trim($_POST['pwd1'])); $pwd2 = $wpdb->escape(trim($_POST['pwd2'])); $email = $wpdb->escape(trim($_POST['email'])); $username = $wpdb->escape(trim($_POST['username'])); if( $email == "" || $pwd1 == "" || $pwd2 == "" || $username == "") { $err = 'Please enter password in this field'; } else if(!filter_var($email, FILTER_VALIDATE_EMAIL)) { $err = 'Email is invalid'; } else if(email_exists($email) ) { $err = 'Email is existed'; } else if($pwd1 <> $pwd2 ){ $err = 'Password does not match the confirm password'; } else { $user_id = wp_insert_user( array ('user_pass' => apply_filters('pre_user_user_pass', $pwd1), 'user_login' => apply_filters('pre_user_user_login', $username), 'user_email' => apply_filters('pre_user_user_email', $email), 'role' => 'subscriber' ) ); if( is_wp_error($user_id) ) { $err = 'Error on user creation.'; } else { do_action('user_register', $user_id); $success = 'Registered Successfully'; } } } ?> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <!--display error/success message--> <div id="message"> <?php if(! empty($err) ) : echo ''.$err.''; endif; ?> <?php if(! empty($success) ) : $login_page = home_url( '/login' ); echo ''.$success. '<a href='.$login_page.'> Login</a>'.''; endif; ?> </div> <div class="container"> <div id="loginbox" style="margin-top:100px;" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2"> <div style="padding-bottom: 50px;" class="col-md-6 col-md-offset-4 col-sm-8 col-sm-offset-2"/><img src="#url.logo"></div> <form class="form-horizontal" method="post" role="form"> <div class="form-group"> <label class="control-label col-sm-3" for="username">Username:</label> <div class="col-sm-9"> <input type="text" class="form-control" name="username" id="username" placeholder="Username"> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="email">Email:</label> <div class="col-sm-9"> <input type="email" class="form-control" name="email" id="email" placeholder="Email"> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="pwd1">Password</label> <div class="col-sm-9"> <input type="password" class="form-control" name="pwd1" id="pwd1" placeholder="Enter your password"> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="pwd2">Retype password:</label> <div class="col-sm-9"> <input type="password" class="form-control" name="pwd2" id="pwd2" placeholder="Retype password"> </div> </div> <?php wp_nonce_field( 'post_nonce', 'post_nonce_field' ); ?> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9" style="text-align:center;"> <button type="submit" class="btn btn-primary">Register</button> <input type="hidden" name="task" value="register" /><br/> </div> </div> </form> </div> </div> </div> <?php get_footer(); ?> <div class="message"> <?php $login = (isset($_GET['login']) ) ? $_GET['login'] : 0; if ( $login === "failed" ) { echo '<strong>Error</strong> Wrong username or password!'; } elseif ( $login === "empty" ) { echo '<strong>Error:</strong>Username or password is blank field.'; } elseif ( $login === "false" ) { echo '<strong>ERROR:</strong> Exit'; } ?> </div> <?php } ?> Example my custom login page. Saving login.php and put code add_action('init','wpse_login'); function wpse_login(){ global $pagenow; if( 'wp-login.php' == $pagenow && !is_user_logged_in()) { wp_redirect('http://yoursite.com/login.php'); exit(); } } in functions.php
wordpress
{ "language": "en", "length": 1077, "provenance": "stackexchange_00019.jsonl.gz:423235", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62889" }
[ 0.09912109375, 0.0009293556213378906, 0.0251312255859375, -0.0254364013671875, 0.0196075439453125, -0.048675537109375, 0.08807373046875, -0.02276611328125, -0.027435302734375, 0.005401611328125, 0.028656005859375, -0.01654052734375, -0.03173828125, -0.044921875, 0.0296783447265625, -0.0270538330078125, 0.0140228271484375, 0.0266265869140625, 0.048065185546875, -0.01528167724609375, 0.029876708984375, -0.00383758544921875, 0.0243072509765625, 0.0090179443359375, -0.01059722900390625, 0.001842498779296875, 0.09320068359375, -0.048431396484375, 0.0164947509765625, -0.01397705078125, 0.014434814453125, -0.036590576171875, 0.01482391357421875, 0.06756591796875, -0.058135986328125, -0.028289794921875, -0.01184844970703125, 0.0247344970703125, -0.000751495361328125, 0.021514892578125, 0.0310516357421875, -0.0307159423828125, -0.01430511474609375, -0.039337158203125, -0.017608642578125, -0.00510406494140625, 0.029327392578125, -0.008941650390625, 0.0182342529296875, 0.010101318359375, -0.004268646240234375, 0.048828125, 0.01104736328125, -0.036407470703125, -0.0034885406494140625, 0.0011644363403320312, -0.0340576171875, 0.0275115966796875, 0.03704833984375, 0.01385498046875, -0.0183258056640625, -0.033111572265625, 0.01296234130859375, -0.030731201171875, -0.0006260871887207031, -0.0079345703125, -0.0265350341796875, 0.024017333984375, -0.02044677734375, -0.00567626953125, 0.0148162841796875, -0.03485107421875, 0.0252227783203125, -0.01206207275390625, -0.0203704833984375, -0.040802001953125, 0.0263824462890625, -0.018463134765625, 0.01611328125, -0.0018701553344726562, -0.042755126953125, -0.0240478515625, -0.046356201171875, -0.01503753662109375, 0.01239013671875, 0.0237274169921875, -0.034027099609375, -0.00524139404296875, -0.00738525390625, -0.01229095458984375, -0.0154571533203125, 0.00780487060546875, -0.0273284912109375, 0.004669189453125, -0.00830078125, -0.0194091796875, 0.0252838134765625, 0.00756072998046875, 0.01393890380859375, -0.01142120361328125, -0.0079803466796875, -0.028076171875, -0.01399993896484375, 0.0006594657897949219, -0.019317626953125, 0.060577392578125, 0.02423095703125, 0.042022705078125, -0.006145477294921875, -0.004894256591796875, 0.01324462890625, -0.0474853515625, -0.044708251953125, -0.04644775390625, -0.0038890838623046875, 0.048370361328125, -0.0295562744140625, -0.004833221435546875, 0.006916046142578125, 0.0182952880859375, -0.037322998046875, -0.0255126953125, 0.028778076171875, -0.002368927001953125, 0.0203094482421875, -0.006313323974609375, -0.0186767578125, -0.003826141357421875, -0.00969696044921875, 0.0222015380859375, -0.04632568359375, 0.012786865234375, 0.05303955078125, 0.00778961181640625, 0.01319122314453125, -0.022003173828125, 0.057373046875, -0.0262603759765625, -0.009368896484375, 0.01837158203125, 0.0031719207763671875, -0.030364990234375, -0.0110931396484375, -0.009918212890625, 0.01849365234375, 0.036102294921875, 0.0229339599609375, 0.0189971923828125, -0.025115966796875, -0.058990478515625, 0.03887939453125, -0.0246124267578125, 0.0012950897216796875, 0.0025005340576171875, 0.044281005859375, -0.003971099853515625, 0.0404052734375, -0.01328277587890625, -0.0189361572265625, -0.0007243156433105469, 0.011993408203125, 0.0172119140625, 0.017059326171875, -0.023773193359375, -0.042022705078125, -0.019256591796875, -0.03497314453125, -0.0213470458984375, 0.03363037109375, 0.044952392578125, 0.0261077880859375, -0.037841796875, 0.014251708984375, 0.0299835205078125, 0.004016876220703125, 0.0262908935546875, -0.0219573974609375, 0.040313720703125, 0.01554107666015625, 0.027191162109375, 0.02044677734375, -0.0229034423828125, 0.03271484375, 0.02545166015625, -0.05804443359375, 0.06500244140625, -0.0021648406982421875, 0.0302886962890625, -0.0063018798828125, -0.0129547119140625, 0.04644775390625, 0.05322265625, -0.03717041015625, 0.026031494140625, -0.0195159912109375, -0.04290771484375, 0.0147705078125, -0.013153076171875, -0.0049285888671875, 0.0311279296875, 0.055938720703125, -0.00789642333984375, -0.00162506103515625, -0.0243072509765625, -0.051544189453125, -0.007190704345703125, -0.00949859619140625, 0.0211334228515625, -0.006916046142578125, 0.0138092041015625, 0.01971435546875, 0.011962890625, -0.020782470703125, -0.007965087890625, -0.018218994140625, -0.024444580078125, -0.020263671875, 0.05596923828125, -0.013275146484375, 0.055877685546875, 0.002498626708984375, -0.06689453125, 0.0012540817260742188, -0.028106689453125, 0.012725830078125, -0.0335693359375, -0.0129852294921875, -0.018798828125, -0.01006317138671875, -0.01299285888671875, -0.0009326934814453125, 0.04913330078125, 0.0235443115234375, 0.01371002197265625, -0.044647216796875, -0.00856781005859375, 0.0036907196044921875, -0.033721923828125, -0.00403594970703125, 0.038330078125, 0.04534912109375, 0.0178680419921875, -0.01280975341796875, 0.01241302490234375, 0.0010843276977539062, -0.0921630859375, -0.0040435791015625, 0.0024127960205078125, 0.043548583984375, 0.036041259765625, -0.0169219970703125, -0.0273284912109375, 0.04315185546875, -0.0016994476318359375, 0.011627197265625, 0.03521728515625, -0.024169921875, -0.030731201171875, 0.01300048828125, 0.0022563934326171875, 0.003124237060546875, -0.03009033203125, -0.0182952880859375, -0.01153564453125, -0.0214691162109375, -0.035308837890625, -0.0181121826171875, -0.028350830078125, -0.00908660888671875, -0.037322998046875, 0.034698486328125, -0.04742431640625, -0.001556396484375, 0.0034236907958984375, 0.042022705078125, -0.047943115234375, -0.042449951171875, 0.011199951171875, 0.00875091552734375, -0.01174163818359375, -0.01837158203125, 0.00954437255859375, -0.0110321044921875, -0.01036834716796875, 0.0168304443359375, -0.03509521484375, 0.0245819091796875, 0.0019550323486328125, 0.0028400421142578125, -0.016387939453125, 0.025146484375, -0.01499176025390625, -0.0276947021484375, 0.0092010498046875, 0.029022216796875, -0.047210693359375, -0.004627227783203125, -0.06158447265625, 0.0694580078125, -0.053863525390625, 0.021636962890625, 0.07464599609375, -0.0159912109375, 0.038818359375, 0.006622314453125, -0.02655029296875, 0.0134124755859375, 0.0078582763671875, -0.0069122314453125, 0.0019292831420898438, -0.061065673828125, 0.004604339599609375, 0.027069091796875, 0.00897216796875, 0.036712646484375, -0.0192413330078125, 0.0082855224609375, 0.017974853515625, -0.0204315185546875, -0.0187530517578125, -0.05419921875, -0.064208984375, 0.05322265625, -0.00772857666015625, 0.0025539398193359375, -0.004421234130859375, 0.027252197265625, 0.037750244140625, -0.006771087646484375, -0.03094482421875, -0.0130767822265625, -0.027099609375, -0.0296173095703125, 0.003658294677734375, 0.00909423828125, -0.0004458427429199219, 0.0037746429443359375, 0.055877685546875, 0.00447845458984375, -0.039794921875, 0.00493621826171875, 0.0214080810546875, -0.005146026611328125, -0.006977081298828125, -0.056854248046875, -0.000438690185546875, 0.04559326171875, -0.0123443603515625, 0.01702880859375, -0.0275726318359375, 0.06103515625, -0.028656005859375, 0.0132293701171875, -0.043365478515625, 0.0139617919921875, 0.00223541259765625, -0.0265350341796875, -0.0447998046875, -0.0017347335815429688, -0.06488037109375, 0.01081085205078125, -0.0262298583984375, -0.046112060546875, 0.0026454925537109375, 0.0379638671875, -0.0218658447265625, 0.00507354736328125, -0.032135009765625, 0.0236968994140625, 0.0038089752197265625, -0.02398681640625, -0.0037364959716796875, 0.03564453125, 0.00905609130859375, 0.0482177734375, -0.0020427703857421875, 0.03668212890625, -0.0276031494140625, 0.01279449462890625, 0.00152587890625, -0.03973388671875, -0.042388916015625, -0.0294647216796875, -0.08026123046875, -0.04547119140625, 0.048126220703125, -0.039886474609375, -0.01285552978515625, -0.0224151611328125, -0.00945281982421875, 0.0014276504516601562, 0.084228515625, -0.016326904296875, 0.0031795501708984375, 0.018280029296875, 0.002826690673828125, -0.0185546875, -0.0224761962890625, -0.055877685546875, -0.0174102783203125, -0.09002685546875, 0.006435394287109375, -0.0149383544921875, -0.0178070068359375, 0.025543212890625, -0.05865478515625, -0.021697998046875, -0.06866455078125, 0.0014705657958984375, 0.03924560546875, 0.0223236083984375, 0.00928497314453125, 0.0029125213623046875, 0.0012922286987304688, 0.0195159912109375, -0.020111083984375, -0.053436279296875, -0.0017347335815429688, -0.03314208984375, 0.042449951171875, 0.024017333984375, 0.005550384521484375, -0.025421142578125, 0.0157928466796875, 0.033294677734375, -0.0176239013671875, 0.020660400390625, -0.0306243896484375, 0.0082244873046875, 0.032806396484375, 0.0134429931640625, -0.006328582763671875, -0.002532958984375, -0.006038665771484375, -0.020904541015625, 0.008514404296875, -0.03631591796875, -0.03131103515625, 0.004627227783203125, -0.03619384765625, -0.03350830078125, -0.039581298828125, -0.027252197265625, 0.0267791748046875, 0.002166748046875, -0.01873779296875, -0.047698974609375, -0.0654296875, 0.0438232421875, 0.0131988525390625, -0.005962371826171875, -0.002445220947265625, 0.0732421875, 0.01322174072265625, -0.0242156982421875, -0.015869140625, 0.033905029296875, 0.00726318359375, -0.018798828125, 0.0350341796875, -0.037353515625, -0.01505279541015625, 0.092529296875, -0.03948974609375, -0.00492095947265625, -0.0283966064453125, 0.07171630859375, -0.0200958251953125, -0.0308074951171875, 0.018707275390625, -0.057647705078125, 0.005321502685546875, 0.041046142578125, 0.0211944580078125, -0.0174560546875, 0.036895751953125, 0.0161285400390625, -0.034637451171875, -0.005428314208984375, 0.0028553009033203125, -0.0198516845703125, 0.006763458251953125, 0.0193023681640625, 0.0019178390502929688, 0.0482177734375, -0.0112457275390625, 0.013092041015625, -0.010772705078125, -0.01190185546875, -0.0012617111206054688, -0.0300140380859375, -0.0014677047729492188, 0.021240234375, -0.003612518310546875, -0.006526947021484375, 0.0197296142578125, -0.016143798828125, 0.1138916015625, 0.0258636474609375, -0.038604736328125, 0.02166748046875, -0.02984619140625, 0.01148223876953125, 0.0047149658203125, -0.00624847412109375, 0.0596923828125, -0.01000213623046875, -0.048736572265625, -0.0011072158813476562, -0.010833740234375, -0.03509521484375, -0.06756591796875, -0.0252838134765625, -0.00791168212890625, -0.010955810546875, 0.00933074951171875, 0.041168212890625, 0.000583648681640625, 0.02392578125, -0.01580810546875, 0.01995849609375, 0.0286865234375, 0.03314208984375, 0.017364501953125, 0.0066680908203125, -0.01546478271484375, 0.00653076171875, 0.016754150390625, -0.045623779296875, -0.04522705078125, 0.0257110595703125, 0.056365966796875, 0.003955841064453125, 0.0115814208984375, -0.0025997161865234375, 0.00024771690368652344, -0.009613037109375, 0.045318603515625, -0.0106353759765625, -0.09820556640625, -0.017822265625, 0.023345947265625, 0.019561767578125, -0.0499267578125, -0.0191650390625, -0.00003170967102050781, -0.058441162109375, -0.04095458984375, 0.05755615234375, -0.049102783203125, -0.032867431640625, -0.0172119140625, -0.033782958984375, -0.03790283203125, -0.00897216796875, -0.0261077880859375, 0.0009198188781738281, -0.007205963134765625, -0.013336181640625, -0.033966064453125, -0.035858154296875, 0.00334930419921875, -0.0107421875, 0.0092926025390625, -0.001331329345703125, 0.00881195068359375, 0.06768798828125, 0.032867431640625, -0.07135009765625, 0.02301025390625, -0.0226593017578125, -0.0014486312866210938, -0.03314208984375, -0.03485107421875, -0.04351806640625, -0.0129547119140625, 0.0458984375, 0.007534027099609375, 0.0256195068359375, -0.0269622802734375, -0.0271148681640625, 0.005523681640625, 0.03961181640625, 0.014617919921875, -0.0012865066528320312, 0.038360595703125, -0.01340484619140625, 0.0278472900390625, 0.01447296142578125, 0.04058837890625, 0.01554107666015625, -0.0290069580078125, 0.040740966796875, -0.0374755859375, -0.036376953125, -0.050689697265625, 0.02203369140625, 0.0214080810546875, 0.0372314453125, -0.016876220703125, -0.0213165283203125, -0.0226898193359375, -0.004390716552734375, -0.02655029296875, 0.037261962890625, -0.006092071533203125, -0.005035400390625, -0.03314208984375, 0.0135650634765625, 0.03759765625, -0.012939453125, -0.0212249755859375, 0.0167694091796875, 0.0009417533874511719, 0.03887939453125, -0.01532745361328125, -0.03778076171875, 0.00699615478515625, 0.053436279296875, 0.037139892578125, 0.062103271484375, -0.0115966796875, 0.044403076171875, 0.056365966796875, 0.009063720703125, -0.0135955810546875, -0.01253509521484375, 0.0504150390625, 0.00876617431640625, -0.0227508544921875, 0.034271240234375, -0.0238189697265625, -0.00279998779296875, 0.0948486328125, 0.059326171875, -0.138916015625, 0.01947021484375, 0.0074310302734375, 0.032928466796875, 0.050872802734375, -0.0193939208984375, 0.0214996337890625, 0.0282440185546875, 0.025390625, -0.03533935546875, -0.044769287109375, -0.00977325439453125, -0.0208740234375, -0.0037631988525390625, 0.0006361007690429688, 0.0177001953125, 0.0093231201171875, -0.041900634765625, -0.012725830078125, 0.04473876953125, -0.012603759765625, -0.032501220703125, -0.024749755859375, 0.00901031494140625, -0.0262908935546875, -0.08734130859375, -0.01062774658203125, -0.034515380859375, 0.00479888916015625, 0.058624267578125, 0.0013561248779296875, 0.042938232421875, 0.061126708984375, -0.004970550537109375, 0.04864501953125, -0.002933502197265625, 0.0020732879638671875, 0.0303802490234375, -0.02471923828125, -0.016845703125, -0.016326904296875, -0.0200042724609375, 0.002887725830078125, -0.004276275634765625, -0.0272979736328125, 0.00531005859375, 0.0014696121215820312, 0.058258056640625, 0.0015659332275390625, -0.0233306884765625, 0.035980224609375, -0.01003265380859375, -0.015960693359375, -0.03021240234375, 0.00791168212890625, -0.042449951171875, -0.0172576904296875, -0.02105712890625, -0.043487548828125, -0.010589599609375, -0.05078125, -0.048583984375, 0.06298828125, -0.021148681640625, 0.0224761962890625, 0.0187835693359375, 0.024749755859375, -0.0195465087890625, 0.0278778076171875, -0.04315185546875, 0.047454833984375, 0.0091705322265625, 0.056243896484375, -0.0208740234375, -0.007381439208984375, 0.03857421875, 0.0090484619140625, 0.03863525390625, 0.0244903564453125, -0.0311279296875, -0.01444244384765625, 0.014068603515625, 0.0465087890625, 0.00366973876953125, 0.016387939453125, -0.0145721435546875, 0.027587890625, 0.02301025390625, -0.04852294921875, 0.00452423095703125, 0.0159912109375, -0.0450439453125, 0.008697509765625, -0.00939178466796875, -0.0631103515625, -0.02655029296875, 0.0269622802734375, -0.1201171875, 0.0196990966796875, 0.03643798828125, 0.0703125, -0.0183563232421875, 0.031707763671875, 0.009979248046875, -0.04290771484375, 0.0200958251953125, -0.05438232421875, 0.04071044921875, -0.01873779296875, -0.01264190673828125, 0.0240020751953125, 0.026580810546875, -0.0169525146484375, -0.034332275390625, -0.00009912252426147461, 0.0152587890625, -0.0428466796875, 0.044708251953125, 0.023193359375, 0.029052734375, -0.03228759765625, -0.01128387451171875, 0.01450347900390625, 0.048980712890625, -0.03564453125, -0.0263824462890625, 0.0019855499267578125, 0.0031948089599609375, 0.03289794921875, -0.007843017578125, 0.051483154296875, -0.0180816650390625, -0.01204681396484375, -0.010498046875, 0.018798828125, 0.0458984375, -0.00981903076171875, 0.005214691162109375, 0.0277252197265625, -0.04217529296875, 0.031097412109375, 0.01177978515625, -0.0297698974609375, -0.0129547119140625, 0.0130157470703125, 0.00759124755859375, 0.0142974853515625, -0.01245880126953125, 0.00685882568359375, -0.005184173583984375, 0.0278167724609375, -0.01320648193359375, 0.0092010498046875, -0.0474853515625, -0.0450439453125, 0.000728607177734375, 0.04644775390625, -0.01183319091796875, -0.00783538818359375, -0.0016431808471679688, 0.025909423828125, 0.0117645263671875, -0.0189361572265625, 0.04443359375, -0.01316070556640625, -0.0027980804443359375, -0.0255584716796875, -0.024993896484375, 0.0024871826171875, -0.021636962890625, -0.01212310791015625, -0.00930023193359375, 0.033294677734375, -0.01149749755859375, 0.0311737060546875, 0.0011501312255859375, -0.032745361328125, -0.0010175704956054688, 0.00797271728515625, 0.06683349609375, 0.03155517578125, -0.05712890625, -0.0138702392578125, -0.0089569091796875, -0.0362548828125, 0.01036834716796875, 0.039031982421875, -0.0013761520385742188, 0.0041961669921875, 0.019989013671875, 0.01261138916015625, -0.02044677734375, -0.0285491943359375, 0.02423095703125, -0.06512451171875, 0.006793975830078125, -0.004047393798828125, -0.09954833984375, -0.03424072265625, -0.0435791015625, -0.00246429443359375, 0.00696563720703125, 0.0614013671875, 0.00514984130859375, 0.0204010009765625, -0.034820556640625, 0.005725860595703125, -0.01824951171875, -0.030364990234375, 0.020233154296875, 0.0008616447448730469, -0.015655517578125, 0.0034160614013671875, -0.07513427734375, 0.0660400390625, -0.020904541015625, 0.03839111328125, 0.058319091796875, -0.0237884521484375, 0.003658294677734375, 0.024688720703125, -0.00826263427734375, -0.03179931640625, -0.041595458984375, -0.0182342529296875, 0.01279449462890625, -0.01139068603515625, 0.0108795166015625, 0.0004897117614746094, 0.041473388671875, -0.053009033203125, -0.039886474609375, 0.00435638427734375, -0.0704345703125, -0.0177001953125, 0.0269927978515625, 0.0045013427734375, -0.006488800048828125, -0.0199432373046875, -0.01126861572265625, -0.0220947265625, 0.032958984375, -0.048004150390625, 0.01284027099609375, 0.004024505615234375, -0.00005733966827392578, 0.022857666015625, 0.035400390625, 0.004558563232421875, 0.01503753662109375, 0.0012531280517578125, -0.02142333984375, 0.00646209716796875, -0.09954833984375, -0.036773681640625, -0.05889892578125, -0.0028362274169921875, 0.038787841796875, -0.02227783203125, -0.0491943359375, -0.0307769775390625, 0.0225830078125, 0.0287628173828125, -0.01171112060546875, -0.053253173828125, 0.0210113525390625, -0.0460205078125, 0.07464599609375, -0.0301971435546875, 0.0219879150390625, 0.00897216796875, 0.032135009765625, -0.037811279296875, -0.00791168212890625, -0.0244140625, 0.0222015380859375, -0.02301025390625, -0.028778076171875, 0.0379638671875, 0.0114898681640625, -0.00724029541015625, -0.054595947265625, -0.047515869140625, -0.006465911865234375, -0.08294677734375, -0.014312744140625, 0.0096893310546875, -0.00392913818359375, 0.006683349609375, 0.005107879638671875, 0.00423431396484375, 0.0234222412109375, -0.0287322998046875, 0.00391387939453125, -0.0248565673828125, -0.01953125, -0.05059814453125, -0.07586669921875, 0.035736083984375, 0.00916290283203125, -0.03125, -0.02813720703125, 0.0262603759765625, 0.015380859375, -0.038421630859375, -0.00960540771484375, -0.0244293212890625, -0.005458831787109375, 0.01262664794921875, 0.0171966552734375, -0.007740020751953125, 0.0209808349609375, 0.06463623046875, -0.010345458984375, 0.05084228515625, 0.038116455078125, -0.01433563232421875, -0.02099609375, 0.015869140625, 0.0199737548828125, 0.03521728515625, -0.00396728515625, 0.04278564453125, 0.01727294921875, -0.01309967041015625, 0.01727294921875, -0.01552581787109375, -0.00510406494140625, -0.0272674560546875, 0.00037407875061035156, 0.0274505615234375, -0.004520416259765625, 0.0025615692138671875, -0.05059814453125, -0.04046630859375, -0.0234527587890625, -0.023040771484375, 0.015960693359375, -0.0836181640625, -0.007694244384765625, 0.00940704345703125, -0.0071868896484375, -0.01904296875, 0.042266845703125, -0.01690673828125, -0.00354766845703125, 0.052490234375, -0.018310546875, -0.0029621124267578125, 0.01264190673828125, 0.06390380859375, -0.050994873046875, -0.00222015380859375, -0.0157012939453125, 0.018310546875, 0.0182952880859375, -0.0574951171875, 0.0094451904296875, 0.0029048919677734375, -0.028076171875, 0.00690460205078125, 0.006328582763671875, 0.014434814453125, -0.024658203125, -0.0254364013671875, -0.0176239013671875, 0.023895263671875, -0.00936126708984375, 0.0234375, -0.005405426025390625, 0.01544952392578125, 0.019378662109375, 0.0303192138671875, -0.0013780593872070312, -0.0452880859375, -0.0263671875, 0.023223876953125, 0.0014553070068359375, -0.028228759765625, 0.0295867919921875, -0.0194244384765625, 0.01512908935546875, 0.01026153564453125, 0.034393310546875, -0.02996826171875, 0.04132080078125, -0.0112457275390625, 0.0167999267578125, 0.017852783203125 ]
c0c07c393a405e37d55bfee0b1c87ab48656507d
Wordpress Stackexchange Q: How to Sort Custom columns in admin I have set a custom column for date in admin, but the sorting is not working, when I click to sort the dates are jumbled up and not sorted correctly. This is the sorting function Im using function sortable_columns() { return array( // meta column id => sortby value used in query 'publishdate' => 'date', // e.g. 1344964575 ); } add_filter( "manage_edit-post_sortable_columns", "sortable_columns" ); A: This tutorial from WPTuts+ will do the trick ... Quick Tip: Make Your Custom Column Sortable In a recent article by Claudio Simeone, he demonstrated how you could add extra columns to your post, or custom post type, admin screens (or remove existing ones). In this quick tip I build on that by showing you how to make your newly created columns sortable.
Q: How to Sort Custom columns in admin I have set a custom column for date in admin, but the sorting is not working, when I click to sort the dates are jumbled up and not sorted correctly. This is the sorting function Im using function sortable_columns() { return array( // meta column id => sortby value used in query 'publishdate' => 'date', // e.g. 1344964575 ); } add_filter( "manage_edit-post_sortable_columns", "sortable_columns" ); A: This tutorial from WPTuts+ will do the trick ... Quick Tip: Make Your Custom Column Sortable In a recent article by Claudio Simeone, he demonstrated how you could add extra columns to your post, or custom post type, admin screens (or remove existing ones). In this quick tip I build on that by showing you how to make your newly created columns sortable.
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:423256", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/62957" }
[ 0.01352691650390625, -0.0031452178955078125, 0.0107421875, -0.00937652587890625, -0.004749298095703125, -0.006504058837890625, 0.0084228515625, -0.0266571044921875, 0.04168701171875, 0.005649566650390625, 0.006622314453125, -0.0294952392578125, -0.04156494140625, -0.037750244140625, -0.050323486328125, -0.033843994140625, 0.0391845703125, -0.0244598388671875, 0.0013837814331054688, -0.008056640625, -0.0019407272338867188, 0.029052734375, -0.001346588134765625, 0.022186279296875, 0.0352783203125, 0.005458831787109375, 0.00241851806640625, -0.00937652587890625, 0.049163818359375, 0.010498046875, 0.0299530029296875, -0.04437255859375, -0.0081787109375, 0.015838623046875, 0.041748046875, -0.021087646484375, 0.038055419921875, 0.00936126708984375, 0.0213775634765625, 0.0151824951171875, 0.01033782958984375, -0.0044097900390625, 0.0004773139953613281, -0.0038547515869140625, -0.0163421630859375, -0.0247650146484375, -0.00922393798828125, -0.033782958984375, 0.025115966796875, -0.0147857666015625, -3.5762786865234375e-7, -0.0165557861328125, 0.01910400390625, -0.052825927734375, -0.02349853515625, -0.022064208984375, -0.016357421875, 0.004734039306640625, 0.01690673828125, 0.0179290771484375, -0.0169830322265625, 0.01041412353515625, -0.0009660720825195312, -0.02777099609375, -0.0067291259765625, -0.0023708343505859375, 0.01837158203125, 0.0235595703125, -0.044525146484375, -0.0171661376953125, 0.032073974609375, -0.024322509765625, 0.006816864013671875, -0.024932861328125, -0.01166534423828125, -0.00421142578125, -0.0060272216796875, -0.0167388916015625, 0.0146331787109375, -0.007598876953125, 0.016632080078125, 0.0206756591796875, 0.005767822265625, -0.0251312255859375, 0.0123443603515625, 0.0038928985595703125, -0.023345947265625, -0.0167999267578125, -0.0156097412109375, -0.0187835693359375, -0.01180267333984375, -0.02972412109375, -0.039825439453125, 0.00704193115234375, 0.011138916015625, -0.03509521484375, 0.032867431640625, 0.07586669921875, -0.0055999755859375, -0.0288238525390625, -0.0232391357421875, -0.01519012451171875, -0.052703857421875, -0.0204315185546875, 0.0166015625, -0.01383209228515625, -0.01044464111328125, -0.004375457763671875, 0.0310516357421875, 0.0355224609375, -0.0276947021484375, -0.00792694091796875, 0.01471710205078125, -0.0090179443359375, -0.01226806640625, -0.007190704345703125, -0.0021610260009765625, -0.01435089111328125, -0.0062408447265625, -0.033233642578125, 0.030609130859375, 0.0297088623046875, -0.0204010009765625, -0.01367950439453125, 0.0024852752685546875, -0.011077880859375, -0.044403076171875, 0.00362396240234375, -0.00432586669921875, 0.0002048015594482422, -0.04144287109375, 0.0072784423828125, 0.07672119140625, 0.04669189453125, 0.034027099609375, -0.01406097412109375, 0.040069580078125, -0.0467529296875, -0.016021728515625, 0.00942230224609375, 0.0220184326171875, -0.013946533203125, -0.0103607177734375, 0.0011444091796875, -0.01290130615234375, 0.0160980224609375, 0.0157318115234375, -0.00514984130859375, 0.0125732421875, -0.03851318359375, -0.032073974609375, 0.011932373046875, 0.034088134765625, 0.00835418701171875, -0.022430419921875, 0.001514434814453125, 0.020233154296875, -0.01090240478515625, -0.0229034423828125, -0.0299224853515625, 0.02392578125, 0.005138397216796875, -0.017791748046875, -0.046966552734375, -0.044219970703125, -0.02093505859375, -0.047821044921875, -0.002376556396484375, 0.0241546630859375, -0.026153564453125, 0.01702880859375, 0.0036563873291015625, 0.0218505859375, 0.015716552734375, 0.00466156005859375, 0.00884246826171875, -0.005245208740234375, -0.072021484375, 0.021270751953125, 0.040557861328125, -0.0242462158203125, -0.016845703125, -0.0460205078125, 0.005832672119140625, -0.034637451171875, 0.03753662109375, -0.0005688667297363281, 0.0190887451171875, 0.00537109375, -0.00800323486328125, 0.023193359375, 0.03900146484375, -0.01172637939453125, 0.009185791015625, 0.004299163818359375, -0.001499176025390625, -0.032135009765625, 0.0171661376953125, -0.0167999267578125, -0.0254364013671875, -0.0311737060546875, 0.046142578125, -0.027557373046875, 0.03961181640625, -0.00514984130859375, 0.0296478271484375, -0.0136566162109375, 0.0343017578125, 0.0033130645751953125, 0.016326904296875, 0.0197296142578125, 0.02056884765625, -0.0474853515625, 0.02813720703125, -0.01546478271484375, 0.0170135498046875, 0.034881591796875, -0.004772186279296875, -0.02142333984375, -0.017578125, -0.033905029296875, -0.025390625, -0.039337158203125, 0.04681396484375, 0.0218963623046875, 0.004390716552734375, -0.0248260498046875, -0.0013561248779296875, 0.0194091796875, 0.0202789306640625, 0.0007700920104980469, 0.0194854736328125, 0.01538848876953125, 0.04010009765625, -0.02978515625, -0.01021575927734375, -0.031768798828125, -0.039642333984375, -0.0017900466918945312, 0.040557861328125, 0.0206451416015625, -0.004642486572265625, 0.0006594657897949219, 0.0117645263671875, 0.028289794921875, -0.00885772705078125, 0.00833892822265625, 0.00792694091796875, -0.004779815673828125, 0.0214080810546875, 0.0114288330078125, -0.00036406517028808594, 0.0177001953125, -0.0194091796875, 0.0073089599609375, 0.033966064453125, -0.022552490234375, -0.002452850341796875, 0.01557159423828125, 0.00795745849609375, -0.0074920654296875, -0.0158233642578125, -0.005687713623046875, -0.017242431640625, 0.01947021484375, -0.0027790069580078125, 0.044189453125, 0.023956298828125, -0.0175018310546875, -0.020477294921875, 0.012451171875, 0.00815582275390625, 0.01412200927734375, -0.002880096435546875, -0.0309600830078125, 0.0204010009765625, -0.026947021484375, 0.021331787109375, 0.01873779296875, -0.0155181884765625, -0.006237030029296875, 0.047698974609375, -0.01549530029296875, -0.005046844482421875, -0.0109405517578125, -0.046234130859375, 0.0078887939453125, 0.0267791748046875, 0.01509857177734375, 0.0006303787231445312, 0.0242156982421875, 0.005207061767578125, -0.024261474609375, 0.036346435546875, 0.01358795166015625, -0.03253173828125, -0.032379150390625, -0.034149169921875, 0.03143310546875, -0.03302001953125, 0.0010280609130859375, 0.0650634765625, -0.002994537353515625, 0.0278472900390625, -0.01139068603515625, 0.01412200927734375, -0.003986358642578125, -0.0038299560546875, -0.0035419464111328125, 0.0011749267578125, -0.0377197265625, 0.0213623046875, 0.050262451171875, 0.09136962890625, 0.006786346435546875, -0.033843994140625, 0.0106353759765625, 0.050537109375, -0.05584716796875, -0.12335205078125, -0.0274200439453125, -0.01409912109375, -0.0198822021484375, 0.0027484893798828125, -0.01139068603515625, 0.0283660888671875, 0.0034236907958984375, 0.00223541259765625, 0.034515380859375, -0.012908935546875, -0.020233154296875, 0.021392822265625, -0.038421630859375, 0.03204345703125, 0.0104217529296875, 0.019378662109375, -0.0044097900390625, 0.1187744140625, -0.0041046142578125, -0.11004638671875, -0.035064697265625, -0.04803466796875, -0.0125274658203125, 0.03399658203125, 0.042938232421875, -0.0272369384765625, 0.0301666259765625, 0.0025577545166015625, 0.09967041015625, 0.055816650390625, -0.073486328125, -0.01200103759765625, -0.0255279541015625, -0.006458282470703125, 0.016326904296875, -0.0186004638671875, 0.01038360595703125, 0.0236968994140625, 0.021026611328125, -0.0328369140625, -0.0152435302734375, 0.01739501953125, -0.0062408447265625, 0.00983428955078125, -0.0172576904296875, -0.01236724853515625, 0.0026702880859375, 0.032501220703125, 0.01180267333984375, 0.005702972412109375, 0.033782958984375, -0.01702880859375, -0.0101470947265625, 0.01065826416015625, 0.0195159912109375, -0.0298919677734375, 0.0203704833984375, -0.0118560791015625, 0.01416778564453125, 0.01230621337890625, 0.0338134765625, -0.00511932373046875, 0.050018310546875, -0.038330078125, -0.09661865234375, 0.06304931640625, -0.0218963623046875, -0.0284576416015625, -0.0186004638671875, -0.029815673828125, 0.039794921875, 0.099609375, -0.01403045654296875, -0.01409149169921875, -0.00742340087890625, 0.005859375, -0.04931640625, -0.0087890625, -0.04736328125, 0.0035839080810546875, -0.109130859375, 0.00333404541015625, -0.01271820068359375, -0.0229339599609375, -0.03167724609375, 0.032196044921875, -0.07061767578125, -0.042083740234375, 0.036712646484375, 0.03863525390625, -0.02691650390625, 0.03997802734375, -0.03570556640625, 0.010986328125, -0.01003265380859375, 0.01995849609375, -0.091064453125, -0.0210418701171875, 0.00994110107421875, 0.051300048828125, -0.0275726318359375, 0.0204010009765625, -0.052459716796875, 0.0316162109375, 0.0272369384765625, 0.00701904296875, 0.01348114013671875, -0.0293731689453125, 0.045440673828125, 0.0247650146484375, 0.01371002197265625, -0.00806427001953125, -0.022064208984375, -0.051513671875, -0.014129638671875, 0.02496337890625, -0.0187835693359375, 0.06451416015625, -0.012786865234375, 0.012603759765625, 0.0233306884765625, -0.007236480712890625, -0.0239105224609375, 0.02496337890625, -0.03082275390625, 0.00905609130859375, -0.014984130859375, 0.0066375732421875, 0.03729248046875, -0.01335906982421875, -0.0111083984375, -0.0023975372314453125, 0.0806884765625, 0.0203094482421875, -0.0119171142578125, -0.034515380859375, -0.00435638427734375, 0.00786590576171875, -0.0016164779663085938, 0.035430908203125, -0.0272979736328125, -0.0212249755859375, 0.060272216796875, -0.028656005859375, -0.04913330078125, 0.0015020370483398438, 0.04248046875, 0.0027027130126953125, -0.01197052001953125, -0.0128631591796875, -0.04327392578125, 0.05810546875, 0.0147552490234375, 0.017547607421875, -0.04058837890625, -0.00859832763671875, 0.07421875, 0.01313018798828125, -0.007549285888671875, -0.0582275390625, -0.060546875, 0.0176239013671875, -0.09832763671875, 0.02838134765625, -0.0032367706298828125, -0.0126800537109375, 0.03173828125, 0.0267181396484375, 0.0136566162109375, -0.005908966064453125, -0.023773193359375, -0.03564453125, 0.0217132568359375, -0.00852203369140625, 0.003932952880859375, 0.034576416015625, -0.0196075439453125, 0.10784912109375, 0.036041259765625, -0.0111236572265625, -0.0361328125, -0.023529052734375, -0.01020050048828125, -0.033935546875, -0.050994873046875, -0.00519561767578125, 0.032958984375, -0.0011959075927734375, 0.0211029052734375, -0.036834716796875, 0.031524658203125, -0.0229644775390625, 0.0093231201171875, 0.04571533203125, -0.0249176025390625, 0.020477294921875, 0.0394287109375, 0.048858642578125, 0.0017452239990234375, -0.0296783447265625, 0.047821044921875, 0.07025146484375, 0.032745361328125, 0.018829345703125, -0.0401611328125, -0.0150604248046875, 0.007129669189453125, -0.01464080810546875, 0.0039520263671875, 0.0176544189453125, -0.0189971923828125, -0.032470703125, -0.0032329559326171875, 0.00316619873046875, 0.04461669921875, 0.017822265625, -0.0301513671875, 0.020904541015625, 0.036407470703125, -0.01557159423828125, -0.01395416259765625, -0.040771484375, -0.019500732421875, 0.02447509765625, -0.009063720703125, 0.027618408203125, -0.056610107421875, 0.0236663818359375, -0.01534271240234375, 0.053192138671875, -0.06610107421875, -0.09637451171875, 0.01216888427734375, 0.00433349609375, 0.0107421875, -0.02813720703125, -0.0292205810546875, -0.0175323486328125, -0.001953125, 0.046051025390625, -0.0248565673828125, 0.019927978515625, -0.01520538330078125, 0.007476806640625, -0.03912353515625, 0.0167236328125, 0.0286102294921875, 0.0186309814453125, -0.042266845703125, -0.021759033203125, -0.060089111328125, -0.0198516845703125, -0.059234619140625, -0.03125, -0.016510009765625, 0.0212554931640625, 0.0289459228515625, 0.0316162109375, -0.017974853515625, -0.08502197265625, -0.002285003662109375, -0.013580322265625, 0.0330810546875, 0.00376129150390625, -0.0264739990234375, 0.08721923828125, -0.0104827880859375, 0.05474853515625, 0.00225067138671875, 0.03839111328125, -0.0080413818359375, -0.01241302490234375, 0.035003662109375, -0.01396942138671875, -0.04925537109375, -0.0127716064453125, -0.0579833984375, -0.041534423828125, 0.00966644287109375, -0.02093505859375, 0.025238037109375, -0.0333251953125, -0.00946807861328125, -0.0274200439453125, 0.0233306884765625, -0.0548095703125, 0.038116455078125, -0.02813720703125, -0.01149749755859375, 0.033416748046875, -0.0196533203125, -0.037994384765625, 0.051025390625, -0.006744384765625, 0.050445556640625, 0.005603790283203125, -0.0178070068359375, 0.040557861328125, 0.0433349609375, 0.026336669921875, 0.049713134765625, 0.005146026611328125, 0.039306640625, -0.005664825439453125, -0.022735595703125, 0.034393310546875, -0.01126861572265625, 0.038238525390625, -0.01319122314453125, -0.0005440711975097656, 0.0231475830078125, -0.01416778564453125, 0.034210205078125, 0.086181640625, 0.08685302734375, -0.127685546875, 0.0201873779296875, 0.01012420654296875, -0.005496978759765625, 0.0633544921875, -0.0155487060546875, 0.0120849609375, 0.00637054443359375, 0.007099151611328125, -0.0007610321044921875, -0.031494140625, -0.0013589859008789062, -0.003459930419921875, -0.01141357421875, -0.007358551025390625, -0.01013946533203125, 0.0008726119995117188, -0.007358551025390625, -0.02178955078125, -0.0176239013671875, 0.00977325439453125, 0.0284576416015625, 0.051666259765625, -0.045806884765625, 0.004058837890625, -0.036041259765625, -0.0290374755859375, -0.0291900634765625, -0.037322998046875, -0.0250701904296875, 0.0182952880859375, 0.034088134765625, 0.034271240234375, -0.0073089599609375, -0.00496673583984375, 0.0018301010131835938, -0.0110321044921875, 0.0028934478759765625, -0.040313720703125, -0.009002685546875, 0.01032257080078125, 0.01085662841796875, 0.01971435546875, 0.0203399658203125, -0.053955078125, -0.006969451904296875, 0.0110321044921875, 0.063720703125, -0.0068206787109375, -0.042816162109375, 0.0181121826171875, 0.0145416259765625, -0.007617950439453125, 0.009613037109375, 0.0293121337890625, -0.0457763671875, -0.00218963623046875, 0.0111541748046875, -0.0013065338134765625, 0.0080108642578125, 0.01751708984375, -0.03155517578125, 0.08331298828125, -0.0166168212890625, 0.006244659423828125, 0.0047607421875, 0.041015625, 0.0014791488647460938, 0.031951904296875, -0.07391357421875, 0.03863525390625, -0.016021728515625, 0.06365966796875, -0.1075439453125, -0.01413726806640625, -0.01812744140625, 0.017242431640625, 0.0159149169921875, -0.00701141357421875, -0.041290283203125, 0.01308441162109375, 0.09014892578125, 0.055908203125, 0.0445556640625, 0.01947021484375, -0.01325225830078125, 0.037261962890625, 0.01091766357421875, 0.027252197265625, 0.041412353515625, 0.006938934326171875, -0.0814208984375, 0.02020263671875, 0.004436492919921875, 0.01482391357421875, -0.0003998279571533203, -0.043914794921875, -0.04443359375, -0.00246429443359375, 0.0264434814453125, -0.0230255126953125, 0.00439453125, 0.02484130859375, 0.04833984375, -0.08184814453125, -0.10052490234375, -0.0011577606201171875, 0.0259552001953125, 0.03289794921875, 0.047393798828125, 0.0213165283203125, 0.024078369140625, 0.0205841064453125, -0.0171051025390625, 0.0215911865234375, 0.0169525146484375, -0.041595458984375, 0.0396728515625, 0.00884246826171875, 0.0012788772583007812, -0.039825439453125, 0.0040740966796875, 0.032440185546875, 0.037353515625, -0.033172607421875, 0.006031036376953125, 0.02667236328125, -0.01381683349609375, -0.01491546630859375, -0.038238525390625, -0.037322998046875, -0.01032257080078125, -0.013885498046875, -0.0242156982421875, -0.0209197998046875, 0.0254974365234375, 0.053619384765625, 0.0142669677734375, 0.0123138427734375, -0.03271484375, -0.0596923828125, -0.044281005859375, 0.037353515625, 0.0222320556640625, 0.040985107421875, -0.0024509429931640625, 0.06732177734375, -0.027557373046875, -0.0169830322265625, -0.0159454345703125, 0.0289764404296875, -0.0088043212890625, 0.0239715576171875, -0.045196533203125, -0.0293426513671875, -0.006343841552734375, 0.03143310546875, -0.01459503173828125, 0.0015592575073242188, 0.02252197265625, 0.0223846435546875, -0.0102691650390625, -0.0177459716796875, 0.0355224609375, -0.01885986328125, -0.06585693359375, -0.04473876953125, -0.0084991455078125, 0.010833740234375, 0.0229644775390625, 0.046234130859375, 0.0274200439453125, -0.00943756103515625, -0.022735595703125, 0.01476287841796875, -0.003803253173828125, -0.00815582275390625, 0.0257415771484375, -0.014984130859375, 0.03265380859375, -0.01337432861328125, -0.045684814453125, 0.005523681640625, -0.037994384765625, -0.0587158203125, 0.02691650390625, 0.03515625, -0.011077880859375, 0.01194000244140625, -0.020965576171875, -0.0221099853515625, 0.036468505859375, -0.0024509429931640625, -0.006732940673828125, 0.003810882568359375, 0.0143280029296875, -0.0291900634765625, -0.034423828125, -0.0262908935546875, -0.0160675048828125, 0.04254150390625, 0.00855255126953125, 0.041748046875, -0.01190948486328125, 0.0247039794921875, -0.00943756103515625, -0.016693115234375, -0.031341552734375, -0.0163421630859375, 0.045501708984375, -0.032928466796875, -0.03448486328125, -0.0004489421844482422, 0.00914764404296875, -0.0158233642578125, 0.039794921875, -0.064697265625, -0.0220184326171875, -0.0025539398193359375, 0.0146636962890625, -0.018463134765625, -0.0040740966796875, -0.034271240234375, -0.021087646484375, 0.010955810546875, 0.00225067138671875, -0.00650787353515625, -0.0222930908203125, 0.004344940185546875, 0.00147247314453125, 0.024078369140625, -0.052154541015625, 0.033447265625, -0.031768798828125, 0.06475830078125, 0.04437255859375, 0.011871337890625, -0.0142669677734375, 0.0270538330078125, -0.00847625732421875, 0.0238189697265625, 0.0128326416015625, 0.0298614501953125, 0.023834228515625, -0.016387939453125, 0.00939178466796875, 0.02862548828125, 0.0322265625, -0.037628173828125, 0.00431060791015625, 0.0312042236328125, -0.01026153564453125, 0.01153564453125, -0.00464630126953125, -0.01387786865234375, -0.036529541015625, -0.004329681396484375, 0.02728271484375, -0.0182952880859375, 0.0084075927734375, -0.05487060546875, 0.0008802413940429688, 0.0137939453125, 0.0014972686767578125, -0.03875732421875, 0.035186767578125, -0.0254058837890625, -0.018951416015625, 0.0146942138671875, 0.005344390869140625, 0.0254669189453125, 0.07000732421875, -0.006103515625, -0.0144805908203125, 0.00589752197265625, 0.019195556640625, -0.0165863037109375, 0.0286407470703125, 0.021514892578125, -0.0178070068359375, -0.00600433349609375, 0.027801513671875, 0.00623321533203125, 0.072509765625, 0.018402099609375, 0.0013170242309570312, 0.0221099853515625, 0.014678955078125, -0.0307159423828125, -0.07379150390625, 0.00571441650390625, -0.034912109375, 0.0150604248046875, -0.030853271484375, 0.045074462890625, 0.052093505859375, -0.0167694091796875, -0.0633544921875, 0.053466796875, -0.020965576171875, -0.0213470458984375, -0.04144287109375, 0.0099639892578125, 0.012908935546875, -0.0041656494140625, -0.005756378173828125, -0.0285186767578125, -0.032745361328125, -0.00223541259765625, 0.00952911376953125, 0.0143280029296875, 0.01253509521484375, 0.01617431640625, -0.0638427734375, 0.012939453125, -0.021820068359375, -0.0017290115356445312, 0.00231170654296875, -0.0195159912109375, 0.029876708984375, 0.0236968994140625, -0.0187225341796875, -0.042816162109375, 0.0167388916015625, -0.01163482666015625, 0.0025043487548828125, -0.0167694091796875, -0.058502197265625, -0.01739501953125, 0.031494140625, 0.09014892578125, 0.0214691162109375, -0.035736083984375, 0.01165771484375, -0.036102294921875, -0.034088134765625, -0.026885986328125, 0.01204681396484375, -0.0701904296875, -0.0281829833984375, 0.0111236572265625, 0.005889892578125, 0.01284027099609375, 0.0122528076171875, 0.0196990966796875, 0.00467681884765625, 0.07891845703125, 0.0078125, -0.0372314453125, 0.058746337890625, 0.0240936279296875, -0.045562744140625, -0.01549530029296875, -0.01739501953125, -0.006793975830078125, -0.00801849365234375, -0.032928466796875, -0.051544189453125, -0.045745849609375, 0.0204620361328125, 0.006500244140625, -0.01239013671875, 0.016571044921875, 0.0172119140625, 0.0159912109375, 0.002925872802734375, 0.00228118896484375, -0.02325439453125, -0.0384521484375, 0.00716400146484375, 0.022552490234375, -0.030914306640625, 0.08392333984375, 0.006069183349609375, 0.04364013671875, -0.020294189453125, 0.039642333984375, -0.0230255126953125, -0.00664520263671875, -0.003017425537109375, 0.003993988037109375, 0.01096343994140625, 0.00662994384765625, -0.03338623046875, -0.01204681396484375, -0.01593017578125, -0.0293731689453125, -0.018768310546875, 0.006008148193359375 ]