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
242d27ed616008e9b78c84653424df2f8b11bcf1
Wordpress Stackexchange Q: How to add super admin to all sites Is there a way to add super admins to ALL sites without having to add them to each site individually? My group of super admins needs access to all sites. A: Super admins do have access to all sites, but they don't show up in "My Sites" by default, which I imagine is where you're looking. They'll want to go to the network admin (/wp-admin/network/, then go to all sites from there, then find the site they want to edit and click "Dashboard" (which appears on hover). I like to think of "My Sites" almost as favorites, and only add myself to a site when I'll be accessing it frequently, as it reduces the list I have to pick through. Does that make sense and clear up your question?
Q: How to add super admin to all sites Is there a way to add super admins to ALL sites without having to add them to each site individually? My group of super admins needs access to all sites. A: Super admins do have access to all sites, but they don't show up in "My Sites" by default, which I imagine is where you're looking. They'll want to go to the network admin (/wp-admin/network/, then go to all sites from there, then find the site they want to edit and click "Dashboard" (which appears on hover). I like to think of "My Sites" almost as favorites, and only add myself to a site when I'll be accessing it frequently, as it reduces the list I have to pick through. Does that make sense and clear up your question? A: Or For adding your sites on "My Sites" if you've missed them, then you can add them by go to Network Admin > Dashboard > All Sites > Edit Your Desired Site > Users (Tab) > Add Existing User > Add your desired existing username and role it as "Admin" Regards.
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:416507", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40258" }
[ 0.103271484375, 0.0166015625, 0.053253173828125, -0.030670166015625, 0.0229644775390625, -0.0177001953125, 0.05328369140625, -0.05718994140625, -0.003711700439453125, 0.01125335693359375, -0.01021575927734375, -0.006099700927734375, 0.0036144256591796875, -0.03460693359375, 0.00812530517578125, -0.0270538330078125, 0.0423583984375, -0.0260162353515625, 0.025604248046875, 0.002643585205078125, 0.00481414794921875, 0.0247650146484375, 0.0142059326171875, 0.006923675537109375, -0.0036373138427734375, 0.006038665771484375, 0.0245513916015625, -0.01175689697265625, 0.00975799560546875, -0.0037689208984375, 0.006591796875, -0.01186370849609375, -0.01201629638671875, -0.01450347900390625, 0.0543212890625, -0.035797119140625, 0.038421630859375, -0.021636962890625, 0.0158233642578125, 0.0136871337890625, 0.0214691162109375, -0.0026950836181640625, 0.03167724609375, 0.07489013671875, 0.0037059783935546875, -0.0621337890625, 0.0416259765625, -0.0684814453125, 0.0012493133544921875, -0.07928466796875, -0.002315521240234375, -0.0115509033203125, 0.034271240234375, -0.0357666015625, -0.03228759765625, -0.019622802734375, 0.029541015625, 0.0167388916015625, 0.044952392578125, -0.0828857421875, -0.0555419921875, -0.0204315185546875, 0.042510986328125, 0.0101165771484375, -0.003063201904296875, -0.0067901611328125, 0.019622802734375, 0.00972747802734375, -0.0531005859375, -0.01044464111328125, 0.036651611328125, -0.02398681640625, 0.00989532470703125, 0.0232086181640625, -0.0066680908203125, -0.043243408203125, 0.005710601806640625, -0.0031280517578125, 0.034576416015625, 0.0010356903076171875, -0.00968170166015625, 0.002429962158203125, -0.0077667236328125, -0.0247955322265625, 0.0045318603515625, 0.00490570068359375, -0.019378662109375, -0.0126190185546875, 0.0135345458984375, -0.03173828125, -0.004730224609375, -0.0240631103515625, -0.0171661376953125, 0.02911376953125, -0.00010502338409423828, -0.04364013671875, 0.057159423828125, 0.09600830078125, -0.005939483642578125, -0.0070343017578125, -0.039947509765625, -0.0279083251953125, -0.03424072265625, -0.04315185546875, 0.00193023681640625, 0.03570556640625, -0.045196533203125, 0.021484375, 0.046905517578125, 0.04742431640625, 0.019439697265625, -0.046051025390625, 0.036102294921875, -0.0001958608627319336, -0.032470703125, -0.030975341796875, -0.004383087158203125, -0.007015228271484375, 0.005313873291015625, -0.032958984375, -0.0063018798828125, 0.0179443359375, -0.0579833984375, 0.0167236328125, -0.0262603759765625, -0.050689697265625, -0.0039825439453125, 0.0198822021484375, -0.0264129638671875, -0.01910400390625, -0.02569580078125, 0.041046142578125, 0.0611572265625, 0.03546142578125, -0.0057373046875, -0.00023305416107177734, 0.01163482666015625, -0.00720977783203125, -0.0031452178955078125, 0.021209716796875, 0.037445068359375, -0.05242919921875, -0.03814697265625, 0.025970458984375, 0.0013322830200195312, 0.020782470703125, 0.0256500244140625, 0.00540924072265625, -0.0037250518798828125, -0.0125579833984375, -0.0164337158203125, -0.006683349609375, 0.01837158203125, -0.00872039794921875, 0.0239105224609375, -0.0115509033203125, 0.0106201171875, -0.01360321044921875, -0.008148193359375, 0.015655517578125, -0.0136871337890625, 0.0027904510498046875, 0.03314208984375, 0.01329803466796875, 0.006855010986328125, -0.0111236572265625, -0.02081298828125, 0.00815582275390625, 0.0234527587890625, -0.034576416015625, 0.0028209686279296875, 0.00988006591796875, 0.078857421875, 0.000850677490234375, -0.0042877197265625, 0.007564544677734375, -0.0029697418212890625, 0.023712158203125, 0.0092926025390625, -0.0025653839111328125, -0.01503753662109375, -0.043701171875, 0.0216522216796875, -0.0012884140014648438, -0.035491943359375, -0.03509521484375, -0.00994110107421875, 0.006687164306640625, 0.050201416015625, 0.003513336181640625, 0.0428466796875, -0.0341796875, -0.004428863525390625, 0.0241851806640625, 0.0038909912109375, 0.0138397216796875, -0.03314208984375, 0.044921875, -0.02142333984375, -0.0665283203125, -0.0005135536193847656, -0.031005859375, 0.033966064453125, 0.002025604248046875, 0.046173095703125, -0.0223846435546875, 0.01131439208984375, 0.004108428955078125, 0.06829833984375, -0.00908660888671875, -0.032379150390625, -0.039459228515625, 0.0261993408203125, -0.0638427734375, -0.08880615234375, 0.0258331298828125, -0.006771087646484375, 0.025970458984375, 0.00835418701171875, 0.02789306640625, 0.0119781494140625, 0.000667572021484375, 0.01088714599609375, 0.0112762451171875, 0.036895751953125, 0.033966064453125, -0.05487060546875, 0.0150146484375, 0.00275421142578125, 0.0199432373046875, -0.044281005859375, 0.05303955078125, -0.0015697479248046875, 0.01806640625, -0.00453948974609375, 0.00785064697265625, -0.0024242401123046875, -0.044830322265625, -0.004451751708984375, 0.03192138671875, 0.0207977294921875, 0.0390625, -0.0219268798828125, 0.014923095703125, -0.005138397216796875, -0.06402587890625, 0.004261016845703125, 0.004489898681640625, 0.0139617919921875, 0.052337646484375, -0.0131988525390625, 0.01532745361328125, 0.02545166015625, -0.020721435546875, 0.00905609130859375, 0.052215576171875, -0.00894927978515625, -0.003063201904296875, -0.039215087890625, -0.00939178466796875, 0.02484130859375, -0.0250091552734375, -0.031982421875, -0.007476806640625, 0.0017032623291015625, -0.01059722900390625, 0.005527496337890625, 0.0249481201171875, 0.00679779052734375, -0.031646728515625, 0.0200042724609375, -0.002742767333984375, -0.0025806427001953125, 0.0281982421875, 0.0072021484375, 0.007556915283203125, -0.04180908203125, 0.0037288665771484375, 0.00762176513671875, 0.005733489990234375, -0.01337432861328125, 0.01091766357421875, 0.00569915771484375, -0.015472412109375, 0.023040771484375, -0.0609130859375, 0.00859832763671875, -0.02362060546875, 0.01200103759765625, -0.028167724609375, 0.015533447265625, -0.02093505859375, -0.037139892578125, 0.03192138671875, -0.01378631591796875, -0.0498046875, 0.00893402099609375, -0.048095703125, 0.044036865234375, -0.0251617431640625, 0.03466796875, 0.078125, 0.004428863525390625, 0.019500732421875, -0.011749267578125, 0.00070953369140625, -0.03289794921875, 0.019073486328125, -0.01152801513671875, -0.0180511474609375, -0.060821533203125, -0.006832122802734375, 0.007633209228515625, -0.00879669189453125, -0.01158905029296875, -0.0178070068359375, -0.0035610198974609375, -0.004932403564453125, -0.041473388671875, -0.0234222412109375, -0.026153564453125, -0.05865478515625, -0.0179595947265625, -0.028228759765625, -0.035888671875, 0.02569580078125, -0.022125244140625, 0.00998687744140625, -0.00003248453140258789, -0.01334381103515625, 0.00458526611328125, -0.02752685546875, -0.034912109375, -0.036407470703125, 0.00812530517578125, -0.0021820068359375, 0.0015325546264648438, 0.0360107421875, -0.018218994140625, -0.042144775390625, -0.0273590087890625, 0.0304718017578125, 0.001110076904296875, -0.0301513671875, 0.0023193359375, -0.01401519775390625, 0.010772705078125, -0.0013895034790039062, -0.023406982421875, 0.0246429443359375, -0.017578125, -0.00707244873046875, 0.0010433197021484375, -0.006439208984375, 0.0287933349609375, 0.00838470458984375, -0.01056671142578125, 0.0010528564453125, 0.00745391845703125, -0.05322265625, 0.041473388671875, 0.01059722900390625, 0.0004303455352783203, 0.002765655517578125, -0.0026226043701171875, -0.04779052734375, 0.01229095458984375, -0.0261383056640625, 0.004291534423828125, 0.0133056640625, 0.01499176025390625, 0.01435089111328125, -0.057373046875, -0.0136260986328125, -0.02789306640625, 0.0011434555053710938, -0.005947113037109375, -0.046630859375, 0.006328582763671875, -0.0168914794921875, -0.0162353515625, -0.01557159423828125, 0.038299560546875, 0.01174163818359375, -0.0270538330078125, 0.0164337158203125, -0.08160400390625, 0.06304931640625, -0.092529296875, -0.00958251953125, -0.059722900390625, 0.09210205078125, -0.01163482666015625, 0.0033111572265625, -0.0303497314453125, 0.006679534912109375, -0.010467529296875, -0.0806884765625, -0.025726318359375, -0.02374267578125, -0.053955078125, 0.007152557373046875, -0.0240478515625, -0.02691650390625, -0.0211029052734375, -0.0242919921875, -0.01418304443359375, -0.02447509765625, 0.026092529296875, -0.04840087890625, 0.02972412109375, -0.019866943359375, -0.0099334716796875, -0.0092926025390625, -0.0016126632690429688, -0.05621337890625, -0.08062744140625, 0.00421142578125, -0.0546875, 0.04010009765625, 0.0085601806640625, 0.0140228271484375, -0.0291900634765625, 0.005413055419921875, -0.00168609619140625, -0.00634002685546875, -0.00789642333984375, 0.0194854736328125, -0.034576416015625, -0.028045654296875, -0.01013946533203125, -0.04058837890625, -0.037811279296875, -0.0298004150390625, -0.02154541015625, -0.0289459228515625, -0.01519775390625, -0.051025390625, 0.02752685546875, -0.0205078125, -0.0189056396484375, -0.053497314453125, -0.06866455078125, 0.0030364990234375, -0.04248046875, 0.0119781494140625, -0.0595703125, -0.04180908203125, 0.007720947265625, 0.0170440673828125, -0.0406494140625, 0.02850341796875, 0.0156707763671875, 0.02655029296875, -0.0244293212890625, -0.041717529296875, 0.057281494140625, 0.03948974609375, -0.0196990966796875, 0.0214385986328125, 0.034210205078125, 0.005260467529296875, -0.042877197265625, -0.0006966590881347656, 0.00946044921875, -0.0196685791015625, -0.01062774658203125, 0.01091766357421875, -0.02752685546875, 0.0249481201171875, 0.01345062255859375, 0.02117919921875, 0.0018939971923828125, -0.01354217529296875, -0.007526397705078125, -0.00634765625, 0.046112060546875, -0.002124786376953125, 0.00308990478515625, -0.0628662109375, -0.003177642822265625, -0.0014209747314453125, -0.001255035400390625, 0.0002543926239013672, 0.011810302734375, 0.004360198974609375, -0.03399658203125, -0.0196990966796875, 0.00881195068359375, 0.006458282470703125, 0.0123748779296875, -0.001918792724609375, 0.023345947265625, 0.006938934326171875, -0.0049285888671875, -0.0081024169921875, -0.033721923828125, 0.1165771484375, 0.0238494873046875, -0.074462890625, 0.09124755859375, -0.034912109375, 0.0419921875, 0.01479339599609375, 0.007114410400390625, 0.0136260986328125, 0.0222015380859375, -0.0272369384765625, -0.007232666015625, 0.004055023193359375, -0.01183319091796875, -0.050018310546875, 0.01201629638671875, -0.0029449462890625, 0.0023365020751953125, 0.040191650390625, 0.042266845703125, -0.004207611083984375, 0.037322998046875, -0.0180511474609375, 0.0107879638671875, 0.0164794921875, -0.007137298583984375, -0.002643585205078125, 0.07745361328125, -0.00873565673828125, -0.00910186767578125, 0.037628173828125, 0.0018281936645507812, 0.01837158203125, 0.014312744140625, 0.01702880859375, 0.09271240234375, 0.0312347412109375, -0.0494384765625, -0.033721923828125, -0.0177764892578125, 0.06549072265625, 0.049285888671875, -0.0640869140625, -0.019012451171875, -0.0052337646484375, 0.005207061767578125, -0.027313232421875, 0.03369140625, 0.0034999847412109375, 0.0460205078125, -0.005931854248046875, -0.00911712646484375, -0.0482177734375, -0.0075225830078125, 0.00867462158203125, -0.03021240234375, 0.0016794204711914062, -0.00890350341796875, -0.064208984375, -0.034271240234375, -0.005397796630859375, -0.032196044921875, 0.0592041015625, 0.0065155029296875, 0.036163330078125, -0.025054931640625, -0.0140838623046875, 0.00917816162109375, 0.00917816162109375, 0.0213165283203125, 0.01277923583984375, -0.0019121170043945312, -0.0009365081787109375, -0.0322265625, -0.037200927734375, -0.03271484375, -0.0244903564453125, -0.037353515625, -0.009521484375, 0.025115966796875, 0.0054779052734375, -0.004138946533203125, -0.03350830078125, 0.016571044921875, 0.0243377685546875, -0.0010805130004882812, -0.004688262939453125, 0.00847625732421875, 0.053558349609375, -0.037353515625, 0.052734375, 0.004535675048828125, 0.03326416015625, 0.007045745849609375, -0.0307769775390625, 0.0202178955078125, -0.0579833984375, -0.0413818359375, -0.025604248046875, -0.0219879150390625, 0.0421142578125, 0.024383544921875, -0.00858306884765625, 0.00151824951171875, -0.0087738037109375, 0.012847900390625, -0.00678253173828125, 0.020660400390625, 0.00782012939453125, 0.01947021484375, 0.01535797119140625, -0.01459503173828125, 0.0657958984375, -0.0008807182312011719, -0.02691650390625, 0.021270751953125, -0.01177978515625, 0.03729248046875, 0.0256195068359375, -0.035919189453125, 0.06256103515625, 0.06732177734375, 0.01678466796875, 0.036376953125, 0.0158538818359375, 0.00821685791015625, -0.023406982421875, -0.0124969482421875, -0.011932373046875, 0.0006761550903320312, -0.006744384765625, -0.00769805908203125, 0.011871337890625, -0.00440216064453125, 0.0020046234130859375, -0.0014324188232421875, 0.045806884765625, 0.031646728515625, -0.08502197265625, 0.033905029296875, 0.007633209228515625, 0.0298004150390625, 0.027984619140625, -0.0206298828125, -0.0214691162109375, -0.057586669921875, 0.05682373046875, 0.01611328125, -0.0074005126953125, 0.0250396728515625, -0.00315093994140625, -0.017852783203125, -0.01727294921875, -0.019500732421875, -0.00934600830078125, 0.057830810546875, -0.039886474609375, -0.03082275390625, -0.0098419189453125, 0.0017709732055664062, -0.0023555755615234375, -0.0143585205078125, -0.0308837890625, -0.057525634765625, -0.032257080078125, -0.0302734375, -0.0195159912109375, 0.016632080078125, 0.0096893310546875, -0.0189361572265625, 0.058380126953125, -0.053375244140625, 0.060821533203125, 0.01485443115234375, 0.0084075927734375, 0.020538330078125, -0.038543701171875, 0.002056121826171875, -0.0066375732421875, -0.005626678466796875, 0.0034961700439453125, -0.004718780517578125, -0.04229736328125, -0.011688232421875, -0.01369476318359375, 0.05242919921875, -0.02886962890625, -0.012725830078125, 0.016632080078125, 0.0012540817260742188, -0.00521087646484375, 0.0214691162109375, -0.0137939453125, -0.0293121337890625, -0.012847900390625, 0.014068603515625, -0.0170135498046875, 0.02093505859375, 0.03369140625, -0.0159912109375, 0.055816650390625, -0.024658203125, -0.0255889892578125, 0.044464111328125, 0.0227508544921875, -0.061553955078125, -0.0019092559814453125, -0.01910400390625, 0.03326416015625, 0.01439666748046875, 0.00934600830078125, -0.03216552734375, -0.00592803955078125, -0.01641845703125, 0.02838134765625, 0.06256103515625, 0.0168304443359375, -0.041900634765625, -0.0099029541015625, 0.038177490234375, 0.03118896484375, -0.00025010108947753906, 0.045562744140625, -0.0184326171875, -0.0014028549194335938, 0.0285491943359375, -0.0011472702026367188, 0.0249786376953125, 0.00670623779296875, -0.04681396484375, -0.00557708740234375, -0.012115478515625, -0.0306243896484375, -0.006374359130859375, 0.01436614990234375, -0.0298309326171875, 0.0012636184692382812, 0.0014247894287109375, -0.003116607666015625, 0.01322174072265625, -0.009429931640625, -0.020721435546875, 0.05194091796875, 0.01983642578125, -0.00807952880859375, 0.0310821533203125, 0.010711669921875, 0.01367950439453125, 0.01149749755859375, 0.0196075439453125, -0.0008087158203125, 0.0252838134765625, 0.01160430908203125, 0.055755615234375, -0.027069091796875, 0.0186309814453125, -0.0086669921875, 0.0236053466796875, -0.0743408203125, -0.0220184326171875, 0.05059814453125, 0.0546875, -0.0200347900390625, -0.03302001953125, 0.00008797645568847656, -0.01016998291015625, 0.020111083984375, 0.01824951171875, 0.051177978515625, 0.0028476715087890625, 0.001781463623046875, -0.006420135498046875, -0.006649017333984375, -0.00286102294921875, 0.014312744140625, -0.002536773681640625, 0.022430419921875, 0.0015811920166015625, 0.0008897781372070312, -0.045379638671875, -0.0201873779296875, -0.001079559326171875, 0.048126220703125, 0.055633544921875, 0.039642333984375, 0.0128936767578125, -0.0238800048828125, -0.0127716064453125, 0.035003662109375, -0.0032501220703125, 0.01221466064453125, -0.026214599609375, -0.04412841796875, 0.036285400390625, 0.025421142578125, 0.0352783203125, 0.0352783203125, 0.060394287109375, 0.060089111328125, 0.0032596588134765625, -0.0027751922607421875, 0.0236968994140625, -0.01371002197265625, -0.0016326904296875, -0.055328369140625, 0.04925537109375, 0.05242919921875, 0.01467132568359375, 0.006649017333984375, -0.006900787353515625, 0.08123779296875, -0.017852783203125, 0.0005316734313964844, 0.001953125, -0.0303497314453125, 0.03387451171875, 0.0229034423828125, 0.033599853515625, 0.01557159423828125, -0.0679931640625, -0.005718231201171875, -0.036956787109375, -0.034759521484375, 0.0242462158203125, 0.037506103515625, -0.00820159912109375, 0.00876617431640625, 0.00586700439453125, 0.002880096435546875, 0.0111083984375, 0.0038204193115234375, -0.004634857177734375, 0.00536346435546875, 0.04205322265625, 0.0031261444091796875, -0.03692626953125, -0.01238250732421875, 0.01186370849609375, 0.0024261474609375, 0.01235198974609375, 0.030548095703125, 0.02044677734375, 0.00284576416015625, 0.010986328125, 0.019378662109375, -0.0101776123046875, 0.00209808349609375, 0.0024776458740234375, 0.007537841796875, 0.01027679443359375, -0.023529052734375, -0.0518798828125, 0.060638427734375, 0.00267791748046875, -0.021820068359375, 0.06524658203125, -0.00820159912109375, -0.01366424560546875, -0.0281982421875, 0.0248870849609375, -0.0223388671875, -0.07666015625, -0.08245849609375, 0.021575927734375, 0.0115814208984375, 0.043426513671875, -0.03265380859375, 0.035614013671875, -0.0147247314453125, -0.008544921875, 0.0020847320556640625, -0.040924072265625, -0.009552001953125, 0.021759033203125, -0.040130615234375, -0.03692626953125, 0.030487060546875, -0.001422882080078125, -0.00803375244140625, 0.0222625732421875, 0.0302276611328125, 0.0341796875, -0.0306243896484375, -0.031494140625, 0.035308837890625, 0.0439453125, 0.006988525390625, 0.022125244140625, -0.0276336669921875, -0.0166168212890625, -0.0003018379211425781, 0.0176239013671875, -0.048980712890625, -0.05328369140625, 0.0084381103515625, 0.03369140625, -0.0498046875, -0.0285797119140625, -0.1463623046875, 0.030120849609375, 0.04046630859375, 0.0191497802734375, -0.0882568359375, 0.08294677734375, -0.047027587890625, 0.060791015625, -0.01508331298828125, -0.032012939453125, 0.006473541259765625, 0.0129241943359375, -0.005252838134765625, 0.0054168701171875, -0.0400390625, -0.015472412109375, -0.00411224365234375, 0.0260009765625, 0.0048675537109375, -0.01537322998046875, 0.08380126953125, 0.01617431640625, 0.016815185546875, 0.08111572265625, -0.0521240234375, -0.026214599609375, -0.006622314453125, 0.007274627685546875, -0.0011548995971679688, -0.0196075439453125, 0.003528594970703125, -0.024566650390625, -0.0036487579345703125, -0.036773681640625, 0.03436279296875, 0.0487060546875, -0.0228118896484375, -0.042572021484375, 0.035797119140625, -0.010986328125, -0.0215911865234375, -0.056488037109375, -0.01026153564453125, 0.00756072998046875, -0.0257568359375, -0.0243377685546875, -0.00717926025390625, -0.03271484375, 0.046630859375, 0.047027587890625, -0.02764892578125, 0.035064697265625, 0.048675537109375, 0.0023899078369140625, 0.06488037109375, 0.050933837890625, -0.02734375, 0.035491943359375, -0.046112060546875, 0.038543701171875, 0.05633544921875, -0.037506103515625, -0.0474853515625, -0.0191497802734375, -0.051849365234375, -0.004634857177734375, 0.00901031494140625, -0.056549072265625, -0.036712646484375, 0.07781982421875, 0.037384033203125, 0.0234375, -0.0108184814453125, -0.001750946044921875, -0.0167083740234375, -0.037933349609375, -0.006336212158203125, 0.01384735107421875, -0.03240966796875, 0.003963470458984375, -0.01395416259765625, -0.0129547119140625, 0.00927734375, -0.0108184814453125, -0.0174713134765625, 0.0182647705078125, 0.017822265625, 0.0109710693359375, -0.01678466796875, 0.01032257080078125, 0.0294036865234375, -0.0274200439453125, -0.0269775390625, -0.031005859375, 0.021209716796875, -0.0207672119140625, -0.051727294921875, -0.0377197265625, -0.03668212890625, -0.01617431640625, 0.033203125, -0.0372314453125, 0.060455322265625, -0.044769287109375, -0.004306793212890625, -0.035430908203125, 0.033233642578125, -0.004913330078125, 0.047088623046875, -0.019195556640625, 0.0816650390625, 0.041412353515625, 0.07550048828125, 0.004364013671875, 0.0256805419921875, -0.031585693359375, 0.050201416015625, -0.0131072998046875, -0.0089263916015625, 0.004421234130859375, -0.0269317626953125, -0.0009016990661621094, 0.00875091552734375, -0.0011501312255859375, -0.03704833984375, 0.0247955322265625, -0.007663726806640625, 0.00859832763671875, 0.018402099609375 ]
7fbf799af1e2e57dff94c5f7cd24c620c3cbf5f4
Wordpress Stackexchange Q: scheduled event not getting executed class checkPost{ function __construct() { if ( !wp_next_scheduled('my_task_hook') ) { wp_schedule_event( time(), 'hourly', 'my_task_hook' ); // hourly, daily and twicedaily } add_action('my_task_hook', array(&$this,'my_task_function')); } function my_task_function() { add_action('wp_head', array(&$this,'wp_head')); } function wp_head() { echo '<!--This is a test!-->'; } } That's the stripped code of my plugin, but it's somehow not working. Why is it not? A: You can't add an action to wp_head inside a wp-cron job. The wp-cron tasks run outside of the normal flow, so while you can add your action, it won't actually do anything to anybody viewing the page. Cron jobs are called via separate http requests, no user normally will see their results. In other words, your code works fine, it just doesn't do what you're expecting it to do. Although to be honest, I'm not entirely sure what you were expecting it to do. You certainly won't see any change to the content of the page header, if that's what you were thinking.
Q: scheduled event not getting executed class checkPost{ function __construct() { if ( !wp_next_scheduled('my_task_hook') ) { wp_schedule_event( time(), 'hourly', 'my_task_hook' ); // hourly, daily and twicedaily } add_action('my_task_hook', array(&$this,'my_task_function')); } function my_task_function() { add_action('wp_head', array(&$this,'wp_head')); } function wp_head() { echo '<!--This is a test!-->'; } } That's the stripped code of my plugin, but it's somehow not working. Why is it not? A: You can't add an action to wp_head inside a wp-cron job. The wp-cron tasks run outside of the normal flow, so while you can add your action, it won't actually do anything to anybody viewing the page. Cron jobs are called via separate http requests, no user normally will see their results. In other words, your code works fine, it just doesn't do what you're expecting it to do. Although to be honest, I'm not entirely sure what you were expecting it to do. You certainly won't see any change to the content of the page header, if that's what you were thinking. A: I think it is working. I pasted your code in my functions.php and called the class. Then with a cron viewer I see the cron job Jan 26, 2012 @ 21:25 (1327613109) Once Hourly my_task_hook Also tested it out by adding an usermeta field to my account via the cron function and that also worked. A: Calling wp_head from within a cron process seems to be odd. What exactly are you aiming for. Did you debug with error_log to ensure that your cron job is really not fired off. If your cron jobs don't fire you might find some help with wp-cron-control.
wordpress
{ "language": "en", "length": 269, "provenance": "stackexchange_00019.jsonl.gz:416517", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40292" }
[ 0.059783935546875, 0.016021728515625, -0.0290069580078125, -0.0307159423828125, 0.051666259765625, -0.056243896484375, 0.0322265625, -0.037506103515625, -0.0272979736328125, 0.03948974609375, -0.029144287109375, 0.0302581787109375, 0.0088043212890625, -0.01505279541015625, -0.0088653564453125, -0.01727294921875, 0.04547119140625, -0.0185089111328125, 0.00543212890625, -0.012176513671875, -0.00200653076171875, 0.0221710205078125, -0.005985260009765625, 0.07794189453125, 0.049591064453125, -0.03582763671875, 0.022552490234375, -0.019134521484375, 0.044219970703125, -0.0027618408203125, 0.0287322998046875, -0.048828125, 0.0145263671875, 0.0272979736328125, -0.0229949951171875, 0.00984954833984375, 0.01079559326171875, 0.0170745849609375, 0.00637054443359375, 0.037750244140625, 0.0093231201171875, 0.00019288063049316406, 0.012451171875, 0.0016088485717773438, -0.018829345703125, -0.04022216796875, 0.0210418701171875, -0.0173492431640625, 0.0127105712890625, 0.00400543212890625, 0.00873565673828125, -0.0207061767578125, 0.02459716796875, 0.00327301025390625, -0.0186920166015625, -0.0085906982421875, -0.058380126953125, 0.046478271484375, 0.0222930908203125, 0.0206146240234375, 0.01442718505859375, -0.0013427734375, -0.0111083984375, -0.0085296630859375, 0.00897979736328125, 0.0051116943359375, 0.01328277587890625, 0.0052337646484375, -0.04998779296875, 0.01056671142578125, 0.040557861328125, -0.037445068359375, -0.0099334716796875, 0.0174407958984375, -0.0406494140625, -0.048675537109375, 0.028472900390625, -0.049285888671875, 0.00817108154296875, 0.0251007080078125, 0.021240234375, 0.037628173828125, -0.01983642578125, 0.033447265625, -0.0111083984375, 0.03887939453125, -0.0197601318359375, -0.03265380859375, -0.046051025390625, -0.01042938232421875, -0.03192138671875, 0.00580596923828125, -0.01242828369140625, -0.06170654296875, -0.0193023681640625, -0.044891357421875, 0.00952911376953125, 0.037078857421875, -0.034698486328125, 0.00812530517578125, -0.033050537109375, -0.0027008056640625, 0.0007910728454589844, -0.0275726318359375, -0.0029354095458984375, 0.02508544921875, 0.0245819091796875, 0.035003662109375, 0.0175933837890625, 0.025360107421875, -0.0105743408203125, -0.00003832578659057617, 0.0291595458984375, 0.01422119140625, 0.004974365234375, -0.037109375, -0.02764892578125, 0.049652099609375, -0.003910064697265625, 0.00444793701171875, 0.0167388916015625, 0.02154541015625, 0.00620269775390625, -0.03887939453125, 0.0098876953125, 0.004962921142578125, -0.0312042236328125, -0.0230560302734375, 0.034515380859375, 0.00579833984375, -0.00942230224609375, 0.007122039794921875, 0.03973388671875, -0.018310546875, -0.0163116455078125, 0.0009026527404785156, 0.0307769775390625, -0.0164794921875, -0.019744873046875, -0.005340576171875, 0.0098876953125, -0.01026153564453125, -0.0193634033203125, -0.0296478271484375, 0.048309326171875, 0.02484130859375, 0.0223541259765625, -0.00109100341796875, -0.00290679931640625, 0.00624847412109375, 0.005931854248046875, -0.03143310546875, -0.0175933837890625, 0.02789306640625, 0.0238189697265625, -0.01788330078125, 0.019927978515625, -0.0288238525390625, 0.051788330078125, -0.004425048828125, -0.0080108642578125, -0.00913238525390625, 0.0147705078125, -0.05670166015625, -0.054656982421875, 0.0089569091796875, -0.056060791015625, -0.0061187744140625, 0.033111572265625, -0.017364501953125, 0.03765869140625, -0.0012683868408203125, 0.0361328125, 0.03125, 0.00911712646484375, 0.0242156982421875, 0.01308441162109375, 0.0014820098876953125, 0.022064208984375, 0.018463134765625, -0.0423583984375, -0.027587890625, 0.06640625, -0.053955078125, -0.01953125, -0.005245208740234375, 0.01214599609375, 0.03173828125, 0.01849365234375, 0.032073974609375, -0.011505126953125, 0.0013990402221679688, -0.0360107421875, -0.00389862060546875, -0.01904296875, 0.0300750732421875, -0.032684326171875, 0.01453399658203125, -0.016815185546875, 0.016082763671875, 0.03546142578125, 0.025909423828125, -0.01476287841796875, 0.0030803680419921875, -0.11614990234375, 0.038238525390625, -0.042816162109375, 0.044830322265625, 0.032989501953125, 0.004741668701171875, -0.0028839111328125, 0.01306915283203125, 0.0102081298828125, -0.08770751953125, -0.05572509765625, 0.0178070068359375, -0.00899505615234375, 0.03985595703125, -0.01285552978515625, 0.0286865234375, -0.00283050537109375, -0.055389404296875, -0.01311492919921875, 0.005863189697265625, 0.022735595703125, -0.02166748046875, -0.0163726806640625, -0.02252197265625, -0.0242462158203125, 0.0213470458984375, -0.040130615234375, 0.0244140625, 0.0166015625, 0.069091796875, 0.0013895034790039062, -0.00019657611846923828, 0.01132965087890625, -0.0249481201171875, 0.00312042236328125, 0.0243377685546875, 0.028045654296875, 0.039886474609375, 0.0149383544921875, 0.042449951171875, 0.049285888671875, -0.021514892578125, 0.0284423828125, -0.01311492919921875, -0.01178741455078125, -0.007232666015625, 0.0224609375, -0.0225830078125, 0.0310211181640625, -0.018646240234375, -0.01502227783203125, 0.0301513671875, 0.0225372314453125, -0.002483367919921875, 0.001102447509765625, -0.01549530029296875, 0.031829833984375, -0.029510498046875, -0.0623779296875, 0.017608642578125, 0.00298309326171875, -0.0341796875, -0.0023593902587890625, -0.026458740234375, 0.0011186599731445312, -0.018829345703125, 0.0269622802734375, -0.037811279296875, 0.004261016845703125, 0.06353759765625, -0.002857208251953125, 0.009735107421875, -0.027008056640625, -0.00768280029296875, -0.032196044921875, 0.0243072509765625, -0.0091552734375, 0.049713134765625, -0.02630615234375, -0.026153564453125, -0.004840850830078125, 0.021087646484375, -0.0218353271484375, -0.02716064453125, 0.0215911865234375, 0.007381439208984375, 0.03289794921875, 0.038360595703125, -0.0222015380859375, 0.05413818359375, -0.02587890625, -0.01428985595703125, 0.01404571533203125, -0.017669677734375, 0.03619384765625, -0.047210693359375, 0.009002685546875, 0.02789306640625, -0.038238525390625, 0.025146484375, 0.0077667236328125, -0.0287017822265625, 0.0040283203125, 0.00571441650390625, -0.0236053466796875, 0.032806396484375, -0.10784912109375, 0.00122833251953125, 0.035675048828125, 0.11456298828125, -0.0208587646484375, -0.051971435546875, 0.020751953125, 0.037109375, -0.0560302734375, -0.10736083984375, -0.039459228515625, -0.03594970703125, 0.00014400482177734375, -0.0267181396484375, 0.0002827644348144531, 0.00933074951171875, -0.03662109375, 0.0104827880859375, -0.0780029296875, 0.003330230712890625, 0.03826904296875, -0.0270538330078125, -0.0228729248046875, 0.0264892578125, 0.01507568359375, 0.0213623046875, 0.01337432861328125, 0.06390380859375, -0.0015287399291992188, -0.07574462890625, -0.0086212158203125, -0.0072174072265625, -0.0279388427734375, 0.036956787109375, -0.004512786865234375, -0.0126953125, 0.01360321044921875, -0.0179290771484375, 0.01629638671875, 0.04046630859375, -0.02630615234375, 0.0017337799072265625, -0.009613037109375, -0.005401611328125, 0.01045989990234375, 0.04473876953125, 0.027008056640625, -0.0177459716796875, 0.04058837890625, -0.031890869140625, 0.01171875, -0.03045654296875, -0.0181732177734375, 0.025115966796875, 0.0188446044921875, -0.00760650634765625, -0.015625, 0.0013885498046875, 0.010589599609375, 0.034515380859375, 0.041839599609375, 0.033355712890625, -0.0198974609375, -0.0235137939453125, -0.043426513671875, -0.038726806640625, 0.01374053955078125, 0.00982666015625, 0.006610870361328125, -0.01287841796875, 0.0111541748046875, -0.06585693359375, 0.0615234375, -0.11700439453125, -0.0364990234375, 0.0394287109375, 0.0005979537963867188, -0.0022792816162109375, -0.007366180419921875, -0.01342010498046875, 0.01372528076171875, 0.049346923828125, 0.01947021484375, -0.03662109375, -0.019317626953125, 0.0202789306640625, -0.07501220703125, -0.044097900390625, 0.0231170654296875, 0.00855255126953125, -0.096435546875, 0.02783203125, 0.006328582763671875, -0.0272979736328125, -0.0301055908203125, 0.01421356201171875, -0.080322265625, -0.03289794921875, 0.0155029296875, 0.0274658203125, 0.004756927490234375, -0.0090179443359375, -0.00981903076171875, -0.006072998046875, 0.0004267692565917969, -0.00586700439453125, -0.07098388671875, -0.01496124267578125, -0.0285797119140625, 0.05303955078125, 0.019256591796875, 0.011260986328125, -0.0310516357421875, 0.031036376953125, 0.045928955078125, 0.036895751953125, -0.00286865234375, -0.046539306640625, 0.028533935546875, 0.01058197021484375, 0.01277923583984375, 0.00701141357421875, -0.00020229816436767578, 0.01319122314453125, -0.031524658203125, 0.0193939208984375, -0.034820556640625, -0.0294952392578125, 0.005260467529296875, -0.035980224609375, -0.040313720703125, -0.033172607421875, -0.006317138671875, 0.005859375, -0.01134490966796875, -0.01149749755859375, -0.0445556640625, -0.0294189453125, 0.03167724609375, -0.052276611328125, 0.0284271240234375, 0.00394439697265625, 0.0732421875, 0.01078033447265625, -0.006328582763671875, 0.00926971435546875, 0.009918212890625, 0.018341064453125, -0.0010709762573242188, 0.010101318359375, -0.0264739990234375, -0.00975799560546875, 0.028045654296875, -0.01284027099609375, 0.005130767822265625, -0.02899169921875, 0.07513427734375, 0.0152130126953125, 0.00688934326171875, 0.00240325927734375, 0.0102691650390625, -0.026763916015625, 0.00278472900390625, 0.00598907470703125, -0.01488494873046875, 0.052154541015625, 0.01215362548828125, -0.040740966796875, 0.039154052734375, 0.0115966796875, 0.0189208984375, -0.00972747802734375, 0.03326416015625, 0.034332275390625, 0.0384521484375, -0.0002529621124267578, -0.01175689697265625, -0.004119873046875, 0.006053924560546875, -0.034820556640625, -0.0145111083984375, -0.0267486572265625, 0.0179595947265625, 0.0272979736328125, 0.00705718994140625, -0.047271728515625, -0.006103515625, 0.044647216796875, 0.0343017578125, -0.00402069091796875, -0.033233642578125, 0.00333404541015625, -0.0159149169921875, -0.0212249755859375, -0.016754150390625, 0.037200927734375, 0.041748046875, 0.005985260009765625, -0.0110321044921875, -0.01323699951171875, 0.029205322265625, -0.0247344970703125, -0.022125244140625, 0.0209808349609375, -0.012847900390625, 0.039276123046875, 0.005519866943359375, 0.02813720703125, 0.004726409912109375, -0.028076171875, 0.0948486328125, 0.092529296875, 0.002811431884765625, -0.0018987655639648438, -0.011444091796875, -0.0144500732421875, -0.010589599609375, -0.030029296875, -0.0284271240234375, -0.04119873046875, 0.0308074951171875, 0.0439453125, 0.0037937164306640625, 0.0251312255859375, -0.0183868408203125, 0.0125579833984375, -0.043701171875, 0.037353515625, 0.036346435546875, -0.01482391357421875, -0.0355224609375, 0.02239990234375, 0.047698974609375, 0.042999267578125, -0.0171356201171875, 0.054840087890625, -0.01511383056640625, 0.053070068359375, 0.0016889572143554688, 0.04998779296875, -0.0243682861328125, -0.036712646484375, -0.0189208984375, -0.0034008026123046875, 0.002674102783203125, 0.00928497314453125, -0.038330078125, 0.0019350051879882812, -0.01035308837890625, 0.031341552734375, -0.025482177734375, 0.0177154541015625, -0.053070068359375, 0.00418853759765625, -0.08251953125, -0.010955810546875, 0.09210205078125, 0.0616455078125, -0.08465576171875, 0.01245880126953125, -0.0174713134765625, -0.003997802734375, -0.0843505859375, -0.04241943359375, -0.06597900390625, 0.01318359375, 0.033477783203125, 0.026123046875, -0.02069091796875, -0.07122802734375, 0.011871337890625, 0.003810882568359375, 0.0244140625, 0.03961181640625, -0.03277587890625, 0.0887451171875, -0.0081634521484375, 0.041168212890625, 0.004489898681640625, 0.05584716796875, 0.01983642578125, -0.0256805419921875, 0.012542724609375, -0.0265655517578125, -0.005924224853515625, -0.03692626953125, 0.0091400146484375, 0.01473236083984375, 0.032806396484375, -0.01346588134765625, -0.015655517578125, 0.0019512176513671875, 0.0014553070068359375, -0.0251922607421875, 0.0042877197265625, 0.0169219970703125, -0.045684814453125, 0.040252685546875, -0.0279693603515625, 0.00351715087890625, -0.009735107421875, 0.0254669189453125, 0.003978729248046875, -0.028839111328125, 0.0034809112548828125, 0.010345458984375, -0.04931640625, 0.08056640625, 0.1243896484375, 0.007511138916015625, 0.0555419921875, 0.0148773193359375, -0.0003733634948730469, 0.01485443115234375, 0.037200927734375, -0.0017185211181640625, -0.0357666015625, 0.042236328125, -0.015228271484375, -0.01788330078125, -0.0057525634765625, -0.01824951171875, 0.006622314453125, 0.047210693359375, 0.0262908935546875, -0.06805419921875, 0.003414154052734375, -0.003978729248046875, -0.026641845703125, 0.0094146728515625, -0.0012311935424804688, 0.00775146484375, -0.03228759765625, 0.022857666015625, 0.036163330078125, -0.0100250244140625, 0.0042877197265625, -0.01055908203125, 0.00400543212890625, -0.00550079345703125, 0.025665283203125, 0.00350189208984375, -0.089111328125, 0.03179931640625, 0.06060791015625, -0.007724761962890625, -0.0484619140625, 0.03363037109375, 0.00121307373046875, 0.00342559814453125, -0.0433349609375, 0.050994873046875, 0.0364990234375, 0.0193328857421875, 0.00585174560546875, -0.0121307373046875, 0.0487060546875, 0.01554107666015625, 0.01256561279296875, -0.0167236328125, 0.004558563232421875, -0.021728515625, -0.037872314453125, -0.0204925537109375, 0.038970947265625, 0.056243896484375, -0.056793212890625, 0.0364990234375, -0.01922607421875, -0.0222015380859375, 0.00595855712890625, -0.00769805908203125, 0.029266357421875, -0.00830078125, -0.022430419921875, 0.009002685546875, -0.01442718505859375, 0.027069091796875, 0.0200347900390625, 0.031829833984375, -0.041290283203125, -0.042083740234375, 0.0249786376953125, -0.05133056640625, -0.027252197265625, 0.012725830078125, -0.0156097412109375, 0.1414794921875, 0.0281829833984375, -0.02947998046875, 0.0005679130554199219, 0.072265625, -0.03192138671875, 0.057037353515625, -0.048797607421875, 0.00939178466796875, -0.01401519775390625, 0.050567626953125, -0.0462646484375, -0.0067901611328125, 0.000637054443359375, 0.0292816162109375, 0.016815185546875, 0.0011491775512695312, 0.007587432861328125, -0.00262451171875, -0.003696441650390625, -0.0167999267578125, -0.03668212890625, 0.04376220703125, -0.0278167724609375, 0.007904052734375, -0.01076507568359375, -0.0272674560546875, 0.034454345703125, -0.04296875, -0.052154541015625, -0.002376556396484375, -0.009033203125, -0.0189208984375, 0.00856781005859375, -0.018157958984375, -0.0022258758544921875, -0.000020503997802734375, -0.00797271728515625, -0.019775390625, 0.00377655029296875, 0.043853759765625, 0.065673828125, -0.0211944580078125, -0.0311737060546875, -0.0217437744140625, 0.052154541015625, 0.0070343017578125, 0.010986328125, 0.00891876220703125, 0.019134521484375, -0.0149993896484375, -0.051910400390625, -0.031951904296875, -0.0228729248046875, -0.01074981689453125, 0.01471710205078125, 0.0224761962890625, 0.023468017578125, 0.0106201171875, 0.06658935546875, 0.034759521484375, 0.01517486572265625, -0.039398193359375, -0.022674560546875, 0.014434814453125, 0.037139892578125, 0.0167236328125, 0.005794525146484375, 0.037200927734375, -0.0206146240234375, 0.00969696044921875, 0.00379180908203125, -0.00235748291015625, -0.00542449951171875, -0.0268096923828125, 0.00617218017578125, 0.0462646484375, 0.01058197021484375, 0.04046630859375, -0.038665771484375, 0.0272674560546875, 0.01457977294921875, 0.04132080078125, -0.018218994140625, 0.050567626953125, -0.005107879638671875, -0.00792694091796875, 0.0309906005859375, 0.0413818359375, -0.017608642578125, -0.0362548828125, -0.00975799560546875, -0.0653076171875, -0.0271759033203125, 0.02899169921875, 0.019927978515625, 0.025848388671875, 0.027099609375, 0.021453857421875, 0.0011043548583984375, 0.007598876953125, 0.040374755859375, -0.019256591796875, -0.07421875, -0.00464630126953125, -0.0091552734375, 0.0185394287109375, 0.00862884521484375, 0.034942626953125, 0.06573486328125, -0.0111846923828125, -0.05572509765625, 0.0236358642578125, -0.0146026611328125, -0.02008056640625, 0.01873779296875, -0.006137847900390625, 0.027496337890625, -0.029327392578125, -0.032012939453125, 0.0133514404296875, -0.0243988037109375, -0.06707763671875, 0.0186920166015625, 0.04156494140625, -0.0264434814453125, 0.0276947021484375, 0.044158935546875, 0.0009984970092773438, 0.02923583984375, 0.005359649658203125, -0.011383056640625, -0.0204925537109375, 0.03369140625, 0.0024662017822265625, -0.03204345703125, -0.03662109375, -0.00876617431640625, 0.0562744140625, -0.0083465576171875, 0.04766845703125, -0.01456451416015625, 0.0222625732421875, -0.0025920867919921875, 0.018463134765625, -0.0140228271484375, 0.021636962890625, -0.0174560546875, 0.010101318359375, 0.0151214599609375, -0.0260162353515625, -0.0435791015625, -0.024871826171875, 0.05059814453125, -0.0184173583984375, -0.032440185546875, 0.01251983642578125, 0.041229248046875, 0.00737762451171875, 0.0232391357421875, -0.0253753662109375, -0.0030517578125, -0.01288604736328125, -0.001922607421875, 0.0296478271484375, 0.009796142578125, -0.012847900390625, 0.017242431640625, -0.004016876220703125, -0.0286407470703125, 0.0134124755859375, -0.035308837890625, -0.0114898681640625, 0.0146026611328125, 0.007904052734375, -0.00839996337890625, 0.0262298583984375, -0.01322174072265625, 0.0164642333984375, 0.0180206298828125, 0.025238037109375, 0.0008683204650878906, -0.0026874542236328125, -0.027130126953125, 0.010406494140625, 0.0201873779296875, -0.0028705596923828125, 0.028900146484375, 0.0084075927734375, -0.0195159912109375, -0.0017919540405273438, -0.0033550262451171875, -0.01493072509765625, -0.0022830963134765625, -0.0199432373046875, 0.0021209716796875, 0.00008028745651245117, -0.0465087890625, -0.03143310546875, -0.0143585205078125, 0.018402099609375, -0.0004096031188964844, -0.00720977783203125, -0.0013093948364257812, -0.023773193359375, -0.0012836456298828125, -0.004642486572265625, 0.0018587112426757812, 0.0016021728515625, 0.02655029296875, -0.0280609130859375, -0.01485443115234375, -0.050872802734375, 0.0020084381103515625, -0.049957275390625, -0.0186004638671875, 0.0204620361328125, 0.005588531494140625, -0.06268310546875, -0.035919189453125, -0.0308074951171875, 0.0164794921875, -0.007404327392578125, -0.020721435546875, 0.0027828216552734375, -0.0004296302795410156, -0.00991058349609375, 0.016265869140625, 0.0245361328125, -0.02947998046875, -0.053253173828125, -0.034759521484375, -0.004543304443359375, -0.00743865966796875, -0.052276611328125, -0.050445556640625, 0.045196533203125, -0.0104217529296875, -0.006256103515625, -0.09625244140625, 0.053314208984375, 0.01380157470703125, -0.0123291015625, -0.035308837890625, 0.006221771240234375, -0.0034637451171875, 0.0231781005859375, 0.0286865234375, -0.035369873046875, 0.046142578125, 0.02032470703125, -0.04052734375, 0.017608642578125, 0.0137939453125, -0.01178741455078125, 0.0134124755859375, -0.0143280029296875, 0.02081298828125, 0.0191650390625, -0.042083740234375, -0.021453857421875, -0.01531982421875, -0.002216339111328125, -0.03277587890625, -0.038787841796875, -0.0249786376953125, 0.00768280029296875, 0.08892822265625, 0.06353759765625, 0.02392578125, -0.06634521484375, -0.03643798828125, -0.0284576416015625, -0.01898193359375, -0.019439697265625, 0.005504608154296875, -0.049285888671875, 0.006557464599609375, -0.026153564453125, -0.0041961669921875, -0.0163726806640625, -0.003543853759765625, -0.0178070068359375, -0.022857666015625, -0.0192718505859375, -0.01190185546875, -0.0063629150390625, -0.048553466796875, 0.052398681640625, -0.028594970703125, 0.01392364501953125, 0.0181427001953125, 0.0184783935546875, 0.0262908935546875, 0.06890869140625, 0.0245819091796875, 0.055755615234375, -0.03717041015625, -0.0101165771484375, 0.0231475830078125, 0.01415252685546875, -0.035858154296875, -0.01210784912109375, 0.0107421875, -0.002765655517578125, -0.0284576416015625, -0.00003886222839355469, 0.047149658203125, -0.0285797119140625, -0.034149169921875, 0.00882720947265625, -0.00707244873046875, 0.033050537109375, -0.013519287109375, 0.041351318359375, 0.02154541015625, -0.0160675048828125, 0.021728515625, -0.0020046234130859375, 0.00991058349609375, -0.014312744140625, 0.01483917236328125, -0.016693115234375, -0.0017786026000976562, -0.0345458984375, -0.011871337890625, 0.0036563873291015625 ]
5e9afbb82cbda82be1f5245a88db52d3bbfe76dc
Wordpress Stackexchange Q: How can I upload video, generate thumbnail and convert to different formats? I haven't used WP in a very, very long time so please bear with me. I'm using v3.3.1 I've used get_children() to display images of a page in a custom template. I then customized a template to turn the images into a JQuery carousel. Now, I want to add videos to that gallery. My question is, how can I: * *Have thumbnails generated once I upload videos via media library. *Convert the videos into multiple formats (all or most of: mp4, webm/vp8, ogg/vorbis & swf) so that I can use them with MediaElement.js I'd really appreciate some direction on this Thanks. A: Answers: * *Try this plugin which uses the ffmpeg library *This video conversion plugin looks quite promising with wide range of format support Hope it helps. Thanks!
Q: How can I upload video, generate thumbnail and convert to different formats? I haven't used WP in a very, very long time so please bear with me. I'm using v3.3.1 I've used get_children() to display images of a page in a custom template. I then customized a template to turn the images into a JQuery carousel. Now, I want to add videos to that gallery. My question is, how can I: * *Have thumbnails generated once I upload videos via media library. *Convert the videos into multiple formats (all or most of: mp4, webm/vp8, ogg/vorbis & swf) so that I can use them with MediaElement.js I'd really appreciate some direction on this Thanks. A: Answers: * *Try this plugin which uses the ffmpeg library *This video conversion plugin looks quite promising with wide range of format support Hope it helps. Thanks!
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:416520", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40300" }
[ 0.0278472900390625, 0.034637451171875, -0.029205322265625, -0.0197906494140625, 0.03564453125, -0.0217132568359375, 0.051910400390625, -0.0190887451171875, -0.015045166015625, 0.0028438568115234375, -0.0021572113037109375, 0.019500732421875, -0.04229736328125, -0.0310821533203125, -0.01107025146484375, -0.04345703125, 0.030426025390625, -0.00562286376953125, 0.026885986328125, -0.00846099853515625, -0.0018863677978515625, 0.028717041015625, 0.04315185546875, 0.02490234375, -0.0092926025390625, -0.007720947265625, 0.02911376953125, -0.006488800048828125, -0.0159454345703125, -0.02130126953125, -0.006740570068359375, 0.0251617431640625, 0.043365478515625, -0.00371551513671875, -0.020660400390625, 0.023040771484375, 0.046356201171875, -0.032318115234375, -0.011383056640625, 0.0416259765625, 0.0179290771484375, -0.0023365020751953125, 0.044097900390625, -0.0215911865234375, -0.0009131431579589844, 0.0228118896484375, -0.02960205078125, -0.047637939453125, 0.02239990234375, -0.0180511474609375, -0.00542449951171875, -0.0301361083984375, 0.01334381103515625, -0.027069091796875, -0.027191162109375, -0.0340576171875, -0.03466796875, 0.0291900634765625, 0.0191802978515625, 0.033233642578125, 0.005519866943359375, 0.002048492431640625, -0.0021991729736328125, -0.01708984375, -0.0229034423828125, 0.0308380126953125, -0.0289764404296875, -0.0146026611328125, 0.0162353515625, -0.022308349609375, -0.01519775390625, -0.0298919677734375, 0.004795074462890625, -0.050811767578125, -0.0286102294921875, 0.04254150390625, 0.002674102783203125, -0.021087646484375, 0.017242431640625, -0.03985595703125, 0.050811767578125, 0.0017843246459960938, 0.0213165283203125, -0.037841796875, 0.054656982421875, -0.006313323974609375, 0.009368896484375, -0.0243988037109375, -0.0203399658203125, 0.00865936279296875, -0.011444091796875, -0.013916015625, -0.030059814453125, 0.01166534423828125, 0.0094451904296875, -0.006256103515625, -0.0022735595703125, 0.0020122528076171875, 0.010009765625, 0.01482391357421875, 0.0238800048828125, -0.053558349609375, 0.0399169921875, -0.03240966796875, 0.0260162353515625, -0.025909423828125, 0.00665283203125, -0.07373046875, 0.0197296142578125, 0.030609130859375, -0.049041748046875, 0.11883544921875, 0.01433563232421875, -0.031890869140625, -0.01043701171875, 0.0025653839111328125, 0.0021686553955078125, 0.0335693359375, 0.02508544921875, 0.01776123046875, -0.0070037841796875, -0.00351715087890625, 0.0305328369140625, -0.0247039794921875, 0.02899169921875, 0.0188751220703125, -0.0216827392578125, -0.024505615234375, 0.0136260986328125, 0.005619049072265625, -0.045196533203125, 0.032470703125, 0.10009765625, 0.007617950439453125, -0.004116058349609375, -0.00659942626953125, 0.01264190673828125, -0.018096923828125, -0.0198516845703125, 0.024200439453125, -0.018524169921875, -0.0196380615234375, 0.0212249755859375, -0.0188140869140625, 0.0252685546875, 0.0126495361328125, -0.01055145263671875, 0.0340576171875, 0.050201416015625, 0.00881195068359375, 0.012908935546875, -0.034912109375, 0.01102447509765625, -0.0032634735107421875, 0.055267333984375, -0.06988525390625, 0.057220458984375, -0.06121826171875, 0.0460205078125, -0.04486083984375, -0.006893157958984375, 0.006755828857421875, 0.046844482421875, -0.0333251953125, -0.0003292560577392578, -0.01560211181640625, -0.056488037109375, -0.0065460205078125, 0.0233001708984375, 0.023956298828125, -0.0232086181640625, -0.02410888671875, 0.034210205078125, -0.0016260147094726562, -0.0307769775390625, 0.0289459228515625, 0.005519866943359375, -0.007312774658203125, -0.00524139404296875, 0.06640625, 0.037506103515625, -0.01019287109375, 0.026519775390625, 0.006816864013671875, -0.0195770263671875, 0.00579071044921875, 0.00217437744140625, 0.0095977783203125, 0.0151824951171875, 0.0137481689453125, 0.0174407958984375, 0.01953125, -0.044525146484375, 0.055419921875, 0.02435302734375, -0.00433349609375, -0.06719970703125, -0.012542724609375, 0.001544952392578125, -0.0472412109375, 0.045166015625, 0.005035400390625, 0.0245361328125, -0.0159149169921875, -0.032562255859375, 0.00299835205078125, -0.015960693359375, 0.024078369140625, -0.015045166015625, 0.0125885009765625, 0.017059326171875, -0.0069427490234375, -0.032257080078125, 0.0196685791015625, -0.012481689453125, 0.031524658203125, -0.01236724853515625, -0.006496429443359375, -0.003337860107421875, 0.0257110595703125, -0.025238037109375, 0.00600433349609375, -0.0284576416015625, 0.01087188720703125, 0.0188446044921875, 0.0014142990112304688, -0.02081298828125, -0.0032634735107421875, 0.005191802978515625, 0.009002685546875, -0.02374267578125, 0.028656005859375, -0.0005679130554199219, -0.011627197265625, -0.036895751953125, -0.01617431640625, -0.0313720703125, -0.06549072265625, 0.0290985107421875, 0.06646728515625, 0.032562255859375, 0.03875732421875, -0.0045166015625, 0.0222320556640625, 0.0758056640625, -0.0017709732055664062, 0.0082855224609375, -0.006679534912109375, -0.01494598388671875, 0.009796142578125, -0.01485443115234375, -0.023040771484375, -0.00530242919921875, -0.09002685546875, -0.0011272430419921875, 0.0216522216796875, 0.0168609619140625, -0.00817108154296875, -0.0201568603515625, 0.039398193359375, -0.01519012451171875, 0.004100799560546875, -0.01526641845703125, -0.00571441650390625, 0.0110931396484375, 0.0152587890625, 0.0091705322265625, 0.0077972412109375, -0.00957489013671875, -0.0021572113037109375, 0.0128173828125, -0.03448486328125, 0.01346588134765625, 0.01332855224609375, 0.00887298583984375, 0.043304443359375, -0.005779266357421875, -0.0401611328125, 0.01378631591796875, 0.01079559326171875, 0.0014982223510742188, 0.04132080078125, -0.02105712890625, -0.0103759765625, -0.014801025390625, -0.035980224609375, -0.007518768310546875, 0.01422882080078125, -0.05450439453125, -0.035186767578125, 0.00655364990234375, 0.026092529296875, -0.0347900390625, 0.038787841796875, -0.0316162109375, 0.000518798828125, 0.0159759521484375, -0.02960205078125, 0.04443359375, -0.046112060546875, 0.03564453125, 0.053009033203125, -0.047698974609375, 0.0175323486328125, -0.01178741455078125, 0.038848876953125, -0.0014438629150390625, 0.0157623291015625, -0.0009322166442871094, -0.0252838134765625, -0.015625, -0.0394287109375, 0.01062774658203125, 0.02899169921875, -0.0155487060546875, -0.042572021484375, -0.0100555419921875, 0.0168914794921875, -0.06793212890625, -0.036712646484375, -0.004207611083984375, -0.1136474609375, 0.041259765625, -0.01209259033203125, -0.059326171875, -0.024688720703125, 0.0513916015625, 0.0228271484375, 0.022308349609375, 0.0245513916015625, -0.0059051513671875, 0.04034423828125, -0.0224151611328125, 0.02056884765625, -0.0107421875, -0.00531005859375, 0.01540374755859375, 0.006809234619140625, 0.00394439697265625, -0.01001739501953125, 0.01143646240234375, 0.032196044921875, 0.0121612548828125, -0.032928466796875, 0.00771331787109375, 0.01558685302734375, 0.0009102821350097656, 0.016204833984375, -0.0016002655029296875, 0.031585693359375, -0.03009033203125, -0.006931304931640625, -0.02947998046875, -0.035614013671875, -0.03424072265625, 0.02789306640625, 0.042877197265625, -0.032470703125, -0.007457733154296875, -0.06683349609375, 0.0260467529296875, -0.002777099609375, -0.000024080276489257812, 0.026336669921875, -0.0235443115234375, -0.0372314453125, -0.0116119384765625, 0.02752685546875, -0.017364501953125, -0.00020503997802734375, -0.0251312255859375, -0.025665283203125, 0.030609130859375, -0.0152740478515625, -0.0034809112548828125, 0.0254058837890625, 0.01232147216796875, -0.028717041015625, 0.03521728515625, 0.008544921875, -0.00417327880859375, -0.01239776611328125, 0.01067352294921875, -0.035675048828125, -0.0633544921875, 0.052276611328125, -0.01219940185546875, -0.01084136962890625, -0.0439453125, -0.03948974609375, -0.0034198760986328125, 0.0916748046875, -0.02777099609375, -0.011322021484375, -0.0087738037109375, 0.0009675025939941406, 0.0002238750457763672, -0.0197601318359375, -0.028472900390625, -0.026031494140625, -0.0271759033203125, -0.01215362548828125, -0.011993408203125, -0.0163421630859375, -0.00020885467529296875, -0.0253753662109375, -0.01204681396484375, -0.039886474609375, 0.044403076171875, 0.0267486572265625, 0.033447265625, 0.020782470703125, 0.024444580078125, 0.02142333984375, -0.03729248046875, 0.0085296630859375, -0.1187744140625, -0.031890869140625, -0.01202392578125, 0.0906982421875, 0.006622314453125, -0.036346435546875, -0.02764892578125, 0.07342529296875, -0.0283355712890625, 0.0167236328125, -0.0132293701171875, 0.03094482421875, 0.024444580078125, -0.01001739501953125, -0.0003478527069091797, -0.018951416015625, -0.054229736328125, -0.083740234375, -0.00920867919921875, 0.00240325927734375, -0.0291748046875, 0.03277587890625, -0.049224853515625, 0.041839599609375, -0.04840087890625, -0.02069091796875, -0.00897979736328125, -0.002010345458984375, -0.0171966552734375, -0.00868988037109375, -0.01450347900390625, -0.054473876953125, 0.04833984375, -0.019073486328125, -0.00505828857421875, 0.00830841064453125, 0.0787353515625, 0.0132293701171875, -0.020965576171875, -0.0830078125, 0.007274627685546875, 0.032684326171875, -0.035369873046875, 0.039886474609375, 0.024749755859375, -0.016448974609375, 0.037384033203125, -0.0009517669677734375, 0.0239105224609375, -0.0015287399291992188, 0.021270751953125, 0.0090789794921875, -0.033111572265625, 0.0408935546875, 0.024932861328125, -0.0312042236328125, -0.0188751220703125, -0.0338134765625, 0.0222625732421875, -0.0140533447265625, 0.03515625, 0.03948974609375, -0.033477783203125, -0.06085205078125, -0.057373046875, 0.0173492431640625, -0.06640625, 0.0372314453125, 0.01276397705078125, -0.004669189453125, 0.0355224609375, 0.02911376953125, -0.006092071533203125, 0.0096435546875, 0.0209808349609375, -0.00676727294921875, 0.039520263671875, -0.003108978271484375, -0.00408172607421875, -0.002674102783203125, 0.0058746337890625, -0.0144195556640625, 0.02423095703125, -0.0131988525390625, -0.052215576171875, 0.01287078857421875, 0.004207611083984375, -0.033905029296875, 0.0025043487548828125, 0.04266357421875, 0.05401611328125, -0.01421356201171875, -0.03466796875, -0.043914794921875, 0.0472412109375, -0.06280517578125, 0.01113128662109375, -0.007251739501953125, -0.0218353271484375, -0.032623291015625, 0.0153961181640625, -0.023834228515625, -0.0135650634765625, 0.00856781005859375, 0.0277252197265625, 0.01605224609375, 0.0214080810546875, 0.029998779296875, -0.0125579833984375, -0.01271820068359375, 0.0070037841796875, -0.0128326416015625, -0.004039764404296875, 0.018646240234375, -0.0008301734924316406, 0.0237884521484375, 0.005237579345703125, -0.0023288726806640625, 0.01531219482421875, -0.053314208984375, -0.0198516845703125, -0.06219482421875, -0.03619384765625, 0.02587890625, 0.00698089599609375, -0.003021240234375, -0.0014543533325195312, 0.044036865234375, -0.004749298095703125, -0.01018524169921875, -0.00830078125, 0.003673553466796875, 0.00978851318359375, -0.039398193359375, 0.0131988525390625, 0.025390625, 0.0173187255859375, -0.0111541748046875, 0.00879669189453125, -0.05255126953125, -0.0064849853515625, -0.041717529296875, -0.00798797607421875, 0.06890869140625, -0.028106689453125, -0.0238189697265625, -0.01181793212890625, 0.0195465087890625, -0.0022373199462890625, 0.0219879150390625, 0.002002716064453125, -0.02679443359375, -0.0171966552734375, -0.0156402587890625, -0.033294677734375, -0.0215301513671875, -0.0123291015625, -0.023712158203125, -0.030975341796875, -0.0130157470703125, -0.052581787109375, 0.0026683807373046875, -0.0123138427734375, 0.0408935546875, -0.0181427001953125, 0.0102081298828125, -0.0213470458984375, -0.0302734375, 0.03662109375, 0.002124786376953125, -0.0012788772583007812, 0.0260467529296875, 0.0200347900390625, -0.035980224609375, -0.06329345703125, -0.01184844970703125, -0.01416778564453125, -0.0113067626953125, -0.003459930419921875, 0.0159454345703125, -0.002796173095703125, 0.0035800933837890625, 0.0445556640625, 0.00458526611328125, 0.034149169921875, -0.01678466796875, -0.004878997802734375, -0.0191192626953125, 0.031768798828125, -0.020416259765625, 0.0305328369140625, 0.0086212158203125, -0.0279541015625, 0.0180816650390625, -0.01251220703125, -0.017242431640625, 0.016876220703125, -0.024688720703125, 0.00431060791015625, 0.0428466796875, 0.0087738037109375, 0.0182342529296875, 0.01081085205078125, -0.015167236328125, 0.01239776611328125, 0.01308441162109375, 0.00498199462890625, -0.01390838623046875, 0.01430511474609375, 0.03057861328125, 0.004627227783203125, 0.05194091796875, 0.007526397705078125, -0.0247802734375, 0.00441741943359375, -0.0355224609375, 0.01751708984375, 0.01361846923828125, 0.031829833984375, -0.02911376953125, 0.021331787109375, -0.006305694580078125, -0.0147247314453125, 0.0312042236328125, -0.0273590087890625, -0.0031833648681640625, -0.00201416015625, 0.0413818359375, -0.0221405029296875, -0.0450439453125, -0.007320404052734375, -0.0264892578125, -0.0175018310546875, -0.0029087066650390625, -0.0138702392578125, 0.009552001953125, -0.03826904296875, 0.0009298324584960938, 0.0280914306640625, -0.027069091796875, 0.0005588531494140625, 0.036163330078125, -0.0147552490234375, 0.0168914794921875, -0.02484130859375, 0.030181884765625, -0.011077880859375, -0.0072174072265625, 0.01079559326171875, 0.0328369140625, 0.032867431640625, 0.06072998046875, -0.0076446533203125, 0.01444244384765625, 0.04071044921875, 0.0105438232421875, -0.0025043487548828125, -0.0032806396484375, -0.004245758056640625, -0.005748748779296875, -0.04473876953125, 0.0046844482421875, -0.05865478515625, 0.0296478271484375, 0.0226593017578125, 0.00865936279296875, -0.01177215576171875, -0.0291595458984375, -0.00276947021484375, 0.054901123046875, -0.00449371337890625, -0.006267547607421875, -0.0031566619873046875, 0.00830078125, -0.0892333984375, -0.031829833984375, 0.01520538330078125, -0.0165557861328125, 0.0038909912109375, 0.01236724853515625, -0.0743408203125, 0.07611083984375, -0.005767822265625, 0.02093505859375, 0.028106689453125, 0.02642822265625, -0.06256103515625, -0.0184478759765625, -0.01390838623046875, 0.0188140869140625, 0.016571044921875, -0.025146484375, -0.047576904296875, -0.01393890380859375, -0.020965576171875, 0.044464111328125, 0.017730712890625, -0.00273895263671875, -0.00908660888671875, 0.0152435302734375, 0.0738525390625, 0.0704345703125, 0.04345703125, 0.004154205322265625, -0.00457763671875, 0.006580352783203125, 0.0692138671875, -0.0078582763671875, 0.04248046875, 0.0184478759765625, -0.00383758544921875, 0.0124664306640625, 0.0111541748046875, 0.007747650146484375, -0.005878448486328125, 0.0159454345703125, -0.0181427001953125, -0.01013946533203125, 0.01557159423828125, -0.0240478515625, -0.00424957275390625, 0.01384735107421875, -0.01526641845703125, -0.0406494140625, 0.0110015869140625, -0.0306243896484375, 0.035797119140625, -0.0252227783203125, -0.01047515869140625, 0.01045989990234375, 0.0216217041015625, 0.005096435546875, -0.00978851318359375, -0.0106658935546875, 0.0179901123046875, -0.01503753662109375, 0.0266265869140625, -0.00849151611328125, 0.01015472412109375, -0.042205810546875, 0.0103912353515625, 0.01020050048828125, 0.030426025390625, -0.04217529296875, -0.039764404296875, 0.01325225830078125, 0.0198516845703125, 0.041412353515625, 0.0037288665771484375, 0.05413818359375, -0.04803466796875, -0.0236053466796875, -0.0222015380859375, -0.01242828369140625, 0.0294342041015625, 0.01520538330078125, 0.00891876220703125, 0.028045654296875, -0.0058746337890625, -0.02056884765625, -0.052093505859375, -0.000004708766937255859, 0.036651611328125, 0.067138671875, 0.0101318359375, 0.0775146484375, -0.0119171142578125, -0.02850341796875, 0.0094451904296875, 0.07061767578125, 0.01015472412109375, -0.0206146240234375, 0.0010519027709960938, -0.05792236328125, 0.006870269775390625, 0.004146575927734375, -0.0192108154296875, 0.050811767578125, 0.033599853515625, 0.020965576171875, -0.033447265625, -0.0030841827392578125, 0.06146240234375, -0.0338134765625, -0.026885986328125, -0.055908203125, -0.0098114013671875, -0.004688262939453125, -0.00555419921875, 0.0121307373046875, -0.0277252197265625, 0.043243408203125, -0.04498291015625, 0.052215576171875, -0.024078369140625, -0.05218505859375, 0.0322265625, -0.047119140625, 0.10162353515625, -0.0303497314453125, -0.0906982421875, -0.007633209228515625, -0.01824951171875, -0.053558349609375, 0.03289794921875, 0.0242767333984375, -0.062164306640625, 0.032501220703125, 0.010345458984375, -0.031524658203125, 0.026275634765625, 0.01433563232421875, -0.00865936279296875, 0.0099945068359375, 0.0224456787109375, -0.01361083984375, -0.07666015625, -0.0261077880859375, -0.0699462890625, 0.0262298583984375, 0.040863037109375, 0.09857177734375, -0.031646728515625, 0.039337158203125, 0.0273284912109375, -0.044891357421875, 0.03253173828125, 0.0019092559814453125, 0.02301025390625, 0.007450103759765625, -0.01374053955078125, -0.0374755859375, 0.0102081298828125, 0.0185089111328125, 0.003391265869140625, -0.022674560546875, -0.042266845703125, -0.0243988037109375, 0.0299530029296875, 0.075439453125, 0.029693603515625, -0.027252197265625, -0.05157470703125, -0.048797607421875, -0.0021572113037109375, 0.0117340087890625, 0.0272369384765625, -0.0027923583984375, 0.062225341796875, 0.022613525390625, -0.0113067626953125, 0.022064208984375, -0.05010986328125, 0.04803466796875, 0.034759521484375, -0.01580810546875, -0.060516357421875, 0.01235198974609375, -0.00421905517578125, -0.0016489028930664062, 0.0109405517578125, 0.061431884765625, 0.0237274169921875, -0.033172607421875, -0.0177154541015625, 0.0132598876953125, 0.01319122314453125, -0.04925537109375, -0.0015811920166015625, 0.026947021484375, -0.00809478759765625, -0.0030841827392578125, -0.039215087890625, -0.036346435546875, -0.05889892578125, 0.0233306884765625, 0.052398681640625, -0.0294342041015625, 0.0076751708984375, -0.0948486328125, 0.00931549072265625, 0.0300750732421875, 0.0131378173828125, -0.0271148681640625, 0.0217437744140625, -0.0116119384765625, 0.005512237548828125, 0.0223846435546875, 0.00334930419921875, -0.0089874267578125, 0.01971435546875, -0.035675048828125, -0.052947998046875, -0.03851318359375, 0.037017822265625, -0.0509033203125, 0.038482666015625, 0.06951904296875, -0.054901123046875, -0.041656494140625, 0.06378173828125, 0.0498046875, 0.12310791015625, 0.0160064697265625, -0.040252685546875, -0.0255889892578125, 0.002902984619140625, 0.02056884765625, 0.01953125, 0.01245880126953125, -0.0285797119140625, -0.031005859375, 0.0208587646484375, -0.031951904296875, -0.01079559326171875, -0.04278564453125, -0.06549072265625, 0.077880859375, -0.00887298583984375, -0.04339599609375, -0.0008530616760253906, 0.0026531219482421875, -0.0012025833129882812, -0.032318115234375, -0.0059661865234375, 0.01474761962890625, -0.0043182373046875, 0.0254974365234375, 0.00991058349609375, 0.0093231201171875, 0.03668212890625, 0.0015621185302734375, -0.031707763671875, -0.0032558441162109375, -0.01424407958984375, -0.0128936767578125, 0.0063018798828125, 0.0033245086669921875, 0.00536346435546875, 0.045562744140625, -0.0232696533203125, -0.041839599609375, -0.0229339599609375, -0.038787841796875, 0.008514404296875, 0.00666046142578125, -0.060699462890625, -0.0268707275390625, 0.036376953125, 0.086669921875, 0.02239990234375, 0.0037384033203125, -0.02447509765625, -0.0162353515625, -0.042755126953125, -0.01531982421875, 0.0245361328125, -0.059173583984375, -0.01125335693359375, -0.0092010498046875, 0.018035888671875, -0.033477783203125, -0.01214599609375, -0.0172119140625, -0.031341552734375, -0.01384735107421875, 0.00989532470703125, 0.00656890869140625, 0.0194244384765625, 0.11737060546875, -0.07427978515625, -0.0032939910888671875, 0.005794525146484375, 0.0033206939697265625, 0.03851318359375, -0.053192138671875, 0.0270233154296875, 0.0001462697982788086, -0.040252685546875, 0.0168304443359375, 0.00746917724609375, 0.0256500244140625, -0.02557373046875, -0.036224365234375, -0.01293182373046875, 0.01016998291015625, 0.00444793701171875, 0.0238494873046875, -0.0176544189453125, 0.0191497802734375, 0.00519561767578125, 0.023162841796875, -0.033966064453125, -0.0287628173828125, -0.033172607421875, -0.005832672119140625, -0.013763427734375, 0.036651611328125, 0.035919189453125, 0.0001481771469116211, 0.00640869140625, -0.0034809112548828125, -0.0577392578125, -0.044403076171875, -0.01446533203125, -0.0623779296875, -0.0204010009765625, 0.00572967529296875 ]
0ab51215b1031c9fbc6601a706fc29c6eef2fb10
Wordpress Stackexchange Q: How to have Wordpress send a user confirmation/validation email on signup I have a WP 3.3 installed and running great. My client would like to confirm a valid email address by sending the user a confirmation email containing a link to "confirm". I have played around with Pie Register a little bit but cannot get it to send emails like it says it can. Are there other plugins or tools out there capable of the same thing? I don't think its a huge deal but the client won't budge on it. Also the site sends other emails just fine. ideas? A: maybe you server hasn't a mail server ,you can use a plugin like WP-Mail-SMTP send email. but i find the pie register plugin register program is not safe,it can register same name and email if the previous register is not active.
Q: How to have Wordpress send a user confirmation/validation email on signup I have a WP 3.3 installed and running great. My client would like to confirm a valid email address by sending the user a confirmation email containing a link to "confirm". I have played around with Pie Register a little bit but cannot get it to send emails like it says it can. Are there other plugins or tools out there capable of the same thing? I don't think its a huge deal but the client won't budge on it. Also the site sends other emails just fine. ideas? A: maybe you server hasn't a mail server ,you can use a plugin like WP-Mail-SMTP send email. but i find the pie register plugin register program is not safe,it can register same name and email if the previous register is not active. A: This plugin does exactly what you need - Pie Register From Wordpress.org Plugin Directory: Email Validation Hate fake emails? Make sure your users are not registering with invalid email accounts by forcing them to click a validation link that's sent out with their registration email. This sets there username to a random generated string (something like: 'unverified__h439herld3') so they can't login until they hit that validation link which will put their real username back in place allowing them to login as per usual. Unverified registrations have a defined grace period that will automatically delete an unverified account after a specified period of time, so you don't get clogged up with those fakies. (Manage under Users > Unverified Users) A: you can use the below when submitting the post of your registration form $userdata = array( 'user_pass' => $user_pass, 'user_login' => esc_attr( $_POST['user_name'] ), 'first_name' => esc_attr( $_POST['first_name'] ), 'last_name' => esc_attr( $_POST['last_name'] ), 'nickname' => esc_attr( $_POST['nickname'] ), 'user_email' => esc_attr( $_POST['email'] ), 'user_url' => esc_attr( $_POST['website'] ), 'user_account_type' => esc_attr( $_POST['user_account_type'] ), 'role' => get_option( 'default_role' ), ); $new_user = wp_insert_user( $userdata ); wp_new_user_notification($new_user, $user_pass); which will send confirmation mail to the user
wordpress
{ "language": "en", "length": 338, "provenance": "stackexchange_00019.jsonl.gz:416558", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40430" }
[ 0.03485107421875, 0.0301971435546875, -0.030792236328125, -0.02978515625, 0.0166168212890625, -0.044189453125, 0.01393890380859375, -0.045013427734375, 0.014923095703125, 0.03643798828125, -0.036346435546875, 0.0012464523315429688, 0.053619384765625, -0.0205230712890625, -0.0095062255859375, -0.01064300537109375, -0.010284423828125, 0.035980224609375, -0.0034332275390625, -0.034698486328125, 0.0144500732421875, -0.031219482421875, -0.036865234375, -0.00229644775390625, -0.037872314453125, 0.049072265625, 0.09149169921875, -0.034027099609375, -0.014892578125, -0.01654052734375, -0.003894805908203125, -0.02593994140625, 0.014678955078125, 0.058502197265625, -0.06396484375, -0.01202392578125, 0.0257415771484375, 0.00490570068359375, -0.00476837158203125, 0.059783935546875, 0.028106689453125, -0.0270233154296875, 0.0303955078125, -0.0305633544921875, 0.02325439453125, -0.0190887451171875, 0.054046630859375, -0.04266357421875, 0.020294189453125, 0.0152587890625, 0.0077667236328125, -0.007572174072265625, 0.0158233642578125, -0.040771484375, -0.005428314208984375, -0.002452850341796875, -0.032562255859375, 0.02032470703125, 0.0016384124755859375, 0.05194091796875, 0.0158233642578125, 0.04327392578125, -0.02099609375, -0.03387451171875, -0.0168609619140625, -0.007904052734375, -0.03814697265625, 0.01546478271484375, 0.03399658203125, -0.0177764892578125, -0.0247039794921875, 0.015960693359375, -0.0178985595703125, -0.006618499755859375, 0.00551605224609375, 0.04248046875, -0.033721923828125, 0.03045654296875, 0.03631591796875, 0.04132080078125, -0.01245880126953125, -0.03076171875, -0.0041046142578125, -0.0000711679458618164, -0.0231170654296875, 0.0196990966796875, -0.0194244384765625, 0.002033233642578125, -0.0293426513671875, -0.0452880859375, -0.0236358642578125, -0.023406982421875, -0.0377197265625, -0.0160980224609375, -0.020233154296875, -0.0273895263671875, -0.005428314208984375, 0.0133819580078125, -0.0098114013671875, -0.005748748779296875, 0.0109710693359375, -0.015899658203125, -0.0172576904296875, -0.005855560302734375, -0.017578125, 0.0743408203125, 0.01064300537109375, -0.00494384765625, -0.0035800933837890625, 0.008453369140625, 0.01849365234375, -0.031646728515625, -0.02606201171875, -0.033966064453125, 0.0278472900390625, 0.0211181640625, -0.04010009765625, 0.0489501953125, 0.0096893310546875, 0.01922607421875, -0.016265869140625, 0.01087188720703125, 0.0239715576171875, -0.01352691650390625, -0.00464630126953125, -0.01354217529296875, -0.013580322265625, -0.043243408203125, -0.0311126708984375, 0.010223388671875, -0.0168914794921875, 0.053253173828125, 0.0338134765625, -0.0025634765625, -0.0278472900390625, -0.006374359130859375, 0.039459228515625, 0.0129852294921875, 0.0172271728515625, -0.01116180419921875, 0.00995635986328125, -0.00897979736328125, -0.02581787109375, 0.007480621337890625, 0.0239410400390625, 0.0266876220703125, 0.01806640625, 0.0017032623291015625, 0.0211334228515625, 0.01439666748046875, -0.051483154296875, -0.00542449951171875, -0.0013589859008789062, 0.017486572265625, 0.037139892578125, 0.03045654296875, 0.005771636962890625, 0.0165863037109375, -0.02496337890625, 0.037750244140625, 0.02435302734375, -0.031494140625, -0.0263824462890625, -0.0633544921875, -0.08111572265625, 0.023773193359375, -0.049713134765625, -0.010101318359375, 0.0146636962890625, -0.035125732421875, 0.01486968994140625, 0.037200927734375, 0.0158538818359375, 0.0011386871337890625, 0.0157318115234375, 0.0089111328125, 0.01192474365234375, 0.050140380859375, 0.0145721435546875, 0.0002491474151611328, -0.0007791519165039062, -0.039337158203125, 0.096923828125, -0.042938232421875, -0.036773681640625, 0.008819580078125, -0.0004394054412841797, 0.005779266357421875, 0.0213165283203125, 0.0027332305908203125, 0.028839111328125, 0.042938232421875, 0.0144500732421875, 0.01108551025390625, -0.0307464599609375, -0.06341552734375, 0.00621795654296875, -0.00809478759765625, -0.03265380859375, 0.041656494140625, -0.01509857177734375, -0.0125274658203125, 0.0355224609375, -0.03173828125, 0.0234222412109375, -0.0223846435546875, -0.0062255859375, 0.024993896484375, -0.004001617431640625, 0.02740478515625, 0.011749267578125, 0.021759033203125, -0.0177001953125, -0.0228729248046875, -0.024749755859375, -0.002410888671875, -0.020904541015625, 0.044097900390625, -0.01552581787109375, 0.06097412109375, -0.0254974365234375, -0.049560546875, -0.0111846923828125, -0.0170745849609375, -0.04730224609375, -0.0151519775390625, -0.00885009765625, -0.004962921142578125, -0.051605224609375, 0.00006657838821411133, 0.0094757080078125, 0.01739501953125, -0.0008873939514160156, 0.00907135009765625, -0.0246124267578125, 0.00441741943359375, 0.0159912109375, -0.04156494140625, 0.00997161865234375, 0.03717041015625, 0.0197296142578125, 0.03143310546875, -0.008270263671875, 0.00829315185546875, 0.0045013427734375, -0.0401611328125, 0.021270751953125, -0.00421905517578125, -0.005901336669921875, 0.01360321044921875, -0.0008039474487304688, -0.024200439453125, 0.0277252197265625, -0.041748046875, -0.0158233642578125, 0.034271240234375, 0.024444580078125, -0.0242462158203125, -0.0401611328125, 0.038665771484375, 0.0235748291015625, 0.01120758056640625, -0.061248779296875, 0.0283355712890625, -0.050567626953125, 0.00951385498046875, -0.018585205078125, -0.010986328125, -0.000274658203125, -0.00016367435455322266, 0.0223388671875, -0.040313720703125, 0.013092041015625, 0.024505615234375, 0.01068115234375, 0.055389404296875, -0.0177764892578125, -0.02825927734375, 0.0253753662109375, 0.02862548828125, -0.0055999755859375, -0.0157928466796875, 0.01158905029296875, -0.00428009033203125, 0.02642822265625, -0.0290374755859375, 0.03302001953125, 0.005451202392578125, 0.0010805130004882812, -0.01428985595703125, 0.0308074951171875, 0.01496124267578125, -0.005950927734375, 0.0210113525390625, 0.007518768310546875, -0.0242919921875, -0.04107666015625, -0.015960693359375, 0.004669189453125, -0.0254669189453125, 0.038787841796875, 0.06280517578125, 0.02447509765625, -0.0242156982421875, -0.007434844970703125, -0.011962890625, -0.0092010498046875, 0.0352783203125, 0.01471710205078125, -0.07476806640625, 0.041748046875, 0.040008544921875, 0.01241302490234375, 0.0234527587890625, -0.01171875, -0.03411865234375, -0.0022869110107421875, -0.00528717041015625, -0.030242919921875, -0.048980712890625, -0.015777587890625, -0.040191650390625, -0.0298309326171875, 0.0113525390625, -0.02459716796875, 0.016265869140625, 0.027191162109375, 0.00875091552734375, -0.039520263671875, -0.01947021484375, -0.0396728515625, -0.064453125, -0.03955078125, 0.0005674362182617188, -0.00789642333984375, 0.002643585205078125, -0.0093841552734375, 0.0195465087890625, -0.0203857421875, -0.0343017578125, -0.021453857421875, 0.005615234375, 0.021514892578125, -0.0162506103515625, -0.039581298828125, 0.00829315185546875, 0.01070404052734375, 0.003871917724609375, -0.0267181396484375, -0.01045989990234375, 0.0102691650390625, -0.026519775390625, 0.0138397216796875, -0.00379180908203125, 0.026275634765625, -0.05035400390625, -0.038818359375, -0.0002796649932861328, -0.010894775390625, -0.05059814453125, 0.0077056884765625, 0.039093017578125, -0.01690673828125, -0.05126953125, 0.007411956787109375, -0.044525146484375, -0.0092010498046875, -0.0131683349609375, 0.0087738037109375, -0.0006399154663085938, 0.0518798828125, -0.0235137939453125, 0.01220703125, -0.014068603515625, -0.01678466796875, -0.043365478515625, 0.00930023193359375, -0.023284912109375, 0.0173797607421875, -0.01540374755859375, 0.021270751953125, -0.0104522705078125, 0.039215087890625, -0.0430908203125, -0.08868408203125, 0.06256103515625, -0.01434326171875, -0.0003025531768798828, -0.050689697265625, -0.030426025390625, 0.002033233642578125, 0.12066650390625, 0.032012939453125, -0.0274810791015625, 0.00556182861328125, 0.0046539306640625, -0.0020923614501953125, 0.0277099609375, -0.00499725341796875, -0.0196990966796875, -0.005748748779296875, -0.01522064208984375, -0.01395416259765625, -0.01433563232421875, -0.00843048095703125, -0.0875244140625, 0.0095672607421875, -0.03125, 0.044189453125, -0.0718994140625, 0.0206451416015625, 0.02203369140625, -0.007049560546875, -0.029266357421875, -0.02874755859375, -0.03631591796875, -0.042510986328125, -0.00806427001953125, -0.019287109375, 0.0258331298828125, -0.0016164779663085938, 0.0114288330078125, -0.01381683349609375, 0.0199127197265625, -0.008880615234375, 0.006916046142578125, -0.0020885467529296875, 0.0167236328125, 0.0391845703125, -0.023406982421875, -0.01084136962890625, -0.01751708984375, 0.01338958740234375, 0.0029506683349609375, -0.0487060546875, -0.00891876220703125, -0.032867431640625, -0.00812530517578125, 0.0265655517578125, -0.048736572265625, 0.0020122528076171875, -0.026611328125, -0.0263671875, 0.00846099853515625, -0.01096343994140625, -0.0192413330078125, -0.029052734375, -0.01111602783203125, 0.005306243896484375, -0.0413818359375, 0.01145172119140625, 0.01090240478515625, 0.0660400390625, 0.017578125, 0.0027866363525390625, 0.0270538330078125, 0.00897979736328125, 0.052764892578125, 0.056793212890625, -0.020294189453125, 0.007320404052734375, -0.0452880859375, 0.00830078125, 0.059906005859375, -0.0029697418212890625, -0.01102447509765625, 0.03875732421875, 0.01409149169921875, -0.01125335693359375, 0.0103302001953125, 0.0047454833984375, 0.00567626953125, 0.0445556640625, 0.031036376953125, -0.03973388671875, 0.053070068359375, 0.012908935546875, -0.006694793701171875, -0.01116180419921875, -0.0013637542724609375, -0.05548095703125, 0.0284881591796875, -0.0050048828125, 0.007537841796875, -0.01739501953125, 0.0158843994140625, -0.007404327392578125, -0.0036334991455078125, -0.0276641845703125, -0.00782012939453125, -0.009033203125, 0.006809234619140625, 0.03338623046875, -0.022705078125, -0.0038928985595703125, -0.018585205078125, -0.0167999267578125, 0.042022705078125, 0.015380859375, -0.0189361572265625, -0.01050567626953125, -0.01324462890625, 0.0360107421875, -0.004451751708984375, -0.02044677734375, 0.0654296875, 0.07080078125, -0.0138702392578125, -0.00434112548828125, -0.01045989990234375, 0.0045928955078125, -0.058807373046875, -0.0259246826171875, -0.03497314453125, -0.01416015625, 0.0052490234375, -0.006435394287109375, -0.039276123046875, -0.00360870361328125, 0.01947021484375, 0.041748046875, 0.07720947265625, -0.024078369140625, 0.0300445556640625, 0.0200347900390625, -0.03253173828125, -0.043060302734375, -0.0182342529296875, -0.016265869140625, -0.01410675048828125, 0.01458740234375, 0.0005106925964355469, 0.005863189697265625, 0.006839752197265625, 0.01117706298828125, 0.0259246826171875, -0.016021728515625, 0.017181396484375, -0.013214111328125, -0.014678955078125, -0.031768798828125, -0.0166778564453125, 0.0243377685546875, -0.0012407302856445312, 0.0175933837890625, -0.0294342041015625, 0.0119476318359375, -0.0155029296875, 0.034912109375, -0.01306915283203125, -0.01183319091796875, -0.0008606910705566406, 0.024383544921875, 0.02191162109375, -0.00798797607421875, 0.02984619140625, 0.00875091552734375, -0.034454345703125, -0.02362060546875, 0.0755615234375, -0.0163116455078125, 0.023895263671875, -0.051361083984375, 0.021514892578125, -0.08380126953125, 0.0120849609375, 0.0185546875, 0.0222015380859375, -0.0218963623046875, -0.0008907318115234375, -0.04766845703125, -0.0204620361328125, -0.01358795166015625, 0.00015401840209960938, -0.0362548828125, 0.0018434524536132812, 0.0267486572265625, 0.0218353271484375, -0.004573822021484375, -0.056488037109375, -0.022216796875, 0.002513885498046875, 0.040374755859375, 0.03173828125, -0.0179290771484375, 0.0252532958984375, 0.0292205810546875, 0.051910400390625, 0.00510406494140625, -0.0175323486328125, -0.044403076171875, -0.006076812744140625, 0.0124969482421875, -0.0474853515625, -0.0296173095703125, 0.002330780029296875, -0.0556640625, 0.0088653564453125, 0.032440185546875, -0.00836944580078125, -0.0218658447265625, -0.027008056640625, -0.01557159423828125, -0.00470733642578125, 0.0927734375, 0.0267333984375, -0.01062774658203125, 0.054595947265625, -0.0361328125, -0.0185394287109375, 0.007450103759765625, 0.0496826171875, -0.0227508544921875, -0.028656005859375, -0.01512908935546875, -0.008148193359375, -0.00669097900390625, 0.032073974609375, 0.0192718505859375, -0.001857757568359375, 0.0232696533203125, 0.004856109619140625, 0.0057830810546875, -0.00927734375, -0.007762908935546875, 0.0258026123046875, -0.042816162109375, 0.06427001953125, 0.00826263427734375, -0.020660400390625, 0.0533447265625, -0.032623291015625, 0.035919189453125, 0.0968017578125, 0.10260009765625, -0.1300048828125, 0.01427459716796875, 0.00689697265625, -0.025390625, 0.0184173583984375, -0.005069732666015625, -0.006587982177734375, -0.018829345703125, 0.059326171875, -0.005268096923828125, 0.001857757568359375, 0.037384033203125, 0.0017099380493164062, 0.0110015869140625, 0.018524169921875, 0.0841064453125, 0.004337310791015625, -0.034912109375, -0.0294647216796875, 0.02703857421875, 0.0075531005859375, -0.03033447265625, 0.01953125, 0.023834228515625, 0.00629425048828125, -0.039886474609375, 0.032440185546875, -0.004909515380859375, -0.0099945068359375, -0.0491943359375, -0.007099151611328125, 0.055572509765625, 0.04052734375, -0.021087646484375, -0.01508331298828125, 0.01450347900390625, -0.0018062591552734375, -0.00783538818359375, -0.016571044921875, -0.005214691162109375, 0.008056640625, -0.0306854248046875, 0.028656005859375, -0.0258636474609375, -0.00832366943359375, 0.0028514862060546875, 0.0037746429443359375, 0.0445556640625, -0.0092620849609375, -0.028076171875, 0.04510498046875, -0.0325927734375, -0.033966064453125, -0.031829833984375, -0.0301361083984375, -0.0626220703125, -0.0251617431640625, -0.033172607421875, -0.055572509765625, 0.0265655517578125, -0.0400390625, -0.04949951171875, 0.10943603515625, 0.006938934326171875, 0.006992340087890625, -0.004268646240234375, 0.046905517578125, -0.02410888671875, 0.037139892578125, -0.029541015625, 0.053009033203125, -0.01275634765625, 0.052886962890625, -0.057373046875, -0.01346588134765625, 0.002838134765625, 0.0275421142578125, 0.04876708984375, 0.016571044921875, -0.005779266357421875, -0.026458740234375, -0.006023406982421875, -0.00402069091796875, -0.035858154296875, 0.033416748046875, 0.0117340087890625, 0.0182037353515625, 0.061920166015625, -0.034942626953125, 0.0357666015625, -0.02545166015625, 0.00936126708984375, 0.0178070068359375, -0.002986907958984375, -0.0132904052734375, 0.00963592529296875, 0.0635986328125, -0.0178985595703125, -0.01285552978515625, 0.0183868408203125, -0.046539306640625, -0.00823211669921875, 0.018585205078125, -0.0014209747314453125, -0.0041656494140625, 0.03704833984375, -0.03619384765625, 0.039520263671875, -0.01483917236328125, 0.0236053466796875, 0.019805908203125, 0.0146331787109375, 0.07177734375, 0.002452850341796875, 0.007053375244140625, 0.017547607421875, -0.00010913610458374023, -0.004436492919921875, -0.052459716796875, 0.01629638671875, -0.08636474609375, -0.0589599609375, 0.005733489990234375, 0.01137542724609375, -0.00135040283203125, -0.0078887939453125, 0.01142120361328125, 0.031524658203125, 0.036590576171875, -0.02142333984375, 0.044464111328125, -0.060821533203125, -0.0233001708984375, -0.06982421875, -0.00958251953125, 0.028106689453125, 0.03350830078125, -0.01080322265625, 0.01263427734375, -0.0085296630859375, -0.034027099609375, -0.0167999267578125, 0.040435791015625, 0.03118896484375, -0.00927734375, -0.047210693359375, 0.036285400390625, 0.007373809814453125, 0.024810791015625, -0.0186614990234375, 0.0219573974609375, 0.06292724609375, -0.0214691162109375, -0.004909515380859375, 0.0007472038269042969, 0.059967041015625, 0.00885009765625, -0.01407623291015625, 0.00067901611328125, 0.06951904296875, 0.055450439453125, -0.06622314453125, -0.036407470703125, 0.012054443359375, -0.0311737060546875, -0.012481689453125, -0.005687713623046875, -0.03167724609375, 0.01366424560546875, -0.019989013671875, 0.009185791015625, 0.018951416015625, 0.0280303955078125, -0.029083251953125, 0.02490234375, -0.006183624267578125, -0.0239105224609375, 0.0321044921875, -0.0119171142578125, 0.023193359375, -0.005107879638671875, -0.1065673828125, -0.056182861328125, 0.04290771484375, 0.0117340087890625, 0.007770538330078125, 0.033355712890625, -0.02459716796875, 0.02764892578125, 0.01184844970703125, -0.033172607421875, 0.04693603515625, 0.007598876953125, -0.02874755859375, -0.03863525390625, 0.00930023193359375, -0.0545654296875, -0.06280517578125, -0.0014629364013671875, 0.005748748779296875, -0.007724761962890625, -0.032012939453125, 0.08465576171875, 0.0034465789794921875, -0.024200439453125, -0.02984619140625, 0.046356201171875, -0.046875, -0.03204345703125, 0.0220947265625, 0.01371002197265625, 0.004039764404296875, -0.004558563232421875, -0.04052734375, 0.042938232421875, 0.002223968505859375, -0.027313232421875, 0.0267181396484375, -0.0001842975616455078, -0.00565338134765625, -0.0014820098876953125, -0.00339508056640625, -0.031524658203125, -0.062744140625, -0.062744140625, -0.00833892822265625, 0.01045989990234375, 0.046295166015625, 0.0001499652862548828, 0.0465087890625, -0.0146484375, -0.0076751708984375, 0.0009870529174804688, -0.0478515625, -0.01172637939453125, 0.0254364013671875, -0.023651123046875, 0.009521484375, 0.017303466796875, -0.01190948486328125, 0.0194091796875, -0.0003094673156738281, 0.038604736328125, 0.004192352294921875, -0.034637451171875, -0.0198211669921875, 0.00797271728515625, 0.01306915283203125, -0.041778564453125, -0.0028362274169921875, 0.01552581787109375, -0.0030059814453125, 0.01100921630859375, -0.060089111328125, -0.027435302734375, -0.040374755859375, 0.01332855224609375, 0.034698486328125, -0.0003845691680908203, 0.0199127197265625, 0.00628662109375, 0.032928466796875, 0.01293182373046875, -0.0228424072265625, -0.032928466796875, 0.00899505615234375, -0.0258941650390625, 0.06011962890625, -0.03436279296875, 0.0282135009765625, 0.003948211669921875, 0.0175018310546875, -0.04498291015625, -0.04095458984375, -0.01288604736328125, 0.04534912109375, -0.0242767333984375, 0.0011396408081054688, 0.045440673828125, -0.0189666748046875, -0.10650634765625, -0.0269775390625, -0.007717132568359375, 0.025665283203125, 0.02392578125, -0.00794219970703125, 0.03289794921875, -0.0222625732421875, -0.0162506103515625, -0.039031982421875, 0.006992340087890625, -0.0518798828125, -0.0160369873046875, -0.0209503173828125, 0.01165771484375, 0.0256805419921875, -0.04718017578125, -0.09521484375, 0.07012939453125, -0.0287322998046875, -0.0279388427734375, -0.045654296875, -0.012725830078125, -0.00689697265625, 0.0191802978515625, -0.01248931884765625, -0.03204345703125, -0.027679443359375, 0.04351806640625, 0.040802001953125, 0.06573486328125, 0.0027065277099609375, 0.048919677734375, -0.0059814453125, 0.032135009765625, -0.01035308837890625, 0.04205322265625, 0.0260009765625, -0.02435302734375, 0.045806884765625, 0.0684814453125, -0.024932861328125, -0.038177490234375, -0.004306793212890625, -0.06353759765625, -0.031463623046875, -0.0650634765625, 0.0218963623046875, 0.00470733642578125, 0.06610107421875, 0.01502227783203125, 0.002681732177734375, -0.0408935546875, -0.038330078125, -0.01776123046875, -0.0010890960693359375, 0.006053924560546875, 0.003749847412109375, -0.05181884765625, 0.0191650390625, -0.004444122314453125, 0.01134490966796875, -0.041015625, 0.0010232925415039062, 0.0091094970703125, -0.0303497314453125, 0.0275726318359375, -0.008636474609375, 0.038543701171875, -0.045166015625, 0.0279083251953125, -0.0187225341796875, -0.02215576171875, 0.0031490325927734375, 0.0304718017578125, -0.02197265625, 0.0256805419921875, 0.052032470703125, 0.049468994140625, -0.052032470703125, -0.0087738037109375, 0.037384033203125, 0.004566192626953125, -0.02288818359375, -0.0321044921875, 0.01012420654296875, 0.02496337890625, 0.0057373046875, 0.03411865234375, -0.017730712890625, 0.015106201171875, -0.00850677490234375, 0.0084228515625, 0.0013380050659179688, -0.09521484375, -0.042083740234375, 0.0275115966796875, 0.002986907958984375, -0.024993896484375, 0.01523590087890625, -0.01232147216796875, 0.02734375, -0.00916290283203125, 0.0960693359375, -0.0210418701171875, 0.0197296142578125, 0.00608062744140625, 0.035064697265625, 0.0171661376953125 ]
813961399c61a4c836a0fc0d01d3196ef440d6ea
Wordpress Stackexchange Q: How to override existing plugin action with new action I'm using a plugin. It has an action like this. add_action('publish_post', 'old_action'); function old_action($pid) { "code goes here" } } I'm writing a module for this plugin. So i need to override that old action function with my new action function. This is my new function. function new_action($pid) { "code goes here" } } I want to replace that old_action function with my new_action function using hooks. Can anyone help me? Thanks A: You can use the remove_action() function, like this: remove_action('publish_post', 'old_action'); add_action('publish_post', 'new_action'); It's important to note that if the old_action was added with a priority parameter, you must add that to the remove_action call, otherwise it will fail to remove it. There are other implications if the old_action was added within a class. See here for more info.
Q: How to override existing plugin action with new action I'm using a plugin. It has an action like this. add_action('publish_post', 'old_action'); function old_action($pid) { "code goes here" } } I'm writing a module for this plugin. So i need to override that old action function with my new action function. This is my new function. function new_action($pid) { "code goes here" } } I want to replace that old_action function with my new_action function using hooks. Can anyone help me? Thanks A: You can use the remove_action() function, like this: remove_action('publish_post', 'old_action'); add_action('publish_post', 'new_action'); It's important to note that if the old_action was added with a priority parameter, you must add that to the remove_action call, otherwise it will fail to remove it. There are other implications if the old_action was added within a class. See here for more info.
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:416568", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40456" }
[ 0.08062744140625, 0.00218963623046875, -0.019622802734375, -0.0223236083984375, 0.03173828125, -0.04766845703125, 0.06976318359375, -0.0187835693359375, 0.0160980224609375, 0.0109100341796875, -0.00457763671875, -0.01543426513671875, 0.0047607421875, -0.0318603515625, -0.0010042190551757812, -0.01348114013671875, 0.037261962890625, 0.031890869140625, 0.0643310546875, -0.003475189208984375, -0.001667022705078125, 0.030120849609375, 0.023468017578125, 0.04681396484375, 0.0188446044921875, -0.0183868408203125, 0.07177734375, -0.01528167724609375, 0.0143585205078125, 0.00293731689453125, 0.0140380859375, -0.018035888671875, 0.0011882781982421875, 0.052154541015625, -0.04534912109375, -0.024932861328125, 0.023193359375, 0.002704620361328125, -0.00685882568359375, 0.040924072265625, 0.06793212890625, -0.038665771484375, -0.0296783447265625, 0.0068206787109375, -0.004108428955078125, -0.06280517578125, 0.10040283203125, -0.01934814453125, -0.0204010009765625, -0.00809478759765625, 0.00791168212890625, -0.01409912109375, 0.02880859375, -0.0206451416015625, -0.0001786947250366211, 0.0151214599609375, -0.053375244140625, 0.044830322265625, 0.037567138671875, 0.06109619140625, 0.00213623046875, -0.00017082691192626953, -0.0044708251953125, -0.07354736328125, 0.01007843017578125, 0.008758544921875, 0.01421356201171875, -0.01355743408203125, -0.05181884765625, 0.03228759765625, 0.057525634765625, -0.041656494140625, -0.03424072265625, 0.01715087890625, -0.0240020751953125, -0.02032470703125, 0.03546142578125, 0.0013399124145507812, -0.0045623779296875, 0.0273895263671875, -0.0225830078125, -0.001934051513671875, 0.0274505615234375, -0.035888671875, 0.00007277727127075195, -0.00975799560546875, -0.0187530517578125, -0.00341033935546875, -0.05206298828125, -0.0467529296875, -0.0279693603515625, -0.06988525390625, -0.033233642578125, -0.01467132568359375, -0.01220703125, -0.03619384765625, 0.01451873779296875, 0.0265655517578125, -0.02508544921875, 0.00860595703125, 0.0014562606811523438, -0.040130615234375, 0.0509033203125, -0.031982421875, -0.0182647705078125, 0.007049560546875, 0.0188446044921875, -0.016326904296875, -0.00589752197265625, 0.024078369140625, -0.0304412841796875, -0.0238494873046875, -0.0234375, 0.007755279541015625, -0.00017070770263671875, 0.00928497314453125, -0.052734375, 0.030120849609375, -0.0196990966796875, 0.0231475830078125, 0.01593017578125, 0.0252685546875, -0.01161956787109375, -0.033966064453125, 0.022308349609375, 0.0007390975952148438, -0.0309906005859375, -0.01377105712890625, 0.04248046875, -0.01459503173828125, -0.030792236328125, 0.006809234619140625, 0.048919677734375, 0.0177764892578125, 0.0135955810546875, -0.006244659423828125, 0.01357269287109375, -0.000022113323211669922, 0.01071929931640625, 0.0251312255859375, -0.032989501953125, -0.0440673828125, 0.010894775390625, 0.00334930419921875, 0.034423828125, 0.0045318603515625, 0.0003647804260253906, -0.0006847381591796875, 0.02813720703125, 0.01226806640625, 0.0235137939453125, -0.062103271484375, 0.015960693359375, 0.0240020751953125, 0.00543975830078125, 0.0124969482421875, 0.0274810791015625, -0.0330810546875, 0.000751495361328125, -0.024932861328125, 0.03521728515625, 0.00691986083984375, -0.004970550537109375, -0.04931640625, -0.07958984375, -0.01800537109375, -0.046661376953125, -0.01259613037109375, 0.016326904296875, 0.00435638427734375, 0.0207061767578125, 0.004901885986328125, 0.02630615234375, 0.00843048095703125, 0.0012826919555664062, 0.00998687744140625, -0.01239013671875, 0.01202392578125, 0.0253753662109375, 0.0004489421844482422, -0.01511383056640625, -0.02935791015625, 0.03411865234375, 0.0007052421569824219, -0.071533203125, 0.039459228515625, 0.01329803466796875, 0.0335693359375, -0.01032257080078125, 0.0119171142578125, 0.0753173828125, 0.0245819091796875, -0.042755126953125, 0.01364898681640625, 0.0077972412109375, -0.0106964111328125, 0.05316162109375, 0.015228271484375, 0.00777435302734375, -0.0261077880859375, 0.0185699462890625, 0.056640625, -0.0157318115234375, 0.0303192138671875, -0.046966552734375, 0.0418701171875, -0.0203857421875, 0.043426513671875, -0.0168609619140625, 0.03338623046875, 0.0205535888671875, 0.0236358642578125, -0.022430419921875, -0.019927978515625, 0.01004791259765625, 0.0014181137084960938, -0.036834716796875, 0.00933837890625, -0.0041351318359375, 0.034332275390625, -0.01522064208984375, 0.0127410888671875, -0.033721923828125, -0.0261077880859375, 0.048675537109375, -0.058563232421875, 0.00875091552734375, -0.059173583984375, -0.016265869140625, -0.0039215087890625, -0.08392333984375, 0.05865478515625, 0.0090179443359375, 0.040313720703125, -0.01806640625, -0.01494598388671875, -0.04345703125, -0.05572509765625, -0.0023956298828125, 0.057159423828125, 0.0372314453125, -0.007236480712890625, -0.0018510818481445312, 0.0179595947265625, 0.026763916015625, -0.020050048828125, 0.0093536376953125, -0.00411224365234375, 0.031158447265625, 0.032318115234375, -0.0010461807250976562, -0.0198974609375, 0.027191162109375, -0.05010986328125, 0.0374755859375, 0.019744873046875, 0.020721435546875, -0.0357666015625, -0.00202178955078125, -0.006626129150390625, 0.0277557373046875, -0.05914306640625, -0.08856201171875, 0.007244110107421875, 0.0254669189453125, -0.018646240234375, 0.004688262939453125, 0.01377105712890625, -0.0204010009765625, -0.0108184814453125, 0.041259765625, 0.0132904052734375, -0.004306793212890625, 0.01824951171875, -0.0123138427734375, 0.0055389404296875, -0.0159759521484375, 0.0004608631134033203, -0.0303497314453125, 0.0006070137023925781, -0.0120086669921875, 0.041168212890625, -0.01419830322265625, -0.01526641845703125, 0.0039043426513671875, 0.0256500244140625, -0.0033168792724609375, -0.0234832763671875, 0.0309600830078125, -0.0247650146484375, -0.0007724761962890625, 0.0113067626953125, -0.044921875, 0.0687255859375, 0.00254058837890625, -0.0367431640625, -0.015625, -0.010589599609375, 0.032440185546875, -0.024688720703125, 0.0122222900390625, 0.054901123046875, -0.004344940185546875, 0.010162353515625, 0.00630950927734375, -0.00624847412109375, -0.0245819091796875, 0.029937744140625, 0.00936126708984375, 0.007434844970703125, -0.07470703125, 0.0164794921875, 0.04486083984375, 0.00936126708984375, 0.0254364013671875, -0.032257080078125, -0.0150299072265625, 0.0384521484375, -0.0498046875, -0.0161590576171875, 0.0211639404296875, -0.06488037109375, 0.028167724609375, 0.026763916015625, -0.035064697265625, -0.035400390625, 0.0716552734375, 0.0139007568359375, 0.0097198486328125, 0.01885986328125, 0.023468017578125, 0.01168060302734375, -0.01904296875, -0.0394287109375, 0.0115509033203125, 0.01313018798828125, 0.006389617919921875, 0.078369140625, 0.008148193359375, -0.0633544921875, 0.0019626617431640625, -0.0303497314453125, -0.0194854736328125, 0.025054931640625, 0.0276641845703125, -0.01447296142578125, -0.005115509033203125, 0.0080413818359375, 0.05743408203125, 0.0294189453125, -0.043731689453125, -0.010772705078125, -0.004314422607421875, -0.0255889892578125, -0.00006443262100219727, 0.0250396728515625, 0.00618743896484375, -0.01352691650390625, 0.01041412353515625, -0.049713134765625, -0.007732391357421875, 0.01473236083984375, -0.020721435546875, -0.04559326171875, -0.0294036865234375, -0.001781463623046875, -0.007476806640625, 0.00855255126953125, 0.007617950439453125, 0.000023424625396728516, 0.08197021484375, -0.0101470947265625, -0.0263519287109375, -0.019378662109375, -0.028167724609375, -0.058746337890625, 0.0031566619873046875, -0.01922607421875, 0.00528717041015625, -0.00958251953125, 0.00823211669921875, -0.0110321044921875, 0.038330078125, -0.01123046875, -0.0362548828125, 0.0177154541015625, -0.0689697265625, -0.01142120361328125, -0.033905029296875, 0.01708984375, -0.0016450881958007812, 0.05169677734375, -0.0191650390625, -0.027130126953125, -0.02069091796875, 0.0001920461654663086, -0.0250396728515625, -0.028167724609375, -0.01076507568359375, 0.004642486572265625, -0.05792236328125, -0.00836944580078125, -0.006015777587890625, -0.0182647705078125, -0.01666259765625, 0.06085205078125, -0.03436279296875, -0.0209808349609375, 0.0338134765625, -0.0079803466796875, -0.01934814453125, 0.036651611328125, -0.0307769775390625, 0.00335693359375, -0.019805908203125, 0.0030307769775390625, -0.04217529296875, 0.0124053955078125, -0.1055908203125, 0.053436279296875, 0.07379150390625, -0.00954437255859375, -0.0030651092529296875, 0.0008001327514648438, 0.025238037109375, 0.067626953125, -0.02276611328125, -0.0120849609375, -0.01337432861328125, -0.0345458984375, 0.0028362274169921875, -0.0221710205078125, 0.033447265625, 0.0233154296875, -0.0259857177734375, 0.009979248046875, -0.04718017578125, -0.01081085205078125, -0.019744873046875, -0.05230712890625, -0.057830810546875, -0.046661376953125, -0.030029296875, 0.00400543212890625, -0.007175445556640625, -0.0128173828125, -0.042022705078125, -0.052703857421875, 0.0215301513671875, -0.06256103515625, -0.01093292236328125, 0.00914764404296875, 0.054931640625, 0.015777587890625, 0.004283905029296875, 0.045166015625, 0.025604248046875, 0.005756378173828125, 0.0281982421875, -0.0268096923828125, -0.0496826171875, -0.01055145263671875, -0.01062774658203125, -0.027557373046875, -0.005321502685546875, -0.042633056640625, 0.07122802734375, 0.01751708984375, 0.018890380859375, -0.006038665771484375, -0.004581451416015625, 0.045135498046875, -0.002529144287109375, -0.006420135498046875, 0.00021445751190185547, 0.00212860107421875, 0.0125579833984375, -0.0084381103515625, 0.025909423828125, -0.005138397216796875, -0.042816162109375, 0.0164031982421875, 0.03466796875, -0.01015472412109375, 0.0157623291015625, -0.01247406005859375, 0.01247406005859375, -0.02301025390625, 0.0157928466796875, -0.0220184326171875, 0.0211181640625, -0.0499267578125, 0.054351806640625, -0.0218048095703125, -0.0124053955078125, -0.009033203125, -0.00801849365234375, 0.0253143310546875, -0.0089111328125, -0.0445556640625, -0.0618896484375, 0.003070831298828125, 0.01076507568359375, 0.0003688335418701172, -0.0008382797241210938, 0.01751708984375, 0.0277099609375, -0.03289794921875, -0.010711669921875, 0.003997802734375, 0.0212860107421875, -0.0408935546875, -0.0138092041015625, 0.01045989990234375, -0.0224609375, 0.046875, -0.021026611328125, 0.0330810546875, 0.0004820823669433594, -0.0295562744140625, 0.054901123046875, 0.0191802978515625, -0.00113677978515625, 0.0147857666015625, 0.027130126953125, -0.006938934326171875, -0.017852783203125, -0.035430908203125, -0.0195770263671875, -0.006496429443359375, 0.0196533203125, 0.0171661376953125, 0.00200653076171875, 0.00476837158203125, 0.0084228515625, -0.004077911376953125, -0.033203125, 0.04119873046875, 0.07073974609375, -0.0169525146484375, -0.0071868896484375, 0.004940032958984375, 0.006511688232421875, 0.0245819091796875, -0.0009288787841796875, 0.01396942138671875, -0.0234375, 0.02593994140625, 0.00556182861328125, 0.0189361572265625, -0.03082275390625, -0.0206146240234375, 0.0093841552734375, -0.0159454345703125, -0.004459381103515625, -0.0272674560546875, -0.0250396728515625, -0.0272064208984375, -0.000020444393157958984, 0.046783447265625, -0.0211029052734375, 0.0491943359375, -0.0333251953125, -0.0170440673828125, -0.003612518310546875, -0.01366424560546875, 0.089599609375, 0.051666259765625, -0.0267333984375, -0.036834716796875, -0.0301971435546875, -0.037445068359375, -0.06341552734375, -0.03240966796875, -0.0594482421875, 0.02911376953125, -0.0156402587890625, 0.00624847412109375, -0.0229949951171875, 0.0052032470703125, 0.0222320556640625, 0.032501220703125, -0.00514984130859375, 0.023406982421875, -0.0121307373046875, 0.06488037109375, 0.0076751708984375, 0.055755615234375, 0.00550079345703125, 0.024017333984375, -0.0193634033203125, -0.017486572265625, -0.01055908203125, -0.0246734619140625, -0.0156402587890625, 0.00803375244140625, -0.0298004150390625, 0.0012664794921875, 0.04498291015625, -0.00913238525390625, -0.00505828857421875, -0.0225067138671875, -0.0118255615234375, -0.03509521484375, 0.0214080810546875, -0.01025390625, 0.00836944580078125, -0.033905029296875, -0.0609130859375, 0.0036411285400390625, -0.00547027587890625, 0.02606201171875, 0.032623291015625, -0.058837890625, 0.0277862548828125, 0.0206298828125, -0.008697509765625, -0.006351470947265625, 0.0113677978515625, -0.01678466796875, 0.030914306640625, -0.012054443359375, 0.0111846923828125, 0.0406494140625, -0.0242767333984375, 0.005786895751953125, 0.0299072265625, 0.0643310546875, -0.001224517822265625, 0.0022411346435546875, 0.060760498046875, -0.0285491943359375, 0.031707763671875, 0.018585205078125, 0.0411376953125, -0.074951171875, 0.037994384765625, 0.0177001953125, 0.0198516845703125, 0.063720703125, 0.0020809173583984375, 0.03265380859375, 0.042510986328125, 0.025726318359375, 0.0162811279296875, -0.00982666015625, 0.0292816162109375, 0.0013475418090820312, -0.0246734619140625, 0.0005245208740234375, -0.041656494140625, 0.0191192626953125, 0.035400390625, 0.0343017578125, 0.006866455078125, 0.041748046875, -0.002471923828125, -0.000652313232421875, 0.01512908935546875, -0.0299530029296875, -0.04083251953125, 0.02166748046875, -0.0294952392578125, -0.0031719207763671875, -0.002750396728515625, -0.046905517578125, 0.04022216796875, 0.028350830078125, -0.032989501953125, 0.01258087158203125, -0.0017032623291015625, -0.01503753662109375, -0.0384521484375, -0.024200439453125, 0.00495147705078125, 0.03704833984375, -0.057342529296875, 0.032012939453125, -0.02960205078125, -0.005054473876953125, 0.0296783447265625, -0.0095977783203125, 0.0304718017578125, -0.09527587890625, 0.014556884765625, 0.004123687744140625, -0.034210205078125, 0.03631591796875, -0.0279541015625, 0.00562286376953125, -0.06182861328125, -0.0369873046875, -0.00879669189453125, -0.0269317626953125, 0.01549530029296875, -0.005619049072265625, -0.06829833984375, 0.121337890625, 0.0309906005859375, 0.0185394287109375, -0.020294189453125, 0.05889892578125, -0.0438232421875, 0.022552490234375, -0.03607177734375, 0.066162109375, -0.031707763671875, 0.0194091796875, 0.0019855499267578125, 0.038238525390625, 0.01824951171875, -0.03155517578125, 0.130615234375, 0.045562744140625, -0.05987548828125, -0.0367431640625, 0.0004220008850097656, 0.011688232421875, -0.03973388671875, 0.062469482421875, -0.0174102783203125, -0.0174713134765625, 0.0012989044189453125, -0.0270233154296875, 0.0289306640625, -0.0245361328125, -0.023193359375, 0.0089263916015625, -0.006397247314453125, -0.0245208740234375, -0.0004439353942871094, 0.038726806640625, -0.01053619384765625, 0.0008568763732910156, 0.004344940185546875, 0.0229644775390625, 0.025543212890625, 0.005489349365234375, 0.0152130126953125, 0.00991058349609375, -0.0041351318359375, 0.0007467269897460938, 0.02880859375, 0.004032135009765625, 0.0300750732421875, 0.019317626953125, 0.0227203369140625, -0.002109527587890625, -0.00238037109375, 0.012847900390625, 0.0242462158203125, -0.03790283203125, 0.04345703125, 0.043487548828125, 0.03631591796875, 0.015716552734375, 0.033599853515625, 0.05224609375, 0.04620361328125, -0.025970458984375, -0.0027866363525390625, 0.00423431396484375, -0.023193359375, 0.00992584228515625, -0.0196990966796875, 0.0185546875, -0.042510986328125, -0.04559326171875, -0.0145416259765625, -0.0107879638671875, 0.004970550537109375, 0.04217529296875, 0.00033164024353027344, -0.00194549560546875, -0.026580810546875, -0.036590576171875, -0.0684814453125, 0.02911376953125, -0.006649017333984375, 0.048828125, 0.0137939453125, 0.06915283203125, 0.0043487548828125, -0.02716064453125, 0.0009560585021972656, -0.01204681396484375, -0.052581787109375, 0.0264129638671875, -0.059783935546875, -0.0675048828125, -0.00850677490234375, 0.06585693359375, 0.016815185546875, 0.039703369140625, -0.0026416778564453125, 0.0005173683166503906, 0.035308837890625, 0.005847930908203125, 0.035675048828125, -0.0145263671875, 0.0196075439453125, -0.01058197021484375, -0.03045654296875, -0.03619384765625, -0.03314208984375, -0.041748046875, 0.0198974609375, -0.01409912109375, -0.038818359375, 0.003631591796875, -0.0166168212890625, -0.0428466796875, 0.057098388671875, 0.006282806396484375, 0.0965576171875, -0.0025043487548828125, -0.0006642341613769531, 0.004352569580078125, -0.069580078125, -0.005584716796875, 0.02008056640625, 0.02020263671875, 0.01378631591796875, 0.0166168212890625, 0.019622802734375, 0.0007534027099609375, 0.01910400390625, -0.00809478759765625, -0.0137939453125, 0.047332763671875, 0.040496826171875, 0.025787353515625, 0.0284881591796875, 0.01125335693359375, 0.00908660888671875, 0.057525634765625, 0.04302978515625, 0.0083465576171875, -0.0277862548828125, 0.0570068359375, -0.004520416259765625, 0.0164794921875, -0.0228118896484375, -0.0203704833984375, 0.007648468017578125, -0.017608642578125, -0.0008153915405273438, 0.0124664306640625, -0.026519775390625, -0.006824493408203125, 0.03753662109375, -0.0195159912109375, -0.0033092498779296875, -0.00992584228515625, 0.031829833984375, 0.007152557373046875, 0.0221099853515625, -0.023681640625, -0.0140228271484375, -0.038665771484375, -0.0413818359375, 0.032867431640625, 0.0103759765625, 0.0269012451171875, 0.00690460205078125, 0.0232086181640625, 0.00521087646484375, -0.00024247169494628906, 0.0089111328125, 0.0015583038330078125, 0.0250396728515625, -0.0176544189453125, 0.004642486572265625, 0.0227203369140625, -0.016632080078125, 0.0214080810546875, 0.0166473388671875, 0.0166015625, 0.02655029296875, -0.034149169921875, -0.05755615234375, -0.0299072265625, 0.0079193115234375, -0.0034027099609375, 0.01146697998046875, -0.0458984375, -0.006504058837890625, -0.0408935546875, -0.003612518310546875, -0.017669677734375, -0.00771331787109375, -0.01580810546875, -0.0043487548828125, -0.0083770751953125, -0.044921875, -0.01454925537109375, -0.0202178955078125, 0.0261077880859375, 0.035369873046875, -0.09405517578125, 0.0322265625, 0.0117645263671875, 0.01091766357421875, 0.00276947021484375, -0.01837158203125, -0.01410675048828125, 0.029571533203125, -0.031402587890625, -0.04632568359375, -0.039337158203125, 0.035552978515625, -0.048828125, -0.00252532958984375, 0.00579071044921875, -0.0064849853515625, -0.067138671875, 0.0267486572265625, -0.0095977783203125, 0.057952880859375, 0.0145263671875, 0.01513671875, -0.0192108154296875, 0.0333251953125, -0.03717041015625, -0.0699462890625, 0.03228759765625, -0.052398681640625, -0.04730224609375, 0.01416015625, -0.004894256591796875, 0.00258636474609375, -0.0195770263671875, -0.007015228271484375, 0.034149169921875, 0.028839111328125, -0.017425537109375, -0.040008544921875, 0.0548095703125, 0.016143798828125, 0.021209716796875, -0.01007080078125, -0.0017795562744140625, -0.00911712646484375, -0.0193328857421875, -0.01165008544921875, 0.046630859375, -0.004108428955078125, -0.014404296875, -0.01483917236328125, 0.0175018310546875, 0.01861572265625, 0.0137786865234375, -0.00821685791015625, -0.018707275390625, 0.046142578125, 0.0217742919921875, -0.0135955810546875, 0.0214080810546875, 0.030303955078125, -0.0015497207641601562, -0.006107330322265625, -0.06878662109375, -0.007232666015625, 0.0006022453308105469, 0.09564208984375, -0.005542755126953125, 0.01358795166015625, -0.0413818359375, 0.0057220458984375, -0.0198211669921875, -0.021942138671875, 0.00392913818359375, 0.01012420654296875, -0.0450439453125, 0.00936126708984375, 0.0215911865234375, 0.0005283355712890625, 0.0280609130859375, -0.019805908203125, -0.0128173828125, -0.026092529296875, -0.0236968994140625, -0.0244598388671875, -0.031341552734375, -0.0246429443359375, 0.09124755859375, -0.031829833984375, 0.0080718994140625, 0.032989501953125, -0.0016946792602539062, 0.0419921875, 0.055450439453125, 0.04144287109375, 0.047119140625, -0.036407470703125, -0.007106781005859375, 0.0372314453125, 0.00983428955078125, 0.0192108154296875, -0.03436279296875, -0.0125732421875, 0.000652313232421875, 0.006175994873046875, -0.006855010986328125, -0.022216796875, 0.03192138671875, -0.00887298583984375, 0.09796142578125, 0.004848480224609375, 0.02606201171875, -0.01824951171875, 0.038665771484375, 0.033538818359375, -0.0287628173828125, 0.06414794921875, -0.00954437255859375, 0.0101470947265625, 0.0124969482421875, 0.0296630859375, -0.042938232421875, 0.04986572265625, 0.019195556640625, 0.02880859375, 0.029876708984375 ]
1be21ee22e678c1ce26ae5c5a18ee9959548c56a
Wordpress Stackexchange Q: Send automatic email to user after wp_create_user So, here is some code I came up with -- It works, but now I need it to send the username and password it generated to that email address automatically ?? Also the first and last name isn't recording ?? Thanks!! require('wordpress/wp-blog-header.php'); $user_email = trim(isset($_POST['payer_email']) ? $_POST['payer_email'] : ""); $user_name = trim(isset($_POST['first_name']) ? $_POST['first_name'] : ""); $user_id = username_exists( $user_name ); if ( !$user_id ) { $random_password = wp_generate_password( 12, false ); $user_id = wp_create_user( $user_name, $random_password, $user_email ); } else { $random_password = __('User already exists. Password inherited.'); } A: You can use this: wp_new_user_notification( $user_id, $random_password);
Q: Send automatic email to user after wp_create_user So, here is some code I came up with -- It works, but now I need it to send the username and password it generated to that email address automatically ?? Also the first and last name isn't recording ?? Thanks!! require('wordpress/wp-blog-header.php'); $user_email = trim(isset($_POST['payer_email']) ? $_POST['payer_email'] : ""); $user_name = trim(isset($_POST['first_name']) ? $_POST['first_name'] : ""); $user_id = username_exists( $user_name ); if ( !$user_id ) { $random_password = wp_generate_password( 12, false ); $user_id = wp_create_user( $user_name, $random_password, $user_email ); } else { $random_password = __('User already exists. Password inherited.'); } A: You can use this: wp_new_user_notification( $user_id, $random_password); A: There's the user_register hook, which runs at the end of user insertion and has $user_id as a parameter, you could leverage that to send the username and password, but you have to update_user_meta() before you can get first name and stuff, so it might be better to do it at the end of the user creation and usermeta insertion. The only thing creating a user does is insert the user into the DB, you need to use update_user_meta() to add the user values. get_the_author_meta() has a list of the default usermeta values, if you insert something with the key of one of those, it will show up in profile.php by default, otherwise you will have to extend the user profile to display it. Also, just a note, it seems as though you're setting $random_password to a non-random value and also, probably more importantly, setting it AFTER it's been used. A: I would use wp_insert_user instead of wp_create_user so you can add as much user data as you like in the first instance. Check the Wordpress codex for all that you can insert. (wp_create_user simply calls this function anyway!) To send out the user login details you can call wp_mail($user_email, $subject, $message); Of course you will want to set $message to include the username and password in the body of the message text. Another thing, I think you can create the function wp_new_user_notification which is a pluggable function and is called on new user registration, you can put the mail function in that, I know plugins such as Register Plus Redux and Pie Register do it this way. A: I Think this is you are looking for. This will add first name and last name to user meta and send a mail to user about first name and last name addition. add_action('user_register', 'add_user_custom_meta'); function add_user_custom_meta($user_id) { $user_info=get_userdata( $user_id ); if ( isset( $_POST['first_name'] ) ) update_user_meta($user_id, 'first_name', $_POST['first_name']); if ( isset( $_POST['last_name'] ) ) update_user_meta($user_id, 'last_name', $_POST['last_name']); wp_mail($user_info->user_email, 'User first and last name', sprintf('Hi we have added your first name :-% and last name:- % to our site.',$_POST['first_name'],$_POST['last_name'])); }
wordpress
{ "language": "en", "length": 455, "provenance": "stackexchange_00019.jsonl.gz:416608", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40566" }
[ 0.033447265625, -0.0222320556640625, -0.01384735107421875, -0.029937744140625, -0.01451873779296875, -0.03961181640625, 0.01275634765625, -0.0190887451171875, -0.01715087890625, 0.024993896484375, 0.00806427001953125, 0.002899169921875, 0.037872314453125, -0.0299072265625, 0.0243988037109375, 0.0025806427001953125, 0.0012989044189453125, -0.007694244384765625, -0.00972747802734375, -0.02978515625, 0.0279998779296875, -0.038421630859375, -0.01325225830078125, -0.0079193115234375, -0.0305023193359375, 0.048553466796875, 0.0684814453125, -0.035247802734375, -0.01055908203125, 0.0005393028259277344, -0.002887725830078125, -0.0311431884765625, 0.009033203125, 0.032562255859375, -0.041839599609375, -0.018829345703125, -0.005619049072265625, 0.0052947998046875, 0.00666046142578125, 0.02740478515625, 0.01885986328125, -0.01268768310546875, 0.01229095458984375, -0.00341033935546875, 0.00447845458984375, -0.0504150390625, 0.03570556640625, -0.040069580078125, 0.0177001953125, 0.033721923828125, -0.009429931640625, 0.0286102294921875, -0.00019180774688720703, 0.01519775390625, 0.0023059844970703125, 0.00385284423828125, -0.0462646484375, 0.00882720947265625, 0.03778076171875, 0.006427764892578125, -0.0390625, -0.0345458984375, 0.025787353515625, -0.05059814453125, -0.048736572265625, -0.0015974044799804688, 0.0077667236328125, -0.00003260374069213867, -0.0091705322265625, -0.0660400390625, 0.0118255615234375, 0.00913238525390625, -0.0287628173828125, 0.000812530517578125, 0.008575439453125, 0.01373291015625, -0.0009527206420898438, 0.02813720703125, 0.01654052734375, 0.03741455078125, -0.03643798828125, 0.018280029296875, -0.040740966796875, -0.02557373046875, 0.005207061767578125, 0.0033512115478515625, -0.028594970703125, -0.005096435546875, -0.00716400146484375, -0.05316162109375, -0.008331298828125, -0.04974365234375, 0.00008761882781982422, -0.00550079345703125, -0.0355224609375, -0.031982421875, 0.01090240478515625, 0.06829833984375, -0.0218505859375, 0.00437164306640625, -0.032196044921875, -0.00951385498046875, -0.00023865699768066406, -0.028594970703125, -0.00457000732421875, 0.061798095703125, 0.0084228515625, -0.032379150390625, -0.011016845703125, -0.007396697998046875, 0.005901336669921875, -0.0438232421875, -0.0194244384765625, -0.035247802734375, 0.01171875, 0.04046630859375, -0.036773681640625, 0.0217437744140625, 0.0017910003662109375, 0.00844573974609375, -0.0289306640625, 0.00586700439453125, -0.018157958984375, 0.0016279220581054688, 0.004398345947265625, -0.00226593017578125, 0.0079498291015625, -0.00965118408203125, 0.01456451416015625, -0.0027008056640625, -0.04736328125, 0.0168609619140625, 0.077392578125, 0.0338134765625, 0.034576416015625, -0.022705078125, -0.004192352294921875, 0.037139892578125, 0.01064300537109375, 0.017181396484375, -0.006862640380859375, -0.03228759765625, -0.01316070556640625, 0.0130615234375, -0.007678985595703125, 0.026947021484375, 0.01715087890625, 0.0006299018859863281, 0.0007562637329101562, -0.0244903564453125, -0.0155181884765625, -0.006465911865234375, -0.01806640625, 0.023773193359375, 0.04644775390625, 0.026611328125, -0.016632080078125, 0.0246734619140625, 0.00911712646484375, 0.051605224609375, 0.0226898193359375, -0.0145263671875, 0.008880615234375, -0.034454345703125, -0.04779052734375, 0.0173797607421875, -0.07305908203125, -0.0197601318359375, 0.029449462890625, -0.030609130859375, 0.003879547119140625, 0.0140380859375, 0.08453369140625, 0.0017375946044921875, -0.01123046875, 0.02203369140625, 0.0234375, -0.004852294921875, 0.005077362060546875, -0.013641357421875, -0.03582763671875, -0.033477783203125, 0.028594970703125, -0.034454345703125, -0.045989990234375, 0.0069427490234375, 0.0153656005859375, 0.061614990234375, 0.026275634765625, 0.021881103515625, 0.0249176025390625, -0.006343841552734375, -0.005611419677734375, 0.027740478515625, -0.0225677490234375, -0.0645751953125, 0.026336669921875, -0.006946563720703125, -0.01453399658203125, 0.031463623046875, 0.01206207275390625, -0.035797119140625, 0.031951904296875, -0.040283203125, -0.0158843994140625, -0.03387451171875, -0.0146331787109375, 0.018707275390625, -0.00897979736328125, -0.01177215576171875, 0.0025920867919921875, -0.046234130859375, 0.012969970703125, -0.054595947265625, -0.043548583984375, -0.01428985595703125, -0.03216552734375, 0.061492919921875, -0.0064849853515625, 0.092041015625, -0.0179290771484375, -0.060394287109375, -0.00833892822265625, -0.0263671875, 0.0031223297119140625, -0.0316162109375, -0.005950927734375, -0.0279541015625, -0.018707275390625, -0.00852203369140625, -0.0282745361328125, 0.032379150390625, -0.01320648193359375, -0.004791259765625, -0.047637939453125, 0.0013103485107421875, -0.020172119140625, -0.0196685791015625, -0.00168609619140625, 0.049072265625, 0.025390625, 0.02294921875, 0.010223388671875, 0.028228759765625, 0.044403076171875, 0.01025390625, 0.038909912109375, -0.0196685791015625, 0.010528564453125, 0.06536865234375, -0.01611328125, 0.00839996337890625, 0.002567291259765625, -0.113525390625, -0.018035888671875, 0.0701904296875, -0.0219879150390625, 0.0020160675048828125, 0.01343536376953125, -0.0214080810546875, 0.0031909942626953125, -0.049713134765625, -0.010894775390625, -0.03167724609375, -0.000019311904907226562, -0.0035381317138671875, -0.0077972412109375, -0.018463134765625, -0.041748046875, 0.002620697021484375, 0.03656005859375, -0.0219879150390625, 0.006984710693359375, 0.005157470703125, 0.0218048095703125, 0.0196380615234375, -0.00927734375, -0.0185546875, 0.00200653076171875, 0.0032749176025390625, -0.01190948486328125, 0.002960205078125, 0.0188446044921875, -0.01091766357421875, 0.0181884765625, 0.00978851318359375, 0.0172576904296875, -0.0300140380859375, 0.0026760101318359375, -0.0078887939453125, 0.0159454345703125, 0.031951904296875, -0.02923583984375, 0.0595703125, -0.0251922607421875, -0.009307861328125, -0.0626220703125, 0.006595611572265625, 0.01203155517578125, -0.0198211669921875, 0.00832366943359375, 0.06610107421875, 0.0162506103515625, -0.0018339157104492188, -0.02130126953125, -0.0018243789672851562, -0.0282440185546875, 0.006572723388671875, -0.01003265380859375, -0.052276611328125, 0.0169830322265625, 0.032501220703125, 0.01369476318359375, 0.0948486328125, -0.0487060546875, -0.05230712890625, -0.02239990234375, 0.0265350341796875, -0.018463134765625, -0.0186767578125, -0.01303863525390625, -0.0406494140625, -0.0335693359375, -0.004932403564453125, -0.0187835693359375, 0.0115509033203125, 0.0018014907836914062, 0.0012483596801757812, -0.024322509765625, -0.049102783203125, -0.0640869140625, -0.070556640625, -0.049285888671875, 0.02215576171875, -0.0028400421142578125, -0.012176513671875, 0.004947662353515625, 0.015899658203125, -0.01387786865234375, -0.0552978515625, -0.031494140625, 0.0309295654296875, 0.0012922286987304688, -0.0157470703125, -0.0210723876953125, -0.00391387939453125, 0.01776123046875, 0.005512237548828125, 0.0161590576171875, -0.00763702392578125, 0.0119476318359375, -0.0345458984375, -0.0007090568542480469, -0.021148681640625, 0.01097869873046875, 0.0003724098205566406, -0.002422332763671875, -0.0267791748046875, -0.004947662353515625, -0.059356689453125, 0.04388427734375, -0.0022068023681640625, 0.00322723388671875, -0.003345489501953125, -0.016693115234375, -0.0250396728515625, 0.002887725830078125, -0.009521484375, -0.03753662109375, 0.0025348663330078125, -0.0018253326416015625, -0.0291900634765625, 0.0028057098388671875, -0.0081939697265625, -0.03759765625, 0.02166748046875, 0.01409149169921875, -0.01422119140625, 0.01024627685546875, -0.00919342041015625, 0.029937744140625, 0.00787353515625, -0.0109100341796875, -0.032073974609375, -0.104736328125, 0.048065185546875, -0.059844970703125, -0.0390625, -0.027587890625, -0.0080718994140625, 0.038818359375, 0.10546875, -0.0203094482421875, -0.006076812744140625, 0.015350341796875, 0.028656005859375, -0.06414794921875, -0.034088134765625, -0.0491943359375, 0.005435943603515625, -0.024688720703125, -0.00982666015625, -0.0219879150390625, -0.00940704345703125, -0.005779266357421875, -0.06256103515625, -0.0025272369384765625, -0.0416259765625, 0.0268707275390625, -0.01092529296875, 0.0227813720703125, -0.0139007568359375, 0.01519012451171875, -0.034393310546875, -0.00215911865234375, -0.01495361328125, -0.038787841796875, 0.00742340087890625, 0.0005540847778320312, 0.0137786865234375, -0.006778717041015625, 0.0194244384765625, -0.007396697998046875, 0.01800537109375, 0.0015478134155273438, 0.01277923583984375, -0.0224609375, -0.0018224716186523438, 0.0212860107421875, 0.0012159347534179688, -0.01496124267578125, 0.005100250244140625, -0.0142059326171875, -0.039642333984375, -0.035980224609375, 0.017974853515625, -0.032470703125, 0.053955078125, -0.01340484619140625, 0.0103912353515625, -0.0345458984375, -0.051513671875, -0.01245880126953125, 0.0092010498046875, -0.01488494873046875, 0.0044708251953125, -0.050384521484375, -0.040313720703125, 0.0305023193359375, -0.035980224609375, 0.0199432373046875, 0.0010156631469726562, 0.0546875, 0.016998291015625, -0.0086212158203125, 0.03289794921875, 0.0098876953125, 0.07513427734375, 0.0316162109375, -0.02459716796875, 0.0226287841796875, -0.05609130859375, 0.00783538818359375, 0.06585693359375, 0.01265716552734375, -0.00995635986328125, 0.0335693359375, -0.01479339599609375, -0.04144287109375, 0.041168212890625, -0.0125885009765625, -0.00948333740234375, -0.01541900634765625, -0.0089569091796875, 0.00069427490234375, 0.01497650146484375, 0.004024505615234375, -0.01300048828125, 0.0196533203125, -0.0004329681396484375, -0.08026123046875, 0.045745849609375, -0.021514892578125, -0.054534912109375, -0.03302001953125, 0.0157623291015625, -0.03759765625, -0.03948974609375, -0.0025653839111328125, -0.030548095703125, -0.050262451171875, 0.03155517578125, 0.02911376953125, -0.0318603515625, 0.0296630859375, -0.01326751708984375, -0.017059326171875, 0.0999755859375, 0.04254150390625, 0.0037326812744140625, -0.032989501953125, -0.0108795166015625, 0.045867919921875, -0.0297698974609375, -0.01427459716796875, 0.066162109375, 0.06134033203125, -0.017425537109375, -0.0172882080078125, -0.04266357421875, 0.048248291015625, -0.0718994140625, 0.007045745849609375, 0.01568603515625, -0.026824951171875, 0.0171051025390625, 0.029754638671875, -0.0140380859375, 0.025390625, -0.00870513916015625, 0.029876708984375, 0.052642822265625, -0.003604888916015625, 0.0208282470703125, 0.039642333984375, -0.025299072265625, -0.019256591796875, 0.007328033447265625, -0.0267333984375, -0.00885009765625, 0.007183074951171875, 0.04998779296875, 0.00872802734375, 0.0022602081298828125, -0.001056671142578125, -0.03204345703125, -0.00659942626953125, -0.0198516845703125, -0.01385498046875, -0.01143646240234375, -0.01517486572265625, 0.00940704345703125, -0.00628662109375, 0.003879547119140625, 0.0028324127197265625, 0.007663726806640625, -0.010772705078125, 0.002101898193359375, 0.01000213623046875, 0.01218414306640625, -0.043487548828125, -0.0347900390625, 0.0034694671630859375, -0.015045166015625, -0.01427459716796875, 0.0002987384796142578, -0.0010194778442382812, -0.0189666748046875, -0.0264739990234375, 0.059783935546875, -0.0019178390502929688, -0.0025157928466796875, -0.06549072265625, 0.055511474609375, -0.0577392578125, 0.0024814605712890625, 0.03216552734375, -0.003093719482421875, -0.037017822265625, 0.0016937255859375, -0.0267791748046875, -0.008026123046875, -0.00931549072265625, -0.00775146484375, -0.0343017578125, -0.016143798828125, 0.0161590576171875, 0.02130126953125, -0.0010242462158203125, -0.03271484375, -0.01544952392578125, -0.025482177734375, 0.0109100341796875, -0.0291748046875, 0.0088043212890625, 0.037506103515625, -0.036285400390625, 0.063232421875, 0.01488494873046875, 0.0004124641418457031, -0.0297698974609375, -0.0186309814453125, 0.00691986083984375, -0.0230255126953125, -0.00838470458984375, -0.03125, -0.007659912109375, 0.00494384765625, 0.05242919921875, -0.00978851318359375, 0.0006690025329589844, 0.0093536376953125, 0.0027446746826171875, -0.01019287109375, -0.0090179443359375, 0.03680419921875, 0.01065826416015625, 0.0246734619140625, -0.0172576904296875, 0.017333984375, -0.012939453125, -0.019989013671875, 0.0178680419921875, -0.005847930908203125, 0.00872039794921875, 0.026580810546875, -0.0272369384765625, 0.06207275390625, 0.05902099609375, -0.0330810546875, 0.035369873046875, 0.0153656005859375, 0.0097198486328125, 0.0340576171875, 0.0082855224609375, -0.00812530517578125, -0.046142578125, 0.04156494140625, 0.0164031982421875, 0.0091552734375, 0.06695556640625, -0.0200042724609375, 0.03399658203125, 0.0775146484375, 0.09918212890625, -0.07843017578125, -0.000029861927032470703, 0.01447296142578125, -0.054901123046875, 0.016326904296875, -0.0053253173828125, -0.0284271240234375, -0.046722412109375, 0.0657958984375, -0.034698486328125, 0.0009918212890625, 0.027374267578125, -0.01453399658203125, 0.0213775634765625, 0.04229736328125, 0.050201416015625, -0.0007495880126953125, -0.016204833984375, -0.0419921875, 0.0023555755615234375, 0.004913330078125, -0.040496826171875, -0.01447296142578125, 0.0204010009765625, -0.034027099609375, -0.0655517578125, -0.0021572113037109375, -0.01110076904296875, 0.00421142578125, -0.054046630859375, -0.046051025390625, 0.06378173828125, 0.00024819374084472656, -0.00963592529296875, -0.035675048828125, -0.0020084381103515625, -0.01309967041015625, 0.0007615089416503906, -0.03692626953125, -0.00754547119140625, 0.036773681640625, -0.055877685546875, 0.0233917236328125, -0.01432037353515625, -0.0026378631591796875, -0.010894775390625, 0.007724761962890625, 0.0625, 0.022705078125, -0.039825439453125, 0.041107177734375, 0.0243377685546875, -0.03265380859375, -0.017730712890625, 0.01355743408203125, -0.05072021484375, -0.01983642578125, 0.0011577606201171875, -0.03802490234375, 0.0034923553466796875, -0.03021240234375, -0.07421875, 0.109130859375, 0.0189056396484375, 0.0095062255859375, -0.02764892578125, 0.055816650390625, -0.00780487060546875, 0.040435791015625, -0.0411376953125, 0.045135498046875, 0.00208282470703125, 0.037750244140625, -0.04119873046875, 0.00213623046875, -0.0012378692626953125, 0.0185394287109375, 0.0745849609375, 0.028411865234375, -0.005962371826171875, -0.0239715576171875, -0.00844573974609375, 0.00490570068359375, -0.045745849609375, 0.0307769775390625, 0.0082855224609375, 0.04425048828125, 0.0526123046875, -0.04119873046875, 0.039093017578125, -0.0256500244140625, -0.0096893310546875, 0.0293731689453125, -0.0009312629699707031, -0.02032470703125, -0.019317626953125, 0.019378662109375, -0.06585693359375, 0.0016813278198242188, 0.037689208984375, 0.0185394287109375, 0.037567138671875, 0.017730712890625, 0.047882080078125, -0.0139923095703125, 0.051666259765625, -0.036041259765625, 0.06292724609375, 0.0028743743896484375, -0.01276397705078125, 0.0303497314453125, 0.031829833984375, 0.0007619857788085938, 0.02191162109375, 0.0012578964233398438, 0.02734375, 0.01080322265625, 0.052581787109375, -0.00841522216796875, 0.03680419921875, -0.07049560546875, -0.048736572265625, -0.002582550048828125, 0.07293701171875, -0.026031494140625, -0.00705718994140625, 0.005523681640625, 0.0053863525390625, 0.038421630859375, -0.02008056640625, 0.06103515625, -0.042999267578125, -0.034698486328125, -0.056396484375, 0.007076263427734375, 0.0162200927734375, 0.003204345703125, -0.0266265869140625, -0.0100250244140625, 0.00734710693359375, 0.00846099853515625, -0.0022678375244140625, -0.034454345703125, 0.03814697265625, 0.0224609375, -0.01023101806640625, 0.0301971435546875, -0.0029621124267578125, 0.0117950439453125, -0.006744384765625, -0.0102081298828125, 0.03973388671875, -0.0017137527465820312, 0.007686614990234375, 0.046112060546875, 0.004451751708984375, 0.00804901123046875, -0.044677734375, 0.01399993896484375, 0.03363037109375, 0.0009775161743164062, -0.07086181640625, -0.0445556640625, -0.059112548828125, -0.07275390625, 0.02203369140625, -0.0046844482421875, -0.0256805419921875, -0.003414154052734375, -0.02813720703125, -0.027069091796875, 0.004352569580078125, 0.03546142578125, -0.0177459716796875, 0.041473388671875, -0.006908416748046875, -0.0245513916015625, 0.00646209716796875, -0.0313720703125, 0.053009033203125, -0.004528045654296875, -0.0560302734375, -0.00597381591796875, -0.0127410888671875, -0.02935791015625, 0.0130462646484375, 0.0297393798828125, -0.01200103759765625, 0.0199127197265625, 0.0144500732421875, -0.0389404296875, 0.04815673828125, 0.006927490234375, -0.01496124267578125, -0.0178680419921875, 0.00926971435546875, -0.03802490234375, -0.05938720703125, -0.02716064453125, -0.0210113525390625, 0.0177001953125, -0.0098724365234375, 0.0360107421875, 0.0093994140625, -0.00406646728515625, -0.05950927734375, 0.02325439453125, -0.0687255859375, -0.06817626953125, 0.052886962890625, 0.0067291259765625, -0.03546142578125, 0.0067596435546875, -0.0916748046875, 0.0184783935546875, 0.00110626220703125, 0.01302337646484375, 0.0675048828125, -0.057586669921875, 0.0005450248718261719, -0.01332855224609375, 0.0350341796875, -0.03167724609375, -0.046966552734375, -0.0760498046875, -0.0226593017578125, 0.036834716796875, 0.0322265625, -0.00507354736328125, 0.0281982421875, -0.004199981689453125, -0.011077880859375, 0.01197052001953125, -0.0307464599609375, 0.007442474365234375, 0.0189361572265625, -0.01190185546875, 0.006397247314453125, -0.019378662109375, -0.0263824462890625, -0.0004925727844238281, -0.01000213623046875, 0.01378631591796875, -0.006500244140625, 0.00010734796524047852, -0.006626129150390625, 0.05804443359375, 0.06756591796875, 0.0048675537109375, 0.0413818359375, 0.00411224365234375, -0.0199737548828125, 0.024078369140625, -0.03411865234375, -0.022491455078125, -0.03924560546875, -0.0103302001953125, 0.026580810546875, -0.03094482421875, -0.02239990234375, -0.07342529296875, 0.01091766357421875, 0.0247039794921875, -0.0130157470703125, -0.046844482421875, 0.009033203125, -0.034515380859375, 0.0638427734375, -0.035369873046875, 0.0164337158203125, -0.0177764892578125, 0.0211181640625, -0.0279083251953125, -0.034576416015625, -0.04693603515625, 0.046844482421875, -0.04931640625, -0.0187530517578125, 0.0166168212890625, 0.0154876708984375, -0.059478759765625, -0.02947998046875, -0.030517578125, 0.002246856689453125, -0.038299560546875, -0.03271484375, 0.003223419189453125, -0.0219268798828125, 0.0177001953125, -0.07781982421875, -0.0132598876953125, -0.083251953125, 0.003864288330078125, -0.01007843017578125, 0.0374755859375, 0.054840087890625, -0.0140533447265625, -0.058319091796875, 0.0287322998046875, -0.01548004150390625, -0.0212860107421875, -0.02984619140625, 0.0184173583984375, -0.0025997161865234375, -0.0164337158203125, -0.0110626220703125, -0.0173187255859375, -0.0136566162109375, 0.022491455078125, -0.0009303092956542969, 0.025299072265625, 0.005352020263671875, -0.01666259765625, -0.0416259765625, -0.01012420654296875, -0.01214599609375, -0.019287109375, 0.00628662109375, 0.0030727386474609375, 0.0114898681640625, 0.05047607421875, -0.0031833648681640625, -0.035919189453125, 0.00048732757568359375, -0.0645751953125, -0.0287628173828125, -0.01035308837890625, 0.0093841552734375, 0.0125579833984375, 0.082763671875, 0.039306640625, 0.01934814453125, -0.048126220703125, -0.02490234375, -0.0251312255859375, -0.029266357421875, -0.01166534423828125, 0.00954437255859375, -0.05084228515625, 0.00281524658203125, -0.0172271728515625, 0.004642486572265625, -0.052459716796875, -0.038970947265625, -0.019439697265625, -0.022308349609375, -0.0097503662109375, 0.0151214599609375, 0.0548095703125, -0.03857421875, 0.0275115966796875, -0.035888671875, -0.0263214111328125, 0.0201416015625, 0.0303192138671875, -0.01690673828125, 0.039459228515625, 0.00818634033203125, 0.034576416015625, -0.0246124267578125, -0.00748443603515625, 0.0228118896484375, 0.0027904510498046875, -0.0181121826171875, -0.0114288330078125, 0.01261138916015625, 0.040069580078125, -0.01552581787109375, 0.03228759765625, 0.003040313720703125, 0.0660400390625, 0.0036067962646484375, 0.05499267578125, -0.00536346435546875, -0.060791015625, -0.03802490234375, 0.045806884765625, -0.01050567626953125, -0.01302337646484375, 0.01322174072265625, -0.026641845703125, 0.00685882568359375, 0.039398193359375, 0.044647216796875, -0.00045013427734375, -0.001346588134765625, 0.00991058349609375, 0.038360595703125, 0.010528564453125 ]
056e99d842a3ce760680a91a2a04554726ab8256
Wordpress Stackexchange Q: How can I add a featured image to a page? I need the ability to add an image to a page, like a featured image. How can I do that, and how do I get the featured image to display in page.php? It can be a plugin if what I am asking can't be done within Wordpress itself out of the box. A: Eek! A 33% acceptance rate isn't really going to do you any favours but lucky for you Wordpress' in-built post-thumbnail featured image functionality works for posts, custom post types and pages too. Add the following line into your theme functions.php file: add_theme_support( 'post-thumbnails', array( 'post', 'page' ) ); Then in your page.php file and I stress that this must be used within the page loop (not outside of it) the following function will show your featured image on a page if it has one assigned to it. the_post_thumbnail() Adding a featured image to a page is the same process as adding one to a post. On the page editing screen you will see a metabox with a link that says, 'Set a featured image' click that and you're good to go. No plugins required.
Q: How can I add a featured image to a page? I need the ability to add an image to a page, like a featured image. How can I do that, and how do I get the featured image to display in page.php? It can be a plugin if what I am asking can't be done within Wordpress itself out of the box. A: Eek! A 33% acceptance rate isn't really going to do you any favours but lucky for you Wordpress' in-built post-thumbnail featured image functionality works for posts, custom post types and pages too. Add the following line into your theme functions.php file: add_theme_support( 'post-thumbnails', array( 'post', 'page' ) ); Then in your page.php file and I stress that this must be used within the page loop (not outside of it) the following function will show your featured image on a page if it has one assigned to it. the_post_thumbnail() Adding a featured image to a page is the same process as adding one to a post. On the page editing screen you will see a metabox with a link that says, 'Set a featured image' click that and you're good to go. No plugins required.
wordpress
{ "language": "en", "length": 198, "provenance": "stackexchange_00019.jsonl.gz:416620", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40613" }
[ 0.0697021484375, 0.00756072998046875, 0.043609619140625, -0.01100921630859375, 0.0274505615234375, -0.033294677734375, 0.095458984375, -0.051239013671875, 0.01544952392578125, -0.01232147216796875, -0.033721923828125, 0.01311492919921875, -0.06439208984375, -0.0192108154296875, 0.0013446807861328125, -0.037353515625, 0.0498046875, -0.02923583984375, 0.050567626953125, 0.00609588623046875, 0.0025539398193359375, 0.04461669921875, 0.04107666015625, 0.043975830078125, 0.0257110595703125, 0.01517486572265625, 0.03118896484375, -0.0173797607421875, -0.000027239322662353516, -0.0025272369384765625, 0.01898193359375, 0.004940032958984375, 0.0178680419921875, 0.022430419921875, -0.006526947021484375, 0.007152557373046875, 0.014068603515625, -0.00852203369140625, -0.0024547576904296875, 0.021728515625, 0.00901031494140625, 0.01393890380859375, 0.036346435546875, 0.016510009765625, -0.00518035888671875, -0.030792236328125, -0.0182037353515625, -0.046600341796875, -0.00414276123046875, -0.029998779296875, 0.00850677490234375, 0.0157470703125, 0.0297088623046875, -0.0382080078125, -0.005825042724609375, 0.0011396408081054688, -0.01435089111328125, 0.04266357421875, 0.04119873046875, -0.0243072509765625, -0.0523681640625, -0.012969970703125, 0.034576416015625, -0.0113525390625, 0.0161895751953125, -0.0097808837890625, -0.005702972412109375, 0.00673675537109375, -0.0223388671875, 0.0133819580078125, 0.0206756591796875, -0.0303802490234375, -0.0183563232421875, -0.026641845703125, -0.0102996826171875, 0.044677734375, -0.0214385986328125, -0.0003235340118408203, 0.01141357421875, 0.00508880615234375, 0.0012416839599609375, -0.00638580322265625, 0.015655517578125, 0.005657196044921875, 0.001506805419921875, 0.0238494873046875, -0.00569915771484375, -0.00858306884765625, -0.0208740234375, -0.004459381103515625, -0.020477294921875, -0.019561767578125, -0.034759521484375, 0.044891357421875, 0.0094451904296875, -0.002887725830078125, 0.03521728515625, 0.041534423828125, -0.00034809112548828125, 0.041015625, -0.00832366943359375, -0.06048583984375, 0.0830078125, -0.061981201171875, -0.0018796920776367188, 0.024688720703125, -0.0081329345703125, -0.03302001953125, -0.00147247314453125, 0.018951416015625, -0.0028362274169921875, 0.0022716522216796875, 0.01367950439453125, -0.0272064208984375, -0.01497650146484375, 0.00991058349609375, -0.0131378173828125, 0.0033512115478515625, 0.0186920166015625, -0.005886077880859375, 0.027099609375, 0.0419921875, 0.01080322265625, -0.032806396484375, 0.01282501220703125, 0.01508331298828125, -0.04034423828125, -0.04949951171875, -0.0212249755859375, 0.01715087890625, -0.04046630859375, 0.0287322998046875, 0.08001708984375, 0.01302337646484375, 0.0003821849822998047, -0.0230712890625, 0.009765625, -0.032196044921875, 0.006137847900390625, 0.01617431640625, -0.04254150390625, -0.02301025390625, 0.055328369140625, -0.016571044921875, 0.0294952392578125, 0.0196990966796875, 0.0004639625549316406, 0.0243682861328125, 0.0230712890625, -0.05108642578125, 0.05621337890625, -0.0267791748046875, -0.023590087890625, 0.0239105224609375, 0.0472412109375, -0.00969696044921875, 0.01849365234375, -0.0130462646484375, 0.050811767578125, -0.0018606185913085938, 0.0221710205078125, 0.01554107666015625, 0.00844573974609375, 0.007137298583984375, 0.0196990966796875, -0.03167724609375, -0.03997802734375, 0.0157012939453125, 0.01910400390625, 0.0021038055419921875, -0.008392333984375, -0.007965087890625, 0.007091522216796875, 0.00862884521484375, -0.009033203125, 0.0234832763671875, 0.00742340087890625, 0.041748046875, 0.0220794677734375, 0.06585693359375, 0.0211181640625, -0.03375244140625, 0.070556640625, -0.02545166015625, -0.026763916015625, 0.001949310302734375, 0.00904083251953125, 0.033111572265625, -0.0034236907958984375, 0.0264739990234375, 0.001132965087890625, 0.0175018310546875, -0.032684326171875, 0.0025634765625, 0.01282501220703125, -0.0157470703125, -0.03472900390625, -0.02899169921875, -0.0118408203125, 0.0113372802734375, 0.0087432861328125, -0.0196380615234375, 0.0201416015625, -0.0026416778564453125, -0.0137786865234375, -0.0122222900390625, -0.01309967041015625, 0.01192474365234375, 0.0174102783203125, -0.0007772445678710938, -0.0028476715087890625, -0.013092041015625, 0.01509857177734375, -0.044921875, -0.03179931640625, 0.03240966796875, -0.01500701904296875, -0.004791259765625, 0.01367950439453125, 0.0390625, -0.00957489013671875, 0.01340484619140625, -0.036651611328125, -0.02978515625, 0.06365966796875, 0.0164794921875, -0.05853271484375, -0.035919189453125, -0.0325927734375, 0.013763427734375, -0.111572265625, 0.0869140625, -0.0219268798828125, -0.0135040283203125, -0.0240936279296875, -0.0113372802734375, 0.0008478164672851562, -0.06634521484375, 0.0166778564453125, 0.044281005859375, 0.028839111328125, 0.03564453125, -0.0030765533447265625, 0.0299072265625, 0.044525146484375, 0.003875732421875, 0.0266571044921875, -0.006988525390625, 0.004688262939453125, -0.0190582275390625, 0.016326904296875, -0.04132080078125, 0.02899169921875, -0.081298828125, 0.0267333984375, 0.0215301513671875, -0.009918212890625, 0.0248870849609375, -0.04840087890625, 0.034393310546875, -0.0006122589111328125, 0.03509521484375, 0.00913238525390625, -0.00722503662109375, -0.0007472038269042969, 0.042938232421875, 0.019317626953125, 0.016876220703125, -0.028656005859375, 0.02899169921875, -0.0006227493286132812, -0.032562255859375, 0.006900787353515625, 0.0281524658203125, -0.0095977783203125, 0.0035877227783203125, -0.021514892578125, 0.0023651123046875, -0.0017518997192382812, 0.004589080810546875, -0.015838623046875, -0.0290679931640625, 0.0165863037109375, 0.00634002685546875, 0.0196075439453125, -0.032440185546875, 0.046478271484375, 0.020751953125, -0.00794219970703125, -0.0220489501953125, 0.006011962890625, 0.0213775634765625, -0.0220794677734375, 0.02899169921875, -0.01316070556640625, -0.01158905029296875, -0.005855560302734375, -0.0440673828125, 0.05181884765625, -0.039459228515625, 0.038604736328125, 0.06890869140625, -0.0249481201171875, 0.0268707275390625, 0.0173797607421875, -0.022064208984375, 0.0049896240234375, 0.025909423828125, 0.0161285400390625, -0.004058837890625, -0.0266571044921875, 0.03131103515625, 0.030181884765625, 0.009033203125, -0.01435089111328125, -0.018402099609375, -0.0203399658203125, 0.0058135986328125, -0.0858154296875, -0.068603515625, -0.03936767578125, -0.059783935546875, -0.03875732421875, 0.0201873779296875, -0.0400390625, 0.0184326171875, 0.052154541015625, -0.0002617835998535156, -0.047454833984375, -0.0013408660888671875, 0.02386474609375, -0.0556640625, -0.03289794921875, -0.05224609375, 0.0009684562683105469, -0.00011438131332397461, -0.0007314682006835938, 0.043304443359375, 0.0009984970092773438, -0.042083740234375, 0.0009002685546875, 0.0399169921875, -0.004856109619140625, -0.004367828369140625, 0.0201263427734375, -0.00838470458984375, -0.017822265625, 0.007648468017578125, 0.012969970703125, 0.03326416015625, -0.0281524658203125, 0.0028438568115234375, -0.054656982421875, -0.01088714599609375, -0.039794921875, 0.033660888671875, 0.0771484375, -0.0171661376953125, 0.0010938644409179688, -0.043701171875, -0.01251983642578125, -0.0220489501953125, -0.05419921875, -0.035552978515625, 0.021026611328125, 0.00905609130859375, -0.03167724609375, 0.0026340484619140625, -0.01041412353515625, -0.00862884521484375, 0.0188140869140625, -0.03759765625, 0.04290771484375, -0.0033512115478515625, -0.00992584228515625, -0.031097412109375, 0.0006728172302246094, -0.0005097389221191406, 0.07135009765625, 0.01422882080078125, 0.050323486328125, -0.0248260498046875, 0.07061767578125, -0.0777587890625, -0.058868408203125, 0.0321044921875, -0.00518798828125, 0.0187225341796875, -0.02777099609375, -0.0263519287109375, 0.011505126953125, 0.101318359375, -0.03240966796875, -0.02490234375, -0.0282745361328125, -0.0015420913696289062, 0.007572174072265625, -0.00797271728515625, -0.0191192626953125, -0.01532745361328125, -0.04791259765625, -0.001285552978515625, 0.00033473968505859375, -0.0211334228515625, -0.0143585205078125, 0.01255035400390625, -0.0521240234375, -0.0181884765625, 0.0279693603515625, -0.03326416015625, -0.0139007568359375, 0.0860595703125, -0.05010986328125, 0.057830810546875, -0.044158935546875, -0.02728271484375, -0.08758544921875, -0.0002503395080566406, -0.01102447509765625, 0.06298828125, -0.0147705078125, 0.0018930435180664062, -0.0416259765625, 0.03131103515625, 0.0243682861328125, 0.022186279296875, 0.00968170166015625, -0.00966644287109375, 0.01145172119140625, -0.008087158203125, 0.0318603515625, -0.0391845703125, -0.0225982666015625, -0.0287933349609375, -0.021820068359375, -0.0040435791015625, -0.0172576904296875, 0.0235443115234375, 0.0186309814453125, -0.013458251953125, 0.029388427734375, 0.0011301040649414062, 0.051300048828125, 0.059814453125, 0.02587890625, -0.017425537109375, -0.03936767578125, 0.018798828125, 0.02874755859375, 0.0010089874267578125, 0.0050506591796875, 0.0221405029296875, 0.0845947265625, 0.0103607177734375, -0.0113525390625, -0.09844970703125, 0.021270751953125, 0.03192138671875, 0.0177001953125, 0.032745361328125, 0.008209228515625, -0.00975799560546875, -0.0032939910888671875, 0.034881591796875, -0.01270294189453125, -0.03314208984375, 0.05572509765625, 0.01271820068359375, -0.009674072265625, 0.00914764404296875, -0.01453399658203125, 0.0494384765625, 0.0187225341796875, -0.0294036865234375, -0.00096893310546875, -0.035125732421875, 0.01320648193359375, -0.0282745361328125, 0.04351806640625, -0.020294189453125, -0.007518768310546875, -0.0194244384765625, 0.0247039794921875, 0.06768798828125, 0.03631591796875, -0.002780914306640625, 0.01885986328125, 0.041412353515625, 0.002838134765625, 0.0153045654296875, -0.034393310546875, 0.008575439453125, 0.024139404296875, -0.0165557861328125, 0.0003192424774169922, 0.022369384765625, -0.00846099853515625, 0.037109375, 0.0051116943359375, -0.032318115234375, -0.047271728515625, -0.00978851318359375, 0.02264404296875, -0.0109100341796875, 0.0134429931640625, 0.030548095703125, 0.028411865234375, 0.00925445556640625, -0.0106658935546875, -0.0011816024780273438, 0.00827789306640625, -0.025421142578125, 0.0024471282958984375, 0.01666259765625, -0.017852783203125, 0.01568603515625, 0.054046630859375, -0.036376953125, 0.052276611328125, -0.00601959228515625, 0.0291748046875, 0.0570068359375, 0.01541900634765625, -0.0028839111328125, 0.04638671875, -0.041717529296875, 0.0218963623046875, 0.0012044906616210938, -0.01727294921875, -0.0009813308715820312, -0.02008056640625, 0.045654296875, -0.0679931640625, -0.028839111328125, 0.052642822265625, -0.038482666015625, -0.0173187255859375, -0.0022335052490234375, -0.032012939453125, -0.041656494140625, -0.01006317138671875, 0.0013446807861328125, 0.02264404296875, -0.0003180503845214844, -0.04144287109375, 0.035980224609375, -0.025665283203125, 0.035888671875, -0.0306549072265625, -0.004199981689453125, 0.01030731201171875, 0.00415802001953125, -0.04046630859375, -0.02093505859375, -0.0116119384765625, 0.0055999755859375, -0.0000852346420288086, -0.02996826171875, -0.0198211669921875, 0.045257568359375, -0.035369873046875, 0.0269317626953125, -0.004680633544921875, -0.022308349609375, 0.01187896728515625, 0.018646240234375, 0.01372528076171875, -0.00814056396484375, -0.03314208984375, -0.01129913330078125, -0.06304931640625, -0.0115966796875, 0.053802490234375, -0.0047454833984375, -0.0272369384765625, -0.03411865234375, 0.00318145751953125, 0.03216552734375, -0.029296875, -0.0266265869140625, -0.0222015380859375, 0.0272064208984375, 0.020050048828125, 0.082763671875, 0.0196533203125, -0.012054443359375, -0.006137847900390625, 0.05413818359375, 0.005962371826171875, -0.027069091796875, -0.0106201171875, -0.0440673828125, -0.01428985595703125, -0.034576416015625, 0.0072784423828125, 0.0085906982421875, -0.0207061767578125, 0.0200958251953125, 0.05291748046875, 0.0294036865234375, -0.006694793701171875, -0.019622802734375, -0.0018110275268554688, -0.03009033203125, 0.0274658203125, -0.0235443115234375, -0.0264892578125, 0.01226043701171875, -0.042694091796875, -0.006061553955078125, -0.0079193115234375, 0.0037689208984375, 0.0161285400390625, -0.034637451171875, -0.01336669921875, 0.04486083984375, -0.0253448486328125, 0.03863525390625, 0.065673828125, -0.0037326812744140625, 0.040435791015625, 0.0240631103515625, 0.001018524169921875, -0.00562286376953125, 0.044647216796875, -0.04864501953125, -0.047698974609375, 0.0310516357421875, 0.0207366943359375, -0.0192413330078125, 0.022796630859375, -0.0159454345703125, 0.0247344970703125, 0.004657745361328125, 0.045745849609375, -0.0158233642578125, 0.0225982666015625, 0.00559234619140625, -0.0230712890625, 0.069580078125, -0.00092315673828125, 0.018798828125, 0.01268768310546875, 0.056915283203125, -0.0234222412109375, -0.002071380615234375, 0.0245513916015625, -0.00994110107421875, -0.0182647705078125, 0.0024967193603515625, 0.00027823448181152344, 0.0214691162109375, -0.060791015625, 0.00795745849609375, 0.064453125, -0.030670166015625, -0.01171112060546875, 0.01947021484375, -0.0362548828125, 0.001827239990234375, -0.01000213623046875, 0.031646728515625, -0.026275634765625, 0.0164642333984375, 0.06585693359375, 0.0225372314453125, 0.0220184326171875, 0.06085205078125, 0.009185791015625, 0.0292205810546875, 0.04095458984375, -0.047454833984375, 0.040679931640625, -0.00859832763671875, 0.0158843994140625, -0.027191162109375, -0.050262451171875, -0.005229949951171875, -0.034210205078125, 0.007110595703125, -0.00525665283203125, 0.0018978118896484375, 0.08685302734375, -0.033477783203125, -0.028167724609375, 0.01047515869140625, 0.00801849365234375, -0.005878448486328125, -0.001300811767578125, 0.02447509765625, -0.0276947021484375, 0.0203857421875, 0.001346588134765625, 0.017059326171875, 0.0147247314453125, -0.00899505615234375, -0.048797607421875, 0.07147216796875, -0.047332763671875, 0.0155792236328125, -0.0084381103515625, 0.0435791015625, 0.0254364013671875, 0.00939178466796875, 0.00649261474609375, 0.03369140625, -0.059478759765625, 0.0665283203125, -0.026947021484375, 0.0185699462890625, 0.03955078125, 0.0278472900390625, 0.06732177734375, 0.018768310546875, -0.015716552734375, -0.01007080078125, 0.07293701171875, 0.04052734375, 0.008697509765625, 0.01546478271484375, -0.0264739990234375, -0.017669677734375, 0.01580810546875, -0.022857666015625, 0.011383056640625, 0.01221466064453125, -0.03204345703125, -0.004547119140625, 0.007045745849609375, 0.00865936279296875, 0.007534027099609375, 0.0210418701171875, -0.05023193359375, 0.0154571533203125, 0.04803466796875, -0.0294342041015625, 0.0277557373046875, 0.031646728515625, -0.0081329345703125, 0.021453857421875, -0.033050537109375, 0.00551605224609375, 0.02239990234375, -0.01528167724609375, 0.05584716796875, 0.0167694091796875, 0.037322998046875, 0.0016498565673828125, 0.0168609619140625, 0.045745849609375, 0.060699462890625, -0.057708740234375, 0.0390625, 0.01554107666015625, 0.0152587890625, -0.053253173828125, -0.014373779296875, 0.032958984375, 0.050201416015625, -0.03936767578125, -0.0286865234375, 0.01035308837890625, 0.009368896484375, 0.01224517822265625, -0.023895263671875, 0.0047760009765625, -0.056243896484375, -0.001644134521484375, -0.0023708343505859375, -0.010589599609375, 0.032562255859375, 0.0293426513671875, -0.000385284423828125, -0.0178680419921875, -0.032501220703125, -0.005268096923828125, -0.0187530517578125, 0.004451751708984375, 0.0091400146484375, 0.0091400146484375, -0.00858306884765625, 0.038177490234375, 0.0171051025390625, 0.0134124755859375, -0.01456451416015625, 0.0479736328125, 0.00688934326171875, 0.0262908935546875, -0.031494140625, -0.032257080078125, 0.0251922607421875, 0.01904296875, -0.01483917236328125, -0.01503753662109375, 0.0202789306640625, 0.0357666015625, -0.06439208984375, -0.036376953125, 0.0343017578125, -0.030303955078125, -0.0078582763671875, -0.045562744140625, 0.0169677734375, 0.0322265625, 0.00003147125244140625, 0.004772186279296875, -0.01148223876953125, 0.058013916015625, -0.02642822265625, 0.00983428955078125, -0.0165252685546875, -0.03668212890625, 0.0272064208984375, -0.030731201171875, 0.06976318359375, -0.00836944580078125, -0.0938720703125, -0.006984710693359375, -0.0439453125, -0.07318115234375, 0.05633544921875, 0.04571533203125, -0.035003662109375, 0.00688934326171875, 0.045379638671875, 0.0014028549194335938, 0.0219268798828125, -0.0230865478515625, 0.0002073049545288086, -0.0159759521484375, 0.048248291015625, -0.0045928955078125, -0.019744873046875, -0.0274810791015625, -0.005863189697265625, 0.041290283203125, 0.019378662109375, 0.0233001708984375, -0.01324462890625, 0.030059814453125, -0.007747650146484375, -0.0030956268310546875, -0.0167083740234375, -0.0115966796875, 0.0311737060546875, -0.0037403106689453125, -0.0226287841796875, -0.0182342529296875, -0.0390625, 0.01517486572265625, 0.00980377197265625, -0.02978515625, -0.0232696533203125, 0.0029392242431640625, 0.00756072998046875, 0.03179931640625, 0.0452880859375, -0.0238189697265625, -0.0165252685546875, -0.053436279296875, -0.032806396484375, 0.018890380859375, -0.01175689697265625, 0.021148681640625, 0.02252197265625, 0.0176544189453125, -0.0145263671875, 0.0347900390625, -0.0293731689453125, 0.06842041015625, 0.045745849609375, -0.0216827392578125, -0.054046630859375, -0.017974853515625, -0.006267547607421875, -0.0207366943359375, -0.005237579345703125, 0.059417724609375, -0.0135040283203125, -0.0283050537109375, 0.005336761474609375, -0.01312255859375, 0.0018558502197265625, -0.0341796875, -0.0124359130859375, 0.005069732666015625, -0.0032253265380859375, -0.0172119140625, 0.027191162109375, -0.0016565322875976562, -0.047149658203125, -0.01390838623046875, 0.0262451171875, -0.0283050537109375, 0.0254364013671875, -0.0574951171875, 0.01428985595703125, 0.03363037109375, 0.0256500244140625, -0.06732177734375, 0.040771484375, -0.0035457611083984375, 0.03997802734375, 0.005153656005859375, -0.04449462890625, 0.0252838134765625, 0.06365966796875, -0.04241943359375, -0.024505615234375, -0.0333251953125, -0.03399658203125, -0.052947998046875, 0.033599853515625, 0.05242919921875, -0.035736083984375, 0.04083251953125, 0.0390625, 0.0254058837890625, 0.1048583984375, -0.054412841796875, -0.03692626953125, -0.00884246826171875, -0.0129241943359375, 0.011810302734375, -0.0175323486328125, 0.03350830078125, -0.06378173828125, -0.0262603759765625, -0.047882080078125, 0.037933349609375, 0.02484130859375, -0.04620361328125, -0.10101318359375, 0.035675048828125, -0.03106689453125, -0.04876708984375, -0.03515625, 0.0081329345703125, -0.0106201171875, 0.013458251953125, -0.0004184246063232422, -0.0064544677734375, 0.01238250732421875, 0.029937744140625, 0.0226593017578125, -0.0021991729736328125, 0.056640625, 0.007305145263671875, -0.0242767333984375, 0.0008983612060546875, 0.0009393692016601562, -0.006412506103515625, 0.0207977294921875, -0.0084686279296875, 0.032501220703125, 0.05157470703125, -0.038330078125, -0.04949951171875, -0.033416748046875, -0.028656005859375, -0.038482666015625, -0.03387451171875, -0.004390716552734375, -0.00850677490234375, 0.07012939453125, 0.004833221435546875, 0.0198822021484375, -0.001506805419921875, 0.0028057098388671875, -0.057647705078125, -0.032928466796875, -0.011627197265625, 0.0134735107421875, -0.063720703125, -0.00007873773574829102, 0.044464111328125, -0.0179901123046875, -0.00823211669921875, -0.0008664131164550781, -0.054931640625, -0.009246826171875, -0.0311431884765625, 0.0139312744140625, -0.06268310546875, 0.0093994140625, 0.06683349609375, -0.047515869140625, 0.025909423828125, -0.0211029052734375, 0.00925445556640625, 0.040313720703125, -0.03973388671875, 0.00598907470703125, 0.0430908203125, -0.0238189697265625, 0.0153045654296875, 0.0012388229370117188, -0.00914764404296875, -0.036163330078125, 0.01534271240234375, -0.01145172119140625, 0.034576416015625, 0.00251007080078125, 0.0379638671875, -0.0037479400634765625, 0.03948974609375, 0.00687408447265625, 0.038818359375, -0.005840301513671875, -0.02374267578125, -0.0247802734375, 0.027313232421875, -0.03997802734375, -0.004547119140625, -0.010955810546875, -0.041748046875, 0.020172119140625, 0.0201568603515625, -0.00774383544921875, 0.0022373199462890625, -0.007404327392578125, -0.01947021484375, -0.016082763671875, 0.0075531005859375 ]
97cc44b86af143fc6553b6d9caa7b3fb989162d4
Wordpress Stackexchange Q: Fully-featured forum plugin I'm looking for a plugin recommendation. I'm currently using bbPress to add a forums area to our website. However, it has been deemed "disappointing" in terms of functionality. Are there any forum plugins which have the following features? * *Easy image attachment (i.e. not like the bbPress GD add-on which uses the Media Library) *Unread threads / mark as unread button *Private messaging *Quoting *Rich text editor for new topics/replies Thanks in advance, A: SimplePress currently is the best-featured forum plugin for WordPress.
Q: Fully-featured forum plugin I'm looking for a plugin recommendation. I'm currently using bbPress to add a forums area to our website. However, it has been deemed "disappointing" in terms of functionality. Are there any forum plugins which have the following features? * *Easy image attachment (i.e. not like the bbPress GD add-on which uses the Media Library) *Unread threads / mark as unread button *Private messaging *Quoting *Rich text editor for new topics/replies Thanks in advance, A: SimplePress currently is the best-featured forum plugin for WordPress. A: You can use bbPress, also from the Team of WordPress; but is not a fully-featured forum like vBulletin. Since version 2.* integrated bbPress very fine in WP, but not so much features. Also it is possible to add via plugins functions to an nice forum, but many work and not so much free plugins for your list of wishe; but possible. Also you can check an forum plugin, longer development, but the most of this with old source and not the possibilities of WordPress. Another chance is to dev an custom forum plugin with custom post types and taxonomies, like this example. A: I hoped the "new" bbpress plugin would be better than the old standalone version :( Maybe you should create a custom post-type in wordpress and some plugins to create a kind of forum section for your wordpress site. I abandoned bbpress a year ago and archived all forum posts on finalwebsites.com and added some form to my new wordpress blog. (PM me if you need more details)
wordpress
{ "language": "en", "length": 258, "provenance": "stackexchange_00019.jsonl.gz:416625", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40625" }
[ 0.046478271484375, -0.0023651123046875, 0.016571044921875, -0.0205078125, -0.009002685546875, -0.0020008087158203125, 0.0033473968505859375, -0.0390625, 0.037139892578125, 0.01409912109375, 0.035369873046875, -0.019439697265625, -0.035125732421875, -0.044830322265625, -0.033782958984375, -0.006420135498046875, 0.034515380859375, -0.0009436607360839844, 0.0175323486328125, -0.019927978515625, 0.01261138916015625, -0.00193023681640625, 0.0207061767578125, 0.038482666015625, 0.0310211181640625, 0.02239990234375, 0.0574951171875, -0.03173828125, 0.041351318359375, 0.0129241943359375, 0.0241546630859375, -0.057952880859375, 0.01384735107421875, 0.022735595703125, -0.0025615692138671875, -0.02838134765625, -0.028228759765625, 0.0178680419921875, 0.009918212890625, 0.0164947509765625, 0.00438690185546875, 0.0191192626953125, 0.0025196075439453125, 0.056793212890625, -0.0282135009765625, -0.046783447265625, 0.0019931793212890625, -0.0372314453125, -0.00048279762268066406, -0.0650634765625, 0.007572174072265625, 0.0256500244140625, 0.038787841796875, -0.04571533203125, -0.00616455078125, 0.038482666015625, -0.037628173828125, 0.03985595703125, 0.03973388671875, -0.0171051025390625, -0.028594970703125, -0.025299072265625, 0.019744873046875, -0.0042877197265625, 0.0015707015991210938, -0.01800537109375, -0.0139312744140625, 0.013671875, -0.0104522705078125, 0.01354217529296875, 0.050079345703125, -0.0278472900390625, 0.01538848876953125, -0.007137298583984375, -0.037384033203125, -0.0182037353515625, -0.0026226043701171875, -0.0259246826171875, 0.03179931640625, -0.027618408203125, -0.04730224609375, -0.0247344970703125, -0.0584716796875, -0.0212860107421875, -0.021636962890625, 0.0036334991455078125, -0.0181427001953125, 0.00974273681640625, -0.032928466796875, 0.00511932373046875, 0.0003635883331298828, -0.0750732421875, -0.06317138671875, 0.0731201171875, 0.04400634765625, 0.00690460205078125, -0.002117156982421875, -0.05621337890625, 0.0184326171875, 0.014617919921875, 0.03173828125, -0.04608154296875, 0.0592041015625, -0.0018625259399414062, -0.004688262939453125, 0.0445556640625, -0.0107421875, -0.037353515625, 0.002109527587890625, 0.03192138671875, 0.0016498565673828125, -0.033721923828125, 0.037811279296875, 0.01432037353515625, -0.01348876953125, -0.055389404296875, -0.03753662109375, 0.052215576171875, 0.002048492431640625, 0.0221710205078125, 0.0094757080078125, 0.00710296630859375, 0.03173828125, -0.002544403076171875, -0.037872314453125, -0.034576416015625, -0.039581298828125, -0.0129852294921875, -0.024566650390625, 0.03900146484375, -0.0092010498046875, 0.00787353515625, -0.0006189346313476562, -0.016693115234375, -0.039306640625, -0.01934814453125, -0.018951416015625, -0.0221710205078125, 0.0155181884765625, -0.0067138671875, -0.0272216796875, -0.01690673828125, 0.06103515625, -0.012542724609375, 0.001285552978515625, -0.00604248046875, 0.02520751953125, 0.0362548828125, -0.0241546630859375, -0.00855255126953125, 0.00424957275390625, 0.006359100341796875, 0.003025054931640625, -0.005016326904296875, 0.024261474609375, -0.03515625, -0.0083465576171875, -0.01351165771484375, 0.03765869140625, -0.0012979507446289062, 0.06439208984375, -0.008331298828125, -0.0291595458984375, 0.004344940185546875, -0.035888671875, 0.0022258758544921875, -0.01094818115234375, -0.0021572113037109375, 0.022369384765625, 0.000576019287109375, 0.036590576171875, 0.0204010009765625, 0.0294952392578125, 0.01308441162109375, 0.0044403076171875, -0.0009665489196777344, -0.033172607421875, 0.06536865234375, 0.035675048828125, 0.005611419677734375, 0.002178192138671875, -0.03399658203125, 0.10009765625, -0.0141754150390625, -0.04510498046875, 0.03167724609375, 0.00655364990234375, 0.05999755859375, 0.002414703369140625, 0.018524169921875, 0.007007598876953125, 0.01215362548828125, -0.00909423828125, 0.0009946823120117188, -0.0223388671875, -0.0297088623046875, 0.0008435249328613281, -0.009796142578125, -0.0225677490234375, 0.0233917236328125, -0.0010328292846679688, -0.0169525146484375, 0.01349639892578125, 0.00958251953125, -0.058807373046875, 0.0138397216796875, -0.0296783447265625, 0.023406982421875, 0.025421142578125, 0.0154266357421875, 0.002765655517578125, 0.02398681640625, -0.0115814208984375, -0.0404052734375, -0.039154052734375, 0.0226593017578125, -0.0160980224609375, 0.023223876953125, 0.01363372802734375, 0.01543426513671875, 0.00600433349609375, -0.01258087158203125, 0.007965087890625, 0.005191802978515625, 0.0430908203125, 0.031463623046875, -0.03570556640625, -0.005397796630859375, 0.0264739990234375, 0.01241302490234375, -0.004894256591796875, 0.04046630859375, -0.01474761962890625, 0.0164337158203125, 0.0024318695068359375, 0.007152557373046875, 0.0159149169921875, -0.048736572265625, 0.01861572265625, 0.026947021484375, 0.032440185546875, -0.00751495361328125, -0.01323699951171875, 0.0166015625, 0.03692626953125, 0.01024627685546875, 0.040008544921875, -0.01148223876953125, 0.033966064453125, 0.0732421875, -0.00827789306640625, 0.00872802734375, 0.0018520355224609375, -0.0269927978515625, 0.0169830322265625, 0.0261993408203125, -0.0418701171875, -0.02520751953125, -0.0027923583984375, 0.0169219970703125, -0.0110931396484375, -0.00785064697265625, 0.0306243896484375, -0.019073486328125, 0.038818359375, 0.003360748291015625, 0.0330810546875, 0.03424072265625, -0.0160980224609375, 0.00031447410583496094, 0.004024505615234375, -0.0032329559326171875, 0.0038356781005859375, 0.07281494140625, 0.049957275390625, 0.012237548828125, -0.007762908935546875, -0.061431884765625, 0.01885986328125, 0.04669189453125, -0.004650115966796875, -0.0194854736328125, 0.00298309326171875, -0.01224517822265625, 0.0290069580078125, -0.04205322265625, 0.002044677734375, -0.0167388916015625, -0.0181884765625, -0.01108551025390625, 0.0014791488647460938, 0.03265380859375, -0.01861572265625, 0.033294677734375, -0.004863739013671875, -0.010772705078125, -0.01171112060546875, -0.0743408203125, 0.04718017578125, -0.03759765625, 0.0408935546875, 0.08258056640625, 0.0198211669921875, 0.0031032562255859375, -0.0036773681640625, 0.00890350341796875, 0.012298583984375, 0.00714874267578125, 0.0007224082946777344, -0.01995849609375, -0.03167724609375, -0.00923919677734375, -0.00646209716796875, 0.03668212890625, -0.0303802490234375, -0.06781005859375, -0.0185394287109375, 0.0059967041015625, -0.07012939453125, 0.01494598388671875, -0.06787109375, -0.06158447265625, 0.00807952880859375, 0.016143798828125, -0.02105712890625, 0.0135955810546875, 0.045684814453125, 0.0225677490234375, -0.00506591796875, 0.0021228790283203125, -0.04461669921875, -0.03363037109375, -0.059814453125, -0.0108642578125, -0.008392333984375, 0.01425933837890625, 0.020172119140625, 0.058624267578125, 0.018890380859375, -0.021942138671875, 0.0160675048828125, -0.01470184326171875, -0.020172119140625, -0.00848388671875, 0.008544921875, 0.0302734375, -0.0030975341796875, 0.032196044921875, 0.012664794921875, 0.020233154296875, -0.057769775390625, -0.0406494140625, -0.0328369140625, -0.038726806640625, -0.0304107666015625, -0.0139617919921875, 0.042449951171875, -0.03839111328125, -0.02783203125, -0.061767578125, 0.02490234375, 0.020111083984375, 0.0025634765625, -0.053558349609375, -0.0377197265625, -0.0226593017578125, -0.009857177734375, 0.004009246826171875, 0.034088134765625, 0.031768798828125, -0.00014150142669677734, -0.00815582275390625, 0.02252197265625, -0.0097808837890625, 0.0185546875, -0.0290069580078125, -0.0240478515625, -0.040435791015625, 0.012054443359375, -0.036163330078125, -0.009613037109375, -0.0193328857421875, 0.01617431640625, -0.01152801513671875, -0.006244659423828125, 0.01500701904296875, -0.0286865234375, 0.0163116455078125, -0.0355224609375, -0.012451171875, -0.038055419921875, 0.05828857421875, -0.033599853515625, 0.0144805908203125, 0.027008056640625, -0.0029544830322265625, -0.01544952392578125, -0.0038242340087890625, -0.09912109375, -0.0060272216796875, -0.0111083984375, -0.01401519775390625, -0.009368896484375, -0.017669677734375, -0.01152801513671875, 0.007091522216796875, -0.0032062530517578125, -0.0203399658203125, 0.034210205078125, -0.046966552734375, -0.016357421875, 0.01025390625, -0.022186279296875, -0.035003662109375, -0.0283966064453125, -0.023223876953125, -0.04473876953125, -0.0012903213500976562, -0.047149658203125, 0.041015625, 0.0200653076171875, -0.018951416015625, -0.0274658203125, 0.0126800537109375, -0.002895355224609375, 0.0077056884765625, 0.0036602020263671875, 0.0133514404296875, -0.0406494140625, -0.002910614013671875, 0.0118255615234375, -0.030120849609375, -0.0169677734375, -0.021697998046875, -0.0216827392578125, -0.055877685546875, -0.0284576416015625, -0.045074462890625, 0.029541015625, -0.03515625, 0.01490020751953125, -0.034942626953125, -0.04498291015625, -0.0095062255859375, -0.004230499267578125, -0.0225982666015625, -0.03680419921875, 0.021331787109375, -0.018890380859375, -0.03424072265625, -0.00962066650390625, 0.0462646484375, 0.049041748046875, 0.016571044921875, 0.021087646484375, -0.102294921875, -0.0036296844482421875, 0.05535888671875, 0.037811279296875, 0.043853759765625, 0.049774169921875, -0.050048828125, 0.05010986328125, 0.05474853515625, 0.0300750732421875, -0.032470703125, 0.002048492431640625, -0.006103515625, -0.016845703125, 0.036407470703125, 0.0086212158203125, 0.0065765380859375, -0.0173797607421875, -0.0248260498046875, -0.0240478515625, -0.06256103515625, 0.0528564453125, 0.018646240234375, 0.033721923828125, -0.04638671875, -0.039154052734375, -0.003353118896484375, 0.04229736328125, 0.0167999267578125, 0.03826904296875, -0.0165252685546875, 0.0462646484375, 0.058135986328125, -0.02239990234375, 0.0308380126953125, 0.0031585693359375, 0.019439697265625, 0.0128021240234375, 0.041748046875, -0.004802703857421875, -0.00795745849609375, 0.00148773193359375, 0.03961181640625, -0.0140228271484375, -0.044219970703125, -0.045440673828125, -0.01355743408203125, 0.02716064453125, 0.0196075439453125, 0.01129150390625, 0.0291595458984375, 0.03173828125, -0.032196044921875, 0.0026702880859375, 0.001819610595703125, 0.004253387451171875, -0.04595947265625, -0.041900634765625, -0.02972412109375, -0.003574371337890625, 0.01380157470703125, 0.03582763671875, -0.027435302734375, 0.025054931640625, -0.0003223419189453125, 0.007747650146484375, 0.0283660888671875, 0.04278564453125, 0.0343017578125, -0.051910400390625, -0.0177459716796875, 0.0208892822265625, -0.0049285888671875, -0.01009368896484375, 0.0172576904296875, -0.0150604248046875, -0.034027099609375, -0.00446319580078125, -0.007251739501953125, 0.05206298828125, 0.016632080078125, -0.027557373046875, 0.053070068359375, 0.057891845703125, -0.01045989990234375, -0.006755828857421875, 0.005298614501953125, 0.0196685791015625, 0.00583648681640625, 0.0054473876953125, -0.0239715576171875, -0.00545501708984375, -0.0280609130859375, 0.006374359130859375, -0.06793212890625, -0.007404327392578125, 0.0166015625, -0.0168304443359375, 0.01079559326171875, 0.0033664703369140625, -0.07086181640625, -0.06451416015625, -0.005199432373046875, 0.004108428955078125, 0.054595947265625, -0.01617431640625, 0.0240631103515625, -0.040130615234375, 0.017669677734375, -0.0212554931640625, -0.0036220550537109375, 0.034942626953125, 0.00653839111328125, -0.022003173828125, -0.0280303955078125, -0.031585693359375, -0.0521240234375, -0.03741455078125, -0.0241851806640625, -0.053375244140625, 0.00620269775390625, 0.0178985595703125, 0.01175689697265625, -0.0226287841796875, -0.044189453125, -0.006710052490234375, 0.044921875, 0.053009033203125, 0.06170654296875, 0.0085296630859375, -0.034698486328125, 0.03143310546875, 0.045745849609375, 0.01158905029296875, -0.043792724609375, -0.029754638671875, -0.0272674560546875, -0.004993438720703125, -0.0091552734375, -0.013458251953125, 0.006908416748046875, 0.0007338523864746094, -0.007740020751953125, 0.022216796875, -0.001430511474609375, 0.003204345703125, -0.0011377334594726562, 0.0156707763671875, -0.01387786865234375, 0.01206207275390625, -0.0020465850830078125, -0.008758544921875, 0.006549835205078125, -0.00908660888671875, -0.0038814544677734375, 0.01299285888671875, -0.0196990966796875, -0.01776123046875, 0.018096923828125, -0.00713348388671875, -0.003955841064453125, 0.0021228790283203125, 0.0270538330078125, 0.0369873046875, 0.0005555152893066406, 0.0115966796875, 0.0271453857421875, 0.00908660888671875, -0.046783447265625, 0.045806884765625, -0.0345458984375, -0.060760498046875, 0.06280517578125, 0.0439453125, -0.0308685302734375, 0.068359375, -0.0285491943359375, 0.017547607421875, 0.0051116943359375, 0.037353515625, -0.054931640625, 0.03826904296875, 0.015045166015625, -0.00629425048828125, 0.03851318359375, -0.0090484619140625, 0.0276336669921875, 0.026580810546875, 0.04144287109375, 0.004428863525390625, -0.0107269287109375, 0.010498046875, -0.0253753662109375, -0.0206756591796875, -0.040985107421875, -0.01288604736328125, -0.00046706199645996094, -0.039642333984375, 0.016876220703125, 0.018341064453125, -0.0159454345703125, -0.0269622802734375, 0.00684356689453125, -0.0015687942504882812, -0.0272369384765625, -0.054656982421875, 0.01073455810546875, -0.0036296844482421875, -0.01666259765625, 0.0946044921875, -0.021820068359375, -0.005184173583984375, 0.02301025390625, -0.0276336669921875, 0.036865234375, -0.0169525146484375, -0.057464599609375, 0.01044464111328125, -0.01268768310546875, 0.0224151611328125, 0.015472412109375, 0.0111541748046875, 0.01169586181640625, 0.01306915283203125, -0.0430908203125, -0.0262451171875, -0.00829315185546875, 0.1124267578125, -0.042572021484375, -0.01038360595703125, 0.0161895751953125, 0.0025081634521484375, -0.00930023193359375, -0.01708984375, -0.0243377685546875, -0.0435791015625, 0.007541656494140625, -0.0258636474609375, -0.0165557861328125, 0.04071044921875, -0.00557708740234375, -0.060394287109375, 0.100341796875, 0.03369140625, -0.00011432170867919922, -0.006458282470703125, 0.04254150390625, -0.042266845703125, 0.0031986236572265625, 0.0087890625, 0.0228118896484375, -0.057159423828125, 0.00824737548828125, -0.0036182403564453125, 0.006305694580078125, -0.017242431640625, 0.019989013671875, 0.07318115234375, 0.01363372802734375, -0.0249481201171875, 0.019775390625, 0.09478759765625, 0.031829833984375, 0.006404876708984375, 0.0213470458984375, 0.0073089599609375, 0.01226806640625, 0.02850341796875, -0.04144287109375, 0.031646728515625, -0.05426025390625, 0.013763427734375, 0.0202178955078125, 0.01194000244140625, 0.019012451171875, -0.055145263671875, 0.018463134765625, -0.004344940185546875, -0.029022216796875, -0.0035800933837890625, 0.0026569366455078125, 0.0003437995910644531, 0.017364501953125, -0.007305145263671875, -0.046112060546875, 0.0290374755859375, -0.0290069580078125, 0.038543701171875, -0.03472900390625, 0.036956787109375, 0.034423828125, 0.0166015625, 0.04315185546875, -0.06048583984375, 0.00562286376953125, -0.0224609375, -0.03564453125, 0.02154541015625, -0.0169219970703125, 0.0391845703125, -0.068359375, -0.065673828125, 0.0197601318359375, 0.04888916015625, -0.00653839111328125, -0.08807373046875, 0.01422119140625, 0.026397705078125, 0.032012939453125, 0.0447998046875, 0.0209808349609375, -0.036346435546875, 0.059234619140625, 0.00856781005859375, -0.0041351318359375, 0.0521240234375, -0.015106201171875, 0.01555633544921875, -0.00904083251953125, 0.0070648193359375, 0.03326416015625, 0.0089569091796875, 0.00024402141571044922, 0.0105743408203125, -0.02691650390625, -0.0142974853515625, -0.01337432861328125, 0.023681640625, 0.033477783203125, -0.0457763671875, 0.06390380859375, 0.025482177734375, 0.06390380859375, -0.0241851806640625, -0.0104522705078125, 0.02386474609375, 0.01467132568359375, 0.019378662109375, 0.0310516357421875, 0.053009033203125, 0.033660888671875, -0.0265655517578125, 0.006458282470703125, 0.054779052734375, -0.017364501953125, -0.021759033203125, -0.027191162109375, -0.022705078125, 0.03753662109375, -0.0183258056640625, 0.0271759033203125, -0.0518798828125, 0.064697265625, 0.01395416259765625, 0.0109405517578125, 0.0092315673828125, -0.0010862350463867188, 0.01326751708984375, -0.0018262863159179688, -0.0045013427734375, 0.0261688232421875, -0.05670166015625, -0.027099609375, -0.002361297607421875, -0.0189971923828125, 0.0275115966796875, 0.03656005859375, -0.01047515869140625, 0.020355224609375, 0.0006656646728515625, -0.001483917236328125, 0.045318603515625, -0.03411865234375, -0.01525115966796875, 0.01158905029296875, 0.0155792236328125, -0.01320648193359375, -0.012939453125, -0.0237579345703125, -0.00033736228942871094, 0.0443115234375, -0.003444671630859375, 0.06671142578125, -0.0281982421875, 0.020660400390625, 0.005523681640625, -0.034942626953125, 0.0257415771484375, 0.0042724609375, -0.0172271728515625, 0.0181121826171875, -0.02203369140625, -0.017333984375, -0.02783203125, 0.01047515869140625, 0.043304443359375, -0.029571533203125, -0.004039764404296875, 0.024810791015625, 0.00945281982421875, -0.03411865234375, -0.0003077983856201172, -0.05242919921875, -0.03594970703125, -0.05078125, -0.033203125, 0.002277374267578125, -0.01552581787109375, 0.025054931640625, 0.00899505615234375, -0.01526641845703125, 0.01343536376953125, -0.0411376953125, 0.044769287109375, -0.06671142578125, 0.03656005859375, -0.0210723876953125, -0.01100921630859375, -0.0021076202392578125, -0.023712158203125, 0.0187225341796875, 0.0015048980712890625, 0.04730224609375, 0.00907135009765625, -0.04425048828125, 0.038116455078125, 0.0026798248291015625, 0.0198822021484375, -0.051361083984375, -0.0257415771484375, 0.039215087890625, 0.01386260986328125, -0.012664794921875, -0.03424072265625, -0.0202789306640625, -0.046905517578125, -0.038543701171875, -0.0157928466796875, -0.058746337890625, -0.07342529296875, -0.031707763671875, -0.0209197998046875, -0.001983642578125, -0.003948211669921875, -0.0440673828125, 0.0017910003662109375, 0.016693115234375, 0.0108642578125, -0.03387451171875, -0.03240966796875, 0.02154541015625, 0.06036376953125, -0.0204925537109375, -0.0254364013671875, -0.0264892578125, -0.0101165771484375, -0.034576416015625, 0.0550537109375, 0.0667724609375, -0.045501708984375, 0.049163818359375, 0.05401611328125, 0.047088623046875, 0.10797119140625, -0.0232696533203125, -0.022674560546875, 0.01428985595703125, -0.01629638671875, -0.003849029541015625, -0.047149658203125, 0.0017328262329101562, -0.07415771484375, -0.0206451416015625, -0.04327392578125, -0.0126800537109375, -0.025177001953125, -0.06524658203125, -0.0980224609375, 0.099609375, -0.022491455078125, -0.02154541015625, -0.061431884765625, 0.01117706298828125, 0.00601959228515625, 0.020111083984375, -0.01107025146484375, -0.0027980804443359375, -0.05743408203125, -0.00601959228515625, 0.033050537109375, -0.000675201416015625, 0.033843994140625, 0.0071868896484375, -0.00922393798828125, 0.0275421142578125, 0.034210205078125, 0.016845703125, 0.03570556640625, -0.0160369873046875, 0.0278472900390625, 0.03179931640625, -0.04168701171875, -0.005725860595703125, -0.0190277099609375, -0.0175933837890625, -0.005931854248046875, 0.004253387451171875, 0.01207733154296875, 0.0206146240234375, 0.0302581787109375, 0.005764007568359375, 0.007015228271484375, -0.02032470703125, 0.00830078125, -0.035858154296875, -0.01367950439453125, 0.0272979736328125, 0.002742767333984375, -0.0218353271484375, 0.029449462890625, 0.021881103515625, -0.0263824462890625, -0.002719879150390625, 0.023345947265625, -0.03302001953125, 0.00414276123046875, -0.0026645660400390625, -0.059844970703125, 0.01009368896484375, -0.020263671875, 0.0966796875, -0.0556640625, 0.0118560791015625, 0.019927978515625, 0.0028896331787109375, 0.061248779296875, 0.0184478759765625, -0.0022258758544921875, 0.014556884765625, -0.01410675048828125, 0.0246429443359375, 0.01345062255859375, 0.0240936279296875, -0.021087646484375, -0.0014095306396484375, 0.003215789794921875, 0.037841796875, -0.004405975341796875, 0.046356201171875, -0.021240234375, 0.058380126953125, 0.007633209228515625, 0.07379150390625, -0.002773284912109375, -0.0640869140625, -0.035064697265625, 0.034881591796875, 0.0027790069580078125, -0.0233612060546875, 0.01267242431640625, -0.024169921875, 0.00464630126953125, 0.04937744140625, -0.007366180419921875, -0.01419830322265625, 0.0166778564453125, 0.0285491943359375, 0.0169830322265625, 0.006465911865234375 ]
bb4134f362631939168d1044c9da5cef3e06f1da
Wordpress Stackexchange Q: How do you avoid caching during development? Is there a simple way to prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my browser, and still some changes to CSS or widgets do not refresh. I try other work-arounds like switching browsers or computers, but there must be a more stream-lined workflow where I can ensure I'm viewing the changes I made and not some cached earlier format? What's the best solution for this? A: This might seem overly simple, but how about just disabling caching until you're done with the development portion of your site? It's more than simple to turn on and off.
Q: How do you avoid caching during development? Is there a simple way to prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my browser, and still some changes to CSS or widgets do not refresh. I try other work-arounds like switching browsers or computers, but there must be a more stream-lined workflow where I can ensure I'm viewing the changes I made and not some cached earlier format? What's the best solution for this? A: This might seem overly simple, but how about just disabling caching until you're done with the development portion of your site? It's more than simple to turn on and off. A: I know that this question has had an answer accepted, but I think that that answer is still too complicated for the problem at hand, and may actually be incorrect depending on the user (no offense though), so I thought I'd still share how I bypass caching when I do my dev (not just with Wordpress). Most modern browsers have something called incognito mode. In this mode, nothing in your computer is cached, so every refresh is a fresh slate download off the server. In Internet Explorer you press Ctrl + Shift + P. In Firefox and Chrome, you press Ctrl + Shift + N. If your browser doesn't have incognito mode, you can normally force a hard reload by pressing Ctrl + F5 for IE, or Ctrl + Shift + R on Firefox and Chrome. As for your question regarding the CSS files (and essentially, all your asset files, like images and Javascript files), those aren't cached in any way by WP Super Cache. Your settings and/or use of this plugin does not affect how those files are served. What's caching those files are your browser, and that's the reason why you do a hard reload. What the plugin does is it evaluates how Wordpress builds your HTML files (via PHP), and stores a copy, so that the next time someone requests the same post, page, or whatever, it serves the copy, and won't have to reevaluate the PHP-generated HTML again, and therefore save some computing time, loading your pages that much quicker. (I hope that's clear.) The problem with that is, if you're slapping on a timestamp on your CSS files' URL via a PHP function, that is a PHP evaluation to HTML, and that will be cached by WP Super Cache. Every request to the same post will have the same timestamp because users are being served a copy of the original timestamp evaluation. (Correct me if I'm wrong.) The correct way to bypass WP Super Cache's caching is to set the option Don't cache for known users to true in the plugin's setting page. Finally (and this is a personal preference, as I'm a real stickler when it comes to coding), resorting to the use of incognito or forced hard reloads won't require you to add unnecessary markup on your HTML pages. Of course, adding a timestamp only adds about 13 bytes per static file per request, but hey, like I said, I'm a stickler for this kind of stuff. It's still 13 bytes unnecessary. A: Add the filemtime() of your stylesheet as version parameter. Lets say, your default stylesheet is in css/default.css and css/default.min.css (not style.css). When we register a stylesheet on wp_loaded (not init), we can pass a version as fourth parameter. That will be the last modified time and therefore change every time we change the file. $min = WP_DEBUG ? '': '.min'; $file = "/css/default$min.css"; $url = get_template_directory_uri() . $file; $path = get_template_directory() . $file; $handle = get_stylesheet() . '-default'; // Overridden? if ( is_child_theme() && is_readable( get_stylesheet_directory() . $file ) ) { $url = get_stylesheet_directory_uri() . $file; $path = get_stylesheet_directory() . $file; } $modified = filemtime( $path ); add_action( 'wp_loaded', function() use ( $handle, $url, $modified ) { wp_register_style( $handle, $url, [], $modified ); }); add_action( 'wp_enqueue_scripts', function() use ( $handle ) { wp_enqueue_style( $handle ); }); If you are using Node.js and Grunt, I strongly recommend Browsersync. It will watch your files and update them instantly whenever they change. It can also synchronize the scrolling position, form submissions and more across multiple open browsers. Very cool. A: What worked for me running Wordpress on a Bitnami stack under Windows was to edit my php.ini file and restart my server. In the [opcache] section change the opcache.revalidate_freq to 1 opcache.revalidate_freq=1 I then restarted my servers and my pages now immediately show changes made to my plugins. A: Gosh, many ways to answer this one! First and foremost, you asked about two different things: WP Super Cache and CSS files. These are cached differently, in different places, so it's important to recognize where your problem is. If WP Super Cache, you can define the constant DONOTCACHEPAGE in your functions.php during development to prevent WP Super Cache from caching anything. Don't forget to remove this on launch though! define('DONOTCACHEPAGE', true); Each site also has a unique key to append to the URL to load a fresh version of the page, which you can find in the "Advanced" tab, I believe. Breaking it down to an even better solution, you should consider setting up a development environment and a production environment, where your development environment doesn't have WP Super Cache enabled (again, assuming that's your problem). If your issue is with CSS/JS files, then see the answer by toscho and subsequent comment by m0r7if3r above. A: After searching for a simple solution many times i decided to find something that works! so... after thinking about it i found a great way to override caching while developing new websites... (and its easy). What we need is to tell wp this is a new CSS version like this... Before changes: wp_enqueue_style( 'maincss', get_template_directory_uri() . '/css/style.css', array(), false, 'all' ); After changes: wp_enqueue_style( 'maincss', get_template_directory_uri() . '/css/style.css?v='.time(), array(), false, 'all' ); This is what we added: ?v='.time() Explanation: We are basically adding a dynamic version number to the css file which forces the browser to load the new css every time we update it. Don't forget to remove it after your done developing otherwise your caching won't work for this file and it would load for returning users again and again. This technique works for css & js files - hope this helps ;) A: HyperCache disables caching when you're logged in as an admin. Not sure whether WP Super Cache has the same functionality. A: If you're using Chrome (which I highly suggest), open Inspector, click the settings icon in the lower right corner, and under "Network" select "Disable Cache." A: As said for wp super cache, but for general WP caching in wp-config.php Change to this: define( 'WP_CACHE', false ); Reference: codex.wordpress.org A: You can use this snippet https://gist.github.com/jhayiwg/92bae4330aeb738a98022d7ab63ce9b1 It will generate new version of your active theme css and js every time you load the page
wordpress
{ "language": "en", "length": 1170, "provenance": "stackexchange_00019.jsonl.gz:416637", "question_score": "32", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40667" }
[ -0.0018062591552734375, -0.0024509429931640625, -0.00827789306640625, -0.01461029052734375, -0.0070037841796875, -0.00799560546875, -0.0073394775390625, -0.01629638671875, 0.037689208984375, 0.0247344970703125, -0.00823211669921875, -0.0301971435546875, 0.004123687744140625, -0.03863525390625, -0.0290069580078125, -0.0153656005859375, 0.044097900390625, -0.01149749755859375, 0.0224761962890625, -0.01593017578125, 0.010040283203125, 0.003292083740234375, 0.0242919921875, 0.09503173828125, 0.03369140625, -0.066162109375, -0.0016994476318359375, -0.00560760498046875, 0.00785064697265625, -0.0216827392578125, 0.006992340087890625, 0.03314208984375, 0.01149749755859375, 0.05194091796875, -0.059417724609375, -0.01629638671875, -0.01111602783203125, 0.0254974365234375, 0.005672454833984375, 0.006191253662109375, 0.006805419921875, -0.01398468017578125, -0.01316070556640625, -0.0545654296875, -0.0236053466796875, -0.01335906982421875, 0.00897979736328125, -0.0107421875, -0.00562286376953125, -0.02911376953125, -0.004978179931640625, 0.01641845703125, 0.03033447265625, -0.0279998779296875, -0.03564453125, -0.052490234375, 0.00782012939453125, -0.0029010772705078125, 0.0283050537109375, -0.052978515625, -0.0374755859375, -0.01552581787109375, 0.037689208984375, 0.0196990966796875, 0.0208740234375, -0.023284912109375, 0.0018243789672851562, 0.0293426513671875, -0.0411376953125, 0.037078857421875, 0.056243896484375, -0.03271484375, 0.038238525390625, -0.0360107421875, 0.0098876953125, -0.0168304443359375, 0.0079193115234375, -0.01116180419921875, 0.0247802734375, -0.016571044921875, 0.0257568359375, 0.01224517822265625, -0.01369476318359375, -0.032012939453125, 0.0361328125, 0.004230499267578125, -0.00992584228515625, -0.02850341796875, -0.00736236572265625, -0.03753662109375, -0.0216217041015625, -0.01157379150390625, -0.03546142578125, -0.00021266937255859375, -0.01129150390625, -0.031494140625, 0.01433563232421875, 0.04815673828125, -0.01378631591796875, -0.002956390380859375, -0.0295257568359375, -0.006954193115234375, -0.017120361328125, -0.021270751953125, 0.022125244140625, 0.0262603759765625, -0.03363037109375, 0.0185394287109375, 0.07196044921875, 0.040008544921875, 0.03717041015625, 0.020416259765625, -0.037750244140625, -0.0283203125, -0.00494384765625, 0.047943115234375, -0.0222015380859375, -0.0022411346435546875, -0.0006623268127441406, 0.004146575927734375, 0.0234832763671875, 0.035491943359375, -0.01110076904296875, 0.002506256103515625, 0.015106201171875, 0.00930023193359375, -0.028656005859375, -0.00774383544921875, -0.0155487060546875, -0.01372528076171875, -0.047637939453125, 0.007358551025390625, 0.11163330078125, 0.053985595703125, 0.049163818359375, -0.0224761962890625, 0.040130615234375, 0.0169219970703125, -0.003376007080078125, 0.022613525390625, -0.040863037109375, -0.038665771484375, 0.00007891654968261719, -0.046875, 0.0091094970703125, 0.0173492431640625, 0.00739288330078125, 0.0156402587890625, 0.0205230712890625, -0.0074462890625, -0.013031005859375, -0.0099945068359375, 0.02386474609375, -0.0073699951171875, 0.020965576171875, -0.03192138671875, 0.0223388671875, -0.028656005859375, 0.0079345703125, -0.017486572265625, -0.0174560546875, -0.00795745849609375, 0.02178955078125, 0.0290985107421875, 0.01340484619140625, 0.018157958984375, 0.01233673095703125, -0.0010528564453125, 0.0290985107421875, 0.002620697021484375, 0.03179931640625, -0.041015625, 0.0181427001953125, -0.007518768310546875, -0.0141448974609375, 0.0161895751953125, 0.021392822265625, 0.0233612060546875, -0.01480865478515625, 0.0245208740234375, -0.0140380859375, -0.043670654296875, 0.032012939453125, -0.0131378173828125, -0.01422119140625, 0.01024627685546875, 0.0033092498779296875, 0.0180816650390625, -0.003704071044921875, 0.0058441162109375, 0.033477783203125, 0.0225830078125, -0.0181732177734375, 0.0290374755859375, 0.023345947265625, 0.00559234619140625, -0.01161956787109375, 0.036590576171875, 0.00453948974609375, -0.08306884765625, 0.0194091796875, 0.0139923095703125, -0.01316070556640625, -0.0294647216796875, -0.07489013671875, -0.0015544891357421875, -0.025177001953125, 0.035858154296875, 0.01108551025390625, 0.0517578125, -0.003658294677734375, 0.004283905029296875, -0.007656097412109375, -0.03887939453125, -0.0166015625, -0.041412353515625, 0.010833740234375, 0.050750732421875, 0.0361328125, 0.021453857421875, 0.0278472900390625, 0.016632080078125, 0.030853271484375, -0.027069091796875, 0.01062774658203125, -0.011993408203125, -0.01103973388671875, -0.0097198486328125, 0.03436279296875, -0.005443572998046875, 0.03082275390625, 0.02996826171875, 0.0262908935546875, 0.004131317138671875, -0.015411376953125, 0.0127716064453125, 0.004302978515625, -0.105712890625, -0.0019741058349609375, 0.068115234375, 0.033477783203125, 0.0204620361328125, -0.0214691162109375, -0.01092529296875, 0.059112548828125, -0.03460693359375, -0.017608642578125, 0.00543212890625, 0.024139404296875, 0.0247955322265625, 0.0026950836181640625, -0.040557861328125, 0.0209503173828125, -0.050689697265625, 0.022674560546875, 0.01326751708984375, -0.0254058837890625, -0.0032196044921875, 0.023284912109375, -0.0250091552734375, 0.0092926025390625, 0.01268768310546875, -0.0008692741394042969, 0.00009435415267944336, 0.0014801025390625, -0.01158905029296875, 0.00007230043411254883, -0.006198883056640625, 0.00946044921875, -0.00699615478515625, 0.0185089111328125, -0.055633544921875, 0.010101318359375, 0.0083465576171875, 0.0194854736328125, 0.01446533203125, -0.04925537109375, -0.01186370849609375, 0.05145263671875, 0.0195465087890625, -0.035919189453125, 0.01611328125, 0.0227813720703125, -0.0230712890625, 0.004962921142578125, -0.01000213623046875, 0.01163482666015625, -0.06781005859375, 0.00799560546875, 0.034271240234375, 0.04791259765625, -0.0014276504516601562, -0.0168914794921875, 0.0165557861328125, -0.0219268798828125, -0.0166168212890625, 0.0198822021484375, 0.013702392578125, 0.001010894775390625, 0.0136871337890625, 0.0203704833984375, 0.04681396484375, 0.027801513671875, -0.01259613037109375, -0.004177093505859375, 0.0067138671875, 0.006908416748046875, -0.0138702392578125, -0.022491455078125, 0.013092041015625, -0.09149169921875, -0.0236663818359375, 0.03961181640625, 0.0213470458984375, 0.045562744140625, -0.0072784423828125, 0.01165008544921875, 0.04559326171875, -0.026641845703125, -0.06622314453125, -0.0262603759765625, -0.02099609375, 0.0066986083984375, 0.02044677734375, -0.003971099853515625, -0.008941650390625, 0.047027587890625, 0.01287841796875, -0.01155853271484375, -0.0217437744140625, -0.019378662109375, -0.06634521484375, -0.04205322265625, -0.0268096923828125, 0.0019741058349609375, -0.007511138916015625, 0.00847625732421875, 0.0784912109375, -0.0034618377685546875, -0.075439453125, 0.004405975341796875, -0.03143310546875, -0.01531982421875, 0.0389404296875, -0.0085906982421875, -0.0546875, 0.033599853515625, -0.01209259033203125, -0.0034885406494140625, 0.0069732666015625, 0.02935791015625, -0.018218994140625, -0.0025634765625, -0.06390380859375, 0.007366180419921875, 0.021759033203125, -0.0233154296875, -0.00452423095703125, 0.048797607421875, -0.044097900390625, -0.02178955078125, 0.0291748046875, -0.01885986328125, -0.01342010498046875, 0.0131072998046875, -0.035308837890625, -0.003047943115234375, 0.01110076904296875, 0.045806884765625, 0.012420654296875, 0.03021240234375, -0.0245819091796875, 0.03594970703125, 0.0142974853515625, 0.0291748046875, -0.052032470703125, 0.055877685546875, -0.0183258056640625, -0.01262664794921875, 0.020721435546875, -0.024810791015625, -0.0198974609375, -0.0009188652038574219, -0.03173828125, -0.005603790283203125, 0.004817962646484375, -0.033447265625, 0.0557861328125, -0.031158447265625, 0.00019049644470214844, -0.0197601318359375, 0.06488037109375, -0.03021240234375, -0.003170013427734375, -0.0016222000122070312, 0.010589599609375, -0.031005859375, -0.044677734375, -0.038665771484375, -0.0050201416015625, -0.06280517578125, 0.00957489013671875, 0.00481414794921875, -0.042144775390625, -0.00986480712890625, -0.0262603759765625, -0.035125732421875, -0.0290679931640625, 0.044952392578125, -0.058135986328125, 0.0234222412109375, -0.0269012451171875, 0.0291900634765625, -0.0738525390625, -0.006381988525390625, -0.0293121337890625, -0.044952392578125, 0.0047760009765625, -0.059326171875, 0.0220947265625, 0.017822265625, 0.0350341796875, -0.01361846923828125, 0.0203704833984375, 0.006134033203125, 0.03533935546875, -0.022308349609375, -0.0111846923828125, -0.0106964111328125, 0.011627197265625, 0.010528564453125, -0.00763702392578125, -0.0272674560546875, -0.024383544921875, -0.02679443359375, -0.03582763671875, -0.0200653076171875, -0.039306640625, 0.005340576171875, -0.01267242431640625, 0.02044677734375, -0.032867431640625, -0.0175933837890625, -0.0038433074951171875, -0.024169921875, 0.00109100341796875, -0.0198211669921875, 0.0272064208984375, 0.05303955078125, 0.00897216796875, -0.0058135986328125, -0.0020503997802734375, 0.08544921875, 0.02105712890625, -0.02862548828125, -0.01549530029296875, 0.0220489501953125, 0.00875091552734375, -0.0072784423828125, -0.004985809326171875, -0.053192138671875, -0.014892578125, 0.038543701171875, -0.05279541015625, 0.0250244140625, 0.02423095703125, 0.042236328125, -0.004810333251953125, -0.019287109375, 0.0301361083984375, 0.00146484375, -0.0748291015625, 0.020751953125, 0.0298004150390625, -0.0306549072265625, 0.031524658203125, 0.043060302734375, 0.017303466796875, -0.0556640625, -0.041168212890625, 0.01396942138671875, -0.013336181640625, 0.01763916015625, 0.061309814453125, 0.048553466796875, -0.00449371337890625, 0.0206298828125, 0.0361328125, 0.01470184326171875, -0.023223876953125, 0.02606201171875, -0.0204315185546875, 0.03717041015625, -0.0004324913024902344, 0.0018768310546875, -0.042633056640625, -0.01043701171875, 0.016387939453125, 0.005603790283203125, -0.06805419921875, 0.033843994140625, 0.0154876708984375, -0.026702880859375, 0.04827880859375, 0.02899169921875, 0.05072021484375, -0.04083251953125, -0.014678955078125, 0.00315093994140625, -0.018798828125, -0.057952880859375, -0.045013427734375, 0.042144775390625, -0.0158233642578125, 0.0019159317016601562, 0.0711669921875, -0.04034423828125, 0.0249481201171875, -0.0002827644348144531, -0.024932861328125, 0.057769775390625, 0.02130126953125, 0.011749267578125, 0.00608062744140625, 0.0307159423828125, 0.0121917724609375, -0.0250091552734375, 0.0110015869140625, -0.035888671875, -0.030853271484375, 0.00940704345703125, 0.036376953125, -0.0016536712646484375, 0.006458282470703125, 0.0195159912109375, -0.007137298583984375, -0.01203155517578125, 0.05108642578125, 0.0015964508056640625, -0.05364990234375, -0.03460693359375, -0.026214599609375, 0.01873779296875, -0.0205841064453125, 0.0004761219024658203, -0.00414276123046875, 0.00994110107421875, 0.00543975830078125, 0.021484375, -0.035247802734375, -0.0191192626953125, -0.0008115768432617188, -0.051666259765625, -0.056884765625, 0.0101318359375, -0.04864501953125, 0.0162353515625, -0.00850677490234375, -0.0154876708984375, 0.01381683349609375, -0.04486083984375, 0.0038928985595703125, -0.01268768310546875, 0.01324462890625, 0.01480865478515625, 0.01136016845703125, 0.034942626953125, 0.0241851806640625, 0.002521514892578125, -0.0157623291015625, -0.09130859375, -0.048431396484375, -0.10308837890625, -0.0616455078125, -0.031524658203125, 0.03460693359375, 0.006946563720703125, 0.028961181640625, -0.0171966552734375, -0.048004150390625, -0.01155853271484375, 0.0090179443359375, 0.0267181396484375, 0.051422119140625, 0.00441741943359375, 0.03656005859375, -0.0198516845703125, 0.048828125, 0.004486083984375, 0.0014352798461914062, -0.014007568359375, -0.01464080810546875, 0.0138397216796875, -0.025115966796875, -0.0306396484375, 0.01081085205078125, -0.051971435546875, 0.00579833984375, 0.051239013671875, -0.01401519775390625, -0.006500244140625, -0.033050537109375, -0.006107330322265625, -0.0259552001953125, 0.0714111328125, -0.033660888671875, 0.01332855224609375, -0.007045745849609375, 0.03387451171875, -0.004978179931640625, -0.006084442138671875, -0.049896240234375, 0.0009174346923828125, 0.06005859375, 0.00292205810546875, -0.06011962890625, -0.0162506103515625, 0.00380706787109375, 0.04144287109375, 0.0303192138671875, 0.05767822265625, -0.0022716522216796875, 0.052947998046875, 0.048248291015625, 0.054351806640625, -0.03277587890625, -0.049407958984375, 0.0230255126953125, 0.025634765625, -0.00930023193359375, 0.0129241943359375, -0.01210784912109375, -0.00243377685546875, 0.07281494140625, 0.034881591796875, -0.06500244140625, -0.0196685791015625, -0.0246734619140625, -0.028564453125, 0.01495361328125, 0.01058197021484375, -0.022308349609375, -0.06854248046875, -0.0263671875, -0.00814056396484375, -0.032867431640625, -0.0293731689453125, 0.00600433349609375, 0.00042366981506347656, -0.025909423828125, 0.0181427001953125, 0.01352691650390625, -0.05426025390625, 0.0076141357421875, 0.07275390625, -0.037994384765625, -0.0172576904296875, 0.0093841552734375, 0.0272979736328125, -0.02056884765625, -0.0653076171875, 0.00868988037109375, -0.0171051025390625, -0.0192718505859375, 0.05072021484375, 0.0192718505859375, -0.0100250244140625, 0.037078857421875, -0.018768310546875, 0.049896240234375, -0.004451751708984375, 0.0099639892578125, -0.023681640625, -0.035430908203125, 0.01824951171875, -0.01032257080078125, -0.045013427734375, 0.0228118896484375, -0.026336669921875, -0.053985595703125, -0.03314208984375, 0.0142974853515625, 0.10418701171875, 0.00777435302734375, -0.04278564453125, 0.043975830078125, 0.052886962890625, -0.04168701171875, -0.0137939453125, 0.006664276123046875, 0.02447509765625, 0.07159423828125, -0.03228759765625, 0.0364990234375, 0.033477783203125, -0.02337646484375, -0.01122283935546875, 0.061676025390625, -0.0167694091796875, 0.01580810546875, 0.06939697265625, 0.005168914794921875, -0.060577392578125, -0.01824951171875, -0.0347900390625, 0.052703857421875, 0.009124755859375, 0.004024505615234375, -0.044921875, -0.009552001953125, -0.0019254684448242188, 0.0167236328125, 0.04376220703125, 0.00428009033203125, 0.0173187255859375, 0.0217132568359375, 0.04522705078125, 0.029388427734375, -0.0286865234375, 0.0149688720703125, -0.037933349609375, 0.0264739990234375, -0.006114959716796875, -0.044647216796875, 0.01552581787109375, -0.00844573974609375, -0.0694580078125, -0.007221221923828125, 0.007236480712890625, 0.0018739700317382812, -0.02520751953125, 0.08489990234375, -0.0526123046875, -0.0077362060546875, 0.0299224853515625, 0.039794921875, -0.004283905029296875, -0.006832122802734375, 0.00994110107421875, -0.023406982421875, -0.0265655517578125, -0.006809234619140625, 0.026031494140625, 0.03204345703125, -0.0215606689453125, 0.01419830322265625, 0.0126953125, -0.04498291015625, 0.0154876708984375, -0.00804901123046875, 0.034149169921875, -0.0302734375, 0.00550079345703125, 0.0121002197265625, 0.0462646484375, -0.01555633544921875, -0.03192138671875, 0.0186767578125, 0.0115203857421875, 0.0019197463989257812, -0.01495361328125, 0.0183563232421875, 0.002483367919921875, -0.006679534912109375, -0.0232391357421875, 0.0169219970703125, -0.0836181640625, -0.038543701171875, 0.0540771484375, -0.0243988037109375, -0.01284027099609375, -0.0185699462890625, 0.0188446044921875, 0.0550537109375, 0.0297088623046875, 0.004840850830078125, -0.025482177734375, -0.03546142578125, 0.00836944580078125, 0.03515625, 0.038330078125, -0.0024089813232421875, 0.019073486328125, -0.0169677734375, -0.0288848876953125, -0.01410675048828125, 0.0178375244140625, 0.0293121337890625, -0.05682373046875, 0.001415252685546875, 0.044342041015625, 0.037506103515625, 0.0261993408203125, -0.02093505859375, 0.082763671875, 0.0648193359375, -0.05450439453125, -0.0183258056640625, 0.0263671875, -0.01419830322265625, 0.03594970703125, -0.033050537109375, 0.0014200210571289062, -0.0003895759582519531, -0.02423095703125, -0.03448486328125, -0.04400634765625, 0.0699462890625, -0.04083251953125, -0.00180816650390625, -0.0156402587890625, -0.0419921875, 0.041534423828125, -0.050140380859375, 0.006694793701171875, -0.0262603759765625, 0.020538330078125, -0.0005955696105957031, 0.013885498046875, 0.0114898681640625, -0.0013189315795898438, 0.01342010498046875, -0.0242156982421875, 0.059661865234375, -0.0009183883666992188, 0.0218353271484375, 0.00264739990234375, -0.029144287109375, -0.0164031982421875, -0.01139068603515625, 0.0294342041015625, -0.006687164306640625, -0.04779052734375, -0.0296173095703125, 0.02166748046875, 0.0194244384765625, -0.0159149169921875, 0.06561279296875, 0.008514404296875, -0.003635406494140625, 0.065185546875, -0.038543701171875, 0.058929443359375, 0.053497314453125, -0.01495361328125, -0.01617431640625, -0.005496978759765625, -0.0256805419921875, -0.0205535888671875, 0.0614013671875, 0.0183258056640625, -0.0166473388671875, 0.058441162109375, -0.03436279296875, 0.0033550262451171875, -0.0352783203125, -0.052215576171875, -0.038909912109375, -0.01470184326171875, 0.019775390625, 0.0203857421875, -0.00009047985076904297, -0.055206298828125, -0.059295654296875, -0.006549835205078125, 0.034881591796875, -0.037567138671875, 0.0243377685546875, -0.0106964111328125, 0.060028076171875, 0.0347900390625, 0.00955963134765625, -0.015411376953125, -0.0013933181762695312, -0.0240020751953125, 0.00424957275390625, 0.0030422210693359375, 0.01580810546875, -0.00045990943908691406, -0.019378662109375, 0.001617431640625, 0.044677734375, 0.0562744140625, -0.0146026611328125, 0.0177459716796875, 0.0230560302734375, 0.0018024444580078125, 0.0007863044738769531, -0.01364898681640625, -0.00860595703125, -0.0214385986328125, -0.01064300537109375, 0.0107269287109375, -0.0179901123046875, -0.0189971923828125, -0.017822265625, 0.0301971435546875, 0.05889892578125, 0.021209716796875, -0.09295654296875, 0.0830078125, -0.054473876953125, 0.038299560546875, 0.0033855438232421875, 0.0162506103515625, -0.01800537109375, 0.006893157958984375, 0.0084228515625, -0.028228759765625, -0.0310821533203125, 0.06134033203125, -0.02276611328125, -0.0048828125, 0.042327880859375, 0.01009368896484375, 0.0127716064453125, -0.024261474609375, -0.0309906005859375, 0.0288543701171875, -0.054840087890625, 0.00013756752014160156, 0.0293121337890625, 0.01355743408203125, -0.027557373046875, -0.079345703125, -0.0019989013671875, -0.03424072265625, 0.030120849609375, -0.03778076171875, 0.01428985595703125, 0.01477813720703125, -0.0445556640625, -0.070068359375, -0.014190673828125, -0.005279541015625, -0.037750244140625, -0.0244903564453125, -0.0184326171875, -0.01419830322265625, 0.005542755126953125, -0.001361846923828125, -0.037200927734375, -0.016204833984375, 0.032073974609375, 0.02215576171875, 0.039459228515625, 0.029052734375, 0.0250701904296875, -0.028900146484375, 0.0179595947265625, -0.00946044921875, 0.024383544921875, -0.071044921875, 0.041656494140625, -0.0279998779296875, 0.032562255859375, 0.00936126708984375, 0.021148681640625, 0.040802001953125, -0.01517486572265625, -0.0149993896484375, 0.0170440673828125, -0.0419921875, -0.00034332275390625, 0.08111572265625, 0.08349609375, 0.0282135009765625, -0.03173828125, 0.0171966552734375, 0.01318359375, -0.064697265625, -0.0177154541015625, 0.025665283203125, -0.047943115234375, -0.019683837890625, -0.029510498046875, 0.00688934326171875, -0.0084228515625, -0.01378631591796875, -0.01352691650390625, -0.01276397705078125, 0.013763427734375, -0.00653839111328125, -0.0026397705078125, 0.011566162109375, 0.02947998046875, -0.0276947021484375, 0.01464080810546875, -0.0099334716796875, 0.015838623046875, 0.0255126953125, 0.0170745849609375, -0.00795745849609375, 0.0129547119140625, -0.025299072265625, 0.019866943359375, 0.0030307769775390625, -0.00374603271484375, -0.034210205078125, 0.0023593902587890625, -0.0297698974609375, -0.0177154541015625, 0.0030651092529296875, -0.03094482421875, 0.01494598388671875, -0.0225067138671875, 0.007633209228515625, 0.0113372802734375, -0.012481689453125, 0.003047943115234375, -0.02264404296875, 0.0254974365234375, -0.01776123046875, -0.005741119384765625, 0.0036144256591796875, -0.00225067138671875, -0.014129638671875, -0.0106353759765625, -0.0213470458984375, -0.06500244140625, 0.0233306884765625, -0.08282470703125, -0.0035228729248046875, 0.02764892578125 ]
cea6f98932a8f0062de718f2de97e6fad44eb016
Wordpress Stackexchange Q: Post formats "audio" and "video" only showing in index.php I have files in my theme called single-audio.php and single video.php, but when I click on an audio post-format or video post-format wordpress uses the index.php instead of my single-audio.php or single-video.php files. Any ideas? A: There is a huge difference between Post Formats and Post Types. I am assuming you are using post formats, which do not have a default template file for you to use. What you can do though is use has_post_format() to see if the post has the format you are using, and if it does, use get_template_part() to get a specific template file that you created to display there. For example: // If this post has a post format of 'video' if( has_post_format( 'video', $post->ID ) ) { // Then get and display 'single-video.php' get_template_part( 'single', 'video' ); }
Q: Post formats "audio" and "video" only showing in index.php I have files in my theme called single-audio.php and single video.php, but when I click on an audio post-format or video post-format wordpress uses the index.php instead of my single-audio.php or single-video.php files. Any ideas? A: There is a huge difference between Post Formats and Post Types. I am assuming you are using post formats, which do not have a default template file for you to use. What you can do though is use has_post_format() to see if the post has the format you are using, and if it does, use get_template_part() to get a specific template file that you created to display there. For example: // If this post has a post format of 'video' if( has_post_format( 'video', $post->ID ) ) { // Then get and display 'single-video.php' get_template_part( 'single', 'video' ); } A: If you really want to use single files for each post-format type you could try something like this: (paste to functions.php) function post_format_template() { global $post; $format = get_post_format($post->ID); if ( is_single() && $format ) { include('single-format-'.$format.'.php'); exit; } } add_action('template_redirect', 'post_format_template',10); It's a possible solution, but I wouldn't recommend it, as long as you're not 100% sure about what you're doing resp. what is happening here. Jared response is the recommended way of dealing with post-formats. A: If I understand your question correctly, you would need to do the following: * *Add a new page via the Dashboard *Give that new page a name like "Audio post format" and associate that page to a template. There is a selectbox which would allow you to select a template. HTH
wordpress
{ "language": "en", "length": 274, "provenance": "stackexchange_00019.jsonl.gz:416640", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40686" }
[ 0.056854248046875, -0.01473236083984375, -0.008697509765625, -0.0084381103515625, 0.01331329345703125, -0.0188446044921875, 0.0706787109375, -0.0260772705078125, 0.0080718994140625, 0.0017423629760742188, -0.014251708984375, 0.01425933837890625, -0.0306396484375, -0.041534423828125, 0.01226806640625, -0.032562255859375, 0.033477783203125, -0.025726318359375, 0.00785064697265625, -0.004425048828125, 0.01071929931640625, 0.0102386474609375, 0.034332275390625, -0.012725830078125, -0.004169464111328125, 0.033111572265625, 0.03656005859375, -0.039031982421875, -0.0018329620361328125, -0.02117919921875, 0.0088043212890625, 0.0042877197265625, 0.037841796875, 0.0125885009765625, -0.039794921875, 0.027587890625, -0.0271148681640625, 0.0028629302978515625, -0.0087432861328125, 0.035797119140625, -0.01428985595703125, 0.00948333740234375, 0.0689697265625, -0.0010938644409179688, 0.03863525390625, -0.0247344970703125, -0.01502227783203125, -0.09222412109375, 0.0242156982421875, -0.039581298828125, 0.00439453125, -0.0026531219482421875, 0.03033447265625, -0.052001953125, -0.01751708984375, 0.01215362548828125, -0.0252838134765625, 0.03082275390625, 0.004123687744140625, -0.004634857177734375, -0.005840301513671875, 0.0254058837890625, -0.005138397216796875, 0.005107879638671875, -0.0005822181701660156, 0.0087432861328125, 0.00518798828125, 0.0100860595703125, -0.0577392578125, -0.0131988525390625, 0.03631591796875, -0.030029296875, 0.0006499290466308594, -0.04205322265625, 0.005825042724609375, 0.01458740234375, 0.00075531005859375, -0.011749267578125, -0.0011377334594726562, 0.00165557861328125, 0.012359619140625, 0.031158447265625, -0.00484466552734375, -0.0667724609375, 0.029083251953125, -0.0455322265625, -0.004947662353515625, -0.005603790283203125, -0.0228271484375, -0.009002685546875, -0.0267791748046875, -0.03521728515625, -0.0112457275390625, 0.0089874267578125, -0.0055389404296875, 0.0004169940948486328, 0.02276611328125, 0.0175933837890625, 0.0198974609375, 0.01464080810546875, 0.034088134765625, -0.0655517578125, 0.051422119140625, -0.034637451171875, 0.0129241943359375, 0.01468658447265625, 0.00804901123046875, -0.01044464111328125, 0.036041259765625, 0.0184783935546875, -0.0173492431640625, 0.07391357421875, -0.0260467529296875, -0.0199737548828125, -0.045989990234375, -0.01166534423828125, -0.046661376953125, 0.0077362060546875, 0.021575927734375, -0.00464630126953125, 0.029693603515625, 0.062744140625, 0.0277557373046875, -0.06292724609375, -0.031982421875, -0.007648468017578125, -0.0019130706787109375, -0.07061767578125, 0.02685546875, 0.060760498046875, 0.007228851318359375, -0.01494598388671875, -0.00783538818359375, -0.00759124755859375, -0.018798828125, -0.02655029296875, -0.03460693359375, -0.002880096435546875, -0.02215576171875, 0.038604736328125, -0.0255279541015625, -0.05029296875, 0.02301025390625, -0.0208740234375, -0.004428863525390625, -0.006847381591796875, 0.0033969879150390625, 0.0258026123046875, 0.00469970703125, -0.0097198486328125, -0.0213165283203125, 0.0114593505859375, 0.0016889572143554688, 0.0263671875, 0.04315185546875, -0.0103759765625, 0.07391357421875, -0.0362548828125, 0.006610870361328125, -0.04327392578125, 0.05328369140625, -0.013031005859375, -0.0032596588134765625, -0.0138092041015625, -0.02728271484375, 0.0044097900390625, -0.083251953125, -0.0082855224609375, 0.02032470703125, 0.006866455078125, -0.012115478515625, -0.0167999267578125, 0.011322021484375, 0.01493072509765625, -0.0003197193145751953, 0.02642822265625, -0.008392333984375, -0.0094451904296875, 0.0037078857421875, 0.065673828125, 0.01751708984375, -0.0293731689453125, 0.032745361328125, -0.00974273681640625, -0.0665283203125, 0.047088623046875, 0.022796630859375, 0.03656005859375, -0.002655029296875, 0.00011581182479858398, 0.08135986328125, 0.06292724609375, -0.006992340087890625, 0.0259552001953125, 0.0303192138671875, -0.0240020751953125, -0.042022705078125, -0.01197052001953125, -0.00843048095703125, -0.030975341796875, -0.0192413330078125, 0.033447265625, -0.00257110595703125, 0.00788116455078125, -0.028778076171875, 0.00821685791015625, -0.00673675537109375, 0.045623779296875, -0.0618896484375, 0.00824737548828125, 0.039093017578125, -0.010162353515625, -0.027252197265625, -0.007411956787109375, 0.011627197265625, 0.0144500732421875, -0.006374359130859375, 0.0294342041015625, -0.01503753662109375, 0.0240020751953125, -0.039093017578125, -0.0179901123046875, -0.036651611328125, 0.0092620849609375, 0.036956787109375, 0.018798828125, -0.018310546875, -0.00782012939453125, 0.04083251953125, 0.0025234222412109375, 0.0092010498046875, 0.03131103515625, 0.01403045654296875, -0.01043701171875, -0.04815673828125, -0.0001245737075805664, -0.0086822509765625, -0.01678466796875, -0.0008821487426757812, 0.0460205078125, 0.0145416259765625, 0.0197906494140625, -0.00653839111328125, 0.036712646484375, 0.0279541015625, -0.0277099609375, 0.0020732879638671875, 0.0107879638671875, 0.00896453857421875, 0.01617431640625, -0.0260009765625, 0.00518798828125, 0.02691650390625, -0.07061767578125, 0.00855255126953125, 0.04876708984375, 0.000614166259765625, -0.014495849609375, -0.009002685546875, 0.022369384765625, -0.006298065185546875, 0.004261016845703125, -0.003643035888671875, -0.00433349609375, 0.037872314453125, 0.0083465576171875, 0.025299072265625, 0.00872039794921875, -0.0301513671875, 0.0138702392578125, 0.0179443359375, -0.0015668869018554688, 0.0009088516235351562, 0.0343017578125, 0.022369384765625, 0.019012451171875, -0.01806640625, -0.031646728515625, 0.012542724609375, 0.02056884765625, -0.0242462158203125, -0.0265655517578125, -0.036773681640625, -0.0107879638671875, -0.0128021240234375, -0.07501220703125, 0.0213623046875, 0.010986328125, -0.0012521743774414062, -0.01369476318359375, -0.007740020751953125, 0.0633544921875, 0.00893402099609375, 0.04571533203125, 0.016082763671875, 0.00138092041015625, -0.031707763671875, -0.03717041015625, 0.033416748046875, -0.026824951171875, 0.0362548828125, 0.067626953125, 0.006061553955078125, 0.00890350341796875, -0.004974365234375, -0.008056640625, 0.0135650634765625, 0.0145721435546875, -0.01812744140625, -0.0533447265625, -0.0228424072265625, -0.031524658203125, 0.0094757080078125, 0.005977630615234375, -0.003810882568359375, -0.031646728515625, -0.00860595703125, 0.003932952880859375, -0.0687255859375, -0.04254150390625, 0.0037212371826171875, -0.11468505859375, 0.051300048828125, -0.035888671875, -0.056365966796875, -0.028961181640625, 0.0026302337646484375, 0.0325927734375, -0.0186920166015625, 0.0333251953125, -0.01346588134765625, 0.00583648681640625, -0.0396728515625, -0.016082763671875, -0.0141143798828125, 0.003231048583984375, 0.0231170654296875, 0.02264404296875, 0.030487060546875, -0.0294342041015625, 0.033447265625, 0.0477294921875, -0.02618408203125, 0.0039005279541015625, 0.037353515625, -0.0250244140625, -0.032440185546875, 0.012115478515625, -0.039154052734375, 0.00945281982421875, -0.0244293212890625, -0.026580810546875, 0.006908416748046875, -0.04302978515625, -0.0011987686157226562, 0.03350830078125, -0.002643585205078125, -0.02288818359375, 0.043548583984375, -0.044677734375, -0.02203369140625, -0.013824462890625, -0.042999267578125, -0.0192718505859375, 0.032440185546875, -0.01317596435546875, -0.044342041015625, 0.007343292236328125, -0.041473388671875, -0.014190673828125, -0.02459716796875, -0.0462646484375, 0.052947998046875, 0.01085662841796875, 0.0177001953125, 0.043609619140625, -0.03424072265625, -0.040740966796875, 0.0113983154296875, -0.0275726318359375, -0.004711151123046875, -0.0121612548828125, -0.0017757415771484375, -0.0216827392578125, -0.0276947021484375, 0.0225982666015625, -0.051025390625, 0.0182952880859375, -0.03515625, -0.01235198974609375, -0.00012755393981933594, 0.063232421875, -0.0726318359375, 0.003154754638671875, 0.01515960693359375, 0.01515960693359375, -0.015716552734375, -0.0762939453125, -0.04876708984375, -0.020904541015625, 0.0010995864868164062, -0.01338958740234375, -0.01132965087890625, -0.0030345916748046875, -0.01158905029296875, -0.0073089599609375, -0.0023899078369140625, -0.01190185546875, 0.03509521484375, -0.006954193115234375, 0.0192413330078125, 0.022735595703125, -0.00555419921875, -0.0027618408203125, -0.023406982421875, -0.01348114013671875, -0.056976318359375, -0.0200347900390625, 0.03240966796875, 0.020599365234375, -0.01457977294921875, -0.033935546875, -0.01393890380859375, 0.0394287109375, 0.01233673095703125, 0.0136566162109375, -0.00023102760314941406, -0.020904541015625, 0.0232086181640625, 0.0025653839111328125, 0.01354217529296875, -0.005489349365234375, -0.0202484130859375, -0.044769287109375, -0.00992584228515625, 0.032623291015625, -0.0308685302734375, -0.0004525184631347656, -0.046844482421875, 0.007740020751953125, -0.060333251953125, -0.0199127197265625, -0.00928497314453125, 0.014251708984375, -0.0182647705078125, 0.020721435546875, -0.04132080078125, -0.06243896484375, 0.019927978515625, 0.0148773193359375, -0.019927978515625, 0.00159454345703125, 0.04913330078125, 0.0183868408203125, -0.035491943359375, -0.0572509765625, 0.027740478515625, 0.0504150390625, 0.017547607421875, 0.004547119140625, -0.00267791748046875, -0.056884765625, 0.0631103515625, 0.02471923828125, 0.004302978515625, -0.0017099380493164062, 0.0386962890625, -0.00215911865234375, -0.0166015625, 0.021514892578125, -0.00774383544921875, 0.02044677734375, -0.0008759498596191406, -0.0186614990234375, -0.01177978515625, 0.0059051513671875, 0.0252532958984375, 0.0009622573852539062, 0.002864837646484375, -0.04022216796875, -0.052276611328125, -0.0036296844482421875, 0.002262115478515625, 0.05682373046875, 0.0595703125, -0.014739990234375, 0.07861328125, 0.052520751953125, 0.004421234130859375, 0.03082275390625, 0.055908203125, -0.016204833984375, 0.029815673828125, 0.0255889892578125, -0.0155181884765625, -0.00922393798828125, -0.002712249755859375, -0.0218353271484375, -0.00324249267578125, -0.043365478515625, -0.0291748046875, 0.007537841796875, 0.040740966796875, 0.004425048828125, 0.0287322998046875, -0.003997802734375, 0.0546875, 0.01055145263671875, 0.00519561767578125, 0.0338134765625, 0.0487060546875, -0.006793975830078125, 0.01326751708984375, 0.0071563720703125, 0.0015802383422851562, 0.0160675048828125, 0.050994873046875, -0.0160980224609375, 0.04010009765625, -0.01322174072265625, 0.0036907196044921875, -0.018463134765625, 0.0595703125, 0.0289764404296875, -0.044769287109375, -0.01824951171875, 0.0419921875, -0.006237030029296875, -0.041717529296875, 0.004314422607421875, -0.0262603759765625, 0.040679931640625, -0.0318603515625, -0.0283203125, 0.057952880859375, -0.0196380615234375, -0.0121002197265625, 0.0163116455078125, 0.0020923614501953125, -0.03326416015625, -0.0015153884887695312, 0.046722412109375, 0.025177001953125, -0.006679534912109375, -0.0224609375, 0.0022716522216796875, 0.009674072265625, 0.0253143310546875, 0.035858154296875, -0.05218505859375, 0.06243896484375, 0.0579833984375, 0.08306884765625, -0.00356292724609375, -0.017822265625, -0.10345458984375, 0.0007176399230957031, -0.0367431640625, 0.00824737548828125, 0.06890869140625, -0.0233917236328125, 0.0147552490234375, 0.0030918121337890625, -0.0216217041015625, 0.011138916015625, 0.01415252685546875, 0.042816162109375, 0.018707275390625, -0.0699462890625, 0.01285552978515625, -0.042724609375, -0.0128936767578125, -0.01216888427734375, -0.034027099609375, -0.06292724609375, -0.02294921875, -0.0557861328125, -0.00609588623046875, 0.007068634033203125, 0.058319091796875, -0.0241241455078125, 0.042755126953125, -0.029388427734375, -0.0001347064971923828, -0.002712249755859375, 0.0670166015625, -0.0226287841796875, 0.07958984375, 0.00734710693359375, 0.00542449951171875, -0.045654296875, -0.01131439208984375, -0.01467132568359375, -0.0283050537109375, -0.002838134765625, -0.0005307197570800781, 0.0019588470458984375, 0.00418853759765625, 0.017852783203125, 0.0009450912475585938, -0.003627777099609375, -0.039581298828125, -0.0189666748046875, -0.02899169921875, 0.06243896484375, -0.0304107666015625, 0.0080108642578125, -0.033905029296875, -0.009246826171875, 0.04449462890625, -0.0217132568359375, -0.029144287109375, 0.021759033203125, -0.01904296875, 0.0088043212890625, 0.049652099609375, 0.005893707275390625, 0.0294952392578125, 0.0009098052978515625, -0.003536224365234375, 0.0203704833984375, 0.0034046173095703125, 0.01342010498046875, -0.01363372802734375, 0.01934814453125, -0.003910064697265625, -0.015777587890625, 0.0550537109375, 0.005107879638671875, -0.007709503173828125, 0.016845703125, -0.0235137939453125, 0.015899658203125, 0.051971435546875, 0.037261962890625, -0.06805419921875, -0.0068511962890625, -0.008544921875, -0.037567138671875, 0.01262664794921875, -0.03778076171875, 0.0002715587615966797, -0.036956787109375, 0.0163116455078125, 0.0625, -0.0225677490234375, -0.00399017333984375, 0.004734039306640625, 0.0087127685546875, -0.00910186767578125, 0.052520751953125, -0.0022602081298828125, -0.08148193359375, -0.0191192626953125, 0.03350830078125, -0.0460205078125, -0.00592041015625, -0.025238037109375, -0.040496826171875, -0.0413818359375, -0.0274658203125, -0.043426513671875, -0.03411865234375, 0.029754638671875, 0.033538818359375, -0.00043892860412597656, 0.0270233154296875, 0.0264129638671875, -0.0197906494140625, 0.00972747802734375, -0.01546478271484375, 0.018218994140625, -0.0150909423828125, -0.0087432861328125, 0.0259552001953125, 0.0330810546875, -0.058868408203125, 0.0257415771484375, -0.02215576171875, 0.005092620849609375, 0.007511138916015625, -0.0175018310546875, 0.0758056640625, -0.05029296875, -0.007038116455078125, 0.0200653076171875, -0.02642822265625, 0.0006089210510253906, 0.0009036064147949219, 0.0055999755859375, -0.046722412109375, -0.019927978515625, 0.0019273757934570312, -0.03936767578125, 0.0106964111328125, 0.00853729248046875, -0.07867431640625, 0.0841064453125, 0.0296630859375, 0.044097900390625, -0.006992340087890625, 0.0261993408203125, -0.0233154296875, 0.000591278076171875, -0.024017333984375, 0.0272979736328125, 0.022979736328125, 0.0270843505859375, -0.0272369384765625, -0.0035190582275390625, 0.00017964839935302734, 0.0440673828125, 0.07513427734375, -0.00586700439453125, -0.004642486572265625, 0.0181884765625, 0.1126708984375, 0.045928955078125, 0.0038013458251953125, 0.0130157470703125, 0.01525115966796875, 0.0191497802734375, 0.044677734375, -0.004123687744140625, 0.040252685546875, -0.0130615234375, -0.031097412109375, 0.028533935546875, 0.0296173095703125, 0.0178375244140625, 0.02716064453125, -0.02716064453125, -0.0220489501953125, 0.0078887939453125, 0.026092529296875, -0.04913330078125, -0.0196990966796875, 0.04681396484375, 0.0528564453125, -0.11151123046875, -0.0282745361328125, -0.0472412109375, 0.056976318359375, 0.019561767578125, -0.041473388671875, 0.0160675048828125, 0.00504302978515625, -0.026214599609375, -0.046783447265625, -0.0298309326171875, -0.020538330078125, 0.0037708282470703125, 0.04864501953125, 0.0226593017578125, 0.009429931640625, -0.01540374755859375, 0.060699462890625, -0.00568389892578125, 0.032012939453125, -0.05938720703125, -0.03033447265625, 0.01544189453125, 0.01537322998046875, -0.00806427001953125, -0.00540924072265625, -0.003814697265625, 0.0157318115234375, 0.030792236328125, -0.0154266357421875, -0.002498626708984375, 0.018310546875, 0.0260772705078125, 0.0073699951171875, 0.00437164306640625, -0.023651123046875, -0.008514404296875, -0.0684814453125, 0.03558349609375, 0.0350341796875, 0.0751953125, 0.01221466064453125, 0.06573486328125, -0.003147125244140625, -0.024932861328125, -0.0245513916015625, 0.04693603515625, -0.0321044921875, 0.032684326171875, -0.092041015625, -0.07891845703125, 0.025787353515625, 0.056060791015625, 0.028778076171875, 0.0657958984375, 0.03192138671875, 0.002994537353515625, 0.006923675537109375, 0.0153045654296875, 0.055877685546875, -0.02032470703125, -0.02294921875, -0.029449462890625, -0.009765625, 0.017608642578125, -0.0099029541015625, 0.0173187255859375, -0.00849151611328125, 0.048065185546875, -0.03955078125, 0.0258636474609375, -0.006839752197265625, -0.0167083740234375, 0.04290771484375, 0.004314422607421875, 0.038970947265625, -0.0041656494140625, 0.00531005859375, 0.0051116943359375, -0.0030078887939453125, -0.051544189453125, -0.00995635986328125, 0.034637451171875, 0.0017299652099609375, -0.0002837181091308594, 0.0548095703125, 0.00899505615234375, -0.01111602783203125, -0.024322509765625, 0.05194091796875, -0.0026988983154296875, -0.0012025833129882812, 0.048431396484375, -0.04998779296875, -0.050079345703125, -0.032745361328125, 0.056243896484375, 0.006866455078125, 0.11468505859375, -0.054046630859375, 0.0126495361328125, 0.012115478515625, 0.03155517578125, -0.0256195068359375, -0.032135009765625, 0.050323486328125, -0.0224456787109375, 0.00627899169921875, -0.01482391357421875, -0.026611328125, 0.0273895263671875, 0.0433349609375, -0.029266357421875, 0.0235137939453125, 0.00928497314453125, 0.0038814544677734375, -0.028778076171875, 0.032501220703125, -0.03277587890625, -0.0309600830078125, -0.03387451171875, 0.00472259521484375, 0.006496429443359375, -0.005069732666015625, -0.015869140625, 0.044464111328125, 0.0033397674560546875, -0.0131988525390625, 0.01224517822265625, -0.031585693359375, 0.01201629638671875, 0.019561767578125, -0.003498077392578125, 0.008331298828125, 0.004611968994140625, -0.02642822265625, 0.0172882080078125, 0.01119232177734375, 0.032012939453125, 0.0029010772705078125, -0.0253143310546875, 0.01031494140625, -0.0199737548828125, 0.00374603271484375, -0.00970458984375, -0.020233154296875, 0.0391845703125, -0.0041656494140625, -0.02764892578125, 0.00905609130859375, -0.031494140625, -0.03521728515625, 0.0185394287109375, 0.01425933837890625, 0.0057525634765625, 0.007282257080078125, -0.047454833984375, -0.0271759033203125, 0.023895263671875, -0.0345458984375, 0.0322265625, -0.045684814453125, -0.0212249755859375, 0.024200439453125, -0.01715087890625, 0.02886962890625, -0.005748748779296875, 0.03240966796875, -0.034454345703125, -0.01247406005859375, -0.0139007568359375, 0.00948333740234375, -0.0035152435302734375, 0.0225677490234375, 0.0499267578125, -0.0413818359375, -0.03045654296875, 0.0271759033203125, 0.03070068359375, 0.06671142578125, -0.00218963623046875, -0.0221099853515625, -0.0300750732421875, 0.028656005859375, -0.0174102783203125, -0.003971099853515625, 0.0271759033203125, -0.01512908935546875, -0.0302276611328125, 0.02947998046875, -0.0325927734375, -0.01265716552734375, -0.047119140625, -0.063720703125, 0.05828857421875, 0.0130462646484375, -0.03826904296875, -0.0302276611328125, 0.01448822021484375, -0.00916290283203125, 0.002307891845703125, -0.0185089111328125, -0.00534820556640625, -0.004787445068359375, 0.046142578125, 0.002597808837890625, 0.0028629302978515625, 0.0399169921875, -0.00344085693359375, 0.0026702880859375, 0.005462646484375, 0.01015472412109375, -0.02947998046875, -0.00010442733764648438, -0.0181427001953125, 0.0170440673828125, 0.018768310546875, -0.05157470703125, -0.01026153564453125, 0.00240325927734375, 0.06488037109375, -0.0015802383422851562, -0.019134521484375, -0.0640869140625, -0.0285797119140625, 0.0531005859375, 0.0736083984375, 0.02001953125, -0.0190582275390625, 0.0047149658203125, -0.046844482421875, -0.07177734375, 0.003650665283203125, 0.02740478515625, -0.049835205078125, 0.01220703125, 0.0292510986328125, -0.0225982666015625, 0.0189971923828125, -0.0167083740234375, -0.042938232421875, -0.0023441314697265625, -0.01125335693359375, 0.0070343017578125, -0.004116058349609375, -0.038604736328125, 0.0396728515625, -0.0168304443359375, 0.024017333984375, -0.006801605224609375, 0.0146484375, 0.0303955078125, 0.041107177734375, 0.0211639404296875, 0.0011243820190429688, 0.0008373260498046875, -0.018341064453125, 0.032257080078125, -0.0013017654418945312, 0.0278778076171875, -0.02862548828125, -0.004695892333984375, 0.020416259765625, -0.0167083740234375, 0.0217132568359375, -0.01273345947265625, 0.05859375, -0.00704193115234375, 0.0654296875, -0.02508544921875, 0.009185791015625, -0.01174163818359375, 0.0040283203125, -0.0031585693359375, 0.0144195556640625, 0.0252838134765625, 0.0175628662109375, 0.001758575439453125, -0.0178375244140625, -0.06640625, -0.00760650634765625, -0.03289794921875, -0.07037353515625, -0.05340576171875, -0.0200653076171875 ]
d36ed80865b94cb03e48ee91d3523c4a9c54e04e
Wordpress Stackexchange Q: PNG with transparent background turns black when uploaded and resized Steps to reproduce: * *Create a PNG-8 with a transparent background. *Upload to WordPress 3.3.1. *View original PNG in any browser, Chrome, Firefox, IE, etc. Notice that it retains transparency as it should. *View a resized version of that PNG in any browser. Observe that the transparent portions of the PNG are now black. Examples: * *Original uploaded image: http://me.mikelee.org/wp-content/uploads/icon-facebook-lg.png *Resized version of the uploaded image: http://me.mikelee.org/wp-content/uploads/icon-facebook-lg-150x150.png This occurs even with a clean install of WordPress 3.3.1 with no plugins activated. Any ideas on what might be causing this bug? I've been searching all over this forum, the WordPress support forums, and anywhere else Google can find. All I see out there are mentions of a NextGEN Gallery plugin bug and the infamous IE6 PNG transparency bug, neither of which appear to pertain to this problem. Thanks in advance. A: I'd try saving it as a PNG 24 first. If that doesn't work have a look at these: http://www.akemapa.com/2008/07/10/php-gd-resize-transparent-image-png-gif/ https://stackoverflow.com/questions/6382448/png-transparency-resize-with-simpleimage-php-class
Q: PNG with transparent background turns black when uploaded and resized Steps to reproduce: * *Create a PNG-8 with a transparent background. *Upload to WordPress 3.3.1. *View original PNG in any browser, Chrome, Firefox, IE, etc. Notice that it retains transparency as it should. *View a resized version of that PNG in any browser. Observe that the transparent portions of the PNG are now black. Examples: * *Original uploaded image: http://me.mikelee.org/wp-content/uploads/icon-facebook-lg.png *Resized version of the uploaded image: http://me.mikelee.org/wp-content/uploads/icon-facebook-lg-150x150.png This occurs even with a clean install of WordPress 3.3.1 with no plugins activated. Any ideas on what might be causing this bug? I've been searching all over this forum, the WordPress support forums, and anywhere else Google can find. All I see out there are mentions of a NextGEN Gallery plugin bug and the infamous IE6 PNG transparency bug, neither of which appear to pertain to this problem. Thanks in advance. A: I'd try saving it as a PNG 24 first. If that doesn't work have a look at these: http://www.akemapa.com/2008/07/10/php-gd-resize-transparent-image-png-gif/ https://stackoverflow.com/questions/6382448/png-transparency-resize-with-simpleimage-php-class A: I can save you hours searching on the internet to solve this problem. Make sure you do this when adding a PNG to WordPress png must be png 24 bit If you are adding a logo to your WordPress site make sure the size of the logo is the exact size of what is already there. If the size of the png is too big it makes the transparent background go black. A: Wordpress 3.5 introduces WP_Image_editor, allowing use of either GD or Imagemagick, and apparently installing and using the PHP Imagemagick library is the solution to black transparency when resizing GIF files (or PNGs): http://lists.automattic.com/pipermail/wp-hackers/2014-January/047573.html A: I got a similar problem: my PNG with transparency wasn't recognized by Wordpress. It turns out that my PNG got imbeded a custom color profile. Once a took out and replace by a standard one, it worked fine.
wordpress
{ "language": "en", "length": 317, "provenance": "stackexchange_00019.jsonl.gz:416653", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40724" }
[ 0.056121826171875, -0.017303466796875, 0.048980712890625, -0.0537109375, -0.00800323486328125, 0.003398895263671875, 0.027374267578125, -0.0245208740234375, 0.0208282470703125, 0.01332855224609375, -0.10064697265625, 0.044647216796875, -0.0247039794921875, 0.0228118896484375, -0.0030689239501953125, -0.027801513671875, 0.040496826171875, -0.020111083984375, 0.037200927734375, 0.004589080810546875, -0.0004520416259765625, 0.035797119140625, 0.031890869140625, -0.0190277099609375, 0.017120361328125, -0.0224456787109375, 0.07159423828125, -0.0100250244140625, -0.00872802734375, -0.0220947265625, 0.01410675048828125, 0.0276336669921875, 0.00481414794921875, 0.047607421875, -0.01470947265625, 0.0215911865234375, -0.003887176513671875, 0.0242462158203125, 0.016265869140625, 0.00720977783203125, 0.0173492431640625, -0.019683837890625, 0.026031494140625, -0.041778564453125, 0.0102691650390625, 0.004024505615234375, 0.0223236083984375, -0.035247802734375, 0.00243377685546875, 0.03778076171875, 0.0316162109375, 0.06414794921875, 0.0149383544921875, 0.038299560546875, 0.0002684593200683594, 0.02142333984375, -0.08038330078125, 0.109619140625, 0.022979736328125, 0.00920867919921875, -0.0243988037109375, -0.00412750244140625, 0.007076263427734375, -0.01131439208984375, -0.01715087890625, -0.01158905029296875, -0.0516357421875, -0.01084136962890625, 0.00342559814453125, -0.01448822021484375, 0.018218994140625, -0.01525115966796875, 0.0146026611328125, -0.05487060546875, 0.0285186767578125, 0.01555633544921875, -0.02752685546875, -0.028045654296875, 0.0124359130859375, -0.0014476776123046875, 0.044403076171875, -0.036529541015625, 0.034912109375, 0.0136260986328125, -0.000827789306640625, -0.00732421875, 0.0032176971435546875, -0.00214385986328125, 0.0089569091796875, -0.011505126953125, -0.019622802734375, 0.043609619140625, 0.021240234375, 0.0027675628662109375, -0.050323486328125, -0.02197265625, -0.005779266357421875, -0.052032470703125, 0.0261993408203125, 0.028411865234375, 0.0523681640625, -0.0662841796875, 0.0770263671875, -0.0269317626953125, -0.01303863525390625, -0.030670166015625, -0.0203857421875, -0.0218658447265625, 0.0311279296875, 0.050750732421875, -0.01288604736328125, 0.040618896484375, -0.0278472900390625, -0.063720703125, -0.0218353271484375, 0.04736328125, -0.0261383056640625, -0.003787994384765625, 0.035675048828125, -0.0125885009765625, -0.017822265625, -0.00873565673828125, 0.035491943359375, -0.0010156631469726562, 0.034820556640625, 0.0247650146484375, -0.00145721435546875, -0.0191192626953125, -0.0009217262268066406, 0.052001953125, -0.053497314453125, -0.00024890899658203125, 0.0430908203125, 0.00804901123046875, 0.01366424560546875, -0.041259765625, -0.002414703369140625, -0.05206298828125, -0.0047454833984375, 0.050567626953125, -0.027435302734375, -0.0794677734375, 0.000965118408203125, 0.0030460357666015625, -0.004535675048828125, 0.00949859619140625, -0.00714874267578125, 0.01361083984375, -0.0008234977722167969, -0.0595703125, 0.055084228515625, -0.0455322265625, 0.01131439208984375, 0.030059814453125, 0.055633544921875, -0.004913330078125, 0.08612060546875, -0.04254150390625, -0.0036411285400390625, -0.0611572265625, 0.0254669189453125, 0.0082550048828125, -0.0023250579833984375, 0.04302978515625, 0.019989013671875, -0.0003285408020019531, -0.004669189453125, 0.0066375732421875, 0.01959228515625, -0.0222015380859375, 0.004955291748046875, -0.001094818115234375, 0.0182647705078125, 0.02496337890625, 0.0157470703125, 0.0240325927734375, 0.0345458984375, -0.01201629638671875, 0.0164947509765625, 0.05078125, -0.011962890625, -0.023712158203125, 0.049102783203125, -0.03497314453125, -0.0180816650390625, -0.02166748046875, 0.0026531219482421875, 0.0140533447265625, 0.020294189453125, 0.0212249755859375, 0.00024139881134033203, 0.0038585662841796875, -0.01441192626953125, 0.0131988525390625, -0.022186279296875, -0.006923675537109375, -0.04022216796875, 0.01336669921875, -0.040802001953125, -0.0038394927978515625, 0.001434326171875, 0.01009368896484375, -0.004833221435546875, 0.0059814453125, -0.0290069580078125, -0.0008697509765625, -0.0211181640625, 0.0194854736328125, -0.01031494140625, -0.0021381378173828125, 0.01102447509765625, -0.01425933837890625, -0.007320404052734375, -0.0257568359375, -0.0309906005859375, 0.016021728515625, -0.004016876220703125, -0.00792694091796875, 0.01434326171875, 0.01425933837890625, 0.01456451416015625, -0.004894256591796875, -0.0026912689208984375, 0.0207061767578125, 0.039459228515625, -0.0090789794921875, -0.0190582275390625, -0.0189208984375, 0.0389404296875, -0.0219573974609375, 0.04608154296875, 0.0582275390625, -0.019866943359375, 0.01251983642578125, -0.0006089210510253906, 0.008758544921875, 0.00507354736328125, -0.0435791015625, 0.0165252685546875, 0.0212860107421875, 0.053741455078125, 0.00038933753967285156, 0.01262664794921875, 0.0151824951171875, 0.062103271484375, 0.01056671142578125, 0.03125, -0.03582763671875, 0.00409698486328125, -0.0302276611328125, 0.005550384521484375, -0.059234619140625, 0.04083251953125, -0.07659912109375, 0.005588531494140625, 0.0252838134765625, -0.003131866455078125, -0.005481719970703125, -0.04351806640625, 0.0421142578125, 0.0158233642578125, 0.0233154296875, 0.00013256072998046875, -0.01251983642578125, -0.031982421875, 0.0053558349609375, -0.0182647705078125, 0.0037250518798828125, -0.03326416015625, 0.026336669921875, 0.0369873046875, -0.02099609375, 0.0277862548828125, 0.04364013671875, -0.0015411376953125, 0.02703857421875, -0.000217437744140625, -0.0192413330078125, 0.0176849365234375, 0.01495361328125, 0.00511932373046875, -0.002872467041015625, -0.057403564453125, -0.0007643699645996094, -0.0122222900390625, -0.07379150390625, -0.0022106170654296875, 0.07257080078125, 0.0067138671875, 0.0131988525390625, 0.00951385498046875, 0.053985595703125, 0.01227569580078125, 0.0101318359375, 0.048431396484375, 0.016937255859375, 0.00616455078125, -0.0667724609375, 0.0579833984375, -0.04351806640625, 0.033966064453125, 0.072021484375, -0.01433563232421875, 0.01152801513671875, -0.0004429817199707031, -0.01538848876953125, -0.0172271728515625, 0.0247650146484375, -0.0217132568359375, -0.024078369140625, -0.048858642578125, -0.0210113525390625, 0.003223419189453125, -0.0643310546875, -0.021942138671875, -0.0188446044921875, -0.03265380859375, -0.018951416015625, -0.06378173828125, 0.005229949951171875, -0.05865478515625, -0.031951904296875, -0.0309906005859375, -0.01180267333984375, -0.00902557373046875, 0.0418701171875, -0.02813720703125, 0.0004284381866455078, -0.0155181884765625, 0.00411224365234375, 0.004650115966796875, -0.024261474609375, -0.02581787109375, -0.005397796630859375, 0.001956939697265625, 0.0045623779296875, 0.01154327392578125, 0.00324249267578125, 0.0169677734375, 0.0221405029296875, 0.040802001953125, 0.008575439453125, -0.0206756591796875, -0.03558349609375, -0.005603790283203125, 0.018096923828125, -0.024932861328125, 0.00556182861328125, -0.0211944580078125, 0.0200042724609375, -0.032867431640625, -0.02294921875, -0.03131103515625, -0.044219970703125, -0.03375244140625, 0.08685302734375, 0.0518798828125, -0.0675048828125, -0.01103973388671875, -0.07232666015625, -0.034515380859375, -0.0072021484375, -0.060699462890625, -0.0125732421875, 0.033172607421875, -0.0052490234375, -0.03668212890625, 0.0164794921875, -0.009368896484375, 0.003803253173828125, -0.0199432373046875, -0.0218048095703125, 0.051025390625, -0.00676727294921875, -0.01007843017578125, -0.0036525726318359375, 0.00453948974609375, -0.005519866943359375, 0.038818359375, 0.005985260009765625, 0.0269775390625, 0.01261138916015625, -0.00560760498046875, -0.0236358642578125, 0.01007080078125, 0.041351318359375, -0.0017871856689453125, -0.0032176971435546875, -0.0296478271484375, -0.01554107666015625, -0.04510498046875, 0.006103515625, 0.00014960765838623047, -0.0228118896484375, -0.023162841796875, 0.007450103759765625, 0.017730712890625, -0.0265045166015625, -0.00203704833984375, -0.0131683349609375, -0.06317138671875, 0.01678466796875, 0.0275726318359375, -0.023895263671875, -0.01242828369140625, -0.0263824462890625, -0.0501708984375, -0.005146026611328125, -0.002597808837890625, 0.06494140625, -0.000667572021484375, 0.0111846923828125, 0.021881103515625, 0.007274627685546875, 0.0360107421875, -0.0298309326171875, -0.08782958984375, 0.00324249267578125, -0.0499267578125, 0.058380126953125, -0.01000213623046875, 0.05963134765625, -0.04412841796875, 0.039031982421875, -0.01910400390625, 0.0304107666015625, -0.023681640625, 0.0022430419921875, -0.032958984375, 0.01044464111328125, 0.0018224716186523438, -0.01482391357421875, 0.030792236328125, -0.01971435546875, -0.0767822265625, -0.10772705078125, -0.035552978515625, -0.048828125, 0.021087646484375, -0.06231689453125, 0.0201568603515625, 0.00312042236328125, -0.038421630859375, 0.004047393798828125, -0.026611328125, -0.0197906494140625, -0.00789642333984375, -0.0018711090087890625, 0.049713134765625, 0.043975830078125, 0.003143310546875, -0.007724761962890625, 0.031402587890625, 0.0029392242431640625, -0.040985107421875, -0.043975830078125, 0.016845703125, 0.031524658203125, 0.0074920654296875, 0.0024280548095703125, -0.0369873046875, -0.04193115234375, 0.05865478515625, -0.01812744140625, 0.01910400390625, -0.0276031494140625, 0.06280517578125, -0.006744384765625, -0.0098419189453125, 0.0218963623046875, -0.00905609130859375, -0.045379638671875, 0.026885986328125, -0.004978179931640625, -0.0014390945434570312, -0.01534271240234375, 0.01302337646484375, -0.00713348388671875, 0.00022482872009277344, -0.03314208984375, -0.04608154296875, -0.0008711814880371094, -0.0159759521484375, 0.0513916015625, 0.0294189453125, -0.01483154296875, 0.07275390625, 0.07403564453125, 0.0225830078125, -0.0157012939453125, 0.045074462890625, -0.01561737060546875, 0.052154541015625, 0.005115509033203125, 0.0281829833984375, -0.044097900390625, -0.0142364501953125, 0.06353759765625, 0.044158935546875, -0.037567138671875, 0.022552490234375, -0.02496337890625, -0.0684814453125, -0.038238525390625, -0.0310211181640625, -0.031951904296875, 0.01971435546875, 0.01334381103515625, 0.036712646484375, 0.02313232421875, 0.00818634033203125, 0.0106658935546875, 0.0307159423828125, 0.03240966796875, -0.0236358642578125, 0.01214599609375, -0.0035572052001953125, 0.041107177734375, -0.030242919921875, -0.00937652587890625, -0.01529693603515625, -0.016876220703125, 0.04766845703125, 0.00765228271484375, -0.01546478271484375, -0.03192138671875, 0.06988525390625, 0.02166748046875, -0.02862548828125, -0.0088043212890625, 0.006439208984375, 0.044281005859375, -0.086181640625, -0.058013916015625, 0.0546875, -0.03460693359375, -0.00786590576171875, 0.006450653076171875, 0.0147247314453125, -0.029815673828125, 0.01361846923828125, 0.0433349609375, 0.021484375, -0.01061248779296875, -0.0167999267578125, -0.0295867919921875, -0.03741455078125, -0.04486083984375, 0.00600433349609375, -0.037994384765625, -0.026702880859375, -0.0196533203125, -0.0197601318359375, -0.04473876953125, -0.03753662109375, 0.018707275390625, 0.037506103515625, -0.015625, -0.0269927978515625, 0.0261077880859375, -0.0271453857421875, 0.00507354736328125, -0.053466796875, 0.0279693603515625, -0.01363372802734375, 0.004970550537109375, 0.033782958984375, -0.0009617805480957031, -0.00835418701171875, -0.0194244384765625, 0.00899505615234375, -0.0227203369140625, 0.0078887939453125, 0.0003871917724609375, -0.02508544921875, -0.0056304931640625, -0.004199981689453125, 0.0291900634765625, -0.004199981689453125, -0.006336212158203125, -0.03765869140625, 0.036773681640625, 0.01125335693359375, 0.07122802734375, -0.0016050338745117188, -0.020477294921875, 0.004985809326171875, 0.0122528076171875, -0.00634002685546875, -0.00496673583984375, 0.01389312744140625, -0.031341552734375, -0.0018024444580078125, -0.02020263671875, -0.00838470458984375, -0.0002186298370361328, 0.00312042236328125, 0.0180511474609375, 0.0616455078125, 0.013458251953125, -0.00911712646484375, -0.042327880859375, -0.0003223419189453125, -0.0116119384765625, 0.0792236328125, -0.042633056640625, -0.02496337890625, 0.02191162109375, -0.007297515869140625, 0.0232086181640625, -0.016082763671875, 0.0084075927734375, -0.0210418701171875, -0.01389312744140625, -0.02984619140625, 0.0289459228515625, 0.01549530029296875, -0.02587890625, 0.0347900390625, 0.039703369140625, 0.057647705078125, 0.0247344970703125, 0.040679931640625, 0.018341064453125, -0.017974853515625, 0.0273590087890625, -0.00537872314453125, 0.007083892822265625, -0.028045654296875, 0.012237548828125, 0.0093994140625, -0.004543304443359375, 0.046722412109375, 0.0489501953125, 0.08740234375, -0.059112548828125, 0.02716064453125, 0.037261962890625, -0.022705078125, 0.03741455078125, 0.0248565673828125, -0.006763458251953125, -0.00894927978515625, 0.008697509765625, -0.048126220703125, -0.01467132568359375, 0.01117706298828125, 0.00014543533325195312, -0.0022945404052734375, -0.03350830078125, 0.03717041015625, 0.01210784912109375, -0.062164306640625, 0.0005464553833007812, 0.06573486328125, -0.04248046875, -0.0220184326171875, -0.021820068359375, 0.0198822021484375, -0.045867919921875, -0.07855224609375, -0.014373779296875, -0.041351318359375, -0.0195159912109375, -0.0014696121215820312, -0.028228759765625, -0.01454925537109375, 0.0269927978515625, -0.035888671875, 0.002353668212890625, 0.0193328857421875, -0.061370849609375, 0.127685546875, 0.013916015625, 0.005290985107421875, 0.0015745162963867188, -0.048828125, -0.02471923828125, -0.0007796287536621094, 0.047210693359375, -0.01131439208984375, -0.0362548828125, 0.06732177734375, -0.07171630859375, 0.0246124267578125, 0.03814697265625, 0.010711669921875, -0.01372528076171875, 0.0158233642578125, 0.007350921630859375, -0.0269775390625, -0.008819580078125, 0.0063629150390625, -0.007198333740234375, 0.02783203125, 0.03759765625, -0.040374755859375, 0.042083740234375, 0.0017518997192382812, 0.0200042724609375, 0.00914764404296875, 0.00937652587890625, -0.0116729736328125, -0.0192718505859375, -0.0162200927734375, 0.041229248046875, -0.021392822265625, 0.04022216796875, -0.048187255859375, 0.01059722900390625, 0.0280609130859375, 0.0089569091796875, 0.02362060546875, 0.0018768310546875, -0.067138671875, 0.01849365234375, 0.06695556640625, 0.028350830078125, 0.0214691162109375, 0.05426025390625, 0.0111846923828125, 0.023895263671875, 0.0035839080810546875, 0.0010395050048828125, 0.02093505859375, -0.0059967041015625, -0.0357666015625, 0.050506591796875, 0.0004100799560546875, 0.008056640625, 0.01267242431640625, 0.03057861328125, -0.007190704345703125, -0.005306243896484375, 0.0143585205078125, -0.047393798828125, 0.011474609375, 0.0016603469848632812, -0.017425537109375, 0.004657745361328125, 0.016021728515625, -0.01184844970703125, 0.0275726318359375, -0.0054168701171875, 0.0054779052734375, -0.02960205078125, 0.0137176513671875, 0.023284912109375, -0.024932861328125, -0.0190582275390625, 0.047393798828125, -0.0305633544921875, 0.01457977294921875, 0.0231781005859375, 0.0252838134765625, -0.0153045654296875, -0.0233612060546875, 0.02813720703125, 0.039398193359375, -0.01224517822265625, -0.050750732421875, -0.00426483154296875, 0.001819610595703125, 0.0457763671875, 0.01499176025390625, 0.061431884765625, -0.06561279296875, -0.044586181640625, -0.04302978515625, 0.028961181640625, 0.036407470703125, 0.019317626953125, 0.00001710653305053711, -0.0158843994140625, -0.03509521484375, 0.0194244384765625, -0.007106781005859375, -0.01386260986328125, -0.001617431640625, -0.0208892822265625, 0.00720977783203125, 0.033721923828125, 0.073974609375, 0.0140380859375, -0.0213775634765625, 0.0350341796875, 0.044647216796875, -0.00554656982421875, -0.0015096664428710938, -0.006580352783203125, 0.0240325927734375, 0.0178680419921875, -0.004459381103515625, 0.04071044921875, 0.0819091796875, 0.029571533203125, -0.06280517578125, -0.018310546875, -0.01541900634765625, -0.04718017578125, 0.00608062744140625, -0.007843017578125, 0.009857177734375, 0.0178680419921875, -0.0185699462890625, 0.015228271484375, 0.04205322265625, 0.025299072265625, 0.00453948974609375, 0.042022705078125, -0.0003027915954589844, -0.0196380615234375, -0.011505126953125, -0.0189361572265625, 0.040191650390625, 0.0155792236328125, -0.0394287109375, 0.0003437995910644531, 0.006549835205078125, -0.0284423828125, -0.0075531005859375, 0.016845703125, -0.0194549560546875, 0.03350830078125, -0.00518798828125, 0.0007395744323730469, -0.012420654296875, -0.0150604248046875, 0.0217132568359375, 0.0200653076171875, 0.01031494140625, 0.0190277099609375, -0.05828857421875, -0.032379150390625, -0.05499267578125, 0.04705810546875, -0.0079498291015625, 0.1141357421875, -0.061492919921875, 0.0177459716796875, 0.02032470703125, 0.005977630615234375, -0.01323699951171875, -0.00443267822265625, 0.009429931640625, -0.0261077880859375, 0.0112457275390625, -0.0007600784301757812, -0.00732421875, 0.06268310546875, 0.011322021484375, -0.001888275146484375, -0.0186004638671875, -0.0015115737915039062, 0.01337432861328125, 0.06402587890625, -0.037017822265625, -0.0526123046875, -0.049652099609375, -0.056396484375, 0.023651123046875, -0.01519775390625, -0.036468505859375, -0.046417236328125, 0.00438690185546875, 0.0290985107421875, 0.033660888671875, 0.0126800537109375, 0.010589599609375, 0.043060302734375, 0.03912353515625, -0.056976318359375, -0.047088623046875, -0.012664794921875, -0.022552490234375, 0.0108489990234375, -0.01442718505859375, 0.03900146484375, 0.00336456298828125, -0.0265350341796875, 0.08319091796875, -0.01332855224609375, 0.01322174072265625, -0.05010986328125, -0.052154541015625, 0.05517578125, 0.01453399658203125, -0.0264129638671875, 0.0330810546875, 0.0011386871337890625, -0.0004734992980957031, -0.01611328125, 0.0012760162353515625, 0.01274871826171875, 0.005268096923828125, 0.00966644287109375, -0.010894775390625, 0.0272064208984375, 0.048431396484375, -0.10223388671875, 0.0404052734375, 0.0123138427734375, 0.0298309326171875, 0.02740478515625, 0.03314208984375, -0.01236724853515625, 0.00894927978515625, -0.0361328125, -0.031707763671875, -0.005748748779296875, 0.057037353515625, 0.01446533203125, 0.0204315185546875, 0.04632568359375, -0.03271484375, -0.007610321044921875, -0.0225677490234375, 0.039825439453125, 0.031646728515625, -0.0240325927734375, -0.023681640625, 0.01096343994140625, -0.0009889602661132812, -0.0181121826171875, -0.0181427001953125, 0.007732391357421875, -0.017242431640625, -0.01934814453125, -0.020294189453125, 0.01438140869140625, 0.01007080078125, -0.03369140625, 0.007366180419921875, -0.0011777877807617188, 0.03338623046875, -0.034454345703125, 0.0278167724609375, 0.04815673828125, -0.0174713134765625, 0.039215087890625, 0.03564453125, -0.035247802734375, 0.03778076171875, -0.0360107421875, -0.0032367706298828125, 0.042694091796875, -0.0184173583984375, 0.0109710693359375, 0.00923919677734375, 0.053558349609375, 0.029449462890625, -0.035491943359375, -0.02691650390625, -0.0004355907440185547, 0.0118560791015625, 0.027740478515625, -0.01181793212890625, -0.01117706298828125, 0.0279998779296875, 0.0070648193359375, -0.026824951171875, -0.0088958740234375, 0.0046844482421875, 0.00891876220703125, 0.05853271484375, 0.032745361328125, 0.00439453125, -0.039215087890625, -0.0020313262939453125, 0.0012540817260742188, -0.00635528564453125, -0.0126800537109375, 0.00859832763671875, -0.04656982421875, -0.013214111328125, -0.00689697265625, -0.0286407470703125, 0.006587982177734375, 0.032501220703125, -0.035308837890625, 0.022064208984375, 0.044830322265625, -0.042816162109375, -0.002628326416015625, 0.0086517333984375, 0.048126220703125, -0.0194549560546875, -0.007389068603515625, 0.0203857421875, -0.006351470947265625, 0.00826263427734375, 0.043304443359375, -0.00919342041015625, 0.0008764266967773438, -0.004123687744140625, 0.01861572265625, -0.0002257823944091797, -0.0213165283203125, -0.019683837890625, 0.00865936279296875, 0.006191253662109375, -0.006114959716796875, -0.02593994140625, -0.00926971435546875, 0.044158935546875, -0.0220947265625, -0.033203125, 0.019622802734375, -0.00768280029296875, -0.02001953125, -0.01873779296875, 0.046783447265625, -0.0292816162109375, -0.012359619140625, -0.0006265640258789062, -0.038818359375, 0.034423828125, -0.00737762451171875, 0.01422882080078125, -0.01204681396484375, -0.0169219970703125, -0.02752685546875, -0.017303466796875, 0.005466461181640625 ]
7864e711617e65fb6aaa8d6f78fe853c42f5e228
Wordpress Stackexchange Q: How do I embed youtube videos with https instead of http in the URL? I'm running a site that only communicates over SSL/https so if I embed a youtube video using http I will get an error message saying the site is'nt fully secure. Is it possible to rewrite something so that WordPress accepts https and still auto embeds youtube links added to the content area? Cause now, when I try to embed a https youtube link, all that is shown is the URL, no movie. Update I've tried to add providers using this code in functions.php but it does nothing: wp_oembed_add_provider('https://youtu.be/*', 'https://youtube.com/oembed' ); wp_oembed_add_provider('#https://(www\.)?youtube.com/watch.*#i', 'https://youtube.com/oembed', true); wp_oembed_add_provider('http://youtu.be/*', 'https://youtube.com/oembed' ); wp_oembed_add_provider('#http://(www\.)?youtube.com/watch.*#i', 'https://youtube.com/oembed', true); A: Otto's solution doesn't work in WP 3.6, presumably because the oembeds have changed in core and now do match https://, so the added providers never get matched. Although https:// matches in core now, it always provides an http:// embed even if the original URL is https://, so we still have the same problem here. I've decided to just convert all oembeds protocol-relative: function my_embed_oembed_html( $html ) { return preg_replace( '@src="https?:@', 'src="', $html ); } add_filter( 'embed_oembed_html', 'my_embed_oembed_html' );
Q: How do I embed youtube videos with https instead of http in the URL? I'm running a site that only communicates over SSL/https so if I embed a youtube video using http I will get an error message saying the site is'nt fully secure. Is it possible to rewrite something so that WordPress accepts https and still auto embeds youtube links added to the content area? Cause now, when I try to embed a https youtube link, all that is shown is the URL, no movie. Update I've tried to add providers using this code in functions.php but it does nothing: wp_oembed_add_provider('https://youtu.be/*', 'https://youtube.com/oembed' ); wp_oembed_add_provider('#https://(www\.)?youtube.com/watch.*#i', 'https://youtube.com/oembed', true); wp_oembed_add_provider('http://youtu.be/*', 'https://youtube.com/oembed' ); wp_oembed_add_provider('#http://(www\.)?youtube.com/watch.*#i', 'https://youtube.com/oembed', true); A: Otto's solution doesn't work in WP 3.6, presumably because the oembeds have changed in core and now do match https://, so the added providers never get matched. Although https:// matches in core now, it always provides an http:// embed even if the original URL is https://, so we still have the same problem here. I've decided to just convert all oembeds protocol-relative: function my_embed_oembed_html( $html ) { return preg_replace( '@src="https?:@', 'src="', $html ); } add_filter( 'embed_oembed_html', 'my_embed_oembed_html' ); A: http://core.trac.wordpress.org/ticket/18719 has a working patch now. Edit: Plugin code to do similar until patch gets in: wp_oembed_add_provider('#https://(www\.)?youtube.com/watch.*#i', 'http://youtube.com/oembed?scheme=https', true); wp_oembed_add_provider('https://youtu.be/*', 'http://youtube.com/oembed?scheme=https', false ); A: you could hack a forced https return in the functions.php file to search for iframes that have a src starting with http and replace https. [I left off the 'be' of these urls since some of the share urls are youtu.be and youtube.com] //Embed Video Fix function add_secure_video_options($html) { if (strpos($html, "<iframe" ) !== false) { $search = array('src="http://www.youtu','src="http://youtu'); $replace = array('src="https://www.youtu','src="https://youtu'); $html = str_replace($search, $replace, $html); return $html; } else { return $html; } } add_filter('the_content', 'add_secure_video_options', 10); A: Youtube supports https urls for videos (just add the "s" into the regular url). However, they also state that: In particular, only the YouTube player code is accessible via HTTPS at this time. The actual video bitstream, and some additional content loaded by the YouTube player may still be accessed via standard HTTP connections when you use an HTTPS URL in your embed code. So it looks like you won't be able to get https video feeds just yet. This appears to be confirmed by the trac link you posted: (Comment 7 by Otto42) "Until YouTube returns https results in the iframe, embedding such a link would just result in a broken page in most browsers, since the iframe isn't SSL." Reference: http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html You might also check out this solution: http://www.adammershon.com/display-youtube-videos-on-ssl-page/ (This would essentially "serve" the video as if it were on your page.) (I don't see anything newer about the subject.)
wordpress
{ "language": "en", "length": 450, "provenance": "stackexchange_00019.jsonl.gz:416662", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40747" }
[ 0.0782470703125, 0.04595947265625, -0.04608154296875, -0.05206298828125, 0.0738525390625, -0.044281005859375, 0.05859375, -0.0018301010131835938, -0.01139068603515625, -0.006061553955078125, -0.0213165283203125, -0.0013427734375, -0.042388916015625, -0.033721923828125, 0.0084381103515625, -0.0302581787109375, 0.0172576904296875, 0.0032482147216796875, 0.003711700439453125, -0.0240020751953125, -0.004131317138671875, -0.0169677734375, 0.0290985107421875, -0.0124664306640625, -0.0040740966796875, -0.0201416015625, 0.07806396484375, -0.01849365234375, 0.0015211105346679688, -0.0294036865234375, 0.00791168212890625, -0.003559112548828125, 0.0299072265625, 0.020477294921875, -0.059051513671875, -0.009429931640625, 0.021820068359375, -0.0011844635009765625, -0.0139617919921875, 0.028076171875, -0.026458740234375, 0.0245361328125, 0.09661865234375, 0.01505279541015625, 0.0187530517578125, -0.009124755859375, -0.031829833984375, -0.07623291015625, 0.007568359375, 0.01512908935546875, 0.0188140869140625, 0.003551483154296875, 0.018157958984375, -0.017608642578125, -0.01209259033203125, 0.00565338134765625, -0.03948974609375, 0.0026607513427734375, -0.0116119384765625, 0.016387939453125, 0.031585693359375, 0.042510986328125, -0.0065460205078125, 0.0259857177734375, 0.004795074462890625, -0.0323486328125, 0.049957275390625, 0.02471923828125, -0.03045654296875, -0.0204925537109375, 0.0269927978515625, 0.03338623046875, -0.01331329345703125, -0.0035991668701171875, -0.042144775390625, 0.028228759765625, 0.0020465850830078125, 0.017120361328125, 0.0180511474609375, -0.01345062255859375, 0.03375244140625, 0.034332275390625, 0.031402587890625, -0.04327392578125, 0.033966064453125, -0.006710052490234375, 0.0002522468566894531, -0.0289764404296875, 0.00998687744140625, -0.00646209716796875, -0.0191802978515625, -0.0039043426513671875, 0.01142120361328125, 0.0009908676147460938, -0.03936767578125, -0.005390167236328125, 0.040985107421875, 0.05908203125, 0.00199127197265625, 0.0009617805480957031, 0.0013227462768554688, -0.049530029296875, 0.027252197265625, -0.049072265625, 0.016815185546875, 0.04840087890625, 0.018524169921875, -0.01104736328125, 0.0321044921875, -0.01275634765625, -0.00788116455078125, 0.0965576171875, 0.01519012451171875, -0.0288543701171875, -0.00972747802734375, -0.00638580322265625, -0.0166473388671875, -0.0218505859375, -0.00136566162109375, -0.056610107421875, -0.0063629150390625, 0.01279449462890625, -0.002414703369140625, 0.0082855224609375, -0.0009870529174804688, 0.00926971435546875, -0.0068817138671875, -0.01654052734375, -0.034454345703125, 0.0408935546875, -0.05133056640625, 0.01043701171875, 0.0980224609375, 0.047760009765625, 0.02545166015625, -0.038848876953125, 0.01145172119140625, -0.0268707275390625, -0.014801025390625, 0.055633544921875, -0.050506591796875, -0.0806884765625, 0.0024852752685546875, -0.0203704833984375, 0.041900634765625, -0.015167236328125, 0.005252838134765625, 0.0288543701171875, 0.0357666015625, -0.03021240234375, 0.039459228515625, -0.00832366943359375, 0.033966064453125, 0.00942230224609375, 0.020599365234375, -0.029144287109375, 0.048553466796875, -0.04345703125, 0.0186767578125, -0.0283966064453125, -0.040863037109375, -0.00778961181640625, 0.0257110595703125, -0.00211334228515625, -0.012908935546875, 0.01263427734375, -0.008453369140625, 0.00994873046875, 0.0199127197265625, 0.07464599609375, -0.03717041015625, -0.0015439987182617188, -0.0250244140625, 0.01300048828125, -0.00615692138671875, 0.00217437744140625, -0.0029354095458984375, 0.02099609375, 0.035980224609375, 0.04254150390625, 0.020660400390625, -0.02410888671875, 0.09613037109375, -0.039947509765625, -0.03717041015625, 0.032562255859375, 0.007904052734375, 0.059326171875, 0.017242431640625, 0.0129852294921875, 0.0273895263671875, -0.01445770263671875, -0.001216888427734375, 0.009796142578125, -0.0011234283447265625, -0.055816650390625, -0.03887939453125, -0.0304718017578125, -0.0292510986328125, 0.030731201171875, 0.0209197998046875, 0.029022216796875, 0.0015468597412109375, 0.040008544921875, 0.01568603515625, -0.0006036758422851562, 0.01436614990234375, 0.0105743408203125, -0.00983428955078125, 0.0134429931640625, 0.0206146240234375, 0.01111602783203125, -0.039398193359375, 0.01373291015625, -0.0060272216796875, 0.01546478271484375, 0.01241302490234375, 0.062408447265625, 0.0030918121337890625, 0.0596923828125, -0.01430511474609375, -0.04254150390625, -0.0159912109375, -0.018707275390625, -0.0028514862060546875, -0.0114288330078125, -0.003391265869140625, -0.007114410400390625, 0.0230712890625, -0.0018720626831054688, 0.001277923583984375, 0.0117340087890625, 0.054840087890625, 0.03179931640625, -0.056396484375, -0.0166168212890625, -0.0305328369140625, -0.0278167724609375, -0.000034809112548828125, 0.057586669921875, 0.057403564453125, 0.00955963134765625, 0.029266357421875, -0.014190673828125, 0.0670166015625, -0.059967041015625, 0.011566162109375, -0.0212554931640625, -0.0030193328857421875, 0.0017299652099609375, 0.042724609375, -0.004871368408203125, 0.017669677734375, -0.078125, 0.034027099609375, 0.03643798828125, 0.023590087890625, 0.03680419921875, -0.038421630859375, 0.0265655517578125, -0.0184783935546875, -0.018768310546875, -0.0173797607421875, -0.013763427734375, -0.0181732177734375, 0.0030918121337890625, 0.0103607177734375, 0.017333984375, -0.001384735107421875, -0.01983642578125, 0.01033782958984375, 0.00519561767578125, -0.023956298828125, 0.0870361328125, 0.0775146484375, -0.033050537109375, -0.01297760009765625, -0.027496337890625, -0.0225830078125, 0.041839599609375, -0.00414276123046875, 0.0210418701171875, 0.028076171875, -0.00943756103515625, -0.0172271728515625, 0.0030670166015625, 0.0211029052734375, 0.00860595703125, 0.032440185546875, -0.00707244873046875, 0.02764892578125, 0.004528045654296875, -0.022857666015625, 0.05926513671875, 0.00218963623046875, -0.0275726318359375, 0.020111083984375, -0.0518798828125, 0.0435791015625, -0.03607177734375, 0.05035400390625, 0.04339599609375, -0.0157928466796875, 0.00440216064453125, -0.01271820068359375, -0.0164794921875, -0.02972412109375, 0.01227569580078125, -0.021820068359375, -0.01959228515625, -0.06097412109375, -0.01282501220703125, 0.019439697265625, -0.0225982666015625, 0.004131317138671875, -0.029205322265625, -0.0111083984375, -0.004375457763671875, -0.0687255859375, -0.036285400390625, -0.0180816650390625, -0.05450439453125, 0.0144500732421875, 0.036285400390625, -0.02056884765625, -0.01033782958984375, 0.082763671875, 0.02056884765625, 0.01464080810546875, -0.004589080810546875, -0.0560302734375, -0.01558685302734375, -0.0684814453125, 0.02532958984375, -0.0162506103515625, 0.021697998046875, 0.019989013671875, -0.038543701171875, 0.02056884765625, 0.0204315185546875, 0.07403564453125, 0.039520263671875, -0.01050567626953125, -0.003833770751953125, -0.0125732421875, 0.01324462890625, -0.043365478515625, 0.01229095458984375, 0.007320404052734375, -0.0019626617431640625, -0.007770538330078125, 0.005741119384765625, 0.006603240966796875, -0.0328369140625, 0.020233154296875, -0.0341796875, -0.022308349609375, -0.0017080307006835938, 0.0192718505859375, -0.031829833984375, 0.0237579345703125, -0.0009312629699707031, 0.015380859375, 0.005420684814453125, -0.022613525390625, -0.0201263427734375, -0.006855010986328125, 0.017730712890625, -0.0053558349609375, 0.0019283294677734375, 0.0472412109375, -0.0020275115966796875, -0.037109375, -0.037200927734375, -0.06085205078125, -0.030975341796875, 0.0172119140625, -0.006175994873046875, -0.007724761962890625, -0.0143585205078125, 0.01548004150390625, -0.018707275390625, 0.05780029296875, -0.047393798828125, -0.00494384765625, 0.0243072509765625, -0.04217529296875, 0.0265045166015625, -0.03924560546875, -0.00982666015625, -0.03448486328125, 0.0673828125, -0.01505279541015625, -0.027801513671875, 0.0433349609375, 0.021209716796875, -0.01358795166015625, 0.0213623046875, -0.0447998046875, -0.0262603759765625, -0.00376129150390625, -0.02508544921875, -0.0234222412109375, -0.0171356201171875, 0.018768310546875, 0.002140045166015625, 0.01806640625, -0.025421142578125, 0.0252532958984375, 0.0230865478515625, -0.0144195556640625, 0.046844482421875, -0.032562255859375, 0.03155517578125, -0.026947021484375, 0.00859832763671875, -0.060028076171875, -0.012237548828125, 0.00272369384765625, 0.041259765625, -0.00759124755859375, -0.0287933349609375, -0.00560760498046875, 0.057403564453125, 0.0249786376953125, 0.018524169921875, 0.031402587890625, -0.03009033203125, 0.066650390625, 0.0276336669921875, 0.033111572265625, 0.004642486572265625, -0.00759124755859375, -0.018341064453125, -0.0386962890625, 0.001316070556640625, 0.00646209716796875, 0.0221710205078125, 0.02996826171875, -0.0247955322265625, -0.06536865234375, -0.0117034912109375, 0.017181396484375, 0.00435638427734375, 0.0154571533203125, -0.0152435302734375, -0.0052337646484375, -0.04833984375, 0.0243072509765625, 0.0262451171875, -0.000499725341796875, 0.004924774169921875, 0.0245513916015625, 0.0017871856689453125, -0.034423828125, -0.0012187957763671875, 0.00882720947265625, 0.04046630859375, -0.004451751708984375, 0.0226898193359375, 0.031829833984375, -0.01393890380859375, 0.003925323486328125, 0.005512237548828125, 0.04345703125, 0.0416259765625, -0.020111083984375, 0.0303192138671875, -0.0002636909484863281, 0.01044464111328125, 0.06488037109375, -0.07342529296875, 0.007518768310546875, -0.0154571533203125, 0.013519287109375, 0.01000213623046875, -0.0169219970703125, 0.0088653564453125, -0.0092010498046875, -0.00994110107421875, -0.029510498046875, 0.01580810546875, -0.0275421142578125, 0.07135009765625, 0.044036865234375, 0.0036640167236328125, 0.056884765625, 0.03338623046875, 0.023895263671875, -0.05523681640625, -0.0467529296875, -0.0308990478515625, 0.049102783203125, -0.05303955078125, 0.00952911376953125, 0.007389068603515625, -0.0117645263671875, 0.040252685546875, 0.0254058837890625, -0.04241943359375, 0.0081939697265625, 0.012451171875, -0.0194091796875, -0.007015228271484375, -0.02923583984375, -0.0018930435180664062, 0.034149169921875, 0.0227508544921875, -0.007904052734375, -0.0556640625, 0.047393798828125, -0.021209716796875, 0.0277252197265625, -0.002986907958984375, 0.0203094482421875, -0.0350341796875, 0.08001708984375, 0.01776123046875, 0.0224456787109375, -0.0129547119140625, 0.04205322265625, 0.029571533203125, 0.0087432861328125, 0.0027942657470703125, 0.006038665771484375, 0.006191253662109375, -0.006900787353515625, -0.0209197998046875, -0.0005006790161132812, -0.01346588134765625, 0.004993438720703125, -0.0160675048828125, 0.0032901763916015625, 0.01284027099609375, 0.00846099853515625, 0.027618408203125, -0.021942138671875, -0.01390838623046875, 0.00666046142578125, 0.0215301513671875, -0.0193023681640625, 0.00762176513671875, 0.017608642578125, 0.03314208984375, -0.01800537109375, -0.00705718994140625, -0.01194000244140625, 0.0042724609375, 0.043609619140625, -0.036163330078125, -0.00201416015625, -0.009979248046875, 0.0244140625, -0.0330810546875, -0.0130157470703125, -0.027130126953125, 0.0134124755859375, -0.051239013671875, 0.006893157958984375, 0.0601806640625, -0.03936767578125, 0.0127716064453125, 0.01512908935546875, -0.008270263671875, 0.052276611328125, 0.03192138671875, 0.003826141357421875, -0.0124359130859375, -0.03533935546875, -0.00397491455078125, -0.0101318359375, -0.015716552734375, -0.00907135009765625, -0.00254058837890625, -0.0584716796875, -0.01383209228515625, -0.01041412353515625, 0.007289886474609375, -0.01349639892578125, 0.00783538818359375, -0.0293731689453125, 0.044097900390625, 0.017608642578125, 0.039703369140625, -0.023345947265625, 0.042510986328125, 0.04296875, 0.03204345703125, 0.00862884521484375, 0.0216827392578125, -0.01824951171875, -0.0264129638671875, -0.023468017578125, -0.0892333984375, -0.0302886962890625, 0.01471710205078125, -0.0313720703125, 0.05517578125, 0.0284576416015625, -0.0010442733764648438, 0.01114654541015625, 0.0084991455078125, -0.00009256601333618164, -0.0082244873046875, 0.0276031494140625, 0.04254150390625, 0.0242919921875, 0.03485107421875, 0.0003898143768310547, 0.03985595703125, -0.039337158203125, -0.0008840560913085938, -0.0175018310546875, -0.004306793212890625, -0.01534271240234375, 0.03839111328125, -0.0281524658203125, 0.018646240234375, 0.04974365234375, 0.01739501953125, 0.060089111328125, 0.0010442733764648438, 0.035186767578125, 0.0279998779296875, 0.009735107421875, -0.054351806640625, -0.025543212890625, -0.03179931640625, -0.00545501708984375, 0.0197906494140625, 0.00437164306640625, 0.01161956787109375, 0.01739501953125, 0.01263427734375, 0.048614501953125, -0.019195556640625, 0.01247406005859375, 0.0019426345825195312, -0.057586669921875, 0.0094757080078125, 0.003345489501953125, 0.004730224609375, -0.007709503173828125, 0.011322021484375, 0.0074920654296875, -0.003940582275390625, 0.00638580322265625, 0.0118255615234375, -0.0185699462890625, -0.00804901123046875, 0.0075836181640625, -0.0006933212280273438, -0.048431396484375, 0.0277557373046875, -0.005359649658203125, -0.0111541748046875, 0.0078125, 0.0167236328125, -0.0389404296875, -0.00921630859375, 0.004207611083984375, 0.0037403106689453125, -0.0310211181640625, 0.0071563720703125, 0.0272674560546875, 0.0302276611328125, 0.02191162109375, 0.052886962890625, 0.019989013671875, -0.0168914794921875, 0.03125, -0.0234222412109375, 0.043609619140625, 0.00701904296875, 0.01824951171875, 0.017791748046875, -0.06329345703125, -0.00846099853515625, -0.05029296875, 0.048980712890625, -0.007282257080078125, -0.010772705078125, 0.040863037109375, -0.0134735107421875, -0.0198974609375, 0.0266571044921875, 0.0251617431640625, -0.0181884765625, 0.0011224746704101562, 0.00414276123046875, -0.037017822265625, 0.00380706787109375, -0.0101318359375, -0.0225830078125, -0.006763458251953125, -0.00878143310546875, -0.038116455078125, 0.07965087890625, 0.01331329345703125, -0.0215911865234375, -0.0056610107421875, 0.04962158203125, -0.0297393798828125, 0.035980224609375, 0.0037403106689453125, 0.07037353515625, 0.07135009765625, -0.0609130859375, 0.001476287841796875, 0.0050811767578125, -0.0286712646484375, 0.01360321044921875, 0.0210113525390625, 0.00662994384765625, -0.04644775390625, -0.0121002197265625, 0.07659912109375, 0.08941650390625, 0.0570068359375, 0.0028896331787109375, -0.002292633056640625, 0.030731201171875, 0.037078857421875, -0.016998291015625, 0.0428466796875, -0.036224365234375, -0.030792236328125, 0.0148162841796875, 0.0244598388671875, 0.019805908203125, 0.004528045654296875, -0.0169830322265625, -0.038238525390625, 0.005611419677734375, 0.0246124267578125, -0.034271240234375, 0.055908203125, -0.0172576904296875, -0.006725311279296875, 0.002010345458984375, 0.0227813720703125, -0.00899505615234375, 0.037078857421875, -0.00435638427734375, -0.03057861328125, 0.00298309326171875, -0.0026912689208984375, 0.0080413818359375, -0.017852783203125, -0.038818359375, -0.004787445068359375, 0.033233642578125, 0.028656005859375, 0.004180908203125, 0.0195159912109375, -0.021636962890625, 0.01424407958984375, -0.0026874542236328125, 0.01555633544921875, -0.0318603515625, -0.06378173828125, 0.0090179443359375, -0.00832366943359375, 0.0121917724609375, 0.0239105224609375, 0.018096923828125, -0.044036865234375, -0.0274658203125, -0.01345062255859375, 0.002086639404296875, 0.00624847412109375, 0.01165771484375, 0.01235198974609375, 0.0306396484375, -0.0164337158203125, 0.00537872314453125, -0.07781982421875, -0.0021991729736328125, 0.028564453125, 0.06622314453125, 0.049713134765625, 0.052154541015625, 0.029388427734375, -0.032958984375, -0.00597381591796875, 0.0289306640625, 0.026824951171875, -0.0411376953125, -0.0241851806640625, -0.0572509765625, 0.051513671875, 0.03179931640625, 0.020538330078125, 0.040679931640625, 0.030914306640625, 0.018035888671875, 0.00974273681640625, 0.0078125, 0.0345458984375, -0.007747650146484375, 0.0202484130859375, -0.06683349609375, 0.0164642333984375, 0.011383056640625, 0.0081787109375, 0.01136016845703125, -0.07647705078125, 0.08355712890625, 0.0110931396484375, 0.03009033203125, 0.008758544921875, -0.006977081298828125, -0.004924774169921875, -0.033905029296875, 0.01444244384765625, 0.010650634765625, -0.0180816650390625, 0.019500732421875, -0.00664520263671875, -0.03338623046875, -0.0203399658203125, 0.01183319091796875, -0.005634307861328125, 0.036407470703125, 0.0452880859375, 0.0008611679077148438, -0.0111083984375, 0.01751708984375, -0.0120849609375, -0.04901123046875, 0.033477783203125, -0.0120086669921875, -0.002132415771484375, -0.00986480712890625, 0.01346588134765625, 0.044525146484375, -0.00600433349609375, 0.0751953125, -0.044281005859375, -0.0022125244140625, 0.00974273681640625, -0.022857666015625, 0.0266265869140625, 0.019287109375, -0.0244598388671875, 0.0007596015930175781, 0.0093536376953125, -0.010894775390625, -0.06622314453125, 0.046173095703125, 0.0036163330078125, 0.008148193359375, 0.0447998046875, -0.004077911376953125, 0.00484466552734375, -0.00823211669921875, -0.0212249755859375, -0.041748046875, -0.07977294921875, -0.03436279296875, 0.049285888671875, -0.01605224609375, 0.00347900390625, -0.0272674560546875, 0.08062744140625, -0.03460693359375, 0.0341796875, -0.01302337646484375, -0.04205322265625, -0.045166015625, 0.008880615234375, -0.0322265625, -0.033538818359375, 0.0231170654296875, -0.00868988037109375, 0.01436614990234375, -0.006465911865234375, 0.0550537109375, 0.028411865234375, -0.03851318359375, -0.056427001953125, 0.030487060546875, -0.00579833984375, -0.014862060546875, 0.0102691650390625, 0.015716552734375, -0.048187255859375, 0.00412750244140625, 0.00904083251953125, -0.0269927978515625, 0.004703521728515625, -0.0204620361328125, -0.00959014892578125, 0.00130462646484375, -0.0782470703125, -0.062744140625, 0.0006918907165527344, 0.03851318359375, -0.0013265609741210938, -0.042144775390625, -0.0108795166015625, -0.00909423828125, 0.078369140625, -0.022613525390625, 0.046051025390625, -0.0019969940185546875, 0.0258026123046875, -0.031951904296875, -0.01030731201171875, 0.00731658935546875, 0.03472900390625, -0.00028133392333984375, 0.016937255859375, 0.05303955078125, -0.00913238525390625, -0.046173095703125, 0.025299072265625, 0.007579803466796875, 0.07513427734375, -0.0738525390625, -0.006816864013671875, -0.00716400146484375, 0.0093994140625, -0.0526123046875, -0.059539794921875, 0.03314208984375, -0.0838623046875, -0.041412353515625, 0.00888824462890625, -0.03216552734375, -0.0200347900390625, -0.04400634765625, -0.003147125244140625, -0.00732421875, 0.045013427734375, -0.034149169921875, -0.0095977783203125, 0.002101898193359375, -0.0247039794921875, 0.03314208984375, 0.0022220611572265625, 0.00244140625, -0.005344390869140625, 0.0273590087890625, 0.00666046142578125, 0.0367431640625, -0.0072021484375, 0.00322723388671875, -0.021514892578125, 0.031951904296875, 0.0280303955078125, -0.00994873046875, 0.00782012939453125, 0.005245208740234375, 0.045745849609375, 0.049346923828125, -0.01534271240234375, 0.054351806640625, 0.01023101806640625, -0.02362060546875, 0.00926971435546875, -0.020538330078125, -0.0225067138671875, -0.058563232421875, 0.020233154296875, -0.03057861328125, -0.00534820556640625, 0.030731201171875, -0.06231689453125, -0.0124664306640625, -0.02777099609375, -0.025726318359375, 0.02520751953125, -0.061859130859375, 0.021392822265625, -0.0297088623046875, -0.0032806396484375, -0.0171356201171875, -0.02386474609375, -0.0276031494140625, -0.0120697021484375, -0.016448974609375, -0.00890350341796875, 0.01204681396484375, -0.0006933212280273438, 0.10113525390625, -0.0771484375, -0.053131103515625, 0.020904541015625, 0.0092315673828125, -0.001201629638671875, -0.08636474609375, 0.0313720703125, -0.0280303955078125, 0.02825927734375, 0.0254364013671875, 0.037841796875, 0.010955810546875, 0.01306915283203125, -0.046051025390625, -0.0054168701171875, 0.000949859619140625, -0.004817962646484375, 0.011749267578125, 0.00212860107421875, 0.0112457275390625, -0.0005006790161132812, 0.0020771026611328125, -0.048980712890625, -0.01248931884765625, -0.027130126953125, 0.0128173828125, 0.01355743408203125, 0.0193634033203125, 0.08441162109375, -0.01064300537109375, 0.0117950439453125, -0.0052642822265625, -0.0091705322265625, -0.0004963874816894531, -0.032073974609375, -0.10650634765625, -0.019775390625, -0.00750732421875 ]
c1a0703937d20e8020dc7df47fc6988c9d9137df
Wordpress Stackexchange Q: How to make "sticky" pages (and query by them) I have query_posts() with page_type set as 'page'. Is there any way I can make certain pages appear higher and thus, make them sticky? A: It doesn't appear that there is any obvious way to enable "sticky post" support for Pages, e.g. via add_post_type_support(). However, Pages support both hierarchy and menu order. I would recommend using menu order to output Pages in your preferred order.
Q: How to make "sticky" pages (and query by them) I have query_posts() with page_type set as 'page'. Is there any way I can make certain pages appear higher and thus, make them sticky? A: It doesn't appear that there is any obvious way to enable "sticky post" support for Pages, e.g. via add_post_type_support(). However, Pages support both hierarchy and menu order. I would recommend using menu order to output Pages in your preferred order. A: Convert Page to Post type. Warning: May not preserve Custom Fields and Revision History, depending on which WP Converter plugin you use. To be careful, copy manually or with a WP Clone plugin the page before conversion, and Export your database for if you need to go back.
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:416672", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40802" }
[ 0.0848388671875, 0.0034809112548828125, 0.0188751220703125, -0.0308837890625, 0.03863525390625, -0.040863037109375, 0.08782958984375, -0.023834228515625, 0.0150909423828125, 0.00411224365234375, -0.000362396240234375, -0.03350830078125, 0.01525115966796875, -0.030364990234375, -0.00916290283203125, -0.026641845703125, 0.033172607421875, -0.0204620361328125, 0.042083740234375, -0.0226287841796875, 0.038177490234375, -0.01276397705078125, 0.06683349609375, 0.051422119140625, 0.01019287109375, 0.01971435546875, 0.038360595703125, -0.0067291259765625, 0.01143646240234375, -0.001598358154296875, 0.0175323486328125, -0.027679443359375, 0.00980377197265625, 0.0059356689453125, 0.0027141571044921875, -0.002471923828125, 0.032684326171875, -0.01239776611328125, 0.003307342529296875, 0.0201568603515625, 0.007335662841796875, 0.01003265380859375, 0.006927490234375, 0.0258331298828125, -0.00728607177734375, -0.0301361083984375, 0.0033702850341796875, -0.058685302734375, 0.023895263671875, -0.03765869140625, 0.01154327392578125, 0.0251312255859375, 0.0211944580078125, -0.036834716796875, -0.0260162353515625, -0.0167388916015625, 0.0153656005859375, -0.022491455078125, 0.034820556640625, -0.056671142578125, -0.041259765625, -0.0306396484375, 0.042327880859375, 0.0116119384765625, 0.0036449432373046875, -0.0171051025390625, -0.0048828125, 0.00799560546875, -0.01338958740234375, 0.02227783203125, 0.03802490234375, -0.022735595703125, -0.0257415771484375, 0.03131103515625, -0.003986358642578125, -0.034912109375, 0.022430419921875, -0.0133514404296875, 0.01190185546875, 0.044097900390625, 0.006175994873046875, 0.006542205810546875, -0.044647216796875, -0.023590087890625, -0.00006943941116333008, -0.0087738037109375, -0.0235595703125, -0.005908966064453125, -0.004520416259765625, -0.00775146484375, -0.01505279541015625, -0.0002524852752685547, 0.015777587890625, 0.0345458984375, -0.030792236328125, 0.0178070068359375, 0.010772705078125, 0.005512237548828125, 0.01198577880859375, 0.03179931640625, -0.0125274658203125, -0.043243408203125, 0.052032470703125, -0.0280609130859375, 0.0159759521484375, 0.002941131591796875, -0.01186370849609375, -0.0257568359375, 0.049102783203125, 0.0289459228515625, -0.006549835205078125, 0.067138671875, 0.01038360595703125, -0.01132965087890625, -0.0301513671875, 0.00423431396484375, -0.0275421142578125, 0.019805908203125, 0.00820159912109375, 0.02130126953125, 0.0207061767578125, 0.037933349609375, -0.01105499267578125, -0.045196533203125, -0.0051422119140625, -0.01470947265625, -0.0140838623046875, -0.03753662109375, 0.0254669189453125, -0.00605010986328125, -0.0245819091796875, 0.008880615234375, 0.031402587890625, 0.032012939453125, 0.00954437255859375, -0.01030731201171875, -0.01111602783203125, -0.0589599609375, -0.0253753662109375, 0.04705810546875, -0.0210113525390625, -0.06744384765625, 0.0032482147216796875, -0.01308441162109375, -0.00467681884765625, -0.01345062255859375, 0.0198516845703125, 0.057708740234375, -0.033172607421875, -0.06536865234375, 0.07305908203125, -0.0031261444091796875, 0.0174560546875, -0.0163116455078125, -0.03936767578125, -0.0474853515625, -0.051361083984375, -0.0006594657897949219, 0.03369140625, -0.0123748779296875, -0.0161285400390625, 0.00799560546875, 0.037689208984375, -0.016815185546875, -0.0115814208984375, -0.023284912109375, -0.035308837890625, -0.00472259521484375, 0.0101165771484375, 0.00839996337890625, 0.04132080078125, 0.007495880126953125, -0.0252838134765625, -0.0125274658203125, -0.002193450927734375, -0.02032470703125, -0.01155853271484375, -0.002063751220703125, 0.0193634033203125, 0.0025386810302734375, 0.0007338523864746094, -0.020263671875, 0.03399658203125, -0.0009417533874511719, -0.0116729736328125, 0.003162384033203125, 0.015594482421875, 0.0174713134765625, -0.00830841064453125, 0.0218505859375, 0.01202392578125, 0.0309295654296875, -0.035675048828125, 0.0204010009765625, -0.0148468017578125, -0.00982666015625, -0.0224151611328125, 0.01067352294921875, -0.01343536376953125, -0.0008029937744140625, -0.0657958984375, 0.0281982421875, -0.0233306884765625, 0.05859375, 0.0238800048828125, 0.0172882080078125, -0.002239227294921875, 0.027923583984375, 0.057403564453125, 0.00733184814453125, -0.00930023193359375, 0.005435943603515625, -0.015838623046875, -0.0234222412109375, -0.07080078125, 0.0270843505859375, 0.0113525390625, 0.019622802734375, -0.01617431640625, 0.0142059326171875, -0.0193023681640625, -0.028472900390625, -0.027191162109375, 0.0166778564453125, 0.052001953125, -0.00128173828125, -0.0102081298828125, -0.01146697998046875, 0.0119781494140625, 0.0146636962890625, -0.061065673828125, 0.0284423828125, 0.018768310546875, 0.0286407470703125, -0.021514892578125, 0.00084686279296875, 0.01544952392578125, -0.030303955078125, 0.006866455078125, 0.032012939453125, 0.029815673828125, 0.0211181640625, -0.0162353515625, -0.0015735626220703125, -0.01372528076171875, -0.05767822265625, 0.01215362548828125, 0.0015811920166015625, -0.012176513671875, 0.0268096923828125, 0.04046630859375, 0.0034999847412109375, 0.0008077621459960938, -0.0211181640625, 0.028167724609375, -0.000820159912109375, 0.0411376953125, 0.063720703125, -0.0621337890625, 0.03643798828125, -0.0206146240234375, 0.048553466796875, 0.013275146484375, 0.01422119140625, 0.0235595703125, 0.004375457763671875, 0.0426025390625, 0.029205322265625, 0.002277374267578125, -0.00998687744140625, -0.0001207590103149414, -0.008514404296875, 0.0014734268188476562, 0.0234375, 0.033416748046875, -0.03125, -0.0224151611328125, -0.01556396484375, 0.01099395751953125, 0.0012607574462890625, -0.01995849609375, 0.023529052734375, 0.004032135009765625, -0.01438140869140625, -0.01532745361328125, -0.006565093994140625, 0.020172119140625, 0.0026340484619140625, -0.035919189453125, -0.0103302001953125, -0.003734588623046875, 0.0310821533203125, -0.0222320556640625, 0.0123291015625, 0.0146331787109375, -0.01085662841796875, -0.005390167236328125, -0.052093505859375, 0.04296875, -0.044677734375, 0.0478515625, 0.07208251953125, -0.005878448486328125, 0.015533447265625, 0.0002994537353515625, 0.0648193359375, 0.048095703125, -0.014984130859375, -0.00351715087890625, -0.00904083251953125, 0.01192474365234375, 0.00555419921875, 0.0287017822265625, 0.0224609375, 0.03399658203125, -0.027435302734375, 0.0132904052734375, 0.03631591796875, -0.0711669921875, -0.089599609375, 0.0022602081298828125, -0.0628662109375, -0.007511138916015625, 0.0019512176513671875, -0.04058837890625, 0.001007080078125, 0.03375244140625, 0.002872467041015625, -0.0173492431640625, -0.01097869873046875, -0.0161285400390625, -0.0230865478515625, -0.01323699951171875, 0.0099945068359375, -0.01303863525390625, -0.0044097900390625, -0.0028324127197265625, 0.0478515625, -0.00751495361328125, -0.06536865234375, -0.050323486328125, 0.045684814453125, -0.0135040283203125, -0.0260467529296875, -0.01377105712890625, -0.0075531005859375, 0.0631103515625, -0.011993408203125, -0.0086822509765625, 0.037933349609375, 0.01116943359375, -0.0179595947265625, -0.05029296875, 0.015899658203125, -0.022552490234375, 0.00991058349609375, 0.0640869140625, 0.024200439453125, -0.0166015625, -0.0274658203125, -0.026641845703125, 0.00016987323760986328, -0.052459716796875, -0.072265625, 0.036224365234375, -0.0034885406494140625, -0.04937744140625, -0.01052093505859375, 0.042816162109375, 0.00406646728515625, 0.02093505859375, 0.006072998046875, 0.01407623291015625, -0.000591278076171875, 0.044830322265625, -0.042266845703125, -0.0299530029296875, -0.020599365234375, 0.0236053466796875, -0.0144500732421875, 0.0089263916015625, -0.0111541748046875, 0.04510498046875, -0.0123138427734375, -0.0550537109375, 0.045623779296875, -0.005046844482421875, 0.03741455078125, -0.0287017822265625, -0.0380859375, 0.0032329559326171875, 0.1131591796875, -0.06451416015625, -0.02630615234375, -0.01263427734375, 0.032470703125, -0.020233154296875, -0.05712890625, -0.00931549072265625, -0.0290374755859375, -0.040985107421875, 0.01165008544921875, 0.012115478515625, -0.031463623046875, -0.05596923828125, 0.056182861328125, -0.051300048828125, -0.01174163818359375, 0.022369384765625, 0.02545166015625, -0.02764892578125, 0.054840087890625, -0.0119171142578125, 0.0291595458984375, -0.0209808349609375, 0.01013946533203125, -0.10260009765625, -0.01654052734375, -0.001750946044921875, 0.05987548828125, -0.0173492431640625, -0.01617431640625, -0.0260162353515625, 0.048736572265625, 0.00893402099609375, 0.017242431640625, 0.0022945404052734375, 0.0007920265197753906, 0.0196990966796875, -0.06121826171875, -0.0170745849609375, -0.039276123046875, 0.0131072998046875, 0.00962066650390625, -0.028289794921875, 0.014862060546875, -0.0307769775390625, -0.0010366439819335938, 0.0020580291748046875, -0.027435302734375, -0.047607421875, -0.04241943359375, -0.035125732421875, 0.0258026123046875, 0.001560211181640625, 0.0024566650390625, -0.0594482421875, -0.07220458984375, 0.008270263671875, 0.021820068359375, -0.01148223876953125, 0.007114410400390625, 0.0254364013671875, 0.01342010498046875, -0.0180816650390625, -0.060943603515625, -0.004177093505859375, 0.01206207275390625, 0.01494598388671875, 0.047088623046875, 0.01096343994140625, 0.0009589195251464844, 0.0291748046875, -0.01073455810546875, -0.0078125, -0.039520263671875, 0.03533935546875, -0.0294342041015625, -0.0340576171875, 0.03515625, -0.059234619140625, 0.058624267578125, 0.031005859375, -0.03125, -0.0139007568359375, -0.06219482421875, 0.05731201171875, -0.001842498779296875, 0.0343017578125, -0.06707763671875, -0.0303192138671875, 0.00691986083984375, -0.0097503662109375, 0.023712158203125, 0.01410675048828125, 0.00836181640625, 0.021392822265625, 0.0057373046875, 0.026031494140625, 0.0526123046875, 0.048065185546875, -0.0322265625, 0.05078125, 0.01494598388671875, -0.00580596923828125, 0.00785064697265625, -0.006988525390625, 0.035736083984375, 0.039154052734375, -0.01666259765625, 0.0109100341796875, -0.02532958984375, -0.010040283203125, -0.025787353515625, 0.050140380859375, 0.01073455810546875, -0.0006594657897949219, -0.01488494873046875, -0.01258087158203125, 0.04852294921875, -0.01203155517578125, -0.0235443115234375, -0.01129913330078125, 0.00914764404296875, -0.0029811859130859375, 0.0181427001953125, 0.041534423828125, -0.019989013671875, 0.037017822265625, -0.024932861328125, -0.0018835067749023438, -0.0024280548095703125, -0.0260772705078125, 0.00478363037109375, 0.06951904296875, 0.01128387451171875, -0.043365478515625, 0.0394287109375, -0.04644775390625, 0.0086822509765625, 0.0323486328125, 0.03839111328125, -0.0220947265625, -0.03594970703125, 0.024566650390625, -0.018280029296875, -0.004970550537109375, 0.016326904296875, 0.00005614757537841797, -0.028839111328125, -0.0134429931640625, 0.00873565673828125, 0.0305023193359375, -0.0100250244140625, -0.007465362548828125, 0.05010986328125, -0.02703857421875, 0.0445556640625, -0.0178070068359375, 0.034210205078125, -0.031280517578125, -0.035400390625, -0.00498199462890625, -0.00891876220703125, -0.017822265625, -0.09332275390625, -0.03985595703125, 0.002902984619140625, 0.01491546630859375, 0.02581787109375, -0.01555633544921875, 0.03253173828125, -0.0201873779296875, -0.0214996337890625, -0.0049896240234375, 0.0227813720703125, 0.01511383056640625, 0.005489349365234375, -0.018402099609375, -0.010009765625, -0.07861328125, -0.035003662109375, -0.07293701171875, -0.00981903076171875, -0.058258056640625, 0.0226898193359375, 0.069091796875, 0.054473876953125, -0.018035888671875, -0.125244140625, -0.046142578125, -0.03564453125, 0.06414794921875, 0.0248565673828125, 0.0112152099609375, 0.062042236328125, -0.0253753662109375, 0.034820556640625, 0.0247039794921875, 0.03936767578125, -0.0164337158203125, -0.0264739990234375, -0.0226287841796875, -0.05267333984375, 0.01202392578125, 0.043914794921875, -0.046966552734375, 0.0037975311279296875, 0.0264434814453125, 0.014495849609375, 0.0458984375, -0.05242919921875, 0.00020051002502441406, -0.024505615234375, 0.014892578125, -0.07861328125, -0.021697998046875, 0.0322265625, 0.0010633468627929688, 0.0271148681640625, -0.0140838623046875, -0.0307464599609375, 0.017120361328125, -0.00334930419921875, 0.034332275390625, -0.01245880126953125, -0.051483154296875, 0.0225677490234375, 0.046051025390625, 0.045074462890625, 0.052459716796875, 0.00754547119140625, 0.031829833984375, 0.0220489501953125, 0.0270538330078125, 0.0137939453125, -0.01435089111328125, 0.05987548828125, 0.0021839141845703125, -0.004352569580078125, 0.025634765625, -0.0251007080078125, 0.0156097412109375, 0.0711669921875, 0.05657958984375, -0.09796142578125, 0.005634307861328125, 0.0034198760986328125, 0.01335906982421875, 0.045135498046875, -0.007450103759765625, 0.008544921875, -0.0284576416015625, 0.0169525146484375, -0.004913330078125, -0.0240325927734375, -0.01439666748046875, -0.027679443359375, -0.001438140869140625, -0.0173797607421875, 0.03985595703125, 0.00656890869140625, 0.038848876953125, -0.0311431884765625, -0.027496337890625, 0.01549530029296875, -0.005146026611328125, 0.0122528076171875, -0.0297088623046875, -0.002162933349609375, -0.03045654296875, -0.0013093948364257812, -0.050384521484375, -0.002666473388671875, 0.01279449462890625, -0.0263214111328125, -0.0072784423828125, 0.03778076171875, -0.0207061767578125, -0.0027866363525390625, 0.01039886474609375, -0.053802490234375, -0.00679779052734375, -0.00774383544921875, 0.060333251953125, -0.0251617431640625, -0.029144287109375, 0.0077362060546875, -0.039306640625, -0.0390625, -0.045562744140625, -0.049346923828125, 0.09832763671875, -0.0278167724609375, -0.01195526123046875, -0.007595062255859375, 0.06256103515625, -0.0017871856689453125, -0.005916595458984375, 0.01666259765625, -0.01666259765625, 0.00887298583984375, -0.0007772445678710938, -0.01116943359375, -0.0180511474609375, -0.0175628662109375, -0.047515869140625, -0.0029544830322265625, -0.0151824951171875, 0.027008056640625, 0.0151214599609375, -0.0025615692138671875, -0.0031490325927734375, -0.0242919921875, -0.033203125, 0.07012939453125, 0.0230712890625, 0.06646728515625, -0.042724609375, -0.021636962890625, 0.03924560546875, 0.057952880859375, -0.0002884864807128906, -0.003322601318359375, -0.049835205078125, 0.0168609619140625, 0.08416748046875, 0.05706787109375, 0.049835205078125, 0.046173095703125, -0.0262908935546875, 0.00501251220703125, 0.03765869140625, -0.051910400390625, 0.007404327392578125, -0.007137298583984375, -0.0095672607421875, -0.00933074951171875, 0.019012451171875, 0.00968170166015625, -0.011871337890625, -0.0011310577392578125, -0.0850830078125, 0.007801055908203125, 0.0418701171875, 0.042022705078125, 0.0013065338134765625, 0.035003662109375, 0.04736328125, -0.050537109375, -0.02728271484375, -0.0247344970703125, 0.041046142578125, 0.0225372314453125, 0.01031494140625, 0.01236724853515625, 0.01407623291015625, -0.01360321044921875, -0.00470733642578125, 0.00591278076171875, 0.0212554931640625, -0.0321044921875, 0.04547119140625, -0.0113677978515625, 0.0232391357421875, -0.080078125, -0.0576171875, 0.009552001953125, 0.0538330078125, -0.0144195556640625, -0.01302337646484375, 0.01422882080078125, 0.00037097930908203125, -0.01171112060546875, -0.042724609375, -0.0199127197265625, 0.0038604736328125, 0.0208892822265625, -0.061767578125, -0.010986328125, 0.00531768798828125, 0.060302734375, -0.0070953369140625, -0.0019969940185546875, -0.04937744140625, -0.06231689453125, -0.00341033935546875, -0.0032062530517578125, 0.0206756591796875, 0.0169219970703125, -0.01331329345703125, 0.044189453125, 0.01434326171875, 0.0002658367156982422, 0.006328582763671875, 0.0208282470703125, -0.038330078125, 0.01522064208984375, -0.024993896484375, -0.050262451171875, -0.031890869140625, 0.040191650390625, 0.0382080078125, 0.0218658447265625, 0.0284881591796875, 0.037078857421875, 0.03515625, 0.0014705657958984375, 0.0386962890625, -0.00884246826171875, 0.0023040771484375, -0.0085296630859375, -0.006481170654296875, 0.000022232532501220703, -0.0288543701171875, -0.0045623779296875, 0.0017881393432617188, 0.0364990234375, 0.005596160888671875, 0.0259857177734375, 0.01407623291015625, 0.006130218505859375, 0.06317138671875, 0.0120697021484375, 0.03302001953125, 0.034515380859375, -0.09576416015625, -0.04278564453125, -0.0231170654296875, -0.02813720703125, 0.065673828125, 0.055572509765625, -0.01079559326171875, -0.0217437744140625, 0.00690460205078125, 0.0014886856079101562, 0.01210784912109375, -0.020782470703125, 0.0025959014892578125, 0.026214599609375, 0.022003173828125, 0.0181121826171875, -0.06951904296875, -0.0374755859375, -0.003078460693359375, 0.00389862060546875, -0.043426513671875, 0.0948486328125, -0.0047454833984375, -0.014068603515625, -0.0088958740234375, 0.023529052734375, 0.0010881423950195312, 0.00537872314453125, 0.0150299072265625, 0.0299530029296875, -0.0003600120544433594, -0.0312042236328125, -0.03460693359375, 0.017608642578125, 0.0233154296875, -0.0244140625, 0.0035877227783203125, -0.00820159912109375, 0.00975799560546875, -0.015655517578125, -0.01502227783203125, -0.02996826171875, 0.03173828125, 0.0078277587890625, -0.03759765625, 0.033416748046875, -0.04595947265625, -0.0150146484375, 0.07403564453125, 0.0079193115234375, 0.0037479400634765625, 0.027374267578125, -0.062744140625, 0.033966064453125, 0.023834228515625, 0.007419586181640625, -0.00475311279296875, 0.0257568359375, -0.00490570068359375, 0.0215911865234375, 0.0251312255859375, -0.016632080078125, 0.050994873046875, -0.0199127197265625, 0.0108184814453125, 0.0012044906616210938, 0.044403076171875, -0.016265869140625, -0.00921630859375, -0.01617431640625, 0.004398345947265625, 0.00608062744140625, 0.003253936767578125, -0.035614013671875, -0.006168365478515625, 0.004039764404296875, 0.0013608932495117188, 0.0211944580078125, -0.062103271484375, -0.056854248046875, -0.0194854736328125, 0.03436279296875, 0.03131103515625, -0.07122802734375, 0.0302886962890625, 0.01137542724609375, -0.0010976791381835938, 0.018402099609375, -0.0022735595703125, 0.0004737377166748047, 0.0093994140625, -0.024139404296875, 0.0160675048828125, -0.023406982421875, -0.0081939697265625, 0.01666259765625, 0.0220947265625, 0.049652099609375, -0.04510498046875, 0.03216552734375, 0.0218505859375, 0.051605224609375, 0.07855224609375, 0.011627197265625, -0.00724029541015625, 0.035491943359375, -0.0025882720947265625, -0.02215576171875, -0.04205322265625, 0.01482391357421875, -0.045379638671875, 0.0107421875, 0.00524139404296875, 0.0017681121826171875, 0.0132598876953125, -0.0292205810546875, -0.060821533203125, 0.041473388671875, 0.003246307373046875, -0.0260009765625, -0.032012939453125, 0.01442718505859375, -0.0082855224609375, 0.009185791015625, -0.00594329833984375, -0.00197601318359375, -0.00481414794921875, 0.014068603515625, 0.0113525390625, 0.0117950439453125, 0.04644775390625, -0.0029163360595703125, -0.034698486328125, -0.0086822509765625, -0.0224456787109375, 0.01270294189453125, 0.0194244384765625, -0.003662109375, 0.031402587890625, 0.049591064453125, -0.03533935546875, -0.0029964447021484375, -0.0175018310546875, -0.03271484375, 0.01904296875, 0.03662109375, -0.0226898193359375, -0.00826263427734375, -0.004894256591796875, 0.041351318359375, 0.004184722900390625, 0.00201416015625, 0.00797271728515625, -0.0523681640625, -0.028472900390625, -0.0007314682006835938, 0.007114410400390625, -0.034149169921875, 0.006183624267578125, 0.0013914108276367188, -0.0101165771484375, 0.01453399658203125, 0.0019502639770507812, -0.0106048583984375, -0.002361297607421875, 0.034942626953125, 0.004894256591796875, -0.06134033203125, -0.0243682861328125, 0.0069732666015625, -0.0215911865234375, -0.0233917236328125, 0.0019235610961914062, 0.0237884521484375, -0.0241851806640625, 0.01464080810546875, -0.006256103515625, -0.0047454833984375, 0.0175628662109375, 0.021240234375, 0.0123748779296875, 0.000011742115020751953, 0.0113067626953125, 0.01080322265625, -0.0297088623046875, 0.04583740234375, 0.0271148681640625, 0.056915283203125, -0.05218505859375, 0.0697021484375, 0.0455322265625, 0.01256561279296875, 0.0007643699645996094, 0.0237884521484375, 0.025634765625, 0.022216796875, -0.025238037109375, -0.011871337890625, -0.0012607574462890625, -0.062347412109375, 0.0165557861328125, -0.0260162353515625, 0.0187225341796875, -0.00042366981506347656, 0.009002685546875, -0.0280609130859375, -0.04180908203125, 0.02215576171875 ]
7a55f2954ec2baf831ec4b120adeb02d11c7b078
Wordpress Stackexchange Q: Adding a button to the WYSIWYG editor? I've been looking for a way to add a button to wrap text in for the WYSIWYG editor in Wordpress 3.3.1. I tried this: function enable_more_buttons($buttons) { $buttons[] = 'code'; return $buttons; } add_filter("mce_buttons_3", "enable_more_buttons"); But that did not work as expected. It did display a button, but it brings up a popup window to edit the HTML. In addition to it would be nice to have and . A: I finally found a plugin that did just what I wanted - a button for in the WYSIWYG editor: WYSIWYG Inline Code Command
Q: Adding a button to the WYSIWYG editor? I've been looking for a way to add a button to wrap text in for the WYSIWYG editor in Wordpress 3.3.1. I tried this: function enable_more_buttons($buttons) { $buttons[] = 'code'; return $buttons; } add_filter("mce_buttons_3", "enable_more_buttons"); But that did not work as expected. It did display a button, but it brings up a popup window to edit the HTML. In addition to it would be nice to have and . A: I finally found a plugin that did just what I wanted - a button for in the WYSIWYG editor: WYSIWYG Inline Code Command
wordpress
{ "language": "en", "length": 101, "provenance": "stackexchange_00019.jsonl.gz:416674", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40806" }
[ 0.0143890380859375, -0.013275146484375, -0.01222991943359375, 0.0028934478759765625, 0.001438140869140625, -0.03448486328125, 0.056427001953125, -0.0011262893676757812, 0.007289886474609375, 0.03277587890625, -0.0325927734375, -0.005767822265625, 0.00902557373046875, -0.00792694091796875, -0.027069091796875, -0.01861572265625, 0.03466796875, -0.009307861328125, 0.04022216796875, -0.0159759521484375, 0.0208740234375, 0.0012073516845703125, 0.0201873779296875, 0.0126190185546875, 0.002819061279296875, 0.0196380615234375, 0.09869384765625, -0.0212249755859375, 0.0316162109375, -0.00603485107421875, 0.0157928466796875, -0.045013427734375, 0.0222015380859375, 0.063720703125, -0.09521484375, -0.033905029296875, -0.0225830078125, 0.01407623291015625, -0.033172607421875, 0.033660888671875, 0.0246429443359375, -0.007030487060546875, -0.01904296875, 0.019317626953125, -0.029144287109375, -0.045257568359375, 0.039581298828125, -0.0307159423828125, 0.0149688720703125, -0.033477783203125, -0.0107574462890625, 0.04913330078125, 0.0182647705078125, -0.030731201171875, 0.007801055908203125, 0.032073974609375, -0.04180908203125, 0.0005450248718261719, -0.00029206275939941406, 0.045684814453125, 0.04815673828125, 0.01343536376953125, -0.01187896728515625, -0.00736236572265625, -0.0213775634765625, 0.01364898681640625, -0.0117950439453125, -0.0141754150390625, 0.007305145263671875, -0.0015764236450195312, -0.023162841796875, -0.038665771484375, -0.0004839897155761719, -0.041748046875, 0.03472900390625, 0.0382080078125, -0.049163818359375, -0.023345947265625, 0.037017822265625, 0.01183319091796875, 0.0214996337890625, -0.005283355712890625, 0.02093505859375, 0.0002014636993408203, -1.7881393432617188e-7, 0.01078033447265625, -0.0132904052734375, -0.0204620361328125, -0.005474090576171875, 0.0010986328125, 0.001556396484375, -0.0252838134765625, 0.016571044921875, 0.019683837890625, 0.0034275054931640625, -0.050872802734375, 0.0033817291259765625, -0.015411376953125, 0.002048492431640625, 0.02410888671875, 0.049713134765625, -0.077880859375, 0.108642578125, -0.046112060546875, 0.0004940032958984375, 0.026702880859375, 0.0054168701171875, 0.037750244140625, 0.05047607421875, 0.01123809814453125, 0.01019287109375, 0.033203125, 0.01214599609375, -0.01100921630859375, -0.0196990966796875, -0.02703857421875, -0.0284881591796875, 0.04046630859375, 0.01678466796875, 0.0206451416015625, -0.0134429931640625, 0.00811767578125, -0.04180908203125, 0.00817108154296875, 0.01366424560546875, -0.0037689208984375, 0.0308074951171875, -0.01129913330078125, 0.06451416015625, -0.0306243896484375, -0.035064697265625, 0.0265655517578125, 0.061065673828125, 0.028594970703125, 0.0263214111328125, -0.0027446746826171875, 0.0479736328125, -0.01116180419921875, -0.0059051513671875, 0.019073486328125, -0.0250244140625, -0.022308349609375, -0.0116119384765625, -0.02569580078125, -0.043304443359375, 0.0296478271484375, 0.020050048828125, 0.00965118408203125, -0.01727294921875, -0.11199951171875, 0.045562744140625, -0.0247039794921875, 0.039306640625, 0.00247955322265625, -0.01776123046875, -0.060577392578125, 0.009613037109375, -0.051116943359375, 0.01020050048828125, -0.06988525390625, -0.0237579345703125, 0.00438690185546875, 0.03839111328125, -0.0635986328125, -0.02252197265625, -0.0250244140625, -0.0355224609375, 0.0127410888671875, 0.027587890625, 0.08734130859375, -0.0184173583984375, -0.04071044921875, 0.0190887451171875, 0.0030670166015625, -0.045928955078125, 0.0209197998046875, 0.0295867919921875, 0.00795745849609375, 0.02008056640625, 0.0318603515625, 0.0024585723876953125, -0.0263519287109375, 0.0831298828125, -0.04571533203125, -0.06866455078125, -0.01556396484375, 0.004810333251953125, 0.038604736328125, 0.034576416015625, 0.01032257080078125, 0.040740966796875, -0.0071868896484375, 0.013153076171875, -0.028076171875, -0.007282257080078125, -0.0236663818359375, -0.0265960693359375, -0.0022373199462890625, -0.0157012939453125, 0.02728271484375, -0.00612640380859375, -0.002044677734375, 0.018402099609375, 0.0008883476257324219, -0.045654296875, 0.02825927734375, -0.018585205078125, 0.047637939453125, 0.042724609375, -0.046630859375, 0.016815185546875, -0.01788330078125, -0.00251007080078125, -0.0335693359375, -0.0831298828125, 0.01824951171875, -0.021270751953125, 0.054107666015625, 0.0279998779296875, 0.028717041015625, 0.0521240234375, -0.04608154296875, 0.051361083984375, -0.038482666015625, 0.0272369384765625, -0.04827880859375, -0.0109100341796875, -0.0224151611328125, 0.00821685791015625, 0.004024505615234375, -0.044342041015625, 0.03564453125, 0.07147216796875, 0.056182861328125, -0.0189056396484375, 0.00901031494140625, -0.022430419921875, -0.055389404296875, -0.016143798828125, 0.0552978515625, 0.04400634765625, 0.0296630859375, 0.02520751953125, 0.035125732421875, 0.0496826171875, -0.03021240234375, 0.0205841064453125, -0.010955810546875, -0.0042266845703125, 0.050048828125, 0.003307342529296875, 0.01079559326171875, -0.00020956993103027344, -0.027374267578125, 0.0010900497436523438, 0.0294952392578125, -0.0291900634765625, -0.0017156600952148438, -0.00937652587890625, -0.002017974853515625, -0.00481414794921875, -0.062225341796875, -0.00875091552734375, -0.054595947265625, 0.030609130859375, 0.03143310546875, 0.04510498046875, 0.0390625, -0.044403076171875, 0.01242828369140625, 0.01107025146484375, 0.0396728515625, -0.001979827880859375, 0.0017871856689453125, 0.00412750244140625, -0.00616455078125, -0.036865234375, 0.01107025146484375, 0.0241241455078125, 0.0103302001953125, -0.01308441162109375, -0.0253753662109375, -0.0206756591796875, -0.01343536376953125, 0.041351318359375, -0.0509033203125, 0.00411224365234375, -0.02471923828125, 0.047332763671875, -0.01139068603515625, 0.00402069091796875, 0.0411376953125, 0.01016998291015625, 0.04669189453125, 0.027099609375, -0.0191497802734375, 0.0513916015625, 0.00847625732421875, 0.03369140625, -0.0085296630859375, 0.0015707015991210938, 0.027679443359375, -0.024169921875, -0.01268768310546875, 0.0056610107421875, -0.036346435546875, -0.029327392578125, 0.0203094482421875, -0.005016326904296875, 0.00792694091796875, -0.077392578125, 0.03179931640625, 0.022186279296875, 0.076904296875, -0.056121826171875, -0.06170654296875, -0.0386962890625, 0.0238189697265625, -0.055206298828125, -0.035400390625, 0.01348876953125, -0.09149169921875, -0.00960540771484375, -0.005939483642578125, -0.06207275390625, -0.006580352783203125, 0.03680419921875, -0.001300811767578125, -0.06231689453125, -0.00377655029296875, 0.00258636474609375, -0.0225830078125, -0.019775390625, -0.0037555694580078125, -0.00753021240234375, -0.0030345916748046875, 0.01543426513671875, 0.0102691650390625, -0.0021724700927734375, -0.051055908203125, 0.013214111328125, -0.031707763671875, 0.005764007568359375, 0.046295166015625, 0.060546875, -0.05267333984375, 0.00016236305236816406, -0.0029296875, -0.00018584728240966797, 0.0304107666015625, -0.0137939453125, -0.0255279541015625, -0.024505615234375, -0.03076171875, 0.023712158203125, -0.002925872802734375, 0.006679534912109375, 0.0241241455078125, 0.06793212890625, -0.0196380615234375, 0.004756927490234375, 0.007129669189453125, -0.0042266845703125, 0.046844482421875, -0.029388427734375, -0.0195770263671875, 0.042694091796875, 0.007465362548828125, 0.033782958984375, 0.033233642578125, 0.02960205078125, 0.015289306640625, -0.0007519721984863281, -0.003635406494140625, -0.00688934326171875, -0.052001953125, 0.0001322031021118164, -0.023590087890625, 0.0188446044921875, -0.0159759521484375, -0.0055389404296875, -0.02191162109375, 0.0278167724609375, -0.01094818115234375, -0.0022735595703125, 0.02960205078125, -0.0268402099609375, -0.0031681060791015625, -0.0231781005859375, -0.0162353515625, -0.010345458984375, 0.040130615234375, -0.040557861328125, -0.0263214111328125, -0.0157318115234375, 0.017181396484375, 0.00041866302490234375, -0.035797119140625, -0.0028076171875, -0.012176513671875, 0.0136566162109375, 0.0254364013671875, -0.01198577880859375, 0.02801513671875, -0.0328369140625, 0.07989501953125, 0.01544189453125, -0.0046539306640625, 0.024688720703125, -0.01299285888671875, -0.034454345703125, 0.0277557373046875, -0.0276641845703125, -0.0019216537475585938, 0.0015439987182617188, -0.0299530029296875, -0.09368896484375, -0.0078277587890625, -0.060546875, 0.07293701171875, 0.0280303955078125, 0.004261016845703125, -0.0230560302734375, 0.04833984375, 0.0167999267578125, 0.001590728759765625, 0.05426025390625, 0.026336669921875, 0.01369476318359375, -0.0030498504638671875, 0.03997802734375, -0.0310516357421875, 0.01015472412109375, 0.01241302490234375, -0.0028133392333984375, 0.037811279296875, -0.043212890625, -0.01409912109375, 0.0086212158203125, -0.023651123046875, 0.0189208984375, -0.0299072265625, -0.0335693359375, 0.0498046875, -0.0245819091796875, 0.0022487640380859375, -0.048828125, -0.024627685546875, 0.019256591796875, -0.01442718505859375, -0.0146484375, 0.012298583984375, 0.06683349609375, 0.024993896484375, -0.00914764404296875, -0.019622802734375, 0.005413055419921875, 0.019378662109375, -0.00525665283203125, -0.01117706298828125, -0.00347137451171875, -0.01180267333984375, -0.01910400390625, -0.018157958984375, 0.00104522705078125, -0.0278472900390625, 0.0633544921875, -0.01268768310546875, -0.00817108154296875, 0.013671875, -0.0303497314453125, 0.0251312255859375, 0.008819580078125, 0.004833221435546875, -0.022369384765625, 0.016143798828125, 0.03765869140625, 0.0008931159973144531, -0.0014410018920898438, -0.02545166015625, -0.01043701171875, -0.00730133056640625, 0.0206451416015625, 0.03436279296875, 0.01071929931640625, 0.0071563720703125, 0.0014247894287109375, 0.0115966796875, -0.008270263671875, 0.026275634765625, -0.00518798828125, 0.0253753662109375, 0.044158935546875, 0.005764007568359375, 0.01097869873046875, 0.0053863525390625, 0.0008764266967773438, 0.0254669189453125, 0.0177764892578125, -0.03790283203125, -0.01189422607421875, 0.0261383056640625, 0.04937744140625, 0.01111602783203125, 0.0391845703125, 0.031097412109375, -0.00836181640625, -0.00942230224609375, 0.00872039794921875, 0.0311126708984375, -0.018218994140625, -0.0242767333984375, -0.04351806640625, -0.01226806640625, -0.0201568603515625, 0.036651611328125, 0.006610870361328125, -0.030029296875, 0.0271759033203125, 0.006008148193359375, 0.0279998779296875, 0.0292205810546875, 0.007305145263671875, 0.0198211669921875, 0.01715087890625, -0.01427459716796875, -0.0229644775390625, 0.0023365020751953125, -0.002597808837890625, -0.0044403076171875, -0.0120849609375, 0.0249176025390625, -0.01412200927734375, 0.0030117034912109375, 0.01265716552734375, -0.04400634765625, -0.044677734375, -0.0008215904235839844, 0.025115966796875, -0.0272216796875, -0.0012187957763671875, 0.0273895263671875, -0.00801849365234375, 0.044525146484375, 0.006351470947265625, 0.0131378173828125, -0.044525146484375, -0.0106353759765625, 0.00726318359375, -0.0258331298828125, -0.0281982421875, -0.032470703125, -0.0298004150390625, -0.0080108642578125, -0.0058135986328125, -0.08746337890625, -0.0677490234375, 0.0125579833984375, 0.0226287841796875, 0.04132080078125, -0.01947021484375, 0.005237579345703125, -0.0296478271484375, 0.00704193115234375, -0.030242919921875, 0.01470947265625, 0.00829315185546875, -0.0082550048828125, 0.02362060546875, -0.0167694091796875, -0.03289794921875, -0.036712646484375, -0.0203399658203125, -0.0247955322265625, -0.03082275390625, 0.007045745849609375, -0.005214691162109375, 0.0261077880859375, -0.0098724365234375, 0.002758026123046875, -0.0469970703125, 0.039764404296875, 0.026580810546875, 0.072509765625, 0.0309600830078125, 0.007659912109375, -0.0215606689453125, 0.0362548828125, 0.016815185546875, -0.01555633544921875, -0.0198822021484375, -0.0300445556640625, 0.0170135498046875, -0.03021240234375, -0.03155517578125, 0.001979827880859375, -0.033905029296875, 0.0144195556640625, 0.0251922607421875, -0.0165252685546875, 0.024383544921875, -0.042205810546875, -0.005748748779296875, 0.0019216537475585938, 0.014801025390625, -0.02923583984375, -0.04095458984375, 0.07501220703125, -0.0218353271484375, -0.0074310302734375, -0.0223388671875, 0.060760498046875, -0.0288238525390625, -0.0142669677734375, -0.03375244140625, -0.0016269683837890625, -0.046905517578125, 0.048583984375, 0.0218505859375, 0.0251922607421875, 0.03778076171875, -0.00594329833984375, 0.0229034423828125, -0.0394287109375, -0.0037364959716796875, -0.01387786865234375, -0.01224517822265625, 0.035247802734375, -0.007904052734375, -0.003543853759765625, 0.028045654296875, -0.01148223876953125, 0.03778076171875, 0.058624267578125, 0.063232421875, -0.06829833984375, 0.0003495216369628906, -0.013580322265625, -0.052581787109375, 0.062286376953125, -0.01348114013671875, 0.001251220703125, -0.02984619140625, 0.0771484375, -0.029541015625, -0.00566864013671875, 0.03143310546875, -0.03179931640625, -0.007083892822265625, -0.01177215576171875, 0.050994873046875, 0.0198822021484375, -0.042816162109375, -0.0002536773681640625, 0.04254150390625, -0.01088714599609375, -0.0016412734985351562, -0.0034236907958984375, -0.011688232421875, -0.0260467529296875, -0.045166015625, -0.0132904052734375, -0.03289794921875, 0.0014715194702148438, -0.0010166168212890625, -0.0030670166015625, 0.007587432861328125, 0.0299224853515625, -0.0280303955078125, 0.03076171875, -0.0037593841552734375, -0.0303192138671875, 0.017913818359375, -0.01320648193359375, 0.0103302001953125, -0.0052947998046875, -0.01210784912109375, 0.0101470947265625, -0.00345611572265625, -0.0233001708984375, 0.0037059783935546875, 0.037872314453125, 0.0802001953125, -0.00959014892578125, -0.044769287109375, 0.038909912109375, -0.005710601806640625, -0.009857177734375, -0.031982421875, -0.0212249755859375, -0.061065673828125, -0.0207366943359375, -0.026824951171875, -0.057586669921875, 0.0266876220703125, -0.03265380859375, -0.06390380859375, 0.10992431640625, 0.0050048828125, 0.0301666259765625, -0.007171630859375, 0.04632568359375, -0.05615234375, 0.0020904541015625, 0.0033092498779296875, -0.00640106201171875, -0.0169677734375, -0.0286102294921875, 0.004894256591796875, 0.0084991455078125, -0.0279541015625, 0.03240966796875, 0.03643798828125, -0.0016279220581054688, -0.0016050338745117188, -0.0139312744140625, 0.031463623046875, 0.06494140625, 0.009765625, -0.0197296142578125, 0.05450439453125, -0.0052337646484375, 0.0509033203125, 0.0271148681640625, 0.05731201171875, -0.028289794921875, 0.0253448486328125, 0.051727294921875, -0.0187835693359375, -0.056427001953125, 0.003177642822265625, -0.0026569366455078125, -0.042449951171875, 0.01255035400390625, 0.004302978515625, -0.02081298828125, -0.037689208984375, 0.0537109375, -0.0190582275390625, -0.031280517578125, -0.005218505859375, -0.044097900390625, 0.0233306884765625, -0.00872802734375, -0.026641845703125, -0.0110931396484375, -0.0033416748046875, -0.047210693359375, 0.0298004150390625, -0.016876220703125, 0.05389404296875, -0.00872039794921875, -0.01514434814453125, 0.010589599609375, 0.0321044921875, 0.00589752197265625, -0.0086517333984375, 0.0262298583984375, 0.00140380859375, 0.0034084320068359375, -0.00606536865234375, 0.00794219970703125, 0.015655517578125, 0.0301361083984375, 0.002887725830078125, 0.068603515625, 0.01025390625, 0.024017333984375, -0.01169586181640625, 0.005107879638671875, 0.021240234375, 0.0277557373046875, 0.0021533966064453125, -0.0017852783203125, -0.032928466796875, 0.0254974365234375, -0.00936126708984375, -0.03717041015625, -0.01499176025390625, 0.041656494140625, 0.052276611328125, 0.0156097412109375, -0.026885986328125, -0.01139068603515625, -0.0238037109375, 0.01824951171875, 0.005313873291015625, 0.0225982666015625, -0.0124359130859375, 0.0004024505615234375, 0.0265960693359375, 0.0099945068359375, 0.0145263671875, 0.036163330078125, 0.035736083984375, 0.0401611328125, 0.01177978515625, -0.0025482177734375, 0.058868408203125, -0.0073699951171875, 0.01114654541015625, -0.05523681640625, 0.05108642578125, 0.034393310546875, 0.025177001953125, -0.0199432373046875, 0.0251922607421875, 0.0546875, 0.0018491744995117188, -0.007236480712890625, 0.003459930419921875, -0.01140594482421875, 0.0716552734375, -0.0126190185546875, 0.0433349609375, 0.0328369140625, -0.059661865234375, 0.01081085205078125, 0.004062652587890625, -0.072265625, -0.00499725341796875, 0.0457763671875, -0.049041748046875, 0.030303955078125, -0.0298919677734375, -0.0401611328125, 0.0292510986328125, 0.0220489501953125, -0.00632476806640625, 0.013153076171875, -0.00537109375, -0.0248870849609375, -0.047271728515625, -0.0157318115234375, -0.0286865234375, 0.035919189453125, 0.03729248046875, 0.04998779296875, -0.0037479400634765625, 0.046661376953125, 0.01165008544921875, 0.0032367706298828125, 0.0011653900146484375, 0.0104217529296875, -0.01241302490234375, 0.025299072265625, 0.0167083740234375, -0.024383544921875, -0.0180206298828125, 0.0159454345703125, 0.0198211669921875, -0.0188140869140625, -0.0092620849609375, -0.0203857421875, 0.0190887451171875, 0.007305145263671875, 0.043426513671875, -0.0073089599609375, -0.0248870849609375, -0.052642822265625, -0.01377105712890625, 0.032257080078125, 0.037994384765625, -0.001766204833984375, 0.01126861572265625, 0.0305938720703125, 0.0159149169921875, 0.03326416015625, 0.022369384765625, 0.02166748046875, 0.006252288818359375, -0.015960693359375, -0.029022216796875, -0.044921875, -0.03271484375, 0.01091766357421875, -0.0350341796875, 0.015472412109375, -0.0170745849609375, -0.06658935546875, 0.033203125, 0.053955078125, 0.05975341796875, -0.0074920654296875, 0.0189971923828125, 0.02557373046875, -0.019775390625, 0.01230621337890625, -0.00592041015625, -0.03192138671875, -0.0189361572265625, -0.01727294921875, 0.018798828125, -0.033416748046875, -0.043670654296875, -0.09979248046875, -0.01593017578125, 0.03143310546875, 0.00693511962890625, -0.05841064453125, 0.0136260986328125, -0.01148223876953125, 0.03955078125, -0.0310211181640625, 0.002105712890625, 0.00036263465881347656, 0.0215911865234375, -0.0221405029296875, -0.03253173828125, -0.023406982421875, 0.05377197265625, -0.031768798828125, 0.01611328125, 0.00968170166015625, -0.025177001953125, 0.030029296875, 0.0221405029296875, 0.037322998046875, 0.062347412109375, 0.0128326416015625, -0.00469970703125, 0.029296875, -0.00656890869140625, -0.038482666015625, -0.06304931640625, 0.00014495849609375, -0.041839599609375, -0.0010433197021484375, -0.00937652587890625, 0.00838470458984375, 0.01308441162109375, -0.0582275390625, -0.10638427734375, -0.0242767333984375, -0.00797271728515625, -0.051605224609375, -0.033843994140625, 0.0175628662109375, -0.005504608154296875, 0.0131378173828125, -0.010009765625, -0.0063934326171875, -0.0032672882080078125, 0.0132904052734375, 0.005214691162109375, 0.01345062255859375, 0.01021575927734375, -0.022705078125, -0.0572509765625, -0.007171630859375, -0.0029048919677734375, 0.0151824951171875, 0.033416748046875, -0.0279083251953125, 0.039703369140625, 0.04888916015625, -0.05810546875, -0.05462646484375, -0.025360107421875, -0.0011644363403320312, -0.0182037353515625, -0.057373046875, 0.00795745849609375, -0.0056304931640625, 0.0869140625, -0.00865936279296875, 0.0030345916748046875, -0.031402587890625, 0.03118896484375, 0.007472991943359375, -0.0207672119140625, 0.0220794677734375, 0.0180816650390625, -0.029510498046875, -0.01568603515625, 0.00565338134765625, -0.0201263427734375, 0.014984130859375, 0.03521728515625, -0.0235137939453125, 0.00543975830078125, 0.0305023193359375, -0.00910186767578125, -0.09613037109375, -0.012664794921875, 0.09796142578125, -0.0455322265625, 0.0193939208984375, -0.00036025047302246094, 0.0238189697265625, 0.051544189453125, -0.01165771484375, -0.052001953125, 0.001476287841796875, -0.01617431640625, 0.04583740234375, -0.037933349609375, 0.0242919921875, -0.05322265625, 0.0352783203125, -0.0068817138671875, 0.0209197998046875, -0.01209259033203125, 0.019927978515625, -0.006916046142578125, 0.038421630859375, -0.010711669921875, 0.05511474609375, -0.0243072509765625, 0.0255889892578125, -0.0274200439453125, 0.02056884765625, -0.00799560546875, 0.00353240966796875, 0.0262908935546875, 0.00823974609375, 0.007335662841796875, 0.0263824462890625, -0.0075531005859375, -0.02850341796875, 0.026641845703125, -0.013092041015625, 0.00408935546875, 0.01306915283203125 ]
9a269182ba9f634e5ed2a8c50c46222dd60be4e7
Wordpress Stackexchange Q: Does anyone have any frameworks to setup custom post types and related actions/filters? So I know that setting up custom post types ranges from just registering them to adding custom permalinks, custom sorting, customizing columns in the admin, etc. I was wondering if anyone had a template or framework that they use regularly to set up custom post types in projects? Do you start from scratch every time or do you have a base line you start from that you customize? A: The Custom Post Type Demos by toscho hold some nice basic classes, that you can use. I'd recommend taking a look at this source (as he's a trusted author and a pretty good coder).
Q: Does anyone have any frameworks to setup custom post types and related actions/filters? So I know that setting up custom post types ranges from just registering them to adding custom permalinks, custom sorting, customizing columns in the admin, etc. I was wondering if anyone had a template or framework that they use regularly to set up custom post types in projects? Do you start from scratch every time or do you have a base line you start from that you customize? A: The Custom Post Type Demos by toscho hold some nice basic classes, that you can use. I'd recommend taking a look at this source (as he's a trusted author and a pretty good coder). A: There is the promising Piklist which does a lot more than CPT (settings, widgets) All in a fashionable way and very easy to maintain. (I'm not the author) A: I recommend to check PODS, its very powerful and useful, with deep relations and very easy to use. It save a lot of time and. A: I'm tending to just write code directly for adding Custom Post Types now, but I have used Easy Post Types (http://easyposttypes.com) before, I've found however that they've been slow to bring out updates and never responded to any bug reports I sent to them. I'd also suggest checking out the Magic Fields plugin (http://magicfields.org), since V2 it uses CPTs and offers a lot of useful features.
wordpress
{ "language": "en", "length": 239, "provenance": "stackexchange_00019.jsonl.gz:416675", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40808" }
[ 0.0266265869140625, -0.004405975341796875, -0.006671905517578125, -0.037933349609375, 0.0004169940948486328, 0.002079010009765625, 0.01129150390625, 0.003871917724609375, -0.0203399658203125, 0.00640106201171875, 0.0212249755859375, -0.0008335113525390625, -0.010955810546875, -0.044525146484375, 0.0211334228515625, -0.02203369140625, 0.0216827392578125, -0.0210418701171875, 0.0053253173828125, -0.04669189453125, 0.032073974609375, -0.048309326171875, 0.05712890625, 0.0323486328125, 0.046966552734375, -0.0208587646484375, 0.0274505615234375, 0.0157012939453125, 0.0234222412109375, 0.020599365234375, 0.02679443359375, -0.049896240234375, -0.01239776611328125, 0.03192138671875, 0.018402099609375, 0.032135009765625, 0.0015354156494140625, 0.027587890625, 0.05194091796875, -0.005130767822265625, 0.0239410400390625, -0.0229034423828125, 0.021575927734375, 0.00855255126953125, -0.0015993118286132812, -0.04290771484375, 0.034698486328125, -0.046905517578125, 0.040374755859375, -0.04302978515625, -0.025634765625, -0.01322174072265625, 0.021270751953125, -0.0697021484375, -0.048095703125, -0.05133056640625, 0.0211181640625, -0.01377105712890625, 0.043731689453125, -0.0276336669921875, -0.034942626953125, -0.02996826171875, 0.03515625, -0.005390167236328125, -0.01953125, 0.0010509490966796875, -0.0138397216796875, -0.005123138427734375, -0.0009455680847167969, -0.0003867149353027344, 0.032806396484375, -0.0184783935546875, -0.005306243896484375, -0.031585693359375, 0.01445770263671875, -0.017059326171875, 0.0032329559326171875, -0.0535888671875, -0.006317138671875, 0.02423095703125, -0.0033206939697265625, -0.0197296142578125, 0.0185546875, -0.05596923828125, -0.0078277587890625, -0.04541015625, -0.01409912109375, 0.01218414306640625, -0.0207977294921875, -0.033843994140625, -0.0214691162109375, -0.051666259765625, -0.0303802490234375, 0.0149383544921875, -0.014434814453125, -0.0195159912109375, 0.01361083984375, -0.01113128662109375, 0.006771087646484375, 0.0052642822265625, 0.03289794921875, -0.041473388671875, 0.06689453125, -0.022216796875, -0.012847900390625, -0.0144805908203125, -0.003002166748046875, 0.046112060546875, 0.0447998046875, 0.034423828125, -0.00618743896484375, -0.002376556396484375, 0.00409698486328125, -0.01496124267578125, -0.05303955078125, -0.02227783203125, -0.015045166015625, -0.0438232421875, -0.00514984130859375, -0.042755126953125, 0.0159912109375, 0.02386474609375, 0.056549072265625, 0.00241851806640625, -0.00550079345703125, 0.0176849365234375, -0.01421356201171875, -0.07354736328125, 0.0269317626953125, 0.015960693359375, -0.032562255859375, 0.002384185791015625, 0.049163818359375, 0.035491943359375, 0.01641845703125, -0.0111541748046875, 0.050872802734375, -0.0306549072265625, -0.02508544921875, 0.03924560546875, 0.02081298828125, -0.038818359375, -0.050567626953125, 0.0173492431640625, 0.002658843994140625, 0.0271148681640625, 0.023468017578125, 0.022705078125, -0.006938934326171875, -0.00919342041015625, -0.031463623046875, 0.01361083984375, 0.003246307373046875, 0.0179595947265625, 0.03594970703125, -0.00717926025390625, 0.043212890625, -0.0197906494140625, -0.0006132125854492188, -0.012969970703125, 0.0159149169921875, 0.0007596015930175781, -0.0114898681640625, 0.003070831298828125, -0.0308074951171875, 0.0255889892578125, 0.007244110107421875, 0.0139007568359375, 0.0209503173828125, -0.0032520294189453125, -0.0053253173828125, 0.005035400390625, 0.00525665283203125, -0.0081329345703125, -0.0095367431640625, -0.01552581787109375, -0.01361846923828125, 0.00792694091796875, 0.026092529296875, 0.03131103515625, 0.01284027099609375, -0.016326904296875, 0.0440673828125, 0.005558013916015625, -0.0291595458984375, -0.0081329345703125, 0.014495849609375, 0.01207733154296875, 0.01397705078125, 0.0151519775390625, 0.02972412109375, 0.01531219482421875, -0.046722412109375, 0.0286407470703125, -0.0048980712890625, -0.01508331298828125, -0.044830322265625, -0.005748748779296875, -0.01367950439453125, -0.0008440017700195312, -0.05059814453125, 0.005889892578125, -0.0019550323486328125, 0.04815673828125, 0.0177459716796875, 0.0158233642578125, -0.004547119140625, 0.0208282470703125, 0.0272979736328125, -0.006366729736328125, 0.0216217041015625, -0.011627197265625, -0.0194854736328125, -0.0200347900390625, -0.0517578125, 0.0017452239990234375, 0.006336212158203125, -0.00948333740234375, -0.02880859375, -0.046966552734375, -0.00276947021484375, -0.0169219970703125, -0.00865936279296875, 0.0933837890625, 0.00621795654296875, 0.0037403106689453125, -0.0265655517578125, -0.0078277587890625, -0.045135498046875, 0.0297698974609375, -0.06036376953125, 0.02734375, -0.02532958984375, -0.02081298828125, -0.0177459716796875, -0.01212310791015625, -0.0049591064453125, -0.043365478515625, 0.0133056640625, 0.0472412109375, 0.008056640625, 0.0084228515625, -0.02154541015625, 0.0360107421875, 0.047821044921875, 0.05035400390625, 0.035400390625, 0.01387786865234375, 0.0201416015625, 0.0738525390625, -0.00965118408203125, 0.01045989990234375, 0.003940582275390625, -0.06207275390625, 0.0016345977783203125, 0.033203125, -0.0148162841796875, -0.0224761962890625, 0.028350830078125, -0.0024738311767578125, 0.006679534912109375, 0.00856781005859375, -0.0308990478515625, 0.0074615478515625, 0.06964111328125, 0.00007772445678710938, 0.07501220703125, 0.048431396484375, -0.03411865234375, 0.0008134841918945312, 0.0022449493408203125, 0.01227569580078125, -0.00238037109375, 0.01120758056640625, 0.054473876953125, 0.01251983642578125, -0.02471923828125, -0.02069091796875, 0.00438690185546875, 0.006534576416015625, -0.01206207275390625, 0.0193328857421875, -0.03424072265625, -0.01031494140625, 0.0091705322265625, -0.0650634765625, -0.004871368408203125, 0.00926971435546875, 0.0023517608642578125, -0.043304443359375, 0.012939453125, -0.034271240234375, -0.060150146484375, 0.031890869140625, 0.0123748779296875, -0.058990478515625, -0.00501251220703125, -0.08282470703125, 0.0645751953125, -0.07550048828125, 0.040130615234375, 0.080810546875, -0.038665771484375, 0.051361083984375, 0.0007181167602539062, 0.03619384765625, 0.016845703125, 0.0224761962890625, 0.00885009765625, -0.04351806640625, 0.001949310302734375, -0.01605224609375, 0.023651123046875, 0.07415771484375, -0.0246734619140625, -0.050872802734375, -0.002117156982421875, 0.0440673828125, -0.011260986328125, -0.01898193359375, 0.050628662109375, -0.0439453125, 0.0192718505859375, -0.03399658203125, -0.0227203369140625, -0.0321044921875, -0.01248931884765625, 0.00007528066635131836, 0.00496673583984375, -0.0192718505859375, -0.020538330078125, -0.0302886962890625, -0.04498291015625, -0.017303466796875, 0.01141357421875, -0.005649566650390625, 0.0106201171875, 0.0672607421875, 0.0075225830078125, -0.060302734375, 0.00365447998046875, -0.06195068359375, -0.0237884521484375, 0.042388916015625, -0.0016012191772460938, -0.0289154052734375, 0.05596923828125, -0.00006526708602905273, 0.039459228515625, 0.04827880859375, -0.0310516357421875, -0.021148681640625, -0.0270843505859375, -0.021820068359375, -0.023345947265625, 0.023712158203125, 0.0308380126953125, -0.04833984375, -0.0211334228515625, -0.0767822265625, -0.0190887451171875, 0.006320953369140625, -0.02734375, 0.012908935546875, -0.011627197265625, -0.01953125, -0.03082275390625, 0.04595947265625, 0.016845703125, 0.0244140625, 0.00484466552734375, -0.03790283203125, 0.034149169921875, 0.02008056640625, 0.042999267578125, -0.0224456787109375, -0.03070068359375, -0.06500244140625, 0.05499267578125, -0.00908660888671875, -0.0244140625, -0.00685882568359375, -0.0010499954223632812, -0.005001068115234375, -0.0853271484375, 0.059112548828125, -0.00628662109375, 0.00040221214294433594, -0.0236968994140625, -0.04547119140625, 0.015472412109375, 0.11181640625, -0.02301025390625, 0.01934814453125, -0.0039825439453125, 0.0087432861328125, -0.018310546875, -0.038482666015625, -0.0736083984375, 0.0018787384033203125, -0.033905029296875, -0.01383209228515625, -0.0277862548828125, -0.030181884765625, -0.00058746337890625, -0.034088134765625, -0.020965576171875, -0.035369873046875, 0.0379638671875, -0.0191192626953125, 0.01519012451171875, 0.006710052490234375, 0.0269775390625, -0.0374755859375, -0.01910400390625, -0.0229949951171875, -0.0833740234375, -0.02239990234375, -0.01308441162109375, 0.0477294921875, 0.0167694091796875, -0.042236328125, -0.00812530517578125, 0.033843994140625, 0.0277252197265625, 0.02069091796875, 0.022125244140625, -0.00910186767578125, 0.0274810791015625, -0.04119873046875, -0.005401611328125, -0.039215087890625, -0.0279083251953125, -0.014678955078125, -0.020782470703125, 0.0389404296875, 0.0028362274169921875, 0.006168365478515625, 0.018707275390625, -0.0185699462890625, 0.0009551048278808594, -0.018310546875, -0.03997802734375, 0.013916015625, -0.01593017578125, -0.0056915283203125, -0.0253448486328125, -0.0228424072265625, 0.0159149169921875, 0.0091400146484375, 0.003116607666015625, 0.0037593841552734375, 0.08026123046875, 0.01457977294921875, -0.0032024383544921875, -0.034912109375, 0.0096893310546875, 0.0287322998046875, 0.0121002197265625, 0.0247955322265625, -0.0016107559204101562, -0.00608062744140625, 0.01190185546875, -0.0020618438720703125, -0.020233154296875, -0.006519317626953125, 0.0279541015625, 0.01395416259765625, -0.01073455810546875, 0.01873779296875, -0.0035343170166015625, 0.0288238525390625, -0.01351165771484375, -0.0005812644958496094, -0.0004055500030517578, 0.00789642333984375, 0.0246429443359375, -0.008270263671875, -0.0040740966796875, -0.016387939453125, -0.0360107421875, 0.0283660888671875, -0.0226287841796875, 0.031646728515625, 0.0013942718505859375, -0.003162384033203125, 0.005893707275390625, -0.041900634765625, 0.0243682861328125, 0.0293426513671875, 0.0157928466796875, 0.027801513671875, 0.05584716796875, 0.0238037109375, 0.04010009765625, -0.00897979736328125, -0.015411376953125, 0.07110595703125, 0.00626373291015625, -0.041229248046875, -0.0010919570922851562, -0.0208740234375, 0.0259552001953125, 0.0126190185546875, -0.02459716796875, 0.0325927734375, 0.048187255859375, -0.01258087158203125, 0.02099609375, -0.0247650146484375, 0.01268768310546875, -0.04132080078125, -0.0277862548828125, 0.00586700439453125, -0.004932403564453125, 0.0269317626953125, 0.041595458984375, 0.045318603515625, 0.02471923828125, -0.034393310546875, 0.054595947265625, 0.054718017578125, -0.007476806640625, 0.004749298095703125, 0.0244140625, 0.00030159950256347656, -0.031768798828125, -0.0011281967163085938, -0.03436279296875, -0.0225677490234375, -0.007232666015625, 0.05633544921875, -0.0022335052490234375, -0.00826263427734375, 0.0306854248046875, -0.0223541259765625, -0.0168304443359375, -0.0003139972686767578, 0.0177154541015625, -0.012664794921875, -0.0073089599609375, -0.006633758544921875, 0.008148193359375, 0.01458740234375, -0.0316162109375, 0.04022216796875, -0.0301666259765625, 0.031890869140625, -0.0113067626953125, -0.0152740478515625, 0.0122528076171875, 0.0166473388671875, -0.06512451171875, 0.01302337646484375, 0.0294036865234375, -0.048980712890625, -0.06121826171875, 0.0130462646484375, -0.0198211669921875, 0.0230712890625, -0.021148681640625, 0.0146331787109375, -0.01151275634765625, -0.005748748779296875, -0.0067901611328125, 0.02520751953125, 0.019775390625, -0.004711151123046875, -0.06451416015625, -0.01209259033203125, -0.0345458984375, -0.01082611083984375, -0.099609375, -0.057830810546875, -0.060516357421875, 0.040313720703125, 0.01067352294921875, 0.003871917724609375, -0.0056304931640625, -0.0114288330078125, -0.0166168212890625, 0.0253448486328125, 0.0203857421875, -0.0051422119140625, 0.0087127685546875, 0.062469482421875, -0.0022487640380859375, 0.0760498046875, 0.0267486572265625, 0.025299072265625, -0.04949951171875, -0.016265869140625, 0.0024852752685546875, -0.0635986328125, -0.045989990234375, 0.004642486572265625, -0.050628662109375, 0.051239013671875, 0.039794921875, -0.001678466796875, 0.0225067138671875, -0.07379150390625, -0.0113067626953125, -0.0294952392578125, 0.06451416015625, -0.0777587890625, -0.0244903564453125, 0.0258636474609375, -0.0022029876708984375, 0.04693603515625, 0.01102447509765625, -0.020904541015625, 0.00821685791015625, -0.0016021728515625, 0.017242431640625, 0.007778167724609375, -0.0257415771484375, 0.0235443115234375, 0.043670654296875, 0.01535797119140625, 0.043426513671875, -0.006011962890625, 0.0194244384765625, 0.01287841796875, -0.01132965087890625, -0.03106689453125, -0.037872314453125, 0.038177490234375, 0.01441192626953125, -0.0219573974609375, 0.059173583984375, -0.02545166015625, 0.0116119384765625, 0.06842041015625, 0.0643310546875, -0.09808349609375, 0.0093994140625, 0.0117950439453125, 0.0006113052368164062, 0.027099609375, -0.0006194114685058594, 0.005176544189453125, 0.0036830902099609375, 0.0174713134765625, -0.006771087646484375, -0.03717041015625, -0.002597808837890625, -0.015655517578125, -0.0084381103515625, -0.0309600830078125, 0.038604736328125, 0.00858306884765625, 0.017181396484375, -0.00241851806640625, -0.01837158203125, 0.0205841064453125, -0.00555419921875, 0.0274658203125, -0.033294677734375, 0.00807952880859375, 0.01361846923828125, 0.04595947265625, -0.0307159423828125, 0.0241241455078125, 0.02740478515625, 0.007297515869140625, 0.007843017578125, 0.033233642578125, -0.00951385498046875, -0.00479888916015625, 0.00403594970703125, -0.021240234375, -0.0408935546875, -0.04034423828125, -0.0079345703125, 0.025360107421875, -0.021240234375, 0.0277557373046875, -0.022735595703125, -0.0364990234375, -0.0033473968505859375, 0.0278472900390625, 0.08502197265625, -0.0166015625, -0.0245208740234375, 0.04998779296875, 0.005527496337890625, -0.032073974609375, 0.022613525390625, -0.0338134765625, -0.01922607421875, -0.0218048095703125, -0.01605224609375, -0.058135986328125, 0.029937744140625, 0.003299713134765625, -0.03961181640625, 0.06768798828125, 0.0391845703125, -0.01641845703125, -0.00557708740234375, 0.041107177734375, -0.03271484375, 0.026702880859375, -0.03216552734375, 0.0264739990234375, -0.0264739990234375, 0.015472412109375, -0.060943603515625, 0.0006856918334960938, -0.026123046875, 0.0299072265625, 0.0302886962890625, 0.00531768798828125, -0.017822265625, -0.0156707763671875, 0.022857666015625, 0.01302337646484375, -0.0032596588134765625, 0.0249481201171875, -0.0221405029296875, 0.00865936279296875, -0.00659942626953125, -0.00968170166015625, 0.03857421875, -0.0269317626953125, -0.057220458984375, -0.0218505859375, -0.0011930465698242188, -0.00677490234375, -0.00940704345703125, -0.0272674560546875, -0.0555419921875, 0.000025331974029541016, 0.032135009765625, 0.006633758544921875, 0.0084381103515625, 0.020843505859375, 0.046966552734375, -0.0205230712890625, -0.020660400390625, -0.01395416259765625, 0.045928955078125, 0.011474609375, 0.0265350341796875, 0.0310516357421875, 0.016571044921875, 0.00797271728515625, -0.04071044921875, 0.011444091796875, -0.0006194114685058594, -0.02618408203125, 0.049896240234375, -0.00931549072265625, 0.01470947265625, -0.0599365234375, -0.0177459716796875, 0.011260986328125, 0.05523681640625, -0.0294189453125, -0.0214691162109375, 0.0060882568359375, 0.0220489501953125, 0.01221466064453125, -0.00008785724639892578, 0.034271240234375, 0.004886627197265625, 0.03082275390625, -0.052490234375, -0.01031494140625, 0.037841796875, 0.039337158203125, -0.005023956298828125, -0.0198516845703125, -0.04180908203125, -0.0207366943359375, 0.0035991668701171875, -0.038787841796875, 0.0035457611083984375, 0.025390625, 0.023529052734375, 0.03472900390625, -0.0179290771484375, -0.00799560546875, 0.0157623291015625, 0.006099700927734375, -0.0048980712890625, -0.000370025634765625, -0.0003781318664550781, -0.0279083251953125, -0.00199127197265625, 0.0252685546875, 0.047821044921875, 0.045074462890625, 0.02020263671875, -0.0032711029052734375, 0.037322998046875, 0.022857666015625, 0.046600341796875, -0.0078125, -0.01192474365234375, -0.039337158203125, -0.00209808349609375, 0.001262664794921875, -0.00543212890625, 0.010467529296875, -0.0003986358642578125, 0.02166748046875, -0.01050567626953125, 0.0308685302734375, -0.0012140274047851562, -0.03082275390625, 0.060943603515625, -0.007144927978515625, 0.10430908203125, 0.008026123046875, -0.048248291015625, -0.0000889897346496582, -0.0264129638671875, -0.10040283203125, 0.040252685546875, 0.06256103515625, 0.00128936767578125, -0.033050537109375, 0.00304412841796875, -0.030914306640625, 0.0231781005859375, -0.0005240440368652344, 0.0264129638671875, 0.004405975341796875, -0.0035610198974609375, -0.00760650634765625, -0.032257080078125, -0.02337646484375, 0.003963470458984375, 0.035003662109375, 0.00586700439453125, 0.07891845703125, -0.017974853515625, 0.0184173583984375, -0.007366180419921875, 0.015472412109375, -0.01348114013671875, -0.016937255859375, 0.040618896484375, 0.036041259765625, 0.0200653076171875, -0.03515625, 0.01120758056640625, -0.00020229816436767578, 0.05206298828125, -0.0618896484375, -0.01061248779296875, -0.00981903076171875, 0.0236968994140625, -0.0181427001953125, 0.00949859619140625, -0.0433349609375, -0.0665283203125, -0.03912353515625, 0.009613037109375, -0.016357421875, 0.0037689208984375, 0.004550933837890625, 0.01203155517578125, -0.00386810302734375, -0.0140838623046875, 0.0162353515625, -0.005001068115234375, 0.022125244140625, 0.027008056640625, -0.022979736328125, -0.05584716796875, 0.04620361328125, -0.0031986236572265625, -0.0254058837890625, 0.034271240234375, 0.0279541015625, 0.0222015380859375, -0.06329345703125, 0.0215301513671875, 0.0224456787109375, 0.055908203125, -0.015716552734375, 0.014495849609375, 0.01129150390625, -0.0055694580078125, 0.00574493408203125, 0.00827789306640625, -0.01092529296875, -0.0181884765625, -0.02069091796875, 0.0111236572265625, -0.02728271484375, -0.037811279296875, -0.05389404296875, -0.0270233154296875, 0.0295257568359375, -0.010284423828125, -0.0243682861328125, 0.003658294677734375, -0.0261077880859375, 0.01189422607421875, -0.0096893310546875, -0.03302001953125, 0.0191650390625, 0.048828125, -0.00402069091796875, -0.0276031494140625, -0.0258636474609375, 0.0038509368896484375, -0.02679443359375, 0.059417724609375, 0.06329345703125, -0.05975341796875, -0.03631591796875, 0.06298828125, 0.06256103515625, 0.1075439453125, 0.0274658203125, -0.0177154541015625, 0.01235198974609375, 0.003566741943359375, -0.0172882080078125, -0.055633544921875, 0.0168914794921875, -0.061614990234375, -0.020294189453125, -0.0225830078125, 0.00494384765625, 0.0096435546875, -0.032257080078125, -0.0914306640625, 0.06817626953125, -0.038970947265625, -0.0188751220703125, -0.05657958984375, 0.0300140380859375, 0.01184844970703125, 0.01242828369140625, -0.0069427490234375, -0.034149169921875, -0.032257080078125, -0.0089874267578125, -0.007282257080078125, 0.0203094482421875, 0.0244293212890625, 0.010894775390625, -0.014373779296875, -0.0018377304077148438, -0.005313873291015625, -0.025909423828125, 0.02349853515625, -0.021392822265625, 0.029266357421875, 0.0296173095703125, -0.03961181640625, -0.044586181640625, -0.0237884521484375, -0.00778961181640625, -0.01220703125, -0.0232086181640625, -0.046600341796875, -0.01800537109375, 0.047515869140625, 0.07952880859375, 0.0201873779296875, -0.03704833984375, 0.0055694580078125, -0.0218048095703125, -0.031646728515625, -0.0170745849609375, 0.000025093555450439453, -0.025115966796875, 0.005096435546875, -0.004314422607421875, 0.0037479400634765625, 0.0029697418212890625, -0.0163726806640625, 0.0037555694580078125, 0.006450653076171875, 0.050933837890625, 0.004436492919921875, -0.01016998291015625, 0.05084228515625, 0.033355712890625, -0.01218414306640625, 0.05670166015625, -0.03790283203125, 0.0014162063598632812, 0.059814453125, -0.0151519775390625, -0.00640106201171875, 0.01554107666015625, -0.0245208740234375, 0.0203399658203125, 0.01020050048828125, 0.0259857177734375, -0.01641845703125, 0.0029048919677734375, 0.004352569580078125, 0.040435791015625, 0.00494384765625, 0.021881103515625, -0.06329345703125, 0.0897216796875, 0.004566192626953125, 0.06549072265625, 0.0012350082397460938, -0.001758575439453125, -0.020111083984375, 0.051055908203125, -0.033599853515625, 0.0007791519165039062, -0.03375244140625, -0.0301971435546875, -0.01227569580078125, -0.04461669921875, -0.07232666015625, -0.06488037109375, 0.0077362060546875, 0.02252197265625, -0.0433349609375, 0.041748046875 ]
c20f86dece68378f486986a16e5e19ae49a63e46
Wordpress Stackexchange Q: How to get all posts related to particular category name? I am developing one project and in this project i have to display all the posts related to particular category name. I have searched a lot but i haven't got any idea to implement this. How can i do this so that i can display all the posts from particular category/term A: That would depend on when and how exactly you want to use it - but generally speaking you can either use a custom query , or simply use if in_category('my_cat_name_or_ID') { //do whatever } if you want to learn about custom query : http://codex.wordpress.org/Custom_Queries
Q: How to get all posts related to particular category name? I am developing one project and in this project i have to display all the posts related to particular category name. I have searched a lot but i haven't got any idea to implement this. How can i do this so that i can display all the posts from particular category/term A: That would depend on when and how exactly you want to use it - but generally speaking you can either use a custom query , or simply use if in_category('my_cat_name_or_ID') { //do whatever } if you want to learn about custom query : http://codex.wordpress.org/Custom_Queries A: Just use WP_Query() to generate your custom query, using the category parameters. Assuming you know (or know how to get) the ID of the specific category, as $catid: <?php $category_query_args = array( 'cat' => $catid ); $category_query = new WP_Query( $category_query_args ); ?> Note: you could also pass the category slug to the query, via category_name, instead of cat. Now, just output your loop: <?php if ( $category_query->have_posts() ) : while $category_query->have_posts() : $category_query->the_post(); // Loop output goes here endwhile; endif; ?> A: Below code will fetch post title from particular category name. <?php $myposts = get_posts(array( 'showposts' => 8, //add -1 if you want to show all posts 'post_type' => 'your-post-type', 'tax_query' => array( array( 'taxonomy' => 'your-taxonomy', 'field' => 'slug', 'terms' => 'term-name' //pass your term name here ) )) ); foreach ($myposts as $mypost) { // echo $mypost->post_title . '<br/>'; // echo $mypost->post_content . '<br/>'; // echo $mypost->ID . '<br/><br/>'; echo '<li class="faq"> <p class="title"><a href="' . get_permalink($mypost) . '">' . $mypost->post_title . '</a></p></li>';} ?> A: WP_Query's tax_query is, far and away, going to be the most flexible way to implement this. If you make the question a bit more specific, I should be able to crank out some sample code for you to get you going. A: You can use a plugin (WordPress Category Posts) for that. WordPress Category Posts is a plugin for WordPress that creates a linked list of the posts in a specific category. Use the following code wherever you want to list the posts for a category: wp_cat_posts(get_cat_ID('your_category_name')); Many thanks. A: query_posts('category_name=my_category_name&showposts=5'); while (have_posts()) : the_post(); get_the_content(); endwhile;
wordpress
{ "language": "en", "length": 374, "provenance": "stackexchange_00019.jsonl.gz:416685", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40839" }
[ 0.035400390625, 0.0013742446899414062, -0.0110931396484375, -0.0191802978515625, 0.017578125, -0.028289794921875, 0.0390625, 0.002132415771484375, 0.007717132568359375, 0.0275115966796875, -0.034759521484375, 0.00435638427734375, 0.0242919921875, -0.0198211669921875, 0.003948211669921875, -0.0311737060546875, 0.036407470703125, 0.0018453598022460938, 0.05657958984375, -0.0016651153564453125, 0.024261474609375, 0.0228271484375, 0.04559326171875, 0.0221099853515625, 0.014404296875, -0.03759765625, 0.07366943359375, -0.0238800048828125, 0.017730712890625, -0.026458740234375, 0.028350830078125, 0.005290985107421875, -0.0010156631469726562, 0.0016469955444335938, 0.0269317626953125, -0.0010004043579101562, 0.0190277099609375, 0.0032863616943359375, 0.02569580078125, 0.0089111328125, 0.036834716796875, -0.032012939453125, 0.0256195068359375, 0.035308837890625, 0.019195556640625, -0.034210205078125, 0.0271148681640625, -0.06695556640625, 0.0277862548828125, -0.054840087890625, 0.0038967132568359375, 0.020538330078125, 0.01959228515625, -0.0260162353515625, -0.033905029296875, 0.002712249755859375, 0.002437591552734375, 0.006160736083984375, 0.042572021484375, -0.0614013671875, -0.054443359375, -0.02532958984375, 0.045745849609375, 0.014312744140625, -0.01898193359375, 0.0098876953125, 0.055267333984375, -0.0008344650268554688, -0.036163330078125, -0.0211639404296875, 0.040130615234375, -0.0107879638671875, 0.0241851806640625, 0.02313232421875, -0.0228729248046875, -0.079833984375, 0.0241851806640625, -0.015716552734375, 0.007740020751953125, 0.0037937164306640625, -0.01340484619140625, -0.0299224853515625, -0.01580810546875, -0.000732421875, -0.01456451416015625, 0.005657196044921875, -0.0117950439453125, 0.00421142578125, -0.043060302734375, -0.068115234375, -0.0165252685546875, -0.056182861328125, -0.10699462890625, 0.01251220703125, 0.0248565673828125, -0.049346923828125, 0.018463134765625, 0.058074951171875, 0.0002498626708984375, 0.01206207275390625, -0.027587890625, -0.0287933349609375, -0.005584716796875, -0.0291290283203125, 0.0269927978515625, 0.04522705078125, -0.0003516674041748047, 0.0275115966796875, 0.0709228515625, 0.027618408203125, 0.02197265625, 0.035400390625, -0.016510009765625, 0.0218353271484375, -0.0361328125, 0.02862548828125, -0.034515380859375, 0.00139617919921875, -0.0271453857421875, 0.0379638671875, 0.019775390625, 0.048095703125, 0.004840850830078125, -0.03515625, -0.0086822509765625, -0.0179595947265625, -0.0176239013671875, -0.042327880859375, 0.00983428955078125, -0.00783538818359375, -0.033447265625, 0.02532958984375, 0.0240020751953125, 0.0164642333984375, 0.01155853271484375, -0.00768280029296875, 0.00019633769989013672, -0.0185546875, -0.005405426025390625, 0.0106353759765625, -0.006145477294921875, -0.0222015380859375, 0.0285491943359375, -0.001811981201171875, -0.005649566650390625, -0.0098724365234375, 0.0218505859375, 0.036773681640625, -0.0176544189453125, -0.004634857177734375, 0.0169525146484375, 0.010986328125, 0.026763916015625, 0.00882720947265625, -0.016204833984375, -0.003208160400390625, 0.01561737060546875, -0.01019287109375, -0.0306243896484375, -0.033172607421875, 0.047943115234375, 0.0259857177734375, 0.0289306640625, 0.027099609375, 0.0084075927734375, -0.032440185546875, -0.0665283203125, -0.0181884765625, 0.01515960693359375, 0.007747650146484375, -0.0128173828125, 0.0011196136474609375, 0.0174407958984375, 0.00843048095703125, -0.00222015380859375, 0.0176849365234375, -0.035186767578125, -0.01348876953125, 0.0204010009765625, 0.037445068359375, -0.006229400634765625, -0.0416259765625, -0.0230865478515625, 0.0167236328125, -0.048797607421875, 0.02593994140625, 0.0161895751953125, 0.05120849609375, 0.0010232925415039062, 0.004962921142578125, 0.053314208984375, 0.0167999267578125, -0.037200927734375, -0.01531219482421875, -0.005092620849609375, 0.01041412353515625, 0.00958251953125, 0.006504058837890625, 0.00040268898010253906, -0.004940032958984375, 0.01050567626953125, -0.0016269683837890625, 0.004878997802734375, -0.00722503662109375, -0.04217529296875, 0.0151824951171875, -0.009857177734375, 0.031982421875, 0.0316162109375, 0.02117919921875, 0.00859832763671875, 0.0269012451171875, -0.027801513671875, -0.0533447265625, -0.04803466796875, 0.040740966796875, -0.005008697509765625, -0.03277587890625, -0.00067138671875, -0.02960205078125, 0.0094757080078125, 0.0083465576171875, -0.01227569580078125, 0.053619384765625, 0.0152587890625, 0.0175323486328125, -0.02020263671875, -0.003643035888671875, -0.0226898193359375, 0.055023193359375, -0.09393310546875, -0.0145263671875, 0.030548095703125, 0.050384521484375, -0.0193634033203125, -0.002166748046875, 0.040313720703125, 0.005077362060546875, 0.0146636962890625, 0.01210784912109375, 0.0208892822265625, -0.0101470947265625, -0.0377197265625, -0.0171051025390625, 0.0252685546875, -0.066162109375, -0.0167388916015625, 0.01678466796875, 0.03399658203125, 0.054473876953125, 0.0205535888671875, -0.007404327392578125, 0.0229644775390625, -0.0121307373046875, 0.01358795166015625, 0.0350341796875, 0.0220184326171875, 0.022247314453125, -0.035552978515625, 0.0263824462890625, 0.0019397735595703125, -0.0088043212890625, -0.0428466796875, 0.00012028217315673828, 0.024383544921875, 0.00888824462890625, 0.023895263671875, 0.021148681640625, -0.01378631591796875, 0.008819580078125, 0.0017261505126953125, -0.03973388671875, 0.0036220550537109375, 0.029327392578125, 0.00972747802734375, 0.00797271728515625, -0.031707763671875, -0.0108795166015625, 0.0171051025390625, 0.014007568359375, 0.01076507568359375, 0.044769287109375, 0.0231475830078125, -0.0187530517578125, 0.00446319580078125, -0.0859375, 0.0012445449829101562, 0.007259368896484375, -0.0777587890625, 0.0018415451049804688, 0.005279541015625, 0.06854248046875, -0.00040078163146972656, -0.0034732818603515625, -0.0296173095703125, 0.04522705078125, -0.02655029296875, -0.050262451171875, 0.0380859375, -0.0380859375, 0.026947021484375, 0.0732421875, -0.006664276123046875, 0.023040771484375, -0.000012695789337158203, 0.0038509368896484375, 0.03253173828125, -0.01153564453125, -0.0221099853515625, -0.002033233642578125, -0.06304931640625, -0.0165557861328125, 0.032989501953125, 0.1085205078125, -0.004283905029296875, -0.039581298828125, 0.02593994140625, 0.056365966796875, -0.0170440673828125, -0.0540771484375, 0.01214599609375, -0.020050048828125, 0.01018524169921875, -0.006404876708984375, 0.007808685302734375, -0.0196990966796875, -0.013580322265625, -0.001705169677734375, 0.0263824462890625, -0.0255126953125, -0.056060791015625, -0.028472900390625, -0.059967041015625, -0.0174560546875, -0.00662994384765625, -0.013885498046875, 0.0155029296875, 0.0657958984375, 0.0185546875, -0.049163818359375, 0.01953125, 0.028350830078125, -0.040252685546875, 0.01314544677734375, 0.0031642913818359375, -0.01085662841796875, 0.021087646484375, 0.01824951171875, -0.005023956298828125, 0.033203125, -0.0232086181640625, -0.006103515625, 0.00811767578125, 0.033172607421875, 0.039306640625, -0.00011408329010009766, -0.029754638671875, 0.06231689453125, 0.04669189453125, -0.00737762451171875, -0.011627197265625, -0.019287109375, -0.041595458984375, -0.04595947265625, 0.0205078125, 0.0003561973571777344, -0.0396728515625, -0.01450347900390625, -0.007205963134765625, 0.00627899169921875, -0.0239715576171875, -0.03802490234375, 0.040283203125, 0.0151214599609375, 0.0361328125, 0.01580810546875, -0.013671875, -0.031158447265625, 0.00931549072265625, -0.01751708984375, -0.0038166046142578125, -0.03155517578125, 0.030059814453125, -0.037933349609375, -0.0491943359375, 0.0274810791015625, -0.033905029296875, 0.0017938613891601562, -0.0237274169921875, -0.016571044921875, -0.005123138427734375, 0.085693359375, -0.0016984939575195312, -0.0205078125, -0.031646728515625, -0.0014553070068359375, -0.017120361328125, -0.017730712890625, -0.025146484375, -0.00872802734375, -0.06402587890625, 0.005336761474609375, -0.024017333984375, -0.0313720703125, -0.0294952392578125, 0.0192108154296875, -0.049896240234375, -0.0301666259765625, 0.045196533203125, -0.0625, 0.0428466796875, -0.034332275390625, 0.02740478515625, -0.04632568359375, -0.0152740478515625, -0.035064697265625, -0.060272216796875, -0.018310546875, -0.0017232894897460938, 0.035247802734375, 0.0015716552734375, -0.02630615234375, 0.00975799560546875, 0.056121826171875, 0.0382080078125, 0.0295562744140625, 0.0165863037109375, -0.0213775634765625, 0.032867431640625, -0.0161285400390625, -0.0004940032958984375, -0.033355712890625, -0.0127716064453125, -0.0261383056640625, -0.0015115737915039062, 0.019989013671875, -0.037689208984375, -0.002307891845703125, -0.04388427734375, -0.0087432861328125, -0.043853759765625, -0.00768280029296875, -0.0263671875, 0.00013124942779541016, -0.01407623291015625, -0.0168304443359375, -0.0183563232421875, -0.057098388671875, 0.031280517578125, 0.041015625, -0.02398681640625, 0.004604339599609375, 0.053985595703125, 0.0009112358093261719, -0.035125732421875, -0.08905029296875, 0.0025043487548828125, 0.0269775390625, -0.020904541015625, 0.07403564453125, 0.038818359375, -0.0206451416015625, 0.07366943359375, 0.01288604736328125, 0.0063934326171875, 0.0025005340576171875, 0.023834228515625, -0.0016021728515625, -0.013702392578125, -0.002773284912109375, 0.00031757354736328125, 0.0219268798828125, 0.050750732421875, -0.0236968994140625, -0.0229949951171875, -0.01160430908203125, 0.05987548828125, -0.034332275390625, 0.0219573974609375, -0.04083251953125, 0.0226593017578125, -0.004283905029296875, 0.01537322998046875, 0.02667236328125, 0.0445556640625, -0.010345458984375, -0.0273895263671875, 0.007167816162109375, -0.024200439453125, 0.00432586669921875, 0.0283966064453125, -0.013580322265625, -0.002292633056640625, -0.002445220947265625, -0.060516357421875, -0.01088714599609375, 0.003448486328125, 0.035919189453125, -0.01995849609375, -0.068603515625, 0.00905609130859375, -0.0160980224609375, -0.006183624267578125, 0.0384521484375, -0.021728515625, 0.034942626953125, 0.04766845703125, 0.00811004638671875, 0.010833740234375, -0.038970947265625, 0.0086822509765625, -0.0213775634765625, 0.0228424072265625, -0.0026569366455078125, 0.001953125, 0.003353118896484375, 0.06640625, -0.022674560546875, 0.0615234375, -0.02227783203125, 0.032684326171875, 0.0025615692138671875, 0.037841796875, 0.017791748046875, -0.005008697509765625, 0.009063720703125, -0.016876220703125, -0.014312744140625, -0.045257568359375, 0.0218658447265625, -0.0146636962890625, 0.044219970703125, 0.00202178955078125, -0.04339599609375, 0.03863525390625, -0.0379638671875, -0.0209503173828125, 0.0163421630859375, 0.041351318359375, 0.0005893707275390625, -0.031707763671875, -0.03497314453125, 0.0033626556396484375, 0.0341796875, -0.014678955078125, 0.007427215576171875, -0.044586181640625, 0.0310821533203125, -0.005306243896484375, 0.007732391357421875, 0.00396728515625, -0.0011768341064453125, -0.07537841796875, -0.020782470703125, -0.0057525634765625, 0.0172576904296875, -0.0124359130859375, 0.003948211669921875, -0.056884765625, 0.023834228515625, 0.00630950927734375, 0.05450439453125, -0.03216552734375, -0.03570556640625, 0.00566864013671875, -0.0023956298828125, 0.06060791015625, 0.015380859375, -0.041534423828125, 0.006664276123046875, -0.03497314453125, -0.0097808837890625, 0.00024127960205078125, -0.0341796875, -0.038726806640625, -0.034332275390625, -0.0015497207641601562, 0.00939178466796875, 0.00848388671875, 0.002727508544921875, -0.032928466796875, 0.0219573974609375, 0.0227813720703125, 0.003307342529296875, 0.004077911376953125, 0.024627685546875, -0.01203155517578125, 0.033203125, -0.00890350341796875, -0.0003821849822998047, -0.01386260986328125, -0.022003173828125, -0.0037899017333984375, -0.10736083984375, -0.035186767578125, 0.02947998046875, -0.051513671875, 0.034027099609375, -0.01024627685546875, 0.0071258544921875, 0.0005164146423339844, -0.01198577880859375, 0.023193359375, -0.0182037353515625, 0.008148193359375, -0.01654052734375, -0.0194244384765625, 0.036163330078125, -0.00759124755859375, 0.022247314453125, -0.01409149169921875, -0.045074462890625, 0.04315185546875, -0.00679779052734375, 0.040130615234375, 0.007843017578125, -0.01800537109375, 0.046783447265625, 0.0469970703125, 0.020416259765625, 0.0164337158203125, 0.0279388427734375, 0.0162506103515625, -0.044647216796875, 0.0209503173828125, 0.00798797607421875, -0.019683837890625, 0.039031982421875, -0.0029544830322265625, -0.0309295654296875, 0.0026397705078125, -0.0400390625, -0.0290679931640625, 0.0106353759765625, 0.043975830078125, -0.04229736328125, 0.00844573974609375, 0.049102783203125, 0.011138916015625, -0.0264434814453125, 0.052032470703125, -0.031982421875, -0.0099945068359375, -0.0099334716796875, -0.0518798828125, -0.016082763671875, 0.005680084228515625, 0.00799560546875, 0.005374908447265625, -0.004283905029296875, 0.06268310546875, 0.01415252685546875, -0.0277862548828125, -0.0458984375, 0.0305328369140625, -0.026611328125, -0.04833984375, -0.0254669189453125, 0.041534423828125, -0.0183258056640625, -0.0718994140625, 0.04449462890625, -0.014373779296875, 0.0272369384765625, -0.0001404285430908203, -0.00406646728515625, -0.0205230712890625, 0.05389404296875, -0.03826904296875, 0.034576416015625, 0.025482177734375, -0.041168212890625, -0.00989532470703125, 0.005779266357421875, -0.0137481689453125, 0.0413818359375, -0.030181884765625, 0.0006160736083984375, -0.0289306640625, 0.02880859375, -0.032470703125, -0.05462646484375, 0.0838623046875, -0.045166015625, -0.007389068603515625, -0.00601959228515625, 0.056121826171875, 0.021392822265625, -0.003391265869140625, 0.00510406494140625, -0.01044464111328125, 0.036590576171875, -0.002803802490234375, 0.0117950439453125, -0.007537841796875, -0.0103759765625, -0.053375244140625, 0.01180267333984375, -0.006069183349609375, 0.0221099853515625, 0.01611328125, -0.005176544189453125, 0.0165557861328125, -0.00601959228515625, -0.06414794921875, 0.077392578125, 0.0499267578125, 0.040771484375, -0.070068359375, -0.0242156982421875, -0.005443572998046875, 0.03179931640625, 0.04937744140625, 0.0004425048828125, -0.03460693359375, -0.02392578125, 0.041412353515625, 0.0684814453125, 0.02227783203125, 0.020538330078125, -0.006786346435546875, -0.0079498291015625, 0.06768798828125, 0.003658294677734375, 0.036651611328125, 0.042877197265625, -0.017578125, 0.0113677978515625, 0.025604248046875, 0.053009033203125, 0.0029354095458984375, 0.030303955078125, -0.01300048828125, -0.00876617431640625, 0.02947998046875, -0.04931640625, 0.0170440673828125, 0.06329345703125, 0.06207275390625, -0.05975341796875, -0.01129150390625, -0.03704833984375, 0.06304931640625, -0.0014982223510742188, 0.0277862548828125, 0.03375244140625, 0.0154266357421875, 0.036376953125, 0.015106201171875, 0.0303192138671875, 0.014373779296875, -0.00408172607421875, 0.06610107421875, 0.0284271240234375, 0.01654052734375, -0.050933837890625, -0.0038700103759765625, 0.04437255859375, 0.0693359375, -0.04754638671875, -0.06396484375, 0.01239013671875, -0.00652313232421875, -0.0005269050598144531, 0.020843505859375, 0.004734039306640625, 0.032623291015625, 0.06768798828125, -0.050506591796875, 0.011383056640625, 0.0296173095703125, 0.044219970703125, -0.0020008087158203125, -0.02081298828125, -0.04913330078125, -0.0100860595703125, -0.051971435546875, 0.035186767578125, 0.0286407470703125, 0.039276123046875, -0.00017261505126953125, 0.03729248046875, -0.0090179443359375, -0.0148468017578125, 0.026153564453125, 0.0057373046875, 0.01039886474609375, -0.04925537109375, 0.0178680419921875, -0.03363037109375, -0.006099700927734375, 0.0208892822265625, 0.041656494140625, -0.0004892349243164062, 0.0543212890625, 0.048614501953125, -0.00472259521484375, -0.0007519721984863281, 0.033477783203125, 0.0024166107177734375, 0.0158843994140625, -0.03240966796875, 0.0150909423828125, 0.0206146240234375, 0.002498626708984375, -0.01270294189453125, 0.012054443359375, 0.055145263671875, 0.0094757080078125, 0.0305633544921875, 0.00606536865234375, -0.022857666015625, 0.059417724609375, -0.02740478515625, 0.058349609375, 0.01064300537109375, -0.098388671875, -0.0290985107421875, -0.0487060546875, -0.0200958251953125, 0.046173095703125, 0.041717529296875, -0.0005669593811035156, -0.00594329833984375, -0.003936767578125, -0.02734375, 0.0139923095703125, 0.0046539306640625, 0.012664794921875, 0.007717132568359375, -0.00594329833984375, -0.0120697021484375, -0.01922607421875, 0.0119171142578125, 0.0068511962890625, -0.003658294677734375, 0.03326416015625, -0.00386810302734375, 0.0335693359375, 0.0203094482421875, -0.0179290771484375, 0.042694091796875, -0.051971435546875, -0.041168212890625, 0.0517578125, -0.0062713623046875, 0.0098724365234375, -0.0022411346435546875, -0.0235443115234375, 0.00853729248046875, 0.0264892578125, -0.042236328125, -0.00653839111328125, -0.0238037109375, 0.00759124755859375, -0.0195159912109375, 0.00728607177734375, -0.0210113525390625, 0.00849151611328125, -0.0258331298828125, -0.045928955078125, 0.03375244140625, 0.007099151611328125, 0.0196685791015625, 0.0177154541015625, 0.0146942138671875, -0.0100555419921875, 0.01261138916015625, -0.0010728836059570312, 0.00823974609375, 0.027679443359375, -0.002887725830078125, 0.003551483154296875, -0.01503753662109375, -0.01464080810546875, 0.0016565322875976562, 0.0079345703125, -0.018157958984375, -0.00972747802734375, -0.002593994140625, -0.041259765625, 0.00838470458984375, 0.04388427734375, -0.0102691650390625, 0.0286865234375, -0.0308380126953125, -0.0013647079467773438, 0.0182952880859375, -0.042572021484375, -0.03936767578125, -0.0440673828125, -0.01279449462890625, 0.0207977294921875, -0.021240234375, -0.0297393798828125, -0.023101806640625, -0.00818634033203125, 0.016448974609375, -0.01214599609375, -0.0198822021484375, 0.008758544921875, -0.016632080078125, 0.03399658203125, -0.03485107421875, -0.053955078125, 0.046051025390625, 0.0760498046875, -0.0198516845703125, 0.003963470458984375, -0.0062713623046875, -0.041290283203125, -0.0098724365234375, 0.03363037109375, 0.0223388671875, -0.04278564453125, -0.02056884765625, 0.062042236328125, 0.048095703125, 0.09576416015625, 0.04443359375, -0.01058197021484375, 0.0003752708435058594, 0.0154571533203125, -0.04864501953125, -0.0450439453125, 0.041748046875, -0.0382080078125, -0.0321044921875, 0.0009918212890625, 0.00646209716796875, 0.0255889892578125, -0.0201873779296875, -0.06695556640625, 0.062347412109375, -0.024261474609375, -0.035888671875, -0.060760498046875, 0.0040740966796875, 0.0195159912109375, -0.0345458984375, -0.0294036865234375, -0.008544921875, -0.05767822265625, 0.00933837890625, 0.0186920166015625, 0.02252197265625, 0.0213165283203125, -0.0023040771484375, -0.042877197265625, 0.0188751220703125, -0.0000016689300537109375, 0.023529052734375, -0.0036716461181640625, 0.01800537109375, -0.022247314453125, 0.045166015625, -0.032684326171875, -0.030120849609375, -0.032867431640625, -0.003383636474609375, 0.0092315673828125, -0.0269012451171875, -0.0628662109375, -0.0596923828125, 0.0268096923828125, 0.054443359375, 0.0210418701171875, -0.00756072998046875, -0.048858642578125, -0.04791259765625, 0.01165771484375, -0.026397705078125, 0.0110321044921875, -0.060516357421875, 0.0218353271484375, -0.0034313201904296875, -0.02105712890625, 0.0011854171752929688, 0.0010080337524414062, -0.046142578125, -0.0033702850341796875, -0.03369140625, -0.0202789306640625, -0.0430908203125, 0.052703857421875, -0.028564453125, -0.016937255859375, -0.044525146484375, -0.014556884765625, -0.0110015869140625, -0.059844970703125, -0.0130157470703125, 0.0184173583984375, 0.011566162109375, -0.0004570484161376953, 0.007843017578125, 0.0286865234375, -0.01433563232421875, 0.01263427734375, -0.00341796875, -0.041656494140625, 0.0280303955078125, 0.017181396484375, 0.0282135009765625, -0.031494140625, 0.02947998046875, 0.043914794921875, 0.038604736328125, 0.036651611328125, 0.009033203125, 0.0012655258178710938, 0.069580078125, 0.034942626953125, -0.076171875, 0.030853271484375, -0.068359375, -0.004058837890625, 0.01401519775390625, -0.0179443359375, -0.0023956298828125, 0.0243682861328125, 0.0007519721984863281, -0.01410675048828125, 0.01036834716796875 ]
6057474bf61ca8c47cf72f3946a52c9e71a2c845
Wordpress Stackexchange Q: How to hide a specific category posts in my monthly archive? I am using the twenty eleven theme in my wordpress site. In posts, I have two categories. One is blogs and other is News. The monthly archive displays the posts of all categories while I want that the monthly archive should only display the posts of blogs category. How will I do this? I have also installed the wp_pagenavi plugin for the pagination. A: There are two ways of doing it: You can use a filter to alter the query when viewing an archive page. You will need to find the ID of your category 'blogs' (you can obtain it from the slug using get_term_by). Alternatively you can exclude a particular category by ID. add_action( 'pre_get_posts', 'my_change_query'); function my_change_query($query){ if(is_archive()){ $blog_term = get_term_by('slug', 'blogs', 'category'); $blog_term_id = $blog_term->term_id; $query->set('cat', $blog_term_id);//Include category with ID $blog_term_id //$query->set('cat','-'.$blog_term_id);//Exclude category with ID $blog_term_id } return $query }; or, more commonly, you can alter the archive.php template file and insert the following just above the if(have_posts()). global $wp_query; $args = array_merge( $wp_query->query, array( 'category_name' => 'blogs' ) ); query_posts( $args ); See the Codex on query_posts and WP_Query.
Q: How to hide a specific category posts in my monthly archive? I am using the twenty eleven theme in my wordpress site. In posts, I have two categories. One is blogs and other is News. The monthly archive displays the posts of all categories while I want that the monthly archive should only display the posts of blogs category. How will I do this? I have also installed the wp_pagenavi plugin for the pagination. A: There are two ways of doing it: You can use a filter to alter the query when viewing an archive page. You will need to find the ID of your category 'blogs' (you can obtain it from the slug using get_term_by). Alternatively you can exclude a particular category by ID. add_action( 'pre_get_posts', 'my_change_query'); function my_change_query($query){ if(is_archive()){ $blog_term = get_term_by('slug', 'blogs', 'category'); $blog_term_id = $blog_term->term_id; $query->set('cat', $blog_term_id);//Include category with ID $blog_term_id //$query->set('cat','-'.$blog_term_id);//Exclude category with ID $blog_term_id } return $query }; or, more commonly, you can alter the archive.php template file and insert the following just above the if(have_posts()). global $wp_query; $args = array_merge( $wp_query->query, array( 'category_name' => 'blogs' ) ); query_posts( $args ); See the Codex on query_posts and WP_Query.
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:416689", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40857" }
[ 0.04266357421875, -0.004360198974609375, -0.0145111083984375, -0.005939483642578125, 0.0212860107421875, -0.05535888671875, 0.072998046875, -0.01178741455078125, 0.004795074462890625, 0.024688720703125, 0.0003237724304199219, -0.058563232421875, 0.01036834716796875, -0.0450439453125, -0.024658203125, -0.03863525390625, 0.02716064453125, -0.04290771484375, -0.007663726806640625, -0.007053375244140625, 0.01357269287109375, -0.0030059814453125, 0.0192718505859375, 0.0088653564453125, 0.0191192626953125, 0.0003418922424316406, 0.068603515625, -0.0230255126953125, 0.01702880859375, -0.0167388916015625, 0.024658203125, -0.0340576171875, 0.01374053955078125, 0.00033020973205566406, 0.027496337890625, 0.0208740234375, 0.0165863037109375, 0.013153076171875, 0.027679443359375, 0.0264892578125, 0.0010356903076171875, -0.00821685791015625, -0.0149383544921875, -0.0274658203125, -0.0026912689208984375, -0.0280609130859375, -0.0008678436279296875, -0.037628173828125, 0.01026153564453125, -0.01593017578125, 0.0231475830078125, 0.0361328125, 0.04595947265625, -0.035614013671875, -0.01303863525390625, 0.0216827392578125, 0.006778717041015625, -0.007373809814453125, 0.030120849609375, -0.0267791748046875, -0.0435791015625, -0.0187530517578125, 0.0194244384765625, -0.0205230712890625, -0.00865936279296875, 0.0082855224609375, 0.07232666015625, 0.022674560546875, -0.0811767578125, -0.035491943359375, 0.042205810546875, -0.024932861328125, 0.021209716796875, -0.0166168212890625, -0.051910400390625, 0.0086669921875, 0.00876617431640625, 0.00010633468627929688, 0.0293426513671875, -0.0399169921875, 0.00888824462890625, -0.0019445419311523438, -0.042633056640625, 0.006855010986328125, -0.00007152557373046875, 0.0086517333984375, -0.0136871337890625, -0.00823211669921875, -0.0158538818359375, -0.016510009765625, 0.0012350082397460938, -0.06463623046875, -0.06988525390625, 0.031829833984375, 0.041595458984375, -0.058135986328125, 0.0300445556640625, 0.07501220703125, -0.0231475830078125, 0.0135040283203125, -0.04119873046875, -0.00524139404296875, -0.006603240966796875, -0.024688720703125, 0.03253173828125, 0.05322265625, -0.005306243896484375, 0.04681396484375, 0.06976318359375, 0.0193939208984375, 0.0263824462890625, 0.05352783203125, -0.03680419921875, -0.018646240234375, -0.0184326171875, 0.036956787109375, -0.038330078125, -0.01515960693359375, -0.01030731201171875, 0.01190185546875, 0.0034999847412109375, 0.041595458984375, 0.001373291015625, -0.0316162109375, -0.017333984375, -0.026885986328125, -0.01313018798828125, -0.0207061767578125, -0.00923919677734375, 0.036834716796875, -0.038726806640625, 0.0091705322265625, 0.043212890625, 0.0019130706787109375, -0.0090179443359375, -0.018310546875, 0.046875, -0.00704193115234375, 0.0035648345947265625, -0.010589599609375, 0.030120849609375, 0.006687164306640625, -0.0012521743774414062, 0.0038013458251953125, 0.00940704345703125, 0.0216064453125, 0.0282745361328125, 0.009368896484375, -0.0172882080078125, -0.00482940673828125, -0.032257080078125, 0.011199951171875, 0.04779052734375, 0.005584716796875, -0.064697265625, -0.00826263427734375, 0.0240325927734375, -0.032989501953125, -0.04180908203125, -0.0634765625, 0.00799560546875, 0.01143646240234375, 0.0173492431640625, -0.042938232421875, -0.036346435546875, -0.020416259765625, -0.028289794921875, -0.006755828857421875, 0.019317626953125, -0.0247955322265625, 0.0263214111328125, -0.01433563232421875, 0.0474853515625, 0.0239715576171875, 0.004154205322265625, 0.025970458984375, -0.0098114013671875, 0.01139068603515625, 0.0214996337890625, 0.0284881591796875, -0.004413604736328125, -0.0252685546875, 0.03167724609375, 0.00787353515625, -0.03533935546875, 0.015899658203125, 0.0229034423828125, 0.0027751922607421875, -0.0261688232421875, 0.0184173583984375, 0.0877685546875, 0.08624267578125, -0.057373046875, 0.01282501220703125, 0.00685882568359375, -0.013519287109375, 0.003833770751953125, -0.006916046142578125, 0.0102081298828125, 0.0083160400390625, 0.034210205078125, 0.058258056640625, -0.044281005859375, 0.0265350341796875, -0.07550048828125, 0.0227813720703125, -0.01403045654296875, 0.039642333984375, -0.02264404296875, 0.0499267578125, 0.02386474609375, 0.005878448486328125, -0.0283966064453125, 0.018798828125, 0.0175933837890625, -0.0023136138916015625, -0.006267547607421875, 0.004863739013671875, -0.0322265625, -0.006351470947265625, -0.0302886962890625, -0.00994110107421875, -0.0273284912109375, 0.048431396484375, 0.09075927734375, -0.06585693359375, 0.004730224609375, -0.07464599609375, 0.032012939453125, -0.01335906982421875, -0.09564208984375, 0.05780029296875, 0.031494140625, 0.06683349609375, -0.006866455078125, 0.0096588134765625, 0.027130126953125, -0.02288818359375, 0.0228118896484375, 0.02838134765625, 0.024444580078125, -0.00433349609375, -0.0205230712890625, -0.01788330078125, 0.050872802734375, -0.052490234375, 0.006381988525390625, -0.0210113525390625, 0.005828857421875, 0.027130126953125, 0.0250701904296875, -0.0009584426879882812, 0.0167083740234375, 0.03302001953125, 0.007274627685546875, 0.0152435302734375, 0.005260467529296875, -0.0035858154296875, 0.010650634765625, -0.0005826950073242188, 0.0042724609375, 0.018463134765625, -0.0185089111328125, 0.0225830078125, 0.05804443359375, 0.0268096923828125, 0.053192138671875, 0.03863525390625, -0.034149169921875, 0.01216888427734375, -0.0039215087890625, 0.01018524169921875, 0.0111541748046875, 0.01180267333984375, 0.0007042884826660156, 0.038604736328125, -0.0205535888671875, 0.00266265869140625, 0.00392913818359375, 0.0170440673828125, 0.00341796875, 0.06378173828125, 0.041900634765625, -0.0086822509765625, -0.036285400390625, -0.0147705078125, 0.020660400390625, -0.0111541748046875, -0.0760498046875, -0.03399658203125, -0.0032482147216796875, 0.0662841796875, -0.01812744140625, 0.00830841064453125, -0.0212249755859375, 0.0214385986328125, 0.0056610107421875, -0.0439453125, 0.0413818359375, -0.040557861328125, 0.049957275390625, 0.056976318359375, -0.00839996337890625, 0.0193328857421875, 0.01409912109375, -0.029388427734375, -0.0028972625732421875, 0.04852294921875, 0.0258331298828125, -0.01025390625, -0.032684326171875, 0.0166778564453125, 0.016326904296875, -0.0152587890625, 0.025421142578125, -0.0045318603515625, -0.0007228851318359375, 0.00940704345703125, -0.048675537109375, -0.024658203125, 0.0259552001953125, -0.07769775390625, 0.039520263671875, -0.0063323974609375, -0.041015625, -0.0501708984375, 0.036163330078125, 0.0164794921875, 0.0181427001953125, -0.036712646484375, -0.0714111328125, -0.045074462890625, -0.056854248046875, 0.048095703125, -0.00010144710540771484, -0.001529693603515625, 0.00971221923828125, 0.1363525390625, 0.019683837890625, -0.09747314453125, -0.005863189697265625, 0.0185089111328125, -0.033355712890625, 0.0560302734375, 0.0301055908203125, -0.0379638671875, -0.03472900390625, 0.01255035400390625, 0.05902099609375, 0.0090789794921875, -0.01904296875, 0.0016918182373046875, -0.0007519721984863281, 0.0247344970703125, 0.042144775390625, -0.0172271728515625, -0.0098419189453125, 0.031280517578125, 0.0278778076171875, -0.0028438568115234375, -0.0340576171875, -0.039825439453125, -0.05377197265625, 0.01235198974609375, 0.029693603515625, 0.0172271728515625, -0.0274658203125, 0.002719879150390625, 0.0086669921875, 0.001895904541015625, 0.004474639892578125, -0.044891357421875, 0.042327880859375, 0.01226806640625, 0.016357421875, -0.01088714599609375, 0.0218353271484375, -0.0253448486328125, -0.010986328125, 0.0001519918441772461, 0.0009469985961914062, 0.00014388561248779297, -0.02557373046875, -0.0172119140625, -0.00408935546875, 0.003498077392578125, -0.008209228515625, 0.0256805419921875, -0.0205535888671875, -0.004802703857421875, -0.008270263671875, 0.0266265869140625, -0.06292724609375, -0.0262908935546875, 0.0027523040771484375, 0.00742340087890625, 0.028045654296875, -0.01467132568359375, -0.0130615234375, -0.0308837890625, -0.05426025390625, 0.00704193115234375, -0.00623321533203125, -0.0161590576171875, -0.0227508544921875, -0.0030574798583984375, -0.042572021484375, -0.03363037109375, 0.05511474609375, 0.000652313232421875, 0.037384033203125, -0.01082611083984375, 0.01947021484375, -0.0167236328125, -0.0447998046875, 0.006839752197265625, -0.0687255859375, -0.00870513916015625, -0.0014734268188476562, 0.01995849609375, 0.004436492919921875, -0.0189666748046875, -0.020904541015625, 0.033447265625, 0.001667022705078125, -0.00963592529296875, -0.002197265625, 0.01015472412109375, -0.03399658203125, 0.00677490234375, -0.018951416015625, -0.0264739990234375, -0.0164337158203125, -0.0204315185546875, -0.0270843505859375, 0.0137481689453125, -0.0299530029296875, 0.00031876564025878906, -0.01132965087890625, -0.01050567626953125, -0.061614990234375, -0.045196533203125, 0.00128173828125, -0.0071563720703125, -0.027130126953125, 0.017303466796875, -0.0245208740234375, -0.026214599609375, 0.040130615234375, 0.051239013671875, -0.0253448486328125, 0.0012865066528320312, 0.06622314453125, 0.0191802978515625, -0.039031982421875, -0.0626220703125, 0.0094451904296875, 0.018585205078125, -0.031524658203125, 0.0775146484375, 0.02294921875, -0.00424957275390625, 0.06414794921875, -0.015716552734375, -0.0008630752563476562, -0.029449462890625, 0.0506591796875, 0.0089569091796875, -0.0153961181640625, 0.0128021240234375, -0.018646240234375, 0.0220184326171875, 0.030609130859375, 0.00885009765625, -0.06280517578125, 0.01003265380859375, 0.06170654296875, -0.0124359130859375, 0.02362060546875, -0.035736083984375, 0.00799560546875, -0.01316070556640625, 0.0074310302734375, 0.0258026123046875, 0.033538818359375, -0.007373809814453125, -0.005962371826171875, 0.0204620361328125, -0.0216522216796875, 0.0012807846069335938, 0.0257568359375, -0.0285186767578125, 0.023834228515625, -0.01424407958984375, -0.040924072265625, -0.0167388916015625, 0.007167816162109375, -0.0253448486328125, -0.0244293212890625, -0.044219970703125, -0.0094757080078125, -0.006317138671875, 0.051055908203125, 0.0292816162109375, -0.04803466796875, 0.053253173828125, 0.0164337158203125, 0.004520416259765625, -0.01149749755859375, -0.0850830078125, -0.0372314453125, -0.046630859375, 0.00888824462890625, 0.0163421630859375, -0.00548553466796875, 0.031646728515625, 0.045562744140625, 0.0033473968505859375, 0.046600341796875, -0.0242919921875, 0.00502777099609375, 0.017822265625, 0.037017822265625, 0.03387451171875, -0.03350830078125, -0.00983428955078125, 0.0207672119140625, 0.0219573974609375, -0.0255126953125, 0.0103759765625, -0.003269195556640625, 0.01248931884765625, -0.007793426513671875, -0.033294677734375, 0.039215087890625, -0.0203399658203125, -0.017333984375, 0.02154541015625, -0.017059326171875, -0.0210418701171875, -0.03924560546875, -0.037353515625, 0.011627197265625, 0.0047607421875, -0.01480865478515625, -0.0011663436889648438, -0.035614013671875, 0.0186767578125, 0.01247406005859375, -0.0103302001953125, -0.00386810302734375, -0.00432586669921875, -0.021026611328125, -0.016571044921875, 0.0003924369812011719, 0.03375244140625, -0.01727294921875, -0.017791748046875, -0.0209197998046875, 0.032318115234375, -0.0232696533203125, 0.06976318359375, -0.05853271484375, -0.0206451416015625, 0.01154327392578125, -0.00031447410583496094, 0.07049560546875, 0.0596923828125, -0.0662841796875, -0.00786590576171875, -0.01070404052734375, 0.0031147003173828125, -0.0283355712890625, -0.036773681640625, -0.0239105224609375, 0.0011968612670898438, 0.01103973388671875, 0.0251007080078125, -0.01258087158203125, -0.03350830078125, 0.0002467632293701172, 0.0028095245361328125, 0.01148223876953125, 0.028656005859375, -0.004222869873046875, 0.036895751953125, -0.028106689453125, 0.049530029296875, -0.0066070556640625, -0.01314544677734375, -0.0182037353515625, -0.01467132568359375, -0.00598907470703125, -0.09228515625, 0.0004551410675048828, 0.033477783203125, -0.060455322265625, 0.01873779296875, 0.00811004638671875, 0.0031681060791015625, 0.004726409912109375, 0.00353240966796875, 0.0007658004760742188, -0.01364898681640625, -0.018280029296875, 0.00597381591796875, -0.00470733642578125, 0.0239715576171875, -0.01995849609375, 0.034423828125, -0.01203155517578125, -0.0183258056640625, 0.0166473388671875, -0.0252685546875, 0.0285491943359375, 0.038360595703125, -0.02154541015625, 0.03717041015625, 0.04296875, 0.0186767578125, 0.0285491943359375, 0.0087738037109375, 0.0140838623046875, -0.0186614990234375, -0.0261383056640625, -0.01319122314453125, 0.030242919921875, 0.02874755859375, -0.0250396728515625, 0.0256500244140625, 0.033599853515625, -0.0123748779296875, -0.039947509765625, 0.025665283203125, 0.01222991943359375, -0.0197601318359375, -0.0218048095703125, -0.01081085205078125, 0.00762939453125, 0.010162353515625, 0.01546478271484375, -0.03240966796875, -0.0296630859375, -0.0193328857421875, -0.02490234375, -0.048492431640625, -0.0234222412109375, 0.0294189453125, -0.004550933837890625, 0.021881103515625, 0.019561767578125, 0.02886962890625, -0.063720703125, 0.026763916015625, 0.0416259765625, 0.005146026611328125, -0.048370361328125, -0.006633758544921875, 0.0183563232421875, -0.01523590087890625, -0.09564208984375, 0.0283355712890625, 0.01218414306640625, 0.00354766845703125, 0.0067291259765625, -0.00726318359375, -0.0023784637451171875, 0.044921875, -0.0227203369140625, 0.00719451904296875, 0.01552581787109375, -0.02386474609375, -0.02447509765625, -0.0174102783203125, -0.0006723403930664062, 0.0243988037109375, -0.02581787109375, 0.0178680419921875, -0.0240020751953125, -0.0010251998901367188, -0.01556396484375, -0.043975830078125, 0.0465087890625, -0.0249786376953125, -0.01245880126953125, 0.01031494140625, 0.030029296875, -0.0010023117065429688, -0.01459503173828125, 0.0400390625, -0.052001953125, -0.01557159423828125, 0.0104827880859375, -0.005252838134765625, -0.037017822265625, -0.03948974609375, -0.06854248046875, 0.08428955078125, -0.0217132568359375, 0.04486083984375, 0.00678253173828125, 0.0170745849609375, 0.0006527900695800781, 0.01318359375, -0.034088134765625, 0.0589599609375, 0.0241241455078125, 0.0013332366943359375, -0.050445556640625, -0.006427764892578125, 0.0010118484497070312, 0.016448974609375, 0.0645751953125, 0.01163482666015625, -0.05413818359375, -0.0308074951171875, 0.04730224609375, 0.06494140625, 0.0110015869140625, 0.0374755859375, -0.00623321533203125, 0.043243408203125, 0.0287322998046875, -0.0313720703125, 0.0528564453125, -0.024871826171875, -0.0467529296875, 0.027618408203125, 0.0189361572265625, 0.0411376953125, 0.007720947265625, 0.03594970703125, 0.004169464111328125, -0.00327301025390625, 0.0125274658203125, -0.01983642578125, 0.028900146484375, 0.055816650390625, 0.09002685546875, -0.117919921875, -0.03173828125, -0.03656005859375, 0.058624267578125, 0.0018243789672851562, -0.000022292137145996094, 0.04998779296875, 0.035675048828125, 0.037750244140625, -0.012481689453125, 0.01158905029296875, 0.0006856918334960938, -0.0301513671875, 0.018524169921875, 0.0288543701171875, 0.017791748046875, -0.03558349609375, 0.0012731552124023438, 0.0455322265625, 0.033111572265625, -0.037078857421875, -0.043365478515625, 0.00511932373046875, 0.0163726806640625, -0.01197052001953125, 0.01108551025390625, 0.01290130615234375, 0.041656494140625, 0.07501220703125, -0.050872802734375, 0.00592803955078125, 0.01427459716796875, -0.0084381103515625, -0.027374267578125, -0.039794921875, 0.029296875, 0.01318359375, -0.04364013671875, 0.01268768310546875, 0.01383209228515625, 0.052703857421875, 0.0126495361328125, 0.0307159423828125, -0.023040771484375, -0.0289764404296875, -0.04254150390625, 0.0484619140625, -0.0267333984375, 0.0256805419921875, -0.059722900390625, -0.04168701171875, -0.0087432861328125, 0.04974365234375, -0.00864410400390625, -0.0007390975952148438, 0.0157012939453125, 0.0285491943359375, -0.02056884765625, -0.0229339599609375, 0.0312042236328125, -0.01329803466796875, 0.023956298828125, -0.019439697265625, 0.03851318359375, 0.0154266357421875, -0.004974365234375, -0.0200958251953125, 0.043243408203125, 0.04388427734375, -0.0120697021484375, -0.01026153564453125, 0.00832366943359375, -0.037353515625, 0.004978179931640625, 0.00348663330078125, 0.0172271728515625, 0.01213836669921875, -0.076416015625, -0.0145263671875, -0.047882080078125, -0.045379638671875, 0.0496826171875, 0.045379638671875, -0.013214111328125, 0.004894256591796875, 0.0256195068359375, -0.0283660888671875, 0.007419586181640625, -0.0024394989013671875, 0.031646728515625, 0.01265716552734375, -0.01244354248046875, 0.0163116455078125, -0.042877197265625, -0.03363037109375, -0.01432037353515625, 0.0455322265625, 0.01374053955078125, 0.0183258056640625, 0.01139068603515625, 0.0245361328125, -0.01459503173828125, 0.04400634765625, -0.06658935546875, -0.025360107421875, 0.03826904296875, -0.037322998046875, -0.001338958740234375, 0.02130126953125, 0.0009851455688476562, -0.043121337890625, 0.06878662109375, -0.056610107421875, -0.004673004150390625, -0.045562744140625, 0.0281219482421875, -0.06439208984375, -0.01018524169921875, -0.035186767578125, 0.002246856689453125, -0.030303955078125, -0.04010009765625, 0.035491943359375, 0.0006151199340820312, -0.0008950233459472656, 0.03466796875, -0.0216217041015625, -0.03265380859375, 0.003490447998046875, -0.020355224609375, -0.00487518310546875, 0.035369873046875, 0.02557373046875, 0.01360321044921875, 0.0166473388671875, -0.021240234375, 0.02435302734375, 0.0179595947265625, -0.007007598876953125, 0.0087127685546875, -0.012725830078125, -0.0325927734375, 0.01502227783203125, 0.01091766357421875, -0.012786865234375, 0.022674560546875, 0.004680633544921875, -0.04388427734375, 0.002964019775390625, -0.003520965576171875, -0.0323486328125, 0.0001251697540283203, -0.0222015380859375, 0.0036296844482421875, -0.0017824172973632812, -0.071044921875, -0.059112548828125, -0.0006237030029296875, 0.02838134765625, 0.00775146484375, -0.037139892578125, 0.0193328857421875, -0.038177490234375, 0.037261962890625, -0.0259246826171875, -0.01824951171875, 0.00327301025390625, 0.002490997314453125, -0.033599853515625, 0.01560211181640625, -0.0298004150390625, -0.01259613037109375, -0.0036773681640625, -0.01325225830078125, 0.00521087646484375, -0.0027294158935546875, -0.026885986328125, 0.0024547576904296875, -0.01110076904296875, 0.041839599609375, -0.0255584716796875, -0.006092071533203125, 0.01557159423828125, 0.01593017578125, -0.0248260498046875, -0.049468994140625, 0.015167236328125, -0.0269622802734375, -0.0085906982421875, 0.031402587890625, -0.051849365234375, -0.022491455078125, -0.04815673828125, -0.07623291015625, 0.038848876953125, 0.0037136077880859375, -0.046295166015625, -0.0309906005859375, 0.0297393798828125, -0.0018091201782226562, -0.00650787353515625, -0.006671905517578125, -0.0026302337646484375, -0.006893157958984375, -0.00032019615173339844, 0.0207977294921875, 0.035125732421875, 0.005504608154296875, 0.0177001953125, -0.05279541015625, 0.02459716796875, -0.008819580078125, 0.01363372802734375, -0.01702880859375, 0.0055389404296875, 0.0227813720703125, 0.02386474609375, -0.03277587890625, 0.0164337158203125, 0.00484466552734375, 0.003997802734375, 0.0262298583984375, -0.01690673828125, -0.09765625, -0.037017822265625, 0.06646728515625, 0.06292724609375, 0.034515380859375, -0.013427734375, -0.047119140625, -0.005619049072265625, -0.006847381591796875, -0.0049285888671875, 0.03656005859375, -0.074951171875, -0.00620269775390625, 0.016571044921875, -0.017852783203125, 0.035980224609375, -0.03076171875, -0.0419921875, -0.0036983489990234375, -0.038787841796875, 0.003269195556640625, -0.05194091796875, 0.010223388671875, 0.00426483154296875, -0.0161590576171875, -0.024688720703125, -0.021392822265625, 0.01326751708984375, -0.0248260498046875, -0.0246429443359375, -0.060089111328125, -0.0270843505859375, 0.02392578125, 0.025726318359375, -0.0084686279296875, -0.015228271484375, 0.0156707763671875, 0.042938232421875, -0.0094757080078125, -0.01073455810546875, 0.0291900634765625, -0.0251617431640625, -0.0310516357421875, -0.032379150390625, -0.0034313201904296875, 0.045379638671875, -0.006137847900390625, 0.006561279296875, -0.025360107421875, 0.034149169921875, -0.0168609619140625, -0.0066375732421875, 0.01068115234375, -0.0113525390625, -0.0096588134765625, 0.003955841064453125, -0.0305328369140625, -0.06365966796875, 0.0236358642578125, -0.043975830078125, -0.001979827880859375, 0.0187835693359375 ]
4460fbc56edc92d7b601f76b4addb214d9acf373
Wordpress Stackexchange Q: Check if post is in draft or pending review? Each of our posts are reviews for individual games and we occasionally have to 'pause' the game by changing it from published to pending review. The problem is if the page is indexed by search engines, anyone trying to visit the link will get a 404, which is obviously not desired. I'd like to instead redirect to a listing of all our games. I can think of a few options but I'm not sure which would be preferred. I could just do a temporary 302 redirect from that post to the game listing page. I'm not entirely sure how this will work for SEO however. I could also do a check to see if the post is pending review (in the 404 page?), and if it is, then display the game listing page. I'm not entirely sure how to go about this. I tried finding a function to check if it's in pending review but didn't have any luck. A: post_status is part of the $post object which you can use to determine if it is published, a draft, pending, etc. if( $post->post_status == 'pending' ) // do stuff
Q: Check if post is in draft or pending review? Each of our posts are reviews for individual games and we occasionally have to 'pause' the game by changing it from published to pending review. The problem is if the page is indexed by search engines, anyone trying to visit the link will get a 404, which is obviously not desired. I'd like to instead redirect to a listing of all our games. I can think of a few options but I'm not sure which would be preferred. I could just do a temporary 302 redirect from that post to the game listing page. I'm not entirely sure how this will work for SEO however. I could also do a check to see if the post is pending review (in the 404 page?), and if it is, then display the game listing page. I'm not entirely sure how to go about this. I tried finding a function to check if it's in pending review but didn't have any luck. A: post_status is part of the $post object which you can use to determine if it is published, a draft, pending, etc. if( $post->post_status == 'pending' ) // do stuff A: Sometimes it might be easier to use get_post_status() instead. Example: if( get_post_status() == 'pending' ) { // do stuff } Docs for the get_post_status( $ID ) function ($ID is optional and defaults to the current post ID): https://codex.wordpress.org/Function_Reference/get_post_status
wordpress
{ "language": "en", "length": 238, "provenance": "stackexchange_00019.jsonl.gz:416700", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40893" }
[ 0.042724609375, 0.02081298828125, -0.0112152099609375, 0.0045166015625, 0.01328277587890625, -0.037994384765625, 0.037322998046875, -0.05242919921875, 0.04376220703125, 0.006587982177734375, -0.0109710693359375, -0.00653839111328125, -0.050537109375, -0.028564453125, -0.04486083984375, -0.02490234375, 0.03179931640625, -0.022735595703125, 0.0634765625, 0.0019350051879882812, 0.00959014892578125, 0.004734039306640625, 0.056549072265625, -0.06060791015625, -0.0080718994140625, 0.0255889892578125, 0.0574951171875, -0.01271820068359375, -0.01287841796875, -0.016204833984375, 0.007732391357421875, -0.0214996337890625, 0.0293426513671875, -0.00531005859375, 0.010955810546875, -0.0011320114135742188, 0.0147857666015625, -0.00696563720703125, 0.00698089599609375, 0.004276275634765625, 0.0212860107421875, -0.004764556884765625, -0.0022735595703125, -0.018707275390625, -0.0216827392578125, -0.006473541259765625, 0.0254364013671875, -0.00843048095703125, 0.020721435546875, -0.0214691162109375, 0.01125335693359375, 0.027740478515625, 0.01548004150390625, 0.01522064208984375, -0.0229949951171875, 0.0033283233642578125, -0.02783203125, 0.0287017822265625, 0.037445068359375, 0.003513336181640625, -0.01403045654296875, 0.01282501220703125, -0.0103912353515625, -0.0169525146484375, -0.0189361572265625, 0.00794219970703125, -0.0017232894897460938, 0.019195556640625, -0.033935546875, -0.03662109375, 0.0087432861328125, -0.0262451171875, 0.0008606910705566406, -0.004505157470703125, -0.015869140625, -0.03179931640625, -0.00015473365783691406, -0.03411865234375, 0.006114959716796875, 0.0239715576171875, -0.03497314453125, -0.0012578964233398438, -0.0166778564453125, -0.0321044921875, 0.01433563232421875, 0.008331298828125, -0.02239990234375, -0.0106048583984375, -0.026519775390625, -0.04510498046875, -0.0281524658203125, -0.019775390625, -0.0234832763671875, -0.021331787109375, -0.03851318359375, -0.0274505615234375, 0.032470703125, 0.07257080078125, 0.0049285888671875, 0.016021728515625, -0.004909515380859375, -0.041717529296875, -0.01415252685546875, -0.032501220703125, 0.01548004150390625, 0.042327880859375, 0.000644683837890625, -0.0279388427734375, 0.027618408203125, 0.002285003662109375, -0.01300048828125, 0.0096588134765625, -0.0096282958984375, -0.004230499267578125, -0.04345703125, 0.00710296630859375, -0.0272979736328125, -0.003490447998046875, -0.01467132568359375, 0.00015294551849365234, 0.03533935546875, 0.04351806640625, 0.043609619140625, -0.030364990234375, 0.0029354095458984375, 0.0187530517578125, -0.036651611328125, -0.07281494140625, 0.0268707275390625, 0.0614013671875, -0.0132904052734375, -0.0017385482788085938, -0.0204620361328125, -0.0457763671875, -0.035003662109375, -0.02545166015625, 0.00824737548828125, 0.01313018798828125, -0.03118896484375, 0.0051116943359375, -0.022247314453125, -0.01419830322265625, 0.010498046875, -0.03759765625, -0.02764892578125, 0.0234832763671875, 0.0276031494140625, 0.00047779083251953125, -0.033905029296875, -0.05059814453125, -0.02032470703125, 0.007587432861328125, 0.047210693359375, -0.009613037109375, -0.024383544921875, -0.045196533203125, -0.007656097412109375, -0.0233917236328125, 0.0027904510498046875, -0.041534423828125, 0.04522705078125, 0.0106353759765625, 0.0240631103515625, 0.0045013427734375, -0.0175323486328125, -0.01500701904296875, -0.0687255859375, -0.020172119140625, 0.0240020751953125, 0.0188446044921875, -0.0028858184814453125, -0.01708984375, 0.03509521484375, -0.02032470703125, -0.03192138671875, 0.00341796875, 0.046722412109375, -0.021820068359375, 0.02630615234375, 0.0239715576171875, -0.042510986328125, -0.0198974609375, 0.0360107421875, -0.0465087890625, -0.0305328369140625, 0.03717041015625, 0.0215301513671875, 0.0250244140625, -0.00562286376953125, 0.004062652587890625, 0.0318603515625, 0.046112060546875, -0.0509033203125, 0.016571044921875, -0.03143310546875, -0.038360595703125, 0.042572021484375, -0.00910186767578125, 0.00478363037109375, 0.0286407470703125, 0.024017333984375, 0.01080322265625, -0.032318115234375, -0.011260986328125, -0.010833740234375, -0.048126220703125, 0.0159912109375, 0.0198211669921875, -0.025054931640625, 0.031036376953125, 0.025848388671875, -0.02239990234375, -0.03936767578125, 0.045562744140625, 0.04144287109375, 0.002841949462890625, -0.028564453125, -0.0298614501953125, -0.00577545166015625, 0.0013360977172851562, -0.01317596435546875, 0.01355743408203125, -0.03814697265625, -0.00949859619140625, 0.0484619140625, -0.0235443115234375, 0.025665283203125, -0.03076171875, 0.0672607421875, 0.0175933837890625, -0.0070648193359375, -0.0264129638671875, 0.0606689453125, 0.058258056640625, 0.01410675048828125, 0.00807952880859375, 0.033905029296875, -0.11077880859375, 0.00913238525390625, 0.06634521484375, 0.015350341796875, 0.023773193359375, -0.0175018310546875, 0.039642333984375, 0.01690673828125, -0.037841796875, -0.006061553955078125, 0.032135009765625, 0.057037353515625, 0.1014404296875, -0.05511474609375, 0.0031299591064453125, -0.0000368952751159668, -0.01256561279296875, -0.003612518310546875, 0.052032470703125, 0.0029010772705078125, -0.0246429443359375, -0.0087890625, 0.037261962890625, -0.0031299591064453125, 0.0136566162109375, 0.00012862682342529297, -0.00799560546875, -0.0035839080810546875, -0.01169586181640625, 0.0128021240234375, 0.01910400390625, -0.0227203369140625, -0.031829833984375, 0.0299835205078125, 0.01544952392578125, 0.009246826171875, 0.047607421875, -0.004337310791015625, 0.016326904296875, -0.00928497314453125, -0.03179931640625, 0.0284881591796875, 0.033111572265625, -0.03692626953125, 0.038238525390625, -0.006717681884765625, -0.0263671875, -0.05096435546875, -0.0271453857421875, 0.00862884521484375, -0.0416259765625, 0.0245513916015625, 0.0236358642578125, 0.05133056640625, 0.020965576171875, 0.01318359375, 0.02020263671875, -0.02227783203125, -0.0191802978515625, 0.0010881423950195312, -0.0491943359375, 0.0589599609375, -0.025482177734375, 0.002819061279296875, 0.07232666015625, 0.047607421875, -0.017059326171875, -0.00862884521484375, 0.031341552734375, 0.0182647705078125, -0.03277587890625, -0.02899169921875, -0.00518798828125, -0.0467529296875, -0.023712158203125, 0.0333251953125, -0.0213775634765625, 0.04876708984375, 0.0071868896484375, 0.011505126953125, 0.01318359375, -0.07012939453125, -0.0625, -0.034454345703125, -0.055419921875, 0.0156707763671875, -0.0186767578125, -0.00797271728515625, -0.00817108154296875, -0.002933502197265625, 0.017547607421875, -0.040313720703125, -0.0182037353515625, -0.066162109375, -0.048065185546875, -0.07452392578125, 0.0288238525390625, -0.00482177734375, 0.0238800048828125, 0.0115814208984375, 0.034576416015625, -0.0008893013000488281, -0.07635498046875, -0.02789306640625, 0.0474853515625, -0.004489898681640625, 0.00787353515625, -0.0445556640625, 0.059234619140625, -0.038787841796875, 0.0184326171875, -0.0028553009033203125, 0.0113983154296875, -0.0206146240234375, -0.00864410400390625, -0.02777099609375, 0.006015777587890625, -0.0096893310546875, -0.005527496337890625, 0.031158447265625, 0.004703521728515625, -0.005031585693359375, -0.033294677734375, -0.002765655517578125, -0.00821685791015625, -0.0347900390625, -0.051849365234375, -0.00559234619140625, 0.006641387939453125, -0.024932861328125, -0.0020923614501953125, 0.003925323486328125, 0.013763427734375, 0.07275390625, -0.0240631103515625, 0.025054931640625, -0.0241241455078125, -0.0295257568359375, -0.07684326171875, 0.0164794921875, -0.0015077590942382812, 0.0301055908203125, -0.0030059814453125, 0.023101806640625, -0.03802490234375, 0.037017822265625, -0.074462890625, -0.048675537109375, 0.0059356689453125, -0.11090087890625, -0.0096893310546875, -0.03662109375, 0.02850341796875, 0.0033397674560546875, 0.07232666015625, -0.030242919921875, 0.00585174560546875, -0.055419921875, -0.02178955078125, 0.014801025390625, -0.0545654296875, -0.007640838623046875, 0.01020050048828125, -0.0204620361328125, 0.0012340545654296875, -0.0130157470703125, -0.0207672119140625, -0.0460205078125, 0.00435638427734375, -0.0276336669921875, -0.018707275390625, 0.0160064697265625, -0.018829345703125, 0.03509521484375, -0.0137786865234375, 0.013427734375, -0.0009584426879882812, 0.00403594970703125, -0.050994873046875, -0.03839111328125, -0.01267242431640625, 0.0097808837890625, 0.033477783203125, 0.000789642333984375, -0.01016998291015625, 0.01207733154296875, 0.04534912109375, 0.005115509033203125, 0.05499267578125, -0.046661376953125, -0.0308990478515625, 0.0233612060546875, 0.0175323486328125, -0.02606201171875, 0.0091400146484375, -0.0184783935546875, 0.01316070556640625, 0.0139312744140625, 0.030303955078125, -0.035919189453125, -0.03277587890625, 0.00012862682342529297, -0.0261077880859375, -0.04888916015625, -0.0215606689453125, 0.054443359375, 0.046051025390625, -0.01113128662109375, 0.0170440673828125, -0.0282440185546875, -0.037872314453125, 0.0010242462158203125, -0.02239990234375, -0.0181884765625, 0.01275634765625, 0.0006113052368164062, 0.01666259765625, 0.0019521713256835938, 0.0372314453125, -0.0015478134155273438, 0.041473388671875, -0.0077667236328125, 0.03326416015625, 0.02972412109375, -0.0162353515625, 0.00739288330078125, 0.00841522216796875, -0.065185546875, 0.08074951171875, -0.041717529296875, 0.0300445556640625, -0.03729248046875, -0.0226593017578125, -0.00397491455078125, 0.028350830078125, 0.02435302734375, -0.026641845703125, 0.02288818359375, 0.004901885986328125, 0.0261993408203125, -0.041656494140625, 0.0439453125, -0.016571044921875, -0.07025146484375, 0.017547607421875, 0.0253448486328125, 0.00029087066650390625, 0.0313720703125, -0.00688934326171875, 0.046661376953125, 0.0458984375, 0.01015472412109375, -0.00746917724609375, 0.01204681396484375, 0.006168365478515625, 0.04852294921875, 0.00959014892578125, 0.00487518310546875, -0.03607177734375, -0.00513458251953125, 0.026763916015625, 0.0009908676147460938, -0.04864501953125, 0.0113525390625, 0.0012807846069335938, -0.022735595703125, 0.0213470458984375, 0.0234832763671875, -0.006053924560546875, 0.035308837890625, -0.013031005859375, 0.017822265625, 0.05230712890625, 0.02301025390625, -0.0081787109375, 0.00421905517578125, 0.00026798248291015625, -0.000904083251953125, 0.01873779296875, 0.06927490234375, 0.0290374755859375, 0.0269317626953125, -0.0361328125, 0.0228729248046875, 0.03582763671875, -0.0187530517578125, 0.0268096923828125, 0.0419921875, -0.001605987548828125, -0.019012451171875, 0.0202178955078125, -0.01580810546875, -0.0182342529296875, -0.0228424072265625, -0.0099334716796875, -0.020782470703125, 0.00930023193359375, 0.07489013671875, 0.033355712890625, -0.037994384765625, 0.003086090087890625, 0.047515869140625, 0.0193328857421875, -0.01953125, 0.006256103515625, 0.01406097412109375, 0.055572509765625, -0.0283660888671875, 0.01428985595703125, -0.024505615234375, 0.0111083984375, -0.0091400146484375, -0.042938232421875, 0.0196685791015625, 0.031524658203125, -0.040679931640625, -0.0599365234375, 0.01371002197265625, -0.0179595947265625, 0.044921875, -0.0204925537109375, -0.02874755859375, 0.02764892578125, -0.023651123046875, -0.0123138427734375, 0.01122283935546875, 0.00887298583984375, 0.006313323974609375, 0.014068603515625, 0.049591064453125, 0.007770538330078125, -0.017852783203125, -0.03314208984375, -0.055419921875, -0.0311279296875, -0.039031982421875, -0.046417236328125, -0.0166168212890625, 0.01549530029296875, 0.0262451171875, 0.0286865234375, 0.0165557861328125, -0.032989501953125, -0.015899658203125, 0.0084228515625, 0.0282745361328125, 0.0220794677734375, 0.0211944580078125, 0.01010894775390625, 0.003185272216796875, 0.0297393798828125, 0.0196075439453125, -0.0212554931640625, -0.048492431640625, -0.0098114013671875, 0.0031642913818359375, -0.0523681640625, -0.0084686279296875, 0.0112457275390625, -0.032440185546875, -0.00530242919921875, 0.0080718994140625, 0.002269744873046875, -0.01271820068359375, 0.01506805419921875, 0.0161590576171875, -0.01532745361328125, -0.00681304931640625, 0.029815673828125, -0.0196075439453125, 0.02471923828125, -0.036773681640625, -0.026763916015625, 0.00440216064453125, 0.0177459716796875, 0.002323150634765625, -0.0197601318359375, -0.017852783203125, 0.032073974609375, -0.061676025390625, 0.03948974609375, 0.05572509765625, 0.036773681640625, 0.04412841796875, 0.01120758056640625, 0.0180206298828125, -0.00629425048828125, 0.0224609375, 0.008148193359375, -0.04156494140625, 0.094482421875, 0.026336669921875, -0.03753662109375, 0.0697021484375, -0.03936767578125, -0.0217742919921875, 0.0888671875, 0.031402587890625, -0.11199951171875, -0.00229644775390625, 0.0158538818359375, 0.003055572509765625, -0.019073486328125, -0.0321044921875, -0.0027217864990234375, -0.033843994140625, 0.0302734375, 0.0118408203125, -0.0413818359375, -0.00959014892578125, -0.00214385986328125, 0.007198333740234375, -0.04388427734375, 0.04486083984375, 0.0015888214111328125, -0.09747314453125, 0.0164947509765625, 0.06585693359375, -0.041778564453125, -0.031951904296875, 0.0142669677734375, 0.02740478515625, 0.0009737014770507812, -0.0037250518798828125, 0.07501220703125, -0.01279449462890625, 0.0236053466796875, 0.0066375732421875, 0.01508331298828125, 0.0211944580078125, 0.041778564453125, 0.0011358261108398438, -0.0204315185546875, 0.0311126708984375, -0.06427001953125, -0.039947509765625, 0.014068603515625, -0.006683349609375, -0.02032470703125, 0.027069091796875, 0.01540374755859375, -0.038116455078125, -0.005504608154296875, -0.00647735595703125, -0.015625, 0.036163330078125, -0.0246429443359375, -0.019256591796875, 0.01751708984375, 0.010833740234375, 0.00626373291015625, -0.002201080322265625, 0.0289306640625, -0.0517578125, -0.0258636474609375, 0.007274627685546875, -0.03936767578125, -0.031341552734375, -0.028961181640625, -0.07025146484375, 0.037689208984375, 0.00917816162109375, 0.042755126953125, 0.0097198486328125, -0.0030155181884765625, -0.0179901123046875, -0.020477294921875, -0.04913330078125, 0.06591796875, -0.012786865234375, 0.06488037109375, -0.042327880859375, 0.00879669189453125, 0.0268707275390625, -0.01041412353515625, 0.048004150390625, 0.00928497314453125, -0.0104827880859375, 0.0194091796875, 0.08050537109375, 0.03680419921875, 0.016357421875, 0.0145111083984375, -0.02423095703125, 0.0303192138671875, 0.00611114501953125, -0.048919677734375, 0.031402587890625, -0.0474853515625, -0.035125732421875, -0.0128631591796875, 0.04193115234375, 0.0379638671875, -0.03662109375, 0.02325439453125, -0.0804443359375, 0.0059356689453125, 0.0660400390625, 0.040191650390625, 0.0416259765625, -0.00823974609375, 0.025360107421875, -0.059478759765625, 0.01230621337890625, -0.00974273681640625, 0.0386962890625, -0.00914764404296875, 0.03271484375, -0.01148223876953125, 0.0194854736328125, 0.0257415771484375, -0.00939178466796875, 0.0217742919921875, 0.035491943359375, -0.04095458984375, 0.045166015625, 0.06634521484375, 0.039764404296875, 0.03936767578125, 0.01537322998046875, 0.046112060546875, 0.04730224609375, -0.03631591796875, 0.0228271484375, 0.01409912109375, -0.001918792724609375, 0.003814697265625, -0.051605224609375, 0.0027866363525390625, -0.0205078125, -0.0289306640625, -0.045806884765625, -0.01264190673828125, 0.0033359527587890625, 0.0202484130859375, -0.0225982666015625, -0.042633056640625, 0.00717926025390625, 0.00782012939453125, -0.0265960693359375, -0.0224151611328125, 0.01837158203125, 0.06427001953125, 0.0158843994140625, 0.0218658447265625, -0.025054931640625, -0.0117034912109375, 0.005462646484375, -0.020751953125, 0.00730133056640625, -0.00485992431640625, -0.05853271484375, -0.036590576171875, 0.06561279296875, 0.057830810546875, 0.034393310546875, -0.004421234130859375, 0.03936767578125, 0.022918701171875, -0.0178070068359375, -0.00525665283203125, 0.0115203857421875, -0.0095062255859375, -0.03564453125, -0.0325927734375, -0.01154327392578125, 0.02392578125, 0.006526947021484375, 0.0307159423828125, 0.028106689453125, 0.01111602783203125, -0.0230712890625, 0.055328369140625, -0.01284027099609375, -0.03387451171875, 0.0061798095703125, 0.026336669921875, 0.06280517578125, 0.01529693603515625, -0.0236358642578125, -0.0185546875, 0.0095062255859375, 0.0015459060668945312, -0.0202484130859375, 0.01499176025390625, -0.006134033203125, 0.0293121337890625, 0.0538330078125, -0.0260162353515625, 0.0289764404296875, -0.00789642333984375, 0.0394287109375, 0.05096435546875, 0.0107574462890625, 0.03717041015625, -0.031524658203125, -0.01337432861328125, 0.0208587646484375, 0.011566162109375, -0.01398468017578125, 0.0501708984375, 0.00873565673828125, -0.0025653839111328125, -0.02642822265625, -0.004291534423828125, -0.04962158203125, -0.03973388671875, 0.0149078369140625, -0.03106689453125, -0.0338134765625, 0.0252685546875, -0.04974365234375, -0.00247955322265625, 0.037017822265625, -0.019134521484375, 0.041839599609375, -0.03466796875, -0.0005726814270019531, -0.06365966796875, -0.030975341796875, -0.03656005859375, -0.034271240234375, 0.0139312744140625, 0.00777435302734375, 0.0020503997802734375, -0.0017461776733398438, 0.01361846923828125, 0.01476287841796875, -0.022369384765625, -0.039947509765625, 0.01552581787109375, -0.0379638671875, 0.00920867919921875, 0.0181732177734375, 0.007251739501953125, 0.037017822265625, 0.01473236083984375, -0.01165008544921875, 0.033935546875, 0.007518768310546875, -0.00844573974609375, 0.0181427001953125, 0.046417236328125, -0.0249786376953125, -0.053985595703125, -0.0009889602661132812, -0.01129913330078125, -0.0006628036499023438, -0.0285797119140625, 0.020263671875, -0.024017333984375, -0.0025615692138671875, -0.0016202926635742188, -0.0008392333984375, -0.0176849365234375, -0.00482940673828125, 0.033233642578125, -0.018829345703125, 0.037322998046875, -0.042724609375, -0.00569915771484375, -0.01519775390625, 0.01690673828125, 0.00262451171875, -0.01329803466796875, -0.025054931640625, -0.02532958984375, 0.039093017578125, 0.012847900390625, 0.035736083984375, -0.055206298828125, 0.009307861328125, -0.01861572265625, -0.012359619140625, -0.017791748046875, -0.024017333984375, 0.0223541259765625, -0.022705078125, -0.037994384765625, -0.0628662109375, -0.0021209716796875, -0.0386962890625, 0.026641845703125, -0.0217437744140625, 0.0095672607421875, 0.01202392578125, -0.018707275390625, -0.03411865234375, 0.004364013671875, -0.0029010772705078125, -0.0035419464111328125, -0.057373046875, 0.038330078125, 0.03118896484375, -0.0274810791015625, -0.036651611328125, 0.005031585693359375, -0.03167724609375, -0.032989501953125, -0.0679931640625, 0.0299835205078125, 0.01340484619140625, -0.0015439987182617188, -0.0287017822265625, -0.007411956787109375, -0.01026153564453125, 0.0037860870361328125, -0.004291534423828125, 0.0799560546875, -0.0008215904235839844, 0.0017557144165039062, -0.05133056640625, -0.007419586181640625, -0.032989501953125, 0.01139068603515625, -0.020843505859375, 0.0032100677490234375, 0.0126953125, 0.050201416015625, -0.020050048828125, -0.005603790283203125, 0.0123443603515625, -0.0185546875, 0.01187896728515625, -0.01763916015625, -0.07501220703125, -0.04095458984375, 0.077880859375, 0.05804443359375, 0.033203125, -0.0194091796875, 0.027435302734375, -0.00484466552734375, -0.041656494140625, 0.0024242401123046875, 0.0191650390625, -0.059356689453125, -0.01010894775390625, 0.0275726318359375, 0.006549835205078125, -0.020843505859375, -0.01654052734375, -0.031158447265625, -0.0178070068359375, -0.0237579345703125, -0.0012350082397460938, 0.00238800048828125, -0.0213775634765625, 0.0229339599609375, -0.033935546875, -0.01149749755859375, 0.0196685791015625, 0.01111602783203125, -0.01812744140625, 0.02166748046875, 0.01812744140625, 0.05908203125, -0.060577392578125, -0.043060302734375, 0.029144287109375, 0.0114898681640625, -0.00969696044921875, -0.0021419525146484375, -0.0218963623046875, -0.0244140625, -0.0153045654296875, -0.051116943359375, 0.0181121826171875, -0.0266265869140625, -0.0261993408203125, 0.0888671875, -0.005489349365234375, 0.09222412109375, 0.0019474029541015625, 0.05218505859375, 0.020660400390625, -0.03485107421875, 0.060699462890625, -0.0303955078125, -0.01071929931640625, 0.0060882568359375, 0.003360748291015625, -0.044158935546875, 0.037384033203125, -0.0186309814453125, 0.015960693359375, 0.01568603515625 ]
3a38e25652c69fdf201d493d8c794284eb33acc6
Wordpress Stackexchange Q: Nice way to print_r arrays So you know how Drupal has functions in modules like Devel that allow you to output arrays in a nice format like dsm($array) or krumo($array)... Does WordPress have an equivalent or a nice way of displaying print_r($array)? A: You can install and use Krumo with WordPress (or any PHP app really). There's the Hikari Krumo plugin that simplifies use, though check the comments there, there's an error that you'll need to manually fix to get it working with latest WP. There's also the WordPress Debug Bar plugin which you might find useful. EDIT- Another option I've recently discovered, Kint; screenshot:
Q: Nice way to print_r arrays So you know how Drupal has functions in modules like Devel that allow you to output arrays in a nice format like dsm($array) or krumo($array)... Does WordPress have an equivalent or a nice way of displaying print_r($array)? A: You can install and use Krumo with WordPress (or any PHP app really). There's the Hikari Krumo plugin that simplifies use, though check the comments there, there's an error that you'll need to manually fix to get it working with latest WP. There's also the WordPress Debug Bar plugin which you might find useful. EDIT- Another option I've recently discovered, Kint; screenshot: A: For this kind of stuff, I wrote REF (requires PHP 5.3). Among many other features, it displays contents of DocBlock comments and linkifies PHP-internal classes, methods and functions (links point to the PHP manual). It also handles WordPress functions (links point to queryposts.com). Here's the output of $GLOBALS at the setup stage of WordPress in HTML mode (r($GLOBALS); in functions.php): A: If you just wrap the print_r() in <pre> tags it will output beautifully. If you're looking for a bit better diagnostics than that, black box and the debug bar posted by @Milo are my gotos. A: Also you can use the plugin Debug Objects; list also scripts and styles. The Plugin has many more options for dev and debugging, but also this feature. Alternative is this source, you find informations and the post about this topic here: add_action('wp_footer', 'fb_urls_of_enqueued_stuff'); add_action('admin_footer', 'fb_urls_of_enqueued_stuff'); function fb_urls_of_enqueued_stuff( $handles = array() ) { global $wp_scripts, $wp_styles; // scripts foreach ( $wp_scripts -> registered as $registered ) $script_urls[ $registered -> handle ] = $registered -> src; // styles foreach ( $wp_styles -> registered as $registered ) $style_urls[ $registered -> handle ] = $registered -> src; // if empty if ( empty( $handles ) ) { $handles = array_merge( $wp_scripts -> queue, $wp_styles -> queue ); array_values( $handles ); } // output of values $output = ''; foreach ( $handles as $handle ) { if ( ! empty( $script_urls[ $handle ] ) ) $output .= $script_urls[ $handle ] . '<br />'; if ( ! empty( $style_urls[ $handle ] ) ) $output .= $style_urls[ $handle ] . '<br />'; } echo $output; } A: Why not just use xdebug? Looks pretty neat to me, by default. There is also Kint, http://code.google.com/p/kint/ but I found the dropdowns more confusing, then the full output of xdebug. A: I created a Kint plugin that works really well. I also integrates with the Debug Bar plugin. You can download it at: http://wordpress.org/extend/plugins/kint-debugger/ There are a few functions to help you out with WordPress specific globals: * *dump_wp_query() *dump_wp() *dump_post() For printing arrays in a styled, collapsible format you would do the following. $foo_bar = array( 'foo' => 'bar', 'bar' => 'oof', 'rab' => 'foo' ); d($foo_bar); //Styled s($foo_bar); //Un-styled
wordpress
{ "language": "en", "length": 475, "provenance": "stackexchange_00019.jsonl.gz:416720", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/40952" }
[ 0.0077972412109375, -0.006855010986328125, -0.0280609130859375, 0.0135955810546875, -0.0192108154296875, -0.021942138671875, 0.015655517578125, -0.0306243896484375, 0.03179931640625, 0.007373809814453125, -0.002971649169921875, -0.00518798828125, -0.0236968994140625, -0.03662109375, -0.003223419189453125, -0.0158538818359375, 0.037933349609375, -0.0198211669921875, 0.0260162353515625, -0.0034046173095703125, -0.01128387451171875, 0.03363037109375, 0.020416259765625, 0.0296630859375, -0.0200347900390625, 0.04010009765625, 0.055328369140625, -0.021697998046875, -0.004535675048828125, -0.007366180419921875, -0.0002715587615966797, -0.012939453125, 0.02166748046875, 0.0216064453125, 0.00580596923828125, 0.0277862548828125, 0.0428466796875, -0.0224609375, 0.0030956268310546875, 0.036895751953125, -0.0164031982421875, 0.00783538818359375, 0.03070068359375, -0.06036376953125, -0.012420654296875, 0.0180816650390625, -0.01279449462890625, -0.01654052734375, -0.00415802001953125, 0.0006871223449707031, -0.005340576171875, 0.032257080078125, -0.01230621337890625, 0.034332275390625, 0.01062774658203125, 0.010650634765625, -0.0850830078125, 0.0255126953125, 0.01898193359375, -0.0087432861328125, 0.01544189453125, -0.0268707275390625, 0.038360595703125, 0.03936767578125, 0.01800537109375, 0.0190887451171875, -0.00620269775390625, 0.0130157470703125, -0.034881591796875, 0.003482818603515625, 0.009918212890625, -0.049957275390625, 0.0014095306396484375, -0.04974365234375, -0.03204345703125, 0.02203369140625, -0.0166168212890625, -0.04046630859375, 0.0215911865234375, -0.0113067626953125, -0.020050048828125, -0.00310516357421875, -0.062225341796875, 0.00685882568359375, -0.001117706298828125, 0.0214996337890625, -0.01358795166015625, -0.015655517578125, -0.04315185546875, -0.0132904052734375, -0.0311431884765625, -0.0141143798828125, -0.083984375, 0.0190277099609375, 0.01435089111328125, 0.006866455078125, -0.0382080078125, -0.02972412109375, 0.0196380615234375, 0.01100921630859375, 0.0292205810546875, -0.032684326171875, 0.0214691162109375, -0.007598876953125, -0.030731201171875, 0.03363037109375, 0.0584716796875, 0.04425048828125, -0.01110076904296875, -0.006809234619140625, -0.01549530029296875, -0.0227203369140625, -0.024078369140625, -0.046783447265625, 0.03515625, 0.07476806640625, -0.0202789306640625, 0.052825927734375, 0.0263671875, 0.04522705078125, -0.01215362548828125, 0.0102081298828125, 0.05364990234375, 0.00818634033203125, 0.0238037109375, 0.0298919677734375, -0.0154571533203125, -0.052978515625, -0.006988525390625, 0.049835205078125, -0.01480865478515625, -0.0087432861328125, -0.00530242919921875, 0.01389312744140625, -0.01666259765625, -0.02655029296875, 0.02752685546875, -0.01399993896484375, 0.01190948486328125, 0.037872314453125, -0.038970947265625, -0.061279296875, 0.016510009765625, 0.0119171142578125, 0.0283660888671875, 0.02838134765625, 0.0300750732421875, 0.0008940696716308594, 0.001255035400390625, -0.002414703369140625, -0.028961181640625, 0.0262298583984375, -0.0002567768096923828, -0.00012695789337158203, 0.040618896484375, 0.01377105712890625, -0.0243988037109375, 0.005725860595703125, 0.003803253173828125, 0.0279541015625, -0.0017251968383789062, -0.0233612060546875, 0.00027561187744140625, -0.0267333984375, -0.033905029296875, 0.0180816650390625, -0.038848876953125, -0.00519561767578125, 0.023193359375, -0.03515625, 0.0166778564453125, -0.008941650390625, 0.037200927734375, -0.01236724853515625, -0.0027008056640625, 0.040252685546875, -0.044189453125, -0.019744873046875, 0.0611572265625, 0.01776123046875, 0.0033817291259765625, -0.02081298828125, 0.0200347900390625, 0.0195465087890625, -0.03790283203125, 0.043487548828125, -0.01479339599609375, 0.0253448486328125, 0.019439697265625, -0.0049591064453125, 0.004032135009765625, 0.0266876220703125, -0.04449462890625, 0.04815673828125, -0.020233154296875, -0.0350341796875, 0.002513885498046875, 0.0005922317504882812, -0.0217132568359375, 0.0015935897827148438, -0.0309295654296875, 0.033111572265625, -0.01308441162109375, -0.0103912353515625, -0.06427001953125, 0.0148773193359375, -0.036773681640625, 0.0635986328125, -0.0421142578125, -0.003204345703125, 0.0248260498046875, -0.010406494140625, -0.0487060546875, 0.032257080078125, -0.0162811279296875, 0.012115478515625, -0.0205841064453125, 0.049346923828125, 0.01904296875, -0.0012903213500976562, 0.029388427734375, -0.026641845703125, 0.02899169921875, 0.024169921875, 0.027130126953125, -0.04425048828125, -0.0100860595703125, -0.0299224853515625, -0.0023937225341796875, -0.01462554931640625, -0.04205322265625, 0.06219482421875, -0.02508544921875, -0.00566864013671875, -0.0036563873291015625, -0.007144927978515625, 0.019561767578125, -0.0277557373046875, 0.017791748046875, 0.037017822265625, 0.022674560546875, 0.04913330078125, -0.0146331787109375, -0.0030536651611328125, 0.08758544921875, 0.0184478759765625, 0.0172882080078125, -0.0212554931640625, -0.0172882080078125, -0.00777435302734375, -0.0029754638671875, 0.008880615234375, 0.0050506591796875, -0.06097412109375, -0.018829345703125, 0.04144287109375, -0.0196533203125, 0.049407958984375, -0.0511474609375, 0.010284423828125, -0.006561279296875, 0.0170745849609375, 0.027801513671875, -0.00730133056640625, -0.031524658203125, 0.035186767578125, 0.0052947998046875, 0.009429931640625, -0.014251708984375, 0.007556915283203125, 0.00809478759765625, -0.011962890625, 0.00399017333984375, 0.01215362548828125, -0.056488037109375, 0.01031494140625, -0.01409912109375, 0.02276611328125, -0.005283355712890625, -0.00852203369140625, -0.0014019012451171875, 0.0703125, 0.0235137939453125, -0.026763916015625, -0.015167236328125, -0.0120391845703125, -0.0203704833984375, -0.0311737060546875, -0.054290771484375, 0.0017251968383789062, 0.0093994140625, 0.07086181640625, -0.01369476318359375, -0.0042266845703125, -0.01953125, 0.0281219482421875, 0.055938720703125, -0.04864501953125, 0.0282745361328125, -0.00832366943359375, 0.05316162109375, 0.0643310546875, 0.0133514404296875, -0.0021610260009765625, -0.0203857421875, 0.07421875, 0.00566864013671875, -0.0237579345703125, -0.042510986328125, -0.02587890625, -0.0211334228515625, -0.05462646484375, 0.02008056640625, -0.0008182525634765625, 0.0203704833984375, -0.0305938720703125, -0.00872039794921875, 0.01113128662109375, -0.09075927734375, -0.0731201171875, 0.0309600830078125, -0.0738525390625, -0.051666259765625, -0.017059326171875, -0.0487060546875, 0.005672454833984375, 0.01309967041015625, -0.01568603515625, 0.00955963134765625, -0.016326904296875, -0.050018310546875, -0.040283203125, -0.06591796875, -0.0025882720947265625, 0.00399017333984375, 0.021240234375, 0.01241302490234375, -0.01239013671875, 0.028350830078125, -0.005859375, 0.03265380859375, 0.048675537109375, -0.014190673828125, -0.018951416015625, 0.03173828125, -0.041839599609375, -0.040130615234375, -0.0007781982421875, 0.03875732421875, 0.0016679763793945312, -0.0285797119140625, -0.00093841552734375, -0.0171661376953125, -0.0211334228515625, -0.01364898681640625, 0.0095062255859375, 0.0300750732421875, -0.0123748779296875, -0.0122833251953125, -0.054840087890625, 0.020904541015625, 0.00562286376953125, -0.022552490234375, -0.0308990478515625, 0.023193359375, -0.0196533203125, -0.03656005859375, -0.0146636962890625, -0.032073974609375, -0.022003173828125, -0.04022216796875, -0.0048065185546875, 0.01221466064453125, -0.01163482666015625, 0.0038909912109375, 0.03143310546875, -0.0080108642578125, -0.019012451171875, 0.0164642333984375, -0.009307861328125, -0.0028018951416015625, -0.006195068359375, -0.00302886962890625, -0.006481170654296875, -0.050079345703125, 0.058197021484375, -0.033233642578125, 0.003971099853515625, -0.04583740234375, -0.0245208740234375, -0.0179290771484375, 0.08734130859375, -0.0286865234375, -0.015380859375, 0.0110321044921875, 0.03167724609375, -0.0308837890625, -0.043975830078125, -0.0025539398193359375, -0.035491943359375, -0.052734375, -0.0316162109375, -0.004886627197265625, -0.036956787109375, 0.0037288665771484375, 0.0223236083984375, -0.04193115234375, -0.042205810546875, 0.00853729248046875, -0.012237548828125, -0.039825439453125, -0.0004107952117919922, -0.043365478515625, -0.036834716796875, -0.008331298828125, -0.0191650390625, -0.0732421875, -0.030364990234375, -0.003936767578125, 0.08843994140625, 0.0305023193359375, -0.07916259765625, 0.0374755859375, 0.08935546875, -0.06707763671875, 0.005886077880859375, -0.0060577392578125, 0.06890869140625, -0.0009899139404296875, -0.0209503173828125, -0.0258331298828125, -0.0233154296875, -0.030975341796875, -0.031036376953125, -0.0202484130859375, -0.0093536376953125, 0.0023651123046875, -0.0244598388671875, 0.00948333740234375, -0.0113677978515625, -0.041717529296875, -0.021820068359375, -0.032989501953125, -0.018096923828125, -0.026702880859375, -0.0035190582275390625, 0.0005021095275878906, -0.047149658203125, -0.004383087158203125, -0.04705810546875, -0.0012273788452148438, 0.0300750732421875, 0.0160675048828125, -0.005779266357421875, 0.00537109375, -0.06597900390625, -0.0164794921875, 0.019012451171875, 0.0036220550537109375, -0.003574371337890625, -0.0247650146484375, -0.0229644775390625, 0.04443359375, -0.032257080078125, -0.036285400390625, -0.019927978515625, 0.028289794921875, 0.0009860992431640625, -0.0145721435546875, -0.003421783447265625, -0.031829833984375, 0.057830810546875, 0.0264129638671875, -0.0108642578125, 0.0035915374755859375, 0.01434326171875, 0.048187255859375, -0.026763916015625, 0.00909423828125, -0.0419921875, -0.041015625, 0.032928466796875, -0.004253387451171875, 0.04693603515625, 0.0068359375, -0.0004286766052246094, 0.0155181884765625, -0.00806427001953125, 0.039276123046875, 0.02130126953125, 0.022003173828125, -0.0128631591796875, 0.058685302734375, -0.01374053955078125, 0.01129913330078125, 0.0019178390502929688, 0.0015230178833007812, -0.00414276123046875, 0.00681304931640625, -0.04931640625, -0.0227813720703125, 0.01427459716796875, 0.03680419921875, 0.0018987655639648438, 0.0110321044921875, 0.0258331298828125, 0.0238037109375, 0.0197296142578125, 0.00461578369140625, -0.0167236328125, 0.00894927978515625, -0.0192413330078125, -0.0012407302856445312, -0.021697998046875, -0.0098876953125, -0.03070068359375, 0.092041015625, -0.06463623046875, 0.0462646484375, -0.0014905929565429688, 0.030303955078125, 0.0027027130126953125, 0.0439453125, -0.00394439697265625, -0.0055999755859375, 0.03125, -0.0012712478637695312, 0.00560760498046875, -0.016387939453125, -0.01280975341796875, 0.02203369140625, 0.015777587890625, -0.0180816650390625, -0.002872467041015625, 0.01251983642578125, -0.01326751708984375, 0.0002636909484863281, 0.0030269622802734375, -0.0257415771484375, -0.034942626953125, -0.002017974853515625, 0.007415771484375, 0.002193450927734375, -0.00824737548828125, 0.012939453125, -0.02935791015625, 0.01397705078125, 0.01995849609375, -0.046051025390625, 0.0009670257568359375, -0.008270263671875, -0.01470184326171875, -0.07733154296875, -0.0231170654296875, 0.02490234375, -0.08416748046875, -0.036224365234375, -0.002048492431640625, -0.0219879150390625, 0.025970458984375, -0.06707763671875, 0.050994873046875, -0.0195465087890625, 0.0016307830810546875, -0.08038330078125, 0.0273284912109375, 0.052734375, 0.08074951171875, -0.0919189453125, -0.0186614990234375, -0.042572021484375, -0.027587890625, 0.0167388916015625, 0.0199432373046875, -0.06732177734375, 0.0135955810546875, 0.0042266845703125, -0.0002944469451904297, 0.0003955364227294922, -0.0171966552734375, -0.02618408203125, 0.05548095703125, 0.035125732421875, 0.0445556640625, 0.027496337890625, -0.00528717041015625, -0.0006895065307617188, 0.03167724609375, 0.0325927734375, 0.01097869873046875, -0.0197296142578125, -0.048309326171875, 0.0179290771484375, -0.046661376953125, -0.0300445556640625, -0.01548004150390625, 0.0191497802734375, 0.0007944107055664062, -0.001293182373046875, -0.01172637939453125, 0.0184173583984375, 0.004055023193359375, 0.0178070068359375, -0.00502777099609375, -0.03057861328125, -0.01531982421875, 0.00009417533874511719, -0.00595855712890625, -0.01500701904296875, 0.00769805908203125, 0.009246826171875, 0.020599365234375, -0.008087158203125, -0.008636474609375, 0.004711151123046875, -0.0226898193359375, 0.0045928955078125, 0.0309600830078125, 0.06683349609375, -0.0172882080078125, 0.019195556640625, 0.054473876953125, -0.0081939697265625, -0.005107879638671875, -0.01125335693359375, 0.04296875, -0.0027923583984375, 0.01270294189453125, -0.01398468017578125, 0.033721923828125, 0.01226043701171875, -0.005374908447265625, -0.008819580078125, 0.01470947265625, 0.01390838623046875, -0.02081298828125, -0.0036163330078125, -0.017303466796875, -0.02288818359375, 0.0250244140625, 0.03314208984375, -0.03460693359375, -0.08770751953125, 0.0182647705078125, -0.01349639892578125, 0.01071929931640625, 0.0003440380096435547, 0.0057220458984375, 0.006134033203125, -0.0093841552734375, 0.0775146484375, 0.033721923828125, -0.039794921875, 0.00007861852645874023, 0.00753021240234375, 0.0159454345703125, -0.029693603515625, 0.023468017578125, -0.04449462890625, 0.00740814208984375, -0.018035888671875, 0.0038299560546875, -0.034881591796875, 0.017059326171875, 0.005359649658203125, 0.001995086669921875, 0.0284271240234375, 0.023773193359375, 0.0160064697265625, -0.037841796875, 0.0243377685546875, -0.03594970703125, 0.029388427734375, -0.015899658203125, -0.001995086669921875, 0.044708251953125, -0.02935791015625, 0.00946044921875, -0.0018758773803710938, 0.016845703125, -0.0253448486328125, -0.0114593505859375, 0.09210205078125, 0.041168212890625, -0.0657958984375, -0.00763702392578125, 0.021942138671875, -0.00421905517578125, 0.0021724700927734375, 0.031768798828125, -0.0838623046875, -0.0240631103515625, 0.01568603515625, 0.0154876708984375, 0.0215911865234375, 0.03759765625, -0.0213775634765625, 0.01763916015625, -0.0189666748046875, -0.0258636474609375, 0.02496337890625, 0.0034198760986328125, 0.00473785400390625, 0.006389617919921875, -0.008453369140625, 0.0064697265625, 0.023223876953125, 0.024993896484375, -0.0229949951171875, -0.01517486572265625, 0.006778717041015625, 0.054473876953125, 0.03515625, 0.0184173583984375, 0.0210418701171875, 0.01354217529296875, 0.03802490234375, 0.004848480224609375, -0.03692626953125, -0.0012121200561523438, -0.017181396484375, 0.053314208984375, 0.08282470703125, -0.072998046875, 0.0259246826171875, 0.03936767578125, 0.006744384765625, 0.01155853271484375, -0.0161285400390625, -0.048614501953125, -0.01348114013671875, -0.022308349609375, -0.0443115234375, -0.00792694091796875, 0.0017957687377929688, 0.004215240478515625, 0.0185699462890625, 0.003757476806640625, 0.00926971435546875, 0.0004987716674804688, -0.07293701171875, -0.0027637481689453125, 0.01396942138671875, 0.02056884765625, 0.0212860107421875, 0.049346923828125, 0.0161895751953125, 0.04339599609375, 0.0162200927734375, 0.0280609130859375, 0.034515380859375, -0.01247406005859375, -0.0033245086669921875, 0.0066986083984375, 0.0219573974609375, -0.024017333984375, -0.0281524658203125, 0.06793212890625, 0.01861572265625, -0.01386260986328125, -0.049774169921875, 0.0034618377685546875, 0.0084228515625, 0.0124664306640625, 0.007724761962890625, 0.0229339599609375, -0.039093017578125, 0.031341552734375, -0.03851318359375, -0.052978515625, -0.0011339187622070312, 0.024627685546875, -0.0147705078125, -0.034912109375, 0.054534912109375, -0.064208984375, -0.0245513916015625, -0.021728515625, -0.0057830810546875, 0.05712890625, 0.033416748046875, 0.043548583984375, -0.008636474609375, -0.025238037109375, -0.0208587646484375, 0.03173828125, -0.01800537109375, 0.0261383056640625, -0.0302886962890625, -0.001247406005859375, 0.00817108154296875, 0.01715087890625, 0.041290283203125, 0.005519866943359375, 0.063232421875, 0.03912353515625, -0.0469970703125, -0.005298614501953125, 0.072509765625, -0.020233154296875, -0.0300140380859375, -0.0452880859375, -0.0162811279296875, -0.0006971359252929688, 0.00028395652770996094, 0.0119781494140625, 0.022979736328125, -0.0080413818359375, -0.046051025390625, 0.038848876953125, -0.0170135498046875, 0.00241851806640625, 0.0338134765625, -0.026336669921875, 0.00756072998046875, -0.0194091796875, -0.05523681640625, -0.0213775634765625, -0.04681396484375, 0.0184326171875, 0.020111083984375, 0.031280517578125, 0.0478515625, -0.0008006095886230469, 0.056793212890625, -0.040802001953125, -0.003948211669921875, 0.023468017578125, 0.031707763671875, -0.043304443359375, 0.006244659423828125, -0.01308441162109375, -0.04693603515625, -0.0133209228515625, -0.0489501953125, 0.0323486328125, 0.00452423095703125, 0.057830810546875, -0.0147247314453125, 0.025238037109375, -0.031829833984375, 0.0241546630859375, -0.0129241943359375, -0.045440673828125, 0.041290283203125, 0.05322265625, 0.040618896484375, -0.034210205078125, -0.0266876220703125, 0.01378631591796875, 0.0225372314453125, -0.049468994140625, 0.0005197525024414062, -0.009490966796875, 0.0122528076171875, 0.0087432861328125, 0.05938720703125, 0.0118408203125, -0.0209503173828125, -0.0008130073547363281, 0.01256561279296875, 0.0219268798828125, 0.06396484375, -0.00013434886932373047, 0.004352569580078125, 0.048797607421875, -0.0283966064453125, 0.016021728515625, -0.01493072509765625, 0.0274505615234375, 0.029449462890625, 0.035736083984375, 0.042816162109375, -0.03863525390625, -0.02569580078125, 0.037933349609375, -0.0126495361328125, 0.0084381103515625, -0.0037555694580078125, 0.0660400390625, 0.04351806640625, 0.037200927734375, 0.051177978515625, -0.031494140625, 0.00006633996963500977, 0.040252685546875, 0.01898193359375, 0.028411865234375, 0.01526641845703125, -0.0177459716796875, -0.035430908203125, -0.012939453125, -0.0047454833984375, -0.0005373954772949219, -0.070068359375, -0.036773681640625, -0.06829833984375, 0.01084136962890625, -0.01326751708984375, 0.0294036865234375, -0.05401611328125, 0.01482391357421875, -0.037139892578125, -0.004482269287109375, 0.007167816162109375, 0.0029735565185546875, 0.0679931640625, -0.00537872314453125, -0.0214385986328125, 0.0123291015625, 0.0213470458984375, -0.00684356689453125, -0.002471923828125, -0.0189971923828125, -0.03228759765625, 0.0394287109375, 0.006069183349609375, 0.05426025390625, 0.032867431640625, 0.054656982421875, -0.0278778076171875, -0.00804901123046875, 0.013671875, -0.017608642578125, -0.036834716796875, 0.037994384765625, -0.07965087890625, -0.036773681640625, 0.02239990234375, -0.0089569091796875, 0.006221771240234375, -0.057403564453125, -0.107666015625, 0.055419921875, -0.0141754150390625, -0.0276947021484375, 0.0009403228759765625, -0.0298309326171875, -0.0015096664428710938, -0.0008959770202636719, 0.01111602783203125, -0.0015077590942382812, -0.045013427734375, 0.0081329345703125, 0.01641845703125, 0.019927978515625, -0.003337860107421875, -0.0054931640625, -0.01427459716796875, 0.04718017578125, 0.0198974609375, 0.0139617919921875, -0.0241851806640625, 0.005641937255859375, 0.0224609375, 0.002788543701171875, -0.02850341796875, 0.0426025390625, 0.031036376953125, 0.035919189453125, -0.036529541015625, 0.00342559814453125, -0.0038166046142578125, 0.034271240234375, 0.12548828125, 0.04168701171875, 0.0180511474609375, -0.075439453125, -0.01102447509765625, -0.05072021484375, -0.088134765625, -0.044342041015625, 0.047943115234375, -0.0830078125, -0.008056640625, -0.0160369873046875, 0.022003173828125, -0.0074920654296875, -0.0055389404296875, -0.0147552490234375, -0.034027099609375, 0.006046295166015625, 0.007465362548828125, -0.0204925537109375, -0.01172637939453125, 0.020477294921875, -0.00830841064453125, 0.021759033203125, -0.041839599609375, 0.026458740234375, 0.0230865478515625, -0.02587890625, -0.028778076171875, -0.00475311279296875, -0.0095672607421875, 0.02978515625, -0.00843048095703125, -0.03759765625, -0.021026611328125, 0.0281829833984375, 0.0184783935546875, -0.0180206298828125, 0.0013408660888671875, -0.032745361328125, -0.0092010498046875, -0.01378631591796875, -0.0394287109375, 0.068359375, -0.03900146484375, 0.02569580078125, -0.042327880859375, 0.0233154296875, -0.007293701171875, -0.0010585784912109375, 0.046783447265625, -0.008758544921875, 0.00406646728515625, 0.01502227783203125, -0.031463623046875, -0.040374755859375, 0.01274871826171875, 0.00637054443359375, 0.01519012451171875, 0.033172607421875 ]
874bb9ac5de70a82508ff18953413bd22eb6fe24
Wordpress Stackexchange Q: wp_set_object_terms() -- prevent overwrite? From my understanding (and before trial and error), wp_set_object_terms( 'post_id', 'add_this_term', 'in_this_taxonomy'); But from the Codex, apparently adding the term will overwrite any other terms that are set for that post and that taxonomy? Is this right? What if the terms are nested? A: wp_set_object_terms() has a fourth argument called append. Setting that to true during the call should add the term without unsetting the already set terms. wp_set_object_terms( $post_id, 'add_this_term', 'in_this_taxonomy', true);
Q: wp_set_object_terms() -- prevent overwrite? From my understanding (and before trial and error), wp_set_object_terms( 'post_id', 'add_this_term', 'in_this_taxonomy'); But from the Codex, apparently adding the term will overwrite any other terms that are set for that post and that taxonomy? Is this right? What if the terms are nested? A: wp_set_object_terms() has a fourth argument called append. Setting that to true during the call should add the term without unsetting the already set terms. wp_set_object_terms( $post_id, 'add_this_term', 'in_this_taxonomy', true); A: You can check to see what currently is in the term by using wp_get_object_terms(), you can run logic on this and decide what to put into the database, and whether you're amending the current data or creating entirely new data.
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:416739", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41032" }
[ 0.09698486328125, -0.0010557174682617188, -0.0022525787353515625, -0.042877197265625, 0.038818359375, -0.041259765625, 0.057098388671875, -0.0251312255859375, -0.022857666015625, 0.004550933837890625, -0.00955963134765625, -0.0186767578125, -0.0003991127014160156, -0.03680419921875, 0.00890350341796875, -0.036895751953125, 0.039642333984375, -0.047821044921875, 0.021209716796875, 0.00518798828125, 0.021392822265625, 0.0275726318359375, 0.037567138671875, -0.0016498565673828125, 0.0169219970703125, -0.034881591796875, 0.01446533203125, -0.0276336669921875, 0.0017070770263671875, -0.016754150390625, 0.01245880126953125, 0.0191497802734375, 0.019805908203125, 0.033966064453125, -0.055450439453125, -0.00901031494140625, -0.00811767578125, 0.0095062255859375, -0.00848388671875, 0.0254364013671875, 0.03546142578125, -0.00936126708984375, 0.0132904052734375, 0.0323486328125, -0.0094146728515625, -0.0516357421875, 0.03204345703125, -0.029449462890625, 0.008880615234375, -0.060546875, 0.024658203125, 0.0253143310546875, 0.04736328125, -0.0254364013671875, -0.026824951171875, 0.00027489662170410156, 0.00426483154296875, -0.007404327392578125, 0.04345703125, -0.0172271728515625, -0.0469970703125, -0.035125732421875, 0.034210205078125, -0.0411376953125, 0.0306243896484375, -0.006580352783203125, -0.0089569091796875, 0.030853271484375, -0.099365234375, 0.027374267578125, 0.08135986328125, -0.090576171875, 0.00316619873046875, -0.0218048095703125, 0.015960693359375, -0.035491943359375, 0.013214111328125, -0.0195159912109375, 0.006160736083984375, 0.01568603515625, 0.02691650390625, -0.00868988037109375, 0.007144927978515625, 0.0223541259765625, -0.0013685226440429688, 0.040985107421875, -0.009979248046875, -0.0236053466796875, -0.014373779296875, -0.0244903564453125, -0.00806427001953125, -0.01407623291015625, -0.0313720703125, -0.01031494140625, 0.0037403106689453125, -0.049835205078125, 0.0152435302734375, 0.050811767578125, -0.045623779296875, 0.00732421875, -0.020721435546875, -0.0270843505859375, 0.03448486328125, -0.04339599609375, 0.007221221923828125, 0.01235198974609375, -0.020538330078125, -0.02166748046875, 0.033172607421875, 0.03277587890625, -0.012115478515625, 0.0280609130859375, 0.0165557861328125, 0.0000852346420288086, -0.01543426513671875, -0.0299835205078125, -0.052703857421875, 0.0318603515625, 0.01079559326171875, -0.002658843994140625, 0.01163482666015625, 0.0287933349609375, -0.06622314453125, 0.005176544189453125, 0.0135650634765625, -0.01200103759765625, -0.0185546875, 0.0192718505859375, -0.00821685791015625, 0.039947509765625, -0.036651611328125, -0.0165557861328125, 0.0667724609375, 0.050628662109375, 0.037506103515625, -0.032257080078125, 0.0286712646484375, -0.00853729248046875, -0.017547607421875, 0.023590087890625, 0.0247039794921875, -0.0256805419921875, -0.023101806640625, 0.0198822021484375, 0.0005464553833007812, 0.01337432861328125, 0.007415771484375, 0.0241851806640625, 0.004787445068359375, -0.046051025390625, 0.0304107666015625, -0.053009033203125, 0.0380859375, 0.01558685302734375, -0.00756072998046875, -0.0189971923828125, 0.046173095703125, -0.0439453125, -0.0196990966796875, -0.06427001953125, -0.01413726806640625, -0.0152435302734375, 0.0104522705078125, -0.01123046875, -0.041778564453125, 0.0287628173828125, -0.0151214599609375, -0.013397216796875, 0.0163726806640625, 0.05010986328125, 0.0306396484375, -0.002704620361328125, -0.0278167724609375, -0.01056671142578125, -0.017425537109375, -0.03857421875, -0.01611328125, 0.0232696533203125, 0.00795745849609375, 0.01013946533203125, -0.01763916015625, -0.04974365234375, 0.0182342529296875, -0.006206512451171875, -0.0287933349609375, 0.0164337158203125, -0.01398468017578125, 0.01371002197265625, 0.046051025390625, 0.0123443603515625, 0.0256500244140625, -0.0135955810546875, -0.0849609375, 0.01177215576171875, 0.025787353515625, 0.00982666015625, -0.0042877197265625, -0.0093841552734375, 0.007843017578125, -0.0272369384765625, 0.03875732421875, -0.00923919677734375, 0.00850677490234375, -0.016754150390625, -0.041229248046875, -0.0079498291015625, -0.0189971923828125, 0.0273590087890625, -0.023101806640625, 0.00508880615234375, 0.019989013671875, -0.034637451171875, -0.01129150390625, 0.0048675537109375, 0.007251739501953125, 0.01491546630859375, -0.038055419921875, 0.0489501953125, 0.01004791259765625, 0.0338134765625, 0.01486968994140625, -0.0234222412109375, 0.0257110595703125, -0.00685882568359375, 0.019439697265625, -0.0074005126953125, -0.00647735595703125, -0.01166534423828125, 0.0101470947265625, 0.035888671875, -0.040252685546875, -0.0003566741943359375, 0.044464111328125, 0.06427001953125, 0.0182342529296875, -0.012054443359375, 0.0236358642578125, -0.125244140625, 0.00958251953125, 0.067138671875, 0.0311279296875, 0.03338623046875, -0.0179901123046875, -0.007610321044921875, 0.0311279296875, -0.003276824951171875, 0.036285400390625, -0.033905029296875, 0.0162506103515625, 0.0474853515625, 0.0284423828125, 0.0035533905029296875, -0.0033512115478515625, -0.06231689453125, 0.0206298828125, 0.035369873046875, -0.07470703125, -0.03436279296875, 0.037567138671875, -0.02484130859375, 0.0068206787109375, -0.055633544921875, 0.020965576171875, -0.026092529296875, 0.0171051025390625, 0.01317596435546875, 0.02117919921875, 0.0255279541015625, -0.001697540283203125, -0.0081787109375, 0.004451751708984375, -0.056884765625, 0.01849365234375, 0.0124969482421875, 0.00394439697265625, -0.00689697265625, -0.036529541015625, 0.007476806640625, 0.041534423828125, -0.00499725341796875, -0.00567626953125, 0.031341552734375, 0.016448974609375, -0.01531982421875, 0.01108551025390625, -0.0235137939453125, -0.0139923095703125, -0.027069091796875, -0.041748046875, -0.044891357421875, -0.007495880126953125, 0.00984954833984375, -0.037994384765625, 0.0323486328125, -0.04925537109375, -0.00848388671875, -0.052154541015625, -0.0098114013671875, 0.0196990966796875, -0.047821044921875, -0.00357818603515625, 0.0435791015625, 0.0008172988891601562, 0.00994110107421875, 0.01275634765625, -0.01549530029296875, 0.0036449432373046875, 0.0151519775390625, -0.01166534423828125, 0.01163482666015625, -0.09539794921875, -0.01477813720703125, 0.0228424072265625, 0.02911376953125, 0.027008056640625, -0.0245819091796875, 0.01261138916015625, 0.0243377685546875, -0.0222625732421875, -0.0036830902099609375, 0.05706787109375, -0.017486572265625, -0.023712158203125, 0.01549530029296875, -0.025390625, -0.018218994140625, 0.025421142578125, -0.01067352294921875, 0.01038360595703125, -0.036956787109375, -0.0225372314453125, -0.03668212890625, -0.03765869140625, -0.034942626953125, 0.003017425537109375, -0.00489044189453125, 0.011474609375, 0.06854248046875, 0.0208892822265625, -0.0228424072265625, 0.041168212890625, 0.007965087890625, -0.03155517578125, 0.0201416015625, 0.007354736328125, -0.01050567626953125, -0.01091766357421875, -0.0108795166015625, -0.00958251953125, 0.01268768310546875, -0.018707275390625, -0.0034809112548828125, -0.0193634033203125, 0.0080108642578125, 0.018707275390625, -0.0062408447265625, 0.00957489013671875, 0.03741455078125, 0.040435791015625, -0.007244110107421875, 0.01067352294921875, 0.00457000732421875, -0.00897216796875, 0.01177978515625, -0.051544189453125, 0.000058770179748535156, 0.005306243896484375, 0.040771484375, 0.019744873046875, 0.0160675048828125, -0.041534423828125, 0.0186767578125, 0.02655029296875, -0.004364013671875, 0.00804901123046875, -0.00024056434631347656, 0.0170745849609375, -0.01532745361328125, -0.03143310546875, -0.01001739501953125, -0.01345062255859375, -0.034423828125, 0.0155792236328125, -0.04400634765625, -0.06927490234375, 0.0194854736328125, -0.078125, 0.056793212890625, -0.09356689453125, -0.0141754150390625, -0.02947998046875, 0.1104736328125, -0.019134521484375, -0.0010128021240234375, -0.0156707763671875, 0.0111236572265625, -0.041046142578125, -0.047271728515625, -0.04022216796875, -0.009033203125, 0.01212310791015625, -0.016204833984375, 0.00513458251953125, -0.0193328857421875, -0.023956298828125, 0.07281494140625, -0.0174560546875, 0.0167999267578125, 0.03533935546875, -0.06005859375, 0.00437164306640625, 0.05438232421875, 0.0030345916748046875, 0.00853729248046875, -0.03277587890625, -0.0282135009765625, -0.10589599609375, -0.0128021240234375, -0.01374053955078125, 0.03924560546875, -0.0200653076171875, -0.007778167724609375, -0.0233306884765625, 0.042877197265625, 0.013580322265625, -0.00672149658203125, 0.0180206298828125, 0.00925445556640625, 0.01007080078125, -0.00717926025390625, 0.01141357421875, -0.01763916015625, -0.007110595703125, -0.01187896728515625, -0.01476287841796875, 0.063720703125, -0.0093994140625, 0.027069091796875, -0.004840850830078125, -0.01291656494140625, -0.04327392578125, -0.040191650390625, -0.069580078125, 0.019439697265625, -0.029754638671875, -0.0091400146484375, -0.0662841796875, -0.06072998046875, -0.00522613525390625, 0.0161590576171875, -0.0290985107421875, 0.0177154541015625, 0.0308380126953125, 0.0240478515625, -0.01168060302734375, -0.05035400390625, 0.037811279296875, 0.0152130126953125, -0.0251007080078125, 0.00249481201171875, -0.04461669921875, -0.0139007568359375, 0.0279998779296875, -0.048004150390625, -0.0136871337890625, -0.006134033203125, 0.03399658203125, -0.004802703857421875, -0.0093994140625, 0.006927490234375, -0.029144287109375, 0.03497314453125, 0.005023956298828125, -0.0200042724609375, -0.001529693603515625, -0.004062652587890625, 0.0164794921875, -0.01300048828125, 0.03021240234375, -0.005992889404296875, -0.06048583984375, 0.0298309326171875, -0.031463623046875, 0.00678253173828125, 0.005218505859375, 0.00940704345703125, 0.00522613525390625, -0.01261138916015625, 0.006084442138671875, 0.03265380859375, 0.004085540771484375, 0.0202178955078125, 0.0256500244140625, 0.030792236328125, -0.005710601806640625, 0.006992340087890625, -0.012939453125, 0.06695556640625, 0.0034542083740234375, -0.0638427734375, 0.059967041015625, -0.010009765625, -0.004302978515625, 0.0261383056640625, -0.008575439453125, 0.041046142578125, 0.048370361328125, 0.006862640380859375, 0.00643157958984375, -0.028106689453125, 0.0186309814453125, -0.029266357421875, 0.0120849609375, 0.03460693359375, -0.0301666259765625, 0.054351806640625, -0.031890869140625, 0.01297760009765625, -0.005214691162109375, -0.01493072509765625, 0.016754150390625, 0.03961181640625, 0.016204833984375, 0.0302886962890625, -0.0201873779296875, 0.0168609619140625, -0.013092041015625, 0.02752685546875, -0.052276611328125, -0.057037353515625, -0.004978179931640625, 0.040252685546875, -0.0596923828125, -0.01486968994140625, 0.058074951171875, 0.0140838623046875, -0.022491455078125, -0.0097503662109375, -0.048553466796875, -0.029205322265625, -0.01324462890625, -0.0126800537109375, 0.0183258056640625, -0.0237884521484375, 0.0124969482421875, -0.01373291015625, -0.01326751708984375, 0.0106964111328125, -0.037384033203125, 0.018707275390625, -0.043975830078125, -0.031585693359375, -0.05609130859375, -0.006931304931640625, -0.0007901191711425781, -0.039886474609375, -0.0460205078125, 0.00975799560546875, -0.034637451171875, 0.01070404052734375, -0.0272369384765625, 0.04473876953125, -0.01534271240234375, 0.0027484893798828125, 0.007740020751953125, 0.0188751220703125, 0.01715087890625, 0.009674072265625, -0.025604248046875, -0.00939178466796875, -0.05352783203125, -0.008056640625, -0.05084228515625, -0.051116943359375, -0.021087646484375, 0.0189666748046875, -0.0028896331787109375, 0.0177459716796875, -0.0231170654296875, -0.01824951171875, 0.020355224609375, 0.004974365234375, -0.011383056640625, 0.001422882080078125, -0.0146636962890625, 0.023834228515625, -0.01470947265625, 0.047210693359375, -0.0192718505859375, -0.0169830322265625, -0.0169677734375, -0.018798828125, -0.0118560791015625, -0.09478759765625, -0.02056884765625, 0.015350341796875, -0.043701171875, 0.037139892578125, 0.0130615234375, 0.004169464111328125, 0.055694580078125, -0.04345703125, -0.01393890380859375, -0.0010366439819335938, 0.03863525390625, -0.062744140625, 0.01788330078125, 0.034637451171875, -0.027557373046875, 0.05889892578125, 0.010589599609375, 0.007228851318359375, 0.036468505859375, -0.049774169921875, 0.057403564453125, 0.00629425048828125, -0.01157379150390625, 0.0001112818717956543, 0.01551055908203125, 0.005161285400390625, 0.05255126953125, -0.0095367431640625, 0.041015625, 0.036285400390625, 0.00684356689453125, -0.02532958984375, -0.032989501953125, 0.03680419921875, 0.0015811920166015625, -0.01409912109375, 0.0282745361328125, -0.03302001953125, -0.0013685226440429688, 0.024749755859375, 0.048828125, -0.016204833984375, 0.0020771026611328125, 0.01395416259765625, -0.0137786865234375, 0.0305023193359375, 0.0303955078125, 0.01056671142578125, 0.029815673828125, -0.024383544921875, -0.0084991455078125, -0.0089874267578125, 0.0018262863159179688, 0.006946563720703125, -0.0213623046875, -0.039825439453125, -0.0034084320068359375, 0.031280517578125, 0.0233154296875, 0.052825927734375, -0.006259918212890625, 0.0300750732421875, 0.0032825469970703125, 0.00258636474609375, 0.033660888671875, -0.0221405029296875, -0.045074462890625, 0.053741455078125, -0.0301055908203125, 0.0017490386962890625, 0.0224761962890625, -0.030242919921875, 0.01058197021484375, 0.02532958984375, -0.012786865234375, 0.00396728515625, -0.00550079345703125, -0.03521728515625, -0.0263824462890625, -0.004177093505859375, 0.0183868408203125, 0.025604248046875, -0.063720703125, 0.0217132568359375, -0.055755615234375, 0.006404876708984375, -0.0254058837890625, -0.048370361328125, 0.0516357421875, -0.0531005859375, 0.010009765625, 0.00978851318359375, 0.04669189453125, 0.01898193359375, -0.0223236083984375, -0.00010097026824951172, -0.06768798828125, -0.04278564453125, -0.00649261474609375, -0.02435302734375, 0.00838470458984375, -0.0061798095703125, -0.0826416015625, 0.1395263671875, 0.01012420654296875, 0.043670654296875, 0.00975799560546875, 0.03900146484375, -0.04986572265625, 0.010955810546875, -0.05487060546875, 0.032012939453125, -0.0203704833984375, 0.060302734375, -0.043060302734375, 0.01371002197265625, -0.0015382766723632812, 0.0010051727294921875, 0.06903076171875, 0.01358795166015625, 0.008087158203125, -0.01654052734375, 0.038726806640625, 0.01751708984375, -0.03302001953125, 0.015167236328125, 0.0149688720703125, -0.005084991455078125, 0.049591064453125, -0.01910400390625, 0.03143310546875, -0.0214385986328125, 0.01242828369140625, 0.036285400390625, -0.0007634162902832031, 0.007320404052734375, -0.0201416015625, 0.01482391357421875, -0.0258941650390625, -0.01428985595703125, 0.0187835693359375, -0.03173828125, 0.05133056640625, -0.03155517578125, -0.005748748779296875, -0.008880615234375, 0.0484619140625, -0.00569915771484375, 0.040679931640625, -0.017425537109375, 0.01904296875, 0.057647705078125, 0.01032257080078125, 0.06781005859375, 0.026123046875, 0.0253448486328125, 0.016815185546875, 0.0269775390625, -0.0169525146484375, 0.0251007080078125, 0.031402587890625, -0.018341064453125, -0.016937255859375, 0.035888671875, 0.006565093994140625, -0.00750732421875, -0.024627685546875, 0.0172576904296875, 0.00533294677734375, -0.024078369140625, -0.006656646728515625, -0.0191192626953125, 0.0006947517395019531, 0.05010986328125, -0.062164306640625, -0.0094146728515625, 0.04937744140625, 0.03515625, 0.01451873779296875, 0.017578125, -0.05303955078125, -0.046783447265625, -0.034393310546875, -0.0013132095336914062, -0.0020847320556640625, 0.048065185546875, 0.0240325927734375, 0.043426513671875, -0.0125732421875, -0.0172576904296875, 0.007747650146484375, 0.0167236328125, 0.0303497314453125, -0.0241241455078125, 0.01226806640625, -0.02056884765625, 0.0391845703125, -0.00531005859375, 0.0222930908203125, 0.04974365234375, 0.07086181640625, 0.040863037109375, -0.03131103515625, 0.003620147705078125, 0.06939697265625, -0.0357666015625, 0.0059051513671875, -0.029571533203125, 0.024169921875, 0.034759521484375, -0.0014095306396484375, -0.00615692138671875, 0.0158538818359375, 0.052581787109375, -0.01245880126953125, 0.01039886474609375, -0.003082275390625, -0.01690673828125, 0.031646728515625, 0.00930023193359375, 0.037689208984375, 0.025604248046875, -0.08245849609375, 0.01366424560546875, -0.07867431640625, -0.07861328125, 0.045074462890625, 0.038421630859375, -0.01812744140625, 0.0019245147705078125, -0.01285552978515625, -0.0386962890625, 0.005420684814453125, 0.0377197265625, -0.003978729248046875, -0.0009403228759765625, 0.024627685546875, -0.03021240234375, -0.0013332366943359375, 0.0260772705078125, 0.04168701171875, -0.01009368896484375, -0.0146026611328125, 0.0229644775390625, 0.016754150390625, -0.01342010498046875, 0.0038509368896484375, -0.0010089874267578125, -0.0078887939453125, -0.01107025146484375, 0.038787841796875, -0.0168609619140625, -0.01219940185546875, -0.003063201904296875, -0.036529541015625, 0.0197296142578125, 0.0179901123046875, -0.0205535888671875, 0.0452880859375, -0.0706787109375, 0.012451171875, -0.034698486328125, 0.09368896484375, -0.0153961181640625, 0.0212249755859375, -0.041351318359375, -0.05865478515625, 0.0628662109375, 0.003734588623046875, 0.019012451171875, 0.039642333984375, -0.01082611083984375, -0.00858306884765625, 0.029815673828125, -0.042449951171875, 0.00988006591796875, 0.0184478759765625, 0.005756378173828125, 0.0115966796875, -0.007564544677734375, -0.0201416015625, -0.003948211669921875, 0.019775390625, -0.030792236328125, 0.0032482147216796875, -0.0718994140625, -0.0220947265625, 0.01450347900390625, 0.0054473876953125, -0.04296875, 0.0048370361328125, 0.0157623291015625, -0.01727294921875, 0.00307464599609375, 0.0196533203125, -0.01522064208984375, -0.019561767578125, -0.0191497802734375, 0.005596160888671875, -0.019073486328125, -0.046142578125, -0.04022216796875, 0.0155792236328125, 0.06854248046875, 0.01309967041015625, -0.0280303955078125, 0.03204345703125, -0.0338134765625, 0.0136871337890625, 0.05035400390625, -0.03424072265625, 0.005523681640625, 0.039093017578125, -0.0232086181640625, -0.023956298828125, -0.05474853515625, 0.0013551712036132812, -0.06585693359375, 0.00785064697265625, 0.02764892578125, -0.0165557861328125, -0.018310546875, 0.007564544677734375, 0.0243377685546875, 0.02728271484375, 0.0178985595703125, -0.035888671875, 0.0119171142578125, -0.00531768798828125, 0.00998687744140625, -0.0299530029296875, -0.00009441375732421875, -0.04473876953125, -0.01306915283203125, -0.034759521484375, -0.0156402587890625, -0.00885772705078125, -0.05059814453125, -0.053070068359375, 0.0070037841796875, 0.0006127357482910156, -0.03436279296875, -0.0246124267578125, -0.06317138671875, -0.04217529296875, 0.06805419921875, -0.0005655288696289062, -0.0018310546875, -0.024169921875, 0.07232666015625, 0.007549285888671875, 0.025909423828125, 0.007457733154296875, 0.00405120849609375, -0.044586181640625, 0.00852203369140625, -0.0170745849609375, 0.00841522216796875, -0.0031452178955078125, -0.01617431640625, 0.052490234375, 0.027862548828125, 0.0008187294006347656, 0.039764404296875, 0.0304412841796875, -0.0338134765625, -0.0185699462890625, -0.019989013671875, -0.0192718505859375, 0.0171661376953125, 0.09228515625, 0.041534423828125, 0.031036376953125, -0.051239013671875, -0.045135498046875, -0.0430908203125, -0.03875732421875, 0.01117706298828125, 0.0185699462890625, -0.061370849609375, 0.035919189453125, 0.02996826171875, -0.01519775390625, -0.01271820068359375, -0.01261138916015625, -0.0333251953125, -0.0087432861328125, 0.006885528564453125, -0.002532958984375, -0.018463134765625, -0.01039886474609375, -0.0158233642578125, -0.01470184326171875, -0.028228759765625, -0.0157012939453125, 0.0242156982421875, -0.059295654296875, -0.016693115234375, -0.006072998046875, -0.006488800048828125, -0.005268096923828125, 0.0020656585693359375, 0.00860595703125, 0.0198516845703125, 0.01059722900390625, -0.004970550537109375, -0.03564453125, 0.040252685546875, 0.01202392578125, 0.01727294921875, -0.01239776611328125, 0.081787109375, 0.03680419921875, 0.0631103515625, -0.0230255126953125, 0.00565338134765625, -0.0109405517578125, 0.00566864013671875, -0.037872314453125, 0.0197601318359375, 0.00984954833984375, -0.012939453125, -0.0009565353393554688, -0.0171356201171875, 0.003726959228515625, -0.021148681640625, -0.00007832050323486328, -0.017059326171875, -0.00833892822265625, 0.029083251953125 ]
512c15892c1b09e149ee1cc1c89c82ccab1f313f
Wordpress Stackexchange Q: Turning Broken URLs Into Search Terms? I'm migrating a Typepad install to a Wordpress subdomain, and most of the links will be broken. The rewrites work so that: http://mainsite.com/blogs is rewritten to http://blogs.mainsite.com If a full link with article information is passed, it is rewritten as such; http://mainsite.com/blogs/2014-13-7/article-title.html to http://blogs.mainsite.com/2014-13-7/article-title.html I am looking for a way to feed the article title into Wordpress's search so even though the link is broken, it is easy for users with bookmarks find it. A: Why not do a one-to-one redirect? When migrating the data over, add a custom field like '_legacy_url' in the WXR or whatever mechanism you're using to track the old URLs. Then, check during the template_redirect action for a one-to-one match whenever WP throws a 404. add_action('template_redirect', 'typepad_redirects', 0); function typepad_redirects(){ if(is_404()){ global $wpdb, $wp; $url = esc_attr($wp->request); $result = $wpdb->get_row("SELECT * FROM $wpdb->postmeta WHERE meta_key = '_legacy_url' AND meta_value LIKE '%$url%'"); $redirect_url = get_permalink($result->post_id); if($redirect_url){ wp_redirect($redirect_url, 301); die(); } } }
Q: Turning Broken URLs Into Search Terms? I'm migrating a Typepad install to a Wordpress subdomain, and most of the links will be broken. The rewrites work so that: http://mainsite.com/blogs is rewritten to http://blogs.mainsite.com If a full link with article information is passed, it is rewritten as such; http://mainsite.com/blogs/2014-13-7/article-title.html to http://blogs.mainsite.com/2014-13-7/article-title.html I am looking for a way to feed the article title into Wordpress's search so even though the link is broken, it is easy for users with bookmarks find it. A: Why not do a one-to-one redirect? When migrating the data over, add a custom field like '_legacy_url' in the WXR or whatever mechanism you're using to track the old URLs. Then, check during the template_redirect action for a one-to-one match whenever WP throws a 404. add_action('template_redirect', 'typepad_redirects', 0); function typepad_redirects(){ if(is_404()){ global $wpdb, $wp; $url = esc_attr($wp->request); $result = $wpdb->get_row("SELECT * FROM $wpdb->postmeta WHERE meta_key = '_legacy_url' AND meta_value LIKE '%$url%'"); $redirect_url = get_permalink($result->post_id); if($redirect_url){ wp_redirect($redirect_url, 301); die(); } } } A: You can try a plugin to do this: http://wordpress.org/extend/plugins/smart-404/ Reads the page URL and tries to find a page/post that it might match and redirect to it. Found out about this plugin from: http://www.aebeta.com/web-hosting/seo/7-seo-friendly-404-plugin-for-wordpress.html
wordpress
{ "language": "en", "length": 198, "provenance": "stackexchange_00019.jsonl.gz:416759", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41101" }
[ 0.0570068359375, -0.020965576171875, 0.0533447265625, 0.005382537841796875, -0.0233306884765625, -0.01047515869140625, 0.031219482421875, -0.054168701171875, 0.040313720703125, 0.026641845703125, 0.0019292831420898438, -0.0015478134155273438, 0.0164337158203125, -0.0266876220703125, -0.006771087646484375, 0.004566192626953125, 0.0258331298828125, -0.056427001953125, -0.03460693359375, -0.0167236328125, -0.0015153884887695312, 0.013916015625, -0.003528594970703125, -0.01641845703125, 0.002227783203125, -0.031585693359375, 0.08746337890625, -0.027801513671875, -0.0013780593872070312, -0.038421630859375, 0.0034542083740234375, 0.0311126708984375, 0.041748046875, -0.0057525634765625, -0.00646209716796875, 0.0045928955078125, 0.034088134765625, -0.00995635986328125, -0.02734375, 0.06494140625, 0.0228271484375, -0.0163726806640625, 0.008270263671875, 0.015594482421875, -0.005603790283203125, -0.066650390625, 0.0733642578125, -0.0232696533203125, 0.006450653076171875, 0.0183258056640625, 0.012176513671875, 0.037109375, 0.01032257080078125, -0.01267242431640625, -0.00771331787109375, 0.006114959716796875, -0.00347900390625, -0.0570068359375, 0.00862884521484375, 0.023712158203125, 0.0147247314453125, -0.0012216567993164062, 0.0166778564453125, 0.0018529891967773438, -0.006664276123046875, 0.01476287841796875, -0.011322021484375, 0.0309600830078125, -0.021484375, -0.016998291015625, -0.005855560302734375, -0.043121337890625, 0.00732421875, 0.007061004638671875, -0.004093170166015625, -0.026031494140625, 0.0037841796875, -0.0029754638671875, -0.001766204833984375, 0.03460693359375, 0.039764404296875, -0.006683349609375, 0.044036865234375, -0.031341552734375, 0.0303497314453125, -0.005126953125, 0.0006017684936523438, -0.017852783203125, -0.069580078125, -0.00019741058349609375, -0.024017333984375, -0.057373046875, -0.0760498046875, 0.013214111328125, 0.032928466796875, -0.045989990234375, 0.00798797607421875, 0.051025390625, -0.00911712646484375, 0.018463134765625, -0.00908660888671875, -0.0241241455078125, 0.0008687973022460938, -0.030426025390625, 0.0199737548828125, 0.0310821533203125, 0.0014801025390625, -0.01441192626953125, 0.04083251953125, 0.0030460357666015625, -0.0013418197631835938, 0.045989990234375, -0.01238250732421875, 0.0105133056640625, -0.0252532958984375, 0.0244598388671875, -0.0278167724609375, 0.007457733154296875, -0.0225982666015625, 0.05059814453125, -0.0093841552734375, 0.028594970703125, -0.0340576171875, -0.034942626953125, 0.007587432861328125, -0.0172882080078125, 0.0036334991455078125, 0.007663726806640625, -0.0301513671875, -0.0007834434509277344, -0.01349639892578125, 0.036773681640625, 0.005397796630859375, -0.02337646484375, -0.025726318359375, -0.01172637939453125, 0.0304718017578125, -0.0187225341796875, -0.022125244140625, 0.0087890625, 0.030609130859375, 0.0103912353515625, 0.007587432861328125, 0.002475738525390625, 0.03887939453125, 0.0177459716796875, 0.036956787109375, 0.0255126953125, -0.01165771484375, -0.0374755859375, 0.022369384765625, 0.022064208984375, 0.05352783203125, -0.01013946533203125, -0.050323486328125, -0.063720703125, 0.044525146484375, -0.0640869140625, -0.00384521484375, -0.09381103515625, 0.020233154296875, 0.01055145263671875, 0.0244140625, -0.034149169921875, -0.052703857421875, -0.0279083251953125, -0.0526123046875, -0.0214385986328125, 0.01399993896484375, 0.025360107421875, 0.0097808837890625, -0.02716064453125, -0.03997802734375, 0.004611968994140625, -0.0014190673828125, 0.0026454925537109375, 0.019775390625, 0.0361328125, 0.00234222412109375, 0.03143310546875, 0.01483917236328125, -0.017913818359375, 0.07147216796875, -0.019989013671875, -0.0546875, 0.08367919921875, -0.021209716796875, 0.06976318359375, 0.0152587890625, -0.0092926025390625, -0.001598358154296875, 0.031005859375, -0.04144287109375, 0.036163330078125, -0.02215576171875, -0.022308349609375, 0.003002166748046875, 0.007266998291015625, -0.0212554931640625, 0.00885009765625, -0.0011739730834960938, 0.044891357421875, -0.0196380615234375, 0.047119140625, -0.052703857421875, 0.06341552734375, -0.0311737060546875, 0.0484619140625, -0.006839752197265625, 0.052886962890625, 0.0153350830078125, 0.01058197021484375, -0.02374267578125, 0.01010894775390625, 0.03204345703125, -0.017425537109375, 0.0198974609375, 0.0124664306640625, 0.006343841552734375, 0.00302886962890625, -0.0041046142578125, 0.01293182373046875, -0.0226898193359375, 0.0114898681640625, -0.0023670196533203125, -0.061370849609375, 0.01271820068359375, -0.02325439453125, -0.0027370452880859375, -0.003726959228515625, -0.034332275390625, 0.0281829833984375, 0.042694091796875, 0.0252685546875, -0.036773681640625, -0.0030345916748046875, -0.014007568359375, -0.02789306640625, 0.0013704299926757812, 0.053070068359375, 0.0384521484375, 0.0052490234375, -0.02301025390625, -0.034759521484375, -0.001277923583984375, -0.056304931640625, 0.01273345947265625, -0.01349639892578125, 0.0062255859375, 0.046234130859375, -0.03497314453125, -0.002925872802734375, 0.0243072509765625, 0.0011806488037109375, -0.032196044921875, 0.049713134765625, -0.01983642578125, -0.00453948974609375, -0.01181793212890625, -0.00797271728515625, 0.00908660888671875, -0.0055084228515625, -0.007358551025390625, -0.003673553466796875, 0.048919677734375, 0.0233306884765625, 0.05682373046875, 0.039031982421875, -0.01474761962890625, -0.00396728515625, -0.008453369140625, -0.0007376670837402344, 0.01568603515625, 0.05322265625, 0.05322265625, -0.0210113525390625, 0.004016876220703125, -0.0223236083984375, 0.01494598388671875, 0.0221405029296875, -0.01013946533203125, 0.020416259765625, -0.0321044921875, -0.0103912353515625, -0.0239105224609375, -0.045166015625, 0.0093536376953125, 0.0255889892578125, 0.03680419921875, 0.042266845703125, 0.04241943359375, 0.0311431884765625, -0.00713348388671875, 0.061004638671875, 0.0252685546875, -0.006313323974609375, 0.025970458984375, -0.04461669921875, 0.0335693359375, -0.03662109375, 0.06561279296875, 0.044586181640625, -0.0230560302734375, -0.012908935546875, -0.004062652587890625, 0.051422119140625, -0.017181396484375, 0.004634857177734375, -0.01094818115234375, -0.0172119140625, -0.0589599609375, -0.02655029296875, 0.022369384765625, 0.04656982421875, 0.016998291015625, -0.0295562744140625, 0.02691650390625, 0.031158447265625, -0.053558349609375, -0.08819580078125, -0.0012445449829101562, -0.048675537109375, 0.01171875, 0.0292510986328125, -0.00403594970703125, -0.0129241943359375, 0.0592041015625, 0.004489898681640625, 0.046539306640625, -0.029510498046875, -0.11212158203125, -0.0253143310546875, -0.111083984375, 0.035491943359375, -0.00920867919921875, 0.022308349609375, 0.013092041015625, -0.06793212890625, 0.00969696044921875, -0.0008406639099121094, 0.060028076171875, 0.12359619140625, 0.01277923583984375, -0.0195465087890625, 0.0239410400390625, -0.026611328125, -0.032135009765625, 0.00861358642578125, 0.061492919921875, 0.0191192626953125, -0.02471923828125, 0.01145172119140625, -0.01611328125, 0.011383056640625, 0.0207672119140625, -0.04827880859375, 0.01116943359375, 0.04266357421875, 0.01837158203125, -0.008209228515625, -0.00624847412109375, -0.02923583984375, -0.045013427734375, 0.0204620361328125, 0.0174407958984375, 0.0077667236328125, 0.0031375885009765625, -0.00699615478515625, 0.023193359375, 0.003902435302734375, 0.03350830078125, -0.020782470703125, 0.0021190643310546875, -0.00855255126953125, 0.0030841827392578125, -0.037811279296875, 0.05206298828125, -0.00347900390625, -0.00640869140625, 0.0164794921875, 0.013153076171875, 0.00955963134765625, -0.0148162841796875, -0.038848876953125, -0.035308837890625, 0.0357666015625, -0.05859375, 0.007518768310546875, -0.039337158203125, -0.0235748291015625, -0.018646240234375, 0.08502197265625, -0.0411376953125, -0.01169586181640625, -0.01097869873046875, 0.0103912353515625, 0.0193023681640625, -0.023590087890625, -0.0107574462890625, -0.0097808837890625, -0.10247802734375, -0.000125885009765625, -0.0018663406372070312, -0.036773681640625, 0.014434814453125, 0.00742340087890625, -0.033599853515625, -0.054901123046875, 0.0172271728515625, 0.0155181884765625, -0.00508880615234375, 0.02642822265625, -0.03265380859375, 0.029815673828125, -0.0177001953125, -0.01165008544921875, -0.0665283203125, -0.027679443359375, 0.0221099853515625, 0.061126708984375, 0.018707275390625, -0.0687255859375, 0.0226593017578125, 0.070556640625, 0.0167236328125, -0.0229644775390625, 0.01004791259765625, -0.03240966796875, 0.0115509033203125, 0.0249481201171875, -0.01212310791015625, -0.003101348876953125, 0.005535125732421875, 0.005550384521484375, -0.0596923828125, 0.00803375244140625, 0.00041937828063964844, 0.0207672119140625, 0.044586181640625, -0.049041748046875, -0.040802001953125, -0.0304718017578125, 0.0210113525390625, 0.0277252197265625, -0.0156707763671875, 0.01143646240234375, -0.005725860595703125, -0.03790283203125, 0.0251617431640625, -0.0221405029296875, 0.00926971435546875, -0.0027446746826171875, -0.00518798828125, 0.004230499267578125, -0.0158538818359375, 0.06182861328125, 0.00836944580078125, 0.00202178955078125, -0.0179901123046875, 0.021240234375, -0.0213623046875, 0.01480865478515625, 0.01543426513671875, -0.05859375, -0.0144195556640625, 0.0082244873046875, -0.004547119140625, 0.019073486328125, -0.0247039794921875, 0.01332855224609375, -0.0120697021484375, 0.00354766845703125, 0.044891357421875, -0.00905609130859375, -0.0169219970703125, -0.0161285400390625, 0.03564453125, -0.0236358642578125, 0.03228759765625, -0.0281982421875, -0.04522705078125, 0.01513671875, 0.018890380859375, 0.037750244140625, 0.0157012939453125, -0.0013637542724609375, 0.0236358642578125, 0.0171661376953125, -0.007511138916015625, -0.0013751983642578125, -0.009521484375, 0.001316070556640625, 0.03173828125, -0.0191650390625, -0.0212554931640625, -0.006511688232421875, -0.001861572265625, 0.03497314453125, -0.01114654541015625, -0.036468505859375, 0.01116943359375, -0.00835418701171875, -0.02239990234375, 0.043121337890625, -0.0289459228515625, 0.025634765625, 0.022979736328125, -0.017974853515625, 0.01141357421875, -0.04095458984375, -0.017547607421875, -0.040496826171875, 0.01213836669921875, 0.0012750625610351562, 0.0096893310546875, -0.018890380859375, 0.0865478515625, 0.0009245872497558594, 0.0264129638671875, -0.01739501953125, -0.0168304443359375, 0.0054168701171875, 0.0293731689453125, 0.035125732421875, -0.0217742919921875, -0.0030345916748046875, 0.0221710205078125, 0.041961669921875, -0.04925537109375, -0.01021575927734375, 0.032623291015625, 0.04541015625, -0.0172271728515625, -0.0298309326171875, 0.017730712890625, -0.01474761962890625, -0.01373291015625, 0.016082763671875, -0.02459716796875, -0.0186309814453125, -0.042877197265625, -0.044830322265625, 0.016265869140625, -0.007293701171875, -0.005901336669921875, -0.052276611328125, -0.0160980224609375, 0.01142120361328125, -0.03985595703125, -0.001857757568359375, -0.007068634033203125, -0.0029773712158203125, -0.02301025390625, -0.0469970703125, 0.00553131103515625, 0.0100555419921875, 0.02484130859375, -0.0285491943359375, -0.0198516845703125, 0.0440673828125, -0.00714874267578125, 0.005832672119140625, -0.033905029296875, 0.016693115234375, -0.00908660888671875, 0.00756072998046875, 0.046966552734375, -0.009918212890625, -0.0428466796875, -0.01178741455078125, -0.0036525726318359375, 0.0032558441162109375, 0.0439453125, 0.006587982177734375, -0.0019741058349609375, -0.03173828125, 0.05047607421875, 0.034820556640625, 0.02386474609375, -0.0227508544921875, -0.01812744140625, -0.0205078125, 0.017242431640625, 0.029632568359375, -0.01132965087890625, 0.0599365234375, -0.018890380859375, 0.0267181396484375, 0.021331787109375, 0.060333251953125, 0.006134033203125, -0.02850341796875, -0.0031261444091796875, -0.043060302734375, -0.03179931640625, -0.00685882568359375, -0.01495361328125, 0.049652099609375, 0.062408447265625, -0.001834869384765625, 0.004184722900390625, 0.0033359527587890625, 0.008331298828125, -0.01557159423828125, 0.00342559814453125, -0.00783538818359375, 0.010711669921875, 0.0099945068359375, 0.009368896484375, 0.01364898681640625, -0.006740570068359375, -0.0035686492919921875, -0.0167236328125, 0.01386260986328125, -0.021331787109375, -0.004611968994140625, -0.06512451171875, 0.055419921875, 0.07330322265625, 0.027618408203125, 0.06744384765625, -0.0009045600891113281, 0.020355224609375, 0.035614013671875, -0.01360321044921875, -0.00728607177734375, 0.044036865234375, 0.01435089111328125, -0.0280609130859375, -0.004184722900390625, 0.01056671142578125, -0.01070404052734375, -0.0012035369873046875, 0.0199432373046875, 0.059112548828125, -0.0291900634765625, -0.0035266876220703125, 0.030059814453125, -0.0162811279296875, -0.0033321380615234375, 0.00948333740234375, -0.0016870498657226562, 0.0275115966796875, -0.0180816650390625, 0.0169525146484375, -0.03350830078125, -0.00807952880859375, 0.04925537109375, -0.01824951171875, -0.03118896484375, 0.0479736328125, 0.00821685791015625, -0.045379638671875, -0.00229644775390625, 0.0128173828125, -0.0197601318359375, -0.007720947265625, 0.02410888671875, 0.049957275390625, 0.005794525146484375, -0.00839996337890625, 0.08197021484375, -0.005641937255859375, -0.0013704299926757812, -0.0096588134765625, 0.017913818359375, 0.043670654296875, 0.05328369140625, 0.0007171630859375, 0.01812744140625, 0.0264129638671875, 0.0061187744140625, 0.05523681640625, -0.0262451171875, -0.0224609375, 0.005817413330078125, 0.0225982666015625, 0.0028705596923828125, 0.0057220458984375, -0.028900146484375, -0.013824462890625, -0.012176513671875, 0.0838623046875, -0.01312255859375, -0.030975341796875, 0.0159454345703125, 0.0235595703125, -0.000013709068298339844, -0.0281524658203125, 0.0025272369384765625, -0.0716552734375, -0.025299072265625, -0.0263519287109375, -0.045196533203125, 0.014373779296875, -0.03070068359375, -0.06378173828125, 0.1160888671875, -0.00002586841583251953, 0.038665771484375, 0.0308685302734375, 0.036041259765625, -0.038543701171875, 0.0105438232421875, -0.0011081695556640625, 0.036285400390625, -0.0235748291015625, 0.03424072265625, -0.0311126708984375, -0.020721435546875, 0.03436279296875, 0.0487060546875, 0.07196044921875, 0.0226593017578125, -0.0985107421875, -0.0228118896484375, 0.031402587890625, 0.0262298583984375, 0.005290985107421875, 0.08111572265625, -0.024139404296875, 0.04425048828125, 0.02203369140625, -0.06353759765625, 0.01580810546875, -0.00972747802734375, -0.025726318359375, 0.0015888214111328125, 0.021148681640625, 0.04315185546875, -0.00045418739318847656, -0.03643798828125, -0.01056671142578125, -0.005512237548828125, 0.0241241455078125, -0.0257110595703125, 0.009033203125, 0.018707275390625, 0.0186920166015625, -0.02935791015625, 0.0166778564453125, -0.02777099609375, 0.033355712890625, 0.006134033203125, -0.00567626953125, 0.01322174072265625, 0.019317626953125, 0.0557861328125, -0.049346923828125, -0.0114288330078125, -0.0020999908447265625, -0.0012521743774414062, 0.06341552734375, 0.03704833984375, 0.030975341796875, -0.01062774658203125, 0.024627685546875, 0.05865478515625, 0.08880615234375, -0.04949951171875, -0.0489501953125, -0.01071929931640625, 0.0070953369140625, 0.0311126708984375, -0.0045623779296875, 0.01495361328125, -0.040283203125, 0.0143585205078125, 0.0005083084106445312, -0.0052947998046875, 0.00798797607421875, -0.0162200927734375, -0.00518798828125, -0.01081085205078125, 0.038543701171875, 0.0272674560546875, -0.0279541015625, -0.004486083984375, -0.00027108192443847656, 0.054046630859375, 0.007404327392578125, 0.023773193359375, -0.04339599609375, -0.018463134765625, -0.035858154296875, 0.0379638671875, 0.0092620849609375, 0.032867431640625, -0.0538330078125, -0.035400390625, 0.0206451416015625, 0.042449951171875, 0.042449951171875, 0.011322021484375, 0.0242767333984375, 0.011749267578125, -0.01268768310546875, 0.0193634033203125, 0.04852294921875, -0.0163421630859375, 0.0224456787109375, -0.01456451416015625, 0.006885528564453125, -0.00557708740234375, -0.00878143310546875, -0.005451202392578125, 0.0095062255859375, 0.003215789794921875, 0.04425048828125, 0.0240631103515625, 0.00864410400390625, -0.004291534423828125, 0.033203125, 0.0011539459228515625, 0.0557861328125, 0.056427001953125, -0.06671142578125, -0.008087158203125, -0.01287078857421875, -0.06866455078125, 0.0266265869140625, 0.04766845703125, -0.024261474609375, -0.006839752197265625, -0.0019359588623046875, 0.01100921630859375, -0.00669097900390625, -0.011810302734375, 0.00516510009765625, 0.046112060546875, 0.0290985107421875, 0.0233612060546875, -0.0302886962890625, -0.0177764892578125, 0.0079498291015625, 0.0233612060546875, -0.00659942626953125, 0.1114501953125, -0.039886474609375, -0.00978851318359375, -0.03466796875, 0.007602691650390625, -0.0095062255859375, -0.025634765625, -0.0143585205078125, 0.0272674560546875, 0.0171661376953125, -0.00798797607421875, -0.044677734375, 0.0034313201904296875, 0.02032470703125, -0.01192474365234375, 0.01100921630859375, -0.0248565673828125, 0.0234527587890625, -0.0033931732177734375, 0.0191497802734375, -0.039794921875, -0.028564453125, -0.032196044921875, -0.030975341796875, 0.033294677734375, 0.0240325927734375, 0.00820159912109375, 0.0271148681640625, 0.0213623046875, -0.006877899169921875, 0.0175323486328125, -0.03546142578125, 0.047515869140625, 0.04541015625, -0.00201416015625, -0.018585205078125, 0.01477813720703125, -0.00873565673828125, -0.008575439453125, 0.019287109375, 0.0005931854248046875, 0.00811767578125, -0.0019931793212890625, -0.00244140625, -0.058319091796875, 0.0205230712890625, 0.0003848075866699219, 0.00484466552734375, -0.057403564453125, 0.0150909423828125, -0.01165771484375, -0.0011911392211914062, -0.00524139404296875, -0.002590179443359375, -0.031005859375, 0.0033054351806640625, 0.01009368896484375, -0.03533935546875, 0.0026683807373046875, -0.00441741943359375, 0.017486572265625, 0.006313323974609375, -0.04974365234375, 0.035858154296875, -0.003021240234375, 0.0144500732421875, -0.014404296875, -0.04559326171875, -0.01727294921875, 0.039703369140625, -0.0182342529296875, -0.0232696533203125, -0.07159423828125, -0.0007610321044921875, -0.08612060546875, 0.007038116455078125, 0.060333251953125, -0.0259246826171875, -0.006153106689453125, -0.0511474609375, -0.0014209747314453125, 0.0023403167724609375, -0.03564453125, -0.0281219482421875, -0.0131072998046875, 0.017913818359375, -0.007354736328125, -0.04315185546875, -0.003147125244140625, -0.034088134765625, -0.0032978057861328125, 0.0275726318359375, -0.0244903564453125, -0.0135498046875, -0.04156494140625, -0.031524658203125, 0.0119476318359375, 0.0190887451171875, -0.03753662109375, -0.04534912109375, -0.0281829833984375, -0.0156707763671875, 0.047760009765625, -0.00469207763671875, -0.01059722900390625, -0.05792236328125, 0.0256805419921875, 0.0115509033203125, 0.025115966796875, 0.004608154296875, 0.0080718994140625, 0.01277923583984375, 0.046875, 0.044647216796875, -0.0090484619140625, -0.0038967132568359375, -0.0288848876953125, 0.052734375, 0.034637451171875, -0.0182647705078125, 0.03936767578125, 0.0283050537109375, -0.01203155517578125, -0.0221405029296875, -0.0628662109375, -0.01806640625, -0.0192718505859375, 0.048797607421875, 0.04229736328125, 0.0096893310546875, -0.035797119140625, -0.0253448486328125, 0.006366729736328125, -0.04364013671875, 0.012420654296875, 0.0303802490234375, -0.0499267578125, 0.0174407958984375, -0.006626129150390625, -0.001117706298828125, 0.024993896484375, -0.0277099609375, 0.00010085105895996094, 0.001186370849609375, 0.0491943359375, 0.00301361083984375, 0.005435943603515625, -0.03662109375, 0.129150390625, -0.07318115234375, -0.028106689453125, 0.018341064453125, 0.0482177734375, 0.01519775390625, -0.08203125, 0.012420654296875, 0.0523681640625, -0.0232696533203125, -0.01543426513671875, 0.027313232421875, -0.020538330078125, 0.0035343170166015625, -0.00421142578125, -0.00457000732421875, 0.0119781494140625, -0.0074310302734375, -0.0013599395751953125, 0.00580596923828125, 0.004375457763671875, -0.0330810546875, 0.06500244140625, -0.01049041748046875, -0.00738525390625, 0.002681732177734375, 0.02825927734375, -0.0299072265625, -0.0057525634765625, 0.0010538101196289062, -0.0225982666015625, 0.01044464111328125, 0.0204620361328125, 0.0022144317626953125, -0.01447296142578125, 0.00872039794921875, -0.003101348876953125, 0.000560760498046875, 0.019989013671875 ]
cba827e62dab26069dda5b31b53d1066cc5a94a8
Wordpress Stackexchange Q: wordpress nav menu using twitter bootstrap I'm using twitter bootstrap in my theme. I'm trying to use bootstrap menu in my theme. But it use custom attributes like data-toggle. Here is the full code. <ul class="nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> Can anyone help me to optimize this code for wp_nav_menu() ? Update: This is what i tried so far. 1) Custom submenu class class My_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul class=\"dropdown-menu\">\n"; } } 2) wp_nav_menu <?php wp_nav_menu( array( 'items_wrap' => '<ul class="nav">%3$s</ul>','walker' => new My_Walker_Nav_Menu() ) ); ?> Can you help me to add that "dropdown" class and this link <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> A: For a copy paste solution check this custom Walker out: http://goodandorgreat.wordpress.com/2012/01/12/update-2-using-twitter-bootstrap-dropdown-menus-with-wordpress/ It's missing one or two things like data-toggle="dropdown" and <b class="caret"></b>. It should be quite easy to figure that out, but here's my modified version: https://gist.github.com/1817371 Hope that helps.
Q: wordpress nav menu using twitter bootstrap I'm using twitter bootstrap in my theme. I'm trying to use bootstrap menu in my theme. But it use custom attributes like data-toggle. Here is the full code. <ul class="nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> Can anyone help me to optimize this code for wp_nav_menu() ? Update: This is what i tried so far. 1) Custom submenu class class My_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul class=\"dropdown-menu\">\n"; } } 2) wp_nav_menu <?php wp_nav_menu( array( 'items_wrap' => '<ul class="nav">%3$s</ul>','walker' => new My_Walker_Nav_Menu() ) ); ?> Can you help me to add that "dropdown" class and this link <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> A: For a copy paste solution check this custom Walker out: http://goodandorgreat.wordpress.com/2012/01/12/update-2-using-twitter-bootstrap-dropdown-menus-with-wordpress/ It's missing one or two things like data-toggle="dropdown" and <b class="caret"></b>. It should be quite easy to figure that out, but here's my modified version: https://gist.github.com/1817371 Hope that helps. A: I used a different approach than a custom walker. I used a function to add the class "dropdown" to any parent nav items which contain sub menu items. Since WordPress outputs the class "sub-menu" by default, I use jQuery to add the class "dropdown-menu" to any thing that has a class of "sub-menu". I then use jQuery to append the <b class="caret"></b> element. I have written this up as a complete tutorial about how to implement the Bootstrap dropdown in a WordPress nav menu here: http://astronautweb.co/2012/10/wordpress-dropdown-bootstrap/ A: See this answer for details: Look for menu_item_parent and set class="dropdown-toggle" conditionally. More similar questions. A: Try WP Bootstrap Menu if your not looking for something complicated. You have to replace the native wp_nav_menu() with a custom function from the plugin in your theme to get it working. Be aware the plugin function is not compatible with other plugins, it doesn’t offer the same filters as the WordPress walker.
wordpress
{ "language": "en", "length": 346, "provenance": "stackexchange_00019.jsonl.gz:416763", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41116" }
[ 0.01319122314453125, 0.0038776397705078125, 0.006458282470703125, 0.008514404296875, 0.018707275390625, -0.037506103515625, 0.0623779296875, -0.034820556640625, -0.0014581680297851562, 0.00936126708984375, -0.03753662109375, 0.01425933837890625, -0.0225982666015625, -0.0252838134765625, 0.0304107666015625, -0.035003662109375, 0.04266357421875, 0.0034313201904296875, 0.0273895263671875, 0.01361083984375, -0.0075531005859375, 0.04248046875, -0.004817962646484375, 0.07684326171875, 0.0240325927734375, -0.056304931640625, 0.08685302734375, -0.006664276123046875, 0.005558013916015625, -0.012115478515625, 0.023223876953125, -0.01387786865234375, -0.0018892288208007812, -0.00978851318359375, 0.062469482421875, 0.0247802734375, -0.00618743896484375, 0.016204833984375, 0.0401611328125, -0.0118255615234375, 0.0031032562255859375, -0.00794219970703125, -0.002323150634765625, -0.0025386810302734375, -0.0210418701171875, -0.042022705078125, 0.0199432373046875, -0.0181884765625, 0.0034809112548828125, -0.0318603515625, 0.0308380126953125, 0.0041351318359375, 0.049774169921875, -0.05810546875, -0.01153564453125, 0.006481170654296875, 0.01247406005859375, -0.0267791748046875, 0.0245513916015625, 0.033447265625, -0.0211029052734375, -0.0162506103515625, 0.010101318359375, -0.048370361328125, 0.0118865966796875, 0.01265716552734375, 0.047698974609375, 0.027099609375, -0.026275634765625, -0.00736236572265625, -0.011688232421875, -0.019195556640625, 0.0004398822784423828, 0.003009796142578125, -0.0186614990234375, -0.0263214111328125, 0.0279541015625, -0.01030731201171875, 0.01385498046875, 0.011993408203125, -0.007354736328125, 0.0126800537109375, -0.041107177734375, -0.0556640625, 0.0350341796875, -0.01171112060546875, -0.01227569580078125, -0.0189056396484375, -0.0178070068359375, 0.005725860595703125, -0.0214385986328125, 0.00031113624572753906, 0.0193939208984375, -0.004425048828125, -0.04107666015625, -0.0161895751953125, -0.007656097412109375, 0.0210418701171875, 0.01519775390625, 0.0457763671875, 0.0084075927734375, -0.04644775390625, 0.06475830078125, -0.046630859375, 0.0014142990112304688, 0.060150146484375, 0.022613525390625, 0.064697265625, 0.037200927734375, 0.0117340087890625, 0.0298919677734375, 0.0277252197265625, -0.0164947509765625, -0.036529541015625, -0.005496978759765625, 0.01364898681640625, -0.0200653076171875, 0.0007219314575195312, 0.01262664794921875, -0.03863525390625, 0.00405120849609375, 0.03350830078125, -0.003864288330078125, -0.0029354095458984375, 0.021514892578125, 0.023651123046875, 0.01361846923828125, -0.05108642578125, -0.01081085205078125, -0.011444091796875, -0.02484130859375, 0.052490234375, 0.0241851806640625, -0.0084686279296875, -0.038360595703125, -0.01514434814453125, 0.0035400390625, -0.00824737548828125, -0.0012569427490234375, 0.019927978515625, 0.006282806396484375, -0.0272369384765625, -0.006927490234375, -0.01030731201171875, -0.0014495849609375, 0.031585693359375, 0.0195159912109375, -0.0001461505889892578, 0.0018796920776367188, -0.08111572265625, 0.036834716796875, -0.0667724609375, 0.057098388671875, -0.005481719970703125, -0.029266357421875, -0.0213623046875, 0.04461669921875, -0.031768798828125, -0.04779052734375, -0.055694580078125, -0.07366943359375, -0.0162811279296875, 0.050994873046875, -0.08905029296875, -0.0389404296875, -0.00496673583984375, -0.0179443359375, 0.0030536651611328125, 0.019378662109375, -0.009307861328125, 0.02337646484375, -0.024688720703125, -0.0071563720703125, 0.034271240234375, 0.0219879150390625, 0.04412841796875, 0.00759124755859375, 0.01093292236328125, 0.02117919921875, -0.0091094970703125, -0.0282745361328125, -0.04437255859375, 0.043487548828125, -0.01149749755859375, -0.042877197265625, 0.0465087890625, 0.0007996559143066406, 0.05889892578125, 0.02044677734375, 0.00823974609375, -0.002490997314453125, 0.0088348388671875, -0.0511474609375, 0.00154876708984375, -0.0191650390625, 0.0037746429443359375, -0.01554107666015625, 0.01239776611328125, -0.0190277099609375, 0.0198211669921875, -0.02642822265625, 0.0254058837890625, -0.035308837890625, 0.033599853515625, -0.048065185546875, 0.0272216796875, -0.023773193359375, 0.029022216796875, -0.057373046875, 0.0238800048828125, 0.024658203125, 0.013427734375, -0.015716552734375, -0.055633544921875, 0.0088043212890625, 0.025726318359375, -0.00299072265625, 0.01806640625, -0.018157958984375, -0.0213775634765625, 0.02850341796875, -0.0295562744140625, 0.0178985595703125, 0.060150146484375, 0.0292816162109375, -0.0243682861328125, -0.0198974609375, -0.017913818359375, -0.00740814208984375, 0.00441741943359375, -0.054534912109375, 0.04296875, 0.0748291015625, 0.033111572265625, -0.052032470703125, -0.0021076202392578125, 0.016815185546875, -0.036376953125, -0.0186004638671875, 0.035552978515625, 0.04052734375, 0.054443359375, 0.00031876564025878906, -0.043212890625, 0.036468505859375, -0.03790283203125, 0.021148681640625, -0.04461669921875, -0.04730224609375, -0.026519775390625, 0.05316162109375, 0.0108489990234375, 0.04595947265625, 0.040130615234375, -0.01007080078125, 0.0360107421875, -0.01593017578125, -0.003936767578125, -0.01861572265625, 0.0052337646484375, -0.002040863037109375, -0.0222625732421875, -0.01393890380859375, -0.0161895751953125, 0.00823211669921875, 0.0115203857421875, 0.0167999267578125, -0.0034275054931640625, -0.037841796875, 0.005626678466796875, 0.0307464599609375, 0.03692626953125, 0.0125274658203125, 0.0343017578125, -0.0225677490234375, 0.01000213623046875, 0.01549530029296875, -0.016815185546875, -0.0016756057739257812, 0.013458251953125, 0.007656097412109375, 0.07965087890625, 0.06988525390625, -0.02557373046875, 0.005764007568359375, -0.03619384765625, 0.00598907470703125, -0.03106689453125, -0.003574371337890625, 0.0135345458984375, 0.031707763671875, 0.0037860870361328125, -0.04803466796875, 0.05377197265625, -0.01149749755859375, -0.0260467529296875, 0.0823974609375, -0.0009722709655761719, 0.02960205078125, 0.005779266357421875, 0.039337158203125, 0.051422119140625, -0.027984619140625, 0.0238189697265625, 0.00025773048400878906, -0.02740478515625, -0.041015625, 0.0180206298828125, -0.0028076171875, -0.017547607421875, 0.0006995201110839844, 0.06866455078125, 0.00969696044921875, 0.023223876953125, 0.0018100738525390625, -0.0308685302734375, -0.01416778564453125, 0.003910064697265625, -0.049285888671875, -0.034332275390625, 0.027618408203125, -0.059051513671875, 0.0579833984375, 0.0198211669921875, -0.0290374755859375, -0.0518798828125, 0.0740966796875, 0.017852783203125, -0.053436279296875, -0.01024627685546875, -0.03521728515625, -0.04937744140625, -0.052886962890625, 0.031890869140625, 0.00757598876953125, 0.02008056640625, 0.003421783447265625, 0.034515380859375, -0.0013017654418945312, -0.03515625, 0.0276031494140625, 0.005275726318359375, -0.00775146484375, 0.0243072509765625, 0.0226898193359375, -0.033782958984375, -0.007205963134765625, 0.0007944107055664062, 0.0301971435546875, 0.00409698486328125, -0.00824737548828125, -0.01141357421875, 0.006099700927734375, -0.0219268798828125, 0.02557373046875, 0.01470184326171875, -0.01812744140625, 0.045135498046875, 0.0767822265625, -0.009674072265625, -0.015594482421875, -0.056854248046875, -0.050506591796875, 0.0243377685546875, 0.061309814453125, -0.0007562637329101562, -0.03546142578125, 0.0110931396484375, 0.01271820068359375, -0.0030193328857421875, 0.034393310546875, -0.028411865234375, 0.0297698974609375, -0.005413055419921875, 0.019561767578125, -0.0197601318359375, 0.0377197265625, -0.001163482666015625, -0.01076507568359375, 0.0094451904296875, -0.0027828216552734375, -0.029266357421875, 0.0172882080078125, -0.055389404296875, -0.051788330078125, 0.058258056640625, 0.036773681640625, 0.0175323486328125, 0.0014696121215820312, -0.029754638671875, 0.005390167236328125, 0.07952880859375, -0.045867919921875, -0.0166168212890625, -0.01064300537109375, 0.007328033447265625, -0.01458740234375, -0.0174102783203125, -0.046417236328125, -0.0016651153564453125, -0.10113525390625, 0.0177459716796875, -0.006927490234375, -0.04168701171875, -0.00669097900390625, 0.03045654296875, -0.055633544921875, -0.04412841796875, 0.0285491943359375, -0.03594970703125, -0.01617431640625, 0.0018072128295898438, -0.0224609375, -0.03533935546875, -0.00113677978515625, -0.01462554931640625, -0.020538330078125, -0.00832366943359375, 0.0027179718017578125, 0.0202484130859375, 0.01462554931640625, -0.0026836395263671875, -0.0108642578125, 0.03173828125, 0.035003662109375, 0.00787353515625, 0.0019130706787109375, -0.0249786376953125, 0.02099609375, 0.01087188720703125, 0.00928497314453125, -0.01392364501953125, 0.025848388671875, -0.0158843994140625, -0.08062744140625, -0.006694793701171875, -0.02740478515625, 0.05023193359375, 0.013092041015625, -0.028961181640625, -0.0849609375, -0.054046630859375, -0.034027099609375, 0.0092010498046875, 0.00229644775390625, -0.0033893585205078125, -0.043182373046875, -0.09881591796875, 0.01241302490234375, -0.0216522216796875, -0.000514984130859375, -0.005268096923828125, 0.034454345703125, 0.0212860107421875, -0.0147247314453125, 0.0489501953125, -0.0139312744140625, 0.021240234375, -0.00238800048828125, 0.06646728515625, 0.01473236083984375, -0.0003299713134765625, 0.061492919921875, -0.01291656494140625, 0.033660888671875, 0.0160369873046875, 0.0032711029052734375, 0.020477294921875, 0.004894256591796875, -0.0096893310546875, 0.034759521484375, -0.0341796875, 0.05120849609375, -0.003337860107421875, -0.0255889892578125, -0.0172119140625, 0.04840087890625, 0.00402069091796875, -0.0163726806640625, -0.0474853515625, -0.02044677734375, 0.01273345947265625, -0.041717529296875, 0.07958984375, 0.0285797119140625, -0.004238128662109375, 0.04693603515625, 0.045867919921875, -0.003692626953125, 0.02191162109375, 0.0170440673828125, 0.00019061565399169922, 0.038848876953125, -0.0041351318359375, -0.02935791015625, 0.0005192756652832031, -0.0123291015625, 0.096435546875, 0.071044921875, 0.01049041748046875, -0.00855255126953125, 0.0260467529296875, -0.006381988525390625, -0.03692626953125, -0.037750244140625, 0.027130126953125, 0.0279388427734375, -0.03192138671875, 0.0125732421875, -0.0284423828125, -0.023712158203125, -0.044708251953125, 0.01221466064453125, 0.0032825469970703125, -0.0007777214050292969, 0.00537872314453125, 0.056182861328125, 0.026885986328125, 0.0253448486328125, -0.02520751953125, -0.0255279541015625, -0.01397705078125, 0.024993896484375, 0.020263671875, -0.006328582763671875, 0.0029296875, 0.00283050537109375, 0.04779052734375, -0.025238037109375, -0.00603485107421875, 0.020294189453125, 0.03192138671875, 0.00388336181640625, -0.0208587646484375, 0.019012451171875, -0.01523590087890625, 0.002872467041015625, 0.0574951171875, -0.0238037109375, -0.07891845703125, -0.019744873046875, 0.01207733154296875, 0.0194244384765625, -0.059234619140625, -0.006145477294921875, 0.0184173583984375, 0.024444580078125, 0.0310821533203125, 0.011322021484375, -0.00969696044921875, 0.0149383544921875, -0.0023441314697265625, -0.00313568115234375, 0.00019979476928710938, 0.00865936279296875, -0.0467529296875, -0.0205078125, -0.025787353515625, -0.0189361572265625, 0.060821533203125, -0.02947998046875, -0.002094268798828125, -0.039337158203125, 0.042816162109375, -0.058258056640625, -0.0010223388671875, 0.039794921875, 0.02880859375, -0.0147705078125, 0.0206451416015625, -0.03680419921875, -0.0018529891967773438, -0.02484130859375, -0.0687255859375, -0.035430908203125, -0.044342041015625, -0.0022792816162109375, -0.0212554931640625, 0.01776123046875, -0.025909423828125, -0.046234130859375, 0.0299072265625, 0.03814697265625, -0.0380859375, -0.029022216796875, 0.0672607421875, 0.004787445068359375, 0.0253143310546875, 0.000018775463104248047, 0.0357666015625, 0.003833770751953125, -0.0100555419921875, -0.01345062255859375, -0.037506103515625, -0.006671905517578125, 0.0111236572265625, -0.020843505859375, 0.050445556640625, 0.06768798828125, 0.0006456375122070312, 0.040771484375, -0.0011854171752929688, 0.00977325439453125, -0.01235198974609375, -0.0361328125, 0.00041556358337402344, 0.01348876953125, 0.060760498046875, 0.0261688232421875, 0.0369873046875, -0.0139617919921875, -0.018096923828125, -0.0150146484375, 0.0197906494140625, -0.002696990966796875, -0.006191253662109375, -0.044403076171875, 0.046173095703125, 0.07080078125, 0.01371002197265625, 0.051666259765625, 0.0133514404296875, 0.01103973388671875, 0.01776123046875, 0.0138397216796875, 0.048980712890625, 0.0294342041015625, 0.085205078125, -0.01202392578125, -0.0218048095703125, 0.0256500244140625, -0.041412353515625, -0.0136566162109375, 0.05938720703125, 0.050750732421875, -0.049285888671875, -0.00411224365234375, 0.0146942138671875, -0.0238800048828125, 0.01345062255859375, 0.032623291015625, -0.0219879150390625, 0.01200103759765625, -0.0172271728515625, -0.048919677734375, -0.02374267578125, 0.00865936279296875, 0.01226806640625, 0.0255279541015625, 0.01413726806640625, 0.033935546875, -0.0009112358093261719, 0.006954193115234375, -0.0596923828125, -0.00988006591796875, 0.032012939453125, -0.013397216796875, 0.0012617111206054688, 0.029876708984375, -0.03070068359375, -0.03216552734375, 0.040283203125, -0.01275634765625, -0.003875732421875, -0.01009368896484375, -0.0010480880737304688, 0.0078887939453125, 0.03564453125, -0.03070068359375, 0.01702880859375, -0.0011501312255859375, -0.01348876953125, 0.007160186767578125, -0.01203155517578125, 0.01506805419921875, -0.0250701904296875, -0.03240966796875, 0.01140594482421875, -0.01308441162109375, -0.031402587890625, -0.01316070556640625, 0.0207672119140625, 0.10650634765625, -0.029571533203125, -0.035797119140625, 0.021148681640625, -0.0033206939697265625, -0.00470733642578125, -0.025848388671875, 0.07855224609375, -0.07635498046875, -0.032684326171875, 0.02215576171875, -0.0185699462890625, -0.044342041015625, -0.041656494140625, -0.003452301025390625, 0.045379638671875, -0.0311279296875, -0.04327392578125, 0.0133209228515625, 0.040771484375, -0.0189666748046875, 0.019439697265625, -0.03582763671875, 0.056671142578125, 0.01142120361328125, -0.00209808349609375, 0.01216888427734375, 0.02239990234375, 0.01047515869140625, -0.03533935546875, -0.08282470703125, -0.007671356201171875, -0.0177459716796875, 0.00334930419921875, 0.0204010009765625, 0.03692626953125, 0.038360595703125, 0.0078887939453125, -0.0156402587890625, -0.0181884765625, 0.03839111328125, -0.042938232421875, 0.01268768310546875, -0.0151824951171875, 0.0034027099609375, -0.0228271484375, 0.0121612548828125, 0.0194244384765625, 0.02166748046875, 0.0087738037109375, -0.01042938232421875, 0.022491455078125, 0.0034122467041015625, 0.01495361328125, 0.02252197265625, 0.02960205078125, 0.032470703125, -0.0262908935546875, -0.048492431640625, -0.0152130126953125, 0.0200958251953125, 0.003498077392578125, 0.01629638671875, 0.01434326171875, 0.004047393798828125, 0.0249481201171875, 0.004871368408203125, 0.0028285980224609375, 0.030242919921875, -0.0009636878967285156, 0.036224365234375, -0.0024471282958984375, 0.0243072509765625, -0.0582275390625, -0.054595947265625, 0.039794921875, 0.06280517578125, -0.0160064697265625, -0.033935546875, -0.0013360977172851562, 0.0201568603515625, 0.0246124267578125, 0.0176849365234375, 0.05096435546875, 0.0010633468627929688, 0.030609130859375, -0.01251983642578125, 0.00499725341796875, 0.036956787109375, -0.0046539306640625, 0.01427459716796875, 0.025054931640625, -0.0162200927734375, 0.0175933837890625, -0.0231475830078125, -0.0025386810302734375, -0.00232696533203125, 0.0259246826171875, 0.00548553466796875, 0.0445556640625, -0.0081787109375, -0.00914764404296875, 0.0251007080078125, -0.0005698204040527344, -0.003265380859375, -0.03515625, 0.01434326171875, -0.0218505859375, -0.00229644775390625, 0.0087127685546875, 0.02215576171875, 0.050201416015625, 0.0526123046875, 0.006683349609375, -0.013214111328125, 0.00908660888671875, 0.060638427734375, -0.0286712646484375, -0.036285400390625, -0.01105499267578125, -0.040740966796875, 0.0117645263671875, -0.003459930419921875, 0.000530242919921875, -0.00377655029296875, 0.0233306884765625, -0.00685882568359375, 0.0165557861328125, 0.005916595458984375, -0.0246124267578125, -0.0292816162109375, -0.032073974609375, -0.0023670196533203125, 0.00443267822265625, -0.0743408203125, -0.00681304931640625, -0.01849365234375, -0.06597900390625, 0.04278564453125, 0.05096435546875, -0.0152435302734375, -0.000022172927856445312, 0.0192413330078125, -0.0118255615234375, 0.014312744140625, 0.018951416015625, -0.03466796875, 0.004222869873046875, 0.036407470703125, -0.00626373291015625, -0.03857421875, -0.01419830322265625, -0.0159149169921875, 0.043487548828125, 0.0172119140625, 0.02490234375, 0.001384735107421875, 0.0400390625, -0.0217742919921875, -0.033111572265625, 0.01422882080078125, -0.00701141357421875, 0.020477294921875, 0.01406097412109375, -0.01053619384765625, -0.00811004638671875, -0.04302978515625, 0.03314208984375, 0.0225830078125, -0.026580810546875, 0.0206756591796875, 0.012481689453125, 0.0078887939453125, -0.0279998779296875, -0.0211639404296875, -0.033966064453125, -0.020111083984375, -0.0220794677734375, -0.01220703125, 0.035675048828125, 0.03179931640625, -0.00746917724609375, 0.03363037109375, -0.0036773681640625, 0.0011997222900390625, 0.028289794921875, -0.002132415771484375, 0.0313720703125, 0.0255889892578125, -0.0384521484375, -0.0235595703125, 0.0093536376953125, -0.00005060434341430664, -0.004611968994140625, 0.01303863525390625, -0.0223236083984375, 0.024200439453125, -0.0928955078125, 0.0745849609375, 0.0771484375, 0.06561279296875, -0.03387451171875, 0.024383544921875, 0.0888671875, 0.0009446144104003906, 0.006439208984375, -0.002788543701171875, -0.03338623046875, -0.0267333984375, 0.005062103271484375, 0.032073974609375, -0.0201568603515625, -0.01226043701171875, -0.0946044921875, -0.01143646240234375, 0.03521728515625, 0.0173797607421875, -0.04168701171875, 0.004352569580078125, 0.0023021697998046875, 0.05462646484375, -0.003032684326171875, 0.0007920265197753906, -0.0137939453125, 0.006946563720703125, -0.01666259765625, -0.0038356781005859375, -0.038360595703125, 0.0193939208984375, -0.024200439453125, 0.024261474609375, 0.03521728515625, -0.0382080078125, -0.01361846923828125, 0.0220184326171875, 0.0300140380859375, 0.06866455078125, 0.051025390625, -0.03076171875, -0.020965576171875, 0.006317138671875, 0.01494598388671875, -0.0162506103515625, -0.00494384765625, -0.013214111328125, -0.01392364501953125, 0.044891357421875, -0.016326904296875, 0.00882720947265625, -0.035552978515625, -0.09979248046875, 0.1085205078125, -0.0207061767578125, -0.03887939453125, 0.00411224365234375, 0.0214691162109375, -0.00991058349609375, -0.0025348663330078125, 0.0024852752685546875, -0.043426513671875, 0.0238037109375, 0.01163482666015625, 0.015045166015625, 0.09661865234375, -0.01189422607421875, 0.03350830078125, -0.0026569366455078125, 0.031280517578125, -0.01904296875, 0.03350830078125, -0.02801513671875, 0.007160186767578125, -0.0010776519775390625, 0.0194091796875, -0.035247802734375, -0.044281005859375, 0.005794525146484375, 0.0223846435546875, 0.0294189453125, -0.0306854248046875, -0.007671356201171875, -0.0251007080078125, -0.0107269287109375, -0.0164947509765625, -0.0190887451171875, 0.014801025390625, -0.0229949951171875, -0.040130615234375, -0.002689361572265625, 0.006519317626953125, 0.002223968505859375, -0.055572509765625, 0.0011224746704101562, 0.01104736328125, -0.0274505615234375, -0.0007495880126953125, 0.0132598876953125, -0.03814697265625, 0.0149993896484375, 0.01497650146484375, -0.00713348388671875, -0.0601806640625, 0.0309600830078125, 0.04241943359375, -0.047882080078125, 0.006946563720703125, 0.0201873779296875, -0.01372528076171875, 0.032073974609375, 0.019195556640625, -0.035247802734375, 0.002643585205078125, -0.0276031494140625, 0.0015430450439453125, -0.02191162109375, 0.029327392578125, -0.025482177734375, -0.004817962646484375, -0.013458251953125, 0.0221710205078125, 0.0012979507446289062, 0.03009033203125, -0.027374267578125, 0.0117645263671875, -0.000896453857421875, 0.0118255615234375, -0.00035762786865234375, 0.053741455078125, -0.004131317138671875, 0.044189453125, 0.00942230224609375, -0.03314208984375, 0.033447265625, -0.0352783203125, 0.00536346435546875, 0.00539398193359375, -0.00719451904296875, -0.040313720703125, 0.045196533203125, 0.042572021484375, -0.0088653564453125, 0.029022216796875 ]
e0733d47c31ab7a9236f49b58b875bf4c413c53a
Wordpress Stackexchange Q: Hook for writing text string after footer scripts I'm looking to insert a string of JavaScript variables AFTER the in_footer enqueued scripts. When I write the string via the wp_footer hook, they occur before the in_footer scripts. Is there another hook I can tie into that happens after those enqueued scripts have been written. A: If you change the priority on the hook to wp_footer you should be able to shift when it's called in reference to the enqueue functions. Example: add_action('wp_footer', 'my_footer_hook', PHP_INT_MAX);
Q: Hook for writing text string after footer scripts I'm looking to insert a string of JavaScript variables AFTER the in_footer enqueued scripts. When I write the string via the wp_footer hook, they occur before the in_footer scripts. Is there another hook I can tie into that happens after those enqueued scripts have been written. A: If you change the priority on the hook to wp_footer you should be able to shift when it's called in reference to the enqueue functions. Example: add_action('wp_footer', 'my_footer_hook', PHP_INT_MAX); A: There's also the shutdown hook that runs last just before wp_cache_close();, but you should run the filters only until a priority of 9. Another option would be to hook with a priority as high as possible for e.g. 9999 into the hook (priority is the 3rd arg).
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:416775", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41152" }
[ 0.00803375244140625, 0.00611114501953125, -0.07159423828125, -0.0399169921875, 0.004497528076171875, -0.03399658203125, -0.004970550537109375, 0.0264129638671875, -0.01171112060546875, 0.0002675056457519531, -0.05950927734375, 0.03851318359375, -0.008544921875, 0.00391387939453125, 0.00966644287109375, -0.04229736328125, 0.039886474609375, -0.041656494140625, -0.00972747802734375, -0.0241851806640625, 0.007396697998046875, -0.01023101806640625, 0.01200103759765625, 0.10577392578125, 0.0272064208984375, -0.031890869140625, 0.08428955078125, -0.0104217529296875, 0.0084381103515625, -0.0098724365234375, 0.0208587646484375, -0.02557373046875, 0.019195556640625, 0.0269622802734375, -0.0264434814453125, -0.00719451904296875, -0.001605987548828125, 0.0024356842041015625, 0.00911712646484375, 0.0192413330078125, 0.038665771484375, -0.014801025390625, 0.004207611083984375, 0.036041259765625, -0.0007543563842773438, -0.052276611328125, 0.045196533203125, -0.036285400390625, 0.013824462890625, 0.0261688232421875, -0.009735107421875, 0.022216796875, -0.0097198486328125, 0.0254364013671875, -0.00002092123031616211, 0.0081939697265625, -0.004741668701171875, 0.007442474365234375, 0.00916290283203125, 0.061004638671875, 0.0098419189453125, 0.0288848876953125, -0.0166473388671875, -0.051239013671875, -0.007587432861328125, -0.010223388671875, -0.029052734375, 0.01013946533203125, -0.037567138671875, -0.007396697998046875, 0.040679931640625, -0.022918701171875, -0.037384033203125, -0.005950927734375, 0.007122039794921875, 0.01435089111328125, 0.017059326171875, 0.02325439453125, -0.0088653564453125, 0.049591064453125, 0.00760650634765625, -0.01085662841796875, 0.0101470947265625, -0.017822265625, -0.0186309814453125, -0.03173828125, -0.022735595703125, 0.003940582275390625, -0.03375244140625, -0.02899169921875, -0.0322265625, 0.034423828125, -0.01016998291015625, -0.03131103515625, -0.043914794921875, 0.0076446533203125, 0.01806640625, 0.0413818359375, 0.0039043426513671875, 0.0312347412109375, 0.0005249977111816406, -0.0259246826171875, 0.035064697265625, -0.040802001953125, -0.00038504600524902344, 0.04046630859375, -0.002227783203125, -0.03240966796875, -0.0111846923828125, -0.0014657974243164062, -0.016937255859375, -0.05059814453125, 0.02667236328125, 0.0218658447265625, -0.0372314453125, -0.003444671630859375, -0.003917694091796875, 0.002166748046875, -0.0214691162109375, 0.0198516845703125, -0.011962890625, 0.00962066650390625, -0.034576416015625, 0.0001322031021118164, 0.007488250732421875, -0.020050048828125, -0.0006995201110839844, 0.00833892822265625, -0.005641937255859375, 0.060577392578125, -0.006160736083984375, -0.0179901123046875, 0.019195556640625, 0.02252197265625, -0.004489898681640625, -0.02960205078125, 0.02203369140625, -0.028289794921875, -0.008453369140625, 0.015716552734375, -0.035491943359375, -0.0295562744140625, -0.00008231401443481445, -0.044464111328125, 0.0016117095947265625, 0.00797271728515625, -0.006122589111328125, 0.0167083740234375, 0.01242828369140625, -0.043548583984375, 0.037078857421875, -0.05780029296875, 0.03839111328125, -0.0201568603515625, -0.0107879638671875, -0.044891357421875, -0.0241851806640625, -0.01335906982421875, 0.0110015869140625, -0.0241241455078125, -0.05572509765625, -0.0225982666015625, 0.00815582275390625, -0.06695556640625, -0.047821044921875, 0.0027027130126953125, -0.006381988525390625, 0.00832366943359375, 0.01288604736328125, 0.053924560546875, -0.00623321533203125, 0.0095977783203125, -0.0165557861328125, -0.0005645751953125, -0.01342010498046875, -0.00994110107421875, 0.0081787109375, 0.031494140625, 0.029083251953125, -0.041351318359375, -0.038604736328125, -0.0501708984375, 0.054718017578125, -0.039276123046875, -0.04345703125, 0.02484130859375, 0.0252685546875, 0.09344482421875, -0.01367950439453125, 0.026123046875, 0.035919189453125, 0.01319122314453125, -0.04150390625, 0.021759033203125, -0.006580352783203125, 0.0008001327514648438, 0.005130767822265625, 0.0190887451171875, -0.004283905029296875, -0.033172607421875, -0.0129852294921875, 0.041168212890625, 0.00733184814453125, 0.0276641845703125, 0.0100250244140625, 0.0283966064453125, -0.0105133056640625, 0.03631591796875, 0.01279449462890625, -0.0024929046630859375, -0.0012464523315429688, 0.005374908447265625, 0.0166473388671875, -0.0489501953125, -0.04913330078125, 0.00457763671875, -0.0297088623046875, 0.08050537109375, 0.037200927734375, 0.0574951171875, 0.06378173828125, -0.02655029296875, 0.0594482421875, -0.0263824462890625, -0.016204833984375, -0.0191497802734375, -0.01873779296875, -0.02667236328125, -0.0270538330078125, -0.00719451904296875, 0.00215911865234375, 0.050048828125, -0.0304107666015625, 0.025177001953125, -0.006717681884765625, -0.003936767578125, -0.0100555419921875, -0.0672607421875, 0.025848388671875, 0.0345458984375, 0.0272369384765625, 0.08294677734375, -0.0189666748046875, -0.033599853515625, 0.03271484375, -0.04010009765625, 0.009613037109375, -0.031951904296875, 0.035552978515625, 0.095947265625, 0.0016002655029296875, 0.0165863037109375, -0.007053375244140625, -0.06903076171875, -0.01070404052734375, 0.031402587890625, -0.007709503173828125, -0.01238250732421875, 0.0009675025939941406, 0.0065460205078125, 0.01439666748046875, 0.000152587890625, -0.0122833251953125, -0.009490966796875, 0.055389404296875, -0.04376220703125, 0.005462646484375, -0.0273895263671875, -0.034515380859375, -0.007198333740234375, 0.050750732421875, -0.010467529296875, 0.0031566619873046875, -0.034332275390625, 0.0012264251708984375, -0.0489501953125, -0.00801849365234375, 0.0099334716796875, 0.0191497802734375, -0.04351806640625, -0.00014889240264892578, 0.004306793212890625, -0.01274871826171875, -0.0174102783203125, 0.0241546630859375, -0.011383056640625, -0.006671905517578125, -0.00463104248046875, 0.018218994140625, 0.0160675048828125, 0.024078369140625, 0.0328369140625, -0.021484375, 0.040985107421875, -0.019989013671875, -0.0026531219482421875, 0.00939178466796875, 0.0030994415283203125, 0.013824462890625, -0.007045745849609375, 0.0187835693359375, 0.049560546875, 0.02001953125, -0.0258026123046875, -0.017974853515625, 0.00047659873962402344, 0.0156707763671875, -0.035888671875, -0.036407470703125, -0.030914306640625, -0.029632568359375, 0.0271759033203125, 0.02978515625, 0.0899658203125, -0.0018739700317382812, -0.034515380859375, 0.00389862060546875, 0.049163818359375, -0.043243408203125, -0.09136962890625, 0.0253753662109375, -0.0701904296875, 0.00978851318359375, -0.0008034706115722656, -0.04034423828125, -0.0189056396484375, 0.050567626953125, 0.00004982948303222656, -0.032379150390625, -0.0478515625, -0.030181884765625, -0.047698974609375, -0.0411376953125, 0.061553955078125, 0.00884246826171875, 0.003376007080078125, 0.011474609375, 0.00103759765625, -0.00684356689453125, -0.05181884765625, -0.013824462890625, -0.00914764404296875, -0.019744873046875, -0.015380859375, 0.01445770263671875, -0.03985595703125, -0.003131866455078125, -0.0006542205810546875, -0.01049041748046875, 0.00855255126953125, 0.0126800537109375, -0.011566162109375, -0.0306396484375, -0.02813720703125, 0.0036067962646484375, 0.04376220703125, 0.0211944580078125, -0.0131072998046875, 0.040130615234375, -0.0408935546875, -0.006877899169921875, 0.0283966064453125, -0.0004119873046875, 0.0010099411010742188, -0.0017881393432617188, -0.0416259765625, -0.01047515869140625, 0.016845703125, 0.029052734375, 0.0007557868957519531, -0.023101806640625, -0.0020732879638671875, 0.01824951171875, -0.002964019775390625, 0.01532745361328125, -0.00588226318359375, 0.01202392578125, -0.01311492919921875, 0.0165863037109375, -0.00424957275390625, 0.02154541015625, -0.013458251953125, 0.0291595458984375, -0.034393310546875, -0.0262298583984375, -0.00914764404296875, -0.0572509765625, 0.030487060546875, -0.0225372314453125, 0.019378662109375, 0.0076904296875, 0.05609130859375, -0.1005859375, -0.006923675537109375, 0.0207672119140625, 0.03118896484375, -0.030181884765625, -0.03936767578125, -0.0533447265625, -0.024627685546875, -0.038330078125, 0.04608154296875, 0.008270263671875, 0.0238189697265625, -0.040374755859375, 0.07257080078125, -0.035888671875, -0.00861358642578125, 0.0170135498046875, -0.060150146484375, -0.00843048095703125, 0.016998291015625, -0.0188751220703125, -0.007373809814453125, -0.01030731201171875, -0.046173095703125, -0.073974609375, -0.010009765625, -0.03155517578125, 0.047943115234375, 0.033447265625, -0.05999755859375, -0.00014102458953857422, 0.03692626953125, -0.016326904296875, -0.00562286376953125, 0.019439697265625, 0.0260467529296875, 0.0074462890625, -0.0288848876953125, -0.02093505859375, -0.04132080078125, -0.0244598388671875, 0.0029125213623046875, -0.0199127197265625, 0.029754638671875, 0.00774383544921875, -0.0156707763671875, 0.0467529296875, -0.0272369384765625, -0.0263519287109375, 0.00891876220703125, 0.00017189979553222656, -0.01215362548828125, 0.032257080078125, -0.033538818359375, 0.0226593017578125, -0.0265655517578125, 0.004241943359375, 0.006114959716796875, -0.0128173828125, -0.0142822265625, 0.05731201171875, 0.039947509765625, -0.005237579345703125, 0.0225982666015625, 0.0037174224853515625, 0.0391845703125, -0.0038928985595703125, 0.0360107421875, 0.01399993896484375, -0.036163330078125, 0.0496826171875, 0.02764892578125, -0.0074310302734375, 0.005374908447265625, 0.04888916015625, 0.026397705078125, -0.0033206939697265625, -0.019500732421875, 0.02447509765625, -0.01194000244140625, -0.0189666748046875, -0.055084228515625, 0.0234222412109375, -0.0302734375, 0.0078887939453125, -0.056365966796875, 0.09283447265625, -0.0009312629699707031, -0.024627685546875, 0.0055999755859375, 0.027618408203125, 0.057098388671875, 0.0129852294921875, 0.0157012939453125, 0.023101806640625, 0.0670166015625, -0.001186370849609375, -0.01294708251953125, -0.0369873046875, -0.00411224365234375, 0.035430908203125, -0.028228759765625, 0.0029468536376953125, 0.0277252197265625, -0.011627197265625, 0.044525146484375, 0.0191192626953125, 0.0038700103759765625, -0.049896240234375, -0.0121612548828125, 0.0589599609375, -0.034637451171875, 0.0267791748046875, 0.0271759033203125, 0.01275634765625, -0.0012264251708984375, -0.00669097900390625, 0.0120391845703125, 0.016845703125, -0.01012420654296875, 0.04180908203125, 0.013336181640625, -0.009918212890625, -0.005321502685546875, 0.0443115234375, -0.006458282470703125, 0.0055694580078125, -0.00951385498046875, 0.019012451171875, -0.03131103515625, 0.04901123046875, 0.0272674560546875, -0.03424072265625, 0.0080718994140625, 0.01293182373046875, -0.022552490234375, -0.0124053955078125, 0.022369384765625, -0.0010099411010742188, 0.004291534423828125, -0.0360107421875, -0.01800537109375, 0.04864501953125, -0.02215576171875, -0.03369140625, 0.034149169921875, 0.017120361328125, -0.032806396484375, -0.02740478515625, -0.021209716796875, 0.0235137939453125, 0.01386260986328125, 0.01039886474609375, 0.0120697021484375, -0.03070068359375, 0.0240325927734375, -0.0311279296875, 0.0382080078125, -0.048828125, -0.05853271484375, -0.00775146484375, 0.026641845703125, 0.005619049072265625, -0.043701171875, -0.08673095703125, 0.02203369140625, 0.0093536376953125, 0.051177978515625, 0.0002593994140625, 0.0189666748046875, -0.0250091552734375, -0.0019254684448242188, -0.0211181640625, -0.006439208984375, 0.045684814453125, 0.0116729736328125, -0.0139617919921875, 0.0081787109375, -0.037933349609375, -0.018035888671875, -0.0239105224609375, -0.02520751953125, -0.0296478271484375, -0.0188446044921875, 0.0180816650390625, 0.04229736328125, -0.036956787109375, -0.0933837890625, 0.0188751220703125, 0.003692626953125, 0.0184783935546875, 0.072998046875, -0.0200958251953125, 0.042022705078125, -0.0247650146484375, 0.003749847412109375, -0.01464080810546875, 0.035308837890625, 0.046051025390625, -0.01715087890625, -0.0034942626953125, -0.03936767578125, 0.0117950439453125, -0.00931549072265625, 0.0228729248046875, -0.0026035308837890625, 0.009613037109375, 0.01496124267578125, 0.0200347900390625, 0.027984619140625, 0.013671875, 0.00595855712890625, -0.0195159912109375, 0.0523681640625, -0.0021839141845703125, 0.07318115234375, 0.009918212890625, 0.0004248619079589844, -0.01062774658203125, -0.00739288330078125, 0.0209503173828125, 0.01215362548828125, 0.0200653076171875, -0.032135009765625, -0.0157470703125, 0.007022857666015625, 0.0611572265625, 0.028106689453125, 0.048248291015625, 0.01119232177734375, 0.0304412841796875, 0.038055419921875, 0.0268707275390625, -0.01493072509765625, -0.059967041015625, 0.0248870849609375, 0.0009937286376953125, -0.00848388671875, 0.0234832763671875, -0.019195556640625, -0.002288818359375, 0.052947998046875, 0.0484619140625, -0.09228515625, 0.01140594482421875, 0.001201629638671875, 0.001110076904296875, -0.01306915283203125, -0.01549530029296875, 0.01800537109375, 0.00508880615234375, 0.0345458984375, 0.021942138671875, -0.01320648193359375, 0.0302276611328125, 0.0003387928009033203, -0.038421630859375, -0.02008056640625, -0.06298828125, 0.0163116455078125, -0.0170440673828125, 0.06488037109375, 0.01361083984375, 0.04583740234375, -0.04461669921875, -0.0116729736328125, 0.01021575927734375, -0.036895751953125, -0.032623291015625, 0.0240936279296875, -0.01128387451171875, 0.0088958740234375, -0.01727294921875, -0.0284423828125, 0.037841796875, -0.0008816719055175781, 0.007114410400390625, -0.055206298828125, -0.0101165771484375, -0.0273590087890625, -0.03265380859375, -0.0340576171875, 0.020599365234375, 0.01334381103515625, -0.03485107421875, 0.02313232421875, -0.01259613037109375, -0.0308380126953125, -0.00423431396484375, -0.02178955078125, 0.022247314453125, -0.037841796875, -0.008453369140625, 0.00974273681640625, 0.0160064697265625, 0.018341064453125, -0.02911376953125, 0.052276611328125, -0.05218505859375, -0.03277587890625, -0.0091552734375, -0.05340576171875, -0.032440185546875, -0.06134033203125, -0.04058837890625, 0.1246337890625, 0.004364013671875, -0.006473541259765625, 0.0097198486328125, 0.0625, -0.031158447265625, 0.052459716796875, -0.03704833984375, 0.044097900390625, -0.0106353759765625, 0.08917236328125, -0.051055908203125, -0.026336669921875, 0.058624267578125, 0.058502197265625, 0.05584716796875, -0.00009202957153320312, 0.033538818359375, 0.00237274169921875, 0.06658935546875, 0.058013916015625, -0.007328033447265625, -0.0328369140625, 0.033721923828125, 0.003208160400390625, 0.0435791015625, -0.0063018798828125, 0.029998779296875, -0.0404052734375, 0.01064300537109375, 0.0345458984375, 0.003753662109375, 0.00943756103515625, -0.0024280548095703125, -0.02752685546875, -0.0148468017578125, 0.0080413818359375, 0.0014801025390625, -0.0102081298828125, -0.00914764404296875, 0.054962158203125, -0.021881103515625, 0.026611328125, -0.079345703125, 0.0018215179443359375, 0.00443267822265625, -0.0340576171875, 0.032806396484375, 0.0264434814453125, 0.0207061767578125, 0.024871826171875, 0.0201416015625, 0.016265869140625, 0.036865234375, -0.024932861328125, 0.033233642578125, 0.01192474365234375, 0.00823211669921875, -0.043212890625, 0.0087890625, 0.04071044921875, 0.042816162109375, -0.0416259765625, 0.0279541015625, -0.0015954971313476562, 0.00421142578125, -0.0128173828125, -0.045074462890625, 0.0121612548828125, 0.0345458984375, -0.005207061767578125, -0.004123687744140625, -0.0281982421875, 0.00376129150390625, 0.037109375, 0.0030307769775390625, -0.00641632080078125, 0.00656890869140625, -0.0309295654296875, -0.0665283203125, 0.0016202926635742188, 0.0131072998046875, 0.0662841796875, 0.03607177734375, 0.0204620361328125, 0.00179290771484375, -0.031463623046875, -0.024169921875, 0.021697998046875, 0.021942138671875, 0.0279541015625, -0.0259552001953125, 0.017303466796875, 0.0007424354553222656, 0.0236358642578125, -0.01171875, 0.0869140625, 0.0587158203125, 0.036865234375, -0.00994110107421875, -0.00383758544921875, 0.004505157470703125, -0.035736083984375, -0.022857666015625, 0.0121002197265625, 0.00058746337890625, 0.0227813720703125, -0.00475311279296875, -0.0122833251953125, 0.05902099609375, 0.00701904296875, 0.007282257080078125, 0.0007505416870117188, 0.01540374755859375, -0.037353515625, 0.01476287841796875, 0.0322265625, 0.042510986328125, 0.04559326171875, -0.01373291015625, 0.005245208740234375, -0.00853729248046875, -0.058258056640625, 0.0258636474609375, 0.047271728515625, -0.0193939208984375, 0.01325225830078125, 0.04449462890625, -0.03521728515625, -0.0182952880859375, 0.022613525390625, 0.0361328125, -0.019134521484375, 0.0020008087158203125, 0.020294189453125, -0.036163330078125, -0.00311279296875, -0.0037212371826171875, 0.0203704833984375, 0.014556884765625, 0.007129669189453125, -0.0031147003173828125, 0.01776123046875, 0.0293731689453125, -0.0235748291015625, 0.0108795166015625, 0.008148193359375, -0.004974365234375, -0.0143890380859375, 0.005481719970703125, -0.00559234619140625, -0.0626220703125, 0.029541015625, -0.004985809326171875, 0.0294952392578125, 0.032867431640625, -0.03875732421875, 0.021240234375, 0.0236053466796875, 0.015960693359375, -0.0185394287109375, -0.0088348388671875, -0.0154266357421875, -0.0285797119140625, 0.0140380859375, 0.00698089599609375, 0.01812744140625, 0.0013942718505859375, 0.0283660888671875, -0.006114959716796875, -0.0006442070007324219, 0.0176544189453125, -0.00257110595703125, 0.0159759521484375, 0.0247650146484375, 0.03448486328125, 0.0108795166015625, -0.029754638671875, 0.0345458984375, 0.00820159912109375, 0.005260467529296875, 0.00801849365234375, -0.01995849609375, -0.006862640380859375, 0.016998291015625, 0.06024169921875, 0.0302886962890625, 0.0297393798828125, -0.03094482421875, -0.01532745361328125, -0.00572967529296875, -0.0284881591796875, -0.034912109375, -0.043670654296875, 0.004039764404296875, 0.0222625732421875, -0.01328277587890625, -0.024078369140625, -0.033477783203125, 0.005397796630859375, 0.02178955078125, 0.01399993896484375, -0.06585693359375, 0.03973388671875, -0.0177154541015625, 0.009613037109375, 0.005481719970703125, 0.026519775390625, -0.004306793212890625, -0.006313323974609375, -0.046417236328125, -0.024932861328125, -0.015167236328125, 0.0557861328125, 0.01003265380859375, 0.0158843994140625, 0.043731689453125, -0.0171966552734375, -0.00559234619140625, 0.01511383056640625, 0.00914764404296875, 0.0711669921875, -0.01088714599609375, -0.012847900390625, -0.00977325439453125, 0.05438232421875, -0.0209197998046875, -0.06640625, 0.01015472412109375, -0.014373779296875, 0.034637451171875, 0.038116455078125, -0.0180511474609375, 0.010467529296875, -0.035247802734375, -0.07373046875, 0.08203125, -0.0010814666748046875, -0.0355224609375, -0.040191650390625, -0.01113128662109375, -0.0002949237823486328, 0.03131103515625, -0.028533935546875, 0.015106201171875, -0.057525634765625, 0.009124755859375, 0.01284027099609375, -0.00563812255859375, 0.05841064453125, -0.057464599609375, -0.0723876953125, -0.017242431640625, -0.02288818359375, 0.035980224609375, 0.001056671142578125, 0.005298614501953125, 0.032440185546875, 0.04168701171875, -0.022613525390625, 0.041259765625, -0.01282501220703125, -0.015655517578125, -0.0157318115234375, -0.035308837890625, -0.01464080810546875, 0.001190185546875, 0.09393310546875, -0.00019252300262451172, 0.0157012939453125, -0.03369140625, 0.006214141845703125, -0.0333251953125, -0.01107025146484375, -0.01641845703125, 0.002033233642578125, -0.05078125, -0.0013790130615234375, 0.00420379638671875, 0.0146026611328125, -0.0455322265625, -0.0198822021484375, -0.03692626953125, -0.02838134765625, 0.007625579833984375, 0.035400390625, -0.034423828125, -0.06524658203125, 0.10565185546875, -0.0292205810546875, 0.0323486328125, 0.0043487548828125, 0.057281494140625, 0.07208251953125, 0.0188446044921875, 0.01421356201171875, 0.0017309188842773438, -0.07025146484375, 0.01129913330078125, -0.007808685302734375, 0.0273284912109375, -0.044586181640625, -0.02008056640625, -0.00609588623046875, 0.0269775390625, -0.0018405914306640625, 0.0313720703125, -0.0209197998046875, 0.033660888671875, -0.00033855438232421875, 0.07073974609375, -0.072998046875, 0.0302276611328125, -0.030670166015625, -0.001194000244140625, -0.0305328369140625, 0.051513671875, 0.03033447265625, 0.005428314208984375, -0.001125335693359375, 0.0208587646484375, -0.0248565673828125, -0.03009033203125, -0.0263671875, 0.0223541259765625, 0.016143798828125, -0.0015001296997070312 ]
ce890f990572cb984d8920235982029c4b12eb9f
Wordpress Stackexchange Q: enqueue and localize script in footer I have a script which must run in my footer, after some variables are declared. It works if I just put the code directly in my footer file, but I think best practices dictate I should do this via functions.php and wp_localize_script. Unfortunately that doesn't work; the script is always output in the header. Any ideas on where I'm going wrong? Thanks in advance for your help! add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_front_page_scripts' ); function mytheme_enqueue_front_page_scripts() { wp_register_script('flowplayer_object', get_bloginfo('stylesheet_directory') . '/_/js/flowplayer/flowplayer-object-creator.js' ); // last 'true' in wp_enqueue_script should force this into footer, right? wp_enqueue_script( 'flowplayer_object','','',true, true ); $data = array( 'my_stylesheet_path' => __( get_bloginfo('stylesheet_directory') ) ); wp_localize_script( 'flowplayer_object', 'my_data', $data ); } A: You should be setting it to show in the footer with the register, so your code should look like this: wp_register_script( 'flowplayer_object', get_bloginfo( 'stylesheet_directory' ) . '/_/js/flowplayer/flowplayer-object-creator.js', array(), // these are your dependencies, if you need jQuery or something, it needs to go in that array false, // set a version if you want true // this will put it in the footer ); wp_enqueue_script( 'flowplayer_object' );
Q: enqueue and localize script in footer I have a script which must run in my footer, after some variables are declared. It works if I just put the code directly in my footer file, but I think best practices dictate I should do this via functions.php and wp_localize_script. Unfortunately that doesn't work; the script is always output in the header. Any ideas on where I'm going wrong? Thanks in advance for your help! add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_front_page_scripts' ); function mytheme_enqueue_front_page_scripts() { wp_register_script('flowplayer_object', get_bloginfo('stylesheet_directory') . '/_/js/flowplayer/flowplayer-object-creator.js' ); // last 'true' in wp_enqueue_script should force this into footer, right? wp_enqueue_script( 'flowplayer_object','','',true, true ); $data = array( 'my_stylesheet_path' => __( get_bloginfo('stylesheet_directory') ) ); wp_localize_script( 'flowplayer_object', 'my_data', $data ); } A: You should be setting it to show in the footer with the register, so your code should look like this: wp_register_script( 'flowplayer_object', get_bloginfo( 'stylesheet_directory' ) . '/_/js/flowplayer/flowplayer-object-creator.js', array(), // these are your dependencies, if you need jQuery or something, it needs to go in that array false, // set a version if you want true // this will put it in the footer ); wp_enqueue_script( 'flowplayer_object' );
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:416792", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41204" }
[ 0.0203857421875, 0.0059356689453125, -0.0638427734375, -0.049896240234375, 0.0117034912109375, -0.031402587890625, -0.0295562744140625, 0.0121612548828125, -0.037841796875, 0.01230621337890625, -0.039947509765625, 0.0253143310546875, -0.046875, 0.0081634521484375, -0.0007576942443847656, -0.051666259765625, 0.058349609375, -0.0180816650390625, 0.045654296875, -0.001041412353515625, 0.012420654296875, 0.040435791015625, 0.0633544921875, 0.0750732421875, -0.0078277587890625, -0.0183258056640625, 0.1029052734375, 0.005977630615234375, -0.020263671875, -0.01702880859375, 0.01508331298828125, 0.00531005859375, 0.044708251953125, 0.023193359375, -0.046539306640625, -0.01125335693359375, 0.00817108154296875, -0.01025390625, -0.005535125732421875, 0.032806396484375, 0.03216552734375, -0.0115509033203125, -0.053497314453125, 0.049835205078125, -0.04473876953125, -0.048583984375, 0.02386474609375, 0.00728607177734375, -0.00572967529296875, 0.0550537109375, 0.002681732177734375, 0.00707244873046875, -0.0069427490234375, 0.06304931640625, 0.004856109619140625, -0.0061187744140625, -0.025421142578125, -0.00975799560546875, 0.00109100341796875, 0.0941162109375, 0.0277557373046875, 0.0377197265625, -0.00969696044921875, -0.035430908203125, -0.024322509765625, 0.005908966064453125, -0.04132080078125, 0.0005121231079101562, -0.00933837890625, -0.015655517578125, 0.01934814453125, -0.0318603515625, -0.002285003662109375, -0.0167388916015625, -0.0207672119140625, 0.004993438720703125, -0.025543212890625, -0.0142364501953125, 0.0310211181640625, -0.00580596923828125, -0.0234222412109375, -0.0176239013671875, -0.0003573894500732422, 0.005016326904296875, -0.033966064453125, 0.014129638671875, -0.032318115234375, 0.0006327629089355469, -0.042877197265625, -0.033172607421875, -0.0278472900390625, -0.01226806640625, -0.03369140625, -0.0421142578125, -0.0253143310546875, -0.01529693603515625, 0.060546875, 0.045989990234375, 0.014068603515625, 0.0167236328125, 0.008697509765625, -0.0660400390625, 0.03570556640625, -0.038360595703125, 0.01092529296875, 0.0711669921875, -0.00922393798828125, -0.056427001953125, 0.0011501312255859375, -0.01157379150390625, -0.00016117095947265625, -0.01629638671875, 0.01403045654296875, 0.004512786865234375, -0.03192138671875, -0.015838623046875, -0.0236968994140625, -0.0191802978515625, -0.00782012939453125, -0.0194549560546875, 0.021881103515625, 0.055450439453125, 0.011810302734375, -0.0279083251953125, -0.0367431640625, -0.0264434814453125, 0.00888824462890625, -0.06744384765625, 0.0201568603515625, 0.076416015625, -0.0187835693359375, -0.016571044921875, 0.05230712890625, 0.002288818359375, -0.01439666748046875, -0.044769287109375, 0.025146484375, 0.033935546875, 0.0038909912109375, -0.0051727294921875, -0.01482391357421875, -0.01018524169921875, 0.00726318359375, 0.0022373199462890625, -0.009307861328125, 0.0244903564453125, 0.005138397216796875, -0.0098876953125, 0.003917694091796875, -0.0137786865234375, -0.0185699462890625, -0.03399658203125, 0.01125335693359375, 0.01236724853515625, 0.00563812255859375, -0.002216339111328125, 0.011993408203125, 0.00201416015625, 0.006954193115234375, -0.0022525787353515625, -0.041656494140625, 0.002391815185546875, 0.0205535888671875, -0.037689208984375, -0.0360107421875, -0.01421356201171875, 0.01207733154296875, 0.0033473968505859375, 0.0279388427734375, 0.055511474609375, -0.004833221435546875, -0.0271453857421875, 0.0157928466796875, 0.005756378173828125, -0.0294952392578125, 0.0091400146484375, -0.0074920654296875, -0.0058746337890625, 0.0369873046875, -0.0162811279296875, -0.03204345703125, -0.03076171875, 0.058929443359375, -0.035125732421875, -0.0245208740234375, -0.01641845703125, 0.02728271484375, -0.0028476715087890625, -0.0010547637939453125, 0.00966644287109375, 0.05364990234375, 0.037933349609375, -0.0467529296875, -0.00506591796875, -0.0296478271484375, -0.004550933837890625, 0.022308349609375, 0.017913818359375, -0.006580352783203125, 0.0186614990234375, -0.005550384521484375, -0.0183258056640625, 0.05303955078125, 0.00876617431640625, 0.006999969482421875, 0.0085296630859375, -0.0173797607421875, 0.032806396484375, 0.017578125, -0.0025119781494140625, 0.00206756591796875, 0.020355224609375, -0.01108551025390625, -0.0250396728515625, -0.009613037109375, 0.04913330078125, -0.019622802734375, 0.0474853515625, 0.020751953125, 0.0108795166015625, 0.045745849609375, -0.04296875, 0.05108642578125, 0.0171051025390625, -0.029144287109375, -0.01457977294921875, -0.0113677978515625, -0.007598876953125, -0.003002166748046875, -0.01300811767578125, 0.0650634765625, 0.0305633544921875, -0.0002567768096923828, 0.014892578125, -0.0179443359375, -0.0204315185546875, -0.00064849853515625, -0.0550537109375, 0.0308074951171875, 0.04681396484375, 0.0269775390625, 0.054107666015625, 0.0008077621459960938, 0.016845703125, 0.044647216796875, -0.027008056640625, 0.02191162109375, 0.002956390380859375, 0.0196533203125, 0.0262908935546875, -0.034515380859375, -0.0128936767578125, 0.030487060546875, -0.050750732421875, -0.0019292831420898438, 0.058013916015625, -0.02276611328125, -0.02374267578125, 0.00882720947265625, 0.0076904296875, 0.006008148193359375, 0.0102691650390625, 0.0016078948974609375, -0.005767822265625, 0.0458984375, -0.03125, -0.01983642578125, -0.0574951171875, -0.0821533203125, 0.05145263671875, 0.068115234375, -0.0220947265625, -0.001972198486328125, -0.00188446044921875, 0.00490570068359375, -0.052337646484375, -0.016265869140625, 0.00937652587890625, 0.0014028549194335938, -0.02606201171875, 0.0120391845703125, 0.0140228271484375, -0.0655517578125, -0.0091705322265625, 0.024566650390625, -0.03955078125, -0.0242156982421875, 0.05279541015625, 0.042266845703125, 0.017242431640625, 0.040435791015625, 0.0193023681640625, -0.014312744140625, 0.032562255859375, 0.01078033447265625, -0.02264404296875, 0.084228515625, -0.0009741783142089844, 0.01058197021484375, 0.0092315673828125, 0.03759765625, 0.054534912109375, 0.01418304443359375, -0.038330078125, 0.00830078125, 0.0008764266967773438, 0.03765869140625, -0.026123046875, -0.03082275390625, -0.0200347900390625, -0.034454345703125, -0.003910064697265625, 0.02777099609375, 0.024261474609375, 0.0161895751953125, -0.046142578125, 0.00157928466796875, 0.013885498046875, -0.1080322265625, -0.11529541015625, -0.0034732818603515625, -0.072998046875, 0.044281005859375, -0.0178985595703125, -0.020751953125, -0.0259246826171875, 0.019195556640625, 0.016937255859375, -0.0251922607421875, -0.03839111328125, -0.006633758544921875, -0.06646728515625, -0.03668212890625, 0.012054443359375, 0.0085601806640625, -0.0024662017822265625, 0.011016845703125, -0.0207977294921875, 0.0107879638671875, -0.02117919921875, 0.035491943359375, 0.001628875732421875, -0.00647735595703125, 0.0118408203125, 0.01971435546875, -0.02069091796875, -0.016357421875, 0.004451751708984375, -0.058837890625, 0.01528167724609375, 0.0012264251708984375, -0.0166473388671875, -0.0014562606811523438, -0.01110076904296875, 0.00946807861328125, 0.041961669921875, -0.006984710693359375, -0.021026611328125, 0.024566650390625, -0.048431396484375, -0.04437255859375, 0.0303192138671875, -0.016815185546875, 0.002384185791015625, -0.005100250244140625, -0.0213165283203125, -0.001567840576171875, 0.037872314453125, 0.03399658203125, -0.001735687255859375, -0.0077362060546875, -0.00653076171875, 0.0194244384765625, 0.00489044189453125, 0.03759765625, -0.0100555419921875, 0.07232666015625, 0.00429534912109375, -0.007617950439453125, 0.028564453125, -0.005634307861328125, -0.0116424560546875, -0.007083892822265625, -0.0509033203125, 0.004848480224609375, 0.01482391357421875, 0.0062713623046875, 0.02191162109375, 0.00787353515625, -0.00736236572265625, 0.0164031982421875, 0.035125732421875, -0.020477294921875, -0.005359649658203125, 0.01824951171875, -0.0018291473388671875, -0.031829833984375, -0.00939178466796875, -0.05621337890625, 0.004108428955078125, -0.0084075927734375, 0.003810882568359375, -0.00678253173828125, -0.005199432373046875, -0.006992340087890625, 0.0251007080078125, 0.00255584716796875, -0.0214691162109375, 0.03594970703125, -0.057403564453125, -0.039886474609375, 0.0628662109375, -0.060455322265625, 0.01395416259765625, -0.038421630859375, -0.00836181640625, -0.0823974609375, -0.02423095703125, -0.0202484130859375, 0.09881591796875, 0.04351806640625, -0.05078125, 0.01806640625, 0.08538818359375, -0.035186767578125, 0.032501220703125, 0.004070281982421875, 0.040924072265625, 0.01129150390625, 0.0019016265869140625, 0.0061187744140625, -0.0191192626953125, -0.015869140625, 0.00890350341796875, -0.044403076171875, 0.046844482421875, 0.00287628173828125, 0.0157470703125, 0.036865234375, -0.02294921875, -0.0295867919921875, 0.0021514892578125, 0.0030994415283203125, -0.0306854248046875, 0.00853729248046875, -0.0305328369140625, 0.0268096923828125, -0.020355224609375, 0.0080718994140625, -0.00882720947265625, 0.01219940185546875, 0.00977325439453125, 0.03680419921875, 0.0202789306640625, -0.00655364990234375, -0.0182647705078125, 0.061553955078125, 0.039276123046875, 0.003192901611328125, 0.056884765625, 0.005336761474609375, -0.0352783203125, 0.086669921875, 0.032470703125, -0.0094146728515625, 0.0290374755859375, 0.021240234375, 0.03509521484375, -0.01270294189453125, 0.013580322265625, 0.03399658203125, -0.04638671875, -0.007350921630859375, -0.018524169921875, 0.01055145263671875, 0.00278472900390625, -0.005970001220703125, -0.01004791259765625, 0.007076263427734375, -0.00308990478515625, -0.0455322265625, 0.000591278076171875, -0.040435791015625, 0.042266845703125, 0.0166778564453125, 0.0006513595581054688, 0.0179443359375, 0.06829833984375, -0.0168609619140625, 0.048370361328125, -0.01215362548828125, 0.034271240234375, 0.016204833984375, 0.02191162109375, -0.00397491455078125, 0.0289459228515625, 0.010711669921875, 0.0164337158203125, -0.00044226646423339844, -0.04693603515625, -0.02532958984375, 0.0227508544921875, 0.049407958984375, 0.01323699951171875, 0.0413818359375, 0.057220458984375, 0.0426025390625, 0.0162811279296875, -0.030181884765625, 0.0182037353515625, 0.040618896484375, -0.0394287109375, 0.0195770263671875, -0.0044708251953125, -0.0204925537109375, -0.04364013671875, 0.039886474609375, -0.00884246826171875, -0.0166168212890625, -0.000579833984375, 0.01323699951171875, -0.0210723876953125, 0.04180908203125, 0.05023193359375, -0.03076171875, 0.00800323486328125, 0.013916015625, -0.0195465087890625, -0.0322265625, 0.01555633544921875, -0.0112457275390625, 0.01788330078125, -0.0232086181640625, -0.0252532958984375, 0.052978515625, -0.00118255615234375, -0.01056671142578125, 0.0219268798828125, 0.00026535987854003906, -0.042694091796875, -0.0083160400390625, -0.020904541015625, 0.012115478515625, -0.02734375, 0.0110626220703125, -0.016387939453125, -0.01497650146484375, 0.00795745849609375, 0.0244293212890625, -0.0101776123046875, -0.0162353515625, -0.0263671875, -0.0231781005859375, 0.00872802734375, -0.007076263427734375, -0.0302276611328125, -0.053497314453125, 0.007183074951171875, -0.0034656524658203125, 0.025146484375, -0.01708984375, 0.0013341903686523438, -0.0274505615234375, 0.0278472900390625, -0.042938232421875, 0.0158538818359375, -0.0033931732177734375, -0.033294677734375, -0.031982421875, -0.00579071044921875, -0.054931640625, -0.01548004150390625, -0.01141357421875, -0.05426025390625, -0.0211334228515625, -0.0164642333984375, -0.00849151611328125, 0.0252685546875, -0.026641845703125, -0.0227203369140625, 0.0100860595703125, -0.00322723388671875, -0.0096588134765625, 0.0285186767578125, -0.0396728515625, 0.04742431640625, 0.03265380859375, -0.01544189453125, 0.0164031982421875, 0.035675048828125, 0.01102447509765625, -0.006374359130859375, -0.010498046875, -0.0308990478515625, 0.03106689453125, -0.021514892578125, 0.03216552734375, 0.00927734375, 0.03594970703125, 0.028106689453125, 0.04010009765625, 0.0228424072265625, -0.000484466552734375, -0.0095367431640625, 0.016754150390625, 0.0247344970703125, 0.033203125, 0.08551025390625, -0.0347900390625, 0.00901031494140625, 0.0104827880859375, 0.004711151123046875, 0.01456451416015625, -0.037933349609375, 0.01239776611328125, -0.001506805419921875, -0.06927490234375, 0.065673828125, 0.0309906005859375, 0.0258026123046875, 0.022064208984375, -0.0183258056640625, -0.00246429443359375, -0.03192138671875, -0.00502777099609375, -0.021270751953125, -0.0145416259765625, 0.004974365234375, -0.0269012451171875, 0.010162353515625, -0.01047515869140625, -0.0023822784423828125, -0.001392364501953125, 0.0460205078125, 0.035552978515625, -0.060150146484375, 0.003398895263671875, 0.004161834716796875, -0.0110931396484375, -0.0186920166015625, -0.017913818359375, 0.0081024169921875, 0.004344940185546875, 0.024688720703125, 0.009185791015625, -0.018524169921875, 0.00916290283203125, 0.0139617919921875, -0.007335662841796875, 0.0178985595703125, 0.01035308837890625, 0.0160064697265625, -0.0064849853515625, 0.0012941360473632812, 0.00978851318359375, 0.019012451171875, -0.032135009765625, 0.03607177734375, -0.0185089111328125, -0.00908660888671875, -0.0211334228515625, 0.0307464599609375, -0.0199432373046875, 0.00733184814453125, 0.0145721435546875, 0.009613037109375, 0.041900634765625, 0.032958984375, 0.00969696044921875, -0.004180908203125, -0.0064544677734375, 0.05535888671875, -0.046600341796875, -0.0275726318359375, 0.052825927734375, 0.025238037109375, -0.05767822265625, 0.032196044921875, -0.0299530029296875, -0.0309295654296875, 0.0006704330444335938, -0.049041748046875, 0.028289794921875, -0.020751953125, -0.018157958984375, -0.01137542724609375, 0.01399993896484375, 0.02593994140625, -0.042938232421875, 0.06964111328125, -0.08892822265625, -0.0714111328125, 0.0184173583984375, -0.08221435546875, -0.048187255859375, -0.06842041015625, -0.007030487060546875, 0.0704345703125, -0.005126953125, -0.0196380615234375, 0.0100860595703125, 0.06658935546875, 0.0019321441650390625, 0.058197021484375, -0.01250457763671875, 0.03643798828125, -0.00946807861328125, 0.06048583984375, -0.01503753662109375, 0.0037994384765625, 0.059295654296875, 0.04742431640625, 0.05718994140625, -0.00308990478515625, 0.076171875, 0.0094757080078125, 0.059783935546875, 0.060760498046875, -0.01374053955078125, -0.06304931640625, 0.0178375244140625, 0.01751708984375, 0.00884246826171875, -0.016082763671875, 0.041961669921875, -0.0933837890625, -0.00849151611328125, 0.03265380859375, -0.0088958740234375, -0.01194000244140625, 0.01009368896484375, -0.026031494140625, 0.016876220703125, 0.00859832763671875, -0.03179931640625, 0.0084228515625, -0.01169586181640625, 0.0382080078125, -0.0081939697265625, 0.0112457275390625, -0.04913330078125, -0.00270843505859375, 0.0021343231201171875, -0.0132598876953125, -0.004291534423828125, -0.01357269287109375, 0.0013818740844726562, 0.0275726318359375, -0.01079559326171875, -0.01204681396484375, 0.039154052734375, -0.00856781005859375, 0.00420379638671875, 0.049102783203125, 0.029937744140625, 0.014892578125, -0.01316070556640625, 0.031463623046875, 0.02496337890625, -0.0214080810546875, 0.0231475830078125, 0.0181884765625, 0.0307159423828125, -0.0013675689697265625, -0.046234130859375, 0.00007420778274536133, -0.0362548828125, -0.012359619140625, -0.00925445556640625, -0.0070037841796875, -0.01129150390625, -0.005962371826171875, -0.0102081298828125, -0.00971221923828125, 0.0032482147216796875, 0.02655029296875, -0.07489013671875, 0.039337158203125, 0.0182952880859375, 0.07135009765625, 0.024932861328125, 0.03533935546875, 0.018890380859375, -0.02294921875, -0.045135498046875, 0.046722412109375, 0.033172607421875, 0.044097900390625, -0.08001708984375, -0.00878143310546875, 0.003696441650390625, 0.063720703125, 0.005588531494140625, -0.035614013671875, 0.028106689453125, 0.033294677734375, -0.0183563232421875, -0.02294921875, 0.0269622802734375, -0.014923095703125, 0.032806396484375, -0.001552581787109375, -0.0196990966796875, -0.028228759765625, -0.0364990234375, 0.0023365020751953125, 0.0343017578125, -0.011810302734375, 0.00202178955078125, 0.01371002197265625, 0.010009765625, -0.029052734375, 0.03021240234375, 0.0139923095703125, 0.0987548828125, 0.0285491943359375, -0.0484619140625, 0.0008897781372070312, -0.00618743896484375, -0.08319091796875, 0.026611328125, 0.04534912109375, -0.006649017333984375, -0.01383209228515625, 0.0258636474609375, -0.0256195068359375, 0.01557159423828125, -0.004970550537109375, 0.01509857177734375, 0.013092041015625, 0.01532745361328125, 0.0119781494140625, -0.03289794921875, -0.043609619140625, -0.016204833984375, 0.04913330078125, 0.02239990234375, 0.035888671875, -0.0196075439453125, 0.039947509765625, 0.021575927734375, -0.02667236328125, 0.04254150390625, 0.0140838623046875, -0.018798828125, 0.0170745849609375, 0.0231781005859375, -0.00939178466796875, -0.07135009765625, 0.0003147125244140625, 0.0462646484375, 0.0032978057861328125, 0.0238494873046875, 0.00106048583984375, 0.01291656494140625, -0.030181884765625, 0.01331329345703125, -0.0239105224609375, -0.06976318359375, -0.047027587890625, 0.0313720703125, 0.0014963150024414062, 0.0256805419921875, -0.00231170654296875, -0.006412506103515625, 0.01515960693359375, -0.04364013671875, 0.0345458984375, -0.01308441162109375, 0.030914306640625, 0.0243682861328125, 0.04193115234375, -0.0019369125366210938, 0.036865234375, -0.01248931884765625, 0.0167236328125, 0.0161590576171875, 0.03424072265625, 0.005664825439453125, -0.031646728515625, 0.016387939453125, 0.0296630859375, 0.0263824462890625, -0.01055908203125, 0.0160064697265625, 0.04010009765625, -0.034088134765625, -0.0242767333984375, -0.049407958984375, -0.02490234375, -0.041961669921875, -0.005893707275390625, 0.0148773193359375, -0.0005865097045898438, -0.039031982421875, -0.00797271728515625, 0.00316619873046875, 0.005458831787109375, -0.022613525390625, -0.0533447265625, 0.00640106201171875, -0.04400634765625, 0.072265625, -0.05548095703125, 0.0458984375, -0.017486572265625, -0.01020050048828125, -0.0189056396484375, 0.0018157958984375, -0.00873565673828125, 0.0369873046875, 0.0301971435546875, -0.0318603515625, 0.00800323486328125, 0.0172271728515625, -0.057037353515625, -0.0119476318359375, -0.0224761962890625, 0.03887939453125, -0.039337158203125, -0.0191497802734375, 0.00855255126953125, 0.00902557373046875, -0.01009368896484375, -0.034149169921875, 0.01251983642578125, -0.043914794921875, 0.00743865966796875, -0.031524658203125, 0.021270751953125, 0.025482177734375, -0.034912109375, -0.060760498046875, 0.04559326171875, -0.0129241943359375, -0.0298309326171875, -0.044189453125, 0.0010156631469726562, 0.0015115737915039062, 0.0292205810546875, -0.0188446044921875, -0.01557159423828125, -0.050262451171875, 0.00601959228515625, 0.007080078125, 0.0277557373046875, 0.0268707275390625, -0.034637451171875, -0.034576416015625, -0.004241943359375, 0.007633209228515625, 0.01092529296875, -0.01052093505859375, 0.031463623046875, 0.0102996826171875, 0.039337158203125, -0.00896453857421875, 0.0198516845703125, -0.0191192626953125, -0.0273590087890625, 0.00910186767578125, 0.0099945068359375, -0.01561737060546875, -0.008544921875, 0.072021484375, -0.01849365234375, 0.0214691162109375, -0.004428863525390625, -0.017425537109375, -0.05230712890625, -0.0175018310546875, -0.01137542724609375, 0.032867431640625, -0.07867431640625, 0.00495147705078125, 0.02740478515625, 0.030670166015625, -0.044769287109375, -0.04888916015625, -0.00261688232421875, -0.05535888671875, -0.000850677490234375, 0.023040771484375, 0.036865234375, -0.045654296875, 0.06964111328125, -0.01512908935546875, 0.014984130859375, 0.01947021484375, 0.0255126953125, 0.039764404296875, 0.0648193359375, -0.020599365234375, 0.01364898681640625, -0.027252197265625, 0.0250091552734375, 0.001079559326171875, 0.020721435546875, -0.0145263671875, -0.005878448486328125, 0.001430511474609375, 0.018218994140625, -0.0142059326171875, 0.0284576416015625, -0.0026454925537109375, 0.051483154296875, -0.003978729248046875, 0.048248291015625, -0.06341552734375, -0.001552581787109375, -0.01546478271484375, -0.0124969482421875, -0.0207366943359375, 0.03924560546875, 0.06695556640625, -0.023529052734375, 0.01068115234375, -0.01491546630859375, -0.035308837890625, 0.0219268798828125, -0.04644775390625, -0.0888671875, -0.0311279296875, -0.002017974853515625 ]
44b40694ccb18af4426d91bd417a771b695f774a
Wordpress Stackexchange Q: Max length of meta_value I was wondering if anyone could tell me the max length of the meta_value field for posts and user meta. A: Both usermeta.meta_value and postmeta.meta_value are stored as LONGTEXT. Here's how the MySQL docs describe the size of a LONGTEXT data type: "A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters. The effective maximum length is less if the value contains multi-byte characters. The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory." Source
Q: Max length of meta_value I was wondering if anyone could tell me the max length of the meta_value field for posts and user meta. A: Both usermeta.meta_value and postmeta.meta_value are stored as LONGTEXT. Here's how the MySQL docs describe the size of a LONGTEXT data type: "A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters. The effective maximum length is less if the value contains multi-byte characters. The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory." Source
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:416802", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41239" }
[ -0.036346435546875, -0.044189453125, -0.00384521484375, 0.0265655517578125, -0.053436279296875, 0.010162353515625, -0.00698089599609375, -0.0114898681640625, 0.01727294921875, 0.042236328125, -0.00896453857421875, -0.0112152099609375, 0.0117034912109375, -0.005565643310546875, -0.0347900390625, -0.0267333984375, 0.032257080078125, 0.033966064453125, 0.060882568359375, 0.016815185546875, 0.0025577545166015625, 0.057037353515625, 0.00396728515625, 0.00481414794921875, 0.028045654296875, -0.03497314453125, 0.04388427734375, -0.034698486328125, 0.0002224445343017578, -0.03924560546875, 0.00835418701171875, 0.03472900390625, 0.0302581787109375, -0.023284912109375, 0.028289794921875, -0.0220794677734375, 0.006641387939453125, -0.0124359130859375, -0.01491546630859375, 0.0122528076171875, 0.0170135498046875, -0.007297515869140625, 0.0055389404296875, -0.0046844482421875, -0.0171356201171875, -0.00695037841796875, 0.0234222412109375, -0.0345458984375, 0.0311431884765625, -0.004230499267578125, -0.0168914794921875, 0.0047760009765625, -0.0037384033203125, -0.036773681640625, -0.00621795654296875, -0.0010967254638671875, -0.038787841796875, -0.001110076904296875, 0.03948974609375, 0.036529541015625, 0.0025196075439453125, -0.029632568359375, 0.00786590576171875, -0.03118896484375, -0.00374603271484375, -0.01059722900390625, -0.00005924701690673828, 0.0219573974609375, 0.0247802734375, 0.0125732421875, 0.00217437744140625, -0.0010595321655273438, 0.00772857666015625, -0.043853759765625, -0.004917144775390625, 0.0291900634765625, -0.0130767822265625, -0.0160980224609375, 0.019775390625, -0.019195556640625, 0.02166748046875, -0.0209503173828125, -0.0209503173828125, -0.01525115966796875, 0.0032062530517578125, -0.0254974365234375, -0.004741668701171875, -0.006847381591796875, 0.01517486572265625, -0.032196044921875, 0.01071929931640625, -0.03436279296875, 0.00240325927734375, 0.037445068359375, 0.0017004013061523438, -0.039764404296875, 0.01096343994140625, 0.01959228515625, -0.0283355712890625, 0.01500701904296875, 0.0401611328125, -0.0501708984375, 0.07806396484375, -0.0293426513671875, -0.00502777099609375, 0.0199737548828125, -0.0367431640625, -0.03594970703125, 0.0034770965576171875, 0.031280517578125, -0.025299072265625, -0.049957275390625, -0.005985260009765625, 0.016143798828125, -0.01010894775390625, -0.00036263465881347656, -0.051544189453125, 0.053070068359375, -0.006267547607421875, 0.04461669921875, -0.0253448486328125, -0.020050048828125, 0.047119140625, -0.0364990234375, 0.040771484375, 0.0214385986328125, -0.04339599609375, -0.01410675048828125, -0.062469482421875, 0.1043701171875, -0.01415252685546875, -0.0318603515625, -0.0270538330078125, 0.006900787353515625, -0.0340576171875, -0.042022705078125, -0.02252197265625, -0.085693359375, -0.030242919921875, 0.0732421875, -0.07196044921875, -0.08551025390625, 0.041412353515625, -0.0418701171875, -0.06842041015625, 0.03033447265625, 0.02459716796875, -0.003509521484375, -0.033721923828125, -0.06292724609375, -0.0650634765625, -0.00452423095703125, 0.04559326171875, -0.005817413330078125, -0.08026123046875, -0.0295257568359375, -0.006801605224609375, -0.0249481201171875, -0.039215087890625, -0.056854248046875, -0.0082550048828125, -0.002895355224609375, 0.03533935546875, -0.0226287841796875, -0.0411376953125, 0.00675201416015625, -0.0256805419921875, -0.00392913818359375, 0.0199127197265625, 0.026611328125, -0.01413726806640625, 0.01812744140625, 0.00946807861328125, -0.0168609619140625, -0.0154266357421875, -0.022491455078125, -0.0090789794921875, -0.0014972686767578125, 0.04095458984375, -0.01904296875, -0.034149169921875, -0.033966064453125, 0.027923583984375, -0.01204681396484375, -0.007598876953125, -0.0009889602661132812, 0.00542449951171875, 0.016693115234375, 0.02191162109375, 0.01306915283203125, 0.0103759765625, -0.0015420913696289062, 0.006404876708984375, -0.017303466796875, -0.01165008544921875, 0.0030651092529296875, 0.0179595947265625, 0.02520751953125, -0.0169830322265625, -0.0178985595703125, 0.06243896484375, 0.00998687744140625, 0.00844573974609375, -0.0304718017578125, -0.08477783203125, 0.01148223876953125, -0.0235595703125, 0.034027099609375, -0.01371002197265625, 0.02227783203125, -0.002593994140625, -0.033843994140625, -0.002346038818359375, 0.031982421875, 0.0284881591796875, 0.0021114349365234375, -0.0035839080810546875, 0.02105712890625, 0.003841400146484375, 0.006893157958984375, -0.01239776611328125, -0.018310546875, -0.022003173828125, -0.003849029541015625, 0.0018148422241210938, 0.01398468017578125, -0.00302886962890625, 0.01209259033203125, 0.04730224609375, 0.0169677734375, 0.034881591796875, -0.03485107421875, -0.0015726089477539062, -0.021514892578125, -0.0450439453125, -0.0164337158203125, -0.029998779296875, -0.09814453125, 0.019683837890625, 0.081787109375, 0.0214691162109375, 0.0158538818359375, -0.0304718017578125, 0.01629638671875, -0.0088043212890625, -0.03997802734375, 0.0094451904296875, -0.002193450927734375, 0.034423828125, 0.06280517578125, -0.031341552734375, -0.004058837890625, 0.009368896484375, -0.046722412109375, 0.01050567626953125, 0.0280303955078125, -0.032196044921875, 0.0122528076171875, -0.018798828125, 0.021820068359375, -0.016632080078125, 0.028167724609375, 0.038177490234375, -0.0208892822265625, 0.0163421630859375, 0.05023193359375, 0.053680419921875, 0.054351806640625, -0.0261993408203125, 0.02996826171875, 0.00897216796875, 0.0120086669921875, -0.00568389892578125, -0.054046630859375, 0.0162811279296875, 0.004314422607421875, -0.043670654296875, 0.019561767578125, 0.01421356201171875, -0.024383544921875, -0.014434814453125, 0.003509521484375, -0.050140380859375, 0.0013055801391601562, 0.017059326171875, -0.0325927734375, -0.0063018798828125, 0.01483917236328125, 0.0294647216796875, 0.038909912109375, 0.039459228515625, 0.04437255859375, 0.0081787109375, 0.0279541015625, 0.0132293701171875, 0.0011281967163085938, 0.00476837158203125, -0.05169677734375, 0.06097412109375, -0.055206298828125, 0.0211334228515625, 0.053009033203125, -0.065185546875, 0.0557861328125, -0.01290130615234375, 0.0164794921875, -0.037109375, 0.053131103515625, 0.01190185546875, -0.050628662109375, -0.0029048919677734375, -0.001964569091796875, 0.013153076171875, 0.0004303455352783203, 0.0185546875, -0.0069427490234375, 0.005901336669921875, 0.0221099853515625, -0.012298583984375, -0.0421142578125, 0.0286407470703125, -0.0374755859375, -0.01751708984375, -0.035003662109375, -0.0265350341796875, 0.00043702125549316406, -0.01239013671875, -0.0120697021484375, -0.0142059326171875, -0.042266845703125, -0.048797607421875, -0.06341552734375, -0.0484619140625, 0.0088653564453125, 0.0016832351684570312, 0.007312774658203125, -0.0282745361328125, 0.060394287109375, -0.039093017578125, -0.09942626953125, -0.1009521484375, -0.039154052734375, -0.0099334716796875, -0.022003173828125, 0.01125335693359375, -0.002330780029296875, -0.0078277587890625, 0.0220794677734375, -0.018646240234375, 0.0140228271484375, -0.022064208984375, -0.0262451171875, 0.0027923583984375, -0.017059326171875, 0.0233154296875, -0.0198974609375, -0.0229949951171875, 0.01898193359375, 0.024078369140625, -0.03692626953125, -0.05120849609375, 0.0150909423828125, -0.060302734375, 0.0163726806640625, -0.00792694091796875, 0.027008056640625, 0.00618743896484375, 0.040435791015625, -0.014251708984375, -0.008056640625, 0.058197021484375, -0.043975830078125, -0.01580810546875, -0.0169525146484375, -0.0167083740234375, -0.0197296142578125, -0.01800537109375, -0.05621337890625, 0.0169677734375, -0.02276611328125, -0.006439208984375, -0.00457763671875, -0.0126953125, 0.01070404052734375, -0.08062744140625, 0.059814453125, 0.01849365234375, 0.007335662841796875, -0.0235443115234375, -0.045074462890625, 0.0013608932495117188, 0.1126708984375, 0.037384033203125, -0.0085906982421875, -0.0233917236328125, 0.003101348876953125, -0.07171630859375, -0.039764404296875, -0.026336669921875, 0.03594970703125, -0.027923583984375, -0.015350341796875, 0.00620269775390625, -0.039031982421875, -0.01495361328125, 0.0274810791015625, -0.0302276611328125, -0.007411956787109375, 0.01480865478515625, 0.0004208087921142578, 0.0238494873046875, -0.0211639404296875, 0.034637451171875, -0.04022216796875, 0.00536346435546875, -0.0221710205078125, -0.054168701171875, -0.033599853515625, 0.0180511474609375, 0.062408447265625, 0.0167083740234375, -0.0404052734375, 0.005340576171875, 0.047149658203125, 0.00676727294921875, 0.0115509033203125, 0.01259613037109375, -0.01708984375, 0.038604736328125, 0.025054931640625, 0.0159759521484375, 0.00482177734375, -0.0206298828125, -0.061859130859375, 0.0115966796875, -0.02178955078125, -0.0225982666015625, 0.0214080810546875, -0.03485107421875, 0.027374267578125, -0.0185546875, -0.03515625, -0.0236358642578125, 0.034515380859375, -0.01898193359375, 0.0059814453125, -0.060333251953125, -0.049102783203125, 0.065185546875, 0.03759765625, 0.018798828125, -0.00231170654296875, 0.054168701171875, -0.020111083984375, -0.05462646484375, -0.1060791015625, -0.00811767578125, 0.0249481201171875, 0.030548095703125, 0.01235198974609375, 0.00011438131332397461, -0.019073486328125, 0.043609619140625, 0.0150299072265625, 0.02197265625, 0.0010528564453125, 0.023468017578125, 0.00844573974609375, 0.004718780517578125, -0.000507354736328125, 0.016571044921875, -0.0178070068359375, 0.0238037109375, -0.01326751708984375, -0.007678985595703125, -0.04876708984375, 0.0214691162109375, 0.00860595703125, -0.0007491111755371094, -0.0272369384765625, -0.0535888671875, 0.03143310546875, -0.09002685546875, -0.003688812255859375, -0.032012939453125, -0.00007021427154541016, -0.00698089599609375, -0.005767822265625, -0.01190185546875, 0.01100921630859375, -0.02276611328125, 0.00787353515625, 0.01544189453125, -0.005268096923828125, -0.004238128662109375, 0.0014429092407226562, -0.0021495819091796875, 0.0087738037109375, 0.002178192138671875, -0.036590576171875, -0.0244293212890625, 0.0118865966796875, 0.038482666015625, 0.01213836669921875, 0.0308074951171875, 0.036376953125, 0.0216827392578125, 0.0118560791015625, -0.0153656005859375, 0.0166015625, 0.01507568359375, -0.029754638671875, -0.0213775634765625, -0.0022640228271484375, -0.021026611328125, -0.0311279296875, 0.070068359375, -0.0482177734375, 0.0292816162109375, 0.004642486572265625, 0.07305908203125, 0.043212890625, 0.05767822265625, 0.01174163818359375, -0.0282745361328125, -0.0216827392578125, 0.052093505859375, -0.053863525390625, -0.0093231201171875, -0.0028228759765625, 0.0360107421875, 0.0153045654296875, 0.006107330322265625, 0.01323699951171875, -0.007122039794921875, -0.007965087890625, 0.0054473876953125, 0.0012226104736328125, -0.03857421875, -0.04766845703125, 0.0003077983856201172, -0.00601959228515625, 0.00504302978515625, -0.049102783203125, 0.01145172119140625, -0.0027618408203125, -0.016998291015625, 0.050506591796875, -0.052337646484375, 0.05712890625, -0.03790283203125, -0.045440673828125, -0.042266845703125, 0.0089874267578125, -0.005199432373046875, -0.0287628173828125, -0.051513671875, 0.0134429931640625, -0.03302001953125, 0.0176239013671875, -0.0010929107666015625, 0.020233154296875, -0.0142822265625, -0.018218994140625, 0.002315521240234375, 0.005954742431640625, 0.0203704833984375, -0.01971435546875, 0.008270263671875, -0.024566650390625, 0.00907135009765625, 0.0169525146484375, 0.0880126953125, -0.0157928466796875, 0.023284912109375, -0.0526123046875, -0.006256103515625, 0.0199127197265625, -0.0022144317626953125, 0.003101348876953125, -0.0130615234375, 0.00424957275390625, 0.00185394287109375, 0.0303192138671875, -0.04248046875, 0.039459228515625, 0.037994384765625, 0.0224151611328125, -0.00015687942504882812, 0.04229736328125, 0.034088134765625, -0.0251312255859375, 0.0279541015625, 0.01554107666015625, -0.032470703125, -0.0233306884765625, 0.00472259521484375, -0.06591796875, 0.00004762411117553711, -0.0142974853515625, -0.00827789306640625, -0.039154052734375, -0.0171966552734375, -0.0142974853515625, 0.08868408203125, 0.001537322998046875, 0.0008068084716796875, 0.0301666259765625, 0.0006012916564941406, 0.0125885009765625, -0.0379638671875, -0.046356201171875, 0.03021240234375, 0.013763427734375, 0.0182647705078125, 0.01216888427734375, -0.025787353515625, 0.035888671875, 0.032684326171875, -0.02105712890625, 0.0345458984375, 0.004184722900390625, 0.022796630859375, 0.039764404296875, 0.0243072509765625, -0.0112457275390625, -0.0081634521484375, 0.02056884765625, 0.005611419677734375, -0.0027904510498046875, 0.006549835205078125, -0.0103759765625, 0.01422882080078125, 0.0198822021484375, 0.056243896484375, -0.032379150390625, 0.00960540771484375, 0.03265380859375, 0.008758544921875, 0.0252685546875, 0.0005693435668945312, 0.034454345703125, 0.00382232666015625, -0.0169677734375, 0.03948974609375, -0.01442718505859375, -0.00908660888671875, 0.005847930908203125, -0.0019359588623046875, -0.039947509765625, 0.0017709732055664062, 0.01593017578125, 0.0123138427734375, -0.006134033203125, 0.01085662841796875, 0.01165008544921875, -0.007671356201171875, 0.006671905517578125, -0.0115509033203125, -0.023468017578125, -0.048614501953125, -0.0191650390625, -0.026153564453125, -0.0201416015625, 0.00600433349609375, 0.028411865234375, 0.038787841796875, 0.0280914306640625, 0.0099029541015625, -0.00429534912109375, 0.0004456043243408203, 0.042236328125, -0.03167724609375, -0.04327392578125, -0.042816162109375, 0.0158538818359375, 0.029449462890625, 0.016143798828125, 0.017303466796875, -0.042633056640625, -0.01537322998046875, -0.05706787109375, 0.07110595703125, -0.037384033203125, -0.0096893310546875, -0.00033020973205566406, -0.0157928466796875, -0.00897216796875, -0.01212310791015625, 0.03167724609375, -0.003955841064453125, 0.03253173828125, -0.009124755859375, -0.0166015625, -0.031707763671875, -0.027862548828125, -0.059112548828125, 0.049591064453125, 0.053863525390625, -0.0030231475830078125, -0.0394287109375, 0.032623291015625, -0.01309967041015625, -0.001155853271484375, -0.0303802490234375, 0.056854248046875, 0.01094818115234375, -0.00104522705078125, -0.0304718017578125, 0.0036163330078125, -0.02178955078125, -0.0030384063720703125, 0.034942626953125, -0.0007877349853515625, -0.0261383056640625, -0.0246429443359375, 0.02264404296875, 0.0243682861328125, 0.0068359375, 0.032867431640625, -0.0055694580078125, 0.0458984375, 0.08587646484375, -0.0216217041015625, 0.0247955322265625, 0.036041259765625, -0.006992340087890625, 0.01438140869140625, -0.015716552734375, -0.01160430908203125, -0.01528167724609375, 0.007251739501953125, 0.0462646484375, -0.036651611328125, -0.02435302734375, -0.1002197265625, -0.010162353515625, 0.0167083740234375, 0.05108642578125, -0.072265625, -0.02642822265625, -0.0254364013671875, 0.050445556640625, 0.024322509765625, 0.0413818359375, 0.040740966796875, 0.00954437255859375, 0.08563232421875, 0.0077667236328125, 0.022064208984375, 0.0034580230712890625, 0.007320404052734375, 0.05474853515625, 0.004974365234375, 0.010162353515625, -0.046966552734375, 0.01512908935546875, 0.025726318359375, 0.060516357421875, -0.048614501953125, -0.020111083984375, 0.01276397705078125, 0.0244293212890625, -0.001621246337890625, 0.01366424560546875, 0.0191650390625, 0.034332275390625, 0.06658935546875, -0.057403564453125, 0.0021762847900390625, 0.018585205078125, 0.047607421875, -0.01153564453125, 0.0007791519165039062, -0.059844970703125, -0.024627685546875, -0.044830322265625, 0.008056640625, 0.022552490234375, 0.038543701171875, 0.03271484375, 0.0175018310546875, 0.050140380859375, -0.0028400421142578125, 0.0095977783203125, -0.01171112060546875, 0.0208740234375, -0.00868988037109375, -0.028594970703125, -0.0213775634765625, 0.0294342041015625, 0.0389404296875, 0.004058837890625, 0.0095062255859375, 0.049560546875, 0.0287322998046875, -0.036224365234375, -0.01422882080078125, 0.021209716796875, -0.0212249755859375, -0.029388427734375, -0.057708740234375, 0.01378631591796875, -0.007747650146484375, 0.0146484375, 0.010955810546875, 0.043212890625, -0.017059326171875, 0.05047607421875, -0.023406982421875, 0.03155517578125, -0.0016450881958007812, 0.009490966796875, 0.0399169921875, -0.016632080078125, 0.0693359375, 0.0114593505859375, 0.0018405914306640625, 0.0013875961303710938, -0.012359619140625, -0.01016998291015625, 0.022216796875, -0.0213775634765625, 0.036865234375, -0.044677734375, -0.0246124267578125, 0.0023860931396484375, 0.03631591796875, -0.01084136962890625, 0.049957275390625, 0.0164794921875, -0.00797271728515625, -0.07415771484375, -0.0197296142578125, -0.007633209228515625, 0.0011816024780273438, -0.0141143798828125, 0.0237884521484375, 0.0316162109375, 0.01497650146484375, -0.0227203369140625, -0.016815185546875, 0.0137939453125, -0.0217132568359375, 0.024627685546875, 0.031341552734375, 0.0018358230590820312, -0.0221710205078125, -0.007354736328125, -0.01800537109375, 0.061981201171875, -0.0253143310546875, -0.0426025390625, 0.0235443115234375, 0.03509521484375, -0.00943756103515625, -0.013702392578125, -0.04266357421875, -0.01715087890625, -0.059722900390625, -0.039337158203125, 0.029754638671875, -0.0218353271484375, 0.0029449462890625, 0.01395416259765625, 0.0191192626953125, -0.020721435546875, 0.0279693603515625, -0.0079498291015625, 0.055572509765625, 0.039306640625, -0.0264434814453125, -0.0024547576904296875, 0.01441192626953125, -0.019989013671875, 0.0352783203125, -0.00627899169921875, 0.049957275390625, 0.0218658447265625, -0.02587890625, 0.038726806640625, 0.033843994140625, 0.05755615234375, -0.0189361572265625, 0.006450653076171875, 0.01309967041015625, -0.0026836395263671875, 0.0245513916015625, 0.0189361572265625, -0.02325439453125, -0.0523681640625, 0.002841949462890625, 0.01200103759765625, -0.0298004150390625, -0.0078277587890625, -0.035369873046875, -0.03125, 0.016876220703125, 0.0048980712890625, 0.006946563720703125, 0.0004782676696777344, -0.01220703125, -0.0433349609375, 0.0087127685546875, -0.039947509765625, 0.007259368896484375, 0.0367431640625, 0.01227569580078125, -0.030364990234375, -0.025146484375, 0.0274810791015625, -0.0006165504455566406, 0.01532745361328125, 0.01087188720703125, -0.00856781005859375, -0.01287078857421875, 0.033782958984375, 0.0096435546875, 0.0626220703125, 0.0176849365234375, -0.0013933181762695312, 0.038238525390625, 0.0276947021484375, -0.028778076171875, -0.12127685546875, -0.041534423828125, -0.05157470703125, 0.05584716796875, -0.02001953125, 0.0274505615234375, 0.0307464599609375, -0.0177154541015625, -0.0277099609375, 0.024749755859375, 0.00016379356384277344, -0.022369384765625, -0.0016155242919921875, -0.0270233154296875, -0.01491546630859375, 0.043365478515625, 0.00481414794921875, -0.0091400146484375, -0.04156494140625, 0.0212860107421875, 0.0217437744140625, -0.0478515625, 0.028472900390625, -0.0011548995971679688, -0.0723876953125, 0.026611328125, 0.028594970703125, 0.0083160400390625, 0.0046539306640625, -0.0188446044921875, 0.043975830078125, 0.048858642578125, -0.039093017578125, 0.0208740234375, -0.016693115234375, -0.006626129150390625, -0.0112762451171875, -0.024627685546875, -0.037872314453125, -0.01409149169921875, 0.08575439453125, 0.0297393798828125, 0.0253753662109375, -0.032867431640625, 0.00865936279296875, -0.036834716796875, 0.01522064208984375, -0.01548004150390625, -0.0022735595703125, -0.04443359375, -0.01812744140625, 0.0016965866088867188, -0.028900146484375, 0.0271453857421875, 0.01226806640625, -0.003330230712890625, 0.018646240234375, 0.08099365234375, -0.01032257080078125, -0.033294677734375, -0.007236480712890625, 0.0226287841796875, -0.0265960693359375, -0.0247650146484375, -0.011199951171875, 0.02093505859375, -0.0206756591796875, -0.0272979736328125, -0.035064697265625, -0.050872802734375, 0.01690673828125, 0.045562744140625, -0.01358795166015625, 0.031097412109375, -0.00829315185546875, -0.0088043212890625, 0.048431396484375, 0.007598876953125, -0.0257110595703125, 0.020294189453125, 0.0278472900390625, -0.004680633544921875, -0.034881591796875, -0.029266357421875, -0.01433563232421875, -0.046783447265625, -0.033203125, 0.0245208740234375, -0.027313232421875, -0.00972747802734375, 0.0062103271484375, -0.0224761962890625, -0.01267242431640625, -0.01219940185546875, -0.0256500244140625, -0.058258056640625, 0.01251983642578125, 0.045745849609375, -0.00408172607421875, 0.02630615234375 ]
e909c55a00e66640705276be5101e9e06cd8101b
Wordpress Stackexchange Q: How-to debug wp_ajax_* hook callback? I'm currently developing a plugin that uses ajax functionality. Problem: The callback isn't fired = no data gets processed. if ( ! is_admin() ) add_action( 'after_setup_theme', array( 'wpseAjaxClass', 'init' ), 10 ); A: The answer was as stupid as simple: I wrapped the init for the class in a ! is_admin() call. This successfully prevented the callback from beeing fired. Rule for AJAX loading * *Load it in public *Don't hide it behind a ! is_admin() call. The 2nd line from admin-ajax.php define( 'WP_ADMIN', true );
Q: How-to debug wp_ajax_* hook callback? I'm currently developing a plugin that uses ajax functionality. Problem: The callback isn't fired = no data gets processed. if ( ! is_admin() ) add_action( 'after_setup_theme', array( 'wpseAjaxClass', 'init' ), 10 ); A: The answer was as stupid as simple: I wrapped the init for the class in a ! is_admin() call. This successfully prevented the callback from beeing fired. Rule for AJAX loading * *Load it in public *Don't hide it behind a ! is_admin() call. The 2nd line from admin-ajax.php define( 'WP_ADMIN', true );
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:416817", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41306" }
[ 0.043426513671875, 0.0076446533203125, -0.03350830078125, -0.044097900390625, 0.018951416015625, -0.0238494873046875, 0.005191802978515625, -0.02166748046875, 0.0142059326171875, -0.01361846923828125, -0.047149658203125, 0.02545166015625, -0.0589599609375, -0.00592041015625, -0.00695037841796875, -0.058502197265625, 0.03204345703125, -0.003093719482421875, 0.028656005859375, -0.0066680908203125, 0.001033782958984375, 0.020660400390625, -0.0070037841796875, 0.058746337890625, -0.0022258758544921875, 0.022705078125, 0.06195068359375, -0.002666473388671875, 0.0015115737915039062, -0.00830078125, 0.0152587890625, -0.041107177734375, 0.0198974609375, 0.064697265625, -0.07318115234375, 0.0029392242431640625, -0.00980377197265625, 0.0237579345703125, -0.0029296875, 0.025665283203125, 0.0282135009765625, -0.01059722900390625, 0.017913818359375, 0.0255279541015625, -0.007549285888671875, -0.0433349609375, 0.056976318359375, -0.0209197998046875, -0.0035495758056640625, -0.0189208984375, 0.0226593017578125, -0.006153106689453125, 0.0230712890625, -0.0020008087158203125, -0.0066680908203125, 0.0260009765625, -0.054534912109375, 0.016693115234375, 0.03985595703125, 0.05535888671875, -0.0218505859375, -0.04571533203125, -0.0012044906616210938, -0.09307861328125, 0.025177001953125, 0.010009765625, -0.00467681884765625, 0.022064208984375, -0.03411865234375, 0.037689208984375, 0.0184783935546875, -0.049896240234375, -0.04254150390625, 0.0272979736328125, -0.00720977783203125, -0.04248046875, 0.05078125, -0.0198822021484375, -0.0224456787109375, 0.0699462890625, 0.02825927734375, -0.0255126953125, -0.0196685791015625, 0.0243682861328125, 0.0039825439453125, 0.04290771484375, -0.0020046234130859375, -0.032623291015625, -0.036529541015625, -0.030242919921875, -0.042449951171875, -0.028594970703125, -0.026275634765625, 0.0008797645568847656, -0.0083465576171875, -0.00948333740234375, 0.0139007568359375, 0.038055419921875, -0.0029239654541015625, -0.0193939208984375, 0.00001722574234008789, -0.0170440673828125, -0.019866943359375, -0.01505279541015625, 0.00543212890625, 0.01715087890625, -0.00955963134765625, 0.0021190643310546875, 0.03338623046875, 0.0216827392578125, -0.01445770263671875, 0.001941680908203125, 0.03277587890625, -0.01519012451171875, 0.0204010009765625, -0.018707275390625, -0.006618499755859375, 0.032470703125, -0.0052337646484375, -0.025054931640625, 0.01080322265625, -0.00165557861328125, -0.026153564453125, 0.021484375, 0.00902557373046875, -0.00815582275390625, -0.0232696533203125, 0.008087158203125, 0.0194549560546875, 0.00001710653305053711, -0.0185089111328125, 0.01226806640625, 0.02667236328125, 0.01175689697265625, 0.00945281982421875, -0.009368896484375, 0.05950927734375, 0.00463104248046875, -0.0009250640869140625, 0.00847625732421875, -0.0200653076171875, -0.0305633544921875, -0.034637451171875, -0.01338958740234375, -0.007221221923828125, -0.0097808837890625, 0.0003159046173095703, 0.022979736328125, 0.003170013427734375, -0.032501220703125, 0.0238037109375, -0.033294677734375, 0.01483154296875, 0.04522705078125, 0.042633056640625, 0.035369873046875, 0.0797119140625, -0.0240020751953125, -0.0350341796875, -0.0272064208984375, -0.0029468536376953125, -0.006191253662109375, 0.007579803466796875, -0.019622802734375, -0.027191162109375, -0.00341796875, -0.0181884765625, -0.002307891845703125, 0.025848388671875, 0.04083251953125, 0.06109619140625, 0.025482177734375, 0.01528167724609375, 0.006702423095703125, 0.0001302957534790039, -0.0309295654296875, 0.004894256591796875, 0.0098114013671875, 0.049774169921875, -0.046295166015625, -0.057586669921875, -0.031341552734375, 0.08782958984375, -0.050323486328125, -0.044891357421875, 0.06201171875, 0.0161285400390625, 0.0562744140625, -0.01122283935546875, 0.00925445556640625, 0.01385498046875, 0.057830810546875, 0.033172607421875, -0.009368896484375, 0.003509521484375, -0.05767822265625, -0.02886962890625, -0.033111572265625, -0.0283050537109375, 0.040283203125, 0.034637451171875, 0.048004150390625, -0.0291595458984375, -0.00592041015625, -0.087158203125, 0.02838134765625, -0.0218048095703125, 0.045562744140625, 0.037353515625, 0.025146484375, -0.0050811767578125, 0.02154541015625, -0.0189056396484375, -0.0452880859375, -0.045318603515625, 0.0165252685546875, -0.0582275390625, 0.061279296875, -0.0203399658203125, 0.0389404296875, -0.0269317626953125, -0.06695556640625, -0.014068603515625, -0.01113128662109375, 0.02984619140625, 0.0345458984375, -0.0277099609375, 0.007343292236328125, 0.0416259765625, -0.005161285400390625, 0.033782958984375, 0.037689208984375, 0.031982421875, 0.06414794921875, 0.0006561279296875, -0.01953125, -0.011810302734375, -0.1044921875, 0.023468017578125, 0.0567626953125, 0.035186767578125, 0.048736572265625, 0.005260467529296875, 0.0257720947265625, 0.04046630859375, -0.041107177734375, 0.00931549072265625, -0.0038928985595703125, -0.00445556640625, 0.01386260986328125, -0.0172271728515625, -0.0037384033203125, 0.02978515625, -0.0249786376953125, -0.013946533203125, 0.05633544921875, -0.0188751220703125, -0.01548004150390625, -0.0007991790771484375, -0.01904296875, 0.020294189453125, -0.0222625732421875, -0.03204345703125, 0.004547119140625, 0.0251617431640625, -0.0142364501953125, 0.027984619140625, 0.028564453125, 0.005420684814453125, -0.0260772705078125, 0.0204925537109375, -0.01219940185546875, -0.0179290771484375, 0.046600341796875, 0.07012939453125, -0.00374603271484375, -0.04425048828125, -0.0258636474609375, 0.01873779296875, 0.037933349609375, -0.0221405029296875, 0.040557861328125, -0.0027980804443359375, -0.0242462158203125, -0.013885498046875, -0.0142974853515625, -0.00366973876953125, -0.037567138671875, 0.038238525390625, -0.002666473388671875, 0.019683837890625, 0.01392364501953125, -0.0325927734375, 0.06298828125, -0.007549285888671875, -0.025909423828125, 0.006748199462890625, 0.0202484130859375, 0.0105133056640625, -0.0200042724609375, -0.00893402099609375, 0.0272369384765625, -0.0037784576416015625, -0.0200042724609375, 0.00788116455078125, -0.0283050537109375, 0.006198883056640625, 0.0036525726318359375, -0.007381439208984375, -0.0030841827392578125, -0.057098388671875, 0.029693603515625, 0.037506103515625, 0.10784912109375, -0.0012493133544921875, -0.0526123046875, 0.01401519775390625, 0.07025146484375, -0.018798828125, -0.057281494140625, -0.04266357421875, -0.07244873046875, 0.053466796875, -0.03997802734375, -0.010711669921875, -0.006511688232421875, -0.030303955078125, 0.027496337890625, -0.0248870849609375, -0.0156707763671875, -0.033782958984375, -0.047576904296875, -0.03900146484375, 0.01824951171875, -0.005107879638671875, -0.0027637481689453125, 0.001506805419921875, 0.028228759765625, -0.00640869140625, -0.049163818359375, -0.01222991943359375, 0.0004591941833496094, -0.017333984375, -0.005565643310546875, 0.007053375244140625, 0.0290374755859375, -0.0009050369262695312, 0.01280975341796875, -0.01081085205078125, 0.018951416015625, -0.02508544921875, -0.032257080078125, -0.005664825439453125, -0.02301025390625, 0.01934814453125, 0.029815673828125, 0.00801849365234375, 0.005504608154296875, 0.0401611328125, -0.04351806640625, 0.004070281982421875, 0.011627197265625, -0.0289306640625, -0.0010614395141601562, 0.0069580078125, -0.0281829833984375, 0.00913238525390625, -0.00830841064453125, -0.0003955364227294922, 0.0261688232421875, -0.0159149169921875, 0.007534027099609375, 0.051025390625, -0.02642822265625, -0.016448974609375, -0.004150390625, 0.0302581787109375, -0.0063018798828125, -0.039276123046875, -0.0032711029052734375, 0.0010471343994140625, -0.018890380859375, 0.0230255126953125, -0.017669677734375, -0.01062774658203125, 0.0391845703125, -0.0117950439453125, -0.0156707763671875, -0.0005974769592285156, -0.024993896484375, 0.0213775634765625, 0.050811767578125, -0.0357666015625, 0.006793975830078125, -0.0250396728515625, 0.00965118408203125, -0.048919677734375, -0.06982421875, -0.05908203125, 0.0095977783203125, -0.05633544921875, 0.02099609375, 0.0097503662109375, -0.0251007080078125, -0.0325927734375, -0.00905609130859375, -0.06524658203125, -0.03533935546875, 0.0249481201171875, -0.07232666015625, -0.0013074874877929688, -0.00738525390625, 0.01517486572265625, -0.07373046875, 0.0077972412109375, -0.043060302734375, -0.1083984375, -0.01052093505859375, -0.05712890625, 0.06854248046875, 0.0369873046875, -0.048431396484375, -0.0160064697265625, 0.03436279296875, 0.00873565673828125, -0.00949859619140625, 0.00792694091796875, -0.0002932548522949219, -0.0184478759765625, 0.0249176025390625, -0.0090179443359375, 0.007778167724609375, 0.005138397216796875, 0.0166168212890625, -0.004428863525390625, 0.0545654296875, -0.027191162109375, -0.0036907196044921875, -0.004131317138671875, -0.0297393798828125, 0.0034885406494140625, -0.0002605915069580078, -0.027130126953125, 0.0279693603515625, -0.0122528076171875, 0.00583648681640625, -0.0247802734375, -0.034027099609375, -0.00733184814453125, -0.053558349609375, -0.0077667236328125, 0.0223846435546875, 0.0295257568359375, 0.02069091796875, 0.00803375244140625, 0.00909423828125, -0.00385284423828125, 0.011138916015625, 0.0102386474609375, 0.0297393798828125, -0.006252288818359375, -0.03021240234375, 0.06298828125, -0.01407623291015625, 0.03460693359375, -0.007007598876953125, 0.042510986328125, 0.01511383056640625, -0.01366424560546875, 0.0178070068359375, 0.044342041015625, -0.052581787109375, 0.0318603515625, -0.004558563232421875, -0.03033447265625, 0.023345947265625, 0.01751708984375, -0.06866455078125, 0.0721435546875, 0.0160980224609375, -0.002132415771484375, 0.0016803741455078125, -0.0294189453125, 0.056549072265625, -0.0004115104675292969, 0.00690460205078125, -0.0099639892578125, 0.00954437255859375, 0.0027618408203125, 0.0190277099609375, 0.034210205078125, -0.001087188720703125, 0.038360595703125, 0.03985595703125, 0.0082244873046875, -0.0175628662109375, 0.0036773681640625, 0.003414154052734375, 0.00396728515625, -0.020172119140625, -0.035552978515625, 0.0005631446838378906, -0.01024627685546875, -0.01082611083984375, 0.000002205371856689453, 0.027618408203125, 0.040985107421875, -0.014923095703125, 0.0140838623046875, 0.030487060546875, -0.000041484832763671875, -0.0099639892578125, 0.06488037109375, -0.0027751922607421875, 0.02532958984375, 0.005523681640625, 0.0474853515625, 0.032684326171875, 0.0149383544921875, -0.0181427001953125, 0.0297088623046875, -0.0034084320068359375, 0.05548095703125, 0.0204925537109375, -0.06488037109375, 0.0309600830078125, -0.00015413761138916016, 0.0026607513427734375, -0.03753662109375, 0.007701873779296875, 0.026031494140625, 0.01044464111328125, 0.0204010009765625, -0.00743865966796875, 0.01922607421875, 0.01995849609375, -0.036376953125, 0.05291748046875, 0.0130767822265625, -0.05511474609375, -0.03411865234375, -0.0093994140625, 0.037445068359375, -0.0034122467041015625, 0.0170135498046875, 0.01398468017578125, 0.039306640625, 0.0247650146484375, -0.048919677734375, -0.0127410888671875, 0.00669097900390625, 0.023193359375, -0.033935546875, -0.023223876953125, 0.01436614990234375, -0.02349853515625, -0.00876617431640625, -0.00643157958984375, -0.03778076171875, 0.040618896484375, -0.04010009765625, 0.018585205078125, -0.01568603515625, 0.007610321044921875, -0.09014892578125, 0.02728271484375, 0.039886474609375, 0.049346923828125, -0.04351806640625, -0.00836181640625, -0.061279296875, -0.00838470458984375, -0.0210113525390625, -0.015472412109375, -0.040008544921875, -0.00980377197265625, 0.0080413818359375, -0.003635406494140625, -0.010833740234375, -0.035308837890625, -0.0097503662109375, 0.020782470703125, 0.0380859375, 0.01788330078125, -0.021026611328125, 0.0904541015625, -0.0207672119140625, 0.056060791015625, 0.00843048095703125, 0.029205322265625, -0.01641845703125, -0.004852294921875, -0.0022449493408203125, -0.02398681640625, -0.0158843994140625, 0.00925445556640625, -0.0025844573974609375, -0.022918701171875, 0.008941650390625, -0.0195770263671875, -0.0245208740234375, 0.0206146240234375, 0.001911163330078125, -0.01442718505859375, 0.031097412109375, 0.06341552734375, -0.006107330322265625, -0.0067138671875, -0.0273284912109375, 0.0086822509765625, -0.031494140625, -0.0268402099609375, 0.04901123046875, -0.02154541015625, 0.0167999267578125, 0.021087646484375, -0.0040435791015625, 0.01384735107421875, 0.061614990234375, 0.003398895263671875, 0.041259765625, 0.01294708251953125, 0.00720977783203125, 0.01300048828125, 0.053558349609375, -0.0250091552734375, -0.067626953125, 0.060760498046875, 0.040740966796875, -0.0145721435546875, 0.059600830078125, -0.0289459228515625, 0.0169830322265625, 0.0275726318359375, 0.05938720703125, -0.057098388671875, 0.0202789306640625, 0.032135009765625, -0.0182037353515625, -0.0036296844482421875, -0.032562255859375, 0.0014200210571289062, -0.00945281982421875, 0.07537841796875, 0.015655517578125, -0.00907135009765625, 0.044525146484375, -0.0027313232421875, 0.010162353515625, -0.00969696044921875, 0.0242767333984375, 0.0197601318359375, -0.04754638671875, 0.048736572265625, 0.021575927734375, 0.044464111328125, -0.0092620849609375, 0.024200439453125, 0.027923583984375, -0.02294921875, -0.03619384765625, 0.0255126953125, 0.009246826171875, -0.0306549072265625, 0.012542724609375, 0.010711669921875, 0.0228118896484375, 0.0293426513671875, 0.003223419189453125, -0.0008029937744140625, -0.01262664794921875, 0.00855255126953125, -0.018341064453125, -0.0188446044921875, 0.047576904296875, 0.04339599609375, -0.059112548828125, 0.034881591796875, -0.020660400390625, -0.0240936279296875, 0.007312774658203125, 0.0419921875, 0.0711669921875, -0.016021728515625, -0.039398193359375, 0.0227508544921875, -0.0115966796875, -0.00778961181640625, -0.01174163818359375, 0.01373291015625, -0.00914764404296875, 0.0279998779296875, -0.01502227783203125, 0.00951385498046875, -0.012451171875, -0.0250244140625, -0.032073974609375, 0.08270263671875, -0.0338134765625, -0.0212860107421875, 0.011993408203125, 0.04656982421875, -0.0143890380859375, 0.01763916015625, -0.0477294921875, 0.07550048828125, -0.0268707275390625, 0.041595458984375, -0.072998046875, 0.00853729248046875, -0.006496429443359375, 0.01470184326171875, -0.005504608154296875, 0.0008206367492675781, 0.0187530517578125, 0.0008883476257324219, 0.01384735107421875, 0.0026721954345703125, -0.0192413330078125, 0.0069427490234375, 0.0078277587890625, 0.01273345947265625, -0.00897979736328125, -0.01971435546875, 0.044769287109375, -0.078369140625, -0.0150299072265625, 0.031585693359375, 0.00989532470703125, 0.01142120361328125, 0.043975830078125, 0.002948760986328125, -0.02197265625, 0.031036376953125, 0.03594970703125, -0.0311431884765625, 0.006885528564453125, 0.011627197265625, 0.0014286041259765625, 0.0186614990234375, 0.01171875, -0.016937255859375, 0.0244903564453125, -0.01493072509765625, -0.01126861572265625, -0.0279693603515625, 0.006961822509765625, -0.0280914306640625, -0.0262451171875, -0.035888671875, 0.0533447265625, -0.033966064453125, 0.040283203125, 0.004009246826171875, 0.031646728515625, -0.041015625, -0.057769775390625, -0.0212554931640625, 0.04864501953125, -0.00701904296875, -0.050811767578125, 0.007419586181640625, 0.01200103759765625, 0.016510009765625, 0.03076171875, 0.0274200439453125, 0.0188140869140625, 0.051544189453125, 0.00115203857421875, -0.0413818359375, -0.0276336669921875, 0.065185546875, 0.006023406982421875, 0.0208282470703125, -0.0007948875427246094, -0.08734130859375, -0.01155853271484375, -0.0185699462890625, 0.03057861328125, 0.039154052734375, 0.0060882568359375, 0.005992889404296875, -0.02490234375, -0.01131439208984375, 0.02117919921875, 0.004730224609375, -0.028778076171875, 0.0007410049438476562, -0.0191802978515625, -0.029876708984375, -0.0091400146484375, 0.03778076171875, 0.0213775634765625, 0.01153564453125, 0.033203125, 0.035888671875, -0.0050811767578125, 0.0016489028930664062, 0.022552490234375, -0.00489044189453125, -0.06353759765625, -0.01134490966796875, 0.00811767578125, 0.01372528076171875, 0.0135650634765625, 0.0203094482421875, 0.07330322265625, -0.01392364501953125, -0.0567626953125, 0.0117340087890625, -0.01534271240234375, -0.056182861328125, 0.0667724609375, -0.0085296630859375, 0.09075927734375, -0.032012939453125, -0.06390380859375, -0.0243682861328125, 0.036468505859375, -0.0513916015625, 0.0213775634765625, 0.065185546875, -0.01641845703125, 0.0009775161743164062, -0.0198516845703125, 0.027099609375, -0.00945281982421875, -0.0236053466796875, 0.0005660057067871094, -0.045257568359375, 0.0216522216796875, -0.004970550537109375, 0.04534912109375, 0.0192108154296875, 0.031829833984375, 0.035125732421875, -0.0026416778564453125, 0.061065673828125, -0.047393798828125, -0.005596160888671875, 0.012298583984375, -0.0085601806640625, -0.00240325927734375, -0.009796142578125, -0.00957489013671875, -0.0325927734375, 0.006011962890625, 0.003292083740234375, -0.046722412109375, 0.021759033203125, 0.0200042724609375, 0.01522064208984375, 0.0193328857421875, -0.0286865234375, 0.03375244140625, 0.0062408447265625, 0.0299530029296875, -0.0347900390625, -0.0528564453125, -0.058563232421875, 0.0014371871948242188, 0.018341064453125, 0.02496337890625, -0.00212860107421875, -0.00022935867309570312, -0.015869140625, -0.024566650390625, -0.0011720657348632812, -0.01181793212890625, -0.007232666015625, 0.0217132568359375, -0.0164947509765625, 0.004390716552734375, -0.0076751708984375, -0.0229949951171875, 0.0116119384765625, -0.003139495849609375, 0.0242156982421875, -0.0079193115234375, -0.032867431640625, -0.021728515625, 0.016143798828125, 0.03314208984375, -0.04119873046875, 0.022552490234375, 0.014862060546875, -0.002941131591796875, 0.0015888214111328125, -0.00146484375, -0.03033447265625, -0.016204833984375, -0.0014801025390625, 0.018829345703125, -0.0025310516357421875, -0.040191650390625, -0.06317138671875, 0.021270751953125, 0.07373046875, 0.0192718505859375, -0.08197021484375, 0.0171356201171875, -0.0394287109375, 0.06915283203125, 0.027862548828125, 0.01007080078125, 0.01078033447265625, 0.05194091796875, -0.0283203125, -0.05615234375, -0.00318145751953125, 0.03717041015625, -0.038177490234375, 0.01544189453125, 0.01715087890625, -0.0186004638671875, -0.0031986236572265625, 0.024993896484375, -0.00937652587890625, 0.076171875, 0.00791168212890625, -0.0125885009765625, -0.003505706787109375, 0.0309600830078125, -0.04315185546875, -0.04681396484375, 0.02178955078125, -0.026519775390625, -0.0209197998046875, -0.004901885986328125, 0.00244140625, 0.021514892578125, -0.0350341796875, -0.060272216796875, 0.04888916015625, -0.004230499267578125, -0.0289154052734375, -0.050872802734375, 0.0134124755859375, 0.0224151611328125, -0.04632568359375, -0.034637451171875, -0.0038166046142578125, -0.05108642578125, 0.01245880126953125, 0.01025390625, 0.02020263671875, 0.040740966796875, -0.01200103759765625, -0.0369873046875, -0.0194244384765625, -0.027587890625, 0.010528564453125, -0.022003173828125, 0.002567291259765625, 0.0433349609375, 0.0439453125, -0.004299163818359375, 0.033050537109375, 0.029388427734375, -0.0003018379211425781, -0.00014162063598632812, -0.03289794921875, 0.01043701171875, 0.0194549560546875, 0.06695556640625, -0.00804901123046875, 0.0034770965576171875, -0.038726806640625, -0.0312042236328125, -0.05718994140625, -0.0171661376953125, -0.0183258056640625, 0.01513671875, -0.060546875, 0.0007648468017578125, 0.0013742446899414062, 0.0090484619140625, -0.03472900390625, -0.01806640625, -0.009246826171875, -0.03228759765625, 0.017242431640625, 0.017852783203125, 0.007724761962890625, -0.06256103515625, 0.0479736328125, -0.0219268798828125, -0.01474761962890625, 0.046173095703125, 0.029327392578125, 0.00017118453979492188, 0.05950927734375, 0.04290771484375, 0.06573486328125, -0.06060791015625, -0.0031948089599609375, 0.03289794921875, 0.029571533203125, -0.034759521484375, -0.0264892578125, 0.00848388671875, 0.025115966796875, -0.0160980224609375, 0.0310821533203125, 0.042816162109375, 0.0021953582763671875, -0.0205535888671875, 0.009521484375, -0.039306640625, 0.03363037109375, -0.023406982421875, 0.023406982421875, 0.012908935546875, 0.0015726089477539062, 0.0653076171875, 0.0136871337890625, 0.00061798095703125, 0.0183258056640625, 0.01036834716796875, -0.0224609375, 0.02301025390625, -0.005107879638671875, 0.0019083023071289062, 0.00957489013671875 ]
fa02baa6fa94af45fae91b4ffb1ff56fe5619006
Wordpress Stackexchange Q: Display Only One Category On my WordPress theme, it displays all of the categories a post is in on the homepage for the post block, I only want to display one category even if a post is under multiple categories. i.e. Category One, Category Two, Category Three I want it to be Category One... This is the code that is in place at the moment: <h2><?php the_category(', ') ?></h2> A: Here's snippet to display first category from post. $category = get_the_category(); if ( $category[0] ) { echo '<h2><a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a></h2>'; } Original idea of the code is from WordPress Codex
Q: Display Only One Category On my WordPress theme, it displays all of the categories a post is in on the homepage for the post block, I only want to display one category even if a post is under multiple categories. i.e. Category One, Category Two, Category Three I want it to be Category One... This is the code that is in place at the moment: <h2><?php the_category(', ') ?></h2> A: Here's snippet to display first category from post. $category = get_the_category(); if ( $category[0] ) { echo '<h2><a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a></h2>'; } Original idea of the code is from WordPress Codex
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:416818", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41308" }
[ 0.0175628662109375, -0.005962371826171875, -0.030548095703125, -0.0218505859375, 0.00908660888671875, -0.035888671875, 0.032196044921875, -0.02740478515625, 0.0102691650390625, 0.0095367431640625, -0.0296783447265625, -0.003894805908203125, -0.004207611083984375, -0.037811279296875, 0.01143646240234375, -0.041412353515625, 0.03936767578125, -0.0149383544921875, 0.01934814453125, -0.00414276123046875, 0.01398468017578125, 0.02362060546875, 0.0018062591552734375, 0.07763671875, 0.013397216796875, -0.0419921875, 0.0491943359375, -0.044036865234375, 0.006397247314453125, -0.033447265625, 0.0190887451171875, 0.03326416015625, 0.01666259765625, -0.0196990966796875, 0.024688720703125, 0.01251220703125, -0.00726318359375, 0.00916290283203125, 0.00839996337890625, 0.0214385986328125, 0.03369140625, -0.0233917236328125, 0.01324462890625, 0.0291595458984375, 0.0095977783203125, -0.0374755859375, 0.033111572265625, -0.07000732421875, 0.0018634796142578125, -0.06884765625, 0.041412353515625, 0.0191497802734375, 0.062744140625, -0.051116943359375, -0.0229034423828125, 0.027984619140625, -0.01540374755859375, -0.03167724609375, 0.043365478515625, -0.0163421630859375, -0.030426025390625, -0.0435791015625, 0.045989990234375, -0.0185546875, -0.03326416015625, 0.005451202392578125, 0.00859832763671875, -0.007701873779296875, -0.060394287109375, -0.04132080078125, 0.050628662109375, -0.0279998779296875, 0.0029582977294921875, -0.0017414093017578125, -0.056060791015625, -0.0113525390625, 0.0154266357421875, -0.009063720703125, 0.0171051025390625, -0.01496124267578125, -0.005950927734375, -0.006481170654296875, -0.0435791015625, -0.033203125, 0.0250244140625, 0.004619598388671875, -0.01251983642578125, -0.01299285888671875, -0.025787353515625, -0.0189666748046875, -0.01219940185546875, -0.0033321380615234375, -0.042999267578125, 0.01111602783203125, 0.0005893707275390625, -0.0170135498046875, 0.0215301513671875, 0.04083251953125, -0.01117706298828125, -0.020843505859375, -0.0167999267578125, -0.0295867919921875, -0.03704833984375, -0.0204925537109375, 0.0198516845703125, 0.00475311279296875, -0.0196533203125, -0.0025615692138671875, 0.06024169921875, 0.04949951171875, 0.00960540771484375, 0.06951904296875, -0.028289794921875, -0.01325225830078125, -0.0164794921875, 0.0200042724609375, -0.0604248046875, 0.00732421875, -0.0174102783203125, 0.006168365478515625, 0.0311126708984375, 0.0548095703125, 0.0274658203125, -0.033477783203125, -0.021270751953125, -0.00557708740234375, -0.016357421875, -0.0745849609375, 0.034912109375, -0.035552978515625, -0.04638671875, 0.020660400390625, 0.04656982421875, 0.030426025390625, 0.01470184326171875, 0.004512786865234375, 0.0193023681640625, 0.0120849609375, 0.01381683349609375, 0.00865936279296875, -0.01038360595703125, -0.0287017822265625, 0.0193023681640625, -0.003879547119140625, -0.0222320556640625, 0.00836944580078125, 0.0092926025390625, 0.0225982666015625, 0.0052947998046875, -0.03411865234375, 0.01267242431640625, -0.008544921875, 0.0244293212890625, 0.01629638671875, -0.00788116455078125, 0.0080108642578125, 0.0192718505859375, -0.0183258056640625, -0.028350830078125, -0.0262603759765625, 0.03619384765625, 0.002513885498046875, 0.0185699462890625, 0.01224517822265625, -0.0092010498046875, -0.0034122467041015625, -0.066650390625, -0.01015472412109375, 0.01446533203125, -0.007289886474609375, -0.0177001953125, 0.01806640625, 0.0404052734375, -0.011444091796875, -0.014495849609375, -0.009063720703125, -0.033355712890625, -0.0179901123046875, 0.03955078125, 0.055419921875, 0.005641937255859375, -0.02069091796875, -0.0005679130554199219, 0.0298614501953125, -0.056488037109375, 0.049560546875, -0.00988006591796875, 0.034759521484375, 0.00818634033203125, 0.0022029876708984375, 0.026519775390625, 0.040771484375, -0.03387451171875, -0.01432037353515625, -0.00959014892578125, -0.01006317138671875, -0.008026123046875, -0.00479888916015625, 0.00116729736328125, 0.015167236328125, 0.037689208984375, -0.016357421875, -0.0023250579833984375, -0.01036834716796875, -0.036590576171875, -0.02215576171875, 0.002040863037109375, 0.01488494873046875, -0.035003662109375, 0.034423828125, 0.02655029296875, -0.005306243896484375, -0.0078277587890625, -0.07666015625, -0.01346588134765625, 0.0156707763671875, -0.0187530517578125, -0.0082855224609375, -0.0212860107421875, -0.017364501953125, -0.01444244384765625, -0.004207611083984375, -0.0161285400390625, 0.054534912109375, 0.07781982421875, 0.019134521484375, -0.0275421142578125, -0.034912109375, 0.0219573974609375, 0.032806396484375, -0.1395263671875, 0.01690673828125, 0.032073974609375, 0.028778076171875, -0.043914794921875, 0.01605224609375, 0.0272979736328125, 0.0246429443359375, -0.005870819091796875, 0.024444580078125, 0.025177001953125, -0.009979248046875, -0.043701171875, -0.027252197265625, 0.041259765625, -0.04705810546875, -0.0200042724609375, -0.0013570785522460938, 0.012298583984375, 0.0095977783203125, 0.018585205078125, 0.0013856887817382812, 0.0284576416015625, -0.032379150390625, 0.02862548828125, 0.036224365234375, -0.01214599609375, 0.006778717041015625, -0.011993408203125, -0.0106201171875, 0.01320648193359375, -0.026397705078125, -0.022186279296875, -0.00421142578125, 0.01593017578125, -0.0019969940185546875, 0.0213775634765625, 0.00682830810546875, -0.0132293701171875, 0.00849151611328125, 0.007793426513671875, -0.00453948974609375, 0.005207061767578125, 0.0479736328125, -0.01325225830078125, -0.015594482421875, -0.023223876953125, -0.0020084381103515625, 0.0161895751953125, 0.00946044921875, -0.004634857177734375, 0.040191650390625, 0.0172271728515625, -0.01209259033203125, -0.0268402099609375, -0.061981201171875, 0.00647735595703125, 0.0097503662109375, -0.0247650146484375, -0.007373809814453125, 0.0218963623046875, 0.0399169921875, -0.01537322998046875, 0.0159149169921875, -0.046722412109375, 0.0200958251953125, -0.017120361328125, -0.0323486328125, 0.0323486328125, -0.0179290771484375, 0.033172607421875, 0.059478759765625, -0.0042877197265625, 0.0297088623046875, -0.007190704345703125, 0.00146484375, 0.01078033447265625, -0.00803375244140625, -0.0307769775390625, 0.01071929931640625, -0.05413818359375, -0.004482269287109375, 0.01529693603515625, 0.025726318359375, -5.960464477539063e-8, -0.03912353515625, -0.00551605224609375, 0.0226898193359375, -0.050384521484375, -0.020355224609375, -0.0040435791015625, -0.020751953125, 0.045257568359375, 0.00485992431640625, 0.01149749755859375, -0.044830322265625, 0.0185089111328125, 0.0157623291015625, 0.018402099609375, -0.0204620361328125, -0.050140380859375, -0.0177459716796875, -0.042083740234375, -0.004009246826171875, -0.01490020751953125, -0.017578125, 0.0011072158813476562, 0.0950927734375, 0.0203704833984375, -0.0823974609375, -0.00969696044921875, 0.04052734375, -0.041290283203125, 0.026031494140625, 0.0303955078125, -0.037994384765625, -0.037689208984375, 0.0198974609375, -0.0233917236328125, -0.0163726806640625, 0.01035308837890625, -0.0232696533203125, -0.0257415771484375, -0.01806640625, 0.018310546875, 0.0167694091796875, 0.0023937225341796875, 0.040863037109375, 0.04937744140625, -0.0017566680908203125, -0.0092620849609375, -0.0095672607421875, -0.03955078125, -0.0265655517578125, 0.027587890625, -0.006877899169921875, -0.041015625, -0.011077880859375, -0.0267333984375, -0.01136016845703125, -0.0117645263671875, -0.03350830078125, 0.0389404296875, -0.006694793701171875, -0.00897216796875, 0.0171051025390625, -0.038604736328125, -0.036102294921875, 0.016326904296875, -0.03582763671875, -0.0017538070678710938, -0.042144775390625, 0.049591064453125, -0.019775390625, -0.051300048828125, 0.027587890625, -0.034027099609375, 0.0007677078247070312, -0.019744873046875, -0.0148468017578125, 0.007122039794921875, 0.08428955078125, -0.0692138671875, -0.01082611083984375, -0.0030269622802734375, 0.023223876953125, -0.027008056640625, -0.0482177734375, -0.07305908203125, -0.0222320556640625, -0.07977294921875, 0.0025482177734375, -0.01190185546875, -0.0243377685546875, -0.0205078125, 0.01158905029296875, -0.0545654296875, -0.03424072265625, 0.033538818359375, -0.0601806640625, 0.00502777099609375, -0.00463104248046875, -0.0113525390625, -0.0200653076171875, -0.01552581787109375, -0.0391845703125, -0.01776123046875, -0.00775146484375, 0.0163116455078125, 0.00032210350036621094, 0.0025424957275390625, -0.02215576171875, 0.0196990966796875, 0.051788330078125, 0.00978851318359375, 0.038116455078125, 0.01049041748046875, 0.01043701171875, 0.005664825439453125, -0.007381439208984375, 0.019866943359375, -0.0270843505859375, -0.027557373046875, -0.051239013671875, 0.007663726806640625, 0.0169525146484375, -0.0489501953125, 0.024932861328125, -0.057220458984375, 0.02276611328125, -0.0352783203125, -0.029693603515625, -0.0158233642578125, 0.002227783203125, -0.00304412841796875, 0.01177215576171875, -0.02532958984375, -0.035888671875, 0.0038776397705078125, 0.00708770751953125, -0.0228729248046875, 0.0251922607421875, 0.03253173828125, 0.01030731201171875, -0.01210784912109375, -0.09716796875, 0.003879547119140625, 0.034515380859375, 0.0032806396484375, 0.056732177734375, 0.0030155181884765625, -0.0254364013671875, 0.09344482421875, 0.006809234619140625, 0.003513336181640625, -0.019683837890625, 0.0858154296875, -0.00933837890625, -0.015380859375, 0.0270538330078125, -0.02166748046875, -0.0158843994140625, 0.00521087646484375, -0.00196075439453125, -0.01959228515625, 0.0065460205078125, 0.03741455078125, 0.019287109375, -0.020263671875, -0.041107177734375, -0.01349639892578125, -0.01401519775390625, 0.05743408203125, 0.0380859375, 0.045257568359375, 0.005435943603515625, 0.032867431640625, 0.0653076171875, -0.0146026611328125, 0.0123291015625, 0.017791748046875, -0.01348876953125, 0.02093505859375, -0.00977325439453125, -0.038330078125, -0.00905609130859375, 0.006011962890625, 0.0018558502197265625, 0.004100799560546875, -0.04278564453125, -0.031524658203125, -0.00013506412506103516, 0.021759033203125, 0.022918701171875, -0.01483917236328125, 0.01430511474609375, -0.0199737548828125, 0.00009626150131225586, 0.01190185546875, -0.04693603515625, -0.038909912109375, -0.01473236083984375, 0.01171875, 0.004337310791015625, -0.006649017333984375, 0.038238525390625, 0.006511688232421875, 0.0136566162109375, 0.02447509765625, -0.0167694091796875, 0.01026153564453125, -0.0021419525146484375, 0.023284912109375, 0.0251617431640625, -0.00484466552734375, 0.0009832382202148438, -0.0227813720703125, 0.0015153884887695312, -0.038604736328125, -0.0284576416015625, 0.0139312744140625, 0.049896240234375, -0.01531219482421875, -0.0202789306640625, 0.0159759521484375, -0.00634002685546875, -0.00792694091796875, 0.0259552001953125, 0.00183868408203125, -0.01788330078125, -0.01479339599609375, 0.0090484619140625, 0.01751708984375, 0.003021240234375, -0.0131378173828125, 0.005405426025390625, -0.014892578125, 0.02838134765625, 0.01226806640625, -0.00684356689453125, 0.01540374755859375, 0.01198577880859375, -0.059295654296875, -0.0264129638671875, 0.003376007080078125, -0.01248931884765625, -0.003772735595703125, -0.0069580078125, -0.041107177734375, -0.0005931854248046875, -0.00495147705078125, 0.040191650390625, -0.0186309814453125, -0.0338134765625, -0.0033397674560546875, -0.0026302337646484375, 0.07843017578125, 0.050262451171875, -0.095458984375, 0.005115509033203125, -0.07080078125, 0.0072479248046875, 0.0017719268798828125, -0.052154541015625, -0.0411376953125, -0.0233154296875, 0.01497650146484375, 0.016845703125, 0.017425537109375, -0.014007568359375, -0.041107177734375, 0.00885772705078125, 0.02197265625, 0.005809783935546875, -0.04412841796875, 0.04119873046875, 0.033294677734375, 0.033599853515625, -0.0125579833984375, 0.01416015625, 0.0243377685546875, -0.0152587890625, 0.017242431640625, -0.05828857421875, -0.0116119384765625, 0.0278778076171875, -0.0297698974609375, -0.025177001953125, -0.0008168220520019531, 0.006923675537109375, -0.01025390625, 0.0022869110107421875, 0.01110076904296875, -0.0053253173828125, -0.0184783935546875, 0.01953125, -0.032684326171875, 0.05596923828125, 0.0251007080078125, 0.055419921875, -0.0034694671630859375, -0.042816162109375, 0.03240966796875, -0.0030689239501953125, 0.050140380859375, 0.00278472900390625, 0.00031495094299316406, 0.0321044921875, 0.031585693359375, 0.01407623291015625, 0.03704833984375, 0.02337646484375, 0.035888671875, -0.01227569580078125, -0.0278472900390625, 0.01064300537109375, 0.0251922607421875, 0.01435089111328125, -0.0295257568359375, 0.003326416015625, 0.006366729736328125, -0.01971435546875, -0.0222930908203125, 0.0467529296875, 0.0271453857421875, -0.05389404296875, -0.00557708740234375, 0.01221466064453125, 0.0079803466796875, 0.0104827880859375, 0.0281829833984375, -0.0295257568359375, -0.0228424072265625, 0.00975799560546875, 0.00897979736328125, -0.005619049072265625, 0.0220489501953125, 0.02081298828125, 0.0173187255859375, 0.0035152435302734375, 0.051849365234375, 0.0178680419921875, -0.07330322265625, -0.012298583984375, 0.048980712890625, -0.00623321533203125, -0.02716064453125, -0.0290679931640625, 0.043243408203125, -0.046173095703125, -0.077880859375, 0.0305938720703125, -0.0030975341796875, 0.0100555419921875, 0.0193328857421875, 0.0030193328857421875, -0.03509521484375, 0.0279541015625, -0.02294921875, 0.02667236328125, 0.006443023681640625, -0.07012939453125, 0.01074981689453125, 0.00039649009704589844, 0.004589080810546875, 0.0355224609375, -0.06915283203125, 0.0032901763916015625, -0.0272979736328125, 0.0291595458984375, -0.027740478515625, -0.0693359375, 0.070068359375, -0.01532745361328125, -0.026824951171875, -0.01116180419921875, 0.025848388671875, 0.01557159423828125, 0.0059051513671875, 0.03472900390625, -0.005794525146484375, 0.031646728515625, 0.021270751953125, 0.034423828125, -0.00794219970703125, 0.008392333984375, -0.08160400390625, 0.03399658203125, -0.0389404296875, 0.071533203125, 0.01068115234375, -0.01141357421875, 0.02215576171875, -0.0164794921875, -0.04852294921875, 0.07257080078125, 0.0243988037109375, 0.03790283203125, -0.048065185546875, -0.00750732421875, 0.0074615478515625, 0.035430908203125, 0.0489501953125, 0.00333404541015625, 0.00946807861328125, -0.005100250244140625, 0.018310546875, 0.039276123046875, -0.017120361328125, 0.014251708984375, -0.01155853271484375, -0.0213470458984375, 0.03143310546875, 0.033782958984375, 0.044525146484375, 0.025421142578125, -0.04534912109375, 0.01354217529296875, 0.0234832763671875, 0.0311279296875, 0.0165863037109375, -0.024688720703125, -0.046356201171875, 0.01381683349609375, 0.0272216796875, -0.00472259521484375, 0.01552581787109375, 0.051025390625, 0.03790283203125, -0.027618408203125, 0.04248046875, -0.036102294921875, 0.06719970703125, -0.010955810546875, 0.027435302734375, 0.0592041015625, 0.0201263427734375, 0.0771484375, 0.01043701171875, 0.0302276611328125, -0.0002410411834716797, -0.0095062255859375, 0.038726806640625, 0.04180908203125, 0.037933349609375, -0.0179901123046875, -0.01153564453125, 0.0019197463989257812, 0.044281005859375, -0.03314208984375, -0.08282470703125, 0.02471923828125, 0.01221466064453125, -0.01172637939453125, 0.033935546875, -0.0025920867919921875, 0.036712646484375, 0.12139892578125, -0.040863037109375, -0.007488250732421875, 0.0264129638671875, 0.054473876953125, 0.00640106201171875, 0.00011944770812988281, -0.055511474609375, -0.042388916015625, -0.054534912109375, 0.03143310546875, 0.020751953125, 0.060333251953125, 0.009246826171875, 0.06329345703125, -0.01702880859375, -0.026763916015625, 0.00057220458984375, 0.0394287109375, -0.0066986083984375, -0.006755828857421875, -0.00955963134765625, -0.0261383056640625, -0.0111236572265625, 0.0161895751953125, 0.0175933837890625, -0.0279541015625, 0.0307464599609375, 0.07366943359375, 0.0101776123046875, -0.037445068359375, 0.052764892578125, 0.0182342529296875, -0.0273284912109375, -0.033447265625, 0.01441192626953125, 0.019744873046875, 0.0006880760192871094, 0.024017333984375, 0.031890869140625, 0.021209716796875, 0.0069427490234375, 0.006610870361328125, 0.0157470703125, -0.042724609375, 0.004070281982421875, -0.000377655029296875, 0.05438232421875, 0.0249176025390625, -0.09991455078125, -0.0188751220703125, -0.0250244140625, -0.045928955078125, 0.051025390625, 0.05029296875, -0.0141754150390625, 0.003818511962890625, 0.039215087890625, -0.033477783203125, 0.0220489501953125, -0.0119476318359375, 0.027313232421875, -0.0281219482421875, -0.00911712646484375, -0.004604339599609375, -0.03985595703125, -0.0222625732421875, 0.0018625259399414062, 0.015380859375, 0.00882720947265625, 0.0341796875, 0.016571044921875, -0.0015153884887695312, -0.040771484375, 0.07379150390625, -0.09930419921875, -0.055877685546875, 0.049591064453125, -0.00716400146484375, 0.0012407302856445312, -0.00262451171875, -0.030517578125, -0.01560211181640625, 0.06005859375, -0.04364013671875, 0.0085296630859375, -0.0092926025390625, 0.00765228271484375, -0.0684814453125, 0.05072021484375, -0.007167816162109375, -0.0091552734375, -0.057861328125, -0.0306396484375, 0.060638427734375, 0.07757568359375, 0.00962066650390625, 0.00347900390625, 0.015533447265625, -0.03424072265625, -0.0133514404296875, 0.0208587646484375, -0.0289764404296875, 0.035858154296875, 0.0270843505859375, -0.0206756591796875, 0.025970458984375, -0.0128021240234375, 0.0099029541015625, 0.0204315185546875, 0.0166015625, 0.01104736328125, -0.0340576171875, -0.0004973411560058594, 0.02838134765625, 0.0177154541015625, -0.0361328125, 0.011474609375, 0.05029296875, -0.019195556640625, -0.020416259765625, 0.001758575439453125, -0.03302001953125, -0.020904541015625, -0.0209503173828125, 0.0081024169921875, -0.0267181396484375, -0.05194091796875, -0.06427001953125, -0.01094818115234375, 0.028900146484375, -0.0252532958984375, 0.0220794677734375, -0.009979248046875, -0.05145263671875, 0.032501220703125, -0.031463623046875, 0.0038967132568359375, 0.00751495361328125, 0.040740966796875, -0.064208984375, 0.02117919921875, -0.013031005859375, -0.034820556640625, -0.0282135009765625, 0.008392333984375, 0.01434326171875, -0.016204833984375, -0.0023212432861328125, 0.0170135498046875, 0.0045166015625, 0.058258056640625, 0.0205841064453125, -0.0007963180541992188, -0.040740966796875, 0.0281219482421875, -0.059173583984375, -0.018463134765625, 0.06982421875, -0.03533935546875, -0.0809326171875, -0.01499176025390625, 0.011871337890625, 0.0286407470703125, -0.029388427734375, -0.015380859375, 0.06805419921875, -0.017181396484375, -0.0226287841796875, -0.014251708984375, 0.0017538070678710938, -0.0287322998046875, 0.032958984375, 0.010406494140625, -0.0272064208984375, 0.000010669231414794922, 0.0338134765625, 0.028472900390625, 0.023223876953125, 0.01247406005859375, 0.0282745361328125, -0.036102294921875, 0.0262451171875, 0.00357818603515625, 0.021453857421875, -0.0265045166015625, 0.004657745361328125, -0.0038909912109375, 0.020538330078125, -0.0443115234375, -0.017181396484375, 0.0032405853271484375, 0.017822265625, 0.0316162109375, -0.056732177734375, -0.073486328125, -0.0872802734375, 0.0149993896484375, -0.0014743804931640625, 0.0137176513671875, 0.03857421875, -0.05035400390625, -0.04986572265625, -0.03369140625, 0.0033931732177734375, 0.0281219482421875, -0.06689453125, 0.030059814453125, 0.040557861328125, -0.0181427001953125, 0.0095977783203125, 0.00472259521484375, -0.048858642578125, -0.0093231201171875, -0.03302001953125, 0.0020046234130859375, -0.0888671875, 0.049407958984375, -0.0390625, -0.0039215087890625, -0.043212890625, -0.0170135498046875, -0.0251007080078125, -0.046051025390625, -0.005786895751953125, 0.0132598876953125, 0.021087646484375, -0.0225982666015625, -0.0057830810546875, 0.0235137939453125, 0.0169830322265625, 0.007358551025390625, -0.00830078125, -0.0305023193359375, 0.0216217041015625, 0.02386474609375, 0.0305938720703125, -0.016937255859375, 0.002002716064453125, 0.036773681640625, -0.00920867919921875, -0.005611419677734375, 0.0045928955078125, -0.029754638671875, 0.050811767578125, -0.0020771026611328125, -0.01479339599609375, 0.0203094482421875, -0.0281524658203125, 0.003173828125, 0.01461029052734375, 0.032135009765625, 0.00307464599609375, 0.0189361572265625, -0.01525115966796875, 0.005298614501953125, 0.013916015625 ]
ba159d551a8497c377007937232450fea662ca22
Wordpress Stackexchange Q: Get entire page content (generated HTML in browser) I'm looking for a filter that provides the full page generated in WordPress - including the head section with meta tags, body, styling and dynamic content. the_content() and the_excerpt() do work only for the dynamic part and the request filter seems to work only for SQL queries (or not)? I would like to filter some data in the entire page in all links or buttons. How can I do this? A: You can use output buffering to accomplish this. Add a high priority hook directly before the template is rendered: add_action('template_redirect', 'foo_buffer_go', 0); function foo_buffer_go(){ ob_start('foo_buffer_callback'); } Add a shutdown hook with an extremely low priority. add_action('shutdown', 'foo_buffer_stop', 1000); function foo_buffer_stop(){ ob_end_flush(); } Inside your callback, you manipulate the rendered HTML. function foo_buffer_callback($buffer){ //Do something with the buffer (HTML) return $buffer; } You may download this as a plugin here: http://3-3.me/B9lK * *Enable the plugin *Visit the site and it will be rendered as "Foo Bar" which means you are capturing the entirety of the generated HTML
Q: Get entire page content (generated HTML in browser) I'm looking for a filter that provides the full page generated in WordPress - including the head section with meta tags, body, styling and dynamic content. the_content() and the_excerpt() do work only for the dynamic part and the request filter seems to work only for SQL queries (or not)? I would like to filter some data in the entire page in all links or buttons. How can I do this? A: You can use output buffering to accomplish this. Add a high priority hook directly before the template is rendered: add_action('template_redirect', 'foo_buffer_go', 0); function foo_buffer_go(){ ob_start('foo_buffer_callback'); } Add a shutdown hook with an extremely low priority. add_action('shutdown', 'foo_buffer_stop', 1000); function foo_buffer_stop(){ ob_end_flush(); } Inside your callback, you manipulate the rendered HTML. function foo_buffer_callback($buffer){ //Do something with the buffer (HTML) return $buffer; } You may download this as a plugin here: http://3-3.me/B9lK * *Enable the plugin *Visit the site and it will be rendered as "Foo Bar" which means you are capturing the entirety of the generated HTML A: Slight change to @BrianFegter's code so the output buffer is closed only if it was opened. This has the benefit of being able to conditionally decide whether to filter or not. if ($want_to_modify_content) { add_action('template_redirect', 'YOURPLUGIN_buffer_start', 0); } function YOURPLUGIN_buffer_start() { add_action('shutdown', 'YOURPLUGIN_buffer_stop', PHP_INT_MAX); ob_start('YOURPLUGIN_modify_content'); } function YOURPLUGIN_buffer_stop() { ob_end_flush(); } function YOURPLUGIN_modify_content($content) { //modify $content return $content; } A: You can use HTTP API to get the content of the post URL.
wordpress
{ "language": "en", "length": 250, "provenance": "stackexchange_00019.jsonl.gz:416829", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41342" }
[ 0.0166015625, -0.007633209228515625, -0.0301055908203125, -0.035308837890625, 0.01824951171875, -0.0272216796875, 0.0260162353515625, 0.0014657974243164062, 0.043701171875, 0.004703521728515625, -0.0200347900390625, -0.0302734375, 0.0238037109375, -0.04339599609375, 0.010467529296875, -0.00537872314453125, 0.0226593017578125, -0.0008368492126464844, 0.0250701904296875, -0.013153076171875, -0.011199951171875, -0.002872467041015625, 0.042510986328125, 0.03985595703125, 0.0233306884765625, -0.03863525390625, 0.055572509765625, -0.018341064453125, 0.02044677734375, -0.012725830078125, 0.00930023193359375, -0.0173797607421875, 0.0253143310546875, 0.0278167724609375, -0.05303955078125, 0.0011911392211914062, -0.0150909423828125, 0.01385498046875, -0.0224151611328125, 0.00531005859375, 0.0226593017578125, -0.0224609375, -0.01161956787109375, 0.0184478759765625, -0.031768798828125, -0.00698089599609375, 0.0284881591796875, -0.02313232421875, 0.0245361328125, 0.048858642578125, 0.0139007568359375, 0.007720947265625, 0.01491546630859375, 0.0171966552734375, -0.01666259765625, -0.02203369140625, -0.048583984375, -0.016845703125, 0.0276641845703125, 0.0005698204040527344, 0.0251312255859375, -0.045623779296875, 0.019195556640625, 0.007579803466796875, -0.035797119140625, 0.0022735595703125, -0.005283355712890625, -0.01325225830078125, -0.01277923583984375, -0.012298583984375, 0.0213775634765625, -0.0201873779296875, -0.006900787353515625, -0.0281982421875, -0.0032196044921875, 0.0204925537109375, -0.04290771484375, -0.021636962890625, 0.04119873046875, -0.005077362060546875, 0.0224761962890625, 0.004230499267578125, -0.01236724853515625, -0.043182373046875, 0.018585205078125, -0.03509521484375, 0.002468109130859375, 0.00353240966796875, -0.0197296142578125, -0.0062255859375, -0.016937255859375, -0.00003361701965332031, 0.0017528533935546875, -0.030548095703125, -0.0235595703125, -0.033599853515625, -0.0108795166015625, 0.01290130615234375, -0.0098876953125, 0.0113525390625, 0.0179595947265625, -0.052276611328125, 0.06671142578125, -0.062042236328125, -0.002838134765625, 0.05450439453125, 0.004985809326171875, 0.0214996337890625, 0.0438232421875, 0.0135040283203125, 0.041046142578125, 0.01593017578125, -0.0322265625, -0.01470184326171875, -0.0221099853515625, 0.029327392578125, -0.024261474609375, -0.0240631103515625, 0.004940032958984375, -0.008697509765625, 0.01177215576171875, -0.0138397216796875, 0.047149658203125, -0.0122528076171875, 0.007099151611328125, 0.0014591217041015625, -0.020904541015625, -0.046173095703125, -0.01052093505859375, -0.034332275390625, 0.006439208984375, 0.03497314453125, 0.004436492919921875, 0.033477783203125, -0.0167236328125, 0.01849365234375, 0.057891845703125, 0.00829315185546875, -0.00452423095703125, 0.00316619873046875, -0.0267486572265625, 0.01122283935546875, 0.0157470703125, -0.0360107421875, -0.0225830078125, -0.0228729248046875, 0.0311279296875, 0.033966064453125, -0.018524169921875, 0.0169677734375, -0.031219482421875, 0.039093017578125, 0.06097412109375, -0.049163818359375, -0.01904296875, -0.07659912109375, -0.0037059783935546875, -0.03326416015625, 0.00957489013671875, -0.037384033203125, 0.038299560546875, 0.0103759765625, -0.01267242431640625, -0.0010671615600585938, -0.0308837890625, -0.03973388671875, -0.04217529296875, -0.0089263916015625, 0.0141143798828125, 0.00044655799865722656, -0.031494140625, 0.0221710205078125, 0.013702392578125, -0.013214111328125, -0.023284912109375, 0.016876220703125, -0.0233612060546875, -0.00902557373046875, 0.0364990234375, -0.010284423828125, -0.024566650390625, -0.014617919921875, 0.055267333984375, -0.00821685791015625, -0.046173095703125, 0.054718017578125, 0.0095062255859375, 0.06768798828125, -0.002330780029296875, 0.0127716064453125, 0.032623291015625, 0.01557159423828125, -0.06427001953125, 0.0112457275390625, 0.0164337158203125, 0.00865936279296875, -0.0272216796875, -0.003376007080078125, 0.0018758773803710938, -0.00286865234375, 0.0506591796875, -0.032501220703125, 0.050506591796875, -0.00435638427734375, -0.011688232421875, -0.00775909423828125, -0.023651123046875, 0.0088348388671875, 0.0182037353515625, 0.0380859375, 0.0004553794860839844, -0.0007405281066894531, -0.0307464599609375, 0.0238800048828125, -0.0201263427734375, -0.007167816162109375, -0.0311126708984375, 0.0024871826171875, 0.0052032470703125, 0.036224365234375, 0.011871337890625, -0.019256591796875, 0.003082275390625, 0.001094818115234375, 0.0859375, -0.00003361701965332031, -0.01299285888671875, -0.01442718505859375, 0.08160400390625, 0.0129852294921875, -0.04083251953125, 0.03973388671875, 0.012908935546875, 0.03924560546875, -0.031280517578125, 0.00902557373046875, -0.0343017578125, -0.0299530029296875, -0.00745391845703125, 0.040008544921875, 0.03936767578125, 0.06787109375, 0.0016603469848632812, 0.006744384765625, 0.07196044921875, -0.054046630859375, 0.00939178466796875, 0.003215789794921875, 0.0297088623046875, 0.059326171875, -0.04193115234375, -0.0170745849609375, 0.00923919677734375, -0.046966552734375, 0.021392822265625, 0.022369384765625, -0.0023746490478515625, 0.0250701904296875, -0.06378173828125, 0.032928466796875, -0.006946563720703125, -0.0016660690307617188, -0.00347137451171875, -0.0129547119140625, 0.00029206275939941406, 0.0299530029296875, 0.0274810791015625, 0.044036865234375, -0.02239990234375, 0.005741119384765625, 0.02435302734375, 0.034698486328125, -0.00417327880859375, 0.0261688232421875, 0.005889892578125, 0.0012388229370117188, -0.03936767578125, 0.00218963623046875, -0.002758026123046875, 0.0135345458984375, -0.01023101806640625, 0.01194000244140625, -0.005046844482421875, -0.0178680419921875, 0.047637939453125, -0.00531768798828125, -0.01258087158203125, -0.051239013671875, 0.051116943359375, 0.059906005859375, 0.006694793701171875, 0.097900390625, 0.011749267578125, 0.0877685546875, -0.0218353271484375, 0.03338623046875, 0.053497314453125, -0.034454345703125, 0.033599853515625, -0.01108551025390625, 0.09283447265625, 0.0623779296875, -0.0166168212890625, 0.0069580078125, -0.01470184326171875, -0.0198516845703125, 0.0207366943359375, -0.04852294921875, -0.053680419921875, 0.0020923614501953125, -0.058013916015625, -0.00807952880859375, 0.0096588134765625, -0.00019609928131103516, -0.003963470458984375, -0.031768798828125, -0.035369873046875, 0.0032444000244140625, -0.07666015625, -0.020111083984375, 0.01490020751953125, -0.0253753662109375, -0.03326416015625, -0.020111083984375, -0.01061248779296875, 0.0182952880859375, -0.0289306640625, -0.0239105224609375, 0.011627197265625, 0.00815582275390625, -0.059722900390625, -0.002765655517578125, -0.0499267578125, 0.053863525390625, -0.0204925537109375, 0.0200958251953125, 0.0194244384765625, 0.041595458984375, 0.001857757568359375, -0.078369140625, -0.021026611328125, 0.048614501953125, -0.03228759765625, -0.009674072265625, -0.055511474609375, -0.0023670196533203125, -0.00504302978515625, 0.0011949539184570312, -0.065185546875, -0.0192718505859375, 0.03790283203125, -0.0098724365234375, -0.039031982421875, -0.0229949951171875, -0.016815185546875, -0.015960693359375, 0.036529541015625, -0.005096435546875, -0.0037593841552734375, -0.047210693359375, -0.02056884765625, -0.0006070137023925781, -0.040496826171875, -0.0093994140625, 0.040313720703125, -0.0238494873046875, -0.0038547515869140625, -0.01439666748046875, 0.034881591796875, -0.0016651153564453125, 0.053863525390625, 0.01371002197265625, -0.046966552734375, -0.020263671875, -0.01104736328125, -0.039947509765625, 0.054443359375, 0.00023424625396728516, 0.0302276611328125, 0.04931640625, -0.00007396936416625977, 0.01861572265625, -0.021331787109375, -0.00705718994140625, -0.004261016845703125, 0.046844482421875, 0.022735595703125, 0.020843505859375, -0.01160430908203125, -0.039154052734375, -0.00855255126953125, 0.07489013671875, -0.051483154296875, -0.013702392578125, 0.00868988037109375, 0.00399017333984375, 0.037261962890625, -0.03289794921875, -0.03448486328125, -0.0325927734375, -0.07684326171875, 0.029144287109375, -0.01172637939453125, -0.022064208984375, 0.0043487548828125, -0.07025146484375, -0.024169921875, -0.057586669921875, 0.0175323486328125, -0.00847625732421875, -0.01666259765625, -0.00933074951171875, -0.036529541015625, -0.0088043212890625, -0.004268646240234375, -0.00977325439453125, -0.0176849365234375, 0.00853729248046875, -0.0203857421875, 0.0028209686279296875, 0.003673553466796875, 0.0262298583984375, -0.0369873046875, -0.005458831787109375, 0.00858306884765625, 0.050445556640625, 0.0335693359375, 0.0005230903625488281, 0.05511474609375, -0.0017538070678710938, 0.055633544921875, -0.0245361328125, -0.0078277587890625, -0.026153564453125, 0.00399017333984375, -0.01226043701171875, -0.056060791015625, -0.02911376953125, -0.049713134765625, -0.00897979736328125, -0.05255126953125, -0.03216552734375, -0.012420654296875, -0.0236663818359375, -0.0005369186401367188, -0.033416748046875, -0.0150909423828125, -0.021759033203125, 0.028961181640625, 0.0035572052001953125, -0.01290130615234375, -0.00043320655822753906, 0.04498291015625, 0.02203369140625, -0.027679443359375, -0.004878997802734375, 0.021484375, 0.0562744140625, -0.02532958984375, 0.08709716796875, 0.055938720703125, -0.0283355712890625, 0.087890625, 0.03143310546875, 0.048583984375, -0.0157470703125, 0.034332275390625, -0.00537109375, -0.015899658203125, 0.0256805419921875, 0.0203857421875, -0.0440673828125, 0.039581298828125, -0.02398681640625, 0.0224151611328125, 0.0035552978515625, 0.0196075439453125, 0.007518768310546875, -0.041534423828125, -0.050750732421875, 0.01264190673828125, -0.0222015380859375, 0.0433349609375, 0.049468994140625, 0.044921875, -0.00605010986328125, 0.0051727294921875, 0.04400634765625, -0.0020008087158203125, 0.045654296875, -0.0014085769653320312, -0.00751495361328125, 0.049835205078125, -0.0008196830749511719, -0.0221710205078125, 0.0272216796875, 0.00090789794921875, -0.0003829002380371094, -0.03240966796875, -0.047698974609375, 0.00685882568359375, -0.0037212371826171875, 0.002765655517578125, 0.0634765625, -0.001514434814453125, 0.00870513916015625, 0.02020263671875, -0.0171661376953125, -0.01436614990234375, 0.0156707763671875, -0.004268646240234375, -0.04754638671875, 0.001964569091796875, -0.0144805908203125, -0.01580810546875, 0.015838623046875, 0.0005464553833007812, -0.023773193359375, -0.005214691162109375, -0.0012502670288085938, 0.03668212890625, -0.00576019287109375, 0.052215576171875, 0.00482940673828125, -0.0184326171875, 0.0237884521484375, 0.001323699951171875, -0.014129638671875, -0.0245208740234375, -0.01299285888671875, 0.054290771484375, 0.05474853515625, 0.011871337890625, 0.00046062469482421875, -0.0281524658203125, -0.021026611328125, 0.002521514892578125, 0.0165557861328125, -0.0270843505859375, -0.0163116455078125, -0.0273284912109375, -0.03533935546875, 0.01514434814453125, 0.00576019287109375, -0.0282440185546875, 0.042816162109375, 0.005023956298828125, 0.039031982421875, -0.0020503997802734375, -0.028228759765625, 0.02886962890625, 0.03399658203125, -0.032379150390625, -0.03631591796875, 0.003326416015625, -0.059173583984375, -0.0037364959716796875, -0.018035888671875, -0.0020008087158203125, 0.07049560546875, -0.032867431640625, 0.026153564453125, -0.0174102783203125, -0.00984954833984375, -0.0028285980224609375, 0.00611114501953125, 0.0484619140625, 0.042327880859375, -0.0357666015625, -0.0030002593994140625, -0.055908203125, -0.02069091796875, -0.04168701171875, -0.042144775390625, -0.03228759765625, -0.01273345947265625, -0.0081024169921875, 0.0291748046875, -0.00592041015625, 0.0206146240234375, 0.0088348388671875, 0.00797271728515625, -0.007293701171875, 0.07061767578125, -0.007068634033203125, 0.052276611328125, -0.046234130859375, 0.033843994140625, -0.0269012451171875, -0.0146636962890625, -0.0288238525390625, -0.0015878677368164062, 0.0197601318359375, -0.008697509765625, -0.0308990478515625, -0.039459228515625, -0.0097503662109375, 0.0106048583984375, 0.05926513671875, -0.004917144775390625, -0.0092010498046875, -0.0262298583984375, 0.0101165771484375, -0.0201873779296875, 0.044830322265625, -0.0208282470703125, -0.04791259765625, 0.060211181640625, 0.01312255859375, -0.023040771484375, -0.0281219482421875, -0.023193359375, 0.029510498046875, 0.027435302734375, 0.022064208984375, -0.04736328125, 0.00493621826171875, 0.03228759765625, 0.031463623046875, -0.0261077880859375, 0.01183319091796875, 0.022857666015625, -0.0032444000244140625, 0.00630950927734375, 0.051971435546875, 0.006275177001953125, -0.061920166015625, 0.018402099609375, -0.001453399658203125, -0.01265716552734375, 0.01605224609375, -0.0144500732421875, 0.01309967041015625, 0.039703369140625, 0.050384521484375, -0.07598876953125, 0.0181884765625, -0.0022430419921875, -0.03521728515625, 0.0069580078125, 0.011016845703125, -0.0037899017333984375, -0.0200653076171875, 0.0270843505859375, 0.046356201171875, 0.00389862060546875, 0.039703369140625, 0.045318603515625, 0.0165863037109375, -0.018524169921875, 0.03955078125, -0.0157928466796875, -0.030181884765625, -0.032562255859375, 0.0136871337890625, -0.023284912109375, -0.00998687744140625, 0.0264434814453125, -0.0104827880859375, 0.0210113525390625, 0.0246429443359375, 0.0406494140625, -0.042938232421875, 0.019622802734375, 0.0123138427734375, 0.003520965576171875, 0.007083892822265625, 0.05218505859375, -0.0232391357421875, 0.00907135009765625, 0.0213165283203125, -0.0280914306640625, -0.0128326416015625, -0.0099029541015625, -0.01122283935546875, 0.01528167724609375, 0.010711669921875, 0.0125885009765625, -0.0031414031982421875, -0.00467681884765625, 0.00864410400390625, 0.005535125732421875, 0.04345703125, -0.005306243896484375, -0.03143310546875, 0.0270538330078125, -0.015960693359375, -0.0171356201171875, -0.0011396408081054688, 0.0102386474609375, -0.03955078125, 0.0165863037109375, 0.0081024169921875, 0.01971435546875, -0.005832672119140625, 0.01190185546875, -0.08056640625, 0.06964111328125, 0.040863037109375, 0.044586181640625, -0.0015316009521484375, 0.0152130126953125, -0.05230712890625, -0.036376953125, -0.051055908203125, 0.0880126953125, 0.038421630859375, 0.047088623046875, -0.05511474609375, -0.01824951171875, 0.0303802490234375, 0.041748046875, -0.0200347900390625, -0.00955963134765625, -0.032257080078125, -0.034027099609375, -0.02008056640625, 0.0186309814453125, 0.00923919677734375, 0.0311279296875, -0.0112152099609375, 0.0771484375, 0.0309600830078125, -0.11590576171875, 0.019744873046875, -0.06964111328125, 0.01019287109375, 0.005474090576171875, -0.007686614990234375, -0.01448822021484375, 0.03057861328125, 0.006877899169921875, -0.022705078125, 0.01383209228515625, 0.011138916015625, -0.054901123046875, -0.00795745849609375, 0.03289794921875, 0.054473876953125, -0.1265869140625, -0.055084228515625, -0.03851318359375, 0.052703857421875, 0.028045654296875, -0.0011453628540039062, 0.00913238525390625, 0.007755279541015625, 0.031829833984375, -0.016754150390625, -0.008392333984375, -0.0034313201904296875, 0.0225830078125, 0.0289459228515625, -0.0050811767578125, 0.0208740234375, -0.05133056640625, -0.036102294921875, 0.031768798828125, 0.04754638671875, -0.0081634521484375, -0.0648193359375, 0.002685546875, 0.0040283203125, 0.03875732421875, 0.040496826171875, 0.054840087890625, -0.037109375, 0.03558349609375, -0.01149749755859375, -0.00876617431640625, -0.0085296630859375, 0.00878143310546875, -0.01265716552734375, 0.0016155242919921875, 0.045379638671875, 0.013092041015625, -0.0287322998046875, -0.020172119140625, 0.0057220458984375, 0.022216796875, 0.019561767578125, 0.038055419921875, 0.004756927490234375, -0.004711151123046875, -0.028564453125, 0.0181427001953125, -0.03961181640625, 0.0552978515625, -0.05010986328125, -0.0048675537109375, -0.0283203125, 0.04339599609375, 0.00504302978515625, -0.0299835205078125, 0.0181121826171875, -0.0036830902099609375, -0.06072998046875, -0.0176849365234375, -0.0143585205078125, -0.037750244140625, 0.01476287841796875, -0.032958984375, 0.005794525146484375, -0.01096343994140625, -0.01233673095703125, -0.003131866455078125, -0.01032257080078125, 0.032989501953125, 0.023773193359375, 0.0130615234375, 0.0028476715087890625, -0.02978515625, -0.0019664764404296875, -0.00392913818359375, 0.051055908203125, 0.0369873046875, -0.07928466796875, 0.01373291015625, -0.0223541259765625, -0.0716552734375, 0.027618408203125, 0.039031982421875, -0.037567138671875, 0.02508544921875, 0.0007672309875488281, 0.00466156005859375, 0.012542724609375, -0.023468017578125, -0.001811981201171875, 0.0253448486328125, 0.017059326171875, 0.006816864013671875, -0.0231475830078125, 0.0160064697265625, -0.0218658447265625, 0.020904541015625, 0.022796630859375, 0.09747314453125, -0.0281829833984375, 0.030517578125, -0.01404571533203125, -0.01316070556640625, 0.01221466064453125, -0.005176544189453125, 0.0221099853515625, 0.01139068603515625, 0.0128936767578125, -0.0224151611328125, -0.027191162109375, 0.00998687744140625, 0.029266357421875, -0.0309600830078125, 0.0011577606201171875, -0.0034637451171875, 0.01140594482421875, -0.022003173828125, 0.02886962890625, -0.00638580322265625, -0.0006809234619140625, 0.00036072731018066406, -0.01428985595703125, 0.05633544921875, 0.10333251953125, 0.046600341796875, 0.043975830078125, 0.059722900390625, 0.0090179443359375, 0.0276947021484375, -0.004993438720703125, 0.056854248046875, 0.0411376953125, -0.034881591796875, -0.0025386810302734375, 0.0008597373962402344, -0.0161590576171875, 0.0168304443359375, -0.0013055801391601562, 0.023101806640625, 0.0023956298828125, -0.0225677490234375, -0.0016126632690429688, -0.0003917217254638672, 0.0439453125, -0.00778961181640625, 0.0171051025390625, -0.016754150390625, 0.024261474609375, -0.003955841064453125, -0.0008716583251953125, 0.0021209716796875, 0.00925445556640625, -0.049072265625, -0.0152130126953125, -0.016326904296875, -0.1192626953125, -0.057586669921875, -0.0089874267578125, 0.021331787109375, -0.0130615234375, -0.029632568359375, 0.0103759765625, -0.03436279296875, 0.051055908203125, -0.020965576171875, 0.01245880126953125, -0.0223541259765625, -0.00931549072265625, -0.02197265625, -0.034759521484375, -0.031463623046875, 0.06939697265625, -0.0092010498046875, -0.01160430908203125, 0.0272216796875, 0.007770538330078125, -0.0219268798828125, -0.048309326171875, -0.04425048828125, 0.01678466796875, -0.0645751953125, -0.033203125, 0.009765625, 0.001338958740234375, -0.004024505615234375, -0.0171356201171875, -0.005405426025390625, 0.0157012939453125, -0.001811981201171875, 0.06646728515625, -0.0343017578125, 0.00574493408203125, -0.0232696533203125, -0.055908203125, -0.00017714500427246094, 0.034759521484375, -0.03680419921875, 0.004547119140625, 0.00963592529296875, 0.0254364013671875, -0.06494140625, -0.00841522216796875, -0.0012826919555664062, -0.04510498046875, -0.0291290283203125, 0.01922607421875, -0.053680419921875, 0.04010009765625, -0.035797119140625, -0.0660400390625, 0.010040283203125, 0.028472900390625, 0.005767822265625, -0.07159423828125, 0.0204315185546875, -0.0007009506225585938, 0.01549530029296875, -0.0064544677734375, -0.0017108917236328125, 0.051788330078125, -0.01326751708984375, -0.01256561279296875, 0.0172271728515625, -0.0294342041015625, -0.002292633056640625, 0.0771484375, 0.045623779296875, 0.01219940185546875, -0.031829833984375, 0.02105712890625, -0.0279388427734375, -0.0352783203125, -0.01496124267578125, 0.0167388916015625, -0.02117919921875, -0.011566162109375, -0.017822265625, -0.00467681884765625, 0.0006489753723144531, -0.01568603515625, -0.036834716796875, -0.0220794677734375, -0.0157623291015625, 0.006633758544921875, -0.026702880859375, -0.044769287109375, 0.061431884765625, -0.0379638671875, -0.01462554931640625, 0.007293701171875, 0.0328369140625, 0.01105499267578125, -0.005825042724609375, -0.0304412841796875, 0.01404571533203125, -0.0135345458984375, 0.00371551513671875, -0.005039215087890625, 0.025543212890625, 0.0012083053588867188, 0.0033473968505859375, -0.0099945068359375, 0.0247650146484375, -0.0095062255859375, 0.01190948486328125, -0.0193023681640625, 0.0208892822265625, -0.008270263671875, 0.0625, -0.0194549560546875, 0.0310516357421875, -0.0099639892578125, 0.0189361572265625, 0.039581298828125, -0.0218658447265625, 0.08428955078125, -0.042572021484375, -0.004810333251953125, 0.005962371826171875, -0.0131072998046875, -0.057891845703125, 0.021484375, -0.0280609130859375, 0.0173797607421875, 0.024322509765625 ]
844665f16fe47a56a3b768e72934e4538f606ed0
Wordpress Stackexchange Q: Using $_GET variables in the URL? I need to generate a simple error message on a page by passing a variable through the URL. The URL is structured as follows: http://site.com/parent-category/category/?error=pause I'm sure it's the permalinks rewrite interfering, but I'm not sure how to resolve it. A: Try adding the variable to the WordPress' array of 'recognised query variables'... add_filter('query_vars', 'my_register_query_vars' ); function my_register_query_vars( $qvars ){ //Add query variable to $qvars array $qvars[] = 'my_error'; return $qvars; } Then the value of 'my_error' can be found via get_query_var('my_error'). (See Codex) EDIT From Otto's comment, it's better to do: add_action('init','add_my_error'); function add_my_error() { global $wp; $wp->add_query_var('my_error'); }
Q: Using $_GET variables in the URL? I need to generate a simple error message on a page by passing a variable through the URL. The URL is structured as follows: http://site.com/parent-category/category/?error=pause I'm sure it's the permalinks rewrite interfering, but I'm not sure how to resolve it. A: Try adding the variable to the WordPress' array of 'recognised query variables'... add_filter('query_vars', 'my_register_query_vars' ); function my_register_query_vars( $qvars ){ //Add query variable to $qvars array $qvars[] = 'my_error'; return $qvars; } Then the value of 'my_error' can be found via get_query_var('my_error'). (See Codex) EDIT From Otto's comment, it's better to do: add_action('init','add_my_error'); function add_my_error() { global $wp; $wp->add_query_var('my_error'); } A: This was the only way I could get this to work add_action('init','add_query_args'); function add_query_args() { add_query_arg( 'error', 'pause' ); } http://codex.wordpress.org/Function_Reference/add_query_arg
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:416837", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41370" }
[ 0.057891845703125, -0.01580810546875, -0.0147552490234375, -0.070556640625, -0.0064544677734375, -0.0281829833984375, -0.0106201171875, 0.011688232421875, 0.011322021484375, 0.00409698486328125, -0.039215087890625, -0.0335693359375, 0.0019359588623046875, -0.028656005859375, -0.0223236083984375, -0.03564453125, 0.0145416259765625, -0.059326171875, -0.035797119140625, -0.021820068359375, 0.006336212158203125, -0.025146484375, 0.01444244384765625, 0.0195159912109375, 0.01186370849609375, 0.037261962890625, 0.057342529296875, -0.040802001953125, -0.00859832763671875, -0.02642822265625, -0.0010967254638671875, -0.00022709369659423828, -0.0004878044128417969, 0.02288818359375, 0.009124755859375, -0.0125885009765625, 0.02703857421875, -0.0006532669067382812, 0.0010881423950195312, 0.0555419921875, 0.02325439453125, -0.037261962890625, 0.083251953125, -0.01380157470703125, 0.0204925537109375, 0.003032684326171875, 0.04833984375, -0.0230560302734375, -0.006206512451171875, 0.0357666015625, 0.038330078125, 0.0297088623046875, 0.0361328125, 0.005123138427734375, -0.00955963134765625, -0.00595855712890625, 0.0285491943359375, -0.038726806640625, 0.0225830078125, 0.002368927001953125, -0.0335693359375, -0.000797271728515625, 0.0172119140625, -0.02490234375, 0.02545166015625, -0.01065826416015625, -0.004337310791015625, 0.04547119140625, -0.0265655517578125, 0.00579833984375, 0.020111083984375, -0.0245513916015625, -0.01971435546875, -0.00397491455078125, -0.012451171875, -0.00968170166015625, 0.008331298828125, -0.01465606689453125, -0.0006866455078125, 0.0312347412109375, 0.003299713134765625, -0.006855010986328125, -0.0232696533203125, 0.0275115966796875, -0.0004229545593261719, 0.042755126953125, -0.01043701171875, -0.03369140625, -0.0592041015625, -0.021728515625, -0.032958984375, -0.061859130859375, -0.052215576171875, -0.0106658935546875, 0.0062255859375, -0.031463623046875, 0.0186614990234375, 0.043426513671875, -0.007694244384765625, 0.0094757080078125, -0.06671142578125, 0.0175323486328125, -0.0187530517578125, -0.01495361328125, 0.01404571533203125, 0.043182373046875, 0.0013837814331054688, 0.057952880859375, 0.045135498046875, 0.01580810546875, 0.0169677734375, 0.01073455810546875, -0.054229736328125, 0.00855255126953125, -0.0606689453125, 0.0487060546875, -0.025787353515625, -0.052459716796875, -0.030792236328125, 0.022674560546875, -0.0260467529296875, 0.017913818359375, -0.0120849609375, 0.018157958984375, -0.034515380859375, -0.0292205810546875, 0.0215911865234375, -0.034942626953125, -0.01104736328125, 0.0145416259765625, -0.03289794921875, 0.0178985595703125, 0.043792724609375, 0.005352020263671875, -0.0025997161865234375, -0.0225830078125, 0.0144500732421875, -0.00921630859375, 0.0165252685546875, 0.00966644287109375, -0.00600433349609375, -0.0194244384765625, 0.0296478271484375, 0.00438690185546875, -0.02459716796875, 0.0203094482421875, 0.029327392578125, 0.00678253173828125, -0.025604248046875, -0.0418701171875, -0.0124359130859375, -0.00811004638671875, 0.03497314453125, 0.01332855224609375, -0.04888916015625, 0.007534027099609375, 0.00009101629257202148, -0.01275634765625, -0.03076171875, -0.0303192138671875, 0.00714111328125, 0.0077056884765625, 0.06402587890625, -0.0056915283203125, -0.015533447265625, -0.0240936279296875, -0.07012939453125, -0.0164642333984375, 0.0140228271484375, 0.043701171875, 0.00946044921875, -0.025115966796875, -0.0487060546875, -0.0020122528076171875, 0.0047760009765625, 0.0025539398193359375, -0.0401611328125, 0.03607177734375, 0.022308349609375, 0.0015916824340820312, 0.0014791488647460938, -0.0450439453125, 0.02471923828125, 0.01506805419921875, -0.0298919677734375, 0.0287017822265625, 0.003772735595703125, 0.00995635986328125, -0.0133209228515625, -0.0022449493408203125, 0.019989013671875, 0.05743408203125, 0.00469207763671875, 0.021453857421875, -0.01273345947265625, -0.031341552734375, 0.034515380859375, 0.01995849609375, -0.01224517822265625, -0.01202392578125, 0.01067352294921875, -0.00634765625, 0.0144195556640625, 0.0089874267578125, -0.03607177734375, 0.0032501220703125, -0.0177001953125, 0.01318359375, -0.0253448486328125, 0.03729248046875, 0.0189971923828125, 0.0188446044921875, -0.047454833984375, -0.0068817138671875, 0.00907135009765625, 0.0131988525390625, 0.0247344970703125, 0.0750732421875, 0.0206146240234375, 0.0538330078125, 0.01477813720703125, -0.0110321044921875, 0.01529693603515625, 0.0160980224609375, -0.0049285888671875, 0.0010251998901367188, -0.0233001708984375, -0.00453948974609375, -0.0166473388671875, -0.00931549072265625, 0.00362396240234375, 0.051605224609375, 0.041534423828125, 0.03582763671875, -0.030303955078125, -0.029571533203125, -0.01242828369140625, -0.05206298828125, 0.0025920867919921875, 0.0526123046875, 0.044097900390625, -0.004058837890625, -0.0087890625, -0.028350830078125, 0.007457733154296875, -0.08056640625, -0.002605438232421875, -0.028717041015625, -0.027801513671875, 0.0006880760192871094, 0.020751953125, -0.005779266357421875, 0.02264404296875, -0.05267333984375, -0.017303466796875, 0.02783203125, -0.0090789794921875, -0.004665374755859375, -0.0249481201171875, 0.0169677734375, -0.00732421875, -0.0290679931640625, -0.02313232421875, -0.007659912109375, 0.0239715576171875, -0.018218994140625, 0.0108184814453125, -0.0020999908447265625, 0.0028362274169921875, -0.004596710205078125, -0.0005893707275390625, -0.06829833984375, -0.00389862060546875, -0.00856781005859375, -0.04541015625, -0.0250701904296875, 0.0157470703125, 0.0252532958984375, -0.037139892578125, -0.032012939453125, -0.00754547119140625, 0.019073486328125, -0.01555633544921875, -0.0087738037109375, -0.013702392578125, -0.021240234375, 0.015289306640625, 0.00823974609375, 0.044586181640625, -0.00878143310546875, 0.0274658203125, 0.0233001708984375, -0.0308074951171875, 0.060455322265625, -0.01177978515625, -0.035888671875, 0.033050537109375, -0.0183868408203125, 0.033966064453125, -0.032623291015625, 0.02960205078125, 0.039947509765625, -0.0236968994140625, -0.00740814208984375, -0.0017366409301757812, 0.00844573974609375, 0.0011224746704101562, 0.02423095703125, 0.012451171875, -0.018402099609375, -0.01305389404296875, 0.007534027099609375, 0.01397705078125, 0.01422882080078125, 0.034454345703125, -0.0180511474609375, 0.01513671875, 0.0168304443359375, -0.0606689453125, -0.095703125, 0.00994110107421875, -0.051513671875, 0.0009946823120117188, 0.039764404296875, -0.0250701904296875, -0.029052734375, 0.06707763671875, -0.00325775146484375, 0.03369140625, -0.0374755859375, -0.10626220703125, -0.052764892578125, -0.0950927734375, 0.018157958984375, -0.00916290283203125, 0.0170745849609375, -0.00632476806640625, 0.061798095703125, 0.0029392242431640625, -0.049102783203125, -0.0046234130859375, 0.0143280029296875, -0.005077362060546875, 0.003971099853515625, 0.00510406494140625, -0.002925872802734375, 0.00757598876953125, -0.00858306884765625, 0.0230255126953125, 0.0390625, -0.03277587890625, -0.0008096694946289062, -0.0209503173828125, 0.03729248046875, 0.014862060546875, -0.0243988037109375, 0.0156402587890625, 0.007152557373046875, -0.0109100341796875, -0.034820556640625, -0.046112060546875, -0.0038890838623046875, -0.049652099609375, 0.01004791259765625, 0.0328369140625, 0.002834320068359375, -0.0051727294921875, 0.00745391845703125, -0.01342010498046875, -0.0367431640625, 0.009368896484375, -0.0498046875, 0.052978515625, -0.00615692138671875, 0.00527191162109375, -0.00689697265625, 0.00743865966796875, -0.029510498046875, 0.00753021240234375, 0.0057220458984375, -0.01555633544921875, 0.00384521484375, -0.01444244384765625, 0.01549530029296875, -0.02459716796875, 0.0266265869140625, -0.037078857421875, 0.0088653564453125, -0.0285797119140625, -0.005786895751953125, -0.0209808349609375, 0.04718017578125, 0.0018320083618164062, -0.0288238525390625, -0.0243377685546875, 0.01107025146484375, -0.0253753662109375, -0.0445556640625, 0.0261077880859375, 0.0016794204711914062, -0.03228759765625, 0.009002685546875, -0.0013227462768554688, -0.0131072998046875, -0.01403045654296875, -0.00005942583084106445, -0.03521728515625, -0.0248870849609375, 0.0380859375, -0.06402587890625, 0.0088653564453125, 0.0203857421875, -0.0036678314208984375, -0.019866943359375, -0.03179931640625, -0.0274810791015625, -0.0545654296875, -0.039398193359375, -0.00547027587890625, 0.10516357421875, 0.038787841796875, -0.051544189453125, -0.0086212158203125, 0.06634521484375, -0.0094451904296875, -0.0019931793212890625, 0.0011548995971679688, -0.0032558441162109375, 0.0181732177734375, 0.015655517578125, -0.0120849609375, 0.001873016357421875, -0.00605010986328125, -0.0011358261108398438, -0.02618408203125, -0.0023670196533203125, -0.0036106109619140625, -0.019561767578125, 0.042236328125, -0.0390625, -0.05877685546875, -0.04095458984375, 0.01506805419921875, -0.00510406494140625, 0.042144775390625, -0.03497314453125, -0.0240478515625, -0.03607177734375, -0.004734039306640625, -0.0126495361328125, -0.021148681640625, 0.00672149658203125, 0.02337646484375, 0.031951904296875, -0.005428314208984375, 0.0263214111328125, -0.0106353759765625, 0.0494384765625, -0.0293731689453125, 0.017913818359375, 0.01207733154296875, -0.048492431640625, 0.036865234375, 0.004436492919921875, -0.00026726722717285156, 0.004436492919921875, 0.0114593505859375, 0.005466461181640625, -0.0482177734375, 0.0161590576171875, -0.00287628173828125, 0.0110015869140625, 0.007442474365234375, -0.0288848876953125, -0.0021514892578125, 0.0017566680908203125, 0.0127105712890625, -0.05474853515625, 0.07366943359375, 0.00676727294921875, -0.0011539459228515625, 0.01593017578125, -0.0006618499755859375, 0.0204620361328125, 0.0251312255859375, 0.00534820556640625, -0.0242919921875, -0.0322265625, -0.0003387928009033203, -0.00971221923828125, 0.02239990234375, -0.02325439453125, 0.044403076171875, -0.01922607421875, -0.0124053955078125, -0.0167083740234375, 0.00176239013671875, 0.0048980712890625, -0.01139068603515625, -0.036590576171875, -0.0089874267578125, 0.01110076904296875, 0.04376220703125, 0.0184478759765625, -0.024993896484375, 0.007266998291015625, 0.0020999908447265625, 0.020599365234375, 0.0253448486328125, -0.0196990966796875, -0.00922393798828125, 0.004779815673828125, 0.06689453125, 0.036529541015625, 0.0016794204711914062, -0.06280517578125, 0.11090087890625, -0.001583099365234375, 0.00868988037109375, 0.01354217529296875, -0.0307159423828125, 0.028778076171875, 0.0265655517578125, 0.034820556640625, -0.026397705078125, -0.01409149169921875, 0.030731201171875, 0.040740966796875, -0.0280914306640625, -0.0082550048828125, 0.007293701171875, 0.044342041015625, -0.0296783447265625, -0.01702880859375, 0.0197906494140625, -0.0251617431640625, -0.006710052490234375, 0.0120849609375, -0.0286407470703125, -0.025054931640625, -0.040863037109375, -0.034820556640625, 0.0256805419921875, -0.0036373138427734375, -0.017608642578125, -0.01273345947265625, 0.0023288726806640625, 0.07794189453125, -0.007617950439453125, 0.055267333984375, 0.0267333984375, -0.00652313232421875, 0.025360107421875, -0.02410888671875, -0.002410888671875, 0.008941650390625, 0.0277252197265625, -0.032989501953125, -0.0084228515625, 0.049560546875, 0.00261688232421875, 0.0094451904296875, -0.044036865234375, 0.00640106201171875, 0.00557708740234375, -0.0142822265625, 0.055084228515625, 0.00707244873046875, -0.031494140625, -0.0184783935546875, -0.05035400390625, -0.01702880859375, 0.0176239013671875, -0.0291595458984375, 0.006313323974609375, -0.0102996826171875, -0.006656646728515625, 0.0031280517578125, 0.024566650390625, 0.005359649658203125, -0.034912109375, 0.004467010498046875, 0.00327301025390625, -0.029205322265625, 0.02032470703125, 0.017303466796875, -0.038909912109375, 0.00748443603515625, 0.00531768798828125, 0.0243377685546875, 0.037078857421875, -0.0382080078125, 0.00861358642578125, -0.004077911376953125, -0.0250396728515625, -0.0146636962890625, 0.01068878173828125, 0.0285491943359375, 0.07232666015625, -0.00897979736328125, -0.00466156005859375, -0.00926971435546875, 0.0120849609375, -0.0102996826171875, 0.0038852691650390625, -0.00792694091796875, -0.04437255859375, 0.055267333984375, -0.0243072509765625, -0.047210693359375, 0.001789093017578125, 0.0086669921875, 0.029693603515625, -0.006900787353515625, -0.01296234130859375, 0.004634857177734375, -0.059600830078125, 0.06103515625, 0.10498046875, 0.007053375244140625, 0.0643310546875, -0.0184783935546875, 0.0125274658203125, 0.050689697265625, 0.065185546875, -0.031585693359375, -0.044403076171875, 0.05230712890625, 0.01540374755859375, -0.0335693359375, 0.01497650146484375, -0.02392578125, -0.0192413330078125, 0.07470703125, 0.078369140625, -0.0843505859375, -0.005645751953125, 0.04217529296875, -0.01297760009765625, -0.045684814453125, 0.01776123046875, 0.016632080078125, 0.01209259033203125, 0.00014412403106689453, -0.048431396484375, -0.0083160400390625, 0.006153106689453125, -0.0260467529296875, 0.0167236328125, 0.0193023681640625, 0.0751953125, -0.002193450927734375, -0.045654296875, -0.02117919921875, 0.029052734375, 0.005405426025390625, -0.00433349609375, 0.021240234375, 0.007110595703125, -0.01873779296875, -0.02587890625, 0.0187530517578125, -0.005626678466796875, 0.0046539306640625, -0.046783447265625, 0.01178741455078125, 0.0276031494140625, 0.0244293212890625, 0.00238800048828125, -0.0285797119140625, 0.0228729248046875, -0.058837890625, 0.08074951171875, 0.00807952880859375, 0.0100555419921875, -0.0009746551513671875, -0.03118896484375, -0.021392822265625, -0.0191650390625, 0.0132598876953125, 0.0108642578125, 0.0160064697265625, 0.055908203125, -0.04571533203125, -0.024139404296875, 0.031646728515625, -0.018035888671875, -0.004543304443359375, 0.002567291259765625, 0.00525665283203125, -0.026214599609375, 0.00678253173828125, 0.0032215118408203125, -0.01387786865234375, -0.006778717041015625, -0.0259857177734375, -0.045196533203125, 0.0906982421875, 0.00010156631469726562, 0.0243072509765625, 0.03857421875, 0.028564453125, -0.03875732421875, 0.0007066726684570312, -0.04791259765625, 0.07110595703125, 0.07183837890625, 0.061309814453125, -0.07818603515625, -0.048858642578125, 0.03631591796875, 0.07293701171875, 0.08428955078125, 0.01141357421875, -0.02105712890625, -0.0022983551025390625, 0.0556640625, -0.0008673667907714844, -0.0361328125, 0.048919677734375, 0.032989501953125, 0.039031982421875, 0.0906982421875, -0.02728271484375, 0.049224853515625, -0.0222930908203125, 0.0187530517578125, 0.0208740234375, -0.01215362548828125, -0.034759521484375, 0.006786346435546875, -0.02325439453125, -0.052001953125, 0.00917816162109375, 0.0216522216796875, -0.01404571533203125, 0.031494140625, 0.062225341796875, 0.04168701171875, -0.00936126708984375, -0.02764892578125, -0.02362060546875, 0.046875, -0.0238037109375, 0.007617950439453125, 0.002349853515625, -0.0027027130126953125, 0.06451416015625, 0.02734375, 0.003192901611328125, 0.039642333984375, 0.0179595947265625, 0.043182373046875, 0.034332275390625, 0.03424072265625, -0.02545166015625, 0.0065460205078125, 0.0513916015625, 0.06640625, -0.038909912109375, -0.037506103515625, -0.01010894775390625, -0.0035915374755859375, 0.0270233154296875, 0.0097503662109375, 0.061798095703125, 0.03643798828125, 0.038818359375, -0.048248291015625, -0.00009077787399291992, 0.032562255859375, 0.0242156982421875, -0.008636474609375, -0.0228118896484375, -0.01560211181640625, -0.0007810592651367188, -0.011444091796875, -0.04791259765625, 0.00458526611328125, 0.08477783203125, 0.0439453125, 0.0172882080078125, -0.09765625, -0.043182373046875, -0.010162353515625, -0.005859375, -0.0011615753173828125, 0.0186767578125, -0.01593017578125, 0.02142333984375, -0.0172882080078125, 0.0141448974609375, -0.0085601806640625, -0.00688934326171875, 0.053985595703125, 0.04974365234375, -0.056427001953125, -0.0255889892578125, -0.00270843505859375, -0.033233642578125, 0.0245819091796875, -0.052734375, 0.022125244140625, -0.0236663818359375, -0.01143646240234375, -0.0038013458251953125, 0.012359619140625, -0.0209197998046875, 0.001461029052734375, 0.0186309814453125, 0.007232666015625, -0.020416259765625, 0.0183868408203125, -0.03778076171875, 0.0364990234375, 0.0192413330078125, -0.07080078125, -0.0187835693359375, 0.002185821533203125, -0.04693603515625, 0.0266571044921875, 0.043304443359375, -0.01291656494140625, 0.0011587142944335938, 0.0034694671630859375, -0.034912109375, 0.00272369384765625, 0.0184173583984375, -0.01236724853515625, -0.0279998779296875, 0.01873779296875, -0.0264892578125, -0.0180511474609375, 0.00479888916015625, -0.004009246826171875, 0.0032100677490234375, 0.01947021484375, 0.05657958984375, 0.005634307861328125, -0.0013952255249023438, 0.010711669921875, 0.034912109375, -0.037567138671875, 0.0256195068359375, -0.016326904296875, -0.03204345703125, 0.01369476318359375, -0.0037860870361328125, -0.02130126953125, 0.0736083984375, -0.0050506591796875, 0.001621246337890625, 0.05755615234375, -0.01238250732421875, -0.0107269287109375, 0.00014221668243408203, 0.08807373046875, 0.00154876708984375, -0.05426025390625, -0.038970947265625, -0.0014963150024414062, 0.040802001953125, 0.09490966796875, 0.00862884521484375, 0.021728515625, -0.0181732177734375, 0.007965087890625, 0.0298004150390625, -0.007415771484375, 0.0234222412109375, 0.0207977294921875, -0.0604248046875, 0.01030731201171875, -0.01568603515625, -0.0240020751953125, 0.01361846923828125, -0.0057220458984375, 0.031707763671875, -0.01386260986328125, 0.053192138671875, -0.0114593505859375, -0.04742431640625, -0.00791168212890625, -0.0196533203125, -0.0226898193359375, -0.0112762451171875, 0.00870513916015625, -0.027984619140625, 0.0163421630859375, -0.00942230224609375, -0.0198822021484375, -0.013214111328125, -0.0177154541015625, 0.0214996337890625, -0.053314208984375, 0.033721923828125, 0.0031337738037109375, 0.02020263671875, -0.01219940185546875, -0.03466796875, -0.00016427040100097656, -0.0228118896484375, 0.07177734375, -0.045166015625, -0.007419586181640625, 0.0031871795654296875, 0.030059814453125, -0.05413818359375, -0.01479339599609375, -0.0438232421875, -0.028717041015625, -0.047088623046875, 0.02850341796875, 0.056488037109375, -0.022735595703125, -0.0499267578125, -0.0112762451171875, -0.0011339187622070312, 0.046661376953125, -0.045928955078125, -0.046844482421875, -0.0258636474609375, 0.01544952392578125, -0.0106353759765625, -0.0162200927734375, 0.0196990966796875, -0.028289794921875, 0.0032405853271484375, -0.0170745849609375, -0.00487518310546875, 0.004863739013671875, -0.05035400390625, -0.086181640625, 0.08575439453125, -0.01285552978515625, -0.0270538330078125, 0.016815185546875, -0.06512451171875, -0.0260467529296875, 0.04144287109375, 0.004974365234375, -0.020416259765625, -0.041046142578125, 0.035186767578125, 0.05462646484375, -0.0205841064453125, 0.040802001953125, 0.03460693359375, -0.07684326171875, 0.02056884765625, -0.00627899169921875, 0.027191162109375, -0.02069091796875, 0.0099029541015625, 0.0196990966796875, 0.061065673828125, 0.006221771240234375, 0.0008115768432617188, 0.01438140869140625, -0.0460205078125, -0.0179595947265625, -0.044769287109375, 0.0016260147094726562, -0.0264129638671875, 0.04559326171875, -0.0025196075439453125, 0.0011234283447265625, 0.008819580078125, -0.025115966796875, -0.0240936279296875, -0.032806396484375, -0.0330810546875, 0.0199127197265625, -0.0924072265625, -0.021240234375, 0.0162353515625, 0.0163116455078125, 0.00740814208984375, -0.02459716796875, 0.00787353515625, -0.00733184814453125, 0.04840087890625, 0.0007867813110351562, -0.0062103271484375, -0.03582763671875, 0.047088623046875, -0.0273590087890625, -0.01552581787109375, 0.0027523040771484375, 0.030731201171875, 0.007724761962890625, 0.00788116455078125, -0.0006608963012695312, 0.040985107421875, -0.052001953125, -0.0135650634765625, -0.0022411346435546875, 0.038421630859375, -0.01303863525390625, -0.01415252685546875, -0.0390625, 0.0225830078125, -0.0010318756103515625, 0.015960693359375, -0.0012578964233398438, 0.039459228515625, 0.0212554931640625, 0.06964111328125, -0.027587890625, -0.01263427734375, -0.0204010009765625, 0.0247344970703125, -0.01372528076171875, 0.01511383056640625, 0.0208892822265625, -0.0256195068359375, 0.00937652587890625, -0.0006337165832519531, 0.0019989013671875, -0.041168212890625, 0.0290679931640625, 0.0191802978515625, 0.0102386474609375, 0.03131103515625 ]
9824f78703c1f5405b422cb9c29bb031792466ab
Wordpress Stackexchange Q: How to make WP_Query 'post__in' accept an array? I have a function that returns a comma separated list of post ids that a particular user can access. I want to use this list in a WP_Query loop. The custom function: $array = user_albums(); foreach( $array as $post ) { if( !in_array( $post->ID, $array ) ) $ids[] = $post->ID; } $access_ids = implode( ', ', $ids ); So here is the situation: * *On my test site the id list is 158, 162, 145, 269. *Inserting the list of ids returns only the first post. 'post__in'=> array( $access_ids ), *Inserting the list of ids not in an array returns an error. 'post__in'=> $access_ids , *Inserting the post ids manually returns correct posts 'post__in'=> array( 158, 162, 145, 269 ), What could I be doing wrong? I appreciate any help. A: $access_ids is a string. post__in accepts an array. So instead of $access_ids you could use 'post__in'=> $ids skipping the $access_ids = implode( ', ', $ids ); all together.
Q: How to make WP_Query 'post__in' accept an array? I have a function that returns a comma separated list of post ids that a particular user can access. I want to use this list in a WP_Query loop. The custom function: $array = user_albums(); foreach( $array as $post ) { if( !in_array( $post->ID, $array ) ) $ids[] = $post->ID; } $access_ids = implode( ', ', $ids ); So here is the situation: * *On my test site the id list is 158, 162, 145, 269. *Inserting the list of ids returns only the first post. 'post__in'=> array( $access_ids ), *Inserting the list of ids not in an array returns an error. 'post__in'=> $access_ids , *Inserting the post ids manually returns correct posts 'post__in'=> array( 158, 162, 145, 269 ), What could I be doing wrong? I appreciate any help. A: $access_ids is a string. post__in accepts an array. So instead of $access_ids you could use 'post__in'=> $ids skipping the $access_ids = implode( ', ', $ids ); all together. A: That implode() is probably what breaks things: $access_ids = '158, 162, 145, 269'; $array = array($access_ids); //wrong var_dump( $array ); // array // 0 => string '158, 162, 145, 269' (length=18) $array = array_map( 'trim', explode( ',', $access_ids ) ); // right var_dump( $array ); //array // 0 => string '158' (length=3) // 1 => string '162' (length=3) // 2 => string '145' (length=3) // 3 => string '269' (length=3) A: Just set 'post__in'=>$ids, declaring array( $access_ids ) doesn't create the desired array.
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:416843", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41390" }
[ 0.0736083984375, 0.0023193359375, -0.02630615234375, -0.0178680419921875, 0.039825439453125, -0.055816650390625, 0.0771484375, -0.0092315673828125, 0.014923095703125, 0.0419921875, -0.048858642578125, -0.0007104873657226562, -0.0310211181640625, 0.0006999969482421875, -0.055145263671875, -0.05413818359375, 0.0181732177734375, -0.0206756591796875, -0.0012140274047851562, -0.0241851806640625, 0.00966644287109375, -0.006275177001953125, 0.0014181137084960938, 0.00896453857421875, 0.024169921875, -0.010467529296875, 0.007659912109375, -0.0243682861328125, 0.01262664794921875, -0.01473236083984375, -0.009033203125, 0.0296630859375, 0.01027679443359375, -0.0182952880859375, 0.04095458984375, 0.030029296875, 0.03045654296875, -0.01605224609375, 0.0066070556640625, 0.0218505859375, 0.0203857421875, -0.01543426513671875, 0.01227569580078125, 0.0034942626953125, -0.031585693359375, -0.002071380615234375, 0.045166015625, 0.0162811279296875, 0.0169219970703125, -0.01849365234375, 0.0028820037841796875, 0.014892578125, 0.01319122314453125, -0.0199737548828125, -0.01053619384765625, 0.008941650390625, -0.01195526123046875, 0.0072479248046875, 0.04473876953125, 0.0079498291015625, -0.0496826171875, -0.01751708984375, 0.0225982666015625, -0.06134033203125, 0.00439453125, -0.00827789306640625, 0.0411376953125, 0.00893402099609375, -0.0093994140625, -0.01027679443359375, 0.013671875, 0.006378173828125, -0.00605010986328125, -0.0283966064453125, -0.0103607177734375, 0.0004260540008544922, -0.0122833251953125, -0.051177978515625, 0.01043701171875, 0.0091705322265625, -0.0131988525390625, -0.0090484619140625, -0.03009033203125, 0.0260467529296875, -0.0280914306640625, 0.0248870849609375, -0.0219573974609375, -0.0068206787109375, 0.00804901123046875, -0.0180206298828125, -0.0181121826171875, -0.0173492431640625, 0.006549835205078125, 0.003276824951171875, -0.0277252197265625, -0.0169830322265625, -0.0027523040771484375, 0.05255126953125, 0.0038013458251953125, 0.00746917724609375, -0.008453369140625, -0.037994384765625, -0.0106353759765625, -0.028350830078125, 0.016754150390625, 0.040496826171875, 0.0102386474609375, -0.0106964111328125, 0.02685546875, 0.007251739501953125, 0.00337982177734375, 0.02569580078125, 0.0113372802734375, -0.0005831718444824219, -0.042877197265625, -0.01004791259765625, -0.00830841064453125, -0.006622314453125, 0.001995086669921875, -0.047027587890625, -0.0023326873779296875, 0.0214385986328125, -0.0180816650390625, -0.00548553466796875, 0.0134735107421875, 0.003002166748046875, 0.0122222900390625, -0.021881103515625, -0.006500244140625, 0.0247955322265625, -0.049041748046875, 0.03753662109375, 0.068115234375, -0.0164947509765625, 0.00037860870361328125, -0.025421142578125, -0.00887298583984375, -0.02374267578125, 0.0010786056518554688, 0.006866455078125, 0.02301025390625, -0.0792236328125, -0.0310211181640625, 0.04571533203125, 0.027008056640625, 0.033447265625, 0.034332275390625, -0.0031890869140625, 0.00091552734375, -0.09515380859375, 0.0196380615234375, -0.00957489013671875, 0.0189208984375, 0.000629425048828125, -0.006885528564453125, -0.022674560546875, 0.00714111328125, -0.0202789306640625, 0.0012369155883789062, -0.0193634033203125, 0.0095062255859375, 0.003345489501953125, -0.00958251953125, -0.039794921875, -0.050689697265625, -0.01277923583984375, -0.0302276611328125, -0.0108184814453125, 0.038116455078125, 0.1044921875, 0.00015676021575927734, -0.006404876708984375, 0.047637939453125, 0.0306396484375, -0.0250701904296875, -0.008026123046875, 0.00795745849609375, -0.0182342529296875, 0.0031566619873046875, 0.05853271484375, 0.002597808837890625, -0.030548095703125, -0.0221405029296875, -0.0004892349243164062, -0.055328369140625, 0.054656982421875, 0.006053924560546875, 0.04632568359375, 0.00980377197265625, 0.007259368896484375, 0.04638671875, 0.052764892578125, -0.016387939453125, 0.033660888671875, 0.0137481689453125, -0.0635986328125, 0.0089111328125, -0.02728271484375, -0.00396728515625, -0.0029582977294921875, 0.0008959770202636719, 0.026275634765625, 0.008331298828125, 0.0230865478515625, -0.0214385986328125, 0.031341552734375, -0.00946044921875, 0.041961669921875, -0.04486083984375, 0.029052734375, 0.0254974365234375, 0.017669677734375, -0.04168701171875, 0.041839599609375, 0.041015625, 0.023712158203125, -0.0085906982421875, 0.0263519287109375, -0.0195465087890625, -0.015716552734375, -0.0283203125, -0.034698486328125, 0.01297760009765625, 0.07586669921875, 0.067138671875, -0.045501708984375, 0.0142974853515625, -0.035980224609375, 0.056182861328125, -0.006107330322265625, -0.031524658203125, 0.0029296875, 0.0164031982421875, 0.04638671875, -0.005764007568359375, -0.00795745849609375, -0.0034160614013671875, -0.060333251953125, 0.01511383056640625, 0.0447998046875, 0.0298309326171875, 0.0090179443359375, 0.00009912252426147461, -0.006359100341796875, 0.046478271484375, 0.021087646484375, 0.0277252197265625, -0.01514434814453125, -0.01013946533203125, 0.0240325927734375, -0.0115966796875, 0.0243377685546875, 0.027587890625, -0.01424407958984375, 0.007450103759765625, 0.046905517578125, -0.0088958740234375, 0.0052642822265625, -0.013671875, 0.0027484893798828125, -0.0182342529296875, -0.05072021484375, 0.0149383544921875, -0.02520751953125, 0.04248046875, 0.0147857666015625, 0.0255889892578125, 0.01474761962890625, -0.039031982421875, 0.03204345703125, 0.00467681884765625, -0.03741455078125, 0.0084991455078125, 0.0261077880859375, -0.048248291015625, -0.007617950439453125, -0.01013946533203125, 0.01184844970703125, 0.0217437744140625, -0.0171966552734375, 0.0031032562255859375, 0.0301055908203125, -0.0548095703125, -0.0146942138671875, -0.0218963623046875, 0.006511688232421875, 0.00506591796875, 0.06048583984375, 0.002532958984375, -0.019561767578125, -0.01282501220703125, 0.08697509765625, -0.004383087158203125, 0.06268310546875, -0.031524658203125, 0.0138092041015625, -0.00931549072265625, -0.0302581787109375, 0.0201416015625, -0.047149658203125, 0.0193634033203125, 0.06329345703125, -0.0130767822265625, -0.0030002593994140625, -0.002777099609375, -0.0205535888671875, 0.00017309188842773438, 0.044097900390625, 0.0014820098876953125, -0.06982421875, 0.0162506103515625, -0.00925445556640625, 0.022369384765625, 0.1031494140625, -0.031402587890625, -0.04486083984375, -0.0073699951171875, 0.03082275390625, -0.0831298828125, -0.094482421875, 0.067138671875, -0.07403564453125, -0.0225982666015625, -0.036285400390625, -0.0450439453125, 0.003662109375, -0.0103302001953125, -0.0242767333984375, -0.002376556396484375, -0.00687408447265625, -0.053985595703125, -0.041412353515625, -0.05413818359375, 0.00534820556640625, -0.003662109375, 0.0091400146484375, 0.0019292831420898438, 0.037384033203125, 0.02764892578125, 0.0086212158203125, 0.03314208984375, 0.03668212890625, -0.0182342529296875, -0.03778076171875, -0.027099609375, 0.0189208984375, -0.00916290283203125, 0.005504608154296875, 0.00160980224609375, 0.0018463134765625, -0.0032901763916015625, -0.0019931793212890625, -0.00589752197265625, 0.0249176025390625, 0.05108642578125, -0.013031005859375, -0.0022716522216796875, 0.09246826171875, 0.0784912109375, 0.016326904296875, 0.0162506103515625, -0.0186309814453125, -0.0200042724609375, -0.01702880859375, 0.031829833984375, -0.00875091552734375, -0.00563812255859375, -0.02667236328125, -0.01255035400390625, -0.03369140625, -0.03668212890625, -0.042510986328125, 0.0592041015625, 0.0245513916015625, 0.05718994140625, 0.0169830322265625, 0.03558349609375, -0.01641845703125, -0.0416259765625, 0.006061553955078125, -0.017974853515625, -0.0004878044128417969, -0.034942626953125, -0.0033321380615234375, -0.035064697265625, 0.035369873046875, -0.0027446746826171875, 0.05718994140625, -0.0281829833984375, -0.0364990234375, -0.0090179443359375, 0.09808349609375, -0.05010986328125, -0.0022068023681640625, -0.0204315185546875, 0.0181121826171875, -0.0009021759033203125, -0.07568359375, -0.0285491943359375, -0.007579803466796875, 0.05059814453125, -0.0108795166015625, -0.029754638671875, 0.0175628662109375, -0.00986480712890625, 0.01497650146484375, 0.0443115234375, -0.0125885009765625, 0.03240966796875, -0.0009312629699707031, 0.03216552734375, -0.02386474609375, 0.02130126953125, -0.049346923828125, -0.01181793212890625, 0.00315093994140625, -0.118896484375, -0.02349853515625, 0.04730224609375, 0.05413818359375, -0.040985107421875, -0.005161285400390625, -0.011993408203125, 0.0703125, -0.019378662109375, 0.00601959228515625, 0.008270263671875, 0.055267333984375, -0.035186767578125, -0.036346435546875, -0.0169219970703125, -0.048095703125, -0.03466796875, -0.0277862548828125, 0.0285186767578125, -0.01145172119140625, -0.0384521484375, -0.046142578125, -0.02874755859375, 0.0031757354736328125, -0.038604736328125, -0.024139404296875, 0.0037784576416015625, 0.04248046875, -0.0213165283203125, 0.0094757080078125, -0.0455322265625, -0.04766845703125, 0.032470703125, 0.0249786376953125, -0.01317596435546875, 0.006694793701171875, 0.053802490234375, 0.0033550262451171875, -0.039794921875, -0.090576171875, 0.006343841552734375, 0.03173828125, -0.0193023681640625, 0.0518798828125, 0.0284881591796875, -0.01031494140625, 0.04742431640625, -0.0021228790283203125, -0.0027923583984375, 0.0004851818084716797, -0.015380859375, 0.0231170654296875, 0.001415252685546875, -0.0232086181640625, 0.006107330322265625, 0.0439453125, 0.040374755859375, 0.01067352294921875, -0.027679443359375, 0.038726806640625, 0.037109375, -0.016143798828125, -0.027069091796875, -0.02593994140625, -0.05120849609375, 0.03729248046875, -0.07171630859375, 0.01006317138671875, -0.0165863037109375, -0.005550384521484375, -0.008697509765625, -0.0042877197265625, 0.01107025146484375, 0.029998779296875, 0.03857421875, 0.01007080078125, 0.03497314453125, 0.049560546875, 0.01279449462890625, -0.029632568359375, -0.01068878173828125, 0.0207977294921875, -0.0272979736328125, -0.055450439453125, -0.00920867919921875, -0.00791168212890625, 0.0369873046875, 0.049896240234375, 0.012664794921875, 0.0216827392578125, -0.01192474365234375, -0.039459228515625, -0.0215606689453125, -0.00960540771484375, -0.0177001953125, -0.04876708984375, -0.00165557861328125, 0.0234527587890625, -0.0093841552734375, 0.020111083984375, 0.047515869140625, 0.01506805419921875, 0.03753662109375, -0.0333251953125, 0.026611328125, 0.0263824462890625, 0.0231781005859375, 0.00505828857421875, -0.0223541259765625, 0.0159759521484375, 0.03009033203125, -0.006153106689453125, -0.037322998046875, 0.0220489501953125, 0.05096435546875, 0.044525146484375, 0.007457733154296875, -0.031402587890625, -0.0219268798828125, -0.02081298828125, 0.0093536376953125, 0.0491943359375, -0.01983642578125, -0.060516357421875, -0.046539306640625, -0.026458740234375, 0.011383056640625, -0.044647216796875, 0.0126800537109375, 0.01629638671875, -0.0169830322265625, 0.01580810546875, 0.0010805130004882812, 0.00469970703125, -0.032470703125, -0.019287109375, 0.016326904296875, -0.03460693359375, -0.039581298828125, 0.037994384765625, -0.00609588623046875, -0.019256591796875, 0.003582000732421875, 0.033905029296875, -0.010009765625, -0.005924224853515625, -0.0292205810546875, -0.005161285400390625, -0.047943115234375, -0.0107574462890625, 0.0567626953125, 0.0282440185546875, -0.040496826171875, 0.00019991397857666016, 0.005275726318359375, 0.00905609130859375, 0.07659912109375, -0.0098419189453125, -0.0182342529296875, -0.033538818359375, -0.00917816162109375, 0.028350830078125, 0.023681640625, 0.027801513671875, 0.01142120361328125, 0.0015115737915039062, -0.0435791015625, 0.04925537109375, -0.035675048828125, 0.019561767578125, 0.01702880859375, 0.0272369384765625, -0.01033782958984375, -0.0031757354736328125, -0.02606201171875, 0.0016202926635742188, -0.04010009765625, -0.0755615234375, 0.025238037109375, 0.032073974609375, 0.02880859375, 0.03277587890625, 0.02099609375, 0.0240478515625, -0.006946563720703125, -0.020050048828125, -0.0024967193603515625, -0.021453857421875, 0.0312347412109375, -0.01268768310546875, -0.0247955322265625, -0.00679779052734375, -0.0128936767578125, -0.0164642333984375, -0.0286865234375, 0.04473876953125, -0.03125, -0.01433563232421875, -0.0246429443359375, -0.0229034423828125, -0.0303497314453125, 0.0203857421875, 0.0672607421875, 0.017181396484375, 0.02557373046875, 0.00763702392578125, 0.005588531494140625, -0.004940032958984375, 0.0229034423828125, 0.00891876220703125, 0.005039215087890625, 0.06585693359375, 0.00072479248046875, -0.02069091796875, 0.0302886962890625, -0.0404052734375, -0.00969696044921875, 0.0144805908203125, 0.016265869140625, -0.036346435546875, 0.0188751220703125, -0.016387939453125, 0.027587890625, 0.045074462890625, -0.0097503662109375, -0.0180816650390625, -0.03240966796875, 0.034881591796875, 0.0171051025390625, -0.040679931640625, 0.006816864013671875, 0.035247802734375, 0.03338623046875, -0.042999267578125, -0.0105743408203125, -0.009033203125, -0.0430908203125, 0.00797271728515625, 0.02783203125, 0.005329132080078125, 0.01509857177734375, 0.0196075439453125, -0.020538330078125, -0.01491546630859375, -0.052947998046875, -0.0205078125, -0.042816162109375, -0.034759521484375, 0.05865478515625, -0.01031494140625, 0.044281005859375, 0.039703369140625, 0.01934814453125, -0.004955291748046875, 0.01001739501953125, -0.0108489990234375, -0.04833984375, -0.032928466796875, -0.0175323486328125, 0.07183837890625, -0.046966552734375, 0.036163330078125, 0.0095672607421875, 0.021148681640625, -0.0174560546875, 0.0029811859130859375, 0.09075927734375, -0.0555419921875, -0.0159454345703125, 0.002689361572265625, 0.00589752197265625, 0.0090179443359375, 0.041412353515625, 0.017791748046875, 0.00141143798828125, -0.00899505615234375, 0.010467529296875, -0.05792236328125, -0.005252838134765625, 0.02630615234375, -0.04937744140625, 0.0599365234375, 0.0127105712890625, -0.003177642822265625, 0.01544189453125, 0.01543426513671875, -0.034027099609375, -0.014617919921875, -0.0072174072265625, -0.001522064208984375, 0.0027942657470703125, 0.005077362060546875, -0.00952911376953125, -0.01291656494140625, 0.01226806640625, 0.046875, 0.065673828125, 0.0204620361328125, -0.07427978515625, -0.0272216796875, 0.024627685546875, 0.04248046875, 0.0021228790283203125, 0.05023193359375, 0.0172882080078125, 0.03424072265625, 0.09429931640625, -0.0300750732421875, 0.06365966796875, -0.045074462890625, 0.01715087890625, 0.0020618438720703125, 0.00897216796875, 0.0003857612609863281, -0.0210113525390625, 0.0080413818359375, -0.0347900390625, -0.01258087158203125, 0.00838470458984375, -0.00424957275390625, 0.03802490234375, 0.01029205322265625, 0.035003662109375, -0.060546875, -0.034454345703125, -0.018768310546875, 0.03485107421875, -0.003284454345703125, 0.04034423828125, 0.0408935546875, 0.0174560546875, 0.0214385986328125, 0.0213165283203125, 0.031158447265625, 0.02099609375, 0.0019626617431640625, 0.06951904296875, 0.0193328857421875, 0.0152435302734375, -0.05908203125, 0.0022220611572265625, 0.08831787109375, 0.09088134765625, -0.055816650390625, -0.0175628662109375, 0.016815185546875, 0.028717041015625, 0.00923919677734375, 0.0111236572265625, 0.06597900390625, 0.0245819091796875, 0.0364990234375, -0.01293182373046875, -0.00595855712890625, 0.002277374267578125, -0.01861572265625, 0.0018186569213867188, 0.0181884765625, 0.0236663818359375, 0.005054473876953125, -0.0304718017578125, 0.005367279052734375, 0.0213623046875, 0.0179290771484375, -0.005184173583984375, 0.0300750732421875, -0.0013103485107421875, 0.007671356201171875, -0.01953125, 0.045257568359375, 0.007781982421875, 0.0219268798828125, -0.050933837890625, -0.042266845703125, -0.0026397705078125, 0.039886474609375, -0.01409912109375, 0.02679443359375, 0.0278778076171875, 0.010498046875, -0.0245513916015625, -0.01082611083984375, 0.035491943359375, -0.0304718017578125, -0.04827880859375, -0.01354217529296875, -0.005558013916015625, 0.02459716796875, -0.0003285408020019531, 0.01666259765625, 0.043548583984375, 0.0092926025390625, 0.013458251953125, 0.04522705078125, -0.009765625, 0.00965118408203125, 0.02520751953125, -0.00856781005859375, 0.01381683349609375, 0.025238037109375, -0.0633544921875, 0.003253936767578125, -0.05889892578125, -0.035552978515625, 0.031097412109375, 0.0229339599609375, -0.0279388427734375, 0.045196533203125, 0.016632080078125, -0.0404052734375, -0.0128631591796875, 0.045745849609375, 0.017578125, -0.0082550048828125, 0.004627227783203125, -0.00760650634765625, -0.0192108154296875, 0.0119476318359375, 0.00036907196044921875, 0.005855560302734375, 0.031585693359375, -0.0014295578002929688, 0.0236358642578125, 0.0210113525390625, -0.017364501953125, 0.0300140380859375, -0.04754638671875, -0.0021820068359375, 0.052703857421875, -0.0278778076171875, -0.02105712890625, -0.0012445449829101562, 0.054962158203125, 0.025482177734375, 0.0180816650390625, -0.018585205078125, -0.02166748046875, -0.03857421875, 0.02783203125, 0.0235748291015625, -0.0003561973571777344, -0.00885009765625, 0.01239776611328125, -0.0306396484375, -0.035797119140625, 0.08416748046875, 0.03973388671875, -0.00756072998046875, 0.028533935546875, -0.0243682861328125, -0.0447998046875, 0.043975830078125, -0.058013916015625, 0.051422119140625, 0.01546478271484375, 0.00238037109375, 0.05224609375, -0.006076812744140625, -0.0186920166015625, -0.0011358261108398438, 0.02313232421875, -0.005283355712890625, 0.0047607421875, 0.0281982421875, -0.0151214599609375, 0.03424072265625, 0.056182861328125, 0.0234832763671875, 0.0226287841796875, -0.0094451904296875, -0.0323486328125, -0.003925323486328125, -0.04412841796875, -0.037200927734375, -0.060150146484375, 0.0205078125, 0.0247344970703125, -0.008270263671875, -0.02716064453125, -0.051849365234375, -0.00032138824462890625, -0.0005965232849121094, -0.0089874267578125, -0.026092529296875, 0.0193634033203125, -0.023529052734375, 0.014556884765625, -0.029754638671875, 0.007587432861328125, 0.00006091594696044922, 0.00672149658203125, -0.0265045166015625, -0.007022857666015625, -0.010284423828125, 0.031829833984375, -0.00038313865661621094, -0.00861358642578125, 0.0007333755493164062, -0.0079498291015625, -0.034149169921875, 0.02374267578125, -0.0009150505065917969, 0.0401611328125, 0.005100250244140625, -0.0140228271484375, 0.00934600830078125, -0.005229949951171875, -0.012939453125, -0.07354736328125, -0.004070281982421875, -0.097412109375, -0.007099151611328125, 0.0261993408203125, -0.00909423828125, 0.0166015625, -0.033477783203125, -0.0660400390625, 0.05224609375, -0.0132598876953125, -0.032318115234375, -0.057342529296875, 0.01238250732421875, 0.014434814453125, 0.02325439453125, -0.01385498046875, -0.046783447265625, -0.05157470703125, -0.01154327392578125, 0.0190277099609375, 0.004779815673828125, 0.04833984375, -0.020538330078125, -0.0587158203125, -0.00722503662109375, -0.033721923828125, 0.0254669189453125, 0.014434814453125, -0.01132965087890625, 0.05242919921875, 0.01531982421875, -0.0200653076171875, 0.020111083984375, 0.005615234375, 0.0028781890869140625, -0.0186614990234375, -0.032684326171875, -0.040557861328125, -0.00907135009765625, 0.07110595703125, 0.0784912109375, 0.02703857421875, -0.034332275390625, -0.000148773193359375, -0.034423828125, -0.0123291015625, -0.001224517822265625, 0.0166015625, -0.024139404296875, -0.00286102294921875, 0.00806427001953125, -0.01207733154296875, 0.004085540771484375, -0.0245819091796875, -0.019012451171875, -0.0259552001953125, -0.005886077880859375, 0.0028076171875, 0.00885009765625, -0.00319671630859375, 0.004512786865234375, -0.022857666015625, -0.05853271484375, -0.0141754150390625, 0.0166168212890625, -0.05426025390625, -0.03436279296875, -0.0250244140625, -0.0250244140625, 0.0501708984375, 0.04180908203125, 0.00223541259765625, 0.052215576171875, 0.005702972412109375, -0.0021610260009765625, 0.0025615692138671875, 0.01654052734375, -0.01039886474609375, -0.00772857666015625, -0.01239013671875, 0.041473388671875, -0.02435302734375, 0.06829833984375, -0.021026611328125, 0.04046630859375, -0.0043182373046875, -0.006473541259765625, -0.026031494140625, 0.021240234375, 0.0260467529296875, -0.032440185546875, -0.0035858154296875, -0.0067596435546875, -0.0229644775390625, -0.043121337890625, -0.015411376953125, 0.0341796875, -0.0012750625610351562, 0.01120758056640625 ]
fb2a7345415d47164d844affda51c2a032e3e9e9
Wordpress Stackexchange Q: Filtering Wordpress Contents based on URL This is just a theoretical question for now. Given a website that has items of content that are tagged into categories, for example "Coding" "Writing" "Gaming", it is possible to configure the site in some way that the categories are only available dependant on the incoming URL from which they are viewed? For example, if everything is available on www.mysite.net, the coding posts are available at coding.mysite.net (with the other categories still available for view), and the coding posts available without any sign of the other categories on a seperate domain www.mycodingsite.com and using a different theme from the main site? In this way I could "split out" a section of my site by category, and have it appear as a standalone website? A: Yes, Use the "Subdomains" plugin and you can do exactly what are you looking for :) http://wordpress.org/extend/plugins/subdomains/ Cheers Hasin
Q: Filtering Wordpress Contents based on URL This is just a theoretical question for now. Given a website that has items of content that are tagged into categories, for example "Coding" "Writing" "Gaming", it is possible to configure the site in some way that the categories are only available dependant on the incoming URL from which they are viewed? For example, if everything is available on www.mysite.net, the coding posts are available at coding.mysite.net (with the other categories still available for view), and the coding posts available without any sign of the other categories on a seperate domain www.mycodingsite.com and using a different theme from the main site? In this way I could "split out" a section of my site by category, and have it appear as a standalone website? A: Yes, Use the "Subdomains" plugin and you can do exactly what are you looking for :) http://wordpress.org/extend/plugins/subdomains/ Cheers Hasin A: Yes, i think you can work with 3 different ways. * *use multisite and each blog in the network is an subdomain and his categories. Its great for maintenance and an default and also great for capabilities, no problems. *Use an custom pluign on filter pre_get_posts() and list in dependence on the url the categories for this url, only this. Filter the categories from other domain. Possible, but you must develop. *Use an plugin for different domain in a default install, single install, not multisite; maybe 123 Multihost (only german description, use g-translate) I think is a fast way, but not fine for maintenance in feature; to dependence to the plugin.
wordpress
{ "language": "en", "length": 262, "provenance": "stackexchange_00019.jsonl.gz:416874", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41500" }
[ 0.07354736328125, 0.0022029876708984375, 0.0225982666015625, -0.01076507568359375, 0.0196685791015625, -0.059234619140625, 0.07513427734375, -0.035980224609375, 0.0030689239501953125, 0.00623321533203125, 0.00449371337890625, -0.022613525390625, 0.000789642333984375, -0.054840087890625, 0.01373291015625, -0.033355712890625, -0.0038700103759765625, 0.01053619384765625, -0.023101806640625, -0.0251922607421875, 0.000988006591796875, -0.028228759765625, -0.027740478515625, 0.0006132125854492188, 0.00274658203125, -0.0232696533203125, 0.0972900390625, -0.0176239013671875, 0.0203704833984375, -0.019439697265625, 0.0264434814453125, -0.046142578125, -0.0049896240234375, 0.045501708984375, -0.0213165283203125, 0.0034313201904296875, 0.0189056396484375, 0.0091400146484375, 0.01129913330078125, 0.0433349609375, 0.0191497802734375, -0.01348876953125, -0.00478363037109375, 0.022216796875, 0.00010687112808227539, -0.058685302734375, 0.043731689453125, -0.0550537109375, -0.00798797607421875, -0.0149688720703125, 0.010284423828125, 0.0247344970703125, 0.038665771484375, -0.04473876953125, -0.0108184814453125, 0.0016651153564453125, -0.03173828125, 0.0292205810546875, 0.03485107421875, -0.04608154296875, -0.028289794921875, -0.0160980224609375, 0.0268402099609375, 0.037445068359375, 0.00323486328125, -0.01216888427734375, 0.0002548694610595703, 0.01482391357421875, -0.047882080078125, -0.01268768310546875, 0.048553466796875, -0.027130126953125, 0.0075225830078125, -0.037200927734375, -0.017333984375, 0.002643585205078125, 0.00970458984375, -0.023712158203125, 0.01274871826171875, -0.01554107666015625, 0.018524169921875, -0.0021381378173828125, -0.0005426406860351562, -0.01169586181640625, 0.0028839111328125, -0.0016546249389648438, -0.0019273757934570312, -0.00617218017578125, -0.03912353515625, 0.01239776611328125, -0.0164642333984375, 0.00821685791015625, -0.068115234375, 0.0191650390625, 0.007171630859375, 0.0157470703125, 0.03436279296875, 0.04364013671875, 0.006954193115234375, 0.01096343994140625, -0.015960693359375, -0.030548095703125, 0.0109710693359375, -0.0263519287109375, 0.025421142578125, 0.043487548828125, 0.003688812255859375, 0.01338958740234375, 0.061614990234375, 0.005035400390625, 0.007534027099609375, 0.052459716796875, 0.0011873245239257812, 0.01983642578125, -0.04315185546875, -0.0015745162963867188, -0.024444580078125, -0.03228759765625, -0.0280914306640625, 0.0021610260009765625, 0.0166168212890625, 0.048675537109375, 0.0073394775390625, -0.04278564453125, 0.01381683349609375, 0.0063323974609375, -0.0122222900390625, -0.03472900390625, 0.004428863525390625, 0.0037937164306640625, -0.0246124267578125, 0.0296478271484375, 0.0169677734375, 0.0008492469787597656, -0.021484375, -0.01441192626953125, 0.035614013671875, -0.006275177001953125, -0.0015306472778320312, -0.00894927978515625, 0.01198577880859375, 0.012115478515625, 0.0155181884765625, -0.024627685546875, 0.01934814453125, 0.00640106201171875, 0.0030517578125, 0.0273590087890625, 0.01169586181640625, -0.031463623046875, 0.045623779296875, -0.0275421142578125, 0.08197021484375, -0.02203369140625, -0.050811767578125, -0.060943603515625, 0.048065185546875, -0.05633544921875, -0.048980712890625, -0.0716552734375, 0.042510986328125, -0.005641937255859375, 0.005573272705078125, -0.013763427734375, -0.032928466796875, -0.0124664306640625, -0.05133056640625, -0.00337982177734375, 0.003582000732421875, -0.005565643310546875, -0.02337646484375, 0.00681304931640625, 0.006313323974609375, 0.01442718505859375, 0.01593017578125, 0.038848876953125, 0.0404052734375, 0.01392364501953125, -0.0234527587890625, 0.0904541015625, 0.01715087890625, -0.0309600830078125, 0.0244903564453125, -0.0179443359375, -0.07421875, 0.061126708984375, -0.0020999908447265625, 0.035552978515625, -0.00009834766387939453, -0.0017213821411132812, 0.07421875, 0.042633056640625, -0.0261077880859375, -0.002666473388671875, -0.0161895751953125, -0.031280517578125, 0.027130126953125, -0.0029850006103515625, 0.0007433891296386719, 0.01227569580078125, 0.01404571533203125, 0.0211639404296875, 0.0125885009765625, 0.0098114013671875, 0.030029296875, -0.0023288726806640625, 0.0009388923645019531, 0.0222625732421875, 0.015869140625, 0.037750244140625, 0.00839996337890625, 0.005207061767578125, -0.0230865478515625, -0.0186767578125, -0.0215606689453125, -0.00933837890625, 0.030029296875, -0.0015859603881835938, 0.006397247314453125, -0.0008373260498046875, 0.0199127197265625, 0.0236053466796875, -0.00630950927734375, 0.01552581787109375, 0.057586669921875, -0.02880859375, 0.0131683349609375, -0.02862548828125, 0.037750244140625, 0.036834716796875, -0.0888671875, -0.00689697265625, 0.0577392578125, 0.02984619140625, -0.048126220703125, 0.008880615234375, -0.01117706298828125, -0.0167694091796875, -0.02032470703125, 0.059600830078125, 0.0406494140625, 0.00579071044921875, -0.01442718505859375, -0.0303497314453125, 0.035980224609375, -0.077880859375, -0.009368896484375, -0.0186309814453125, 0.010223388671875, 0.051666259765625, -0.0002856254577636719, -0.01404571533203125, 0.0100555419921875, -0.0205230712890625, 0.0028743743896484375, 0.0204315185546875, -0.002841949462890625, -0.0223846435546875, -0.0168914794921875, 0.01242828369140625, 0.0121612548828125, 0.029296875, -0.0171661376953125, 0.0185699462890625, 0.0472412109375, 0.01129150390625, 0.047149658203125, 0.039642333984375, -0.021881103515625, -0.005146026611328125, 0.003467559814453125, 0.023712158203125, 0.0022258758544921875, 0.0100860595703125, 0.08721923828125, -0.006687164306640625, -0.0214996337890625, -0.0179290771484375, 0.0222930908203125, -0.0010194778442382812, -0.00946807861328125, 0.02105712890625, -0.00537109375, -0.007099151611328125, -0.0237884521484375, -0.06549072265625, 0.00872039794921875, 0.0084381103515625, 0.02911376953125, -0.00499725341796875, 0.0059967041015625, 0.025421142578125, 0.0022563934326171875, 0.0467529296875, -0.006771087646484375, -0.025665283203125, 0.045440673828125, -0.04693603515625, 0.034454345703125, -0.0209197998046875, 0.045745849609375, 0.056793212890625, 0.01232147216796875, -0.0069122314453125, -0.0004916191101074219, 0.0091552734375, 0.0075836181640625, 0.00939178466796875, -0.007587432861328125, 0.020416259765625, -0.09515380859375, -0.029541015625, 0.017578125, -0.042236328125, 0.026702880859375, 0.0021953582763671875, 0.0120086669921875, -0.0159912109375, -0.06793212890625, -0.02728271484375, 0.011688232421875, 0.0011768341064453125, 0.0338134765625, 0.019317626953125, 0.0222015380859375, -0.0284881591796875, 0.013214111328125, 0.0029430389404296875, -0.028076171875, -0.024261474609375, -0.0953369140625, -0.048431396484375, -0.07330322265625, 0.05548095703125, -0.0298004150390625, 0.02606201171875, 0.0075225830078125, 0.0149078369140625, 0.0219268798828125, -0.050384521484375, 0.027130126953125, 0.059600830078125, -0.0165252685546875, 0.009033203125, -0.02862548828125, -0.01483154296875, -0.00726318359375, 0.00119781494140625, 0.049591064453125, -0.01141357421875, 0.01806640625, 0.005550384521484375, -0.017913818359375, 0.0289764404296875, 0.006927490234375, -0.039215087890625, 0.03277587890625, 0.03265380859375, -0.01409149169921875, -0.022857666015625, 0.00788116455078125, -0.0086212158203125, -0.00957489013671875, 0.007671356201171875, -0.0005679130554199219, -0.026885986328125, -0.0275115966796875, 0.0205535888671875, 0.0212249755859375, -0.006603240966796875, 0.010894775390625, -0.013885498046875, -0.012451171875, 0.006870269775390625, 0.01290130615234375, -0.008148193359375, 0.044952392578125, -0.0145111083984375, 0.010467529296875, 0.0025959014892578125, 0.005268096923828125, -0.0180206298828125, 0.01137542724609375, -0.05621337890625, -0.036224365234375, 0.046295166015625, 0.0164947509765625, 0.0208740234375, -0.022552490234375, -0.037689208984375, -0.0009341239929199219, 0.10205078125, -0.06890869140625, 0.0021209716796875, 0.0155792236328125, 0.025421142578125, -0.01201629638671875, -0.054107666015625, -0.07757568359375, -0.0155792236328125, -0.08734130859375, 0.00856781005859375, -0.033660888671875, -0.0087432861328125, 0.00047326087951660156, -0.006435394287109375, -0.0291595458984375, -0.04730224609375, 0.0267333984375, 0.016387939453125, 0.011627197265625, -0.0396728515625, 0.0257720947265625, -0.049560546875, 0.0010728836059570312, -0.01123809814453125, -0.0058441162109375, -0.01509857177734375, 0.04046630859375, 0.0022678375244140625, -0.005107879638671875, -0.0152587890625, 0.0018377304077148438, 0.031585693359375, -0.01715087890625, 0.0102386474609375, -0.0013217926025390625, -0.005313873291015625, 0.015869140625, 0.05224609375, 0.0134735107421875, 0.0031795501708984375, -0.01294708251953125, -0.03594970703125, -0.017822265625, 0.0184478759765625, -0.0275726318359375, 0.0186004638671875, -0.0303955078125, 0.0032196044921875, -0.0440673828125, -0.0204315185546875, -0.03857421875, -0.006561279296875, -0.01277923583984375, -0.0243682861328125, -0.0009889602661132812, -0.047149658203125, 0.035980224609375, 0.01000213623046875, -0.0084381103515625, 0.0144805908203125, 0.056884765625, 0.005321502685546875, -0.0240478515625, -0.01910400390625, -0.0014524459838867188, 0.0333251953125, -0.038238525390625, 0.08477783203125, 0.0438232421875, -0.01480865478515625, 0.071044921875, 0.0008044242858886719, 0.0247650146484375, -0.0129547119140625, 0.016357421875, 0.007049560546875, 0.0009245872497558594, -0.0012311935424804688, 0.006504058837890625, 0.0256195068359375, 0.0491943359375, -0.0020885467529296875, -0.02496337890625, 0.007335662841796875, 0.038299560546875, 0.00853729248046875, -0.0272369384765625, -0.047271728515625, -0.0164642333984375, 0.00002086162567138672, 0.047515869140625, 0.019287109375, 0.031768798828125, -0.006732940673828125, 0.011474609375, 0.035552978515625, -0.00438690185546875, -0.004547119140625, 0.0149383544921875, -0.0244140625, 0.03887939453125, -0.03826904296875, -0.022308349609375, -0.01378631591796875, -0.01068878173828125, 0.040618896484375, -0.01276397705078125, -0.040191650390625, 0.005054473876953125, -0.01380157470703125, -0.019927978515625, 0.056060791015625, -0.0293731689453125, 0.008392333984375, 0.004108428955078125, -0.01336669921875, 0.0169830322265625, -0.0244598388671875, -0.0167083740234375, -0.019317626953125, -0.0016241073608398438, -0.01358795166015625, -0.00597381591796875, 0.017364501953125, 0.02728271484375, -0.0445556640625, 0.031158447265625, -0.002819061279296875, 0.0207977294921875, 0.032379150390625, -0.01004791259765625, 0.01629638671875, 0.0168304443359375, -0.0106964111328125, -0.0257720947265625, 0.02362060546875, -0.022308349609375, -0.0082550048828125, 0.0083160400390625, 0.013031005859375, -0.004344940185546875, -0.0027923583984375, 0.0236663818359375, 0.012969970703125, -0.0202789306640625, 0.0082550048828125, 0.0069580078125, 0.007778167724609375, -0.029571533203125, -0.037994384765625, 0.0008778572082519531, 0.027923583984375, -0.0477294921875, -0.01323699951171875, -0.039215087890625, 0.004528045654296875, 0.05438232421875, -0.0484619140625, 0.045623779296875, 0.0286712646484375, -0.018310546875, -0.017425537109375, 0.00229644775390625, -0.00020682811737060547, 0.0015277862548828125, 0.00018143653869628906, -0.01407623291015625, 0.0230712890625, 0.0160064697265625, 0.019500732421875, -0.01422119140625, -0.017791748046875, 0.025115966796875, 0.00444793701171875, 0.048370361328125, -0.00943756103515625, -0.1068115234375, 0.037139892578125, -0.048919677734375, 0.01885986328125, -0.039764404296875, -0.0587158203125, -0.0517578125, -0.02801513671875, 0.008941650390625, 0.00832366943359375, -0.00006914138793945312, -0.036224365234375, -0.0164794921875, -0.0018777847290039062, 0.03179931640625, -0.0335693359375, -0.01139068603515625, 0.03839111328125, 0.002994537353515625, 0.035614013671875, 0.004734039306640625, -0.00467681884765625, -0.0110931396484375, -0.022125244140625, -0.00830078125, -0.09088134765625, -0.0311279296875, 0.01229095458984375, -0.056060791015625, 0.07855224609375, 0.04217529296875, 0.00611114501953125, 0.004253387451171875, -0.003673553466796875, -0.0009860992431640625, -0.0246429443359375, -0.0267486572265625, -0.0166015625, 0.0125274658203125, -0.0263214111328125, 0.01157379150390625, 0.027252197265625, -0.041778564453125, -0.0258941650390625, 0.00701141357421875, 0.00428009033203125, 0.0000019669532775878906, 0.0192413330078125, -0.0286102294921875, 0.042236328125, 0.08172607421875, 0.024658203125, 0.05792236328125, 0.034027099609375, 0.02337646484375, 0.0091400146484375, 0.0162811279296875, 0.0081024169921875, -0.00907135009765625, 0.00940704345703125, -0.0167083740234375, -0.01306915283203125, 0.0014667510986328125, -0.023529052734375, -0.0227813720703125, 0.06988525390625, 0.03753662109375, -0.08447265625, -0.01337432861328125, 0.00806427001953125, 0.006317138671875, -0.0618896484375, 0.02044677734375, -0.01800537109375, -0.011199951171875, 0.017425537109375, -0.0125579833984375, -0.01087188720703125, 0.012237548828125, 0.01003265380859375, 0.0014657974243164062, 0.005191802978515625, 0.06549072265625, 0.0163726806640625, -0.045806884765625, -0.016357421875, 0.0272064208984375, -0.001216888427734375, -0.049285888671875, 0.0024890899658203125, 0.0423583984375, -0.03070068359375, -0.04766845703125, 0.054901123046875, 0.033477783203125, 0.006511688232421875, -0.040771484375, -0.03472900390625, 0.0231781005859375, 0.04205322265625, -0.03717041015625, -0.0082550048828125, 0.043548583984375, -0.07958984375, 0.0662841796875, 0.01763916015625, 0.00757598876953125, 0.0184326171875, -0.00726318359375, -0.017486572265625, -0.0136260986328125, 0.0146026611328125, -0.0135650634765625, -0.0279388427734375, 0.058380126953125, -0.031463623046875, -0.002445220947265625, 0.036163330078125, 0.0247344970703125, -0.02215576171875, -0.0169830322265625, 0.01129913330078125, -0.0248870849609375, 0.0028095245361328125, -0.01090240478515625, -0.0256500244140625, 0.010986328125, -0.033203125, -0.0689697265625, 0.040771484375, -0.02093505859375, 0.0574951171875, -0.0006952285766601562, 0.00537109375, 0.0188140869140625, -0.01111602783203125, -0.039459228515625, 0.057159423828125, 0.024566650390625, 0.046478271484375, -0.0455322265625, -0.01233673095703125, 0.0160064697265625, 0.046173095703125, 0.056365966796875, 0.01073455810546875, -0.0299530029296875, -0.00626373291015625, 0.0264434814453125, 0.0302734375, -0.0092010498046875, 0.044189453125, -0.020050048828125, 0.038238525390625, 0.0179290771484375, -0.040740966796875, 0.0181427001953125, -0.00769805908203125, -0.0247955322265625, 0.002979278564453125, -0.0009632110595703125, -0.0049285888671875, 0.00695037841796875, 0.00020039081573486328, -0.05072021484375, 0.000652313232421875, 0.030731201171875, -0.02783203125, 0.0079345703125, 0.0287933349609375, 0.0478515625, -0.0911865234375, -0.00524139404296875, -0.041290283203125, 0.07171630859375, 0.017333984375, 0.0177459716796875, 0.0343017578125, 0.012725830078125, 0.060394287109375, 0.005084991455078125, 0.00832366943359375, 0.006824493408203125, 0.0006799697875976562, 0.04620361328125, 0.0389404296875, 0.0307769775390625, -0.016571044921875, -0.019622802734375, 0.0299072265625, 0.053802490234375, -0.032379150390625, -0.048828125, -0.006153106689453125, -0.0011301040649414062, 0.03338623046875, 0.0115966796875, 0.032135009765625, 0.0111083984375, 0.0369873046875, -0.02691650390625, 0.023712158203125, 0.032745361328125, 0.0192718505859375, 0.0031604766845703125, 0.0440673828125, -0.049835205078125, 0.0117034912109375, -0.04345703125, -0.01214599609375, 0.0214385986328125, 0.0838623046875, 0.04693603515625, 0.042999267578125, -0.0518798828125, -0.048309326171875, -0.01229095458984375, 0.022857666015625, -0.04559326171875, 0.02105712890625, -0.05987548828125, -0.07794189453125, 0.007076263427734375, 0.0587158203125, 0.004169464111328125, 0.0007600784301757812, 0.0379638671875, 0.056732177734375, -0.0228729248046875, -0.01479339599609375, 0.044342041015625, -0.00904083251953125, 0.0316162109375, -0.0308074951171875, 0.004985809326171875, 0.0156402587890625, -0.01490020751953125, -0.0159454345703125, -0.029449462890625, 0.061553955078125, -0.01418304443359375, 0.01044464111328125, 0.002166748046875, -0.03399658203125, 0.047332763671875, -0.021392822265625, 0.036102294921875, -0.0127105712890625, -0.0609130859375, 0.0256195068359375, -0.06182861328125, -0.0780029296875, 0.0215301513671875, 0.039642333984375, -0.03619384765625, 0.0231475830078125, 0.069091796875, -0.047698974609375, 0.017303466796875, 0.0183563232421875, 0.0036525726318359375, -0.0198211669921875, 0.01398468017578125, -0.01280975341796875, -0.0210113525390625, -0.0025730133056640625, -0.007625579833984375, 0.04705810546875, 0.0248870849609375, 0.0997314453125, -0.0289306640625, 0.01983642578125, -0.0029296875, 0.00803375244140625, -0.018402099609375, -0.005889892578125, 0.0108795166015625, -0.004413604736328125, 0.005035400390625, -0.0118865966796875, -0.004985809326171875, -0.0240936279296875, 0.017059326171875, -0.060150146484375, -0.01215362548828125, -0.047760009765625, 0.015625, 0.003139495849609375, 0.0161590576171875, -0.0307769775390625, -0.044921875, -0.0694580078125, -0.025634765625, 0.038543701171875, 0.060272216796875, 0.01983642578125, 0.006099700927734375, -0.033966064453125, 0.01568603515625, -0.0029449462890625, 0.023193359375, -0.0212860107421875, 0.029022216796875, -0.07635498046875, -0.0022830963134765625, 0.05291748046875, 0.002277374267578125, 0.0108489990234375, 0.0212554931640625, 0.015899658203125, 0.034027099609375, -0.034698486328125, -0.005786895751953125, 0.0277557373046875, 0.0406494140625, -0.0100555419921875, 0.028900146484375, 0.013397216796875, 0.0012636184692382812, -0.0013303756713867188, -0.00862884521484375, -0.0301055908203125, -0.0011768341064453125, -0.02606201171875, 0.0006165504455566406, 0.0071868896484375, -0.08709716796875, -0.0328369140625, -0.0207061767578125, 0.044586181640625, 0.0113983154296875, -0.047149658203125, 0.0225830078125, -0.022857666015625, 0.042205810546875, -0.00922393798828125, 0.044525146484375, -0.03680419921875, -0.0309600830078125, -0.05084228515625, 0.0036773681640625, -0.044219970703125, 0.0247955322265625, -0.004077911376953125, 0.0224609375, 0.051300048828125, -0.031341552734375, -0.042083740234375, 0.0155792236328125, 0.015899658203125, 0.0635986328125, 0.0026531219482421875, 0.015167236328125, 0.0175628662109375, 0.00539398193359375, -0.058319091796875, -0.00982666015625, 0.017242431640625, 0.032745361328125, -0.0350341796875, 0.038787841796875, -0.031219482421875, 0.003101348876953125, -0.03265380859375, -0.05340576171875, 0.054046630859375, 0.008148193359375, -0.0295867919921875, -0.04010009765625, -0.0056610107421875, -0.0161590576171875, 0.019317626953125, -0.016632080078125, -0.0152740478515625, -0.02880859375, 0.038482666015625, 0.0269622802734375, 0.0008935928344726562, 0.00432586669921875, 0.006816864013671875, -0.025482177734375, 0.0361328125, 0.0281524658203125, 0.0110321044921875, -0.0116119384765625, 0.01422882080078125, 0.019317626953125, 0.0256805419921875, -0.03857421875, 0.041717529296875, 0.0187530517578125, 0.0236663818359375, 0.0166015625, -0.07342529296875, -0.0616455078125, -0.07769775390625, 0.051055908203125, 0.006107330322265625, 0.0162200927734375, 0.0185089111328125, -0.034271240234375, -0.0361328125, -0.0146331787109375, -0.010833740234375, 0.021270751953125, -0.0670166015625, 0.0186767578125, 0.00018525123596191406, -0.007259368896484375, 0.025054931640625, -0.00611114501953125, -0.034210205078125, -0.0034027099609375, 0.00460052490234375, 0.01983642578125, -0.0731201171875, -0.015716552734375, -0.0079498291015625, -0.01800537109375, -0.028350830078125, 0.01000213623046875, 0.0185546875, -0.0440673828125, 0.0207977294921875, -0.01242828369140625, 0.005462646484375, -0.019378662109375, -0.0009365081787109375, 0.01140594482421875, 0.0216064453125, 0.01018524169921875, -0.0188140869140625, -0.04827880859375, 0.0281982421875, 0.0272979736328125, 0.032867431640625, -0.02783203125, 0.0022144317626953125, 0.047760009765625, 0.027435302734375, 0.01102447509765625, 0.004268646240234375, -0.0074005126953125, 0.040618896484375, 0.0004489421844482422, -0.037994384765625, 0.031585693359375, -0.055755615234375, -0.00830841064453125, 0.018463134765625, -0.0086669921875, -0.048095703125, 0.00458526611328125, -0.04638671875, 0.015716552734375, 0.01148223876953125 ]
bed7c8c15a21761eca33eeac72b532100c6f76c2
Wordpress Stackexchange Q: Custom Post type - how to get checkbox to update meta field to null I have 7 meta fields for a custom post type in Wordpress. These 7 in particular are days of the week (Sunday thru Saturday) and have checkboxes for each. I've successfully gotten the checkbox to POST when the value is "On", however when I return to the edit page and try to deselect, the value stays the same in the database. Here is what I have for each item input: <li><input type="checkbox" name="sunday" <?php if( $meta_sunday == true ) { ?>checked="checked"<?php } ?>" /> Sunday<br /></li> And my update lines: if(!isset($_POST["sunday"])): return $post; endif; update_post_meta($post->ID, "sunday", $_POST["sunday"] ); A: It appears the post meta is not being cleared for 'sunday' when the checkbox is unchecked. If( isset($_POST['sunday']) ){ update_post_meta($post->ID, "sunday", $_POST["sunday"] ); }else{ delete_post_meta($post->ID, "sunday"); } return $post; Or you can set the value to false If( isset($_POST['sunday']) ){ update_post_meta($post->ID, "sunday", true ); }else{ update_post_meta($post->ID, "sunday", false ); } return $post;
Q: Custom Post type - how to get checkbox to update meta field to null I have 7 meta fields for a custom post type in Wordpress. These 7 in particular are days of the week (Sunday thru Saturday) and have checkboxes for each. I've successfully gotten the checkbox to POST when the value is "On", however when I return to the edit page and try to deselect, the value stays the same in the database. Here is what I have for each item input: <li><input type="checkbox" name="sunday" <?php if( $meta_sunday == true ) { ?>checked="checked"<?php } ?>" /> Sunday<br /></li> And my update lines: if(!isset($_POST["sunday"])): return $post; endif; update_post_meta($post->ID, "sunday", $_POST["sunday"] ); A: It appears the post meta is not being cleared for 'sunday' when the checkbox is unchecked. If( isset($_POST['sunday']) ){ update_post_meta($post->ID, "sunday", $_POST["sunday"] ); }else{ delete_post_meta($post->ID, "sunday"); } return $post; Or you can set the value to false If( isset($_POST['sunday']) ){ update_post_meta($post->ID, "sunday", true ); }else{ update_post_meta($post->ID, "sunday", false ); } return $post; A: Unchecked checkboxes are not set in the $_POST, so you'd have to empty their meta field. Something like this should work : $sunday = ( isset( $_POST['sunday'] ) ) ? $_POST['sunday'] : ""; update_post_meta( $post->ID, 'sunday', $sunday ); A: Unchecked checkboxes are not set in the $_POST, they are set in $_REQUEST, you can set checkbox value of custom post type like this: if ( isset( $_REQUEST['inprint'] ) ) { update_post_meta($post_id, '_inprint', TRUE); } else { update_post_meta($post_id, '_inprint', FALSE); } and get checkbox value like this: global $post; $inprint= get_post_meta($post->ID, '_inprint', true); <input type="checkbox" name="inprint" value='1'<?php checked(1, $inprint); ?> />
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:416882", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41517" }
[ 0.0307769775390625, 0.0020618438720703125, -0.00885772705078125, -0.014251708984375, -0.0011529922485351562, -0.019866943359375, -0.01078033447265625, -0.05279541015625, -0.0001876354217529297, 0.021759033203125, -0.001117706298828125, -0.045654296875, -0.001682281494140625, -0.036346435546875, -0.043701171875, -0.0396728515625, 0.0294189453125, -0.0026092529296875, 0.030792236328125, -0.0226593017578125, -0.0086212158203125, -0.01052093505859375, 0.03369140625, 0.0126495361328125, 0.035888671875, -0.0484619140625, -0.0306854248046875, -0.02960205078125, 0.007740020751953125, -0.01898193359375, 0.0167083740234375, 0.04071044921875, 0.0200653076171875, 0.004497528076171875, -0.008880615234375, -0.0184783935546875, 0.0017442703247070312, 0.0027141571044921875, -0.01421356201171875, 0.04656982421875, 0.01100921630859375, -0.004009246826171875, -0.0211181640625, -0.0203399658203125, -0.01898193359375, -0.0467529296875, 0.014984130859375, -0.025238037109375, 0.0211944580078125, 0.0079498291015625, -0.00867462158203125, 0.0022640228271484375, 0.01373291015625, -0.019500732421875, -0.0160369873046875, -0.0341796875, -0.0018396377563476562, -0.0201416015625, 0.0526123046875, 0.03680419921875, -0.0226593017578125, -0.04638671875, 0.006450653076171875, -0.08221435546875, 0.005405426025390625, -0.00722503662109375, 0.0026187896728515625, 0.0249176025390625, -0.11370849609375, -0.0008873939514160156, 0.06524658203125, -0.07000732421875, 0.0157318115234375, -0.035430908203125, 0.0099639892578125, -0.034332275390625, -0.00505828857421875, -0.05426025390625, 0.00963592529296875, -0.00919342041015625, 0.033294677734375, -0.007167816162109375, -0.0236968994140625, 0.0182952880859375, 0.008270263671875, 0.037322998046875, -0.0204010009765625, -0.0238189697265625, 0.0005435943603515625, -0.0565185546875, -0.005901336669921875, 0.004779815673828125, -0.039886474609375, -0.030517578125, -0.009490966796875, -0.062469482421875, 0.046112060546875, 0.053680419921875, -0.0367431640625, -0.05078125, -0.001007080078125, -0.020233154296875, -0.0367431640625, -0.00566864013671875, -0.0086517333984375, 0.0156707763671875, -0.0018644332885742188, -0.0032958984375, 0.033294677734375, 0.040313720703125, 0.01318359375, 0.008880615234375, -0.017608642578125, 0.0199127197265625, -0.04840087890625, 0.00243377685546875, -0.0308837890625, -0.0215606689453125, -0.03106689453125, 0.0018072128295898438, 0.0198822021484375, 0.032806396484375, -0.016357421875, -0.074951171875, 0.025299072265625, -0.0277862548828125, -0.048828125, 0.01024627685546875, -0.0236968994140625, 0.01479339599609375, -0.0789794921875, 0.016143798828125, 0.1444091796875, 0.0283660888671875, 0.034088134765625, -0.03509521484375, 0.0021610260009765625, -0.0400390625, -0.030364990234375, 0.0438232421875, -0.027557373046875, -0.0546875, 0.0238037109375, -0.0139617919921875, -0.006378173828125, 0.0452880859375, 0.029296875, -0.020416259765625, -0.0257110595703125, -0.040740966796875, -0.0328369140625, -0.02264404296875, 0.031707763671875, 0.0012750625610351562, -0.03570556640625, -0.01450347900390625, 0.0278167724609375, -0.03192138671875, -0.0077362060546875, -0.0537109375, 0.039642333984375, 0.00853729248046875, 0.0361328125, -0.041748046875, -0.053955078125, -0.018035888671875, -0.11016845703125, -0.0267486572265625, 0.0203094482421875, 0.0150909423828125, 0.01143646240234375, 0.01369476318359375, -0.004062652587890625, -0.00518035888671875, -0.005527496337890625, 0.0002396106719970703, 0.0101776123046875, -0.0103912353515625, 0.0276031494140625, 0.0008459091186523438, -0.023223876953125, -0.0169525146484375, 0.018829345703125, -0.002735137939453125, -0.06304931640625, 0.01256561279296875, 0.00014781951904296875, 0.0148468017578125, 0.0229034423828125, -0.004024505615234375, 0.06915283203125, 0.0264434814453125, -0.0109100341796875, 0.041961669921875, -0.0020084381103515625, -0.00821685791015625, -0.0294036865234375, 0.0199127197265625, -0.0136566162109375, -0.055877685546875, 0.0175323486328125, 0.02764892578125, -0.004314422607421875, 0.024810791015625, -0.048492431640625, 0.023345947265625, -0.031646728515625, 0.04522705078125, -0.0279693603515625, 0.0292205810546875, 0.037750244140625, -0.004322052001953125, -0.0335693359375, 0.037506103515625, 0.0181427001953125, 0.030487060546875, 0.0012559890747070312, 0.0479736328125, -0.00847625732421875, 0.0260162353515625, -0.0009946823120117188, -0.0301055908203125, -0.004520416259765625, 0.00197601318359375, 0.035797119140625, -0.00397491455078125, 0.0016546249389648438, -0.021881103515625, 0.040130615234375, 0.02252197265625, -0.0217132568359375, 0.0016393661499023438, 0.0333251953125, -0.037109375, -0.04901123046875, 0.0252532958984375, 0.01541900634765625, -0.08184814453125, -0.02069091796875, 0.0714111328125, 0.0038433074951171875, 0.0156707763671875, -0.0147552490234375, 0.03814697265625, 0.00988006591796875, -0.02734375, 0.00353240966796875, 0.01328277587890625, -0.007602691650390625, 0.00414276123046875, -0.01409149169921875, -0.021728515625, 0.0248260498046875, -0.051055908203125, -0.007282257080078125, 0.035125732421875, -0.015716552734375, -0.023193359375, 0.040069580078125, -0.032928466796875, 0.0025997161865234375, -0.0394287109375, -0.035919189453125, -0.0114898681640625, 0.07904052734375, 0.0023670196533203125, 0.056182861328125, 0.04595947265625, -0.032196044921875, 0.0119171142578125, 0.01074981689453125, -0.017242431640625, 0.00290679931640625, 0.0209503173828125, -0.0130767822265625, 0.01392364501953125, -0.060791015625, 0.0220184326171875, 0.037933349609375, 0.0165557861328125, -0.01250457763671875, -0.003391265869140625, -0.00522613525390625, -0.01264190673828125, 0.0306243896484375, -0.0167083740234375, 0.01409149169921875, -0.01239013671875, -0.00801849365234375, -0.0184326171875, 0.01432037353515625, 0.0062255859375, -0.03271484375, 0.0202484130859375, 0.031524658203125, -0.03717041015625, 0.0279998779296875, -0.01192474365234375, 0.035369873046875, -0.014068603515625, 0.005054473876953125, 0.04644775390625, -0.006603240966796875, 0.01438140869140625, -0.013214111328125, 0.04888916015625, -0.0077667236328125, 0.0229949951171875, -0.00901031494140625, -0.0452880859375, -0.00153350830078125, -0.01395416259765625, 0.0340576171875, 0.05267333984375, 0.01483154296875, -0.021331787109375, 0.016510009765625, 0.051055908203125, -0.04815673828125, -0.0751953125, -0.013092041015625, -0.01515960693359375, -0.006923675537109375, -0.01242828369140625, 0.003673553466796875, -0.0011529922485351562, -0.0173492431640625, 0.0029430389404296875, -0.0205230712890625, 0.025970458984375, -0.00698089599609375, -0.01270294189453125, -0.0177764892578125, -0.024627685546875, -0.00472259521484375, 0.0011281967163085938, -0.0113067626953125, 0.08843994140625, 0.0027313232421875, -0.058441162109375, -0.037353515625, 0.0288848876953125, -0.0144195556640625, -0.0158538818359375, 0.038970947265625, -0.02191162109375, 0.01198577880859375, -0.0024433135986328125, -0.00955963134765625, 0.022613525390625, -0.0283203125, -0.0282135009765625, -0.022918701171875, 0.00782012939453125, 0.017242431640625, -0.035858154296875, 0.01308441162109375, 0.060821533203125, 0.0217742919921875, 0.0060272216796875, -0.00537872314453125, -0.0253753662109375, -0.03363037109375, -0.00661468505859375, 0.007488250732421875, 0.0210723876953125, -0.02099609375, 0.034393310546875, 0.0085296630859375, 0.02264404296875, 0.053436279296875, -0.02020263671875, 0.03271484375, -0.013946533203125, -0.0037994384765625, -0.05926513671875, -0.01546478271484375, -0.0154266357421875, 0.04119873046875, -0.013641357421875, 0.0119476318359375, -0.0178680419921875, 0.0107879638671875, -0.054473876953125, -0.00909423828125, 0.0283660888671875, -0.045379638671875, 0.029022216796875, -0.046539306640625, -0.01552581787109375, -0.031646728515625, 0.060150146484375, -0.0164642333984375, -0.0181732177734375, -0.020294189453125, 0.00469970703125, -0.0266876220703125, -0.05877685546875, 0.007801055908203125, 0.0064697265625, -0.11053466796875, 0.0104827880859375, 0.033203125, -0.060028076171875, 0.0016336441040039062, 0.026123046875, -0.08526611328125, -0.031097412109375, 0.04681396484375, -0.03497314453125, -0.0025691986083984375, 0.0201873779296875, 0.0340576171875, -0.055694580078125, -0.024383544921875, -0.00844573974609375, -0.0731201171875, -0.018280029296875, 0.034881591796875, 0.040679931640625, -0.0227813720703125, 0.019134521484375, -0.0088043212890625, 0.055877685546875, 0.007396697998046875, 0.01238250732421875, 0.0003724098205566406, -0.00022995471954345703, 0.0010166168212890625, -0.01012420654296875, -0.00934600830078125, -0.01519012451171875, -0.0059051513671875, 0.033233642578125, -0.00469970703125, -0.0002727508544921875, -0.0262603759765625, -0.06414794921875, 0.032958984375, -0.042999267578125, 0.0101318359375, -0.02001953125, -0.0219573974609375, 0.017578125, -0.0251312255859375, 0.0028514862060546875, -0.02783203125, -0.007770538330078125, 0.058074951171875, 0.003936767578125, 0.0206298828125, -0.0036945343017578125, 0.08819580078125, 0.013702392578125, -0.02545166015625, -0.043548583984375, 0.00055694580078125, 0.046112060546875, 0.00580596923828125, 0.0153656005859375, 0.025543212890625, -0.01934814453125, 0.0404052734375, 0.022003173828125, -0.004550933837890625, -0.063232421875, 0.0997314453125, -0.01641845703125, -0.007610321044921875, 0.0164794921875, -0.05487060546875, 0.049163818359375, 0.03485107421875, -0.01007080078125, -0.0218505859375, -0.00731658935546875, 0.045013427734375, -0.009918212890625, -0.01532745361328125, -0.051025390625, 0.0020618438720703125, -0.009796142578125, 0.008056640625, 0.03277587890625, 0.04827880859375, -0.01291656494140625, 0.017333984375, 0.0192413330078125, 0.00824737548828125, -0.042083740234375, 0.00244903564453125, -0.0178680419921875, 0.0238800048828125, 0.0205078125, 0.0226898193359375, -0.04803466796875, 0.015411376953125, 0.0036144256591796875, 0.005168914794921875, -0.03900146484375, -0.025665283203125, 0.013702392578125, 0.01317596435546875, 0.01235198974609375, 0.005962371826171875, 0.036285400390625, 0.004695892333984375, -0.0273284912109375, 0.00638580322265625, -0.013427734375, 0.00696563720703125, -0.05621337890625, -0.0169525146484375, 0.0297393798828125, -0.02117919921875, -0.0183563232421875, 0.05511474609375, 0.038177490234375, -0.01080322265625, -0.03533935546875, 0.059814453125, 0.042724609375, 0.045928955078125, 0.025146484375, -0.0144805908203125, -0.00861358642578125, 0.007080078125, -0.041412353515625, -0.043304443359375, -0.0268402099609375, 0.0455322265625, 0.0200347900390625, 0.0248870849609375, 0.01947021484375, -0.01128387451171875, 0.031280517578125, -0.0133056640625, 0.00986480712890625, -0.0020275115966796875, -0.034210205078125, 0.00670623779296875, -0.0196380615234375, -0.02447509765625, -0.00452423095703125, -0.00989532470703125, -0.001132965087890625, -0.00360870361328125, 0.051544189453125, -0.0197296142578125, 0.001018524169921875, -0.00031304359436035156, -0.0063934326171875, -0.025787353515625, 0.0054473876953125, 0.0185546875, -0.030731201171875, -0.0372314453125, 0.002002716064453125, -0.0258026123046875, 0.0131378173828125, -0.011871337890625, 0.00799560546875, -0.05169677734375, 0.0210418701171875, -0.002643585205078125, -0.0190887451171875, 0.08856201171875, 0.02203369140625, -0.006427764892578125, 0.004062652587890625, -0.021942138671875, -0.00872802734375, -0.034423828125, -0.043914794921875, -0.02117919921875, -0.0016775131225585938, 0.006290435791015625, 0.03564453125, -0.036102294921875, -0.060791015625, -0.0026836395263671875, -0.019256591796875, 0.015411376953125, 0.060546875, -0.0008482933044433594, 0.049835205078125, 0.0010051727294921875, 0.042694091796875, 0.0260162353515625, 0.0215301513671875, -0.0163726806640625, -0.024749755859375, -0.00933837890625, -0.0626220703125, -0.005298614501953125, 0.01425933837890625, -0.008514404296875, 0.01317596435546875, -0.01059722900390625, 0.0008530616760253906, -0.02215576171875, 0.005565643310546875, -0.0004105567932128906, -0.0273590087890625, 0.033935546875, 0.019805908203125, 0.01055145263671875, -0.01302337646484375, -0.037261962890625, -0.0433349609375, 0.056610107421875, 0.0303955078125, -0.006916046142578125, -0.0050506591796875, -0.0129547119140625, -0.0034198760986328125, -0.0599365234375, 0.07562255859375, 0.08770751953125, 0.02813720703125, 0.059967041015625, 0.01702880859375, 0.026397705078125, 0.023162841796875, 0.003391265869140625, -0.00010848045349121094, 0.0192413330078125, 0.035125732421875, -0.022369384765625, -0.0091552734375, 0.009124755859375, -0.0146026611328125, 0.0179443359375, 0.040435791015625, 0.08062744140625, -0.0723876953125, 0.014404296875, 0.04803466796875, -0.025238037109375, -0.0213470458984375, 0.003307342529296875, -0.00046324729919433594, 0.0018491744995117188, 0.005207061767578125, -0.01265716552734375, -0.0290374755859375, 0.00514984130859375, 0.01013946533203125, 0.0011272430419921875, -0.003299713134765625, 0.040130615234375, 0.0010805130004882812, -0.047637939453125, 0.00720977783203125, 0.018798828125, 0.00353240966796875, 0.00939178466796875, 0.0174102783203125, -0.00403594970703125, -0.029205322265625, -0.08013916015625, -0.0235748291015625, -0.0111541748046875, -0.057373046875, 0.04754638671875, 0.03472900390625, 0.047271728515625, 0.056549072265625, 0.008697509765625, 0.017913818359375, 0.0087738037109375, 0.00644683837890625, -0.061065673828125, -0.042877197265625, 0.025634765625, 0.032928466796875, -0.005062103271484375, 0.0323486328125, 0.0072479248046875, -0.06341552734375, -0.0090789794921875, -0.00315093994140625, 0.05535888671875, -0.0097503662109375, -0.0294952392578125, 0.0189208984375, 0.01190185546875, -0.0063018798828125, 0.0372314453125, 0.0216064453125, -0.05963134765625, -0.0513916015625, 0.0267333984375, -0.07696533203125, -0.059661865234375, 0.01007843017578125, -0.0672607421875, 0.10076904296875, 0.034210205078125, -0.005657196044921875, -0.00665283203125, 0.049163818359375, -0.058990478515625, -0.0002753734588623047, -0.032684326171875, 0.00946807861328125, 0.012359619140625, -0.00930023193359375, -0.058349609375, -0.024749755859375, -0.03619384765625, 0.0325927734375, 0.0185546875, -0.0003266334533691406, -0.00838470458984375, -0.0019931793212890625, 0.050140380859375, 0.04327392578125, 0.012786865234375, 0.00774383544921875, -0.015472412109375, 0.023162841796875, 0.050506591796875, -0.04937744140625, 0.0220794677734375, 0.0012941360473632812, -0.0087738037109375, -0.00879669189453125, 0.025848388671875, 0.00948333740234375, 0.00691986083984375, -0.01016998291015625, -0.0131378173828125, 0.0037250518798828125, 0.006626129150390625, -0.00005441904067993164, -0.003673553466796875, 0.039398193359375, 0.026885986328125, -0.01983642578125, -0.001430511474609375, -0.0090484619140625, 0.03802490234375, 0.006053924560546875, 0.00504302978515625, 0.032379150390625, 0.0282440185546875, 0.052490234375, -0.0343017578125, -0.003383636474609375, 0.00321197509765625, -0.0260162353515625, 0.05029296875, 0.00797271728515625, -0.01125335693359375, -0.033660888671875, 0.09405517578125, 0.03131103515625, 0.035980224609375, -0.07830810546875, -0.0245513916015625, 0.0003910064697265625, -0.0108489990234375, 0.0030422210693359375, -0.021728515625, 0.036224365234375, -0.01267242431640625, -0.021881103515625, -0.0472412109375, 0.045989990234375, 0.03369140625, 0.00666046142578125, -0.0026092529296875, 0.0260009765625, -0.060028076171875, 0.034637451171875, -0.0675048828125, 0.019073486328125, 0.0168304443359375, 0.048492431640625, 0.03607177734375, 0.022735595703125, 0.044403076171875, -0.008514404296875, 0.01788330078125, 0.03790283203125, 0.01317596435546875, -0.02630615234375, -0.00388336181640625, -0.053802490234375, 0.0008912086486816406, 0.0273590087890625, -0.0157623291015625, 0.0665283203125, 0.046630859375, 0.044219970703125, -0.005970001220703125, -0.0011434555053710938, 0.05120849609375, -0.020751953125, -0.0648193359375, -0.0216827392578125, 0.0012865066528320312, 0.03424072265625, 0.01143646240234375, 0.0105743408203125, 0.0245513916015625, 0.0148773193359375, 0.020233154296875, 0.0205535888671875, 0.01531219482421875, 0.007762908935546875, 0.038543701171875, 0.01313018798828125, 0.002758026123046875, 0.035430908203125, -0.0251007080078125, 0.0121307373046875, -0.0168609619140625, -0.07232666015625, 0.01157379150390625, 0.027984619140625, -0.03369140625, 0.03448486328125, 0.02313232421875, -0.00611114501953125, 0.03729248046875, 0.0277862548828125, -0.0231781005859375, 0.06298828125, 0.058074951171875, 0.0206451416015625, -0.0738525390625, -0.030914306640625, -0.015625, 0.011505126953125, -0.051116943359375, 0.036346435546875, 0.007762908935546875, -0.006134033203125, -0.0184478759765625, 0.0207977294921875, -0.0362548828125, -0.0263671875, 0.04254150390625, -0.0017423629760742188, 0.005214691162109375, -0.00005608797073364258, -0.0102386474609375, -0.0229644775390625, 0.049102783203125, -0.039154052734375, 0.0052032470703125, -0.01439666748046875, 0.0266876220703125, -0.03375244140625, -0.00777435302734375, -0.03338623046875, -0.03057861328125, -0.03863525390625, -0.013885498046875, 0.0211944580078125, 0.027435302734375, 0.012481689453125, 0.022705078125, 0.04364013671875, 0.018463134765625, 0.028228759765625, -0.0147857666015625, 0.048248291015625, 0.041717529296875, -0.0160369873046875, -0.0101165771484375, -0.016204833984375, -0.0250701904296875, 0.0017547607421875, 0.01190948486328125, -0.0019626617431640625, -0.00795745849609375, -0.0054931640625, -0.00963592529296875, 0.046600341796875, 0.015838623046875, -0.0020275115966796875, 0.01361846923828125, 0.056854248046875, -0.045623779296875, -0.036529541015625, 0.0007920265197753906, 0.0064239501953125, -0.04949951171875, -0.0239105224609375, -0.0084228515625, -0.0254364013671875, -0.00931549072265625, 0.0253448486328125, 0.0083770751953125, 0.0027866363525390625, -0.00499725341796875, -0.033050537109375, -0.0014858245849609375, -0.016754150390625, 0.032501220703125, -0.027252197265625, -0.02191162109375, 0.0060882568359375, 0.05560302734375, 0.005619049072265625, 0.01812744140625, -0.032440185546875, -0.025543212890625, -0.0206146240234375, 0.0003597736358642578, 0.0083770751953125, -0.00360870361328125, -0.03326416015625, 0.0014190673828125, 0.0093536376953125, 0.033111572265625, 0.033447265625, -0.0240020751953125, 0.01088714599609375, 0.018280029296875, 0.0038394927978515625, -0.053192138671875, -0.0010547637939453125, -0.054168701171875, 0.0225830078125, -0.03936767578125, 0.0008597373962402344, -0.0022754669189453125, -0.052093505859375, -0.071533203125, 0.0487060546875, -0.016815185546875, -0.01983642578125, -0.00803375244140625, 0.0022525787353515625, -0.0000355839729309082, 0.0155792236328125, 0.004627227783203125, -0.03076171875, -0.031829833984375, -0.02032470703125, 0.021392822265625, 0.018341064453125, 0.036163330078125, 0.004299163818359375, -0.0587158203125, -0.026824951171875, -0.043426513671875, 0.0113525390625, -0.027191162109375, 0.02105712890625, -0.0111083984375, 0.0024013519287109375, -0.036895751953125, -0.033294677734375, 0.005268096923828125, 0.03082275390625, -0.00848388671875, -0.068359375, -0.041107177734375, -0.037322998046875, 0.0599365234375, 0.0212249755859375, 0.0222320556640625, -0.016876220703125, 0.00516510009765625, -0.0234527587890625, -0.055755615234375, -0.0252532958984375, 0.02239990234375, -0.060546875, -0.018768310546875, -0.00905609130859375, -0.00910186767578125, 0.015167236328125, -0.0013380050659179688, -0.02166748046875, -0.00005334615707397461, 0.0187835693359375, -0.003627777099609375, -0.029510498046875, 0.03265380859375, 0.01358795166015625, -0.01192474365234375, 0.03955078125, -0.02099609375, -0.01291656494140625, 0.034637451171875, 0.035003662109375, -0.007808685302734375, 0.01554107666015625, -0.020355224609375, -0.009521484375, 0.0072021484375, -0.00307464599609375, -0.0093994140625, 0.00635528564453125, -0.017822265625, -0.01129150390625, -0.0063323974609375, -0.0241851806640625, -0.0181884765625, -0.00494384765625, -0.005859375, 0.0418701171875, -0.01739501953125, 0.0207366943359375, -0.009735107421875, 0.0278778076171875, 0.0139617919921875, -0.009307861328125, 0.083740234375, -0.0648193359375, 0.01129150390625, -0.02294921875, -0.0254974365234375, -0.0239410400390625, -0.01413726806640625, -0.029388427734375, -0.0305328369140625, 0.00539398193359375 ]
86a667498027a82db218de7c0e6eb11202ca3b35
Wordpress Stackexchange Q: Active theme responds to theme change request to alert user I'm trying to intercept the install themes routine in order to alert the user from the active theme. I'm cobbling together a crude javascript alert below. What are some other options? if ( is_admin() && $pagenow == 'theme-install.php' && $_GET['tab']=="upload"){ ?> <script type="text/javascript"> alert('Message here'); </script> <?php } The reason for this is to make sure that the user is not attempting to install my theme's upgrader.zip upgrade file as a theme (which results in a broken theme). A: Late answer There're two (nearly unknown) hooks for this in core: * *Theme activation hook: 'after_switch_theme' *Theme de-activation hook: 'switch_theme'
Q: Active theme responds to theme change request to alert user I'm trying to intercept the install themes routine in order to alert the user from the active theme. I'm cobbling together a crude javascript alert below. What are some other options? if ( is_admin() && $pagenow == 'theme-install.php' && $_GET['tab']=="upload"){ ?> <script type="text/javascript"> alert('Message here'); </script> <?php } The reason for this is to make sure that the user is not attempting to install my theme's upgrader.zip upgrade file as a theme (which results in a broken theme). A: Late answer There're two (nearly unknown) hooks for this in core: * *Theme activation hook: 'after_switch_theme' *Theme de-activation hook: 'switch_theme' A: I'm usually a fan of doing this kind of work on the server-side since it's far too easy to circumvent JavaScript on the client-side with modern debugging tools, but this is a unique problem and this may fit your use case (depending on who your audience is). Using pure JavaScript, you can do this: * *Create a JavaScript file in the root of your theme directory and name it "upload.js" *Add the following code to it (and be sure to read the comments): (function($) { $(function() { // Check to verify that we're on the "Install Themes" page var $upload = $('#install-theme-submit'); if($upload.length > 0) { // Watch for the user to click on the upload button $upload.click(function(evt) { // When they do, get the name of the file they've uploaded var sFilePath = $('input[type=file]').val(); var aFilePath = sFilePath.split('\\'); sFilePath = aFilePath[aFilePath.length - 1]; // If it's equal to updated, let them know: if(sFilePath.toLowerCase() === 'upgrader.zip') { // Create a WordPress-style notification and add it to the screen $('h4').before( $('<div />') .append( $('<p />') .text("Do not upload this file.") ).attr('class', 'updated') ); // Stop the upload evt.preventDefault(); } // end if }); } // end if }); })(jQuery); *Add the following to your theme's functions.php. This will load the script into your theme: function custom_upload_script() { wp_register_script('admin-upload-script', get_template_directory_uri() . '/upload.js'); wp_enqueue_script('admin-upload-script'); } // end custom_upload_script add_action('admin_enqueue_scripts', 'custom_upload_script'); If you're looking to go pure server-side, there's no hook for managing the theme activation action; however, you may be able to take advantage of the switch_theme action. This is pure speculation but once the action fires you may be able to read some information from within the file then revert back to the previously used theme.
wordpress
{ "language": "en", "length": 395, "provenance": "stackexchange_00019.jsonl.gz:416898", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41565" }
[ 0.02777099609375, 0.0034160614013671875, 0.00943756103515625, -0.0089569091796875, 0.01412200927734375, -0.00897979736328125, 0.02178955078125, -0.0290374755859375, 0.0006809234619140625, 0.0233154296875, 0.0198516845703125, -0.00818634033203125, -0.00676727294921875, -0.042938232421875, 0.0031414031982421875, -0.0257568359375, 0.05316162109375, -0.02752685546875, 0.00673675537109375, -0.0012788772583007812, -0.022186279296875, 0.05584716796875, -0.00801849365234375, 0.07525634765625, 0.0093841552734375, 0.05450439453125, 0.059967041015625, -0.0335693359375, 0.0181121826171875, -0.01096343994140625, 0.016204833984375, -0.0513916015625, 0.0106353759765625, 0.048004150390625, -0.0341796875, 0.037933349609375, 0.0137481689453125, 0.016937255859375, 0.00862884521484375, 0.031982421875, 0.004520416259765625, 0.00824737548828125, 0.037750244140625, -0.009429931640625, 0.00879669189453125, -0.0731201171875, 0.03851318359375, -0.053924560546875, 0.02630615234375, -0.029144287109375, 0.0107879638671875, -0.00899505615234375, 0.0273895263671875, -0.049835205078125, -0.0159912109375, 0.022308349609375, -0.06341552734375, 0.0631103515625, 0.035400390625, 0.04986572265625, -0.01190185546875, -0.01494598388671875, -0.01285552978515625, -0.06671142578125, 0.03082275390625, -0.0032482147216796875, 0.015045166015625, 0.0279083251953125, -0.062347412109375, 0.0222015380859375, 0.051055908203125, -0.048583984375, -0.00464630126953125, -0.020294189453125, 0.01058197021484375, -0.03662109375, 0.0037479400634765625, -0.048492431640625, 0.00682830810546875, 0.0255584716796875, 0.00672149658203125, 0.037506103515625, 0.0047149658203125, -0.050994873046875, 0.0257415771484375, -0.023895263671875, -0.0094146728515625, -0.00853729248046875, -0.04425048828125, -0.0183868408203125, -0.0411376953125, -0.00860595703125, 0.00450897216796875, -0.03546142578125, -0.038543701171875, -0.00013756752014160156, 0.01209259033203125, 0.05694580078125, -0.01148223876953125, -0.0156707763671875, -0.03155517578125, -0.01224517822265625, -0.0322265625, -0.0265960693359375, -0.00405120849609375, 0.0423583984375, 0.02423095703125, -0.00984954833984375, -0.0010662078857421875, -0.00615692138671875, -0.01367950439453125, -0.002979278564453125, -0.03167724609375, 0.0193023681640625, -0.050445556640625, -0.01340484619140625, -0.0777587890625, -0.0052337646484375, -0.016632080078125, 0.00969696044921875, 0.0267791748046875, 0.0278167724609375, 0.006191253662109375, -0.0234222412109375, 0.00014400482177734375, 0.0011119842529296875, -0.050323486328125, -0.023162841796875, -0.0295257568359375, 0.0277557373046875, -0.0185089111328125, -0.006866455078125, 0.00457000732421875, 0.029632568359375, -0.005619049072265625, -0.017578125, 0.047210693359375, 0.0221099853515625, 0.019500732421875, -0.0225677490234375, 0.07025146484375, -0.035491943359375, -0.08135986328125, 0.054595947265625, 0.005558013916015625, 0.020904541015625, -0.00925445556640625, 0.003818511962890625, 0.0256195068359375, -0.0496826171875, 0.04547119140625, -0.0941162109375, 0.02044677734375, 0.0401611328125, -0.00457763671875, -0.0006351470947265625, 0.0426025390625, -0.0298004150390625, -0.0161895751953125, -0.036773681640625, -0.0228729248046875, -0.03094482421875, 0.006351470947265625, 0.02252197265625, -0.005641937255859375, 0.045379638671875, 0.0237274169921875, 0.005435943603515625, 0.0263519287109375, 0.02490234375, 0.0103759765625, -0.0236358642578125, 0.031890869140625, 0.00926971435546875, -0.0083770751953125, 0.0283203125, 0.0125885009765625, 0.00440216064453125, 0.057098388671875, -0.043701171875, -0.02606201171875, -0.01397705078125, 0.10260009765625, -0.041259765625, -0.0390625, 0.053924560546875, 0.0135955810546875, 0.050018310546875, -0.01654052734375, 0.005733489990234375, 0.023284912109375, 0.04327392578125, 0.031280517578125, 0.029693603515625, 0.0010175704956054688, -0.046295166015625, 0.002170562744140625, 0.0190887451171875, -0.0229034423828125, -0.049835205078125, 0.0254364013671875, 0.0057830810546875, -0.0005025863647460938, -0.0423583984375, -0.04541015625, -0.00978851318359375, -0.0185394287109375, 0.040802001953125, 0.01024627685546875, 0.007755279541015625, 0.005107879638671875, 0.00084686279296875, -0.01329803466796875, -0.0108642578125, -0.0213775634765625, 0.0157928466796875, -0.035797119140625, 0.032562255859375, -0.00916290283203125, 0.0491943359375, -0.02252197265625, -0.02716064453125, -0.0037403106689453125, -0.0233306884765625, -0.0087127685546875, 0.019287109375, -0.0262908935546875, 0.0169830322265625, -0.0142364501953125, 0.03668212890625, -0.002910614013671875, 0.003231048583984375, 0.0086517333984375, -0.0230712890625, -0.027862548828125, -0.00804901123046875, 0.0112152099609375, -0.10174560546875, 0.0182342529296875, 0.07305908203125, 0.017669677734375, 0.022491455078125, -0.024688720703125, -0.025054931640625, 0.06719970703125, 0.01131439208984375, 0.0156402587890625, -0.0161590576171875, -0.0106353759765625, 0.0411376953125, 0.019287109375, 0.0193328857421875, -0.0036373138427734375, -0.0253143310546875, -0.031280517578125, 0.033233642578125, -0.006587982177734375, -0.0119781494140625, -0.03533935546875, 0.0303955078125, -0.0050201416015625, -0.018890380859375, -0.004352569580078125, -0.02783203125, 0.02056884765625, -0.01421356201171875, 0.0126800537109375, -0.01081085205078125, -0.0125885009765625, -0.007801055908203125, 0.01074981689453125, -0.032135009765625, 0.00244140625, 0.058258056640625, 0.00875091552734375, 0.026123046875, -0.001190185546875, -0.0367431640625, -0.005336761474609375, 0.0225372314453125, -0.0347900390625, -0.016021728515625, -0.04718017578125, -0.011016845703125, 0.0199432373046875, -0.0391845703125, -0.00142669677734375, -0.013458251953125, -0.00008064508438110352, 0.00336456298828125, 0.0106964111328125, 0.033782958984375, -0.0274658203125, 0.04254150390625, -0.00270843505859375, -0.0123748779296875, 0.0188140869140625, -0.036285400390625, 0.03076171875, -0.0200958251953125, 0.057342529296875, 0.06353759765625, -0.0028858184814453125, 0.01151275634765625, -0.0029392242431640625, 0.00733184814453125, 0.00218963623046875, 0.0026645660400390625, -0.01038360595703125, 0.02642822265625, -0.057342529296875, 0.02325439453125, 0.0292816162109375, 0.0268402099609375, 0.00347900390625, -0.035736083984375, -0.012939453125, 0.01132965087890625, -0.056610107421875, -0.042266845703125, -0.04986572265625, -0.093017578125, 0.047821044921875, -0.033843994140625, -0.0212554931640625, -0.006916046142578125, 0.00013017654418945312, 0.0169525146484375, -0.0242767333984375, -0.013824462890625, -0.0506591796875, -0.0625, -0.057830810546875, 0.0227813720703125, -0.01378631591796875, 0.017578125, 0.0027370452880859375, 0.04998779296875, -0.0013275146484375, -0.056976318359375, -0.01079559326171875, 0.018707275390625, 0.004302978515625, 0.009124755859375, -0.01268768310546875, -0.01434326171875, 0.0004532337188720703, 0.01235198974609375, -0.03277587890625, -0.01116943359375, 0.0202484130859375, -0.0307769775390625, -0.01715087890625, -0.03228759765625, -0.0215301513671875, 0.029876708984375, 0.032806396484375, -0.04705810546875, -0.01110076904296875, -0.08123779296875, 0.02471923828125, -0.0010318756103515625, -0.0266876220703125, -0.01001739501953125, 0.002593994140625, -0.0218658447265625, 0.01491546630859375, -0.0345458984375, 0.0309906005859375, -0.0167083740234375, 0.00463104248046875, -0.005077362060546875, 0.056671142578125, -0.005519866943359375, 0.02880859375, -0.043182373046875, -0.020233154296875, -0.03717041015625, 0.055267333984375, -0.0093231201171875, -0.001575469970703125, -0.03021240234375, 0.01410675048828125, -0.0276336669921875, -0.04736328125, 0.028961181640625, -0.0234832763671875, 0.0018548965454101562, -0.0284576416015625, -0.0141143798828125, -0.0023956298828125, 0.0631103515625, -0.054229736328125, -0.00704193115234375, 0.00543212890625, 0.0061187744140625, -0.0300140380859375, -0.0215911865234375, -0.070068359375, 0.00945281982421875, -0.10919189453125, -0.0043792724609375, -0.01061248779296875, -0.03448486328125, -0.025604248046875, 0.01097869873046875, -0.06964111328125, -0.054473876953125, 0.044219970703125, -0.03387451171875, 0.0167236328125, 0.022003173828125, 0.0019092559814453125, -0.024444580078125, -0.01302337646484375, -0.022674560546875, -0.0823974609375, -0.020416259765625, -0.021514892578125, 0.051483154296875, 0.0152435302734375, -0.003437042236328125, -0.0360107421875, 0.0288848876953125, 0.006977081298828125, 0.03582763671875, -0.02581787109375, -0.0028839111328125, 0.00925445556640625, -0.0285491943359375, -0.0242156982421875, -0.00927734375, 0.01119232177734375, 0.00015079975128173828, -0.030975341796875, -0.0085296630859375, -0.03656005859375, -0.026824951171875, 0.0177154541015625, -0.044769287109375, -0.0499267578125, 0.01111602783203125, -0.006683349609375, 0.01502227783203125, -0.00446319580078125, -0.01617431640625, 0.01052093505859375, -0.04266357421875, 0.01092529296875, -0.03912353515625, -0.02447509765625, 0.006488800048828125, 0.0301055908203125, 0.0322265625, -0.00807952880859375, 0.0574951171875, 0.0089569091796875, 0.0450439453125, 0.0206146240234375, 0.018341064453125, 0.0200042724609375, -0.037078857421875, 0.0171661376953125, 0.04046630859375, 0.00539398193359375, -0.0174560546875, 0.034942626953125, 0.01253509521484375, -0.015899658203125, 0.00873565673828125, -0.00018489360809326172, 0.012725830078125, -0.02740478515625, -0.03179931640625, -0.001888275146484375, -0.01727294921875, 0.0236358642578125, -0.0243377685546875, 0.069091796875, -0.01325225830078125, -0.0283355712890625, 0.01318359375, 0.01001739501953125, -0.0164337158203125, -0.031402587890625, 0.032470703125, -0.029205322265625, 0.002941131591796875, -0.001934051513671875, -0.037078857421875, 0.030426025390625, -0.0165863037109375, 0.043121337890625, -0.0274658203125, 0.0137786865234375, -0.056488037109375, 0.0026988983154296875, 0.0281219482421875, -0.00868988037109375, -0.054351806640625, -0.0183868408203125, 0.015960693359375, 0.03363037109375, 0.032073974609375, -0.03338623046875, 0.024993896484375, 0.03814697265625, -0.024749755859375, -0.00830078125, -0.0292816162109375, 0.0192413330078125, -0.04681396484375, -0.038543701171875, 0.01032257080078125, -0.034149169921875, 0.04339599609375, -0.05169677734375, 0.0186614990234375, -0.021728515625, -0.013092041015625, -0.0023212432861328125, 0.0216827392578125, 0.003841400146484375, 0.01678466796875, 0.00539398193359375, -0.0014867782592773438, -0.0186309814453125, 0.039581298828125, -0.0291595458984375, 0.0202178955078125, 0.022003173828125, 0.038299560546875, 0.004364013671875, -0.028717041015625, 0.01361846923828125, -0.0230712890625, -0.01904296875, 0.04632568359375, -0.023651123046875, -0.04193115234375, -0.04815673828125, 0.00677490234375, 0.06634521484375, -0.00537109375, -0.0240325927734375, 0.055145263671875, 0.0011568069458007812, 0.005420684814453125, 0.0328369140625, -0.0682373046875, 0.019073486328125, 0.058563232421875, -0.037109375, -0.00677490234375, 0.031494140625, -0.06842041015625, -0.0308837890625, -0.0231475830078125, -0.00916290283203125, 0.06024169921875, 0.0091705322265625, -0.003223419189453125, -0.0241241455078125, -0.0161590576171875, -0.032684326171875, -0.011138916015625, 0.07330322265625, 0.01125335693359375, -0.10003662109375, 0.034210205078125, -0.055267333984375, 0.0033702850341796875, -0.060760498046875, -0.06707763671875, -0.0560302734375, -0.00524139404296875, 0.0040283203125, 0.01318359375, -0.005680084228515625, 0.0013093948364257812, 0.0012884140014648438, 0.0308837890625, 0.0027179718017578125, 0.04315185546875, -0.00647735595703125, 0.031402587890625, -0.00814056396484375, 0.0150604248046875, 0.003444671630859375, 0.0004475116729736328, -0.0215911865234375, -0.00341033935546875, -0.0144500732421875, -0.00997161865234375, 0.024627685546875, 0.0164642333984375, 0.0413818359375, -0.037445068359375, -0.0054473876953125, 0.0030422210693359375, -0.0256195068359375, 0.01285552978515625, 0.01959228515625, -0.016448974609375, 0.01290130615234375, 0.010894775390625, -0.043212890625, 0.0271148681640625, -0.041900634765625, -0.03851318359375, 0.00732421875, 0.01457977294921875, 0.00667572021484375, -0.01087188720703125, -0.0181427001953125, 0.0232696533203125, -0.051177978515625, 0.04718017578125, 0.082763671875, 0.01251220703125, 0.050384521484375, 0.01276397705078125, 0.0156707763671875, 0.017913818359375, 0.038055419921875, -0.0102691650390625, -0.01947021484375, 0.034576416015625, 0.01543426513671875, 0.0013885498046875, 0.013580322265625, -0.0182037353515625, 0.02789306640625, 0.07818603515625, 0.091552734375, -0.11639404296875, 0.007843017578125, 0.0171661376953125, -0.0311279296875, 0.00510406494140625, -0.02130126953125, 0.00910186767578125, -0.0460205078125, 0.062286376953125, 0.011383056640625, 0.0114288330078125, 0.01348114013671875, -0.042755126953125, -0.009918212890625, -0.00574493408203125, 0.0333251953125, 0.024444580078125, -0.02471923828125, -0.0037994384765625, 0.0250396728515625, -0.00699615478515625, -0.018341064453125, 0.00304412841796875, -0.01178741455078125, -0.023590087890625, -0.058074951171875, -0.0081939697265625, -0.01378631591796875, -0.022125244140625, -0.031280517578125, 0.0129547119140625, 0.007904052734375, 0.042755126953125, -0.01183319091796875, -0.021148681640625, 0.0291748046875, 0.007659912109375, -0.0345458984375, -0.0122528076171875, -0.0022449493408203125, -0.010650634765625, -0.004123687744140625, 0.01953125, -0.0235595703125, -0.030670166015625, -0.00771331787109375, 0.032501220703125, 0.07489013671875, -0.005924224853515625, -0.046478271484375, 0.06341552734375, 0.006832122802734375, -0.04266357421875, -0.0012502670288085938, 0.059539794921875, -0.0225677490234375, -0.012969970703125, 0.006923675537109375, -0.023101806640625, -0.033782958984375, -0.0256805419921875, -0.027099609375, 0.046875, 0.002178192138671875, -0.0079498291015625, 0.014434814453125, 0.018646240234375, -0.024200439453125, 0.0023288726806640625, -0.043243408203125, 0.048126220703125, 0.00640106201171875, 0.0269775390625, -0.023895263671875, 0.01078033447265625, -0.00656890869140625, -0.0214385986328125, -0.033416748046875, -0.00921630859375, 0.0025272369384765625, 0.006832122802734375, 0.01509857177734375, 0.0262451171875, 0.0093841552734375, 0.00923919677734375, -0.02520751953125, 0.017425537109375, 0.00928497314453125, -0.036346435546875, 0.00909423828125, 0.0004963874816894531, -0.043548583984375, 0.0171356201171875, 0.01380157470703125, 0.01554107666015625, 0.021636962890625, 0.040069580078125, -0.0513916015625, 0.004062652587890625, 0.054412841796875, -0.0467529296875, 0.00878143310546875, 0.0276947021484375, -0.0228424072265625, 0.064697265625, 0.0209503173828125, -0.0165557861328125, 0.029571533203125, -0.0158233642578125, 0.006793975830078125, 0.0020503997802734375, 0.0148773193359375, -0.0322265625, -0.0082550048828125, -0.005855560302734375, 0.03582763671875, -0.035430908203125, 0.01739501953125, -0.0092010498046875, 0.005096435546875, -0.048736572265625, 0.01549530029296875, 0.01187896728515625, 0.0194091796875, -0.0278167724609375, -0.057098388671875, 0.0211029052734375, 0.0046234130859375, -0.00699615478515625, 0.023956298828125, -0.0007476806640625, -0.01605224609375, 0.0262298583984375, -0.017486572265625, -0.020843505859375, 0.01186370849609375, 0.015411376953125, 0.00975799560546875, -0.0017232894897460938, -0.003726959228515625, -0.0265960693359375, -0.0167083740234375, -0.0169219970703125, 0.023956298828125, 0.03082275390625, -0.004978179931640625, 0.0307769775390625, -0.018280029296875, -0.0026683807373046875, -0.0106353759765625, 0.02374267578125, 0.006519317626953125, 0.00879669189453125, -0.04925537109375, -0.01245880126953125, -0.009124755859375, 0.03314208984375, 0.005474090576171875, 0.0175018310546875, 0.037322998046875, 0.040985107421875, -0.02362060546875, -0.00093841552734375, 0.046112060546875, -0.019317626953125, 0.00485992431640625, -0.0416259765625, 0.00910186767578125, 0.0225372314453125, -0.00791168212890625, 0.00640106201171875, -0.0157623291015625, 0.0645751953125, -0.0103302001953125, 0.039825439453125, 0.00412750244140625, -0.004730224609375, 0.01236724853515625, 0.007610321044921875, 0.01346588134765625, 0.025177001953125, -0.08251953125, -0.0101165771484375, -0.0236968994140625, -0.054534912109375, 0.0240478515625, 0.044769287109375, -0.01513671875, -0.0005960464477539062, -0.01800537109375, 0.005657196044921875, -0.009521484375, -0.0099639892578125, 0.0047760009765625, 0.03778076171875, 0.02008056640625, 0.01421356201171875, -0.0136260986328125, 0.003925323486328125, 0.0281829833984375, 0.0089111328125, -0.0290374755859375, 0.0362548828125, -0.0017881393432617188, -0.0106048583984375, 0.020294189453125, 0.021026611328125, -0.028564453125, -0.01959228515625, 0.072509765625, -0.039276123046875, -0.02935791015625, -0.01342010498046875, -0.09906005859375, 0.041168212890625, 0.004215240478515625, 0.015869140625, 0.0244293212890625, 0.0189056396484375, 0.0207366943359375, 0.0265350341796875, -0.039276123046875, -0.03228759765625, -0.075927734375, -0.010772705078125, 0.048583984375, -0.02435302734375, 0.047027587890625, -0.0030002593994140625, 0.013916015625, 0.0302886962890625, 0.0364990234375, -0.005092620849609375, 0.0704345703125, -0.01214599609375, 0.018890380859375, -0.042388916015625, 0.004932403564453125, 0.044403076171875, -0.007785797119140625, 0.02874755859375, 0.014373779296875, 0.05804443359375, 0.001651763916015625, 0.039398193359375, 0.006549835205078125, 0.0143890380859375, 0.044769287109375, -0.0079498291015625, 0.00830841064453125, 0.0172576904296875, 0.01082611083984375, -0.0005970001220703125, -0.035369873046875, -0.00032019615173339844, -0.0118408203125, 0.013641357421875, 0.02740478515625, 0.004634857177734375, 0.032135009765625, -0.00795745849609375, 0.016815185546875, 0.0286102294921875, -0.02301025390625, -0.043701171875, 0.0187835693359375, -0.04052734375, 0.09442138671875, -0.056427001953125, 0.01515960693359375, -0.00873565673828125, 0.03802490234375, -0.053741455078125, -0.0263214111328125, -0.040924072265625, 0.0128936767578125, -0.0577392578125, -0.014434814453125, 0.044647216796875, -0.00255584716796875, -0.036285400390625, -0.0416259765625, -0.0229644775390625, 0.00902557373046875, -0.031524658203125, -0.0221405029296875, 0.0031032562255859375, 0.022186279296875, -0.002552032470703125, -0.057281494140625, -0.004314422607421875, -0.0229644775390625, -0.005756378173828125, -0.04364013671875, 0.0198822021484375, 0.030853271484375, -0.0294036865234375, -0.046783447265625, 0.044281005859375, -0.00893402099609375, -0.01837158203125, -0.02777099609375, 0.0059814453125, -0.0003223419189453125, -0.04241943359375, -0.016693115234375, -0.022216796875, -0.011962890625, 0.0301361083984375, 0.0183258056640625, -0.0298614501953125, 0.0447998046875, 0.034698486328125, -0.05035400390625, 0.000255584716796875, -0.01430511474609375, -0.0284576416015625, 0.007686614990234375, -0.0237274169921875, 0.0251617431640625, 0.0304107666015625, -0.022613525390625, -0.033782958984375, -0.0005707740783691406, -0.005100250244140625, -0.03338623046875, -0.0404052734375, 0.01297760009765625, -0.005687713623046875, 0.06573486328125, 0.0322265625, 0.004772186279296875, -0.0286102294921875, -0.05615234375, -0.0178680419921875, 0.026397705078125, 0.0091400146484375, 0.0152740478515625, -0.06011962890625, 0.011474609375, 0.011016845703125, -0.0321044921875, -0.00992584228515625, 0.0008587837219238281, -0.050872802734375, 0.0103759765625, 0.02142333984375, 0.0284576416015625, -0.037200927734375, -0.0806884765625, 0.06658935546875, -0.0261383056640625, 0.01302337646484375, 0.0318603515625, 0.043182373046875, 0.049896240234375, 0.07952880859375, 0.03607177734375, 0.0389404296875, -0.07318115234375, -0.00727081298828125, 0.001972198486328125, 0.028594970703125, -0.028289794921875, -0.023590087890625, 0.053802490234375, 0.0306854248046875, -0.0345458984375, 0.022918701171875, -0.004840850830078125, 0.052734375, -0.058258056640625, 0.062255859375, -0.00437164306640625, 0.0258331298828125, -0.0152435302734375, 0.043365478515625, -0.00628662109375, -0.0278472900390625, 0.04193115234375, -0.05059814453125, -0.0019931793212890625, 0.039825439453125, 0.0019235610961914062, -0.0233917236328125, 0.005401611328125, 0.03436279296875, 0.027557373046875, 0.00605010986328125 ]
54e4ff13851a60a2dd18e7d79539c332b87e1925
Wordpress Stackexchange Q: Is it possible to run plugin code when a multisite blog is deleted? I have a plugin that creates tables when activated or when a new blog is added to a network. When a blog is deleted I would like to be able to remove those tables for that blog. Is there a hook available to do this? I imagine it would be something similar to wpmu_new_blog, but I can't find an equivalent for deleting. A: This is arguably the better way to do it if you're just deleting tables, but nothingtosee's answer is also valid, and would be the required way if you need to do something besides dropping tables. add_filter("wpmu_drop_tables", "DropTablesForBlog"); function DropTablesForBlog($tables) { global $wpdb; $tables[] = $wpdb->prefix . "my_plugin_table_1"; $tables[] = $wpdb->prefix . "my_plugin_table_2"; $tables[] = $wpdb->prefix . "my_plugin_table_2"; return $tables; }
Q: Is it possible to run plugin code when a multisite blog is deleted? I have a plugin that creates tables when activated or when a new blog is added to a network. When a blog is deleted I would like to be able to remove those tables for that blog. Is there a hook available to do this? I imagine it would be something similar to wpmu_new_blog, but I can't find an equivalent for deleting. A: This is arguably the better way to do it if you're just deleting tables, but nothingtosee's answer is also valid, and would be the required way if you need to do something besides dropping tables. add_filter("wpmu_drop_tables", "DropTablesForBlog"); function DropTablesForBlog($tables) { global $wpdb; $tables[] = $wpdb->prefix . "my_plugin_table_1"; $tables[] = $wpdb->prefix . "my_plugin_table_2"; $tables[] = $wpdb->prefix . "my_plugin_table_2"; return $tables; } A: The function wpmu_delete_blog in /wp-admin/includes/ms.php has an action hook called delete_blog. This hook passes the variable of $blog_id You could try plugging into that hook, although it is executed right at the beginning of the function.
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:416901", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41582" }
[ 0.0053863525390625, 0.018707275390625, -0.003082275390625, 0.024444580078125, 0.0162200927734375, -0.01959228515625, 0.01910400390625, -0.056854248046875, 0.01207733154296875, 0.012298583984375, -0.034515380859375, 0.02178955078125, -0.01751708984375, -0.0132293701171875, 0.00820159912109375, -0.02398681640625, 0.042327880859375, -0.042694091796875, 0.03143310546875, -0.00786590576171875, -0.00452423095703125, 0.0111083984375, 0.05975341796875, 0.0196990966796875, 0.005626678466796875, -0.01751708984375, 0.064208984375, 0.0030422210693359375, 0.0203857421875, -0.027984619140625, 0.014495849609375, -0.0026988983154296875, -0.01036834716796875, 0.041656494140625, -0.0029735565185546875, 0.02166748046875, 0.0193939208984375, 0.0243682861328125, 0.0221405029296875, 0.036407470703125, 0.0082550048828125, 0.00603485107421875, 0.006641387939453125, 0.0165557861328125, 0.0003788471221923828, -0.057952880859375, 0.0352783203125, -0.04669189453125, 0.023956298828125, 0.014678955078125, -0.007335662841796875, -0.01153564453125, 0.003993988037109375, -0.039276123046875, -0.033538818359375, -0.041900634765625, 0.0010881423950195312, -0.0006508827209472656, 0.00494384765625, 0.039703369140625, 0.00501251220703125, 0.04052734375, -0.003818511962890625, -0.0245208740234375, -0.0187835693359375, 0.01491546630859375, -0.0012788772583007812, 0.007007598876953125, -0.018524169921875, -0.015472412109375, 0.006740570068359375, -0.0265350341796875, -0.0161590576171875, 0.0166168212890625, -0.0215301513671875, -0.0272064208984375, 0.047027587890625, -0.0024547576904296875, -0.00406646728515625, 0.01514434814453125, 0.0208282470703125, -0.0018987655639648438, 0.006374359130859375, -0.044281005859375, 0.00946807861328125, -0.0041046142578125, 0.00820159912109375, -0.004810333251953125, -0.048309326171875, 0.01702880859375, -0.03204345703125, -0.0181732177734375, -0.037811279296875, 0.028778076171875, -0.00878143310546875, 0.004291534423828125, 0.03253173828125, 0.06744384765625, -0.0263824462890625, -0.0096435546875, -0.0300445556640625, -0.036590576171875, -0.016815185546875, -0.0198516845703125, 0.0109405517578125, 0.031341552734375, -0.004215240478515625, -0.0645751953125, 0.004764556884765625, 0.00946044921875, -0.00983428955078125, -0.0011491775512695312, -0.018829345703125, -0.033538818359375, -0.0258331298828125, -0.0035305023193359375, -0.0304107666015625, -0.0057525634765625, 0.0019063949584960938, -0.025177001953125, -0.032867431640625, -0.0096435546875, -0.0794677734375, -0.005748748779296875, 0.0009851455688476562, -0.047332763671875, 0.00003159046173095703, 0.057159423828125, -0.03948974609375, -0.03228759765625, -0.03558349609375, 0.04132080078125, 0.05755615234375, 0.029449462890625, 0.00907135009765625, -0.005634307861328125, 0.040924072265625, 0.022796630859375, -0.00778961181640625, -0.01480865478515625, 0.0467529296875, -0.004482269287109375, -0.050323486328125, -0.0093231201171875, 0.012603759765625, 0.0186004638671875, 0.04254150390625, 0.0020465850830078125, -0.0229644775390625, -0.01543426513671875, -0.0244140625, 0.037445068359375, 0.0438232421875, -0.0196533203125, 0.017059326171875, -0.07781982421875, 0.061187744140625, -0.0703125, 0.00905609130859375, -0.06787109375, -0.00872039794921875, -0.015625, 0.0063018798828125, -0.074951171875, -0.0845947265625, 0.01261138916015625, -0.046722412109375, -0.00948333740234375, 0.04412841796875, -0.02886962890625, -0.004638671875, -0.06964111328125, 0.07135009765625, 0.0394287109375, -0.0029735565185546875, 0.09075927734375, -0.0254364013671875, -0.016937255859375, 0.05364990234375, -0.00641632080078125, -0.038299560546875, -0.024932861328125, 0.03741455078125, -0.01036834716796875, -0.060302734375, 0.0287628173828125, 0.01430511474609375, 0.0828857421875, 0.01557159423828125, 0.025604248046875, 0.024322509765625, -0.0171661376953125, -0.00002092123031616211, 0.0039215087890625, 0.023193359375, -0.038299560546875, -0.0308990478515625, -0.021331787109375, -0.003658294677734375, -0.0196533203125, -0.01788330078125, 0.01751708984375, 0.009307861328125, -0.0024967193603515625, -0.061279296875, 0.035614013671875, -0.028350830078125, 0.0491943359375, -0.01061248779296875, 0.00789642333984375, 0.0241851806640625, 0.0233001708984375, -0.042236328125, -0.006317138671875, -0.008941650390625, 0.01282501220703125, -0.0200958251953125, 0.0550537109375, -0.001033782958984375, 0.02984619140625, -0.0109710693359375, -0.033447265625, -0.01038360595703125, -0.0401611328125, 0.041717529296875, -0.062225341796875, 0.00608062744140625, -0.062286376953125, 0.031463623046875, -0.0311279296875, -0.007579803466796875, 0.05303955078125, 0.0165863037109375, 0.046722412109375, 0.00030159950256347656, -0.00815582275390625, 0.0301666259765625, -0.053009033203125, 0.0130615234375, 0.0159759521484375, 0.0399169921875, 0.01183319091796875, -0.025726318359375, -0.02020263671875, 0.0181121826171875, -0.03558349609375, 0.01325225830078125, -0.0099029541015625, 0.00506591796875, 0.07293701171875, -0.038543701171875, 0.01959228515625, 0.00463104248046875, 0.018218994140625, -0.005352020263671875, 0.035430908203125, -0.01105499267578125, -0.0150299072265625, -0.01202392578125, 0.00533294677734375, 0.0209197998046875, -0.01043701171875, -0.040435791015625, 0.00565338134765625, 0.056854248046875, -0.0180511474609375, 0.03875732421875, 0.023834228515625, -0.024566650390625, 0.010345458984375, 0.0196685791015625, -0.0182342529296875, -0.0046844482421875, 0.036163330078125, 0.0240631103515625, 0.039031982421875, -0.0484619140625, -0.01080322265625, 0.0230255126953125, 0.024383544921875, -0.04559326171875, 0.028594970703125, -0.054290771484375, -0.0246124267578125, -0.016326904296875, -0.00015163421630859375, -0.0159454345703125, -0.04443359375, -0.0504150390625, -0.0462646484375, -0.00916290283203125, 0.03765869140625, -0.03192138671875, 0.0151824951171875, 0.01074981689453125, -0.00609588623046875, 0.046051025390625, -0.059906005859375, 0.057830810546875, -0.0333251953125, 0.038787841796875, 0.0728759765625, -0.00417327880859375, -0.0080413818359375, -0.0088348388671875, 0.004528045654296875, 0.0225372314453125, -0.01776123046875, -0.01119232177734375, -0.01132965087890625, -0.00921630859375, 0.05218505859375, 0.0271453857421875, 0.041778564453125, 0.016204833984375, -0.03631591796875, -0.004985809326171875, 0.0294342041015625, -0.063232421875, -0.06854248046875, 0.01445770263671875, -0.0021381378173828125, 0.0150604248046875, -0.0338134765625, 0.0022716522216796875, -0.019866943359375, -0.013580322265625, -0.00691986083984375, -0.002532958984375, -0.023681640625, -0.01593017578125, -0.038177490234375, -0.044586181640625, -0.0233306884765625, 0.00920867919921875, 0.004787445068359375, -0.0037841796875, 0.0638427734375, -0.0167236328125, -0.07952880859375, -0.0288543701171875, -0.040313720703125, -0.0008006095886230469, 0.003387451171875, 0.0254669189453125, -0.01403045654296875, -0.022705078125, 0.0105133056640625, 0.03558349609375, 0.0545654296875, -0.05511474609375, -0.0007200241088867188, 0.00733184814453125, 0.0010519027709960938, 0.0282745361328125, -0.0504150390625, -0.0116424560546875, 0.005512237548828125, -0.039154052734375, -0.057708740234375, 0.0157470703125, -0.041900634765625, -0.021820068359375, -0.0251007080078125, -0.0021076202392578125, 0.016387939453125, -0.038299560546875, 0.027862548828125, 0.054168701171875, 0.007549285888671875, 0.01377105712890625, 0.0258941650390625, -0.0181427001953125, -0.0064544677734375, 0.01377105712890625, -0.043182373046875, 0.045745849609375, -0.027618408203125, -0.05908203125, -0.0161590576171875, -0.016510009765625, -0.007659912109375, -0.033599853515625, -0.032745361328125, 0.0147857666015625, 0.027191162109375, -0.0025310516357421875, 0.0272064208984375, -0.0027370452880859375, -0.022613525390625, -0.0109405517578125, 0.049835205078125, -0.07330322265625, -0.0286407470703125, -0.019683837890625, 0.01030731201171875, 0.02886962890625, -0.028411865234375, -0.0010519027709960938, -0.032012939453125, -0.0880126953125, 0.0174560546875, -0.00969696044921875, -0.0205078125, -0.0201263427734375, 0.040435791015625, -0.03302001953125, -0.04156494140625, 0.03924560546875, -0.04571533203125, 0.0058441162109375, 0.016143798828125, 0.0004353523254394531, -0.0194549560546875, -0.0034732818603515625, -0.029296875, -0.002307891845703125, 0.006191253662109375, -0.0616455078125, 0.024017333984375, 0.049591064453125, 0.0018205642700195312, -0.001979827880859375, 0.0066070556640625, -0.0113067626953125, -0.004032135009765625, -0.0151214599609375, 0.018829345703125, -0.043365478515625, -0.0210723876953125, -0.0096282958984375, -0.043975830078125, 0.0016946792602539062, -0.0296783447265625, -0.0372314453125, -0.0019989013671875, -0.00681304931640625, 0.032684326171875, 0.009033203125, -0.01715087890625, 0.0168609619140625, -0.0229644775390625, -0.055450439453125, -0.0235137939453125, -0.0625, 0.0122528076171875, 0.002490997314453125, 0.006793975830078125, -0.00615692138671875, 0.0016336441040039062, -0.04150390625, 0.02606201171875, 0.05035400390625, 0.0306243896484375, 0.00222015380859375, -0.0582275390625, 0.0253448486328125, 0.024322509765625, -0.00768280029296875, 0.07122802734375, 0.03875732421875, -0.0026912689208984375, 0.043914794921875, -0.001361846923828125, -0.01113128662109375, -0.0487060546875, 0.03680419921875, 0.00958251953125, 0.0027904510498046875, 0.00246429443359375, -0.007297515869140625, 0.043212890625, 0.034332275390625, 0.00774383544921875, -0.01556396484375, 0.0060577392578125, 0.0209808349609375, 0.0013971328735351562, -0.022247314453125, -0.041534423828125, -0.0313720703125, 0.0139007568359375, -0.01861572265625, 0.0191192626953125, 0.0235137939453125, -0.013427734375, 0.0005517005920410156, -0.01617431640625, 0.01184844970703125, -0.04876708984375, 0.01432037353515625, -0.0286865234375, 0.0418701171875, -0.038665771484375, -0.004535675048828125, -0.03289794921875, -0.02056884765625, 0.07421875, 0.003459930419921875, -0.04986572265625, -0.00830841064453125, -0.0102996826171875, -0.0015497207641601562, 0.006786346435546875, -0.0234527587890625, 0.02850341796875, 0.034759521484375, -0.025909423828125, -0.012786865234375, -0.03204345703125, 0.00485992431640625, -0.056884765625, -0.042022705078125, -0.034515380859375, -0.007099151611328125, 0.0117340087890625, 0.020721435546875, -0.044281005859375, 0.03448486328125, -0.002040863037109375, 0.039215087890625, 0.028106689453125, 0.0200347900390625, 0.0267181396484375, -0.018890380859375, -0.00904083251953125, -0.0032901763916015625, -0.043487548828125, -0.0443115234375, -0.0302276611328125, 0.01776123046875, 0.053863525390625, 0.0033893585205078125, -0.0193634033203125, 0.0078125, -0.004608154296875, -0.03240966796875, 0.056732177734375, 0.03570556640625, -0.041412353515625, -0.0169830322265625, 0.0212860107421875, 0.0288543701171875, -0.00261688232421875, 0.0172882080078125, -0.05096435546875, -0.0193939208984375, -0.007511138916015625, -0.058197021484375, -0.0037212371826171875, -0.0159149169921875, -0.02081298828125, 0.0033016204833984375, -0.0232086181640625, -0.0062408447265625, -0.0460205078125, -0.00440216064453125, -0.023651123046875, -0.0078582763671875, 0.0249481201171875, -0.0361328125, 0.05987548828125, -0.04638671875, -0.011749267578125, -0.0218658447265625, 0.0040740966796875, 0.0540771484375, 0.062164306640625, -0.038177490234375, 0.006580352783203125, -0.016693115234375, -0.02655029296875, -0.024505615234375, -0.0193634033203125, -0.05194091796875, -0.006053924560546875, 0.0287628173828125, 0.024505615234375, 0.01371002197265625, -0.02545166015625, -0.0004749298095703125, -0.0290069580078125, -0.0022258758544921875, -0.0098114013671875, -0.0248260498046875, 0.050994873046875, 0.02294921875, 0.030609130859375, 0.04266357421875, 0.045867919921875, -0.014495849609375, -0.024505615234375, 0.0310211181640625, -0.049835205078125, -0.036041259765625, -0.0206298828125, -0.049468994140625, -0.019195556640625, 0.004192352294921875, -0.00978851318359375, 0.0208892822265625, -0.0023136138916015625, 0.0036411285400390625, -0.01873779296875, -0.0066986083984375, 0.00920867919921875, 0.033843994140625, 0.006351470947265625, -0.0601806640625, 0.0086669921875, -0.0203094482421875, 0.0175628662109375, 0.0312042236328125, -0.046600341796875, 0.0100555419921875, 0.046600341796875, -0.03570556640625, 0.0880126953125, 0.0382080078125, -0.027618408203125, 0.0150604248046875, 0.0170440673828125, -0.0196075439453125, -0.01558685302734375, -0.05560302734375, 0.01020050048828125, 0.0014324188232421875, 0.027130126953125, -0.0172271728515625, 0.00907135009765625, 0.0450439453125, -0.018341064453125, 0.0018568038940429688, 0.0193023681640625, 0.021514892578125, -0.06488037109375, 0.027252197265625, 0.0130615234375, 0.0192718505859375, 0.041351318359375, -0.0012731552124023438, 0.01212310791015625, 0.030426025390625, -0.003475189208984375, 0.01377105712890625, -0.02752685546875, 0.0013074874877929688, 0.03558349609375, -0.01296234130859375, -0.016448974609375, -0.006969451904296875, 0.0236663818359375, 0.0189361572265625, 0.0484619140625, -0.019317626953125, 0.05712890625, 0.0016546249389648438, 0.0208282470703125, 0.0516357421875, -0.0208740234375, -0.036529541015625, 0.0484619140625, 0.004024505615234375, -0.033599853515625, 0.00006431341171264648, -0.03436279296875, 0.0008492469787597656, 0.0364990234375, -0.0335693359375, 0.0029163360595703125, 0.030517578125, -0.0163116455078125, -0.08648681640625, -0.00371551513671875, 0.046051025390625, 0.0080108642578125, -0.03533935546875, 0.04791259765625, -0.05133056640625, -0.032501220703125, 0.008544921875, -0.01372528076171875, 0.0301513671875, -0.01363372802734375, -0.002414703369140625, 0.0305023193359375, 0.0157470703125, -0.01508331298828125, -0.014434814453125, 0.00955963134765625, -0.0927734375, -0.06512451171875, 0.002227783203125, -0.032958984375, 0.01329803466796875, -0.0007147789001464844, -0.07623291015625, 0.05218505859375, 0.0012235641479492188, 0.032318115234375, -0.00046944618225097656, 0.016143798828125, -0.0133056640625, -0.011199951171875, -0.0440673828125, 0.02813720703125, -0.01038360595703125, 0.038848876953125, -0.045928955078125, 0.0166168212890625, 0.00206756591796875, 0.01540374755859375, 0.042816162109375, 0.00882720947265625, -0.0005955696105957031, -0.03558349609375, -0.022003173828125, -0.006313323974609375, -0.029388427734375, 0.0168304443359375, -0.020538330078125, 0.047760009765625, 0.0104827880859375, -0.0439453125, 0.028778076171875, -0.0175323486328125, -0.042144775390625, 0.004344940185546875, 0.0013027191162109375, 0.0027523040771484375, -0.00298309326171875, -0.0276947021484375, 0.045013427734375, -0.017822265625, -0.04962158203125, 0.007080078125, 0.01309967041015625, 0.02789306640625, 0.02484130859375, -0.03948974609375, 0.0209197998046875, -0.019927978515625, 0.038360595703125, -0.00487518310546875, -0.0059967041015625, 0.038055419921875, 0.032684326171875, -0.046173095703125, -0.00470733642578125, 0.00011676549911499023, 0.012451171875, -0.027313232421875, 0.06512451171875, 0.02001953125, 0.0263519287109375, -0.04241943359375, -0.01270294189453125, 0.0240020751953125, 0.0648193359375, -0.0262603759765625, -0.0198516845703125, 0.01030731201171875, 0.005626678466796875, 0.018951416015625, 0.0023326873779296875, 0.0275726318359375, -0.0173187255859375, 0.00799560546875, 0.0206146240234375, -0.0294036865234375, -0.0244903564453125, 0.00984954833984375, 0.02325439453125, 0.03692626953125, 0.01055908203125, -0.03729248046875, -0.00313568115234375, 0.006744384765625, -0.0179290771484375, 0.00296783447265625, -0.01263427734375, 0.0499267578125, -0.027862548828125, 0.005870819091796875, -0.026824951171875, 0.018341064453125, -0.006839752197265625, 0.0257415771484375, -0.055450439453125, -0.04998779296875, 0.0445556640625, 0.05633544921875, 0.01035308837890625, 0.0209197998046875, 0.052520751953125, 0.01024627685546875, -0.04443359375, -0.0052032470703125, 0.0134735107421875, -0.038604736328125, 0.01242828369140625, -0.046295166015625, -0.0037364959716796875, -0.0162811279296875, -0.024139404296875, -0.01000213623046875, 0.0024433135986328125, -0.007297515869140625, -0.046539306640625, 0.0281829833984375, -0.007534027099609375, -0.01297760009765625, 0.026611328125, -0.0185546875, 0.01412200927734375, -0.0289459228515625, -0.08367919921875, -0.01396942138671875, -0.044769287109375, 0.004718780517578125, 0.0043182373046875, 0.041015625, 0.000576019287109375, 0.014434814453125, 0.0125885009765625, -0.0206756591796875, 0.028564453125, -0.01465606689453125, 0.00400543212890625, 0.0283050537109375, 0.01384735107421875, -0.005290985107421875, -0.052886962890625, -0.036529541015625, -0.0254669189453125, 0.0374755859375, -0.023712158203125, 0.10986328125, -0.04290771484375, 0.006473541259765625, 0.02813720703125, 0.029083251953125, -0.000029265880584716797, 0.007312774658203125, -0.0035915374755859375, -0.0168304443359375, 0.0173187255859375, -0.0087432861328125, -0.05499267578125, 0.00023686885833740234, 0.048797607421875, -0.00762939453125, 0.0036487579345703125, -0.00611114501953125, 0.0213623046875, -0.0033893585205078125, 0.01224517822265625, -0.02899169921875, -0.02252197265625, -0.026611328125, -0.014739990234375, 0.03778076171875, 0.0238494873046875, 0.0073699951171875, 0.04547119140625, -0.01183319091796875, -0.025360107421875, 0.0088653564453125, -0.050933837890625, -0.00856781005859375, 0.0261993408203125, 0.01513671875, -0.02557373046875, 0.0220489501953125, 0.0017147064208984375, -0.0213470458984375, 0.0239105224609375, 0.0218658447265625, 0.0208740234375, -0.0106353759765625, 0.03948974609375, 0.0005803108215332031, 0.0555419921875, -0.0202178955078125, 0.0170440673828125, 0.0032901763916015625, 0.040435791015625, 0.020782470703125, 0.026153564453125, -0.032501220703125, -0.03765869140625, -0.0202484130859375, -0.0173492431640625, -0.03253173828125, -0.055328369140625, -0.05084228515625, 0.0138092041015625, 0.031097412109375, 0.014495849609375, -0.10504150390625, 0.0614013671875, -0.03155517578125, 0.037017822265625, -0.008392333984375, -0.0087127685546875, -0.021728515625, 0.0252532958984375, -0.00927734375, -0.057098388671875, -0.04034423828125, 0.057342529296875, -0.04290771484375, 0.00988006591796875, 0.0162353515625, -0.0206146240234375, -0.0125274658203125, 0.0199432373046875, 0.00821685791015625, 0.059417724609375, 0.0273590087890625, -0.006305694580078125, 0.03472900390625, -0.01316070556640625, -0.0220184326171875, -0.0777587890625, -0.003261566162109375, -0.062225341796875, 0.005096435546875, 0.00365447998046875, 0.0013437271118164062, 0.01410675048828125, -0.027130126953125, -0.07421875, 0.053558349609375, -0.0183563232421875, -0.03717041015625, -0.0307769775390625, -0.019683837890625, -0.00710296630859375, 0.060882568359375, 0.00730133056640625, -0.006114959716796875, -0.03643798828125, 0.017120361328125, 0.0068511962890625, 0.019744873046875, 0.00576019287109375, 0.00228118896484375, -0.027008056640625, 0.0128173828125, 0.01042938232421875, -0.0026645660400390625, -0.0012426376342773438, -0.026885986328125, 0.035736083984375, 0.031707763671875, -0.01398468017578125, 0.00015985965728759766, 0.037139892578125, -0.017974853515625, -0.005558013916015625, -0.054229736328125, -0.0479736328125, -0.00907135009765625, 0.12548828125, 0.05072021484375, 0.049041748046875, -0.056488037109375, -0.037384033203125, -0.048736572265625, -0.0281524658203125, -0.03662109375, 0.0294952392578125, -0.08447265625, -0.0017309188842773438, 0.01010894775390625, -0.02276611328125, 0.019012451171875, -0.0082244873046875, -0.0185394287109375, -0.0003027915954589844, 0.006191253662109375, -0.00606536865234375, -0.043731689453125, 0.0157012939453125, 0.0171661376953125, -0.00927734375, 0.02020263671875, -0.0230255126953125, -0.0028514862060546875, 0.01263427734375, 0.01947021484375, -0.0240631103515625, -0.023345947265625, -0.0301361083984375, 0.03680419921875, -0.024322509765625, 0.01169586181640625, -0.03900146484375, -0.021697998046875, -0.005199432373046875, 0.0128631591796875, -0.0063629150390625, 0.015228271484375, 0.021881103515625, 0.00274658203125, -0.0084381103515625, 0.00860595703125, 0.0118865966796875, 0.0024242401123046875, -0.014251708984375, 0.022918701171875, 0.0250701904296875, -0.027008056640625, 0.0311737060546875, -0.0158538818359375, -0.023834228515625, 0.0025310516357421875, 0.016326904296875, -0.1063232421875, 0.08184814453125, 0.006710052490234375, 0.059783935546875, 0.052215576171875 ]
42a5113ad5deb4fd29abeba53a91fb9188a69b44
Wordpress Stackexchange Q: How to get the clean permalink in a draft? When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" permalink to show up in a draft or scheduled post? I could do something involving $post->post_name, but I'd need the path as well, and that varies from post type to post type and depends on permalink structure. Is there a "universal" way to do this? A: Since editor displays projected permalink for slug editor, it must have some way to figure it out. From looking at source that is handled by get_sample_permalink_html() and get_sample_permalink(). Since we only need link without form cruft, we can rework it into something like: function get_draft_permalink( $post_id ) { require_once ABSPATH . '/wp-admin/includes/post.php'; list( $permalink, $postname ) = get_sample_permalink( $post_id ); return str_replace( '%postname%', $postname, $permalink ); } No confidence it is foolproof, but works fine from quick test. :)
Q: How to get the clean permalink in a draft? When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" permalink to show up in a draft or scheduled post? I could do something involving $post->post_name, but I'd need the path as well, and that varies from post type to post type and depends on permalink structure. Is there a "universal" way to do this? A: Since editor displays projected permalink for slug editor, it must have some way to figure it out. From looking at source that is handled by get_sample_permalink_html() and get_sample_permalink(). Since we only need link without form cruft, we can rework it into something like: function get_draft_permalink( $post_id ) { require_once ABSPATH . '/wp-admin/includes/post.php'; list( $permalink, $postname ) = get_sample_permalink( $post_id ); return str_replace( '%postname%', $postname, $permalink ); } No confidence it is foolproof, but works fine from quick test. :) A: This is a little "hacky", but when you call get_permalink and you need the permalink for a draft, provide a clone of your post object with the details filled in: global $post; if ( in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) ) ) { $my_post = clone $post; $my_post->post_status = 'publish'; $my_post->post_name = sanitize_title( $my_post->post_name ? $my_post->post_name : $my_post->post_title, $my_post->ID ); $permalink = get_permalink( $my_post ); } else { $permalink = get_permalink(); }
wordpress
{ "language": "en", "length": 241, "provenance": "stackexchange_00019.jsonl.gz:416903", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41588" }
[ 0.0782470703125, -0.0046234130859375, 0.0137939453125, -0.0244903564453125, -0.0049591064453125, -0.03277587890625, 0.01125335693359375, -0.05963134765625, -0.006290435791015625, 0.01387786865234375, -0.0274200439453125, 0.00923919677734375, -0.0347900390625, -0.0223846435546875, 0.00899505615234375, -0.025848388671875, 0.035736083984375, -0.03485107421875, -0.00801849365234375, -0.02490234375, -0.00354766845703125, -0.00160980224609375, 0.0261688232421875, 0.04205322265625, 0.037353515625, 0.0004992485046386719, -0.0021266937255859375, -0.04046630859375, 0.011627197265625, -0.0158843994140625, 0.0175323486328125, 0.00004798173904418945, 0.0023250579833984375, -0.0169830322265625, 0.0687255859375, -0.01483154296875, 0.00710296630859375, -0.0021533966064453125, 0.03564453125, -0.016265869140625, 0.0221710205078125, -0.0197296142578125, -0.047210693359375, 0.0073699951171875, -0.044708251953125, -0.009429931640625, 0.0011854171752929688, -0.0274658203125, -0.006542205810546875, -0.0107879638671875, 0.0190277099609375, 0.0236053466796875, 0.023345947265625, 0.0263214111328125, -0.01525115966796875, -0.001583099365234375, -0.0137786865234375, -0.00806427001953125, 0.032440185546875, 0.00228118896484375, -0.025146484375, -0.024139404296875, 0.0249176025390625, -0.02484130859375, -0.035736083984375, -0.005435943603515625, -0.00511932373046875, 0.016937255859375, -0.002178192138671875, -0.0298004150390625, 0.002330780029296875, -0.0092010498046875, -0.002674102783203125, -0.045745849609375, -0.043182373046875, -0.00502777099609375, -0.022003173828125, -0.046966552734375, 0.0175018310546875, -0.0233154296875, 0.0276947021484375, -0.0047149658203125, -0.04925537109375, -0.00849151611328125, 0.027435302734375, 0.013336181640625, 0.00978851318359375, -0.0201263427734375, -0.0200653076171875, 0.00939178466796875, -0.0225677490234375, 0.01245880126953125, -0.01190948486328125, 0.016326904296875, -0.01013946533203125, -0.0159149169921875, 0.0672607421875, 0.070556640625, 0.0088043212890625, 0.005664825439453125, 0.03680419921875, -0.07464599609375, 0.05242919921875, -0.0599365234375, -0.0302886962890625, -0.004627227783203125, 0.0292816162109375, 0.08111572265625, 0.0360107421875, 0.030120849609375, -0.01039886474609375, -0.015899658203125, -0.0131683349609375, -0.04681396484375, -0.028594970703125, 0.024444580078125, -0.033721923828125, -0.0033817291259765625, 0.0257110595703125, -0.01385498046875, -0.039764404296875, 0.006740570068359375, -0.00447845458984375, 0.0165252685546875, 0.0227508544921875, 0.0192413330078125, 0.0162353515625, -0.0214996337890625, -0.0188751220703125, 0.034759521484375, -0.0238189697265625, -0.007099151611328125, 0.04986572265625, 0.03826904296875, 0.01395416259765625, -0.03350830078125, 0.01239776611328125, -0.0184478759765625, -0.007061004638671875, 0.009735107421875, -0.0302734375, 0.007198333740234375, 0.0447998046875, -0.034332275390625, 0.0089263916015625, 0.06256103515625, 0.0225830078125, -0.0467529296875, -0.0177001953125, 0.003997802734375, -0.0802001953125, -0.0221099853515625, 0.03228759765625, 0.0005536079406738281, -0.0100860595703125, -0.048858642578125, 0.0233306884765625, -0.0377197265625, 0.00868988037109375, -0.050628662109375, 0.059051513671875, -0.0032405853271484375, -0.0005903244018554688, 0.01507568359375, -0.05059814453125, 0.016510009765625, -0.05419921875, -0.023651123046875, 0.0181427001953125, 0.0233154296875, 0.0260009765625, -0.0074462890625, -0.0015869140625, -0.022247314453125, -0.005016326904296875, -0.0185089111328125, 0.00786590576171875, 0.0137939453125, 0.0026454925537109375, 0.03643798828125, -0.01020050048828125, -0.042388916015625, 0.0276947021484375, -0.0269927978515625, -0.053131103515625, 0.0189666748046875, 0.021026611328125, 0.060272216796875, -0.01444244384765625, 0.0166015625, 0.0433349609375, 0.01416778564453125, -0.03851318359375, 0.0144805908203125, 0.0049591064453125, -0.0102081298828125, -0.021484375, -0.015625, -0.008026123046875, 0.01202392578125, -0.019622802734375, 0.0171966552734375, -0.005283355712890625, -0.00007092952728271484, -0.05548095703125, 0.036651611328125, -0.03448486328125, 0.058837890625, -0.019287109375, 0.007904052734375, 0.0293121337890625, -0.005100250244140625, -0.03216552734375, -0.040618896484375, -0.004650115966796875, 0.054931640625, -0.032958984375, -0.0244903564453125, -0.02587890625, -0.01091766357421875, 0.00420379638671875, -0.036712646484375, -0.0243072509765625, 0.032135009765625, 0.02532958984375, -0.01062774658203125, -0.01666259765625, -0.0186309814453125, -0.0190277099609375, 0.0258636474609375, -0.05889892578125, 0.03448486328125, 0.054595947265625, 0.06365966796875, 0.00255584716796875, 0.0151214599609375, 0.0239105224609375, -0.059417724609375, -0.004634857177734375, 0.033447265625, 0.035888671875, 0.034027099609375, 0.005359649658203125, -0.004486083984375, 0.059539794921875, 0.007568359375, 0.04486083984375, -0.03173828125, 0.0232696533203125, 0.06427001953125, -0.0115203857421875, 0.034454345703125, 0.0019931793212890625, -0.03472900390625, 0.00533294677734375, 0.039276123046875, -0.01398468017578125, -0.01239776611328125, 0.02838134765625, -0.003292083740234375, 0.01076507568359375, -0.0111236572265625, -0.022216796875, -0.01480865478515625, -0.00726318359375, 0.016082763671875, 0.016998291015625, 0.0203857421875, -0.011962890625, 0.0012454986572265625, 0.0101776123046875, -0.00048828125, -0.014739990234375, 0.0272064208984375, 0.05865478515625, -0.015655517578125, -0.026153564453125, -0.01495361328125, 0.0118865966796875, 0.018798828125, -0.0170135498046875, 0.035919189453125, 0.057342529296875, -0.0175933837890625, -0.018646240234375, -0.05682373046875, 0.0193939208984375, -0.033050537109375, 0.036041259765625, 0.0249176025390625, 0.05047607421875, -0.0019893646240234375, -0.0239410400390625, 0.033538818359375, -0.0062408447265625, -0.033447265625, 0.01425933837890625, -0.0343017578125, 0.04266357421875, -0.03668212890625, 0.006381988525390625, 0.052764892578125, 0.01033782958984375, -0.001918792724609375, -0.010162353515625, 0.01204681396484375, -0.003437042236328125, -0.0221710205078125, -0.035858154296875, -0.00322723388671875, -0.07403564453125, -0.0241546630859375, 0.0018663406372070312, 0.02294921875, -0.0235443115234375, -0.040771484375, -0.00826263427734375, 0.01335906982421875, -0.04803466796875, 0.011993408203125, -0.0267333984375, -0.0003941059112548828, -0.00428009033203125, 0.022613525390625, 0.01212310791015625, -0.01079559326171875, 0.0224761962890625, -0.00399017333984375, -0.01361083984375, -0.0133056640625, -0.09661865234375, -0.06982421875, -0.1114501953125, -0.0047149658203125, -0.0137939453125, 0.01446533203125, -0.0009074211120605469, 0.0171051025390625, 0.00791168212890625, -0.03265380859375, 0.0101470947265625, 0.039703369140625, -0.0102386474609375, -0.03094482421875, -0.00565338134765625, -0.005771636962890625, -0.01396942138671875, -0.00047707557678222656, 0.07147216796875, 0.0499267578125, -0.0570068359375, 0.013458251953125, -0.016632080078125, -0.0308990478515625, 0.031768798828125, 0.0404052734375, 0.00446319580078125, -0.00853729248046875, 0.0753173828125, -0.036468505859375, 0.0207366943359375, -0.015716552734375, -0.0187530517578125, 0.0077972412109375, -0.01079559326171875, -0.0018939971923828125, 0.000827789306640625, -0.005413055419921875, 0.00994873046875, 0.01434326171875, 0.057830810546875, -0.019287109375, -0.00809478759765625, -0.0078887939453125, -0.0230560302734375, -0.0389404296875, 0.027587890625, -0.018096923828125, 0.021270751953125, 0.00667572021484375, -0.01654052734375, -0.00799560546875, -0.0181732177734375, -0.03253173828125, -0.059234619140625, 0.039337158203125, -0.10052490234375, -0.0307159423828125, -0.04669189453125, 0.0019140243530273438, 0.002819061279296875, 0.0740966796875, 0.01422882080078125, -0.02435302734375, -0.029266357421875, 0.006744384765625, -0.038055419921875, -0.05609130859375, -0.0005016326904296875, 0.00331878662109375, -0.1060791015625, -0.0189971923828125, -0.0214691162109375, -0.05474853515625, -0.0015277862548828125, -0.01224517822265625, -0.06024169921875, -0.04595947265625, 0.03216552734375, -0.0032062530517578125, -0.0137481689453125, 0.0171661376953125, -0.00004178285598754883, -0.0007371902465820312, -0.0242462158203125, -0.02099609375, -0.056304931640625, -0.02752685546875, -0.00743865966796875, 0.0662841796875, 0.0183258056640625, -0.031463623046875, -0.013336181640625, 0.0458984375, 0.0098419189453125, 0.01983642578125, -0.008056640625, -0.01666259765625, 0.005893707275390625, 0.00804901123046875, 0.0014009475708007812, -0.00301361083984375, 0.01554107666015625, 0.0019502639770507812, -0.05340576171875, -0.024505615234375, -0.02490234375, -0.0023784637451171875, 0.03887939453125, -0.05084228515625, -0.042327880859375, 0.01226806640625, 0.0023555755615234375, 0.032867431640625, -0.0291290283203125, 0.00804901123046875, -0.01029205322265625, -0.06622314453125, 0.03289794921875, -0.0036754608154296875, 0.01430511474609375, -0.01515960693359375, 0.020111083984375, 0.005603790283203125, -0.0299530029296875, 0.0281829833984375, 0.01041412353515625, 0.034881591796875, -0.0233917236328125, 0.0643310546875, 0.054931640625, 0.009002685546875, -0.006317138671875, 0.0006809234619140625, -0.00820159912109375, 0.0027484893798828125, -0.0299835205078125, 0.017333984375, 0.0001405477523803711, -0.0113372802734375, 0.0184326171875, 0.04730224609375, 0.02886962890625, -0.0287017822265625, 0.01309967041015625, -0.052581787109375, 0.0311431884765625, -0.005878448486328125, 0.01505279541015625, -0.0465087890625, -0.025543212890625, 0.0247039794921875, 0.0133819580078125, 0.0552978515625, 0.033294677734375, -0.01517486572265625, 0.0248260498046875, 0.014129638671875, 0.021881103515625, -0.0008916854858398438, 0.003711700439453125, 0.0204925537109375, 0.04290771484375, 0.0106048583984375, 0.027801513671875, -0.018829345703125, -0.016265869140625, 0.0487060546875, 0.02166748046875, -0.0096435546875, 0.0214691162109375, -0.03021240234375, -0.002529144287109375, -0.0109100341796875, -0.00817108154296875, 0.01145172119140625, 0.048919677734375, -0.0020465850830078125, -0.00009143352508544922, -0.00931549072265625, 0.03363037109375, -0.0231475830078125, 0.001468658447265625, -0.0229949951171875, -0.0015420913696289062, -0.01107025146484375, 0.07550048828125, 0.0093841552734375, 0.032012939453125, -0.0149078369140625, 0.005466461181640625, 0.028656005859375, 0.0196533203125, 0.029144287109375, -0.0130157470703125, -0.000012874603271484375, -0.01824951171875, 0.002063751220703125, -0.0300750732421875, -0.038299560546875, 0.01050567626953125, 0.039703369140625, -0.02984619140625, 0.015838623046875, 0.0242156982421875, -0.006534576416015625, -0.03338623046875, 0.01482391357421875, 0.0135040283203125, -0.029052734375, -0.02105712890625, 0.044769287109375, 0.0179595947265625, 0.0182037353515625, -0.0219879150390625, 0.0310211181640625, -0.0323486328125, -0.00501251220703125, 0.01641845703125, -0.020263671875, -0.016387939453125, -0.0122222900390625, 0.0279541015625, -0.044158935546875, -0.0021648406982421875, -0.0014181137084960938, 0.0330810546875, -0.04632568359375, -0.006206512451171875, 0.063232421875, 0.0021514892578125, 0.068603515625, -0.033172607421875, -0.032867431640625, -0.0191650390625, -0.00577545166015625, 0.032928466796875, 0.005794525146484375, -0.0311126708984375, -0.01413726806640625, -0.01140594482421875, -0.005527496337890625, 0.0012416839599609375, -0.002208709716796875, -0.0198211669921875, -0.02349853515625, 0.0460205078125, 0.030609130859375, 0.00814056396484375, -0.00836181640625, 0.00801849365234375, -0.002727508544921875, -0.0085601806640625, 0.06207275390625, 0.00774383544921875, 0.0413818359375, -0.0251312255859375, 0.014923095703125, -0.010101318359375, -0.00728607177734375, -0.0189056396484375, -0.01132965087890625, -0.01119232177734375, -0.041412353515625, -0.0083465576171875, -0.005458831787109375, -0.01120758056640625, 0.0291290283203125, 0.0264892578125, 0.00801849365234375, -0.01605224609375, -0.003536224365234375, 0.02630615234375, -0.018463134765625, 0.0011167526245117188, -0.0260772705078125, -0.053802490234375, 0.01904296875, -0.008148193359375, 0.043731689453125, 0.005176544189453125, 0.0254974365234375, -0.005466461181640625, -0.0306243896484375, 0.00909423828125, 0.004985809326171875, -0.030548095703125, 0.04998779296875, 0.08587646484375, 0.046173095703125, 0.06585693359375, 0.0255279541015625, 0.0390625, 0.03045654296875, -0.0027408599853515625, 0.0217132568359375, -0.008880615234375, 0.045806884765625, 0.01708984375, 0.04632568359375, 0.0767822265625, 0.00678253173828125, -0.01535797119140625, 0.06488037109375, 0.041015625, -0.0694580078125, 0.0023250579833984375, 0.019012451171875, -0.01030731201171875, 0.0017375946044921875, 0.00640106201171875, 0.00516510009765625, 0.014892578125, -0.0157470703125, -0.0498046875, -0.026153564453125, -0.01097869873046875, -0.0099334716796875, -0.00479888916015625, -0.0189971923828125, 0.0567626953125, 0.006267547607421875, -0.054656982421875, -0.00272369384765625, 0.039520263671875, -0.03082275390625, -0.0301513671875, 0.01433563232421875, -0.01837158203125, 0.0021686553955078125, 0.0030727386474609375, 0.0426025390625, -0.019622802734375, 0.041473388671875, 0.0035610198974609375, -0.0218048095703125, 0.024932861328125, 0.0230560302734375, -0.0293121337890625, 0.0050048828125, 0.00138092041015625, -0.03363037109375, 0.00424957275390625, -0.005100250244140625, -0.00019097328186035156, -0.01129913330078125, 0.01189422607421875, 0.0010976791381835938, -0.031982421875, -0.007373809814453125, 0.00492095947265625, 0.0205841064453125, 0.11834716796875, -0.06317138671875, -0.01538848876953125, 0.023681640625, -0.0308990478515625, -0.0146484375, 0.0160675048828125, -0.01326751708984375, -0.03564453125, -0.02581787109375, -0.0166473388671875, -0.05450439453125, -0.0005249977111816406, -0.0168304443359375, -0.095458984375, 0.1265869140625, 0.0144805908203125, 0.082275390625, 0.01016998291015625, 0.0225982666015625, -0.033203125, -0.0001596212387084961, -0.03631591796875, 0.0594482421875, -0.0029239654541015625, 0.041107177734375, -0.0682373046875, -0.006587982177734375, 0.01013946533203125, 0.045440673828125, 0.035369873046875, 0.011077880859375, -0.0382080078125, -0.0030155181884765625, 0.0701904296875, 0.057830810546875, 0.036529541015625, 0.00418853759765625, 0.039093017578125, 0.0704345703125, 0.068115234375, -0.027557373046875, 0.0362548828125, -0.032012939453125, 0.0033092498779296875, 0.034942626953125, 0.0209197998046875, 0.0247802734375, 0.01392364501953125, -0.033172607421875, -0.037689208984375, 0.009521484375, 0.05657958984375, -0.0750732421875, 0.0330810546875, 0.0067291259765625, 0.046600341796875, -0.07220458984375, -0.039306640625, -0.003116607666015625, 0.04852294921875, 0.018798828125, 0.0017995834350585938, 0.00891876220703125, 0.0070343017578125, 0.058197021484375, 0.0014944076538085938, -0.00531005859375, 0.021697998046875, 0.020263671875, 0.0526123046875, 0.042327880859375, 0.0172576904296875, 0.0091552734375, 0.033355712890625, 0.0665283203125, 0.060546875, -0.0499267578125, 0.0130462646484375, 0.0133819580078125, 0.01383209228515625, 0.0008978843688964844, -0.048065185546875, 0.0184173583984375, -0.04986572265625, -0.026641845703125, -0.0181121826171875, -0.013763427734375, 0.040802001953125, 0.0254974365234375, -0.003795623779296875, -0.07916259765625, 0.0084686279296875, 0.0175018310546875, -0.047454833984375, -0.00008022785186767578, 0.0207672119140625, 0.0880126953125, 0.035675048828125, 0.044403076171875, -0.0576171875, -0.0228271484375, 0.0002758502960205078, 0.030120849609375, 0.006053924560546875, -0.0167236328125, -0.01093292236328125, -0.034820556640625, 0.034515380859375, 0.024169921875, 0.035003662109375, 0.01323699951171875, 0.04376220703125, -0.0219879150390625, -0.0360107421875, 0.00457000732421875, 0.003162384033203125, -0.042266845703125, 0.0262298583984375, -0.03546142578125, 0.0137939453125, -0.0033130645751953125, -0.006153106689453125, -0.01488494873046875, 0.018402099609375, 0.01087188720703125, -0.0294036865234375, 0.036285400390625, -0.010101318359375, 0.005157470703125, 0.00905609130859375, -0.0247344970703125, -0.02099609375, -0.0281829833984375, -0.0300750732421875, -0.0031280517578125, 0.0099334716796875, -0.039886474609375, 0.001018524169921875, 0.04803466796875, 0.0231170654296875, -0.02606201171875, 0.01145172119140625, -0.0011529922485351562, 0.0184326171875, -0.022491455078125, 0.002704620361328125, 0.041595458984375, 0.01461029052734375, 0.0252685546875, -0.052337646484375, -0.045867919921875, -0.00013911724090576172, 0.0290069580078125, -0.01373291015625, 0.0931396484375, -0.0242919921875, 0.00010502338409423828, -0.021331787109375, 0.01192474365234375, -0.0159912109375, -0.0302886962890625, 0.0310516357421875, -0.006237030029296875, 0.007289886474609375, 0.0182342529296875, -0.0284423828125, -0.01104736328125, 0.04156494140625, -0.037109375, -0.0128173828125, -0.0224609375, 0.0269927978515625, -0.0225067138671875, 0.059967041015625, -0.00984954833984375, -0.0565185546875, -0.0271148681640625, 0.033447265625, 0.01299285888671875, 0.0421142578125, -0.02044677734375, 0.0291595458984375, 0.02740478515625, -0.042724609375, 0.0283660888671875, -0.0650634765625, 0.05340576171875, 0.044769287109375, 0.025238037109375, 0.032470703125, 0.0295867919921875, -0.02337646484375, 0.00848388671875, 0.0123138427734375, -0.017669677734375, 0.008392333984375, -0.01556396484375, -0.007781982421875, -0.048583984375, 0.01340484619140625, -0.0173797607421875, 0.003936767578125, -0.032684326171875, 0.0323486328125, 0.01226043701171875, -0.035552978515625, -0.0174407958984375, -0.040008544921875, -0.033233642578125, 0.0066680908203125, -0.048583984375, -0.050567626953125, -0.00838470458984375, -0.00279998779296875, -0.0106353759765625, -0.00958251953125, -0.0181884765625, 0.027252197265625, -0.0217132568359375, 0.030914306640625, -0.061614990234375, 0.003936767578125, -0.0098114013671875, 0.028656005859375, -0.024871826171875, -0.0433349609375, -0.046905517578125, 0.049652099609375, -0.051666259765625, -0.01751708984375, 0.0190582275390625, -0.0102386474609375, -0.02484130859375, -0.03936767578125, -0.01491546630859375, 0.0020351409912109375, -0.011444091796875, -0.04400634765625, -0.019378662109375, 0.013031005859375, 0.027374267578125, -0.057769775390625, -0.011566162109375, -0.0487060546875, 0.03704833984375, -0.02838134765625, -0.0172271728515625, -0.00836944580078125, -0.051971435546875, -0.017120361328125, 0.0022144317626953125, 0.0117645263671875, -0.026123046875, -0.0185089111328125, -0.0156402587890625, -0.0008754730224609375, 0.017608642578125, 0.007228851318359375, -0.0297698974609375, -0.045013427734375, 0.01428985595703125, 0.005428314208984375, 0.04681396484375, 0.00478363037109375, 0.0265350341796875, 0.0145416259765625, 0.0303497314453125, 0.0200042724609375, -0.02239990234375, 0.049285888671875, -0.0169219970703125, 0.029998779296875, 0.05975341796875, -0.0322265625, -0.022308349609375, -0.02325439453125, -0.048431396484375, -0.01287078857421875, -0.068359375, -0.043792724609375, -0.024505615234375, 0.11004638671875, 0.0274658203125, 0.0310516357421875, -0.044525146484375, 0.00034928321838378906, -0.005901336669921875, -0.057891845703125, 0.0179290771484375, 0.0282135009765625, -0.0291290283203125, 0.0251922607421875, -0.0226898193359375, -0.004230499267578125, 0.0010900497436523438, -0.038299560546875, -0.03143310546875, 0.0004875659942626953, -0.0296478271484375, 0.005252838134765625, -0.01171875, -0.013275146484375, 0.0294036865234375, -0.0291595458984375, -0.01898193359375, -0.0005245208740234375, 0.0270233154296875, -0.00904083251953125, -0.01300811767578125, 0.0299835205078125, 0.0160675048828125, -0.0065460205078125, -0.0309600830078125, 0.044342041015625, 0.0268707275390625, 0.021087646484375, -0.038726806640625, -0.0131378173828125, 0.003940582275390625, -0.01447296142578125, -0.0092926025390625, 0.022369384765625, 0.01300811767578125, -0.003082275390625, 0.0699462890625, -0.02117919921875, 0.032806396484375, 0.01065826416015625, 0.0257568359375, -0.01494598388671875, 0.00225830078125, 0.025238037109375, -0.052337646484375, -0.00797271728515625, -0.020355224609375, -0.02825927734375, -0.046356201171875, -0.01076507568359375, -0.0433349609375, -0.00217437744140625, 0.0228424072265625 ]
802f513e4a0fee5069946be323a194c5b356066e
Wordpress Stackexchange Q: Variable use in get_template_part As far as I understand (from the get_template_part codex) get_template_part is just a wrapper round the PHP require function. So if I have a variable that I have create in a page template file e.g. $message, I would have assumed you could directly use that variable in the template part So in template file: <?php $message = 'my message'; get_template_part('messages'); ?> Then in template part messages.php: <?php echo $message; ?> However the echo will display nothing. A: D'oh, it just needs a global as its inside a function. messages.php: <?php global $message; echo $message; ?>
Q: Variable use in get_template_part As far as I understand (from the get_template_part codex) get_template_part is just a wrapper round the PHP require function. So if I have a variable that I have create in a page template file e.g. $message, I would have assumed you could directly use that variable in the template part So in template file: <?php $message = 'my message'; get_template_part('messages'); ?> Then in template part messages.php: <?php echo $message; ?> However the echo will display nothing. A: D'oh, it just needs a global as its inside a function. messages.php: <?php global $message; echo $message; ?> A: Source You can use locate_template to find the template file to include. Bit cleaner than using globals. Ie require(locate_template('messages')); A: If you use locate_template() instead of get_template_part() you can use all variables in that script: <?php include(locate_template('message.php')); ?> <?php echo $message; ?> Echo $message will work.
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:416908", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41610" }
[ -0.032623291015625, -0.03424072265625, -0.0160369873046875, -0.0242919921875, -0.036468505859375, 0.0007309913635253906, -0.01485443115234375, 0.0127105712890625, 0.032470703125, 0.0037860870361328125, -0.042327880859375, -0.0175018310546875, -0.0191802978515625, -0.0012369155883789062, -0.025726318359375, -0.0250091552734375, 0.035400390625, -0.026214599609375, 0.0254974365234375, 0.00951385498046875, 0.0077056884765625, 0.03509521484375, 0.01334381103515625, 0.040557861328125, 0.03411865234375, -0.01251983642578125, 0.0162506103515625, -0.01544189453125, 0.005611419677734375, -0.031707763671875, 0.01678466796875, 0.0253143310546875, 0.033477783203125, 0.004306793212890625, -0.018890380859375, -0.00598907470703125, 0.0210723876953125, -0.005405426025390625, 0.0027008056640625, 0.01280975341796875, 0.0025424957275390625, 0.0037212371826171875, 0.04180908203125, 0.035675048828125, -0.01641845703125, -0.0247039794921875, 0.0030956268310546875, -0.030548095703125, -0.01837158203125, 0.0604248046875, 0.038665771484375, -0.0041046142578125, 0.0325927734375, 0.03741455078125, 0.01018524169921875, -0.0178680419921875, -0.0021724700927734375, -0.005390167236328125, 0.025421142578125, 0.021331787109375, -0.02777099609375, 0.00997161865234375, 0.01534271240234375, -0.04034423828125, 0.038665771484375, -0.032135009765625, -0.02679443359375, 0.0482177734375, -0.038665771484375, 0.020355224609375, 0.048370361328125, -0.0209197998046875, -0.01203155517578125, -0.05450439453125, 0.025665283203125, 0.0079803466796875, 0.011322021484375, -0.01512908935546875, -0.0377197265625, 0.0308990478515625, -0.01016998291015625, -0.025634765625, -0.0111541748046875, -0.00168609619140625, 0.01125335693359375, 0.0301513671875, -0.01806640625, -0.01202392578125, -0.037078857421875, -0.01470947265625, -0.033905029296875, 0.02685546875, -0.021331787109375, -0.0151214599609375, -0.020751953125, -0.011077880859375, 0.00811767578125, 0.040252685546875, -0.02606201171875, 0.021392822265625, -0.024658203125, -0.0222015380859375, 0.02532958984375, -0.03875732421875, -0.0147705078125, 0.06414794921875, 0.005069732666015625, 0.0171966552734375, 0.001800537109375, 0.019744873046875, 0.0213470458984375, -0.02557373046875, -0.0036334991455078125, -0.019073486328125, -0.0247955322265625, -0.001220703125, -0.041961669921875, 0.00243377685546875, 0.0189361572265625, 0.00623321533203125, 0.0233001708984375, 0.0198822021484375, 0.04541015625, -0.01041412353515625, -0.01006317138671875, 0.00433349609375, -0.0296630859375, -0.057342529296875, -0.032470703125, 0.0709228515625, -0.00948333740234375, -0.0034236907958984375, 0.0035762786865234375, -0.006557464599609375, -0.05621337890625, -0.0357666015625, -0.0141143798828125, -0.0290374755859375, 0.026641845703125, -0.0057220458984375, -0.013580322265625, -0.020751953125, 0.045562744140625, -0.014556884765625, -0.0187835693359375, 0.00815582275390625, 0.0299835205078125, 0.00933074951171875, -0.01264190673828125, -0.040496826171875, 0.0113372802734375, 0.002727508544921875, 0.0037994384765625, 0.0311737060546875, 0.0291595458984375, 0.0018711090087890625, 0.0009360313415527344, -0.01192474365234375, 0.0299224853515625, 0.007274627685546875, -0.01335906982421875, -0.0230865478515625, 0.0166168212890625, -0.0239715576171875, -0.037689208984375, 0.0199432373046875, -0.0197296142578125, 0.00262451171875, 0.0119171142578125, -0.00661468505859375, 0.013763427734375, -0.0021724700927734375, -0.001129150390625, 0.0228424072265625, 0.020965576171875, 0.023529052734375, -0.00490570068359375, 0.005924224853515625, 0.0086669921875, -0.01085662841796875, -0.0147857666015625, -0.032470703125, 0.0108184814453125, -0.00965118408203125, -0.049896240234375, 0.0352783203125, -0.0083160400390625, 0.0109405517578125, 0.0272979736328125, 0.0003883838653564453, 0.0176849365234375, 0.031982421875, 0.00908660888671875, 0.044708251953125, 0.0192413330078125, -0.047882080078125, -0.0136871337890625, -0.00547027587890625, -0.0080413818359375, -0.03717041015625, 0.0034160614013671875, -0.00499725341796875, 0.034149169921875, -0.00998687744140625, -0.028228759765625, 0.0036029815673828125, -0.0166015625, 0.02490234375, -0.03814697265625, 0.0157318115234375, 0.03167724609375, -0.00565338134765625, -0.020904541015625, -0.033355712890625, -0.0178070068359375, 0.00994110107421875, -0.01934814453125, 0.0650634765625, 0.006397247314453125, 0.0426025390625, 0.0338134765625, -0.049041748046875, 0.034759521484375, 0.025634765625, 0.01141357421875, 0.043548583984375, -0.057647705078125, 0.01508331298828125, -0.07086181640625, 0.038604736328125, -0.059661865234375, 0.049713134765625, -0.04547119140625, 0.02117919921875, -0.0101165771484375, -0.032379150390625, -0.033935546875, -0.050628662109375, 0.0238800048828125, 0.03961181640625, 0.049102783203125, 0.035308837890625, 0.002574920654296875, -0.031982421875, 0.042449951171875, -0.040496826171875, 0.0207977294921875, -0.05413818359375, 0.0226287841796875, 0.038787841796875, -0.0061187744140625, -0.0174407958984375, 0.001575469970703125, -0.060791015625, -0.0191802978515625, 0.03399658203125, 0.0055084228515625, 0.01184844970703125, -0.03204345703125, 0.03515625, -0.01099395751953125, 0.028472900390625, 0.00827789306640625, 0.004608154296875, 0.0298309326171875, -0.006465911865234375, 0.0267486572265625, 0.01166534423828125, -0.01654052734375, 0.00806427001953125, 0.01309967041015625, -0.0250244140625, 0.0018892288208007812, 0.01025390625, -0.04608154296875, 0.00539398193359375, -0.0088653564453125, 0.01178741455078125, -0.02203369140625, -0.004547119140625, -0.013336181640625, 0.022369384765625, -0.014434814453125, -0.014007568359375, -0.002777099609375, -0.04437255859375, 0.007595062255859375, -0.006900787353515625, 0.059356689453125, 0.0252227783203125, 0.0301055908203125, 0.03216552734375, -0.01495361328125, 0.07440185546875, -0.017303466796875, -0.021392822265625, 0.01357269287109375, 0.0009264945983886719, 0.016510009765625, -0.006824493408203125, -0.00626373291015625, 0.030731201171875, -0.00424957275390625, 0.002506256103515625, 0.0009393692016601562, -0.0085906982421875, 0.0181732177734375, -0.003387451171875, 0.01123046875, -0.0472412109375, 0.0340576171875, 0.057769775390625, 0.006580352783203125, 0.01464080810546875, 0.007686614990234375, -0.03668212890625, -0.00527191162109375, -0.00676727294921875, -0.06866455078125, -0.05078125, 0.0665283203125, -0.09625244140625, -0.006519317626953125, -0.03790283203125, -0.07110595703125, -0.03277587890625, 0.0062408447265625, 0.0030536651611328125, 0.025390625, -0.0037593841552734375, -0.05194091796875, -0.032196044921875, -0.0740966796875, -0.0180816650390625, -0.0174102783203125, 0.01049041748046875, -0.018035888671875, 0.0791015625, -0.01296234130859375, -0.037017822265625, -0.038787841796875, 0.006519317626953125, 0.0146484375, 0.006381988525390625, 0.0301361083984375, -0.028350830078125, 0.00026869773864746094, -0.00021147727966308594, -0.02569580078125, 0.00777435302734375, -0.0116119384765625, -0.04443359375, 0.0020389556884765625, 0.006397247314453125, 0.046630859375, 0.0122528076171875, -0.019134521484375, 0.01152801513671875, 0.0115509033203125, -0.043243408203125, -0.04766845703125, -0.01318359375, -0.065185546875, 0.0277099609375, 0.05828857421875, -0.01092529296875, -0.0171356201171875, 0.007110595703125, -0.002895355224609375, -0.01509857177734375, -0.02691650390625, -0.0198822021484375, 0.06085205078125, 0.0211181640625, 0.0372314453125, 0.018585205078125, 0.01128387451171875, -0.018890380859375, 0.04248046875, 0.016357421875, 0.01183319091796875, -0.003459930419921875, 0.016998291015625, -0.025604248046875, -0.0226898193359375, 0.061492919921875, 0.0273284912109375, 0.004665374755859375, -0.0293731689453125, -0.038330078125, -0.012298583984375, 0.064208984375, -0.019378662109375, -0.045745849609375, 0.01392364501953125, 0.0325927734375, -0.050994873046875, -0.04693603515625, 0.012969970703125, -0.02783203125, -0.0068206787109375, 0.00010061264038085938, 0.0017805099487304688, -0.0022602081298828125, -0.03399658203125, 0.0723876953125, -0.010406494140625, -0.00525665283203125, 0.0027523040771484375, -0.064453125, 0.0110321044921875, 0.01482391357421875, -0.007587432861328125, -0.00007843971252441406, 0.01372528076171875, -0.07379150390625, -0.0178375244140625, -0.01605224609375, -0.01360321044921875, 0.04815673828125, 0.04437255859375, -0.03411865234375, 0.01397705078125, 0.05035400390625, 0.00359344482421875, -0.025665283203125, 0.030548095703125, 0.01052093505859375, -0.0038928985595703125, 0.032440185546875, 0.00960540771484375, -0.002223968505859375, -0.00801849365234375, 0.00455474853515625, -0.04974365234375, 0.006256103515625, 0.00421905517578125, 0.0106658935546875, 0.057281494140625, -0.0413818359375, -0.03985595703125, 0.01042938232421875, 0.028717041015625, 0.00007855892181396484, 0.031494140625, -0.02557373046875, 0.02142333984375, -0.034637451171875, 0.03546142578125, 0.05224609375, -0.039154052734375, 0.00867462158203125, 0.0195465087890625, 0.0234832763671875, -0.046295166015625, -0.0712890625, -0.00789642333984375, 0.0673828125, -0.037689208984375, 0.02618408203125, 0.03662109375, -0.0606689453125, 0.0443115234375, 0.027069091796875, 0.016448974609375, -0.006908416748046875, 0.050323486328125, 0.0001188516616821289, -0.01611328125, 0.0177154541015625, -0.002899169921875, -0.0202178955078125, 0.0193634033203125, -0.0172119140625, -0.0399169921875, -0.0011816024780273438, 0.073974609375, -0.038177490234375, 0.06427001953125, -0.04461669921875, -0.041961669921875, 0.0093841552734375, -0.025909423828125, 0.025360107421875, -0.0106201171875, 0.0208740234375, 0.00814056396484375, 0.0136566162109375, -0.0123291015625, 0.05755615234375, 0.01079559326171875, 0.0181427001953125, 0.006404876708984375, 0.036712646484375, -0.02484130859375, 0.021697998046875, -0.00007581710815429688, 0.00010079145431518555, 0.00018537044525146484, -0.0016012191772460938, -0.03314208984375, -0.000012218952178955078, 0.025665283203125, -0.0118560791015625, -0.01873779296875, 0.031402587890625, 0.017578125, -0.0164947509765625, 0.0213623046875, 0.0127105712890625, -0.03271484375, -0.008056640625, 0.0491943359375, 0.0247650146484375, -0.0110015869140625, -0.036834716796875, 0.08404541015625, -0.01480865478515625, 0.01235198974609375, 0.0024623870849609375, 0.02996826171875, 0.005908966064453125, 0.01093292236328125, 0.0171051025390625, -0.006649017333984375, 0.005649566650390625, -0.023956298828125, -0.0019969940185546875, 0.001071929931640625, 0.010498046875, -0.018585205078125, 0.0311279296875, -0.030548095703125, -0.0284576416015625, 0.0361328125, -0.048492431640625, -0.005756378173828125, 0.03765869140625, 0.0223846435546875, -0.034881591796875, -0.031402587890625, 0.02862548828125, 0.056060791015625, -0.0004949569702148438, -0.0080108642578125, 0.023590087890625, -0.00798797607421875, 0.039520263671875, -0.0155792236328125, 0.016998291015625, -0.00334930419921875, -0.005886077880859375, -0.005512237548828125, -0.015960693359375, 0.0121307373046875, -0.0762939453125, -0.0291595458984375, -0.0257415771484375, -0.00214385986328125, 0.06341552734375, -0.025634765625, 0.0161590576171875, -0.033172607421875, 0.00009065866470336914, 0.0021343231201171875, 0.00627899169921875, 0.03533935546875, 0.027740478515625, -0.048187255859375, -0.004642486572265625, -0.061065673828125, -0.01045989990234375, -0.0771484375, -0.06536865234375, -0.035003662109375, 0.032470703125, -0.017242431640625, 0.0160369873046875, 0.01065826416015625, 0.0261993408203125, 0.0014553070068359375, 0.031646728515625, -0.0088958740234375, 0.0504150390625, 0.0167388916015625, 0.0491943359375, -0.0233612060546875, 0.0296478271484375, 0.00983428955078125, 0.01068878173828125, -0.041046142578125, -0.01403045654296875, 0.032928466796875, 0.009429931640625, -0.017608642578125, -0.056121826171875, 0.02069091796875, -0.0279388427734375, 0.042327880859375, -0.0128936767578125, 0.00597381591796875, -0.0159912109375, 0.01139068603515625, -0.0175323486328125, 0.0219879150390625, -0.033203125, -0.033905029296875, 0.03143310546875, -0.024871826171875, -0.05181884765625, -0.007709503173828125, -0.0361328125, 0.046783447265625, 0.00977325439453125, -0.0010004043579101562, -0.0093994140625, -0.0086517333984375, 0.049224853515625, 0.079833984375, 0.0010919570922851562, 0.042999267578125, 0.01259613037109375, 0.012969970703125, 0.032501220703125, 0.06268310546875, -0.05023193359375, -0.06097412109375, 0.0498046875, 0.0200347900390625, -0.0295562744140625, 0.031494140625, -0.03253173828125, 0.024749755859375, 0.09686279296875, 0.07635498046875, -0.09063720703125, -0.029296875, 0.009979248046875, -0.0399169921875, -0.0193023681640625, -0.020050048828125, -0.00482177734375, -0.03643798828125, 0.0467529296875, 0.01538848876953125, -0.00867462158203125, 0.01369476318359375, -0.0175628662109375, -0.0182952880859375, 0.00583648681640625, 0.060028076171875, 0.01079559326171875, -0.0034332275390625, 0.003368377685546875, -0.0198516845703125, 0.01204681396484375, -0.043426513671875, 0.032379150390625, -0.004688262939453125, 0.005466461181640625, -0.05267333984375, 0.021728515625, -0.0089874267578125, 0.00946807861328125, -0.031829833984375, 0.0172119140625, -0.01419830322265625, 0.0185394287109375, -0.01275634765625, -0.0114593505859375, 0.014678955078125, -0.01554107666015625, -0.0195159912109375, -0.03204345703125, 0.00946044921875, 0.06646728515625, -0.01378631591796875, 0.0198211669921875, 0.01215362548828125, 0.0002644062042236328, -0.00594329833984375, 0.041595458984375, 0.0513916015625, 0.0139617919921875, -0.046875, 0.043121337890625, 0.00925445556640625, -0.031463623046875, -0.00173187255859375, 0.045013427734375, -0.0256195068359375, 0.011749267578125, 0.027252197265625, 0.0123443603515625, -0.04541015625, 0.0014848709106445312, -0.0811767578125, 0.1400146484375, 0.0506591796875, 0.035919189453125, 0.0168609619140625, 0.046661376953125, -0.06494140625, 0.0085906982421875, -0.049835205078125, 0.04608154296875, 0.0243682861328125, 0.08099365234375, -0.0618896484375, -0.01317596435546875, 0.040252685546875, 0.062255859375, 0.0111083984375, -0.006927490234375, 0.04962158203125, 0.00917816162109375, 0.04827880859375, 0.0401611328125, -0.0093841552734375, -0.045166015625, 0.02642822265625, 0.0213165283203125, 0.0333251953125, -0.0292510986328125, 0.025848388671875, -0.036529541015625, 0.00665283203125, 0.050323486328125, -0.0108184814453125, -0.02862548828125, 0.033294677734375, -0.005596160888671875, -0.04095458984375, -0.0016775131225585938, 0.0197906494140625, -0.038299560546875, 0.008514404296875, -0.0082244873046875, -0.01251220703125, -0.01134490966796875, 0.00972747802734375, -0.00926971435546875, 0.0235137939453125, 0.006946563720703125, 0.0269775390625, 0.0096435546875, 0.0012264251708984375, 0.050811767578125, -0.006839752197265625, 0.0042266845703125, 0.0214080810546875, 0.006412506103515625, 0.029571533203125, 0.01142120361328125, 0.030487060546875, -0.035125732421875, 0.01433563232421875, 0.040740966796875, 0.035186767578125, -0.0228729248046875, 0.020477294921875, 0.0005002021789550781, 0.005084991455078125, -0.029205322265625, -0.04119873046875, -0.020111083984375, 0.059600830078125, 0.04473876953125, -0.0275421142578125, 0.0007338523864746094, 0.01922607421875, -0.0002930164337158203, -0.01395416259765625, -0.0168914794921875, -0.01715087890625, 0.01032257080078125, -0.06866455078125, 0.01535797119140625, 0.0036106109619140625, 0.06414794921875, 0.041748046875, 0.01493072509765625, 0.009033203125, -0.039215087890625, -0.0009398460388183594, 0.0017671585083007812, 0.012603759765625, 0.0105133056640625, 0.01526641845703125, 0.051727294921875, -0.0179290771484375, 0.006832122802734375, -0.002628326416015625, -0.03411865234375, 0.0091094970703125, 0.00652313232421875, -0.044342041015625, -0.0260009765625, -0.01910400390625, -0.0258941650390625, 0.057952880859375, -0.027099609375, -0.022369384765625, -0.043121337890625, -0.0452880859375, -0.039154052734375, -0.0166778564453125, 0.01253509521484375, -0.0116119384765625, 0.0261383056640625, -0.007965087890625, -0.021148681640625, 0.005008697509765625, -0.0650634765625, 0.05267333984375, -0.01021575927734375, -0.0180816650390625, 0.00481414794921875, -0.0226898193359375, -0.034576416015625, 0.01015472412109375, 0.034881591796875, -0.0181732177734375, 0.0302734375, -0.001392364501953125, 0.05206298828125, 0.0008535385131835938, -0.045013427734375, -0.0156402587890625, -0.03204345703125, 0.045440673828125, 0.01369476318359375, -0.04583740234375, -0.031280517578125, -0.0262298583984375, 0.040191650390625, 0.032318115234375, 0.004566192626953125, 0.006305694580078125, 0.033477783203125, -0.02374267578125, 0.04266357421875, -0.05047607421875, -0.02166748046875, 0.0455322265625, 0.0399169921875, -0.005802154541015625, -0.037750244140625, -0.06292724609375, 0.06591796875, 0.032318115234375, -0.0154266357421875, 0.051422119140625, 0.0306243896484375, -0.00916290283203125, -0.034454345703125, 0.032012939453125, 0.00395965576171875, -0.00620269775390625, -0.01404571533203125, -0.0071563720703125, 0.0511474609375, 0.07635498046875, 0.003726959228515625, 0.034637451171875, -0.034027099609375, -0.0340576171875, 0.0106964111328125, -0.03729248046875, -0.02301025390625, 0.01580810546875, -0.01336669921875, -0.053680419921875, -0.01300048828125, -0.0308685302734375, -0.0015630722045898438, -0.01407623291015625, 0.0555419921875, -0.02642822265625, -0.029998779296875, 0.03546142578125, -0.02630615234375, 0.0144500732421875, -0.0201568603515625, -0.032928466796875, 0.0214691162109375, 0.021514892578125, -0.031890869140625, -0.0179595947265625, -0.005222320556640625, -0.0160064697265625, -0.0214080810546875, 0.020050048828125, -0.0022182464599609375, -0.00936126708984375, -0.00220489501953125, -0.0030460357666015625, 0.02520751953125, -0.0022869110107421875, 0.0135955810546875, -0.0195159912109375, -0.008880615234375, -0.004241943359375, 0.01486968994140625, -0.036102294921875, 0.0173187255859375, 0.021209716796875, -0.04833984375, 0.008697509765625, -0.0301055908203125, -0.0182342529296875, 0.007663726806640625, 0.03607177734375, 0.061309814453125, 0.001407623291015625, 0.0364990234375, 0.0439453125, 0.003696441650390625, 0.09442138671875, -0.10186767578125, -0.0401611328125, 0.0022830963134765625, -0.018310546875, 0.01226806640625, 0.004962921142578125, 0.005718231201171875, -0.044158935546875, -0.00464630126953125, -0.022430419921875, -0.007419586181640625, -0.01461029052734375, -0.0633544921875, -0.1204833984375, 0.04132080078125, -0.0298309326171875, -0.05047607421875, -0.06707763671875, -0.034820556640625, 0.01214599609375, 0.01555633544921875, -0.0261383056640625, -0.0171051025390625, -0.07501220703125, 0.0521240234375, 0.0275421142578125, -0.00443267822265625, 0.07220458984375, -0.0180816650390625, -0.0643310546875, -0.03216552734375, -0.05694580078125, 0.0070343017578125, -0.04364013671875, 0.005809783935546875, -0.0009813308715820312, 0.00804901123046875, -0.01477813720703125, -0.0458984375, 0.033111572265625, 0.0113067626953125, 0.0029239654541015625, -0.0033359527587890625, 0.007595062255859375, -0.004398345947265625, 0.0233917236328125, 0.00968170166015625, -0.0031757354736328125, -0.021575927734375, 0.0225830078125, 0.0192718505859375, -0.06121826171875, 0.010406494140625, 0.0330810546875, -0.051055908203125, -0.0006947517395019531, 0.00543975830078125, -0.0009016990661621094, 0.0160064697265625, -0.026885986328125, -0.023834228515625, 0.004116058349609375, -0.0231781005859375, -0.0139923095703125, -0.007457733154296875, -0.021026611328125, 0.051849365234375, -0.0194244384765625, 0.0128936767578125, -0.01549530029296875, 0.0290069580078125, 0.033843994140625, 0.022430419921875, 0.028289794921875, 0.04052734375, -0.07421875, -0.010711669921875, 0.0036869049072265625, 0.0389404296875, -0.04071044921875, -0.0261688232421875, -0.0305938720703125, 0.009765625, 0.00965118408203125, -0.005130767822265625, -0.042236328125, 0.06195068359375, 0.0206451416015625, 0.077880859375, -0.00904083251953125, 0.029510498046875, -0.01312255859375, 0.025482177734375, -0.00003314018249511719, 0.0060272216796875, -0.000324249267578125, -0.009002685546875, -0.003520965576171875, 0.01390838623046875, -0.04547119140625, -0.049530029296875, 0.0269775390625, 0.005443572998046875, -0.0081024169921875, 0.0277862548828125 ]
41bc7dc9c90a812d87824ed5732791c210108af4
Wordpress Stackexchange Q: Settings API - changing add_settings_field() output? I'm using Settings API and wondering if there's any way of editing default output of add_settings_field() function? add_settings_field('the_field', 'bar', 'foo', 'page', 'section'); function foo() { echo 'foo'; } Outputs: <table class="form-table"> <tr valign="top"> <th scope="row">bar</th> <td>foo</td> </tr> How to get rid of these table tags and replace them with something else? A: If you look at do_settings_fields() (line 1125, /wp-admin/includes/template.php), you can see that the table information is hardcoded into the the settings API. If you wish to not use the table, you will need to develop your own settings functions.
Q: Settings API - changing add_settings_field() output? I'm using Settings API and wondering if there's any way of editing default output of add_settings_field() function? add_settings_field('the_field', 'bar', 'foo', 'page', 'section'); function foo() { echo 'foo'; } Outputs: <table class="form-table"> <tr valign="top"> <th scope="row">bar</th> <td>foo</td> </tr> How to get rid of these table tags and replace them with something else? A: If you look at do_settings_fields() (line 1125, /wp-admin/includes/template.php), you can see that the table information is hardcoded into the the settings API. If you wish to not use the table, you will need to develop your own settings functions. A: My custom function for this: /** * Prints out one specified field from settings section. * * Based on: * @see do_settings_sections * * @global array $wp_settings_sections Storage array of all settings sections added to admin pages * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections * * @param string $page The slug name of the page whose settings sections you want to output * @param string $field_id Field ID for output */ public static function do_settings_section_field($page, $field_id) { global $wp_settings_sections, $wp_settings_fields; if ( ! isset( $wp_settings_sections[$page] ) ) return; foreach ( (array) $wp_settings_sections[$page] as $section ) { if ( $section['callback'] ) call_user_func( $section['callback'], $section ); if ( ! isset( $wp_settings_fields[$page][$section['id']] ) ) continue; foreach ( (array) $wp_settings_fields[$page][$section['id']] as $field ) { if ( $field['id'] !== $field_id ) continue; call_user_func($field['callback'], $field['args']); } } } You can use this function instead of do_settings_sections(), with the same first arguments and field ID for render as second argument.
wordpress
{ "language": "en", "length": 259, "provenance": "stackexchange_00019.jsonl.gz:416917", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41653" }
[ 0.0117645263671875, 0.01053619384765625, -0.0266571044921875, -0.027313232421875, 0.0179901123046875, -0.0251007080078125, 0.01010894775390625, -0.0135498046875, 0.011199951171875, -0.0081024169921875, -0.009185791015625, -0.0108642578125, -0.037353515625, -0.03692626953125, -0.01456451416015625, -0.043060302734375, 0.02734375, -0.00702667236328125, 0.0277099609375, -0.0035800933837890625, 0.0074462890625, 0.01016998291015625, 0.0010776519775390625, 0.0328369140625, 0.0296783447265625, -0.045989990234375, -0.00801849365234375, -0.00738525390625, -0.0013399124145507812, -0.0209197998046875, 0.00794219970703125, 0.03485107421875, -0.01126861572265625, 0.04351806640625, -0.00965118408203125, 0.04412841796875, 0.06085205078125, 0.00518035888671875, 0.0360107421875, 0.03466796875, 0.0265350341796875, -0.0165863037109375, -0.0251312255859375, -0.0004420280456542969, -0.023895263671875, -0.03509521484375, 0.05230712890625, -0.011260986328125, 0.0012969970703125, -0.01409149169921875, 0.0114593505859375, -0.025787353515625, 0.01959228515625, -0.0360107421875, -0.0282135009765625, -0.029815673828125, 0.005535125732421875, -0.0340576171875, 0.025634765625, 0.00907135009765625, -0.0039825439453125, -0.0021724700927734375, 0.0073089599609375, -0.0218353271484375, 0.00295257568359375, 0.00391387939453125, -0.00704193115234375, 0.0209197998046875, -0.03765869140625, 0.006389617919921875, 0.02496337890625, -0.045501708984375, 0.0004372596740722656, -0.0302581787109375, -0.005458831787109375, -0.002544403076171875, 0.0022563934326171875, -0.0262451171875, 0.00264739990234375, -0.004119873046875, 0.05853271484375, 0.0084686279296875, 0.047027587890625, -0.030853271484375, 0.038726806640625, 0.01198577880859375, 0.014495849609375, -0.0313720703125, 0.029388427734375, -0.0255126953125, 0.0043182373046875, -0.054412841796875, 0.00939178466796875, 0.0118408203125, -0.0085906982421875, -0.0305023193359375, 0.00791168212890625, -0.010955810546875, 0.01641845703125, 0.003627777099609375, 0.0105743408203125, -0.032440185546875, -0.005340576171875, 0.00978851318359375, 0.01288604736328125, 0.0570068359375, -0.0238800048828125, -0.06103515625, 0.023101806640625, 0.0204315185546875, 0.004398345947265625, -0.019805908203125, 0.017730712890625, -0.017822265625, -0.02978515625, -0.0027618408203125, 0.00894927978515625, -0.0224456787109375, -0.0087738037109375, -0.0260162353515625, -0.0158843994140625, -0.00897979736328125, 0.00769805908203125, -0.0078277587890625, 0.0047760009765625, -0.0209503173828125, -0.034820556640625, 0.010955810546875, -0.004474639892578125, -0.01690673828125, -0.03900146484375, 0.005157470703125, 0.08062744140625, 0.07110595703125, 0.052093505859375, -0.007213592529296875, 0.020233154296875, -0.06158447265625, -0.0219268798828125, 0.05023193359375, -0.01549530029296875, -0.0438232421875, -0.0223541259765625, -0.0261077880859375, -0.0196075439453125, -0.0015287399291992188, 0.033843994140625, 0.0341796875, -0.053314208984375, -0.06256103515625, 0.03125, 0.0312042236328125, 0.0238189697265625, -0.0027713775634765625, 0.007022857666015625, -0.0015897750854492188, 0.0110321044921875, -0.01605224609375, -0.0124969482421875, -0.00618743896484375, -0.01175689697265625, -0.0215911865234375, 0.0158233642578125, -0.028778076171875, -0.036712646484375, 0.04522705078125, -0.0435791015625, -0.00655364990234375, 0.0221405029296875, -0.0084686279296875, 0.0287628173828125, -0.003833770751953125, 0.0157928466796875, -0.006618499755859375, 0.0038013458251953125, 0.0022525787353515625, -0.0101165771484375, 0.001232147216796875, 0.024993896484375, -0.018310546875, -0.0304107666015625, -0.041351318359375, 0.0134429931640625, -0.0131988525390625, -0.06005859375, 0.06695556640625, -0.0174560546875, 0.0552978515625, 0.0281829833984375, 0.005825042724609375, 0.00957489013671875, 0.0219879150390625, -0.00872802734375, -0.0115814208984375, 0.0294189453125, -0.021453857421875, -0.0355224609375, -0.035552978515625, 0.0006093978881835938, 0.00025177001953125, -0.0283050537109375, 0.00011014938354492188, 0.00867462158203125, 0.037933349609375, 0.0010395050048828125, 0.0045928955078125, -0.00426483154296875, 0.010467529296875, -0.054840087890625, -0.01052093505859375, 0.0222930908203125, -0.021270751953125, -0.0174102783203125, 0.0181121826171875, -0.01096343994140625, -0.006534576416015625, -0.01013946533203125, 0.0653076171875, 0.01145172119140625, 0.058074951171875, 0.004119873046875, -0.036895751953125, 0.01422119140625, -0.017059326171875, 0.053619384765625, -0.0281982421875, -0.01383209228515625, -0.043548583984375, 0.07061767578125, -0.062042236328125, 0.07098388671875, 0.090087890625, 0.0277557373046875, 0.0404052734375, -0.024200439453125, 0.001735687255859375, 0.0292816162109375, -0.026275634765625, 0.008880615234375, 0.034820556640625, 0.03143310546875, 0.0160980224609375, -0.0171051025390625, -0.02166748046875, 0.055633544921875, 0.016204833984375, 0.021697998046875, -0.035247802734375, 0.029205322265625, 0.022857666015625, -0.04559326171875, -0.053131103515625, 0.03369140625, -0.0885009765625, 0.016082763671875, 0.01488494873046875, -0.052978515625, -0.044403076171875, 0.0341796875, -0.004940032958984375, -0.002532958984375, -0.0660400390625, 0.00933837890625, -0.0469970703125, 0.052215576171875, 0.00991058349609375, 0.034088134765625, 0.02056884765625, -0.0477294921875, 0.0282745361328125, 0.017333984375, -0.0013284683227539062, -0.0136260986328125, 0.01763916015625, -0.01605224609375, -0.01509857177734375, -0.041351318359375, 0.0093536376953125, -0.0123291015625, -0.01178741455078125, -0.0128021240234375, 0.021728515625, -0.042724609375, -0.024658203125, -0.01236724853515625, -0.00608062744140625, -0.009857177734375, -0.0032367706298828125, 0.002712249755859375, 0.035003662109375, 0.027801513671875, 0.0404052734375, -0.006160736083984375, 0.0179901123046875, -0.0159149169921875, 0.01508331298828125, 0.003696441650390625, -0.015838623046875, 0.0235443115234375, -0.031341552734375, 0.019622802734375, 0.049560546875, -0.0255279541015625, 0.0232696533203125, 0.004009246826171875, -0.009765625, 0.0118560791015625, -0.005046844482421875, -0.0111083984375, -0.01529693603515625, -0.0262451171875, 0.0218505859375, 0.043121337890625, 0.032867431640625, -0.00470733642578125, -0.032196044921875, -0.0302734375, 0.042938232421875, -0.0838623046875, -0.06036376953125, 0.038177490234375, -0.031829833984375, -0.038238525390625, -0.016937255859375, -0.04132080078125, 0.0255584716796875, -0.016326904296875, -0.00246429443359375, 0.037567138671875, -0.0171051025390625, 0.004344940185546875, -0.0033416748046875, -0.04925537109375, -0.07293701171875, -0.0062103271484375, -0.01229095458984375, 0.0021305084228515625, 0.0948486328125, -0.0001220703125, -0.06951904296875, -0.038787841796875, -0.05712890625, -0.009552001953125, 0.0042266845703125, 0.036041259765625, -0.037261962890625, 0.0088043212890625, 0.0182647705078125, -0.0008997917175292969, 0.0244293212890625, -0.0109710693359375, -0.036407470703125, -0.0499267578125, 0.0063018798828125, -0.026275634765625, 0.0007410049438476562, 0.051605224609375, -0.018341064453125, -0.0253143310546875, -0.043182373046875, -0.01153564453125, 0.0168304443359375, -0.01422882080078125, -0.00031566619873046875, -0.0271148681640625, -0.01221466064453125, 0.003086090087890625, 0.03466796875, 0.034027099609375, 0.024688720703125, 0.0228271484375, 0.00260162353515625, 0.021392822265625, -0.0198211669921875, -0.0290985107421875, -0.03924560546875, 0.026123046875, -0.032379150390625, -0.0207061767578125, -0.00450897216796875, -0.0017518997192382812, 0.024658203125, -0.07916259765625, -0.0008320808410644531, -0.07171630859375, 0.035919189453125, -0.0487060546875, 0.007686614990234375, -0.020477294921875, -0.00439453125, 0.01381683349609375, 0.10345458984375, -0.042724609375, -0.0123138427734375, 0.004795074462890625, 0.0277557373046875, -0.050689697265625, -0.0491943359375, -0.04254150390625, -0.01062774658203125, -0.01238250732421875, -0.0093994140625, -0.021697998046875, -0.0272064208984375, -0.01454925537109375, 0.0016384124755859375, 0.00138092041015625, -0.01218414306640625, 0.030517578125, 0.03521728515625, 0.0032787322998046875, 0.0123138427734375, 0.0117645263671875, -0.002796173095703125, -0.0012149810791015625, -0.0108489990234375, -0.0631103515625, -0.021392822265625, 0.0211639404296875, 0.0230865478515625, -0.0025653839111328125, -0.049072265625, 0.0211944580078125, 0.055328369140625, -0.01141357421875, -0.036468505859375, 0.02801513671875, 0.0472412109375, -0.0158843994140625, -0.01241302490234375, 0.00189208984375, -0.050506591796875, -0.00902557373046875, 0.01039886474609375, -0.060394287109375, 0.0325927734375, 0.0012369155883789062, 0.0235595703125, 0.0562744140625, -0.04351806640625, -0.03607177734375, -0.0172576904296875, -0.026885986328125, -0.01153564453125, -0.04241943359375, 0.01373291015625, 0.01012420654296875, -0.0321044921875, 0.029815673828125, -0.005908966064453125, -0.0135040283203125, 0.0225372314453125, 0.08892822265625, 0.02392578125, -0.003276824951171875, -0.051849365234375, -0.0145721435546875, 0.0168914794921875, 0.00450897216796875, 0.037200927734375, -0.0129547119140625, -0.01529693603515625, 0.0738525390625, -0.0178680419921875, 0.024658203125, -0.0740966796875, 0.07403564453125, 0.01580810546875, 0.033538818359375, -0.00424957275390625, -0.000010609626770019531, 0.019439697265625, -0.0168609619140625, -0.007503509521484375, -0.004970550537109375, -0.0006384849548339844, 0.0008358955383300781, -0.0066070556640625, 0.0229339599609375, -0.01201629638671875, -0.038787841796875, 0.009002685546875, 0.057830810546875, 0.0206451416015625, 0.028961181640625, 0.0024852752685546875, 0.028656005859375, 0.0022678375244140625, 0.0009136199951171875, -0.01148223876953125, 0.027008056640625, -0.01751708984375, 0.0162353515625, 0.016815185546875, -0.007259368896484375, -0.055572509765625, -0.0126190185546875, 0.045257568359375, -0.00707244873046875, -0.073974609375, 0.03204345703125, -0.0189361572265625, 0.0401611328125, 0.01551055908203125, 0.0204315185546875, 0.04608154296875, 0.00449371337890625, 0.01061248779296875, -0.00371551513671875, 0.00014781951904296875, -0.0176849365234375, -0.032928466796875, 0.006072998046875, 0.0270538330078125, -0.0172119140625, 0.0014429092407226562, 0.04791259765625, -0.00254058837890625, 0.0194244384765625, -0.0182952880859375, 0.01319122314453125, 0.0030384063720703125, 0.00293731689453125, 0.0019435882568359375, 0.0299072265625, 0.0131683349609375, -0.01525115966796875, 0.033294677734375, -0.031768798828125, -0.016876220703125, 0.05169677734375, 0.032318115234375, 0.00875091552734375, -0.00800323486328125, -0.00412750244140625, -0.0021686553955078125, -0.005970001220703125, 0.0034236907958984375, -0.057373046875, -0.059051513671875, -0.0016813278198242188, 0.052459716796875, 0.01873779296875, -0.048980712890625, 0.00411224365234375, 0.0291290283203125, -0.0274810791015625, 0.006336212158203125, 0.004383087158203125, -0.01611328125, -0.04595947265625, -0.03826904296875, -0.08404541015625, -0.0151214599609375, -0.00971221923828125, -0.07220458984375, -0.086669921875, 0.037933349609375, 0.0005750656127929688, -0.01308441162109375, -0.035919189453125, 0.037933349609375, -0.032196044921875, 0.004840850830078125, -0.03497314453125, -0.00009363889694213867, 0.052978515625, 0.039764404296875, -0.07525634765625, 0.003154754638671875, -0.03387451171875, -0.0121307373046875, -0.0281829833984375, -0.0308990478515625, -0.049468994140625, 0.0012521743774414062, 0.01561737060546875, 0.01763916015625, -0.01316070556640625, -0.03741455078125, -0.002490997314453125, 0.01259613037109375, 0.023223876953125, 0.0291290283203125, 0.007457733154296875, 0.08685302734375, -0.033538818359375, 0.06439208984375, 0.01270294189453125, 0.028900146484375, -0.05572509765625, -0.006969451904296875, 0.04412841796875, -0.036285400390625, -0.0560302734375, -0.0270233154296875, -0.056396484375, 0.009429931640625, 0.034332275390625, -0.0210418701171875, 0.023590087890625, -0.007686614990234375, 0.00614166259765625, -0.020233154296875, 0.027191162109375, -0.0306396484375, 0.009765625, 0.01378631591796875, 0.01505279541015625, 0.03875732421875, -0.0262298583984375, -0.006649017333984375, 0.008636474609375, -0.003063201904296875, 0.0207061767578125, -0.0015583038330078125, -0.0626220703125, 0.03924560546875, 0.049530029296875, 0.0177459716796875, 0.020294189453125, -0.016265869140625, -0.0029811859130859375, 0.01238250732421875, 0.0161590576171875, -0.00974273681640625, 0.00010055303573608398, 0.0419921875, 0.01202392578125, -0.028717041015625, 0.0226287841796875, -0.04083251953125, 0.037200927734375, 0.05316162109375, 0.07000732421875, -0.09283447265625, 0.021087646484375, 0.0008907318115234375, 0.01412200927734375, 0.09332275390625, 0.0153961181640625, -0.016143798828125, -0.044342041015625, 0.01117706298828125, -0.00676727294921875, -0.002048492431640625, 0.0175018310546875, 0.0023822784423828125, -0.0186920166015625, -0.0210723876953125, 0.004352569580078125, 0.01397705078125, 0.028839111328125, 0.0193939208984375, -0.02423095703125, 0.01300811767578125, 0.005298614501953125, 0.02508544921875, -0.0022411346435546875, -0.0193023681640625, -0.06707763671875, 0.010589599609375, -0.01398468017578125, -0.03839111328125, -0.01421356201171875, -0.0159454345703125, 0.03216552734375, 0.06268310546875, -0.031402587890625, 0.0235748291015625, 0.01319122314453125, 0.044219970703125, -0.01812744140625, -0.017303466796875, 0.002262115478515625, 0.0301361083984375, -0.0270843505859375, 0.0250091552734375, -0.01052093505859375, -0.002880096435546875, -0.01242828369140625, 0.025299072265625, 0.07958984375, -0.0298004150390625, -0.02691650390625, 0.01617431640625, 0.0167388916015625, 0.00908660888671875, 0.0020694732666015625, -0.0029315948486328125, -0.04876708984375, -0.050506591796875, -0.01303863525390625, -0.0850830078125, 0.0172576904296875, -0.029998779296875, -0.06036376953125, 0.130126953125, 0.014312744140625, 0.00653839111328125, -0.00469207763671875, 0.055450439453125, -0.05078125, 0.033660888671875, -0.03546142578125, 0.0377197265625, 0.05224609375, 0.0243072509765625, -0.05413818359375, -0.0372314453125, -0.0139923095703125, 0.0635986328125, 0.030181884765625, 0.0040283203125, 0.01502227783203125, -0.0146636962890625, 0.004695892333984375, -0.018798828125, -0.04644775390625, 0.0333251953125, -0.030364990234375, 0.02490234375, 0.0126190185546875, -0.0654296875, 0.008941650390625, -0.0105743408203125, -0.032684326171875, -0.0020999908447265625, 0.009979248046875, 0.0094146728515625, -0.031402587890625, 0.0263671875, 0.0081939697265625, -0.039154052734375, -0.00452423095703125, -0.072998046875, -0.0036983489990234375, 0.0235748291015625, 0.0192718505859375, -0.030242919921875, 0.0158233642578125, -0.0305633544921875, 0.0389404296875, 0.01500701904296875, 0.013946533203125, 0.004032135009765625, -0.003154754638671875, 0.0203399658203125, -0.00911712646484375, -0.0041046142578125, 0.0156097412109375, 0.006862640380859375, 0.05169677734375, 0.0123138427734375, 0.01342010498046875, -0.037017822265625, 0.0223846435546875, -0.00345611572265625, 0.050506591796875, -0.049713134765625, -0.0159912109375, 0.01238250732421875, 0.004779815673828125, 0.00714111328125, -0.039794921875, 0.007572174072265625, -0.053680419921875, -0.01312255859375, -0.0288848876953125, 0.015228271484375, 0.0241851806640625, 0.006412506103515625, 0.0033283233642578125, 0.0251617431640625, -0.05426025390625, -0.00193023681640625, -0.04803466796875, 0.016448974609375, 0.00010484457015991211, 0.04156494140625, 0.031341552734375, 0.038818359375, 0.0023593902587890625, -0.027313232421875, -0.04461669921875, -0.00507354736328125, 0.00635528564453125, 0.04022216796875, -0.0377197265625, 0.01412200927734375, -0.01331329345703125, 0.0278472900390625, -0.014801025390625, 0.0240325927734375, 0.033233642578125, 0.020904541015625, -0.048858642578125, -0.00846099853515625, 0.0287933349609375, -0.038482666015625, -0.007183074951171875, -0.033416748046875, 0.009368896484375, 0.0202484130859375, 0.005580902099609375, 0.0207672119140625, -0.00379180908203125, 0.03546142578125, -0.0310516357421875, 0.055145263671875, -0.0113983154296875, 0.00989532470703125, 0.0295867919921875, 0.0195465087890625, 0.0241241455078125, 0.01525115966796875, -0.0592041015625, 0.005306243896484375, -0.035614013671875, -0.09100341796875, 0.01947021484375, 0.03857421875, -0.032470703125, 0.0164642333984375, -0.00934600830078125, -0.00426483154296875, -0.014984130859375, -0.0011434555053710938, 0.020721435546875, 0.004596710205078125, 0.008636474609375, -0.0030384063720703125, 0.012603759765625, -0.003086090087890625, -0.009002685546875, 0.04833984375, 0.0261993408203125, 0.04217529296875, -0.0245819091796875, 0.03594970703125, -0.0193634033203125, 0.01934814453125, -0.0028438568115234375, -0.029083251953125, 0.085693359375, 0.0151214599609375, -0.007648468017578125, -0.02447509765625, -0.019866943359375, 0.040008544921875, 0.0421142578125, -0.022216796875, 0.052947998046875, 0.004611968994140625, 0.0031948089599609375, -0.06622314453125, 0.002414703369140625, -0.01161956787109375, -0.0208282470703125, 0.005329132080078125, 0.01104736328125, 0.006526947021484375, 0.034576416015625, 0.034332275390625, -0.00026869773864746094, 0.07421875, 0.013092041015625, 0.00344085693359375, 0.0350341796875, 0.047027587890625, 0.042022705078125, -0.0204010009765625, 0.025238037109375, -0.04010009765625, -0.039703369140625, 0.0285797119140625, -0.0005517005920410156, -0.01326751708984375, -0.00440216064453125, 0.020233154296875, -0.00684356689453125, 0.0105133056640625, 0.0266571044921875, -0.0246124267578125, 0.003246307373046875, 0.019287109375, 0.00580596923828125, 0.009033203125, 0.0645751953125, -0.01148223876953125, 0.007099151611328125, -0.01116943359375, 0.0012960433959960938, 0.005584716796875, -0.045623779296875, -0.07861328125, 0.0156097412109375, 0.039825439453125, -0.01727294921875, -0.0194549560546875, -0.00728607177734375, -0.0178985595703125, 0.054046630859375, 0.00853729248046875, -0.021484375, 0.01043701171875, 0.0271148681640625, -0.025787353515625, -0.040679931640625, -0.039947509765625, 0.0164794921875, -0.0400390625, 0.006389617919921875, 0.01580810546875, 0.0026302337646484375, 0.0186767578125, 0.0251617431640625, -0.0007109642028808594, 0.08612060546875, -0.041107177734375, -0.01776123046875, 0.010955810546875, 0.0027637481689453125, -0.0279541015625, -0.06610107421875, 0.003543853759765625, -0.0653076171875, 0.0088653564453125, -0.01171875, -0.0145416259765625, 0.0010204315185546875, -0.044403076171875, -0.0787353515625, 0.017822265625, -0.008087158203125, -0.03009033203125, 0.0133819580078125, -0.0272064208984375, -0.021484375, 0.04620361328125, -0.00136566162109375, 0.0211944580078125, -0.0031337738037109375, 0.0230712890625, -0.0009407997131347656, 0.0189056396484375, 0.02996826171875, -0.016571044921875, -0.057098388671875, -0.0198516845703125, -0.0404052734375, 0.01171875, 0.008392333984375, -0.003452301025390625, -0.002582550048828125, 0.01029205322265625, -0.052398681640625, -0.04754638671875, -0.0189361572265625, 0.027069091796875, 0.0023250579833984375, 0.00783538818359375, -0.049957275390625, -0.01013946533203125, 0.060272216796875, 0.08868408203125, 0.034942626953125, -0.0248565673828125, -0.0298309326171875, -0.0200653076171875, 0.012542724609375, -0.028533935546875, -0.0144805908203125, -0.05029296875, -0.0025310516357421875, -0.0185394287109375, -0.0101470947265625, -0.013336181640625, 0.025054931640625, -0.01401519775390625, 0.002490997314453125, 0.07421875, 0.00673675537109375, -0.01641845703125, -0.0311431884765625, 0.027801513671875, -0.0278778076171875, -0.00237274169921875, -0.017578125, 0.036468505859375, -0.003795623779296875, -0.007030487060546875, -0.0081634521484375, -0.03125, -0.012664794921875, 0.02325439453125, -0.0016298294067382812, 0.039886474609375, -0.039886474609375, -0.01171112060546875, 0.00635528564453125, 0.01078033447265625, -0.016357421875, -0.0042572021484375, -0.022674560546875, 0.0469970703125, -0.00943756103515625, 0.08160400390625, -0.00872039794921875, 0.01776123046875, -0.020477294921875, 0.025909423828125, 0.00982666015625, -0.00568389892578125, 0.0166778564453125, 0.007144927978515625, -0.0024509429931640625, -0.0260772705078125, 0.035736083984375, -0.06903076171875, 0.0657958984375, -0.032470703125, 0.01032257080078125, 0.0604248046875 ]
17dc0257b04208ba02e2110185c46410ee25bc98
Wordpress Stackexchange Q: Pasting code into pre-formatted text in Visual Editor not working in 3.3.1 Pre-formatted text in the Visual Editor is not behaving like I'm used to. I've got an old installation (3.2.1), and when create pre-formatted text, all the line-breaks and spacing is preserved. In the latest version (3.3.1), the line breaks are interpreted as new paragraphs, and the code is broken across those paragraphs, leading spaces removed. Process: * *Copy code from text editor. *Click on the "New Post" link. *Choose "Preformatted" from the format menu. *Paste (ctrl-v). 3.2.1 - Correctly formatted code 3.3.1 - Incorrectly formatted code I know I can switch to code view and put tags in myself, but I'm not looking for a workaround. A: When you paste your code, TinyMCE (the visual editor) automatically switches back to paragraph mode because that's the default for the editor. You have to highlight you pasted code and re-select "preformatted" to get it to be tagged correctly. Also, TinyMCE always closes tags when you press enter. If you want to go to a new line without closing a tag, press shift + enter instead.
Q: Pasting code into pre-formatted text in Visual Editor not working in 3.3.1 Pre-formatted text in the Visual Editor is not behaving like I'm used to. I've got an old installation (3.2.1), and when create pre-formatted text, all the line-breaks and spacing is preserved. In the latest version (3.3.1), the line breaks are interpreted as new paragraphs, and the code is broken across those paragraphs, leading spaces removed. Process: * *Copy code from text editor. *Click on the "New Post" link. *Choose "Preformatted" from the format menu. *Paste (ctrl-v). 3.2.1 - Correctly formatted code 3.3.1 - Incorrectly formatted code I know I can switch to code view and put tags in myself, but I'm not looking for a workaround. A: When you paste your code, TinyMCE (the visual editor) automatically switches back to paragraph mode because that's the default for the editor. You have to highlight you pasted code and re-select "preformatted" to get it to be tagged correctly. Also, TinyMCE always closes tags when you press enter. If you want to go to a new line without closing a tag, press shift + enter instead. A: I didn't have any luck with changing format to/from/back-to "preformatted" after pasting the text. What does work for me (on windows in firefox) is pasting the text with Ctrl-Shift-V rather than Ctrl-V. Now my leading code-indentation spaces are preserved after pasting text. I haven't tried this in other browsers. A: My personal solution is to paste the code firstly into MS.Word where it keeps the format/indents as well, then mark & copy them, paste then to Wordpress, afterwards mark them and change to preformatted. This works for me with macOS & Firefox.
wordpress
{ "language": "en", "length": 279, "provenance": "stackexchange_00019.jsonl.gz:416921", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41663" }
[ 0.017730712890625, -0.035888671875, 0.027069091796875, -0.004154205322265625, -0.03680419921875, -0.0025043487548828125, -0.002681732177734375, -0.032989501953125, 0.04229736328125, 0.0330810546875, -0.0198822021484375, -0.0109405517578125, 0.003116607666015625, -0.0169677734375, -0.04217529296875, -0.00864410400390625, 0.034820556640625, -0.048614501953125, -0.0074005126953125, -0.0125732421875, -0.0101165771484375, 0.020172119140625, 0.012969970703125, 0.01181793212890625, 0.0296173095703125, 0.018463134765625, 0.0178070068359375, 0.00534820556640625, 0.03375244140625, 0.008331298828125, 0.02386474609375, -0.050872802734375, 0.0244903564453125, 0.059356689453125, -0.061126708984375, 0.1004638671875, -0.02813720703125, 0.03948974609375, 0.0102996826171875, 0.0123443603515625, 0.01476287841796875, -0.00858306884765625, 0.0212554931640625, 0.011260986328125, -0.0062408447265625, -0.010284423828125, 0.012054443359375, -0.0266265869140625, 0.006122589111328125, -0.042327880859375, -0.00379180908203125, 0.00864410400390625, 0.0200653076171875, -0.035247802734375, -0.00952911376953125, 0.02056884765625, -0.07562255859375, -0.0119781494140625, -0.006092071533203125, 0.07781982421875, 0.06561279296875, -0.00447845458984375, -0.0178375244140625, -0.0168914794921875, -0.00494384765625, -0.020599365234375, -0.039947509765625, 0.0035247802734375, 0.050689697265625, 0.0201416015625, -0.00705718994140625, 0.00710296630859375, 0.0361328125, -0.032135009765625, 0.0146942138671875, 0.03021240234375, -0.036224365234375, 0.0223541259765625, 0.040252685546875, -0.0283355712890625, 0.024871826171875, -0.002605438232421875, 0.005977630615234375, -0.05340576171875, 0.002681732177734375, -0.05426025390625, -0.00362396240234375, 0.01381683349609375, -0.038665771484375, -0.00971221923828125, -0.0249481201171875, -0.045318603515625, -0.012115478515625, 0.003902435302734375, -0.0231170654296875, -0.00846099853515625, -0.02178955078125, -0.00417327880859375, -0.0347900390625, 0.05712890625, -0.019378662109375, -0.025970458984375, 0.07977294921875, -0.044769287109375, 0.0325927734375, 0.01076507568359375, -0.0089874267578125, -0.01175689697265625, 0.05120849609375, 0.0286712646484375, -0.0085601806640625, 0.043731689453125, -0.01486968994140625, -0.021209716796875, -0.0240325927734375, 0.032135009765625, -0.0173187255859375, 0.003849029541015625, -0.0062713623046875, 0.031646728515625, -0.0001976490020751953, 0.039825439453125, -0.045440673828125, -0.027496337890625, -0.0144805908203125, -0.0289459228515625, 0.0017271041870117188, 0.0029239654541015625, 0.048736572265625, -0.005401611328125, -0.0291748046875, 0.03265380859375, 0.03912353515625, 0.01508331298828125, -0.006267547607421875, 0.0011444091796875, 0.01346588134765625, -0.0173797607421875, -0.0205230712890625, 0.020050048828125, -0.0182647705078125, -0.0362548828125, 0.0022640228271484375, -0.034820556640625, -0.005252838134765625, 0.051300048828125, 0.01580810546875, -0.008575439453125, -0.01351165771484375, -0.04705810546875, 0.01355743408203125, -0.06585693359375, 0.07757568359375, -0.0277557373046875, -0.0226593017578125, -0.0821533203125, 0.0247802734375, -0.047393798828125, -0.0009379386901855469, -0.080078125, 0.009521484375, 0.0004801750183105469, 0.01641845703125, -0.08984375, -0.07147216796875, -0.02264404296875, -0.095947265625, -0.01433563232421875, 0.0210418701171875, 0.0268096923828125, -0.0204925537109375, 0.01102447509765625, 0.0272674560546875, -0.00970458984375, -0.0206451416015625, -0.0041656494140625, 0.00959014892578125, -0.0169830322265625, 0.03729248046875, 0.01346588134765625, 0.0002027750015258789, -0.008453369140625, 0.050262451171875, 0.00444793701171875, -0.04443359375, -0.0389404296875, 0.03057861328125, 0.07098388671875, 0.0232696533203125, 0.029693603515625, 0.022796630859375, -0.040496826171875, 0.01019287109375, -0.0243682861328125, -0.00867462158203125, -0.029388427734375, 0.0015764236450195312, 0.0010623931884765625, -0.017303466796875, 0.00397491455078125, -0.005870819091796875, 0.01029205322265625, 0.0014667510986328125, 0.0020904541015625, -0.00756072998046875, 0.00035881996154785156, 0.0077362060546875, 0.01849365234375, -0.0157623291015625, -0.026092529296875, 0.00844573974609375, -0.052947998046875, 0.0230560302734375, -0.0103302001953125, -0.004581451416015625, 0.0288543701171875, -0.0300750732421875, 0.024749755859375, 0.01910400390625, 0.011383056640625, 0.042572021484375, -0.01166534423828125, 0.054718017578125, 0.005924224853515625, -0.050567626953125, -0.01166534423828125, -0.029754638671875, 0.005863189697265625, -0.047149658203125, -0.0222930908203125, 0.06976318359375, 0.026580810546875, 0.0731201171875, 0.045989990234375, -0.07318115234375, -0.01654052734375, -0.036102294921875, 0.0254364013671875, -0.00994110107421875, 0.0390625, 0.043243408203125, 0.0260009765625, -0.0022068023681640625, -0.0435791015625, 0.0606689453125, -0.042266845703125, 0.006153106689453125, -0.040496826171875, 0.01727294921875, 0.047821044921875, -0.00079345703125, -0.0304412841796875, 0.004547119140625, -0.0556640625, -0.00420379638671875, 0.027099609375, -0.0088653564453125, -0.0234375, -0.0027751922607421875, 0.0090179443359375, 0.01255035400390625, 0.015655517578125, 0.0015773773193359375, -0.006744384765625, -0.02197265625, 0.0235595703125, 0.0272369384765625, 0.0399169921875, -0.036102294921875, -0.01010894775390625, 0.021759033203125, 0.10052490234375, -0.01432037353515625, 0.0290069580078125, -0.0209808349609375, 0.0191497802734375, -0.03790283203125, 0.0175323486328125, -0.007083892822265625, 0.0018301010131835938, -0.0160064697265625, 0.033905029296875, -0.02203369140625, -0.01654052734375, 0.008056640625, -0.025146484375, -0.01849365234375, -0.0396728515625, 0.03436279296875, 0.0112152099609375, 0.0162506103515625, 0.036224365234375, 0.005138397216796875, 0.029815673828125, -0.0031414031982421875, 0.002079010009765625, 0.0418701171875, 0.020355224609375, 0.020660400390625, -0.02008056640625, 0.033782958984375, 0.0279693603515625, -0.05133056640625, 0.0279541015625, 0.02032470703125, -0.01537322998046875, -0.0114593505859375, 0.07208251953125, 0.042633056640625, -0.0152130126953125, -0.046112060546875, -0.001247406005859375, 0.03668212890625, 0.0670166015625, -0.0172576904296875, -0.049407958984375, -0.01338958740234375, 0.035888671875, -0.027435302734375, -0.01690673828125, -0.01116943359375, -0.056427001953125, -0.0280609130859375, -0.009033203125, -0.055755615234375, 0.0236663818359375, 0.0187530517578125, -0.00009894371032714844, 0.046356201171875, -0.0209197998046875, -0.033294677734375, 0.006122589111328125, -0.04547119140625, -0.01204681396484375, -0.006443023681640625, -0.006317138671875, 0.004062652587890625, 0.0238189697265625, -0.0018138885498046875, -0.022125244140625, 0.0210723876953125, -0.0582275390625, -0.01203155517578125, 0.01947021484375, -0.01259613037109375, -0.0462646484375, 0.038238525390625, -0.006603240966796875, -0.035888671875, -0.00022101402282714844, 0.02642822265625, -0.01548004150390625, 0.010223388671875, -0.01558685302734375, 0.0360107421875, 0.0270538330078125, -0.040313720703125, 0.023468017578125, 0.060760498046875, -0.0263214111328125, -0.00707244873046875, 0.01910400390625, -0.0155487060546875, 0.045318603515625, -0.0012731552124023438, -0.0289764404296875, 0.0256195068359375, 0.0260772705078125, -0.0252838134765625, 0.0260467529296875, 0.036224365234375, -0.015716552734375, 0.0003826618194580078, -0.040618896484375, -0.055908203125, -0.0308990478515625, -0.0011568069458007812, -0.02105712890625, 0.05499267578125, 0.0009984970092773438, 0.049560546875, 0.0137176513671875, 0.0218353271484375, 0.007297515869140625, -0.0032806396484375, 0.0216827392578125, -0.0239105224609375, 0.0166168212890625, -0.021636962890625, -0.0186614990234375, -0.01776123046875, 0.05413818359375, -0.0222015380859375, -0.01300811767578125, -0.0006103515625, 0.006435394287109375, -0.003871917724609375, -0.0006241798400878906, -0.03253173828125, -0.00962066650390625, 0.0189208984375, 0.0014886856079101562, -0.007274627685546875, 0.007190704345703125, -0.0297393798828125, 0.0293121337890625, 0.02520751953125, -0.01007843017578125, 0.0458984375, -0.0028896331787109375, -0.00479888916015625, -0.00988006591796875, -0.028076171875, -0.0297393798828125, -0.0288848876953125, 0.0019521713256835938, -0.08062744140625, 0.0003952980041503906, -0.0323486328125, 0.03497314453125, 0.022857666015625, -0.0411376953125, -0.0160675048828125, 0.04168701171875, 0.0391845703125, 0.0105438232421875, 0.0037364959716796875, -0.01459503173828125, -0.008056640625, -0.0377197265625, -0.00775909423828125, -0.063720703125, -0.03631591796875, -0.0040740966796875, -0.02374267578125, -0.0182647705078125, -0.004978179931640625, -0.0799560546875, 0.04388427734375, -0.0306243896484375, -0.0482177734375, -0.0245208740234375, -0.0119171142578125, -0.046356201171875, 0.0014333724975585938, -0.0232086181640625, 0.0087890625, -0.0026073455810546875, 0.0050201416015625, -0.020233154296875, 0.0245208740234375, 0.003063201904296875, 0.08367919921875, 0.01068115234375, 0.0097198486328125, 0.021728515625, 0.0328369140625, 0.04168701171875, 0.00988006591796875, -0.0404052734375, -0.053314208984375, -0.0537109375, 0.04254150390625, 0.0017633438110351562, 0.0028133392333984375, -0.045654296875, 0.026702880859375, -0.0196990966796875, -0.0118255615234375, -0.0050048828125, -0.038116455078125, 0.06298828125, 0.01093292236328125, 0.0084228515625, -0.01520538330078125, 0.01401519775390625, 0.052886962890625, 0.033294677734375, -0.052093505859375, -0.052825927734375, -0.053619384765625, 0.0125579833984375, 0.06610107421875, 0.0236053466796875, -0.0038814544677734375, 0.01515960693359375, 0.023529052734375, 0.01751708984375, -0.023345947265625, -0.00818634033203125, 0.0184478759765625, -0.002655029296875, 0.0296630859375, -0.045928955078125, -0.04730224609375, -0.0218658447265625, -0.01195526123046875, -0.0030765533447265625, 0.009552001953125, -0.013671875, -0.0119476318359375, -0.0034275054931640625, 0.033660888671875, 0.0063629150390625, 0.04742431640625, 0.0134429931640625, 0.0277862548828125, -0.01560211181640625, 0.0020542144775390625, 0.07470703125, -0.0034389495849609375, -0.01513671875, -0.07281494140625, -0.0137481689453125, -0.03057861328125, -0.01221466064453125, 0.01776123046875, -0.004192352294921875, -0.0033721923828125, -0.01438140869140625, 0.00007522106170654297, -0.00907135009765625, 0.030792236328125, 0.0218963623046875, -0.00008732080459594727, -0.0083770751953125, 0.02398681640625, 0.0026035308837890625, -0.0193023681640625, -0.0189971923828125, -0.003513336181640625, 0.00804901123046875, 0.025634765625, 0.01343536376953125, 0.0267333984375, 0.00023818016052246094, 0.0085906982421875, -0.0263824462890625, -0.019439697265625, -0.01480865478515625, -0.0026035308837890625, 0.0005383491516113281, -0.0030612945556640625, -0.005863189697265625, 0.0207061767578125, 0.00907135009765625, -0.0328369140625, -0.006542205810546875, -0.00592041015625, 0.01372528076171875, -0.056182861328125, -0.046051025390625, 0.017791748046875, -0.00836181640625, -0.044403076171875, 0.001979827880859375, -0.00731658935546875, -0.00437164306640625, -0.011260986328125, 0.035430908203125, -0.04815673828125, -0.016876220703125, -0.0246124267578125, 0.03302001953125, -0.072509765625, 0.0209197998046875, 0.0299835205078125, 0.0347900390625, -0.038238525390625, -0.011383056640625, -0.054290771484375, -0.03656005859375, -0.0182037353515625, -0.00001728534698486328, -0.05767822265625, 0.0032196044921875, -0.00293731689453125, 0.0027484893798828125, 0.01763916015625, 0.0222930908203125, -0.0041656494140625, 0.05926513671875, 0.0077667236328125, 0.0712890625, 0.0103759765625, 0.036956787109375, -0.0372314453125, 0.06646728515625, -0.013580322265625, -0.02911376953125, -0.045562744140625, 0.0007266998291015625, 0.005420684814453125, -0.0377197265625, -0.007686614990234375, -0.0119476318359375, 0.006244659423828125, 0.00955963134765625, 0.017608642578125, 0.005489349365234375, -0.01160430908203125, 0.007312774658203125, 0.01064300537109375, -0.0191192626953125, 0.027374267578125, 0.03741455078125, -0.004261016845703125, 0.0028324127197265625, 0.004154205322265625, 0.01580810546875, -0.0018396377563476562, 0.0222015380859375, -0.02484130859375, 0.004383087158203125, -0.01160430908203125, -0.038299560546875, 0.02142333984375, -0.03594970703125, -0.0265045166015625, -0.0008754730224609375, 0.0037384033203125, -0.00690460205078125, 0.0223846435546875, -0.007328033447265625, -0.0186614990234375, 0.02996826171875, 0.032958984375, 0.033355712890625, -0.0185546875, -0.021026611328125, 0.01168060302734375, -0.03240966796875, 0.038421630859375, 0.0714111328125, 0.07525634765625, -0.068115234375, -0.002025604248046875, 0.017364501953125, -0.054443359375, 0.006076812744140625, 0.027984619140625, 0.00789642333984375, -0.03173828125, 0.0310211181640625, 0.0070037841796875, 0.03240966796875, 0.0330810546875, 0.0074005126953125, -0.00943756103515625, -0.0202484130859375, 0.0130462646484375, 0.00621795654296875, -0.031768798828125, 0.00807952880859375, 0.0237884521484375, 0.0015001296997070312, -0.028472900390625, 0.002315521240234375, -0.028350830078125, -0.03131103515625, -0.06500244140625, -0.0252532958984375, -0.0050811767578125, 0.0013189315795898438, -0.031280517578125, -0.011199951171875, -0.01384735107421875, 0.040435791015625, -0.048370361328125, 0.0160980224609375, 0.03424072265625, -0.0257720947265625, 0.038665771484375, 0.0043792724609375, 0.01263427734375, 0.057891845703125, -0.0169830322265625, 0.00955963134765625, 0.0138702392578125, 0.0157623291015625, -0.01073455810546875, -0.0168304443359375, 0.0255279541015625, -0.0225372314453125, -0.02099609375, 0.0219879150390625, -0.0234832763671875, 0.006206512451171875, -0.028228759765625, -0.059844970703125, -0.0455322265625, 0.006572723388671875, -0.0582275390625, -0.031982421875, 0.04962158203125, -0.044281005859375, -0.07208251953125, 0.09783935546875, 0.068603515625, -0.007633209228515625, -0.049102783203125, 0.062286376953125, -0.0252838134765625, 0.034271240234375, -0.0229339599609375, 0.048614501953125, -0.03594970703125, 0.023681640625, -0.046539306640625, -0.0155792236328125, 0.0190582275390625, 0.04937744140625, 0.015289306640625, -0.0108795166015625, -0.017364501953125, 0.033233642578125, 0.0740966796875, 0.0247955322265625, 0.00131988525390625, 0.01078033447265625, 0.002506256103515625, -0.0279388427734375, -0.008514404296875, -0.00919342041015625, 0.02435302734375, -0.0239105224609375, -0.04364013671875, 0.01204681396484375, -0.01419830322265625, -0.03369140625, 0.00022780895233154297, -0.021026611328125, -0.0128021240234375, -0.00243377685546875, -0.0093231201171875, -0.04364013671875, -0.00658416748046875, 0.0032939910888671875, -0.00872802734375, -0.06011962890625, -0.05377197265625, -0.0091094970703125, 0.013946533203125, 0.003314971923828125, 0.0170135498046875, 0.045684814453125, 0.005809783935546875, 0.06048583984375, -0.00821685791015625, 0.01861572265625, -0.01085662841796875, 0.0147552490234375, 0.0081939697265625, 0.0122528076171875, 0.02960205078125, 0.0036106109619140625, 0.01274871826171875, 0.032012939453125, 0.0245208740234375, -0.01314544677734375, -0.039703369140625, 0.0020580291748046875, -0.004161834716796875, -0.0042266845703125, 0.0118255615234375, 0.0123138427734375, -0.03802490234375, 0.046173095703125, 0.0095367431640625, -0.039703369140625, -0.0302581787109375, 0.0144805908203125, 0.0064544677734375, 0.032623291015625, 0.040557861328125, -0.038055419921875, -0.033905029296875, -0.0157928466796875, 0.0003879070281982422, 0.020599365234375, 0.0121612548828125, 0.035003662109375, -0.0018215179443359375, -0.00888824462890625, -0.019866943359375, -0.0102691650390625, 0.006999969482421875, 0.01023101806640625, -0.01690673828125, -0.02117919921875, 0.047149658203125, 0.041839599609375, -0.00746917724609375, 0.02655029296875, 0.030364990234375, -0.01390838623046875, -0.05108642578125, 0.00589752197265625, 0.0110321044921875, -0.042724609375, -0.01123809814453125, -0.03314208984375, -0.04388427734375, -0.0183868408203125, -0.0248260498046875, 0.031646728515625, -0.005733489990234375, 0.00850677490234375, -0.0246429443359375, 0.0240478515625, -0.007354736328125, 0.0007171630859375, 0.005809783935546875, -0.056732177734375, -0.031951904296875, -0.01197052001953125, 0.0207366943359375, 0.0186614990234375, -0.0102386474609375, -0.029937744140625, -0.01904296875, 0.01465606689453125, -0.0016727447509765625, 0.0102691650390625, -0.01290130615234375, -0.0340576171875, 0.0136871337890625, 0.017547607421875, 0.01454925537109375, 0.0200958251953125, 0.0027027130126953125, -0.00803375244140625, -0.03143310546875, -0.025390625, -0.01065826416015625, 0.06793212890625, 0.0194549560546875, 0.0804443359375, -0.032562255859375, 0.02880859375, 0.0036296844482421875, 0.035186767578125, -0.031829833984375, -0.021820068359375, -0.0026264190673828125, -0.007110595703125, 0.031097412109375, -0.0009212493896484375, -0.02032470703125, 0.0418701171875, 0.01556396484375, 0.0133209228515625, 0.00716400146484375, -0.0005884170532226562, 0.006683349609375, 0.01464080810546875, 0.06207275390625, -0.002422332763671875, -0.03515625, -0.0279998779296875, -0.008392333984375, 0.020263671875, 0.044891357421875, 0.0188446044921875, 0.04052734375, 0.021209716796875, -0.0014295578002929688, 0.01375579833984375, -0.034942626953125, 0.02044677734375, 0.01299285888671875, 0.0206298828125, -0.01152801513671875, 0.0382080078125, -0.0178985595703125, -0.00882720947265625, 0.0280609130859375, 0.00461578369140625, 0.036346435546875, -0.0977783203125, 0.062164306640625, 0.028106689453125, 0.05224609375, -0.046600341796875, 0.01485443115234375, 0.0465087890625, 0.020599365234375, 0.0224151611328125, -0.01446533203125, -0.0306854248046875, 0.011138916015625, -0.0010213851928710938, 0.0277862548828125, -0.00720977783203125, -0.01169586181640625, -0.1087646484375, -0.0721435546875, 0.0221405029296875, 0.0035533905029296875, -0.00858306884765625, -0.03753662109375, 0.036346435546875, -0.0240631103515625, -0.0029468536376953125, 0.01096343994140625, -0.03082275390625, -0.0443115234375, 0.0052947998046875, -0.051788330078125, -0.052520751953125, 0.10333251953125, -0.01194000244140625, 0.035369873046875, 0.06256103515625, -0.0195465087890625, -0.049957275390625, 0.02777099609375, -0.00475311279296875, 0.0721435546875, -0.03179931640625, -0.00154876708984375, 0.061492919921875, -0.019378662109375, -0.0288848876953125, -0.040771484375, 0.0026397705078125, -0.031768798828125, 0.0021648406982421875, 0.030364990234375, -0.037994384765625, -0.0302276611328125, -0.071044921875, -0.11578369140625, -0.058380126953125, 0.02679443359375, -0.0673828125, -0.0118560791015625, -0.0203094482421875, -0.0160369873046875, 0.01055145263671875, -0.0209503173828125, 0.0128021240234375, 0.01123046875, 0.040008544921875, -0.0007319450378417969, 0.10498046875, -0.0380859375, 0.0013904571533203125, 0.0283355712890625, 0.02630615234375, 0.0128021240234375, 0.0205078125, 0.01053619384765625, -0.0162353515625, 0.0180511474609375, 0.043426513671875, -0.0183258056640625, -0.036529541015625, -0.0073089599609375, -0.0516357421875, 0.01064300537109375, -0.01363372802734375, -0.03643798828125, -0.029205322265625, 0.04559326171875, 0.00897979736328125, 0.0115203857421875, -0.004421234130859375, 0.0021877288818359375, 0.003131866455078125, -0.0472412109375, -0.0236358642578125, 0.02008056640625, -0.059661865234375, -0.0218048095703125, -0.02276611328125, -0.0115509033203125, 0.00496673583984375, -0.047027587890625, -0.035888671875, 0.00868988037109375, 0.0025119781494140625, 0.0301513671875, -0.0159454345703125, -0.053009033203125, 0.044677734375, -0.0160064697265625, -0.03497314453125, 0.01515960693359375, 0.0191650390625, -0.0306243896484375, 0.04901123046875, 0.018341064453125, -0.0055084228515625, -0.033294677734375, -0.0018014907836914062, 0.03021240234375, 0.025360107421875, -0.005626678466796875, -0.034576416015625, 0.044830322265625, -0.019866943359375, -0.016326904296875, -0.0255889892578125, 0.02978515625, -0.04888916015625, -0.0662841796875, 0.004047393798828125, -0.02215576171875, 0.005802154541015625, -0.044921875, 0.05792236328125, -0.03240966796875, 0.013702392578125, -0.0302276611328125, 0.01412200927734375, 0.025054931640625, 0.009552001953125, 0.039581298828125, -0.003753662109375, -0.006542205810546875, 0.00403594970703125, 0.0223846435546875, 0.0017728805541992188 ]
68135249dc492c22259fd734ab17c0ba18f81c99
Wordpress Stackexchange Q: Add a button to tinyMCE editor on Custom Post Type How do I go about adding a simple button to tinymce on the default editor area of my new Custom Post Type? I'd like the button, when clicked, to ask for a text value. The script should then lowercase the input and replace spaces with hyphens, and insert [glossary=value-entered] into the editor. Thanks in advance, A: Check out this tutorial on Pro Blog Design: http://www.problogdesign.com/wordpress/user-friendly-short-codes-with-tinymce/
Q: Add a button to tinyMCE editor on Custom Post Type How do I go about adding a simple button to tinymce on the default editor area of my new Custom Post Type? I'd like the button, when clicked, to ask for a text value. The script should then lowercase the input and replace spaces with hyphens, and insert [glossary=value-entered] into the editor. Thanks in advance, A: Check out this tutorial on Pro Blog Design: http://www.problogdesign.com/wordpress/user-friendly-short-codes-with-tinymce/ A: Have you read this? http://codex.wordpress.org/TinyMCE_Custom_Buttons
wordpress
{ "language": "en", "length": 82, "provenance": "stackexchange_00019.jsonl.gz:416922", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41666" }
[ 0.006343841552734375, 0.002735137939453125, -0.004627227783203125, 0.0157928466796875, 0.0005860328674316406, -0.016204833984375, 0.05609130859375, -0.01032257080078125, 0.00841522216796875, 0.0194091796875, 0.007720947265625, -0.004741668701171875, -0.01560211181640625, -0.035919189453125, -0.007610321044921875, -0.0189666748046875, 0.0285797119140625, -0.0256195068359375, 0.0299224853515625, -0.02239990234375, 0.0155487060546875, 0.0033664703369140625, 0.0307159423828125, -0.024017333984375, 0.00965118408203125, 0.0183563232421875, 0.07867431640625, -0.0224609375, 0.01078033447265625, -0.0014057159423828125, 0.02685546875, -0.043182373046875, 0.00821685791015625, 0.04901123046875, -0.028900146484375, 0.071044921875, 0.0019893646240234375, 0.0323486328125, 0.03753662109375, -0.007293701171875, 0.027435302734375, -0.0184326171875, -0.0214080810546875, 0.00998687744140625, -0.020477294921875, -0.04901123046875, 0.0455322265625, -0.0159149169921875, 0.01226043701171875, -0.033782958984375, -0.024658203125, 0.040313720703125, 0.005374908447265625, -0.033843994140625, -0.007389068603515625, 0.0019359588623046875, -0.033050537109375, -0.01009368896484375, -0.0088653564453125, 0.06121826171875, 0.042572021484375, 0.0290374755859375, -0.017333984375, 0.0049896240234375, 0.015228271484375, 0.004825592041015625, -0.0142974853515625, 0.00989532470703125, 0.0360107421875, 0.01358795166015625, -0.0276031494140625, -0.0189666748046875, 0.0229644775390625, -0.034271240234375, 0.022430419921875, -0.0074920654296875, -0.0157012939453125, -0.0277252197265625, 0.0208587646484375, -0.0028171539306640625, -0.01560211181640625, -0.0086212158203125, 0.019287109375, -0.040771484375, -0.0018777847290039062, -0.0182647705078125, -0.0179901123046875, 0.00955963134765625, -0.0159759521484375, -0.035125732421875, -0.0025768280029296875, -0.033935546875, -0.021697998046875, 0.0245819091796875, 0.004161834716796875, -0.02667236328125, -0.01270294189453125, -0.018890380859375, 0.0235443115234375, 0.041229248046875, 0.0226898193359375, -0.054229736328125, 0.08807373046875, -0.03802490234375, 0.033050537109375, -0.0116119384765625, -0.01160430908203125, 0.0111846923828125, 0.06646728515625, 0.0263671875, -0.0215911865234375, 0.04351806640625, 0.0016021728515625, -0.01806640625, -0.0340576171875, -0.0023956298828125, -0.0285186767578125, 0.03680419921875, 0.006031036376953125, 0.02691650390625, 0.00672149658203125, 0.0095672607421875, 0.00521087646484375, 0.01074981689453125, -0.0234222412109375, -0.0309295654296875, -0.0052947998046875, -0.017578125, 0.01050567626953125, 0.0219268798828125, -0.048980712890625, 0.0007152557373046875, 0.081298828125, 0.052032470703125, 0.03289794921875, -0.0293731689453125, 0.007076263427734375, -0.022735595703125, -0.006420135498046875, 0.01284027099609375, 0.01128387451171875, -0.046844482421875, -0.00681304931640625, 0.008026123046875, 0.004627227783203125, 0.035858154296875, 0.029052734375, 0.011077880859375, -0.022369384765625, -0.08050537109375, 0.0277099609375, -0.029052734375, 0.02984619140625, 0.0268707275390625, -0.03399658203125, -0.0230865478515625, 0.0077972412109375, -0.0307464599609375, 0.0030460357666015625, -0.043426513671875, 0.0220947265625, 0.00899505615234375, 0.0211944580078125, -0.03045654296875, -0.033843994140625, -0.02545166015625, -0.033538818359375, 0.0019445419311523438, 0.0216217041015625, 0.049591064453125, -0.00501251220703125, 0.0147705078125, 0.01007080078125, 0.008514404296875, -0.01206207275390625, -0.005634307861328125, -0.00572967529296875, 0.0274810791015625, 0.0185699462890625, 0.0255889892578125, 0.02178955078125, -0.0279083251953125, 0.077392578125, -0.0136566162109375, -0.04107666015625, 0.0278778076171875, -0.0163726806640625, 0.068359375, 0.006900787353515625, 0.0156707763671875, -0.0237579345703125, 0.02142333984375, 0.0016050338745117188, -0.024627685546875, 0.0092010498046875, -0.0008387565612792969, -0.06866455078125, -0.0258636474609375, -0.01500701904296875, 0.018585205078125, -0.002040863037109375, -0.004222869873046875, 0.01015472412109375, 0.0034427642822265625, -0.0098419189453125, 0.0085601806640625, 0.005352020263671875, 0.0191497802734375, 0.034576416015625, -0.023773193359375, -0.00018155574798583984, -0.0265655517578125, 0.0362548828125, -0.06011962890625, -0.042083740234375, 0.0447998046875, 0.0252838134765625, 0.0355224609375, 0.01995849609375, 0.0105743408203125, 0.0198974609375, -0.0198516845703125, 0.01325225830078125, 0.01055908203125, 0.005649566650390625, -0.05401611328125, 0.002292633056640625, -0.02813720703125, -0.00022327899932861328, -0.0099334716796875, -0.00665283203125, 0.022491455078125, 0.0161285400390625, -0.0164031982421875, -0.046539306640625, 0.0030078887939453125, -0.028778076171875, -0.04644775390625, -0.01406097412109375, 0.059539794921875, 0.02227783203125, 0.0224456787109375, 0.008575439453125, 0.04681396484375, 0.03314208984375, 0.028900146484375, 0.031707763671875, -0.0063934326171875, 0.01038360595703125, 0.09686279296875, -0.0012464523315429688, 0.019927978515625, -0.0162506103515625, -0.06475830078125, 0.0275726318359375, 0.030548095703125, -0.0086822509765625, 0.032257080078125, 0.012420654296875, -0.029571533203125, -0.004352569580078125, -0.034820556640625, 0.0014085769653320312, -0.0277252197265625, 0.07855224609375, 0.06158447265625, 0.083984375, 0.060791015625, -0.05242919921875, 0.055419921875, -0.0271759033203125, -0.013153076171875, -0.01522064208984375, -0.01123809814453125, 0.001983642578125, -0.005527496337890625, -0.0235748291015625, 0.0209197998046875, 0.01885986328125, 0.0011568069458007812, -0.0218353271484375, 0.0021820068359375, -0.040435791015625, -0.01078033447265625, 0.0201568603515625, -0.040802001953125, 0.003307342529296875, -0.00994110107421875, 0.036407470703125, -0.0229949951171875, 0.005275726318359375, 0.00565338134765625, -0.0208587646484375, 0.0413818359375, 0.0303955078125, -0.0469970703125, 0.049896240234375, -0.007228851318359375, 0.01029205322265625, 0.005496978759765625, 0.035369873046875, 0.0498046875, 0.01319122314453125, -0.0188446044921875, 0.01097869873046875, -0.0025157928466796875, -0.054351806640625, 0.054901123046875, 0.038177490234375, -0.01273345947265625, -0.03216552734375, 0.03369140625, 0.01190948486328125, 0.052886962890625, -0.05535888671875, -0.051910400390625, -0.041595458984375, 0.0212860107421875, -0.0537109375, -0.020965576171875, 0.02923583984375, -0.07305908203125, -0.0029354095458984375, -0.031707763671875, -0.06494140625, -0.002460479736328125, 0.0167999267578125, -0.01245880126953125, -0.02838134765625, 0.0025882720947265625, 0.00687408447265625, -0.0142059326171875, -0.019256591796875, -0.020355224609375, -0.00799560546875, -0.00542449951171875, 0.01467132568359375, 0.0347900390625, 0.00449371337890625, -0.0384521484375, 0.04962158203125, -0.039337158203125, 0.00934600830078125, 0.053497314453125, 0.018798828125, -0.057342529296875, 0.0182037353515625, -0.0194091796875, 0.0297393798828125, 0.02838134765625, -0.0021152496337890625, 0.00911712646484375, -0.019927978515625, -0.00556182861328125, 0.00936126708984375, 0.0246124267578125, 0.01116943359375, -0.0009613037109375, 0.044921875, -0.042388916015625, -0.0021076202392578125, 0.039764404296875, 0.006160736083984375, -0.002536773681640625, -0.04278564453125, -0.03204345703125, -0.00968170166015625, 0.0491943359375, 0.0010089874267578125, 0.02911376953125, 0.049530029296875, 0.00806427001953125, 0.0025043487548828125, -0.021728515625, -0.032745361328125, -0.047882080078125, -0.018463134765625, -0.033203125, 0.004589080810546875, -0.027313232421875, -0.00699615478515625, -0.002899169921875, 0.0159912109375, 0.01465606689453125, -0.0294189453125, 0.033477783203125, -0.028656005859375, 0.034881591796875, -0.050994873046875, -0.0258636474609375, -0.021270751953125, 0.08758544921875, -0.053558349609375, -0.001453399658203125, -0.007671356201171875, 0.009613037109375, 0.0143585205078125, -0.0205078125, -0.04901123046875, -0.018157958984375, -0.02764892578125, 0.006702423095703125, -0.0078125, 0.00421905517578125, -0.051513671875, 0.046051025390625, -0.033660888671875, -0.0143585205078125, 0.03387451171875, -0.058990478515625, 0.0179443359375, 0.02252197265625, -0.0047760009765625, 0.004894256591796875, -0.0020599365234375, -0.06622314453125, -0.0706787109375, -0.0149078369140625, -0.0112457275390625, 0.047271728515625, 0.01065826416015625, -0.0167388916015625, -0.0214996337890625, 0.03045654296875, -0.03167724609375, 0.0310211181640625, -0.006732940673828125, 0.045867919921875, 0.006877899169921875, -0.0214691162109375, -0.0162353515625, -0.0305328369140625, 0.01140594482421875, 0.019256591796875, -0.0115509033203125, 0.0205230712890625, -0.0411376953125, -0.046478271484375, 0.0213470458984375, -0.05072021484375, -0.039947509765625, -0.04644775390625, -0.006622314453125, 0.00876617431640625, 0.004421234130859375, -0.00821685791015625, -0.042724609375, -0.03985595703125, 0.01071929931640625, 0.0013151168823242188, 0.0144195556640625, 0.0019969940185546875, 0.06829833984375, 0.0250701904296875, -0.00496673583984375, 0.00939178466796875, -0.0106658935546875, 0.0217132568359375, 0.006656646728515625, -0.01934814453125, -0.0198974609375, -0.0185699462890625, 0.0006899833679199219, -0.00965118408203125, 0.019256591796875, -0.059051513671875, 0.1033935546875, -0.01824951171875, 0.0028667449951171875, 0.0182647705078125, -0.032196044921875, -0.00489044189453125, -0.0006279945373535156, -0.03790283203125, -0.00457000732421875, 0.0033512115478515625, 0.03857421875, -0.05291748046875, 0.058441162109375, -0.01531219482421875, -0.01079559326171875, 0.0008349418640136719, 0.0253753662109375, 0.0213165283203125, 0.0246429443359375, -0.0024051666259765625, -0.01107025146484375, -0.01198577880859375, -0.0241851806640625, 0.004489898681640625, -0.00124359130859375, 0.043731689453125, 0.026153564453125, 0.0162506103515625, 0.0261383056640625, -0.027587890625, -0.0101318359375, -0.01531982421875, 0.037811279296875, -0.0312347412109375, 0.00461578369140625, 0.021240234375, 0.056304931640625, -0.018768310546875, 0.0125274658203125, -0.018707275390625, 0.006946563720703125, -0.02630615234375, 0.038482666015625, 0.057342529296875, -0.0162353515625, -0.002178192138671875, -0.058929443359375, 0.0034351348876953125, -0.02618408203125, 0.0003998279571533203, 0.02740478515625, 0.0026988983154296875, 0.001895904541015625, -0.011077880859375, 0.05126953125, 0.038116455078125, 0.0184478759765625, 0.0207672119140625, 0.0252838134765625, -0.0193023681640625, 0.004344940185546875, -0.04815673828125, 0.005031585693359375, -0.00597381591796875, -0.017181396484375, 0.0128173828125, -0.034149169921875, -0.0121002197265625, 0.04364013671875, -0.05694580078125, -0.022918701171875, -0.035186767578125, -0.0269317626953125, -0.028228759765625, 0.00958251953125, 0.03265380859375, -0.007198333740234375, 0.007419586181640625, 0.0005002021789550781, 0.01522064208984375, -0.0162200927734375, 0.04608154296875, -0.003025054931640625, 0.026519775390625, -0.01190185546875, -0.0400390625, 0.0247039794921875, 0.01087188720703125, -0.027984619140625, -0.06817626953125, -0.049468994140625, -0.00817108154296875, 0.01346588134765625, 0.061767578125, -0.0158843994140625, -0.0216827392578125, -0.01263427734375, 0.0211029052734375, -0.003429412841796875, 0.0216522216796875, -0.0035800933837890625, -0.029876708984375, 0.00958251953125, -0.0104217529296875, -0.058135986328125, -0.04400634765625, -0.011688232421875, -0.03759765625, -0.03411865234375, -0.01412200927734375, 0.0291748046875, 0.0306854248046875, -0.006290435791015625, -0.049835205078125, -0.0078125, 0.00920867919921875, 0.0109405517578125, 0.02471923828125, 0.0022792816162109375, 0.034759521484375, -0.004795074462890625, 0.05316162109375, 0.0079498291015625, -0.01001739501953125, -0.0217132568359375, -0.01348114013671875, 0.0238494873046875, -0.02130126953125, -0.0285186767578125, -0.01849365234375, -0.01116180419921875, -0.0013303756713867188, 0.0167694091796875, -0.01279449462890625, 0.02032470703125, -0.031707763671875, -0.0154266357421875, -0.018951416015625, 0.031646728515625, -0.01247406005859375, 0.01161956787109375, 0.025482177734375, -0.0478515625, -0.0011043548583984375, 0.0059967041015625, 0.023101806640625, 0.0005965232849121094, -0.03143310546875, -0.0017118453979492188, 0.047119140625, -0.061004638671875, 0.0404052734375, 0.0499267578125, 0.0159759521484375, 0.022491455078125, 0.00594329833984375, 0.015838623046875, -0.00612640380859375, -0.00634765625, -0.043975830078125, 0.0091552734375, 0.03118896484375, -0.002262115478515625, -0.039459228515625, 0.019012451171875, -0.02532958984375, 0.0196380615234375, 0.067626953125, 0.07269287109375, -0.09527587890625, -0.016143798828125, 0.01343536376953125, -0.0479736328125, -0.01175689697265625, -0.017822265625, -0.006072998046875, -0.034912109375, 0.0484619140625, -0.013458251953125, -0.0194854736328125, 0.0177459716796875, -0.00534820556640625, -0.0156402587890625, -0.004058837890625, 0.030548095703125, 0.01385498046875, -0.01493072509765625, 0.0008635520935058594, 0.0159759521484375, -0.01446533203125, 0.005985260009765625, 0.0322265625, -0.034759521484375, -0.019500732421875, -0.041351318359375, -0.0253143310546875, -0.005214691162109375, -0.033477783203125, 0.043609619140625, -0.007472991943359375, -0.00702667236328125, 0.004840850830078125, -0.038543701171875, 0.053985595703125, -0.0275726318359375, -0.0259857177734375, 0.04095458984375, -0.03155517578125, -0.0248870849609375, 0.002819061279296875, 0.01335906982421875, -0.0051727294921875, 0.0191650390625, -0.01033782958984375, 0.0026264190673828125, 0.01335906982421875, 0.059112548828125, -0.0197906494140625, -0.02813720703125, 0.0285491943359375, -0.0091705322265625, -0.0019502639770507812, -0.040435791015625, -0.044891357421875, -0.06536865234375, -0.01016998291015625, -0.06768798828125, -0.051544189453125, 0.048736572265625, -0.056365966796875, -0.0640869140625, 0.121826171875, 0.017608642578125, 0.00035500526428222656, -0.03643798828125, 0.0679931640625, -0.0310821533203125, 0.050994873046875, -0.0033111572265625, 0.01702880859375, 0.0004391670227050781, -0.0305938720703125, -0.034332275390625, -0.016326904296875, -0.0270233154296875, 0.048553466796875, 0.03271484375, -0.00540924072265625, 0.00028824806213378906, 0.0386962890625, 0.08685302734375, 0.05181884765625, 0.01241302490234375, 0.005466461181640625, 0.057098388671875, -0.037872314453125, 0.04473876953125, 0.054901123046875, 0.045318603515625, -0.00930023193359375, 0.0182342529296875, 0.0626220703125, 0.005580902099609375, 0.01019287109375, 0.006885528564453125, -0.0268402099609375, 0.0080718994140625, 0.0011625289916992188, -0.00911712646484375, -0.039703369140625, -0.03192138671875, 0.068603515625, 0.0028533935546875, -0.0181884765625, -0.020721435546875, -0.048492431640625, 0.029510498046875, -0.004398345947265625, 0.010894775390625, -0.004459381103515625, 0.001064300537109375, 0.0218658447265625, -0.02716064453125, -0.01410675048828125, 0.0086822509765625, 0.0007910728454589844, 0.01512908935546875, 0.01007843017578125, 0.0192718505859375, -0.029632568359375, 0.006916046142578125, 0.03350830078125, 0.034423828125, -0.03399658203125, -0.0008263587951660156, 0.01361846923828125, 0.00560760498046875, -0.03173828125, -0.0269012451171875, -0.0232391357421875, 0.021209716796875, 0.04547119140625, 0.0049896240234375, -0.0071563720703125, -0.008087158203125, 0.007106781005859375, 0.005886077880859375, 0.0233917236328125, 0.00402069091796875, -0.0007076263427734375, -0.0254974365234375, -0.01503753662109375, 0.0115203857421875, 0.044219970703125, 0.02301025390625, 0.04351806640625, 0.00397491455078125, -0.01491546630859375, -0.0174713134765625, 0.0145111083984375, 0.0372314453125, 0.01654052734375, 0.00545501708984375, 0.0186004638671875, 0.0148468017578125, -0.00107574462890625, 0.0266876220703125, 0.06304931640625, 0.0252532958984375, 0.006473541259765625, 0.00907135009765625, 0.01490020751953125, 0.024566650390625, -0.03253173828125, -0.030914306640625, -0.046966552734375, -0.0035228729248046875, 0.01849365234375, -0.002838134765625, 0.0019330978393554688, -0.0186614990234375, 0.04583740234375, -0.01953125, 0.041778564453125, -0.0134429931640625, -0.0148773193359375, 0.08282470703125, -0.0254058837890625, 0.08355712890625, 0.017333984375, -0.0302734375, 0.01447296142578125, 0.003124237060546875, -0.0712890625, 0.007808685302734375, 0.0479736328125, -0.0163421630859375, -0.005741119384765625, -0.0233154296875, -0.018218994140625, 0.00440216064453125, 0.00885009765625, 0.00917816162109375, 0.032196044921875, 0.0008401870727539062, 0.005702972412109375, -0.04034423828125, -0.00562286376953125, -0.00020360946655273438, 0.0200347900390625, 0.00027823448181152344, 0.03271484375, -0.00128173828125, 0.0166473388671875, -0.037933349609375, 0.0156097412109375, -0.0267181396484375, -0.036590576171875, 0.022186279296875, 0.03643798828125, 0.0262451171875, -0.0101776123046875, -0.035369873046875, 0.05108642578125, 0.0004954338073730469, 0.0019779205322265625, 0.01224517822265625, -0.0033473968505859375, 0.0022525787353515625, 0.0007390975952148438, 0.0294036865234375, -0.0208282470703125, -0.0281829833984375, -0.022125244140625, -0.00010097026824951172, 0.0083160400390625, 0.0086669921875, -0.0103302001953125, 0.02496337890625, 0.00772857666015625, 0.0078582763671875, 0.0343017578125, -0.0117645263671875, 0.030303955078125, 0.0301971435546875, -0.006900787353515625, -0.0220489501953125, 0.0169219970703125, -0.01253509521484375, -0.004474639892578125, 0.01409149169921875, 0.00037097930908203125, 0.0282745361328125, -0.05224609375, 0.023193359375, -0.0118255615234375, 0.06451416015625, -0.00537872314453125, 0.00821685791015625, -0.025482177734375, 0.031951904296875, -0.008209228515625, 0.0187835693359375, -0.041595458984375, -0.00617218017578125, 0.001071929931640625, 0.01226043701171875, -0.0019445419311523438, -0.0328369140625, -0.08428955078125, -0.00017976760864257812, 0.0270233154296875, -0.01322174072265625, -0.0345458984375, 0.01218414306640625, -0.0228729248046875, 0.023468017578125, -0.01284027099609375, -0.0127716064453125, -0.0005512237548828125, 0.01393890380859375, -0.049407958984375, -0.0030765533447265625, -0.04632568359375, -0.00533294677734375, -0.045318603515625, 0.03741455078125, 0.053192138671875, -0.02545166015625, -0.0014324188232421875, 0.0347900390625, 0.03265380859375, 0.0731201171875, -0.014129638671875, -0.0217132568359375, 0.07281494140625, -0.06536865234375, -0.0189056396484375, -0.08197021484375, -0.0059967041015625, -0.147216796875, 0.0078277587890625, -0.01074981689453125, 0.007770538330078125, 0.01451873779296875, -0.0478515625, -0.11944580078125, 0.0287933349609375, -0.006587982177734375, -0.04779052734375, -0.032318115234375, 0.0078582763671875, 0.0001461505889892578, -0.0068817138671875, -0.005828857421875, -0.0159454345703125, -0.0177764892578125, -0.0108184814453125, 0.007472991943359375, -0.0040283203125, 0.0186004638671875, 0.002483367919921875, -0.0953369140625, -0.018096923828125, -0.0228729248046875, 0.0031337738037109375, 0.0732421875, -0.0640869140625, 0.03363037109375, 0.03704833984375, -0.0654296875, -0.1180419921875, -0.054779052734375, -0.0372314453125, -0.005413055419921875, -0.04180908203125, -0.059417724609375, -0.042633056640625, 0.0723876953125, 0.04693603515625, 0.0157470703125, -0.01297760009765625, 0.043365478515625, -0.006683349609375, -0.05548095703125, -0.01122283935546875, 0.0236968994140625, -0.046722412109375, -0.0170135498046875, 0.00649261474609375, 0.002330780029296875, -0.0201568603515625, 0.005306243896484375, -0.025726318359375, 0.0092315673828125, 0.0233917236328125, 0.0098114013671875, -0.03485107421875, 0.0180816650390625, 0.08282470703125, -0.045562744140625, -0.001384735107421875, 0.01019287109375, -0.00652313232421875, 0.039215087890625, 0.0186309814453125, -0.022674560546875, 0.00921630859375, -0.0215911865234375, 0.0308990478515625, -0.0105133056640625, 0.023895263671875, -0.03509521484375, 0.0106048583984375, -0.023193359375, 0.0206146240234375, 0.00736236572265625, 0.0133209228515625, -0.033233642578125, 0.01105499267578125, 0.0125274658203125, 0.037139892578125, -0.047760009765625, 0.0178375244140625, -0.049896240234375, 0.056365966796875, -0.01904296875, 0.012451171875, 0.01239013671875, 0.0172119140625, 0.0217437744140625, 0.019378662109375, 0.00409698486328125, -0.0024089813232421875, 0.027191162109375, 0.049591064453125, -0.020050048828125, 0.01434326171875 ]
2415e39dd7ea527e009a4667b927a702147ac948
Wordpress Stackexchange Q: Can I change ownership of my plugin? By adding a new committer and removing the original committer can I effectively change ownership of plugin? I would like to transfer a plugin to a new wordpress.org profile. I am the author. A: It will effectively change the ownership, though it will still show up in your profile if your old username is listed as a contributor, and may still show up in your profile if your old username was the creator of the plugin. To fix the second part, email [email protected] and Otto42 or I can re-assign it.
Q: Can I change ownership of my plugin? By adding a new committer and removing the original committer can I effectively change ownership of plugin? I would like to transfer a plugin to a new wordpress.org profile. I am the author. A: It will effectively change the ownership, though it will still show up in your profile if your old username is listed as a contributor, and may still show up in your profile if your old username was the creator of the plugin. To fix the second part, email [email protected] and Otto42 or I can re-assign it. A: As of 2015 you can do this yourself, and you don't have to email anyone. Go to your plugin page (example: https://wordpress.org/plugins/hello-dolly/ ) and click on the ADMIN button on the right hand side. On that page, add the new person as a committer and remove yourself. Then update your readme and plugin files to point to the new USER ID and check the code in. You do not need to bump your version numbers. Done :)
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:416941", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41735" }
[ 0.058319091796875, 0.0262603759765625, 0.0152587890625, -0.004444122314453125, 0.015777587890625, -0.023590087890625, 0.018768310546875, -0.0599365234375, -0.03094482421875, 0.01806640625, 0.0294952392578125, 0.0166168212890625, -0.0293426513671875, -0.045745849609375, 0.01104736328125, -0.0184326171875, 0.0172271728515625, 0.01959228515625, 0.032989501953125, -0.0027027130126953125, 0.0169219970703125, 0.0157318115234375, 0.018890380859375, 0.0010480880737304688, 0.042205810546875, -0.02142333984375, 0.045928955078125, -0.0162506103515625, 0.0246429443359375, -0.01230621337890625, 0.0269012451171875, -0.031280517578125, 0.0199432373046875, 0.005847930908203125, -0.00864410400390625, -0.0165863037109375, 0.0175018310546875, -0.0028324127197265625, 0.0121002197265625, 0.0171966552734375, 0.06201171875, -0.0206146240234375, -0.072265625, 0.04046630859375, -0.03607177734375, -0.0836181640625, 0.07574462890625, -0.007709503173828125, 0.0221099853515625, 0.00121307373046875, 0.0003840923309326172, -0.007183074951171875, 0.01092529296875, -0.0171966552734375, -0.01120758056640625, -0.005352020263671875, -0.032562255859375, 0.046478271484375, 0.00015556812286376953, -0.0014524459838867188, 0.00531768798828125, 0.024169921875, 0.00457763671875, 0.0207366943359375, 0.034515380859375, -0.00080108642578125, 0.0297698974609375, 0.01456451416015625, -0.039642333984375, 0.0322265625, 0.0421142578125, -0.040618896484375, -0.010955810546875, 0.036529541015625, 0.018768310546875, -0.056884765625, -0.01074981689453125, -0.016632080078125, 0.041778564453125, 0.048919677734375, 0.037017822265625, 0.0025463104248046875, -0.024261474609375, 0.00814056396484375, -0.01306915283203125, 0.019439697265625, 0.00909423828125, -0.027008056640625, -0.01300811767578125, 0.02313232421875, -0.00804901123046875, -0.01155853271484375, -0.026275634765625, 0.043792724609375, 0.0161895751953125, 0.01049041748046875, 0.007335662841796875, 0.0212249755859375, -0.015838623046875, -0.0066375732421875, 0.012054443359375, -0.02197265625, -0.011810302734375, -0.0165557861328125, -0.0219268798828125, 0.0270843505859375, 0.017730712890625, -0.046112060546875, -0.01397705078125, 0.0217437744140625, -0.0176239013671875, -0.00714874267578125, -0.00955963134765625, -0.013885498046875, 0.020660400390625, 0.024810791015625, -0.0273590087890625, 0.0418701171875, -0.01511383056640625, 0.03228759765625, -0.018218994140625, -0.00022900104522705078, -0.0216522216796875, -0.0164947509765625, 0.0016489028930664062, -0.04168701171875, -0.006916046142578125, 0.0219879150390625, -0.0299072265625, -0.0225372314453125, -0.03546142578125, 0.023284912109375, 0.10028076171875, 0.054168701171875, 0.02838134765625, -0.007244110107421875, 0.0184173583984375, 0.00324249267578125, -0.0171661376953125, 0.01666259765625, -0.01523590087890625, -0.0193328857421875, 0.0372314453125, -0.040496826171875, -0.0033855438232421875, 0.031524658203125, 0.01276397705078125, 0.01116180419921875, -0.0181427001953125, -0.060150146484375, 0.054290771484375, -0.054718017578125, -0.0099029541015625, 0.01532745361328125, 0.07684326171875, -0.041351318359375, 0.0310821533203125, -0.03924560546875, 0.07550048828125, -0.01806640625, 0.028778076171875, -0.017608642578125, -0.01551055908203125, 0.033660888671875, 0.005401611328125, 0.023590087890625, -0.00444793701171875, 0.015625, 0.01229095458984375, -0.0240478515625, -0.006496429443359375, 0.018310546875, 0.026763916015625, 0.0196075439453125, 0.0219879150390625, 0.0243682861328125, -0.01432037353515625, 0.0246734619140625, 0.01470947265625, 0.0284881591796875, 0.0013895034790039062, -0.0254058837890625, 0.06695556640625, -0.004383087158203125, -0.029510498046875, -0.0280303955078125, 0.0006914138793945312, -0.0145263671875, 0.0325927734375, -0.0019025802612304688, 0.07208251953125, -0.0167236328125, -0.029449462890625, 0.00848388671875, 0.0016908645629882812, -0.0076751708984375, 0.012115478515625, 0.02496337890625, -0.00434112548828125, -0.01351165771484375, 0.007656097412109375, 0.0003352165222167969, -0.001529693603515625, -0.0194854736328125, -0.08062744140625, 0.0031375885009765625, -0.034515380859375, 0.03875732421875, 0.0308685302734375, 0.051116943359375, -0.01503753662109375, -0.008819580078125, 0.004596710205078125, -0.019256591796875, -0.0182037353515625, -0.035400390625, -0.00742340087890625, 0.002986907958984375, 0.01282501220703125, -0.00836944580078125, 0.00724029541015625, 0.0269012451171875, -0.00472259521484375, -0.0037403106689453125, 0.0231781005859375, -0.0271759033203125, -0.01351165771484375, -0.03509521484375, -0.0291290283203125, 0.0032196044921875, -0.0616455078125, 0.049774169921875, -0.00016939640045166016, -0.00970458984375, -0.01947021484375, -0.00511932373046875, 0.01134490966796875, -0.07598876953125, 0.02239990234375, 0.045013427734375, 0.01457977294921875, 0.0184478759765625, -0.00726318359375, 0.032073974609375, 0.0306854248046875, 0.01129150390625, 0.0284881591796875, -0.0049591064453125, 0.02532958984375, 0.0595703125, -0.032745361328125, -0.021484375, 0.0184173583984375, -0.02691650390625, -0.004840850830078125, 0.0341796875, -0.04296875, -0.037567138671875, -0.014434814453125, 0.0051116943359375, 0.00652313232421875, -0.04449462890625, 0.0045166015625, -0.018798828125, 0.0157928466796875, -0.025848388671875, 0.0287628173828125, 0.0269622802734375, -0.0139007568359375, -0.0284271240234375, 0.02587890625, 0.021392822265625, 0.00945281982421875, 0.06317138671875, 0.029632568359375, 0.031768798828125, -0.0174560546875, -0.02935791015625, 0.0179290771484375, 0.04931640625, -0.0382080078125, -0.061431884765625, -0.03125, -0.01105499267578125, 0.03253173828125, -0.0089111328125, 0.035797119140625, -0.01268768310546875, -0.035125732421875, -0.05169677734375, 0.00017726421356201172, -0.029144287109375, -0.06854248046875, 0.024749755859375, 0.006381988525390625, -0.05767822265625, 0.027618408203125, -0.0677490234375, 0.035369873046875, -0.028350830078125, 0.020263671875, 0.07757568359375, 0.051055908203125, -0.031463623046875, 0.0203857421875, -0.0306243896484375, 0.03070068359375, 0.005222320556640625, 0.006885528564453125, 0.048919677734375, -0.0789794921875, 0.045501708984375, 0.0021724700927734375, -0.0241546630859375, -0.01654052734375, -0.040313720703125, -0.0465087890625, -0.02044677734375, -0.07550048828125, -0.02191162109375, -0.067138671875, -0.030426025390625, -0.0231781005859375, 0.01788330078125, -0.0249176025390625, 0.0219268798828125, 0.044921875, 0.0167388916015625, 0.016021728515625, -0.01837158203125, -0.0249176025390625, -0.035919189453125, -0.06695556640625, -0.0295562744140625, 0.012420654296875, 0.01458740234375, 0.01214599609375, 0.016815185546875, -0.0011548995971679688, -0.060882568359375, -0.00872802734375, 0.058837890625, 0.006244659423828125, 0.0177001953125, 0.0117950439453125, -0.04559326171875, -0.0021514892578125, -0.006099700927734375, 0.061309814453125, 0.03515625, -0.032623291015625, 0.0129241943359375, 0.0150604248046875, 0.0026226043701171875, 0.03839111328125, -0.05548095703125, -0.043914794921875, 0.0190582275390625, -0.0027408599853515625, -0.0333251953125, 0.016357421875, 0.0236053466796875, 0.0007257461547851562, -0.0044403076171875, -0.0246734619140625, -0.038665771484375, 0.01491546630859375, -0.004726409912109375, -0.0277557373046875, 0.0188140869140625, -0.01210784912109375, -0.01412200927734375, 0.007640838623046875, -0.01209259033203125, -0.02642822265625, 0.0194091796875, -0.013458251953125, -0.0435791015625, 0.002521514892578125, -0.02593994140625, -0.01312255859375, -0.01052093505859375, 0.03253173828125, 0.0194244384765625, -0.055877685546875, 0.0182342529296875, -0.0609130859375, 0.00911712646484375, -0.044342041015625, -0.009735107421875, 0.021697998046875, 0.11468505859375, -0.00760650634765625, -0.0129852294921875, 0.0027713775634765625, -0.0020084381103515625, -0.02337646484375, 0.010589599609375, -0.046173095703125, -0.0090484619140625, -0.0015439987182617188, -0.0158843994140625, -0.0176544189453125, -0.01244354248046875, 0.0013456344604492188, 0.0164031982421875, 0.0187225341796875, -0.01012420654296875, 0.021240234375, -0.0147552490234375, 0.00658416748046875, -0.0027256011962890625, -0.004608154296875, -0.0164031982421875, -0.004306793212890625, -0.01971435546875, -0.0528564453125, -0.0255584716796875, -0.0230712890625, 0.04522705078125, -0.0153350830078125, 0.0345458984375, -0.04290771484375, 0.024993896484375, -0.02532958984375, 0.042694091796875, -0.031219482421875, 0.007770538330078125, -0.01334381103515625, -0.01727294921875, -0.01160430908203125, -0.0204315185546875, 0.0012540817260742188, -0.036468505859375, -0.051361083984375, 0.007289886474609375, -0.00988006591796875, 0.0259552001953125, 0.00972747802734375, -0.0211181640625, -0.054473876953125, -0.0255279541015625, -0.0231781005859375, 0.0027313232421875, -0.005977630615234375, -0.01082611083984375, -0.03717041015625, -0.04278564453125, 0.0240020751953125, -0.06842041015625, 0.0028133392333984375, 0.018310546875, 0.09246826171875, 0.01422882080078125, 0.014801025390625, -0.02545166015625, 0.0247802734375, 0.0140838623046875, 0.01424407958984375, 0.032745361328125, 0.011260986328125, -0.0063323974609375, 0.0207672119140625, -0.0199127197265625, -0.0170135498046875, -0.0251922607421875, 0.00569915771484375, 0.0249176025390625, 0.0032062530517578125, -0.01551055908203125, 0.01059722900390625, 0.060882568359375, 0.012115478515625, -0.0250091552734375, 0.005733489990234375, -0.03076171875, -0.0047454833984375, -0.014129638671875, 0.0230865478515625, -0.0020046234130859375, -0.05767822265625, 0.0452880859375, -0.045928955078125, 0.014312744140625, 0.01139068603515625, -0.02020263671875, 0.018829345703125, -0.00740814208984375, 0.0031528472900390625, -0.060150146484375, -0.06903076171875, -0.04425048828125, -0.01177215576171875, -0.0287322998046875, -0.0164031982421875, 0.0102386474609375, -0.004611968994140625, 0.039581298828125, -0.015655517578125, -0.048828125, -0.01041412353515625, -0.026641845703125, 0.00601959228515625, 0.0224761962890625, -0.0126495361328125, 0.045562744140625, 0.01186370849609375, -0.0181427001953125, -0.0200347900390625, -0.070556640625, 0.0180206298828125, -0.055633544921875, 0.0233306884765625, 0.020843505859375, -0.0203094482421875, -0.006046295166015625, 0.0221099853515625, 0.03594970703125, -0.018798828125, -0.028533935546875, 0.06378173828125, 0.05487060546875, -0.0290679931640625, 0.00923919677734375, 0.0220794677734375, 0.01971435546875, -0.065673828125, 0.00457000732421875, 0.00323486328125, 0.052581787109375, -0.00983428955078125, 0.00005608797073364258, 0.01435089111328125, -0.0217132568359375, 0.039337158203125, -0.03668212890625, -0.0027217864990234375, -0.02252197265625, -0.0323486328125, -0.036376953125, 0.02337646484375, 0.0279998779296875, -0.0015354156494140625, -0.0247955322265625, 0.0093536376953125, -0.07598876953125, -0.0369873046875, -0.04718017578125, -0.0196990966796875, -0.045440673828125, -0.0142059326171875, 0.0024967193603515625, 0.006496429443359375, -0.0159912109375, -0.0235443115234375, -0.049957275390625, -0.0217132568359375, -0.0193023681640625, 0.00679779052734375, 0.06512451171875, -0.005100250244140625, 0.05206298828125, -0.056732177734375, -0.0016088485717773438, -0.044921875, -0.0125732421875, 0.06524658203125, 0.039886474609375, -0.06695556640625, -0.00653839111328125, -0.01184844970703125, -0.0019989013671875, 0.01363372802734375, -0.019439697265625, -0.045684814453125, -0.02716064453125, 0.0253143310546875, 0.03533935546875, -0.031463623046875, -0.040283203125, 0.01273345947265625, 0.004604339599609375, -0.0027179718017578125, 0.03131103515625, -0.0169525146484375, 0.030029296875, 0.0050506591796875, 0.0546875, -0.0004756450653076172, -0.022003173828125, -0.0202178955078125, -0.01049041748046875, 0.00835418701171875, 0.0283966064453125, -0.0190277099609375, -0.0295562744140625, -0.007572174072265625, -0.037109375, 0.036590576171875, -0.00873565673828125, -0.00933837890625, -0.0002791881561279297, 0.0122222900390625, -0.025543212890625, 0.028656005859375, 0.001750946044921875, -0.023193359375, 0.0010356903076171875, -0.05517578125, -0.0017004013061523438, 0.035888671875, 0.043609619140625, -0.020263671875, -0.02691650390625, -0.0157012939453125, 0.044281005859375, -0.0033626556396484375, 0.004161834716796875, -0.01038360595703125, 0.0002899169921875, 0.00927734375, 0.0115814208984375, 0.0280609130859375, -0.007083892822265625, -0.0274505615234375, 0.0289764404296875, 0.017669677734375, 0.0264892578125, -0.02313232421875, 0.00540924072265625, 0.01885986328125, -0.03271484375, 0.041778564453125, 0.029327392578125, 0.0640869140625, -0.08160400390625, 0.034149169921875, 0.002384185791015625, -0.002742767333984375, 0.06671142578125, 0.025360107421875, -0.0024127960205078125, -0.01027679443359375, -0.018463134765625, -0.02197265625, 0.0010290145874023438, -0.0095062255859375, -0.0166015625, -0.0112762451171875, 0.01200103759765625, 0.00466156005859375, 0.037384033203125, -0.029876708984375, 0.036285400390625, -0.0019779205322265625, 0.0396728515625, -0.035064697265625, -0.0079498291015625, 0.03204345703125, -0.01233673095703125, -0.00014734268188476562, 0.08673095703125, -0.02655029296875, 0.036834716796875, 0.0169677734375, 0.02117919921875, 0.057861328125, 0.0301055908203125, 0.010986328125, -0.0245513916015625, 0.0189361572265625, 0.0083770751953125, -0.01129913330078125, -0.055572509765625, -0.0006861686706542969, 0.05926513671875, -0.032379150390625, 0.0305328369140625, 0.029571533203125, -0.0274658203125, -0.0060882568359375, -0.00013720989227294922, 0.053863525390625, -0.01157379150390625, -0.0271759033203125, 0.001560211181640625, 0.007152557373046875, 0.01910400390625, 0.0185546875, -0.01123809814453125, -0.04595947265625, -0.01422119140625, 0.00452423095703125, -0.035614013671875, 0.0174713134765625, 0.0240631103515625, -0.09228515625, 0.1373291015625, 0.049407958984375, 0.0311737060546875, -0.021087646484375, 0.056121826171875, -0.03436279296875, 0.0291290283203125, -0.01245880126953125, 0.0443115234375, -0.0241241455078125, 0.033477783203125, -0.01690673828125, -0.0179443359375, 0.017974853515625, 0.0439453125, 0.07537841796875, 0.017791748046875, -0.05279541015625, -0.0145263671875, 0.0406494140625, -0.00524139404296875, -0.0228271484375, 0.07708740234375, -0.009613037109375, 0.01654052734375, 0.00550079345703125, -0.0177001953125, 0.03680419921875, -0.0269317626953125, -0.0426025390625, 0.016265869140625, -0.0021762847900390625, -0.0107269287109375, -0.0308837890625, 0.0087890625, -0.0018444061279296875, -0.01393890380859375, -0.01229095458984375, 0.0628662109375, 0.04412841796875, -0.004436492919921875, 0.02154541015625, 0.020355224609375, 0.049530029296875, -0.0146942138671875, 0.05120849609375, 0.0012121200561523438, 0.02569580078125, 0.001708984375, 0.005168914794921875, 0.045135498046875, 0.0088348388671875, 0.003543853759765625, 0.043548583984375, -0.01279449462890625, 0.05816650390625, 0.045928955078125, 0.04779052734375, 0.00988006591796875, 0.001995086669921875, -0.0024394989013671875, 0.0596923828125, -0.041168212890625, -0.0360107421875, 0.0137786865234375, 0.01044464111328125, 0.01244354248046875, -0.0011548995971679688, 0.0307464599609375, -0.057342529296875, -0.02655029296875, -0.042022705078125, 0.01119232177734375, 0.03314208984375, 0.007785797119140625, 0.0001900196075439453, 0.0182647705078125, -0.02545166015625, 0.018798828125, -0.051605224609375, 0.0198211669921875, 0.0252532958984375, 0.0017957687377929688, 0.016510009765625, 0.01300048828125, 0.09002685546875, -0.0016126632690429688, -0.0151824951171875, 0.00872802734375, 0.04443359375, -0.00901031494140625, -0.048095703125, -0.01056671142578125, 0.0335693359375, 0.054351806640625, -0.00559234619140625, 0.02471923828125, 0.00839996337890625, 0.01995849609375, 0.0040283203125, -0.0015192031860351562, -0.00469970703125, -0.020965576171875, 0.0643310546875, -0.03240966796875, 0.06024169921875, 0.01490020751953125, -0.0124053955078125, -0.04473876953125, -0.0129241943359375, 0.08551025390625, -0.0017414093017578125, 0.0245513916015625, 0.003780364990234375, -0.03173828125, 0.00884246826171875, -0.01200103759765625, 0.0601806640625, 0.01081085205078125, -0.07086181640625, -0.02191162109375, -0.0261077880859375, 0.01120758056640625, 0.00010538101196289062, 0.026824951171875, 0.0033245086669921875, 0.015594482421875, -0.036834716796875, 0.006793975830078125, 0.033843994140625, -0.037017822265625, -0.0049285888671875, 0.01267242431640625, 0.01541900634765625, -0.003910064697265625, -0.039947509765625, -0.0214080810546875, -0.046051025390625, 0.042327880859375, 0.03607177734375, 0.0450439453125, -0.0255279541015625, 0.046722412109375, -0.026611328125, -0.047210693359375, -0.01134490966796875, -0.0494384765625, 0.052886962890625, -0.01324462890625, -0.049713134765625, 0.006252288818359375, -0.0576171875, 0.0117645263671875, 0.01038360595703125, -0.00928497314453125, 0.0160369873046875, -0.019561767578125, 0.01332855224609375, 0.0187225341796875, -0.01313018798828125, -0.04119873046875, -0.0391845703125, -0.0245208740234375, -0.0027561187744140625, -0.0091400146484375, -0.01523590087890625, -0.00223541259765625, 0.02630615234375, -0.0122222900390625, -0.0222320556640625, -0.01139068603515625, -0.01233673095703125, -0.049224853515625, 0.01276397705078125, 0.023193359375, -0.055908203125, 0.0283355712890625, -0.0018062591552734375, 0.005596160888671875, 0.0199127197265625, 0.0694580078125, 0.01654052734375, -0.04473876953125, -0.0222320556640625, -0.0292510986328125, 0.0265960693359375, -0.005062103271484375, 0.006805419921875, -0.044830322265625, 0.0213165283203125, -0.03204345703125, -0.040130615234375, -0.025787353515625, -0.07733154296875, 0.01465606689453125, 0.01385498046875, -0.0218963623046875, -0.0164642333984375, 0.0122222900390625, -0.01285552978515625, 0.046661376953125, 0.0183868408203125, -0.06427001953125, 0.013580322265625, -0.0055084228515625, 0.004817962646484375, 0.02044677734375, -0.04449462890625, 0.0018310546875, 0.017608642578125, -0.03204345703125, -0.0232696533203125, -0.054901123046875, -0.01177978515625, -0.046112060546875, 0.040679931640625, 0.03973388671875, -0.0281524658203125, 0.002124786376953125, 0.03173828125, 0.017791748046875, 0.08258056640625, -0.0250701904296875, -0.0171661376953125, 0.011505126953125, -0.04217529296875, 0.0114898681640625, -0.004444122314453125, 0.018310546875, -0.07293701171875, -0.06719970703125, -0.06658935546875, -0.0061187744140625, -0.023468017578125, -0.04315185546875, -0.006923675537109375, 0.0165252685546875, 0.006900787353515625, -0.011138916015625, -0.04046630859375, -0.00189208984375, -0.01119232177734375, 0.039825439453125, -0.0038738250732421875, -0.016448974609375, -0.032470703125, 0.0205078125, -0.0064544677734375, 0.07598876953125, -0.03082275390625, 0.0148773193359375, 0.02838134765625, 0.043426513671875, 0.031951904296875, -0.00690460205078125, -0.0265350341796875, 0.022491455078125, -0.004650115966796875, 0.022735595703125, -0.015380859375, -0.0229034423828125, -0.003955841064453125, -0.00001341104507446289, -0.01036834716796875, -0.0104827880859375, -0.0038585662841796875, 0.0005669593811035156, 0.070556640625, 0.03448486328125, 0.00812530517578125, -0.0293731689453125, 0.0045013427734375, -0.041168212890625, -0.030792236328125, -0.01239776611328125, 0.01313018798828125, -0.04412841796875, -0.00274658203125, 0.01190185546875, -0.01800537109375, 0.007556915283203125, -0.0435791015625, -0.034637451171875, -0.00959014892578125, -0.0372314453125, -0.0228271484375, 0.023956298828125, -0.006954193115234375, 0.0224456787109375, -0.03912353515625, -0.03997802734375, 0.031829833984375, 0.0013437271118164062, -0.0214691162109375, 0.04022216796875, 0.03271484375, -0.0214691162109375, -0.038299560546875, 0.0217132568359375, 0.004058837890625, 0.06683349609375, -0.04022216796875, -0.064453125, -0.0186309814453125, 0.0272979736328125, 0.0108184814453125, 0.02349853515625, -0.024810791015625, 0.0223236083984375, 0.0032634735107421875, 0.040802001953125, -0.00301361083984375, -0.031280517578125, 0.005481719970703125, 0.0187530517578125, -0.041839599609375, -0.0020885467529296875, -0.01251983642578125, -0.03863525390625, 0.021514892578125, 0.01898193359375, 0.046661376953125, -0.037261962890625, 0.062042236328125, 0.0153045654296875, 0.0265045166015625, 0.0307769775390625 ]
e210b06eeb0ea26858637102f0a43e3c2a2d6b97
Wordpress Stackexchange Q: How can you change the 'Insert into Post' title in the media button? Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this image'. Anyone got a clue on how you are able to do so? A: With WordPress 3.5+ Media Uploader, there's another way. All strings are localized at the bottom of the page with: <script type='text/javascript'> /* <![CDATA[ */ var _wpMediaViewsL10n = { "url":"URL", "addMedia":"Add Media", "search":"Search", "select":"Select", "cancel":"Cancel", "selected":"%d selected", "dragInfo":"Drag and drop to reorder images.", "uploadFilesTitle":"Upload Files", "uploadImagesTitle":"Upload Images", "mediaLibraryTitle":"Media Library", "insertMediaTitle":"Insert Media", "createNewGallery":"Create a new gallery", "returnToLibrary":"\u2190 Return to library", "allMediaItems":"All media items", "noItemsFound":"No items found.", "insertIntoPost":"Insert into post", "uploadedToThisPost":"Uploaded to this post", // ET CETERA }; /* ]]> */ </script> On document.ready, we modify the object: add_action('admin_footer', function() { ?> <script type="text/javascript"> // or without jQuery: http://stackoverflow.com/q/799981 jQuery(document).ready( function($) { _wpMediaViewsL10n.insertIntoPost = 'Gotchya!'; }); </script> <?php });
Q: How can you change the 'Insert into Post' title in the media button? Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this image'. Anyone got a clue on how you are able to do so? A: With WordPress 3.5+ Media Uploader, there's another way. All strings are localized at the bottom of the page with: <script type='text/javascript'> /* <![CDATA[ */ var _wpMediaViewsL10n = { "url":"URL", "addMedia":"Add Media", "search":"Search", "select":"Select", "cancel":"Cancel", "selected":"%d selected", "dragInfo":"Drag and drop to reorder images.", "uploadFilesTitle":"Upload Files", "uploadImagesTitle":"Upload Images", "mediaLibraryTitle":"Media Library", "insertMediaTitle":"Insert Media", "createNewGallery":"Create a new gallery", "returnToLibrary":"\u2190 Return to library", "allMediaItems":"All media items", "noItemsFound":"No items found.", "insertIntoPost":"Insert into post", "uploadedToThisPost":"Uploaded to this post", // ET CETERA }; /* ]]> */ </script> On document.ready, we modify the object: add_action('admin_footer', function() { ?> <script type="text/javascript"> // or without jQuery: http://stackoverflow.com/q/799981 jQuery(document).ready( function($) { _wpMediaViewsL10n.insertIntoPost = 'Gotchya!'; }); </script> <?php }); A: Filter 'gettext', take care to catch the target string only by checking the text domain. See this answer for a rather verbose example. A simplified way: add_filter( 'gettext', 'wpse_41767_change_image_button', 10, 3 ); function wpse_41767_change_image_button( $translation, $text, $domain ) { if ( 'default' == $domain and 'Insert into Post' == $text ) { // Once is enough. remove_filter( 'gettext', 'wpse_41767_change_image_button' ); return 'Use this image'; } return $translation; } This is the only way to avoid false positives. A plugin author may use the same string in another location, so you have to verify the text domain. A: add_filter("attribute_escape", "myfunction", 10, 2); function myfunction($safe_text, $text) { return str_replace("Insert into Post", "Use this image", $text); } Place in your theme functions file of in a plugin file. The first usable filter that this button hits is on the function esc_attr(). So what that code will do is find any instance of Insert into Post that is run through esc_attr() and replace it to Use this image. This code might have undesired issues elsewhere though. Maybe there is a language file method someone might know of that might be a better solution than this. TRY: add_filter("attribute_escape", "myfunction", 10, 2); function myfunction($safe_text, $text) { return str_replace(__('Insert into Post'), __('Use this image'), $text); } Should account for translations. A: WARNING: using the hook "attribute_escape" is kinda bad. This function is called for ALL text including post titles and content. Using this filter as stated in the accepted answer breaks html entity encoding. For instance the title Features & Pricing appears as Features & Pricing in the title field. After saving it then shows Features &amp; Pricing. After saving again you get Features &amp;amp; Pricing. A better alternative might be to use jquery to change the button text. add_action( 'admin_head', 'admin_head_script' ); function admin_head_script() { ?> <script> jQuery(document).ready(function($){ $('input[value="Insert into Post"]').val('Use this Image'); }); </script> <?php } A: or via CSS .your-media-frame .media-button-insert{ font-size:0px; } .your-media-frame .media-button-insert:before{ content:'Insert image'; font-size:14px; } A: The gettext filter enables you to modify text elements on your WordPress site. add_filter( 'gettext', 'change_button_text'); function change_button_text( $text ) { return str_ireplace( 'Insert into post', 'Use', $text ); }
wordpress
{ "language": "en", "length": 530, "provenance": "stackexchange_00019.jsonl.gz:416949", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41767" }
[ 0.03900146484375, 0.016510009765625, 0.024627685546875, 0.032257080078125, 0.0174102783203125, -0.0293121337890625, 0.0770263671875, -0.06317138671875, 0.038330078125, 0.00698089599609375, -0.031951904296875, -0.01338958740234375, 0.0036373138427734375, -0.031494140625, -0.01096343994140625, -0.0138092041015625, 0.0222625732421875, -0.00890350341796875, 0.024169921875, -0.0220184326171875, -0.0031642913818359375, -0.00766754150390625, 0.05126953125, 0.00753021240234375, -0.0022144317626953125, 0.01165008544921875, 0.05828857421875, -0.019378662109375, 0.00571441650390625, -0.0179595947265625, 0.0187530517578125, -0.005970001220703125, 0.0304107666015625, 0.00058746337890625, -0.0094146728515625, 0.039093017578125, 0.0301361083984375, -0.004302978515625, 0.0117645263671875, 0.005161285400390625, 0.0301971435546875, 0.00795745849609375, 0.00017118453979492188, 0.01788330078125, -0.0164031982421875, -0.0308685302734375, 0.0194244384765625, -0.024658203125, 0.03509521484375, -0.006847381591796875, -0.00267791748046875, -0.0194549560546875, 0.01107025146484375, -0.0535888671875, -0.0298004150390625, -0.016845703125, -0.0242767333984375, 0.0205078125, 0.02093505859375, 0.0283660888671875, -0.017608642578125, 0.0165252685546875, -0.00957489013671875, -0.04974365234375, 0.00830078125, 0.008453369140625, 0.0364990234375, 0.00734710693359375, -0.06781005859375, -0.0121917724609375, 0.049163818359375, -0.03564453125, 0.00586700439453125, -0.0204010009765625, 0.007732391357421875, 0.001506805419921875, -0.0076751708984375, -0.00646209716796875, 0.0288848876953125, -0.0159454345703125, 0.06756591796875, 0.0282135009765625, 0.0362548828125, -0.05523681640625, 0.062042236328125, -0.020233154296875, 0.0198211669921875, -0.0203857421875, -0.0002110004425048828, -0.0026988983154296875, -0.01389312744140625, -0.00505828857421875, 0.0017070770263671875, 0.02734375, -0.01345062255859375, -0.00321197509765625, -0.0165252685546875, 0.037689208984375, -0.00839996337890625, 0.041412353515625, -0.043792724609375, -0.005069732666015625, 0.004894256591796875, -0.03875732421875, 0.0309295654296875, 0.00799560546875, -0.044281005859375, -0.08837890625, 0.0277099609375, 0.0187530517578125, -0.0235443115234375, 0.03875732421875, 0.017333984375, 0.011688232421875, -0.016387939453125, -0.00859832763671875, -0.005889892578125, 0.0264129638671875, -0.0177764892578125, 0.030242919921875, -0.0160064697265625, 0.004154205322265625, -0.0215301513671875, -0.0007157325744628906, 0.0350341796875, 0.0248565673828125, -0.009429931640625, -0.0096282958984375, -0.0455322265625, -0.003582000732421875, -0.019195556640625, 0.04681396484375, 0.11724853515625, 0.0478515625, 0.003139495849609375, -0.0022430419921875, 0.004047393798828125, 0.0053863525390625, 0.00843048095703125, 0.00782012939453125, 0.00087738037109375, -0.04754638671875, -0.0087127685546875, 0.0032825469970703125, -0.01335906982421875, 0.0345458984375, -0.0030612945556640625, 0.0020809173583984375, 0.0092926025390625, -0.07806396484375, 0.016357421875, -0.042633056640625, 0.021453857421875, 0.00905609130859375, -0.01149749755859375, -0.0231475830078125, 0.0199737548828125, -0.036163330078125, 0.02325439453125, -0.040435791015625, 0.0009927749633789062, 0.02001953125, 0.057281494140625, -0.027984619140625, -0.007144927978515625, -0.0176239013671875, -0.061920166015625, 0.000020384788513183594, 0.03472900390625, 0.0823974609375, -0.0010080337524414062, -0.006412506103515625, 0.005466461181640625, 0.0267181396484375, -0.0159454345703125, -0.01340484619140625, 0.016021728515625, 0.0307464599609375, 0.005725860595703125, 0.0285491943359375, 0.01506805419921875, -0.028167724609375, 0.0657958984375, -0.023345947265625, -0.027435302734375, 0.0251312255859375, 0.013214111328125, 0.020965576171875, -0.00836181640625, 0.011871337890625, 0.038909912109375, 0.052642822265625, 0.0035400390625, 0.00402069091796875, 0.0005812644958496094, -0.03302001953125, -0.046112060546875, -0.0036334991455078125, -0.03326416015625, 0.0175628662109375, -0.01378631591796875, 0.03570556640625, -0.013916015625, 0.043853759765625, -0.007373809814453125, 0.0171661376953125, -0.006534576416015625, 0.0219573974609375, 0.0014333724975585938, 0.0023193359375, 0.0079803466796875, 0.004467010498046875, 0.00252532958984375, -0.054046630859375, -0.027984619140625, -0.0027217864990234375, -0.040191650390625, 0.00939178466796875, -0.0171356201171875, 0.041595458984375, -0.04559326171875, 0.0011339187622070312, -0.0322265625, -0.01454925537109375, 0.0594482421875, 0.0028076171875, -0.02069091796875, -0.02484130859375, 0.03790283203125, 0.0145111083984375, -0.04144287109375, 0.033966064453125, 0.0118865966796875, -0.031036376953125, -0.0404052734375, -0.0140533447265625, -0.0167236328125, -0.08477783203125, 0.004138946533203125, 0.07037353515625, 0.01039886474609375, 0.036285400390625, 0.0029888153076171875, 0.04193115234375, 0.0489501953125, 0.00518035888671875, 0.01113128662109375, 0.005733489990234375, 0.0250396728515625, 0.0635986328125, -0.049468994140625, 0.0173492431640625, 0.02545166015625, -0.0701904296875, 0.0184326171875, 0.064697265625, -0.01045989990234375, -0.01103973388671875, -0.007144927978515625, 0.01197052001953125, -0.0032196044921875, -0.03173828125, -0.026397705078125, -0.0003883838653564453, 0.06109619140625, 0.0269775390625, 0.057891845703125, 0.053436279296875, -0.04473876953125, 0.0263824462890625, 0.00890350341796875, -0.01506805419921875, -0.007904052734375, 0.042999267578125, 0.0219268798828125, 0.0192718505859375, -0.051422119140625, -0.006557464599609375, 0.0224456787109375, 0.0258331298828125, -0.0006279945373535156, 0.0180816650390625, -0.051727294921875, -0.01224517822265625, 0.004604339599609375, -0.059051513671875, -0.0207977294921875, 0.01953125, 0.0093536376953125, 0.004428863525390625, 0.038543701171875, 0.01129913330078125, -0.0155029296875, 0.04156494140625, -0.017669677734375, -0.0218963623046875, 0.01241302490234375, -0.059783935546875, 0.035430908203125, -0.019256591796875, 0.06964111328125, 0.068115234375, 0.001552581787109375, 0.0077056884765625, -0.0042572021484375, -0.010528564453125, -0.03271484375, 0.023956298828125, -0.0163726806640625, -0.033721923828125, -0.036224365234375, 0.00588226318359375, 0.0186614990234375, -0.0032196044921875, -0.0219879150390625, -0.038665771484375, -0.0300140380859375, -0.0174102783203125, -0.0906982421875, -0.07257080078125, -0.037567138671875, -0.11614990234375, -0.0011816024780273438, -0.0035533905029296875, -0.0675048828125, -0.00859832763671875, 0.05615234375, 0.01517486572265625, 0.0095672607421875, -0.00885772705078125, 0.035614013671875, -0.0081787109375, -0.016082763671875, -0.069091796875, 0.0073699951171875, -0.0227813720703125, 0.005672454833984375, 0.0513916015625, 0.006359100341796875, -0.03265380859375, 0.00347137451171875, 0.0263824462890625, 0.0033855438232421875, -0.003437042236328125, 0.045074462890625, -0.050689697265625, -0.0190277099609375, 0.0003216266632080078, 0.0293731689453125, 0.025421142578125, -0.0307464599609375, 0.0053863525390625, -0.03741455078125, -0.044158935546875, -0.00557708740234375, 0.05316162109375, 0.03912353515625, -0.02105712890625, 0.031280517578125, -0.04833984375, 0.005596160888671875, 0.00878143310546875, -0.01284027099609375, -0.00524139404296875, -0.02728271484375, -0.01351165771484375, 0.0310516357421875, -0.0017137527465820312, 0.0140228271484375, 0.0234832763671875, 0.0157318115234375, -0.032989501953125, 0.0057220458984375, -0.0008544921875, 0.0224456787109375, -0.0281829833984375, 0.0279693603515625, 2.980232238769531e-7, 0.00582122802734375, 0.0176239013671875, 0.044097900390625, 0.008575439453125, 0.03173828125, 0.0023899078369140625, -0.047882080078125, -0.0014467239379882812, -0.0711669921875, 0.02276611328125, -0.035980224609375, -0.0044708251953125, -0.00010412931442260742, 0.07244873046875, -0.04833984375, 0.0110321044921875, -0.0175323486328125, 0.00727081298828125, -0.027099609375, -0.055145263671875, -0.062042236328125, -0.0003364086151123047, -0.00196075439453125, 0.004383087158203125, -0.018310546875, 0.01026153564453125, -0.0137481689453125, 0.0237884521484375, 0.00804901123046875, -0.02349853515625, 0.03070068359375, -0.03802490234375, 0.00395965576171875, 0.01371002197265625, -0.0186309814453125, -0.004604339599609375, -0.017974853515625, -0.0263824462890625, -0.11151123046875, -0.0266571044921875, 0.006633758544921875, 0.0880126953125, -0.0050506591796875, -0.0229339599609375, -0.0313720703125, 0.062744140625, 0.01250457763671875, 0.0306243896484375, 0.00945281982421875, 0.00614166259765625, 0.01114654541015625, -0.04095458984375, -0.00521087646484375, -0.03289794921875, -0.020416259765625, -0.03302001953125, -0.025421142578125, 0.002399444580078125, -0.007137298583984375, 0.005126953125, 0.008880615234375, -0.004795074462890625, -0.048797607421875, -0.0204010009765625, 0.019561767578125, 0.0271759033203125, 0.0028095245361328125, -0.003265380859375, -0.03570556640625, -0.040191650390625, 0.0273590087890625, -0.0233306884765625, 0.0018482208251953125, 0.0029506683349609375, 0.0654296875, 0.01073455810546875, -0.0019521713256835938, -0.035003662109375, -0.032745361328125, 0.0172882080078125, -0.01788330078125, 0.0181121826171875, 0.01020050048828125, -0.01486968994140625, 0.0171051025390625, -0.01422882080078125, -0.0127105712890625, -0.0288848876953125, 0.05841064453125, 0.0095672607421875, -0.01263427734375, 0.0220184326171875, -0.003185272216796875, 0.01519012451171875, -0.0197906494140625, -0.029815673828125, -0.0038909912109375, -0.039703369140625, 0.038360595703125, 0.001811981201171875, 0.0474853515625, -0.03704833984375, -0.06329345703125, 0.0185546875, -0.04119873046875, 0.0114898681640625, -0.022613525390625, 0.01041412353515625, 0.007549285888671875, 0.01288604736328125, 0.0012340545654296875, -0.00951385498046875, 0.00498199462890625, -0.01482391357421875, 0.041412353515625, -0.022613525390625, -0.00949859619140625, -0.0021648406982421875, -0.00263214111328125, -0.0179290771484375, 0.00392913818359375, -0.020782470703125, -0.0246124267578125, 0.00307464599609375, 0.05731201171875, -0.00756072998046875, 0.023193359375, 0.0018529891967773438, 0.03515625, 0.04949951171875, 0.00930023193359375, -0.002178192138671875, 0.06195068359375, 0.0006117820739746094, 0.0266265869140625, 0.0199432373046875, -0.0035076141357421875, 0.007709503173828125, 0.0364990234375, 0.02044677734375, 0.00858306884765625, -0.0118255615234375, 0.068359375, 0.01483917236328125, 0.0214691162109375, 0.002521514892578125, 0.014495849609375, 0.0180511474609375, -0.00672149658203125, -0.0167236328125, -0.033233642578125, 0.036041259765625, -0.0035552978515625, 0.022369384765625, -0.0037784576416015625, -0.03338623046875, 0.0196990966796875, -0.046783447265625, -0.03424072265625, 0.017608642578125, -0.0050201416015625, -0.036865234375, -0.0292510986328125, -0.0106353759765625, 0.02630615234375, -0.0006299018859863281, 0.01715087890625, -0.004909515380859375, -0.0212249755859375, -0.0086822509765625, -0.0145111083984375, -0.028228759765625, -0.022430419921875, -0.00897216796875, -0.00818634033203125, -0.016693115234375, -0.033660888671875, -0.037200927734375, -0.03521728515625, -0.002410888671875, 0.00159454345703125, 0.053680419921875, -0.01288604736328125, -0.0111541748046875, -0.02410888671875, 0.0200958251953125, -0.0390625, 0.0214080810546875, -0.00040531158447265625, -0.028472900390625, 0.032958984375, -0.034210205078125, -0.032257080078125, -0.038116455078125, -0.0149688720703125, -0.0012378692626953125, -0.029754638671875, -0.00025177001953125, -0.0167999267578125, 0.01873779296875, -0.0426025390625, -0.036590576171875, -0.0134429931640625, 0.035614013671875, 0.0272979736328125, 0.037445068359375, 0.005405426025390625, 0.019866943359375, 0.01678466796875, 0.00691986083984375, 0.011260986328125, -0.015838623046875, -0.0244140625, -0.0175323486328125, -0.0186614990234375, -0.07598876953125, 0.006649017333984375, 0.02752685546875, -0.01471710205078125, 0.037628173828125, 0.0214691162109375, 0.0138702392578125, 0.0216522216796875, 0.0167388916015625, -0.0027217864990234375, -0.01389312744140625, 0.0019855499267578125, -0.004730224609375, -0.01024627685546875, 0.045623779296875, -0.033294677734375, 0.0149688720703125, 0.0011625289916992188, -0.01128387451171875, 0.0245208740234375, -0.028717041015625, 0.00788116455078125, 0.03997802734375, -0.030181884765625, 0.00537109375, 0.0611572265625, 0.0270538330078125, 0.0577392578125, 0.00008171796798706055, 0.0198822021484375, 0.0302886962890625, 0.01525115966796875, -0.0015344619750976562, -0.0254058837890625, 0.03887939453125, 0.0015506744384765625, -0.0032787322998046875, 0.0228424072265625, -0.021331787109375, 0.04168701171875, 0.043731689453125, 0.056427001953125, -0.0509033203125, 0.006221771240234375, -0.0032329559326171875, -0.04168701171875, 0.050262451171875, -0.00334930419921875, 0.0087432861328125, -0.0291595458984375, 0.0159149169921875, 0.0196685791015625, -0.00823211669921875, -0.004978179931640625, -0.008453369140625, -0.0273895263671875, 0.006988525390625, -0.01123046875, 0.0201873779296875, 0.0029468536376953125, -0.0094451904296875, -0.006824493408203125, -0.0013828277587890625, -0.01416778564453125, 0.00872039794921875, -0.0235595703125, -0.0029048919677734375, -0.043975830078125, -0.00208282470703125, -0.0214080810546875, 0.003444671630859375, 0.0183258056640625, 0.022857666015625, 0.0423583984375, 0.0650634765625, -0.00274658203125, 0.0207061767578125, 0.0168304443359375, 0.035797119140625, -0.0521240234375, -0.014404296875, -0.0009889602661132812, 0.0160980224609375, -0.026092529296875, 0.0241851806640625, -0.034820556640625, -0.01526641845703125, 0.015533447265625, -0.0013599395751953125, 0.01465606689453125, -0.007110595703125, -0.024688720703125, 0.030731201171875, -0.017822265625, 0.004596710205078125, -0.008819580078125, 0.040008544921875, -0.0494384765625, -0.034454345703125, 0.005615234375, -0.04937744140625, -0.030548095703125, -0.0323486328125, -0.06536865234375, 0.159912109375, 0.0194244384765625, 0.0242156982421875, 0.0087127685546875, 0.06854248046875, -0.05792236328125, 0.037689208984375, -0.012176513671875, 0.009429931640625, -0.0321044921875, 0.007633209228515625, -0.044769287109375, -0.0048828125, -0.01258087158203125, 0.05206298828125, 0.01320648193359375, -0.00395965576171875, -0.043792724609375, -0.016693115234375, 0.0634765625, 0.074951171875, 0.05877685546875, 0.0160369873046875, 0.020599365234375, 0.0124969482421875, 0.024871826171875, -0.01088714599609375, 0.0325927734375, -0.0132293701171875, -0.021331787109375, 0.04071044921875, 0.0173492431640625, 0.0214996337890625, 0.01363372802734375, -0.0220184326171875, 0.01202392578125, -0.0034332275390625, 0.00614166259765625, -0.031585693359375, 0.0280914306640625, 0.040313720703125, 0.008941650390625, -0.0006771087646484375, -0.001251220703125, -0.023895263671875, 0.02960205078125, -0.023651123046875, -0.00034999847412109375, 0.007781982421875, 0.0014514923095703125, 0.017059326171875, -0.00205230712890625, -0.0096588134765625, 0.0181121826171875, -0.0007162094116210938, 0.037109375, 0.01129913330078125, 0.007293701171875, -0.056884765625, 0.036376953125, 0.07818603515625, 0.060699462890625, -0.05157470703125, 0.007236480712890625, 0.0186004638671875, 0.021453857421875, -0.0295562744140625, -0.0694580078125, -0.044647216796875, -0.06512451171875, -0.027374267578125, 0.00843048095703125, -0.0030384063720703125, 0.031402587890625, 0.0230712890625, 0.025421142578125, 0.052886962890625, -0.040557861328125, -0.0200042724609375, -0.0467529296875, 0.042816162109375, -0.00032591819763183594, 0.0511474609375, -0.000005662441253662109, 0.07049560546875, -0.044830322265625, -0.01271820068359375, -0.039337158203125, 0.031402587890625, 0.040252685546875, 0.0278472900390625, -0.032470703125, -0.013946533203125, 0.05194091796875, 0.01654052734375, 0.023193359375, 0.070556640625, 0.052581787109375, 0.0200042724609375, 0.00995635986328125, 0.01092529296875, 0.018646240234375, -0.024322509765625, -0.0157623291015625, -0.0257415771484375, 0.01212310791015625, 0.0203704833984375, -0.005523681640625, 0.00916290283203125, 0.03271484375, 0.030029296875, -0.024688720703125, 0.006107330322265625, -0.0075531005859375, -0.0526123046875, 0.061065673828125, 0.01409149169921875, 0.11151123046875, 0.016571044921875, -0.058563232421875, -0.0131072998046875, -0.005641937255859375, -0.056365966796875, 0.0190887451171875, 0.026214599609375, -0.0355224609375, 0.034393310546875, -0.01351165771484375, -0.009552001953125, -0.0088653564453125, -0.0167694091796875, 0.037811279296875, 0.03607177734375, -0.006282806396484375, 0.01177978515625, -0.033294677734375, -0.011932373046875, 0.0037059783935546875, 0.00615692138671875, 0.0026454925537109375, 0.05535888671875, 0.00539398193359375, 0.01488494873046875, -0.039581298828125, -0.0016412734985351562, -0.0196533203125, -0.0135345458984375, -0.0452880859375, -0.0007205009460449219, 0.007419586181640625, 0.00493621826171875, 0.0231475830078125, 0.021240234375, 0.016448974609375, -0.01806640625, -0.0016536712646484375, -0.046661376953125, 0.01776123046875, 0.0189361572265625, 0.035675048828125, 0.0039043426513671875, 0.01142120361328125, 0.00469970703125, -0.0113067626953125, 0.052581787109375, 0.0236968994140625, -0.0333251953125, 0.0210723876953125, 0.00807952880859375, -0.0300140380859375, 0.028656005859375, -0.040863037109375, 0.0396728515625, 0.038543701171875, 0.00174713134765625, -0.012115478515625, 0.0136871337890625, -0.0194091796875, 0.004486083984375, 0.0225830078125, 0.00811767578125, 0.0094146728515625, -0.06573486328125, -0.0164794921875, -0.00032448768615722656, 0.0074462890625, -0.0182342529296875, -0.0035724639892578125, -0.00240325927734375, -0.0240325927734375, -0.019775390625, -0.0112457275390625, -0.0179290771484375, -0.06842041015625, -0.0097198486328125, 0.022064208984375, -0.05206298828125, 0.00824737548828125, -0.07183837890625, 0.01338958740234375, 0.0155792236328125, -0.0026226043701171875, -0.0357666015625, 0.004138946533203125, -0.005619049072265625, 0.04449462890625, -0.0287933349609375, 0.0128173828125, -0.005123138427734375, 0.03936767578125, -0.045379638671875, -0.07244873046875, -0.037567138671875, 0.0282135009765625, -0.064453125, 0.0194091796875, 0.0400390625, -0.04046630859375, -0.01580810546875, 0.0247650146484375, 0.037811279296875, 0.0699462890625, 0.025665283203125, -0.016754150390625, -0.0110931396484375, 0.0211944580078125, -0.00797271728515625, -0.0635986328125, 0.0008959770202636719, -0.052581787109375, 0.000025510787963867188, -0.01433563232421875, 0.016265869140625, 0.0260009765625, -0.030670166015625, -0.07928466796875, 0.0206146240234375, -0.021331787109375, -0.036224365234375, -0.025909423828125, 0.01076507568359375, -0.0206146240234375, 0.04296875, 0.003849029541015625, -0.01021575927734375, -0.0017232894897460938, 0.01244354248046875, 0.010498046875, 0.0245208740234375, 0.03546142578125, -0.01300811767578125, -0.051971435546875, -0.02606201171875, -0.0251312255859375, 0.012054443359375, 0.059722900390625, -0.035552978515625, 0.046417236328125, 0.043792724609375, -0.0634765625, -0.0233001708984375, -0.05743408203125, -0.004241943359375, -0.03948974609375, -0.04534912109375, -0.01134490966796875, 0.005832672119140625, 0.091796875, 0.06170654296875, 0.02130126953125, -0.051300048828125, 0.041015625, -0.00896453857421875, -0.0082550048828125, -0.00018167495727539062, -0.0006847381591796875, -0.027191162109375, -0.0177001953125, 0.0054779052734375, 0.0098419189453125, -0.0272369384765625, -0.002197265625, -0.015869140625, -0.0238189697265625, 0.0204010009765625, -0.0003535747528076172, -0.01220703125, -0.006114959716796875, 0.1273193359375, -0.0699462890625, -0.01261138916015625, 0.0081329345703125, 0.009307861328125, 0.046722412109375, -0.033111572265625, 0.00476837158203125, -0.01690673828125, -0.006458282470703125, 0.0265045166015625, 0.009063720703125, -0.003147125244140625, -0.0167694091796875, -0.0096282958984375, 0.01374053955078125, 0.0220184326171875, -0.0162506103515625, 0.0265960693359375, -0.01512908935546875, 0.055450439453125, -0.036376953125, 0.09722900390625, -0.042510986328125, 0.0238037109375, -0.0215301513671875, 0.0139923095703125, 0.005229949951171875, 0.0170135498046875, 0.0616455078125, 0.0017032623291015625, 0.000347137451171875, 0.043426513671875, -0.018890380859375, -0.022552490234375, 0.0270843505859375, -0.0044403076171875, 0.01360321044921875, 0.0034503936767578125 ]
2c88c9fde7e5ab5c6dc2993092f489cb37c1d9a3
Wordpress Stackexchange Q: How to list all network sites on one page Can I list all the blogs in my network on one page? A: yes, small source for an template. <ul class='postlist no-mp'> <?php /** * Old version, change on 07/23/2013 * $blogs = $wpdb->get_results( "SELECT blog_id,path FROM {$wpdb->blogs} WHERE blog_id != {$wpdb->blogid} AND site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' order by blog_id", ARRAY_A ); */ // get all blogs $blogs = get_blog_list( 0, 'all' ); if ( 0 < count( $blogs ) ) : foreach( $blogs as $blog ) : switch_to_blog( $blog[ 'blog_id' ] ); if ( get_theme_mod( 'show_in_home', 'on' ) !== 'on' ) { continue; } $description = get_bloginfo( 'description' ); $blog_details = get_blog_details( $blog[ 'blog_id' ] ); ?> <li class="no-mp"> <h2 class="no-mp blog_title"> <a href="<?php echo $blog_details->path ?>"> <?php echo $blog_details->blogname; ?> </a> </h2> <div class="blog_description"> <?php echo $description; ?> </div> <?php query_posts( 'showposts=5' ); if ( have_posts() ) : while( have_posts() ) : the_post(); ?> <div class="blog_post"> <div class="post_title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </div> <div class="post_excerpt"> <?php the_excerpt(); ?> </div> </div> <?php endwhile; ?> <?php endif; restore_current_blog(); ?> </li> <?php endforeach; endif; ?> </ul>
Q: How to list all network sites on one page Can I list all the blogs in my network on one page? A: yes, small source for an template. <ul class='postlist no-mp'> <?php /** * Old version, change on 07/23/2013 * $blogs = $wpdb->get_results( "SELECT blog_id,path FROM {$wpdb->blogs} WHERE blog_id != {$wpdb->blogid} AND site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' order by blog_id", ARRAY_A ); */ // get all blogs $blogs = get_blog_list( 0, 'all' ); if ( 0 < count( $blogs ) ) : foreach( $blogs as $blog ) : switch_to_blog( $blog[ 'blog_id' ] ); if ( get_theme_mod( 'show_in_home', 'on' ) !== 'on' ) { continue; } $description = get_bloginfo( 'description' ); $blog_details = get_blog_details( $blog[ 'blog_id' ] ); ?> <li class="no-mp"> <h2 class="no-mp blog_title"> <a href="<?php echo $blog_details->path ?>"> <?php echo $blog_details->blogname; ?> </a> </h2> <div class="blog_description"> <?php echo $description; ?> </div> <?php query_posts( 'showposts=5' ); if ( have_posts() ) : while( have_posts() ) : the_post(); ?> <div class="blog_post"> <div class="post_title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </div> <div class="post_excerpt"> <?php the_excerpt(); ?> </div> </div> <?php endwhile; ?> <?php endif; restore_current_blog(); ?> </li> <?php endforeach; endif; ?> </ul> A: This will print out an unordered list of all public sites in a multisite network: // $bcount = get_blog_count(); global $wpdb; $blogs = $wpdb->get_results("SELECT * FROM $wpdb->blogs WHERE spam = '0' AND deleted = '0' and archived = '0' and public='1'"); if(!empty($blogs)){ ?><ul class="menu"><?php foreach($blogs as $blog){ $details = get_blog_details($blog->blog_id); if($details != false){ $addr = $details->siteurl; $name = $details->blogname; if(!(($blog->blog_id == 1)&&($show_main != 1))){ ?> <li class="menu-item<?php if($counter == get_current_blog_id()){ echo ' current-menu-item';}?>"> <a href="<?php echo $addr; ?>"><?php echo $name;?></a> </li> <?php } } } ?></ul><?php } A: This is a solution written basing on Tom J Nowell idea and answer. It prints out sorted list of all sites in Wordpress Multisite installation, as simple line (separated with pipe). To get this solution running, edit your currently selected theme and select shortcodes.php from right sidebar. Near the end of this file, before first occurence of add_shortcode call add following function: function theme_list_all_network_sites() { global $wpdb; $result = ''; $sites = array(); $blogs = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->blogs WHERE spam = '0' AND deleted = '0' and archived = '0' and public='1'")); if(!empty($blogs)) { foreach($blogs as $blog) { $details = get_blog_details($blog->blog_id); if($details != false) { $url = $details->siteurl; $name = $details->blogname; if(!(($blog->blog_id == 1) && ($show_main != 1))) { $sites[$name] = $url; } } } ksort($sites); $count = count($sites); $current = 1; foreach($sites as $name=>$url) { $result.= '<a href="'.$url.'">'.$name.'</a>'; $result.= ($current == $count) ? "\n" : ' | '; ++$current; } } return $result; } Then scroll down to the end of file and after last occurence of add_shortcode add: add_shortcode('network_list', 'theme_list_all_network_sites'); Click Update File to save your changes. Now, whenever anyone use [network_list] shortcode to in post, page or theme element, a list of network sites will be printed in place of that shortcode. A: Since WordPress 4.6.0, I offer you a more modern way to "list" (or more) : <?php $sites_q = new \WP_Site_Query( [ 'site__not_in' => get_main_site_for_network(), ] ); $sites_for_network = $sites_q->get_sites(); if ( ! empty( $sites_for_network ) ) { $original_site_id = get_current_blog_id(); foreach ( $sites_for_network as $site ) { /** @var $site \WP_Site */ switch_to_blog( $site->blog_id ); // Do stuff with the site } switch_to_blog( $original_site_id ); }
wordpress
{ "language": "en", "length": 560, "provenance": "stackexchange_00019.jsonl.gz:416956", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41790" }
[ 0.043182373046875, -0.019134521484375, 0.0290679931640625, 0.003875732421875, -0.0165252685546875, -0.0263671875, 0.06256103515625, -0.0174560546875, -0.0126190185546875, 0.03302001953125, -0.033782958984375, 0.03900146484375, -0.02972412109375, -0.01654052734375, 0.0170440673828125, -0.04241943359375, 0.0589599609375, -0.02825927734375, 0.0389404296875, 0.0293121337890625, 0.0005841255187988281, 0.0469970703125, 0.03125, 0.0131072998046875, 0.01097869873046875, -0.0635986328125, 0.1058349609375, -0.0069580078125, -0.0049896240234375, -0.038299560546875, 0.00878143310546875, 0.01473236083984375, 0.0435791015625, -0.019989013671875, -0.010894775390625, -0.0455322265625, 0.017852783203125, -0.0167999267578125, -0.025909423828125, 0.045135498046875, 0.019073486328125, -0.004970550537109375, 0.044525146484375, -0.0017957687377929688, -0.00038170814514160156, -0.0132293701171875, 0.01053619384765625, -0.041168212890625, 0.01007080078125, -0.00579833984375, 0.01763916015625, -0.005176544189453125, 0.0220947265625, 0.0247344970703125, -0.034515380859375, -0.0168914794921875, 0.0260162353515625, -0.0171966552734375, 0.01313018798828125, -0.07037353515625, -0.0281829833984375, 0.01129913330078125, 0.04718017578125, 0.033203125, -0.039642333984375, 0.00020253658294677734, 0.0609130859375, 0.0194854736328125, -0.04620361328125, -0.0650634765625, 0.0221710205078125, -0.0089569091796875, -0.0025997161865234375, -0.0222930908203125, -0.0184783935546875, 0.01342010498046875, -0.01690673828125, -0.0268096923828125, 0.0184173583984375, -0.010467529296875, 0.00479888916015625, 0.029541015625, -0.06671142578125, -0.0005826950073242188, 0.021087646484375, 0.03143310546875, -0.01084136962890625, -0.031768798828125, -0.02294921875, -0.0251312255859375, -0.0180511474609375, -0.0206756591796875, -0.0260467529296875, -0.00039887428283691406, -0.0238037109375, -0.00910186767578125, 0.0159759521484375, 0.056640625, -0.01378631591796875, -0.01326751708984375, -0.02984619140625, -0.005413055419921875, -0.032745361328125, -0.0291290283203125, 0.00027108192443847656, 0.02410888671875, 0.006191253662109375, 0.0235595703125, 0.031951904296875, 0.0291290283203125, -0.005321502685546875, 0.006069183349609375, -0.030242919921875, -0.005847930908203125, -0.0361328125, -0.0261077880859375, -0.075439453125, 0.008819580078125, 0.0083465576171875, -0.04937744140625, 0.01483154296875, 0.031646728515625, -0.01268768310546875, 0.01149749755859375, -0.029632568359375, -0.01325225830078125, 0.0005478858947753906, -0.0360107421875, -0.031890869140625, 0.01508331298828125, -0.03265380859375, -0.00007462501525878906, 0.0316162109375, 0.03558349609375, 0.01439666748046875, -0.026702880859375, 0.0145416259765625, 0.0174102783203125, -0.00789642333984375, -0.01171875, 0.08453369140625, -0.020050048828125, -0.050048828125, 0.03973388671875, 0.00016236305236816406, 0.037353515625, 0.027862548828125, 0.0028095245361328125, -0.0085296630859375, -0.0033283233642578125, -0.0235443115234375, 0.0234222412109375, 0.01491546630859375, 0.0030536651611328125, 0.02642822265625, -0.047393798828125, 0.0535888671875, -0.055023193359375, 0.00518798828125, -0.05340576171875, 0.036376953125, 0.0184326171875, 0.0214691162109375, -0.031982421875, -0.03082275390625, -0.05926513671875, -0.0399169921875, -0.01027679443359375, 0.0236358642578125, -0.03411865234375, -0.0035552978515625, -0.03790283203125, 0.0386962890625, 0.032501220703125, 0.0135040283203125, 0.052276611328125, -0.00528717041015625, -0.02166748046875, 0.01114654541015625, 0.03216552734375, -0.014556884765625, -0.036712646484375, -0.0218353271484375, 0.0231781005859375, -0.08538818359375, 0.04541015625, -0.0079345703125, 0.049102783203125, 0.05023193359375, -0.00908660888671875, 0.076904296875, -0.0008172988891601562, -0.020751953125, 0.02386474609375, -0.0115203857421875, -0.01403045654296875, -0.0185089111328125, 0.00908660888671875, -0.0157318115234375, -0.0081024169921875, 0.0035037994384765625, -0.0004038810729980469, 0.012542724609375, 0.026885986328125, 0.01171112060546875, 0.0079498291015625, 0.0058746337890625, 0.0180511474609375, 0.002803802490234375, 0.0100860595703125, 0.016510009765625, 0.011932373046875, -0.0059814453125, -0.0758056640625, -0.0282745361328125, 0.036895751953125, 0.006778717041015625, -0.01031494140625, -0.00920867919921875, -0.00615692138671875, -0.005847930908203125, 0.01515960693359375, -0.0147857666015625, 0.054534912109375, 0.08917236328125, -0.038604736328125, -0.00749969482421875, -0.0478515625, 0.007564544677734375, 0.0156402587890625, -0.116455078125, 0.03033447265625, -0.01288604736328125, 0.0467529296875, -0.00832366943359375, -0.00965118408203125, 0.01538848876953125, -0.0087127685546875, 0.03216552734375, 0.01413726806640625, 0.0257110595703125, 0.014617919921875, -0.0236053466796875, -0.014678955078125, 0.00685882568359375, -0.0290374755859375, 0.01020050048828125, -0.0175933837890625, 0.01556396484375, 0.05615234375, -0.0126953125, 0.033599853515625, 0.0186004638671875, 0.018829345703125, 0.01375579833984375, 0.04241943359375, 0.0033626556396484375, 0.0193023681640625, -0.037811279296875, 0.0103759765625, 0.012115478515625, 0.05377197265625, 0.003696441650390625, 0.02679443359375, 0.050079345703125, 0.01039886474609375, 0.0299530029296875, 0.024078369140625, -0.0218658447265625, -0.004367828369140625, 0.0029296875, 0.0007758140563964844, 0.0040130615234375, 0.06298828125, -0.02099609375, -0.0113372802734375, -0.0119476318359375, -0.005352020263671875, -0.040557861328125, 0.01166534423828125, 0.01189422607421875, 0.022369384765625, 0.03173828125, -0.0024890899658203125, 0.02264404296875, -0.03179931640625, 0.02252197265625, 0.0193328857421875, -0.030609130859375, -0.00006461143493652344, 0.01201629638671875, 0.036285400390625, -0.0182952880859375, 0.01532745361328125, 0.014984130859375, -0.0059051513671875, 0.00933074951171875, -0.061309814453125, 0.044464111328125, -0.033416748046875, 0.055267333984375, 0.05902099609375, -0.01461029052734375, 0.0240936279296875, -0.030548095703125, -0.0063934326171875, -0.00896453857421875, -0.027587890625, -0.034423828125, -0.03643798828125, -0.0247650146484375, 0.013824462890625, 0.0193023681640625, 0.033111572265625, 0.00691986083984375, -0.02117919921875, 0.002544403076171875, 0.021514892578125, -0.06878662109375, -0.051055908203125, 0.022796630859375, -0.06097412109375, 0.03338623046875, -0.03387451171875, -0.03009033203125, -0.03466796875, 0.003692626953125, 0.00412750244140625, 0.001857757568359375, -0.040252685546875, -0.078857421875, -0.05694580078125, -0.090087890625, 0.01068878173828125, 0.001529693603515625, 0.023345947265625, 0.01113128662109375, 0.07403564453125, 0.01381683349609375, -0.0535888671875, 0.028961181640625, 0.0296173095703125, -0.01305389404296875, 0.0145263671875, -0.0187530517578125, 0.0059814453125, -0.0439453125, 0.00933837890625, -0.00640106201171875, -0.0128631591796875, -0.003986358642578125, -0.005275726318359375, 0.007110595703125, 0.0109100341796875, 0.034149169921875, -0.0261688232421875, -0.0172576904296875, 0.00748443603515625, -0.0140228271484375, -0.051727294921875, -0.0246124267578125, -0.0141754150390625, -0.045318603515625, 0.0181427001953125, 0.03314208984375, -0.01221466064453125, -0.0055389404296875, -0.0020008087158203125, -0.017547607421875, 0.0005350112915039062, -0.0188751220703125, -0.01556396484375, 0.02728271484375, 0.00010448694229125977, 0.0183868408203125, 0.01849365234375, 0.0241851806640625, -0.0015192031860351562, -0.0229339599609375, -0.01517486572265625, 0.022003173828125, -0.021331787109375, 0.021392822265625, -0.037322998046875, 0.0015306472778320312, 0.0374755859375, -0.016021728515625, 0.005321502685546875, 0.0036678314208984375, -0.0232391357421875, 0.01019287109375, 0.06878662109375, -0.077880859375, -0.0312042236328125, -0.016082763671875, 0.01934814453125, 0.00008273124694824219, -0.04107666015625, 0.012786865234375, -0.018341064453125, -0.11273193359375, 0.00984954833984375, -0.00623321533203125, -0.05047607421875, -0.0014133453369140625, -0.03790283203125, -0.05889892578125, -0.03875732421875, 0.0195465087890625, 0.0240936279296875, -0.0012941360473632812, 0.0020160675048828125, -0.016937255859375, 0.01442718505859375, -0.00281524658203125, -0.006427764892578125, -0.02960205078125, -0.0135955810546875, -0.00986480712890625, 0.0222625732421875, 0.00917816162109375, -0.0160675048828125, -0.0028972625732421875, 0.037933349609375, -0.01119232177734375, -0.000759124755859375, 0.0093994140625, 0.01407623291015625, -0.00077056884765625, -0.0090179443359375, -0.005809783935546875, -0.040130615234375, -0.0148468017578125, -0.01776123046875, -0.02642822265625, -0.00505828857421875, -0.01451873779296875, 0.00128936767578125, 0.01412200927734375, -0.0247344970703125, -0.0227813720703125, -0.0112762451171875, 0.00975799560546875, 0.031646728515625, -0.004070281982421875, -0.0018472671508789062, -0.0377197265625, -0.04144287109375, 0.0284271240234375, -0.001739501953125, -0.0294342041015625, 0.01837158203125, 0.07244873046875, 0.013702392578125, -0.0158538818359375, -0.08319091796875, 0.0250091552734375, 0.028717041015625, -0.033599853515625, 0.058929443359375, 0.033782958984375, -0.008148193359375, 0.0452880859375, -0.0179595947265625, -0.0024967193603515625, 0.060577392578125, -0.01372528076171875, 0.0118408203125, -0.025390625, 0.0269622802734375, 0.0322265625, -0.044525146484375, 0.01318359375, -0.027008056640625, -0.0201873779296875, -0.005886077880859375, 0.059417724609375, -0.023162841796875, 0.034576416015625, -0.043365478515625, -0.040863037109375, -0.002857208251953125, -0.022674560546875, 0.0243988037109375, 0.03143310546875, -0.00750732421875, 0.025543212890625, 0.033905029296875, -0.006221771240234375, 0.06024169921875, 0.0223541259765625, 0.024810791015625, 0.01532745361328125, 0.01544189453125, -0.031768798828125, 0.0234832763671875, -0.03607177734375, 0.07464599609375, 0.0125579833984375, -0.05908203125, 0.082275390625, -0.03338623046875, 0.0305938720703125, 0.0254364013671875, 0.0290374755859375, 0.041778564453125, 0.0188446044921875, -0.0211029052734375, -0.0206756591796875, -0.045318603515625, 0.008544921875, -0.06561279296875, 0.046112060546875, 0.008209228515625, 0.0019044876098632812, 0.04638671875, 0.0290374755859375, -0.028167724609375, 0.059661865234375, -0.00983428955078125, 0.04266357421875, 0.06024169921875, 0.027069091796875, 0.03387451171875, -0.0104827880859375, -0.03912353515625, 0.0203704833984375, -0.03778076171875, -0.035797119140625, 0.036865234375, 0.063720703125, 0.03472900390625, 0.042266845703125, -0.04156494140625, -0.03570556640625, -0.04144287109375, -0.0225677490234375, 0.0169677734375, 0.01419830322265625, -0.02508544921875, -0.0171356201171875, 0.00545501708984375, -0.005401611328125, 0.0166778564453125, 0.01568603515625, -0.066650390625, 0.0105133056640625, -0.007335662841796875, -0.0457763671875, -0.0015211105346679688, -0.0081329345703125, 0.0115966796875, -0.003986358642578125, -0.011505126953125, 0.0060272216796875, -0.051116943359375, -0.0062713623046875, -0.0233154296875, -0.0352783203125, 0.0701904296875, -0.018524169921875, 0.03656005859375, -0.022186279296875, -0.01509857177734375, -0.022705078125, 0.0094757080078125, 0.0545654296875, 0.04522705078125, -0.0040435791015625, -0.003490447998046875, -0.03509521484375, -0.01153564453125, -0.0005288124084472656, -0.045074462890625, -0.0106353759765625, -0.0250396728515625, 0.00982666015625, 0.00901031494140625, 0.00728607177734375, -0.01146697998046875, -0.010711669921875, 0.01434326171875, 0.0016431808471679688, 0.004169464111328125, -0.00821685791015625, 0.0679931640625, -0.0164337158203125, 0.036376953125, 0.014923095703125, 0.051025390625, -0.006679534912109375, -0.00603485107421875, 0.037506103515625, -0.0548095703125, -0.045196533203125, -0.01090240478515625, -0.0770263671875, -0.0171966552734375, 0.01361846923828125, -0.00887298583984375, -0.003192901611328125, -0.0196075439453125, 0.00687408447265625, -0.01751708984375, -0.00716400146484375, -0.0042266845703125, -0.028045654296875, 0.0265350341796875, -0.00420379638671875, 0.0208587646484375, -0.01019287109375, -0.0157012939453125, -0.00708770751953125, 0.0041961669921875, 0.0006442070007324219, -0.01450347900390625, -0.0196075439453125, 0.058990478515625, 0.07525634765625, -0.008544921875, 0.043701171875, 0.0258941650390625, 0.0013399124145507812, 0.0104217529296875, -0.0013599395751953125, 0.037689208984375, 0.0012807846069335938, 0.04901123046875, 0.0012102127075195312, 0.03167724609375, 0.044036865234375, -0.0183868408203125, 0.001270294189453125, 0.01129150390625, 0.039154052734375, -0.038116455078125, 0.0216217041015625, 0.00978851318359375, 0.0171051025390625, 0.0445556640625, -0.00811004638671875, -0.0088958740234375, -0.0158538818359375, 0.02301025390625, 0.00030803680419921875, -0.030731201171875, -0.018341064453125, 0.0017547607421875, 0.01532745361328125, 0.016845703125, 0.0465087890625, 0.01263427734375, -0.04400634765625, -0.034881591796875, 0.04779052734375, 0.0220489501953125, -0.04052734375, -0.0180816650390625, 0.01812744140625, -0.0025424957275390625, -0.04864501953125, 0.024383544921875, -0.033538818359375, 0.029022216796875, 0.01325225830078125, 0.0168609619140625, -0.04156494140625, 0.063232421875, -0.0447998046875, 0.046539306640625, 0.032257080078125, -0.0653076171875, -0.017578125, -0.012054443359375, -0.0175933837890625, 0.005664825439453125, 0.00415802001953125, 0.0099639892578125, -0.0165252685546875, -0.00916290283203125, 0.0019025802612304688, -0.006084442138671875, 0.08123779296875, -0.039947509765625, -0.0142669677734375, 0.044921875, -0.002597808837890625, -0.022369384765625, -0.0289459228515625, 0.030731201171875, -0.0621337890625, -0.015533447265625, -0.0009446144104003906, 0.0079803466796875, 0.00460052490234375, -0.033233642578125, -0.07342529296875, 0.10443115234375, 0.00626373291015625, 0.020233154296875, 0.006595611572265625, 0.0377197265625, -0.035736083984375, 0.0100555419921875, -0.047119140625, 0.07806396484375, 0.0200042724609375, 0.028472900390625, -0.0294036865234375, -0.0011167526245117188, 0.0222930908203125, 0.004169464111328125, 0.0017843246459960938, 0.0035762786865234375, -0.020538330078125, -0.0235748291015625, 0.000072479248046875, 0.0222625732421875, -0.007167816162109375, 0.02923583984375, -0.005615234375, 0.0293426513671875, 0.053314208984375, -0.058624267578125, 0.021453857421875, -0.004695892333984375, 0.01056671142578125, 0.01241302490234375, 0.02197265625, 0.0265350341796875, -0.004184722900390625, -0.0251922607421875, -0.0222320556640625, 0.0019626617431640625, 0.0184478759765625, -0.0185394287109375, 0.0202789306640625, 0.0225830078125, 0.02203369140625, -0.05108642578125, 0.01568603515625, -0.03448486328125, 0.0509033203125, -0.01502227783203125, 0.0258026123046875, 0.0101318359375, 0.0208282470703125, 0.0933837890625, -0.033966064453125, 0.008575439453125, -0.00414276123046875, -0.00792694091796875, 0.056304931640625, 0.009979248046875, 0.033172607421875, -0.069580078125, -0.03509521484375, 0.03387451171875, 0.07452392578125, -0.03448486328125, -0.037689208984375, 0.0120391845703125, 0.00815582275390625, 0.0029926300048828125, 0.01318359375, 0.0223236083984375, -0.0192413330078125, 0.0256805419921875, -0.0169525146484375, -0.0128021240234375, 0.0104522705078125, 0.009368896484375, 0.01287078857421875, 0.012939453125, 0.00966644287109375, -0.0198516845703125, -0.042236328125, 0.02923583984375, -0.003429412841796875, 0.037750244140625, 0.0005517005920410156, 0.04571533203125, -0.0240631103515625, -0.0219268798828125, 0.00811767578125, 0.00799560546875, -0.044219970703125, -0.003841400146484375, -0.0254974365234375, -0.06884765625, -0.00795745849609375, 0.03155517578125, 0.05572509765625, 0.005573272705078125, 0.046722412109375, 0.0203704833984375, -0.0279541015625, 0.0148773193359375, 0.0364990234375, -0.01335906982421875, -0.0162506103515625, -0.01514434814453125, -0.03375244140625, 0.01003265380859375, -0.01371002197265625, 0.01055145263671875, 0.029052734375, 0.01166534423828125, -0.01419830322265625, 0.041839599609375, -0.00849151611328125, -0.0232086181640625, -0.01580810546875, -0.00811767578125, 0.0292510986328125, -0.00826263427734375, -0.114501953125, -0.013153076171875, -0.042694091796875, -0.0211639404296875, 0.0273590087890625, 0.039031982421875, 0.01317596435546875, -0.0096435546875, 0.0006427764892578125, 0.017547607421875, -0.0011968612670898438, 0.0117950439453125, -0.01470184326171875, 0.055328369140625, 0.051971435546875, 0.01438140869140625, -0.0869140625, -0.06488037109375, -0.0259246826171875, 0.031524658203125, 0.00022554397583007812, 0.07354736328125, -0.01099395751953125, 0.0218505859375, 0.01241302490234375, 0.019195556640625, -0.04351806640625, -0.00609588623046875, 0.00734710693359375, -0.0312042236328125, -0.01371002197265625, 0.0003917217254638672, -0.04986572265625, 0.032928466796875, 0.036224365234375, -0.017120361328125, 0.045806884765625, -0.01520538330078125, 0.002674102783203125, -0.06134033203125, -0.0031757354736328125, -0.035247802734375, -0.04864501953125, -0.0268096923828125, 0.004108428955078125, 0.004913330078125, 0.024078369140625, -0.022430419921875, 0.055816650390625, 0.035186767578125, -0.0173797607421875, 0.025726318359375, -0.05255126953125, 0.03546142578125, 0.0355224609375, 0.03802490234375, -0.0288238525390625, -0.01074981689453125, -0.008819580078125, -0.007659912109375, 0.0117340087890625, 0.0224609375, -0.0172119140625, -0.0227813720703125, 0.0013446807861328125, 0.0121917724609375, 0.043304443359375, -0.025665283203125, 0.021331787109375, 0.004901885986328125, 0.0035610198974609375, 0.00687408447265625, -0.0167694091796875, -0.0235595703125, -0.06439208984375, -0.021697998046875, 0.00708770751953125, -0.050384521484375, -0.040679931640625, -0.030731201171875, -0.0078887939453125, 0.00678253173828125, -0.0169525146484375, -0.004688262939453125, 0.017486572265625, -0.034210205078125, 0.01024627685546875, -0.0301666259765625, 0.00530242919921875, 0.00186920166015625, 0.033905029296875, -0.01251983642578125, -0.0098114013671875, -0.014984130859375, 0.0162811279296875, -0.010528564453125, 0.0183563232421875, 0.043914794921875, -0.0235748291015625, 0.0158538818359375, 0.0187835693359375, 0.020294189453125, 0.06573486328125, 0.0009417533874511719, -0.0165557861328125, -0.00623321533203125, -0.0093231201171875, -0.0011749267578125, -0.07269287109375, 0.002971649169921875, -0.0772705078125, -0.01751708984375, 0.0224456787109375, -0.0186767578125, 0.002857208251953125, -0.038238525390625, -0.052093505859375, 0.10552978515625, -0.0036468505859375, -0.0318603515625, -0.053253173828125, -0.00015878677368164062, 0.01517486572265625, 0.01003265380859375, -0.0216827392578125, 0.0025615692138671875, -0.0443115234375, 0.0209808349609375, 0.0199127197265625, 0.046417236328125, -0.0013599395751953125, 0.035736083984375, -0.0116119384765625, 0.03662109375, 0.0004725456237792969, -0.0167999267578125, 0.0399169921875, -0.0159912109375, 0.050537109375, 0.05096435546875, -0.04522705078125, 0.0009927749633789062, -0.026123046875, -0.01093292236328125, 0.0089874267578125, -0.00614166259765625, -0.037200927734375, -0.007373809814453125, 0.046295166015625, 0.042205810546875, 0.0302886962890625, -0.0296630859375, -0.0121612548828125, -0.00443267822265625, -0.06878662109375, 0.0011081695556640625, 0.049835205078125, -0.057098388671875, 0.00299072265625, 0.00882720947265625, -0.0146331787109375, 0.00637054443359375, -0.0303497314453125, -0.042999267578125, 0.0025177001953125, -0.0037097930908203125, 0.0013933181762695312, -0.003414154052734375, 0.005680084228515625, 0.035186767578125, -0.034210205078125, 0.00667572021484375, -0.023162841796875, 0.0101318359375, -0.0037631988525390625, -0.032806396484375, -0.035552978515625, -0.0300445556640625, -0.0003104209899902344, 0.0247650146484375, -0.00917816162109375, 0.016632080078125, 0.004756927490234375, 0.00765228271484375, -0.025421142578125, -0.0015611648559570312, 0.0196990966796875, -0.01305389404296875, -0.0166473388671875, -0.0111541748046875, 0.0010585784912109375, 0.0240020751953125, -0.00428009033203125, 0.06982421875, 0.00027298927307128906, 0.060455322265625, 0.006458282470703125, -0.0328369140625, 0.034881591796875, -0.04437255859375, -0.0194091796875, 0.004302978515625, -0.0107421875, -0.06988525390625, 0.057708740234375, 0.020599365234375, 0.0159759521484375, 0.046630859375 ]
cc295472641589ea473ca6eceb4e86ce9c3f2546
Wordpress Stackexchange Q: Insert "New User" and update/set meta data at once The wordpress function wp_insert_user doesn't seem to set (overwrite) the input I give. (documentation shows you can't) Trying to use: wp_insert_user using the returned userID also doesn't work. Of course I could just make my own query but maybe I'm forgetting an option to insert this data using a existing function. $userdata = array( //user login 'user_pass' => esc_attr( $_POST['pass'] ), 'user_login' => esc_attr( $_POST['user'] ), 'user_email' => esc_attr( $_POST['email'] ), //user meta 'rich_editing' => false, 'comment_shortcuts' => false, 'show_admin_bar_front' => false, 'wp_user_level' => 0, 'wp_capabilities' => 'a:1:{s:10:"subscriber";s:1:"1";}' ); $new_user_user_id = wp_insert_user( $userdata ); A: What you are best off doing is hooking into user_register and from there updating the user options you want them set to. Below is an example of disabling the admin bar for new users: add_action("user_register", "sc_set_user_admin_bar_false_by_default", 10, 1); function sc_set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, 'show_admin_bar_front', 'false' ); update_user_meta( $user_id, 'show_admin_bar_admin', 'false' ); }
Q: Insert "New User" and update/set meta data at once The wordpress function wp_insert_user doesn't seem to set (overwrite) the input I give. (documentation shows you can't) Trying to use: wp_insert_user using the returned userID also doesn't work. Of course I could just make my own query but maybe I'm forgetting an option to insert this data using a existing function. $userdata = array( //user login 'user_pass' => esc_attr( $_POST['pass'] ), 'user_login' => esc_attr( $_POST['user'] ), 'user_email' => esc_attr( $_POST['email'] ), //user meta 'rich_editing' => false, 'comment_shortcuts' => false, 'show_admin_bar_front' => false, 'wp_user_level' => 0, 'wp_capabilities' => 'a:1:{s:10:"subscriber";s:1:"1";}' ); $new_user_user_id = wp_insert_user( $userdata ); A: What you are best off doing is hooking into user_register and from there updating the user options you want them set to. Below is an example of disabling the admin bar for new users: add_action("user_register", "sc_set_user_admin_bar_false_by_default", 10, 1); function sc_set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, 'show_admin_bar_front', 'false' ); update_user_meta( $user_id, 'show_admin_bar_admin', 'false' ); } A: The codex page for wp_insert_user() lists all the values that it accepts. comment_shortcuts, and show_admin_bar_front will all need to be set with update_user_meta(). To handle wp_user_level and wp_capabilities you will need to use WP_User. You can use $new_user_user_id (long var name lol) for both WP_User and update_user_meta()
wordpress
{ "language": "en", "length": 205, "provenance": "stackexchange_00019.jsonl.gz:416986", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41900" }
[ 0.09552001953125, -0.01082611083984375, 0.035003662109375, -0.022216796875, 0.009185791015625, -0.035552978515625, 0.04559326171875, -0.05810546875, 0.014556884765625, 0.0216217041015625, -0.0164794921875, -0.0313720703125, 0.04034423828125, -0.0284271240234375, -0.01483154296875, -0.021209716796875, 0.004608154296875, 0.021728515625, -0.0171966552734375, -0.018646240234375, -0.00814056396484375, -0.017303466796875, -0.0101318359375, 0.01134490966796875, 0.009033203125, -0.023040771484375, 0.03167724609375, -0.022003173828125, 0.0121612548828125, -0.0018682479858398438, 0.010406494140625, -0.0015735626220703125, -0.015411376953125, 0.044921875, -0.0028743743896484375, 0.0136566162109375, -0.0028018951416015625, 0.031951904296875, 0.04595947265625, -0.01507568359375, 0.03704833984375, -0.003772735595703125, -0.0127716064453125, 0.0276947021484375, -0.0127105712890625, -0.0826416015625, 0.07080078125, -0.007495880126953125, 0.05169677734375, -0.00994110107421875, -0.0013275146484375, 0.016571044921875, 0.008636474609375, -0.0404052734375, 0.002155303955078125, 0.036376953125, 0.00382232666015625, -0.0275421142578125, 0.03216552734375, 0.061737060546875, -0.00812530517578125, -0.01337432861328125, -0.0015115737915039062, -0.083251953125, 0.0294952392578125, -0.0236053466796875, -0.00778961181640625, 0.03857421875, -0.048553466796875, 0.0297393798828125, 0.038787841796875, -0.03778076171875, 0.003986358642578125, 0.005168914794921875, -0.005092620849609375, -0.0017528533935546875, 0.011199951171875, 0.0213165283203125, 0.00313568115234375, 0.0192718505859375, 0.007568359375, 0.02178955078125, -0.028961181640625, -0.0240020751953125, 0.016326904296875, 0.0136871337890625, -0.0169830322265625, -0.0182952880859375, -0.0163116455078125, -0.00957489013671875, -0.01023101806640625, -0.037689208984375, -0.0017385482788085938, 0.0036754608154296875, -0.01412200927734375, -0.027679443359375, 0.028839111328125, 0.047576904296875, -0.0218505859375, -0.0200347900390625, -0.0079345703125, -0.0232696533203125, -0.0247039794921875, -0.013671875, 0.01497650146484375, 0.05499267578125, -0.0306243896484375, -0.01560211181640625, 0.006866455078125, 0.026092529296875, 0.0014209747314453125, -0.0419921875, -0.0263671875, -0.007709503173828125, -0.0169219970703125, 0.01166534423828125, -0.0535888671875, 0.01496124267578125, -0.012847900390625, 0.0391845703125, -0.01053619384765625, 0.0274505615234375, -0.00543212890625, -0.01279449462890625, 0.00817108154296875, 0.004482269287109375, -0.015472412109375, -0.0166473388671875, -0.0640869140625, -0.0216217041015625, -0.0401611328125, 0.032257080078125, 0.11871337890625, 0.07275390625, 0.046844482421875, -0.0017766952514648438, 0.0211181640625, -0.0230712890625, -0.01537322998046875, 0.035247802734375, -0.0193328857421875, -0.052215576171875, -0.025390625, -0.007083892822265625, -0.0021686553955078125, 0.0201568603515625, 0.01364898681640625, 0.01007080078125, 0.0081329345703125, -0.011077880859375, -0.04632568359375, -0.00177001953125, -0.0129241943359375, 0.02911376953125, -0.0063934326171875, 0.056427001953125, 0.002590179443359375, 0.026611328125, -0.04608154296875, 0.02783203125, 0.0230712890625, 0.0214691162109375, 0.0350341796875, -0.0027484893798828125, -0.025421142578125, -0.0205230712890625, -0.03668212890625, -0.01148223876953125, 0.0297088623046875, 0.056243896484375, 0.0272064208984375, 0.0245513916015625, 0.0186614990234375, 0.01268768310546875, -0.0014982223510742188, -0.03729248046875, 0.002140045166015625, 0.034576416015625, 0.0106201171875, 0.000782012939453125, -0.0171051025390625, -0.036163330078125, 0.053497314453125, -0.0096282958984375, -0.055328369140625, 0.023956298828125, 0.0074920654296875, 0.047210693359375, 0.0313720703125, 0.0098876953125, 0.042388916015625, 0.01346588134765625, 0.007781982421875, -0.0565185546875, 0.0125274658203125, -0.0184478759765625, -0.0113525390625, -0.02191162109375, -0.00736236572265625, 0.05572509765625, 0.034698486328125, -0.01271820068359375, 0.01885986328125, -0.03302001953125, -0.06622314453125, -0.01386260986328125, -0.0308380126953125, 0.0400390625, 0.01922607421875, 0.0216217041015625, -0.000431060791015625, -0.021270751953125, -0.0265655517578125, 0.038177490234375, -0.0226593017578125, -0.0241241455078125, -0.030517578125, 0.09356689453125, -0.01462554931640625, 0.0986328125, -0.0404052734375, -0.05706787109375, 0.00563812255859375, -0.035491943359375, 0.042694091796875, -0.03009033203125, -0.0020694732666015625, -0.0311126708984375, 0.037689208984375, -0.0111846923828125, -0.0017795562744140625, 0.043060302734375, 0.0038013458251953125, -0.0145111083984375, -0.056182861328125, 0.00958251953125, -0.020477294921875, -0.01064300537109375, -0.0096588134765625, 0.040191650390625, 0.03607177734375, -0.02203369140625, -0.0050506591796875, 0.0163421630859375, 0.018310546875, -0.0259246826171875, 0.0228729248046875, -0.00548553466796875, -0.01442718505859375, 0.0223236083984375, -0.0144805908203125, 0.00812530517578125, 0.0273590087890625, -0.04241943359375, 0.0045013427734375, 0.04449462890625, -0.052154541015625, -0.006069183349609375, -0.01222991943359375, -0.01110076904296875, -0.0029735565185546875, -0.08453369140625, 0.01448822021484375, -0.052520751953125, 0.03289794921875, -0.016876220703125, 0.0282135009765625, 0.0169677734375, 0.006626129150390625, -0.0268402099609375, -0.00006389617919921875, -0.0305633544921875, 0.0013790130615234375, -0.0003390312194824219, 0.01464080810546875, -0.02154541015625, -0.05865478515625, 0.016998291015625, 0.047576904296875, -0.0104217529296875, -0.007526397705078125, -0.0022678375244140625, 0.03582763671875, 0.0005669593811035156, 0.0241546630859375, -0.033599853515625, 0.03314208984375, -0.00882720947265625, -0.0217742919921875, -0.04327392578125, -0.005710601806640625, 0.041900634765625, -0.01522064208984375, 0.046417236328125, -0.0345458984375, -0.00321197509765625, 0.024688720703125, -0.01369476318359375, 0.0059051513671875, -0.016265869140625, 0.0504150390625, 0.055755615234375, -0.00061798095703125, -0.004913330078125, 0.004688262939453125, -0.01406097412109375, -0.016632080078125, 0.04583740234375, 0.00821685791015625, -0.06793212890625, 0.016693115234375, 0.022216796875, 0.024169921875, 0.03521728515625, 0.01331329345703125, -0.01441192626953125, 0.0128631591796875, 0.03814697265625, 0.00885009765625, 0.0109710693359375, -0.0443115234375, -0.059234619140625, -0.004619598388671875, 0.00734710693359375, -0.032379150390625, 0.0240478515625, 0.031341552734375, 0.01593017578125, 0.009307861328125, 0.00113677978515625, -0.0008831024169921875, 0.003528594970703125, -0.0172882080078125, -0.01456451416015625, -0.00040531158447265625, -0.006938934326171875, 0.0028743743896484375, 0.023101806640625, -0.021575927734375, -0.0582275390625, -0.0146331787109375, -0.0258026123046875, -0.01021575927734375, -0.0011987686157226562, 0.03271484375, -0.0181884765625, -0.0030460357666015625, 0.006195068359375, 0.0053253173828125, 0.0277252197265625, -0.034149169921875, -0.014801025390625, 0.0039825439453125, -0.041259765625, 0.01363372802734375, -0.00698089599609375, -0.0140228271484375, -0.00833892822265625, 0.029327392578125, -0.034088134765625, -0.010345458984375, 0.02447509765625, -0.0305328369140625, -0.0101776123046875, -0.0147247314453125, 0.0008039474487304688, 0.0299072265625, -0.0145263671875, -0.004886627197265625, 0.01273345947265625, 0.03302001953125, -0.02581787109375, -0.0113983154296875, -0.0233001708984375, -0.0304718017578125, -0.01291656494140625, 0.012969970703125, -0.0273284912109375, -0.0027294158935546875, -0.012237548828125, 0.00469970703125, -0.0035915374755859375, -0.0030574798583984375, -0.00579833984375, -0.0548095703125, 0.038482666015625, -0.02777099609375, 0.0272674560546875, -0.06646728515625, -0.0290985107421875, -0.036346435546875, 0.086181640625, -0.024383544921875, 0.00897216796875, 0.0174102783203125, 0.001277923583984375, -0.058258056640625, -0.0159912109375, -0.09881591796875, 0.021575927734375, -0.0167999267578125, -0.0271453857421875, -0.0236663818359375, -0.02691650390625, 0.006256103515625, -0.020751953125, -0.00476837158203125, -0.018310546875, 0.03167724609375, 0.005802154541015625, 0.0114898681640625, 0.00470733642578125, 0.005035400390625, -0.0204010009765625, -0.004680633544921875, -0.0011959075927734375, -0.10101318359375, -0.0255279541015625, -0.02337646484375, 0.07000732421875, 0.01398468017578125, -0.005916595458984375, -0.05108642578125, 0.02667236328125, 0.01097869873046875, -0.00714874267578125, -0.00426483154296875, 0.006290435791015625, 0.000797271728515625, -0.039794921875, -0.01514434814453125, -0.0243377685546875, -0.0245513916015625, -0.015899658203125, -0.0024433135986328125, 0.030731201171875, -0.033172607421875, 0.00007283687591552734, -0.023101806640625, -0.003925323486328125, -0.0479736328125, -0.05047607421875, -0.018768310546875, 0.0211181640625, -0.0084075927734375, 0.00330352783203125, -0.05108642578125, -0.0806884765625, 0.046722412109375, -0.05902099609375, 0.0015621185302734375, -0.006488800048828125, 0.087646484375, 0.016632080078125, 0.00395965576171875, 0.032928466796875, 0.01910400390625, 0.039306640625, 0.02301025390625, 0.02264404296875, 0.005092620849609375, -0.0177764892578125, 0.025970458984375, 0.029998779296875, 0.047637939453125, -0.036407470703125, 0.0026531219482421875, -0.00910186767578125, -0.023681640625, 0.03955078125, 0.0111236572265625, -0.013214111328125, -0.01409912109375, -0.017669677734375, 0.008758544921875, -0.025115966796875, -0.0016231536865234375, 0.0162200927734375, 0.006805419921875, -0.0163116455078125, -0.0132293701171875, 0.00856781005859375, -0.0229034423828125, -0.029388427734375, -0.0039520263671875, 0.006771087646484375, -0.048065185546875, -0.025482177734375, -0.028564453125, 0.0070037841796875, -0.0216522216796875, 0.00001901388168334961, 0.01025390625, -0.0027294158935546875, -0.02618408203125, 0.000827789306640625, -0.01316070556640625, 0.058868408203125, 0.0009975433349609375, -0.060394287109375, -0.004619598388671875, 0.0100555419921875, 0.07305908203125, 0.0298614501953125, 0.0338134765625, 0.045440673828125, 0.0279388427734375, 0.00687408447265625, -0.032958984375, 0.01715087890625, 0.0194091796875, -0.03369140625, 0.01593017578125, 0.033538818359375, -0.0226287841796875, -0.0178680419921875, 0.06390380859375, 0.038238525390625, 0.0035686492919921875, -0.03448486328125, 0.054931640625, 0.02734375, 0.0165863037109375, -0.0005769729614257812, 0.019134521484375, 0.011962890625, -0.00969696044921875, 0.01457977294921875, -0.02947998046875, -0.004261016845703125, 0.05560302734375, 0.0419921875, 0.049346923828125, -0.0003275871276855469, -0.046234130859375, -0.0286102294921875, 0.004940032958984375, 0.04376220703125, -0.039093017578125, -0.06683349609375, -0.022247314453125, 0.0224609375, 0.0450439453125, -0.07073974609375, 0.0166778564453125, -0.0034313201904296875, -0.040130615234375, -0.016082763671875, 0.0054473876953125, 0.00279998779296875, -0.0545654296875, -0.045196533203125, -0.01503753662109375, -0.01885986328125, -0.00943756103515625, 0.0223388671875, 0.0269317626953125, -0.042572021484375, -0.05084228515625, 0.0667724609375, -0.0237274169921875, 0.0300140380859375, -0.057159423828125, 0.04266357421875, -0.04400634765625, -0.0056915283203125, 0.057861328125, 0.0430908203125, -0.0198974609375, 0.01551055908203125, -0.037933349609375, -0.00846099853515625, -0.015869140625, -0.0269775390625, -0.0294952392578125, -0.0246124267578125, 0.0136260986328125, 0.0229644775390625, -0.0213165283203125, -0.03045654296875, 0.002490997314453125, 0.010955810546875, 0.0279388427734375, 0.051116943359375, -0.042694091796875, 0.05255126953125, -0.00774383544921875, 0.0234832763671875, -0.005886077880859375, 0.028076171875, 0.00594329833984375, -0.005321502685546875, -0.00913238525390625, 0.00823974609375, -0.00666046142578125, -0.0156402587890625, -0.01003265380859375, 0.00441741943359375, 0.104248046875, -0.0021572113037109375, 0.0157012939453125, -0.016876220703125, 0.001129150390625, -0.022369384765625, 0.0200042724609375, -0.01448822021484375, 0.0169830322265625, 0.006656646728515625, -0.018707275390625, 0.006221771240234375, -0.0105133056640625, 0.004108428955078125, -0.00002092123031616211, -0.017822265625, 0.00975799560546875, 0.0022907257080078125, -0.059173583984375, 0.03631591796875, 0.0318603515625, -0.01666259765625, 0.041107177734375, -0.01166534423828125, 0.0196533203125, 0.049072265625, -0.0205841064453125, -0.01393890380859375, 0.047088623046875, 0.040557861328125, -0.0020160675048828125, -0.005855560302734375, 0.03961181640625, -0.0192108154296875, 0.033843994140625, 0.0933837890625, 0.0975341796875, -0.10736083984375, 0.0025653839111328125, 0.00894927978515625, -0.0265350341796875, 0.046356201171875, 0.004261016845703125, -0.022857666015625, -0.0606689453125, 0.0648193359375, -0.0184173583984375, -0.00897979736328125, 0.01314544677734375, 0.0008640289306640625, -0.036407470703125, -0.003505706787109375, -0.0056915283203125, 0.032745361328125, 0.062225341796875, 0.0122833251953125, -0.040557861328125, 0.0292510986328125, -0.0200042724609375, -0.00205230712890625, 0.0195770263671875, -0.030303955078125, -0.1065673828125, -0.0239105224609375, 0.0031280517578125, -0.028564453125, 0.0175628662109375, -0.0166473388671875, 0.09332275390625, 0.036407470703125, 0.01239013671875, -0.0067596435546875, 0.0017118453979492188, 0.040191650390625, -0.031494140625, -0.049102783203125, -0.015106201171875, 0.0113372802734375, 0.007167816162109375, 0.0364990234375, 0.0239410400390625, -0.06622314453125, 0.0026836395263671875, -0.0074005126953125, 0.051055908203125, -0.018310546875, -0.0239715576171875, -0.00286102294921875, -0.01434326171875, 0.01861572265625, 0.0105438232421875, 0.00511932373046875, -0.02130126953125, -0.006805419921875, 0.0012311935424804688, -0.0511474609375, 0.00453948974609375, 0.01593017578125, -0.0494384765625, 0.09136962890625, 0.00830078125, 0.002117156982421875, -0.00612640380859375, 0.035980224609375, -0.0311431884765625, 0.005992889404296875, -0.014068603515625, 0.046417236328125, 0.00936126708984375, 0.040924072265625, -0.01273345947265625, -0.01438140869140625, 0.026885986328125, 0.0307464599609375, 0.057220458984375, 0.023162841796875, -0.0309600830078125, -0.011932373046875, -0.0216064453125, -0.01401519775390625, -0.039031982421875, 0.0589599609375, -0.016937255859375, 0.0229339599609375, 0.0360107421875, -0.051605224609375, 0.01151275634765625, -0.005329132080078125, -0.0275421142578125, -0.001201629638671875, 0.0002961158752441406, -0.01436614990234375, 0.00933837890625, 0.03009033203125, -0.033782958984375, 0.005702972412109375, 0.01210784912109375, -0.0270233154296875, -0.0204620361328125, 0.0008754730224609375, 0.0027866363525390625, 0.032196044921875, 0.06060791015625, -0.03143310546875, 0.043487548828125, 0.034423828125, -0.005420684814453125, 0.0299224853515625, 0.0186614990234375, 0.01428985595703125, 0.00911712646484375, -0.0003426074981689453, 0.0216522216796875, 0.0010156631469726562, 0.05072021484375, 0.0223236083984375, 0.0215911865234375, -0.05096435546875, 0.007328033447265625, 0.05352783203125, 0.06707763671875, -0.048583984375, -0.035125732421875, 0.0164794921875, 0.01055145263671875, 0.01062774658203125, 0.0259246826171875, 0.0321044921875, -0.0406494140625, 0.01082611083984375, -0.0295257568359375, 0.0092926025390625, 0.00333404541015625, 0.01242828369140625, -0.0023555755615234375, 0.0241546630859375, -0.01273345947265625, 0.005657196044921875, -0.037078857421875, 0.01210784912109375, 0.01163482666015625, 0.0230865478515625, 0.0149688720703125, 0.0153961181640625, -0.0008182525634765625, -0.01551055908203125, -0.0240631103515625, -0.014373779296875, -0.00482940673828125, 0.0215606689453125, -0.04962158203125, -0.0205078125, 0.004558563232421875, 0.050384521484375, -0.0183563232421875, 0.0302734375, 0.05999755859375, 0.055328369140625, -0.040191650390625, -0.0224456787109375, 0.053802490234375, -0.024566650390625, -0.016693115234375, 0.0024509429931640625, 0.006748199462890625, -0.002269744873046875, 0.0116424560546875, -0.01282501220703125, 0.08270263671875, -0.0134735107421875, 0.00865936279296875, 0.017730712890625, 0.006999969482421875, -0.01227569580078125, 0.018951416015625, 0.0176239013671875, 0.0433349609375, 0.037200927734375, -0.048797607421875, 0.00469970703125, -0.012939453125, -0.06829833984375, 0.02105712890625, 0.025115966796875, -0.036712646484375, 0.030731201171875, -0.01143646240234375, -0.01202392578125, 0.031463623046875, -0.0120391845703125, -0.01451873779296875, -0.0030670166015625, 0.0250244140625, -0.032440185546875, -0.0166168212890625, 0.0291900634765625, 0.01885986328125, -0.03497314453125, 0.00031280517578125, 0.032012939453125, 0.0230560302734375, -0.01068878173828125, -0.044403076171875, -0.006198883056640625, -0.0207366943359375, -0.036834716796875, 0.00865936279296875, 0.019287109375, -0.007022857666015625, -0.0034236907958984375, -0.0206451416015625, 0.060638427734375, 0.0116424560546875, 0.0274810791015625, 0.050750732421875, -0.0248565673828125, 0.00716400146484375, -0.006557464599609375, 0.0109100341796875, -0.029571533203125, -0.029449462890625, -0.054718017578125, -0.01910400390625, 0.0272064208984375, 0.00994110107421875, 0.00606536865234375, 0.0252685546875, 0.0116119384765625, 0.0046844482421875, -0.018096923828125, 0.00547027587890625, -0.02667236328125, 0.0212554931640625, -0.00795745849609375, 0.0247039794921875, -0.0032444000244140625, -0.01450347900390625, 0.0173492431640625, 0.0052490234375, -0.0235443115234375, 0.01263427734375, -0.043487548828125, 0.0081939697265625, 0.0662841796875, 0.050567626953125, -0.0191192626953125, 0.019378662109375, 0.0421142578125, -0.03265380859375, 0.0231170654296875, 0.01154327392578125, -0.031768798828125, -0.03802490234375, -0.0129852294921875, 0.006252288818359375, -0.0367431640625, -0.061767578125, -0.09368896484375, 0.032958984375, 0.055419921875, 0.0177001953125, -0.0906982421875, 0.054656982421875, -0.0263214111328125, 0.0804443359375, -0.002964019775390625, 0.001125335693359375, 0.004848480224609375, 0.041259765625, -0.044525146484375, -0.01332855224609375, -0.015716552734375, -0.00795745849609375, -0.0203399658203125, -0.0257415771484375, 0.006725311279296875, 0.0311431884765625, -0.040863037109375, -0.024688720703125, -0.05487060546875, 0.018157958984375, -0.036346435546875, -0.01467132568359375, -0.041961669921875, 0.04388427734375, -0.00919342041015625, -0.0455322265625, 0.00043463706970214844, -0.0297393798828125, -0.030487060546875, -0.05078125, 0.022308349609375, 0.03228759765625, -0.0389404296875, -0.0679931640625, 0.026824951171875, -0.033416748046875, -0.0313720703125, 0.0283966064453125, 0.00015997886657714844, -0.0224456787109375, 0.0222320556640625, 0.01195526123046875, -0.032257080078125, 0.0003056526184082031, 0.006778717041015625, 0.0203857421875, -0.030242919921875, 0.053375244140625, -0.0251922607421875, -0.03118896484375, -0.003841400146484375, 0.014251708984375, 0.003818511962890625, 0.00007176399230957031, 0.0014867782592773438, 0.0259246826171875, 0.0281829833984375, -0.0240020751953125, 0.0172576904296875, 0.0008373260498046875, -0.005809783935546875, -0.0430908203125, -0.052734375, -0.037811279296875, -0.0086517333984375, 0.1199951171875, 0.05731201171875, 0.0265045166015625, -0.053497314453125, -0.035491943359375, -0.056610107421875, 0.0234832763671875, -0.029449462890625, -0.01296234130859375, -0.05908203125, -0.0016040802001953125, -0.0010595321655273438, -0.01067352294921875, -0.004917144775390625, 0.0031566619873046875, -0.0193328857421875, 0.01171875, 0.06024169921875, -0.004486083984375, 0.0044403076171875, -0.0231170654296875, 0.06396484375, -0.051544189453125, -0.055023193359375, 0.00616455078125, 0.0119781494140625, -0.02020263671875, -0.040924072265625, -0.0261688232421875, 0.002857208251953125, -0.0167083740234375, 0.0184783935546875, -0.005779266357421875, 0.0256195068359375, -0.0288238525390625, 0.003643035888671875, 0.02294921875, 0.0007462501525878906, -0.023468017578125, -0.01165771484375, -0.0003428459167480469, 0.03851318359375, -0.0223846435546875, 0.05267333984375, 0.0003457069396972656, 0.00016510486602783203, -0.0264434814453125, 0.036895751953125, 0.00618743896484375, -0.006824493408203125, 0.0250701904296875, 0.0164794921875, 0.006000518798828125, 0.001262664794921875, 0.040283203125, -0.03973388671875, 0.01434326171875, 0.0015048980712890625, 0.01541900634765625, 0.024200439453125 ]
e3055abdd0fe7972964f6447ba01c720908b3bae
Wordpress Stackexchange Q: Perform an action when post is updated/published I'd like to run a custom query using some meta data whenever a post is updated or published. Is there something I can put in functions.php to fire when those events occur? A: There are several actions you can use. For example: * *save_post *edit_post *publish_post *etc. While lesser-used, there are also post-status transition hooks.
Q: Perform an action when post is updated/published I'd like to run a custom query using some meta data whenever a post is updated or published. Is there something I can put in functions.php to fire when those events occur? A: There are several actions you can use. For example: * *save_post *edit_post *publish_post *etc. While lesser-used, there are also post-status transition hooks. A: the edit_post hook is probably the best hook... as it fires whenever a post/page is published or updated. save_post is another viable option... maybe better if you don't need it to fire when comments are updated. http://codex.wordpress.org/Plugin_API/Action_Reference the save_post page in the codex has an example of a function that fires whenever a post is saved: http://codex.wordpress.org/Plugin_API/Action_Reference/save_post A: The save_post action fires When a post is updated and/or published -- including when a new post is inserted. <?php add_action( 'save_post', 'wpse41912_save_post' ); function wpse41912_save_post() { // do stuff } If you want your functions to fire only when a post is being edited, you can hook into edit_post. If you want it to fire when a post is moved from draft to publish you can hook into transition_post_status. A: If you want to perform an action when any custom post update/save - add_action('save_post','save_post_callback'); function save_post_callback($post_id){ global $post; if ($post->post_type != 'MY_CUSTOM_POST_TYPE_NAME'){ return; } //if you get here then it's your post type so do your things.... }
wordpress
{ "language": "en", "length": 231, "provenance": "stackexchange_00019.jsonl.gz:416988", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41912" }
[ 0.038482666015625, 0.01384735107421875, -0.0462646484375, -0.0278472900390625, 0.031463623046875, -0.0328369140625, 0.03106689453125, -0.001224517822265625, 0.0254364013671875, 0.0180816650390625, -0.0082244873046875, -0.019195556640625, -0.01549530029296875, -0.029083251953125, -0.00830078125, -0.0221099853515625, 0.06280517578125, 0.0018968582153320312, 0.06939697265625, 0.00894927978515625, -0.00476837158203125, 0.050933837890625, 0.06292724609375, 0.0400390625, 0.03436279296875, -0.01129913330078125, 0.037200927734375, -0.0217437744140625, 0.0274505615234375, 0.0124664306640625, 0.02545166015625, -0.0278167724609375, -0.00040912628173828125, 0.04022216796875, -0.003509521484375, 0.057281494140625, 0.0282440185546875, 0.01290130615234375, 0.032623291015625, 0.022491455078125, 0.0352783203125, -0.020294189453125, 0.027435302734375, 0.032073974609375, 0.01377105712890625, -0.0489501953125, 0.055511474609375, -0.061492919921875, 0.046844482421875, 0.027099609375, -0.01152801513671875, 0.022674560546875, -0.02093505859375, 0.007740020751953125, -0.005580902099609375, -0.007572174072265625, -0.035980224609375, 0.004795074462890625, 0.03387451171875, -0.003322601318359375, -0.029815673828125, -0.0247650146484375, 0.0270843505859375, -0.0091094970703125, 0.01153564453125, -0.0086212158203125, 0.036102294921875, 0.00832366943359375, -0.031982421875, 0.004856109619140625, 0.043212890625, -0.015899658203125, -0.03228759765625, 0.00864410400390625, 0.0203857421875, -0.0167388916015625, 0.007122039794921875, -0.02105712890625, -0.008148193359375, 0.06170654296875, 0.0216827392578125, 0.02166748046875, 0.02801513671875, -0.0257720947265625, 0.00803375244140625, -0.0008287429809570312, -0.0188446044921875, -0.0183868408203125, -0.053955078125, -0.054473876953125, -0.02606201171875, -0.033050537109375, -0.0657958984375, -0.0293426513671875, -0.0221710205078125, -0.027984619140625, 0.0096893310546875, 0.045806884765625, -0.03985595703125, -0.0068206787109375, -0.01336669921875, -0.0093536376953125, -0.01557159423828125, -0.018280029296875, 0.007411956787109375, 0.01322174072265625, -0.00461578369140625, 0.002079010009765625, 0.0350341796875, 0.0239410400390625, -0.007282257080078125, -0.01116943359375, -0.02880859375, 0.01398468017578125, -0.040313720703125, -0.010986328125, -0.052093505859375, 0.0029697418212890625, -0.020904541015625, 0.01145172119140625, 0.042877197265625, 0.0297698974609375, 0.043243408203125, -0.079833984375, 0.028839111328125, 0.0017023086547851562, -0.0684814453125, -0.041900634765625, 0.004547119140625, 0.024688720703125, -0.0238800048828125, 0.0001131892204284668, 0.037689208984375, 0.0190887451171875, -0.01568603515625, -0.0239715576171875, 0.05010986328125, 0.01049041748046875, 0.00478363037109375, 0.0096282958984375, 0.0006055831909179688, -0.038299560546875, -0.0208892822265625, 0.01226043701171875, 0.0264739990234375, 0.0113677978515625, 0.01519012451171875, 0.00699615478515625, 0.0133209228515625, -0.024566650390625, -0.01898193359375, 0.02239990234375, 0.01837158203125, 0.00020039081573486328, 0.0117645263671875, -0.00943756103515625, 0.019012451171875, -0.01006317138671875, 0.00860595703125, -0.0035343170166015625, 0.03680419921875, 0.01447296142578125, 0.005985260009765625, 0.0072174072265625, -0.021148681640625, -0.023773193359375, -0.025177001953125, -0.006381988525390625, 0.0183563232421875, 0.0304718017578125, -0.005199432373046875, 0.00147247314453125, 0.043914794921875, -0.00040912628173828125, -0.018402099609375, -0.00640869140625, -0.0262451171875, -0.000016510486602783203, 0.0243988037109375, 0.010498046875, -0.01006317138671875, -0.01885986328125, 0.01458740234375, -0.0021343231201171875, -0.023040771484375, 0.035064697265625, -0.0040435791015625, 0.044189453125, 0.00678253173828125, 0.02130126953125, -0.010528564453125, 0.01806640625, -0.031890869140625, 0.037872314453125, 0.006977081298828125, 0.00566864013671875, -0.005237579345703125, 0.00612640380859375, 0.00290679931640625, -0.0499267578125, -0.006755828857421875, 0.0235443115234375, -0.0245361328125, 0.0479736328125, -0.060699462890625, 0.033355712890625, -0.032440185546875, 0.034881591796875, 0.0227508544921875, 0.01044464111328125, 0.0003135204315185547, -0.013397216796875, 0.0005807876586914062, -0.0171051025390625, -0.040557861328125, -0.0011663436889648438, -0.01242828369140625, -0.0340576171875, -0.003627777099609375, -0.019622802734375, -0.0074462890625, 0.002017974853515625, -0.044342041015625, -0.004825592041015625, 0.04376220703125, -0.045745849609375, -0.002162933349609375, -0.03350830078125, 0.0244903564453125, -0.0205535888671875, -0.01593017578125, 0.052734375, 0.038604736328125, 0.016693115234375, -0.002590179443359375, -0.00817108154296875, -0.0013294219970703125, -0.10552978515625, -0.0010128021240234375, 0.06512451171875, 0.005725860595703125, -0.00873565673828125, -0.0025386810302734375, 0.04327392578125, 0.01221466064453125, 0.035675048828125, 0.037139892578125, 0.00576019287109375, 0.025665283203125, 0.09381103515625, -0.0592041015625, 0.00250244140625, 0.01239013671875, -0.06243896484375, -0.028045654296875, 0.05035400390625, 0.03179931640625, 0.00308990478515625, -0.00237274169921875, 0.007083892822265625, 0.00521087646484375, -0.01226806640625, -0.037811279296875, 0.02227783203125, 0.0340576171875, -0.0171661376953125, 0.03204345703125, 0.0256500244140625, 0.00678253173828125, -0.009124755859375, -0.00048804283142089844, -0.01424407958984375, -0.0009245872497558594, 0.047760009765625, -0.0219268798828125, -0.0107421875, -0.00803375244140625, -0.01027679443359375, -0.0345458984375, 0.019775390625, -0.0199737548828125, 0.007049560546875, -0.033355712890625, -0.0064544677734375, 0.01224517822265625, -0.002826690673828125, -0.0017948150634765625, -0.0244140625, -0.006267547607421875, -0.0296630859375, -0.00525665283203125, -0.000010669231414794922, -0.035308837890625, 0.044219970703125, 0.005496978759765625, -0.048919677734375, -0.022186279296875, -0.032257080078125, 0.0208282470703125, -0.0186614990234375, 0.0321044921875, 0.07891845703125, 0.0018310546875, 0.02203369140625, 0.005718231201171875, -0.0043792724609375, 0.012298583984375, 0.03790283203125, 0.0052642822265625, -0.0128021240234375, -0.047760009765625, -0.02130126953125, 0.0347900390625, 0.02593994140625, -0.00860595703125, -0.023284912109375, -0.0222625732421875, 0.016571044921875, -0.1085205078125, -0.1019287109375, -0.02838134765625, -0.06842041015625, 0.024932861328125, -0.026702880859375, -0.01412200927734375, 0.0011739730834960938, -0.0120086669921875, 0.015777587890625, -0.019287109375, 0.024566650390625, -0.0228271484375, -0.004535675048828125, -0.0234832763671875, 0.022735595703125, -0.004871368408203125, 0.0224456787109375, -0.005069732666015625, 0.10540771484375, -0.009307861328125, -0.1031494140625, -0.030548095703125, -0.04034423828125, -0.0296173095703125, 0.03936767578125, 0.0313720703125, -0.0158538818359375, 0.01190948486328125, -0.0022792816162109375, 0.044830322265625, 0.046234130859375, -0.0516357421875, -0.00020015239715576172, 0.00543975830078125, 0.01837158203125, 0.034271240234375, 0.00432586669921875, -0.0183258056640625, 0.03155517578125, 0.04388427734375, -0.0259857177734375, -0.0199737548828125, 0.0022754669189453125, -0.03839111328125, -0.044281005859375, 0.01959228515625, -0.00481414794921875, -0.043243408203125, 0.031402587890625, 0.036285400390625, 0.02874755859375, 0.0181121826171875, 0.010406494140625, -0.007411956787109375, -0.01239013671875, 0.0243988037109375, -0.0290374755859375, -0.052001953125, -0.025390625, 0.0745849609375, -0.0175933837890625, 0.030975341796875, -0.01229095458984375, 0.04840087890625, -0.07110595703125, 0.0086669921875, 0.0167236328125, -0.0010614395141601562, 0.054656982421875, -0.0272979736328125, -0.026153564453125, -0.039337158203125, 0.051605224609375, 0.02001953125, -0.018798828125, -0.0096588134765625, -0.00922393798828125, -0.06646728515625, -0.00506591796875, -0.047607421875, 0.0253448486328125, -0.052398681640625, 0.02178955078125, -0.015106201171875, -0.0005664825439453125, -0.045867919921875, 0.056121826171875, -0.041259765625, -0.0262298583984375, 0.01509857177734375, 0.000537872314453125, -0.01282501220703125, 0.038482666015625, -0.008941650390625, 0.0018835067749023438, 0.0006275177001953125, -0.01207733154296875, -0.058685302734375, -0.002849578857421875, -0.047760009765625, 0.042877197265625, 0.040802001953125, -0.01299285888671875, -0.00007468461990356445, 0.035064697265625, 0.0227813720703125, 0.0171051025390625, 0.0199737548828125, -0.00635528564453125, 0.00803375244140625, -0.04144287109375, 0.003147125244140625, -0.0516357421875, -0.0086517333984375, 0.0062408447265625, 0.00783538818359375, 0.0311279296875, -0.0289154052734375, -0.040985107421875, -0.0135345458984375, -0.023529052734375, -0.01605224609375, 0.0011749267578125, -0.0115203857421875, 0.027557373046875, -0.01293182373046875, -0.01245880126953125, -0.0235595703125, -0.024322509765625, 0.046661376953125, -0.038970947265625, 0.0007505416870117188, -0.0092315673828125, 0.099609375, 0.0154876708984375, -0.00994110107421875, -0.00039267539978027344, 0.0037860870361328125, 0.04034423828125, 0.0341796875, -0.01366424560546875, -0.00995635986328125, -0.02618408203125, -0.0005660057067871094, 0.02166748046875, -0.0168914794921875, -0.028656005859375, 0.0606689453125, 0.009796142578125, 0.0184783935546875, -0.01800537109375, -0.0262603759765625, 0.050628662109375, 0.039642333984375, -0.0000731348991394043, -0.02642822265625, 0.0088958740234375, 0.0301055908203125, -0.042816162109375, 0.042755126953125, -0.01320648193359375, 0.018280029296875, -0.02001953125, 0.0266265869140625, 0.037200927734375, 0.03955078125, -0.002643585205078125, -0.01030731201171875, -0.0002758502960205078, 0.01141357421875, -0.03472900390625, -0.0171966552734375, -0.03338623046875, 0.0224609375, -0.020843505859375, -0.003864288330078125, -0.022796630859375, -0.006160736083984375, 0.0643310546875, -0.0246124267578125, -0.06439208984375, -0.0175933837890625, -0.00024771690368652344, 0.0228118896484375, 0.0347900390625, -0.007495880126953125, 0.004375457763671875, 0.06817626953125, -0.027923583984375, 0.0047454833984375, 0.049530029296875, 0.0126800537109375, -0.0286865234375, -0.039947509765625, 0.0260772705078125, -0.033477783203125, 0.03741455078125, 0.021026611328125, 0.00958251953125, 0.0178070068359375, -0.039031982421875, 0.03643798828125, 0.02569580078125, -0.0216827392578125, 0.00597381591796875, 0.0364990234375, 0.01270294189453125, -0.0482177734375, 0.0013017654418945312, -0.0026073455810546875, -0.00934600830078125, 0.01329803466796875, -0.01131439208984375, 0.01551055908203125, 0.030120849609375, 0.0193328857421875, 0.0197296142578125, -0.0266265869140625, 0.03155517578125, 0.0517578125, -0.00940704345703125, -0.025421142578125, -0.0265350341796875, -0.0015439987182617188, 0.025421142578125, -0.012237548828125, 0.0168304443359375, -0.018096923828125, 0.06634521484375, -0.059783935546875, 0.05255126953125, -0.0166473388671875, -0.03448486328125, -0.0176239013671875, -0.029632568359375, -0.00002300739288330078, 0.0020904541015625, 0.0289154052734375, -0.027557373046875, -0.0281524658203125, 0.03387451171875, -0.0401611328125, -0.011932373046875, -0.034515380859375, 0.041839599609375, 0.00910186767578125, 0.009033203125, 0.068603515625, 0.0225067138671875, -0.05230712890625, -0.0169677734375, -0.00888824462890625, -0.00905609130859375, -0.0130615234375, -0.037933349609375, -0.045013427734375, 0.00478363037109375, 0.035247802734375, 0.02899169921875, -0.00363922119140625, -0.0482177734375, -0.0167999267578125, -0.0010766983032226562, 0.0304718017578125, 0.0172576904296875, -0.005664825439453125, 0.0718994140625, -0.015167236328125, 0.07537841796875, 0.0262908935546875, 0.033355712890625, -0.03253173828125, -0.0228271484375, -0.017974853515625, -0.0257568359375, 0.009490966796875, 0.01157379150390625, 0.01354217529296875, -0.003650665283203125, 0.01009368896484375, 0.01055908203125, 0.00270843505859375, -0.036590576171875, -0.0187530517578125, -0.0292205810546875, 0.05157470703125, -0.04205322265625, 0.00970458984375, -0.0180511474609375, -0.048583984375, -0.00916290283203125, 0.00991058349609375, 0.020416259765625, 0.034149169921875, -0.058135986328125, 0.0132904052734375, 0.0347900390625, -0.046051025390625, 0.031585693359375, 0.054107666015625, 0.01143646240234375, 0.038238525390625, -0.003002166748046875, 0.01338958740234375, 0.0270538330078125, -0.031402587890625, -0.00811004638671875, 0.02734375, 0.052337646484375, -0.01282501220703125, -0.023284912109375, 0.03692626953125, -0.03363037109375, 0.0205230712890625, 0.043701171875, 0.0703125, -0.08758544921875, 0.02911376953125, 0.0308380126953125, 0.0136566162109375, 0.05303955078125, -0.003612518310546875, 0.00363922119140625, 0.00034046173095703125, -0.0095062255859375, 0.029327392578125, -0.015655517578125, 0.0013256072998046875, 0.010589599609375, -0.001773834228515625, -0.03118896484375, 0.004405975341796875, -0.00493621826171875, 0.035400390625, -0.00005263090133666992, 0.0106048583984375, 0.00731658935546875, -0.0419921875, 0.003574371337890625, 0.0188446044921875, -0.0016651153564453125, -0.0228424072265625, 0.061309814453125, -0.018646240234375, 0.028594970703125, -0.01027679443359375, 0.035919189453125, 0.031158447265625, 0.061126708984375, 0.00995635986328125, -0.004726409912109375, 0.032684326171875, -0.0074462890625, -0.1260986328125, -0.0355224609375, 0.030059814453125, 0.05535888671875, -0.028350830078125, 0.060943603515625, -0.030029296875, -0.03631591796875, 0.0006546974182128906, -0.04339599609375, 0.035980224609375, -0.05438232421875, 0.0036907196044921875, 0.021209716796875, -0.0025463104248046875, 0.0006575584411621094, 0.0014581680297851562, -0.01165771484375, -0.030792236328125, 0.011932373046875, -0.023956298828125, -0.0287322998046875, -0.0167999267578125, -0.0241241455078125, -0.0380859375, 0.07550048828125, 0.0081329345703125, 0.003849029541015625, 0.0085601806640625, 0.0282135009765625, -0.027374267578125, 0.012603759765625, -0.06500244140625, 0.09234619140625, -0.0275726318359375, 0.051361083984375, -0.0584716796875, 0.00021076202392578125, 0.0186920166015625, 0.0009059906005859375, 0.0263214111328125, 0.021484375, -0.030914306640625, -0.00554656982421875, 0.0169525146484375, 0.01129150390625, -0.0150604248046875, 0.0303192138671875, -0.0168609619140625, 0.042236328125, 0.0199432373046875, -0.061859130859375, 0.0244293212890625, -0.004650115966796875, -0.038482666015625, 0.0110626220703125, 0.016326904296875, 0.01416778564453125, -0.01849365234375, 0.03192138671875, -0.0070953369140625, -0.007476806640625, -0.006237030029296875, 0.033935546875, -0.01105499267578125, 0.01666259765625, 0.00955963134765625, -0.05572509765625, -0.044097900390625, -0.0257110595703125, 0.023895263671875, 0.00724029541015625, 0.0018510818481445312, 0.01105499267578125, 0.00879669189453125, 0.0015478134155273438, -0.0106048583984375, -0.0017557144165039062, 0.029876708984375, -0.0179595947265625, 0.10491943359375, 0.032440185546875, 0.0235748291015625, -0.0408935546875, -0.00963592529296875, 0.031585693359375, 0.11602783203125, -0.055419921875, 0.002819061279296875, 0.011688232421875, -0.0037364959716796875, -0.01348114013671875, -0.039886474609375, -0.01708984375, -0.0033359527587890625, 0.01206207275390625, 0.0190582275390625, -0.0092315673828125, -0.00408172607421875, -0.017791748046875, 0.013702392578125, 0.03594970703125, -0.00263214111328125, -0.0021305084228515625, -0.0196075439453125, -0.01136016845703125, 0.002155303955078125, 0.036224365234375, 0.025665283203125, 0.049713134765625, -0.00800323486328125, -0.0030975341796875, 0.00548553466796875, 0.022430419921875, -0.03814697265625, 0.02166748046875, -0.05035400390625, -0.07568359375, -0.0084381103515625, 0.05462646484375, 0.04425048828125, 0.054351806640625, 0.047821044921875, 0.030426025390625, 0.01326751708984375, 0.0199432373046875, 0.04229736328125, -0.017578125, -0.006130218505859375, -0.02972412109375, 0.0230865478515625, 0.00408935546875, 0.01214599609375, -0.031646728515625, 0.044586181640625, 0.0111846923828125, -0.019927978515625, 0.0269622802734375, -0.005878448486328125, -0.02960205078125, 0.0665283203125, -0.0175628662109375, 0.09429931640625, -0.007904052734375, -0.02545166015625, 0.01467132568359375, -0.04412841796875, -0.06982421875, 0.018951416015625, 0.033294677734375, -0.022491455078125, 0.0322265625, -0.01641845703125, 0.01324462890625, 0.048828125, -0.046966552734375, -0.00968170166015625, 0.048187255859375, 0.026275634765625, 0.00562286376953125, -0.020843505859375, -0.0168304443359375, 0.01244354248046875, 0.045867919921875, 0.00171661376953125, 0.04608154296875, -0.0294342041015625, 0.02069091796875, 0.02117919921875, 0.0182647705078125, -0.007007598876953125, 0.01983642578125, 0.01399993896484375, -0.0198211669921875, -0.00524139404296875, -0.007358551025390625, 0.01025390625, 0.00994873046875, 0.0291748046875, -0.0267791748046875, -0.01245880126953125, -0.006069183349609375, 0.032989501953125, -0.0056304931640625, -0.01318359375, -0.0224456787109375, 0.0091094970703125, 0.0130767822265625, -0.0100860595703125, 0.02935791015625, 0.01068878173828125, 0.01416015625, 0.00899505615234375, -0.012420654296875, -0.0146026611328125, 0.01206207275390625, -0.004436492919921875, 0.0176544189453125, 0.044677734375, -0.0592041015625, 0.0546875, -0.0088348388671875, -0.028656005859375, 0.044952392578125, 0.0012750625610351562, -0.0230560302734375, 0.0178985595703125, 0.0113067626953125, -0.047698974609375, -0.01239776611328125, 0.0296783447265625, 0.0117645263671875, 0.01456451416015625, -0.06158447265625, 0.0005679130554199219, -0.0012731552124023438, 0.01351165771484375, -0.007541656494140625, -0.0188140869140625, -0.020263671875, -0.0145416259765625, -0.021728515625, -0.059783935546875, -0.003971099853515625, -0.0301971435546875, 0.0234222412109375, 0.015045166015625, -0.052825927734375, 0.0038127899169921875, 0.01190948486328125, 0.0238800048828125, 0.010406494140625, -0.046051025390625, 0.0203704833984375, 0.07452392578125, -0.007076263427734375, -0.0004992485046386719, -0.0229644775390625, -0.03277587890625, -0.020477294921875, 0.0146942138671875, 0.035614013671875, -0.0287933349609375, -0.056549072265625, 0.034027099609375, 0.0280914306640625, 0.061309814453125, 0.0391845703125, -0.00765228271484375, -0.003692626953125, 0.01873779296875, 0.006053924560546875, -0.044525146484375, 0.0174407958984375, -0.026947021484375, -0.027862548828125, 0.00954437255859375, 0.025482177734375, 0.072509765625, -0.0011777877807617188, -0.10546875, 0.07208251953125, -0.03662109375, -0.0380859375, -0.029205322265625, 0.0266265869140625, 0.0173187255859375, -0.03692626953125, -0.016632080078125, 0.0027217864990234375, -0.04052734375, -0.02288818359375, -0.00847625732421875, 0.0167236328125, 0.0241851806640625, -0.016845703125, -0.055633544921875, -0.0145416259765625, -0.0243072509765625, -0.017181396484375, 0.0024662017822265625, 0.001739501953125, 0.004486083984375, 0.0147705078125, -0.044464111328125, -0.037200927734375, -0.0006031990051269531, 0.0097503662109375, -0.03033447265625, 0.0028400421142578125, -0.00527191162109375, 0.0129852294921875, 0.08270263671875, 0.045257568359375, 0.0177764892578125, -0.043243408203125, 0.051513671875, -0.03033447265625, -0.028228759765625, 0.0091552734375, 0.0015668869018554688, -0.01418304443359375, 0.00643157958984375, 0.0213470458984375, -0.0094451904296875, -0.0285797119140625, -0.0187530517578125, -0.035125732421875, -0.01177215576171875, 0.005817413330078125, 0.0157318115234375, -0.01546478271484375, -0.03497314453125, 0.059326171875, -0.039093017578125, -0.00856781005859375, 0.046142578125, 0.00018131732940673828, 0.023162841796875, 0.0770263671875, 0.03411865234375, 0.0374755859375, -0.01123046875, -0.0138397216796875, 0.043212890625, -0.0295257568359375, 0.03326416015625, -0.0216217041015625, -0.0185699462890625, 0.0256195068359375, 0.005916595458984375, 0.016693115234375, -0.0300445556640625, 0.0214080810546875, 0.005374908447265625, 0.058258056640625, -0.0311431884765625, 0.07080078125, -0.0182342529296875, 0.016571044921875, 0.0072021484375, 0.01123046875, 0.0528564453125, -0.0027599334716796875, 0.011077880859375, -0.019561767578125, -0.013031005859375, -0.022369384765625, 0.01120758056640625, -0.0012607574462890625, -0.057708740234375, 0.010650634765625 ]
5ee363e075d7134e41e370d2161b59f0ad0b2fc2
Wordpress Stackexchange Q: Disable qTranslate by post type in admin + disable per page / post ID on front-end I'm trying to find a way to selectively disable qTranslate - I would like to be able to show certain static content on my site in 4 languages, but to then only have a single language (and a simplified editor) for posts and also custom post types. I would also need to disable the output on selective pages in the front-end, so that I can show all the language content on the same page, at the same time. Is there a way to have the plugin load on demand? A: Following snippet will disable it for post_type post (modify array below to affect other post_types): function qtrans_disable() { global $typenow, $pagenow; if (in_array($typenow, array('post')) && // post_types where qTranslate should be disabled in_array($pagenow, array('post-new.php', 'post.php'))) { remove_action('admin_head', 'qtrans_adminHeader'); remove_filter('admin_footer', 'qtrans_modifyExcerpt'); remove_filter('the_editor', 'qtrans_modifyRichEditor'); } } add_action('current_screen', 'qtrans_disable'); Similarly you can disable it for specific post IDs. However take into account that this won't affect already existing multi-languaged content. Therefore use it before you enter any.
Q: Disable qTranslate by post type in admin + disable per page / post ID on front-end I'm trying to find a way to selectively disable qTranslate - I would like to be able to show certain static content on my site in 4 languages, but to then only have a single language (and a simplified editor) for posts and also custom post types. I would also need to disable the output on selective pages in the front-end, so that I can show all the language content on the same page, at the same time. Is there a way to have the plugin load on demand? A: Following snippet will disable it for post_type post (modify array below to affect other post_types): function qtrans_disable() { global $typenow, $pagenow; if (in_array($typenow, array('post')) && // post_types where qTranslate should be disabled in_array($pagenow, array('post-new.php', 'post.php'))) { remove_action('admin_head', 'qtrans_adminHeader'); remove_filter('admin_footer', 'qtrans_modifyExcerpt'); remove_filter('the_editor', 'qtrans_modifyRichEditor'); } } add_action('current_screen', 'qtrans_disable'); Similarly you can disable it for specific post IDs. However take into account that this won't affect already existing multi-languaged content. Therefore use it before you enter any. A: There is an answer in the qtranslate forum that seems to address this. It involves changing the core files of the plugin, though. Any luck with it?
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:416991", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/41925" }
[ 0.06689453125, -0.0125274658203125, 0.0227203369140625, -0.00904083251953125, 0.02117919921875, -0.0418701171875, 0.07489013671875, -0.01708984375, 0.0221710205078125, 0.02325439453125, 0.04736328125, -0.062469482421875, 0.003978729248046875, -0.0562744140625, -0.040374755859375, -0.01203155517578125, 0.036102294921875, -0.005954742431640625, 0.02398681640625, -0.01209259033203125, -0.0092010498046875, 0.00475311279296875, 0.03143310546875, 0.00742340087890625, -0.01309967041015625, -0.00095367431640625, 0.07525634765625, -0.035186767578125, -0.0247344970703125, -0.04119873046875, 0.010101318359375, 0.041168212890625, -0.005283355712890625, 0.04937744140625, -0.0273895263671875, -0.06219482421875, -0.043304443359375, 0.020660400390625, -0.005794525146484375, -0.00276947021484375, 0.01419830322265625, -0.018707275390625, -0.029541015625, 0.05548095703125, -0.041351318359375, -0.042938232421875, 0.02911376953125, -0.0126953125, 0.0217742919921875, 0.0268096923828125, -0.0017004013061523438, -0.005886077880859375, 0.0161285400390625, -0.041473388671875, -0.016815185546875, -0.01690673828125, -0.0301361083984375, 0.048309326171875, 0.022003173828125, 0.0341796875, -0.00836181640625, 0.015228271484375, -0.01299285888671875, -0.0325927734375, 0.0082244873046875, -0.0223236083984375, -0.00977325439453125, 0.00954437255859375, -0.07501220703125, 0.01058197021484375, 0.0731201171875, -0.0498046875, 0.059967041015625, -0.008026123046875, -0.01256561279296875, -0.0268707275390625, -0.01763916015625, -0.01303863525390625, 0.0379638671875, -0.045074462890625, 0.03997802734375, 0.0369873046875, -0.0172576904296875, -0.0291748046875, 0.0242462158203125, -0.0044708251953125, -0.0144805908203125, -0.023162841796875, -0.0248260498046875, -0.03179931640625, -0.0174102783203125, -0.021820068359375, -0.04400634765625, 0.012298583984375, 0.01000213623046875, -0.044586181640625, 0.036651611328125, 0.0093231201171875, -0.00943756103515625, -0.02008056640625, 0.0254974365234375, -0.06500244140625, 0.062042236328125, -0.00315093994140625, 0.036102294921875, -0.0164947509765625, -0.0269927978515625, 0.0256805419921875, 0.0809326171875, 0.042572021484375, -0.00894927978515625, 0.0699462890625, -0.0367431640625, -0.01483917236328125, -0.0183563232421875, 0.038116455078125, -0.0567626953125, 0.01050567626953125, -0.007251739501953125, 0.034759521484375, -0.0094146728515625, 0.0166778564453125, 0.03741455078125, -0.06085205078125, 0.000782012939453125, -0.005992889404296875, -0.016082763671875, -0.0430908203125, 0.009765625, 0.0025463104248046875, -0.0250091552734375, -0.01904296875, 0.0750732421875, 0.06982421875, 0.029296875, -0.0087127685546875, 0.006107330322265625, 0.01435089111328125, 0.028839111328125, -0.01264190673828125, 0.00943756103515625, -0.0535888671875, -0.00311279296875, 0.0313720703125, -0.0186309814453125, 0.017852783203125, 0.0167388916015625, 0.0196685791015625, -0.00756072998046875, -0.031341552734375, -0.0033435821533203125, -0.036285400390625, 0.0552978515625, 0.00493621826171875, -0.0628662109375, -0.0010919570922851562, 0.051666259765625, -0.024658203125, -0.06011962890625, -0.05584716796875, -0.0269317626953125, -0.023040771484375, 0.02911376953125, -0.005077362060546875, -0.032684326171875, 0.0227203369140625, 0.0189208984375, -0.003955841064453125, 0.0189971923828125, -0.0031337738037109375, 0.0008068084716796875, 0.007843017578125, 0.0192718505859375, -0.020172119140625, -0.0098876953125, 0.0115509033203125, -0.04046630859375, 0.0309295654296875, 0.0162811279296875, -0.006988525390625, 0.004306793212890625, -0.032196044921875, 0.0255889892578125, 0.02117919921875, -0.0809326171875, 0.03509521484375, 0.003223419189453125, 0.06732177734375, 0.047393798828125, 0.0017614364624023438, 0.0183563232421875, -0.0050506591796875, -0.00012814998626708984, -0.024566650390625, 0.0027713775634765625, -0.0209197998046875, -0.024017333984375, 0.007038116455078125, 0.0018320083618164062, 0.017822265625, 0.046905517578125, -0.0207061767578125, -0.0103302001953125, -0.0175933837890625, -0.096435546875, -0.02691650390625, -0.022247314453125, 0.02996826171875, 0.004901885986328125, 0.0182952880859375, 0.0265960693359375, 0.007190704345703125, -0.048675537109375, 0.02984619140625, -0.0223541259765625, -0.0024776458740234375, -0.0015039443969726562, 0.046966552734375, 0.03399658203125, 0.0270843505859375, 0.05169677734375, -0.03192138671875, 0.035736083984375, -0.0095672607421875, 0.00632476806640625, 0.026885986328125, -0.0130157470703125, 0.01039886474609375, 0.042388916015625, -0.00525665283203125, 0.0654296875, 0.01433563232421875, -0.00026702880859375, 0.00757598876953125, -0.0194549560546875, 0.005275726318359375, 0.0262603759765625, -0.045196533203125, 0.007556915283203125, 0.04254150390625, 0.043792724609375, 0.0250091552734375, -0.005153656005859375, -0.0231475830078125, 0.022247314453125, -0.034210205078125, 0.012115478515625, -0.0184478759765625, -0.001186370849609375, 0.045928955078125, -0.01322174072265625, 0.035552978515625, 0.0230712890625, -0.036468505859375, 0.00475311279296875, 0.05352783203125, -0.02984619140625, -0.058685302734375, 0.055206298828125, -0.00838470458984375, 0.0056915283203125, -0.01395416259765625, -0.0124969482421875, -0.005947113037109375, 0.035003662109375, -0.006122589111328125, 0.0233917236328125, -0.0018787384033203125, -0.0267791748046875, 0.006893157958984375, 0.029205322265625, -0.0180206298828125, 0.01212310791015625, -0.00894927978515625, -0.0175933837890625, -0.0171661376953125, -0.0277252197265625, 0.01526641845703125, 0.02886962890625, -0.019775390625, 0.0030517578125, 0.0341796875, -0.01983642578125, -0.021820068359375, 0.00921630859375, -0.0665283203125, -0.021087646484375, -0.006259918212890625, -0.031097412109375, -0.032745361328125, -0.00762939453125, 0.007843017578125, -0.027740478515625, 0.0252685546875, 0.0280914306640625, -0.0220794677734375, 0.0140380859375, -0.026275634765625, 0.023406982421875, -0.0277252197265625, 0.0914306640625, 0.0723876953125, -0.027496337890625, 0.0137786865234375, 0.0325927734375, -0.01276397705078125, 0.042449951171875, 0.005367279052734375, 0.00946044921875, 0.05206298828125, -0.07666015625, 0.00948333740234375, -0.00403594970703125, -0.001739501953125, -0.0350341796875, -0.04437255859375, -0.0263519287109375, -0.0092926025390625, -0.0684814453125, -0.0003745555877685547, -0.005390167236328125, -0.0123748779296875, 0.027374267578125, 0.0282440185546875, 0.0166473388671875, -0.031890869140625, 0.050323486328125, 0.0020389556884765625, 0.000553131103515625, 0.00814056396484375, 0.01378631591796875, 0.0032253265380859375, -0.0176239013671875, -0.031646728515625, 0.002208709716796875, -0.0101470947265625, 0.01136016845703125, 0.050811767578125, 0.00975799560546875, -0.038055419921875, 0.0416259765625, 0.0035228729248046875, -0.01776123046875, 0.045166015625, -0.0149688720703125, -0.049407958984375, 0.01161956787109375, -0.00725555419921875, -0.00238037109375, -0.0076141357421875, 0.0249176025390625, -0.00524139404296875, 0.00844573974609375, 0.04901123046875, 0.043487548828125, -0.033203125, -0.005199432373046875, 0.042022705078125, -0.0128936767578125, -0.02655029296875, -0.01361083984375, -0.0304412841796875, -0.040283203125, 0.0176239013671875, 0.0037860870361328125, 0.005878448486328125, -0.0140380859375, 0.0277557373046875, -0.015228271484375, -0.001186370849609375, 0.03375244140625, -0.01242828369140625, 0.0230712890625, -0.01076507568359375, -0.001331329345703125, -0.01433563232421875, -0.004955291748046875, -0.0244293212890625, 0.037353515625, -0.0145721435546875, 0.00952911376953125, -0.00920867919921875, -0.01180267333984375, -0.0162200927734375, -0.05609130859375, 0.057708740234375, -0.0305328369140625, -0.037322998046875, 0.0004296302795410156, -0.0198974609375, 0.01282501220703125, 0.05615234375, -0.039947509765625, 0.006439208984375, -0.03436279296875, -0.0163726806640625, -0.0251312255859375, -0.029327392578125, -0.064208984375, 0.0215301513671875, -0.036407470703125, -0.0088043212890625, -0.030975341796875, 0.00299835205078125, -0.01404571533203125, -0.0205841064453125, -0.01312255859375, -0.041748046875, 0.035797119140625, -0.00685882568359375, -0.0186920166015625, 0.0232391357421875, -0.0455322265625, -0.0014810562133789062, -0.052032470703125, 0.005687713623046875, -0.0869140625, -0.0034389495849609375, -0.027191162109375, 0.043243408203125, -0.0005021095275878906, 0.00023496150970458984, -0.032073974609375, 0.02783203125, 0.017486572265625, 0.027069091796875, -0.021331787109375, -0.017974853515625, 0.03289794921875, 0.01123046875, -0.003040313720703125, 0.0168609619140625, -0.0179595947265625, 0.059326171875, 0.0005903244018554688, 0.106201171875, -0.009979248046875, -0.056915283203125, 0.0292510986328125, -0.0572509765625, -0.09442138671875, -0.046356201171875, -0.0460205078125, -0.0091705322265625, -0.0194091796875, -0.0110626220703125, -0.050445556640625, -0.09423828125, 0.053436279296875, 0.01342010498046875, -0.0147705078125, -0.0028285980224609375, 0.05438232421875, 0.00714111328125, -0.0361328125, -0.0318603515625, 0.0114593505859375, 0.041534423828125, -0.004241943359375, 0.056182861328125, 0.045989990234375, -0.03924560546875, 0.11669921875, 0.0177764892578125, -0.0188446044921875, 0.0022068023681640625, 0.01224517822265625, -0.004241943359375, -0.0285797119140625, 0.0135040283203125, -0.039154052734375, 0.025787353515625, 0.040557861328125, 0.0055389404296875, -0.007091522216796875, -0.013885498046875, 0.03143310546875, -0.0010652542114257812, -0.007083892822265625, -0.0225067138671875, -0.043548583984375, 0.0208892822265625, 0.028717041015625, -0.02423095703125, 0.016510009765625, 0.00656890869140625, 0.00812530517578125, 0.0070648193359375, 0.0083770751953125, 0.04595947265625, 0.020782470703125, 0.036956787109375, 0.03155517578125, 0.056243896484375, 0.019805908203125, -0.004608154296875, -0.006923675537109375, 0.0025577545166015625, -0.035919189453125, -0.045684814453125, -0.01003265380859375, -0.002288818359375, 0.0187530517578125, 0.0213470458984375, 0.038970947265625, 0.006378173828125, -0.005390167236328125, 0.0031147003173828125, 0.00829315185546875, 0.0254669189453125, 0.0164337158203125, -0.01354217529296875, -0.01081085205078125, 0.01629638671875, -0.01313018798828125, -0.023895263671875, 0.07464599609375, -0.0276336669921875, 0.034149169921875, 0.007537841796875, 0.01641845703125, 0.0251312255859375, -0.005962371826171875, 0.006969451904296875, 0.0143890380859375, -0.0188751220703125, -0.0007014274597167969, 0.0147552490234375, -0.028656005859375, 0.002002716064453125, 0.01016998291015625, 0.044952392578125, -0.0028209686279296875, -0.00487518310546875, -0.00962066650390625, -0.0218353271484375, -0.03021240234375, 0.05615234375, 0.048980712890625, -0.08026123046875, -0.00960540771484375, -0.0015268325805664062, -0.0157623291015625, -0.02923583984375, -0.00968170166015625, 0.01488494873046875, -0.0338134765625, -0.01238250732421875, 0.028167724609375, -0.0267791748046875, -0.01493072509765625, 0.004878997802734375, 0.00496673583984375, -0.03265380859375, -0.025146484375, -0.051177978515625, -0.007083892822265625, 0.01873779296875, 0.0290069580078125, -0.0203399658203125, -0.025390625, -0.01076507568359375, 0.032012939453125, -0.00872802734375, 0.0341796875, 0.04443359375, 0.00748443603515625, -0.025848388671875, 0.0124969482421875, -0.0205078125, -0.04632568359375, -0.049835205078125, -0.045989990234375, -0.01332855224609375, -0.037384033203125, 0.00836181640625, 0.0401611328125, -0.0083160400390625, 0.0211334228515625, -0.0029144287109375, -0.007602691650390625, 0.057861328125, 0.043548583984375, 0.04766845703125, -0.007694244384765625, 0.052337646484375, -0.0177001953125, 0.0297393798828125, 0.00609588623046875, 0.036865234375, 0.01300811767578125, -0.0113372802734375, 0.03338623046875, -0.043426513671875, -0.046539306640625, -0.003208160400390625, -0.037994384765625, -0.004749298095703125, 0.0236968994140625, -0.01953125, 0.005199432373046875, -0.007030487060546875, 0.0063323974609375, -0.0240478515625, -0.01026153564453125, -0.0272369384765625, 0.00405120849609375, 0.0008783340454101562, -0.024200439453125, -0.00719451904296875, -0.03411865234375, -0.046478271484375, 0.04986572265625, -0.01446533203125, 0.024139404296875, 0.0309295654296875, 0.0203399658203125, -0.030059814453125, 0.022247314453125, 0.042449951171875, 0.0853271484375, 0.005123138427734375, 0.06591796875, 0.0716552734375, -0.0188140869140625, 0.002262115478515625, -0.004116058349609375, 0.00316619873046875, -0.0245208740234375, 0.0186920166015625, -0.012054443359375, 0.0009584426879882812, 0.005519866943359375, 0.08856201171875, 0.041748046875, -0.1241455078125, 0.00994110107421875, 0.009490966796875, 0.01309967041015625, -0.0224761962890625, -0.0201416015625, -0.03582763671875, -0.033233642578125, 0.06781005859375, -0.0259246826171875, -0.04742431640625, 0.0186614990234375, -0.0102996826171875, -0.01439666748046875, -0.0005941390991210938, 0.046142578125, 0.0195159912109375, 0.00936126708984375, -0.0218963623046875, 0.0146331787109375, -0.01425933837890625, -0.055389404296875, -0.0169525146484375, -0.002986907958984375, -0.037841796875, -0.083740234375, -0.00934600830078125, -0.00690460205078125, 0.020599365234375, 0.02935791015625, -0.010162353515625, -0.013031005859375, 0.07928466796875, -0.0526123046875, 0.0236053466796875, 0.04638671875, -0.031951904296875, -0.048828125, -0.0224609375, 0.012054443359375, 0.048370361328125, 0.00807952880859375, 0.033477783203125, 0.00951385498046875, -0.038482666015625, 0.00830841064453125, -0.01494598388671875, 0.0289764404296875, 0.01187896728515625, -0.0323486328125, 0.026153564453125, -0.01174163818359375, -0.01349639892578125, -0.00827789306640625, 0.009368896484375, -0.0297088623046875, -0.034912109375, -0.0163726806640625, -0.08489990234375, -0.033660888671875, -0.047760009765625, -0.076171875, 0.0947265625, 0.0005822181701660156, 0.04742431640625, 0.0163421630859375, 0.0222930908203125, -0.0411376953125, -0.00637054443359375, -0.01201629638671875, 0.0237884521484375, -0.039764404296875, 0.032867431640625, -0.044891357421875, 0.005435943603515625, 0.0128631591796875, 0.049163818359375, 0.01396942138671875, -0.0007491111755371094, -0.0029144287109375, -0.0179290771484375, -0.0011816024780273438, 0.0694580078125, 0.0245513916015625, -0.01334381103515625, -0.00298309326171875, 0.036376953125, 0.0167388916015625, -0.040130615234375, 0.0195770263671875, 0.00914764404296875, -0.05279541015625, 0.032928466796875, 0.0178375244140625, 0.017242431640625, -0.01224517822265625, 0.0152740478515625, -0.035186767578125, -0.001949310302734375, 0.02362060546875, 0.00858306884765625, 0.0302734375, -0.00939178466796875, 0.041534423828125, -0.05926513671875, 0.004489898681640625, -0.034820556640625, 0.05511474609375, 0.0159454345703125, 0.0299072265625, 0.0146026611328125, 0.0215606689453125, 0.0241546630859375, -0.022613525390625, 0.0352783203125, 0.0034275054931640625, -0.0416259765625, 0.01348876953125, 0.03826904296875, 0.035675048828125, 0.021026611328125, 0.06005859375, -0.013031005859375, -0.0013179779052734375, -0.04052734375, -0.054718017578125, 0.005428314208984375, 0.01337432861328125, 0.0009279251098632812, 0.0267333984375, -0.0010776519775390625, -0.00591278076171875, 0.051025390625, 0.0101165771484375, -0.0052947998046875, -0.0109405517578125, 0.045196533203125, -0.00537109375, 0.00891876220703125, -0.0263214111328125, -0.01153564453125, -0.053985595703125, -0.00862884521484375, 0.0310516357421875, 0.08599853515625, 0.0182037353515625, 0.08282470703125, -0.0126800537109375, -0.042388916015625, 0.0036487579345703125, 0.0023822784423828125, -0.034698486328125, 0.0016613006591796875, -0.053985595703125, -0.06304931640625, -0.008392333984375, 0.043670654296875, 0.0003676414489746094, 0.005344390869140625, 0.04046630859375, 0.0631103515625, -0.0014791488647460938, -0.03265380859375, 0.026397705078125, 0.003971099853515625, -0.0139617919921875, -0.019866943359375, -0.019561767578125, -0.0160675048828125, -0.01079559326171875, -0.004337310791015625, 0.033905029296875, -0.0218658447265625, 0.005268096923828125, 0.0182342529296875, 0.00684356689453125, -0.030609130859375, -0.00969696044921875, 0.0057830810546875, 0.0220947265625, 0.0311431884765625, -0.034423828125, 0.0159149169921875, -0.032257080078125, -0.0921630859375, 0.058441162109375, 0.054656982421875, -0.026641845703125, 0.0035114288330078125, 0.040802001953125, -0.016448974609375, -0.034759521484375, -0.01425933837890625, 0.06719970703125, 0.005474090576171875, -0.01482391357421875, 0.034423828125, -0.003810882568359375, -0.0239105224609375, 0.023681640625, 0.051025390625, -0.0187530517578125, 0.053619384765625, -0.0250396728515625, 0.00440216064453125, 0.0081787109375, -0.019317626953125, 0.022125244140625, 0.004791259765625, 0.0010557174682617188, 0.005527496337890625, -0.0016937255859375, -0.01258087158203125, 0.00147247314453125, 0.02874755859375, 0.0260467529296875, 0.0024662017822265625, 0.016754150390625, -0.0283203125, 0.0177154541015625, -0.00493621826171875, 0.0114593505859375, -0.03656005859375, -0.0240478515625, -0.048065185546875, -0.0215911865234375, 0.03753662109375, 0.018890380859375, 0.018798828125, 0.01161956787109375, 0.00916290283203125, -0.0183258056640625, 0.017791748046875, -0.005279541015625, 0.007415771484375, 0.03607177734375, 0.0007023811340332031, -0.0023670196533203125, 0.00612640380859375, -0.00351715087890625, -0.016021728515625, 0.0462646484375, -0.006885528564453125, 0.015655517578125, -0.0167388916015625, -0.0007524490356445312, -0.00826263427734375, 0.021240234375, -0.006984710693359375, 0.0030345916748046875, 0.00801849365234375, -0.00963592529296875, -0.031524658203125, -0.00029659271240234375, -0.005107879638671875, 0.005084991455078125, -0.01470947265625, 0.0126953125, -0.0168304443359375, -0.043670654296875, -0.04425048828125, -0.0094757080078125, 0.01331329345703125, -0.01824951171875, -0.03924560546875, 0.0005898475646972656, -0.0201416015625, 0.027374267578125, -0.041168212890625, 0.041412353515625, -0.0044097900390625, 0.0253753662109375, -0.053192138671875, -0.021331787109375, -0.02203369140625, 0.0198822021484375, -0.034881591796875, 0.0020198822021484375, 0.020843505859375, 0.01087188720703125, -0.002010345458984375, 0.00031876564025878906, 0.0004036426544189453, 0.032501220703125, -0.0116424560546875, -0.0187530517578125, 0.014068603515625, 0.0198516845703125, -0.01904296875, -0.06231689453125, 0.003070831298828125, -0.05364990234375, -0.0199737548828125, -0.00499725341796875, 0.0017328262329101562, 0.0161285400390625, -0.034698486328125, -0.0760498046875, 0.0682373046875, -0.01160430908203125, -0.02972412109375, -0.0303802490234375, 0.0010766983032226562, -0.01239013671875, 0.0156097412109375, -0.005741119384765625, -0.057464599609375, -0.0215911865234375, 0.029754638671875, 0.0118865966796875, 0.03045654296875, 0.033721923828125, 0.01107025146484375, 0.02587890625, 0.00795745849609375, 0.0207366943359375, -0.0116424560546875, -0.028656005859375, 0.0010557174682617188, 0.00823974609375, 0.004505157470703125, -0.044647216796875, -0.0158538818359375, 0.0165557861328125, 0.0745849609375, -0.0148468017578125, -0.0643310546875, -0.020965576171875, -0.026824951171875, 0.0765380859375, 0.05303955078125, 0.005245208740234375, -0.033935546875, 0.044830322265625, -0.016998291015625, -0.031494140625, 0.002361297607421875, -0.005489349365234375, -0.007343292236328125, -0.0012187957763671875, 0.0005078315734863281, 0.01263427734375, 0.032012939453125, 0.0022182464599609375, 0.0040435791015625, -0.01090240478515625, 0.033050537109375, -0.017059326171875, -0.031768798828125, 0.0494384765625, 0.033172607421875, -0.0341796875, -0.0119781494140625, -0.00583648681640625, -0.03216552734375, 0.0265655517578125, 0.01456451416015625, -0.0487060546875, -0.022125244140625, 0.022125244140625, 0.049285888671875, -0.0012874603271484375, 0.01580810546875, 0.0050506591796875, 0.02618408203125, -0.023193359375, 0.0182342529296875, -0.002349853515625, 0.032257080078125, -0.0227203369140625, -0.0023326873779296875, 0.023101806640625, -0.01314544677734375, -0.0186767578125, 0.00836181640625, 0.01221466064453125, 0.00007367134094238281, -0.033294677734375, 0.01390838623046875, -0.01248931884765625, -0.0078887939453125, 0.014862060546875, 0.01039886474609375, -0.0167083740234375, -0.024932861328125, 0.0185089111328125, -0.044189453125, -0.006145477294921875, 0.01238250732421875 ]
2516cc6ed40548047fb3db8e3207ed10cf14a0bd
Wordpress Stackexchange Q: changing wp-admin/widgets.php We want to design the widgets page in the admin panel a little differently, mainly in order to help the site administrator understand where each widget will appear in the site: For that, we need to change the HTML that widgets.php renders (simply changing the css isn't enough). How would we go about doing that without touching the core? A: If you upgrade your WordPress to 3.3.1, which you absolutely should, each widget area in the admin now has an ID you can use to target via CSS, which really should be enough. See http://core.trac.wordpress.org/ticket/18334 for an example.
Q: changing wp-admin/widgets.php We want to design the widgets page in the admin panel a little differently, mainly in order to help the site administrator understand where each widget will appear in the site: For that, we need to change the HTML that widgets.php renders (simply changing the css isn't enough). How would we go about doing that without touching the core? A: If you upgrade your WordPress to 3.3.1, which you absolutely should, each widget area in the admin now has an ID you can use to target via CSS, which really should be enough. See http://core.trac.wordpress.org/ticket/18334 for an example. A: I cannot get the question out of my head, but I don’t have the time for a complete solution. So I just write down my idea here, then I'll set a small bounty. * *There is an action 'widgets_admin_page' in wp-admin/widgets.php above the other content. You could place a preview box here. Sample code: add_action( 'widgets_admin_page', 'show_widget_preview' ); function show_widget_preview() { $preview_widgets = $GLOBALS['wp_registered_sidebars']; unset ( $preview_widgets['wp_inactive_widgets'] ); print '<div style="border:2px solid #ddf;padding:20px">' . '<pre>' . htmlspecialchars( print_r( $preview_widgets, TRUE ) ) . '</pre>' . '</div>'; } This prints out an array of all registered sidebars. You have to walk through all sidebars to find the registered widgets. *To make the preview useful you need two files: a HTML template and a style sheet. I would use add_theme_support(). Sample code for the theme’s functions.php: add_theme_support( 'widget_preview', array ( 'template' => get_stylesheet_directory() . '/widget-preview.php', 'stylesheet' => get_stylesheet_directory() . '/widget-preview.css' ) ); *In show_widget_preview() you enqueue the style sheet and load the template. Render the registered sidebars in the predefined placeholders in widget-preview.php. *Update the template per AJAX after the user pressed the Save button in a widget. *Challenges: Take accessibility mode into account, small windows and CSS conflicts. Show a useful message when no sidebar is registered (sidebar descriptions?). What should happen when a user tries to drag a widget into the preview box? :) A: the short answer is you can't, not without touching core. however, you can set the description of each widget area (the text underneath the widget area title) in the register_sidebar function.
wordpress
{ "language": "en", "length": 358, "provenance": "stackexchange_00019.jsonl.gz:417018", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42036" }
[ 0.042877197265625, -0.0184326171875, 0.014434814453125, 0.0011930465698242188, -0.0010166168212890625, -0.0296478271484375, 0.06121826171875, -0.0352783203125, 0.038970947265625, 0.00919342041015625, -0.041107177734375, -0.024566650390625, -0.0161895751953125, -0.0103912353515625, -0.03985595703125, -0.041259765625, 0.032135009765625, 0.01047515869140625, 0.03057861328125, 0.0006651878356933594, 0.0206451416015625, 0.0216217041015625, -0.007625579833984375, 0.0670166015625, 0.01174163818359375, -0.064697265625, 0.060333251953125, -0.0296478271484375, 0.0090789794921875, -0.030853271484375, 0.028350830078125, 0.0160369873046875, 0.0253753662109375, 0.00833892822265625, -0.01529693603515625, -0.01369476318359375, 0.0174407958984375, -0.0077362060546875, 0.005077362060546875, 0.00934600830078125, 0.02484130859375, -0.0270233154296875, 0.01021575927734375, 0.001323699951171875, -0.01236724853515625, -0.013824462890625, 0.01216888427734375, -0.042449951171875, 0.035003662109375, -0.052825927734375, -0.010345458984375, 0.01177978515625, 0.004001617431640625, -0.058990478515625, -0.0167999267578125, 0.0107879638671875, 0.00397491455078125, -0.0215911865234375, 0.0396728515625, -0.032196044921875, -0.0307464599609375, -0.032958984375, 0.03338623046875, -0.00177001953125, -0.0184173583984375, -0.00811004638671875, 0.035614013671875, -0.00560760498046875, -0.03363037109375, -0.019012451171875, 0.039642333984375, -0.002635955810546875, -0.006504058837890625, -0.01531982421875, 0.0016260147094726562, 0.0221405029296875, -0.0023632049560546875, -0.0064239501953125, 0.01398468017578125, 0.0190582275390625, 0.0406494140625, 0.0245361328125, 0.03985595703125, -0.036712646484375, 0.0232086181640625, -0.01378631591796875, -0.003814697265625, -0.019744873046875, 0.0006432533264160156, -0.0039520263671875, -0.0017147064208984375, -0.01337432861328125, 0.0080108642578125, -0.0162353515625, 0.01433563232421875, -0.05047607421875, -0.0008816719055175781, 0.017425537109375, 0.004650115966796875, 0.0280914306640625, -0.0012273788452148438, -0.03155517578125, 0.034515380859375, -0.0296173095703125, -0.0053863525390625, 0.034515380859375, -0.0131988525390625, 0.040130615234375, 0.04302978515625, 0.0279541015625, 0.0266265869140625, 0.006931304931640625, 0.00014901161193847656, -0.0013971328735351562, -0.045135498046875, 0.0011157989501953125, -0.00511932373046875, -0.0308074951171875, -0.0020961761474609375, -0.0014705657958984375, -0.0181427001953125, 0.0018978118896484375, 0.0292510986328125, 0.02197265625, 0.0166015625, 0.0192413330078125, -0.0004355907440185547, -0.03741455078125, 0.0113067626953125, -0.0252685546875, -0.045501708984375, 0.0206146240234375, 0.085205078125, 0.040802001953125, 0.044189453125, -0.01206207275390625, 0.039154052734375, 0.002353668212890625, 0.00414276123046875, 0.0307464599609375, -0.0001500844955444336, -0.046051025390625, -0.0214080810546875, -0.01226806640625, -0.01261138916015625, 0.05364990234375, 0.022613525390625, -0.0199432373046875, -0.008941650390625, -0.0712890625, 0.01568603515625, -0.07110595703125, 0.010589599609375, 0.04827880859375, 0.051300048828125, 0.01983642578125, 0.1124267578125, -0.0347900390625, -0.0498046875, -0.032745361328125, -0.01227569580078125, -0.00252532958984375, 0.0172271728515625, -0.03985595703125, -0.025665283203125, -0.0143585205078125, -0.0202484130859375, 0.01441192626953125, 0.031280517578125, 0.0159149169921875, 0.03131103515625, -0.0142059326171875, -0.010009765625, 0.016143798828125, 0.006351470947265625, 0.0294342041015625, -0.018157958984375, 0.0014829635620117188, 0.031494140625, 0.03369140625, -0.006580352783203125, -0.029754638671875, 0.0308380126953125, 0.0041656494140625, -0.039398193359375, -0.029693603515625, 0.0194549560546875, 0.0266265869140625, 0.027984619140625, 0.0352783203125, 0.013671875, -0.027557373046875, -0.01068115234375, 0.0105743408203125, 0.0162353515625, -0.01270294189453125, -0.032745361328125, 0.006328582763671875, -0.01084136962890625, -0.03045654296875, -0.0222015380859375, 0.026702880859375, -0.0227813720703125, 0.031219482421875, -0.003475189208984375, 0.0006985664367675781, 0.001399993896484375, 0.02996826171875, 0.03350830078125, 0.0281524658203125, 0.00017881393432617188, 0.0286865234375, -0.0213623046875, -0.037353515625, -0.051849365234375, 0.005908966064453125, 0.0206146240234375, 0.06671142578125, 0.0188446044921875, 0.035888671875, 0.01776123046875, -0.054229736328125, 0.0017108917236328125, 0.00035834312438964844, 0.048004150390625, 0.0182342529296875, -0.0202178955078125, -0.010223388671875, 0.041412353515625, 0.020538330078125, -0.03680419921875, 0.02215576171875, -0.00586700439453125, 0.050872802734375, -0.005023956298828125, -0.02716064453125, -0.00945281982421875, -0.0478515625, 0.025848388671875, 0.026153564453125, 0.053497314453125, 0.005054473876953125, 0.0007600784301757812, 0.00634002685546875, 0.034393310546875, -0.10052490234375, -0.009857177734375, 0.00749969482421875, -0.005405426025390625, 0.01488494873046875, 0.00608062744140625, -0.0145263671875, 0.030120849609375, -0.0662841796875, -0.0075531005859375, 0.04351806640625, 0.00275421142578125, 0.006160736083984375, -0.023162841796875, 0.0146484375, 0.0023097991943359375, -0.0240020751953125, -0.0296478271484375, -0.00600433349609375, 0.0003292560577392578, 0.0135955810546875, 0.0472412109375, 0.030029296875, -0.008056640625, -0.0270843505859375, -0.0004086494445800781, 0.023590087890625, 0.00916290283203125, 0.00992584228515625, -0.01421356201171875, -0.00026726722717285156, -0.0228271484375, -0.0017070770263671875, 0.0150146484375, -0.01346588134765625, 0.007904052734375, 0.0701904296875, -0.0187835693359375, -0.0087890625, -0.03131103515625, -0.06298828125, -0.007038116455078125, 0.045989990234375, 0.035614013671875, 0.005817413330078125, 0.0228729248046875, 0.0204315185546875, -0.01244354248046875, 0.038482666015625, 0.047271728515625, -0.025421142578125, 0.042144775390625, 0.00725555419921875, -0.0015726089477539062, 0.0196990966796875, 0.05169677734375, 0.04510498046875, 0.0184326171875, -0.0302276611328125, 0.006816864013671875, 0.03173828125, 0.005832672119140625, 0.0196990966796875, 0.014617919921875, 0.02056884765625, -0.048095703125, 0.0077362060546875, 0.01495361328125, 0.048126220703125, -0.0299530029296875, -0.061492919921875, -0.0184478759765625, 0.01032257080078125, -0.0697021484375, -0.055267333984375, -0.063720703125, -0.056365966796875, -0.045806884765625, 0.01715087890625, -0.028778076171875, 0.042083740234375, 0.0292510986328125, 0.01323699951171875, -0.0017004013061523438, 0.00043129920959472656, -0.0367431640625, -0.0283203125, -0.051727294921875, -0.032684326171875, -0.0120391845703125, 0.00872039794921875, 0.0006399154663085938, 0.034637451171875, -0.01611328125, -0.09100341796875, -0.03948974609375, 0.0631103515625, -0.00815582275390625, -0.015106201171875, 0.038482666015625, -0.051239013671875, -0.007266998291015625, 0.006603240966796875, 0.0191192626953125, -0.0062408447265625, -0.00914764404296875, -0.0218505859375, -0.0191802978515625, 0.005275726318359375, 0.006069183349609375, -0.0041351318359375, 0.0127410888671875, -0.0267181396484375, -0.024017333984375, -0.042877197265625, -0.00800323486328125, 0.02630615234375, -0.01165771484375, 0.01505279541015625, -0.03717041015625, -0.0298614501953125, 0.037078857421875, 0.00814056396484375, 0.033233642578125, -0.017669677734375, -0.011932373046875, -0.0304107666015625, 0.0304107666015625, 0.0192718505859375, 0.052337646484375, -0.0106964111328125, -0.03826904296875, -0.038909912109375, 0.0168914794921875, -0.0273284912109375, 0.01456451416015625, -0.0008502006530761719, 0.0185546875, 0.004711151123046875, -0.0428466796875, 0.033660888671875, -0.0712890625, 0.01186370849609375, -0.03900146484375, -0.005474090576171875, 0.00522613525390625, 0.08050537109375, -0.0712890625, -0.0033550262451171875, -0.0016956329345703125, 0.0226287841796875, -0.0333251953125, -0.04278564453125, -0.052154541015625, -0.00820159912109375, -0.09930419921875, 0.0127105712890625, 0.0161895751953125, -0.03692626953125, -0.0280914306640625, 0.06207275390625, -0.06256103515625, -0.01568603515625, 0.0253448486328125, -0.0194244384765625, 0.000027358531951904297, 0.0025691986083984375, 0.0027618408203125, -0.0264434814453125, 0.01509857177734375, -0.03387451171875, -0.09124755859375, -0.0118408203125, -0.05731201171875, 0.07318115234375, 0.032379150390625, -0.0223541259765625, -0.01947021484375, 0.044189453125, -0.0028171539306640625, -0.0196075439453125, -0.00823974609375, 0.0224609375, -0.0511474609375, -0.00524139404296875, -0.01442718505859375, -0.0163726806640625, -0.026702880859375, -0.048553466796875, -0.04705810546875, -0.0230712890625, -0.006893157958984375, -0.0029697418212890625, 0.031585693359375, -0.0072174072265625, -0.03173828125, -0.053436279296875, -0.04541015625, 0.021942138671875, -0.0257568359375, 0.0267333984375, -0.07049560546875, -0.06439208984375, 0.050262451171875, 0.0118865966796875, -0.00836181640625, 0.004390716552734375, 0.0587158203125, 0.0198974609375, -0.037139892578125, -0.041595458984375, -0.037994384765625, 0.04736328125, 0.0029773712158203125, 0.017242431640625, 0.0235137939453125, -0.0369873046875, 0.035064697265625, 0.02630615234375, -0.0251007080078125, 0.0087738037109375, 0.0670166015625, 0.01436614990234375, -0.00745391845703125, -0.0122833251953125, -0.009735107421875, -0.0187835693359375, 0.02490234375, 0.0032444000244140625, -0.01971435546875, -0.0023326873779296875, 0.037109375, 0.03369140625, -0.03472900390625, -0.05340576171875, -0.00891876220703125, -0.000141143798828125, 0.03155517578125, 0.01323699951171875, 0.0092315673828125, 0.01412200927734375, -0.0202484130859375, 0.005725860595703125, -0.0022068023681640625, 0.01526641845703125, 0.02545166015625, -0.00284576416015625, 0.00727081298828125, 0.0300445556640625, -0.01256561279296875, -0.01166534423828125, -0.01509857177734375, 0.071044921875, 0.024627685546875, -0.024200439453125, 0.0123443603515625, 0.0018167495727539062, 0.0236968994140625, 0.01396942138671875, 0.002960205078125, 0.01291656494140625, 0.0035152435302734375, -0.0218963623046875, -0.01435089111328125, 0.0031490325927734375, -0.02716064453125, -0.046630859375, -0.044097900390625, 0.00423431396484375, -0.0311126708984375, 0.041534423828125, -0.0014772415161132812, 0.0211944580078125, 0.0006451606750488281, -0.0318603515625, 0.04315185546875, 0.0165252685546875, 0.005001068115234375, -0.00647735595703125, 0.0455322265625, 0.0292510986328125, -0.050567626953125, 0.0187530517578125, -0.0082550048828125, -0.008514404296875, -0.00789642333984375, 0.01373291015625, 0.03753662109375, 0.0250244140625, -0.005535125732421875, -0.019989013671875, 0.00882720947265625, 0.04302978515625, -0.037933349609375, -0.058563232421875, -0.0164947509765625, 0.03997802734375, 0.051483154296875, -0.044586181640625, -0.0177459716796875, 0.020721435546875, -0.06878662109375, 0.0023365020751953125, 0.004177093505859375, -0.00836181640625, -0.01502227783203125, -0.0263519287109375, -0.0263519287109375, -0.0244903564453125, -0.0323486328125, -0.11199951171875, -0.0589599609375, 0.038177490234375, 0.0267181396484375, -0.005321502685546875, -0.0026721954345703125, 0.0457763671875, -0.040618896484375, -0.0269012451171875, -0.0090484619140625, 0.027435302734375, -0.00513458251953125, -0.019012451171875, -0.059326171875, 0.003253936767578125, -0.074462890625, -0.0294952392578125, -0.07476806640625, -0.036468505859375, -0.07208251953125, 0.01727294921875, 0.006072998046875, 0.00787353515625, 0.01136016845703125, -0.001983642578125, -0.01525115966796875, 0.0220184326171875, 0.0183868408203125, 0.0296478271484375, -0.0224609375, 0.049652099609375, -0.0298309326171875, 0.040802001953125, -0.0236358642578125, -0.01352691650390625, -0.0033817291259765625, -0.004039764404296875, 0.0240478515625, -0.002902984619140625, -0.03912353515625, -0.004703521728515625, -0.037933349609375, -0.04541015625, 0.01007843017578125, -0.032989501953125, 0.019775390625, -0.0292510986328125, -0.0009274482727050781, -0.0228729248046875, 0.02081298828125, -0.056976318359375, 0.0031452178955078125, -0.0017833709716796875, 0.004238128662109375, -0.007061004638671875, -0.010406494140625, -0.01593017578125, -0.005550384521484375, 0.0202484130859375, -0.0205535888671875, 0.00959014892578125, -0.07965087890625, 0.07550048828125, 0.045684814453125, 0.028594970703125, 0.04376220703125, -0.021240234375, 0.014678955078125, -0.003986358642578125, -0.021484375, 0.0113983154296875, 0.0067291259765625, 0.06463623046875, -0.007053375244140625, -0.0084991455078125, 0.053314208984375, -0.021881103515625, 0.0179443359375, 0.052001953125, 0.0435791015625, -0.09130859375, 0.022125244140625, -0.0233306884765625, -0.00615692138671875, 0.04815673828125, 0.01459503173828125, -0.046234130859375, -0.062744140625, 0.04107666015625, -0.005641937255859375, 0.0028400421142578125, 0.0294342041015625, 0.0243682861328125, 0.002956390380859375, -0.037353515625, 0.038055419921875, 0.0088653564453125, 0.004062652587890625, -0.007335662841796875, -0.0096893310546875, 0.01189422607421875, -0.0021457672119140625, -0.0118560791015625, -0.0008754730224609375, -0.0350341796875, -0.0418701171875, -0.00637054443359375, -0.0172576904296875, -0.026153564453125, -0.0008401870727539062, 0.01499176025390625, 0.06573486328125, 0.056243896484375, -0.00021696090698242188, 0.0162811279296875, 0.0088653564453125, 0.052154541015625, -0.007659912109375, -0.0195465087890625, 0.005859375, 0.019134521484375, -0.036285400390625, 0.0210723876953125, -0.02276611328125, -0.0168304443359375, 0.00362396240234375, 0.01068878173828125, 0.0816650390625, -0.0270538330078125, -0.0249481201171875, 0.0204925537109375, -0.018035888671875, -0.001506805419921875, 0.0118255615234375, -0.006778717041015625, -0.035797119140625, -0.01337432861328125, -0.007389068603515625, -0.043853759765625, 0.0232086181640625, -0.00559234619140625, -0.04833984375, 0.088623046875, 0.031768798828125, 0.0070648193359375, 0.030181884765625, 0.03228759765625, -0.054656982421875, 0.020843505859375, -0.01399993896484375, 0.00966644287109375, -0.007434844970703125, -0.0102081298828125, 0.0016450881958007812, 0.031707763671875, -0.0182342529296875, -0.0279693603515625, 0.01531982421875, 0.01024627685546875, -0.01068878173828125, 0.009674072265625, 0.057769775390625, 0.051971435546875, 0.023345947265625, 0.0213623046875, -0.00027680397033691406, 0.006168365478515625, -0.0038738250732421875, 0.002185821533203125, 0.038604736328125, -0.0243682861328125, -0.0535888671875, 0.0261688232421875, 0.0165252685546875, 0.01153564453125, 0.00429534912109375, 0.01971435546875, -0.02130126953125, 0.002109527587890625, 0.0213623046875, -0.039154052734375, -0.044708251953125, 0.039459228515625, -0.005023956298828125, -0.001079559326171875, 0.0177001953125, -0.034637451171875, 0.031402587890625, 0.0051116943359375, -0.0154876708984375, -0.00846099853515625, 0.01078033447265625, -0.00531005859375, 0.002086639404296875, -0.01776123046875, 0.055450439453125, -0.02099609375, 0.019561767578125, 0.02252197265625, 0.038848876953125, -0.00431060791015625, 0.0181732177734375, 0.005992889404296875, 0.0133819580078125, -0.0281524658203125, -0.038360595703125, 0.00896453857421875, -0.0009360313415527344, 0.00157928466796875, 0.01568603515625, 0.0267181396484375, -0.033660888671875, -0.0189361572265625, -0.0168609619140625, -0.014617919921875, 0.036834716796875, -0.0006155967712402344, -0.006412506103515625, -0.0081329345703125, 0.0163116455078125, 0.0079498291015625, -0.031524658203125, 0.00007838010787963867, 0.0159759521484375, 0.0418701171875, 0.01189422607421875, 0.03875732421875, -0.00557708740234375, 0.005367279052734375, -0.00213623046875, 0.007228851318359375, -0.0232696533203125, -0.0099334716796875, -0.031494140625, -0.04351806640625, 0.003231048583984375, 0.0298614501953125, -0.0213470458984375, 0.0164337158203125, 0.01187896728515625, 0.01552581787109375, -0.0188140869140625, -0.0261688232421875, 0.026611328125, -0.018218994140625, 0.0313720703125, -0.0426025390625, 0.03216552734375, 0.0031032562255859375, 0.0014400482177734375, -0.0242156982421875, 0.0318603515625, 0.0234527587890625, -0.0164337158203125, 0.056854248046875, -0.0013208389282226562, -0.007747650146484375, 0.049224853515625, -0.014129638671875, 0.07122802734375, 0.01776123046875, -0.0753173828125, -0.0210418701171875, 0.0285186767578125, -0.054443359375, 0.016632080078125, 0.046112060546875, -0.059722900390625, 0.0244293212890625, -0.00966644287109375, -0.00940704345703125, -0.007110595703125, -0.01122283935546875, 0.0269012451171875, -0.0025310516357421875, 0.00658416748046875, 0.01238250732421875, -0.054046630859375, -0.0211334228515625, -0.01512908935546875, 0.032745361328125, -0.0016298294067382812, 0.07989501953125, -0.02301025390625, 0.006816864013671875, -0.0224609375, 0.00759124755859375, -0.04876708984375, -0.04302978515625, 0.0599365234375, -0.038726806640625, -0.0301361083984375, 0.00844573974609375, -0.0390625, 0.021728515625, 0.024658203125, -0.031646728515625, 0.01934814453125, -0.02374267578125, 0.00791168212890625, -0.0086517333984375, 0.0032215118408203125, -0.01548004150390625, -0.0175628662109375, -0.01104736328125, 0.01230621337890625, 0.011749267578125, 0.0026531219482421875, -0.033355712890625, -0.0018138885498046875, 0.005596160888671875, -0.017822265625, 0.0024700164794921875, 0.0148773193359375, 0.005672454833984375, 0.0340576171875, -0.0124969482421875, -0.041168212890625, 0.038116455078125, -0.009552001953125, 0.025634765625, 0.004642486572265625, 0.091552734375, 0.008056640625, 0.01511383056640625, -0.019134521484375, 0.00531768798828125, -0.01177215576171875, -0.04107666015625, 0.004505157470703125, 0.0274658203125, -0.017364501953125, 0.0001500844955444336, -0.0224609375, -0.0294647216796875, -0.031280517578125, 0.0018310546875, 0.02313232421875, -0.0137176513671875, -0.051605224609375, -0.09686279296875, 0.0268707275390625, 0.03448486328125, 0.03985595703125, -0.10302734375, 0.0706787109375, -0.0162353515625, 0.05322265625, 0.005092620849609375, 0.036102294921875, -0.00638580322265625, 0.024017333984375, -0.0618896484375, -0.0030803680419921875, -0.0479736328125, -0.0013284683227539062, -0.0428466796875, 0.0239715576171875, 0.034271240234375, -0.036346435546875, 0.0243682861328125, 0.0257415771484375, 0.03277587890625, 0.0655517578125, 0.007595062255859375, 0.0013885498046875, 0.02325439453125, 0.0249786376953125, -0.0372314453125, -0.067138671875, 0.00531768798828125, -0.01873779296875, 0.00458526611328125, 0.00022494792938232422, -0.019256591796875, -0.00186920166015625, -0.056976318359375, -0.09527587890625, 0.039215087890625, -0.003276824951171875, -0.031890869140625, 0.0005946159362792969, -0.0004818439483642578, -0.01261138916015625, -0.017669677734375, 0.004150390625, -0.02777099609375, -0.0070648193359375, 0.0143890380859375, 0.058197021484375, 0.0267791748046875, 0.02606201171875, 0.058441162109375, -0.0660400390625, 0.036346435546875, -0.01198577880859375, 0.059112548828125, -0.0161285400390625, 0.004978179931640625, -0.01184844970703125, 0.0216827392578125, -0.0506591796875, -0.061981201171875, -0.00804901123046875, 0.035247802734375, -0.003753662109375, -0.06402587890625, -0.0295867919921875, -0.010589599609375, 0.052520751953125, 0.059539794921875, 0.0205078125, -0.033447265625, 0.0191497802734375, 0.0276947021484375, -0.032440185546875, -0.0277557373046875, 0.020965576171875, -0.06878662109375, -0.061065673828125, 0.01006317138671875, -0.025909423828125, 0.0176544189453125, 0.032745361328125, -0.0212554931640625, 0.01091766357421875, 0.033966064453125, -0.0238037109375, -0.031829833984375, -0.052642822265625, 0.06829833984375, -0.03369140625, 0.016082763671875, -0.0193634033203125, 0.0565185546875, 0.0293121337890625, -0.040191650390625, 0.0085296630859375, -0.032928466796875, -0.01959228515625, 0.033905029296875, -0.015899658203125, 0.04571533203125, -0.045135498046875, -0.0270538330078125, -0.01117706298828125, 0.01142120361328125, 0.0020542144775390625, 0.01290130615234375, 0.00679779052734375, 0.0232391357421875, 0.003475189208984375, 0.0286407470703125, 0.01085662841796875, 0.03448486328125, -0.0024585723876953125, 0.05023193359375, 0.0004673004150390625, -0.035858154296875, 0.0014848709106445312, -0.0180511474609375, 0.01309967041015625, 0.029022216796875, 0.03594970703125, -0.01065826416015625, 0.00600433349609375, 0.00914764404296875, 0.0237274169921875, -0.005558013916015625 ]
a0b7187755271e6f339dc80b7314eef447fdae4e
Wordpress Stackexchange Q: How do I retrieve the slug of the current page? I am trying to retrieve the slug of the current WordPress page outside the loop. The title of the page returns with wp_title (), but how can I get the slug? <li> <a href="/slug-of-current-page/"> <?php wp_title('', true); ?> </a> </li> A: Given the code example, it looks like what you really need is a link. In that case, you can use get_permalink(), which can be used outside of the loop. That should do what you need more reliably than using the post slug.
Q: How do I retrieve the slug of the current page? I am trying to retrieve the slug of the current WordPress page outside the loop. The title of the page returns with wp_title (), but how can I get the slug? <li> <a href="/slug-of-current-page/"> <?php wp_title('', true); ?> </a> </li> A: Given the code example, it looks like what you really need is a link. In that case, you can use get_permalink(), which can be used outside of the loop. That should do what you need more reliably than using the post slug. A: You can simply explode the slug from the request. global $wp; // Since slugs itself can't contain slashes, // let's explode on slashes and get just the last portion. $request_args = explode('/', $wp->request); $current_slug = end($request_args); // Given the URL of https://example.com/foo/bar/foo-bar if ($current_slug === 'foo-bar') { // the condition will match. } This works for all posts, pages, custom routes. A: EDIT 5 APRIL 2016 After digging for more reliability, I ended up doing this answer to the following post which leads to this edit: (Be sure to check it out) * *$GLOBALS['wp_the_query'] vs global $wp_query The most reliable method till date I could come up with is the following: // Get the queried object and sanitize it $current_page = sanitize_post( $GLOBALS['wp_the_query']->get_queried_object() ); // Get the page slug $slug = $current_page->post_name; This way, you are 99.9999% sure that you get the correct data every time. ORIGINAL ANSWER Another safer alternative to this problem is using get_queried_object() which holds the current queried object to get the page slug which is held by the post_name property. This can be used anywhere in your template. $post can be used, but it can be unreliable as any custom query or custom code can change the value of $post, so it should be avoided outside of the loop. Using get_queried_object() to get the current page object is much more reliable and is less likely to be modified, unless you are using the evil query_posts which breaks the main query object, but then that is all up to you. You can use the above as follow if ( is_page() ) $slug = get_queried_object()->post_name; A: Might be an old question, but I created the functions get_the_slug() and the_slug() based on your answers. if ( !function_exists("get_the_slug") ) { /** * Returns the page or post slug. * * @param int|WP_Post|null $id (Optional) Post ID or post object. Defaults to global $post. * @return string */ function get_the_slug( $id = null ){ $post = get_post($id); if( !empty($post) ) return $post->post_name; return ''; // No global $post var or matching ID available. } /** * Display the page or post slug * * Uses get_the_slug() and applies 'the_slug' filter. * * @param int|WP_Post|null $id (Optional) Post ID or post object. Defaults to global $post. */ function the_slug( $id=null ){ echo apply_filters( 'the_slug', get_the_slug($id) ); } } A: The simple way to get the slug is with: <?php echo basename(get_permalink()); ?> A: Use the global variable $post: <?php global $post; $post_slug = $post->post_name; ?> A: As per other answers, slug is stored in the post_name property. While it could be accessed directly, I prefer the (underused) get_post_field() function for accessing post properties which have no proper API for them. It requires post provided explicitly and doesn't default to the current one, so in full for the current post it would be: $slug = get_post_field( 'post_name', get_post() ); A: If you want a more under-the-hood answer, you can use the following SQL query to fetch all of the posts that are either posts, pages, or custom taxonomies at any time, even if no hooks have fired whatsoever as of yet. Raw SQL: SELECT `id`, `post_type` AS `type`, `post_author` AS `author`, `post_name` AS `slug`, `post_status` AS `status` FROM wp_posts WHERE `post_type` NOT IN ('attachment', 'nav_menu_item', 'revision') AND `post_status` NOT IN ('draft', 'trash') ORDER BY `id`; This works even on the very first line of your functions file, even prior to the mu_plugins_loaded or init hooks. @note This is assuming you have a standard database prefix wp_posts. If you need to account for variable prefixes, you can obtain the correct post table through PHP pretty easily by doing the following: <?php global $wpdb; $table = $wpdb->posts; $query = "SELECT `id`, `post_type` AS `type`, `post_author` AS `author`, `post_name` AS `slug`, `post_status` AS `status` FROM " . $table . " WHERE `post_type` NOT IN ('attachment', 'nav_menu_item', 'revision') AND `post_status` NOT IN ('draft', 'trash') ORDER BY `id`;" Then run with either $wpdb, mysqli, or a PDO instance. Since there is no user input in this query, it is safe to run without a prepared statement as long as you do not inject any variables into it. I would suggest storing this as a private static value of a class, so it can be accessed without having to fire the query again more than once per page for best performance, something like this: class Post_Cache { private static $post_cache; public function __construct() { //This way it skips the operation if it's already set. $this->initCache(); } public function get($id, $type = null) { if ( !(is_int( $id ) && array_key_exists( $id, self::$post_cache ) ) ) return false; } if ( !is_null( $type ) ) { //returns the specific column value for the id return self::$post_cache[$id][$type]; } //returns the whole row return self::$post_cache[$id]; } private function initCache() { if ( is_null(self::$post_cache) ) { $query = "..."; $result = some_query_method($query); //Do your query logic here. self::$post_cache = $result; { } } Usage $cache = new \Post_Cache(); //Get the page slug $slug = $cache->get( get_the_ID(), 'slug'); if ($cache->get( get_the_ID() )) { //post exists } else { //nope, 404 'em } if ( $cache->get( get_the_ID(), 'status') === 'publish' ) { //it's public } else { //either check current_user_can('whatever_permission') or just 404 it, //depending whether you want it visible to the current user or not. } if ( $cache->get( get_the_ID(), 'type') === 'post' ) { //It's a post } if ( $cache->get( get_the_ID(), 'type') === 'page' ) { //It's a page } You get the gist. If you need further details, you can fetch them as per normal with new \WP_Post( get_the_ID() ); This will let your check the posts at any time, even if the wordpress loop has not hit a point where it finds your request agreeable. This is a slightly more optimized version of the same query run by the Wordpress core itself. This one filters out all of the junk you would not want returned, and just gives you a nicely organized list with the relevant author id, post type, slug, and visibility. If you need further details, you can fetch them as per normal with new \WP_Post($id);, or use any of the other native Wordpress functions with any of the relevant table rows, even outside of the loop. I use a similar setup in a couple of my own custom themes and plugins, and it works pretty great. It's also secure and doesn't leave internal data floating around in the global scope where it can be overridden like most stuff in Wordpress does. A: This is the function to use when wanting to retrieve the slug outside of the loop. get_post_field( 'post_name'); Answer found here: How to Retrieve the Slug of Current Page in WordPress? A: If you are in the loop then the other answers will help you. If not (for example you are hooking on init or plugins_loaded) you can resort to a PHP primitive like parse_url(). Here's a function that works in both cases: function get_the_slug() { global $post; $slug = $post->post_name ?? ''; if ( ! $slug ) { $slug = basename( parse_url( $_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH ) ); } return $slug; } Please note that this approach only works on posts/pages at root level, because of how basename() works. A: Just further on @Matthew Boynes answer, if you're interested in getting the parent slug (if any) also then I've found this function useful: function mytheme_get_slugs() { if ( $link = get_permalink() ) { $link = str_replace( home_url( '/' ), '', $link ); if ( ( $len = strlen( $link ) ) > 0 && $link[$len - 1] == '/' ) { $link = substr( $link, 0, -1 ); } return explode( '/', $link ); } return false; } Eg to add the slug(s) to the body class: function mytheme_body_class( $classes ) { if ( $slugs = mytheme_get_slugs() ) { $classes = array_merge( $classes, $slugs ); } return $classes; } add_filter( 'body_class', 'mytheme_body_class' ); A: Dynamic Page calling in WordPress. <?php get_template_part('foldername/'.basename(get_permalink()),'name'); ?>
wordpress
{ "language": "en", "length": 1424, "provenance": "stackexchange_00019.jsonl.gz:417042", "question_score": "137", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42117" }
[ 0.047576904296875, -0.0145111083984375, -0.01306915283203125, 0.007312774658203125, 0.009002685546875, -0.0433349609375, 0.0638427734375, -0.00882720947265625, 0.017120361328125, 0.01557159423828125, -0.03839111328125, 0.01280975341796875, -0.0066986083984375, -0.0104827880859375, 0.00609588623046875, -0.0177001953125, 0.045562744140625, -0.0379638671875, 0.0308990478515625, -0.00431060791015625, -0.00017893314361572266, 0.0208892822265625, 0.04052734375, 0.06756591796875, 0.035186767578125, -0.049041748046875, 0.051055908203125, -0.0185089111328125, 0.003940582275390625, -0.053009033203125, 0.0184326171875, 0.039459228515625, 0.0233306884765625, -0.033447265625, 0.031402587890625, -0.0229949951171875, -0.0028629302978515625, -0.01154327392578125, 0.0121307373046875, 0.00794219970703125, 0.020782470703125, 0.0003714561462402344, 0.00955963134765625, 0.046142578125, -0.031219482421875, -0.0261383056640625, -0.0106658935546875, -0.0300750732421875, 0.00007653236389160156, 0.03521728515625, 0.0009355545043945312, 0.023193359375, 0.004695892333984375, 0.034515380859375, -0.003040313720703125, -0.0182952880859375, 0.044952392578125, -0.021484375, 0.037200927734375, -0.0772705078125, -0.0550537109375, -0.004833221435546875, 0.058990478515625, 0.01885986328125, 0.0027942657470703125, 0.0026302337646484375, 0.002376556396484375, 0.0295562744140625, -0.01434326171875, -0.0013895034790039062, 0.0078887939453125, -0.031280517578125, 0.000339508056640625, 0.0012540817260742188, -0.018890380859375, -0.061614990234375, 0.00818634033203125, -0.059051513671875, 0.0025005340576171875, 0.020416259765625, -0.01256561279296875, -0.0231475830078125, -0.06365966796875, 0.0229949951171875, -0.01023101806640625, 0.0291595458984375, -0.0156402587890625, -0.015289306640625, -0.01273345947265625, -0.00879669189453125, -0.028472900390625, 0.0357666015625, 0.014923095703125, -0.0174407958984375, -0.050567626953125, -0.017364501953125, 0.0176239013671875, 0.03704833984375, -0.01312255859375, 0.0093841552734375, 0.007083892822265625, -0.047607421875, 0.01407623291015625, -0.038116455078125, 0.00667572021484375, 0.01544189453125, 0.00258636474609375, -0.0066986083984375, 0.0172119140625, 0.006153106689453125, -0.0165252685546875, 0.00928497314453125, -0.017333984375, -0.04168701171875, -0.00612640380859375, 0.054901123046875, -0.012298583984375, -0.0164947509765625, 0.008087158203125, -0.01934814453125, -0.0028362274169921875, 0.02496337890625, 0.02197265625, -0.01898193359375, 0.0099334716796875, 0.0248565673828125, -0.0124664306640625, -0.05224609375, 0.01421356201171875, 0.034454345703125, -0.01406097412109375, -0.011749267578125, 0.0303802490234375, 0.0343017578125, -0.00011432170867919922, -0.02392578125, -0.00843048095703125, -0.0294952392578125, 0.0035724639892578125, -0.005138397216796875, -0.005916595458984375, 0.0005655288696289062, 0.022552490234375, -0.02166748046875, 0.0171051025390625, -0.00815582275390625, -0.01375579833984375, 0.03472900390625, 0.0360107421875, 0.00911712646484375, 0.0034122467041015625, -0.017730712890625, -0.0025577545166015625, 0.0196533203125, 0.0248260498046875, -0.0165557861328125, -0.006885528564453125, -0.0173187255859375, 0.04840087890625, -0.0007429122924804688, 0.01471710205078125, 0.002170562744140625, 0.0154571533203125, -0.0201873779296875, -0.03985595703125, -0.0079498291015625, -0.047454833984375, -0.01456451416015625, 0.016387939453125, 0.018890380859375, 0.0182342529296875, -0.0288848876953125, 0.0038471221923828125, -0.002300262451171875, -0.01294708251953125, 0.001895904541015625, -0.022705078125, 0.00579071044921875, 0.00708770751953125, 0.041168212890625, 0.0136871337890625, -0.0258636474609375, -0.0040435791015625, 0.0155029296875, -0.056365966796875, 0.019775390625, 0.019866943359375, 0.050506591796875, 0.01490020751953125, 0.0191802978515625, 0.037841796875, 0.005008697509765625, -0.0625, 0.042724609375, -0.0289154052734375, 0.0003457069396972656, -0.0005402565002441406, 0.038330078125, -0.03192138671875, -0.0253143310546875, -0.016876220703125, 0.01100921630859375, -0.016876220703125, 0.036834716796875, -0.01209259033203125, 0.00021648406982421875, -0.00447845458984375, 0.022857666015625, 0.03912353515625, -0.0023708343505859375, -0.004482269287109375, -0.0186614990234375, -0.000934600830078125, -0.0323486328125, -0.06317138671875, 0.0268707275390625, 0.0007443428039550781, -0.037017822265625, -0.0167999267578125, 0.0016460418701171875, -0.034393310546875, 0.0222625732421875, -0.07122802734375, -0.0009450912475585938, 0.0675048828125, -0.025299072265625, -0.01442718505859375, -0.05621337890625, 0.006786346435546875, 0.0141754150390625, -0.08551025390625, 0.039459228515625, -0.001789093017578125, 0.00089263916015625, -0.0197601318359375, 0.006656646728515625, 0.0167388916015625, -0.005035400390625, 0.0025768280029296875, 0.0274505615234375, 0.02783203125, 0.0615234375, 0.01214599609375, 0.007350921630859375, 0.051910400390625, -0.0657958984375, -0.01180267333984375, 0.00023186206817626953, 0.017974853515625, 0.039825439453125, 0.01861572265625, 0.029541015625, 0.020599365234375, 0.038299560546875, -0.0018873214721679688, 0.049957275390625, -0.007232666015625, 0.00988006591796875, -0.022674560546875, 0.0109710693359375, 0.00099945068359375, 0.0021419525146484375, -0.002544403076171875, -0.007358551025390625, -0.03759765625, 0.0284576416015625, 0.0008153915405273438, 0.015380859375, 0.0005645751953125, -0.0235595703125, 0.0167236328125, 0.017364501953125, -0.0012331008911132812, 0.031707763671875, 0.0302276611328125, -0.0274810791015625, -0.0206298828125, -0.01505279541015625, -0.0025043487548828125, 0.01299285888671875, -0.0182037353515625, 0.01515960693359375, 0.037384033203125, -0.01061248779296875, -0.010009765625, -0.056884765625, 0.0238189697265625, -0.001995086669921875, 0.043548583984375, 0.0293426513671875, 0.02996826171875, 0.0272979736328125, -0.028167724609375, 0.07073974609375, -0.00838470458984375, -0.00991058349609375, 0.055267333984375, -0.0037364959716796875, 0.007587432861328125, -0.006740570068359375, 0.078125, 0.047576904296875, -0.037689208984375, 0.025604248046875, 0.004261016845703125, -0.062164306640625, -0.0182037353515625, -0.0167694091796875, -0.0224609375, 0.0223388671875, -0.09063720703125, 0.056396484375, -0.0019044876098632812, 0.0201873779296875, -0.019927978515625, -0.056793212890625, -0.0024127960205078125, -0.0068206787109375, -0.1160888671875, -0.1051025390625, 0.01268768310546875, -0.07098388671875, -0.007526397705078125, -0.0133819580078125, -0.04034423828125, -0.00713348388671875, 0.036834716796875, 0.0009899139404296875, 0.0285186767578125, -0.047637939453125, -0.08160400390625, -0.06402587890625, -0.09814453125, 0.004192352294921875, -0.0008182525634765625, 0.01192474365234375, 0.01280975341796875, 0.006237030029296875, 0.006618499755859375, -0.039947509765625, -0.0029659271240234375, 0.0268707275390625, -0.02783203125, -0.0323486328125, -0.0435791015625, 0.01329803466796875, 0.01171112060546875, 0.01090240478515625, -0.00046372413635253906, -0.005229949951171875, 0.020538330078125, -0.01230621337890625, -0.01534271240234375, -0.01483154296875, 0.005573272705078125, 0.0161285400390625, 0.00971221923828125, 0.0140380859375, 0.026611328125, -0.0244140625, -0.04888916015625, -0.0135040283203125, -0.07257080078125, 0.0261383056640625, 0.033782958984375, 0.01342010498046875, 0.01099395751953125, 0.004367828369140625, 0.0005354881286621094, 0.00994873046875, 0.00995635986328125, -0.00222015380859375, 0.04730224609375, -0.01303863525390625, 0.0005717277526855469, -0.0207061767578125, 0.039093017578125, -0.0075531005859375, 0.020660400390625, 0.020965576171875, 0.0178375244140625, 0.0021915435791015625, 0.002559661865234375, -0.04107666015625, -0.038543701171875, 0.059173583984375, 0.0073699951171875, 0.01141357421875, -0.0101318359375, -0.042236328125, 0.00865936279296875, 0.09442138671875, -0.039886474609375, -0.0271453857421875, -0.017242431640625, -0.00959014892578125, 0.007518768310546875, -0.0011425018310546875, -0.0288543701171875, -0.0259552001953125, -0.0657958984375, 0.013519287109375, -0.019500732421875, -0.0009822845458984375, -0.005634307861328125, 0.06304931640625, -0.01180267333984375, -0.039794921875, 0.0228729248046875, -0.03607177734375, -0.0135345458984375, 0.019775390625, -0.05108642578125, 0.00525665283203125, -0.039154052734375, -0.0189208984375, -0.047698974609375, -0.004138946533203125, 0.01457977294921875, 0.045257568359375, 0.00318145751953125, 0.00025081634521484375, 0.013214111328125, 0.0552978515625, 0.01617431640625, 0.040374755859375, 0.031768798828125, 0.0019235610961914062, 0.03253173828125, 0.0171966552734375, 0.04107666015625, -0.0182037353515625, 0.005084991455078125, -0.0247344970703125, -0.051910400390625, -0.0264739990234375, -0.0382080078125, 0.016082763671875, -0.00998687744140625, -0.02191162109375, -0.01422119140625, 0.00670623779296875, 0.0430908203125, 0.0386962890625, 0.004730224609375, 0.0230255126953125, 0.0137939453125, -0.00614166259765625, 0.07550048828125, 0.06512451171875, -0.040740966796875, -0.029052734375, 0.053955078125, 0.024169921875, -0.0640869140625, -0.017822265625, -0.01751708984375, 0.02801513671875, -0.01123809814453125, 0.043701171875, 0.00792694091796875, -0.0168609619140625, 0.0557861328125, -0.00652313232421875, -0.0305938720703125, 0.00945281982421875, 0.01227569580078125, -0.0015764236450195312, -0.01540374755859375, -0.01155853271484375, -0.0447998046875, 0.047882080078125, 0.037750244140625, -0.033355712890625, 0.01042938232421875, -0.03509521484375, 0.034088134765625, -0.0212554931640625, 0.028961181640625, -0.04705810546875, -0.06976318359375, 0.0102996826171875, 0.009552001953125, 0.05084228515625, 0.038421630859375, -0.01535797119140625, 0.0780029296875, 0.027740478515625, -0.0027866363525390625, -0.0255584716796875, -0.029388427734375, 0.0209503173828125, 0.04296875, -0.05938720703125, 0.017974853515625, -0.0002694129943847656, -0.0115509033203125, 0.04669189453125, -0.01557159423828125, -0.0235748291015625, -0.01139068603515625, -0.02911376953125, -0.00960540771484375, 0.0164642333984375, 0.029754638671875, 0.0250701904296875, 0.0304718017578125, -0.0182647705078125, -0.00649261474609375, 0.00323486328125, 0.034454345703125, -0.037933349609375, 0.029052734375, -0.0026607513427734375, 0.00583648681640625, -0.0260772705078125, 0.11395263671875, -0.0002865791320800781, 0.0506591796875, -0.01470184326171875, -0.002613067626953125, -0.0042724609375, 0.029632568359375, 0.008331298828125, -0.0223846435546875, 0.042388916015625, -0.0218963623046875, 0.0462646484375, -0.035430908203125, 0.0004374980926513672, 0.01224517822265625, 0.03680419921875, -0.01806640625, -0.029205322265625, 0.031341552734375, -0.01309967041015625, -0.00811004638671875, 0.0604248046875, 0.026580810546875, -0.049468994140625, -0.03765869140625, 0.01282501220703125, 0.04827880859375, -0.0030384063720703125, -0.00884246826171875, 0.03582763671875, 0.006412506103515625, 0.02166748046875, 0.00696563720703125, -0.0235748291015625, 0.0003409385681152344, 0.01090240478515625, 0.0081939697265625, -0.0190277099609375, -0.001071929931640625, -0.0254974365234375, 0.005802154541015625, -0.032958984375, -0.01367950439453125, 0.051513671875, 0.00885009765625, 0.0699462890625, -0.063720703125, -0.0254974365234375, 0.00885772705078125, -0.0300140380859375, 0.0643310546875, 0.01947021484375, -0.042816162109375, 0.0225067138671875, -0.0595703125, 0.006870269775390625, 0.05419921875, -0.0338134765625, -0.0203857421875, -0.06915283203125, 0.0172882080078125, 0.0227508544921875, 0.0283966064453125, 0.024078369140625, -0.0386962890625, 0.0200958251953125, 0.0208282470703125, 0.06396484375, -0.00040650367736816406, 0.04522705078125, 0.01392364501953125, 0.0147247314453125, 0.01165771484375, 0.01751708984375, -0.02154541015625, -0.019927978515625, -0.00200653076171875, -0.0023937225341796875, -0.036895751953125, 0.00957489013671875, -0.0195770263671875, 0.0157928466796875, 0.060516357421875, -0.004856109619140625, -0.0124664306640625, -0.0126800537109375, 0.01104736328125, -0.01255035400390625, 0.02447509765625, -0.005237579345703125, -0.067626953125, 0.0645751953125, -0.0066375732421875, -0.0134124755859375, 0.00893402099609375, 0.0138092041015625, -0.0265960693359375, 0.00568389892578125, -0.0190277099609375, -0.0008306503295898438, -0.0379638671875, 0.050323486328125, 0.10150146484375, -0.01146697998046875, 0.04083251953125, 0.03631591796875, 0.009185791015625, 0.024139404296875, 0.0156402587890625, 0.0069580078125, -0.020751953125, 0.06976318359375, 0.015869140625, -0.0059814453125, 0.053741455078125, -0.0260467529296875, 0.005725860595703125, 0.0223846435546875, 0.06378173828125, -0.036407470703125, 0.0112152099609375, 0.0391845703125, -0.01763916015625, -0.014556884765625, 0.0234527587890625, -0.01136016845703125, -0.0184783935546875, 0.029083251953125, -0.03656005859375, -0.00510406494140625, 0.0190582275390625, -0.00489044189453125, -0.0013523101806640625, -0.01021575927734375, 0.09185791015625, 0.023284912109375, -0.03582763671875, -0.026947021484375, 0.0260162353515625, -0.00714111328125, -0.027801513671875, 0.002460479736328125, 0.0017414093017578125, -0.015472412109375, -0.0165557861328125, 0.050323486328125, -0.021484375, 0.0266571044921875, 0.032379150390625, 0.023681640625, 0.0005364418029785156, 0.036956787109375, -0.00823974609375, 0.01357269287109375, 0.00012230873107910156, -0.041473388671875, 0.017242431640625, -0.0135955810546875, -0.01166534423828125, 0.020294189453125, -0.0217132568359375, 0.0008368492126464844, -0.020263671875, 0.0181427001953125, -0.012481689453125, -0.03619384765625, 0.08502197265625, -0.0286865234375, -0.0321044921875, 0.00726318359375, 0.01007080078125, -0.006610870361328125, -0.0030384063720703125, 0.0136260986328125, -0.0119781494140625, 0.0259552001953125, 0.001728057861328125, 0.0142364501953125, -0.01056671142578125, -0.021240234375, -0.07525634765625, 0.1038818359375, -0.014892578125, 0.0650634765625, 0.025787353515625, 0.027587890625, -0.018707275390625, -0.00128936767578125, -0.0438232421875, 0.07537841796875, 0.0180816650390625, 0.03582763671875, -0.0689697265625, -0.021728515625, 0.007965087890625, 0.03314208984375, 0.0533447265625, 0.0076904296875, -0.017303466796875, -0.0016012191772460938, 0.068603515625, 0.022247314453125, -0.01560211181640625, 0.03997802734375, 0.030975341796875, 0.0240325927734375, 0.06573486328125, -0.03753662109375, 0.011016845703125, 0.0175323486328125, 0.0289764404296875, 0.0601806640625, 0.0223236083984375, -0.003551483154296875, 0.037567138671875, 0.0021305084228515625, -0.06927490234375, 0.035858154296875, 0.040740966796875, 0.01320648193359375, 0.0005369186401367188, 0.0679931640625, 0.04034423828125, -0.039703369140625, -0.0234222412109375, -0.037139892578125, 0.03948974609375, -0.007419586181640625, -0.017364501953125, 0.01145172119140625, 0.005126953125, 0.0180511474609375, -0.024017333984375, -0.00890350341796875, 0.01486968994140625, -0.005767822265625, 0.06231689453125, 0.0138702392578125, 0.01363372802734375, -0.04559326171875, 0.035797119140625, 0.056060791015625, 0.07470703125, -0.0618896484375, -0.00836181640625, 0.03192138671875, -0.00830841064453125, -0.03472900390625, -0.01139068603515625, -0.01313018798828125, 0.01806640625, 0.0299530029296875, -0.0164642333984375, -0.018951416015625, 0.0121002197265625, 0.044342041015625, -0.0103912353515625, -0.03265380859375, -0.01617431640625, -0.0235595703125, -0.032257080078125, 0.006755828857421875, 0.0067901611328125, 0.042572021484375, 0.017913818359375, 0.044952392578125, -0.02630615234375, -0.0185394287109375, 0.01139068603515625, 0.0260009765625, -0.0156402587890625, -0.0024318695068359375, -0.022918701171875, -0.037689208984375, -0.01027679443359375, 0.021148681640625, 0.07769775390625, -0.0214385986328125, 0.04034423828125, -0.021881103515625, -0.03668212890625, 0.0082550048828125, -0.009796142578125, -0.0147857666015625, 0.0462646484375, -0.030792236328125, 0.01568603515625, -0.01113128662109375, -0.0202178955078125, -0.0374755859375, -0.01090240478515625, 0.0428466796875, -0.0216522216796875, 0.0411376953125, -0.005092620849609375, 0.0247802734375, 0.049468994140625, -0.017913818359375, -0.003559112548828125, 0.005924224853515625, -0.1029052734375, -0.001300811767578125, -0.06524658203125, -0.0482177734375, 0.0304412841796875, 0.04437255859375, 0.0124359130859375, -0.0249786376953125, 0.0007028579711914062, 0.01552581787109375, 0.006427764892578125, -0.0013341903686523438, 0.0007739067077636719, 0.0158233642578125, 0.031494140625, 0.0122833251953125, -0.06353759765625, -0.033721923828125, -0.00951385498046875, 0.01183319091796875, 0.00420379638671875, 0.036224365234375, 0.011962890625, 0.006397247314453125, -0.007061004638671875, 0.0009527206420898438, -0.01261138916015625, -0.0143890380859375, 0.001255035400390625, 0.00998687744140625, 0.01401519775390625, -0.016448974609375, -0.038604736328125, 0.02960205078125, 0.021575927734375, -0.0014247894287109375, 0.0104522705078125, -0.0240631103515625, 0.006908416748046875, 0.0008230209350585938, 0.01320648193359375, -0.0245819091796875, -0.00958251953125, 0.01026153564453125, -0.01320648193359375, 0.0275421142578125, 0.02142333984375, 0.009765625, 0.00452423095703125, -0.02557373046875, -0.026580810546875, -0.00391387939453125, 0.01202392578125, -0.0162811279296875, 0.0292816162109375, -0.023468017578125, 0.014312744140625, 0.0140838623046875, -0.018890380859375, 0.03662109375, -0.0007476806640625, 0.02178955078125, -0.00402069091796875, 0.037750244140625, 0.004360198974609375, -0.06915283203125, 0.002681732177734375, -0.0289306640625, -0.01435089111328125, -0.046142578125, 0.0367431640625, -0.0015916824340820312, -0.06976318359375, -0.0296630859375, -0.0711669921875, -0.01531982421875, 0.03973388671875, -0.055389404296875, -0.0036602020263671875, -0.038818359375, -0.045440673828125, 0.0280609130859375, -0.001407623291015625, -0.005779266357421875, -0.021942138671875, -0.007114410400390625, 0.023590087890625, -0.016448974609375, 0.0264739990234375, 0.006923675537109375, 0.0229949951171875, -0.06317138671875, 0.03326416015625, -0.0153045654296875, -0.0445556640625, 0.0054779052734375, 0.0208282470703125, 0.05047607421875, -0.0369873046875, -0.049163818359375, 0.00923919677734375, 0.021026611328125, 0.059173583984375, 0.0224609375, -0.00957489013671875, 0.01708984375, 0.0185546875, -0.0247039794921875, -0.043731689453125, 0.0188140869140625, -0.01473236083984375, 0.00820159912109375, -0.00018310546875, -0.0235137939453125, 0.0012445449829101562, -0.033843994140625, -0.01910400390625, 0.0496826171875, 0.00833892822265625, -0.0281524658203125, -0.033966064453125, 0.04046630859375, 0.0296783447265625, -0.054473876953125, -0.0151519775390625, -0.04119873046875, -0.032073974609375, -0.01026153564453125, 0.059295654296875, 0.022918701171875, 0.0298614501953125, 0.06072998046875, -0.0311279296875, 0.0673828125, 0.01013946533203125, 0.0207366943359375, 0.0178070068359375, -0.004154205322265625, 0.001220703125, 0.0165557861328125, -0.057891845703125, -0.01233673095703125, -0.034454345703125, 0.03466796875, -0.025421142578125, -0.032928466796875, -0.00421142578125, -0.0038356781005859375, 0.04925537109375, 0.042877197265625, 0.01149749755859375, -0.032623291015625, -0.022918701171875, -0.005550384521484375, -0.0748291015625, -0.0042572021484375, 0.054779052734375, -0.08428955078125, 0.01428985595703125, 0.0093841552734375, 0.005504608154296875, -0.02557373046875, -0.018524169921875, -0.03033447265625, -0.0211334228515625, -0.0305023193359375, 0.00930023193359375, -0.0194244384765625, -0.0020503997802734375, 0.053497314453125, -0.0291290283203125, 0.0166168212890625, 0.01105499267578125, 0.01450347900390625, 0.03509521484375, -0.01336669921875, 0.01216888427734375, 0.0280914306640625, -0.0234832763671875, -0.01678466796875, 0.02484130859375, 0.0308380126953125, 0.01551055908203125, -0.0186614990234375, -0.0148468017578125, 0.0307159423828125, 0.01082611083984375, 0.0206298828125, -0.0162811279296875, 0.046661376953125, 0.00916290283203125, 0.041900634765625, 0.007770538330078125, 0.0209197998046875, 0.0029506683349609375, 0.04925537109375, -0.01337432861328125, -0.026763916015625, 0.004215240478515625, -0.0462646484375, -0.008392333984375, -0.027313232421875, -0.0164794921875, -0.044525146484375, 0.0118255615234375, -0.0009469985961914062, -0.0076446533203125, 0.0300750732421875 ]
463ae1de5124912689c9662652d581c464984ed1
Wordpress Stackexchange Q: 404 redirection and Google's index I have several dead pages, which are annoyingly still indexed in Google. I've set my 404.php to redirect to my homepage using wp_redirect, however I'm worried that this will prevent Google from unindexing those dead pages? I've tried setting the status code in the redirect to 404, but this results in no redirection.
Q: 404 redirection and Google's index I have several dead pages, which are annoyingly still indexed in Google. I've set my 404.php to redirect to my homepage using wp_redirect, however I'm worried that this will prevent Google from unindexing those dead pages? I've tried setting the status code in the redirect to 404, but this results in no redirection.
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:417050", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42154" }
[ 0.06512451171875, 0.04052734375, 0.0265655517578125, -0.0172576904296875, 0.01934814453125, -0.0202484130859375, 0.0390625, -0.06365966796875, 0.029022216796875, 0.0241546630859375, -0.01087188720703125, -0.007350921630859375, 0.00618743896484375, -0.03619384765625, -0.01061248779296875, 0.006290435791015625, 0.008697509765625, -0.0116729736328125, 0.0032176971435546875, -0.005523681640625, -0.00804901123046875, 0.01016998291015625, 0.007476806640625, -0.0509033203125, -0.0179901123046875, -0.0298614501953125, 0.055389404296875, -0.021697998046875, -0.02130126953125, -0.03509521484375, -0.004283905029296875, 0.032806396484375, 0.033416748046875, 0.005939483642578125, -0.00501251220703125, 0.00603485107421875, -0.01262664794921875, 0.01293182373046875, 0.0113983154296875, -0.00037169456481933594, 0.0236053466796875, -0.012451171875, 0.065673828125, -0.01055145263671875, 0.025299072265625, -0.0214996337890625, 0.033111572265625, -0.046234130859375, 0.008087158203125, -0.0038394927978515625, 0.0175933837890625, 0.01262664794921875, 0.021575927734375, -0.03759765625, -0.01114654541015625, 0.0024890899658203125, 0.038726806640625, -0.0306549072265625, 0.026641845703125, -0.056976318359375, -0.045379638671875, 0.007049560546875, 0.034698486328125, 0.01357269287109375, -0.0114288330078125, -0.0146636962890625, -0.059417724609375, 0.01528167724609375, -0.058502197265625, -0.0196380615234375, 0.032470703125, -0.048553466796875, 0.005855560302734375, -0.00678253173828125, -0.003993988037109375, -0.031463623046875, 0.006755828857421875, -0.0347900390625, 0.0138397216796875, 0.0300445556640625, 0.0238037109375, -0.0159149169921875, -0.007106781005859375, -0.044647216796875, 0.036468505859375, -0.01113128662109375, -0.005367279052734375, -0.016845703125, -0.0333251953125, -0.027557373046875, -0.0253448486328125, -0.01503753662109375, -0.015472412109375, -0.037261962890625, -0.0250244140625, -0.0306396484375, -0.0011587142944335938, 0.03594970703125, -0.0023212432861328125, 0.00974273681640625, 0.0005764961242675781, -0.03143310546875, 0.007568359375, -0.0263671875, -0.0012989044189453125, 0.02606201171875, 0.03717041015625, -0.0076904296875, -0.001781463623046875, -0.00452423095703125, -0.0234375, 0.025909423828125, -0.0186920166015625, -0.0241546630859375, -0.051971435546875, 0.005382537841796875, -0.03973388671875, -0.04034423828125, 0.005825042724609375, -0.03216552734375, -0.0034465789794921875, 0.03192138671875, 0.043365478515625, -0.02716064453125, -0.0170440673828125, -0.0175323486328125, 0.0103607177734375, -0.0794677734375, 0.08453369140625, -0.0014019012451171875, -0.02716064453125, 0.0182037353515625, -0.005096435546875, -0.0345458984375, -0.0143280029296875, 0.005062103271484375, 0.043792724609375, -0.039886474609375, -0.023468017578125, 0.0271759033203125, 0.01611328125, -0.039337158203125, -0.0252532958984375, 0.00470733642578125, 0.0143890380859375, 0.02142333984375, 0.013031005859375, 0.022430419921875, -0.00995635986328125, -0.0413818359375, 0.02569580078125, -0.0270843505859375, 0.01308441162109375, 0.0032253265380859375, 0.029876708984375, -0.041900634765625, 0.016571044921875, -0.0202789306640625, 0.026885986328125, -0.022979736328125, 0.033599853515625, 0.0209808349609375, 0.0207672119140625, -0.0164031982421875, -0.033447265625, -0.054779052734375, -0.040557861328125, -0.018890380859375, 0.0143890380859375, 0.03436279296875, 0.007724761962890625, 0.01546478271484375, -0.040557861328125, -0.003459930419921875, -0.0031299591064453125, -0.03802490234375, 0.0081787109375, 0.026824951171875, 0.00606536865234375, 0.06573486328125, 0.031524658203125, -0.018157958984375, 0.01497650146484375, 0.0250244140625, -0.049163818359375, 0.060577392578125, -0.01338958740234375, 0.02880859375, 0.0110626220703125, -0.0132904052734375, 0.0291290283203125, 0.0367431640625, -0.0738525390625, 0.03167724609375, 0.0028438568115234375, -0.004276275634765625, 0.007595062255859375, -0.01534271240234375, 0.01290130615234375, -0.020263671875, 0.0220794677734375, 0.04241943359375, -0.03363037109375, 0.0226593017578125, -0.054046630859375, 0.01543426513671875, -0.0122528076171875, 0.03271484375, 0.0188140869140625, 0.0340576171875, 0.0012521743774414062, -0.0149078369140625, -0.0287322998046875, 0.03936767578125, -0.0025787353515625, 0.0214691162109375, -0.03948974609375, 0.0265655517578125, 0.007488250732421875, 0.03887939453125, -0.009918212890625, -0.0248565673828125, -0.0208282470703125, -0.0535888671875, 0.0181732177734375, -0.022003173828125, -0.0242156982421875, -0.0167236328125, -0.0126495361328125, 0.003551483154296875, -0.052703857421875, 0.054473876953125, 0.04656982421875, 0.050384521484375, -0.010406494140625, -0.0071868896484375, -0.019927978515625, -0.07196044921875, -0.0025882720947265625, 0.050048828125, 0.0193328857421875, 0.0203704833984375, -0.032470703125, -0.00560760498046875, 0.0303192138671875, -0.02508544921875, -0.00152587890625, 0.01415252685546875, 0.04010009765625, 0.032806396484375, -0.0172119140625, -0.03173828125, 0.03363037109375, -0.040618896484375, 0.0014696121215820312, 0.039154052734375, -0.0126800537109375, -0.005031585693359375, -0.03863525390625, 0.02093505859375, 0.0014677047729492188, 0.01073455810546875, -0.002460479736328125, 0.006504058837890625, -0.00328826904296875, 0.01399993896484375, 0.02978515625, 0.036895751953125, -0.01422119140625, -0.018951416015625, 0.0013189315795898438, 0.0103759765625, 0.01214599609375, 0.050384521484375, 0.06536865234375, -0.03192138671875, -0.03485107421875, -0.0264129638671875, 0.048126220703125, 0.02392578125, -0.0110015869140625, 0.01483154296875, -0.01515960693359375, -0.01287841796875, -0.021942138671875, -0.024444580078125, 0.0219268798828125, 0.0036983489990234375, 0.06097412109375, -0.00026226043701171875, 0.021881103515625, 0.018402099609375, -0.0185699462890625, 0.072265625, 0.024261474609375, -0.047027587890625, -0.03985595703125, -0.07147216796875, 0.033355712890625, -0.0460205078125, 0.0157470703125, 0.076904296875, 0.01406097412109375, -0.004116058349609375, 0.02294921875, 0.01788330078125, 0.046966552734375, -0.02252197265625, -0.02239990234375, 0.022125244140625, -0.06268310546875, -0.0265655517578125, 0.0345458984375, 0.02685546875, 0.0496826171875, -0.030792236328125, 0.044921875, 0.03582763671875, -0.084228515625, -0.139404296875, -0.01012420654296875, -0.02264404296875, 0.028411865234375, 0.0117645263671875, 0.00611114501953125, -0.0296630859375, 0.03753662109375, 0.0145721435546875, -0.0204925537109375, -0.029937744140625, -0.047943115234375, -0.038818359375, -0.05096435546875, 0.049041748046875, -0.0087890625, 0.0222015380859375, 0.009246826171875, -0.0267333984375, -0.0005950927734375, -0.0131072998046875, 0.0251312255859375, 0.0780029296875, -0.00395965576171875, -0.0367431640625, -0.0184478759765625, 0.013702392578125, -0.002994537353515625, 0.013427734375, -0.003047943115234375, 0.0017147064208984375, -0.01139068603515625, -0.0206756591796875, -0.0272979736328125, -0.0139923095703125, -0.01580810546875, 0.01201629638671875, 0.0288238525390625, -0.0244293212890625, -0.00677490234375, -0.04119873046875, -0.0256195068359375, 0.0063018798828125, -0.04852294921875, -0.03363037109375, 0.045684814453125, -0.004421234130859375, 0.0009636878967285156, -0.0489501953125, 0.055755615234375, 0.019622802734375, 0.0186767578125, -0.006458282470703125, 0.01398468017578125, 0.01483917236328125, 0.04150390625, -0.048431396484375, 0.01108551025390625, -0.003673553466796875, 0.0187225341796875, 0.0134429931640625, 0.0086822509765625, -0.0118255615234375, 0.026458740234375, -0.046905517578125, -0.0284423828125, -0.0034618377685546875, -0.0533447265625, 0.0237884521484375, -0.01549530029296875, 0.006317138671875, -0.00994873046875, 0.04010009765625, -0.059173583984375, -0.024444580078125, 0.01087188720703125, 0.01898193359375, -0.005268096923828125, -0.0271759033203125, -0.0034160614013671875, -0.0302276611328125, -0.03546142578125, -0.007259368896484375, -0.00823211669921875, -0.01898193359375, -0.0205078125, -0.0018491744995117188, -0.0199127197265625, -0.04022216796875, 0.035736083984375, -0.0164031982421875, -0.00815582275390625, 0.040557861328125, -0.0129547119140625, 0.0017747879028320312, -0.0213775634765625, -0.0253448486328125, -0.07806396484375, -0.02801513671875, 0.0145111083984375, 0.0609130859375, 0.022064208984375, -0.05560302734375, 0.01837158203125, 0.063720703125, 0.015777587890625, 0.036834716796875, 0.0023174285888671875, -0.0260772705078125, 0.05010986328125, -0.0115203857421875, -0.006206512451171875, -0.01050567626953125, 0.0081787109375, -0.00594329833984375, -0.041839599609375, 0.0105133056640625, -0.0239715576171875, 0.00835418701171875, 0.0146484375, -0.042205810546875, -0.07501220703125, -0.041351318359375, -0.002208709716796875, 0.0079345703125, 0.006313323974609375, -0.01491546630859375, -0.037506103515625, -0.072509765625, 0.0205230712890625, -0.0211334228515625, -0.017852783203125, 0.006587982177734375, 0.033843994140625, 0.0206756591796875, -0.0001232624053955078, 0.05242919921875, 0.024658203125, 0.008514404296875, 0.022613525390625, 0.032073974609375, -0.033843994140625, -0.00745391845703125, 0.0794677734375, -0.035858154296875, -0.041015625, 0.0018796920776367188, 0.025909423828125, -0.005039215087890625, -0.048095703125, 0.019287109375, -0.05316162109375, 0.00962066650390625, 0.053466796875, -0.0009493827819824219, -0.0281219482421875, 0.0214996337890625, 0.0264739990234375, -0.058502197265625, 0.05230712890625, -0.00897979736328125, -0.0270843505859375, 0.006206512451171875, 0.050506591796875, 0.007587432861328125, 0.039794921875, -0.00441741943359375, 0.01015472412109375, 0.01522064208984375, 0.001617431640625, -0.004482269287109375, -0.0157318115234375, -0.026611328125, 0.006664276123046875, -0.022613525390625, -0.036163330078125, 0.02081298828125, -0.006946563720703125, 0.08203125, 0.01181793212890625, -0.0411376953125, 0.0093841552734375, -0.041351318359375, -0.0426025390625, 0.01041412353515625, -0.020050048828125, -0.0142669677734375, 0.046417236328125, -0.0184783935546875, 0.0101318359375, 0.021759033203125, 0.0218353271484375, -0.0258331298828125, 0.0141143798828125, 0.0218505859375, -0.0069122314453125, -0.0178070068359375, 0.0838623046875, 0.0234527587890625, 0.0277862548828125, -0.0205078125, -0.0247802734375, -0.0184478759765625, 0.038238525390625, 0.0238037109375, -0.0030002593994140625, 0.016387939453125, 0.01184844970703125, 0.034027099609375, -0.006923675537109375, -0.039276123046875, 0.01364898681640625, 0.044891357421875, -0.0239410400390625, 0.021087646484375, -0.002017974853515625, -0.01105499267578125, -0.005558013916015625, 0.07220458984375, -0.024261474609375, -0.0802001953125, -0.051300048828125, -0.01654052734375, 0.05718994140625, -0.037872314453125, -0.0236358642578125, 0.0017032623291015625, -0.0286407470703125, 0.0266876220703125, 0.02166748046875, -0.0134429931640625, 0.00505828857421875, -0.0009984970092773438, 0.01184844970703125, -0.0267486572265625, -0.017608642578125, -0.074462890625, 0.01165771484375, -0.035888671875, -0.005710601806640625, 0.064697265625, -0.00856781005859375, 0.004329681396484375, -0.030059814453125, -0.0011777877807617188, 0.039642333984375, -0.0028839111328125, 0.052032470703125, 0.0009274482727050781, -0.05218505859375, -0.014617919921875, -0.052154541015625, -0.0208892822265625, -0.01200103759765625, -0.01514434814453125, -0.030975341796875, -0.005298614501953125, 0.03204345703125, 0.035614013671875, -0.00930023193359375, -0.0762939453125, -0.0487060546875, -0.021942138671875, 0.052398681640625, -0.0178680419921875, -0.017730712890625, 0.00862884521484375, -0.0189056396484375, 0.0294342041015625, -0.0219879150390625, 0.0033779144287109375, 0.049591064453125, -0.041534423828125, 0.034210205078125, -0.0277557373046875, -0.043121337890625, -0.02069091796875, -0.0125732421875, 0.018951416015625, 0.0364990234375, -0.01488494873046875, -0.00736236572265625, -0.005023956298828125, 0.002063751220703125, -0.0257720947265625, 0.030670166015625, -0.0172271728515625, -0.01427459716796875, 0.0125579833984375, 0.0284271240234375, -0.00421905517578125, -0.016448974609375, -0.009307861328125, -0.02679443359375, 0.0321044921875, -0.0277862548828125, -0.03271484375, -0.0408935546875, 0.021575927734375, 0.0604248046875, 0.020751953125, 0.066650390625, -0.006679534912109375, 0.0251617431640625, 0.06573486328125, 0.0286407470703125, -0.0273895263671875, -0.0322265625, 0.024383544921875, -0.004589080810546875, -0.01641845703125, 0.0178375244140625, -0.006282806396484375, -0.00992584228515625, 0.07440185546875, 0.0419921875, -0.10693359375, -0.0158233642578125, -0.006015777587890625, -0.011871337890625, 0.0042572021484375, -0.01061248779296875, 0.008453369140625, 0.0032520294189453125, 0.00881195068359375, 0.0217437744140625, -0.0272064208984375, -0.005390167236328125, 0.026397705078125, -0.027374267578125, -0.01143646240234375, 0.0212554931640625, 0.0056304931640625, -0.05279541015625, 0.0153656005859375, 0.030181884765625, -0.00547027587890625, 0.0156097412109375, 0.004749298095703125, -0.00428009033203125, -0.032989501953125, -0.0166473388671875, 0.0095672607421875, -0.019073486328125, -0.00876617431640625, 0.022979736328125, 0.01092529296875, 0.034088134765625, 0.046722412109375, 0.006603240966796875, -0.00466156005859375, 0.02288818359375, -0.004505157470703125, 0.05224609375, -0.0013380050659179688, -0.002742767333984375, -0.056182861328125, -0.0018968582153320312, -0.0175323486328125, -0.02117919921875, -0.020355224609375, -0.00499725341796875, -0.003376007080078125, 0.033050537109375, -0.0147857666015625, -0.0200653076171875, 0.005283355712890625, 0.00878143310546875, 0.023284912109375, -0.0142059326171875, 0.04644775390625, -0.036956787109375, 0.0113983154296875, 0.007686614990234375, 0.0251312255859375, -0.0018930435180664062, -0.011749267578125, -0.01508331298828125, 0.06719970703125, -0.01983642578125, -0.00380706787109375, 0.030487060546875, 0.03662109375, -0.0191192626953125, 0.0267791748046875, 0.0102081298828125, 0.034271240234375, -0.0316162109375, 0.0290069580078125, -0.006694793701171875, -0.0095367431640625, 0.034820556640625, 0.03582763671875, 0.05902099609375, 0.0200042724609375, -0.0687255859375, -0.005771636962890625, 0.026519775390625, -0.005634307861328125, -0.0158538818359375, 0.0782470703125, -0.048065185546875, -0.005092620849609375, -0.0142974853515625, -0.04278564453125, 0.01959228515625, -0.00434112548828125, -0.06402587890625, -0.033172607421875, 0.0005965232849121094, -0.01617431640625, -0.006732940673828125, -0.05780029296875, -0.06304931640625, 0.0145263671875, 0.01861572265625, 0.01258087158203125, -0.02691650390625, 0.0246124267578125, -0.004856109619140625, -0.0833740234375, 0.0291900634765625, -0.05462646484375, 0.035980224609375, 0.004932403564453125, 0.00757598876953125, 0.030029296875, 0.01056671142578125, 0.052093505859375, 0.006984710693359375, 0.00939178466796875, 0.0237884521484375, -0.005859375, 0.085693359375, 0.06939697265625, 0.049102783203125, -0.00472259521484375, -0.01038360595703125, 0.0192108154296875, 0.102294921875, -0.041778564453125, -0.0177764892578125, 0.01110076904296875, 0.020172119140625, 0.028839111328125, -0.004550933837890625, 0.06256103515625, -0.042205810546875, -0.015716552734375, 0.017822265625, 0.002780914306640625, 0.006084442138671875, 0.00514984130859375, -0.019439697265625, -0.01000213623046875, -0.0015802383422851562, 0.029754638671875, 0.0096435546875, -0.040252685546875, 0.0242462158203125, 0.0445556640625, 0.005168914794921875, 0.013092041015625, -0.01406097412109375, 0.0014934539794921875, -0.027923583984375, 0.053924560546875, 0.016937255859375, 0.03485107421875, -0.0772705078125, -0.05828857421875, 0.027069091796875, 0.059112548828125, 0.009368896484375, 0.0005707740783691406, 0.006183624267578125, 0.03961181640625, 0.00725555419921875, -0.0124664306640625, 0.043548583984375, -0.01396942138671875, 0.008392333984375, 0.00018966197967529297, 0.03155517578125, 0.03350830078125, 0.002521514892578125, -0.0251617431640625, 0.0364990234375, 0.038330078125, 0.020416259765625, 0.04119873046875, -0.0097198486328125, -0.04010009765625, 0.018280029296875, -0.00949859619140625, 0.1209716796875, 0.031463623046875, 0.00424957275390625, -0.0177154541015625, 0.0259246826171875, 0.004993438720703125, 0.004482269287109375, 0.030426025390625, 0.003040313720703125, 0.0112457275390625, 0.01140594482421875, -0.0013189315795898438, 0.02838134765625, -0.0185394287109375, 0.0203399658203125, 0.04779052734375, 0.017578125, 0.032928466796875, -0.038543701171875, -0.01148223876953125, 0.0128936767578125, 0.012481689453125, -0.0252685546875, 0.0955810546875, -0.0259857177734375, -0.00968170166015625, 0.047210693359375, -0.033538818359375, 0.05133056640625, 0.0167236328125, 0.018585205078125, 0.006565093994140625, 0.015228271484375, -0.041351318359375, -0.08453369140625, 0.029052734375, 0.02197265625, 0.005828857421875, 0.046966552734375, -0.00952911376953125, 0.00890350341796875, -0.01861572265625, -0.01093292236328125, -0.053680419921875, -0.050140380859375, -0.034881591796875, -0.00759124755859375, -0.01119232177734375, -0.024749755859375, 0.0153350830078125, 0.0161590576171875, -0.0095672607421875, -0.049041748046875, 0.05889892578125, -0.075927734375, 0.0670166015625, 0.0282745361328125, 0.00925445556640625, 0.035064697265625, 0.01401519775390625, -0.00917816162109375, 0.031646728515625, 0.0028781890869140625, -0.01532745361328125, 0.0034313201904296875, 0.024078369140625, -0.05731201171875, -0.0498046875, -0.02655029296875, 0.0024662017822265625, -0.02374267578125, -0.05267333984375, -0.01513671875, 0.0022487640380859375, -0.02374267578125, -0.0012960433959960938, -0.00484466552734375, -0.0196990966796875, 0.0138092041015625, 0.00911712646484375, -0.0275115966796875, 0.005035400390625, 0.0010538101196289062, 0.0443115234375, -0.005115509033203125, -0.034912109375, 0.0130462646484375, -0.046417236328125, 0.036407470703125, 0.0008730888366699219, 0.033172607421875, -0.005481719970703125, 0.02020263671875, -0.0672607421875, -0.0017604827880859375, -0.0249176025390625, 0.0058441162109375, -0.0277557373046875, 0.01064300537109375, 0.04913330078125, -0.023162841796875, 0.026123046875, -0.0386962890625, -0.0018329620361328125, 0.019195556640625, -0.044891357421875, -0.03875732421875, 0.023681640625, -0.0145111083984375, 0.01403045654296875, 0.0095977783203125, -0.0030975341796875, -0.005275726318359375, -0.019195556640625, -0.02032470703125, -0.016357421875, -0.01187896728515625, -0.042236328125, -0.0377197265625, 0.0242156982421875, 0.0060272216796875, -0.0209503173828125, -0.019744873046875, 0.03924560546875, -0.0016994476318359375, -0.0310211181640625, -0.0017709732055664062, -0.0106048583984375, 0.001354217529296875, -0.0206756591796875, 0.0002803802490234375, 0.078369140625, -0.0300445556640625, 0.0148162841796875, 0.0347900390625, 0.05450439453125, 0.050811767578125, 0.003391265869140625, -0.0122222900390625, -0.0175018310546875, 0.044342041015625, 0.066162109375, 0.0001964569091796875, 0.03216552734375, 0.03143310546875, -0.054443359375, 0.0032825469970703125, -0.033172607421875, -0.0197906494140625, -0.03399658203125, 0.032135009765625, 0.0010700225830078125, 0.00847625732421875, 0.006572723388671875, -0.053192138671875, -0.05657958984375, 0.0243988037109375, -0.0193939208984375, -0.0006809234619140625, -0.05621337890625, 0.006626129150390625, 0.01444244384765625, -0.017913818359375, 0.00247955322265625, -0.006015777587890625, -0.017791748046875, 0.00661468505859375, 0.021697998046875, -0.032379150390625, 0.031463623046875, -0.0278472900390625, 0.040863037109375, -0.0277252197265625, 0.0187225341796875, -0.032989501953125, 0.04351806640625, -0.0018873214721679688, -0.0458984375, 0.023468017578125, 0.057037353515625, -0.017333984375, -0.037139892578125, 0.03668212890625, -0.041748046875, 0.01194000244140625, 0.0019178390502929688, 0.0029659271240234375, 0.0207366943359375, 0.00406646728515625, 0.041168212890625, -0.006683349609375, -0.0232086181640625, -0.027862548828125, 0.0007510185241699219, -0.01094818115234375, 0.016265869140625, -0.01436614990234375, 0.04986572265625, -0.021453857421875, -0.013702392578125, 0.006053924560546875, -0.01177215576171875, 0.0294952392578125, 0.0215301513671875, 0.054046630859375, 0.01390838623046875, 0.0208740234375, -0.0283355712890625, 0.022308349609375, 0.004566192626953125 ]
2dd01b45a26fbcc3509f6e1158590ef5f844aba6
Wordpress Stackexchange Q: How to loop through each user id? The functions that I am aware of: WP_User and wp_get_current_user seem to only get the user object of the current user. As an administrator, if I want to display certain profile information in a table from each user, how can I loop through the ids? Can this be done with WP template tags or should I resort to SQL? Thanks in advance A: How about using get_users()? You probably don't even need parameters for it, default behavior should be just what you're looking for.
Q: How to loop through each user id? The functions that I am aware of: WP_User and wp_get_current_user seem to only get the user object of the current user. As an administrator, if I want to display certain profile information in a table from each user, how can I loop through the ids? Can this be done with WP template tags or should I resort to SQL? Thanks in advance A: How about using get_users()? You probably don't even need parameters for it, default behavior should be just what you're looking for.
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:417057", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42183" }
[ 0.07232666015625, 0.00685882568359375, 0.0030345916748046875, -0.0201416015625, 0.0219268798828125, -0.03912353515625, 0.04638671875, -0.0238494873046875, 0.012786865234375, 0.07147216796875, -0.0460205078125, 0.0144805908203125, 0.0011196136474609375, 0.0193939208984375, -0.057647705078125, -0.021881103515625, 0.0252227783203125, -0.03515625, 0.0232086181640625, -0.006961822509765625, 0.005420684814453125, 0.0153961181640625, 0.0258941650390625, 0.0184173583984375, 0.005649566650390625, -0.048492431640625, 0.0018224716186523438, -0.01056671142578125, 0.003570556640625, -0.0245513916015625, -0.007343292236328125, 0.047760009765625, -0.0224151611328125, 0.0187225341796875, 0.0293731689453125, 0.00920867919921875, 0.027008056640625, 0.0233917236328125, 0.06329345703125, -0.01323699951171875, 0.02813720703125, -0.0027008056640625, -0.01392364501953125, 0.0282135009765625, -0.030792236328125, -0.056610107421875, 0.0308380126953125, -0.024688720703125, 0.0199432373046875, -0.0014171600341796875, 0.0202789306640625, 0.036529541015625, 0.02301025390625, -0.0151214599609375, -0.01149749755859375, 0.0007758140563964844, 0.0272216796875, -0.04302978515625, 0.0501708984375, -0.052764892578125, -0.052947998046875, -0.044677734375, 0.06268310546875, -0.00846099853515625, 0.006893157958984375, -0.0223236083984375, 0.0297698974609375, 0.038604736328125, -0.034423828125, -0.02227783203125, 0.0172271728515625, -0.004058837890625, -0.021209716796875, -0.00820159912109375, -0.04302978515625, -0.0258331298828125, 0.0251922607421875, -0.0484619140625, -0.01323699951171875, 0.0235443115234375, -0.05859375, -0.036468505859375, -0.10699462890625, 0.057373046875, -0.04718017578125, 0.0673828125, -0.0292205810546875, -0.016510009765625, -0.0160980224609375, -0.0215301513671875, -0.01763916015625, 0.01241302490234375, -0.006626129150390625, -0.00696563720703125, -0.037139892578125, -0.0272369384765625, 0.03424072265625, 0.053802490234375, -0.031341552734375, -0.02191162109375, 0.019317626953125, -0.026763916015625, -0.021453857421875, -0.019317626953125, -0.00856781005859375, 0.035400390625, 0.01537322998046875, 0.0750732421875, 0.03466796875, 0.03338623046875, 0.027984619140625, 0.01450347900390625, -0.0145263671875, -0.02691650390625, -0.026519775390625, 0.01235198974609375, -0.03363037109375, -0.00860595703125, -0.006397247314453125, -0.014434814453125, 0.0007176399230957031, 0.02874755859375, 0.0018224716186523438, -0.006561279296875, -0.021209716796875, -0.01300811767578125, -0.0007658004760742188, -0.038238525390625, -0.0247039794921875, 0.04962158203125, -0.03753662109375, -0.01168060302734375, 0.04840087890625, 0.037933349609375, 0.005504608154296875, -0.02777099609375, -0.004619598388671875, -0.04766845703125, -0.0217132568359375, 0.032623291015625, -0.01042938232421875, -0.049346923828125, -0.0130157470703125, -0.0069122314453125, -0.007480621337890625, 0.0300140380859375, 0.0203857421875, -0.0042572021484375, -0.0156097412109375, -0.03302001953125, -0.048980712890625, 0.0298309326171875, -0.045654296875, 0.034820556640625, 0.09625244140625, 0.0172576904296875, 0.03472900390625, -0.014617919921875, 0.04541015625, 0.0221405029296875, 0.01329803466796875, -0.0180206298828125, 0.0040740966796875, 0.0098876953125, -0.03472900390625, 0.0225677490234375, -0.01232147216796875, -0.01305389404296875, 0.03668212890625, 0.057830810546875, 0.01003265380859375, -0.019927978515625, 0.062042236328125, 0.038299560546875, -0.010223388671875, 0.01160430908203125, -0.03155517578125, 0.01117706298828125, 0.02142333984375, 0.03131103515625, -0.00957489013671875, -0.0513916015625, -0.0087127685546875, 0.01488494873046875, -0.063232421875, 0.041778564453125, -0.0114593505859375, 0.059814453125, 0.048187255859375, -0.0005784034729003906, 0.0299224853515625, 0.0000019669532775878906, -0.042205810546875, 0.0345458984375, 0.008148193359375, -0.0147857666015625, -0.01024627685546875, 0.002429962158203125, -0.009613037109375, -0.03118896484375, 0.0258941650390625, -0.023681640625, 0.02520751953125, -0.03680419921875, -0.058441162109375, -0.00507354736328125, -0.0217132568359375, 0.0281982421875, 0.038330078125, 0.013702392578125, -0.005039215087890625, -0.0105743408203125, -0.0128936767578125, -0.005298614501953125, -0.051055908203125, 0.0025501251220703125, -0.01361083984375, 0.005794525146484375, 0.005046844482421875, 0.0185394287109375, -0.022552490234375, 0.0076904296875, -0.0299530029296875, -0.00606536865234375, 0.012481689453125, -0.00641632080078125, -0.0094146728515625, -0.0224761962890625, 0.01788330078125, -0.0005435943603515625, 0.01117706298828125, 0.01078033447265625, 0.004459381103515625, 0.03240966796875, -0.032318115234375, -0.00827789306640625, 0.00677490234375, 0.0036640167236328125, 0.006587982177734375, 0.01251220703125, 0.035400390625, 0.0007677078247070312, 0.0182037353515625, 0.0318603515625, 0.03802490234375, -0.025482177734375, 0.021881103515625, -0.006275177001953125, 0.019989013671875, 0.037841796875, -0.0089874267578125, 0.0148773193359375, 0.0100860595703125, -0.04998779296875, 0.0255584716796875, 0.044952392578125, -0.0086822509765625, 0.04412841796875, -0.05133056640625, 0.010772705078125, -0.01336669921875, -0.047393798828125, 0.00269317626953125, -0.041259765625, 0.00553131103515625, -0.00970458984375, 0.00827789306640625, 0.004535675048828125, -0.0066070556640625, -0.01471710205078125, 0.01739501953125, 0.00316619873046875, 0.0024280548095703125, 0.02911376953125, -0.05096435546875, 0.025726318359375, -0.0292816162109375, 0.0003066062927246094, -0.0024394989013671875, -0.0011968612670898438, 0.0157470703125, 0.02099609375, -0.0085296630859375, -0.0035457611083984375, 0.0399169921875, -0.00942230224609375, -0.0157470703125, 0.016876220703125, -0.002105712890625, -0.0146636962890625, 0.0135040283203125, 0.039703369140625, -0.0255584716796875, 0.05908203125, -0.042633056640625, 0.004398345947265625, 0.0216217041015625, -0.0179901123046875, 0.0172119140625, -0.0250244140625, 0.0033702850341796875, 0.052764892578125, 0.00978851318359375, -0.013397216796875, -0.000046312808990478516, -0.00780487060546875, 0.000919342041015625, 0.016448974609375, 0.01593017578125, -0.0235137939453125, 0.0015878677368164062, 0.04180908203125, 0.04144287109375, 0.11676025390625, -0.0073394775390625, -0.03643798828125, -0.01216888427734375, 0.0672607421875, -0.039306640625, -0.09228515625, 0.01116943359375, -0.0640869140625, -0.053436279296875, -0.040313720703125, -0.041595458984375, 0.041259765625, -0.024505615234375, -0.0011529922485351562, -0.00372314453125, -0.0165557861328125, -0.041473388671875, -0.05535888671875, -0.08123779296875, -0.01497650146484375, -0.005702972412109375, 0.0113372802734375, 0.0004611015319824219, 0.0009927749633789062, -0.017242431640625, -0.04736328125, -0.03387451171875, 0.02001953125, -0.01163482666015625, -0.0245361328125, 0.00501251220703125, -0.0112457275390625, -0.005462646484375, 0.01483154296875, -0.024871826171875, -0.0007834434509277344, -0.0015316009521484375, -0.0287933349609375, 0.0192718505859375, -0.007495880126953125, 0.038238525390625, -0.01143646240234375, -0.037322998046875, 0.03692626953125, 0.03240966796875, -0.022918701171875, 0.003753662109375, -0.002658843994140625, -0.031158447265625, -0.0032367706298828125, -0.006015777587890625, -0.01396942138671875, -0.000017642974853515625, -0.00478363037109375, 0.0285491943359375, 0.028594970703125, -0.0650634765625, 0.007457733154296875, 0.0273284912109375, 0.018707275390625, 0.05535888671875, 0.03900146484375, 0.025634765625, -0.0132293701171875, 0.004383087158203125, -0.004276275634765625, 0.00902557373046875, -0.0088958740234375, -0.0174560546875, -0.0159759521484375, -0.06341552734375, 0.0736083984375, 0.022125244140625, 0.0115509033203125, -0.026947021484375, -0.04608154296875, 0.0171661376953125, 0.13427734375, 0.001865386962890625, -0.00728607177734375, 0.006256103515625, -0.0074310302734375, -0.0555419921875, 0.005771636962890625, -0.092529296875, 0.00942230224609375, -0.01261138916015625, -0.014068603515625, -0.038238525390625, 0.0135345458984375, -0.01015472412109375, 0.0166473388671875, 0.003963470458984375, -0.03228759765625, 0.0141754150390625, -0.007579803466796875, 0.006763458251953125, -0.0036487579345703125, 0.003299713134765625, -0.022308349609375, 0.0166778564453125, -0.0250701904296875, -0.069580078125, -0.016845703125, 0.001201629638671875, 0.07000732421875, 0.02337646484375, -0.026763916015625, -0.0022373199462890625, 0.048126220703125, -0.01006317138671875, 0.04229736328125, 0.006755828857421875, 0.0220489501953125, 0.030670166015625, -0.01197052001953125, 0.00960540771484375, -0.014373779296875, -0.039886474609375, -0.09515380859375, 0.01806640625, -0.026947021484375, -0.049713134765625, 0.03375244140625, -0.08282470703125, 0.049407958984375, -0.0305938720703125, -0.002544403076171875, 0.00940704345703125, 0.04156494140625, -0.02001953125, 0.025726318359375, -0.012542724609375, -0.04864501953125, 0.0589599609375, 0.038604736328125, -0.005657196044921875, -0.0006461143493652344, 0.09576416015625, 0.017120361328125, -0.0301055908203125, -0.05841064453125, -0.0023593902587890625, 0.030426025390625, -0.0241546630859375, 0.0550537109375, 0.035186767578125, -0.02215576171875, 0.0645751953125, 0.00757598876953125, -0.00650787353515625, 0.0036525726318359375, 0.049713134765625, -0.016326904296875, -0.038238525390625, 0.024200439453125, -0.019012451171875, -0.015594482421875, 0.01422882080078125, -0.0041961669921875, -0.0286865234375, 0.0034160614013671875, 0.04278564453125, 0.002044677734375, -0.002902984619140625, -0.0423583984375, -0.06292724609375, 0.01418304443359375, -0.0733642578125, 0.0194854736328125, 0.0051422119140625, -0.0002608299255371094, 0.0186004638671875, 0.004734039306640625, 0.006267547607421875, -0.00501251220703125, -0.0016698837280273438, 0.01448822021484375, 0.043548583984375, -0.02752685546875, 0.0268096923828125, -0.0173797607421875, -0.0251007080078125, 0.116943359375, 0.007778167724609375, -0.0574951171875, 0.062469482421875, -0.036956787109375, -0.0201568603515625, 0.0394287109375, 0.01104736328125, 0.03717041015625, 0.0038356781005859375, -0.0031414031982421875, -0.0192718505859375, -0.036102294921875, 0.0021820068359375, -0.04803466796875, 0.0069732666015625, 0.0024890899658203125, -0.007526397705078125, 0.00905609130859375, 0.064453125, -0.0014362335205078125, 0.04547119140625, -0.0213775634765625, 0.060089111328125, 0.070556640625, -0.006252288818359375, 0.007274627685546875, 0.0219268798828125, -0.006961822509765625, -0.0252838134765625, 0.00760650634765625, -0.039947509765625, 0.0198974609375, 0.019073486328125, 0.057098388671875, 0.031463623046875, -0.0206298828125, -0.0037860870361328125, -0.038909912109375, 0.0032215118408203125, 0.041473388671875, -0.007511138916015625, -0.050689697265625, -0.02142333984375, 0.034210205078125, 0.039825439453125, -0.01366424560546875, 0.009796142578125, -0.03570556640625, -0.0252227783203125, -0.0214996337890625, -0.002399444580078125, -0.0235748291015625, -0.026397705078125, -0.01462554931640625, -0.07763671875, -0.0259857177734375, -0.007232666015625, -0.0296173095703125, -0.0246734619140625, -0.004364013671875, -0.025238037109375, 0.03350830078125, 0.0117950439453125, 0.035980224609375, -0.0419921875, -0.0285186767578125, -0.02001953125, -0.0244903564453125, 0.090087890625, 0.04046630859375, -0.047027587890625, 0.026397705078125, -0.05780029296875, 0.00913238525390625, -0.00023829936981201172, -0.060028076171875, -0.049102783203125, -0.03955078125, 0.0095367431640625, 0.01262664794921875, 0.0345458984375, 0.027862548828125, -0.00032138824462890625, 0.0041656494140625, -0.0147857666015625, 0.021636962890625, 0.006183624267578125, 0.055938720703125, -0.005954742431640625, 0.0596923828125, 0.012298583984375, 0.0309295654296875, -0.042236328125, -0.0229644775390625, 0.006145477294921875, 0.0112457275390625, -0.01525115966796875, -0.02606201171875, 0.0174560546875, -0.043182373046875, 0.024993896484375, -0.00809478759765625, 0.01107025146484375, -0.034942626953125, -0.0024700164794921875, -0.0225067138671875, 0.0266876220703125, -0.0283050537109375, -0.017822265625, 0.01317596435546875, -0.006435394287109375, -0.039337158203125, 0.0159759521484375, -0.01094818115234375, -0.0126495361328125, 0.0306243896484375, -0.033843994140625, -0.021881103515625, -0.0032405853271484375, 0.037811279296875, 0.0231475830078125, -0.038818359375, -0.00835418701171875, 0.0255889892578125, -0.001544952392578125, -0.00543975830078125, 0.0238189697265625, -0.00884246826171875, -0.008148193359375, 0.0582275390625, 0.00788116455078125, -0.022003173828125, 0.0377197265625, -0.037139892578125, 0.0035152435302734375, 0.034332275390625, 0.043792724609375, -0.05975341796875, 0.0171051025390625, 0.01309967041015625, 0.0017633438110351562, -0.007236480712890625, -0.0172119140625, 0.00937652587890625, -0.0263519287109375, 0.046600341796875, 0.0302581787109375, -0.018890380859375, 0.006587982177734375, -0.0198516845703125, 0.0083465576171875, -0.0183563232421875, 0.055938720703125, 0.0038547515869140625, 0.033203125, -0.0439453125, -0.0176544189453125, 0.008880615234375, -0.04022216796875, 0.013519287109375, -0.01080322265625, 0.00039696693420410156, -0.04754638671875, 0.013275146484375, -0.010833740234375, 0.0229949951171875, 0.0300750732421875, 0.009368896484375, 0.0281982421875, 0.03271484375, 0.0015039443969726562, 0.0112152099609375, 0.01476287841796875, -0.04437255859375, -0.036346435546875, -0.024871826171875, -0.0408935546875, 0.0308685302734375, -0.0299835205078125, 0.023040771484375, -0.0264434814453125, 0.0220489501953125, -0.0136566162109375, -0.03692626953125, 0.07830810546875, -0.04095458984375, -0.018829345703125, 0.020294189453125, 0.030364990234375, -0.01024627685546875, 0.01186370849609375, -0.01885986328125, -0.04229736328125, -0.0211029052734375, -0.0033588409423828125, -0.0281524658203125, 0.0335693359375, 0.005168914794921875, -0.034637451171875, 0.00823211669921875, -0.01056671142578125, 0.0080413818359375, 0.0142669677734375, -0.0063018798828125, 0.029388427734375, 0.0016794204711914062, -0.039947509765625, 0.04315185546875, 0.0003726482391357422, 0.05322265625, -0.0423583984375, -0.0082855224609375, 0.011077880859375, 0.031829833984375, 0.03997802734375, 0.026580810546875, -0.0238800048828125, -0.020172119140625, -0.0169677734375, 0.0203857421875, -0.022369384765625, 0.03216552734375, -0.0061798095703125, 0.04180908203125, 0.044586181640625, -0.0535888671875, 0.01474761962890625, 0.003749847412109375, -0.0188446044921875, 0.019439697265625, 0.019500732421875, 0.01300048828125, 0.00485992431640625, 0.0318603515625, -0.0242919921875, -0.0075836181640625, 0.0194244384765625, -0.0070037841796875, -0.007472991943359375, 0.046783447265625, 0.024505615234375, -0.048919677734375, 0.0019969940185546875, -0.0384521484375, 0.052947998046875, -0.00237274169921875, -0.01210784912109375, 0.04266357421875, 0.021453857421875, -0.0079498291015625, 0.0239105224609375, 0.0011682510375976562, 0.0107421875, 0.01203155517578125, 0.06512451171875, 0.0343017578125, 0.035003662109375, -0.06756591796875, -0.03857421875, 0.05523681640625, 0.08746337890625, -0.036224365234375, -0.047119140625, 0.0256195068359375, 0.0003371238708496094, 0.0189208984375, 0.03369140625, 0.057891845703125, 0.00928497314453125, 0.031097412109375, -0.043243408203125, 0.001735687255859375, 0.004871368408203125, 0.019012451171875, -0.0008473396301269531, 0.0012063980102539062, -0.010467529296875, -0.00328826904296875, -0.04254150390625, 0.0175628662109375, 0.01214599609375, -0.0140228271484375, 0.004360198974609375, 0.004730224609375, 0.05322265625, 0.0081024169921875, 0.0220794677734375, 0.003505706787109375, 0.009368896484375, -0.024871826171875, -0.00562286376953125, -0.0214080810546875, -0.011871337890625, 0.031494140625, 0.017974853515625, -0.02154541015625, 0.0160064697265625, -0.004642486572265625, -0.041412353515625, -0.0203704833984375, 0.0102996826171875, -0.0170745849609375, 0.004871368408203125, -0.0201568603515625, 0.0328369140625, 0.022308349609375, 0.0078582763671875, -0.004878997802734375, 0.0141754150390625, 0.05218505859375, -0.01336669921875, 0.05548095703125, -0.0079345703125, 0.0021686553955078125, 0.0087127685546875, -0.01432037353515625, 0.01328277587890625, 0.013763427734375, -0.11529541015625, 0.0016775131225585938, -0.060516357421875, -0.036285400390625, 0.03216552734375, 0.0290069580078125, -0.024078369140625, 0.0242767333984375, 0.00920867919921875, -0.019073486328125, 0.00923919677734375, 0.0199432373046875, 0.021484375, 0.01458740234375, 0.0227508544921875, 0.004993438720703125, -0.051177978515625, -0.012847900390625, -0.01519012451171875, -0.01031494140625, 0.042999267578125, -0.00464630126953125, 0.0380859375, 0.0257568359375, -0.006748199462890625, 0.0300140380859375, -0.0421142578125, -0.03326416015625, 0.084228515625, 0.0031890869140625, -0.003559112548828125, -0.0209503173828125, -0.035552978515625, 0.061187744140625, 0.004665374755859375, 0.00231170654296875, 0.043701171875, 0.00020933151245117188, -0.00004398822784423828, 0.00007069110870361328, 0.01245880126953125, -0.01195526123046875, -0.038604736328125, -0.0163421630859375, 0.01311492919921875, 0.026947021484375, 0.047607421875, -0.006134033203125, 0.00652313232421875, -0.018585205078125, -0.0389404296875, -0.016571044921875, -0.00040912628173828125, -0.034881591796875, 0.0099639892578125, 0.0194854736328125, 0.0269622802734375, -0.0223846435546875, -0.0307769775390625, 0.0302581787109375, -0.0106964111328125, 0.00769805908203125, -0.00778961181640625, 0.00432586669921875, 0.0208282470703125, 0.0200347900390625, 0.06170654296875, 0.006740570068359375, 0.020843505859375, -0.01849365234375, 0.01459503173828125, 0.0071258544921875, -0.0631103515625, -0.02459716796875, -0.033935546875, -0.01331329345703125, 0.029296875, -0.02728271484375, -0.01800537109375, -0.05841064453125, -0.016845703125, -0.0187530517578125, -0.006366729736328125, -0.025115966796875, 0.0115203857421875, 0.0217742919921875, 0.01126861572265625, -0.06292724609375, -0.0211334228515625, 0.01221466064453125, 0.031005859375, -0.035888671875, -0.007099151611328125, -0.0232391357421875, -0.01345062255859375, -0.014923095703125, 0.00949859619140625, 0.0142822265625, -0.00701141357421875, -0.0207977294921875, 0.04779052734375, -0.007129669189453125, 0.08673095703125, -0.007205963134765625, -0.007122039794921875, 0.00669097900390625, 0.01137542724609375, -0.01995849609375, -0.045562744140625, 0.004680633544921875, -0.0241851806640625, 0.002994537353515625, -0.0245513916015625, 0.0188140869140625, 0.0396728515625, -0.031890869140625, -0.0767822265625, 0.0867919921875, -0.037750244140625, -0.04022216796875, -0.0367431640625, 0.0235443115234375, 0.024658203125, -0.07366943359375, -0.02459716796875, -0.03265380859375, -0.0241851806640625, 0.0258026123046875, 0.04144287109375, -0.0014247894287109375, 0.0450439453125, 0.032012939453125, -0.051116943359375, 0.0242767333984375, -0.0091094970703125, 0.03582763671875, 0.00952911376953125, -0.00995635986328125, 0.0408935546875, 0.0531005859375, -0.024261474609375, -0.018890380859375, -0.019927978515625, 0.0014295578002929688, -0.02789306640625, -0.004444122314453125, -0.0133056640625, -0.01465606689453125, 0.046875, 0.047119140625, 0.01549530029296875, -0.002689361572265625, -0.00991058349609375, -0.01468658447265625, -0.01404571533203125, 0.0039005279541015625, 0.0154571533203125, -0.057952880859375, 0.007472991943359375, 0.025726318359375, -0.035003662109375, -0.015167236328125, -0.0045623779296875, -0.065185546875, 0.0072174072265625, -0.021881103515625, -0.00040221214294433594, -0.0171966552734375, 0.0046844482421875, 0.0116119384765625, -0.036712646484375, -0.05267333984375, -0.01055908203125, 0.005527496337890625, -0.046966552734375, -0.051544189453125, -0.0200347900390625, -0.0109710693359375, -0.01012420654296875, 0.0248870849609375, 0.0016698837280273438, 0.034088134765625, -0.0115509033203125, 0.00386810302734375, -0.01125335693359375, 0.04058837890625, 0.0158233642578125, 0.052276611328125, -0.0136871337890625, 0.0478515625, 0.0233612060546875, 0.035064697265625, -0.01535797119140625, 0.07781982421875, -0.0282135009765625, 0.059844970703125, -0.021453857421875, -0.0148468017578125, 0.0142822265625, -0.0085906982421875, -0.0175628662109375, 0.014007568359375, -0.0303192138671875, -0.0285186767578125, 0.0214385986328125, 0.008697509765625, -0.001007080078125, 0.0193939208984375 ]
41ab780e36e3d2d64d180ef35e9082b9be994a15
Wordpress Stackexchange Q: WordPress function that makes HTML safe to be sent via AJAX request What is correct way to send HTML back to an AJAX request in WordPress? I currently have this: add_action( 'wp_ajax_nopriv_get-location-info', 'sc_locations_get_location_info' ); add_action( 'wp_ajax_get-location-info', 'sc_locations_get_location_info' ); function sc_locations_get_location_info() { $nonce = $_POST['nonce']; if ( ! wp_verify_nonce( $nonce, 'get-location-info-nonce' ) ) { $response = json_encode( array( 'success' => false, 'error' => "Failed nonce check" ) ); } else { $response = json_encode( array( 'success' => true, 'HTML' => '...LOTS OF WONDERFUL HTML...' ) ); } header( "Content-Type: application/json" ); echo $response; exit; } Now I'm currently just using json_encode() but should I be doing anything else to the HTML? The HTML generated can be trusted so no stripping would need to take place. A: Depending on what kind of HTML you're expecting, there are different tools you can use: * *esc_html() escapes entire HTML blocks so you don't end up with breaking characters in your JSON object literals. *esc_html_e() escapes (as above) and translates the string if you're concerned about localization in that context. *wp_kses() will parse the HTML string and strip out any "evil" (explicitly disallowed) tags.
Q: WordPress function that makes HTML safe to be sent via AJAX request What is correct way to send HTML back to an AJAX request in WordPress? I currently have this: add_action( 'wp_ajax_nopriv_get-location-info', 'sc_locations_get_location_info' ); add_action( 'wp_ajax_get-location-info', 'sc_locations_get_location_info' ); function sc_locations_get_location_info() { $nonce = $_POST['nonce']; if ( ! wp_verify_nonce( $nonce, 'get-location-info-nonce' ) ) { $response = json_encode( array( 'success' => false, 'error' => "Failed nonce check" ) ); } else { $response = json_encode( array( 'success' => true, 'HTML' => '...LOTS OF WONDERFUL HTML...' ) ); } header( "Content-Type: application/json" ); echo $response; exit; } Now I'm currently just using json_encode() but should I be doing anything else to the HTML? The HTML generated can be trusted so no stripping would need to take place. A: Depending on what kind of HTML you're expecting, there are different tools you can use: * *esc_html() escapes entire HTML blocks so you don't end up with breaking characters in your JSON object literals. *esc_html_e() escapes (as above) and translates the string if you're concerned about localization in that context. *wp_kses() will parse the HTML string and strip out any "evil" (explicitly disallowed) tags. A: If the HTML is fully trusted, I'd say no additional processing needs to be done, though theoretically it might be better to send the data in parts and use JS DOM to create your HTML...depends on the weight of each way of doing it...and I suppose whether you want a single, probably heavier, load up front w/ lighter bandwidth usage from the AJAX or if you want lighter load up front with multiple heavier loads from the AJAX. A: You can use WordPress native - WP_Ajax_Response
wordpress
{ "language": "en", "length": 277, "provenance": "stackexchange_00019.jsonl.gz:417058", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42184" }
[ 0.07781982421875, -0.00856781005859375, -0.041351318359375, -0.038970947265625, 0.0491943359375, -0.05609130859375, 0.06341552734375, 0.0106048583984375, -0.0220184326171875, 0.056365966796875, 0.0143280029296875, -0.0020160675048828125, 0.02813720703125, -0.02618408203125, -0.006969451904296875, 0.005008697509765625, 0.04058837890625, -0.0259552001953125, 0.00812530517578125, -0.008148193359375, -0.0005407333374023438, 0.005191802978515625, 0.0190887451171875, 0.0369873046875, 0.010772705078125, -0.035919189453125, 0.072021484375, 0.004863739013671875, 0.0018415451049804688, -0.0161895751953125, 0.00685882568359375, -0.01209259033203125, 0.0675048828125, 0.04803466796875, -0.1297607421875, -0.01983642578125, 0.0025768280029296875, 0.01335906982421875, -0.050537109375, 0.063232421875, 0.0176239013671875, -0.0131683349609375, 0.036651611328125, 0.004322052001953125, 0.01416778564453125, -0.030426025390625, 0.0426025390625, -0.04119873046875, -0.01557159423828125, 0.0246124267578125, 0.03759765625, -0.03314208984375, 0.037567138671875, -0.0246124267578125, -0.0016489028930664062, 0.024261474609375, -0.037445068359375, 0.0113677978515625, 0.025726318359375, 0.041900634765625, 0.0009899139404296875, 0.00009238719940185547, -0.009765625, -0.049285888671875, 0.01557159423828125, -0.0223388671875, 0.0078277587890625, 0.043060302734375, -0.07598876953125, 0.009796142578125, 0.0433349609375, -0.027984619140625, -0.0017442703247070312, -0.04107666015625, 0.0007205009460449219, 0.0229339599609375, -0.0234832763671875, -0.032440185546875, 0.00861358642578125, 0.004047393798828125, 0.017059326171875, 0.0001512765884399414, -0.00383758544921875, -0.04193115234375, 0.02239990234375, -0.023773193359375, -0.008209228515625, -0.006488800048828125, -0.0302734375, -0.040191650390625, -0.025482177734375, -0.048187255859375, -0.050445556640625, -0.005344390869140625, 0.005855560302734375, -0.036468505859375, -0.0238037109375, -0.04046630859375, -0.031402587890625, -0.00007849931716918945, 0.0260467529296875, -0.0266265869140625, 0.04949951171875, -0.0178680419921875, 0.0257110595703125, 0.07733154296875, 0.01136016845703125, -0.021240234375, 0.043487548828125, -0.01267242431640625, 0.0149688720703125, 0.052703857421875, -0.0164031982421875, -0.019683837890625, 0.0079345703125, 0.0145416259765625, -0.026031494140625, 0.03802490234375, 0.01102447509765625, 0.0146942138671875, -0.01528167724609375, -0.022613525390625, -0.00391387939453125, 0.0364990234375, 0.02349853515625, 0.0194549560546875, -0.0142059326171875, 0.0036144256591796875, 0.017730712890625, 0.002956390380859375, -0.01366424560546875, 0.036712646484375, 0.03076171875, -0.006282806396484375, -0.0199127197265625, -0.008270263671875, 0.01702880859375, -0.0115203857421875, -0.0131072998046875, 0.033294677734375, -0.0059967041015625, -0.026702880859375, 0.0182952880859375, -0.0239715576171875, 0.006870269775390625, -0.00250244140625, 0.0302276611328125, 0.0225372314453125, -0.016510009765625, -0.033721923828125, 0.040618896484375, -0.04156494140625, 0.04473876953125, -0.004413604736328125, 0.0008306503295898438, -0.031036376953125, 0.045654296875, -0.0606689453125, -0.0191802978515625, -0.06060791015625, -0.0015010833740234375, -0.00787353515625, 0.0246734619140625, -0.0171661376953125, -0.02545166015625, -0.0029430389404296875, -0.033477783203125, -0.013031005859375, 0.0123291015625, 0.0950927734375, -0.028167724609375, -0.0283660888671875, -0.07073974609375, -0.022674560546875, -0.023529052734375, -0.006160736083984375, -0.040924072265625, 0.031707763671875, 0.0390625, 0.01276397705078125, 0.019989013671875, -0.0294342041015625, 0.06732177734375, 0.00916290283203125, -0.06622314453125, 0.06805419921875, 0.01378631591796875, 0.0999755859375, -0.00690460205078125, 0.00974273681640625, 0.0187530517578125, 0.025421142578125, 0.0013599395751953125, -0.0018949508666992188, 0.0206298828125, -0.049072265625, -0.006591796875, -0.0291900634765625, -0.002658843994140625, 0.0031890869140625, 0.0679931640625, -0.028350830078125, 0.053375244140625, -0.02850341796875, 0.0401611328125, -0.02093505859375, 0.0105133056640625, 0.0196685791015625, 0.00421905517578125, 0.03729248046875, 0.0186767578125, 0.040557861328125, -0.0343017578125, -0.0289306640625, -0.0174713134765625, -0.0012922286987304688, -0.042572021484375, 0.053497314453125, -0.0178985595703125, 0.07269287109375, 0.002376556396484375, -0.0806884765625, 0.00173187255859375, -0.0168304443359375, 0.00719451904296875, -0.0098114013671875, -0.016937255859375, -0.011993408203125, 0.013458251953125, 0.003383636474609375, 0.0206146240234375, 0.0306549072265625, 0.0537109375, 0.031951904296875, -0.0226287841796875, -0.010833740234375, -0.0013380050659179688, -0.06719970703125, -0.005645751953125, 0.05999755859375, 0.036163330078125, 0.051177978515625, -0.01708984375, -0.041351318359375, 0.054656982421875, -0.08123779296875, -0.0090789794921875, -0.0146331787109375, -0.01032257080078125, -0.026336669921875, -0.03363037109375, -0.038360595703125, 0.034942626953125, -0.1051025390625, -0.0026035308837890625, 0.034027099609375, -0.04742431640625, -0.0033092498779296875, -0.016021728515625, 0.0112457275390625, 0.0017242431640625, -0.009735107421875, 0.0141143798828125, -0.02716064453125, 0.0587158203125, -0.05828857421875, 0.0298919677734375, 0.0130157470703125, 0.01007843017578125, -0.038299560546875, 0.0152587890625, -0.007671356201171875, -0.01482391357421875, 0.0753173828125, 0.0343017578125, 0.0202484130859375, -0.046478271484375, -0.027313232421875, 0.009979248046875, 0.05975341796875, -0.0133819580078125, 0.03778076171875, -0.0024356842041015625, -0.017120361328125, 0.004123687744140625, 0.032623291015625, -0.0013570785522460938, -0.02813720703125, 0.05975341796875, 0.044586181640625, 0.05352783203125, 0.005794525146484375, -0.0176239013671875, 0.048797607421875, -0.01348114013671875, -0.02166748046875, 0.06854248046875, -0.019500732421875, 0.0031185150146484375, -0.0018777847290039062, 0.055511474609375, 0.032257080078125, 0.023834228515625, -0.04638671875, -0.01279449462890625, -0.0202178955078125, 0.0015172958374023438, 0.0079193115234375, -0.03948974609375, -0.061431884765625, -0.040313720703125, -0.041168212890625, 0.0307159423828125, 0.01727294921875, -0.0117340087890625, -0.020355224609375, -0.0306243896484375, 0.019134521484375, -0.0806884765625, -0.062286376953125, 0.045806884765625, -0.0074310302734375, -0.017181396484375, 0.0160980224609375, -0.005336761474609375, -0.0243988037109375, 0.025787353515625, -0.0196075439453125, 0.0146636962890625, 0.0124359130859375, -0.041290283203125, -0.01473236083984375, -0.057037353515625, 0.037994384765625, -0.0017566680908203125, 0.0129547119140625, 0.0055084228515625, -0.01922607421875, -0.0029735565185546875, -0.019317626953125, 0.00957489013671875, 0.05780029296875, -0.01494598388671875, -0.031005859375, -0.031036376953125, 0.0026226043701171875, 0.0020084381103515625, -0.00681304931640625, -0.01384735107421875, -0.01157379150390625, 0.0284423828125, -0.01690673828125, -0.0084686279296875, 0.02093505859375, 0.0264892578125, 0.0068817138671875, 0.0016536712646484375, 0.0134124755859375, 0.01506805419921875, -0.039215087890625, -0.026824951171875, 0.0247344970703125, -0.0311279296875, -0.0202178955078125, 0.0280609130859375, -0.0224456787109375, 0.016815185546875, 0.00887298583984375, 0.055877685546875, 0.00026726722717285156, 0.045166015625, 0.020782470703125, -0.0216522216796875, -0.035003662109375, 0.005794525146484375, -0.06134033203125, 0.01033782958984375, -0.0290069580078125, 0.0187530517578125, -0.00925445556640625, -0.0119781494140625, -0.03375244140625, -0.005344390869140625, -0.0478515625, -0.0188751220703125, 0.06280517578125, -0.0017366409301757812, 0.0016126632690429688, -0.0262908935546875, -0.037689208984375, -0.0070953369140625, 0.06939697265625, -0.0037059783935546875, -0.0140380859375, -0.018646240234375, -0.00212860107421875, -0.0509033203125, -0.03497314453125, -0.0357666015625, 0.014495849609375, -0.0306243896484375, 0.0151214599609375, -0.0232086181640625, -0.0111846923828125, 0.0167236328125, -0.0572509765625, 0.01202392578125, -0.044647216796875, 0.0270843505859375, -0.0249481201171875, -0.0018644332885742188, -0.0306549072265625, 0.011810302734375, -0.0675048828125, -0.00521087646484375, -0.0010690689086914062, 0.0014295578002929688, -0.0015401840209960938, -0.0249176025390625, -0.006534576416015625, 0.025115966796875, -0.018798828125, -0.03155517578125, 0.002742767333984375, -0.0204620361328125, -0.0007963180541992188, 0.0112457275390625, 0.031646728515625, -0.0229034423828125, 0.01983642578125, 0.015472412109375, -0.0221710205078125, -0.01299285888671875, 0.0123443603515625, -0.006378173828125, -0.001605987548828125, 0.00305938720703125, -0.08453369140625, 0.037506103515625, -0.0258026123046875, -0.07501220703125, -0.038909912109375, 0.0028362274169921875, -0.018035888671875, -0.00777435302734375, -0.01345062255859375, -0.01273345947265625, -0.04815673828125, 0.06060791015625, 0.0325927734375, 0.007476806640625, -0.0283203125, 0.031463623046875, -0.002132415771484375, -0.046051025390625, 0.00896453857421875, -0.01177215576171875, 0.027008056640625, -0.019287109375, 0.05181884765625, 0.0447998046875, -0.0004773139953613281, 0.02099609375, -0.01509857177734375, 0.035552978515625, -0.00341033935546875, 0.03265380859375, 0.01309967041015625, 0.0178070068359375, -0.004283905029296875, 0.03314208984375, -0.053558349609375, 0.00379180908203125, 0.02923583984375, -0.00820159912109375, 0.0281982421875, -0.0247039794921875, -0.006587982177734375, -0.00782012939453125, 0.03399658203125, -0.001842498779296875, -0.0035915374755859375, 0.0171051025390625, 0.027679443359375, 0.0528564453125, 0.0046844482421875, 0.0165863037109375, 0.0113067626953125, 0.00107574462890625, -0.0126190185546875, -0.0206756591796875, 0.0039043426513671875, 0.045745849609375, -0.03399658203125, 0.00403594970703125, -0.0027523040771484375, 0.0100555419921875, 0.0005540847778320312, -0.03460693359375, -0.0285186767578125, -0.062408447265625, 0.006374359130859375, 0.01291656494140625, 0.0227813720703125, 0.032867431640625, 0.007747650146484375, -0.0083465576171875, 0.007259368896484375, -0.00923919677734375, 0.0213165283203125, -0.0170135498046875, -0.0226593017578125, -0.009124755859375, 0.00890350341796875, -0.0019741058349609375, -0.005283355712890625, 0.036956787109375, 0.0293731689453125, 0.0139617919921875, -0.0355224609375, 0.0274658203125, 0.029815673828125, 0.0285491943359375, 0.0233612060546875, -0.0135040283203125, 0.0035381317138671875, -0.003597259521484375, -0.0125885009765625, -0.02044677734375, -0.049224853515625, 0.0270843505859375, 0.0251617431640625, -0.048675537109375, 0.0166473388671875, 0.0263214111328125, 0.0225982666015625, -0.00867462158203125, 0.050506591796875, -0.005329132080078125, -0.03582763671875, -0.03216552734375, 0.0096588134765625, 0.05487060546875, 0.0098724365234375, -0.001171112060546875, 0.0240936279296875, 0.01499176025390625, 0.030242919921875, 0.0100860595703125, -0.00443267822265625, -0.0248870849609375, -0.027862548828125, -0.06561279296875, -0.0183563232421875, -0.002079010009765625, -0.025543212890625, -0.0203857421875, -0.002017974853515625, -0.03070068359375, 0.028961181640625, -0.029144287109375, 0.0180206298828125, -0.039337158203125, 0.01580810546875, -0.01332855224609375, 0.0153961181640625, 0.0517578125, 0.0218353271484375, -0.019622802734375, -0.004154205322265625, -0.045989990234375, -0.0123748779296875, -0.001068115234375, 0.00478363037109375, -0.0147705078125, 0.0034198760986328125, 0.006103515625, 0.039459228515625, -0.022918701171875, -0.0189971923828125, 0.01349639892578125, -0.0007915496826171875, -0.015869140625, 0.0391845703125, -0.01261138916015625, 0.040313720703125, -0.0222015380859375, 0.02276611328125, -0.0218048095703125, 0.0023021697998046875, -0.01242828369140625, 0.0025157928466796875, 0.00447845458984375, -0.0382080078125, -0.006809234619140625, -0.0136260986328125, -0.0012378692626953125, 0.0321044921875, 0.045867919921875, 0.007541656494140625, 0.0201263427734375, -0.0187530517578125, -0.00391387939453125, -0.01154327392578125, 0.028106689453125, -0.01076507568359375, 0.00516510009765625, 0.037506103515625, -0.02166748046875, -0.0097808837890625, -0.00061798095703125, 0.0186920166015625, 0.0091705322265625, -0.01245880126953125, -0.0028400421142578125, -0.006076812744140625, 0.0208740234375, -0.0015401840209960938, 0.06475830078125, 0.00457763671875, 0.05621337890625, 0.05133056640625, 0.035888671875, 0.035247802734375, 0.00665283203125, -0.00778961181640625, -0.00787353515625, 0.00487518310546875, -0.016021728515625, -0.0013227462768554688, -0.006870269775390625, -0.0174560546875, 0.031707763671875, 0.037109375, 0.07110595703125, -0.05169677734375, 0.0216827392578125, 0.0247344970703125, -0.038818359375, 0.0362548828125, -0.055389404296875, 0.0052947998046875, -0.039947509765625, 0.034881591796875, 0.037322998046875, -0.0380859375, -0.0147857666015625, -0.0035858154296875, -0.013641357421875, -0.01491546630859375, 0.035858154296875, -0.00848388671875, -0.06842041015625, 0.0101165771484375, 0.0300750732421875, -0.0128936767578125, -0.02984619140625, 0.01617431640625, 0.0157318115234375, -0.01433563232421875, -0.060455322265625, 0.0116119384765625, 0.00835418701171875, -0.0108489990234375, -0.03094482421875, -0.02294921875, 0.065673828125, 0.059173583984375, -0.00679779052734375, -0.021636962890625, 0.045013427734375, 0.0176544189453125, 0.0200653076171875, -0.009918212890625, -0.0117034912109375, 0.03448486328125, -0.04052734375, 0.0060577392578125, -0.020782470703125, 0.0374755859375, -0.0214691162109375, 0.00244140625, 0.0207366943359375, 0.01299285888671875, -0.03302001953125, 0.03240966796875, 0.0262298583984375, -0.03399658203125, -0.01076507568359375, 0.00926971435546875, -0.04827880859375, -0.0009918212890625, -0.01430511474609375, -0.0177154541015625, 0.00995635986328125, -0.01372528076171875, -0.059600830078125, 0.045501708984375, 0.07568359375, 0.00970458984375, -0.0015239715576171875, 0.0193939208984375, -0.046417236328125, -0.0132598876953125, -0.0210723876953125, 0.03350830078125, 0.03033447265625, 0.0097503662109375, -0.01023101806640625, -0.01398468017578125, 0.0024051666259765625, 0.0189666748046875, -0.038909912109375, -0.009735107421875, 0.024139404296875, 0.013092041015625, -0.0213623046875, -0.0217437744140625, -0.036346435546875, 0.0013055801391601562, 0.0220794677734375, 0.0238494873046875, 0.053619384765625, -0.05169677734375, 0.020477294921875, -0.02691650390625, 0.0281829833984375, 0.043731689453125, 0.004344940185546875, -0.0157928466796875, 0.002086639404296875, 0.034271240234375, -0.055389404296875, 0.0173492431640625, 0.004856109619140625, 0.02655029296875, -0.0201263427734375, 0.03961181640625, 0.0369873046875, -0.042449951171875, 0.00371551513671875, -0.0455322265625, 0.03546142578125, 0.0160064697265625, 0.01122283935546875, 0.01103973388671875, 0.004489898681640625, 0.05670166015625, 0.0235137939453125, -0.002315521240234375, 0.01190185546875, 0.04229736328125, 0.036529541015625, 0.0018339157104492188, 0.034423828125, -0.06842041015625, -0.058624267578125, 0.0731201171875, 0.08245849609375, -0.01904296875, -0.01325225830078125, -0.00321197509765625, 0.023406982421875, 0.0192108154296875, -0.017608642578125, 0.052734375, 0.0114898681640625, 0.0243377685546875, -0.0014848709106445312, -0.03436279296875, -0.0006084442138671875, 0.04388427734375, 0.0170745849609375, 0.02325439453125, -0.0012369155883789062, -0.07366943359375, -0.056915283203125, -0.0121307373046875, 0.0169525146484375, 0.032958984375, 0.0223388671875, 0.041107177734375, 0.0186614990234375, -0.0177154541015625, -0.01215362548828125, 0.0071868896484375, 0.0180511474609375, -0.006359100341796875, 0.0145263671875, 0.032958984375, 0.013946533203125, 0.0024166107177734375, 0.0168914794921875, 0.031982421875, 0.05194091796875, 0.048095703125, 0.0035991668701171875, -0.005725860595703125, 0.0460205078125, -0.0096282958984375, 0.0026950836181640625, -0.038330078125, 0.0127105712890625, 0.01093292236328125, -0.0007462501525878906, 0.005435943603515625, -0.0114898681640625, 0.043670654296875, -0.0509033203125, 0.0596923828125, -0.023406982421875, -0.00797271728515625, 0.03314208984375, -0.0328369140625, 0.066162109375, -0.027252197265625, -0.033843994140625, -0.01117706298828125, 0.024627685546875, -0.02105712890625, 0.00980377197265625, 0.0333251953125, -0.018646240234375, 0.04315185546875, 0.0191650390625, -0.046051025390625, 0.036468505859375, 0.032379150390625, -0.0179290771484375, -0.0018329620361328125, 0.0213165283203125, -0.021453857421875, 0.00264739990234375, 0.0012187957763671875, 0.00992584228515625, 0.0335693359375, -0.00499725341796875, 0.029815673828125, -0.0293121337890625, 0.0126190185546875, -0.007080078125, 0.057098388671875, -0.021484375, 0.004970550537109375, 0.046600341796875, 0.03369140625, 0.0174560546875, -0.03948974609375, 0.0194244384765625, 0.031829833984375, 0.01349639892578125, -0.0268707275390625, 0.004146575927734375, -0.0253753662109375, 0.0102386474609375, 0.00782012939453125, 0.039825439453125, -0.037353515625, -0.07647705078125, -0.055633544921875, 0.005474090576171875, -0.005725860595703125, 0.04632568359375, 0.023406982421875, 0.07177734375, 0.0219879150390625, -0.02093505859375, 0.0279541015625, -0.095458984375, 0.045928955078125, 0.032073974609375, 0.005279541015625, 0.0248565673828125, -0.01248931884765625, -0.02423095703125, 0.0219573974609375, -0.0075836181640625, -0.018890380859375, -0.00205230712890625, -0.01038360595703125, -0.0750732421875, -0.014495849609375, -0.0098419189453125, 0.0039005279541015625, 0.0022830963134765625, -0.0255279541015625, -0.02105712890625, -0.024627685546875, 0.0031261444091796875, -0.002796173095703125, -0.01055908203125, -0.0142669677734375, -0.00013840198516845703, 0.0014886856079101562, -0.04266357421875, -0.005237579345703125, -0.03057861328125, 0.0245819091796875, -0.0182952880859375, 0.0095672607421875, -0.059661865234375, -0.0037021636962890625, 0.033447265625, -0.004734039306640625, 0.039398193359375, -0.052215576171875, -0.01448822021484375, -0.01293182373046875, -0.058563232421875, -0.031402587890625, 0.089111328125, -0.029083251953125, -0.0160980224609375, 0.0018167495727539062, 0.0206146240234375, -0.035614013671875, -0.012176513671875, -0.023162841796875, 0.040435791015625, -0.004425048828125, -0.0281219482421875, -0.019287109375, 0.0296783447265625, -0.01076507568359375, -0.041412353515625, -0.0032253265380859375, -0.036651611328125, 0.01275634765625, 0.029632568359375, -0.04815673828125, -0.0166168212890625, -0.04351806640625, -0.0738525390625, 0.059173583984375, 0.01274871826171875, -0.02984619140625, 0.0430908203125, -0.004680633544921875, 0.0194091796875, -0.0548095703125, -0.0016269683837890625, 0.00760650634765625, -0.039306640625, -0.03216552734375, 0.0235443115234375, -0.00428009033203125, 0.012664794921875, -0.0079498291015625, -0.06451416015625, 0.018096923828125, 0.0159454345703125, 0.0019245147705078125, -0.0487060546875, 0.0036678314208984375, 0.0227813720703125, 0.00598907470703125, -0.0207977294921875, 0.0161590576171875, 0.04498291015625, 0.0352783203125, -0.01044464111328125, -0.0213775634765625, 0.0098724365234375, 0.0264739990234375, 0.07965087890625, 0.033538818359375, 0.00740814208984375, -0.05029296875, -0.022430419921875, -0.059814453125, 0.0019817352294921875, -0.024444580078125, 0.0109100341796875, -0.0732421875, -0.01151275634765625, 0.01140594482421875, 0.0152130126953125, 0.030975341796875, -0.0287322998046875, -0.0045623779296875, -0.019134521484375, 0.01207733154296875, -0.0012264251708984375, 0.0015277862548828125, -0.0477294921875, 0.08251953125, -0.03973388671875, 0.0014181137084960938, 0.0274658203125, 0.0174407958984375, 0.0416259765625, 0.04583740234375, -0.00836181640625, 0.0478515625, -0.020599365234375, -0.01107025146484375, 0.01323699951171875, 0.0191650390625, -0.0026264190673828125, 0.01154327392578125, 0.005062103271484375, 0.03289794921875, -0.0020904541015625, 0.06536865234375, -0.0073394775390625, 0.005123138427734375, 0.01122283935546875, -0.04156494140625, -0.06365966796875, 0.051971435546875, -0.009246826171875, -0.021636962890625, -0.00852203369140625, 0.03765869140625, 0.08642578125, -0.042694091796875, 0.00463104248046875, 0.00994110107421875, 0.02459716796875, 0.0108184814453125, 0.0031414031982421875, -0.03460693359375, 0.00374603271484375, 0.0040283203125 ]
f1c255cb1619119de141941e9bbc78ac78919877
Wordpress Stackexchange Q: Plugin for sortable posts in grid I'm looking for a plugin that will emulate this current php page: * *Each flower to be a post with more info. *The dates to be sortable *Current blooming flowers to be featured in the widget sidebar (ok, this last one is probably a pipe dream). Anyone have any clever ideas? Maybe a cart system of some sort?
Q: Plugin for sortable posts in grid I'm looking for a plugin that will emulate this current php page: * *Each flower to be a post with more info. *The dates to be sortable *Current blooming flowers to be featured in the widget sidebar (ok, this last one is probably a pipe dream). Anyone have any clever ideas? Maybe a cart system of some sort?
wordpress
{ "language": "en", "length": 65, "provenance": "stackexchange_00019.jsonl.gz:417065", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42206" }
[ 0.054107666015625, -0.0189056396484375, -0.013763427734375, -0.005008697509765625, 0.0174713134765625, -0.054595947265625, 0.08258056640625, 0.01084136962890625, 0.039886474609375, 0.0267791748046875, 0.00025343894958496094, 0.01276397705078125, 0.00505828857421875, -0.033660888671875, -0.031341552734375, 0.01145172119140625, 0.05133056640625, -0.01108551025390625, 0.0499267578125, -0.02288818359375, 0.007251739501953125, 0.03875732421875, 0.052947998046875, 0.06646728515625, 0.0306549072265625, 0.020263671875, 0.027496337890625, -0.018585205078125, 0.0421142578125, 0.0011701583862304688, 0.0189056396484375, -0.03131103515625, 0.023651123046875, 0.0034942626953125, -0.0335693359375, -0.062408447265625, -0.0087890625, -0.00713348388671875, -0.01230621337890625, 0.004016876220703125, 0.038787841796875, -0.033538818359375, -0.04150390625, 0.0015192031860351562, -0.03369140625, -0.027069091796875, 0.035736083984375, -0.00914764404296875, 0.053924560546875, -0.01371002197265625, -0.0235443115234375, 0.0085601806640625, -0.0082550048828125, -0.042144775390625, -0.01152801513671875, 0.00460052490234375, -0.006160736083984375, 0.00098419189453125, 0.04266357421875, -0.039031982421875, -0.03448486328125, -0.034881591796875, 0.0467529296875, 0.0191650390625, 0.006786346435546875, -0.026275634765625, -0.031097412109375, 0.040008544921875, -0.0455322265625, 0.00007718801498413086, 0.052886962890625, -0.025543212890625, 0.009765625, -0.05255126953125, -0.020294189453125, 0.0213470458984375, 0.016632080078125, 0.004077911376953125, -0.014312744140625, -0.02227783203125, -0.04827880859375, 0.04473876953125, -0.05078125, -0.053558349609375, -0.0035343170166015625, -0.03375244140625, -0.036102294921875, 0.01103973388671875, -0.05889892578125, 0.003185272216796875, -0.041656494140625, -0.0099334716796875, -0.0506591796875, 0.0122833251953125, -0.01146697998046875, 0.0112152099609375, 0.01690673828125, 0.0268402099609375, -0.011993408203125, -0.0025424957275390625, 0.0079345703125, -0.039031982421875, 0.0149078369140625, -0.0134124755859375, -0.0028743743896484375, 0.031036376953125, -0.00714111328125, -0.0011386871337890625, 0.028045654296875, 0.02593994140625, 0.0092926025390625, 0.0261688232421875, 0.0197296142578125, 0.00809478759765625, -0.017578125, -0.01056671142578125, 0.00319671630859375, 0.00763702392578125, -0.0030460357666015625, -0.00098419189453125, 0.0261383056640625, 0.055572509765625, -0.007579803466796875, -0.0196533203125, 0.002437591552734375, 0.01045989990234375, -0.008880615234375, -0.048492431640625, 0.0037670135498046875, -0.0411376953125, -0.0276947021484375, 0.039154052734375, 0.07476806640625, 0.0237579345703125, 0.00959014892578125, 0.00353240966796875, 0.0209197998046875, -0.046539306640625, -0.0195159912109375, -0.00820159912109375, 0.042633056640625, -0.021148681640625, -0.0269775390625, -0.00036907196044921875, 0.04046630859375, -0.004894256591796875, 0.0245361328125, 0.0207672119140625, 0.02783203125, 0.021270751953125, -0.0170745849609375, 0.0272369384765625, 0.01445770263671875, -0.0228271484375, 0.041351318359375, 0.0152435302734375, -0.0305328369140625, 0.0189971923828125, 0.0051422119140625, 0.0540771484375, 0.021453857421875, -0.0003352165222167969, -0.0265350341796875, -0.052459716796875, -0.06512451171875, -0.0164947509765625, 0.00296783447265625, 0.003551483154296875, 0.0312347412109375, -0.0040740966796875, 0.014739990234375, 0.0163116455078125, 0.052276611328125, 0.01739501953125, 0.00292205810546875, 0.01424407958984375, -0.03228759765625, -0.031341552734375, 0.036712646484375, 0.004764556884765625, -0.0281219482421875, -0.01561737060546875, 0.00023996829986572266, 0.02508544921875, -0.0162506103515625, 0.0128326416015625, -0.0002541542053222656, -0.0035400390625, 0.005413055419921875, 0.0258026123046875, 0.00013363361358642578, 0.0297088623046875, -0.03741455078125, 0.05841064453125, -0.0088348388671875, -0.029266357421875, -0.0082244873046875, 0.020477294921875, -0.01165771484375, -0.0718994140625, -0.0806884765625, 0.0367431640625, -0.036590576171875, 0.07733154296875, 0.00021088123321533203, 0.0189971923828125, -0.0096435546875, 0.0293426513671875, 0.03759765625, 0.01904296875, -0.00447845458984375, 0.0134124755859375, -0.022857666015625, 0.00304412841796875, -0.0458984375, -0.002033233642578125, -0.007843017578125, -0.0230712890625, -0.0064849853515625, -0.0138397216796875, -0.00847625732421875, 0.0201263427734375, -0.020660400390625, 0.036773681640625, 0.004390716552734375, 0.018096923828125, -0.02734375, -0.009246826171875, -0.0243988037109375, 0.01776123046875, -0.0186767578125, 0.0203399658203125, -0.01184844970703125, 0.03521728515625, -0.03436279296875, -0.03607177734375, -0.036529541015625, -0.0125579833984375, 0.0299224853515625, 0.037994384765625, 0.015777587890625, 0.0517578125, 0.0450439453125, 0.07708740234375, 0.046630859375, 0.004825592041015625, 0.04095458984375, 0.01250457763671875, -0.0017862319946289062, 0.06646728515625, 0.006565093994140625, 0.044586181640625, -0.006229400634765625, 0.0330810546875, 0.0005888938903808594, 0.0418701171875, 0.0155792236328125, 0.04876708984375, -0.002288818359375, 0.0028667449951171875, -0.02099609375, 0.032867431640625, 0.015289306640625, -0.0016736984252929688, 0.035980224609375, -0.002239227294921875, 0.0634765625, 0.0567626953125, -0.0204010009765625, -0.01477813720703125, 0.00551605224609375, 0.05206298828125, 0.013916015625, 0.0184478759765625, -0.02642822265625, 0.02691650390625, -0.033477783203125, -0.019012451171875, 0.0382080078125, 0.00666046142578125, -0.01959228515625, 0.0135498046875, -0.036590576171875, -0.004726409912109375, -0.005474090576171875, -0.06500244140625, 0.0002548694610595703, 0.019287109375, 0.00841522216796875, -0.01654052734375, 0.0022678375244140625, 0.0196990966796875, -0.0254364013671875, 0.04638671875, 0.0189208984375, -0.036834716796875, -0.018707275390625, -0.019622802734375, 0.0288848876953125, -0.03533935546875, 0.01378631591796875, 0.057586669921875, 0.0002167224884033203, -0.001224517822265625, 0.00682830810546875, 0.0268096923828125, 0.0177764892578125, -0.00940704345703125, -0.01483917236328125, 0.005344390869140625, -0.0577392578125, -0.0091552734375, 0.019989013671875, 0.07318115234375, -0.0175933837890625, -0.0655517578125, 0.01001739501953125, 0.034515380859375, -0.08428955078125, -0.1036376953125, -0.01507568359375, -0.01201629638671875, -0.0002353191375732422, -0.005767822265625, 0.0070953369140625, 0.004718780517578125, -0.002178192138671875, 0.0097808837890625, -0.0192108154296875, -0.037506103515625, -0.08697509765625, -0.06707763671875, -0.07037353515625, 0.059326171875, -0.0070343017578125, 0.03106689453125, 0.00884246826171875, 0.070068359375, 0.0093841552734375, -0.07244873046875, -0.017608642578125, 0.01125335693359375, -0.0289306640625, 0.00896453857421875, 0.01522064208984375, -0.01140594482421875, 0.0261383056640625, 0.01210784912109375, 0.042205810546875, 0.04248046875, -0.05938720703125, -0.0247039794921875, -0.043212890625, -0.0025997161865234375, -0.0254669189453125, -0.061248779296875, 0.04119873046875, 0.0279083251953125, -0.044830322265625, -0.032318115234375, 0.0146484375, -0.0229339599609375, -0.037841796875, -0.005252838134765625, -0.01314544677734375, 0.006404876708984375, 0.006496429443359375, 0.0014791488647460938, 0.021148681640625, 0.005218505859375, -0.01557159423828125, -0.0178375244140625, 0.05499267578125, 0.01678466796875, 0.03948974609375, -0.0139617919921875, -0.042388916015625, -0.050323486328125, 0.057403564453125, -0.01910400390625, -0.0233306884765625, -0.007762908935546875, 0.04241943359375, 0.01187896728515625, -0.0174102783203125, 0.040771484375, 0.001483917236328125, 0.0047607421875, -0.005077362060546875, -0.0185089111328125, -0.007678985595703125, 0.051849365234375, -0.056488037109375, 0.0008993148803710938, 0.0006475448608398438, -0.005260467529296875, 0.00946044921875, -0.0004379749298095703, -0.09112548828125, -0.01300811767578125, -0.0758056640625, 0.024932861328125, 0.00506591796875, -0.01346588134765625, -0.0189208984375, 0.0523681640625, -0.041717529296875, -0.036407470703125, 0.04034423828125, -0.0323486328125, -0.006992340087890625, 0.00444793701171875, -0.0142822265625, -0.0255126953125, -0.0235748291015625, -0.0130157470703125, -0.121337890625, -0.0016880035400390625, -0.0016450881958007812, 0.051300048828125, -0.0099334716796875, -0.030029296875, -0.0606689453125, 0.022796630859375, -0.006816864013671875, 0.00801849365234375, 0.0097198486328125, -0.00109100341796875, 0.03839111328125, -0.00818634033203125, 0.00946807861328125, -0.0149993896484375, -0.02569580078125, -0.04071044921875, -0.00928497314453125, -0.0169219970703125, -0.0233306884765625, -0.005710601806640625, -0.01947021484375, -0.0006070137023925781, -0.044708251953125, -0.0277557373046875, -0.02386474609375, -0.003269195556640625, -0.0299072265625, 0.0079498291015625, -0.0093994140625, -0.0167999267578125, 0.02569580078125, 0.0310211181640625, -0.029541015625, 0.01425933837890625, 0.0457763671875, 0.01351165771484375, -0.0240020751953125, -0.068603515625, 0.0004069805145263672, 0.0151824951171875, 0.050872802734375, 0.01861572265625, -0.032745361328125, -0.031341552734375, 0.0762939453125, -0.01183319091796875, -0.0189666748046875, 0.01004791259765625, 0.04998779296875, -0.0015344619750976562, -0.0116729736328125, -0.005893707275390625, -0.0259552001953125, 0.031890869140625, 0.01483154296875, -0.00859832763671875, -0.014495849609375, -0.01537322998046875, 0.057830810546875, -0.0189208984375, 0.0150299072265625, -0.045501708984375, -0.04522705078125, 0.0210418701171875, -0.004009246826171875, 0.0130157470703125, -0.0099334716796875, 0.008148193359375, 0.0201873779296875, 0.00585174560546875, -0.00363922119140625, -0.0008978843688964844, 0.030364990234375, -0.00846099853515625, 0.0455322265625, 0.006031036376953125, 0.005947113037109375, -0.02423095703125, -0.005283355712890625, 0.01282501220703125, 0.009429931640625, -0.0309295654296875, -0.0216217041015625, -0.0012826919555664062, -0.0322265625, -0.0097808837890625, -0.007633209228515625, 0.007678985595703125, 0.032318115234375, 0.0137481689453125, 0.0190887451171875, -0.0166473388671875, 0.04144287109375, -0.006439208984375, -0.044036865234375, -0.0008177757263183594, -0.0423583984375, 0.034271240234375, -0.004901885986328125, -0.036712646484375, 0.0209503173828125, -0.00989532470703125, 0.0390625, 0.053253173828125, 0.0279388427734375, 0.021331787109375, -0.041473388671875, 0.0027751922607421875, -0.0034046173095703125, -0.006420135498046875, 0.00843048095703125, 0.01500701904296875, -0.021728515625, -0.0300445556640625, -0.0168609619140625, 0.0024394989013671875, 0.073486328125, 0.007808685302734375, -0.0270233154296875, 0.03558349609375, 0.035919189453125, -0.005771636962890625, -0.0240020751953125, 0.0272216796875, 0.039947509765625, 0.022979736328125, -0.00977325439453125, -0.01666259765625, -0.0312347412109375, -0.00513458251953125, 0.003582000732421875, -0.049713134765625, 0.002017974853515625, 0.011932373046875, -0.03717041015625, -0.00975799560546875, 0.044525146484375, -0.046905517578125, -0.011077880859375, -0.02587890625, -0.0122833251953125, 0.032318115234375, -0.003009796142578125, 0.01055145263671875, -0.042877197265625, 0.009063720703125, -0.059173583984375, 0.003658294677734375, 0.02740478515625, 0.0107574462890625, -0.0657958984375, -0.0232696533203125, -0.0631103515625, -0.045166015625, -0.04803466796875, -0.0178680419921875, -0.079833984375, -0.000354766845703125, 0.0192413330078125, 0.05084228515625, -0.0100860595703125, -0.03155517578125, -0.01380157470703125, -0.0239715576171875, 0.002208709716796875, 0.052459716796875, -0.0269927978515625, 0.039764404296875, 0.0179443359375, 0.0496826171875, -0.00384521484375, 0.005443572998046875, -0.022430419921875, -0.00522613525390625, -0.0070037841796875, -0.0496826171875, -0.0211944580078125, 0.00406646728515625, -0.0296630859375, 0.012237548828125, 0.0187225341796875, 0.00302886962890625, 0.04107666015625, -0.0172576904296875, 0.0134735107421875, -0.0081634521484375, -0.01885986328125, -0.03143310546875, -0.031280517578125, 0.03533935546875, -0.0248565673828125, -0.012115478515625, 0.0263519287109375, 0.050689697265625, -0.0164031982421875, -0.023651123046875, -0.01270294189453125, -0.0088348388671875, -0.033782958984375, 0.030792236328125, 0.0280303955078125, 0.028106689453125, 0.03485107421875, -0.00542449951171875, 0.03228759765625, 0.0024509429931640625, -0.0246429443359375, 0.0377197265625, -0.0191650390625, 0.0703125, -0.008087158203125, -0.037261962890625, 0.046875, -0.050872802734375, -0.005939483642578125, 0.0022830963134765625, 0.01349639892578125, -0.06195068359375, 0.034332275390625, -0.0007381439208984375, 0.0184326171875, 0.035675048828125, -0.022003173828125, 0.0155181884765625, -0.0167694091796875, 0.070068359375, 0.03717041015625, 0.0083160400390625, 0.037841796875, -0.004077911376953125, -0.0079803466796875, -0.03228759765625, 0.021636962890625, 0.015838623046875, -0.06512451171875, 0.055450439453125, 0.0288543701171875, 0.024566650390625, -0.0203399658203125, 0.01555633544921875, -0.0123443603515625, 0.01522064208984375, -0.00774383544921875, 0.05572509765625, -0.0229339599609375, 0.023468017578125, 0.00699615478515625, -0.014190673828125, 0.0236968994140625, 0.0239715576171875, -0.005565643310546875, -0.0042572021484375, -0.0024929046630859375, -0.0139617919921875, -0.01194000244140625, -0.03094482421875, 0.0020294189453125, 0.057403564453125, 0.007488250732421875, 0.0135345458984375, 0.0255126953125, -0.0272674560546875, -0.01953125, 0.033843994140625, 0.1082763671875, -0.03399658203125, -0.03363037109375, 0.02752685546875, 0.02130126953125, -0.0242462158203125, -0.00873565673828125, 0.0133209228515625, -0.06341552734375, -0.025909423828125, -0.0030956268310546875, -0.0005612373352050781, 0.0248870849609375, 0.0079345703125, -0.059539794921875, 0.08673095703125, 0.0001016855239868164, 0.04547119140625, 0.029876708984375, 0.0204620361328125, -0.0328369140625, -0.007740020751953125, -0.03387451171875, 0.04046630859375, -0.0389404296875, 0.0186920166015625, -0.0212554931640625, 0.0220947265625, 0.0150604248046875, -0.019073486328125, 0.043304443359375, 0.006992340087890625, -0.00101470947265625, -0.007045745849609375, 0.042022705078125, 0.0244598388671875, -0.004055023193359375, 0.02703857421875, 0.035400390625, 0.0177764892578125, 0.03961181640625, 0.00896453857421875, 0.0548095703125, -0.023651123046875, 0.0010967254638671875, 0.0511474609375, -0.0009503364562988281, -0.01531219482421875, -0.01934814453125, 0.0208282470703125, -0.004940032958984375, -0.016632080078125, 0.018951416015625, -0.039337158203125, 0.02899169921875, 0.0287322998046875, 0.06793212890625, -0.0338134765625, -0.0184783935546875, -0.0009794235229492188, 0.03985595703125, 0.0143890380859375, 0.033538818359375, 0.0011892318725585938, 0.01885986328125, 0.034027099609375, -0.056884765625, 0.0085601806640625, 0.00812530517578125, -0.058990478515625, 0.023101806640625, -0.051788330078125, 0.004825592041015625, -0.08868408203125, -0.026214599609375, 0.03594970703125, 0.05010986328125, -0.01739501953125, -0.078125, 0.0159454345703125, 0.0085601806640625, 0.00914764404296875, 0.04296875, 0.0028514862060546875, -0.09136962890625, -0.0016775131225585938, -0.0338134765625, -0.0175933837890625, 0.023681640625, 0.035888671875, 0.00879669189453125, -0.007083892822265625, -0.0229949951171875, -0.06109619140625, -0.032257080078125, 0.046783447265625, 0.007724761962890625, 0.010894775390625, -0.0195770263671875, 0.03668212890625, -0.0008172988891601562, 0.006801605224609375, -0.005123138427734375, 0.01453399658203125, -0.0298919677734375, 0.0243377685546875, -0.018218994140625, -0.01058197021484375, -0.04510498046875, 0.035552978515625, -0.006191253662109375, -0.016571044921875, 0.0087127685546875, 0.027801513671875, -0.01092529296875, -0.019805908203125, 0.034088134765625, -0.0034313201904296875, 0.005718231201171875, -0.0640869140625, 0.017181396484375, -0.0034084320068359375, 0.0006322860717773438, 0.004428863525390625, -0.006633758544921875, 0.021331787109375, -0.044830322265625, 0.04034423828125, -0.0214691162109375, -0.01355743408203125, 0.046478271484375, -0.04254150390625, 0.0222320556640625, -0.041229248046875, -0.0667724609375, -0.018157958984375, -0.0091400146484375, -0.03204345703125, -0.01557159423828125, 0.015960693359375, -0.0211639404296875, 0.036041259765625, 0.017669677734375, -0.02056884765625, 0.02203369140625, -0.03631591796875, 0.0271759033203125, 0.05010986328125, -0.00244903564453125, 0.0266265869140625, -0.059356689453125, -0.05035400390625, -0.055511474609375, 0.0760498046875, 0.0185394287109375, 0.06451416015625, -0.0093536376953125, 0.042938232421875, 0.02593994140625, -0.0357666015625, 0.0107574462890625, -0.0164794921875, 0.056854248046875, -0.04052734375, -0.03656005859375, 0.0021076202392578125, 0.01611328125, -0.0166015625, 0.039215087890625, -0.048583984375, -0.0144195556640625, -0.0286102294921875, 0.019989013671875, 0.0011157989501953125, 0.0302581787109375, -0.0214080810546875, -0.017486572265625, -0.0102386474609375, -0.0179443359375, 0.0219268798828125, 0.035064697265625, 0.0138092041015625, 0.03656005859375, 0.00830078125, -0.0001634359359741211, 0.00485992431640625, -0.031524658203125, -0.000026404857635498047, 0.02203369140625, 0.006618499755859375, -0.031951904296875, 0.0229949951171875, -0.01329803466796875, -0.01006317138671875, 0.0218963623046875, 0.036773681640625, 0.00913238525390625, -0.022796630859375, -0.000713348388671875, 0.05499267578125, 0.041961669921875, 0.0021114349365234375, 0.0139617919921875, 0.00826263427734375, -0.02069091796875, 0.0022525787353515625, 0.0033435821533203125, -0.0031032562255859375, -0.0183563232421875, -0.03863525390625, -0.00693511962890625, -0.042999267578125, -0.05950927734375, -0.04571533203125, -0.024871826171875, -0.0285491943359375, 0.01331329345703125, -0.039947509765625, 0.03656005859375, 0.040191650390625, -0.06402587890625, -0.0179290771484375, -0.030914306640625, -0.007114410400390625, 0.002552032470703125, -0.016571044921875, 0.0162200927734375, -0.03900146484375, -0.02301025390625, 0.006580352783203125, 0.028533935546875, 0.03515625, -0.048095703125, -0.0321044921875, 0.0302734375, 0.0494384765625, 0.0906982421875, 0.0743408203125, -0.0053863525390625, 0.040313720703125, 0.011505126953125, -0.03228759765625, -0.06768798828125, 0.0027370452880859375, -0.0201416015625, 0.028533935546875, 0.00962066650390625, -0.04931640625, -0.038116455078125, -0.06878662109375, -0.09515380859375, 0.0455322265625, -0.0023670196533203125, -0.045654296875, -0.0156402587890625, 0.0016574859619140625, 0.0181121826171875, 0.0063018798828125, 0.0085601806640625, -0.0175323486328125, -0.0535888671875, -0.005340576171875, 0.01265716552734375, 0.005435943603515625, 0.00833892822265625, 0.003326416015625, -0.05230712890625, 0.0212249755859375, 0.0215301513671875, 0.0139617919921875, -0.0023822784423828125, -0.004985809326171875, 0.005290985107421875, 0.041839599609375, -0.039031982421875, -0.039520263671875, -0.0010633468627929688, 0.02056884765625, 0.025390625, 0.017669677734375, -0.03057861328125, 0.022491455078125, 0.0200653076171875, 0.0440673828125, 0.0180816650390625, -0.03912353515625, -0.0005431175231933594, -0.044158935546875, -0.0714111328125, -0.01419830322265625, 0.029571533203125, -0.03564453125, 0.034423828125, 0.0028209686279296875, 0.004901885986328125, 0.00365447998046875, 0.0079803466796875, 0.006618499755859375, -0.0232696533203125, 0.031524658203125, -0.024566650390625, 0.0128021240234375, -0.00693511962890625, 0.06634521484375, -0.0307769775390625, 0.0244598388671875, 0.001323699951171875, 0.014617919921875, 0.05029296875, 0.017913818359375, 0.019622802734375, 0.004177093505859375, -0.031951904296875, 0.01557159423828125, 0.0224761962890625, 0.00458526611328125, -0.0035419464111328125, -0.0269775390625, -0.01953125, 0.010986328125, 0.014801025390625, -0.0007138252258300781, -0.033111572265625, 0.041778564453125, 0.0156097412109375, 0.031341552734375, -0.01313018798828125, -0.01558685302734375, -0.0269775390625, 0.03656005859375, -0.0089263916015625, -0.020477294921875, 0.020538330078125, -0.0386962890625, 0.012359619140625, 0.013031005859375, -0.0079193115234375, -0.0032196044921875, -0.0018682479858398438, -0.010772705078125, -0.0242919921875, -0.0034503936767578125 ]
9559d02540edd91aa4d6bff495ae6c2741519a80
Wordpress Stackexchange Q: How do I retrieve menu items from one level only? The WordPress function wp_get_nav_menu_items returns my whole site's navigation nested and all. Now if i want to get the nav menu for one "level" of that nested navigation only, how do I do that? A: If you want to return an array of items (not output like wp_nav_menu), you can try this: $menu_name = 'your_menu_location'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); foreach ( (array) $menu_items as $key => $menu_item ) { if ($menu_item->menu_item_parent != 0 ) continue; $title = $menu_item->title; $url = $menu_item->url; DO WHAT EVER YOU WANT HERE } } // endif has nav menu or not
Q: How do I retrieve menu items from one level only? The WordPress function wp_get_nav_menu_items returns my whole site's navigation nested and all. Now if i want to get the nav menu for one "level" of that nested navigation only, how do I do that? A: If you want to return an array of items (not output like wp_nav_menu), you can try this: $menu_name = 'your_menu_location'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); foreach ( (array) $menu_items as $key => $menu_item ) { if ($menu_item->menu_item_parent != 0 ) continue; $title = $menu_item->title; $url = $menu_item->url; DO WHAT EVER YOU WANT HERE } } // endif has nav menu or not A: Are you trying to display the posts from the top down a certain number of levels? If so, use wp_nav_menu. It has an argument "depth" built just for this and it works painelssly. wp_nav_menu(array('depth' => 2)); Also, http://codex.wordpress.org/Function_Reference/wp_nav_menu
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:417070", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42230" }
[ 0.05010986328125, -0.036529541015625, 0.037933349609375, 0.0204620361328125, -0.01107025146484375, -0.02166748046875, 0.1004638671875, -0.03326416015625, 0.0282745361328125, 0.01021575927734375, -0.051361083984375, 0.021148681640625, -0.03179931640625, -0.005786895751953125, -0.019073486328125, -0.032928466796875, 0.0282135009765625, -0.01335906982421875, -0.005229949951171875, -0.00775909423828125, -0.0008754730224609375, 0.0032405853271484375, -0.0023040771484375, 0.08465576171875, 0.050018310546875, -0.02923583984375, -0.01325225830078125, -0.00283050537109375, 0.0106658935546875, -0.01149749755859375, 0.021392822265625, -0.000019669532775878906, -0.0012216567993164062, -0.0230560302734375, 0.06475830078125, -0.050201416015625, -0.0284423828125, 0.0142822265625, 0.027069091796875, -0.020782470703125, 0.0273284912109375, -0.0154571533203125, -0.0155029296875, 0.03948974609375, -0.0216217041015625, -0.0286712646484375, 0.0198211669921875, -0.029449462890625, 0.007518768310546875, -0.024169921875, 0.04620361328125, 0.007171630859375, 0.0548095703125, 0.01904296875, -0.0185546875, -0.00432586669921875, 0.044952392578125, -0.0838623046875, 0.0148162841796875, 0.006771087646484375, -0.016937255859375, -0.006084442138671875, 0.032196044921875, -0.021514892578125, -0.0217742919921875, 0.0202484130859375, 0.025299072265625, 0.0004336833953857422, -0.054412841796875, -0.0182037353515625, 0.039825439453125, -0.028839111328125, -0.0030612945556640625, 0.021484375, -0.040924072265625, -0.0416259765625, 0.0137786865234375, -0.037109375, 0.0283660888671875, -0.0017986297607421875, -0.00860595703125, -0.0184173583984375, -0.068603515625, -0.0011472702026367188, 0.0265960693359375, 0.032318115234375, -0.0016088485717773438, -0.0083465576171875, -0.024688720703125, 0.01198577880859375, -0.02349853515625, 0.02777099609375, -0.03662109375, 0.0115509033203125, -0.0167388916015625, -0.00008994340896606445, 0.01416778564453125, 0.057891845703125, -0.0301971435546875, 0.0211639404296875, -0.03955078125, -0.0283660888671875, 0.029876708984375, -0.06475830078125, 0.02117919921875, 0.01407623291015625, -0.0012407302856445312, -0.03936767578125, 0.054718017578125, 0.0277557373046875, 0.002056121826171875, 0.08953857421875, -0.039947509765625, -0.047882080078125, 0.006832122802734375, 0.03265380859375, -0.054168701171875, 0.0284576416015625, 0.0198211669921875, 0.0063934326171875, -0.005840301513671875, 0.0224761962890625, -0.0159759521484375, 0.036163330078125, -0.0225372314453125, 0.002040863037109375, 0.0269622802734375, -0.0282135009765625, -0.0229949951171875, 0.0191497802734375, -0.0121612548828125, 0.0008025169372558594, 0.03857421875, 0.05517578125, 0.0113372802734375, -0.023529052734375, -0.028472900390625, 0.0288238525390625, 0.014923095703125, -0.02398681640625, 0.049835205078125, 0.0186614990234375, 0.02734375, 0.0185546875, -0.040618896484375, -0.0131988525390625, 0.0221099853515625, 0.0343017578125, -0.01244354248046875, -0.02911376953125, -0.021209716796875, 0.0361328125, 0.0290679931640625, 0.0238189697265625, -0.045806884765625, -0.00830078125, 0.024688720703125, -0.028106689453125, -0.0139007568359375, -0.06915283203125, -0.043121337890625, -0.016143798828125, 0.017181396484375, -0.0443115234375, -0.0361328125, 0.0232391357421875, -0.017333984375, 0.0091705322265625, 0.019622802734375, 0.00122833251953125, 0.0107269287109375, -0.0243377685546875, -0.0068359375, 0.01169586181640625, -0.00797271728515625, 0.0167694091796875, -0.003307342529296875, 0.0174407958984375, 0.00705718994140625, 0.036407470703125, -0.01390838623046875, -0.0537109375, 0.023681640625, -0.00902557373046875, -0.0640869140625, 0.0172576904296875, -0.01174163818359375, 0.04779052734375, 0.04931640625, 0.01280975341796875, 0.0245819091796875, -0.005939483642578125, -0.051971435546875, -0.0127716064453125, -0.005481719970703125, 0.00859832763671875, 0.021148681640625, 0.01537322998046875, -0.0133819580078125, -0.007373809814453125, 0.007282257080078125, -0.001007080078125, 0.006717681884765625, -0.01123046875, -0.0309600830078125, -0.00423431396484375, -0.001438140869140625, 0.0304718017578125, -0.016937255859375, 0.0014047622680664062, 0.0160675048828125, 0.0247955322265625, -0.0156707763671875, -0.058074951171875, -0.019500732421875, 0.048187255859375, -0.013641357421875, -0.01099395751953125, -0.02667236328125, -0.01438140869140625, 0.00008606910705566406, -0.007228851318359375, -0.002132415771484375, 0.052703857421875, 0.057952880859375, 0.0095367431640625, -0.007678985595703125, -0.00270843505859375, 0.079833984375, 0.0165557861328125, -0.0296478271484375, -0.022247314453125, 0.03240966796875, -0.0066680908203125, -0.0272369384765625, 0.0250701904296875, 0.01959228515625, -0.045013427734375, -0.01326751708984375, 0.03143310546875, 0.038421630859375, 0.0294647216796875, -0.012847900390625, -0.02630615234375, 0.042205810546875, -0.08734130859375, -0.0243072509765625, -0.00655364990234375, -0.0361328125, -0.00978851318359375, 0.051025390625, 0.0198822021484375, 0.027984619140625, 0.035125732421875, 0.0020542144775390625, 0.03875732421875, -0.0159912109375, 0.01202392578125, -0.0198822021484375, 0.004398345947265625, 0.008392333984375, 0.014129638671875, 0.00217437744140625, -0.0038280487060546875, -0.006557464599609375, 0.018768310546875, 0.0129547119140625, 0.02227783203125, -0.0258941650390625, -0.0014753341674804688, 0.0213775634765625, 0.053314208984375, 0.00394439697265625, 0.0250244140625, -0.0239410400390625, -0.006656646728515625, 0.0111236572265625, -0.00403594970703125, 0.0018825531005859375, -0.0086822509765625, -0.0048980712890625, 0.043975830078125, 0.054046630859375, -0.01233673095703125, -0.0195465087890625, -0.036590576171875, 0.0272674560546875, 0.0013418197631835938, -0.002960205078125, 0.037811279296875, 0.05804443359375, 0.0253448486328125, 0.0039005279541015625, 0.00681304931640625, -0.0498046875, 0.0196685791015625, 0.07489013671875, 0.03338623046875, -0.0147705078125, 0.028045654296875, 0.03179931640625, 0.01849365234375, 0.0006203651428222656, -0.0234527587890625, -0.0156707763671875, -0.03173828125, -0.0081787109375, 0.005451202392578125, -0.0247955322265625, -0.030029296875, -0.024139404296875, 0.035614013671875, 0.0015783309936523438, 0.005130767822265625, -0.008453369140625, -0.041656494140625, -0.0212554931640625, -0.01043701171875, -0.08734130859375, -0.05035400390625, 0.033599853515625, -0.052520751953125, 0.0628662109375, 0.006206512451171875, -0.01494598388671875, -0.055450439453125, 0.05828857421875, 0.0185089111328125, 0.048980712890625, -0.0192108154296875, -0.038848876953125, 0.01194000244140625, -0.054962158203125, 0.03704833984375, 0.0022640228271484375, 0.0137481689453125, 0.002777099609375, 0.0161590576171875, 0.00949859619140625, -0.043487548828125, 0.034881591796875, 0.044586181640625, -0.01776123046875, 0.01485443115234375, 0.0165557861328125, -0.03448486328125, -0.0072784423828125, 0.007389068603515625, -0.045684814453125, -0.0177154541015625, 0.0221710205078125, -0.0330810546875, 0.0101165771484375, 0.0109100341796875, 0.06329345703125, -0.003269195556640625, -0.032684326171875, 0.0670166015625, 0.0684814453125, -0.0005307197570800781, -0.0660400390625, -0.0190887451171875, -0.0721435546875, 0.04931640625, 0.0499267578125, 0.0223846435546875, -0.033111572265625, 0.035186767578125, -0.00600433349609375, -0.010162353515625, 0.02105712890625, -0.01349639892578125, 0.037353515625, -0.013824462890625, -0.024017333984375, -0.017852783203125, 0.057403564453125, -0.00988006591796875, -0.0244903564453125, 0.010223388671875, -0.0038738250732421875, -0.002956390380859375, -0.040191650390625, -0.02886962890625, -0.0259552001953125, 0.0322265625, 0.00020456314086914062, 0.04876708984375, -0.03277587890625, -0.02862548828125, -0.00830841064453125, 0.0999755859375, -0.048858642578125, -0.02154541015625, -0.01995849609375, 0.0195159912109375, -0.00203704833984375, -0.07305908203125, -0.0263671875, -0.029510498046875, -0.10626220703125, 0.0215301513671875, 0.01023101806640625, -0.0288238525390625, -0.002552032470703125, -0.015045166015625, -0.05615234375, -0.04791259765625, 0.03363037109375, -0.048309326171875, 0.00615692138671875, 0.0290985107421875, -0.01447296142578125, -0.005161285400390625, -0.0190277099609375, -0.0204010009765625, -0.05279541015625, -0.01910400390625, -0.0106353759765625, 0.0284576416015625, -0.00542449951171875, -0.0236053466796875, 0.018280029296875, 0.0533447265625, 0.018707275390625, 0.0311737060546875, 0.024383544921875, 0.019378662109375, -0.0087127685546875, -0.01180267333984375, 0.0297088623046875, -0.040008544921875, -0.0076446533203125, -0.0379638671875, -0.0229949951171875, 0.001708984375, -0.0225372314453125, 0.0175933837890625, -0.0150909423828125, -0.008544921875, -0.03472900390625, -0.0213623046875, -0.01169586181640625, -0.00315093994140625, 0.002719879150390625, -0.0007476806640625, -0.0113983154296875, -0.044647216796875, 0.015594482421875, 0.0229034423828125, -0.028900146484375, -0.00015020370483398438, 0.00348663330078125, 0.01308441162109375, -0.044708251953125, -0.007213592529296875, 0.0245208740234375, 0.033599853515625, -0.042388916015625, 0.053680419921875, 0.0162200927734375, -0.02020263671875, 0.048797607421875, -0.0081329345703125, 0.034820556640625, 0.0233154296875, 0.042144775390625, 0.0303497314453125, 0.006877899169921875, 0.014984130859375, 0.04339599609375, -0.1099853515625, 0.044708251953125, -0.0009121894836425781, -0.047821044921875, -0.018829345703125, 0.05914306640625, 0.019134521484375, -0.0162506103515625, -0.06915283203125, -0.01457977294921875, -0.00815582275390625, -0.0018396377563476562, 0.044891357421875, 0.051116943359375, -0.01383209228515625, 0.019866943359375, 0.054656982421875, -0.00301361083984375, -0.004169464111328125, 0.0232696533203125, -0.01052093505859375, 0.0282745361328125, -0.01474761962890625, -0.01666259765625, -0.018890380859375, 0.0014467239379882812, 0.046478271484375, 0.0118408203125, -0.037994384765625, -0.00942230224609375, 0.0028972625732421875, 0.0232391357421875, 0.0189056396484375, -0.004657745361328125, 0.0239105224609375, -0.0008282661437988281, 0.0009369850158691406, -0.0171661376953125, -0.03887939453125, -0.0164947509765625, -0.0306549072265625, 0.033294677734375, 0.01010894775390625, -0.004642486572265625, -0.02655029296875, 0.06976318359375, 0.00649261474609375, 0.0136260986328125, -0.0131988525390625, -0.043182373046875, -0.0166168212890625, 0.025421142578125, 0.029022216796875, -0.003177642822265625, 0.008148193359375, -0.002056121826171875, 0.07470703125, -0.02093505859375, -0.031402587890625, 0.040283203125, 0.0201416015625, 0.007244110107421875, 0.0026397705078125, -0.0137481689453125, 0.0173492431640625, -0.00452423095703125, 0.0653076171875, -0.0252532958984375, -0.07342529296875, -0.050933837890625, 0.01442718505859375, 0.057464599609375, -0.051300048828125, -0.00395965576171875, 0.00640106201171875, 0.006877899169921875, -0.0068511962890625, 0.00763702392578125, -0.058837890625, 0.037933349609375, 0.052459716796875, -0.018707275390625, -0.0203399658203125, 0.031646728515625, -0.12420654296875, 0.00012493133544921875, -0.022857666015625, -0.0239105224609375, 0.0263824462890625, -0.0322265625, 0.038299560546875, -0.034088134765625, 0.00421142578125, -0.034820556640625, 0.002361297607421875, 0.04730224609375, 0.037841796875, -0.033660888671875, 0.0054168701171875, -0.008392333984375, 0.01204681396484375, 0.0288543701171875, -0.043670654296875, -0.0290985107421875, -0.03369140625, -0.025970458984375, 0.00665283203125, 0.0249786376953125, 0.0655517578125, 0.017547607421875, 0.016571044921875, -0.048492431640625, -0.01316070556640625, -0.017242431640625, 0.07427978515625, 0.0038661956787109375, 0.0131072998046875, 0.00009548664093017578, 0.0276336669921875, -0.031890869140625, 0.01061248779296875, 0.0298309326171875, -0.03546142578125, -0.043609619140625, -0.035888671875, -0.00777435302734375, 0.01474761962890625, 0.0192718505859375, -0.0017499923706054688, 0.040863037109375, -0.0284881591796875, 0.0163421630859375, 0.0011749267578125, -0.000004172325134277344, -0.052886962890625, -0.030426025390625, 0.071533203125, -0.00018966197967529297, 0.00786590576171875, 0.0016050338745117188, -0.01180267333984375, 0.011871337890625, 0.0146026611328125, 0.022247314453125, -0.0115814208984375, -0.04034423828125, 0.05419921875, 0.08184814453125, -0.0038852691650390625, 0.0299072265625, 0.0184783935546875, -0.005268096923828125, -0.00937652587890625, -0.019256591796875, 0.01409912109375, 0.0161895751953125, 0.01010894775390625, -0.031829833984375, 0.01219940185546875, 0.006420135498046875, -0.0198211669921875, -0.0217132568359375, 0.018402099609375, 0.0309906005859375, -0.0396728515625, 0.0146942138671875, 0.017822265625, -0.00299835205078125, -0.0212554931640625, 0.005977630615234375, -0.0141448974609375, -0.042724609375, -0.020233154296875, -0.0233306884765625, -0.03253173828125, -0.0243988037109375, -0.0076751708984375, 0.01015472412109375, -0.0165863037109375, 0.04876708984375, 0.0038928985595703125, 0.004741668701171875, -0.0458984375, 0.00974273681640625, -0.023345947265625, -0.043609619140625, -0.0010786056518554688, 0.0180511474609375, -0.01177215576171875, -0.05987548828125, 0.031585693359375, -0.0082550048828125, 0.0168304443359375, 0.0092926025390625, -0.0164337158203125, -0.0084075927734375, 0.037872314453125, -0.04669189453125, 0.022247314453125, 0.006389617919921875, -0.0281219482421875, -0.00897216796875, -0.0209503173828125, 0.00626373291015625, -0.01177978515625, -0.04205322265625, 0.007114410400390625, -0.025238037109375, -0.00727081298828125, -0.0115966796875, -0.00431060791015625, 0.066162109375, -0.0174560546875, -0.0207672119140625, -0.003345489501953125, 0.019134521484375, 0.0031147003173828125, -0.007282257080078125, 0.09124755859375, -0.0308380126953125, -0.000804901123046875, 0.03436279296875, 0.042205810546875, -0.028656005859375, 0.002460479736328125, 0.01340484619140625, 0.0455322265625, -0.0193939208984375, -0.049041748046875, 0.04547119140625, 0.03387451171875, -0.042083740234375, 0.025970458984375, -0.0304412841796875, 0.04083251953125, 0.05023193359375, 0.0167388916015625, -0.0206451416015625, -0.027313232421875, -0.0077362060546875, 0.04205322265625, -0.007251739501953125, 0.008026123046875, -0.034942626953125, -0.0081787109375, 0.0161895751953125, 0.059967041015625, 0.037567138671875, 0.0215301513671875, -0.0002256631851196289, -0.01318359375, 0.04852294921875, -0.00983428955078125, 0.032440185546875, -0.01800537109375, 0.0054473876953125, 0.0056610107421875, 0.01514434814453125, 0.0036792755126953125, 0.0138397216796875, -0.013519287109375, -0.03472900390625, -0.0011358261108398438, 0.0011196136474609375, 0.01552581787109375, 0.0220947265625, 0.016448974609375, 0.01739501953125, 0.00196075439453125, 0.006977081298828125, -0.031890869140625, 0.025848388671875, 0.01007080078125, -0.01071929931640625, 0.032073974609375, 0.0178985595703125, 0.01285552978515625, 0.019927978515625, 0.010986328125, 0.0197601318359375, -0.005413055419921875, 0.037567138671875, -0.01177978515625, 0.0200347900390625, -0.07183837890625, -0.03814697265625, 0.03472900390625, 0.057098388671875, -0.018768310546875, -0.061309814453125, 0.01091766357421875, 0.008087158203125, 0.0215606689453125, 0.044769287109375, 0.07135009765625, 0.05731201171875, 0.069091796875, 0.005802154541015625, -0.00902557373046875, 0.036163330078125, 0.010040283203125, 0.0228424072265625, 0.0291900634765625, -0.03472900390625, 0.006801605224609375, -0.03533935546875, 0.029541015625, 0.033477783203125, 0.027252197265625, -0.0276947021484375, 0.06915283203125, -0.02545166015625, -0.009979248046875, 0.0235595703125, 0.036346435546875, -0.0399169921875, -0.0122833251953125, 0.00791168212890625, -0.05596923828125, -0.006542205810546875, 0.003612518310546875, 0.05401611328125, 0.0098876953125, 0.0665283203125, 0.012908935546875, -0.042755126953125, 0.01100921630859375, 0.0472412109375, -0.00949859619140625, -0.044097900390625, -0.0174102783203125, -0.004932403564453125, 0.05352783203125, 0.00896453857421875, 0.01507568359375, 0.0261688232421875, 0.0304107666015625, 0.00893402099609375, 0.03668212890625, 0.002513885498046875, 0.021697998046875, -0.00887298583984375, -0.0183563232421875, -0.0145416259765625, 0.0181884765625, -0.09716796875, -0.038177490234375, -0.00064849853515625, 0.004039764404296875, 0.028167724609375, 0.03875732421875, 0.00856781005859375, 0.004833221435546875, 0.047271728515625, -0.027374267578125, 0.0181732177734375, 0.0127716064453125, 0.014068603515625, 0.03564453125, 0.019622802734375, 0.037017822265625, -0.051116943359375, -0.0200347900390625, -0.03704833984375, 0.00732421875, 0.0712890625, -0.01294708251953125, 0.051544189453125, 0.052581787109375, -0.0244140625, 0.036346435546875, -0.0621337890625, -0.037139892578125, -0.015899658203125, -0.0301666259765625, 0.01052093505859375, 0.0248260498046875, -0.061798095703125, -0.0004973411560058594, 0.061553955078125, -0.02130126953125, 0.00847625732421875, -0.0050506591796875, 0.024200439453125, -0.056121826171875, 0.03826904296875, -0.004566192626953125, 0.004459381103515625, -0.01296234130859375, -0.04058837890625, 0.060760498046875, 0.07928466796875, 0.045135498046875, 0.016265869140625, -0.00347137451171875, -0.04583740234375, 0.01422119140625, -0.019927978515625, -0.01080322265625, 0.02557373046875, 0.017669677734375, 0.01361083984375, -0.00457763671875, -0.00344085693359375, 0.01229095458984375, 0.0201416015625, -0.024444580078125, 0.01364898681640625, 0.004425048828125, 0.0333251953125, 0.00386810302734375, 0.022796630859375, -0.03564453125, -0.006725311279296875, 0.038604736328125, 0.01251220703125, -0.0367431640625, -0.053009033203125, -0.02923583984375, -0.053741455078125, -0.015350341796875, 0.0151214599609375, -0.028228759765625, -0.03582763671875, -0.0132293701171875, 0.0182952880859375, 0.03216552734375, 0.0164031982421875, -0.040985107421875, 0.04388427734375, -0.0255889892578125, 0.035675048828125, -0.004795074462890625, 0.020355224609375, 0.00677490234375, 0.0018625259399414062, -0.046600341796875, 0.00975799560546875, -0.00585174560546875, 0.0159454345703125, 0.01045989990234375, 0.0005311965942382812, 0.0269317626953125, -0.0190277099609375, -0.004909515380859375, -0.009735107421875, 0.00717926025390625, 0.045135498046875, -0.0225982666015625, -0.0308685302734375, -0.06097412109375, 0.0203704833984375, 0.00954437255859375, 0.0174713134765625, 0.039093017578125, -0.03436279296875, -0.047576904296875, 0.039642333984375, -0.0087738037109375, 0.03302001953125, -0.0264739990234375, -0.055450439453125, 0.04229736328125, 0.001888275146484375, -0.0394287109375, -0.008392333984375, 0.00720977783203125, -0.0236663818359375, 0.01508331298828125, -0.01425933837890625, 0.017852783203125, 0.01213836669921875, 0.035858154296875, 0.0288848876953125, 0.0457763671875, -0.00504302978515625, 0.0302886962890625, -0.047515869140625, 0.033905029296875, -0.0011587142944335938, 0.0250701904296875, -0.0021991729736328125, -0.00014865398406982422, 0.015625, 0.040191650390625, -0.040069580078125, -0.00502777099609375, 0.0029468536376953125, -0.006366729736328125, 0.00927734375, 0.016876220703125, -0.0204620361328125, -0.01470184326171875, 0.034332275390625, 0.023040771484375, 0.01194000244140625, -0.0192718505859375, -0.003932952880859375, 0.0011615753173828125, -0.031890869140625, 0.0219879150390625, 0.0286407470703125, -0.03790283203125, 0.0109405517578125, 0.0081329345703125, -0.027679443359375, -0.005428314208984375, -0.005329132080078125, -0.048919677734375, -0.0016508102416992188, -0.02105712890625, 0.00452423095703125, -0.047760009765625, -0.0443115234375, 0.0238037109375, -0.0216827392578125, -0.03570556640625, 0.006687164306640625, 0.0256805419921875, -0.019073486328125, 0.0231475830078125, -0.0203857421875, 0.04107666015625, -0.05230712890625, -0.0165863037109375, -0.0178375244140625, 0.005405426025390625, -0.0152587890625, 0.00872039794921875, -0.034637451171875, 0.0229339599609375, 0.035888671875, 0.0361328125, -0.0204925537109375, 0.00424957275390625, 0.0479736328125, -0.023681640625, 0.01215362548828125, 0.10223388671875, 0.0193939208984375, 0.0626220703125, -0.007129669189453125, -0.03680419921875, 0.021270751953125, -0.057464599609375, -0.0038814544677734375, 0.03839111328125, 0.0006661415100097656, -0.041015625, 0.04681396484375, 0.035491943359375, 0.014129638671875, 0.016143798828125 ]
62fb5ed80b608f7eeb7fdd4bf9d65d76d57d70b8
Wordpress Stackexchange Q: Child Terms not Displaying on the Taxonomy Term Admin Screen I am experiencing an issue where terms with a parent are not being displayed in the category admin screen. The screen gives the total number of terms that should be there (i.e., 32), but only displays parent terms (i.e., 9). Interestingly, if run: var_dump( get_terms( 'category' ) ); all 32 terms are returned. Does anyone have an idea as to how I might be able to get those terms to display? Thanks! A: I've encountered this kind of problem when i was building some front end post / term creation form. The number oh the 'Right Now' dashboard shows the right number of term, but the new term doesn't shows up in the taxonomy admin screen. The solution: delete_option('taxonomy-name_children'); where 'taxonomy-name' is the name of the taxonomy. Hope this help.
Q: Child Terms not Displaying on the Taxonomy Term Admin Screen I am experiencing an issue where terms with a parent are not being displayed in the category admin screen. The screen gives the total number of terms that should be there (i.e., 32), but only displays parent terms (i.e., 9). Interestingly, if run: var_dump( get_terms( 'category' ) ); all 32 terms are returned. Does anyone have an idea as to how I might be able to get those terms to display? Thanks! A: I've encountered this kind of problem when i was building some front end post / term creation form. The number oh the 'Right Now' dashboard shows the right number of term, but the new term doesn't shows up in the taxonomy admin screen. The solution: delete_option('taxonomy-name_children'); where 'taxonomy-name' is the name of the taxonomy. Hope this help. A: The issue was that somehow the "category_children" value in "wp_options" was reset to a blank, serialized array. In certain contexts, WordPress uses this value to determine the parent child relationship. The value in my DB suggested no such relationships exist. The fix for the issue was to add/edit/delete a category as it updates this value. A: I don't have a '15 reputation' ... however, thank you ifdion For those sitting behind phpMyAdmin or a MySQL client, you can also do: DELETE FROM wp_options WHERE option_name LIKE 'TAXNAME_children'; I came across this doing a 14K "product" import with code similar to (inside a huge loop): if (!term_exists($row->vendor,'manufacturer')){ $v = wp_insert_term($row->vendor,'manufacturer'); $lv = $v['term_id']; } if (!term_exists($row->series,'manufacturer',$lv)){ $s = wp_insert_term($row->series,'manufacturer',array('parent' => $lv)); $ls = $s['term_id']; } And for some reason, all the posts inserted worked, but just wern't displaying the child taxonomies on the admin page. Thanks again for this tip.
wordpress
{ "language": "en", "length": 291, "provenance": "stackexchange_00019.jsonl.gz:417095", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42311" }
[ 0.020782470703125, 0.024505615234375, -0.040435791015625, -0.023040771484375, 0.01383209228515625, -0.0278778076171875, -0.0048980712890625, -0.026123046875, -0.00907135009765625, 0.01197052001953125, -0.062744140625, -0.0255889892578125, -0.039886474609375, -0.01474761962890625, -0.038055419921875, -0.08251953125, 0.032135009765625, -0.0208282470703125, 0.0219879150390625, -0.00608062744140625, -0.00650787353515625, 0.022308349609375, 0.021087646484375, 0.01397705078125, 0.03240966796875, -0.058990478515625, 0.00023663043975830078, -0.024139404296875, 0.01239013671875, -0.0301971435546875, 0.003986358642578125, 0.04119873046875, 0.01218414306640625, -0.0088653564453125, 0.048675537109375, -0.0352783203125, 0.01227569580078125, -0.006107330322265625, 0.00830078125, 0.0193328857421875, 0.0225830078125, -0.0018148422241210938, 0.056884765625, 0.0267486572265625, 0.0142974853515625, -0.022125244140625, -0.0002624988555908203, -0.0487060546875, -0.0245513916015625, -0.060028076171875, 0.0443115234375, -0.01300811767578125, 0.07354736328125, -0.049224853515625, -0.011505126953125, 0.0107574462890625, -0.00872802734375, 0.026336669921875, 0.0227813720703125, -0.01413726806640625, -0.03399658203125, 0.012603759765625, 0.0217132568359375, -0.002750396728515625, -0.007106781005859375, -0.011749267578125, 0.0021800994873046875, 0.018829345703125, -0.054931640625, -0.0236968994140625, 0.040252685546875, -0.02618408203125, 0.0175933837890625, -0.00809478759765625, -0.0032329559326171875, -0.056610107421875, 0.01727294921875, -0.0243682861328125, 0.0024814605712890625, 0.016021728515625, 0.02142333984375, 0.005840301513671875, -0.039398193359375, 0.060943603515625, -0.00565338134765625, 0.08612060546875, -0.012298583984375, -0.0584716796875, -0.021514892578125, -0.0262603759765625, -0.006092071533203125, -0.0633544921875, -0.06011962890625, 0.057098388671875, 0.040374755859375, -0.037353515625, 0.026763916015625, 0.0653076171875, -0.034271240234375, -0.025634765625, -0.041107177734375, 0.00036072731018066406, -0.056488037109375, -0.0176544189453125, 0.015625, 0.00792694091796875, -0.01055145263671875, 0.006069183349609375, 0.051849365234375, 0.0316162109375, 0.0037059783935546875, 0.052276611328125, -0.0225372314453125, -0.0335693359375, -0.0054473876953125, 0.02484130859375, -0.051055908203125, 0.0108642578125, 0.0007319450378417969, -0.00981903076171875, -0.02978515625, 0.0036830902099609375, -0.03021240234375, 0.02178955078125, 0.01922607421875, 0.01219940185546875, 0.0006837844848632812, 0.0107269287109375, 0.007537841796875, -0.036712646484375, -0.035858154296875, 0.04705810546875, 0.07171630859375, 0.0189971923828125, 0.0102691650390625, 0.020111083984375, -0.018096923828125, -0.00554656982421875, -0.00616455078125, 0.005214691162109375, -0.0193023681640625, 0.022125244140625, 0.068603515625, -0.030487060546875, 0.0198516845703125, 0.002758026123046875, 0.006641387939453125, 0.022308349609375, 0.033233642578125, -0.019805908203125, 0.019378662109375, -0.031646728515625, 0.09136962890625, -0.006298065185546875, -0.072509765625, -0.00429534912109375, 0.037750244140625, -0.033111572265625, -0.0960693359375, -0.07733154296875, 0.021392822265625, 0.01068878173828125, 0.021453857421875, -0.030548095703125, -0.0272674560546875, -0.0222930908203125, -0.065673828125, -0.00605010986328125, 0.01479339599609375, -0.048095703125, 0.05255126953125, -0.033721923828125, -0.011505126953125, 0.0127410888671875, 0.017730712890625, 0.0274810791015625, -0.014556884765625, -0.007541656494140625, 0.03558349609375, -0.004024505615234375, -0.0185699462890625, -0.0250701904296875, 0.01345062255859375, -0.00772857666015625, -0.015838623046875, -0.0016412734985351562, 0.0031948089599609375, -0.00026154518127441406, 0.0141143798828125, 0.016448974609375, 0.01114654541015625, 0.035125732421875, -0.028350830078125, 0.012237548828125, 0.026092529296875, -0.0026702880859375, -0.041168212890625, 0.003963470458984375, -0.0005383491516113281, -0.0195770263671875, -0.03570556640625, -0.009918212890625, 0.006053924560546875, -0.0167083740234375, -0.0259552001953125, -0.00433349609375, -0.0179901123046875, 0.054595947265625, 0.0103759765625, 0.03411865234375, 0.0099945068359375, -0.004627227783203125, -0.03533935546875, 0.00913238525390625, -0.0126953125, 0.00296783447265625, -0.027496337890625, 0.0266876220703125, -0.004878997802734375, -0.01235198974609375, 0.00980377197265625, -0.0240631103515625, 0.0090179443359375, 0.0127410888671875, 0.02606201171875, 0.02557373046875, -0.031036376953125, 0.0037822723388671875, 0.036712646484375, 0.01467132568359375, 0.007228851318359375, 0.02508544921875, 0.03326416015625, 0.037261962890625, -0.031219482421875, -0.0153656005859375, 0.00396728515625, -0.049468994140625, 0.00722503662109375, 0.043365478515625, 0.029327392578125, 0.0193023681640625, -0.045135498046875, -0.0440673828125, 0.060089111328125, -0.053680419921875, -0.0252838134765625, -0.02099609375, -0.01140594482421875, 0.0029926300048828125, 0.034332275390625, -0.0149688720703125, 0.01019287109375, -0.032745361328125, 0.005016326904296875, 0.02581787109375, -0.0135650634765625, -0.037353515625, 0.00897979736328125, -0.01409149169921875, 0.03546142578125, -0.04888916015625, -0.050689697265625, -0.0013456344604492188, -0.01178741455078125, 0.0228729248046875, 0.002719879150390625, 0.00957489013671875, -0.033294677734375, 0.0206298828125, 0.0295562744140625, -0.00002181529998779297, 0.01003265380859375, -0.02264404296875, 0.00965118408203125, -0.044586181640625, -0.0241241455078125, 0.01184844970703125, 0.0244598388671875, -0.02532958984375, 0.006317138671875, 0.04840087890625, -0.005977630615234375, -0.0092010498046875, -0.0306396484375, -0.032623291015625, 0.01287078857421875, 0.04241943359375, -0.0255889892578125, -0.0001220703125, 0.019683837890625, 0.052276611328125, -0.00701904296875, 0.0185699462890625, -0.036712646484375, 0.0247955322265625, -0.02093505859375, -0.011871337890625, 0.03594970703125, -0.02471923828125, 0.017547607421875, 0.050445556640625, 0.0037555694580078125, 0.005298614501953125, 0.00765228271484375, 0.0239715576171875, 0.01708984375, -0.00372314453125, 0.003047943115234375, 0.01154327392578125, -0.029388427734375, 0.00862884521484375, 0.00707244873046875, 0.06097412109375, -0.042633056640625, -0.072265625, -0.0097198486328125, 0.01348876953125, -0.05059814453125, -0.0076751708984375, -0.06256103515625, -0.026458740234375, -0.0301666259765625, 0.0052490234375, -0.00937652587890625, 0.029815673828125, -0.008514404296875, 0.01317596435546875, 0.0230865478515625, -0.055877685546875, -0.05255126953125, -0.059722900390625, -0.07037353515625, -0.01541900634765625, 0.0035915374755859375, 0.0006003379821777344, -0.006191253662109375, 0.0892333984375, -0.003387451171875, -0.07989501953125, -0.02630615234375, 0.0018167495727539062, -0.00543212890625, 0.03863525390625, 0.01108551025390625, -0.0212554931640625, -0.008331298828125, 0.01061248779296875, -0.0169830322265625, 0.0035114288330078125, 0.00103759765625, -0.02606201171875, -0.015960693359375, 0.01427459716796875, 0.0242767333984375, -0.024017333984375, 0.004619598388671875, 0.040374755859375, 0.0166015625, -0.0116424560546875, -0.00569915771484375, -0.0083770751953125, -0.0093841552734375, 0.03509521484375, -0.02142333984375, -0.01262664794921875, 0.00696563720703125, 0.0226898193359375, -0.031890869140625, -0.01296234130859375, -0.01204681396484375, -0.0233306884765625, 0.00415802001953125, -0.0093231201171875, -0.0236663818359375, 0.0295562744140625, -0.0079193115234375, -0.02545166015625, 0.0089111328125, -0.0132293701171875, 0.02496337890625, 0.0025157928466796875, 0.03253173828125, -0.01128387451171875, -0.0821533203125, 0.038482666015625, -0.052886962890625, 0.01125335693359375, -0.0703125, -0.00283050537109375, -0.0185699462890625, 0.08795166015625, -0.05322265625, -0.0203704833984375, -0.0182342529296875, 0.0265655517578125, -0.033660888671875, -0.049468994140625, -0.0177459716796875, -0.0063323974609375, -0.0848388671875, 0.00833892822265625, 0.0123748779296875, -0.042510986328125, -0.0110321044921875, 0.0178680419921875, -0.06781005859375, -0.03155517578125, 0.0423583984375, -0.0186920166015625, -0.01103973388671875, -0.00391387939453125, 0.01073455810546875, -0.048004150390625, -0.01666259765625, 0.005771636962890625, -0.0394287109375, -0.0146636962890625, 0.014007568359375, 0.01413726806640625, 0.00379180908203125, -0.0304718017578125, 0.002193450927734375, 0.042266845703125, 0.0180511474609375, 0.01078033447265625, -0.0014142990112304688, -0.0142822265625, -0.005077362060546875, 0.01050567626953125, 0.004215240478515625, -0.0182647705078125, -0.034210205078125, -0.029052734375, 0.0106048583984375, 0.0340576171875, -0.0008292198181152344, 0.011932373046875, 0.01088714599609375, 0.004001617431640625, -0.0263214111328125, -0.024505615234375, -0.06939697265625, -0.0233001708984375, -0.009918212890625, -0.0207366943359375, -0.0211334228515625, -0.0638427734375, -0.0133056640625, 0.0252685546875, -0.03472900390625, 0.0167388916015625, 0.0194549560546875, 0.0294647216796875, -0.020416259765625, -0.0275726318359375, -0.003528594970703125, 0.0164031982421875, 0.006855010986328125, 0.004436492919921875, -0.0170135498046875, -0.0224456787109375, 0.039398193359375, -0.00522613525390625, 0.0299530029296875, 0.0171051025390625, 0.00835418701171875, -0.0030460357666015625, -0.046295166015625, 0.049224853515625, 0.0213165283203125, -0.03314208984375, -0.0025615692138671875, -0.014251708984375, -0.05218505859375, -0.0416259765625, 0.07281494140625, -0.0090484619140625, 0.06231689453125, -0.0440673828125, -0.0203399658203125, 0.0026111602783203125, -0.027191162109375, 0.008270263671875, 0.03350830078125, -0.016845703125, -0.015167236328125, -0.0198516845703125, 0.002277374267578125, -0.0196990966796875, -0.0121917724609375, -0.021026611328125, 0.0110931396484375, -0.017333984375, -0.01325225830078125, -0.0011644363403320312, -0.00982666015625, 0.0301666259765625, -0.0087890625, -0.0570068359375, 0.035552978515625, -0.0129241943359375, 0.003993988037109375, 0.038055419921875, 0.01081085205078125, -0.023345947265625, 0.00832366943359375, 0.03375244140625, 0.007740020751953125, 0.015838623046875, 0.041259765625, 0.01690673828125, 0.016876220703125, -0.00865936279296875, -0.010101318359375, 0.0005741119384765625, 0.049102783203125, -0.04376220703125, 0.0283203125, 0.0009694099426269531, -0.038726806640625, -0.035675048828125, 0.04156494140625, 0.03265380859375, -0.0367431640625, 0.039031982421875, -0.01209259033203125, 0.05218505859375, -0.02294921875, -0.047637939453125, 0.00435638427734375, 0.02777099609375, -0.01617431640625, 0.0093994140625, 0.03369140625, 0.017730712890625, -0.022918701171875, 0.02947998046875, -0.026611328125, -0.041778564453125, -0.019378662109375, -0.0033397674560546875, 0.0277557373046875, -0.0102691650390625, -0.032257080078125, 0.030029296875, -0.053619384765625, 0.036224365234375, -0.01015472412109375, 0.0004837512969970703, 0.018707275390625, -0.012237548828125, -0.036895751953125, -0.0228729248046875, 0.00933837890625, -0.034881591796875, -0.03668212890625, -0.0129547119140625, -0.007488250732421875, 0.0129241943359375, 0.007595062255859375, 0.020904541015625, -0.00592041015625, -0.02423095703125, 0.0171661376953125, -0.0023822784423828125, 0.051483154296875, 0.014862060546875, -0.07843017578125, -0.004825592041015625, -0.050994873046875, -0.01523590087890625, -0.042816162109375, -0.016357421875, -0.039764404296875, 0.02288818359375, -0.00927734375, 0.006336212158203125, -0.0002416372299194336, -0.01374053955078125, -0.03424072265625, 0.027496337890625, 0.02325439453125, 0.00505828857421875, 0.0126953125, 0.0028018951416015625, -0.03033447265625, 0.0301055908203125, -0.0034046173095703125, -0.0125885009765625, -0.00737762451171875, -0.022491455078125, 0.00046634674072265625, -0.0235595703125, 0.001983642578125, 0.01123046875, -0.00890350341796875, -0.0267181396484375, 0.01367950439453125, 0.0035400390625, 0.0289154052734375, 0.005229949951171875, 0.0031948089599609375, -0.005710601806640625, 0.0253753662109375, 0.00664520263671875, 0.0024814605712890625, 0.051605224609375, -0.041534423828125, -0.003665924072265625, 0.01137542724609375, 0.0006647109985351562, 0.020294189453125, -0.031982421875, 0.01250457763671875, 0.03302001953125, -0.019927978515625, 0.035736083984375, 0.0166015625, 0.00560760498046875, 0.02532958984375, -0.0096588134765625, 0.027740478515625, -0.009765625, 0.03021240234375, -0.026885986328125, -0.03216552734375, 0.0254364013671875, 0.0082550048828125, -0.023712158203125, -0.005191802978515625, -0.029510498046875, -0.07427978515625, 0.0016117095947265625, -0.0180816650390625, -0.004085540771484375, -0.028839111328125, -0.006561279296875, 0.0156707763671875, -0.0233001708984375, 0.036773681640625, 0.0010862350463867188, -0.003093719482421875, -0.032196044921875, 0.02069091796875, -0.00664520263671875, 0.009033203125, 0.011138916015625, -0.0219573974609375, -0.0248565673828125, 0.017333984375, 0.0182647705078125, 0.0012464523315429688, 0.019561767578125, -0.0130157470703125, 0.0240631103515625, -0.035186767578125, -0.0009589195251464844, 0.01214599609375, -0.001888275146484375, -0.046051025390625, 0.032135009765625, -0.04486083984375, 0.02398681640625, 0.0244903564453125, 0.008758544921875, -0.022857666015625, 0.0419921875, -0.032745361328125, 0.040771484375, 0.005397796630859375, -0.0711669921875, 0.0187225341796875, -0.0005440711975097656, 0.01348114013671875, -0.01003265380859375, -0.0654296875, 0.005138397216796875, -0.053802490234375, 0.01519775390625, -0.01629638671875, -0.055908203125, 0.0278778076171875, 0.0094146728515625, -0.02130126953125, 0.018157958984375, 0.030548095703125, -0.0033855438232421875, 0.0111846923828125, -0.0000040531158447265625, -0.0151519775390625, 0.0183258056640625, 0.01194000244140625, 0.0019464492797851562, 0.0088043212890625, 0.0250396728515625, -0.07110595703125, 0.09588623046875, 0.00901031494140625, 0.0498046875, 0.0181884765625, 0.018951416015625, -0.044647216796875, -0.017303466796875, -0.05902099609375, 0.03497314453125, 0.0897216796875, 0.0197601318359375, -0.050537109375, -0.02044677734375, -0.01441192626953125, 0.03955078125, 0.03533935546875, -0.00506591796875, -0.025848388671875, -0.00323486328125, 0.07012939453125, 0.027862548828125, 0.007434844970703125, 0.03973388671875, 0.0256195068359375, -0.031341552734375, -0.0035686492919921875, 0.04461669921875, 0.044647216796875, -0.042755126953125, -0.0229949951171875, 0.048248291015625, 0.0029125213623046875, 0.000286102294921875, 0.00614166259765625, 0.037261962890625, 0.002613067626953125, -0.01496124267578125, 0.01538848876953125, -0.06982421875, 0.013214111328125, 0.0215301513671875, 0.010528564453125, -0.06573486328125, 0.0038585662841796875, -0.0213775634765625, 0.04193115234375, -0.0228271484375, 0.0288238525390625, 0.010955810546875, 0.0128631591796875, 0.024658203125, -0.03826904296875, 0.014556884765625, 0.0086517333984375, -0.046722412109375, 0.00826263427734375, -0.0200653076171875, 0.0193939208984375, -0.04083251953125, 0.011962890625, 0.0136260986328125, 0.0271759033203125, -0.032562255859375, -0.09490966796875, 0.01763916015625, -0.0011987686157226562, -0.01087188720703125, 0.06793212890625, -0.005809783935546875, 0.079833984375, 0.147705078125, -0.055572509765625, -0.018524169921875, 0.00824737548828125, 0.05224609375, -0.01220703125, -0.00647735595703125, -0.0114898681640625, -0.055633544921875, -0.025543212890625, 0.0121917724609375, 0.0118865966796875, 0.039825439453125, 0.0254669189453125, 0.0187835693359375, -0.030181884765625, -0.018310546875, -0.02191162109375, -0.004161834716796875, 0.0200042724609375, 0.0101776123046875, -0.020660400390625, 0.02545166015625, -0.0020847320556640625, 0.016998291015625, -0.020538330078125, -0.0108184814453125, 0.00858306884765625, 0.044189453125, -0.005298614501953125, -0.032196044921875, 0.0233001708984375, -0.00928497314453125, -0.03802490234375, -0.0276641845703125, 0.0169677734375, 0.04205322265625, 0.018218994140625, 0.027679443359375, 0.0274505615234375, 0.03765869140625, 0.0005488395690917969, 0.0155029296875, 0.00707244873046875, -0.025543212890625, 0.037261962890625, -0.01276397705078125, 0.056121826171875, 0.0230255126953125, -0.0906982421875, -0.0182342529296875, -0.0438232421875, -0.03253173828125, 0.056243896484375, 0.04412841796875, -0.01427459716796875, 0.007720947265625, 0.00846099853515625, -0.0262451171875, -0.03521728515625, 0.041748046875, 0.0237884521484375, -0.045074462890625, -0.0190277099609375, -0.0159759521484375, -0.01050567626953125, 0.01410675048828125, 0.020782470703125, 0.0174102783203125, -0.022552490234375, 0.0972900390625, -0.041473388671875, -0.0012073516845703125, -0.01340484619140625, 0.0112762451171875, -0.040740966796875, -0.03143310546875, 0.055572509765625, -0.0261077880859375, -0.023101806640625, -0.0008263587951660156, -0.057525634765625, 0.02978515625, 0.038177490234375, -0.0184326171875, 0.02789306640625, 0.0260772705078125, 0.00197601318359375, -0.0382080078125, 0.03240966796875, -0.005504608154296875, -0.023406982421875, -0.03460693359375, -0.01416778564453125, 0.040863037109375, 0.056610107421875, -0.0158233642578125, -0.0164947509765625, 0.049072265625, -0.04840087890625, 0.0235137939453125, -0.0024261474609375, 0.0487060546875, 0.032958984375, 0.03662109375, -0.007625579833984375, -0.0067291259765625, -0.013214111328125, 0.0159454345703125, 0.01268768310546875, 0.0126190185546875, 0.0208282470703125, -0.0171966552734375, 0.027618408203125, 0.0007081031799316406, 0.0018205642700195312, -0.08123779296875, -0.01512908935546875, 0.047119140625, 0.005001068115234375, 0.03350830078125, -0.0242767333984375, -0.031402587890625, -0.022369384765625, 0.0009908676147460938, 0.023101806640625, -0.0007371902465820312, -0.01323699951171875, -0.056854248046875, 0.036224365234375, 0.086181640625, 0.027984619140625, -0.039031982421875, 0.04296875, -0.058563232421875, 0.0054168701171875, 0.07623291015625, -0.02154541015625, 0.033294677734375, 0.0233001708984375, -0.04071044921875, 0.0406494140625, -0.008087158203125, -0.05780029296875, -0.00582122802734375, 0.0204925537109375, -0.005702972412109375, -0.0133209228515625, 0.009063720703125, 0.0238494873046875, 0.020294189453125, 0.05841064453125, 0.08306884765625, -0.026214599609375, -0.049102783203125, 0.038116455078125, -0.032135009765625, 0.0157318115234375, 0.049346923828125, 0.01441192626953125, -0.062286376953125, -0.060638427734375, 0.04473876953125, 0.042083740234375, -0.0489501953125, -0.10662841796875, 0.003612518310546875, -0.022796630859375, -0.05035400390625, -0.00315093994140625, -0.0236663818359375, -0.033721923828125, 0.01959228515625, 0.0037860870361328125, -0.01329803466796875, 0.01119232177734375, 0.048736572265625, 0.0160369873046875, -0.023590087890625, 0.043548583984375, -0.027618408203125, -0.0325927734375, -0.002643585205078125, 0.010162353515625, 0.01207733154296875, 0.01090240478515625, 0.0038700103759765625, 0.01471710205078125, 0.055908203125, -0.0254364013671875, -0.0228729248046875, -0.0028705596923828125, -0.02520751953125, 0.0269317626953125, -0.04156494140625, -0.0197906494140625, -0.048980712890625, 0.0189208984375, -0.045379638671875, -0.0067291259765625, 0.021820068359375, -0.0516357421875, -0.06427001953125, -0.0186767578125, -0.01074981689453125, 0.006107330322265625, -0.07366943359375, 0.022430419921875, 0.033050537109375, -0.01885986328125, -0.006984710693359375, 0.006622314453125, -0.0433349609375, -0.007442474365234375, 0.004756927490234375, -0.0019311904907226562, -0.039215087890625, 0.00411224365234375, -0.0169677734375, -0.0170440673828125, -0.0648193359375, -0.01454925537109375, 0.0094451904296875, -0.06475830078125, -0.01763916015625, -0.018768310546875, -0.0196990966796875, -0.003292083740234375, 0.0248565673828125, 0.0056610107421875, -0.005306243896484375, -0.0098419189453125, 0.00301361083984375, -0.009521484375, 0.01541900634765625, -0.016876220703125, 0.0023326873779296875, 0.0030231475830078125, 0.07379150390625, 0.0017719268798828125, 0.0789794921875, -0.0008444786071777344, 0.0267486572265625, -0.0145416259765625, 0.05804443359375, -0.0290069580078125, -0.011932373046875, -0.01080322265625, -0.01506805419921875, 0.0109405517578125, -0.020965576171875, -0.0006070137023925781, -0.0249176025390625, 0.0011081695556640625, -0.011474609375, -0.0091705322265625, 0.02569580078125 ]
d766011d7c8c9f46c3a6605f997c9449080af377
Wordpress Stackexchange Q: Post-Registration, post-meta hook? Is there a hook in WP to access meta data of a user JUST after they have registered and meta data has been added to the database? I was reading to use profile_update, but wouldn't that be invoked every time they update their profile? I just want something to occur the moment that they have registered, and the users meta has been entered in to the database. Please let me know, Thanks! Tre A: You can use user_register add_action('user_register', 'wpse42506_user_register', 10, 3); function wpse42506_user_register( $user_ID ) { // do stuff here } If you want to just use the user information, you can use get_userdata http://codex.wordpress.org/Function_Reference/get_userdata If you need more control, you can initiate a new WP_User http://codex.wordpress.org/Class_Reference/WP_User
Q: Post-Registration, post-meta hook? Is there a hook in WP to access meta data of a user JUST after they have registered and meta data has been added to the database? I was reading to use profile_update, but wouldn't that be invoked every time they update their profile? I just want something to occur the moment that they have registered, and the users meta has been entered in to the database. Please let me know, Thanks! Tre A: You can use user_register add_action('user_register', 'wpse42506_user_register', 10, 3); function wpse42506_user_register( $user_ID ) { // do stuff here } If you want to just use the user information, you can use get_userdata http://codex.wordpress.org/Function_Reference/get_userdata If you need more control, you can initiate a new WP_User http://codex.wordpress.org/Class_Reference/WP_User
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:417152", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42504" }
[ 0.0501708984375, 0.00791168212890625, -0.01079559326171875, -0.017333984375, 0.021697998046875, -0.024627685546875, 0.03057861328125, -0.043701171875, 0.0182647705078125, 0.050262451171875, -0.060272216796875, 0.01128387451171875, 0.017730712890625, 0.00461578369140625, -0.035614013671875, -0.033721923828125, 0.02276611328125, -0.00007241964340209961, 0.02874755859375, -0.00029015541076660156, -0.0084381103515625, 0.0182342529296875, 0.052001953125, -0.0147552490234375, 0.0149688720703125, -0.027740478515625, 0.050384521484375, -0.01412200927734375, 0.019439697265625, -0.00797271728515625, 0.0271453857421875, -0.01556396484375, -0.0009493827819824219, 0.01268768310546875, -0.0073089599609375, -0.0028076171875, 0.017364501953125, 0.0184783935546875, 0.017364501953125, 0.0171356201171875, 0.024505615234375, -0.0029850006103515625, -0.0439453125, 0.0439453125, -0.022064208984375, -0.0792236328125, 0.05084228515625, -0.0275421142578125, 0.031890869140625, 0.0299072265625, 0.03289794921875, 0.002391815185546875, 0.0279083251953125, -0.00914764404296875, 0.014007568359375, 0.029022216796875, -0.04437255859375, 0.0087890625, 0.0279998779296875, 0.0316162109375, -0.01136016845703125, -0.023162841796875, 0.00786590576171875, -0.050018310546875, 0.01031494140625, -0.02972412109375, -0.04803466796875, 0.0289306640625, -0.046295166015625, 0.015045166015625, 0.042999267578125, -0.031341552734375, -0.040435791015625, 0.01134490966796875, 0.00424957275390625, -0.00079345703125, 0.0256500244140625, -0.016326904296875, -0.0178985595703125, 0.06500244140625, -0.0188751220703125, -0.043548583984375, -0.0037899017333984375, 0.0122528076171875, -0.02813720703125, 0.023223876953125, -0.02557373046875, 0.0078277587890625, -0.019073486328125, -0.0284881591796875, -0.028076171875, -0.038055419921875, 0.0008759498596191406, -0.0073394775390625, -0.032073974609375, -0.01059722900390625, 0.03045654296875, 0.051605224609375, -0.029815673828125, -0.0253753662109375, -0.0033893585205078125, -0.032745361328125, -0.01007080078125, -0.01065826416015625, 0.0171356201171875, 0.0399169921875, -0.00962066650390625, -0.017791748046875, 0.005771636962890625, 0.0251007080078125, -0.00093841552734375, -0.0291748046875, -0.007083892822265625, -0.01358795166015625, -0.0237579345703125, 0.0273895263671875, -0.018798828125, -0.00042629241943359375, -0.0026702880859375, 0.0193939208984375, 0.004215240478515625, 0.0204620361328125, 0.0269622802734375, -0.048583984375, 0.0033054351806640625, -0.0191192626953125, -0.034393310546875, -0.036712646484375, -0.0377197265625, 0.01629638671875, 0.0008096694946289062, 0.018310546875, 0.0166778564453125, 0.0262451171875, -0.031646728515625, -0.00902557373046875, 0.023651123046875, -0.032623291015625, -0.01357269287109375, 0.03350830078125, -0.04248046875, -0.0567626953125, -0.027496337890625, -0.037689208984375, -0.0006527900695800781, 0.03271484375, 0.009368896484375, -0.01546478271484375, 0.023895263671875, 0.00335693359375, -0.09124755859375, 0.0005855560302734375, -0.0005512237548828125, 0.023651123046875, 0.037353515625, 0.047943115234375, 0.049468994140625, -0.0017442703247070312, -0.03631591796875, 0.00887298583984375, 0.0290069580078125, -0.0233917236328125, 0.0045928955078125, 0.0079498291015625, -0.04345703125, 0.036712646484375, -0.021514892578125, -0.014007568359375, 0.0234832763671875, 0.03302001953125, 0.07708740234375, 0.018890380859375, -0.00225830078125, -0.005428314208984375, 0.0036182403564453125, -0.05029296875, 0.002399444580078125, 0.0237579345703125, 0.0126190185546875, 0.0105438232421875, -0.0172119140625, -0.026580810546875, 0.05987548828125, -0.025543212890625, -0.04644775390625, 0.0723876953125, 0.01305389404296875, 0.059600830078125, 0.007434844970703125, 0.00981903076171875, 0.027587890625, 0.0445556640625, -0.029632568359375, 0.0189361572265625, 0.00780487060546875, -0.0112457275390625, 0.018646240234375, -0.001598358154296875, 0.006011962890625, -0.0250244140625, 0.011077880859375, 0.0102691650390625, -0.003749847412109375, -0.00699615478515625, -0.09033203125, 0.0272064208984375, -0.041595458984375, 0.045074462890625, 0.0024738311767578125, -0.00148773193359375, 0.0146942138671875, -0.035797119140625, -0.00463104248046875, -0.0015010833740234375, -0.03662109375, -0.01479339599609375, -0.04339599609375, 0.049346923828125, 0.01470947265625, 0.070556640625, 0.0182647705078125, -0.047760009765625, 0.0195465087890625, -0.033416748046875, 0.0196990966796875, 0.00970458984375, -0.015533447265625, -0.0090789794921875, -0.004291534423828125, 0.01154327392578125, -0.036773681640625, 0.01922607421875, -0.058319091796875, -0.049896240234375, -0.0307464599609375, 0.0001423358917236328, -0.002330780029296875, -0.05218505859375, 0.02020263671875, 0.047271728515625, 0.02117919921875, 0.0142974853515625, -0.0013484954833984375, 0.02764892578125, 0.0174407958984375, -0.0005841255187988281, 0.032196044921875, 0.0013713836669921875, 0.0251312255859375, 0.08880615234375, -0.01163482666015625, 0.024200439453125, -0.0029735565185546875, -0.015167236328125, -0.0015230178833007812, 0.0312042236328125, -0.02117919921875, 0.0019550323486328125, -0.007720947265625, -0.036651611328125, 0.01230621337890625, -0.056854248046875, -0.026763916015625, -0.02276611328125, 0.008331298828125, -0.0064697265625, 0.01525115966796875, 0.016693115234375, 0.00284576416015625, -0.01274871826171875, 0.01861572265625, 0.007747650146484375, 0.01324462890625, 0.0007333755493164062, -0.033477783203125, 0.034515380859375, -0.032073974609375, 0.006381988525390625, 0.02166748046875, -0.006977081298828125, -0.01324462890625, -0.00952911376953125, -0.0185699462890625, -0.0040740966796875, 0.03900146484375, -0.0266571044921875, -0.00510406494140625, -0.007556915283203125, -0.0015707015991210938, -0.0263824462890625, 0.00605010986328125, 0.0218963623046875, -0.023590087890625, 0.041046142578125, -0.0077667236328125, -0.022491455078125, 0.007083892822265625, -0.007244110107421875, 0.01302337646484375, -0.017578125, 0.02020263671875, 0.05950927734375, -0.017333984375, 0.004070281982421875, -0.01271820068359375, -0.048675537109375, -0.059173583984375, 0.030548095703125, 0.00611114501953125, -0.069580078125, 0.01100921630859375, 0.08673095703125, 0.02252197265625, 0.0467529296875, 0.0068359375, -0.027587890625, -0.005069732666015625, 0.0202484130859375, -0.05084228515625, -0.047637939453125, -0.08355712890625, -0.078125, 0.00420379638671875, -0.03302001953125, -0.0299072265625, 0.03466796875, -0.0250396728515625, 0.03631591796875, -0.01934814453125, -0.0273895263671875, -0.06353759765625, -0.0704345703125, -0.068115234375, 0.004970550537109375, -0.00617218017578125, 0.0167083740234375, 0.0029850006103515625, 0.018951416015625, -0.007518768310546875, -0.032562255859375, -0.005817413330078125, -0.014404296875, -0.0128631591796875, -0.0192413330078125, -0.00839996337890625, -0.035430908203125, 0.01849365234375, -0.01042938232421875, -0.01416778564453125, 0.005107879638671875, 0.01422119140625, -0.017852783203125, 0.030120849609375, -0.047332763671875, 0.04681396484375, 0.0212554931640625, -0.059844970703125, 0.003261566162109375, 0.07330322265625, -0.03533935546875, 0.0322265625, -0.007808685302734375, -0.02142333984375, -0.05859375, 0.0024547576904296875, -0.01047515869140625, -0.0283050537109375, -0.0166778564453125, -0.020263671875, 0.00020372867584228516, -0.005771636962890625, -0.0012798309326171875, 0.0101776123046875, -0.02386474609375, -0.03155517578125, 0.011016845703125, -0.0301055908203125, -0.00464630126953125, 0.01337432861328125, -0.0282440185546875, 0.0499267578125, -0.0255889892578125, 0.059051513671875, -0.059478759765625, -0.0635986328125, 0.0614013671875, 0.01197052001953125, 0.04205322265625, -0.0633544921875, -0.057342529296875, -0.0248565673828125, 0.1165771484375, -0.00402069091796875, -0.0200653076171875, 0.01540374755859375, 0.01244354248046875, -0.049072265625, 0.01479339599609375, -0.054046630859375, 0.01406097412109375, -0.06341552734375, -0.0008144378662109375, -0.0000731348991394043, -0.0179443359375, -0.016143798828125, 0.0247955322265625, -0.04229736328125, -0.0198516845703125, 0.03131103515625, -0.028900146484375, 0.004825592041015625, 0.009979248046875, -0.01450347900390625, -0.0165863037109375, -0.01351165771484375, -0.01406097412109375, -0.04254150390625, -0.015380859375, -0.0227203369140625, 0.04595947265625, 0.042816162109375, -0.046417236328125, -0.00043320655822753906, 0.01947021484375, 0.0144805908203125, 0.042510986328125, -0.004032135009765625, 0.01629638671875, -0.00909423828125, -0.044342041015625, 0.0075531005859375, -0.033294677734375, -0.005268096923828125, -0.03173828125, 0.007732391357421875, 0.0234832763671875, -0.04949951171875, 0.034576416015625, -0.040496826171875, 0.01120758056640625, -0.01486968994140625, -0.00543212890625, -0.01502227783203125, 0.01483917236328125, -0.0216064453125, 0.009979248046875, -0.01512908935546875, -0.0465087890625, 0.025604248046875, -0.017059326171875, -0.01076507568359375, -0.0036640167236328125, 0.06268310546875, 0.0293731689453125, -0.01422119140625, 0.0212249755859375, -0.003559112548828125, 0.0487060546875, -0.009857177734375, 0.01509857177734375, 0.029266357421875, -0.034881591796875, 0.03411865234375, 0.0237274169921875, -0.0002689361572265625, -0.02679443359375, 0.0401611328125, 0.010284423828125, -0.01055145263671875, 0.00812530517578125, 0.00885009765625, -0.0035858154296875, -0.005855560302734375, -0.0055084228515625, -0.0293426513671875, 0.028472900390625, 0.033599853515625, -0.0214691162109375, 0.044219970703125, -0.0192718505859375, -0.005767822265625, -0.00707244873046875, -0.037628173828125, 0.00598907470703125, -0.004940032958984375, 0.0006937980651855469, -0.03521728515625, 0.005126953125, -0.0177459716796875, -0.039703369140625, -0.054168701171875, 0.003963470458984375, 0.01515960693359375, -0.057464599609375, -0.0004925727844238281, -0.0171051025390625, -0.01080322265625, 0.034912109375, -0.0206756591796875, -0.07244873046875, 0.01398468017578125, -0.0171051025390625, 0.05462646484375, 0.04412841796875, 0.013153076171875, 0.057952880859375, 0.0224761962890625, -0.0024204254150390625, -0.0267181396484375, -0.0110626220703125, 0.00394439697265625, -0.056427001953125, 0.0133056640625, 0.0178070068359375, -0.0150604248046875, 0.01486968994140625, 0.0498046875, 0.0037689208984375, 0.016876220703125, -0.01788330078125, 0.05914306640625, 0.035186767578125, 0.0285491943359375, 0.01148223876953125, -0.004764556884765625, -0.0113525390625, 0.0032024383544921875, -0.01113128662109375, -0.0192413330078125, 0.047821044921875, -0.00012934207916259766, 0.023406982421875, 0.03460693359375, -0.0283660888671875, 0.01232147216796875, -0.047515869140625, -0.0001195073127746582, 0.0194091796875, -0.01031494140625, -0.03863525390625, -0.0107574462890625, 0.0350341796875, 0.029876708984375, -0.0277557373046875, 0.01641845703125, 0.0179901123046875, 0.029449462890625, 0.0467529296875, -0.044952392578125, 0.039459228515625, -0.0167999267578125, -0.01971435546875, 0.006244659423828125, -0.0152435302734375, -0.01079559326171875, 0.012176513671875, 0.0279388427734375, -0.0180816650390625, -0.020599365234375, 0.046630859375, -0.013916015625, -0.0030574798583984375, -0.0692138671875, 0.052642822265625, -0.08184814453125, -0.01340484619140625, 0.05908203125, 0.0283050537109375, -0.03662109375, 0.004779815673828125, -0.0167083740234375, 0.00791168212890625, 0.0306243896484375, -0.06329345703125, -0.005229949951171875, -0.03521728515625, 0.0031871795654296875, 0.026214599609375, -0.00832366943359375, -0.0259857177734375, 0.002582550048828125, 0.0028228759765625, 0.00435638427734375, 0.030487060546875, -0.0129547119140625, 0.0828857421875, -0.006488800048828125, 0.051849365234375, 0.0174560546875, 0.032623291015625, -0.03662109375, -0.01342010498046875, -0.0107269287109375, -0.043975830078125, -0.0221405029296875, -0.00965118408203125, -0.0014181137084960938, 0.034637451171875, 0.039154052734375, 0.0014295578002929688, -0.007350921630859375, -0.00437164306640625, -0.0028476715087890625, -0.006549835205078125, 0.03924560546875, 0.033416748046875, -0.01806640625, 0.045318603515625, -0.0057830810546875, -0.008087158203125, 0.0022754669189453125, -0.002826690673828125, 0.0241851806640625, 0.00122833251953125, 0.006755828857421875, -0.0203399658203125, -0.0137481689453125, 0.00627899169921875, 0.0411376953125, 0.0006151199340820312, 0.029541015625, 0.0183868408203125, 0.01102447509765625, 0.0197906494140625, -0.0172882080078125, -0.0240631103515625, 0.0150299072265625, 0.0355224609375, -0.0101470947265625, 0.006122589111328125, 0.0298614501953125, -0.01126861572265625, 0.00592041015625, 0.049407958984375, 0.045654296875, -0.0738525390625, 0.0089569091796875, 0.01319122314453125, -0.02056884765625, 0.0027446746826171875, 0.0054931640625, -0.045257568359375, -0.019134521484375, 0.031463623046875, -0.040374755859375, -0.0268707275390625, 0.033905029296875, 0.0231781005859375, -0.00598907470703125, -0.007129669189453125, 0.038116455078125, 0.009765625, 0.042144775390625, -0.023406982421875, -0.02032470703125, 0.0028400421142578125, -0.03533935546875, -0.0005903244018554688, 0.0194854736328125, -0.01371002197265625, -0.061676025390625, 0.01204681396484375, -0.007781982421875, -0.0189361572265625, 0.03240966796875, 0.00464630126953125, 0.06842041015625, 0.0246429443359375, 0.0323486328125, -0.0396728515625, -0.00547027587890625, 0.0203399658203125, -0.07183837890625, -0.056549072265625, -0.029266357421875, 0.0311431884765625, -0.01300811767578125, 0.042877197265625, 0.009979248046875, -0.043212890625, -0.00023889541625976562, -0.04302978515625, 0.050323486328125, -0.0438232421875, -0.0088348388671875, 0.0084075927734375, -0.003032684326171875, -0.0013751983642578125, 0.0269622802734375, 0.0016345977783203125, 0.01239013671875, 0.0230560302734375, 0.01387786865234375, -0.0215301513671875, -0.01042938232421875, 0.0205078125, -0.0572509765625, 0.06829833984375, -0.00469970703125, 0.011138916015625, -0.0087432861328125, 0.0215606689453125, -0.0041961669921875, 0.01126861572265625, -0.07025146484375, 0.10321044921875, 0.029754638671875, 0.07080078125, -0.062469482421875, 0.001384735107421875, 0.02294921875, 0.00872039794921875, 0.071044921875, 0.0267333984375, -0.0178680419921875, -0.0361328125, -0.0286102294921875, -0.009521484375, -0.049560546875, 0.050018310546875, -0.00229644775390625, 0.039215087890625, 0.04632568359375, -0.0390625, 0.04144287109375, -0.025848388671875, -0.0230255126953125, 0.003917694091796875, -0.001277923583984375, -0.016387939453125, -0.020843505859375, 0.0687255859375, -0.0202178955078125, -0.01448822021484375, 0.01265716552734375, 0.0008344650268554688, -0.00146484375, 0.02960205078125, 0.00743865966796875, 0.03985595703125, 0.0241241455078125, -0.025238037109375, 0.041595458984375, 0.01470184326171875, 0.0170745849609375, 0.0218048095703125, 0.01580810546875, 0.06439208984375, 0.01104736328125, 0.0012826919555664062, 0.039642333984375, 0.00797271728515625, 0.10015869140625, 0.008636474609375, 0.018280029296875, -0.08026123046875, -0.00821685791015625, 0.0567626953125, 0.11895751953125, -0.0640869140625, -0.04705810546875, 0.01045989990234375, 0.0006265640258789062, 0.00568389892578125, 0.03912353515625, 0.0285491943359375, -0.0019426345825195312, 0.01311492919921875, -0.0177459716796875, -0.020294189453125, -0.01448822021484375, 0.034210205078125, -0.005489349365234375, 0.005901336669921875, -0.009063720703125, -0.03887939453125, -0.01580810546875, 0.0002772808074951172, 0.0138092041015625, 0.006145477294921875, -0.0021533966064453125, 0.02313232421875, 0.044677734375, 0.016143798828125, -0.00009888410568237305, 0.03997802734375, 0.00838470458984375, -0.0008335113525390625, -0.035308837890625, -0.047607421875, 0.0142669677734375, 0.032135009765625, 0.0010786056518554688, 0.019927978515625, 0.04736328125, 0.046844482421875, -0.043121337890625, -0.0278778076171875, 0.036224365234375, -0.0192413330078125, 0.017578125, -0.03167724609375, 0.040069580078125, 0.003204345703125, 0.0171966552734375, -0.051025390625, 0.04632568359375, 0.0231475830078125, -0.038421630859375, 0.040618896484375, -0.006595611572265625, -0.042388916015625, 0.00787353515625, 0.0021686553955078125, 0.07244873046875, 0.0012292861938476562, -0.07916259765625, 0.00667572021484375, -0.04425048828125, -0.05670166015625, 0.033538818359375, 0.038665771484375, -0.04010009765625, 0.03021240234375, -0.0183258056640625, -0.0211029052734375, 0.048553466796875, -0.0208282470703125, -0.0030231475830078125, 0.011688232421875, 0.00618743896484375, -0.0158538818359375, -0.021820068359375, -0.0015363693237304688, 0.004116058349609375, 0.015838623046875, -0.010345458984375, 0.06646728515625, -0.014373779296875, 0.003376007080078125, -0.038177490234375, -0.01465606689453125, 0.0039005279541015625, -0.03546142578125, 0.019744873046875, 0.0207061767578125, -0.01068878173828125, -0.0131378173828125, -0.053314208984375, 0.039306640625, 0.036285400390625, 0.0253143310546875, 0.047607421875, -0.0125732421875, 0.0063018798828125, -0.01250457763671875, -0.01123046875, -0.0372314453125, -0.03912353515625, -0.018157958984375, 0.015960693359375, 0.01568603515625, 0.01398468017578125, -0.0122222900390625, -0.001087188720703125, -0.006450653076171875, -0.02215576171875, -0.01024627685546875, 0.0275421142578125, -0.033050537109375, 0.00726318359375, -0.013885498046875, 0.01385498046875, 0.00681304931640625, -0.01485443115234375, 0.0274505615234375, 0.0031452178955078125, 0.00434112548828125, 0.0218505859375, -0.003467559814453125, 0.00878143310546875, 0.037872314453125, 0.062103271484375, 0.007099151611328125, 0.0180206298828125, 0.014007568359375, -0.00487518310546875, -0.0221405029296875, -0.0648193359375, -0.03741455078125, -0.055419921875, -0.004421234130859375, 0.0305633544921875, -0.037353515625, -0.050567626953125, -0.0833740234375, -0.001415252685546875, 0.0309600830078125, 0.0028514862060546875, -0.045501708984375, 0.01285552978515625, -0.016387939453125, 0.0479736328125, -0.00927734375, -0.05419921875, 0.0287017822265625, 0.050384521484375, 0.0014600753784179688, 0.0295257568359375, -0.00377655029296875, -0.0347900390625, 0.0198211669921875, -0.0013580322265625, 0.0283355712890625, -0.00595855712890625, -0.045379638671875, 0.011138916015625, -0.02777099609375, 0.053497314453125, -0.0151519775390625, -0.0207977294921875, -0.0196685791015625, 0.034027099609375, 0.0228271484375, -0.06866455078125, -0.035247802734375, 0.01084136962890625, 0.0184326171875, -0.0340576171875, 0.031829833984375, 0.049835205078125, -0.03570556640625, -0.10186767578125, 0.0902099609375, -0.03961181640625, -0.0384521484375, -0.0538330078125, 0.01528167724609375, 0.0246734619140625, -0.0294189453125, -0.0239105224609375, -0.001903533935546875, -0.0416259765625, 0.008819580078125, 0.0178985595703125, -0.0284881591796875, 0.039093017578125, 0.0030460357666015625, -0.053985595703125, 0.0155792236328125, 0.0045318603515625, -0.022125244140625, 0.01053619384765625, 0.0026760101318359375, 0.03277587890625, 0.030670166015625, -0.038848876953125, 0.0399169921875, 0.0095367431640625, 0.001888275146484375, -0.02825927734375, -0.06707763671875, 0.0021190643310546875, -0.0099334716796875, 0.10296630859375, 0.0037555694580078125, 0.01395416259765625, -0.04315185546875, -0.01177215576171875, -0.011383056640625, -0.0176849365234375, -0.01551055908203125, 0.01522064208984375, -0.067138671875, -0.016143798828125, 0.007488250732421875, -0.01739501953125, -0.034698486328125, -0.00399017333984375, -0.050567626953125, -0.0084686279296875, 0.01428985595703125, 0.0116119384765625, -0.01317596435546875, -0.0361328125, 0.0164031982421875, -0.016998291015625, -0.019927978515625, 0.018768310546875, 0.0151519775390625, -0.024169921875, 0.03802490234375, 0.0280303955078125, 0.0219573974609375, -0.0233612060546875, 0.0207061767578125, 0.00946044921875, 0.00811004638671875, -0.036590576171875, -0.0183258056640625, 0.00849151611328125, 0.0399169921875, 0.00466156005859375, 0.062286376953125, 0.01174163818359375, 0.016632080078125, 0.0081634521484375, -0.007762908935546875, -0.0318603515625, 0.018646240234375, -0.033905029296875, 0.04595947265625, -0.0307464599609375, -0.00124359130859375, 0.0257110595703125, -0.0077667236328125, -0.002552032470703125, 0.01194000244140625, 0.00968170166015625, -0.029815673828125, 0.002735137939453125, 0.010650634765625, 0.005542755126953125, -0.005008697509765625 ]
4037b9a9b912c793fdcea4390d8b5d9ea0645600
Wordpress Stackexchange Q: Passing variables through permalink structure I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as /accommodation/ - but still show the /accommodation/value1/ in the browser address bar. I guess another way of putting it would be to say I need to be able to access /accommodation/ by adding anything I like to the end of the URL, whilst retaining the URL I entered in the browser window. I've then got some code in the page template which does different things based on the values passed into the page. Whilst I could use a query string, I want to avoid doing that so I can keep the "pretty URLs". Many thanks for any help / suggestions. A: Solved it! // Register the variables that will be used as parameters on the url function add_my_var($public_query_vars) { $public_query_vars[] = 'extra_slug'; return $public_query_vars; } add_filter('query_vars', 'add_my_var'); // Build the rewrite rules, for the extra parameter function do_rewrite() { add_rewrite_rule('(accommodation)/[/]?([^/]*)$', 'index.php?pagename=accommodation&extra_slug=$matches[2]','top'); } add_action('init', 'do_rewrite'); // The parameter is now accessible get_query_var('extra_slug')
Q: Passing variables through permalink structure I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as /accommodation/ - but still show the /accommodation/value1/ in the browser address bar. I guess another way of putting it would be to say I need to be able to access /accommodation/ by adding anything I like to the end of the URL, whilst retaining the URL I entered in the browser window. I've then got some code in the page template which does different things based on the values passed into the page. Whilst I could use a query string, I want to avoid doing that so I can keep the "pretty URLs". Many thanks for any help / suggestions. A: Solved it! // Register the variables that will be used as parameters on the url function add_my_var($public_query_vars) { $public_query_vars[] = 'extra_slug'; return $public_query_vars; } add_filter('query_vars', 'add_my_var'); // Build the rewrite rules, for the extra parameter function do_rewrite() { add_rewrite_rule('(accommodation)/[/]?([^/]*)$', 'index.php?pagename=accommodation&extra_slug=$matches[2]','top'); } add_action('init', 'do_rewrite'); // The parameter is now accessible get_query_var('extra_slug')
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:417176", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42600" }
[ 0.06610107421875, -0.014495849609375, 0.003391265869140625, -0.06585693359375, -0.00555419921875, -0.01351165771484375, 0.005359649658203125, -0.0026702880859375, -0.01555633544921875, -0.002597808837890625, -0.029144287109375, 0.0132293701171875, -0.03533935546875, -0.02899169921875, 0.0289154052734375, -0.0246429443359375, 0.0193634033203125, -0.0185394287109375, 0.00811004638671875, -0.0283660888671875, 0.0235595703125, -0.0215606689453125, 0.026397705078125, 0.052215576171875, 0.046112060546875, 0.015350341796875, 0.00006151199340820312, -0.0212860107421875, -0.0012712478637695312, -0.0226593017578125, 0.0120391845703125, 0.00434112548828125, 0.0158538818359375, 0.0094757080078125, 0.0269927978515625, 0.0166778564453125, 0.0504150390625, -0.0079803466796875, 0.012725830078125, 0.03802490234375, 0.04345703125, -0.0390625, -0.0013532638549804688, 0.038116455078125, -0.0016622543334960938, -0.044921875, 0.038360595703125, -0.0577392578125, -0.0071258544921875, -0.006984710693359375, 0.005039215087890625, 0.04931640625, 0.011505126953125, 0.01611328125, 0.0018987655639648438, 0.0188446044921875, 0.044952392578125, -0.07098388671875, 0.0167388916015625, -0.0008525848388671875, -0.0283966064453125, -0.01727294921875, 0.0275726318359375, -0.02862548828125, -0.00798797607421875, 0.001674652099609375, 0.0007219314575195312, 0.019683837890625, -0.045684814453125, 0.003681182861328125, 0.042999267578125, -0.034576416015625, -0.04022216796875, 0.01277923583984375, -0.0233306884765625, -0.028594970703125, 0.038726806640625, -0.01300811767578125, -0.0263671875, 0.0460205078125, 0.00860595703125, -0.0206756591796875, -0.03118896484375, 0.0123443603515625, 0.007717132568359375, 0.048004150390625, -0.011383056640625, -0.023773193359375, 0.00174713134765625, -0.016510009765625, -0.01526641845703125, 0.0123138427734375, 0.01751708984375, 0.00102996826171875, -0.023681640625, -0.01337432861328125, 0.01329803466796875, 0.0142364501953125, 0.0192413330078125, 0.02569580078125, 0.008392333984375, -0.048980712890625, 0.046295166015625, -0.041839599609375, -0.032012939453125, 0.028717041015625, 0.07049560546875, 0.09698486328125, 0.010650634765625, -0.0027332305908203125, 0.0046539306640625, 0.013519287109375, -0.0301971435546875, 0.018646240234375, -0.043304443359375, 0.005771636962890625, -0.05670166015625, -0.017913818359375, -0.0249481201171875, 0.0174102783203125, -0.0291900634765625, 0.002918243408203125, -0.026824951171875, 0.0103912353515625, 0.0057830810546875, -0.0135040283203125, 0.01552581787109375, 0.0038928985595703125, -0.0210723876953125, 0.044921875, -0.00811004638671875, 0.0180816650390625, -0.00022733211517333984, 0.0006237030029296875, -0.039520263671875, -0.01403045654296875, 0.0391845703125, -0.01377105712890625, -0.00788116455078125, 0.033294677734375, -0.027557373046875, -0.04827880859375, -0.0129547119140625, -0.0158843994140625, -0.0247955322265625, 0.0283660888671875, 0.02703857421875, 0.01305389404296875, -0.034454345703125, -0.0654296875, -0.0007109642028808594, -0.043853759765625, 0.04608154296875, 0.014404296875, -0.056854248046875, 0.027008056640625, -0.0082550048828125, 0.003887176513671875, -0.055328369140625, -0.0161895751953125, -0.0182037353515625, -0.0005221366882324219, 0.022247314453125, -0.0377197265625, -0.021087646484375, -0.034271240234375, -0.0305938720703125, 0.0025577545166015625, -0.0005922317504882812, 0.055999755859375, 0.01568603515625, -0.0016040802001953125, -0.0335693359375, -0.0091400146484375, -0.0025653839111328125, -0.029327392578125, -0.0173492431640625, 0.03173828125, 0.010498046875, 0.032806396484375, 0.031524658203125, -0.035430908203125, 0.0274658203125, -0.0016632080078125, -0.06787109375, 0.0654296875, -0.0201263427734375, 0.036956787109375, 0.0155029296875, -0.02105712890625, 0.047149658203125, 0.025299072265625, -0.036285400390625, 0.030181884765625, -0.045989990234375, -0.0096893310546875, 0.027740478515625, 0.0360107421875, -0.019927978515625, 0.0090789794921875, -0.0014810562133789062, 0.0017538070678710938, 0.0228424072265625, 0.0219879150390625, 0.01947021484375, 0.0013742446899414062, 0.00293731689453125, 0.00450897216796875, 0.0007529258728027344, 0.029937744140625, 0.027862548828125, 0.031402587890625, -0.048553466796875, -0.01546478271484375, -0.0162811279296875, 0.02850341796875, 0.01165008544921875, 0.0560302734375, 0.000031888484954833984, 0.043853759765625, 0.048492431640625, -0.0770263671875, 0.029876708984375, 0.0245513916015625, 0.030364990234375, -0.0232086181640625, -0.011749267578125, -0.02496337890625, -0.0110321044921875, -0.0100250244140625, -0.059112548828125, 0.056976318359375, -0.0005755424499511719, -0.0017948150634765625, -0.0245208740234375, 0.00861358642578125, -0.00814056396484375, -0.006832122802734375, -0.0161590576171875, 0.0293121337890625, 0.0345458984375, 0.05047607421875, -0.055450439453125, -0.061798095703125, 0.031982421875, -0.07257080078125, -0.0221405029296875, -0.01497650146484375, -0.0097503662109375, 0.047698974609375, -0.01399993896484375, 0.032135009765625, 0.005523681640625, -0.0174407958984375, -0.0285186767578125, 0.038909912109375, -0.00891876220703125, -0.0115203857421875, -0.02764892578125, 0.02154541015625, -0.00559234619140625, -0.015960693359375, -0.0146026611328125, -0.00901031494140625, -0.0035533905029296875, -0.0213470458984375, -0.0198822021484375, -0.0276641845703125, -0.01197052001953125, -0.005901336669921875, 0.017852783203125, -0.0240478515625, -0.04412841796875, -0.01006317138671875, 0.01396942138671875, -0.071533203125, -0.0224151611328125, 0.048614501953125, -0.065185546875, -0.03662109375, -0.00728607177734375, 0.07757568359375, 0.0233917236328125, -0.0169677734375, -0.02825927734375, -0.0341796875, -0.005115509033203125, -0.0225067138671875, 0.06072998046875, -0.0015001296997070312, 0.034759521484375, -0.01497650146484375, -0.0153045654296875, 0.0438232421875, -0.0030040740966796875, -0.052093505859375, 0.006519317626953125, 0.00916290283203125, 0.01074981689453125, -0.0279998779296875, 0.005184173583984375, 0.032379150390625, -0.01079559326171875, -0.01486968994140625, -0.0007796287536621094, -0.01546478271484375, -0.006687164306640625, 0.022064208984375, 0.0090789794921875, -0.0499267578125, 0.0011425018310546875, 0.021636962890625, 0.029876708984375, 0.00025177001953125, 0.029266357421875, -0.00920867919921875, -0.0069427490234375, 0.01898193359375, -0.046630859375, -0.058624267578125, -0.005977630615234375, -0.05133056640625, -0.00969696044921875, 0.024658203125, -0.030487060546875, -0.00946807861328125, 0.04388427734375, -0.00557708740234375, -0.01534271240234375, -0.02764892578125, -0.057891845703125, -0.0584716796875, -0.06634521484375, 0.0052337646484375, -0.00504302978515625, 0.007152557373046875, 0.00402069091796875, 0.0110015869140625, -0.0008287429809570312, -0.002956390380859375, 0.02886962890625, -0.054931640625, 0.006374359130859375, 0.005481719970703125, -0.0249481201171875, -0.03564453125, 0.01519012451171875, -0.0311431884765625, 0.1158447265625, 0.035064697265625, -0.0130615234375, 0.041046142578125, -0.01617431640625, 0.00449371337890625, 0.01412200927734375, 0.00970458984375, 0.0144195556640625, -0.0123443603515625, 0.017547607421875, -0.053009033203125, -0.042388916015625, -0.01277923583984375, -0.056304931640625, -0.0188140869140625, 0.054229736328125, -0.0038242340087890625, -0.0171356201171875, -0.014007568359375, -0.0125732421875, -0.0164642333984375, 0.047454833984375, -0.050018310546875, 0.0107574462890625, -0.0251312255859375, -0.00690460205078125, -0.0186309814453125, 0.0234222412109375, -0.01457977294921875, 0.0343017578125, 0.0208282470703125, -0.0015554428100585938, -0.007442474365234375, 0.00104522705078125, -0.03289794921875, -0.0232086181640625, 0.04571533203125, -0.0054168701171875, 0.0230255126953125, -0.055145263671875, -0.0303955078125, -0.054443359375, 0.06243896484375, -0.0181884765625, -0.0260772705078125, 0.0150299072265625, 0.022308349609375, -0.055908203125, -0.020782470703125, -0.0256805419921875, -0.000789642333984375, -0.02703857421875, 0.005283355712890625, -0.016632080078125, -0.00887298583984375, -0.0175933837890625, -0.002262115478515625, -0.0036563873291015625, -0.0293121337890625, 0.0311737060546875, 0.019378662109375, -0.0022907257080078125, 0.0232086181640625, 0.0017642974853515625, 0.00510406494140625, -0.033294677734375, 0.0167388916015625, -0.03485107421875, -0.034423828125, 0.051055908203125, 0.05096435546875, 0.0181732177734375, -0.058258056640625, 0.00043964385986328125, 0.05328369140625, 0.00296783447265625, 0.013214111328125, 0.0101318359375, -0.00795745849609375, 0.024505615234375, -0.00351715087890625, -0.00754547119140625, -0.0072174072265625, 0.0189056396484375, 0.012237548828125, -0.044525146484375, -0.013916015625, -0.027557373046875, -0.0254364013671875, 0.0310821533203125, -0.04931640625, -0.06011962890625, -0.00482177734375, 0.023834228515625, 0.0024623870849609375, 0.013763427734375, -0.014434814453125, 0.00705718994140625, -0.035186767578125, 0.018585205078125, 0.0008358955383300781, -0.003833770751953125, -0.01364898681640625, 0.03509521484375, 0.0215301513671875, -0.0272216796875, 0.050323486328125, 0.04083251953125, 0.0445556640625, -0.0005545616149902344, 0.0277557373046875, 0.0213623046875, -0.0180816650390625, 0.00965118408203125, 0.0241546630859375, 0.007396697998046875, -0.022430419921875, 0.005657196044921875, 0.012359619140625, -0.0139617919921875, -0.0078125, 0.01206207275390625, 0.03509521484375, 0.03466796875, -0.016815185546875, -0.0006995201110839844, -0.03875732421875, 0.030364990234375, -0.01508331298828125, 0.040435791015625, -0.032958984375, -0.01904296875, 0.016448974609375, 0.0186920166015625, 0.0552978515625, 0.0174102783203125, -0.0028438568115234375, 0.0181427001953125, -0.0194549560546875, -0.01197052001953125, 0.03277587890625, 0.037139892578125, -0.019195556640625, 0.0293426513671875, 0.0030384063720703125, -0.04345703125, 0.0095367431640625, -0.002391815185546875, -0.004016876220703125, 0.0017223358154296875, -0.02166748046875, -0.04241943359375, 0.00835418701171875, 0.0404052734375, 0.008636474609375, 0.0146636962890625, 0.00479888916015625, 0.042724609375, 0.01023101806640625, 0.010040283203125, 0.0303955078125, 0.0323486328125, -0.005870819091796875, 0.040679931640625, 0.0035533905029296875, -0.003627777099609375, -0.0311126708984375, 0.08087158203125, -0.0086822509765625, 0.0171966552734375, -0.004154205322265625, -0.004558563232421875, -0.00971221923828125, 0.011932373046875, 0.017822265625, 0.005832672119140625, 0.0235443115234375, -0.0288848876953125, 0.037567138671875, -0.01160430908203125, 0.0038928985595703125, 0.0162200927734375, 0.03692626953125, -0.0256500244140625, -0.018798828125, 0.01129150390625, -0.036376953125, -0.0268402099609375, 0.001953125, -0.0162506103515625, -0.0382080078125, -0.028045654296875, 0.00852203369140625, 0.0292510986328125, 0.0150909423828125, 0.0054779052734375, 0.00222015380859375, -0.0167388916015625, 0.01528167724609375, 0.0201416015625, 0.01102447509765625, -0.024566650390625, -0.027191162109375, 0.055633544921875, 0.0005826950073242188, -0.02069091796875, -0.039154052734375, -0.008026123046875, -0.0341796875, 0.00791168212890625, 0.066650390625, -0.0032749176025390625, 0.0220947265625, -0.0177459716796875, -0.0230865478515625, 0.0443115234375, -0.030853271484375, 0.06646728515625, 0.007049560546875, -0.01197052001953125, -0.0024394989013671875, -0.037567138671875, -0.00446319580078125, -0.00864410400390625, -0.01898193359375, -0.0026416778564453125, -0.00881195068359375, -0.0206298828125, 0.0204315185546875, 0.00589752197265625, 0.0362548828125, -0.0215606689453125, 0.02947998046875, 0.00579071044921875, 0.047943115234375, -0.003459930419921875, 0.039581298828125, -0.0391845703125, -0.01168060302734375, -0.006549835205078125, 0.008514404296875, -0.00858306884765625, -0.006717681884765625, -0.004268646240234375, -0.03851318359375, -0.029632568359375, 0.0005521774291992188, 0.00669097900390625, 0.02783203125, 0.056304931640625, 0.00038623809814453125, 0.003070831298828125, 0.006439208984375, 0.019561767578125, -0.032501220703125, 0.005451202392578125, -0.02850341796875, -0.00901031494140625, -0.004222869873046875, 0.0116729736328125, 0.0286407470703125, -0.030853271484375, 0.0007939338684082031, 0.00843048095703125, -0.003818511962890625, 0.0216522216796875, -0.0185394287109375, -0.06689453125, 0.0264892578125, 0.131591796875, 0.03887939453125, 0.0753173828125, 0.0017852783203125, 0.04412841796875, 0.0789794921875, -0.002422332763671875, 0.038726806640625, -0.00608062744140625, 0.04168701171875, -0.00301361083984375, 0.0191802978515625, 0.042388916015625, -0.018524169921875, 0.0161590576171875, 0.058074951171875, 0.055328369140625, -0.08392333984375, 0.005107879638671875, 0.007358551025390625, -0.0170440673828125, 0.004962921142578125, 0.01788330078125, -0.00839996337890625, 0.01319122314453125, -0.0294342041015625, -0.0167236328125, -0.0297088623046875, -0.007434844970703125, 0.0286102294921875, 0.0249786376953125, 0.00331878662109375, 0.0152435302734375, -0.0251922607421875, -0.033172607421875, -0.0267791748046875, 0.039703369140625, 0.0035419464111328125, 0.0140838623046875, -0.03106689453125, 0.0254364013671875, -0.06439208984375, -0.052490234375, -0.0262451171875, -0.050445556640625, -0.0201873779296875, -0.00936126708984375, 0.01129913330078125, 0.0181884765625, -0.00249481201171875, 0.0123291015625, -0.04107666015625, -0.01250457763671875, -0.01349639892578125, 0.053070068359375, -0.0229339599609375, 0.0087738037109375, 0.019317626953125, -0.04296875, 0.0058441162109375, 0.0056610107421875, 0.0001468658447265625, -0.0016450881958007812, 0.011566162109375, 0.069580078125, -0.060394287109375, -0.021484375, 0.018646240234375, 0.00933074951171875, 0.006988525390625, 0.0194854736328125, 0.013946533203125, -0.033477783203125, -0.048431396484375, 0.0139312744140625, -0.07781982421875, 0.0017299652099609375, -0.0159454345703125, -0.07830810546875, 0.10174560546875, -0.00044417381286621094, 0.07183837890625, 0.0311431884765625, 0.03277587890625, -0.0298614501953125, 0.00757598876953125, -0.050750732421875, 0.0775146484375, 0.026824951171875, 0.050048828125, -0.046630859375, -0.01056671142578125, 0.034881591796875, 0.0379638671875, 0.09661865234375, 0.0308380126953125, -0.03179931640625, 0.0015716552734375, 0.057952880859375, 0.010223388671875, -0.035308837890625, 0.03717041015625, 0.040924072265625, 0.046905517578125, 0.06268310546875, -0.051788330078125, 0.017425537109375, -0.034912109375, 0.0270233154296875, 0.048797607421875, -0.0094146728515625, -0.0280914306640625, -0.01259613037109375, 0.01073455810546875, -0.07196044921875, -0.0034332275390625, 0.048431396484375, -0.0506591796875, 0.00330352783203125, -0.00023281574249267578, -0.01284027099609375, -0.028778076171875, -0.0209808349609375, -0.0142974853515625, 0.035552978515625, -0.0007348060607910156, -0.0028209686279296875, 0.04986572265625, 0.0116424560546875, 0.03228759765625, 0.039947509765625, 0.01470184326171875, 0.02850341796875, 0.04046630859375, 0.067138671875, 0.0156097412109375, 0.03021240234375, -0.0364990234375, 0.015655517578125, 0.028167724609375, 0.0811767578125, -0.04840087890625, 0.004390716552734375, 0.00611114501953125, 0.009490966796875, -0.014068603515625, -0.033935546875, 0.011138916015625, 0.0184783935546875, 0.0106048583984375, -0.043701171875, 0.022003173828125, 0.038177490234375, 0.01245880126953125, -0.01226043701171875, -0.0020809173583984375, -0.027740478515625, 0.0318603515625, -0.0689697265625, -0.0150299072265625, 0.0267486572265625, 0.09130859375, 0.035736083984375, 0.045166015625, -0.00927734375, -0.05328369140625, -0.04327392578125, -0.0020885467529296875, -0.0007615089416503906, 0.040618896484375, -0.040802001953125, 0.0230255126953125, 0.005657196044921875, 0.04156494140625, 0.0289459228515625, 0.055694580078125, 0.035308837890625, -0.0006308555603027344, 0.0172882080078125, 0.0186767578125, 0.019622802734375, -0.025482177734375, 0.080322265625, -0.044219970703125, 0.049774169921875, -0.041839599609375, -0.01617431640625, -0.059417724609375, 0.005229949951171875, 0.01332855224609375, -0.01129150390625, 0.01351165771484375, 0.005619049072265625, 0.006977081298828125, 0.0106048583984375, -0.01922607421875, -0.0175323486328125, 0.003627777099609375, -0.044647216796875, -0.0164337158203125, 0.0109710693359375, -0.05255126953125, 0.019775390625, 0.0440673828125, -0.005908966064453125, 0.0063934326171875, 0.022186279296875, -0.0049591064453125, -0.0002956390380859375, 0.006618499755859375, 0.005207061767578125, -0.03192138671875, 0.016021728515625, -0.005634307861328125, -0.04193115234375, -0.0194549560546875, 0.005031585693359375, 0.0185546875, -0.002071380615234375, 0.0888671875, -0.03741455078125, -0.008880615234375, -0.0254669189453125, 0.02642822265625, -0.005947113037109375, -0.0023860931396484375, -0.03607177734375, 0.020111083984375, 0.010772705078125, -0.01371002197265625, 0.005260467529296875, 0.042633056640625, 0.005359649658203125, -0.041290283203125, 0.01473236083984375, -0.0260467529296875, -0.00244140625, -0.0029430389404296875, 0.03265380859375, -0.032073974609375, -0.058135986328125, -0.0274810791015625, 0.00469207763671875, -0.006679534912109375, 0.006855010986328125, -0.00495147705078125, 0.060577392578125, 0.02105712890625, 0.0197906494140625, 0.0157470703125, -0.018585205078125, 0.0270843505859375, 0.040435791015625, -0.031463623046875, 0.005420684814453125, 0.01358795166015625, -0.0272674560546875, 0.0257720947265625, 0.007183074951171875, -0.00510406494140625, 0.011260986328125, -0.033050537109375, -0.05255126953125, -0.054595947265625, 0.01052093505859375, 0.0099945068359375, -0.0014314651489257812, -0.08038330078125, 0.016082763671875, -0.01099395751953125, -0.05706787109375, -0.033111572265625, -0.04608154296875, 0.0031528472900390625, 0.039306640625, -0.023193359375, -0.0172119140625, -0.030609130859375, -0.00455474853515625, 0.0182342529296875, 0.00433349609375, -0.056060791015625, 0.0082855224609375, -0.017486572265625, 0.0589599609375, -0.037078857421875, 0.001453399658203125, 0.0279388427734375, 0.07000732421875, -0.076171875, 0.01338958740234375, -0.01346588134765625, -0.0611572265625, -0.0345458984375, 0.028900146484375, 0.07965087890625, -0.01021575927734375, -0.01251220703125, 0.0084686279296875, 0.00556182861328125, 0.07073974609375, -0.05694580078125, -0.0106048583984375, 0.0180511474609375, 0.02728271484375, -0.0396728515625, -0.04925537109375, 0.0007624626159667969, 0.00571441650390625, 0.0190582275390625, 0.00341796875, -0.0310516357421875, -0.0097503662109375, -0.034637451171875, -0.040130615234375, 0.0528564453125, 0.01119232177734375, -0.0224456787109375, -0.03533935546875, -0.0106964111328125, -0.0017881393432617188, 0.0153656005859375, -0.01467132568359375, -0.0272979736328125, -0.047119140625, 0.00325775146484375, 0.0494384765625, -0.0016307830810546875, 0.033477783203125, 0.03167724609375, -0.0653076171875, 0.031097412109375, 0.0027923583984375, 0.0291900634765625, 0.016632080078125, -0.0132598876953125, 0.052764892578125, 0.056610107421875, -0.000030517578125, -0.004119873046875, 0.011871337890625, -0.0628662109375, -0.0247955322265625, -0.0576171875, -0.03369140625, -0.0236358642578125, 0.09063720703125, 0.010833740234375, 0.0066375732421875, -0.00966644287109375, -0.01209259033203125, -0.0018672943115234375, -0.0287933349609375, 0.00247955322265625, 0.04449462890625, -0.065673828125, -0.00695037841796875, 0.0148468017578125, 0.0240020751953125, -0.0017786026000976562, -0.00276947021484375, -0.00751495361328125, -0.0229034423828125, 0.030364990234375, 0.003192901611328125, -0.045379638671875, -0.0216827392578125, 0.057952880859375, -0.040496826171875, -0.04150390625, 0.01267242431640625, 0.0274200439453125, 0.002826690673828125, -0.0102691650390625, -0.01044464111328125, 0.038055419921875, -0.00543975830078125, 0.01332855224609375, 0.0201263427734375, 0.018341064453125, -0.01318359375, -0.00012063980102539062, -0.04071044921875, 0.01580810546875, -0.0028171539306640625, 0.00855255126953125, -0.02655029296875, 0.050018310546875, 0.031951904296875, 0.06640625, -0.036224365234375, -0.00542449951171875, 0.00513458251953125, -0.0160064697265625, -0.00958251953125, 0.033355712890625, 0.03594970703125, -0.00737762451171875, -0.007175445556640625, -0.0010738372802734375, -0.0280609130859375, -0.05938720703125, 0.00902557373046875, 0.002140045166015625, 0.010955810546875, 0.029449462890625 ]
bfc6bc7cb2a61bc5eaed28cef97deef65e569640
Wordpress Stackexchange Q: multi page password protection Is it possible to have the "password protected page" feature of WordPress apply to more than one page? I have dozens of pages which I wish to protect with the same password, but I don't want people to keep having to type the password every time they open a new page. I also don't want people to require an account, all they should need is one password! A: WordPress FTW! It actually works this way out of the box. If you use the same password on multiple pages, it only has to be entered once.
Q: multi page password protection Is it possible to have the "password protected page" feature of WordPress apply to more than one page? I have dozens of pages which I wish to protect with the same password, but I don't want people to keep having to type the password every time they open a new page. I also don't want people to require an account, all they should need is one password! A: WordPress FTW! It actually works this way out of the box. If you use the same password on multiple pages, it only has to be entered once.
wordpress
{ "language": "en", "length": 100, "provenance": "stackexchange_00019.jsonl.gz:417192", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42655" }
[ 0.049713134765625, -0.00998687744140625, 0.0202178955078125, -0.0143890380859375, 0.004878997802734375, -0.0240936279296875, 0.038421630859375, -0.029083251953125, -0.033447265625, -0.004119873046875, -0.007358551025390625, 0.0045623779296875, -0.046051025390625, -0.026702880859375, 0.004764556884765625, -0.06256103515625, 0.0025577545166015625, 0.0178375244140625, 0.0097198486328125, -0.0266571044921875, 0.006336212158203125, -0.0231475830078125, -0.00751495361328125, 0.0340576171875, 0.0465087890625, -0.01038360595703125, 0.0338134765625, 0.008056640625, 0.0177459716796875, -0.001972198486328125, 0.038482666015625, -0.029541015625, 0.016632080078125, 0.00817108154296875, -0.02520751953125, -0.0379638671875, -0.046356201171875, 0.0256805419921875, -0.0243072509765625, 0.029083251953125, 0.0122528076171875, 0.0032024383544921875, 0.04608154296875, 0.05767822265625, -0.00785064697265625, -0.066650390625, 0.03619384765625, -0.05108642578125, -0.01032257080078125, 0.0016040802001953125, 0.01558685302734375, 0.00537872314453125, 0.025909423828125, 0.01837158203125, -0.014923095703125, -0.01274871826171875, 0.018524169921875, -0.022552490234375, 0.044342041015625, -0.0166168212890625, -0.03839111328125, -0.0303802490234375, 0.0251007080078125, -0.0287017822265625, -0.030517578125, 0.0029697418212890625, -0.04864501953125, 0.014068603515625, -0.030731201171875, -0.039276123046875, 0.005924224853515625, -0.031494140625, 0.007781982421875, -0.04486083984375, -0.0024204254150390625, 0.0361328125, -0.035675048828125, -0.00731658935546875, 0.0245361328125, -0.0124359130859375, -0.05657958984375, -0.016845703125, -0.07061767578125, -0.04205322265625, -0.005725860595703125, -0.015655517578125, -0.02490234375, 0.0257568359375, -0.0301666259765625, 0.00490570068359375, -0.0285491943359375, 0.0098114013671875, -0.0012531280517578125, 0.01213836669921875, -0.032470703125, 0.01065826416015625, 0.003910064697265625, 0.04913330078125, -0.0038661956787109375, 0.0038394927978515625, 0.004444122314453125, -0.049041748046875, 0.025238037109375, -0.050872802734375, -0.004741668701171875, 0.036895751953125, 0.0338134765625, 0.033111572265625, 0.018707275390625, -0.00499725341796875, -0.0165252685546875, 0.010650634765625, 0.002285003662109375, -0.05682373046875, 0.002201080322265625, 0.017578125, -0.0087127685546875, 0.0008287429809570312, 0.0286407470703125, -0.0419921875, -0.0123138427734375, -0.003597259521484375, 0.01552581787109375, -0.0235748291015625, -0.0003528594970703125, -0.02032470703125, -0.041473388671875, 0.005496978759765625, 0.0302276611328125, 0.01178741455078125, -0.0284576416015625, -0.01824951171875, 0.01507568359375, 0.0280303955078125, 0.005649566650390625, -0.0271759033203125, 0.03814697265625, 0.034698486328125, 0.019744873046875, 0.027587890625, -0.03369140625, -0.04779052734375, 0.0137481689453125, -0.01153564453125, -0.01433563232421875, -0.0003972053527832031, 0.0099334716796875, 0.047576904296875, 0.0211029052734375, -0.0211944580078125, 0.0143890380859375, -0.004604339599609375, -0.0241241455078125, 0.0118560791015625, 0.044921875, -0.01519775390625, -0.022705078125, 0.01512908935546875, 0.040740966796875, 0.033843994140625, 0.03619384765625, -0.008026123046875, -0.006099700927734375, 0.015899658203125, -0.0229034423828125, -0.01200103759765625, -0.017608642578125, 0.0037994384765625, 0.00617218017578125, 0.0024585723876953125, -0.036590576171875, -0.003292083740234375, 0.007045745849609375, 0.00821685791015625, 0.0011243820190429688, 0.0262603759765625, -0.0157623291015625, 0.017822265625, 0.0258636474609375, 0.041534423828125, 0.017059326171875, -0.0275421142578125, 0.063720703125, -0.0053863525390625, -0.04034423828125, 0.0019245147705078125, 0.01256561279296875, 0.0703125, 0.012725830078125, 0.036773681640625, 0.01174163818359375, -0.0218963623046875, -0.0019817352294921875, 0.0179595947265625, -0.010833740234375, -0.025421142578125, 0.0195770263671875, 0.0294647216796875, -0.019683837890625, -0.03253173828125, 0.061981201171875, -0.034027099609375, 0.01325225830078125, -0.0282135009765625, -0.034088134765625, -0.035125732421875, 0.00293731689453125, -0.0034542083740234375, -0.0245819091796875, 0.00516510009765625, 0.027374267578125, -0.0090789794921875, -0.0005040168762207031, -0.05340576171875, -0.0309906005859375, 0.002513885498046875, -0.034454345703125, 0.0310211181640625, -0.0003876686096191406, 0.0240936279296875, 0.0018873214721679688, -0.02056884765625, -0.01399993896484375, -0.032501220703125, 0.0284881591796875, -0.0260162353515625, -0.045989990234375, -0.039764404296875, -0.0433349609375, -0.0181732177734375, -0.054931640625, 0.09075927734375, 0.00936126708984375, 0.0211944580078125, -0.0404052734375, -0.0216827392578125, -0.06390380859375, -0.040313720703125, -0.0091400146484375, 0.051483154296875, 0.039031982421875, 0.008514404296875, -0.0026721954345703125, 0.003131866455078125, 0.017120361328125, -0.0748291015625, -0.005645751953125, 0.0076141357421875, -0.0019779205322265625, 0.04302978515625, 0.0276641845703125, 0.01373291015625, -0.011962890625, -0.065185546875, -0.012664794921875, 0.033935546875, -0.0123291015625, 0.039794921875, -0.03338623046875, -0.00360107421875, -0.005706787109375, -0.01751708984375, -0.006069183349609375, -0.0174560546875, -0.0303192138671875, -0.0295867919921875, 0.0038394927978515625, -0.0038318634033203125, 0.027435302734375, -0.05560302734375, 0.019256591796875, -0.0169830322265625, -0.003284454345703125, 0.031982421875, 0.02471923828125, 0.00611114501953125, -0.00978851318359375, -0.01508331298828125, -0.018310546875, 0.0222320556640625, -0.03564453125, -0.021881103515625, -0.08355712890625, -0.0075531005859375, 0.01377105712890625, -0.00968170166015625, -0.013336181640625, 0.0214080810546875, -0.00426483154296875, -0.028839111328125, 0.00519561767578125, 0.03326416015625, -0.018218994140625, 0.0347900390625, 0.00479888916015625, -0.025390625, -0.045654296875, -0.03680419921875, 0.04046630859375, -0.064208984375, -0.016143798828125, 0.056365966796875, -0.005344390869140625, -0.00091552734375, -0.0190582275390625, 0.0195465087890625, 0.01026153564453125, -0.03167724609375, -0.035491943359375, 0.01021575927734375, -0.0654296875, 0.01511383056640625, 0.0134735107421875, 0.00313568115234375, 0.0027713775634765625, -0.01470184326171875, 0.0016927719116210938, 0.007659912109375, -0.048858642578125, -0.03436279296875, -0.0673828125, -0.08892822265625, -0.004657745361328125, -0.024383544921875, -0.032562255859375, 0.0257110595703125, 0.0141143798828125, 0.0310211181640625, -0.0205535888671875, -0.01334381103515625, -0.0196533203125, -0.03875732421875, -0.0386962890625, 0.006259918212890625, 0.0018396377563476562, 0.012481689453125, -0.01702880859375, 0.1170654296875, 0.004306793212890625, -0.055023193359375, -0.04937744140625, 0.017181396484375, -0.0176544189453125, -0.033477783203125, -0.041259765625, -0.057891845703125, 0.0122222900390625, -0.0234375, -0.0157928466796875, -0.03472900390625, 0.086669921875, 0.0128173828125, 0.01030731201171875, -0.01520538330078125, 0.037261962890625, 0.0216827392578125, -0.0263824462890625, 0.006076812744140625, 0.0423583984375, -0.035797119140625, 0.01436614990234375, -0.0103912353515625, -0.04150390625, -0.02142333984375, 0.01543426513671875, -0.022857666015625, -0.0010595321655273438, -0.017974853515625, 0.0158233642578125, 0.01293182373046875, -0.01294708251953125, -0.0098419189453125, 0.022064208984375, -0.0019893646240234375, 0.0032291412353515625, -0.004405975341796875, -0.0265045166015625, -0.0640869140625, 0.01788330078125, -0.040740966796875, -0.00928497314453125, -0.00921630859375, 0.01303863525390625, 0.0153045654296875, -0.07293701171875, 0.059478759765625, -0.01384735107421875, 0.02215576171875, -0.03582763671875, -0.037445068359375, -0.0009589195251464844, 0.11981201171875, -0.03973388671875, -0.03790283203125, 0.006931304931640625, 0.03778076171875, -0.0279541015625, -0.040252685546875, 0.01291656494140625, -0.03326416015625, 0.014007568359375, -0.0291900634765625, -0.027313232421875, -0.009307861328125, 0.01149749755859375, -0.053619384765625, 0.03570556640625, -0.02569580078125, 0.01529693603515625, -0.0321044921875, 0.00771331787109375, -0.0171966552734375, 0.0084686279296875, -0.049163818359375, 0.021453857421875, -0.0345458984375, -0.066650390625, -0.004604339599609375, 0.00237274169921875, 0.0528564453125, 0.0110015869140625, -0.052734375, -0.004428863525390625, 0.047332763671875, 0.035064697265625, 0.06298828125, 0.0012073516845703125, -0.0274200439453125, 0.042938232421875, -0.00450897216796875, 0.028076171875, -0.002712249755859375, 0.0142974853515625, -0.0008559226989746094, -0.009002685546875, -0.02264404296875, -0.057281494140625, -0.0521240234375, -0.0166168212890625, -0.01837158203125, -0.0235443115234375, -0.005405426025390625, -0.003528594970703125, 0.02545166015625, 0.01044464111328125, -0.0035800933837890625, -0.0123291015625, -0.022491455078125, 0.03216552734375, 0.0008349418640136719, -0.0245208740234375, 0.01171112060546875, 0.0462646484375, 0.008697509765625, -0.0108184814453125, -0.0667724609375, -0.004291534423828125, 0.0211639404296875, 0.004673004150390625, 0.043243408203125, 0.0245208740234375, -0.005107879638671875, 0.010711669921875, 0.00894927978515625, -0.044158935546875, -0.01104736328125, 0.03192138671875, -0.0003478527069091797, -0.031585693359375, 0.00432586669921875, -0.04888916015625, 0.0684814453125, 0.037994384765625, -0.00725555419921875, 0.002910614013671875, -0.04840087890625, 0.0163421630859375, 0.0217742919921875, -0.036346435546875, -0.04852294921875, -0.03924560546875, 0.0096282958984375, 0.00319671630859375, 0.0269317626953125, 0.031585693359375, -0.0005278587341308594, 0.043914794921875, 0.014404296875, -0.00722503662109375, 0.0011444091796875, 0.007793426513671875, -0.00803375244140625, 0.04156494140625, -0.021087646484375, 0.00244140625, -0.0176544189453125, -0.024658203125, 0.0687255859375, -0.006359100341796875, -0.07806396484375, 0.054412841796875, -0.0433349609375, 0.00023818016052246094, 0.054931640625, -0.004119873046875, 0.0180206298828125, -0.032470703125, -0.0275726318359375, 0.0136566162109375, 0.00162506103515625, -0.07696533203125, -0.037078857421875, -0.007495880126953125, 0.0026702880859375, -0.016632080078125, 0.035919189453125, 0.01824951171875, -0.030181884765625, 0.0457763671875, -0.0027294158935546875, 0.028350830078125, 0.05523681640625, -0.03875732421875, 0.002643585205078125, 0.08392333984375, -0.0187225341796875, -0.0274200439453125, 0.0265045166015625, -0.0240020751953125, -0.04937744140625, 0.032623291015625, 0.03131103515625, 0.037750244140625, 0.05029296875, -0.039886474609375, 0.031646728515625, 0.002468109130859375, 0.0116119384765625, -0.025909423828125, -0.052459716796875, 0.0233612060546875, 0.04193115234375, 0.0007781982421875, -0.031219482421875, 0.0031795501708984375, -0.0106048583984375, -0.024749755859375, -0.0094146728515625, -0.002651214599609375, -0.00463104248046875, -0.0318603515625, -0.032684326171875, 0.00018775463104248047, -0.00555419921875, -0.01523590087890625, -0.024169921875, -0.016265869140625, -0.01702880859375, -0.0008220672607421875, 0.0255889892578125, -0.0158233642578125, 0.0467529296875, -0.00908660888671875, -0.0418701171875, 0.041778564453125, 0.0248260498046875, 0.01045989990234375, -0.003284454345703125, -0.022979736328125, 0.004405975341796875, -0.0367431640625, -0.0232696533203125, -0.0181121826171875, -0.0241851806640625, -0.04052734375, -0.005352020263671875, 0.011871337890625, 0.0160064697265625, -0.01265716552734375, -0.01213836669921875, -0.03778076171875, 0.015899658203125, 0.021575927734375, 0.0303955078125, -0.045684814453125, 0.036895751953125, 0.0538330078125, 0.018646240234375, 0.00836181640625, 0.01311492919921875, 0.01050567626953125, -0.0149383544921875, 0.006031036376953125, -0.05474853515625, 0.00469207763671875, -0.0038433074951171875, -0.02227783203125, 0.00701141357421875, 0.0161895751953125, 0.0174102783203125, -0.0197906494140625, -0.04620361328125, 0.006824493408203125, -0.02593994140625, 0.07830810546875, -0.036346435546875, -0.074951171875, 0.04205322265625, -0.00904083251953125, 0.0655517578125, -0.02447509765625, -0.0258636474609375, 0.05242919921875, -0.0281982421875, 0.06451416015625, 0.0263824462890625, -0.0304718017578125, 0.029754638671875, 0.0116729736328125, -0.015594482421875, 0.024169921875, -0.0033435821533203125, 0.0004398822784423828, 0.01255035400390625, -0.049652099609375, -0.016326904296875, 0.017913818359375, 0.0168304443359375, -0.0139923095703125, 0.00930023193359375, 0.037353515625, -0.00634765625, 0.0104827880859375, 0.06146240234375, 0.06756591796875, -0.0946044921875, 0.002532958984375, 0.009063720703125, -0.00878143310546875, -0.0007424354553222656, 0.003627777099609375, -0.005886077880859375, -0.0033550262451171875, 0.0343017578125, -0.004634857177734375, -0.00774383544921875, 0.027130126953125, 0.005992889404296875, -0.00008046627044677734, -0.00916290283203125, 0.064697265625, 0.02130126953125, -0.0299224853515625, 0.0024051666259765625, 0.0384521484375, 0.0159454345703125, -0.01629638671875, -0.03033447265625, 0.0255584716796875, -0.047943115234375, -0.0811767578125, -0.0163726806640625, -0.03497314453125, -0.00794219970703125, -0.004177093505859375, 0.011962890625, 0.0079345703125, 0.038970947265625, -0.006072998046875, 0.01019287109375, 0.0065460205078125, 0.019317626953125, -0.0242462158203125, -0.02960205078125, 0.00872802734375, -0.0241241455078125, -0.067138671875, 0.0171051025390625, -0.047943115234375, -0.011566162109375, -0.01357269287109375, 0.00617218017578125, 0.0750732421875, -0.002841949462890625, -0.0185546875, 0.0499267578125, 0.008453369140625, -0.037872314453125, 0.01727294921875, -0.012054443359375, 0.003734588623046875, 0.01953125, -0.00152587890625, -0.01097869873046875, 0.0167694091796875, 0.00653839111328125, -0.08380126953125, 0.0965576171875, 0.001575469970703125, 0.042510986328125, -0.00992584228515625, 0.044342041015625, -0.0012712478637695312, 0.0272979736328125, 0.001209259033203125, 0.01126861572265625, 0.004573822021484375, 0.036590576171875, 0.0185089111328125, -0.0115203857421875, 0.01390838623046875, 0.038909912109375, -0.00151824951171875, -0.0112457275390625, -0.0012807846069335938, -0.01050567626953125, 0.0322265625, 0.0243682861328125, 0.010589599609375, 0.01335906982421875, 0.0032787322998046875, 0.011474609375, 0.027587890625, -0.069580078125, 0.01425933837890625, -0.040863037109375, 0.027984619140625, 0.01221466064453125, -0.00731658935546875, -0.03143310546875, 0.013031005859375, 0.002025604248046875, -0.08758544921875, 0.0309600830078125, 0.03759765625, 0.031951904296875, 0.00792694091796875, 0.0242156982421875, 0.0313720703125, -0.01214599609375, 0.0631103515625, -0.031646728515625, 0.060546875, -0.0004677772521972656, 0.00836944580078125, 0.043121337890625, 0.0095977783203125, 0.033660888671875, 0.038543701171875, 0.0003757476806640625, 0.01367950439453125, 0.0267181396484375, 0.046356201171875, -0.006572723388671875, 0.017791748046875, -0.08331298828125, 0.00414276123046875, 0.036102294921875, 0.062255859375, -0.037445068359375, -0.06158447265625, 0.01287078857421875, 0.00978851318359375, 0.0136566162109375, 0.018951416015625, 0.03094482421875, 0.0162353515625, 0.06805419921875, 0.011749267578125, -0.00928497314453125, -0.014404296875, 0.0015087127685546875, -0.004909515380859375, 0.0206451416015625, 0.007389068603515625, 0.003936767578125, -0.0181884765625, -0.0016536712646484375, 0.03204345703125, 0.034759521484375, -0.00997161865234375, 0.031097412109375, -0.0216827392578125, -0.00027680397033691406, -0.0172576904296875, 0.044647216796875, 0.0008440017700195312, 0.0298309326171875, -0.057159423828125, -0.03387451171875, 0.01180267333984375, 0.043701171875, 0.002033233642578125, -0.006683349609375, 0.005390167236328125, 0.038726806640625, 0.01158905029296875, -0.02069091796875, 0.0167236328125, 0.00024271011352539062, 0.059051513671875, -0.0177459716796875, 0.002269744873046875, 0.0009517669677734375, -0.049713134765625, -0.053436279296875, -0.0136260986328125, 0.0538330078125, 0.049560546875, -0.029144287109375, 0.027496337890625, -0.022247314453125, -0.00445556640625, 0.043670654296875, -0.0188140869140625, 0.069580078125, -0.0872802734375, -0.0024127960205078125, -0.026519775390625, -0.07879638671875, 0.0374755859375, 0.05450439453125, -0.04998779296875, -0.00272369384765625, 0.033599853515625, 0.013519287109375, -0.01010894775390625, 0.00846099853515625, -0.0016241073608398438, -0.0157318115234375, 0.041259765625, 0.0037631988525390625, -0.07965087890625, -0.03607177734375, -0.0033283233642578125, 0.00252532958984375, -0.021331787109375, 0.066650390625, 0.01317596435546875, 0.007099151611328125, 0.054107666015625, 0.034210205078125, 0.013153076171875, 0.01387786865234375, 0.048797607421875, -0.0029296875, 0.020751953125, -0.03509521484375, -0.04949951171875, 0.0849609375, -0.0093841552734375, 0.02587890625, 0.04168701171875, -0.007183074951171875, -0.007663726806640625, 0.024871826171875, 0.0155029296875, -0.0199432373046875, -0.017791748046875, -0.03228759765625, 0.01094818115234375, 0.025665283203125, 0.028533935546875, -0.03533935546875, 0.06170654296875, -0.004283905029296875, 0.0108489990234375, 0.0021266937255859375, -0.046630859375, -0.04931640625, 0.0005888938903808594, 0.0266876220703125, -0.0260162353515625, -0.003543853759765625, -0.0179595947265625, -0.047332763671875, 0.0113677978515625, -0.0085601806640625, 0.00225067138671875, -0.0307769775390625, -0.00470733642578125, 0.07867431640625, 0.055999755859375, 0.006374359130859375, 0.033294677734375, 0.043609619140625, -0.04278564453125, 0.004352569580078125, 0.006336212158203125, -0.0309600830078125, -0.0292205810546875, 0.006618499755859375, 0.0114898681640625, -0.0208892822265625, -0.0107879638671875, -0.0601806640625, 0.020721435546875, 0.01413726806640625, -0.01204681396484375, -0.058624267578125, 0.033721923828125, -0.0260009765625, 0.056427001953125, -0.032501220703125, -0.032623291015625, 0.0196380615234375, 0.0264434814453125, -0.036865234375, -0.0112457275390625, -0.03997802734375, -0.0164031982421875, -0.043304443359375, -0.0026493072509765625, 0.005016326904296875, -0.00589752197265625, 0.016845703125, 0.031097412109375, 0.0115966796875, 0.06634521484375, -0.0224609375, -0.0225067138671875, -0.0008935928344726562, 0.004093170166015625, 0.01477813720703125, -0.042388916015625, -0.0094451904296875, -0.033203125, 0.00255584716796875, 0.012115478515625, -0.004932403564453125, -0.00010061264038085938, -0.048004150390625, -0.08935546875, 0.033050537109375, 0.0009889602661132812, -0.041290283203125, -0.0426025390625, -0.002361297607421875, -0.0196380615234375, 0.01580810546875, -0.018707275390625, 0.016937255859375, 0.00399017333984375, 0.048126220703125, 0.038116455078125, -0.01436614990234375, 0.0129241943359375, 0.04388427734375, -0.0236358642578125, 0.07025146484375, 0.0595703125, -0.00705718994140625, 0.0224609375, -0.0078582763671875, 0.019561767578125, 0.05438232421875, -0.03076171875, -0.03753662109375, -0.0231781005859375, -0.01678466796875, 0.00989532470703125, 0.03143310546875, 0.0007939338684082031, 0.007965087890625, -0.004871368408203125, 0.062469482421875, -0.002811431884765625, -0.03021240234375, 0.031402587890625, -0.03082275390625, -0.0419921875, 0.0112457275390625, 0.0070648193359375, -0.02923583984375, 0.0223846435546875, 0.021270751953125, -0.01493072509765625, -0.0032558441162109375, 0.003742218017578125, -0.0322265625, 0.00513458251953125, 0.0098724365234375, -0.00945281982421875, -0.0196075439453125, -0.03082275390625, 0.06341552734375, -0.0447998046875, -0.0169830322265625, 0.01023101806640625, 0.016510009765625, 0.019561767578125, 0.035614013671875, -0.0050048828125, 0.035064697265625, -0.042022705078125, -0.0005354881286621094, 0.003753662109375, 0.0477294921875, -0.033172607421875, 0.00501251220703125, -0.0230255126953125, 0.04107666015625, 0.0146331787109375, 0.060455322265625, -0.0237274169921875, 0.03570556640625, 0.0369873046875, -0.004367828369140625, -0.0199127197265625, 0.001987457275390625, -0.03363037109375, 0.0252838134765625, 0.018463134765625, -0.01406097412109375, 0.06097412109375, -0.0214691162109375, 0.00922393798828125, 0.018585205078125, 0.00920867919921875, -0.00177764892578125, 0.031829833984375, -0.006664276123046875, 0.020843505859375, 0.00823974609375 ]
0ecba922e07e8b446951c985a3af8886490f34ee
Wordpress Stackexchange Q: how to upload and allow downloads of .mobi and .epub formats I have downloadable products for sale. I have created custom meta boxes to hold the file data I need, it allows me to upload fine to the custom meta the .doc and the .pdf files... However when I try and upload a .mobi and a .epub - it doesn't upload the files... I suspect I will also hit issues when I try and follow the download link to download the files also - but I will cross that bridge when I come to it. Any help on this would be fantastic. A: Assuming that you are using the WordPress native Media uploader then you can use the upload_mimes filter hook to add or remove allowed file types, for example: function custom_myme_types($mime_types){ //Adding avi extension $mime_types['avi'] = 'video/avi'; //Removing the pdf extension unset($mime_types['pdf']); return $mime_types; } add_filter('upload_mimes', 'custom_myme_types', 1, 1); You can see that to add a file type you just add to the array with the file extension as the key and the mime type as the value do the MIME type for .mobi format file is application/x-mobipocket-ebook and for .epub format is application/epub+zip
Q: how to upload and allow downloads of .mobi and .epub formats I have downloadable products for sale. I have created custom meta boxes to hold the file data I need, it allows me to upload fine to the custom meta the .doc and the .pdf files... However when I try and upload a .mobi and a .epub - it doesn't upload the files... I suspect I will also hit issues when I try and follow the download link to download the files also - but I will cross that bridge when I come to it. Any help on this would be fantastic. A: Assuming that you are using the WordPress native Media uploader then you can use the upload_mimes filter hook to add or remove allowed file types, for example: function custom_myme_types($mime_types){ //Adding avi extension $mime_types['avi'] = 'video/avi'; //Removing the pdf extension unset($mime_types['pdf']); return $mime_types; } add_filter('upload_mimes', 'custom_myme_types', 1, 1); You can see that to add a file type you just add to the array with the file extension as the key and the mime type as the value do the MIME type for .mobi format file is application/x-mobipocket-ebook and for .epub format is application/epub+zip
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:417195", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42669" }
[ 0.009002685546875, -0.0310211181640625, 0.0232696533203125, 0.0141143798828125, -0.040496826171875, -0.0102996826171875, 0.04364013671875, -0.01080322265625, -0.0231781005859375, 0.02508544921875, 0.0186767578125, 0.0013141632080078125, 0.04443359375, -0.04351806640625, 0.040802001953125, -0.0022945404052734375, 0.036865234375, 0.0150604248046875, 0.0748291015625, 0.005214691162109375, -0.001003265380859375, 0.041168212890625, 0.0701904296875, -0.03173828125, -0.01507568359375, 0.0154266357421875, 0.08074951171875, -0.0447998046875, -0.01580810546875, -0.0396728515625, 0.004730224609375, 0.0175018310546875, 0.0262908935546875, 0.0477294921875, -0.07537841796875, 0.040802001953125, 0.03509521484375, -0.00536346435546875, -0.01102447509765625, 0.05010986328125, 0.027130126953125, -0.00937652587890625, -0.019744873046875, -0.033905029296875, -0.0205078125, -0.0273590087890625, 0.046539306640625, 0.0021305084228515625, -0.0047149658203125, 0.051666259765625, -0.015167236328125, -0.056304931640625, -0.00360107421875, 0.006137847900390625, -0.0011157989501953125, -0.034759521484375, -0.01531982421875, 0.0088958740234375, 0.0299224853515625, -0.007610321044921875, -0.0232696533203125, -0.006572723388671875, 0.00018787384033203125, -0.0164642333984375, -0.0178985595703125, 0.0007562637329101562, -0.05419921875, 0.0003802776336669922, -0.01393890380859375, -0.018157958984375, 0.020477294921875, -0.045562744140625, 0.0282440185546875, -0.03997802734375, -0.0092926025390625, 0.022125244140625, 0.009735107421875, 0.01267242431640625, 0.0102691650390625, -0.0400390625, 0.049560546875, 0.0297698974609375, 0.0161285400390625, -0.01479339599609375, 0.01209259033203125, 0.01282501220703125, 0.00183868408203125, -0.03472900390625, -0.000046312808990478516, -0.00026226043701171875, -0.0161285400390625, -0.019775390625, 0.01397705078125, 0.0277252197265625, -0.0209503173828125, -0.00518035888671875, 0.01448822021484375, 0.0263671875, 0.00901031494140625, 0.0139312744140625, 0.03253173828125, -0.062744140625, 0.044189453125, -0.04412841796875, 0.0460205078125, 0.0447998046875, -0.010009765625, -0.04705810546875, 0.063720703125, 0.01611328125, 0.01424407958984375, 0.0899658203125, -0.00913238525390625, -0.034393310546875, 0.0096282958984375, -0.01270294189453125, -0.042327880859375, 0.053924560546875, 0.023406982421875, -0.018310546875, 0.000043511390686035156, 0.0535888671875, 0.00923919677734375, -0.08251953125, 0.0006971359252929688, -0.0175933837890625, 0.00025534629821777344, -0.0477294921875, 0.02099609375, 0.076171875, -0.004787445068359375, -0.0277557373046875, -0.051300048828125, -0.008209228515625, -0.021392822265625, -0.0220184326171875, -0.0162353515625, -0.0226287841796875, -0.00103759765625, 0.0099334716796875, 0.03302001953125, -0.047332763671875, -0.01168060302734375, 0.05029296875, -0.015838623046875, 0.043731689453125, 0.006481170654296875, -0.00412750244140625, -0.00814056396484375, -0.029144287109375, -0.0273590087890625, -0.040618896484375, 0.0648193359375, -0.01038360595703125, -0.0496826171875, -0.06365966796875, 0.037200927734375, -0.06103515625, -0.005130767822265625, -0.0833740234375, 0.01458740234375, -0.0220794677734375, 0.0298614501953125, -0.0106353759765625, -0.0203399658203125, 0.0101470947265625, -0.0565185546875, -0.0107879638671875, 0.024200439453125, 0.0173492431640625, -0.002552032470703125, -0.0254364013671875, 0.0267791748046875, 0.00945281982421875, -0.0084381103515625, 0.02587890625, -0.00014162063598632812, 0.048370361328125, 0.000018596649169921875, 0.051544189453125, 0.01082611083984375, -0.0479736328125, 0.04815673828125, -0.0300750732421875, -0.03448486328125, 0.018463134765625, 0.03253173828125, 0.047210693359375, -0.0190277099609375, 0.00785064697265625, 0.04290771484375, 0.0194091796875, -0.0469970703125, -0.0048675537109375, -0.00267791748046875, -0.0157470703125, -0.03192138671875, -0.0306243896484375, -0.0028285980224609375, 0.057769775390625, -0.036590576171875, -0.0170440673828125, 0.00984954833984375, -0.00487518310546875, 0.0195770263671875, -0.0302734375, 0.00930023193359375, 0.0198974609375, -0.02764892578125, 0.0032711029052734375, 0.0276336669921875, -0.005214691162109375, -0.0292816162109375, -0.0191650390625, 0.014068603515625, 0.0399169921875, 0.035797119140625, 0.038299560546875, -0.0016603469848632812, 0.0233917236328125, -0.0241546630859375, -0.01145172119140625, -0.01514434814453125, 0.0226898193359375, -0.0192108154296875, 0.034027099609375, -0.015045166015625, 0.04364013671875, 0.054290771484375, 0.03204345703125, 0.07293701171875, -0.0298004150390625, -0.006694793701171875, 0.0189361572265625, -0.022003173828125, -0.025299072265625, -0.01407623291015625, -0.0826416015625, 0.0301055908203125, 0.058319091796875, 0.031402587890625, 0.0185089111328125, 0.004695892333984375, 0.0254058837890625, 0.00920867919921875, -0.02874755859375, 0.0169677734375, -0.01120758056640625, -0.037750244140625, -0.0101470947265625, -0.007640838623046875, 0.006317138671875, 0.02789306640625, -0.03302001953125, -0.0131988525390625, 0.033416748046875, -0.0247039794921875, -0.0268707275390625, 0.00830078125, 0.018585205078125, -0.0023632049560546875, 0.0189666748046875, 0.0041351318359375, 0.008270263671875, 0.0001817941665649414, 0.036834716796875, 0.045684814453125, 0.055419921875, -0.0189666748046875, -0.002902984619140625, 0.0006303787231445312, 0.04833984375, 0.00885009765625, 0.06085205078125, 0.039703369140625, 0.0118408203125, 0.007244110107421875, -0.05413818359375, 0.021942138671875, 0.040374755859375, -0.0163421630859375, -0.00724029541015625, -0.04827880859375, -0.0038471221923828125, 0.00543212890625, -0.044921875, -0.005229949951171875, 0.0030841827392578125, -0.0137939453125, -0.0167694091796875, 0.010101318359375, 0.026397705078125, 0.0097503662109375, 0.0027523040771484375, 0.01727294921875, -0.01107025146484375, 0.0295867919921875, -0.0770263671875, 0.08575439453125, -0.057464599609375, 0.049407958984375, 0.076904296875, -0.0601806640625, 0.061767578125, -0.003307342529296875, 0.0155181884765625, 0.009124755859375, 0.018585205078125, 0.002071380615234375, -0.02752685546875, -0.0017547607421875, -0.0200958251953125, 0.0138702392578125, -0.02789306640625, 0.0232086181640625, 0.0037174224853515625, -0.022918701171875, 0.0119171142578125, -0.03814697265625, -0.01154327392578125, 0.060302734375, -0.05224609375, 0.043212890625, -0.012451171875, -0.02984619140625, -0.055877685546875, 0.0158843994140625, 0.0006814002990722656, -0.0208740234375, 0.00508880615234375, 0.005573272705078125, -0.0116424560546875, -0.038543701171875, -0.0181427001953125, 0.00560760498046875, 0.0084381103515625, 0.016326904296875, 0.0006341934204101562, 0.003662109375, -0.01763916015625, 0.0259857177734375, 0.052978515625, 0.005954742431640625, -0.01242828369140625, 0.0313720703125, -0.04156494140625, 0.0226593017578125, -0.0172119140625, 0.04736328125, 0.0271453857421875, -0.035614013671875, -0.0029087066650390625, -0.022247314453125, -0.01995849609375, -0.0179901123046875, 0.00315093994140625, 0.0283660888671875, -0.022491455078125, -0.0175018310546875, -0.066650390625, 0.005283355712890625, 0.0269622802734375, 0.0149383544921875, 0.0152435302734375, -0.0310516357421875, -0.032196044921875, 0.012451171875, 0.040374755859375, -0.0239105224609375, 0.0050811767578125, -0.029266357421875, -0.0288238525390625, 0.025543212890625, 0.0006566047668457031, 0.01494598388671875, 0.043426513671875, 0.08154296875, 0.020477294921875, -0.0006690025329589844, 0.04833984375, 0.01837158203125, -0.003955841064453125, 0.01934814453125, -0.043243408203125, -0.08843994140625, 0.055145263671875, -0.0552978515625, 0.009521484375, -0.057586669921875, -0.0114593505859375, -0.03240966796875, 0.09820556640625, -0.020172119140625, -0.02960205078125, -0.0341796875, 0.0192108154296875, -0.030517578125, -0.055694580078125, 0.01568603515625, 0.00785064697265625, 0.047882080078125, -0.021514892578125, -0.0213623046875, 0.005462646484375, 0.030059814453125, -0.04241943359375, 0.06640625, -0.0295257568359375, 0.0186920166015625, 0.0379638671875, 0.0193023681640625, 0.038116455078125, 0.025177001953125, 0.027252197265625, -0.00963592529296875, -0.0128173828125, -0.11004638671875, -0.01267242431640625, 0.00567626953125, 0.0222625732421875, -0.0234375, 0.0024089813232421875, -0.008270263671875, 0.0679931640625, -0.0010118484497070312, -0.021209716796875, 0.0037631988525390625, -0.0028820037841796875, 0.026519775390625, 0.001689910888671875, -0.00009274482727050781, -0.0237274169921875, -0.008453369140625, -0.0087890625, -0.0225677490234375, -0.0005269050598144531, -0.01025390625, -0.03802490234375, 0.018463134765625, -0.028778076171875, -0.0160064697265625, -0.040557861328125, -0.0361328125, 0.0001811981201171875, -0.013031005859375, -0.01140594482421875, -0.035797119140625, -0.031005859375, 0.053192138671875, -0.0184173583984375, -0.002105712890625, -0.01226043701171875, 0.082763671875, 0.0137939453125, -0.032135009765625, -0.004119873046875, 0.0192413330078125, 0.0263671875, 0.0166473388671875, -0.0094757080078125, -0.0017242431640625, -0.0166473388671875, -0.01212310791015625, -0.0014324188232421875, 0.043731689453125, -0.01416015625, 0.038787841796875, 0.007049560546875, 0.005733489990234375, 0.01561737060546875, 0.026275634765625, -0.04547119140625, -0.0012111663818359375, -0.00281524658203125, -0.0186920166015625, 0.0243072509765625, 0.0260162353515625, 0.004558563232421875, -0.0013980865478515625, -0.01421356201171875, -0.053466796875, 0.0150146484375, -0.052337646484375, 0.033905029296875, 0.00750732421875, 0.0081939697265625, 0.0323486328125, 0.0238037109375, -0.0011339187622070312, -0.009002685546875, -0.000934600830078125, -0.00716400146484375, 0.03009033203125, 0.00732421875, -0.00817108154296875, -0.02252197265625, 0.00281524658203125, 0.00885772705078125, -0.004329681396484375, -0.00798797607421875, -0.0592041015625, -0.00388336181640625, -0.00214385986328125, -0.00986480712890625, 0.0005159378051757812, 0.0174102783203125, 0.036376953125, -0.041839599609375, 0.0053253173828125, 0.017578125, -0.0069122314453125, -0.05352783203125, 0.0030517578125, 0.00005233287811279297, -0.01983642578125, -0.02490234375, 0.03948974609375, -0.03656005859375, 0.00421142578125, 0.007076263427734375, 0.045074462890625, 0.048065185546875, 0.034423828125, 0.0304412841796875, -0.0243377685546875, -0.029266357421875, 0.0293731689453125, -0.028717041015625, -0.0287628173828125, -0.007534027099609375, -0.050689697265625, 0.0238800048828125, -0.044708251953125, -0.033538818359375, 0.06683349609375, -0.046417236328125, -0.01062774658203125, -0.022003173828125, -0.040557861328125, -0.00146484375, -0.0307464599609375, -0.0036754608154296875, 0.040679931640625, 0.01375579833984375, 0.0065460205078125, -0.025482177734375, 0.009490966796875, -0.0343017578125, 0.023681640625, -0.0355224609375, -0.01279449462890625, -0.0022335052490234375, 0.043853759765625, 0.002506256103515625, -0.0273284912109375, -0.0616455078125, -0.0357666015625, -0.0082855224609375, 0.0180511474609375, 0.044036865234375, -0.0797119140625, -0.007755279541015625, -0.005584716796875, 0.057830810546875, -0.010406494140625, 0.038970947265625, -0.006122589111328125, 0.01070404052734375, 0.01548004150390625, -0.01279449462890625, -0.031646728515625, -0.02978515625, -0.0284881591796875, -0.042633056640625, -0.0110015869140625, -0.020416259765625, -0.0073394775390625, 0.008941650390625, -0.022918701171875, 0.0012674331665039062, 0.022369384765625, 0.02862548828125, -0.008148193359375, 0.0291595458984375, -0.044525146484375, 0.01459503173828125, 0.047760009765625, 0.022216796875, -0.0021381378173828125, -0.010223388671875, 0.0040435791015625, -0.022125244140625, -0.0294189453125, -0.061431884765625, 0.00818634033203125, 0.0246429443359375, 0.0078582763671875, 0.037872314453125, 0.0245361328125, 0.02703857421875, -0.0227203369140625, -0.0128173828125, -0.016448974609375, -0.04400634765625, 0.0489501953125, 0.0204315185546875, 0.0303802490234375, -0.050628662109375, -0.053680419921875, 0.0048370361328125, 0.01342010498046875, 0.0355224609375, 0.0194091796875, -0.050933837890625, 0.0036373138427734375, 0.03289794921875, -0.02093505859375, 0.0521240234375, 0.03656005859375, -0.00634765625, 0.033447265625, 0.0195465087890625, 0.0186767578125, 0.01020050048828125, -0.017852783203125, 0.01259613037109375, -0.00032520294189453125, 0.007061004638671875, -0.01221466064453125, 0.00399017333984375, 0.008056640625, -0.00452423095703125, 0.01477813720703125, 0.03607177734375, 0.06610107421875, -0.053558349609375, 0.007568359375, 0.021484375, -0.0011720657348632812, 0.019195556640625, -0.01297760009765625, -0.020233154296875, -0.0283050537109375, 0.049072265625, -0.024017333984375, -0.0231475830078125, 0.016265869140625, 0.005840301513671875, -0.0088043212890625, 0.0022525787353515625, -0.0240020751953125, -0.005771636962890625, -0.038726806640625, -0.01396942138671875, 0.0007352828979492188, -0.0175323486328125, 0.0201873779296875, 0.023834228515625, -0.052032470703125, -0.0033016204833984375, -0.035736083984375, -0.051910400390625, -0.03851318359375, -0.012786865234375, -0.0021343231201171875, -0.0045318603515625, 0.048614501953125, 0.06402587890625, 0.0008006095886230469, -0.01183319091796875, 0.042144775390625, 0.0212249755859375, 0.023529052734375, -0.0213775634765625, -0.020111083984375, 0.01152801513671875, -0.0311737060546875, -0.0096893310546875, -0.0259246826171875, 0.004871368408203125, 0.0144805908203125, 0.0081329345703125, 0.0002155303955078125, -0.047027587890625, 0.00850677490234375, 0.0462646484375, 0.00870513916015625, -0.004261016845703125, -0.00650787353515625, 0.032501220703125, -0.08026123046875, -0.034881591796875, 0.0130615234375, -0.0396728515625, -0.0243682861328125, 0.0037975311279296875, -0.074951171875, 0.021728515625, 0.038299560546875, 0.0245819091796875, 0.0039043426513671875, 0.0020732879638671875, -0.035858154296875, -0.036773681640625, -0.024566650390625, 0.039093017578125, 0.038909912109375, -0.0138397216796875, -0.024505615234375, -0.026885986328125, -0.0198211669921875, 0.0552978515625, 0.027801513671875, -0.0028858184814453125, -0.03497314453125, 0.00997161865234375, 0.063720703125, 0.0261688232421875, 0.00820159912109375, 0.0379638671875, -0.0021381378173828125, -0.05621337890625, -0.00262451171875, 0.049896240234375, 0.036468505859375, -0.02435302734375, -0.0360107421875, 0.007579803466796875, -0.007587432861328125, -0.0183258056640625, -0.0244598388671875, 0.0277099609375, 0.018951416015625, -0.0281524658203125, -0.034423828125, 0.0273590087890625, 0.0250396728515625, 0.01201629638671875, 0.0271148681640625, -0.029937744140625, 0.0186767578125, -0.0280609130859375, 0.0513916015625, -0.006519317626953125, 0.0294647216796875, 0.022430419921875, 0.0204620361328125, 0.019927978515625, -0.03631591796875, 0.0025234222412109375, -0.00949859619140625, -0.0178680419921875, 0.038238525390625, -0.03265380859375, 0.0027065277099609375, -0.06884765625, 0.0230865478515625, 0.04803466796875, 0.03900146484375, -0.049468994140625, -0.0543212890625, 0.01262664794921875, -0.001712799072265625, 0.005321502685546875, -0.0027008056640625, 0.0170440673828125, -0.042144775390625, 0.006500244140625, -0.0218963623046875, -0.0026760101318359375, 0.010009765625, 0.045013427734375, 0.0089111328125, 0.03533935546875, -0.051025390625, -0.0276336669921875, -0.034149169921875, 0.0196685791015625, 0.01374053955078125, -0.005950927734375, 0.0036468505859375, -0.00006431341171264648, 0.060028076171875, 0.01146697998046875, -0.03607177734375, 0.043060302734375, -0.0003170967102050781, 0.0537109375, -0.0748291015625, -0.0416259765625, 0.022216796875, 0.06494140625, 0.0207672119140625, 0.024749755859375, 0.026092529296875, 0.040374755859375, 0.028656005859375, -0.0023097991943359375, 0.04046630859375, 0.004398345947265625, -0.050018310546875, -0.060546875, 0.01384735107421875, 0.01532745361328125, 0.01068878173828125, 0.039825439453125, -0.01166534423828125, 0.02667236328125, 0.005748748779296875, 0.01287841796875, -0.007396697998046875, -0.052581787109375, 0.02325439453125, -0.0103912353515625, 0.0985107421875, 0.01187896728515625, -0.10223388671875, -0.023651123046875, -0.0338134765625, -0.0009617805480957031, 0.0303497314453125, 0.034515380859375, 0.00380706787109375, 0.01497650146484375, -0.046051025390625, 0.0020809173583984375, -0.004604339599609375, -0.004241943359375, -0.0156402587890625, 0.020050048828125, 0.0062408447265625, -0.0095977783203125, -0.01549530029296875, -0.0088348388671875, 0.0016641616821289062, 0.04620361328125, 0.01346588134765625, 0.08154296875, -0.0280914306640625, 0.01299285888671875, 0.0022335052490234375, 0.005695343017578125, -0.024444580078125, 0.0001685619354248047, 0.0021495819091796875, -0.01092529296875, 0.005695343017578125, -0.008392333984375, 0.039337158203125, 0.01806640625, 0.0252838134765625, -0.050689697265625, 0.00081634521484375, -0.0168609619140625, 0.007625579833984375, -0.006237030029296875, 0.0031375885009765625, -0.044921875, -0.01335906982421875, -0.0204315185546875, -0.02117919921875, 0.01064300537109375, -0.0254669189453125, -0.00502777099609375, 0.01953125, 0.036590576171875, 0.007495880126953125, 0.014617919921875, 0.0036296844482421875, 0.062347412109375, 0.0467529296875, -0.037261962890625, -0.06494140625, 0.03350830078125, -0.0018720626831054688, 0.00969696044921875, -0.00896453857421875, 0.11053466796875, 0.009033203125, -0.041778564453125, 0.04229736328125, 0.0189971923828125, 0.020904541015625, -0.047119140625, -0.025177001953125, 0.059478759765625, -0.00738525390625, -0.00350189208984375, -0.006069183349609375, -0.00634765625, -0.061920166015625, -0.0139923095703125, 0.02178955078125, -0.040985107421875, 0.007404327392578125, -0.0200958251953125, 0.03643798828125, 0.0262603759765625, -0.01202392578125, -0.04608154296875, 0.039703369140625, -0.048919677734375, 0.0740966796875, -0.01690673828125, 0.0292816162109375, -0.0306549072265625, 0.0118560791015625, 0.00582122802734375, -0.07037353515625, -0.0302581787109375, 0.1082763671875, -0.020965576171875, -0.0068359375, 0.0058135986328125, -0.00634765625, -0.04345703125, -0.0024280548095703125, 0.0016956329345703125, 0.044464111328125, 0.022064208984375, -0.0236053466796875, -0.0019350051879882812, -0.00907135009765625, -0.017425537109375, -0.036590576171875, 0.0263519287109375, -0.06549072265625, -0.044219970703125, -0.004974365234375, -0.00024402141571044922, 0.01092529296875, -0.0174713134765625, -0.0289306640625, 0.025665283203125, 0.007671356201171875, -0.0307769775390625, -0.019927978515625, 0.029754638671875, -0.0018825531005859375, 0.019195556640625, -0.0020294189453125, -0.0051422119140625, 0.0031795501708984375, 0.003154754638671875, -0.0235443115234375, 0.01629638671875, 0.01432037353515625, -0.0011911392211914062, 0.031036376953125, 0.0197906494140625, 0.03643798828125, -0.061126708984375, -0.0152587890625, -0.0250396728515625, 0.0498046875, 0.019561767578125, -0.0069732666015625, 0.04962158203125, 0.041839599609375, -0.0212860107421875, 0.00006496906280517578, -0.01073455810546875, -0.026824951171875, 0.0010519027709960938, 0.0126953125, 0.068603515625, 0.0031414031982421875, -0.0208892822265625, 0.01165008544921875, -0.0009007453918457031, -0.01271820068359375, 0.0033206939697265625, 0.00044083595275878906, -0.037811279296875, -0.0142364501953125, -0.0013914108276367188, 0.002170562744140625, -0.01183319091796875, 0.0035305023193359375, -0.0308837890625, -0.00775146484375, 0.002979278564453125, 0.0023441314697265625, -0.052947998046875, 0.004795074462890625, 0.05120849609375, -0.0240936279296875, 0.01490020751953125, -0.01280975341796875, 0.00894927978515625, 0.0247344970703125, -0.0226898193359375, -0.0222930908203125, -0.0289306640625, 0.025390625, 0.0242767333984375, 0.0157012939453125, -0.05426025390625, 0.007251739501953125, 0.01392364501953125, -0.0196990966796875, 0.01204681396484375, -0.0006699562072753906, 0.0211029052734375, -0.0272064208984375, 0.041473388671875, 0.0177459716796875, 0.03192138671875, -0.025360107421875, -0.0496826171875, -0.048004150390625, 0.0195465087890625, 0.006160736083984375, -0.0036716461181640625, 0.0657958984375, -0.01568603515625, 0.0226898193359375, -0.00887298583984375, -0.05462646484375, 0.006145477294921875, -0.0328369140625, -0.046478271484375, -0.05462646484375, -0.005756378173828125 ]
971c26dcdbae50875ceeab6311c6231d5f256f0a
Wordpress Stackexchange Q: Assign title-specific class to list items in menu based on WP pages I'm currently using a WP-generated list of pages for my site navigation - this is using the method wp_page_menu. I'd like to add custom styling to specfic list items in the menu, and I was wondering if it's possible to have a function that will assign class names to the list items based on the name of the page they link to. So, for example, instead of having to apply styles to li.page-item-1500, I'd like to apply styles to the list item generated from the page's title, such as li.about. Is this possible? (I'm using WP ver 3.3.1, btw) A: Yes - you can do this without having to write any code, too. * *On the 'Menus' page, locate the 'Screen Options' at the top of the page and locate the 'CSS Classes' check box. Click it. * *After that, expand a menu item and you'll see a new option for 'CSS Classes'
Q: Assign title-specific class to list items in menu based on WP pages I'm currently using a WP-generated list of pages for my site navigation - this is using the method wp_page_menu. I'd like to add custom styling to specfic list items in the menu, and I was wondering if it's possible to have a function that will assign class names to the list items based on the name of the page they link to. So, for example, instead of having to apply styles to li.page-item-1500, I'd like to apply styles to the list item generated from the page's title, such as li.about. Is this possible? (I'm using WP ver 3.3.1, btw) A: Yes - you can do this without having to write any code, too. * *On the 'Menus' page, locate the 'Screen Options' at the top of the page and locate the 'CSS Classes' check box. Click it. * *After that, expand a menu item and you'll see a new option for 'CSS Classes'
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:417198", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42673" }
[ 0.0229339599609375, 0.01458740234375, -0.005947113037109375, 0.05712890625, 0.0023021697998046875, -0.060150146484375, 0.08221435546875, -0.0516357421875, -0.0235748291015625, -0.0289764404296875, -0.0169219970703125, 0.038970947265625, -0.052825927734375, -0.0361328125, 0.0523681640625, -0.038970947265625, 0.026214599609375, 0.004833221435546875, 0.04925537109375, -0.0007119178771972656, -0.0020236968994140625, 0.0032291412353515625, 0.046600341796875, 0.028839111328125, 0.0479736328125, -0.07763671875, 0.031585693359375, 0.006809234619140625, 0.0484619140625, 0.01264190673828125, 0.037567138671875, -0.0445556640625, 0.0272216796875, -0.0017442703247070312, 0.0225830078125, 0.01226806640625, 0.0039005279541015625, -0.00513458251953125, 0.0025386810302734375, 0.0308685302734375, 0.033782958984375, -0.02069091796875, 0.0169830322265625, 0.0291290283203125, -0.00856781005859375, -0.047576904296875, 0.05126953125, -0.02398681640625, 0.0295562744140625, -0.055694580078125, 0.0169830322265625, 0.006389617919921875, 0.0244903564453125, -0.032989501953125, -0.02166748046875, 0.035064697265625, -0.01070404052734375, -0.00887298583984375, 0.00798797607421875, 0.0068511962890625, -0.00548553466796875, 0.0032367706298828125, 0.0224456787109375, -0.005084991455078125, -0.01458740234375, 0.01380157470703125, 0.060302734375, 0.0018262863159179688, -0.0068359375, -0.004764556884765625, 0.01080322265625, 0.00411224365234375, -0.02252197265625, -0.004241943359375, -0.042755126953125, 0.006153106689453125, 0.033660888671875, -0.011322021484375, -0.01111602783203125, 0.00789642333984375, 0.02862548828125, 0.00231170654296875, 0.00615692138671875, -0.00958251953125, 0.02581787109375, 0.01300811767578125, -0.0082550048828125, -0.0223236083984375, 0.0077667236328125, -0.041015625, -0.004917144775390625, 0.01904296875, -0.011444091796875, -0.003490447998046875, -0.0264434814453125, -0.026824951171875, 0.0239410400390625, 0.1058349609375, -0.0112762451171875, 0.036865234375, -0.016021728515625, -0.033203125, 0.04730224609375, -0.06805419921875, -0.005718231201171875, 0.041717529296875, 0.0274658203125, 0.0255279541015625, 0.01593017578125, 0.00870513916015625, 0.003856658935546875, -0.0006694793701171875, 0.00626373291015625, -0.0010175704956054688, -0.01540374755859375, -0.028900146484375, -0.02703857421875, 0.0263214111328125, 0.002811431884765625, -0.020965576171875, -0.01050567626953125, 0.0306243896484375, 0.010223388671875, -0.01318359375, 0.0134429931640625, 0.03765869140625, 0.03302001953125, -0.0714111328125, 0.0297088623046875, -0.0139312744140625, -0.0225372314453125, 0.0179443359375, 0.060546875, 0.038116455078125, 0.0212249755859375, -0.0030574798583984375, 0.0119781494140625, -0.0101165771484375, -0.004688262939453125, 0.01396942138671875, 0.01393890380859375, -0.01020050048828125, 0.0242767333984375, -0.00971221923828125, 0.035247802734375, 0.01617431640625, 0.01309967041015625, 0.0160064697265625, 0.00977325439453125, -0.039154052734375, 0.068359375, -0.04083251953125, 0.0244140625, 0.022064208984375, -0.0308990478515625, -0.00820159912109375, 0.013427734375, -0.0164031982421875, -0.0099334716796875, -0.05084228515625, -0.01338958740234375, -0.0142822265625, 0.00258636474609375, -0.044525146484375, -0.040557861328125, 0.01027679443359375, -0.033935546875, 0.01019287109375, 0.0140533447265625, -0.0073699951171875, -0.003887176513671875, -0.039825439453125, 0.003131866455078125, 0.0008068084716796875, -0.00864410400390625, 0.041900634765625, 0.01371002197265625, 0.00958251953125, 0.0167999267578125, 0.016021728515625, -0.0189208984375, -0.038055419921875, 0.037017822265625, -0.0234527587890625, -0.05316162109375, 0.0070953369140625, 0.00665283203125, 0.04974365234375, 0.0362548828125, 0.0268402099609375, 0.024993896484375, -0.017333984375, -0.05511474609375, -0.0267333984375, -0.0037403106689453125, 0.010986328125, -0.0069732666015625, 0.007488250732421875, 0.0078277587890625, 0.0230712890625, -0.0101165771484375, 0.0041351318359375, -0.01849365234375, 0.023529052734375, -0.0023365020751953125, -0.00989532470703125, 0.004787445068359375, 0.023040771484375, 0.0188751220703125, 0.01413726806640625, -0.0037212371826171875, -0.0013675689697265625, 0.016387939453125, -0.1005859375, -0.053985595703125, 0.016021728515625, 0.0153045654296875, -0.048736572265625, -0.00492095947265625, -0.08233642578125, 0.0212554931640625, 0.0176544189453125, -0.00913238525390625, 0.06268310546875, 0.0160064697265625, 0.000995635986328125, -0.0280303955078125, -0.0016298294067382812, 0.01727294921875, 0.0178375244140625, -0.0087432861328125, 0.0128936767578125, 0.03997802734375, 0.048797607421875, -0.0193023681640625, -0.004180908203125, 0.007160186767578125, -0.044586181640625, -0.004985809326171875, 0.0308685302734375, 0.057159423828125, 0.0092620849609375, 0.0089263916015625, -0.01824951171875, 0.05877685546875, 0.006412506103515625, 0.034088134765625, -0.04266357421875, 0.005344390869140625, 0.032806396484375, 0.036041259765625, 0.00038933753967285156, 0.010833740234375, 0.00009065866470336914, 0.005352020263671875, 0.0168304443359375, -0.0202484130859375, 0.006011962890625, 0.0183563232421875, -0.00981903076171875, -0.00507354736328125, 0.033294677734375, 0.01165771484375, 0.00989532470703125, 0.026824951171875, 0.011199951171875, 0.02703857421875, 0.00817108154296875, -0.01122283935546875, -0.0022220611572265625, 0.01300048828125, -0.019073486328125, 0.010040283203125, 0.02667236328125, 0.015106201171875, 0.00701141357421875, -0.019805908203125, -0.0156707763671875, 0.0196075439453125, 0.0022296905517578125, 0.004604339599609375, 0.035858154296875, -0.00015091896057128906, -0.01186370849609375, 0.003520965576171875, -0.0966796875, -0.006786346435546875, 0.0014524459838867188, -0.02606201171875, -0.0279998779296875, 0.002040863037109375, 0.01355743408203125, -0.031524658203125, 0.0206146240234375, 0.002246856689453125, -0.0218963623046875, 0.0869140625, 0.028106689453125, 0.005523681640625, -0.004955291748046875, 0.03131103515625, 0.035247802734375, -0.0379638671875, -0.0009627342224121094, -0.01336669921875, 0.0229644775390625, 0.012664794921875, -0.0038356781005859375, -0.0048675537109375, -0.049072265625, 0.016265869140625, 0.0093841552734375, 0.0211334228515625, 0.0225982666015625, -0.01053619384765625, -0.043609619140625, -0.00016772747039794922, -0.0015811920166015625, -0.07293701171875, -0.04736328125, 0.0675048828125, -0.04840087890625, 0.0184173583984375, -0.01171875, -0.0183258056640625, -0.050567626953125, 0.032135009765625, -0.0085601806640625, 0.020263671875, -0.02740478515625, -0.02154541015625, -0.0252532958984375, -0.063232421875, -0.00965118408203125, 0.0082855224609375, 0.01117706298828125, -0.001995086669921875, 0.032196044921875, 0.00431060791015625, -0.0211944580078125, 0.0170745849609375, 0.09417724609375, 0.01222991943359375, -0.006488800048828125, 0.041717529296875, -0.06884765625, -0.0098724365234375, 0.0018444061279296875, 0.0156707763671875, 0.01284027099609375, 0.003116607666015625, -0.005954742431640625, -0.022613525390625, 0.054107666015625, 0.00543975830078125, -0.0037136077880859375, 0.03668212890625, 0.07843017578125, 0.00786590576171875, -0.0010366439819335938, -0.060791015625, 0.0038890838623046875, -0.0513916015625, 0.00405120849609375, -0.0048065185546875, 0.0188446044921875, -0.0155029296875, 0.041595458984375, 0.0156402587890625, 0.01165771484375, 0.01398468017578125, -0.006786346435546875, 0.012359619140625, 0.0019311904907226562, 0.005901336669921875, -0.01158905029296875, 0.020050048828125, 0.00873565673828125, 0.0014858245849609375, 0.01255035400390625, 0.025299072265625, -0.0204010009765625, 0.03656005859375, -0.055267333984375, -0.060577392578125, 0.022125244140625, -0.035552978515625, 0.0330810546875, -0.040283203125, -0.0252227783203125, 0.016876220703125, 0.10919189453125, -0.046173095703125, -0.036529541015625, -0.0036678314208984375, 0.03265380859375, 0.0030994415283203125, -0.024658203125, 0.00732421875, -0.045074462890625, -0.1524658203125, 0.032806396484375, -0.0016660690307617188, -0.0523681640625, -0.03240966796875, 0.0491943359375, -0.09478759765625, -0.04150390625, 0.0309600830078125, -0.022247314453125, -0.0021839141845703125, 0.0203704833984375, -0.035308837890625, 0.0009832382202148438, -0.0256805419921875, -0.0234222412109375, -0.0843505859375, -0.0191192626953125, -0.003948211669921875, 0.06500244140625, -0.001300811767578125, -0.017181396484375, -0.014129638671875, 0.068115234375, 0.02899169921875, 0.054840087890625, 0.0248870849609375, 0.0003001689910888672, 0.046356201171875, -0.0128021240234375, 0.0173492431640625, -0.026947021484375, 0.0018329620361328125, -0.01104736328125, -0.07611083984375, 0.0258636474609375, -0.0005536079406738281, 0.040435791015625, 0.036590576171875, -0.032867431640625, -0.05072021484375, -0.034576416015625, 0.0145111083984375, 0.022552490234375, 0.02093505859375, -0.0046234130859375, -0.04071044921875, -0.053802490234375, 0.0190277099609375, -0.03753662109375, -0.004913330078125, 0.01499176025390625, 0.0248260498046875, 0.01363372802734375, -0.015838623046875, 0.0123443603515625, 0.00009900331497192383, 0.02508544921875, -0.044281005859375, 0.05120849609375, 0.0010595321655273438, -0.026580810546875, 0.0814208984375, -0.0195465087890625, 0.01007080078125, 0.0200958251953125, 0.0309600830078125, -0.007427215576171875, -0.033050537109375, 0.0178985595703125, -0.0071868896484375, -0.033477783203125, 0.0272979736328125, 0.0013036727905273438, -0.0113372802734375, 0.0090789794921875, 0.0196533203125, 0.01259613037109375, -0.0240020751953125, -0.0281524658203125, -0.008575439453125, 0.0003566741943359375, 0.01291656494140625, 0.033843994140625, 0.034210205078125, -0.0068511962890625, 0.00768280029296875, -0.0030956268310546875, -0.00308990478515625, 0.0187530517578125, 0.0181732177734375, -0.0200347900390625, 0.0028629302978515625, 0.01507568359375, -0.0174560546875, 0.0005621910095214844, -0.01016998291015625, 0.07830810546875, 0.023193359375, -0.041534423828125, -0.00003141164779663086, 0.006641387939453125, 0.00273895263671875, -0.006439208984375, 0.0215911865234375, 0.034942626953125, 0.001613616943359375, 0.0162353515625, -0.0262451171875, -0.0305633544921875, 0.01294708251953125, -0.03521728515625, 0.0469970703125, 0.050140380859375, -0.0245513916015625, 0.0102081298828125, 0.01326751708984375, 0.0303802490234375, -0.0012722015380859375, -0.0141754150390625, 0.004673004150390625, 0.0202789306640625, 0.02032470703125, 0.03631591796875, 0.0015106201171875, -0.0276947021484375, 0.01122283935546875, 0.0008969306945800781, -0.032928466796875, -0.0018396377563476562, 0.037445068359375, 0.03656005859375, -0.003345489501953125, -0.02508544921875, 0.006053924560546875, -0.01763916015625, -0.0188751220703125, 0.01093292236328125, -0.01172637939453125, -0.0238494873046875, -0.03619384765625, -0.0032062530517578125, 0.040008544921875, 0.01335906982421875, -0.02325439453125, 0.0112152099609375, -0.007389068603515625, 0.00994873046875, 0.00913238525390625, -0.046661376953125, 0.0413818359375, 0.043609619140625, -0.04180908203125, 0.01093292236328125, 0.01482391357421875, -0.05731201171875, -0.04864501953125, 0.003040313720703125, -0.0187530517578125, 0.0163726806640625, 0.0005764961242675781, 0.075439453125, -0.045379638671875, -0.035491943359375, -0.0242919921875, 0.0150604248046875, 0.01410675048828125, 0.007183074951171875, -0.019927978515625, 0.0106048583984375, -0.04168701171875, -0.010467529296875, -0.018829345703125, -0.05902099609375, -0.0281219482421875, -0.0277099609375, -0.00336456298828125, 0.007419586181640625, -0.0113067626953125, -0.044219970703125, -0.0552978515625, 0.015045166015625, 0.046966552734375, -0.0221099853515625, -0.034942626953125, 0.061553955078125, 0.0322265625, 0.035614013671875, -0.0004687309265136719, 0.01352691650390625, -0.0032558441162109375, -0.007312774658203125, 0.003662109375, -0.031097412109375, -0.02301025390625, -0.0089569091796875, -0.039031982421875, 0.053619384765625, 0.11053466796875, 0.005519866943359375, 0.04107666015625, -0.037139892578125, 0.004917144775390625, -0.0269775390625, 0.01165008544921875, -0.07171630859375, -0.0172271728515625, 0.044464111328125, 0.0145111083984375, 0.043670654296875, -0.0166473388671875, -0.011138916015625, -0.01055908203125, 0.0024433135986328125, 0.0203857421875, -0.005161285400390625, -0.03961181640625, 0.0572509765625, 0.053680419921875, 0.0023956298828125, 0.0261383056640625, -0.007526397705078125, -0.01233673095703125, -0.001129150390625, -0.01403045654296875, 0.0400390625, 0.0151519775390625, 0.0750732421875, -0.00469207763671875, -0.003086090087890625, 0.0231170654296875, -0.038787841796875, 0.01104736328125, 0.0498046875, 0.0655517578125, -0.0909423828125, 0.0096435546875, 0.00997161865234375, -0.00930023193359375, 0.0236968994140625, 0.0187225341796875, -0.01439666748046875, -0.032623291015625, 0.0604248046875, -0.052276611328125, -0.0138092041015625, 0.033294677734375, -0.0309906005859375, 0.02618408203125, -0.0260162353515625, 0.032012939453125, -0.01302337646484375, -0.00290679931640625, -0.06756591796875, 0.0006990432739257812, -0.0296478271484375, -0.0491943359375, -0.0139007568359375, 0.0276336669921875, -0.029052734375, -0.0684814453125, 0.029205322265625, -0.0186004638671875, 0.0176544189453125, 0.01490020751953125, 0.04815673828125, -0.002140045166015625, 0.0389404296875, -0.0074615478515625, 0.0184783935546875, 0.005374908447265625, 0.0015363693237304688, -0.01233673095703125, -0.0011281967163085938, 0.049468994140625, -0.0283050537109375, -0.036041259765625, 0.0168914794921875, -0.04296875, -0.02911376953125, -0.006847381591796875, -0.005023956298828125, 0.089111328125, -0.0374755859375, -0.02447509765625, -0.00688934326171875, 0.003543853759765625, 0.025787353515625, -0.0020160675048828125, 0.0261993408203125, -0.0280914306640625, -0.0009274482727050781, 0.004180908203125, -0.0144805908203125, -0.01444244384765625, -0.0103302001953125, -0.019378662109375, 0.0496826171875, -0.07098388671875, -0.0012712478637695312, 0.03558349609375, 0.0185699462890625, 0.016326904296875, 0.0222625732421875, -0.0301971435546875, 0.04254150390625, 0.01593017578125, 0.0305328369140625, -0.00981903076171875, 0.002628326416015625, 0.0223236083984375, 0.00762176513671875, -0.0209503173828125, -0.00839996337890625, -0.058685302734375, 0.0118560791015625, 0.06842041015625, 0.075439453125, 0.061187744140625, 0.0196533203125, -0.0193328857421875, -0.0156402587890625, -0.028961181640625, -0.0114593505859375, 0.010528564453125, -0.0181427001953125, -0.049896240234375, -0.00780487060546875, 0.00952911376953125, 0.0062255859375, 0.0181427001953125, 0.01535797119140625, -0.0694580078125, 0.020294189453125, 0.0299835205078125, 0.0071258544921875, 0.001194000244140625, 0.019622802734375, 0.032012939453125, -0.0428466796875, -0.035980224609375, -0.02374267578125, 0.036590576171875, 0.01678466796875, -0.00004076957702636719, 0.01424407958984375, 0.0164794921875, -0.003940582275390625, 0.01036834716796875, -0.0005850791931152344, 0.0290679931640625, -0.00945281982421875, 0.039642333984375, -0.00823974609375, 0.01107025146484375, -0.04229736328125, -0.0174560546875, 0.0186309814453125, 0.050994873046875, -0.039886474609375, -0.00455474853515625, 0.0263214111328125, 0.009246826171875, -0.01088714599609375, -0.01433563232421875, 0.02099609375, -0.052398681640625, -0.0278472900390625, 0.0036220550537109375, 0.0093994140625, 0.0290679931640625, 0.006923675537109375, 0.01035308837890625, 0.0301055908203125, -0.0273895263671875, 0.01122283935546875, -0.029388427734375, 0.0111236572265625, 0.00879669189453125, 0.031982421875, -0.00859832763671875, 0.05615234375, -0.0253753662109375, -0.00785064697265625, 0.006561279296875, 0.01483154296875, 0.01202392578125, -0.00806427001953125, 0.0175018310546875, 0.00019073486328125, 0.0033111572265625, 0.0104217529296875, 0.008880615234375, 0.0245819091796875, 0.05450439453125, 0.013641357421875, -0.03717041015625, -0.01027679443359375, -0.021026611328125, -0.0433349609375, -0.00997161865234375, 0.005825042724609375, 0.0181427001953125, 0.040985107421875, -0.0158233642578125, 0.0034351348876953125, 0.030029296875, 0.053436279296875, -0.034210205078125, 0.035003662109375, 0.0036487579345703125, -0.0198211669921875, 0.01131439208984375, 0.01415252685546875, 0.022979736328125, 0.0012159347534179688, -0.11163330078125, -0.035888671875, 0.0141448974609375, -0.030364990234375, 0.0333251953125, 0.04486083984375, -0.0328369140625, 0.0242767333984375, 0.03253173828125, 0.0029621124267578125, 0.05047607421875, -0.0260467529296875, -0.0036678314208984375, 0.053436279296875, 0.037811279296875, 0.03594970703125, -0.058258056640625, -0.01314544677734375, -0.049224853515625, 0.0174560546875, 0.035491943359375, 0.010986328125, 0.013824462890625, 0.048614501953125, -0.05194091796875, 0.01358795166015625, -0.045562744140625, -0.06732177734375, 0.058319091796875, 0.008026123046875, -0.005817413330078125, -0.01222991943359375, -0.0396728515625, 0.022216796875, 0.0197601318359375, -0.020721435546875, 0.01230621337890625, -0.0214996337890625, 0.003021240234375, -0.0106201171875, 0.0295562744140625, -0.015045166015625, 0.0294036865234375, 0.02508544921875, -0.01482391357421875, 0.0205841064453125, 0.005596160888671875, 0.01004791259765625, 0.036285400390625, 0.01678466796875, -0.00583648681640625, 0.030517578125, -0.0250701904296875, 0.042022705078125, 0.0316162109375, -0.02142333984375, -0.05078125, 0.03509521484375, 0.0139923095703125, -0.01526641845703125, 0.0278778076171875, 0.0238037109375, 0.031280517578125, -0.015838623046875, 0.0469970703125, 0.027069091796875, 0.026092529296875, -0.0288848876953125, -0.01085662841796875, 0.051422119140625, -0.0206298828125, -0.005756378173828125, -0.047271728515625, -0.054168701171875, -0.07305908203125, 0.031005859375, 0.050018310546875, -0.014617919921875, -0.0013885498046875, -0.0948486328125, -0.0103607177734375, 0.01108551025390625, 0.01457977294921875, -0.059478759765625, 0.058746337890625, -0.0222015380859375, -0.0216064453125, -0.00836944580078125, -0.01512908935546875, 0.002216339111328125, 0.0297698974609375, -0.0216217041015625, -0.033782958984375, -0.029083251953125, 0.0299835205078125, -0.03692626953125, 0.033477783203125, 0.047821044921875, -0.0308837890625, 0.00662994384765625, -0.0059661865234375, 0.0295562744140625, 0.0567626953125, -0.00982666015625, -0.017333984375, 0.042236328125, -0.01580810546875, -0.0016946792602539062, -0.0667724609375, -0.005924224853515625, -0.052459716796875, 0.01111602783203125, 0.054412841796875, -0.0509033203125, -0.020233154296875, -0.037811279296875, -0.0302734375, 0.040069580078125, 0.040679931640625, -0.03485107421875, -0.0008988380432128906, 0.0291748046875, -0.01580810546875, -0.0244293212890625, 0.0010900497436523438, -0.0307159423828125, 0.0273284912109375, 0.007671356201171875, 0.0271759033203125, 0.046539306640625, -0.007381439208984375, 0.0556640625, -0.06365966796875, 0.0167236328125, -0.026947021484375, 0.0227203369140625, -0.00453948974609375, -0.0001036524772644043, 0.0047149658203125, 0.0037746429443359375, -0.05694580078125, -0.0160980224609375, -0.01340484619140625, 0.034515380859375, 0.02423095703125, 0.0167694091796875, -0.053741455078125, -0.034912109375, 0.037139892578125, 0.033935546875, 0.025115966796875, 0.022186279296875, 0.01806640625, -0.0021724700927734375, -0.025909423828125, 0.01319122314453125, 0.0030460357666015625, -0.0255126953125, -0.01049041748046875, 0.017486572265625, -0.03070068359375, -0.036224365234375, 0.0189208984375, -0.054901123046875, -0.00443267822265625, -0.019683837890625, -0.0006608963012695312, -0.03851318359375, -0.037811279296875, 0.054229736328125, -0.037628173828125, -0.0053253173828125, 0.01233673095703125, 0.0293731689453125, 0.01386260986328125, 0.0163421630859375, -0.031524658203125, 0.0012445449829101562, -0.0240325927734375, 0.01361083984375, -0.0196075439453125, 0.00962066650390625, -0.04827880859375, 0.01290130615234375, -0.0201873779296875, 0.01308441162109375, 0.00847625732421875, 0.00839996337890625, -0.009246826171875, 0.024932861328125, 0.01094818115234375, 0.021728515625, 0.028411865234375, 0.030487060546875, 0.025390625, 0.041656494140625, 0.020172119140625, -0.052734375, 0.053985595703125, -0.0908203125, -0.007007598876953125, 0.0008902549743652344, -0.0152587890625, -0.056549072265625, 0.024932861328125, -0.01309967041015625, 0.0035648345947265625, 0.014984130859375 ]
f5fd25b511b1c0ab569f6024d64f253db66148e4
Wordpress Stackexchange Q: How to display wp_nav_menu() conditionally only when not on a 404 page? I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time. But now i have a problem, on my 404 PAGE , i don't want to include the navigation, but if i don't include the header the themes won't play. SO how can i do this?. Any ideas is greatly and highly appreciated. A: Put <?php if( !is_404() ) : ?> before your navigation and <?php endif; ?> after your navigation and VIOLA! It's gone!
Q: How to display wp_nav_menu() conditionally only when not on a 404 page? I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time. But now i have a problem, on my 404 PAGE , i don't want to include the navigation, but if i don't include the header the themes won't play. SO how can i do this?. Any ideas is greatly and highly appreciated. A: Put <?php if( !is_404() ) : ?> before your navigation and <?php endif; ?> after your navigation and VIOLA! It's gone!
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:417205", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42691" }
[ 0.06707763671875, 0.0173492431640625, 0.00946044921875, -0.023712158203125, 0.033538818359375, -0.022216796875, 0.039306640625, -0.043426513671875, 0.00030803680419921875, 0.016632080078125, -0.04937744140625, 0.0186614990234375, -0.028167724609375, -0.007259368896484375, -0.01078033447265625, -0.044708251953125, 0.00799560546875, -0.004364013671875, 0.021453857421875, -0.0181121826171875, 0.00811767578125, -0.0022144317626953125, 0.025909423828125, 0.011505126953125, 0.011871337890625, -0.0538330078125, 0.043487548828125, -0.01534271240234375, -0.0134735107421875, -0.025970458984375, 0.0033626556396484375, 0.034881591796875, 0.0024394989013671875, -0.0084075927734375, 0.0648193359375, 0.03656005859375, -0.00850677490234375, 0.0184173583984375, 0.048553466796875, -0.012420654296875, 0.0257110595703125, -0.0152587890625, 0.0304718017578125, -0.003681182861328125, 0.015045166015625, -0.037933349609375, 0.01245880126953125, -0.0777587890625, 0.01042938232421875, -0.018707275390625, 0.01328277587890625, 0.0182037353515625, 0.03289794921875, -0.0145721435546875, -0.0236053466796875, -0.0267486572265625, 0.01117706298828125, -0.01309967041015625, 0.007472991943359375, 0.01282501220703125, -0.01221466064453125, 0.024444580078125, 0.006641387939453125, -0.0182342529296875, 0.02044677734375, 0.00481414794921875, -0.00858306884765625, 0.0199127197265625, -0.0616455078125, 0.004840850830078125, 0.026580810546875, -0.05694580078125, -0.00362396240234375, 0.002925872802734375, -0.035552978515625, -0.03961181640625, 0.0340576171875, -0.03753662109375, 0.022979736328125, 0.00988006591796875, 0.0340576171875, 0.01910400390625, -0.018646240234375, -0.0295562744140625, 0.041656494140625, 0.015533447265625, -0.0147705078125, -0.032958984375, -0.016754150390625, -0.00445556640625, -0.025238037109375, 0.0185394287109375, -0.0154266357421875, -0.00807952880859375, -0.01222991943359375, -0.0234375, -0.008056640625, 0.06439208984375, -0.0237884521484375, 0.049072265625, 0.00952911376953125, -0.034820556640625, 0.0728759765625, -0.08636474609375, 0.0024814605712890625, 0.04266357421875, 0.01050567626953125, 0.033721923828125, 0.053558349609375, 0.02276611328125, 0.01068878173828125, 0.047454833984375, -0.0165252685546875, -0.054840087890625, -0.00939178466796875, 0.055084228515625, -0.0019855499267578125, -0.03167724609375, 0.005870819091796875, -0.032623291015625, -0.015380859375, 0.0177459716796875, -0.0182037353515625, -0.0195465087890625, -0.0167999267578125, -0.0269927978515625, 0.00945281982421875, -0.01131439208984375, 0.06292724609375, 0.022247314453125, -0.0052642822265625, -0.00951385498046875, -0.0185699462890625, 0.007843017578125, -0.01041412353515625, -0.006988525390625, 0.00533294677734375, 0.01174163818359375, -0.0028743743896484375, 0.005657196044921875, 0.0134735107421875, -0.0081329345703125, 0.01348114013671875, -0.0036334991455078125, 0.026885986328125, -0.0032138824462890625, 0.01232147216796875, 0.034088134765625, 0.0017423629760742188, -0.0535888671875, 0.0271759033203125, 0.021331787109375, 0.0186920166015625, 0.026947021484375, -0.00984954833984375, 0.0113372802734375, 0.016082763671875, -0.0184478759765625, -0.025299072265625, -0.01149749755859375, -0.00481414794921875, 0.0008544921875, 0.02496337890625, -0.0687255859375, -0.0667724609375, -0.02911376953125, -0.051971435546875, -0.01253509521484375, 0.01239013671875, 0.0460205078125, -0.0208892822265625, 0.0024929046630859375, -0.00872039794921875, 0.0048675537109375, -0.00719451904296875, 0.01009368896484375, 0.047760009765625, 0.03680419921875, -0.01512908935546875, 0.0582275390625, 0.0113067626953125, -0.051483154296875, 0.037994384765625, -0.031646728515625, -0.0811767578125, 0.049713134765625, -0.00411224365234375, 0.07275390625, 0.0249481201171875, 0.0112457275390625, 0.0643310546875, 0.00026726722717285156, -0.014739990234375, 0.0126800537109375, -0.0017156600952148438, -0.01123046875, -0.00754547119140625, 0.00994110107421875, -0.017364501953125, -0.001953125, -0.023345947265625, 0.033843994140625, -0.03704833984375, 0.0045928955078125, -0.061614990234375, 0.009124755859375, -0.02532958984375, 0.045562744140625, 0.00994873046875, 0.038787841796875, 0.00022149085998535156, 0.0166168212890625, -0.0189666748046875, -0.022003173828125, -0.023193359375, 0.01064300537109375, -0.0029430389404296875, 0.00616455078125, -0.01434326171875, -0.00019288063049316406, -0.0199127197265625, -0.004302978515625, -0.0274810791015625, 0.0103759765625, 0.042724609375, -0.060272216796875, 0.00827789306640625, -0.0360107421875, 0.055023193359375, -0.0050811767578125, -0.0002574920654296875, 0.00960540771484375, 0.0109710693359375, -0.0036525726318359375, -0.035675048828125, -0.0133819580078125, 0.0022830963134765625, -0.04827880859375, 0.017852783203125, 0.04864501953125, 0.0297698974609375, 0.0284423828125, -0.0249176025390625, -0.01219940185546875, 0.0010166168212890625, -0.06329345703125, 0.0013513565063476562, 0.00281524658203125, -0.0273590087890625, -0.028564453125, 0.04241943359375, -0.01197052001953125, 0.035919189453125, 0.005802154541015625, 0.0110015869140625, 0.0189361572265625, -0.017974853515625, -0.0003523826599121094, -0.017486572265625, 0.0236968994140625, -0.01319122314453125, 0.044952392578125, 0.0283355712890625, -0.0004448890686035156, 0.0065765380859375, -0.0360107421875, -0.0109100341796875, -0.023895263671875, -0.01519012451171875, -0.037872314453125, 0.0433349609375, 0.01922607421875, 0.0311737060546875, 0.054962158203125, 0.01465606689453125, 0.0616455078125, -0.00948333740234375, -0.044647216796875, 0.045379638671875, 0.049072265625, -0.02825927734375, 0.02984619140625, 0.01042938232421875, -0.016876220703125, -0.031951904296875, -0.054840087890625, 0.023284912109375, -0.0184173583984375, -0.0018062591552734375, 0.01568603515625, 0.03167724609375, 0.0297393798828125, -0.0173492431640625, 0.0305023193359375, -0.007251739501953125, -0.00682830810546875, -0.065673828125, -0.038970947265625, 0.0187835693359375, -0.036407470703125, 0.005031585693359375, 0.060302734375, 0.02935791015625, -0.0284423828125, 0.005725860595703125, 0.0181884765625, 0.0206146240234375, 0.0163421630859375, -0.0016183853149414062, 0.0172576904296875, -0.028106689453125, 0.025054931640625, 0.016571044921875, -0.01503753662109375, 0.0175018310546875, -0.00604248046875, -0.00678253173828125, 0.0032978057861328125, -0.06976318359375, -0.07861328125, -0.0186767578125, -0.004917144775390625, 0.056915283203125, 0.0272979736328125, 0.0330810546875, -0.04534912109375, 0.042510986328125, 0.025543212890625, -0.0289306640625, -0.034881591796875, -0.046295166015625, -0.0657958984375, -0.06707763671875, 0.0298919677734375, -0.0011568069458007812, 0.0210723876953125, -0.00791168212890625, 0.01123809814453125, -0.00746917724609375, -0.051605224609375, 0.003116607666015625, 0.005733489990234375, -0.01546478271484375, 0.0112762451171875, 0.026824951171875, -0.0223388671875, 0.0035552978515625, 0.01015472412109375, 0.007411956787109375, 0.004184722900390625, -0.0014972686767578125, -0.01800537109375, -0.032440185546875, -0.00733184814453125, -0.00916290283203125, 0.01520538330078125, 0.039642333984375, -0.0020160675048828125, 0.02783203125, -0.0205841064453125, -0.0521240234375, -0.0211029052734375, -0.08123779296875, 0.006298065185546875, 0.0704345703125, 0.005435943603515625, -0.055999755859375, 0.01120758056640625, 0.008941650390625, 0.00632476806640625, 0.003993988037109375, -0.0116424560546875, 0.061920166015625, 0.00830078125, 0.0245513916015625, -0.02850341796875, 0.018463134765625, -0.01207733154296875, 0.0083465576171875, 0.006038665771484375, 0.0231170654296875, 0.00720977783203125, 0.0142669677734375, -0.055206298828125, -0.00417327880859375, 0.01491546630859375, -0.02734375, 0.039459228515625, -0.0096435546875, -0.00891876220703125, 0.007488250732421875, 0.0631103515625, -0.047760009765625, -0.0242156982421875, -0.0291748046875, 0.00624847412109375, 0.0231475830078125, -0.045684814453125, 0.012725830078125, -0.032562255859375, -0.06378173828125, 0.0137939453125, -0.0252532958984375, -0.023345947265625, -0.0007338523864746094, -0.009521484375, -0.0256500244140625, -0.042327880859375, 0.03302001953125, -0.0623779296875, -0.004085540771484375, 0.03326416015625, -0.027130126953125, -0.0163421630859375, -0.035064697265625, -0.0276641845703125, -0.050018310546875, -0.01473236083984375, -0.0311279296875, 0.06390380859375, 0.03863525390625, -0.0325927734375, 0.011383056640625, 0.0416259765625, 0.05841064453125, 0.0229339599609375, 0.017486572265625, -0.0380859375, 0.033172607421875, -0.00885009765625, 0.029266357421875, -0.017730712890625, 0.0017042160034179688, -0.0032711029052734375, -0.042144775390625, 0.017852783203125, -0.013641357421875, -0.0004863739013671875, 0.026214599609375, -0.04400634765625, -0.0307769775390625, -0.036590576171875, -0.006839752197265625, 0.031890869140625, 0.01274871826171875, -0.00853729248046875, -0.0364990234375, -0.044830322265625, 0.0037021636962890625, -0.0284881591796875, -0.0198974609375, 0.023193359375, 0.0135498046875, 0.022857666015625, -0.01041412353515625, 0.001743316650390625, 0.038055419921875, 0.0283203125, -0.0172119140625, 0.04595947265625, 0.0023899078369140625, -0.0157928466796875, 0.08087158203125, -0.01422119140625, -0.030670166015625, 0.0218353271484375, 0.03704833984375, 0.00905609130859375, -0.0347900390625, 0.01023101806640625, -0.0183258056640625, -0.009796142578125, 0.0657958984375, 0.0297088623046875, -0.050537109375, 0.0187835693359375, 0.0478515625, -0.020111083984375, -0.0154876708984375, -0.034393310546875, 0.0251617431640625, -0.02764892578125, 0.026275634765625, 0.07568359375, 0.0653076171875, -0.01123046875, -0.0005235671997070312, 0.031890869140625, -0.016326904296875, -0.012664794921875, 0.0155029296875, -0.017822265625, 0.015869140625, -0.0030384063720703125, -0.026153564453125, -0.003841400146484375, -0.011260986328125, 0.06658935546875, 0.0279388427734375, -0.03155517578125, -0.041351318359375, 0.0061492919921875, 0.03948974609375, -0.0079803466796875, -0.0122222900390625, 0.01282501220703125, -0.00847625732421875, -0.007114410400390625, 0.0011110305786132812, -0.016937255859375, -0.01904296875, -0.03521728515625, 0.034454345703125, 0.0244293212890625, -0.0018434524536132812, -0.005832672119140625, 0.044921875, 0.0258331298828125, 0.0013408660888671875, -0.020538330078125, -0.024871826171875, -0.0138702392578125, 0.019195556640625, 0.022705078125, 0.00771331787109375, 0.00804901123046875, -0.0035152435302734375, 0.059661865234375, -0.041107177734375, -0.0124359130859375, 0.007755279541015625, 0.03411865234375, -0.018341064453125, -0.0150604248046875, 0.028839111328125, -0.01126861572265625, -0.0030193328857421875, 0.0433349609375, -0.057037353515625, -0.0587158203125, -0.056427001953125, 0.014007568359375, 0.0738525390625, -0.031707763671875, -0.0168304443359375, 0.014862060546875, -0.00632476806640625, 0.00904083251953125, 0.01428985595703125, -0.0406494140625, 0.0199127197265625, 0.0355224609375, 0.0321044921875, -0.031494140625, 0.00693511962890625, -0.050201416015625, 0.037994384765625, -0.055023193359375, -0.004848480224609375, 0.043792724609375, -0.0277557373046875, 0.0072479248046875, -0.02508544921875, 0.0031108856201171875, 0.0030193328857421875, 0.022613525390625, 0.01690673828125, -0.00392913818359375, -0.07781982421875, 0.0269927978515625, -0.0382080078125, 0.0248260498046875, -0.026031494140625, -0.09375, -0.0291290283203125, -0.049072265625, 0.0291748046875, 0.00983428955078125, 0.0038700103759765625, -0.03887939453125, -0.023956298828125, 0.0161590576171875, 0.0288238525390625, 0.0059051513671875, -0.0286102294921875, 0.06390380859375, 0.0173492431640625, 0.0203399658203125, 0.00658416748046875, 0.0238189697265625, -0.00852203369140625, -0.0049591064453125, 0.01235198974609375, -0.02337646484375, -0.0198822021484375, -0.022430419921875, -0.0040283203125, 0.029510498046875, 0.06390380859375, -0.0009398460388183594, 0.035430908203125, -0.03607177734375, -0.002315521240234375, -0.0186004638671875, 0.0206298828125, -0.050628662109375, 0.006649017333984375, 0.0218505859375, -0.00394439697265625, 0.023162841796875, -0.002811431884765625, -0.024505615234375, 0.01546478271484375, 0.0059814453125, 0.040557861328125, -0.0236663818359375, -0.07684326171875, 0.0841064453125, 0.11004638671875, 0.0386962890625, 0.0819091796875, 0.009368896484375, 0.0239105224609375, 0.017181396484375, 0.0265655517578125, -0.01434326171875, -0.0174560546875, 0.028076171875, 0.00223541259765625, -0.0030498504638671875, 0.010345458984375, -0.0185089111328125, -0.01393890380859375, 0.047943115234375, 0.041839599609375, -0.06451416015625, -0.007297515869140625, 0.01032257080078125, -0.00879669189453125, 0.00431060791015625, -0.0019521713256835938, -0.00852203369140625, -0.0166015625, 0.01629638671875, -0.00690460205078125, -0.021636962890625, 0.01015472412109375, 0.0157623291015625, -0.003742218017578125, -0.0308837890625, 0.03692626953125, 0.0008449554443359375, -0.03424072265625, -0.02093505859375, 0.0010995864868164062, -0.00690460205078125, -0.01064300537109375, 0.0083770751953125, -0.0012178421020507812, 0.0000775456428527832, -0.0088043212890625, 0.0428466796875, -0.0274810791015625, 0.012237548828125, 0.0224456787109375, 0.038848876953125, -0.0117034912109375, 0.034576416015625, -0.0196533203125, 0.03802490234375, 0.0006966590881347656, -0.0152740478515625, 0.0633544921875, -0.0018587112426757812, 0.0257415771484375, -0.00890350341796875, -0.0391845703125, -0.0123291015625, -0.0068206787109375, -0.0126800537109375, -0.00836181640625, -0.005401611328125, 0.1231689453125, -0.049530029296875, -0.03009033203125, -0.00897979736328125, -0.0022144317626953125, 0.0115509033203125, -0.01413726806640625, 0.07537841796875, -0.05975341796875, -0.0048370361328125, 0.019439697265625, 0.02423095703125, -0.054473876953125, -0.007724761962890625, 0.0040283203125, 0.050750732421875, -0.036529541015625, -0.02490234375, -0.0002880096435546875, 0.047393798828125, 0.025482177734375, 0.06524658203125, -0.0272216796875, 0.06964111328125, 0.00815582275390625, 0.05926513671875, -0.049530029296875, -0.004642486572265625, 0.017242431640625, 0.026397705078125, 0.020111083984375, 0.003559112548828125, 0.00902557373046875, 0.0235748291015625, 0.07379150390625, 0.06298828125, 0.0179443359375, -0.00955963134765625, -0.056976318359375, -0.017242431640625, -0.005859375, -0.0157470703125, 0.0276031494140625, -0.0162811279296875, -0.06951904296875, -0.054443359375, 0.0145263671875, 0.00778961181640625, 0.0159454345703125, 0.01300048828125, -0.04522705078125, 0.00553131103515625, 0.02105712890625, 0.0186920166015625, -0.006206512451171875, 0.0302581787109375, 0.031494140625, -0.051544189453125, 0.01488494873046875, -0.04510498046875, 0.05364990234375, 0.0089874267578125, -0.0014772415161132812, -0.01055145263671875, 0.003711700439453125, -0.028472900390625, 0.019317626953125, -0.0036067962646484375, 0.046051025390625, -0.01309967041015625, 0.062744140625, 0.04388427734375, 0.041778564453125, -0.0211181640625, -0.0400390625, 0.032196044921875, 0.0885009765625, -0.02728271484375, -0.04010009765625, 0.007411956787109375, 0.0078277587890625, 0.01611328125, 0.01424407958984375, 0.044342041015625, 0.0091552734375, 0.0180816650390625, 0.00457000732421875, 0.0211944580078125, 0.0013294219970703125, -0.0027408599853515625, -0.0049591064453125, 0.017120361328125, -0.0034465789794921875, 0.040191650390625, -0.03851318359375, 0.017913818359375, 0.047698974609375, 0.0615234375, -0.0018100738525390625, 0.04425048828125, -0.01296234130859375, -0.015228271484375, 0.0087890625, 0.04791259765625, -0.059600830078125, 0.00716400146484375, -0.033905029296875, -0.0689697265625, -0.046417236328125, 0.045135498046875, 0.004322052001953125, -0.0122222900390625, 0.0162506103515625, 0.0271759033203125, -0.006801605224609375, -0.012298583984375, 0.05517578125, -0.0179290771484375, -0.02899169921875, -0.01139068603515625, -0.0037784576416015625, 0.042327880859375, 0.00824737548828125, 0.00653076171875, -0.01320648193359375, 0.0670166015625, 0.006122589111328125, 0.0158538818359375, 0.0004723072052001953, -0.04345703125, 0.007259368896484375, -0.004985809326171875, 0.056427001953125, 0.0242919921875, -0.0682373046875, -0.0198974609375, -0.0018224716186523438, -0.036590576171875, 0.035919189453125, 0.051666259765625, -0.005523681640625, -0.00492095947265625, 0.050079345703125, 0.0015106201171875, -0.006443023681640625, -0.00861358642578125, 0.005840301513671875, 0.0025043487548828125, 0.03173828125, 0.032470703125, -0.08087158203125, -0.0562744140625, -0.037933349609375, 0.045654296875, 0.014129638671875, 0.06048583984375, 0.01739501953125, 0.013671875, 0.004856109619140625, 0.0253753662109375, -0.01557159423828125, -0.0106658935546875, 0.036895751953125, -0.00354766845703125, 0.00727081298828125, -0.0201416015625, -0.0662841796875, 0.0211639404296875, 0.04327392578125, -0.01824951171875, 0.045806884765625, 0.0019855499267578125, 0.00913238525390625, -0.0516357421875, -0.0244903564453125, -0.0360107421875, -0.04888916015625, -0.052032470703125, 0.0101318359375, 0.01409149169921875, 0.00927734375, -0.0291595458984375, 0.0308837890625, -0.0084228515625, -0.03533935546875, 0.0284271240234375, -0.03521728515625, 0.01253509521484375, 0.0216522216796875, 0.01275634765625, 0.01099395751953125, -0.0200958251953125, -0.0148773193359375, -0.00609588623046875, 0.006877899169921875, -0.03289794921875, -0.00870513916015625, -0.007381439208984375, 0.0020313262939453125, -0.0285797119140625, 0.0161895751953125, -0.046722412109375, -0.0013713836669921875, -0.0024776458740234375, 0.02587890625, 0.01445770263671875, -0.04168701171875, -0.0222015380859375, -0.00870513916015625, -0.0055084228515625, 0.036285400390625, 0.0015087127685546875, -0.0151824951171875, -0.05950927734375, 0.0009207725524902344, 0.0292510986328125, 0.0196075439453125, -0.0692138671875, 0.03045654296875, -0.00609588623046875, 0.07373046875, -0.033050537109375, 0.037628173828125, -0.0174713134765625, -0.0116424560546875, -0.032470703125, 0.035400390625, -0.009246826171875, 0.0064849853515625, 0.027313232421875, -0.01465606689453125, 0.034820556640625, 0.003078460693359375, -0.0196075439453125, -0.027069091796875, -0.029327392578125, 0.030059814453125, -0.023223876953125, -0.038818359375, -0.0252838134765625, -0.01262664794921875, 0.02484130859375, 0.03472900390625, 0.00726318359375, -0.00643157958984375, -0.043060302734375, 0.037841796875, -0.0260467529296875, 0.00873565673828125, -0.0302886962890625, -0.028778076171875, 0.06256103515625, 0.0245513916015625, -0.032196044921875, -0.0011110305786132812, 0.011199951171875, -0.020751953125, -0.01302337646484375, -0.012359619140625, -0.019134521484375, 0.0262908935546875, 0.0260009765625, 0.034820556640625, 0.0272216796875, 0.004673004150390625, 0.02252197265625, -0.037811279296875, 0.04638671875, 0.0230865478515625, 0.025634765625, -0.00325775146484375, -0.006481170654296875, 0.00643157958984375, 0.0258636474609375, -0.04443359375, -0.0196380615234375, -0.0037078857421875, 0.01001739501953125, 0.01045989990234375, -0.035736083984375, -0.0272674560546875, -0.049560546875, 0.0484619140625, -0.01300048828125, 0.014801025390625, 0.01306915283203125, -0.04315185546875, -0.035400390625, -0.00836181640625, -0.00948333740234375, 0.01531982421875, -0.0775146484375, 0.01137542724609375, 0.024169921875, -0.03900146484375, -0.0114288330078125, 0.019744873046875, -0.055755615234375, 0.0085906982421875, -0.0158233642578125, -0.02923583984375, -0.037322998046875, -0.063232421875, 0.0270538330078125, -0.01328277587890625, 0.0084686279296875, -0.0076904296875, 0.052093505859375, -0.00571441650390625, 0.0182952880859375, 0.0030384063720703125, 0.02667236328125, -0.061553955078125, -0.0160675048828125, -0.0074310302734375, 0.0017213821411132812, -0.0253143310546875, -0.009979248046875, -0.00618743896484375, 0.0283050537109375, 0.0109405517578125, 0.042266845703125, -0.004825592041015625, -0.0196990966796875, -0.00351715087890625, -0.0014200210571289062, -0.035400390625, 0.1063232421875, 0.01959228515625, 0.05267333984375, -0.0095367431640625, -0.0091094970703125, 0.049102783203125, -0.06036376953125, -0.007305145263671875, 0.00794219970703125, -0.032928466796875, -0.062042236328125, 0.03466796875, -0.0496826171875, 0.005626678466796875, 0.032562255859375 ]
a27c249cf846e014587186c821742dcd7e4b0656
Wordpress Stackexchange Q: How to hook wp_list_pages? How can I hook the wp_list_pages function so that it reads a value of a custom field and displays it instead of displaying the page title? A: A Walker Class extension would be necessary in this case: class My_Custom_Walker extends Walker_page { function start_el(&$output, $page, $depth, $args, $current_page) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $output .= $indent . '<li><div>' . get_post_meta($post_id, $key, $single) . '</div></li>'; } // End start_el } // End Walker Class Then, when you use your wp_list_pages function, you would call the class: // Call class: $My_Walker = new My_Custom_Walker(); $args = array( 'walker' => $My_Walker ); wp_list_pages( $args ); Documentation on this subject is a bit scarce so let me know if you need more help.
Q: How to hook wp_list_pages? How can I hook the wp_list_pages function so that it reads a value of a custom field and displays it instead of displaying the page title? A: A Walker Class extension would be necessary in this case: class My_Custom_Walker extends Walker_page { function start_el(&$output, $page, $depth, $args, $current_page) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $output .= $indent . '<li><div>' . get_post_meta($post_id, $key, $single) . '</div></li>'; } // End start_el } // End Walker Class Then, when you use your wp_list_pages function, you would call the class: // Call class: $My_Walker = new My_Custom_Walker(); $args = array( 'walker' => $My_Walker ); wp_list_pages( $args ); Documentation on this subject is a bit scarce so let me know if you need more help. A: A quick Google Search came up with this Source Try the following: function wp_list_pages_filter($output) { // modify $output here, it's a string of <li>'s by the looks of source return $output; } add_filter('wp_list_pages', 'wp_list_pages_filter'); A: You are able to pass in your own custom walker as one of the args, use this to pass in a walker which extends Walker_Page and uses your own custom post title.
wordpress
{ "language": "en", "length": 202, "provenance": "stackexchange_00019.jsonl.gz:417208", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42701" }
[ 0.024169921875, -0.016448974609375, 0.004383087158203125, -0.0236663818359375, -0.01461029052734375, -0.0245819091796875, 0.018218994140625, -0.0005936622619628906, -0.00896453857421875, -0.0140533447265625, -0.0175933837890625, 0.01389312744140625, -0.061431884765625, -0.037689208984375, 0.031524658203125, -0.048583984375, 0.03564453125, -0.0006499290466308594, 0.060394287109375, 0.01358795166015625, 0.037078857421875, 0.0196533203125, 0.021087646484375, 0.012176513671875, 0.038482666015625, -0.0545654296875, 0.04833984375, -0.00428009033203125, 0.0301971435546875, -0.005706787109375, 0.0252227783203125, -0.01349639892578125, 0.05877685546875, -0.018951416015625, -0.005176544189453125, 0.02630615234375, 0.03955078125, -0.032012939453125, -0.013519287109375, 0.0433349609375, 0.025115966796875, 0.0011968612670898438, -0.0521240234375, -0.02459716796875, -0.03717041015625, -0.03033447265625, 0.007595062255859375, -0.0007023811340332031, 0.00614166259765625, -0.044036865234375, 0.0015735626220703125, 0.029541015625, 0.007633209228515625, -0.0004911422729492188, -0.0175933837890625, 0.0062255859375, -0.012237548828125, 0.0017423629760742188, 0.032958984375, 0.027008056640625, -0.0112762451171875, -0.01210784912109375, 0.00830841064453125, -0.04473876953125, -0.0028553009033203125, 0.0010251998901367188, -0.0125579833984375, 0.018707275390625, -0.0205841064453125, -0.01027679443359375, 0.01387786865234375, -0.0218353271484375, -0.007293701171875, -0.006381988525390625, -0.0272674560546875, 0.0101470947265625, 0.032684326171875, -0.00954437255859375, -0.00823211669921875, 0.0194854736328125, -0.0108642578125, -0.032073974609375, -0.038848876953125, 0.0029296875, 0.0165557861328125, 0.04547119140625, -0.029815673828125, -0.018096923828125, 0.0194549560546875, -0.002593994140625, -0.01038360595703125, 0.055938720703125, 0.01568603515625, -0.0185089111328125, -0.043975830078125, -0.017120361328125, -0.0195159912109375, -0.002277374267578125, 0.01384735107421875, 0.046478271484375, 0.00846099853515625, -0.034423828125, 0.05413818359375, -0.04156494140625, 0.01383209228515625, 0.037872314453125, -0.0009083747863769531, -0.0296478271484375, 0.032684326171875, 0.01078033447265625, 0.0161895751953125, 0.0217437744140625, 0.01294708251953125, -0.0109100341796875, -0.016510009765625, 0.00215911865234375, -0.00873565673828125, -0.010894775390625, -0.00733184814453125, -0.035064697265625, -0.0026702880859375, 0.0021209716796875, 0.02880859375, -0.031402587890625, 0.04656982421875, 0.02203369140625, -0.0286102294921875, -0.0227813720703125, 0.05645751953125, -0.016387939453125, -0.0304718017578125, -0.0009899139404296875, 0.04632568359375, 0.040191650390625, 0.0224456787109375, 0.0025177001953125, -0.0033092498779296875, 0.01416778564453125, 0.003997802734375, 0.01995849609375, -0.0088653564453125, -0.056976318359375, -0.0032482147216796875, -0.021881103515625, 0.042510986328125, 0.0023632049560546875, 0.005672454833984375, 0.03961181640625, 0.0269317626953125, -0.01062774658203125, 0.050018310546875, 0.0020389556884765625, -0.0092010498046875, 0.02569580078125, 0.0282440185546875, -0.0236968994140625, 0.03271484375, -0.0274658203125, 0.0290374755859375, -0.0269012451171875, -0.022979736328125, -0.02593994140625, -0.0012483596801757812, -0.0859375, -0.0645751953125, 0.01340484619140625, -0.014434814453125, -0.0014772415161132812, 0.003940582275390625, -0.0101165771484375, 0.0303955078125, -0.0081024169921875, -0.038543701171875, 0.002643585205078125, 0.0182952880859375, -0.00007557868957519531, -0.031463623046875, 0.0165252685546875, 0.036163330078125, -0.0231781005859375, -0.038665771484375, -0.04510498046875, 0.050933837890625, -0.032867431640625, -0.0743408203125, 0.05926513671875, 0.003116607666015625, 0.08990478515625, 0.005680084228515625, 0.0186309814453125, 0.037811279296875, 0.0011014938354492188, -0.06781005859375, 0.007572174072265625, -0.00545501708984375, 0.0005288124084472656, 0.0152740478515625, 0.0003597736358642578, -0.0047607421875, 0.00798797607421875, -0.014984130859375, 0.01509857177734375, -0.025421142578125, 0.021331787109375, -0.0290679931640625, 0.01071929931640625, -0.0101470947265625, 0.032135009765625, 0.01812744140625, 0.03466796875, 0.00331878662109375, 0.008209228515625, -0.0237884521484375, 0.00469970703125, -0.039337158203125, -0.0233154296875, 0.0006337165832519531, 0.023956298828125, 0.0016145706176757812, -0.025665283203125, 0.0214385986328125, -0.04571533203125, 0.001285552978515625, 0.03857421875, 0.05010986328125, -0.016937255859375, -0.022705078125, -0.03271484375, 0.01224517822265625, 0.004337310791015625, -0.03173828125, 0.034912109375, 0.03985595703125, 0.057647705078125, -0.0257720947265625, -0.01465606689453125, 0.0083770751953125, -0.07080078125, 0.0157623291015625, 0.050628662109375, 0.055908203125, 0.035858154296875, 0.002933502197265625, -0.044097900390625, 0.042327880859375, -0.0205078125, 0.04296875, -0.06494140625, 0.00044608116149902344, 0.02569580078125, 0.004848480224609375, 0.012451171875, 0.0164031982421875, 0.02105712890625, 0.00995635986328125, 0.0089263916015625, -0.007049560546875, 0.0166168212890625, -0.0173187255859375, -0.023406982421875, -0.0020008087158203125, -0.0322265625, -0.0155181884765625, -0.0082855224609375, 0.01123809814453125, 0.024932861328125, 0.03863525390625, 0.0222320556640625, -0.00917816162109375, -0.0092315673828125, 0.0078582763671875, 0.008819580078125, 0.024871826171875, -0.00035262107849121094, -0.03289794921875, 0.006137847900390625, 0.01424407958984375, -0.0229034423828125, 0.009613037109375, -0.0191497802734375, 0.0224609375, 0.0859375, -0.0293426513671875, -0.0240936279296875, -0.0269317626953125, -0.036163330078125, -0.04168701171875, 0.028533935546875, -0.00708770751953125, -0.01473236083984375, -0.00366973876953125, 0.031585693359375, -0.0361328125, 0.04766845703125, -0.0187225341796875, -0.011077880859375, 0.0287322998046875, -0.0435791015625, 0.0440673828125, -0.04095458984375, 0.0260009765625, 0.051971435546875, -0.0138702392578125, -0.00872039794921875, 0.0006690025329589844, -0.038818359375, -0.029266357421875, 0.019012451171875, 0.0061798095703125, -0.01371002197265625, -0.042236328125, 0.060760498046875, 0.0264739990234375, 0.08984375, -0.00323486328125, -0.041748046875, 0.007793426513671875, 0.0545654296875, -0.05718994140625, -0.0643310546875, 0.037811279296875, -0.0687255859375, -0.006610870361328125, -0.00457000732421875, -0.040130615234375, -0.01323699951171875, 0.04339599609375, 0.0017910003662109375, -0.046142578125, -0.027435302734375, -0.04217529296875, -0.07098388671875, -0.07122802734375, 0.02056884765625, 0.0126495361328125, 0.032623291015625, 0.003688812255859375, 0.039031982421875, 0.01465606689453125, -0.029052734375, 0.0263519287109375, 0.0511474609375, -0.02667236328125, -0.013946533203125, -0.03582763671875, -0.032440185546875, 0.0299224853515625, 0.00258636474609375, 0.00011754035949707031, -0.011627197265625, 0.0521240234375, -0.0318603515625, -0.0291595458984375, 0.01528167724609375, 0.0097503662109375, 0.01332855224609375, 0.0276336669921875, 0.03985595703125, 0.036376953125, -0.01134490966796875, -0.01873779296875, -0.006500244140625, -0.041961669921875, -0.0033702850341796875, 0.018798828125, -0.01360321044921875, -0.0148162841796875, 0.0017328262329101562, -0.022369384765625, -0.0187225341796875, 0.0250396728515625, -0.01812744140625, 0.00798797607421875, -0.0042877197265625, -0.0084228515625, 0.01531219482421875, 0.04461669921875, 0.02276611328125, -0.0147552490234375, 0.0156707763671875, 0.06512451171875, 0.002246856689453125, 0.0131683349609375, -0.069091796875, -0.07598876953125, 0.04559326171875, 0.0011243820190429688, 0.010406494140625, -0.0173797607421875, -0.0246429443359375, 0.026275634765625, 0.094482421875, -0.045654296875, -0.0328369140625, -0.0005240440368652344, 0.03973388671875, -0.033935546875, -0.0584716796875, 0.0014543533325195312, -0.0178985595703125, -0.09466552734375, 0.0052642822265625, 0.006298065185546875, -0.030426025390625, -0.0218505859375, 0.063232421875, -0.06182861328125, -0.0207672119140625, 0.0165252685546875, 0.00289154052734375, -0.006557464599609375, 0.032470703125, -0.03631591796875, 0.028106689453125, -0.0146942138671875, -0.02093505859375, -0.10345458984375, -0.0260162353515625, 0.0216064453125, 0.064453125, 0.00421905517578125, -0.062408447265625, -0.0303955078125, 0.04913330078125, 0.035614013671875, 0.0299072265625, -0.00015532970428466797, -0.035888671875, 0.05029296875, 0.0209197998046875, 0.0233001708984375, 0.00946807861328125, 0.0117340087890625, -0.03375244140625, -0.0279083251953125, -0.01169586181640625, -0.03521728515625, 0.003936767578125, -0.028228759765625, -0.0157470703125, -0.059661865234375, -0.03912353515625, -0.019744873046875, 0.0030975341796875, -0.005229949951171875, 0.0026950836181640625, -0.0282440185546875, -0.0640869140625, 0.008453369140625, -0.03271484375, -0.018890380859375, 0.01031494140625, 0.06927490234375, 0.0302734375, 0.0025043487548828125, -0.0151214599609375, 0.0096435546875, 0.0220947265625, -0.038787841796875, 0.06341552734375, 0.009033203125, -0.00600433349609375, 0.085693359375, -0.042083740234375, 0.0008826255798339844, -0.00033664703369140625, 0.0364990234375, 0.0335693359375, 0.022186279296875, -0.0213470458984375, 0.006565093994140625, -0.0185546875, 0.057373046875, -0.004547119140625, -0.0203094482421875, 0.05035400390625, 0.0221405029296875, -0.058929443359375, 0.027679443359375, 0.01299285888671875, -0.01062774658203125, -0.005138397216796875, 0.0199432373046875, 0.034454345703125, 0.0220184326171875, 0.01165771484375, 0.00788116455078125, 0.0272216796875, 0.02374267578125, 0.032745361328125, 0.0044097900390625, -0.0122222900390625, 0.0280303955078125, 0.0122528076171875, 0.00547027587890625, 0.0207366943359375, -0.00824737548828125, 0.0258026123046875, -0.0081024169921875, -0.05975341796875, 0.01401519775390625, -0.006214141845703125, -0.0119171142578125, 0.011688232421875, 0.0032939910888671875, 0.033782958984375, 0.055572509765625, -0.00750732421875, 0.00550079345703125, 0.0140228271484375, 0.00922393798828125, -0.0245208740234375, -0.0016717910766601562, 0.0216827392578125, -0.009368896484375, -0.0185699462890625, 0.083984375, 0.00799560546875, 0.03265380859375, -0.0230560302734375, 0.01163482666015625, 0.005367279052734375, 0.039276123046875, 0.0120086669921875, -0.00835418701171875, -0.035308837890625, 0.0284271240234375, 0.00646209716796875, -0.03680419921875, -0.013336181640625, 0.029296875, -0.005130767822265625, 0.00327301025390625, -0.004276275634765625, 0.025634765625, 0.015960693359375, -0.0287933349609375, 0.044586181640625, -0.03289794921875, -0.06878662109375, -0.05450439453125, 0.00003528594970703125, 0.032928466796875, -0.02130126953125, 0.00461578369140625, 0.017333984375, 0.0215911865234375, 0.01519012451171875, -0.0146942138671875, -0.005031585693359375, -0.0216522216796875, -0.01027679443359375, -0.0244140625, -0.0022754669189453125, 0.047607421875, -0.066650390625, -0.031005859375, -0.0177154541015625, -0.003810882568359375, 0.027740478515625, -0.01511383056640625, 0.026458740234375, -0.039031982421875, -0.007396697998046875, -0.03485107421875, -0.00518798828125, 0.06011962890625, 0.02703857421875, -0.072021484375, 0.0095062255859375, -0.020416259765625, 0.01261138916015625, 0.0002994537353515625, -0.03643798828125, -0.038818359375, -0.0138397216796875, -0.0010824203491210938, 0.037841796875, -0.01197052001953125, -0.04132080078125, -0.01126861572265625, -0.022308349609375, -0.0140838623046875, 0.0117034912109375, -0.016754150390625, 0.05120849609375, 0.0303192138671875, 0.049835205078125, 0.0292816162109375, 0.0308074951171875, -0.016845703125, -0.036895751953125, -0.0025844573974609375, -0.0538330078125, -0.02996826171875, 0.0160064697265625, -0.01219940185546875, 0.03887939453125, 0.0149078369140625, 0.0103302001953125, 0.0032215118408203125, -0.002857208251953125, 0.002300262451171875, -0.01366424560546875, -0.00661468505859375, -0.0005235671997070312, -0.015625, 0.020751953125, 0.0154876708984375, -0.0018148422241210938, 0.011474609375, -0.03759765625, 0.005401611328125, 0.0408935546875, 0.01239776611328125, -0.0423583984375, -0.030975341796875, 0.03179931640625, 0.0484619140625, -0.0055999755859375, 0.025787353515625, 0.009307861328125, -0.00795745849609375, 0.0193939208984375, 0.0362548828125, 0.0251617431640625, -0.04718017578125, 0.09698486328125, 0.0218048095703125, -0.01432037353515625, 0.068115234375, -0.045867919921875, -0.00557708740234375, 0.0330810546875, 0.05859375, -0.047088623046875, 0.00836944580078125, 0.03411865234375, 0.01374053955078125, -0.018218994140625, 0.00995635986328125, -0.0081329345703125, -0.0053253173828125, 0.01544189453125, -0.023712158203125, -0.0224151611328125, 0.00811767578125, 0.00928497314453125, 0.0178985595703125, 0.006755828857421875, 0.08245849609375, 0.03875732421875, 0.01340484619140625, -0.02435302734375, -0.0037555694580078125, 0.040283203125, -0.0035552978515625, 0.02166748046875, -0.0024433135986328125, -0.037017822265625, -0.06341552734375, -0.0093841552734375, 0.0012054443359375, -0.03564453125, 0.049896240234375, 0.05816650390625, -0.01338958740234375, 0.03338623046875, 0.004734039306640625, 0.0167083740234375, 0.002552032470703125, -0.036712646484375, -0.007419586181640625, -0.0250701904296875, 0.0022830963134765625, 0.033935546875, -0.04388427734375, 0.015228271484375, -0.005176544189453125, -0.003543853759765625, -0.0161895751953125, -0.032562255859375, 0.0946044921875, -0.0229644775390625, -0.033966064453125, 0.01322174072265625, -0.0102081298828125, 0.00281524658203125, -0.007785797119140625, 0.050628662109375, -0.022796630859375, 0.00362396240234375, 0.007526397705078125, -0.018768310546875, -0.056610107421875, -0.03912353515625, -0.048492431640625, 0.087646484375, 0.006473541259765625, 0.0025768280029296875, -0.0006108283996582031, 0.037567138671875, -0.0171356201171875, 0.02239990234375, -0.06768798828125, 0.06683349609375, 0.0231475830078125, 0.061370849609375, -0.06597900390625, -0.019439697265625, 0.00969696044921875, 0.014007568359375, -0.054534912109375, -0.006488800048828125, 0.00992584228515625, -0.022064208984375, -0.0303955078125, 0.00290679931640625, -0.00774383544921875, 0.0266571044921875, -0.01070404052734375, 0.071533203125, 0.0548095703125, -0.0697021484375, 0.03546142578125, -0.036285400390625, -0.024627685546875, -0.006282806396484375, 0.0272216796875, 0.0248260498046875, 0.00844573974609375, 0.0224456787109375, -0.05078125, -0.005077362060546875, 0.03369140625, -0.0190277099609375, 0.0180511474609375, 0.01519012451171875, 0.03857421875, -0.055511474609375, -0.0031414031982421875, -0.0235443115234375, 0.041839599609375, -0.004886627197265625, 0.039581298828125, 0.054046630859375, 0.02313232421875, 0.057861328125, -0.004070281982421875, 0.017669677734375, -0.01580810546875, 0.0290069580078125, 0.0784912109375, 0.0169219970703125, 0.0020427703857421875, -0.03094482421875, 0.053680419921875, 0.034942626953125, 0.0723876953125, -0.0765380859375, -0.04522705078125, 0.00887298583984375, -0.017547607421875, -0.0176544189453125, 0.006038665771484375, -0.01064300537109375, -0.01036834716796875, 0.0193328857421875, -0.0285491943359375, -0.01024627685546875, 0.014373779296875, 0.0260772705078125, -0.0255279541015625, -0.0229034423828125, -0.00823974609375, -0.02801513671875, -0.00165557861328125, -0.0018835067749023438, 0.00998687744140625, 0.01396942138671875, -0.005046844482421875, 0.01239776611328125, 0.005970001220703125, 0.0004627704620361328, -0.0019330978393554688, 0.001705169677734375, 0.0164031982421875, 0.00016748905181884766, -0.041534423828125, -0.01102447509765625, 0.0185546875, 0.048126220703125, 0.035125732421875, 0.034515380859375, 0.04180908203125, 0.0212860107421875, 0.0011510848999023438, 0.01300048828125, 0.04638671875, -0.005672454833984375, -0.047607421875, -0.0309295654296875, 0.00045108795166015625, 0.01898193359375, 0.01264190673828125, 0.017333984375, 0.007732391357421875, 0.0303802490234375, 0.001369476318359375, 0.01151275634765625, -0.002086639404296875, -0.0474853515625, 0.0108642578125, -0.024658203125, 0.08392333984375, 0.01549530029296875, -0.125732421875, 0.004932403564453125, -0.05706787109375, -0.07568359375, 0.042877197265625, 0.059417724609375, -0.017852783203125, -0.00769805908203125, 0.0241241455078125, 0.037872314453125, -0.012939453125, 0.0007557868957519531, -0.0291595458984375, -0.049102783203125, 0.043426513671875, -0.00923919677734375, -0.0153656005859375, 0.006877899169921875, 0.00867462158203125, 0.021820068359375, -0.006587982177734375, 0.044281005859375, -0.00991058349609375, 0.0070343017578125, -0.0186767578125, 0.002197265625, -0.0119476318359375, -0.03997802734375, 0.058868408203125, 0.01239013671875, 0.004695892333984375, -0.01261138916015625, 0.0023860931396484375, 0.038238525390625, 0.0193939208984375, -0.021514892578125, -0.022308349609375, 0.008697509765625, 0.020233154296875, 0.03253173828125, -0.0173797607421875, -0.03021240234375, -0.00849151611328125, -0.025787353515625, -0.031494140625, 0.035064697265625, -0.00948333740234375, -0.01531982421875, 0.01611328125, 0.01508331298828125, -0.0303955078125, 0.038360595703125, -0.0223541259765625, 0.042388916015625, 0.0303497314453125, 0.01496124267578125, -0.014984130859375, -0.0087127685546875, -0.0017490386962890625, 0.00867462158203125, 0.0289459228515625, -0.022064208984375, 0.021728515625, -0.0036716461181640625, -0.0069580078125, -0.0102996826171875, 0.0250091552734375, -0.00997161865234375, 0.012176513671875, -0.01255035400390625, 0.000698089599609375, -0.011566162109375, -0.059967041015625, -0.045166015625, -0.047882080078125, 0.031402587890625, 0.04925537109375, -0.0018243789672851562, -0.0173797607421875, -0.06671142578125, 0.004657745361328125, 0.0187225341796875, 0.01540374755859375, -0.046844482421875, 0.03289794921875, -0.02618408203125, 0.01103973388671875, -0.0010118484497070312, -0.005496978759765625, 0.00942230224609375, 0.026031494140625, -0.04119873046875, 0.00342559814453125, -0.00983428955078125, -0.015869140625, 0.0030078887939453125, 0.02960205078125, 0.038970947265625, -0.022186279296875, -0.028961181640625, 0.0244598388671875, 0.0226898193359375, 0.0743408203125, 0.027618408203125, -0.0091705322265625, 0.012298583984375, 0.0157012939453125, -0.005672454833984375, -0.053680419921875, 0.009521484375, -0.0211029052734375, 0.010284423828125, 0.028533935546875, -0.0186004638671875, 0.0145721435546875, -0.02618408203125, -0.054962158203125, 0.037139892578125, 0.0174102783203125, -0.03839111328125, -0.044708251953125, 0.01364898681640625, -0.0231475830078125, 0.04339599609375, -0.00031638145446777344, -0.0310821533203125, 0.007724761962890625, 0.040069580078125, 0.022430419921875, 0.037567138671875, 0.005733489990234375, 0.045928955078125, -0.058441162109375, 0.033599853515625, -0.0104217529296875, 0.004039764404296875, 0.00681304931640625, -0.031005859375, 0.0321044921875, 0.0162506103515625, -0.062042236328125, -0.0174560546875, 0.002841949462890625, 0.0389404296875, 0.00276947021484375, -0.03546142578125, -0.0232391357421875, -0.03387451171875, 0.052093505859375, 0.024932861328125, 0.01045989990234375, -0.00958251953125, -0.0120086669921875, -0.06463623046875, -0.0294036865234375, -0.016845703125, 0.01027679443359375, -0.08489990234375, 0.0006012916564941406, 0.03741455078125, -0.024383544921875, -0.0028743743896484375, 0.004425048828125, -0.038177490234375, -0.003265380859375, -0.0178375244140625, -0.00614166259765625, -0.0445556640625, -0.03753662109375, 0.07110595703125, -0.04345703125, 0.008544921875, 0.00785064697265625, 0.0217742919921875, 0.032257080078125, 0.023834228515625, -0.06365966796875, -0.0028705596923828125, -0.02178955078125, 0.0261077880859375, -0.0309295654296875, 0.044281005859375, -0.031463623046875, 0.047760009765625, -0.01209259033203125, 0.026702880859375, -0.0121002197265625, 0.021484375, 0.00576019287109375, 0.01715087890625, 0.01345062255859375, 0.042236328125, -0.00206756591796875, 0.0340576171875, 0.0079345703125, 0.004787445068359375, -0.031890869140625, 0.004852294921875, 0.00722503662109375, -0.0650634765625, 0.010162353515625, -0.021759033203125, -0.004680633544921875, -0.0474853515625, 0.0233612060546875, 0.010589599609375, -0.0236968994140625, 0.0280303955078125 ]
0a289d3e76d1c104f7d9e5b3473245809bb3b6bc
Wordpress Stackexchange Q: Error message "The page you are looking for is temporarily unavailable." after editing a file After trying to edit/update a file in the theme editor (file file has write permissions of 666), I get an error message saying "The page you are looking for is temporarily unavailable. Please try again later. " The file never gets updated because the server won't process the change I made to the file. Any ideas?
Q: Error message "The page you are looking for is temporarily unavailable." after editing a file After trying to edit/update a file in the theme editor (file file has write permissions of 666), I get an error message saying "The page you are looking for is temporarily unavailable. Please try again later. " The file never gets updated because the server won't process the change I made to the file. Any ideas?
wordpress
{ "language": "en", "length": 72, "provenance": "stackexchange_00019.jsonl.gz:417212", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42730" }
[ 0.0080413818359375, -0.0482177734375, 0.0189971923828125, 0.03326416015625, -0.0435791015625, -0.02105712890625, 0.04119873046875, -0.0190887451171875, 0.047454833984375, 0.01065826416015625, -0.029541015625, -0.029388427734375, 0.01512908935546875, -0.01727294921875, -0.039276123046875, -0.033477783203125, -0.0007538795471191406, 0.01312255859375, -0.004032135009765625, -0.030242919921875, 0.004375457763671875, -0.024871826171875, -0.01509857177734375, 0.01392364501953125, -0.006809234619140625, 0.01406097412109375, 0.03961181640625, -0.0267181396484375, -0.03436279296875, -0.0433349609375, 0.0004153251647949219, 0.051483154296875, 0.027374267578125, -0.005184173583984375, -0.01519012451171875, -0.040985107421875, 0.0321044921875, -0.0305633544921875, -0.0274658203125, 0.03900146484375, -0.0009975433349609375, 0.009613037109375, 0.00506591796875, 0.0260009765625, -0.0210723876953125, -0.046112060546875, 0.016937255859375, -0.036712646484375, 0.016326904296875, 0.007701873779296875, -0.0265655517578125, 0.041656494140625, -0.03558349609375, 0.02392578125, -0.005157470703125, -0.0118560791015625, 0.0228424072265625, 0.0253753662109375, 0.02154541015625, -0.0478515625, -0.04351806640625, 0.044403076171875, 0.026458740234375, 0.0275115966796875, -0.01129913330078125, 0.0025177001953125, -0.01461029052734375, 0.02227783203125, -0.01275634765625, -0.0122528076171875, 0.0008549690246582031, -0.0228424072265625, 0.0162506103515625, 0.0203094482421875, 0.007732391357421875, -0.06475830078125, 0.01079559326171875, -0.0179595947265625, 0.01617431640625, 0.0288238525390625, 0.035369873046875, -0.021026611328125, -0.048858642578125, 0.01209259033203125, -0.00905609130859375, 0.0251312255859375, 0.0026149749755859375, -0.01361846923828125, -0.042633056640625, -0.0017690658569335938, -0.037567138671875, -0.0225830078125, -0.00797271728515625, -0.003173828125, -0.038330078125, 0.006290435791015625, -0.01318359375, 0.056121826171875, -0.0207366943359375, 0.01348876953125, -0.02459716796875, -0.024383544921875, 0.005527496337890625, -0.047210693359375, 0.0019273757934570312, 0.0112457275390625, -0.00726318359375, -0.04656982421875, 0.0193328857421875, 0.023590087890625, -0.00799560546875, 0.01003265380859375, 0.014862060546875, -0.0107574462890625, -0.028411865234375, -0.00348663330078125, -0.0201263427734375, -0.01146697998046875, -0.003887176513671875, -0.01739501953125, 0.00991058349609375, 0.044281005859375, -0.062347412109375, -0.061859130859375, -0.014801025390625, -0.05694580078125, -0.038543701171875, 0.0499267578125, 0.07476806640625, 0.006862640380859375, -0.023895263671875, -0.0209197998046875, -0.0110626220703125, 0.0179443359375, 0.0103607177734375, -0.02020263671875, -0.052337646484375, -0.013275146484375, 0.01116180419921875, 0.01413726806640625, -0.00771331787109375, -0.052490234375, 0.0406494140625, 0.0045318603515625, -0.0023746490478515625, 0.0129547119140625, 0.035064697265625, 0.0214996337890625, -0.03887939453125, -0.043914794921875, -0.010650634765625, 0.042633056640625, 0.04632568359375, -0.0160369873046875, 0.007579803466796875, -0.07476806640625, 0.043426513671875, -0.0506591796875, 0.0134735107421875, -0.0599365234375, 0.0273284912109375, 0.020416259765625, 0.045379638671875, -0.0277099609375, -0.007282257080078125, -0.06646728515625, -0.06640625, -0.0006842613220214844, 0.01483917236328125, 0.02496337890625, -0.0138397216796875, -0.00836944580078125, -0.0140838623046875, 0.01313018798828125, 0.006893157958984375, 0.02581787109375, -0.0022907257080078125, -0.009185791015625, 0.0083160400390625, 0.0087890625, 0.0099945068359375, -0.01380157470703125, -0.006801605224609375, 0.03070068359375, -0.0285491943359375, 0.034149169921875, 0.020263671875, 0.05535888671875, -0.0094146728515625, 0.01256561279296875, 0.035797119140625, 0.00740814208984375, 0.002483367919921875, 0.037445068359375, -0.03546142578125, -0.0408935546875, -0.0404052734375, 0.0008702278137207031, -0.040740966796875, 0.0037555694580078125, 0.028106689453125, 0.011383056640625, -0.0298309326171875, -0.00795745849609375, -0.09564208984375, 0.015411376953125, -0.0270233154296875, 0.03167724609375, 0.019805908203125, 0.00595855712890625, 0.00211334228515625, 0.00913238525390625, -0.003932952880859375, -0.044677734375, -0.038421630859375, 0.01294708251953125, -0.01352691650390625, 0.0196533203125, -0.00131988525390625, 0.0313720703125, -0.0173492431640625, -0.0167083740234375, -0.037445068359375, -0.00896453857421875, -0.0257568359375, 0.0116424560546875, -0.028045654296875, 0.0216522216796875, -0.0053253173828125, 0.0237274169921875, 0.0357666015625, -0.0113677978515625, 0.00400543212890625, 0.02703857421875, -0.020721435546875, -0.03253173828125, -0.04339599609375, -0.086669921875, 0.01959228515625, 0.06524658203125, 0.041748046875, 0.0389404296875, -0.004730224609375, 0.01519775390625, 0.09063720703125, -0.036834716796875, -0.0101470947265625, 0.01352691650390625, 0.040740966796875, 0.025177001953125, 0.08184814453125, -0.037811279296875, 0.0238189697265625, -0.0095062255859375, 0.03271484375, 0.0107879638671875, 0.00010454654693603516, 0.03277587890625, -0.0295562744140625, 0.01158905029296875, -0.0249786376953125, -0.0091400146484375, 0.0157623291015625, -0.017669677734375, 0.057403564453125, -0.00782012939453125, 0.055938720703125, 0.0287017822265625, -0.0060577392578125, -0.019378662109375, 0.00554656982421875, -0.017578125, 0.012481689453125, 0.0262298583984375, 0.00780487060546875, 0.0162200927734375, -0.02392578125, -0.01116943359375, 0.03033447265625, 0.02606201171875, -0.0271759033203125, -0.0216827392578125, -0.0556640625, -0.01090240478515625, 0.030853271484375, -0.0127105712890625, -0.01007080078125, -0.0070953369140625, -0.00617218017578125, 0.005321502685546875, -0.0008373260498046875, 0.01953125, -0.08013916015625, 0.08282470703125, -0.0333251953125, -0.01788330078125, 0.06878662109375, -0.0280914306640625, 0.0192718505859375, -0.024383544921875, 0.046234130859375, 0.039459228515625, -0.0293731689453125, 0.0235443115234375, 0.019866943359375, -0.048583984375, 0.01503753662109375, 0.0252227783203125, 0.0136260986328125, 0.0145111083984375, -0.0309295654296875, 0.05792236328125, 0.021759033203125, 0.0008692741394042969, -0.0012369155883789062, -0.0220184326171875, -0.0146026611328125, 0.007251739501953125, -0.12109375, -0.0838623046875, -0.035858154296875, -0.034332275390625, -0.00463104248046875, 0.01090240478515625, -0.003246307373046875, 0.004932403564453125, 0.0262603759765625, 0.020477294921875, 0.04022216796875, -0.01039886474609375, -0.035369873046875, -0.030364990234375, -0.08599853515625, -0.0611572265625, 0.0024394989013671875, 0.0220794677734375, -0.004467010498046875, 0.06829833984375, -0.01264190673828125, -0.09075927734375, -0.035552978515625, -0.006866455078125, -0.00927734375, 0.01096343994140625, -0.006076812744140625, 0.02069091796875, 0.0055389404296875, 0.0259552001953125, 0.0401611328125, 0.0147857666015625, -0.0321044921875, -0.04364013671875, -0.05303955078125, -0.00926971435546875, -0.0262603759765625, 0.0192413330078125, 0.05902099609375, 0.0009450912475585938, 0.01183319091796875, -0.04180908203125, -0.01438140869140625, -0.00605010986328125, -0.048248291015625, 0.04620361328125, 0.06103515625, -0.02587890625, 0.006744384765625, -0.003772735595703125, -0.01386260986328125, 0.0211639404296875, 0.030242919921875, -0.04681396484375, 0.049346923828125, -0.01360321044921875, -0.021636962890625, -0.0345458984375, 0.03472900390625, -0.026031494140625, 0.07171630859375, 0.035736083984375, 0.028778076171875, 0.03680419921875, -0.0291290283203125, -0.00498199462890625, -0.0077972412109375, 0.00811767578125, -0.08837890625, -0.0028705596923828125, -0.05523681640625, 0.01020050048828125, -0.04931640625, 0.0233917236328125, -0.0008835792541503906, -0.0187225341796875, -0.00739288330078125, 0.0221099853515625, -0.030731201171875, 0.003498077392578125, 0.016265869140625, -0.006893157958984375, -0.02960205078125, 0.0233612060546875, -0.0102386474609375, -0.017608642578125, 0.004512786865234375, -0.027069091796875, 0.008087158203125, -0.032745361328125, 0.04803466796875, -0.041259765625, 0.01061248779296875, 0.019378662109375, 0.004146575927734375, -0.018829345703125, -0.048553466796875, -0.0174560546875, -0.08197021484375, -0.016082763671875, -0.004222869873046875, 0.031982421875, 0.00421142578125, -0.01483154296875, 0.002185821533203125, 0.04266357421875, 0.045867919921875, 0.037384033203125, 0.00043463706970214844, -0.061065673828125, 0.036895751953125, 0.02691650390625, 0.03143310546875, -0.0012369155883789062, 0.005413055419921875, -0.01006317138671875, -0.050048828125, -0.0213165283203125, -0.0235748291015625, -0.01251220703125, 0.007167816162109375, -0.043212890625, -0.0352783203125, 0.003269195556640625, 0.0281829833984375, 0.039764404296875, 0.01062774658203125, 0.0182342529296875, -0.0229034423828125, -0.032989501953125, 0.03961181640625, -0.012786865234375, -0.012298583984375, 0.00753021240234375, 0.0435791015625, 0.00655364990234375, -0.0281829833984375, -0.03448486328125, -0.003177642822265625, 0.0312347412109375, 0.0200958251953125, 0.04443359375, 0.035797119140625, 0.0002970695495605469, 0.0262603759765625, 0.0228729248046875, 0.006999969482421875, -0.01505279541015625, 0.0177459716796875, 0.008270263671875, -0.01526641845703125, 0.0200653076171875, -0.004047393798828125, 0.02142333984375, 0.00389862060546875, -0.0236968994140625, 0.033843994140625, -0.015777587890625, -0.01157379150390625, -0.0160064697265625, 0.0253753662109375, 0.0179595947265625, -0.020416259765625, -0.0068206787109375, 0.0178680419921875, 0.030426025390625, 0.0208740234375, 0.0225677490234375, 0.0135955810546875, 0.0173797607421875, -0.025146484375, -0.039337158203125, 0.01502227783203125, -0.04144287109375, 0.0112762451171875, -0.041015625, -0.04278564453125, -0.03863525390625, -0.008636474609375, 0.031097412109375, -0.00039887428283691406, -0.0272674560546875, 0.003261566162109375, -0.01107025146484375, -0.0200347900390625, 0.0165252685546875, 0.00225067138671875, -0.0152435302734375, 0.00821685791015625, 0.0019435882568359375, 0.039093017578125, 0.060577392578125, -0.00971221923828125, 0.005382537841796875, 0.006885528564453125, 0.02215576171875, -0.02587890625, 0.0133514404296875, 0.020782470703125, -0.01401519775390625, 0.0032634735107421875, -0.00536346435546875, -0.0277252197265625, 0.0168609619140625, -0.01123809814453125, 0.016357421875, 0.019989013671875, 0.0080108642578125, -0.0216064453125, 0.05975341796875, -0.0347900390625, -0.0216064453125, 0.0194244384765625, 0.012939453125, -0.016082763671875, -0.0176239013671875, 0.056793212890625, 0.005176544189453125, 0.0062255859375, 0.04656982421875, -0.00966644287109375, -0.0711669921875, -0.0082855224609375, 0.01346588134765625, 0.01407623291015625, -0.041534423828125, 0.01116943359375, 0.029083251953125, 0.005298614501953125, 0.021728515625, -0.00612640380859375, -0.0162506103515625, -0.029998779296875, -0.02227783203125, -0.005199432373046875, -0.01399993896484375, 0.0030517578125, -0.07568359375, -0.035675048828125, 0.006805419921875, 0.015045166015625, 0.01515960693359375, -0.01357269287109375, 0.0234527587890625, -0.025146484375, 0.0040283203125, -0.0243988037109375, 0.01160430908203125, 0.0014324188232421875, -0.015380859375, -0.07257080078125, 0.0382080078125, -0.061676025390625, -0.0024852752685546875, -0.04022216796875, -0.040252685546875, -0.06951904296875, -0.02410888671875, 0.01007080078125, 0.0263519287109375, -0.016845703125, -0.02685546875, -0.013519287109375, 0.0031909942626953125, -0.0003437995910644531, 0.043060302734375, -0.0194244384765625, -0.01253509521484375, 0.020263671875, -0.01085662841796875, -0.004985809326171875, -0.0121307373046875, 0.0174560546875, -0.013916015625, 0.01120758056640625, 0.03057861328125, -0.01026153564453125, -0.0187530517578125, 0.0054931640625, -0.020355224609375, 0.0552978515625, -0.0012378692626953125, -0.0009241104125976562, -0.03387451171875, 0.0023040771484375, -0.041778564453125, 0.06475830078125, -0.057647705078125, -0.014678955078125, -0.0239410400390625, -0.051544189453125, -0.0016202926635742188, 0.01525115966796875, 0.00949859619140625, 0.0181884765625, -0.053466796875, 0.00992584228515625, 0.05194091796875, -0.009185791015625, 0.0213470458984375, 0.04974365234375, -0.01021575927734375, 0.01358795166015625, 0.0155792236328125, -0.0062713623046875, -0.002231597900390625, 0.036224365234375, -0.050994873046875, -0.00868988037109375, 0.01971435546875, 0.007843017578125, -0.025634765625, -0.0107574462890625, -0.0195159912109375, 0.003879547119140625, 0.07342529296875, 0.0880126953125, -0.0631103515625, -0.0214996337890625, -0.01204681396484375, -0.050872802734375, 0.0013637542724609375, 0.002048492431640625, -0.0115203857421875, -0.07550048828125, 0.036224365234375, -0.01230621337890625, 0.00431060791015625, -0.0108795166015625, -0.01885986328125, -0.02947998046875, 0.003971099853515625, 0.0299224853515625, 0.01520538330078125, -0.0037078857421875, 0.0006256103515625, 0.002300262451171875, -0.004062652587890625, 0.014617919921875, 0.009185791015625, -0.032989501953125, -0.006809234619140625, -0.01262664794921875, -0.0051422119140625, -0.033935546875, 0.01274871826171875, -0.042327880859375, 0.0086212158203125, -0.024383544921875, 0.018768310546875, -0.0286407470703125, -0.0078582763671875, 0.01226043701171875, -0.0171356201171875, 0.04937744140625, -0.0032100677490234375, 0.008880615234375, 0.049896240234375, -0.043914794921875, -0.00611114501953125, -0.002719879150390625, 0.0135955810546875, -0.0293731689453125, -0.051116943359375, 0.06268310546875, -0.00860595703125, -0.0235748291015625, 0.034637451171875, -0.02679443359375, -0.04034423828125, 0.004039764404296875, -0.0002982616424560547, -0.019317626953125, 0.00479888916015625, -0.0205535888671875, -0.008514404296875, 0.03179931640625, 0.0166473388671875, -0.031036376953125, 0.0565185546875, -0.03741455078125, 0.016998291015625, 0.04931640625, 0.01485443115234375, -0.024078369140625, -0.009979248046875, -0.060546875, 0.0684814453125, 0.01149749755859375, 0.08441162109375, -0.0285186767578125, 0.00557708740234375, 0.0243072509765625, 0.004497528076171875, 0.043975830078125, 0.01268768310546875, -0.044097900390625, -0.001773834228515625, 0.032623291015625, -0.01302337646484375, -0.015960693359375, 0.06988525390625, -0.037689208984375, -0.03155517578125, -0.0022449493408203125, -0.0290374755859375, 0.00600433349609375, -0.0225067138671875, -0.037261962890625, -0.01355743408203125, -0.0162506103515625, -0.050537109375, 0.03631591796875, 0.0129547119140625, -0.064208984375, 0.024169921875, 0.03314208984375, -0.036346435546875, -0.0251312255859375, 0.029052734375, 0.006397247314453125, -0.042144775390625, -0.063720703125, -0.015167236328125, 0.0262298583984375, 0.014373779296875, -0.027496337890625, -0.04705810546875, -0.014862060546875, 0.035888671875, -0.0142364501953125, -0.033660888671875, 0.0579833984375, 0.006580352783203125, 0.0274200439453125, 0.02679443359375, 0.0007176399230957031, -0.015625, 0.046875, 0.04461669921875, 0.046112060546875, -0.045318603515625, -0.05267333984375, -0.0113983154296875, -0.020751953125, 0.0135498046875, -0.017242431640625, -0.01922607421875, 0.03790283203125, 0.07318115234375, -0.0139007568359375, 0.01323699951171875, 0.0467529296875, -0.007129669189453125, -0.0120697021484375, -0.0300750732421875, -0.0125274658203125, 0.0318603515625, -0.0185089111328125, -0.015716552734375, 0.0072479248046875, 0.0184783935546875, 0.036376953125, 0.020477294921875, 0.029815673828125, -0.01389312744140625, -0.01432037353515625, 0.020172119140625, -0.0673828125, 0.042388916015625, -0.05322265625, -0.05352783203125, -0.0263519287109375, 0.0572509765625, -0.02716064453125, 0.04095458984375, 0.03515625, 0.039886474609375, -0.00029659271240234375, -0.01361083984375, 0.0032634735107421875, -0.024871826171875, -0.0223236083984375, 0.00563812255859375, -0.003017425537109375, 0.012359619140625, -0.01169586181640625, -0.021484375, 0.0430908203125, 0.021209716796875, 0.01172637939453125, 0.0182647705078125, 0.00485992431640625, 0.0007653236389160156, 0.037445068359375, -0.0120086669921875, 0.0224151611328125, 0.0251922607421875, -0.06683349609375, -0.0157470703125, -0.007480621337890625, -0.0064849853515625, 0.0186004638671875, 0.043426513671875, 0.003810882568359375, 0.0103607177734375, -0.038177490234375, 0.00612640380859375, -0.00827789306640625, -0.011749267578125, 0.0081787109375, 0.01090240478515625, 0.00214385986328125, -0.01265716552734375, -0.043304443359375, -0.020111083984375, -0.02044677734375, 0.03729248046875, 0.0180206298828125, 0.10076904296875, -0.02349853515625, 0.0213775634765625, 0.024200439453125, 0.009429931640625, -0.0168914794921875, -0.01038360595703125, 0.0484619140625, -0.04595947265625, -0.00843048095703125, 0.004688262939453125, -0.0384521484375, 0.07025146484375, -0.0212554931640625, -0.01103973388671875, 0.00388336181640625, -0.007633209228515625, 0.0072479248046875, 0.035186767578125, -0.05523681640625, -0.032928466796875, -0.06341552734375, 0.0025882720947265625, 0.037445068359375, -0.031829833984375, 0.004596710205078125, -0.014068603515625, -0.005176544189453125, -0.014129638671875, -0.0256195068359375, 0.01201629638671875, 0.01404571533203125, 0.0126800537109375, 0.020263671875, -0.019439697265625, 0.005786895751953125, -0.06500244140625, -0.033935546875, 0.02587890625, -0.026580810546875, 0.02099609375, -0.034210205078125, 0.095458984375, 0.01142120361328125, -0.036468505859375, 0.011688232421875, -0.032257080078125, -0.0235595703125, -0.0164642333984375, 0.027374267578125, 0.01551055908203125, 0.0065155029296875, -0.0017528533935546875, 0.0017137527465820312, -0.0035648345947265625, 0.01335906982421875, 0.02313232421875, 0.01348114013671875, 0.01256561279296875, -0.0125274658203125, 0.007175445556640625, 0.00867462158203125, -0.027923583984375, 0.0159454345703125, 0.00032210350036621094, -0.003322601318359375, -0.01221466064453125, -0.01004791259765625, -0.00035262107849121094, 0.020263671875, -0.04461669921875, -0.006038665771484375, -0.038330078125, -0.00572967529296875, -0.0167236328125, 0.00614166259765625, 0.050933837890625, -0.01519012451171875, -0.00818634033203125, 0.0136566162109375, 0.006046295166015625, 0.0406494140625, -0.049560546875, -0.00555419921875, 0.061553955078125, -0.0360107421875, -0.0216522216796875, -0.0306854248046875, -0.00943756103515625, -0.0099334716796875, -0.0121307373046875, 0.00731658935546875, -0.01061248779296875, 0.00830078125, -0.046112060546875, -0.09051513671875, 0.01446533203125, 0.005535125732421875, -0.039154052734375, -0.044219970703125, -0.023101806640625, -0.029510498046875, 0.06939697265625, -0.0017290115356445312, -0.0128936767578125, -0.012115478515625, 0.05389404296875, 0.0384521484375, -0.00789642333984375, 0.052734375, 0.028228759765625, -0.0821533203125, -0.006122589111328125, -0.04278564453125, 0.018524169921875, 0.016204833984375, -0.0125274658203125, 0.01097869873046875, 0.052398681640625, -0.0301666259765625, -0.0970458984375, -0.039520263671875, -0.038177490234375, 0.005035400390625, -0.0016307830810546875, -0.058807373046875, -0.054107666015625, 0.0362548828125, 0.06256103515625, 0.0166473388671875, 0.01482391357421875, 0.0222320556640625, -0.043060302734375, -0.0635986328125, 0.00738525390625, 0.03399658203125, -0.0474853515625, 0.021270751953125, 0.0195159912109375, -0.01003265380859375, 0.0278472900390625, 0.0275115966796875, -0.03277587890625, 0.00411224365234375, 0.0035152435302734375, -0.01386260986328125, -0.07666015625, -0.00853729248046875, 0.07464599609375, -0.02984619140625, 0.014617919921875, 0.0208587646484375, 0.00763702392578125, 0.046356201171875, 0.0257720947265625, 0.00021839141845703125, 0.002044677734375, -0.0345458984375, 0.04010009765625, -0.01513671875, 0.06671142578125, -0.0662841796875, -0.01367950439453125, 0.0191192626953125, 0.0237884521484375, -0.01873779296875, 0.01030731201171875, 0.0102996826171875, 0.036712646484375, -0.024444580078125, 0.0694580078125, -0.02154541015625, 0.07366943359375, -0.0227813720703125, 0.032562255859375, -0.0167694091796875, 0.0224151611328125, 0.0142669677734375, 0.0038356781005859375, 0.01374053955078125, 0.0259552001953125, 0.03436279296875, -0.0113983154296875, 0.028472900390625, -0.044708251953125, 0.017578125, 0.0095977783203125 ]
cecdb1dc3e1541437f994da6ac09fd75eac5dcb2
Wordpress Stackexchange Q: users table - user_name vs. nicename Can someone explain the differences or different uses of the user_name and user_nicename fields in the users table? They seem to be, and behave the same. I found a bunch of posts in web searches, but they are relevant only to older version of wp. A: The nicename is (usually) just a sanitized version of the username. It's suppose to be 'nice' in the sense that it is the 'nicename' that is used as a slug, for example: www.yoursite.com/author/my-nice-name/ will take you to the archive of the author with nicename 'my-nice-name'. The documentation simply describes it as A string that contains a nicer looking name for the user.
Q: users table - user_name vs. nicename Can someone explain the differences or different uses of the user_name and user_nicename fields in the users table? They seem to be, and behave the same. I found a bunch of posts in web searches, but they are relevant only to older version of wp. A: The nicename is (usually) just a sanitized version of the username. It's suppose to be 'nice' in the sense that it is the 'nicename' that is used as a slug, for example: www.yoursite.com/author/my-nice-name/ will take you to the archive of the author with nicename 'my-nice-name'. The documentation simply describes it as A string that contains a nicer looking name for the user.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:417215", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42736" }
[ 0.0221405029296875, -0.0041046142578125, -0.0345458984375, -0.018310546875, 0.0011281967163085938, -0.034027099609375, 0.00829315185546875, -0.0066070556640625, -0.01247406005859375, 0.0877685546875, -0.0096435546875, 0.05902099609375, 0.038909912109375, 0.0192413330078125, -0.023406982421875, 0.0275115966796875, 0.0270233154296875, -0.03192138671875, -0.0182037353515625, -0.044708251953125, 0.005489349365234375, -0.0245513916015625, 0.01403045654296875, 0.00505828857421875, 0.031585693359375, -0.048370361328125, 0.060882568359375, -0.01251983642578125, 0.035400390625, 0.0146942138671875, 0.0209503173828125, -0.04388427734375, 0.00989532470703125, 0.0377197265625, -0.0157928466796875, 0.01026153564453125, 0.00356292724609375, 0.0208892822265625, 0.031097412109375, -0.01448822021484375, 0.0106048583984375, 0.003795623779296875, -0.03564453125, -0.0266265869140625, -0.0233917236328125, -0.04083251953125, 0.05059814453125, 0.0218048095703125, 0.01385498046875, -0.0107879638671875, 0.007633209228515625, 0.01568603515625, 0.01168060302734375, 0.01386260986328125, -0.01131439208984375, 0.0187225341796875, -0.04254150390625, -0.0010538101196289062, 0.017791748046875, 0.0215301513671875, 0.0010538101196289062, -0.007965087890625, 0.0177459716796875, -0.01398468017578125, 0.0098114013671875, -0.0036869049072265625, 0.038543701171875, 0.01971435546875, -0.031463623046875, -0.0168304443359375, 0.0098114013671875, 0.004634857177734375, -0.0010366439819335938, -0.052032470703125, -0.0071258544921875, 0.04681396484375, -0.0310211181640625, -0.0347900390625, 0.0200347900390625, -0.0084991455078125, -0.07806396484375, -0.007686614990234375, -0.1031494140625, 0.0086212158203125, -0.022674560546875, 0.041229248046875, -0.03863525390625, -0.0089874267578125, 0.0006203651428222656, -0.002788543701171875, -0.005008697509765625, -0.050689697265625, 0.0036144256591796875, 0.060516357421875, 0.0036563873291015625, -0.00371551513671875, 0.0216064453125, 0.047607421875, 0.00312042236328125, -0.0104827880859375, 0.040130615234375, -0.041534423828125, 0.0123748779296875, -0.0268096923828125, -0.0165863037109375, 0.0200042724609375, 0.0256805419921875, 0.041351318359375, 0.01654052734375, 0.006744384765625, -0.0176544189453125, 0.00514984130859375, -0.01184844970703125, -0.00823211669921875, -0.014312744140625, 0.0040283203125, -0.06951904296875, 0.0255279541015625, -0.015106201171875, 0.0179595947265625, -0.01910400390625, -0.00972747802734375, 0.01215362548828125, -0.00457763671875, 0.017242431640625, 0.006359100341796875, -0.012420654296875, 0.0008301734924316406, -0.0243682861328125, 0.0296783447265625, -0.0010013580322265625, -0.0149383544921875, -0.0241546630859375, 0.03997802734375, -0.0023555755615234375, -0.00896453857421875, 0.016143798828125, -0.034759521484375, 0.0112152099609375, 0.025115966796875, -0.005489349365234375, -0.0589599609375, -0.0302276611328125, 0.006465911865234375, 0.0004165172576904297, 0.01471710205078125, 0.00975799560546875, 0.0092620849609375, -0.015625, -0.024810791015625, -0.007022857666015625, -0.021881103515625, -0.026763916015625, 0.0200653076171875, 0.014312744140625, 0.0082855224609375, -0.054931640625, 0.0003554821014404297, 0.04193115234375, 0.03326416015625, -0.0027675628662109375, 0.0013837814331054688, 0.010986328125, -0.029327392578125, -0.0584716796875, 0.01132965087890625, -0.005069732666015625, -0.01232147216796875, 0.0228271484375, -0.0411376953125, 0.044830322265625, 0.01346588134765625, 0.027313232421875, 0.01076507568359375, 0.0247955322265625, 0.00995635986328125, -0.046539306640625, 0.0253753662109375, 0.0036945343017578125, 0.00951385498046875, -0.00745391845703125, -0.049224853515625, -0.0081024169921875, 0.02191162109375, -0.047454833984375, -0.00830841064453125, 0.0020046234130859375, 0.0400390625, 0.0457763671875, 0.004878997802734375, 0.00864410400390625, -0.00804901123046875, 0.02142333984375, 0.0447998046875, -0.01525115966796875, -0.0794677734375, 0.00439453125, -0.0213470458984375, -0.035247802734375, 0.0089263916015625, 0.026123046875, -0.043487548828125, 0.07171630859375, -0.040679931640625, -0.077392578125, 0.0271453857421875, -0.047515869140625, 0.038909912109375, -0.00003612041473388672, 0.0112152099609375, 0.0194854736328125, -0.018035888671875, -0.0285491943359375, 0.033355712890625, -0.0024166107177734375, -0.00876617431640625, -0.005283355712890625, 0.004673004150390625, -0.0195465087890625, 0.0037384033203125, -0.014739990234375, -0.0034313201904296875, -0.0166778564453125, 0.02362060546875, -0.004405975341796875, -0.0011539459228515625, -0.0193023681640625, 0.006031036376953125, -0.026763916015625, 0.0066375732421875, 0.0120697021484375, 0.02740478515625, 0.031036376953125, 0.05889892578125, 0.01233673095703125, 0.023712158203125, 0.010833740234375, -0.038299560546875, 0.003429412841796875, 0.0212554931640625, 0.00710296630859375, -0.0207061767578125, -0.064453125, -0.0166015625, 0.0239410400390625, 0.013458251953125, 0.0032978057861328125, 0.00983428955078125, 0.006000518798828125, 0.065673828125, -0.036224365234375, 0.027496337890625, 0.0016660690307617188, -0.07470703125, -0.00775146484375, 0.061737060546875, -0.034149169921875, 0.01507568359375, 0.0153045654296875, 0.0180511474609375, -0.0256195068359375, -0.00353240966796875, 0.0419921875, -0.041656494140625, -0.026214599609375, -0.0154571533203125, -0.0190277099609375, -0.0247650146484375, -0.0228271484375, 0.00951385498046875, 0.031829833984375, -0.0189056396484375, -0.004512786865234375, 0.0220947265625, 0.06610107421875, 0.0092926025390625, 0.00441741943359375, -0.031982421875, 0.012725830078125, 0.0193023681640625, -0.028167724609375, -0.039642333984375, -0.01605224609375, 0.0050506591796875, 0.0244140625, -0.04168701171875, 0.0345458984375, 0.04522705078125, -0.03057861328125, -0.019805908203125, 0.00923919677734375, 0.038482666015625, -0.0181121826171875, 0.0204620361328125, 0.0124053955078125, -0.00982666015625, 0.0280914306640625, -0.01509857177734375, -0.0157623291015625, -0.005664825439453125, 0.0229949951171875, 0.052764892578125, 0.04132080078125, -0.044586181640625, 0.0213165283203125, -0.029937744140625, 0.024505615234375, -0.0140533447265625, -0.0163726806640625, 0.01047515869140625, -0.0528564453125, 0.0237884521484375, 0.004512786865234375, 0.0943603515625, -0.033905029296875, -0.05450439453125, 0.011383056640625, 0.04608154296875, 0.00945281982421875, -0.024688720703125, -0.06732177734375, -0.0227203369140625, 0.031524658203125, -0.0279693603515625, 0.011474609375, -0.0011119842529296875, -0.0259246826171875, 0.0233154296875, -0.0187530517578125, -0.032989501953125, -0.0404052734375, -0.0670166015625, -0.038360595703125, 0.00202178955078125, -0.00838470458984375, 0.005077362060546875, 0.001377105712890625, -0.01480865478515625, -0.045166015625, 0.004848480224609375, -0.039459228515625, -0.029327392578125, 0.01995849609375, -0.08123779296875, 0.005126953125, -0.0200347900390625, -0.0156402587890625, 0.0049591064453125, 0.04949951171875, 0.016998291015625, -0.031463623046875, -0.00716400146484375, 0.0118560791015625, -0.006420135498046875, 0.044158935546875, -0.0108184814453125, -0.02520751953125, 0.04779052734375, 0.045379638671875, -0.03143310546875, -0.0195159912109375, -0.0294647216796875, -0.05413818359375, 0.044952392578125, 0.047637939453125, 0.00917816162109375, -0.021697998046875, 0.01131439208984375, -0.0008063316345214844, 0.02410888671875, -0.0214080810546875, 0.000021398067474365234, 0.01971435546875, -0.002948760986328125, 0.005847930908203125, 0.0020809173583984375, -0.02691650390625, -0.043914794921875, -0.0026702880859375, -0.0234832763671875, -0.01031494140625, -0.0019445419311523438, -0.008697509765625, 0.0162506103515625, -0.04449462890625, 0.0212860107421875, -0.049530029296875, 0.0254058837890625, -0.0090179443359375, -0.01239776611328125, 0.003204345703125, 0.07244873046875, -0.0294342041015625, -0.0193939208984375, 0.01348876953125, 0.03497314453125, -0.072509765625, -0.032440185546875, -0.042999267578125, -0.00907135009765625, -0.04388427734375, -0.0311431884765625, -0.004680633544921875, -0.0258941650390625, -0.02239990234375, 0.072998046875, -0.0455322265625, -0.01641845703125, 0.0167694091796875, -0.037994384765625, 0.03564453125, -0.03521728515625, -0.0218505859375, -0.018951416015625, 0.005008697509765625, -0.053680419921875, -0.03619384765625, -0.01300048828125, -0.0101318359375, 0.014007568359375, 0.0014505386352539062, 0.00836944580078125, -0.0031185150146484375, 0.0253143310546875, 0.012237548828125, 0.0074310302734375, 0.0201568603515625, -0.01861572265625, 0.045440673828125, 0.0267333984375, 0.01557159423828125, 0.00482177734375, 0.007755279541015625, -0.068115234375, -0.0723876953125, -0.05499267578125, -0.0308380126953125, 0.08367919921875, -0.01457977294921875, 0.0083160400390625, -0.021514892578125, 0.008575439453125, -0.0014553070068359375, 0.0084075927734375, -0.0115814208984375, -0.010986328125, -0.003910064697265625, -0.030120849609375, 0.03851318359375, 0.0198822021484375, 0.01666259765625, 0.01438140869140625, 0.031707763671875, -0.0023021697998046875, -0.035125732421875, -0.06585693359375, 0.035675048828125, 0.042877197265625, 0.0115966796875, 0.04046630859375, 0.0204010009765625, -0.0204315185546875, 0.0499267578125, 0.030181884765625, 0.016510009765625, -0.025970458984375, -0.00424957275390625, -0.01947021484375, -0.005435943603515625, 0.00836944580078125, -0.010528564453125, 0.029876708984375, 0.01493072509765625, -0.017333984375, 0.018951416015625, -0.029693603515625, -0.0014247894287109375, 0.016845703125, -0.0340576171875, -0.040374755859375, -0.04058837890625, 0.0234375, -0.0458984375, -0.036590576171875, -0.033966064453125, 0.004405975341796875, -0.0618896484375, -0.03851318359375, -0.005756378173828125, -0.005428314208984375, -0.033782958984375, 0.03045654296875, 0.01708984375, -0.0014295578002929688, 0.0156707763671875, -0.020751953125, -0.0250701904296875, 0.08966064453125, 0.029876708984375, -0.042877197265625, 0.02191162109375, -0.01486968994140625, 0.0270538330078125, -0.0131072998046875, 0.034454345703125, 0.008697509765625, -0.0206298828125, -0.0096588134765625, 0.0216064453125, 0.001590728759765625, 0.00673675537109375, -0.018707275390625, 0.033172607421875, 0.0004897117614746094, -0.01088714599609375, -0.013153076171875, 0.09271240234375, -0.002384185791015625, 0.031280517578125, -0.0195770263671875, 0.005054473876953125, 0.017852783203125, -0.00983428955078125, 0.043243408203125, 0.007099151611328125, -0.0178375244140625, -0.020599365234375, -0.0042877197265625, 0.0052490234375, 0.01383209228515625, 0.0188751220703125, 0.02001953125, 0.01035308837890625, 0.00411224365234375, -0.017822265625, -0.03216552734375, 0.003963470458984375, 0.001163482666015625, -0.027923583984375, -0.03399658203125, -0.0032596588134765625, 0.0013360977172851562, -0.006069183349609375, -0.042266845703125, -0.0121612548828125, -0.052642822265625, -0.0699462890625, -0.037872314453125, 0.0030879974365234375, 0.0055389404296875, -0.02313232421875, -0.04498291015625, -0.022613525390625, -0.021575927734375, -0.0186920166015625, -0.003810882568359375, 0.00601959228515625, -0.00492095947265625, -0.01087188720703125, 0.0217742919921875, 0.008941650390625, 0.02581787109375, -0.05633544921875, 0.00829315185546875, -0.041839599609375, -0.0117950439453125, 0.036163330078125, 0.00531005859375, -0.0565185546875, 0.0236358642578125, -0.0061798095703125, 0.0010051727294921875, 0.0059661865234375, -0.0218048095703125, -0.059722900390625, -0.0301361083984375, -0.02227783203125, 0.01349639892578125, -0.021514892578125, 0.036041259765625, 0.01444244384765625, 0.00861358642578125, -0.058868408203125, -0.0178985595703125, -0.0302734375, -0.0016603469848632812, 0.01300048828125, 0.017913818359375, -0.014495849609375, -0.0106048583984375, 0.02191162109375, -0.01763916015625, 0.0290985107421875, -0.044830322265625, -0.03515625, -0.03729248046875, 0.0101470947265625, -0.01177978515625, 0.01055145263671875, -0.023193359375, 0.03955078125, 0.0092926025390625, 0.0297088623046875, -0.004375457763671875, -0.06060791015625, -0.016265869140625, -0.005908966064453125, 0.03570556640625, -0.01409149169921875, 0.057159423828125, -0.00945281982421875, -0.047210693359375, 0.020263671875, -0.00754547119140625, 0.019073486328125, 0.036895751953125, -0.0180816650390625, 0.0306396484375, 0.046600341796875, -0.0276947021484375, 0.007678985595703125, 0.0009431838989257812, -0.0023097991943359375, 0.02825927734375, -0.01849365234375, -0.040496826171875, 0.017425537109375, 0.0697021484375, 0.0291748046875, -0.0035152435302734375, 0.0855712890625, -0.01338958740234375, 0.0272064208984375, 0.0814208984375, 0.0872802734375, -0.101318359375, 0.01062774658203125, 0.04339599609375, -0.041015625, -0.01000213623046875, -0.0024509429931640625, -0.025421142578125, -0.05364990234375, 0.047149658203125, -0.02947998046875, -0.017181396484375, 0.00499725341796875, -0.005054473876953125, 0.0208892822265625, -0.045654296875, 0.06817626953125, 0.0084228515625, 0.003467559814453125, -0.0182647705078125, -0.00313568115234375, 0.00007957220077514648, 0.0027408599853515625, 0.005283355712890625, -0.041351318359375, -0.0257110595703125, -0.0249786376953125, -0.0240020751953125, -0.040374755859375, -0.0053253173828125, 0.0028934478759765625, 0.035400390625, 0.045379638671875, 0.03631591796875, 0.015411376953125, -0.021697998046875, 0.0016775131225585938, 0.024078369140625, 0.03387451171875, -0.0028171539306640625, -0.0221710205078125, -0.006366729736328125, -0.0163116455078125, -0.00408172607421875, -0.0340576171875, 0.0183258056640625, -0.024688720703125, -0.022857666015625, 0.10498046875, -0.00576019287109375, -0.03826904296875, -0.0103912353515625, -0.02447509765625, 0.0189971923828125, 0.026123046875, -0.005970001220703125, -0.0256195068359375, -0.0318603515625, 0.0297393798828125, -0.049560546875, -0.00508880615234375, 0.043243408203125, -0.087158203125, 0.031890869140625, 0.040679931640625, 0.035797119140625, -0.0200347900390625, 0.0034046173095703125, -0.0101470947265625, -0.04315185546875, -0.05322265625, 0.030364990234375, -0.02349853515625, 0.066650390625, -0.0185699462890625, 0.028564453125, 0.012420654296875, -0.0221710205078125, 0.05206298828125, 0.01270294189453125, -0.01279449462890625, 0.01094818115234375, 0.02264404296875, -0.01026153564453125, -0.039581298828125, 0.028564453125, -0.007122039794921875, 0.01568603515625, 0.08062744140625, 0.0238189697265625, 0.041290283203125, 0.0221099853515625, -0.030792236328125, -0.00913238525390625, 0.01837158203125, 0.0230560302734375, 0.017974853515625, 0.00466156005859375, 0.01171875, -0.00751495361328125, 0.006824493408203125, -0.048553466796875, -0.01373291015625, 0.07464599609375, 0.046356201171875, -0.030548095703125, 0.00659942626953125, -0.0418701171875, 0.051483154296875, 0.031494140625, 0.02880859375, 0.0252685546875, 0.0013170242309570312, 0.056915283203125, 0.052459716796875, 0.0299224853515625, 0.03955078125, 0.0178680419921875, 0.06622314453125, 0.020355224609375, 0.032379150390625, -0.058074951171875, -0.055084228515625, 0.0189056396484375, 0.0845947265625, -0.0205535888671875, -0.0300445556640625, 0.0205841064453125, 0.021514892578125, 0.0140228271484375, -0.0008063316345214844, 0.0165557861328125, -0.08380126953125, -0.0170745849609375, -0.04571533203125, 0.059967041015625, 0.0679931640625, -0.0467529296875, 0.007122039794921875, 0.046539306640625, -0.06494140625, 0.08984375, -0.018524169921875, -0.0021209716796875, -0.007259368896484375, -0.0011243820190429688, 0.01129150390625, 0.01555633544921875, 0.048492431640625, 0.005550384521484375, -0.0111846923828125, -0.030426025390625, 0.0305023193359375, 0.0018529891967773438, -0.0167083740234375, 0.00882720947265625, 0.05938720703125, 0.037750244140625, -0.0108795166015625, 0.01032257080078125, 0.02496337890625, -0.001110076904296875, -0.01496124267578125, -0.005977630615234375, 0.039276123046875, -0.02642822265625, -0.015472412109375, -0.037322998046875, 0.0240325927734375, 0.0200347900390625, 0.01010894775390625, 0.0146331787109375, 0.021087646484375, 0.01006317138671875, -0.0004169940948486328, 0.05029296875, 0.00043201446533203125, 0.003162384033203125, 0.01904296875, -0.03155517578125, 0.023223876953125, 0.008270263671875, -0.006183624267578125, -0.0114288330078125, -0.02679443359375, 0.01519775390625, 0.01441192626953125, 0.03839111328125, 0.06024169921875, -0.0178375244140625, 0.0204620361328125, -0.016265869140625, 0.0241241455078125, -0.0007658004760742188, 0.0200958251953125, -0.00579071044921875, -0.012664794921875, -0.0179443359375, -0.037933349609375, 0.003330230712890625, 0.0167388916015625, -0.00550079345703125, -0.041229248046875, 0.039886474609375, -0.0041351318359375, -0.007190704345703125, -0.03948974609375, 0.054901123046875, -0.048919677734375, -0.0697021484375, 0.1231689453125, 0.0189666748046875, -0.0214691162109375, -0.0157470703125, -0.032257080078125, 0.02313232421875, 0.01641845703125, -0.0085601806640625, 0.0181121826171875, -0.0284881591796875, 0.008636474609375, -0.019561767578125, -0.01055145263671875, -0.0283660888671875, -0.01561737060546875, 0.01255035400390625, 0.0019626617431640625, 0.0142059326171875, -0.00792694091796875, 0.0004165172576904297, 0.0186309814453125, -0.0017986297607421875, -0.0039825439453125, 0.02056884765625, -0.01206207275390625, -0.0026302337646484375, 0.008819580078125, 0.0203399658203125, 0.0003223419189453125, 0.01190948486328125, -0.0284271240234375, 0.016571044921875, -0.00919342041015625, 0.00865936279296875, 0.03692626953125, -0.043060302734375, 0.045745849609375, -0.03125, 0.033447265625, -0.00864410400390625, -0.01641845703125, -0.0277862548828125, 0.036224365234375, 0.021759033203125, -0.0017147064208984375, -0.012969970703125, -0.0169830322265625, -0.025390625, 0.027191162109375, -0.027496337890625, 0.0050811767578125, -0.0623779296875, -0.016876220703125, -0.028167724609375, -0.0031185150146484375, -0.0386962890625, 0.013885498046875, 0.01265716552734375, -0.0017910003662109375, -0.0550537109375, -0.0118255615234375, 0.027496337890625, 0.03472900390625, -0.0428466796875, 0.0072479248046875, 0.00391387939453125, -0.01800537109375, 0.005084991455078125, 0.03271484375, 0.032623291015625, 0.0021915435791015625, 0.010894775390625, 0.07733154296875, 0.0012178421020507812, 0.1226806640625, -0.0618896484375, -0.035247802734375, 0.026336669921875, -0.0183258056640625, 0.017120361328125, -0.0638427734375, -0.0185546875, -0.05718994140625, 0.0198974609375, -0.0509033203125, -0.0117645263671875, -0.0304718017578125, -0.06146240234375, -0.03472900390625, 0.068603515625, -0.0016756057739257812, -0.017852783203125, 0.0308074951171875, -0.0382080078125, -0.00893402099609375, 0.0028591156005859375, 0.018463134765625, -0.04052734375, -0.03277587890625, -0.0023708343505859375, 0.01357269287109375, 0.020599365234375, 0.01140594482421875, 0.0227203369140625, -0.032958984375, 0.03424072265625, 0.00963592529296875, 0.0013074874877929688, 0.0567626953125, -0.0232086181640625, 0.0251312255859375, 0.054168701171875, -0.044921875, -0.013702392578125, -0.044830322265625, -0.0379638671875, -0.0217742919921875, 0.0028514862060546875, -0.025390625, -0.0193023681640625, 0.045989990234375, 0.040069580078125, 0.0155029296875, -0.0031948089599609375, -0.0308990478515625, -0.060333251953125, -0.0384521484375, -0.0015201568603515625, 0.02392578125, -0.0596923828125, 0.027587890625, 0.01233673095703125, -0.030426025390625, 0.058441162109375, -0.0234375, -0.003620147705078125, 0.0243072509765625, 0.0104827880859375, -0.06927490234375, 0.047454833984375, -0.02740478515625, 0.02294921875, -0.0294036865234375, -0.050201416015625, 0.00362396240234375, 0.03375244140625, -0.049072265625, -0.01312255859375, 0.0178985595703125, -0.0236663818359375, -0.00008869171142578125, 0.041351318359375, 0.0008215904235839844, -0.020538330078125, -0.02520751953125, -0.01551055908203125, 0.0247344970703125, 0.024505615234375, -0.0201263427734375, 0.022247314453125, 0.0160675048828125, 0.0419921875, -0.013946533203125, 0.04583740234375, 0.0015897750854492188, -0.0282440185546875, -0.01654052734375, 0.043365478515625, 0.013427734375, -0.03167724609375, 0.031951904296875, -0.0333251953125, -0.0143585205078125, -0.01091766357421875, -0.036773681640625, -0.046905517578125, 0.00350189208984375, 0.0518798828125, -0.006320953369140625, 0.031402587890625 ]
ea524248f453ca277a55c98c056dcf0a8d9187e9
Wordpress Stackexchange Q: the_excerpt and shortcodes I'm using the_excerpt on my index page. I'm also using a dropcap shortcode at the beginning of each of my posts. On the index page, the posts will not display the letter with the dropcap shortcode around it. If my post beings with the word "Dog" the index page displays "og". How do I get shortcodes to work when using the_excerpt? Shortcode function drcap ($atts, $content = null) { return '<div class="dropcap">' . do_shortcode($content) . '</div>'; } add_shortcode('dropcap', 'drcap'); A: In the auto-generated excerpt shortcodes will be removed by Wordpress: An auto-generated excerpt will also have all shortcodes and tags removed. It is trimmed down to a word-boundary and the default length is 55 words. Anyhow, if you use the manual excerpt field for your post, it works.
Q: the_excerpt and shortcodes I'm using the_excerpt on my index page. I'm also using a dropcap shortcode at the beginning of each of my posts. On the index page, the posts will not display the letter with the dropcap shortcode around it. If my post beings with the word "Dog" the index page displays "og". How do I get shortcodes to work when using the_excerpt? Shortcode function drcap ($atts, $content = null) { return '<div class="dropcap">' . do_shortcode($content) . '</div>'; } add_shortcode('dropcap', 'drcap'); A: In the auto-generated excerpt shortcodes will be removed by Wordpress: An auto-generated excerpt will also have all shortcodes and tags removed. It is trimmed down to a word-boundary and the default length is 55 words. Anyhow, if you use the manual excerpt field for your post, it works. A: Here's a solution for including shortcode output within Wordpress's auto-generated excerpts: add_filter('the_excerpt', 'do_shortcode'); remove_filter('get_the_excerpt', 'wp_trim_excerpt', 10); add_filter('get_the_excerpt', 'my_custom_wp_trim_excerpt', 99, 1); function my_custom_wp_trim_excerpt($text) { if(''==$text) { $text= preg_replace('/\s/', ' ', wp_strip_all_tags(get_the_content(''))); $text= explode(' ', $text, 56); array_pop($text); $text= implode(' ', $text); } return $text; } This implementation assumes a word-length of 55. Hope it helps someone. A: Paste this in your theme's functions.php file add_filter( 'the_excerpt', 'shortcode_unautop'); add_filter( 'the_excerpt', 'do_shortcode'); A: Also, add these 2 lines to your functions.php file for complete and comprehensive results: add_filter('get_the_excerpt', 'shortcode_unautop'); add_filter('get_the_excerpt', 'do_shortcode');
wordpress
{ "language": "en", "length": 221, "provenance": "stackexchange_00019.jsonl.gz:417218", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42743" }
[ -0.040557861328125, 0.00727081298828125, -0.009857177734375, 0.03515625, -0.030242919921875, -0.0156097412109375, -0.0023593902587890625, -0.03338623046875, -0.01052093505859375, 0.033538818359375, -0.0333251953125, -0.0038394927978515625, -0.01983642578125, -0.0007643699645996094, -0.03143310546875, -0.059478759765625, 0.031768798828125, -0.00807952880859375, 0.0227203369140625, -0.0147705078125, 0.0243988037109375, 0.00830078125, -0.001922607421875, 0.056060791015625, -0.000774383544921875, -0.04071044921875, 0.12109375, -0.0166473388671875, 0.015350341796875, -0.0164031982421875, 0.024078369140625, -0.016876220703125, 0.019317626953125, 0.05902099609375, -0.0638427734375, 0.064453125, -0.02130126953125, 0.034393310546875, 0.0162811279296875, 0.02960205078125, 0.00608062744140625, 0.00518035888671875, 0.050872802734375, -0.010650634765625, -0.002109527587890625, -0.020111083984375, 0.026397705078125, -0.043182373046875, -0.00331878662109375, -0.038818359375, 0.04364013671875, 0.0728759765625, 0.054595947265625, -0.036834716796875, 0.0010128021240234375, 0.050933837890625, -0.0254974365234375, 0.0193939208984375, 0.01528167724609375, 0.01306915283203125, 0.0012531280517578125, 0.0298919677734375, -0.0050811767578125, -0.0110015869140625, 0.000797271728515625, -0.003391265869140625, -0.021240234375, 0.005035400390625, -0.02264404296875, 0.0204620361328125, 0.043121337890625, -0.045379638671875, -0.0033321380615234375, -0.07275390625, -0.0168609619140625, 0.064453125, -0.005596160888671875, 0.031341552734375, -0.0213623046875, -0.018585205078125, -0.0019435882568359375, -0.0248260498046875, -0.0302886962890625, 0.00507354736328125, -0.0189666748046875, 0.00994873046875, -0.005023956298828125, -0.00525665283203125, -0.0164947509765625, -0.0205230712890625, -0.017822265625, 0.0100555419921875, -0.0229339599609375, -0.005397796630859375, -0.0278167724609375, -0.0216217041015625, 0.01456451416015625, 0.0408935546875, 0.01300811767578125, 0.02374267578125, -0.00278472900390625, -0.04278564453125, 0.0361328125, -0.0458984375, -0.0006365776062011719, -0.006076812744140625, -0.030548095703125, -0.03228759765625, 0.0307769775390625, 0.04290771484375, -0.025482177734375, -0.0160369873046875, -0.01485443115234375, -0.022674560546875, -0.056854248046875, 0.00290679931640625, -0.050384521484375, -0.01568603515625, 0.0218505859375, -0.02569580078125, 0.038543701171875, 0.0164642333984375, 0.0653076171875, -0.01323699951171875, -0.004302978515625, 0.002086639404296875, -0.043975830078125, -0.054412841796875, 0.0926513671875, -0.00031685829162597656, -0.0175323486328125, -0.0152740478515625, -0.021942138671875, 0.0006017684936523438, 0.004222869873046875, -0.005695343017578125, -0.0169677734375, -0.031890869140625, -0.0154571533203125, 0.0018396377563476562, 0.011810302734375, 0.0078277587890625, 0.04046630859375, -0.002193450927734375, -0.050872802734375, 0.023895263671875, 0.0215606689453125, 0.01102447509765625, -0.038818359375, -0.0711669921875, 0.004673004150390625, -0.033355712890625, 0.07586669921875, -0.0240325927734375, -0.06304931640625, -0.0645751953125, 0.0133209228515625, -0.06146240234375, -0.0046844482421875, -0.0860595703125, 0.05242919921875, -0.00537109375, -0.0177459716796875, -0.00794219970703125, -0.05389404296875, -0.0189056396484375, -0.027740478515625, -0.01532745361328125, 0.026763916015625, 0.0306243896484375, 0.035247802734375, -0.041351318359375, 0.004100799560546875, 0.0029468536376953125, -0.006839752197265625, -0.0017681121826171875, -0.029083251953125, -0.0174560546875, 0.06524658203125, -0.032806396484375, -0.048309326171875, -0.022613525390625, 0.037750244140625, -0.0079803466796875, -0.03472900390625, 0.0221405029296875, 0.038970947265625, 0.088623046875, -0.0133056640625, 0.036376953125, -0.0228118896484375, 0.035919189453125, -0.025146484375, -0.0157318115234375, 0.009857177734375, -0.0186004638671875, -0.0228424072265625, -0.028411865234375, -0.0018138885498046875, 0.037841796875, 0.017730712890625, -0.04559326171875, 0.052825927734375, 0.0030994415283203125, -0.0149078369140625, 0.0078887939453125, -0.0189208984375, 0.023406982421875, -0.04193115234375, 0.007106781005859375, 0.03179931640625, -0.0148162841796875, -0.03778076171875, 0.03948974609375, 0.0192108154296875, 0.042694091796875, -0.0496826171875, 0.0479736328125, 0.00830841064453125, 0.0245513916015625, 0.054962158203125, -0.044830322265625, 0.05584716796875, 0.006114959716796875, 0.06396484375, -0.05694580078125, 0.00701904296875, -0.057281494140625, 0.0152587890625, -0.019287109375, -0.058197021484375, 0.054443359375, 0.026336669921875, 0.012908935546875, -0.06597900390625, -0.01511383056640625, -0.02874755859375, -0.006046295166015625, -0.00231170654296875, 0.049774169921875, 0.057098388671875, 0.06536865234375, 0.00481414794921875, -0.044830322265625, 0.095703125, -0.01096343994140625, 0.04400634765625, -0.06561279296875, -0.01097869873046875, 0.0184783935546875, 0.04840087890625, 0.01441192626953125, -0.00684356689453125, -0.05877685546875, 0.01311492919921875, 0.0099334716796875, -0.01409149169921875, 0.033447265625, -0.0183258056640625, -0.005157470703125, -0.0005831718444824219, -0.039703369140625, 0.019195556640625, -0.041046142578125, 0.054412841796875, 0.0296173095703125, 0.0660400390625, 0.05029296875, -0.047271728515625, 0.0178375244140625, 0.0177001953125, 0.09173583984375, 0.002201080322265625, 0.040740966796875, 0.06243896484375, 0.006649017333984375, -0.03411865234375, -0.0203399658203125, 0.044921875, 0.0173797607421875, -0.01381683349609375, 0.046539306640625, -0.0146331787109375, -0.020965576171875, -0.0143890380859375, -0.027740478515625, -0.0197906494140625, -0.01873779296875, 0.005130767822265625, -0.046844482421875, -0.006397247314453125, 0.051422119140625, -0.0034847259521484375, 0.0245361328125, 0.00902557373046875, -0.009124755859375, 0.0007114410400390625, -0.033111572265625, 0.042999267578125, -0.05926513671875, 0.0056610107421875, 0.052825927734375, -0.02838134765625, 0.00519561767578125, 0.00811004638671875, -0.02423095703125, 0.00878143310546875, 0.01483917236328125, 0.0258026123046875, -0.0194244384765625, 0.0214691162109375, 0.066650390625, 0.032623291015625, 0.015838623046875, 0.01224517822265625, -0.00908660888671875, 0.004154205322265625, 0.045257568359375, -0.057098388671875, -0.056243896484375, 0.04547119140625, -0.027374267578125, -0.054443359375, -0.004688262939453125, -0.036468505859375, 0.0092315673828125, 0.00418853759765625, -0.028961181640625, -0.0081787109375, -0.034332275390625, -0.025543212890625, -0.035919189453125, -0.055633544921875, -0.0170440673828125, 0.00769805908203125, 0.00827789306640625, 0.015411376953125, -0.00882720947265625, 0.0079345703125, -0.017120361328125, 0.023284912109375, -0.022552490234375, -0.0164337158203125, -0.005245208740234375, 0.037689208984375, -0.001953125, -0.0309906005859375, 0.01244354248046875, 0.0009937286376953125, 0.03662109375, -0.04541015625, -0.00370025634765625, -0.01108551025390625, 0.0250244140625, 0.0229644775390625, 0.021331787109375, 0.005565643310546875, -0.0010528564453125, 0.04327392578125, -0.0352783203125, -0.00412750244140625, -0.0182952880859375, -0.055328369140625, -0.033905029296875, 0.051910400390625, -0.01218414306640625, -0.05242919921875, -0.0006890296936035156, 0.028411865234375, 0.0002777576446533203, 0.0352783203125, -0.036865234375, 0.016021728515625, 0.01166534423828125, 0.025360107421875, -0.032135009765625, 0.00844573974609375, -0.003231048583984375, -0.00872802734375, -0.0184173583984375, 0.033599853515625, -0.01617431640625, 0.01302337646484375, -0.06622314453125, -0.0112457275390625, 0.01800537109375, -0.01044464111328125, 0.0018186569213867188, 0.00437164306640625, -0.01126861572265625, 0.00882720947265625, 0.046966552734375, -0.062744140625, -0.0186920166015625, 0.01139068603515625, 0.0168304443359375, 0.002887725830078125, -0.003879547119140625, -0.0302734375, -0.01708984375, -0.0268402099609375, -0.0311431884765625, -0.00893402099609375, -0.054595947265625, -0.00942230224609375, -0.031494140625, -0.02593994140625, -0.0113372802734375, 0.0601806640625, -0.01100921630859375, 0.0188140869140625, -0.0049896240234375, 0.0255279541015625, -0.040496826171875, -0.040496826171875, 0.01070404052734375, -0.069091796875, -0.0094451904296875, 0.03826904296875, 0.034912109375, -0.0288848876953125, -0.0193023681640625, -0.01129150390625, 0.045501708984375, -0.0016241073608398438, -0.038177490234375, 0.01001739501953125, -0.0014362335205078125, -0.0003638267517089844, 0.03173828125, 0.0031375885009765625, -0.015655517578125, 0.00966644287109375, 0.0037899017333984375, -0.04412841796875, 0.01885986328125, -0.0357666015625, 0.032257080078125, -0.008209228515625, -0.0292205810546875, -0.07025146484375, -0.0369873046875, -0.0098724365234375, -0.015625, -0.01425933837890625, 0.0008139610290527344, -0.0309600830078125, -0.051605224609375, 0.03485107421875, 0.0170135498046875, -0.01548004150390625, -0.0123748779296875, 0.042449951171875, 0.0297088623046875, -0.018951416015625, 0.029510498046875, 0.03204345703125, 0.05096435546875, 0.00656890869140625, 0.030426025390625, 0.0215301513671875, -0.035552978515625, 0.05322265625, 0.025909423828125, -0.0218963623046875, -0.03485107421875, 0.002788543701171875, 0.01433563232421875, 0.0153656005859375, -0.0259857177734375, -0.0028553009033203125, 0.09857177734375, -0.0006513595581054688, 0.003978729248046875, -0.019500732421875, 0.02008056640625, 0.0236053466796875, -0.01546478271484375, 0.049468994140625, 0.005970001220703125, -0.0224761962890625, 0.007137298583984375, 0.0921630859375, -0.019622802734375, 0.0125885009765625, 0.012542724609375, -0.0036792755126953125, 0.0189666748046875, 0.0006093978881835938, -0.0172576904296875, -0.006641387939453125, -0.0266265869140625, 0.0288543701171875, -0.031646728515625, -0.016082763671875, -0.0011186599731445312, -0.0131683349609375, 0.0002865791320800781, -0.04437255859375, -0.09674072265625, 0.0183258056640625, -0.00821685791015625, 0.0169830322265625, 0.048553466796875, 0.0352783203125, -0.0018548965454101562, 0.021087646484375, 0.05035400390625, 0.004550933837890625, 0.04388427734375, 0.037567138671875, 0.01410675048828125, -0.0130615234375, -0.0216217041015625, -0.01248931884765625, 0.00860595703125, 0.04327392578125, -0.0599365234375, 0.050384521484375, 0.005931854248046875, 0.01390838623046875, 0.01335906982421875, 0.06689453125, 0.01776123046875, -0.0386962890625, -0.01129150390625, 0.05828857421875, -0.0391845703125, -0.049163818359375, -0.04473876953125, 0.0261383056640625, 0.05816650390625, -0.0255889892578125, -0.0118408203125, 0.00513458251953125, -0.002410888671875, 0.0171966552734375, 0.0311126708984375, -0.00798797607421875, 0.0035266876220703125, -0.020538330078125, 0.00689697265625, 0.049163818359375, -0.01241302490234375, -0.00893402099609375, -0.0269927978515625, -0.0225067138671875, 0.0037212371826171875, -0.0231170654296875, -0.010467529296875, 0.002323150634765625, -0.01708984375, 0.050018310546875, 0.01202392578125, -0.038360595703125, 0.024658203125, -0.0323486328125, -0.00382232666015625, 0.01352691650390625, 0.05072021484375, -0.000007748603820800781, -0.00980377197265625, -0.03533935546875, 0.00844573974609375, -0.060638427734375, -0.0123748779296875, 0.07464599609375, 0.038818359375, -0.04833984375, 0.0120849609375, -0.032470703125, -0.00830078125, 0.006458282470703125, -0.0219879150390625, -0.0400390625, -0.0218048095703125, -0.016510009765625, 0.026458740234375, 0.0036602020263671875, 0.01061248779296875, 0.0014982223510742188, 0.01253509521484375, -0.03851318359375, 0.0504150390625, -0.0167236328125, -0.008392333984375, 0.023834228515625, 0.0131378173828125, 0.0055694580078125, 0.00049591064453125, 0.0430908203125, -0.041778564453125, 0.0003452301025390625, -0.033538818359375, -0.0310211181640625, -0.01708984375, -0.012359619140625, 0.042816162109375, 0.059173583984375, -0.004283905029296875, 0.033355712890625, 0.01280975341796875, 0.013519287109375, -0.0117034912109375, -0.0170440673828125, -0.00478363037109375, -0.022216796875, 0.0322265625, -0.004322052001953125, 0.064208984375, -0.0261077880859375, -0.017578125, 0.021392822265625, -0.030426025390625, 0.035797119140625, 0.040771484375, 0.0288543701171875, 0.0166473388671875, 0.04742431640625, -0.04473876953125, 0.0286865234375, 0.034820556640625, -0.02142333984375, 0.0181121826171875, 0.0301513671875, -0.0204315185546875, -0.007579803466796875, -0.00026154518127441406, -0.00380706787109375, -0.01629638671875, -0.023590087890625, -0.01187896728515625, 0.011932373046875, 0.03277587890625, 0.04437255859375, -0.051513671875, 0.003055572509765625, -0.015716552734375, -0.0225372314453125, 0.038421630859375, -0.01126861572265625, -0.00801849365234375, -0.036956787109375, 0.0350341796875, -0.0117034912109375, -0.021728515625, 0.0003867149353027344, -0.01457977294921875, -0.0015716552734375, -0.045806884765625, 0.054046630859375, 0.0169830322265625, -0.069091796875, 0.04400634765625, 0.035186767578125, 0.0042877197265625, -0.0211639404296875, -0.006122589111328125, 0.00003647804260253906, -0.05255126953125, -0.03802490234375, -0.01465606689453125, 0.00238037109375, 0.0084075927734375, 0.032073974609375, -0.015350341796875, 0.0306854248046875, 0.05059814453125, -0.02606201171875, 0.0167236328125, 0.015106201171875, -0.0002187490463256836, 0.0018892288208007812, -0.0171661376953125, 0.00492095947265625, 0.00926971435546875, 0.0198516845703125, 0.0191192626953125, 0.0184326171875, -0.050811767578125, -0.0099639892578125, -0.0360107421875, 0.05999755859375, -0.0300140380859375, -0.026153564453125, 0.001766204833984375, -0.0059967041015625, 0.004451751708984375, -0.00667572021484375, 0.00949859619140625, -0.040771484375, 0.019012451171875, -0.0082855224609375, 0.0011434555053710938, -0.01357269287109375, -0.03497314453125, -0.060272216796875, 0.0701904296875, 0.006580352783203125, 0.004596710205078125, -0.037445068359375, 0.032562255859375, 0.0045166015625, 0.01450347900390625, -0.059234619140625, 0.0621337890625, 0.007541656494140625, 0.06146240234375, -0.06341552734375, -0.0177001953125, 0.0116119384765625, 0.016326904296875, 0.045806884765625, -0.004703521728515625, 0.00927734375, 0.017333984375, 0.0941162109375, 0.020599365234375, -0.003993988037109375, 0.00429534912109375, 0.033721923828125, 0.0419921875, 0.00403594970703125, 0.0027217864990234375, 0.038787841796875, -0.057861328125, -0.0313720703125, 0.061126708984375, -0.005771636962890625, -0.020294189453125, 0.04010009765625, 0.0142822265625, -0.04229736328125, 0.024139404296875, 0.0206451416015625, 0.00684356689453125, -0.0015106201171875, 0.05792236328125, 0.04156494140625, -0.07867431640625, -0.058563232421875, -0.0307769775390625, 0.049041748046875, -0.00235748291015625, 0.06842041015625, 0.059722900390625, 0.0222625732421875, 0.052032470703125, 0.03302001953125, 0.0450439453125, 0.025665283203125, -0.017547607421875, -0.019622802734375, 0.0018062591552734375, -0.0137176513671875, -0.026092529296875, 0.032318115234375, 0.0457763671875, -0.0088348388671875, -0.03143310546875, -0.0173492431640625, 0.0035800933837890625, -0.002368927001953125, 0.00020003318786621094, -0.023193359375, -0.01438140869140625, 0.004779815673828125, 0.01500701904296875, 0.0193939208984375, -0.025238037109375, 0.00641632080078125, 0.022308349609375, 0.0240325927734375, 0.033203125, -0.0139312744140625, -0.0333251953125, -0.0335693359375, 0.0218353271484375, 0.03717041015625, 0.008544921875, 0.01074981689453125, 0.01102447509765625, 0.00266265869140625, 0.005603790283203125, -0.00946807861328125, 0.0491943359375, 0.027313232421875, -0.011260986328125, -0.00634765625, -0.0129547119140625, 0.02899169921875, 0.004177093505859375, 0.003353118896484375, 0.01146697998046875, 0.0150146484375, -0.00473785400390625, -0.0335693359375, -0.00040841102600097656, 0.039398193359375, -0.0185699462890625, -0.01352691650390625, -0.041015625, 0.0030117034912109375, 0.0093841552734375, 0.01151275634765625, 0.00711822509765625, 0.03814697265625, 0.00021278858184814453, -0.019989013671875, 0.027099609375, 0.0019207000732421875, -0.0238494873046875, -0.0167236328125, 0.037139892578125, -0.00029397010803222656, 0.0281524658203125, -0.03668212890625, -0.015716552734375, -0.0024013519287109375, -0.05877685546875, -0.001155853271484375, 0.041107177734375, -0.010833740234375, -0.00011616945266723633, -0.0029735565185546875, -0.0222015380859375, -0.008209228515625, 0.0361328125, -0.0010957717895507812, -0.0110321044921875, 0.0133819580078125, -0.021087646484375, -0.03521728515625, -0.002399444580078125, 0.0264434814453125, 0.008880615234375, -0.004451751708984375, 0.057708740234375, -0.0082550048828125, -0.00450897216796875, -0.006351470947265625, 0.023681640625, -0.0182037353515625, -0.017578125, 0.05059814453125, 0.0073089599609375, 0.003143310546875, -0.024505615234375, 0.024993896484375, 0.04400634765625, 0.039215087890625, -0.0168304443359375, 0.026123046875, -0.006439208984375, 0.00389862060546875, -0.0428466796875, 0.00823211669921875, -0.026763916015625, -0.0226898193359375, -0.0306243896484375, -0.00933837890625, 0.0255279541015625, -0.01242828369140625, -0.0277557373046875, -0.018096923828125, 0.0736083984375, -0.0020046234130859375, 0.03802490234375, 0.029632568359375, 0.061431884765625, 0.0249481201171875, 0.022705078125, 0.000579833984375, 0.001636505126953125, -0.01442718505859375, 0.031463623046875, -0.0006103515625, 0.01273345947265625, 0.045928955078125, -0.02752685546875, 0.03765869140625, 0.04620361328125, 0.08380126953125, 0.01251983642578125, 0.02227783203125, 0.0267486572265625, -0.01195526123046875, 0.00669097900390625, 0.0396728515625, -0.040374755859375, -0.0340576171875, -0.0034847259521484375, -0.00290679931640625, -0.022308349609375, -0.0635986328125, -0.08978271484375, -0.0226287841796875, 0.022857666015625, 0.01485443115234375, -0.036865234375, 0.0025501251220703125, 0.01800537109375, 0.029693603515625, 0.00380706787109375, 0.0293426513671875, -0.00693511962890625, 0.0177154541015625, -0.093994140625, -0.0347900390625, -0.0413818359375, 0.022735595703125, -0.0584716796875, 0.0113067626953125, 0.04193115234375, -0.0133819580078125, -0.059173583984375, 0.02557373046875, 0.02001953125, 0.054412841796875, -0.0264892578125, -0.035369873046875, 0.0189666748046875, 0.007633209228515625, -0.0235748291015625, -0.03863525390625, -0.0026149749755859375, -0.0220489501953125, 0.018310546875, 0.020721435546875, -0.020477294921875, -0.00803375244140625, -0.03179931640625, -0.033721923828125, -0.0159149169921875, 0.02752685546875, -0.047515869140625, -0.00757598876953125, -0.0204010009765625, 0.002716064453125, -0.0171661376953125, -0.0124664306640625, 0.004650115966796875, -0.035552978515625, 0.00957489013671875, 0.0005583763122558594, 0.0693359375, -0.005870819091796875, 0.00417327880859375, 0.00958251953125, 0.0186614990234375, 0.004886627197265625, 0.0029239654541015625, 0.02789306640625, -0.020538330078125, 0.04052734375, 0.04901123046875, -0.038543701171875, -0.0038433074951171875, -0.01076507568359375, -0.0215606689453125, -0.017547607421875, -0.04376220703125, -0.0279541015625, -0.0168304443359375, 0.062255859375, 0.042266845703125, 0.006927490234375, -0.015960693359375, 0.0088653564453125, -0.01403045654296875, -0.01169586181640625, -0.0078125, -0.00036787986755371094, -0.02081298828125, 0.00356292724609375, -0.0259552001953125, -0.0175323486328125, 0.03704833984375, -0.06298828125, -0.022003173828125, 0.01332855224609375, -0.02276611328125, 0.009979248046875, -0.0265960693359375, -0.03173828125, 0.00006246566772460938, -0.0232086181640625, -0.029052734375, 0.00856781005859375, 0.020172119140625, -0.0299072265625, 0.0213470458984375, -0.0135955810546875, -0.01103973388671875, -0.00447845458984375, 0.01187896728515625, 0.0072784423828125, 0.0249176025390625, -0.0157470703125, -0.00676727294921875, -0.0025539398193359375, 0.0267791748046875, -0.009246826171875, 0.055572509765625, -0.00678253173828125, 0.0278778076171875, 0.01123809814453125, -0.0139617919921875, -0.01171875, 0.0309600830078125, 0.0139007568359375, 0.0207977294921875, -0.007495880126953125, 0.006916046142578125, 0.01056671142578125, -0.041839599609375, 0.018829345703125, 0.029998779296875, 0.04241943359375, 0.03558349609375, -0.0016632080078125, -0.017120361328125, 0.0078582763671875, -0.006671905517578125 ]
0a3a33cafb523d7576d8ea2a17dd4699310ec67a
Wordpress Stackexchange Q: Redirect to settings page after install I can't find any info on this anywhere but i'm sure iv'e seen it done before. I would like to have a user taken to the settings page for my plugin after install, so either auto-redirected or change the "back to plugins" link to a custom link. Thanks in advance SOLVED function myplugin_activate() { // TODO: Install your plugin here. // I don't know of any other redirect function, so this'll have to do. wp_redirect(admin_url('options-general.php?page=myplugin_settings'));exit; // You could use a header(sprintf('Location: %s', admin_url(...)); here instead too. } register_activation_hook(__FILE__, 'myplugin_activate'); @Zack - Your method works great however you forgot to exit after wp_redirect. (source http://codex.wordpress.org/Function_Reference/wp_redirect) Many thanks A: Register an activation hook and then redirect the user's browser when you're done installing your plugin. function myplugin_activate() { // TODO: Install your plugin here. // I don't know of any other redirect function, so this'll have to do. wp_redirect(admin_url('options-general.php?page=myplugin_settings')); // You could use a header(sprintf('Location: %s', admin_url(...)); here instead too. } register_activation_hook(__FILE__, 'myplugin_activate');
Q: Redirect to settings page after install I can't find any info on this anywhere but i'm sure iv'e seen it done before. I would like to have a user taken to the settings page for my plugin after install, so either auto-redirected or change the "back to plugins" link to a custom link. Thanks in advance SOLVED function myplugin_activate() { // TODO: Install your plugin here. // I don't know of any other redirect function, so this'll have to do. wp_redirect(admin_url('options-general.php?page=myplugin_settings'));exit; // You could use a header(sprintf('Location: %s', admin_url(...)); here instead too. } register_activation_hook(__FILE__, 'myplugin_activate'); @Zack - Your method works great however you forgot to exit after wp_redirect. (source http://codex.wordpress.org/Function_Reference/wp_redirect) Many thanks A: Register an activation hook and then redirect the user's browser when you're done installing your plugin. function myplugin_activate() { // TODO: Install your plugin here. // I don't know of any other redirect function, so this'll have to do. wp_redirect(admin_url('options-general.php?page=myplugin_settings')); // You could use a header(sprintf('Location: %s', admin_url(...)); here instead too. } register_activation_hook(__FILE__, 'myplugin_activate'); A: I see the question is already answered. But there is a alternate scenario where you might want to redirect to settings page after a theme installed. You can do it very easily using following codes :) if (is_admin() && isset($_GET['activated'])){ wp_redirect(admin_url("themes.php?page=ot-theme-options")); } You just have to replace the following code themes.php?page=ot-theme-options With your own setting page url. It is farly easy to do and we are using WP redirect function. Thanks Sabbir A: Well, you also can use another and more elegant solution: register_activation_hook(__FILE__, function () { add_option('your_plugin_do_activation_redirect', true); }); add_action('admin_init', function () { if (get_option('your_plugin_do_activation_redirect', false)) { delete_option('your_plugin_do_activation_redirect'); if(wp_safe_redirect("options-general.php?page=myplugin_settings")) exit(); } }); Approved answer is old and produce error inside activation or redirect you to 404 page inside admin. This solution provide you safe redirection with no errors.
wordpress
{ "language": "en", "length": 298, "provenance": "stackexchange_00019.jsonl.gz:417247", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42839" }
[ 0.08416748046875, 0.0200653076171875, 0.0161895751953125, -0.050689697265625, 0.04315185546875, -0.0254058837890625, 0.032928466796875, -0.037994384765625, -0.01030731201171875, 0.00911712646484375, 0.03369140625, 0.0267486572265625, -0.0292816162109375, -0.0531005859375, 0.01309967041015625, 0.0018672943115234375, 0.026214599609375, -0.007076263427734375, -0.0111236572265625, -0.007793426513671875, 0.008392333984375, 0.01450347900390625, -0.0051727294921875, 0.061126708984375, 0.006336212158203125, -0.01058197021484375, 0.05792236328125, -0.04693603515625, -0.011688232421875, -0.0338134765625, 0.007801055908203125, 0.02447509765625, 0.020263671875, 0.0183868408203125, -0.00933837890625, -0.040130615234375, 0.01387786865234375, 0.007755279541015625, -0.0027675628662109375, 0.033172607421875, 0.050384521484375, -0.03704833984375, -0.01470947265625, 0.0601806640625, -0.022735595703125, -0.06512451171875, 0.08447265625, -0.0180206298828125, 0.006633758544921875, -0.01474761962890625, 0.0391845703125, -0.03289794921875, 0.054351806640625, -0.050445556640625, -0.018890380859375, 0.002765655517578125, -0.046173095703125, 0.05914306640625, 0.01337432861328125, 0.032073974609375, -0.00843048095703125, 0.0217437744140625, -0.0226898193359375, -0.023406982421875, 0.03173828125, -0.023895263671875, -0.05438232421875, 0.053253173828125, -0.0760498046875, 0.0300445556640625, 0.052886962890625, -0.061798095703125, 0.00402069091796875, 0.0176544189453125, -0.019378662109375, -0.044647216796875, 0.0290679931640625, 0.002471923828125, 0.0211334228515625, 0.00949859619140625, 0.0134124755859375, 0.00928497314453125, 0.04583740234375, -0.043182373046875, 0.040283203125, -0.008392333984375, -0.01134490966796875, -0.01279449462890625, -0.0261993408203125, -0.018280029296875, -0.03863525390625, 0.0156707763671875, 0.02520751953125, -0.046478271484375, -0.054351806640625, -0.004669189453125, 0.02520751953125, 0.02764892578125, 0.0006861686706542969, -0.01074981689453125, 0.0195465087890625, -0.04937744140625, 0.0259246826171875, -0.0277099609375, 0.001590728759765625, 0.0679931640625, 0.0114288330078125, -0.04461669921875, -0.0015935897827148438, 0.00015878677368164062, -0.00948333740234375, -0.0135498046875, -0.05914306640625, -0.0124053955078125, 0.01294708251953125, 0.02496337890625, -0.08148193359375, 0.01291656494140625, -0.01519012451171875, 0.0163116455078125, -0.00913238525390625, -0.003887176513671875, 0.006145477294921875, -0.0159454345703125, -0.024566650390625, -0.048065185546875, -0.0161285400390625, -0.00965118408203125, -0.036468505859375, -0.004428863525390625, 0.01447296142578125, 0.0286407470703125, 0.0172119140625, 0.004055023193359375, -0.029449462890625, 0.0110931396484375, 0.033203125, 0.0139923095703125, -0.008087158203125, 0.002841949462890625, 0.00949859619140625, -0.033782958984375, -0.0213165283203125, -0.0025653839111328125, 0.019805908203125, 0.009674072265625, 0.006626129150390625, 0.018829345703125, 0.00775146484375, -0.0117034912109375, 0.011993408203125, -0.0245819091796875, 0.0154266357421875, -0.002979278564453125, -0.01146697998046875, 0.00673675537109375, -0.0243377685546875, 0.0157318115234375, -0.00537109375, 0.0136260986328125, 0.03485107421875, -0.023773193359375, -0.0220489501953125, -0.021209716796875, -0.051177978515625, 0.0195159912109375, -0.0286407470703125, -0.00733184814453125, 0.020294189453125, 0.040283203125, -0.00998687744140625, -0.0129547119140625, -0.0242462158203125, 0.0046234130859375, 0.0057373046875, 0.0105438232421875, 0.007038116455078125, 0.0212249755859375, 0.0249176025390625, 0.01050567626953125, 0.0025787353515625, -0.0079345703125, 0.098388671875, -0.02191162109375, -0.048126220703125, 0.056915283203125, 0.01226043701171875, 0.08856201171875, 0.0059661865234375, 0.0184326171875, 0.0026493072509765625, 0.007350921630859375, -0.045654296875, 0.0154876708984375, -0.0270538330078125, -0.0060882568359375, 0.0214080810546875, 0.0282745361328125, -0.010101318359375, -0.00858306884765625, 0.0243377685546875, 0.0187835693359375, -0.013702392578125, 0.0009660720825195312, -0.0175628662109375, 0.0031948089599609375, -0.00911712646484375, 0.0177001953125, 0.034576416015625, 0.02166748046875, -0.02593994140625, -0.017181396484375, 0.032470703125, -0.055633544921875, -0.0343017578125, 0.0206146240234375, 0.0010023117065429688, 0.0853271484375, 0.0242156982421875, 0.05413818359375, 0.019256591796875, -0.057647705078125, 0.020172119140625, -0.041351318359375, 0.00696563720703125, -0.011474609375, 0.0005860328674316406, -0.010406494140625, -0.017364501953125, 0.0023860931396484375, 0.00719451904296875, 0.0386962890625, -0.00983428955078125, -0.02655029296875, -0.0265960693359375, 0.0285797119140625, 0.02459716796875, -0.034912109375, 0.00010192394256591797, 0.0239410400390625, 0.0209197998046875, 0.0364990234375, -0.04058837890625, -0.004428863525390625, 0.0090789794921875, -0.06292724609375, -0.005321502685546875, 0.01708984375, 0.05078125, 0.03973388671875, -0.0144805908203125, -0.022369384765625, 0.033111572265625, -0.0215911865234375, 0.0067596435546875, 0.03314208984375, -0.047698974609375, -0.0462646484375, 0.0400390625, -0.041961669921875, 0.01137542724609375, -0.02069091796875, -0.007404327392578125, -0.012359619140625, -0.0051422119140625, 0.004058837890625, 0.0138092041015625, 0.006160736083984375, -0.027587890625, -0.00594329833984375, 0.03631591796875, 0.00634765625, -0.009674072265625, -0.0096282958984375, 0.0701904296875, -0.09686279296875, -0.034912109375, 0.0092315673828125, 0.0274505615234375, -0.034332275390625, -0.01384735107421875, -0.0021343231201171875, -0.06390380859375, -0.01361846923828125, -0.0167694091796875, -0.09466552734375, -0.007152557373046875, 0.0377197265625, 0.01090240478515625, 0.0027484893798828125, 0.03399658203125, -0.004047393798828125, -0.037933349609375, 0.0382080078125, -0.005718231201171875, -0.045806884765625, 0.047393798828125, -0.045440673828125, 0.0280914306640625, -0.046905517578125, 0.09454345703125, 0.0601806640625, -0.030487060546875, 0.009674072265625, -0.00620269775390625, 0.0338134765625, 0.013397216796875, -0.021026611328125, -0.010986328125, -0.0010709762573242188, -0.0252532958984375, 0.0015468597412109375, 0.0191497802734375, 0.0204315185546875, -0.0096435546875, -0.053924560546875, -0.0300750732421875, -0.0058135986328125, -0.09625244140625, -0.039215087890625, -0.039764404296875, -0.0673828125, 0.0772705078125, 0.01343536376953125, -0.00865936279296875, -0.033294677734375, 0.04388427734375, 0.049957275390625, 0.0019254684448242188, -0.01318359375, -0.0194549560546875, -0.020599365234375, -0.0599365234375, -0.0134124755859375, 0.00022542476654052734, 0.0021915435791015625, 0.0170135498046875, -0.008941650390625, -0.005748748779296875, -0.041748046875, 0.0090484619140625, 0.013519287109375, 0.0018701553344726562, -0.0175933837890625, -0.0057373046875, -0.0185089111328125, 0.0121917724609375, -0.0007276535034179688, 0.0550537109375, 0.00957489013671875, -0.007602691650390625, -0.00760650634765625, -0.0016317367553710938, -0.01070404052734375, 0.0013647079467773438, -0.022216796875, -0.0014410018920898438, -0.0207672119140625, -0.026092529296875, -0.053863525390625, 0.01296234130859375, -0.0022869110107421875, -0.033966064453125, -0.017791748046875, 0.0016260147094726562, -0.008148193359375, 0.032745361328125, -0.039794921875, 0.0030956268310546875, -0.0072479248046875, 0.0095367431640625, -0.00572967529296875, 0.008453369140625, -0.024566650390625, 0.00269317626953125, -0.017364501953125, 0.049835205078125, 0.0126495361328125, -0.00716400146484375, 0.0208892822265625, 0.0267181396484375, 0.0133056640625, -0.0156402587890625, -0.041778564453125, -0.072021484375, 0.029205322265625, -0.050384521484375, -0.0299835205078125, -0.01104736328125, -0.0035648345947265625, 0.03021240234375, 0.09442138671875, -0.02777099609375, 0.0065155029296875, 0.0078582763671875, 0.005939483642578125, -0.036468505859375, -0.0033130645751953125, -0.06854248046875, 0.006793975830078125, -0.1268310546875, 0.0172119140625, 0.0180511474609375, -0.052764892578125, 0.01366424560546875, -0.00020635128021240234, -0.057403564453125, -0.05084228515625, 0.02154541015625, 0.0274658203125, 0.0184173583984375, 0.0369873046875, -0.005474090576171875, 0.031341552734375, 0.0005669593811035156, -0.003383636474609375, -0.06988525390625, -0.0159912109375, 0.018341064453125, 0.0248870849609375, 0.007617950439453125, -0.030853271484375, -0.0151824951171875, 0.038238525390625, 0.00548553466796875, -0.0030307769775390625, -0.0018548965454101562, 0.0180816650390625, -0.026519775390625, -0.0416259765625, -0.027008056640625, -0.034454345703125, 0.009735107421875, 0.02862548828125, -0.040740966796875, 0.03802490234375, -0.017974853515625, 0.0129852294921875, 0.05218505859375, -0.059234619140625, -0.048492431640625, 0.0009241104125976562, 0.01434326171875, 0.0098114013671875, -0.01244354248046875, -0.005336761474609375, 0.003833770751953125, -0.0268096923828125, 0.0189208984375, -0.079345703125, -0.022796630859375, 0.0045318603515625, 0.04351806640625, 0.033203125, 0.0236968994140625, 0.08453369140625, -0.01409149169921875, 0.031158447265625, 0.0166778564453125, 0.028778076171875, 0.022430419921875, -0.00495147705078125, 0.0160980224609375, 0.01372528076171875, -0.00670623779296875, -0.01708984375, 0.059722900390625, -0.0217132568359375, -0.04168701171875, 0.032928466796875, -0.04681396484375, 0.0086517333984375, 0.03448486328125, 0.00531768798828125, -0.003810882568359375, 0.0089874267578125, -0.005245208740234375, -0.021514892578125, 0.0203094482421875, 0.0107269287109375, -0.04779052734375, 0.0231475830078125, 0.0251617431640625, 0.0012083053588867188, 0.0264434814453125, -0.0009512901306152344, 0.01300811767578125, -0.00888824462890625, 0.001194000244140625, 0.052459716796875, 0.035400390625, 0.020751953125, 0.050140380859375, 0.00867462158203125, -0.018798828125, 0.004970550537109375, 0.004062652587890625, 0.038116455078125, -0.0032100677490234375, -0.032623291015625, -0.0543212890625, -0.012115478515625, 0.0038013458251953125, -0.00567626953125, -0.0216827392578125, 0.04449462890625, 0.040008544921875, -0.03753662109375, -0.017303466796875, 0.002414703369140625, -0.0129852294921875, -0.0599365234375, 0.0271148681640625, -0.01140594482421875, -0.0027294158935546875, 0.0139312744140625, 0.05657958984375, 0.0123291015625, 0.031707763671875, -0.01509857177734375, 0.027618408203125, 0.0343017578125, -0.019683837890625, 0.019622802734375, 0.0413818359375, -0.0007023811340332031, -0.072021484375, 0.0033817291259765625, -0.0287017822265625, 0.0103759765625, 0.018524169921875, 0.0207977294921875, 0.01690673828125, -0.01360321044921875, 0.0301971435546875, -0.00634765625, -0.0202484130859375, 0.04327392578125, -0.02862548828125, -0.10601806640625, -0.01255035400390625, 0.038543701171875, 0.0245208740234375, -0.051849365234375, -0.0190277099609375, 0.0260772705078125, -0.011993408203125, 0.023284912109375, -0.00798797607421875, -0.03985595703125, 0.01311492919921875, 0.0360107421875, -0.0220947265625, -0.0161590576171875, -0.00716400146484375, -0.025634765625, -0.01995849609375, -0.00478363037109375, -0.01410675048828125, 0.0275115966796875, -0.032562255859375, 0.0244293212890625, -0.040283203125, 0.0140380859375, -0.036224365234375, -0.01275634765625, 0.06982421875, 0.036865234375, -0.07525634765625, 0.016571044921875, -0.033843994140625, -0.005504608154296875, -0.002758026123046875, -0.04376220703125, -0.03814697265625, -0.02105712890625, 0.04095458984375, 0.02105712890625, 0.0038299560546875, -0.041107177734375, -0.01186370849609375, -0.0085296630859375, 0.0267791748046875, 0.01116180419921875, 0.040618896484375, 0.007427215576171875, -0.0297088623046875, 0.042327880859375, 0.024505615234375, -0.002567291259765625, -0.040740966796875, -0.0248870849609375, 0.01641845703125, 0.0298004150390625, -0.032257080078125, -0.037841796875, -0.004261016845703125, -0.003803253173828125, 0.08203125, -0.020782470703125, -0.03460693359375, 0.0518798828125, 0.007843017578125, -0.0252838134765625, -0.01031494140625, 0.08843994140625, 0.00881195068359375, 0.010986328125, -0.037078857421875, -0.0333251953125, 0.00974273681640625, 0.034912109375, 0.0017805099487304688, -0.03204345703125, -0.00203704833984375, 0.008453369140625, -0.07159423828125, 0.046051025390625, 0.0751953125, 0.00778961181640625, 0.0303192138671875, -0.00702667236328125, 0.00034689903259277344, 0.03399658203125, 0.0146636962890625, 0.021820068359375, 0.00763702392578125, 0.050933837890625, -0.00244140625, 0.0123291015625, 0.046600341796875, -0.0149078369140625, 0.004840850830078125, 0.0682373046875, 0.03826904296875, -0.0867919921875, -0.0095977783203125, -0.0195159912109375, -0.00725555419921875, 0.0408935546875, -0.0165863037109375, -0.00542449951171875, -0.005908966064453125, 0.016448974609375, -0.01050567626953125, -0.0166778564453125, 0.006313323974609375, 0.0079345703125, -0.0211944580078125, 0.0096435546875, 0.03875732421875, 0.02349853515625, -0.0455322265625, 0.00539398193359375, 0.0194549560546875, -0.01323699951171875, -0.014984130859375, 0.00008887052536010742, 0.00978851318359375, 0.005443572998046875, -0.02642822265625, 0.04083251953125, -0.040740966796875, 0.00579833984375, 0.042633056640625, -0.029144287109375, 0.042510986328125, 0.038909912109375, -0.0106964111328125, -0.0006837844848632812, -0.0059356689453125, 0.0183868408203125, -0.00396728515625, -0.010986328125, 0.004695892333984375, -0.00685882568359375, -0.0106201171875, 0.0153045654296875, -0.0253143310546875, -0.0231170654296875, 0.0015935897827148438, 0.0389404296875, 0.0533447265625, 0.0243988037109375, -0.049835205078125, 0.035614013671875, -0.0127716064453125, -0.00472259521484375, -0.0167999267578125, 0.02880859375, -0.048797607421875, -0.0274658203125, -0.0196990966796875, -0.03466796875, -0.0142974853515625, -0.05181884765625, -0.0343017578125, 0.1029052734375, 0.00231170654296875, -0.004444122314453125, -0.0010128021240234375, 0.049468994140625, -0.0132598876953125, 0.040924072265625, -0.028564453125, 0.061279296875, 0.032440185546875, 0.01397705078125, -0.030792236328125, -0.005443572998046875, -0.01128387451171875, 0.03265380859375, 0.04541015625, 0.0283966064453125, -0.0672607421875, 0.01052093505859375, 0.02508544921875, -0.040130615234375, -0.02520751953125, 0.09228515625, 0.0114288330078125, 0.031646728515625, 0.047821044921875, -0.032470703125, 0.050994873046875, -0.058502197265625, -0.0033626556396484375, -0.0027599334716796875, 0.00980377197265625, -0.001194000244140625, -0.035186767578125, 0.061798095703125, -0.061248779296875, -0.01132965087890625, 0.03277587890625, 0.0209503173828125, -0.00726318359375, 0.0030956268310546875, -0.00597381591796875, 0.027740478515625, 0.048431396484375, -0.0247344970703125, 0.034210205078125, -0.0050201416015625, -0.033966064453125, 0.0029239654541015625, 0.0174713134765625, -0.0177459716796875, -0.028961181640625, -0.0298919677734375, 0.022216796875, -0.008270263671875, 0.042083740234375, 0.03564453125, 0.0369873046875, 0.0011987686157226562, -0.00009745359420776367, -0.007595062255859375, 0.034942626953125, -0.0258331298828125, -0.058929443359375, 0.0101776123046875, 0.01491546630859375, 0.01409912109375, 0.014556884765625, 0.035308837890625, -0.03875732421875, 0.011932373046875, -0.0230255126953125, -0.004955291748046875, 0.0202484130859375, -0.0010137557983398438, 0.0096435546875, 0.0025844573974609375, -0.014801025390625, 0.01006317138671875, -0.00464630126953125, -0.01340484619140625, 0.01629638671875, 0.0193939208984375, -0.0148773193359375, 0.0433349609375, 0.003025054931640625, -0.0024051666259765625, -0.0193023681640625, 0.0264739990234375, 0.021820068359375, 0.029388427734375, -0.0867919921875, -0.044219970703125, 0.02679443359375, 0.0616455078125, -0.0251922607421875, 0.001605987548828125, 0.0252685546875, 0.0621337890625, 0.0167388916015625, -0.0191192626953125, 0.049591064453125, -0.004077911376953125, 0.037139892578125, -0.034881591796875, 0.01727294921875, -0.0101318359375, -0.00238037109375, -0.007221221923828125, -0.0004353523254394531, 0.0296173095703125, -0.00505828857421875, 0.07177734375, -0.006160736083984375, 0.0010576248168945312, 0.00937652587890625, -0.031768798828125, 0.055999755859375, 0.0149383544921875, -0.05242919921875, -0.0161285400390625, -0.0237579345703125, -0.020538330078125, 0.017120361328125, 0.0266876220703125, -0.030975341796875, 0.054473876953125, -0.034393310546875, 0.0143280029296875, 0.027008056640625, -0.045867919921875, 0.006664276123046875, 0.0263824462890625, 0.0100860595703125, -0.0014772415161132812, 0.01033782958984375, 0.0113677978515625, -0.003631591796875, 0.0262603759765625, -0.0030651092529296875, 0.053314208984375, -0.0178985595703125, 0.0279388427734375, -0.0185394287109375, -0.01172637939453125, 0.0060882568359375, -0.0157928466796875, 0.002956390380859375, 0.03369140625, 0.0003581047058105469, -0.02545166015625, -0.056976318359375, 0.048065185546875, 0.0029621124267578125, 0.00548553466796875, 0.03326416015625, 0.007015228271484375, 0.006427764892578125, 0.0195465087890625, 0.0301971435546875, -0.0253448486328125, -0.0567626953125, -0.05523681640625, 0.01036834716796875, 0.006092071533203125, 0.031707763671875, -0.006946563720703125, 0.026397705078125, 0.00337982177734375, 0.001224517822265625, 0.0008873939514160156, 0.0106353759765625, -0.0245513916015625, 0.02587890625, -0.026702880859375, -0.0313720703125, 0.0234527587890625, -0.01593017578125, 0.01152801513671875, 0.01332855224609375, 0.03472900390625, 0.0131378173828125, -0.0006303787231445312, -0.048187255859375, -0.02044677734375, -0.0160369873046875, -0.0249481201171875, -0.0087738037109375, -0.004291534423828125, 0.0003871917724609375, -0.033721923828125, -0.0258636474609375, -0.0172576904296875, -0.04229736328125, -0.00417327880859375, 0.027618408203125, -0.0209808349609375, -0.0089569091796875, -0.050994873046875, 0.0156707763671875, 0.036407470703125, -0.005840301513671875, -0.03466796875, -0.004180908203125, -0.037872314453125, 0.0897216796875, -0.0238037109375, 0.003414154052734375, -0.004154205322265625, -0.0015192031860351562, -0.052276611328125, -0.0102691650390625, -0.054229736328125, 0.00983428955078125, -0.036224365234375, 0.0020046234130859375, 0.035247802734375, -0.0255126953125, -0.06390380859375, -0.00521087646484375, -0.00943756103515625, 0.035797119140625, -0.000980377197265625, -0.0214080810546875, 0.0205841064453125, -0.0032749176025390625, -0.0088043212890625, -0.05023193359375, -0.0055389404296875, -0.041229248046875, 0.00485992431640625, 0.006984710693359375, -0.0015954971313476562, 0.0208282470703125, -0.031585693359375, -0.03790283203125, 0.052459716796875, 0.003124237060546875, -0.01983642578125, -0.04541015625, 0.028839111328125, 0.016632080078125, -0.0271453857421875, -0.0227813720703125, -0.01160430908203125, -0.016448974609375, 0.0055694580078125, 0.00763702392578125, 0.047698974609375, 0.00838470458984375, 0.0268096923828125, 0.002567291259765625, 0.0198516845703125, -0.00004506111145019531, -0.0230560302734375, -0.0011005401611328125, -0.0086517333984375, 0.0307159423828125, 0.05224609375, -0.0079498291015625, -0.0170135498046875, 0.00254058837890625, -0.035858154296875, -0.0288543701171875, -0.052398681640625, 0.0411376953125, 0.004680633544921875, 0.010009765625, 0.0236663818359375, -0.0086669921875, -0.0306396484375, -0.05157470703125, -0.019256591796875, 0.026336669921875, -0.029754638671875, 0.0079803466796875, -0.07757568359375, -0.0160064697265625, -0.003448486328125, -0.004985809326171875, 0.0005435943603515625, 0.0146636962890625, -0.0021877288818359375, -0.0007777214050292969, 0.05078125, -0.003871917724609375, -0.00783538818359375, -0.037628173828125, 0.05047607421875, -0.028961181640625, -0.005523681640625, 0.007076263427734375, 0.027008056640625, 0.0035552978515625, 0.0088958740234375, 0.03125, 0.056121826171875, -0.05670166015625, -0.01090240478515625, 0.014312744140625, 0.0254058837890625, -0.037353515625, -0.027374267578125, 0.00218963623046875, 0.033935546875, -0.021270751953125, 0.0154571533203125, -0.00013637542724609375, 0.055450439453125, 0.00424957275390625, 0.08721923828125, 0.000560760498046875, -0.004009246826171875, -0.01139068603515625, 0.029541015625, 0.001636505126953125, -0.0218658447265625, 0.03497314453125, -0.02716064453125, -0.00821685791015625, 0.00725555419921875, 0.042144775390625, -0.04461669921875, 0.040283203125, -0.03253173828125, 0.034423828125, 0.02008056640625 ]
40a00460e975aa8718f3950b1923fb18c0be1a30
Wordpress Stackexchange Q: How to get permalink and title from post ID? I have stored an array of post IDs and I would like to list the posts as links, meaning I need to get the title and permalink for the post ID - $id. The list should be echoed out by the following if condition, which means I somehow have to replace $id with the permalink and title. At the moment the code merely lists the post ID numbers. <?php if(count($related)){ echo "<div>Read More<ul>"; foreach($related as $id){ echo "<li>$id</li>"; } echo "</ul></div>"; } ?> A: <?php if(count($related)) { echo "<div>Read More<ul>"; foreach($related as $id) { echo '<li><a href="'.get_permalink( $id ).'">'.get_the_title( $id ).'</a></li>';     }     echo "</ul></div>";   } ?>  
Q: How to get permalink and title from post ID? I have stored an array of post IDs and I would like to list the posts as links, meaning I need to get the title and permalink for the post ID - $id. The list should be echoed out by the following if condition, which means I somehow have to replace $id with the permalink and title. At the moment the code merely lists the post ID numbers. <?php if(count($related)){ echo "<div>Read More<ul>"; foreach($related as $id){ echo "<li>$id</li>"; } echo "</ul></div>"; } ?> A: <?php if(count($related)) { echo "<div>Read More<ul>"; foreach($related as $id) { echo '<li><a href="'.get_permalink( $id ).'">'.get_the_title( $id ).'</a></li>';     }     echo "</ul></div>";   } ?>   A: You just need to use get_permalink( $id ) and get_the_title( $id ). A: If you dont have access you could try the wp api https://content.wordpress.com.au/wp-json/wp/v2/posts/POST_ID
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:417258", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42874" }
[ 0.05767822265625, -0.0032176971435546875, 0.0377197265625, 0.0311279296875, 0.00675201416015625, -0.037384033203125, 0.09527587890625, -0.052886962890625, 0.015533447265625, 0.03515625, -0.072998046875, 0.033477783203125, -0.006866455078125, 0.0013427734375, 0.005126953125, -0.0209808349609375, 0.03131103515625, -0.0276947021484375, 0.0290679931640625, 0.01506805419921875, -0.0164642333984375, 0.028472900390625, 0.058380126953125, -0.0199737548828125, 0.0271453857421875, -0.033233642578125, 0.07720947265625, -0.0159149169921875, 0.0223388671875, -0.03564453125, 0.022491455078125, -0.000885009765625, 0.01050567626953125, -0.041015625, 0.07098388671875, -0.00511932373046875, 0.047515869140625, -0.0305938720703125, 0.0244903564453125, 0.032012939453125, 0.014404296875, -0.0014028549194335938, 0.0347900390625, 0.0234527587890625, -0.0111541748046875, -0.0034923553466796875, -0.00716400146484375, -0.041412353515625, -0.00447845458984375, -0.0190277099609375, 0.006420135498046875, 0.0406494140625, 0.01372528076171875, 0.01366424560546875, -0.0030384063720703125, 0.015716552734375, 0.02081298828125, -0.034576416015625, 0.06048583984375, -0.039886474609375, -0.06500244140625, -0.048004150390625, 0.039337158203125, -0.034332275390625, -0.047149658203125, 0.006259918212890625, 0.03680419921875, 0.0036773681640625, 0.0000311732292175293, -0.051513671875, 0.0070343017578125, 0.003650665283203125, -0.009918212890625, -0.045166015625, -0.0239715576171875, 0.00038361549377441406, -0.005462646484375, -0.06640625, -0.0176849365234375, 0.001010894775390625, -0.004924774169921875, -0.01343536376953125, -0.023681640625, 0.005268096923828125, 0.0205078125, 0.031341552734375, -0.011322021484375, -0.012481689453125, -0.0313720703125, -0.03607177734375, -0.024139404296875, -0.03851318359375, -0.0277862548828125, -0.0020904541015625, -0.0245513916015625, -0.0170135498046875, 0.0275115966796875, 0.0712890625, -0.0259246826171875, 0.0004303455352783203, -0.01203155517578125, -0.0291900634765625, 0.02117919921875, -0.035888671875, -0.01451873779296875, -0.0112457275390625, 0.0228118896484375, 0.057525634765625, 0.035064697265625, 0.0372314453125, -0.0262603759765625, 0.03106689453125, -0.00267791748046875, -0.00965118408203125, -0.0250701904296875, 0.016387939453125, -0.035614013671875, 0.00797271728515625, -0.01328277587890625, 0.0268402099609375, -0.01788330078125, 0.006282806396484375, 0.005168914794921875, 0.0092010498046875, 0.03173828125, 0.0269317626953125, 0.005558013916015625, -0.03955078125, -0.0039825439453125, 0.054107666015625, -0.0269927978515625, -0.008941650390625, 0.04754638671875, 0.042510986328125, 0.0033779144287109375, -0.03436279296875, 0.017059326171875, 0.004306793212890625, -0.017578125, -0.006519317626953125, -0.00860595703125, -0.01006317138671875, 0.026885986328125, -0.0168609619140625, -0.0087127685546875, 0.041778564453125, 0.005645751953125, 0.004062652587890625, 0.0030345916748046875, -0.05780029296875, 0.013336181640625, -0.03497314453125, 0.0173187255859375, 0.01396942138671875, -0.01168060302734375, -0.0275115966796875, 0.004791259765625, -0.0168304443359375, 0.0175628662109375, -0.041778564453125, 0.027740478515625, 0.00167083740234375, 0.00026416778564453125, -0.0028362274169921875, -0.0321044921875, 0.00786590576171875, -0.03521728515625, -0.0206451416015625, 0.0140380859375, 0.03900146484375, 0.013458251953125, -0.0300445556640625, -0.0247650146484375, -0.0079498291015625, -0.017120361328125, -0.00754547119140625, -0.00528717041015625, -0.035858154296875, 0.0297088623046875, 0.037933349609375, -0.01296234130859375, -0.014404296875, -0.006526947021484375, -0.00839996337890625, -0.052947998046875, 0.061798095703125, 0.008209228515625, 0.07281494140625, -0.0050506591796875, 0.01800537109375, 0.0032062530517578125, 0.0301513671875, -0.0770263671875, 0.0198822021484375, -0.0136260986328125, -0.01357269287109375, 0.01384735107421875, 0.0092620849609375, -0.006786346435546875, 0.0165863037109375, 0.004261016845703125, 0.009429931640625, -0.01184844970703125, 0.0233001708984375, -0.04986572265625, -0.00125885009765625, -0.0201416015625, 0.0203399658203125, 0.00787353515625, 0.0394287109375, 0.02374267578125, 0.01491546630859375, -0.02471923828125, -0.04339599609375, -0.009674072265625, 0.0487060546875, -0.0118560791015625, -0.05255126953125, -0.041015625, -0.04449462890625, -0.0285186767578125, -0.011505126953125, -0.037109375, 0.08935546875, 0.07037353515625, -0.018890380859375, 0.0033416748046875, -0.035858154296875, 0.012908935546875, 0.038360595703125, -0.1038818359375, -0.0034656524658203125, 0.066650390625, 0.049591064453125, -0.0223846435546875, -0.0027751922607421875, -0.0037441253662109375, -0.059722900390625, -0.01030731201171875, 0.056488037109375, 0.024200439453125, 0.0160675048828125, -0.00714874267578125, -0.006092071533203125, 0.018280029296875, 0.005992889404296875, 0.046875, -0.036773681640625, 0.006931304931640625, 0.02471923828125, -0.0077667236328125, 0.0192413330078125, 0.032135009765625, 0.012237548828125, -0.0005970001220703125, 0.0506591796875, -0.017669677734375, 0.0271759033203125, -0.021636962890625, 0.0018148422241210938, -0.005889892578125, -0.0104217529296875, -0.0027751922607421875, -0.03057861328125, 0.01508331298828125, 0.00894927978515625, 0.00780487060546875, 0.0192108154296875, -0.037261962890625, 0.00946807861328125, 0.003284454345703125, 0.0021305084228515625, -0.005352020263671875, 0.017242431640625, -0.0015420913696289062, 0.0030879974365234375, -0.034942626953125, 0.00482177734375, -0.004718780517578125, 0.0006532669067382812, -0.01459503173828125, 0.0272064208984375, 0.02423095703125, -0.0088043212890625, -0.0198974609375, -0.0269622802734375, 0.0243682861328125, 0.0015687942504882812, -0.0159454345703125, 0.0211334228515625, 0.020721435546875, 0.05316162109375, -0.01432037353515625, 0.032073974609375, 0.004253387451171875, 0.0113983154296875, 0.039947509765625, -0.05340576171875, 0.044921875, -0.0283966064453125, 0.04730224609375, 0.06378173828125, -0.017974853515625, 0.025054931640625, -0.01107025146484375, -0.00760650634765625, -0.00302886962890625, -0.01238250732421875, -0.029205322265625, -0.01560211181640625, -0.054351806640625, 0.01439666748046875, 0.005268096923828125, 0.0771484375, -0.031829833984375, -0.062286376953125, 0.0027561187744140625, 0.002613067626953125, -0.09295654296875, -0.10821533203125, 0.0006680488586425781, -0.062744140625, -0.003162384033203125, -0.0039005279541015625, -0.0273895263671875, -0.006168365478515625, 0.015960693359375, 0.00231170654296875, 0.0299835205078125, -0.0308837890625, -0.0955810546875, -0.02630615234375, -0.09063720703125, 0.0254364013671875, -0.013275146484375, 0.0223541259765625, -0.007076263427734375, -0.0008111000061035156, 0.007442474365234375, -0.000457763671875, 0.0181884765625, 0.05389404296875, -0.01300048828125, -0.037353515625, -0.019500732421875, -0.002483367919921875, -0.044281005859375, 0.01528167724609375, 0.0138702392578125, -0.00632476806640625, -0.0057220458984375, 0.0074920654296875, -0.00925445556640625, 0.0271148681640625, 0.044281005859375, -0.005615234375, -0.0009927749633789062, 0.07073974609375, 0.03985595703125, 0.0007796287536621094, -0.02978515625, -0.05743408203125, -0.08135986328125, -0.0025482177734375, 0.05633544921875, 0.0211334228515625, -0.023590087890625, -0.0189361572265625, 0.01134490966796875, 0.0094757080078125, 0.0005178451538085938, -0.016754150390625, 0.0222625732421875, 0.0214691162109375, 0.049591064453125, 0.0024013519287109375, 0.01180267333984375, -0.006748199462890625, -0.0013856887817382812, -0.00583648681640625, 0.00951385498046875, -0.0186767578125, 0.0159149169921875, -0.04144287109375, -0.054107666015625, 0.051300048828125, -0.03240966796875, -0.0009317398071289062, -0.03466796875, -0.04193115234375, 0.00972747802734375, 0.095458984375, 0.00600433349609375, -0.032684326171875, -0.0236663818359375, -0.00525665283203125, 0.01142120361328125, -0.03179931640625, 0.022918701171875, -0.011474609375, -0.050323486328125, -0.0260162353515625, -0.0220794677734375, -0.0229034423828125, -0.0212860107421875, 0.0479736328125, -0.0124664306640625, -0.007328033447265625, 0.003986358642578125, 0.058013916015625, -0.026031494140625, 0.03076171875, -0.0244903564453125, 0.03338623046875, -0.018707275390625, 0.0148468017578125, -0.063720703125, -0.024383544921875, 0.053375244140625, 0.037567138671875, -0.0218048095703125, -0.019744873046875, -0.0169525146484375, 0.046783447265625, -0.00582122802734375, 0.027587890625, 0.0007109642028808594, 0.0187530517578125, -0.020233154296875, -0.01224517822265625, 0.01287841796875, -0.045562744140625, -0.01190185546875, -0.0004534721374511719, -0.007335662841796875, 0.01018524169921875, -0.027984619140625, -0.01221466064453125, -0.01314544677734375, -0.0294952392578125, -0.0640869140625, -0.007740020751953125, 0.021636962890625, 0.0247344970703125, 0.010589599609375, -0.00942230224609375, -0.019134521484375, -0.0819091796875, 0.039794921875, 0.0129241943359375, -0.00229644775390625, -0.002155303955078125, 0.0509033203125, 0.00562286376953125, -0.032012939453125, -0.028564453125, 0.0165252685546875, 0.05950927734375, -0.060577392578125, 0.023284912109375, 0.035003662109375, -0.034515380859375, 0.045501708984375, -0.008941650390625, -0.01349639892578125, 0.006103515625, 0.01432037353515625, 0.004566192626953125, -0.0050048828125, -0.003681182861328125, -0.0107421875, 0.0211944580078125, 0.018218994140625, -0.01898193359375, -0.01898193359375, -0.0201568603515625, 0.06036376953125, -0.02032470703125, 0.06304931640625, -0.019927978515625, -0.0249786376953125, 0.011932373046875, -0.0003285408020019531, 0.03387451171875, 0.030242919921875, -0.00963592529296875, 0.02099609375, 0.002330780029296875, -0.0092315673828125, 0.0215911865234375, 0.00739288330078125, 0.01531219482421875, 0.0199432373046875, -0.006622314453125, -0.0281524658203125, -0.00041604042053222656, -0.0128326416015625, 0.071533203125, 0.0139617919921875, -0.026275634765625, 0.00194549560546875, -0.02667236328125, 0.000027060508728027344, 0.005489349365234375, 0.02838134765625, 0.0445556640625, 0.049957275390625, -0.00341033935546875, -0.00167083740234375, 0.005580902099609375, 0.039703369140625, -0.03399658203125, -0.0072479248046875, 0.0069427490234375, -0.004871368408203125, 0.0019502639770507812, 0.09161376953125, 0.004398345947265625, 0.050567626953125, -0.030517578125, 0.034912109375, 0.0241851806640625, 0.040771484375, 0.005794525146484375, -0.0155181884765625, -0.0010957717895507812, 0.02630615234375, 0.017425537109375, -0.0439453125, -0.0015974044799804688, 0.0287628173828125, 0.059234619140625, -0.003917694091796875, -0.0261383056640625, 0.00839996337890625, -0.040374755859375, -0.056060791015625, 0.052978515625, 0.04022216796875, -0.050750732421875, -0.0364990234375, 0.02947998046875, 0.009490966796875, 0.0284881591796875, 0.0063323974609375, 0.004241943359375, 0.01276397705078125, -0.0033054351806640625, -0.0184173583984375, -0.01837158203125, -0.0038928985595703125, 0.02691650390625, 0.00649261474609375, -0.0290985107421875, 0.0066070556640625, 0.0036983489990234375, 0.0156707763671875, -0.026611328125, -0.00824737548828125, 0.02374267578125, 0.000568389892578125, 0.07147216796875, -0.037353515625, -0.0286407470703125, 0.028778076171875, -0.01552581787109375, 0.061676025390625, 0.0240478515625, -0.07904052734375, 0.019378662109375, -0.0219573974609375, 0.0248565673828125, 0.0216827392578125, -0.0231170654296875, -0.045166015625, -0.03240966796875, 0.00247955322265625, 0.0207061767578125, 0.005756378173828125, 0.0091400146484375, 0.0013780593872070312, 0.01531982421875, -0.00843048095703125, 0.034393310546875, -0.0102996826171875, 0.055450439453125, 0.02764892578125, 0.043304443359375, 0.013946533203125, 0.01611328125, -0.047332763671875, -0.019500732421875, -0.00640106201171875, -0.0406494140625, -0.022918701171875, 0.0164947509765625, 0.008087158203125, 0.00518798828125, 0.006732940673828125, 0.004268646240234375, -0.0261688232421875, 0.0150146484375, 0.0204620361328125, -0.0203094482421875, -0.02362060546875, -0.00848388671875, -0.052337646484375, 0.00821685791015625, -0.0108795166015625, 0.0015811920166015625, 0.01568603515625, 0.035919189453125, -0.037628173828125, -0.01247406005859375, -0.038482666015625, 0.00902557373046875, -0.0281524658203125, 0.0290679931640625, 0.07708740234375, 0.04034423828125, 0.04364013671875, 0.030487060546875, 0.01971435546875, 0.0055084228515625, 0.00859832763671875, 0.06634521484375, 0.00972747802734375, 0.0841064453125, 0.0007910728454589844, 0.001346588134765625, 0.045745849609375, -0.04290771484375, -0.0234527587890625, 0.013916015625, 0.058349609375, -0.005268096923828125, -0.006511688232421875, 0.026885986328125, -0.00379180908203125, -0.0146331787109375, 0.029876708984375, -0.0074005126953125, -0.024810791015625, -0.000004470348358154297, -0.0362548828125, -0.00852203369140625, -0.0082550048828125, -0.00701904296875, 0.01129913330078125, -0.01514434814453125, 0.035491943359375, 0.01183319091796875, -0.02716064453125, -0.039215087890625, 0.0382080078125, 0.00421905517578125, -0.0240936279296875, -0.01308441162109375, -0.0008640289306640625, -0.01373291015625, -0.051025390625, -0.002758026123046875, -0.0219573974609375, 0.00598907470703125, 0.0269927978515625, 0.0197601318359375, 0.006702423095703125, 0.035888671875, -0.00943756103515625, 0.005123138427734375, -0.0004570484161376953, -0.0257415771484375, -0.02056884765625, -0.019500732421875, -0.0208587646484375, 0.006404876708984375, -0.01041412353515625, 0.021331787109375, -0.0174102783203125, -0.0172882080078125, -0.011260986328125, -0.02520751953125, 0.083740234375, -0.050384521484375, -0.01007080078125, 0.0166473388671875, 0.035491943359375, 0.007511138916015625, -0.0290679931640625, 0.0357666015625, -0.046661376953125, 0.0206451416015625, -0.0033473968505859375, 0.022430419921875, -0.0012369155883789062, -0.042266845703125, -0.06097412109375, 0.0791015625, -0.01369476318359375, 0.0195465087890625, 0.0193634033203125, 0.03955078125, -0.00905609130859375, 0.0168304443359375, -0.0335693359375, 0.056060791015625, -0.01377105712890625, 0.0182952880859375, -0.042388916015625, -0.01262664794921875, 0.0082244873046875, 0.03912353515625, 0.0738525390625, 0.006999969482421875, -0.034210205078125, -0.0262298583984375, 0.0281829833984375, 0.061065673828125, -0.003414154052734375, 0.01445770263671875, -0.01013946533203125, 0.062347412109375, 0.04388427734375, -0.0577392578125, 0.0287017822265625, 0.01100921630859375, -0.0316162109375, 0.018798828125, 0.046539306640625, 0.047760009765625, 0.036865234375, -0.03277587890625, -0.02215576171875, 0.0193328857421875, 0.032684326171875, -0.023956298828125, 0.00719451904296875, 0.022186279296875, 0.04266357421875, -0.0745849609375, -0.0233612060546875, -0.032135009765625, 0.053466796875, 0.023345947265625, 0.01629638671875, -0.0001494884490966797, 0.014984130859375, 0.01174163818359375, -0.003612518310546875, 0.00675201416015625, 0.023895263671875, -0.004726409912109375, 0.07708740234375, 0.039642333984375, 0.0133056640625, -0.048675537109375, -0.0355224609375, 0.09185791015625, 0.117919921875, -0.041961669921875, -0.020599365234375, 0.0236053466796875, 0.001712799072265625, -0.0128936767578125, -0.01258087158203125, 0.0129547119140625, -0.003528594970703125, 0.035186767578125, -0.010711669921875, -0.01885986328125, 0.023040771484375, 0.023712158203125, 0.0111083984375, -0.0220184326171875, -0.01473236083984375, 0.0005269050598144531, -0.039947509765625, 0.0195465087890625, -0.0021495819091796875, 0.03765869140625, 0.0144195556640625, 0.05181884765625, -0.0307159423828125, -0.01078033447265625, 0.04571533203125, 0.0117645263671875, -0.0222625732421875, -0.0362548828125, -0.0017747879028320312, -0.068359375, -0.013336181640625, 0.036163330078125, 0.0413818359375, -0.0047760009765625, 0.023590087890625, -0.0203399658203125, -0.040618896484375, 0.006649017333984375, -0.0026874542236328125, -0.0311737060546875, 0.012786865234375, -0.007694244384765625, 0.0191802978515625, 0.022430419921875, -0.019500732421875, -0.017669677734375, 0.03826904296875, 0.040008544921875, -0.05206298828125, 0.055938720703125, -0.00653076171875, 0.0032196044921875, 0.03765869140625, 0.0133819580078125, 0.00800323486328125, -0.02435302734375, -0.058929443359375, -0.01119232177734375, 0.00974273681640625, -0.0328369140625, 0.00002294778823852539, 0.0250091552734375, -0.0216827392578125, 0.004047393798828125, 0.002227783203125, -0.00736236572265625, 0.0341796875, -0.01175689697265625, 0.006389617919921875, 0.060638427734375, 0.0120086669921875, 0.0125274658203125, -0.041290283203125, -0.02166748046875, -0.0052490234375, 0.024078369140625, 0.038116455078125, -0.01708984375, 0.02081298828125, 0.03082275390625, -0.0538330078125, 0.040740966796875, -0.078369140625, -0.06524658203125, 0.07183837890625, -0.01184844970703125, -0.0020503997802734375, -0.00514984130859375, -0.0305938720703125, 0.044769287109375, 0.013275146484375, 0.0156402587890625, 0.03521728515625, -0.041290283203125, 0.00994110107421875, -0.0003676414489746094, 0.0283355712890625, -0.0238800048828125, -0.04840087890625, -0.0538330078125, -0.0160064697265625, 0.032318115234375, 0.05279541015625, 0.0229644775390625, 0.027496337890625, 0.0256500244140625, -0.0199737548828125, 0.018402099609375, -0.0226593017578125, 0.044769287109375, 0.044830322265625, -0.004970550537109375, -0.017303466796875, 0.003871917724609375, -0.007274627685546875, 0.002227783203125, 0.015869140625, 0.00553131103515625, -0.003963470458984375, -0.01375579833984375, 0.016845703125, 0.003536224365234375, 0.049896240234375, -0.007160186767578125, 0.0259857177734375, -0.003948211669921875, 0.00917816162109375, 0.0027065277099609375, -0.03216552734375, -0.01184844970703125, -0.061248779296875, -0.007518768310546875, 0.03009033203125, -0.051605224609375, 0.004009246826171875, -0.034454345703125, -0.01209259033203125, -0.0226593017578125, -0.0044708251953125, -0.0224609375, 0.02935791015625, -0.0010089874267578125, 0.005542755126953125, -0.0567626953125, -0.002063751220703125, -0.0049591064453125, 0.0284423828125, -0.0257110595703125, -0.01378631591796875, -0.043243408203125, 0.0017137527465820312, -0.0367431640625, 0.0288543701171875, 0.0278167724609375, -0.039398193359375, -0.0272979736328125, 0.011993408203125, 0.0305633544921875, 0.05743408203125, 0.042205810546875, -0.00811004638671875, 0.01177215576171875, 0.018402099609375, -0.032196044921875, -0.07537841796875, 0.0270538330078125, -0.057464599609375, -0.0160980224609375, -0.0099334716796875, 0.00305938720703125, 0.0262908935546875, -0.023040771484375, -0.0283660888671875, 0.07427978515625, -0.0162200927734375, -0.0147552490234375, -0.0411376953125, -0.00946044921875, 0.006137847900390625, 0.01177978515625, -0.0021572113037109375, -0.048797607421875, -0.047210693359375, 0.01427459716796875, 0.00498199462890625, 0.0038089752197265625, 0.0121612548828125, -0.002880096435546875, -0.035064697265625, 0.016326904296875, 0.01316070556640625, -0.019012451171875, 0.027099609375, -0.0150146484375, 0.039398193359375, 0.031829833984375, -0.058013916015625, 0.02374267578125, -0.0264892578125, 0.030609130859375, -0.01374053955078125, -0.058319091796875, -0.026153564453125, -0.0005207061767578125, 0.083740234375, 0.0306243896484375, 0.0163421630859375, -0.05145263671875, 0.0179290771484375, -0.006072998046875, -0.036956787109375, 0.000057756900787353516, 0.0186920166015625, -0.05169677734375, -0.0179290771484375, 0.0054779052734375, -0.01416778564453125, -0.006938934326171875, -0.0011453628540039062, -0.04656982421875, -0.015472412109375, -0.051788330078125, -0.0125732421875, -0.03826904296875, 0.02911376953125, 0.07208251953125, -0.056915283203125, -0.004390716552734375, 0.004055023193359375, -0.0013179779052734375, 0.024261474609375, -0.029449462890625, -0.00955963134765625, -0.00934600830078125, 0.0285491943359375, 0.0070343017578125, 0.0382080078125, 0.017791748046875, 0.0225372314453125, -0.013275146484375, -0.024749755859375, 0.014739990234375, 0.00923919677734375, -0.0006780624389648438, -0.01959228515625, -0.0184783935546875, -0.00673675537109375, 0.06427001953125, 0.00949859619140625, 0.0552978515625, 0.0066680908203125, 0.056427001953125, -0.01323699951171875, -0.020782470703125, 0.00811767578125, -0.05267333984375, 0.0018825531005859375, 0.01007080078125, -0.0127105712890625, -0.034698486328125, -0.0124664306640625, -0.0012884140014648438, 0.01056671142578125, 0.0173797607421875 ]
58e4074281b43e20d65cff62dda2e90ba2a40f28
Wordpress Stackexchange Q: WordPress Theme variables scope I need to create a variable that can be accessed throughout my WordPress Theme template files (index.php, header.php etc..). I know function definitions go inside the functions.php template file (in your theme path), but there's no such thing for variables. For example I constantly need to retrieve Categories in my Theme, so I would like to have this accessible from anywhere in my theme: $categories = get_categories(); /* get_categories() is a wordpress function */ This way I can simply access to allocated data, without having to re-allocate it every time I need to get my categories. Unfortunately adding that piece of code in my functions.php file, doesn't work, neither does making the variable global. A: Apparently global does the trick. The problem was that my variable $categories should have been redefined with a global in front of it, in each template I needed to use it.
Q: WordPress Theme variables scope I need to create a variable that can be accessed throughout my WordPress Theme template files (index.php, header.php etc..). I know function definitions go inside the functions.php template file (in your theme path), but there's no such thing for variables. For example I constantly need to retrieve Categories in my Theme, so I would like to have this accessible from anywhere in my theme: $categories = get_categories(); /* get_categories() is a wordpress function */ This way I can simply access to allocated data, without having to re-allocate it every time I need to get my categories. Unfortunately adding that piece of code in my functions.php file, doesn't work, neither does making the variable global. A: Apparently global does the trick. The problem was that my variable $categories should have been redefined with a global in front of it, in each template I needed to use it. A: Dominic (don't know how to add a note to his answer): define only accepts scalars, so you couldn't do define( CATS, get_categories() ); and not even $categories = get_categories(); define( CATS, $categories ); Otherwise define works fine, and it is in fact safer for scalars (as you can be sure the constants cannot be overwritten) A: I know this one is really old, but there is a room for improvement. You should consider using $GLOBALS['categories'] instead of just global. There are two reasons for this: * *We don't have to write global $categories; everytime. *It's crystal clear then we are using global and then not. Consider this code: global $categories; // a lot of PHP code here <?php print_r ($categories) ?> Only if we initialize global state right before using variable, it's pretty hard to tell, if it's global or not. And don't forget to repeat it in any of template files you have. It's possible to use naming conventions for that, but there is a better way, in my opinion. Consider using $GLOBALS['categories']. We only have to initialize our variable one time in functions.php without having to think about global $categories again. And we can see it's a global one. print_r ($GLOBALS['categories']); Performance issue is not a an issue at all in this situation. I'll quote Sara Golemon (link): What does that mean for your use of the $GLOBALS array? That's right, the global keyword is technically faster. Now, I want to be really clear about one thing here. The minor speed affordance given by using your globals as localized [compiled variables] needs to be seriously weighed against the maintainability of looking at your code in five years and knowing that $foo came from the global scope. something_using($GLOBALS['foo']); will ALWAYS be clearer to you down the line than global $foo; /* buncha code */ something_using($foo); Don't be penny-wise and pound foolish.. A: This also works: in functions.php add define('TEST', 'this is a test'); and in your header.php or whatever echo TEST; Is there any perfomance advantage to one method over another?
wordpress
{ "language": "en", "length": 494, "provenance": "stackexchange_00019.jsonl.gz:417286", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/42962" }
[ 0.00279998779296875, -0.0222320556640625, -0.029388427734375, -0.0645751953125, -0.01342010498046875, -0.005535125732421875, -0.035919189453125, 0.0215301513671875, 0.044403076171875, 0.0011873245239257812, -0.0665283203125, -0.005558013916015625, -0.0226898193359375, 0.0004794597625732422, -0.031768798828125, -0.043792724609375, 0.0386962890625, -0.046722412109375, 0.019256591796875, -0.00858306884765625, 0.00911712646484375, 0.0206146240234375, 0.037109375, 0.052703857421875, 0.0338134765625, -0.0237579345703125, 0.022186279296875, -0.037811279296875, 0.005092620849609375, -0.052154541015625, 0.0187530517578125, 0.03839111328125, -0.0024089813232421875, -0.000354766845703125, 0.024169921875, -0.0162353515625, -0.013427734375, 0.01386260986328125, 0.039520263671875, -0.0221099853515625, 0.017364501953125, -0.00011926889419555664, 0.032470703125, 0.0675048828125, -0.01450347900390625, -0.06396484375, 0.0249176025390625, -0.064453125, -0.006465911865234375, 0.033599853515625, 0.021942138671875, 0.03314208984375, 0.03387451171875, -0.001491546630859375, 0.0047607421875, -0.011077880859375, 0.01226043701171875, -0.0557861328125, 0.0340576171875, 0.0096282958984375, -0.035919189453125, -0.0330810546875, 0.03179931640625, -0.05279541015625, 0.0230712890625, -0.007598876953125, 0.0121917724609375, 0.04766845703125, -0.0261077880859375, 0.017425537109375, 0.028533935546875, -0.01554107666015625, -0.0103912353515625, -0.01293182373046875, 0.003589630126953125, -0.032257080078125, 0.03704833984375, -0.0286712646484375, -0.01605224609375, 0.03759765625, -0.0305938720703125, -0.05816650390625, -0.039398193359375, 0.0189666748046875, -0.01317596435546875, 0.059112548828125, -0.0159912109375, -0.004711151123046875, -0.03607177734375, -0.036102294921875, -0.0311279296875, 0.03594970703125, -0.04266357421875, -0.033233642578125, -0.0274810791015625, -0.01183319091796875, 0.0030803680419921875, 0.041168212890625, -0.026763916015625, 0.034210205078125, -0.0267486572265625, -0.0158538818359375, 0.011810302734375, -0.02447509765625, -0.01145172119140625, 0.05975341796875, 0.0003275871276855469, 0.035797119140625, 0.0036449432373046875, 0.034149169921875, 0.0264129638671875, -0.044830322265625, 0.012847900390625, -0.01015472412109375, -0.0252532958984375, 0.0239105224609375, -0.01462554931640625, -0.007312774658203125, -0.01131439208984375, 0.0186309814453125, 0.0173797607421875, 0.026763916015625, 0.0008254051208496094, 0.00653839111328125, -0.007598876953125, -0.0074920654296875, -0.018768310546875, -0.02105712890625, 0.0067138671875, 0.0272674560546875, -0.032867431640625, 0.01311492919921875, 0.01020050048828125, -0.02056884765625, -0.03826904296875, -0.018157958984375, 0.009307861328125, -0.0217437744140625, 0.0100860595703125, -0.0007996559143066406, 0.00852203369140625, -0.0184173583984375, -0.0030364990234375, -0.0190887451171875, -0.00678253173828125, -0.01039886474609375, 0.0271453857421875, 0.037628173828125, -0.022064208984375, -0.048370361328125, 0.032928466796875, -0.00011914968490600586, 0.034393310546875, 0.01329803466796875, -0.01123046875, 0.0256195068359375, 0.005863189697265625, 0.0022563934326171875, -0.046661376953125, 0.007129669189453125, 0.00682830810546875, -0.01904296875, -0.0016021728515625, -0.0203704833984375, -0.032928466796875, 0.005401611328125, -0.0223388671875, 0.004276275634765625, 0.018157958984375, 0.0242156982421875, 0.0171051025390625, -0.0178985595703125, -0.0025997161865234375, 0.01528167724609375, 0.012054443359375, 0.0185089111328125, -0.034393310546875, 0.00115966796875, 0.0216522216796875, -0.0081634521484375, -0.01450347900390625, -0.042266845703125, -0.004589080810546875, 0.00971221923828125, -0.048980712890625, 0.0004782676696777344, -0.00954437255859375, 0.016937255859375, 0.0450439453125, 0.005825042724609375, 0.01293182373046875, -0.007671356201171875, -0.039642333984375, 0.02734375, -0.0041656494140625, 0.0013875961303710938, 0.00444793701171875, 0.035247802734375, -0.0011568069458007812, -0.03460693359375, 0.023529052734375, -0.000278472900390625, 0.01224517822265625, -0.025360107421875, -0.003086090087890625, -0.018524169921875, 0.01421356201171875, 0.0161895751953125, -0.01202392578125, 0.0298004150390625, 0.01861572265625, 0.006000518798828125, -0.0032520294189453125, -0.0726318359375, -0.014617919921875, 0.030914306640625, 0.00771331787109375, 0.0714111328125, 0.0192108154296875, 0.04180908203125, 0.03192138671875, -0.033599853515625, 0.0283203125, 0.0241546630859375, 0.0144195556640625, 0.03399658203125, -0.045989990234375, 0.007122039794921875, -0.036102294921875, 0.04254150390625, -0.058074951171875, 0.013397216796875, -0.022186279296875, 0.0421142578125, 0.017181396484375, -0.004261016845703125, 0.0101165771484375, -0.06829833984375, 0.0176849365234375, 0.016082763671875, 0.034515380859375, 0.0362548828125, -0.036041259765625, -0.043426513671875, 0.04718017578125, -0.0562744140625, -0.01316070556640625, -0.026336669921875, 0.030181884765625, 0.0635986328125, 0.0037250518798828125, 0.00107574462890625, 0.0071258544921875, -0.045135498046875, -0.01198577880859375, 0.03570556640625, 0.010528564453125, -0.00787353515625, 0.0007328987121582031, 0.0070953369140625, -0.00640106201171875, -0.01097869873046875, -0.026397705078125, 0.00330352783203125, 0.039154052734375, -0.009246826171875, 0.0215911865234375, -0.0016984939575195312, -0.017669677734375, -0.0008296966552734375, 0.020843505859375, -0.02447509765625, -0.0004963874816894531, 0.00766754150390625, -0.025848388671875, -0.006954193115234375, 0.004215240478515625, 0.01007843017578125, -0.0335693359375, -0.01476287841796875, -0.02154541015625, 0.037139892578125, -0.041900634765625, -0.01183319091796875, -0.015167236328125, -0.03973388671875, 0.00040912628173828125, 0.0006518363952636719, 0.03729248046875, 0.025665283203125, 0.036773681640625, 0.0257415771484375, -0.0298309326171875, 0.07275390625, -0.045135498046875, -0.00833892822265625, 0.04071044921875, -0.0112152099609375, 0.00628662109375, -0.01468658447265625, 0.027374267578125, 0.04144287109375, -0.006923675537109375, -0.002193450927734375, -0.00939178466796875, 0.01155853271484375, 0.018157958984375, -0.0018568038940429688, 0.0033245086669921875, -0.026824951171875, 0.01361083984375, 0.031707763671875, 0.01031494140625, 0.00887298583984375, 0.0111541748046875, -0.027313232421875, 0.0010356903076171875, 0.0015354156494140625, -0.071044921875, -0.0633544921875, 0.043609619140625, -0.041015625, 0.028472900390625, -0.03680419921875, -0.021575927734375, -0.037384033203125, -0.022369384765625, 0.00804901123046875, 0.039794921875, -0.03656005859375, -0.057861328125, -0.053985595703125, -0.0972900390625, -0.0416259765625, -0.002216339111328125, 0.007144927978515625, -0.0011949539184570312, 0.0771484375, -0.0005888938903808594, -0.04541015625, -0.023223876953125, -0.01316070556640625, 0.00042939186096191406, -0.00994873046875, 0.0161285400390625, -0.034820556640625, 0.0098876953125, 0.0020542144775390625, 0.0276031494140625, 0.01430511474609375, -0.01186370849609375, -0.0094146728515625, 0.004638671875, 0.027496337890625, 0.0136566162109375, 0.0587158203125, -0.002544403076171875, 0.0053863525390625, 0.013214111328125, -0.035125732421875, -0.0303955078125, 0.0117950439453125, -0.036773681640625, 0.029815673828125, 0.044403076171875, -0.040863037109375, 0.00283050537109375, 0.0031833648681640625, -0.0175628662109375, 0.0010089874267578125, -0.0484619140625, -0.03900146484375, 0.06396484375, 0.013336181640625, 0.0250396728515625, 0.040802001953125, -0.0061187744140625, -0.0318603515625, 0.01495361328125, -0.0209503173828125, 0.004150390625, -0.018310546875, 0.051055908203125, -0.0258941650390625, -0.010772705078125, 0.0361328125, 0.0261688232421875, 0.011505126953125, -0.004703521728515625, -0.02740478515625, -0.0025005340576171875, 0.0439453125, -0.0121307373046875, 0.0036487579345703125, 0.0274505615234375, 0.01396942138671875, -0.062347412109375, -0.02410888671875, -0.07916259765625, -0.0107879638671875, -0.032470703125, 0.019317626953125, 0.00540924072265625, 0.0029163360595703125, -0.03741455078125, 0.09075927734375, -0.031341552734375, -0.0169830322265625, 0.03131103515625, -0.038604736328125, 0.0299072265625, -0.0221710205078125, 0.00939178466796875, -0.039642333984375, -0.001850128173828125, -0.034759521484375, -0.0025787353515625, -0.004535675048828125, -0.007843017578125, 0.0247344970703125, 0.025115966796875, -0.01473236083984375, 0.015045166015625, 0.03131103515625, -0.006809234619140625, -0.014556884765625, 0.01155853271484375, 0.011993408203125, 0.008453369140625, 0.00040078163146972656, -0.004425048828125, -0.0084381103515625, -0.022064208984375, -0.0362548828125, -0.028594970703125, -0.008148193359375, -0.01367950439453125, -0.00864410400390625, -0.003570556640625, -0.01007843017578125, -0.03363037109375, 0.009674072265625, 0.028076171875, 0.00783538818359375, 0.0030345916748046875, 0.00545501708984375, 0.0146331787109375, -0.0287017822265625, 0.06744384765625, 0.0457763671875, -0.016937255859375, -0.005550384521484375, 0.0706787109375, 0.0189666748046875, -0.055206298828125, -0.035888671875, 0.00940704345703125, 0.0699462890625, -0.0091705322265625, 0.0277557373046875, 0.01070404052734375, -0.061309814453125, 0.07452392578125, 0.036163330078125, 0.0003044605255126953, -0.0184783935546875, 0.040435791015625, -0.0031871795654296875, -0.0283966064453125, -0.00014531612396240234, -0.009521484375, 0.036773681640625, 0.031646728515625, -0.008392333984375, -0.034881591796875, 0.0025577545166015625, 0.048553466796875, -0.02886962890625, 0.04559326171875, -0.02777099609375, 0.00553131103515625, -0.007213592529296875, -0.0225982666015625, 0.04144287109375, 0.03277587890625, 0.007152557373046875, 0.01218414306640625, 0.036529541015625, -0.00201416015625, 0.01413726806640625, 0.014007568359375, -0.0250244140625, 0.007602691650390625, 0.033782958984375, -0.02252197265625, 0.0031833648681640625, -0.01081085205078125, -0.005218505859375, -0.0023345947265625, -0.033233642578125, -0.0055694580078125, 0.0161895751953125, 0.01381683349609375, 0.00670623779296875, -0.0572509765625, 0.0303192138671875, -0.00032401084899902344, -0.000518798828125, 0.0311431884765625, -0.050048828125, -0.032440185546875, -0.0098876953125, 0.036468505859375, 0.00926971435546875, -0.00609588623046875, 0.0030670166015625, 0.06732177734375, -0.005176544189453125, 0.0291748046875, -0.0162811279296875, -0.006317138671875, 0.0065765380859375, -0.00919342041015625, 0.0281219482421875, 0.0018529891967773438, 0.003383636474609375, -0.041168212890625, 0.01702880859375, -0.02423095703125, 0.0075225830078125, 0.0164947509765625, 0.020965576171875, -0.0164337158203125, -0.030487060546875, 0.031280517578125, -0.01285552978515625, 0.005062103271484375, 0.0185699462890625, -0.01971435546875, -0.044952392578125, -0.01459503173828125, -0.010162353515625, 0.023193359375, -0.0279083251953125, -0.016632080078125, -0.0128326416015625, -0.0276336669921875, 0.0214691162109375, 0.033172607421875, 0.0031642913818359375, 0.006282806396484375, -0.0161590576171875, -0.06494140625, 0.0126190185546875, 0.0284576416015625, -0.07562255859375, -0.0679931640625, 0.00201416015625, -0.03692626953125, 0.045562744140625, 0.00872039794921875, 0.0187530517578125, -0.03692626953125, -0.024261474609375, 0.0297088623046875, -0.0262603759765625, 0.11383056640625, 0.053314208984375, -0.0926513671875, 0.004650115966796875, -0.038726806640625, -0.005443572998046875, -0.043548583984375, -0.05157470703125, -0.058685302734375, 0.0107269287109375, -0.01221466064453125, 0.0195159912109375, 0.0007214546203613281, 0.01122283935546875, -0.005168914794921875, 0.01297760009765625, -0.00907135009765625, 0.0242767333984375, 0.005489349365234375, -0.01178741455078125, 0.0220184326171875, 0.004291534423828125, 0.01020050048828125, -0.0237884521484375, -0.0272216796875, -0.0192718505859375, 0.00917816162109375, -0.016632080078125, -0.0158538818359375, -0.02362060546875, -0.0184783935546875, 0.01514434814453125, 0.0811767578125, -0.0014276504516601562, 0.02313232421875, -0.02508544921875, -0.00513458251953125, -0.01201629638671875, -0.00043272972106933594, -0.0124359130859375, -0.0247039794921875, 0.05389404296875, 0.0010557174682617188, -0.0028667449951171875, -0.02899169921875, -0.048919677734375, 0.0660400390625, -0.005176544189453125, 0.05511474609375, -0.005126953125, -0.0738525390625, 0.08087158203125, 0.09173583984375, 0.01373291015625, 0.045196533203125, 0.0024929046630859375, 0.01702880859375, -0.0049285888671875, 0.05615234375, -0.00933074951171875, -0.036102294921875, 0.036590576171875, 0.00807952880859375, -0.036376953125, -0.01036834716796875, -0.045654296875, -0.022613525390625, 0.064453125, 0.055755615234375, -0.04913330078125, -0.0266876220703125, 0.017608642578125, -0.0168304443359375, -0.04229736328125, 0.0170440673828125, -0.021636962890625, -0.026214599609375, 0.0046234130859375, -0.0236358642578125, -0.0098419189453125, 0.00653839111328125, 0.0030269622802734375, 0.0105133056640625, -0.01238250732421875, 0.053497314453125, 0.012664794921875, -0.05584716796875, 0.0279388427734375, 0.0418701171875, 0.0190277099609375, -0.010101318359375, 0.0145416259765625, 0.0213165283203125, -0.0099029541015625, -0.034698486328125, 0.04534912109375, 0.0128021240234375, -0.00948333740234375, -0.007228851318359375, -0.0030574798583984375, -0.01090240478515625, 0.0181732177734375, -0.01354217529296875, 0.00347137451171875, -0.0028247833251953125, -0.02996826171875, 0.039764404296875, -0.00860595703125, 0.027252197265625, 0.0333251953125, -0.044952392578125, 0.0062103271484375, -0.0047454833984375, 0.0003571510314941406, -0.017852783203125, 0.0108795166015625, 0.07037353515625, -0.00843048095703125, -0.032745361328125, 0.048828125, 0.01259613037109375, -0.03704833984375, 0.0239715576171875, 0.040191650390625, -0.00566864013671875, -0.00334930419921875, 0.03692626953125, 0.0020122528076171875, -0.014984130859375, 0.032440185546875, -0.0621337890625, 0.059722900390625, -0.00670623779296875, 0.05303955078125, 0.0443115234375, -0.0040130615234375, -0.0259246826171875, -0.006694793701171875, -0.0389404296875, 0.058013916015625, 0.05029296875, 0.047882080078125, -0.0548095703125, -0.03912353515625, 0.006694793701171875, 0.085693359375, 0.0726318359375, 0.006504058837890625, 0.044891357421875, 0.005962371826171875, 0.059539794921875, 0.024444580078125, -0.043609619140625, -0.0075531005859375, 0.0179290771484375, -0.024169921875, 0.01445770263671875, 0.00862884521484375, 0.0308990478515625, -0.05419921875, 0.005878448486328125, 0.029693603515625, 0.0045928955078125, -0.01476287841796875, 0.007617950439453125, -0.01617431640625, -0.0648193359375, 0.01337432861328125, 0.01323699951171875, 0.035919189453125, 0.0107269287109375, 0.0401611328125, 0.0128631591796875, -0.00978851318359375, -0.0260467529296875, -0.01348876953125, 0.03887939453125, -0.014892578125, -0.0030517578125, 0.0175323486328125, 0.0012054443359375, 0.040069580078125, -0.01427459716796875, -0.01483154296875, 0.006931304931640625, 0.01324462890625, 0.049163818359375, 0.02947998046875, 0.0450439453125, -0.035675048828125, -0.01776123046875, 0.035003662109375, 0.0557861328125, -0.0284423828125, -0.0225830078125, -0.005222320556640625, 0.007785797119140625, 0.027191162109375, -0.0078582763671875, 0.043182373046875, 0.07135009765625, 0.07373046875, -0.03826904296875, 0.00766754150390625, 0.038726806640625, 0.021026611328125, 0.0019855499267578125, 0.0105133056640625, -0.052642822265625, -0.007183074951171875, -0.0670166015625, 0.004062652587890625, 0.0015726089477539062, 0.06927490234375, 0.03564453125, 0.059906005859375, 0.00679779052734375, -0.037200927734375, -0.01061248779296875, 0.041778564453125, 0.004932403564453125, 0.010894775390625, -0.02801513671875, -0.020111083984375, 0.013885498046875, 0.026092529296875, -0.01038360595703125, -0.01001739501953125, 0.0421142578125, 0.054168701171875, -0.01873779296875, -0.0382080078125, -0.0113525390625, -0.01395416259765625, 0.0196685791015625, -0.027740478515625, -0.005950927734375, -0.01715087890625, -0.0345458984375, -0.0258026123046875, 0.01288604736328125, 0.0107269287109375, 0.01861572265625, 0.007465362548828125, 0.00727081298828125, -0.0457763671875, 0.015533447265625, -0.038055419921875, 0.07427978515625, 0.02276611328125, -0.0355224609375, -0.006038665771484375, -0.041839599609375, -0.07025146484375, 0.043609619140625, 0.052764892578125, -0.01126861572265625, -0.013519287109375, 0.006381988525390625, -0.020172119140625, 0.0224761962890625, 0.0003795623779296875, 0.0022258758544921875, -0.021148681640625, 0.00856781005859375, -0.01092529296875, -0.032623291015625, -0.031951904296875, -0.006961822509765625, 0.042572021484375, 0.051361083984375, 0.00461578369140625, 0.0194091796875, 0.035491943359375, 0.0002892017364501953, 0.050994873046875, -0.050628662109375, -0.00838470458984375, 0.02520751953125, 0.0238037109375, 0.02178955078125, -0.021759033203125, -0.024810791015625, 0.022064208984375, 0.0289154052734375, -0.0494384765625, 0.01140594482421875, 0.00530242919921875, 0.002872467041015625, -0.0201416015625, 0.0233612060546875, 0.00896453857421875, -0.0308837890625, -0.0222320556640625, 0.0010290145874023438, 0.04327392578125, 0.0963134765625, 0.00738525390625, -0.00455474853515625, -0.0194854736328125, 0.0006170272827148438, 0.01155853271484375, 0.0386962890625, -0.038726806640625, 0.01056671142578125, -0.0306243896484375, -0.0282135009765625, -0.016265869140625, -0.03521728515625, 0.0016050338745117188, -0.005168914794921875, 0.0266265869140625, -0.024078369140625, -0.0182342529296875, -0.005153656005859375, 0.029876708984375, 0.027862548828125, -0.0206451416015625, 0.0007004737854003906, 0.036224365234375, -0.0208282470703125, -0.018798828125, -0.04742431640625, -0.035125732421875, -0.0226898193359375, -0.01227569580078125, 0.0264892578125, -0.0118560791015625, -0.040985107421875, -0.050262451171875, 0.01148223876953125, 0.05615234375, 0.00518035888671875, -0.0285797119140625, -0.0038852691650390625, -0.02923583984375, 0.059783935546875, 0.0089874267578125, -0.03265380859375, 0.0232086181640625, 0.038421630859375, -0.0269775390625, 0.0210723876953125, -0.022674560546875, -0.037139892578125, 0.0094146728515625, 0.044525146484375, 0.04296875, -0.029510498046875, 0.0244140625, 0.080810546875, 0.0176239013671875, 0.125, -0.0253143310546875, -0.01580810546875, 0.020660400390625, 0.008880615234375, -0.034332275390625, -0.037139892578125, 0.0079498291015625, 0.004985809326171875, 0.0196685791015625, 0.0057220458984375, -0.022125244140625, 0.011199951171875, -0.052001953125, -0.114501953125, 0.02484130859375, -0.017333984375, -0.058074951171875, -0.056182861328125, -0.0082550048828125, -0.0104217529296875, 0.03497314453125, -0.010406494140625, -0.0256500244140625, -0.031463623046875, 0.037139892578125, 0.048370361328125, -0.040069580078125, 0.06707763671875, 0.03338623046875, -0.08642578125, 0.0063934326171875, -0.027008056640625, 0.0218048095703125, -0.03570556640625, 0.0181121826171875, -0.0169677734375, 0.0264129638671875, -0.014068603515625, -0.06488037109375, -0.0008535385131835938, -0.011260986328125, -0.00972747802734375, -0.006816864013671875, -0.0301971435546875, -0.02880859375, 0.05767822265625, 0.02899169921875, 0.0203399658203125, -0.0014982223510742188, -0.032684326171875, -0.00771331787109375, -0.08770751953125, -0.0282440185546875, 0.050445556640625, -0.08978271484375, 0.0036220550537109375, -0.00004166364669799805, 0.00637054443359375, 0.022552490234375, -0.04681396484375, -0.0255126953125, 0.0020751953125, -0.01788330078125, 0.017364501953125, -0.0233612060546875, -0.03741455078125, 0.001918792724609375, -0.0099945068359375, -0.023101806640625, 0.00589752197265625, 0.02459716796875, -0.01605224609375, 0.035858154296875, -0.0167388916015625, 0.030487060546875, -0.06390380859375, -0.005626678466796875, -0.0129241943359375, 0.0496826171875, -0.023406982421875, -0.006481170654296875, -0.01203155517578125, 0.0269775390625, -0.01003265380859375, 0.024993896484375, -0.021575927734375, 0.08880615234375, 0.0232696533203125, 0.080322265625, -0.017608642578125, 0.0113525390625, -0.0190887451171875, 0.044708251953125, -0.03216552734375, 0.0020923614501953125, -0.0186309814453125, -0.0139007568359375, -0.00574493408203125, 0.0164794921875, -0.01404571533203125, -0.03131103515625, 0.0228271484375, -0.0193634033203125, 0.0078582763671875, 0.015960693359375 ]
f39bee9ad696fc246365fd35eeffd53448bc09b5
Wordpress Stackexchange Q: Use of caller_ get_ posts For what purpose following parameter is used caller_get_posts A: Notice: caller_get_posts is deprecated since version 3.1! Use ignore_sticky_posts instead.
Q: Use of caller_ get_ posts For what purpose following parameter is used caller_get_posts A: Notice: caller_get_posts is deprecated since version 3.1! Use ignore_sticky_posts instead. A: If caller_ get_ posts is set to true (or 1) then Sticky posts will be excluded from being returned first. Its kind of a way to turn sticky posts off in a query.
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:417303", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43024" }
[ 0.07830810546875, -0.002445220947265625, 0.00005817413330078125, -0.0771484375, 0.026275634765625, -0.011871337890625, 0.034423828125, 0.01012420654296875, 0.033843994140625, 0.00650787353515625, -0.046630859375, -0.0204620361328125, -0.0246124267578125, -0.004817962646484375, -0.0318603515625, -0.0316162109375, 0.06134033203125, -0.0457763671875, 0.007717132568359375, -0.013275146484375, 0.033355712890625, 0.006870269775390625, 0.022125244140625, 0.104736328125, 0.01509857177734375, -0.039093017578125, 0.0157470703125, 0.0010900497436523438, -0.0133209228515625, -0.0306396484375, 0.0174102783203125, 0.0214385986328125, 0.00009834766387939453, 0.07586669921875, -0.0504150390625, 0.0384521484375, -0.018890380859375, 0.05926513671875, 0.0234832763671875, -0.0055389404296875, 0.0035419464111328125, 0.01386260986328125, -0.0290069580078125, -0.00698089599609375, -0.05902099609375, 0.0000349879264831543, -0.0159912109375, 0.0215301513671875, 0.01055145263671875, 0.0187835693359375, 0.0312347412109375, -0.0009264945983886719, 0.034454345703125, 0.031524658203125, -0.016387939453125, 0.00646209716796875, 0.01422119140625, 0.0112152099609375, 0.031524658203125, -0.031280517578125, -0.0216217041015625, -0.0076904296875, 0.0233917236328125, 0.005374908447265625, 0.037322998046875, 0.019439697265625, 0.06829833984375, 0.0091552734375, -0.06939697265625, 0.0306243896484375, 0.0638427734375, -0.05084228515625, -0.0011615753173828125, -0.01348114013671875, -0.03466796875, -0.0213165283203125, 0.025634765625, -0.0308074951171875, -0.0062713623046875, 0.0118865966796875, -0.05865478515625, -0.05218505859375, -0.0330810546875, -0.047882080078125, 0.023468017578125, -0.0011529922485351562, -0.0211181640625, 0.01690673828125, -0.02734375, -0.0199737548828125, -0.01258087158203125, -0.04083251953125, -0.050689697265625, 0.038299560546875, 0.009002685546875, -0.0282440185546875, 0.03662109375, 0.0226593017578125, 0.003292083740234375, -0.03997802734375, -0.00508880615234375, -0.0269775390625, -0.07177734375, 0.0180816650390625, 0.0166015625, 0.0321044921875, -0.0428466796875, -0.00624847412109375, 0.047821044921875, 0.04400634765625, 0.01306915283203125, 0.0135498046875, 0.0098419189453125, -0.0311737060546875, 0.0017023086547851562, 0.0001062154769897461, -0.037567138671875, 0.05206298828125, 0.01181793212890625, 0.0215606689453125, 0.0235748291015625, 0.043426513671875, -0.03375244140625, -0.01548004150390625, 0.004375457763671875, -0.0108184814453125, -0.020294189453125, -0.0006985664367675781, 0.03759765625, 0.04541015625, -0.0137939453125, 0.003978729248046875, -0.024658203125, -0.03564453125, -0.049530029296875, -0.027496337890625, -0.00601959228515625, -0.0430908203125, 0.003658294677734375, 0.031829833984375, -0.02227783203125, -0.0782470703125, -0.01059722900390625, 0.021331787109375, 0.004329681396484375, -0.00939178466796875, 0.0101318359375, 0.0250396728515625, 0.00936126708984375, -0.0153045654296875, -0.0191650390625, 0.019195556640625, -0.01085662841796875, 0.0269622802734375, 0.0721435546875, 0.032135009765625, 0.0694580078125, -0.0195770263671875, -0.0220947265625, -0.002712249755859375, 0.0162506103515625, 0.0013170242309570312, 0.00476837158203125, -0.03350830078125, -0.0697021484375, -0.009674072265625, -0.006313323974609375, -0.01261138916015625, 0.01163482666015625, 0.03662109375, 0.049652099609375, -0.02484130859375, -0.0423583984375, 0.01404571533203125, 0.010711669921875, -0.006084442138671875, -0.0272216796875, 0.041229248046875, 0.04400634765625, -0.05517578125, -0.055633544921875, -0.040435791015625, 0.059600830078125, -0.0217437744140625, -0.04241943359375, 0.0274810791015625, 0.0239105224609375, 0.042938232421875, -0.0010004043579101562, -0.003284454345703125, 0.05645751953125, 0.0239715576171875, -0.0170440673828125, 0.04876708984375, 0.0014905929565429688, -0.0270233154296875, -0.057861328125, -0.017669677734375, -0.030792236328125, -0.0030918121337890625, -0.018463134765625, 0.00811767578125, -0.00870513916015625, 0.020172119140625, -0.06121826171875, 0.0231475830078125, -0.03765869140625, 0.04400634765625, 0.048309326171875, 0.0220184326171875, 0.0030498504638671875, 0.0009098052978515625, -0.042724609375, 0.061431884765625, -0.0214385986328125, 0.03802490234375, -0.0300140380859375, 0.0080413818359375, -0.0133209228515625, 0.02496337890625, -0.001552581787109375, -0.025390625, -0.0185089111328125, -0.00397491455078125, 0.039398193359375, -0.0254058837890625, 0.0135345458984375, -0.027740478515625, 0.0218505859375, 0.01358795166015625, -0.048797607421875, 0.01410675048828125, 0.031036376953125, 0.050201416015625, 0.0022830963134765625, 0.01580810546875, 0.027069091796875, 0.01331329345703125, -0.00542449951171875, 0.0054931640625, 0.0214691162109375, 0.040618896484375, -0.00800323486328125, -0.01218414306640625, 0.06927490234375, -0.0064849853515625, 0.0104217529296875, -0.01503753662109375, 0.01371002197265625, 0.05047607421875, 0.021392822265625, 0.00926971435546875, 0.004421234130859375, 0.042938232421875, 0.005420684814453125, 0.0084075927734375, -0.0007696151733398438, 0.0014295578002929688, -0.02142333984375, 0.0238494873046875, -0.0109710693359375, -0.0056915283203125, 0.00356292724609375, -0.006183624267578125, 0.01511383056640625, 0.0111083984375, 0.041168212890625, 0.0399169921875, -0.0048828125, -0.0038623809814453125, 0.005924224853515625, 0.01273345947265625, 0.0005364418029785156, 0.07879638671875, 0.03460693359375, -0.0010833740234375, -0.0190887451171875, -0.042572021484375, 0.01512908935546875, 0.041595458984375, -0.006877899169921875, 0.041656494140625, 0.044921875, -0.01558685302734375, -0.0335693359375, -0.021575927734375, 0.0338134765625, -0.008056640625, 0.044677734375, 0.0004401206970214844, 0.0162353515625, 0.0163421630859375, -0.002716064453125, 0.03900146484375, 0.05340576171875, -0.04150390625, -0.0760498046875, -0.0269317626953125, 0.034912109375, -0.02294921875, -0.0640869140625, 0.061767578125, 0.037811279296875, -0.01111602783203125, 0.0191802978515625, 0.01416015625, 0.0182952880859375, 0.0271759033203125, 0.019744873046875, 0.014068603515625, -0.061920166015625, -0.0267791748046875, 0.0234527587890625, 0.06878662109375, -0.0277099609375, -0.052398681640625, -0.005550384521484375, 0.04705810546875, -0.0643310546875, -0.0208740234375, 0.0293121337890625, -0.07086181640625, 0.007106781005859375, -0.0489501953125, -0.044036865234375, -0.0014553070068359375, -0.04205322265625, 0.0064544677734375, -0.005184173583984375, 0.0197601318359375, -0.034515380859375, -0.031463623046875, -0.042388916015625, 0.014251708984375, -0.023651123046875, 0.0198211669921875, -0.00688934326171875, 0.083251953125, -0.00022542476654052734, -0.047119140625, -0.0089111328125, 0.005878448486328125, -0.02508544921875, -0.002040863037109375, -0.03436279296875, 0.057891845703125, 0.0102386474609375, 0.007106781005859375, 0.0160675048828125, 0.00209808349609375, -0.0127410888671875, -0.0328369140625, -0.0099029541015625, -0.0169830322265625, 0.0088043212890625, 0.0217437744140625, 0.0126495361328125, 0.0010118484497070312, 0.0374755859375, -0.0258941650390625, 0.0233306884765625, 0.01446533203125, 0.0025539398193359375, -0.061248779296875, -0.01506805419921875, -0.0236968994140625, -0.0190582275390625, -0.008514404296875, 0.024200439453125, 0.0244293212890625, -0.006534576416015625, -0.009002685546875, 0.052032470703125, 0.01012420654296875, 0.03277587890625, -0.031890869140625, -0.032562255859375, -0.034942626953125, 0.02459716796875, -0.009979248046875, -0.001155853271484375, 0.0004684925079345703, 0.002521514892578125, 0.013031005859375, -0.0246429443359375, 0.030517578125, -0.01422882080078125, -0.0222015380859375, 0.00833892822265625, -0.0113983154296875, 0.01178741455078125, 0.04229736328125, -0.0191497802734375, -0.0174713134765625, -0.01678466796875, 0.0077362060546875, -0.0242919921875, -0.05438232421875, -0.00762939453125, -0.0142364501953125, 0.00704193115234375, -0.0096588134765625, -0.01331329345703125, 0.016571044921875, -0.0325927734375, 0.058197021484375, 0.00788116455078125, -0.01439666748046875, 0.02850341796875, -0.0311279296875, 0.02227783203125, 0.005275726318359375, 0.02288818359375, -0.007144927978515625, -0.006328582763671875, -0.031158447265625, -0.055328369140625, -0.024169921875, 0.006439208984375, 0.05755615234375, 0.030548095703125, -0.060943603515625, 0.00447845458984375, 0.048736572265625, 0.00986480712890625, -0.0011415481567382812, -0.005603790283203125, -0.01096343994140625, -0.01947021484375, 0.017669677734375, 0.0015401840209960938, -0.002445220947265625, -0.039581298828125, -0.0628662109375, -0.0176849365234375, -0.03265380859375, -0.0032444000244140625, -0.0011034011840820312, 0.009796142578125, 0.004852294921875, -0.0672607421875, -0.0307464599609375, -0.01690673828125, 0.0390625, -0.0129547119140625, 0.002590179443359375, -0.0699462890625, -0.06427001953125, 0.0263824462890625, 0.0182647705078125, -0.0204620361328125, -0.0025157928466796875, 0.06524658203125, 0.03155517578125, -0.01227569580078125, -0.0167999267578125, -0.00611114501953125, 0.031463623046875, -0.05145263671875, 0.061187744140625, 0.02880859375, -0.032318115234375, 0.09564208984375, -0.0269012451171875, 0.0309600830078125, -0.01056671142578125, -0.01114654541015625, -0.033203125, -0.044830322265625, 0.036376953125, -0.036712646484375, 0.006855010986328125, 0.081298828125, -0.01372528076171875, -0.029815673828125, -0.0160064697265625, 0.08050537109375, -0.046783447265625, 0.0350341796875, -0.044464111328125, -0.073486328125, 0.02911376953125, -0.0028667449951171875, -0.0183868408203125, 0.00373077392578125, 0.0052337646484375, 0.03167724609375, -0.0035266876220703125, 0.0165863037109375, 0.0175628662109375, 0.05255126953125, -0.01424407958984375, 0.040069580078125, 0.014190673828125, -0.01549530029296875, -0.0306396484375, -0.01099395751953125, 0.011383056640625, -0.00478363037109375, -0.042938232421875, 0.0238494873046875, -0.0189208984375, -0.00710296630859375, -0.00348663330078125, -0.026397705078125, 0.01806640625, 0.033782958984375, -0.001495361328125, 0.027618408203125, 0.0287933349609375, -0.03265380859375, -0.004367828369140625, 0.022552490234375, -0.015838623046875, 0.02154541015625, 0.049407958984375, 0.0374755859375, -0.0149688720703125, 0.056121826171875, -0.026641845703125, -0.006221771240234375, 0.00893402099609375, 0.01678466796875, 0.004817962646484375, 0.0081787109375, 0.031951904296875, -0.0172882080078125, 0.04266357421875, -0.008758544921875, -0.011077880859375, 0.034149169921875, 0.0268096923828125, 0.01129150390625, 0.024017333984375, -0.0199737548828125, -0.01422119140625, -0.013824462890625, 0.0017566680908203125, -0.00296783447265625, -0.045745849609375, 0.01114654541015625, 0.03277587890625, -0.003360748291015625, -0.0218505859375, 0.000044286251068115234, -0.0005655288696289062, -0.004810333251953125, 0.0194549560546875, -0.060455322265625, -0.022369384765625, 0.00445556640625, 0.02874755859375, 0.0218658447265625, -0.04071044921875, -0.013885498046875, -0.0127105712890625, 0.0035686492919921875, -0.018829345703125, -0.0018835067749023438, 0.0306854248046875, 0.0168304443359375, 0.056396484375, -0.0211639404296875, -0.053070068359375, 0.022918701171875, -0.0009589195251464844, 0.04595947265625, 0.0018072128295898438, -0.0161590576171875, -0.01509857177734375, -0.044891357421875, -0.03570556640625, -0.0570068359375, -0.0274810791015625, -0.0479736328125, 0.01922607421875, 0.0265655517578125, 0.0203399658203125, 0.00951385498046875, -0.0216522216796875, -0.05169677734375, 0.022857666015625, 0.0335693359375, 0.049957275390625, 0.0288848876953125, 0.0122833251953125, -0.023345947265625, -0.0299530029296875, 0.018280029296875, 0.02423095703125, -0.0099334716796875, -0.00937652587890625, 0.006855010986328125, -0.016693115234375, -0.010345458984375, 0.0220489501953125, -0.0240631103515625, -0.04669189453125, -0.0287628173828125, -0.004093170166015625, 0.0222320556640625, -0.0242156982421875, 0.002925872802734375, -0.030303955078125, -0.0146331787109375, -0.06634521484375, 0.00836944580078125, -0.0205841064453125, -0.0225830078125, 0.0291900634765625, -0.00016033649444580078, 0.01003265380859375, 0.00855255126953125, -0.036102294921875, 0.0191802978515625, 0.0309600830078125, -0.004955291748046875, 0.01525115966796875, 0.06280517578125, 0.005382537841796875, 0.01702880859375, 0.022186279296875, 0.0016050338745117188, -0.004634857177734375, 0.03131103515625, 0.007259368896484375, -0.02349853515625, 0.0693359375, 0.0198516845703125, -0.029693603515625, 0.05609130859375, -0.038421630859375, 0.01409149169921875, 0.0540771484375, 0.05718994140625, -0.068603515625, 0.0052947998046875, 0.02496337890625, -0.01519775390625, 0.00936126708984375, 0.0076141357421875, -0.01465606689453125, -0.06231689453125, 0.0574951171875, -0.053558349609375, 0.01629638671875, 0.005401611328125, -0.056884765625, -0.0158538818359375, -0.0142059326171875, 0.0251617431640625, 0.01119232177734375, 0.02423095703125, 0.00514984130859375, -0.011566162109375, 0.00531768798828125, -0.010162353515625, 0.00397491455078125, -0.021484375, -0.0299224853515625, -0.037689208984375, -0.0074462890625, -0.01248931884765625, -0.005756378173828125, -0.02569580078125, 0.034210205078125, -0.008880615234375, 0.0430908203125, -0.007167816162109375, -0.00772857666015625, 0.0221405029296875, -0.0496826171875, -0.034576416015625, -0.058929443359375, 0.038421630859375, 0.0513916015625, -0.06634521484375, 0.043914794921875, 0.00843048095703125, -0.0537109375, -0.020751953125, -0.0171966552734375, 0.07763671875, -0.00290679931640625, -0.0296783447265625, 0.0156707763671875, 0.02435302734375, 0.00015115737915039062, -0.025115966796875, -0.0191192626953125, -0.045989990234375, 0.005901336669921875, -0.0296173095703125, -0.023468017578125, 0.0186309814453125, -0.026702880859375, -0.08001708984375, 0.08782958984375, 0.01641845703125, 0.04217529296875, -0.009246826171875, 0.01354217529296875, -0.0237884521484375, -0.0035915374755859375, -0.034454345703125, 0.005580902099609375, -0.021820068359375, 0.035003662109375, -0.0031375885009765625, 0.01171112060546875, 0.01837158203125, 0.007442474365234375, 0.00986480712890625, 0.0010442733764648438, -0.015838623046875, -0.041717529296875, -0.004039764404296875, 0.039947509765625, 0.013427734375, 0.012359619140625, 0.00867462158203125, 0.0201568603515625, 0.05975341796875, -0.052398681640625, 0.00922393798828125, 0.0036792755126953125, 0.0279083251953125, 0.03857421875, 0.01314544677734375, 0.01715087890625, -0.0218353271484375, -0.01453399658203125, -0.03790283203125, -0.002849578857421875, 0.0145263671875, 0.01580810546875, 0.0098114013671875, 0.032989501953125, 0.0302734375, 0.0240478515625, 0.0258026123046875, -0.0283660888671875, 0.0413818359375, 0.004749298095703125, 0.016693115234375, 0.03778076171875, 0.02301025390625, 0.055145263671875, -0.0251312255859375, 0.00798797607421875, 0.0082244873046875, -0.009002685546875, 0.060089111328125, 0.025177001953125, 0.049285888671875, -0.0140380859375, 0.0151214599609375, -0.0247650146484375, 0.033599853515625, -0.033233642578125, 0.0131378173828125, 0.01332855224609375, -0.00832366943359375, 0.00901031494140625, -0.033782958984375, 0.0225067138671875, -0.0143890380859375, -0.04168701171875, -0.07818603515625, 0.010101318359375, 0.036529541015625, 0.04205322265625, 0.0005488395690917969, 0.018341064453125, -0.07666015625, -0.027313232421875, 0.01294708251953125, -0.0517578125, -0.027496337890625, 0.0291290283203125, 0.0487060546875, -0.00014281272888183594, -0.06365966796875, -0.0108642578125, 0.00865936279296875, -0.0029811859130859375, 0.0115203857421875, 0.0006618499755859375, -0.00603485107421875, -0.0204925537109375, 0.0301971435546875, 0.01296234130859375, 0.048675537109375, 0.0283203125, 0.0300750732421875, -0.00048542022705078125, -0.038665771484375, 0.0218963623046875, 0.060516357421875, -0.0268096923828125, 0.0207366943359375, -0.0242462158203125, -0.05389404296875, -0.022064208984375, -0.044281005859375, -0.0037937164306640625, -0.054473876953125, 0.02874755859375, -0.0203094482421875, 0.048828125, -0.003936767578125, 0.001201629638671875, 0.04437255859375, -0.0209197998046875, 0.04107666015625, 0.005649566650390625, -0.0231170654296875, -0.006359100341796875, -0.020263671875, 0.0033626556396484375, -0.0137786865234375, 0.01275634765625, 0.00617218017578125, 0.008056640625, -0.021575927734375, 0.0148468017578125, 0.00392913818359375, -0.0224456787109375, 0.004154205322265625, -0.001953125, 0.019561767578125, 0.0029544830322265625, -0.0273590087890625, -0.0108642578125, -0.0087432861328125, 0.003108978271484375, 0.0033626556396484375, 0.06439208984375, -0.00522613525390625, 0.01407623291015625, -0.009429931640625, 0.021331787109375, -0.04278564453125, 0.0217132568359375, -0.03558349609375, -0.0175628662109375, 0.0079193115234375, 0.004482269287109375, -0.048187255859375, 0.055023193359375, 0.0189208984375, 0.0026493072509765625, 0.0377197265625, 0.037353515625, 0.00507354736328125, -0.0308074951171875, -0.00009703636169433594, -0.0318603515625, -0.0167083740234375, -0.0130615234375, -0.01093292236328125, 0.0217742919921875, 0.0032024383544921875, 0.0207366943359375, 0.0263824462890625, 0.02435302734375, 0.0211639404296875, -0.007244110107421875, 0.0074615478515625, 0.00708770751953125, 0.02740478515625, -0.030059814453125, 0.07672119140625, -0.03240966796875, -0.033905029296875, 0.04833984375, 0.015869140625, -0.05291748046875, -0.00890350341796875, 0.06768798828125, -0.00408172607421875, -0.0299835205078125, 0.0171356201171875, -0.036895751953125, -0.00992584228515625, -0.044342041015625, 0.0244140625, 0.00943756103515625, -0.0225982666015625, -0.01078033447265625, -0.0304107666015625, -0.0057525634765625, 0.0037937164306640625, -0.01415252685546875, -0.04052734375, -0.0269622802734375, -0.0030574798583984375, 0.0374755859375, 0.02838134765625, -0.07330322265625, 0.0615234375, 0.0026988983154296875, -0.00649261474609375, 0.0307769775390625, 0.01983642578125, 0.0092315673828125, 0.048309326171875, -0.0389404296875, -0.0122833251953125, 0.00389862060546875, 0.0004696846008300781, 0.0077972412109375, 0.06512451171875, 0.08087158203125, -0.040435791015625, -0.00786590576171875, 0.07623291015625, 0.0439453125, 0.11065673828125, -0.053436279296875, -0.0203399658203125, 0.006183624267578125, 0.01512908935546875, -0.03594970703125, -0.0634765625, 0.04095458984375, -0.08319091796875, -0.006305694580078125, 0.0031337738037109375, -0.01078033447265625, 0.004638671875, -0.020111083984375, -0.0379638671875, 0.049957275390625, 0.0024318695068359375, -0.02093505859375, -0.07940673828125, -0.0164794921875, 0.0229034423828125, -0.0130767822265625, -0.0243377685546875, -0.0301055908203125, -0.07354736328125, 0.0265045166015625, -0.00733184814453125, 0.0288543701171875, 0.022613525390625, -0.048675537109375, -0.034393310546875, -0.0157318115234375, -0.0000559687614440918, 0.007259368896484375, 0.0276947021484375, 0.0094451904296875, 0.0203094482421875, 0.042144775390625, -0.02703857421875, -0.0008845329284667969, -0.0277862548828125, -0.022491455078125, 0.0038547515869140625, -0.0045318603515625, 0.004863739013671875, 0.01444244384765625, 0.049102783203125, -0.004413604736328125, 0.01275634765625, -0.032745361328125, 0.03802490234375, -0.01311492919921875, -0.031341552734375, -0.01763916015625, 0.029754638671875, -0.0750732421875, -0.040374755859375, 0.0309295654296875, -0.005001068115234375, 0.0225372314453125, 0.005970001220703125, 0.002338409423828125, -0.01349639892578125, -0.01001739501953125, -0.056243896484375, -0.005767822265625, 0.007434844970703125, -0.0262298583984375, 0.0125274658203125, 0.00016319751739501953, 0.004238128662109375, 0.001834869384765625, -0.0288848876953125, 0.07257080078125, 0.03045654296875, 0.01505279541015625, -0.042938232421875, -0.005428314208984375, 0.0240936279296875, 0.015289306640625, -0.00783538818359375, -0.0285797119140625, -0.00012433528900146484, 0.03131103515625, 0.01068115234375, 0.03302001953125, 0.01084136962890625, 0.0191497802734375, 0.010589599609375, 0.03131103515625, -0.01114654541015625, -0.0009698867797851562, -0.0203857421875, 0.01314544677734375, -0.0219879150390625, 0.0079498291015625, 0.020660400390625, -0.01213836669921875, 0.01194000244140625, -0.02703857421875, -0.0218048095703125, -0.046356201171875, 0.0116424560546875, 0.0295562744140625, -0.020416259765625, 0.0111083984375 ]
579f4f70d2d32e634ba181cce6a1bd1a55cc280f
Wordpress Stackexchange Q: Can a users profile be put under the dashboard menu I was reading an article today and it covered some very valid points on user experience with WordPress. One of its points was that the profile should go under the Dashboard menu. I like this idea but not sure if it could be done. A: You could just write a custom Dashboard Widget: Tutorial How to Add Custom Dashboard Widgets in WordPress In this article we will show you how you can customize dashboard widgets in WordPress. Documentation Dashboard Widgets API The Dashboard Widgets API (added in WP 2.7) makes it very simple to add new widgets to the administration dashboard. Doing so requires working knowledge of PHP and the WordPress Plugin API, but to plugin or theme authors familiar with hooking actions and filters it only takes a few minutes and can be a great way to make your plugin even more useful.
Q: Can a users profile be put under the dashboard menu I was reading an article today and it covered some very valid points on user experience with WordPress. One of its points was that the profile should go under the Dashboard menu. I like this idea but not sure if it could be done. A: You could just write a custom Dashboard Widget: Tutorial How to Add Custom Dashboard Widgets in WordPress In this article we will show you how you can customize dashboard widgets in WordPress. Documentation Dashboard Widgets API The Dashboard Widgets API (added in WP 2.7) makes it very simple to add new widgets to the administration dashboard. Doing so requires working knowledge of PHP and the WordPress Plugin API, but to plugin or theme authors familiar with hooking actions and filters it only takes a few minutes and can be a great way to make your plugin even more useful. A: If I understood the Question correctly, you want something like this: And for that, some manipulation of the global $submenu is necessary: // Priority 999 == execute this the latest as possible add_action( 'admin_menu', 'move_profile_submenu_wpse_43053', 999 ); function move_profile_submenu_wpse_43053() { global $submenu; // Get the key for the submenu Users.php -> Profile.php $replace = find_profile_key_wpse_43053( $submenu['users.php'] ); if( $replace ) { $submenu['index.php'][] = $submenu['users.php'][ $replace ]; unset( $submenu['users.php'][ $replace ] ); } } function find_profile_key_wpse_43053( $sub_menu ) { foreach( $sub_menu as $key => $value ) if( in_array( 'profile.php', $value ) ) return $key; return false; }
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:417312", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43053" }
[ 0.1177978515625, 0.001987457275390625, 0.0292510986328125, -0.009429931640625, 0.03271484375, -0.048919677734375, 0.075927734375, -0.068359375, -0.0210418701171875, 0.0308074951171875, 0.013153076171875, -0.00325775146484375, 0.00635528564453125, -0.0111083984375, -0.0150909423828125, -0.030487060546875, 0.00821685791015625, 0.01323699951171875, 0.0345458984375, -0.0138702392578125, 0.029144287109375, -0.0237274169921875, 0.00640869140625, -0.0092926025390625, 0.0243377685546875, -0.010986328125, -0.017364501953125, 0.0009822845458984375, -0.0276947021484375, -0.022674560546875, -0.0018606185913085938, 0.028411865234375, -0.029388427734375, 0.0309906005859375, 0.03961181640625, 0.042510986328125, 0.01715087890625, 0.0345458984375, 0.06414794921875, -0.0169525146484375, 0.020355224609375, 0.007488250732421875, 0.01279449462890625, 0.0372314453125, -0.0052947998046875, -0.05010986328125, 0.04254150390625, -0.038818359375, 0.053131103515625, -0.006137847900390625, 0.0037708282470703125, -0.0017213821411132812, 0.00921630859375, -0.043701171875, -0.032257080078125, -0.0169830322265625, 0.02239990234375, -0.006465911865234375, 0.042816162109375, 0.0016155242919921875, -0.02618408203125, -0.015838623046875, 0.006252288818359375, -0.0491943359375, 0.00652313232421875, -0.033966064453125, -0.00730133056640625, 0.013092041015625, -0.031494140625, 0.01085662841796875, 0.05438232421875, -0.0173187255859375, 0.009521484375, 0.00820159912109375, -0.0016489028930664062, -0.051910400390625, -0.01190185546875, -0.041351318359375, 0.027099609375, 0.0191192626953125, 0.005664825439453125, 0.0140838623046875, -0.0005679130554199219, 0.00658416748046875, -0.005794525146484375, 0.034637451171875, -0.022186279296875, -0.0258026123046875, -0.009246826171875, 0.024017333984375, -0.00579833984375, -0.0267181396484375, -0.01666259765625, 0.07330322265625, 0.0264434814453125, 0.007007598876953125, 0.026153564453125, 0.050750732421875, -0.0228424072265625, 0.0303802490234375, -0.0126495361328125, -0.016571044921875, 0.040374755859375, -0.05218505859375, 0.003078460693359375, 0.0345458984375, -0.0272216796875, 0.0008263587951660156, 0.037353515625, 0.03594970703125, 0.01502227783203125, -0.0273284912109375, -0.00473785400390625, -0.0438232421875, -0.0116729736328125, 0.039764404296875, -0.00792694091796875, -0.020660400390625, 0.0136871337890625, -0.0153045654296875, -0.03192138671875, -0.004108428955078125, -0.0345458984375, 0.01165771484375, 0.00957489013671875, -0.00835418701171875, 0.0031261444091796875, 0.0240631103515625, -0.03717041015625, 0.00473785400390625, -0.01038360595703125, 0.01387786865234375, 0.0195770263671875, 0.0628662109375, 0.01386260986328125, -0.01479339599609375, 0.024993896484375, -0.03076171875, -0.0179443359375, 0.033721923828125, -0.0094757080078125, -0.034515380859375, -0.01346588134765625, -0.0328369140625, -0.00685882568359375, 0.0247650146484375, 0.0228118896484375, -0.0013132095336914062, -0.0171051025390625, -0.050628662109375, 0.0016155242919921875, -0.0288543701171875, -0.0015707015991210938, 0.024383544921875, 0.0198211669921875, 0.002513885498046875, 0.00112152099609375, -0.0010852813720703125, 0.00844573974609375, 0.00513458251953125, -0.0296173095703125, -0.0157623291015625, 0.03289794921875, -0.04150390625, -0.021270751953125, 0.0149383544921875, -0.045074462890625, 0.01366424560546875, 0.0222930908203125, -0.00467681884765625, 0.00032901763916015625, -0.01462554931640625, 0.0170135498046875, 0.007282257080078125, 0.0038280487060546875, 0.020233154296875, 0.027099609375, 0.03704833984375, 0.00836944580078125, 0.0022602081298828125, -0.03466796875, -0.05218505859375, 0.07965087890625, -0.0479736328125, -0.06256103515625, 0.038116455078125, 0.0211181640625, 0.10455322265625, 0.00811004638671875, 0.031829833984375, 0.0241851806640625, -0.0124969482421875, -0.00478363037109375, -0.007396697998046875, -0.016387939453125, -0.01358795166015625, 0.01483154296875, 0.009033203125, -0.0230712890625, 0.023834228515625, 0.00463104248046875, 0.007587432861328125, 0.00736236572265625, -0.0244140625, -0.07080078125, 0.01540374755859375, -0.0296783447265625, 0.05615234375, 0.04608154296875, 0.00615692138671875, -0.005344390869140625, -0.0130767822265625, -0.0009889602661132812, -0.02130126953125, -0.046417236328125, -0.0184326171875, 0.0081787109375, 0.04656982421875, 0.0036640167236328125, 0.02001953125, -0.00597381591796875, -0.01432037353515625, 0.0011320114135742188, 0.027099609375, 0.042938232421875, -0.0232391357421875, -0.00409698486328125, -0.0301513671875, 0.0390625, 0.005645751953125, -0.01678466796875, 0.003505706787109375, -0.00502777099609375, -0.028533935546875, -0.05548095703125, 0.0033512115478515625, -0.0076446533203125, -0.01166534423828125, -0.003612518310546875, 0.04364013671875, 0.0011816024780273438, 0.0169830322265625, 0.00984954833984375, 0.11712646484375, -0.0254669189453125, -0.0908203125, -0.01335906982421875, 0.0760498046875, 0.005809783935546875, 0.046539306640625, -0.004245758056640625, 0.0017175674438476562, 0.01346588134765625, -0.04718017578125, -0.00939178466796875, 0.042755126953125, -0.0271759033203125, 0.004932403564453125, 0.01168060302734375, -0.01282501220703125, -0.006862640380859375, 0.007259368896484375, 0.006366729736328125, -0.023101806640625, -0.001300811767578125, -0.020050048828125, 0.047119140625, 0.035125732421875, 0.0085601806640625, -0.063232421875, 0.01235198974609375, 0.06109619140625, -0.005035400390625, 0.036895751953125, -0.01045989990234375, -0.0240325927734375, -0.013427734375, -0.00907135009765625, -0.003040313720703125, 0.0014734268188476562, 0.0273895263671875, 0.034454345703125, 0.0018472671508789062, -0.00562286376953125, 0.00995635986328125, -0.0267486572265625, 0.0017299652099609375, 0.0245819091796875, -0.01107025146484375, 0.00203704833984375, 0.029510498046875, 0.01117706298828125, -0.0229949951171875, 0.0222930908203125, -0.004169464111328125, -0.00861358642578125, -0.0050048828125, -0.01253509521484375, 0.0025501251220703125, 0.00023353099822998047, 0.0220489501953125, 0.0650634765625, 0.02215576171875, -0.0137176513671875, -0.006076812744140625, -0.00656890869140625, -0.0265655517578125, 0.03607177734375, 0.023651123046875, -0.05584716796875, 0.047637939453125, 0.1109619140625, 0.032440185546875, -0.011932373046875, 0.0199737548828125, -0.0017576217651367188, -0.0303192138671875, 0.023040771484375, -0.0270538330078125, -0.0171356201171875, 0.0035552978515625, -0.0472412109375, -0.035003662109375, 0.0080718994140625, -0.027740478515625, 0.01508331298828125, 0.037353515625, -0.0031890869140625, -0.0228729248046875, -0.01508331298828125, -0.0200042724609375, -0.049407958984375, -0.047943115234375, -0.003387451171875, 0.00998687744140625, 0.0194091796875, -0.0015668869018554688, 0.0244598388671875, -0.0106201171875, -0.0755615234375, -0.01458740234375, 0.026458740234375, 0.01617431640625, 0.0261383056640625, 0.0192413330078125, -0.037261962890625, 0.02911376953125, -0.00621795654296875, 0.006511688232421875, 0.032379150390625, -0.0169525146484375, 0.0016222000122070312, -0.0157928466796875, -0.05364990234375, -0.0372314453125, 0.00909423828125, 0.0406494140625, -0.0401611328125, -0.017974853515625, -0.06201171875, 0.013336181640625, 0.0200653076171875, -0.0207977294921875, -0.049957275390625, -0.0036716461181640625, -0.01251220703125, -0.00830078125, -0.017608642578125, -0.0310821533203125, 0.0135040283203125, -0.04534912109375, 0.0048675537109375, 0.009246826171875, -0.00989532470703125, -0.030059814453125, 0.04296875, -0.03948974609375, -0.04791259765625, 0.030120849609375, -0.0264129638671875, -0.01617431640625, -0.0318603515625, 0.0467529296875, 0.00005930662155151367, -0.062347412109375, 0.033843994140625, -0.047088623046875, -0.0006661415100097656, -0.0190582275390625, -0.01087188720703125, 0.044921875, 0.10888671875, -0.05224609375, 0.0242156982421875, 0.0216522216796875, -0.003993988037109375, -0.05419921875, -0.006511688232421875, -0.1378173828125, 0.01058197021484375, -0.08428955078125, 0.0164337158203125, 0.00846099853515625, -0.034698486328125, -0.005733489990234375, 0.03082275390625, -0.0333251953125, -0.034698486328125, 0.027984619140625, -0.036041259765625, 0.011566162109375, 0.00948333740234375, 0.0010471343994140625, -0.0192413330078125, -0.00923919677734375, -0.0257110595703125, -0.04583740234375, -0.0088043212890625, -0.041900634765625, 0.037078857421875, 0.04058837890625, -0.0487060546875, 0.003131866455078125, 0.0217742919921875, 0.0157470703125, 0.0255584716796875, 0.01247406005859375, 0.0234375, -0.001796722412109375, -0.059356689453125, -0.0024394989013671875, -0.047607421875, -0.034423828125, -0.0191192626953125, 0.016357421875, 0.055328369140625, -0.0003180503845214844, 0.01100921630859375, 0.01293182373046875, -0.007694244384765625, -0.05963134765625, -0.053558349609375, 0.0024967193603515625, 0.007022857666015625, -0.0025806427001953125, 0.026275634765625, -0.052642822265625, -0.0501708984375, 0.021148681640625, 0.0096588134765625, -0.012542724609375, 0.02142333984375, 0.043243408203125, 0.007373809814453125, -0.0197601318359375, -0.053192138671875, -0.0198822021484375, 0.0302886962890625, -0.029815673828125, 0.012176513671875, 0.00969696044921875, -0.0189666748046875, 0.0247039794921875, -0.0113983154296875, -0.0213165283203125, -0.04388427734375, 0.08673095703125, 0.0028438568115234375, -0.0036716461181640625, -0.0014848709106445312, -0.0238800048828125, 0.00026607513427734375, 0.038055419921875, 0.0026988983154296875, -0.01178741455078125, -0.0183563232421875, 0.030914306640625, -0.0016279220581054688, -0.0113067626953125, -0.04345703125, -0.014251708984375, 0.00899505615234375, -0.08984375, 0.01497650146484375, -0.0258941650390625, 0.01425933837890625, -0.027435302734375, 0.0085601806640625, 0.0015745162963867188, 0.040008544921875, 0.0078887939453125, -0.013092041015625, 0.031280517578125, 0.0172119140625, -0.0009279251098632812, 0.0138702392578125, -0.0071563720703125, 0.0648193359375, 0.022369384765625, -0.040191650390625, 0.0083770751953125, -0.004207611083984375, 0.0212860107421875, -0.00490570068359375, 0.00800323486328125, 0.0305633544921875, 0.004558563232421875, -0.0028533935546875, -0.00797271728515625, -0.0174560546875, -0.00096893310546875, -0.040618896484375, -0.01216888427734375, -0.0000997781753540039, -0.016143798828125, -0.0081024169921875, 0.01531219482421875, -0.00815582275390625, -0.004669189453125, -0.0032958984375, 0.07379150390625, 0.088623046875, -0.0303802490234375, -0.0130462646484375, 0.05792236328125, -0.006877899169921875, -0.053009033203125, 0.01251983642578125, -0.0209503173828125, 0.0162506103515625, 0.0009403228759765625, 0.01551055908203125, 0.05224609375, 0.009124755859375, -0.00397491455078125, -0.0201263427734375, -0.02685546875, 0.038421630859375, -0.0189666748046875, -0.06439208984375, -0.03179931640625, 0.004215240478515625, 0.0159759521484375, -0.016571044921875, 0.01146697998046875, -0.00537109375, -0.0208892822265625, 0.01560211181640625, 0.01904296875, 0.0089263916015625, -0.0164337158203125, -0.0278778076171875, -0.029144287109375, 0.0064239501953125, -0.0021266937255859375, -0.045318603515625, -0.05462646484375, 0.0005459785461425781, -0.0137481689453125, 0.032135009765625, -0.0242462158203125, 0.0208892822265625, -0.05999755859375, 0.0199432373046875, -0.044403076171875, 0.00322723388671875, 0.0316162109375, 0.0165557861328125, -0.0582275390625, 0.010498046875, -0.040802001953125, 0.000652313232421875, -0.0183258056640625, -0.058135986328125, -0.04132080078125, -0.0179595947265625, 0.02752685546875, 0.0284423828125, 0.007495880126953125, 0.007015228271484375, -0.0168609619140625, 0.0156707763671875, 0.01259613037109375, 0.0372314453125, -0.0174560546875, 0.09649658203125, -0.0277099609375, 0.051605224609375, -0.0174713134765625, 0.02362060546875, -0.034881591796875, 0.00780487060546875, 0.0321044921875, 0.0249176025390625, -0.055999755859375, -0.03582763671875, -0.0184783935546875, -0.017486572265625, 0.05230712890625, -0.0310211181640625, 0.0270843505859375, -0.01123809814453125, 0.0142059326171875, 0.0008821487426757812, -0.00005072355270385742, -0.0007634162902832031, -0.01476287841796875, 0.07257080078125, -0.00881195068359375, -0.020172119140625, -0.0020904541015625, -0.00925445556640625, 0.016510009765625, 0.0235137939453125, 0.01502227783203125, -0.03253173828125, -0.06610107421875, 0.120361328125, 0.07318115234375, 0.0029582977294921875, 0.0235137939453125, 0.00716400146484375, -0.006504058837890625, -0.0478515625, 0.019195556640625, -0.02716064453125, -0.00862884521484375, 0.007625579833984375, -0.0168609619140625, -0.02777099609375, -0.01812744140625, -0.0295867919921875, -0.0026950836181640625, 0.061004638671875, 0.0205078125, -0.0950927734375, 0.01306915283203125, -0.0151519775390625, 0.0172271728515625, 0.028717041015625, -0.00927734375, -0.0017242431640625, -0.01377105712890625, 0.06884765625, -0.03289794921875, -0.0163116455078125, 0.024169921875, -0.03253173828125, 0.005584716796875, 0.00873565673828125, 0.056060791015625, 0.007110595703125, -0.0236968994140625, -0.0496826171875, 0.0177459716796875, -0.006984710693359375, 0.00992584228515625, 0.01035308837890625, 0.01073455810546875, -0.0178985595703125, -0.0496826171875, 0.0129241943359375, -0.0183258056640625, -0.031707763671875, 0.04791259765625, -0.030120849609375, 0.07470703125, 0.01166534423828125, 0.018524169921875, -0.001224517822265625, -0.0271453857421875, 0.040679931640625, 0.045379638671875, -0.024261474609375, -0.0013666152954101562, 0.0093841552734375, -0.03497314453125, -0.009765625, -0.007251739501953125, -0.0084381103515625, -0.03887939453125, -0.04888916015625, 0.10675048828125, -0.039093017578125, -0.0137939453125, -0.0008349418640136719, 0.0169677734375, -0.01399993896484375, 0.017822265625, 0.02593994140625, -0.05853271484375, -0.029388427734375, 0.023590087890625, -0.0479736328125, -0.0129241943359375, 0.02984619140625, -0.01080322265625, 0.05145263671875, -0.0309906005859375, -0.007183074951171875, 0.0037479400634765625, 0.0293731689453125, 0.0166168212890625, 0.04095458984375, -0.008056640625, 0.021575927734375, -0.01338958740234375, 0.038818359375, -0.0138702392578125, -0.0166473388671875, 0.0025272369384765625, 0.0455322265625, 0.00691986083984375, 0.0101470947265625, -0.04541015625, -0.0197906494140625, -0.015472412109375, 0.03277587890625, 0.007289886474609375, 0.040069580078125, -0.0168914794921875, -0.01291656494140625, 0.0028209686279296875, -0.0071563720703125, 0.032440185546875, -0.040435791015625, -0.0290985107421875, -0.0169219970703125, 0.021575927734375, 0.03619384765625, -0.032806396484375, 0.04498291015625, 0.041656494140625, -0.03460693359375, -0.03289794921875, -0.002025604248046875, -0.025665283203125, 0.0204010009765625, 0.0037593841552734375, -0.0207061767578125, -0.00399017333984375, -0.0185546875, 0.025787353515625, 0.0301666259765625, -0.01523590087890625, 0.02325439453125, 0.0263671875, -0.060394287109375, 0.0198974609375, 0.005023956298828125, 0.0303192138671875, -0.0202789306640625, 0.057342529296875, 0.0171051025390625, 0.037750244140625, -0.029327392578125, 0.01168060302734375, 0.0042877197265625, 0.053314208984375, -0.03369140625, -0.0501708984375, 0.01519012451171875, 0.0221099853515625, 0.0020008087158203125, 0.052947998046875, 0.053466796875, -0.00807952880859375, 0.0377197265625, -0.01403045654296875, 0.0107269287109375, -0.00946044921875, 0.0273895263671875, -0.0017452239990234375, 0.0111083984375, -0.0250396728515625, 0.002178192138671875, -0.006137847900390625, -0.01080322265625, -0.01136016845703125, 0.018951416015625, 0.006450653076171875, -0.00308990478515625, -0.0301361083984375, 0.005161285400390625, -0.001987457275390625, -0.033477783203125, 0.006641387939453125, 0.0039520263671875, -0.06878662109375, -0.053192138671875, 0.0634765625, 0.06463623046875, 0.0231475830078125, -0.033935546875, 0.00371551513671875, 0.00565338134765625, 0.00975799560546875, -0.012054443359375, 0.01383209228515625, -0.0008974075317382812, 0.01451873779296875, -0.023345947265625, 0.03857421875, 0.0263671875, 0.002910614013671875, -0.0186920166015625, 0.034088134765625, 0.039215087890625, -0.02362060546875, 0.02325439453125, -0.01073455810546875, 0.003108978271484375, 0.04071044921875, -0.0124053955078125, -0.00339508056640625, 0.00124359130859375, -0.1322021484375, -0.0367431640625, -0.031585693359375, -0.033355712890625, 0.031524658203125, 0.044403076171875, -0.0216827392578125, 0.0088348388671875, 0.01084136962890625, 0.01461029052734375, -0.0271759033203125, -0.0280609130859375, 0.047210693359375, 0.027587890625, 0.00957489013671875, 0.05340576171875, -0.038055419921875, -0.01003265380859375, -0.0190277099609375, 0.043609619140625, 0.03143310546875, 0.053436279296875, -0.014251708984375, 0.037322998046875, -0.06707763671875, -0.01971435546875, -0.0377197265625, -0.052093505859375, 0.0217132568359375, 0.00910186767578125, -0.035308837890625, 0.008697509765625, -0.048492431640625, 0.0203094482421875, 0.02130126953125, -0.0345458984375, 0.0260772705078125, -0.0072174072265625, 0.01030731201171875, -0.0168304443359375, -0.010986328125, -0.04254150390625, -0.0229949951171875, -0.024322509765625, -0.0180206298828125, -0.00859832763671875, -0.02020263671875, 0.0015411376953125, 0.01629638671875, -0.01216888427734375, -0.017730712890625, -0.0123748779296875, 0.0015459060668945312, -0.036895751953125, 0.01105499267578125, 0.02764892578125, -0.003299713134765625, -0.01190185546875, -0.019012451171875, 0.01082611083984375, -0.00001817941665649414, -0.0026569366455078125, 0.0043792724609375, 0.03173828125, -0.0088348388671875, 0.01450347900390625, 0.019287109375, -0.022125244140625, 0.00402069091796875, 0.0276031494140625, -0.0245361328125, -0.00455474853515625, 0.0190277099609375, -0.0211639404296875, 0.00829315185546875, -0.01219940185546875, 0.0107269287109375, 0.0062713623046875, -0.058135986328125, -0.10516357421875, 0.0196380615234375, 0.0628662109375, 0.023681640625, -0.07373046875, 0.041534423828125, -0.028289794921875, 0.046661376953125, 0.0295257568359375, -0.04669189453125, 0.02313232421875, 0.00519561767578125, -0.01250457763671875, 0.032501220703125, 0.0009965896606445312, -0.036346435546875, 0.03271484375, -0.0103912353515625, 0.01143646240234375, 0.01511383056640625, 0.01541900634765625, 0.01317596435546875, -0.01165771484375, 0.057525634765625, -0.04901123046875, -0.004547119140625, -0.0016050338745117188, 0.004734039306640625, 0.00197601318359375, -0.0069122314453125, -0.00843048095703125, 0.0013589859008789062, -0.01409912109375, 0.005260467529296875, -0.02197265625, -0.0198211669921875, -0.06591796875, -0.09906005859375, 0.07403564453125, -0.0017137527465820312, -0.040130615234375, -0.013885498046875, 0.027679443359375, -0.02288818359375, 0.0014324188232421875, -0.0059661865234375, -0.01910400390625, 0.02276611328125, 0.0252838134765625, 0.039520263671875, 0.0104522705078125, 0.02142333984375, 0.029541015625, -0.057647705078125, 0.026580810546875, -0.0107421875, 0.0227508544921875, -0.0318603515625, -0.004489898681640625, 0.0074005126953125, 0.01149749755859375, -0.0309295654296875, 0.0038776397705078125, 0.01312255859375, 0.03558349609375, -0.01473236083984375, -0.0048065185546875, -0.0015935897827148438, 0.0005421638488769531, 0.055267333984375, 0.04193115234375, 0.0146942138671875, -0.015960693359375, -0.049652099609375, -0.0211944580078125, 0.03924560546875, -0.007740020751953125, 0.00041222572326660156, -0.07159423828125, 0.00415802001953125, 0.01348114013671875, -0.0031375885009765625, -0.0022563934326171875, 0.01111602783203125, -0.0177459716796875, -0.00608062744140625, 0.02880859375, -0.00913238525390625, -0.0224761962890625, -0.00528717041015625, 0.042205810546875, -0.035369873046875, -0.011688232421875, 0.007404327392578125, 0.0126800537109375, 0.01776123046875, 0.00917816162109375, -0.023223876953125, -0.01474761962890625, -0.0309906005859375, 0.03369140625, -0.033782958984375, 0.057281494140625, -0.05291748046875, -0.00473785400390625, -0.038665771484375, 0.02276611328125, 0.0224456787109375, 0.014984130859375, -0.0285491943359375, 0.035369873046875, 0.05322265625, 0.0209503173828125, -0.00817108154296875, 0.0438232421875, -0.01137542724609375, 0.049835205078125, -0.0015592575073242188, -0.0159759521484375, 0.0394287109375, -0.05029296875, 0.0004916191101074219, 0.0233001708984375, 0.01425933837890625, -0.045989990234375, 0.0136871337890625, 0.003902435302734375, 0.042144775390625, 0.0186614990234375 ]
dd5af8251c55345573e0371ebb6eb634bb1ca8b8
Wordpress Stackexchange Q: Change page template programmatically ? I have two page templates and Qtranslate installed. I want to choose one or another depending the language selected. Can I do something like this ? if($q_config['lang'] == 'en'){ // load page-template_en.php }else{ // load page-template_de.php } Any idea ? Thanks! A: Should be possible using the template_include hook. Code is untested: add_action( 'template_include', 'language_redirect' ); function language_redirect( $template ) { global $q_config; $lang = ( 'en' === $q_config['lang'] ) ? 'en' : 'de'; $template = str_replace( '.php', '_'.$lang.'.php', $template ); return $template; }
Q: Change page template programmatically ? I have two page templates and Qtranslate installed. I want to choose one or another depending the language selected. Can I do something like this ? if($q_config['lang'] == 'en'){ // load page-template_en.php }else{ // load page-template_de.php } Any idea ? Thanks! A: Should be possible using the template_include hook. Code is untested: add_action( 'template_include', 'language_redirect' ); function language_redirect( $template ) { global $q_config; $lang = ( 'en' === $q_config['lang'] ) ? 'en' : 'de'; $template = str_replace( '.php', '_'.$lang.'.php', $template ); return $template; } A: Finally found it! If I understand your question right, the template is basically saved as metadata that needs to be updated. update_post_meta( $post_id, '_wp_page_template', 'your_custom_template' ); // or update_metadata('post_type', $post_id, '_wp_page_template', 'your_custom_template' ); Source and further info A: The best (canonical) way is use template_include hook: http://codex.wordpress.org/Plugin_API/Filter_Reference/template_include Example code: function language_redirect($template) { global $q_config; $new_template = locate_template( array( 'page-'.$q_config['lang'].'.php' ) ); if ( '' != $new_template ) { return $new_template ; } return $template; } add_action( 'template_include', 'language_redirect' ); A: Thank you everyone for these suggestions ! I wanted to set "Elementor canvas" template by default on post only and I did like that : function default_post_template_elementor_canvas($post_type, $post) { $wishedTemplate = 'elementor_canvas'; // to see available template var_dump(get_page_templates($post)) if ($post_type === 'post' && in_array($wishedTemplate, get_page_templates($post)) // Only if elementor_canvas is available && $post->ID != get_option('page_for_posts') // Not the page for listing posts && metadata_exists('post', $post->ID, '_wp_page_template') === false) { // Only when meta _wp_page_template is not set add_post_meta($post->ID, '_wp_page_template', $wishedTemplate); } } add_action('add_meta_boxes', 'default_post_template_elementor_canvas', 10, 2); A: It is possible using the template_redirect hook. Looks something like this : function language_redirect() { global $q_config; if( $q_config['lang'] == 'en' ) { include( get_template_directory() . '/page-template_en.php' ); exit; } else { include( get_template_directory() . '/page-template_de.php' ); exit; } } add_action( 'template_redirect', 'language_redirect' ); Code is untested, but should look like that. See my similar answer HERE for more help.
wordpress
{ "language": "en", "length": 318, "provenance": "stackexchange_00019.jsonl.gz:417338", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43148" }
[ 0.002658843994140625, -0.00994873046875, 0.00957489013671875, 0.0088348388671875, -0.0169677734375, -0.00588226318359375, 0.0265960693359375, -0.024932861328125, 0.023651123046875, 0.0099029541015625, 0.01305389404296875, -0.0303192138671875, -0.0077362060546875, -0.02996826171875, -0.0171051025390625, -0.0146942138671875, 0.04718017578125, -0.029693603515625, 0.0211029052734375, -0.0064849853515625, 0.00412750244140625, 0.0137786865234375, 0.032379150390625, 0.0298614501953125, 0.003696441650390625, -0.0340576171875, 0.0699462890625, -0.040008544921875, -0.0176849365234375, -0.05255126953125, 0.00946807861328125, 0.07733154296875, 0.0307159423828125, 0.01326751708984375, -0.043853759765625, -0.0252685546875, 0.0013456344604492188, -0.00609588623046875, -0.038177490234375, 0.045196533203125, 0.023193359375, -0.0149688720703125, -0.0257568359375, 0.035552978515625, -0.0118560791015625, -0.0236968994140625, 0.001354217529296875, -0.044525146484375, 0.0030803680419921875, 0.05035400390625, 0.03729248046875, -0.0256500244140625, 0.017608642578125, -0.01099395751953125, 0.011322021484375, 0.0211029052734375, -0.05712890625, 0.0293731689453125, 0.01349639892578125, 0.036468505859375, 0.0032062530517578125, 0.0117034912109375, -0.01200103759765625, -0.0164642333984375, -0.015899658203125, -0.01389312744140625, -0.016754150390625, 0.021331787109375, -0.03546142578125, -0.02679443359375, 0.033233642578125, -0.01149749755859375, 0.012054443359375, -0.042266845703125, -0.0134124755859375, 0.02056884765625, -0.0000909566879272461, -0.033172607421875, 0.0070648193359375, -0.027557373046875, 0.04986572265625, 0.0295257568359375, 0.05352783203125, -0.07574462890625, 0.0667724609375, -0.01432037353515625, -0.017425537109375, -0.03271484375, -0.0482177734375, -0.042816162109375, -0.034515380859375, -0.00522613525390625, -0.044586181640625, -0.03497314453125, -0.0264129638671875, -0.0210723876953125, -0.0006961822509765625, 0.05499267578125, -0.0305328369140625, 0.007534027099609375, -0.01323699951171875, -0.02410888671875, 0.0391845703125, -0.0333251953125, -0.0033473968505859375, -0.003448486328125, -0.0008044242858886719, 0.04278564453125, 0.03924560546875, 0.03497314453125, -0.00797271728515625, 0.0247650146484375, -0.03857421875, -0.01113128662109375, -0.0292205810546875, 0.0355224609375, -0.039520263671875, -0.025421142578125, -0.01168060302734375, -0.00868988037109375, -0.00325775146484375, 0.01134490966796875, 0.06488037109375, -0.048828125, -0.01531219482421875, -0.023712158203125, -0.0244293212890625, -0.065185546875, -0.01190185546875, 0.0006437301635742188, -0.00905609130859375, -0.0008649826049804688, 0.0270538330078125, 0.035797119140625, -0.00800323486328125, 0.0001615285873413086, 0.01776123046875, -0.0049896240234375, 0.012786865234375, -0.0276336669921875, 0.038818359375, 0.006351470947265625, 0.001468658447265625, 0.0280914306640625, -0.0166015625, 0.00571441650390625, 0.0181121826171875, 0.035736083984375, -0.0009388923645019531, -0.035858154296875, 0.0303497314453125, -0.0294036865234375, 0.00547027587890625, 0.01038360595703125, -0.005157470703125, -0.00014352798461914062, -0.012176513671875, -0.0007228851318359375, 0.01509857177734375, -0.00385284423828125, -0.021270751953125, -0.029632568359375, 0.0080108642578125, -0.048614501953125, -0.03643798828125, 0.0272064208984375, -0.028839111328125, -0.00199127197265625, 0.0205230712890625, -0.01715087890625, 0.0426025390625, -0.004093170166015625, -0.0186920166015625, -0.006191253662109375, 0.016387939453125, 0.00601959228515625, -0.0291595458984375, 0.023101806640625, 0.01751708984375, 0.008636474609375, 0.0161590576171875, -0.0176849365234375, 0.033447265625, 0.031219482421875, -0.06396484375, 0.046600341796875, 0.0177154541015625, 0.07440185546875, 0.01404571533203125, 0.007648468017578125, 0.0259246826171875, 0.00717926025390625, -0.038330078125, 0.0201263427734375, -0.0052337646484375, -0.015716552734375, -0.0231475830078125, 0.02093505859375, -0.00252532958984375, -0.0297698974609375, 0.042816162109375, -0.006500244140625, -0.022796630859375, 0.03399658203125, -0.0523681640625, -0.0182037353515625, -0.01453399658203125, -0.004100799560546875, 0.010986328125, 0.0258331298828125, 0.003795623779296875, 0.0008358955383300781, -0.0181732177734375, -0.0135498046875, -0.01087188720703125, 0.03662109375, 0.0005702972412109375, 0.022186279296875, 0.044189453125, 0.0194244384765625, 0.0704345703125, -0.01318359375, 0.0413818359375, 0.0089111328125, 0.00179290771484375, 0.0109710693359375, -0.0316162109375, 0.00621795654296875, -0.0187530517578125, 0.0071258544921875, -0.0169525146484375, 0.04522705078125, -0.01015472412109375, -0.008514404296875, -0.0300750732421875, 0.005496978759765625, -0.00937652587890625, -0.02813720703125, -0.0003724098205566406, 0.04034423828125, 0.032501220703125, 0.0010805130004882812, -0.00421142578125, 0.018524169921875, 0.057159423828125, 0.0139312744140625, 0.0201416015625, 0.004611968994140625, 0.021331787109375, 0.06622314453125, 0.003101348876953125, 0.018310546875, -0.009490966796875, -0.056182861328125, 0.01531982421875, 0.032379150390625, -0.03271484375, -0.014312744140625, 0.0272369384765625, -0.0040740966796875, -0.006610870361328125, 0.0169830322265625, 0.0147247314453125, 0.004055023193359375, 0.0237579345703125, -0.030517578125, -0.0019741058349609375, -0.0216827392578125, -0.01155853271484375, -0.0086669921875, 0.0232696533203125, -0.053466796875, 0.0289154052734375, 0.0013685226440429688, -0.06689453125, 0.005733489990234375, -0.01103973388671875, 0.01026153564453125, 0.035369873046875, -0.011383056640625, 0.0089874267578125, 0.073486328125, -0.04937744140625, -0.0292205810546875, -0.0153961181640625, -0.053619384765625, -0.054901123046875, 0.0112762451171875, 0.035491943359375, 0.0104827880859375, 0.0465087890625, 0.019683837890625, -0.019775390625, 0.03680419921875, -0.01360321044921875, -0.0367431640625, 0.09527587890625, -0.0123443603515625, 0.01540374755859375, -0.0128631591796875, 0.0457763671875, 0.045013427734375, -0.0227203369140625, 0.009246826171875, 0.01520538330078125, 0.00537109375, 0.040985107421875, -0.01214599609375, 0.00004088878631591797, 0.01299285888671875, -0.0100555419921875, 0.02880859375, 0.00848388671875, -0.0089263916015625, -0.00205230712890625, -0.03839111328125, -0.021270751953125, -0.005596160888671875, -0.062744140625, -0.032623291015625, -0.00870513916015625, -0.004940032958984375, 0.043365478515625, 0.0058441162109375, 0.0220489501953125, -0.03802490234375, 0.0100555419921875, 0.015777587890625, 0.01367950439453125, -0.016357421875, -0.032501220703125, -0.036346435546875, -0.0217437744140625, -0.034271240234375, -0.0198516845703125, -0.031585693359375, 0.005535125732421875, 0.0264434814453125, -0.0009560585021972656, -0.051361083984375, -0.01354217529296875, 0.04345703125, -0.0140533447265625, 0.01070404052734375, 0.022735595703125, -0.07958984375, 0.037841796875, -0.0011463165283203125, 0.00829315185546875, 0.019195556640625, 0.007007598876953125, -0.005767822265625, -0.0128936767578125, -0.01141357421875, 0.020721435546875, -0.060791015625, -0.0035381317138671875, 0.0138092041015625, -0.01134490966796875, -0.035736083984375, -0.050506591796875, -0.0103607177734375, -0.07257080078125, 0.051483154296875, 0.062164306640625, 0.00010693073272705078, -0.0021686553955078125, -0.00920867919921875, -0.01458740234375, -0.01165008544921875, 0.005046844482421875, -0.033355712890625, 0.039031982421875, -0.017822265625, -0.00713348388671875, -0.01457977294921875, 0.011810302734375, -0.019500732421875, -0.0189666748046875, -0.004482269287109375, 0.0180816650390625, 0.01473236083984375, -0.00653839111328125, 0.01515960693359375, -0.063232421875, 0.04803466796875, -0.0124053955078125, -0.0265350341796875, 0.0216522216796875, -0.034149169921875, 0.039306640625, 0.082275390625, -0.010284423828125, -0.004901885986328125, -0.0036334991455078125, 0.00527191162109375, -0.03533935546875, -0.01306915283203125, -0.04144287109375, 0.01084136962890625, -0.05401611328125, 0.01386260986328125, -0.0169677734375, -0.01523590087890625, -0.02777099609375, 0.020751953125, -0.029266357421875, -0.035614013671875, 0.042633056640625, 0.00624847412109375, -0.0281219482421875, 0.022308349609375, -0.0239410400390625, -0.010833740234375, -0.02923583984375, 0.004642486572265625, -0.09326171875, -0.0059661865234375, -0.0185699462890625, 0.047271728515625, 0.02581787109375, -0.046539306640625, -0.03350830078125, 0.0233001708984375, 0.0155181884765625, 0.039337158203125, -0.016937255859375, -0.006244659423828125, 0.03619384765625, 0.00955963134765625, -0.00820159912109375, 0.0133056640625, -0.007404327392578125, 0.02545166015625, -0.006099700927734375, 0.07147216796875, -0.00563812255859375, -0.01354217529296875, 0.0283966064453125, -0.04705810546875, -0.08349609375, -0.02117919921875, -0.0156402587890625, 0.0122222900390625, -0.0088958740234375, -0.001575469970703125, -0.0229034423828125, -0.085205078125, 0.061187744140625, 0.012908935546875, -0.0182952880859375, -0.0205078125, 0.0787353515625, 0.021453857421875, -0.040069580078125, -0.035736083984375, 0.027191162109375, 0.0219879150390625, 0.00980377197265625, 0.042724609375, 0.0011844635009765625, -0.02398681640625, 0.1192626953125, -0.00659942626953125, -0.018768310546875, 0.03076171875, 0.044708251953125, 0.00862884521484375, -0.041595458984375, 0.034027099609375, -0.0131683349609375, -0.0584716796875, 0.0281524658203125, -0.00302886962890625, 0.0045928955078125, -0.0015897750854492188, 0.006618499755859375, 0.0014982223510742188, -0.005008697509765625, -0.02276611328125, -0.042816162109375, 0.0191802978515625, 0.05755615234375, -0.028228759765625, -0.017578125, 0.0161285400390625, -0.021270751953125, 0.0019817352294921875, -0.00390625, 0.0657958984375, -0.006023406982421875, 0.06475830078125, 0.03131103515625, 0.037994384765625, 0.0157623291015625, 0.0207672119140625, 0.007556915283203125, 0.004180908203125, 0.0032958984375, -0.01983642578125, -0.042266845703125, -0.0091400146484375, 0.00980377197265625, 0.004489898681640625, 0.0163421630859375, 0.048675537109375, -0.005924224853515625, 0.003589630126953125, 0.005950927734375, -0.0015401840209960938, -0.007488250732421875, -0.04052734375, -0.019073486328125, 0.0201873779296875, -0.0218505859375, -0.034027099609375, 0.07342529296875, -0.00786590576171875, 0.0030345916748046875, -0.01108551025390625, 0.0011749267578125, 0.0254974365234375, 0.0017242431640625, 0.0186920166015625, 0.01509857177734375, 0.0028705596923828125, -0.019500732421875, 0.0274810791015625, -0.0013151168823242188, 0.01446533203125, 0.033233642578125, 0.048309326171875, -0.020599365234375, -0.0168304443359375, -0.00952911376953125, -0.04754638671875, -0.0003285408020019531, 0.0283966064453125, 0.014373779296875, -0.047027587890625, -0.02154541015625, 0.008148193359375, 0.0067138671875, -0.024688720703125, -0.00390625, -0.020843505859375, -0.04547119140625, -0.01160430908203125, 0.034515380859375, -0.032135009765625, -0.00043702125549316406, -0.006549835205078125, -0.0123748779296875, 0.00605010986328125, 0.0010366439819335938, -0.0777587890625, -0.046966552734375, 0.004486083984375, 0.0225067138671875, 0.035430908203125, -0.0160369873046875, 0.0251617431640625, 0.0035610198974609375, -0.02410888671875, 0.048675537109375, 0.020263671875, 0.033447265625, -0.0085906982421875, -0.01409149169921875, -0.01331329345703125, -0.047271728515625, -0.032623291015625, -0.08245849609375, -0.057586669921875, -0.026092529296875, 0.021331787109375, 0.0210113525390625, 0.01336669921875, 0.01806640625, 0.0237274169921875, 0.02435302734375, 0.04193115234375, 0.0036907196044921875, 0.06585693359375, 0.017669677734375, 0.07135009765625, -0.045928955078125, 0.043792724609375, 0.0042572021484375, 0.0294189453125, -0.0291595458984375, -0.007049560546875, -0.0172576904296875, -0.00394439697265625, 0.0164337158203125, 0.031585693359375, -0.0268096923828125, -0.007587432861328125, 0.06390380859375, 0.006793975830078125, 0.0000890493392944336, -0.0141448974609375, 0.0086669921875, -0.030517578125, 0.0204315185546875, -0.030517578125, -0.0083160400390625, 0.0153656005859375, -0.01910400390625, -0.00782012939453125, 0.020965576171875, -0.0136260986328125, 0.0224456787109375, 0.0035381317138671875, 0.0107421875, 0.00794219970703125, -0.038818359375, 0.033843994140625, 0.033477783203125, 0.023101806640625, 0.06524658203125, -0.0107421875, 0.038238525390625, 0.03802490234375, -0.006374359130859375, -0.0098419189453125, 0.0261383056640625, 0.006748199462890625, -0.035797119140625, -0.0002027750015258789, -0.0203094482421875, -0.01226043701171875, -0.003849029541015625, 0.09259033203125, 0.0491943359375, -0.12109375, -0.005947113037109375, 0.01535797119140625, -0.0171661376953125, -0.038909912109375, -0.00949859619140625, -0.02166748046875, -0.01568603515625, 0.04461669921875, -0.001556396484375, -0.018280029296875, 0.0175628662109375, 0.0222015380859375, -0.037261962890625, -0.01119232177734375, 0.0396728515625, 0.0249481201171875, 0.0117034912109375, 0.027252197265625, -0.0175933837890625, 0.0423583984375, -0.03607177734375, 0.0036754608154296875, 0.012176513671875, -0.01154327392578125, -0.023529052734375, 0.048980712890625, -0.0296630859375, 0.0107574462890625, 0.0089111328125, 0.02001953125, 0.01313018798828125, 0.066650390625, -0.024505615234375, 0.009490966796875, 0.042694091796875, 0.00037169456481933594, -0.017059326171875, -0.0114593505859375, 0.00444793701171875, -0.01343536376953125, -0.038421630859375, -0.00034356117248535156, -0.052886962890625, -0.002086639404296875, 0.0042877197265625, 0.0225372314453125, 0.039306640625, 0.00006753206253051758, -0.03729248046875, 0.0233154296875, -0.002895355224609375, -0.01898193359375, 0.00032329559326171875, -0.00272369384765625, -0.05950927734375, -0.06463623046875, 0.00823211669921875, -0.0865478515625, -0.010101318359375, -0.020751953125, -0.07257080078125, 0.086181640625, 0.036041259765625, 0.0484619140625, 0.004955291748046875, 0.0274200439453125, -0.038970947265625, -0.0002263784408569336, -0.032684326171875, 0.048065185546875, 0.06573486328125, 0.0292510986328125, -0.006183624267578125, -0.003055572509765625, 0.026336669921875, 0.027862548828125, -0.004871368408203125, -0.005908966064453125, 0.0294189453125, 0.0033397674560546875, 0.0110015869140625, 0.0223388671875, -0.0157470703125, -0.0118865966796875, -0.0257110595703125, 0.0416259765625, -0.0206146240234375, -0.08673095703125, -0.01248931884765625, -0.0167999267578125, -0.044677734375, 0.0095062255859375, -0.007537841796875, -0.01215362548828125, -0.00998687744140625, 0.00637054443359375, -0.058441162109375, -0.00586700439453125, 0.029388427734375, 0.00019407272338867188, 0.01910400390625, -0.01065826416015625, 0.01861572265625, -0.0382080078125, 0.0040283203125, -0.0305938720703125, 0.043975830078125, 0.0127410888671875, 0.004467010498046875, -0.0164642333984375, -0.007770538330078125, 0.024932861328125, -0.0152435302734375, -0.0161590576171875, 0.010040283203125, -0.00394439697265625, 0.08502197265625, 0.031158447265625, 0.0203399658203125, -0.001766204833984375, 0.06866455078125, -0.0157318115234375, 0.053070068359375, -0.06915283203125, -0.036773681640625, 0.006439208984375, -0.00516510009765625, -0.0126495361328125, 0.00684356689453125, 0.01049041748046875, -0.00628662109375, 0.0303192138671875, 0.022064208984375, -0.024688720703125, -0.01377105712890625, -0.0176544189453125, 0.003299713134765625, -0.0024738311767578125, 0.032958984375, 0.0298614501953125, -0.052154541015625, 0.0225677490234375, 0.0347900390625, 0.08026123046875, 0.0037479400634765625, 0.0848388671875, -0.024627685546875, -0.03839111328125, -0.0078887939453125, -0.003749847412109375, -0.024169921875, 0.0253753662109375, -0.041290283203125, -0.01015472412109375, -0.0252532958984375, 0.04034423828125, 0.019287109375, -0.033477783203125, 0.0299072265625, 0.0235748291015625, -0.027496337890625, -0.0230712890625, 0.017852783203125, -0.0169677734375, 0.053375244140625, -0.032196044921875, 0.02642822265625, -0.0235748291015625, -0.0299224853515625, -0.026031494140625, 0.026214599609375, 0.00841522216796875, -0.005535125732421875, 0.06689453125, -0.0029163360595703125, -0.008819580078125, 0.0267791748046875, 0.01030731201171875, 0.093017578125, 0.045562744140625, -0.06939697265625, 0.003032684326171875, -0.025115966796875, -0.061431884765625, 0.03863525390625, 0.03802490234375, -0.035491943359375, 0.040924072265625, 0.021881103515625, 0.0157318115234375, 0.023406982421875, -0.060760498046875, 0.0347900390625, 0.0164947509765625, 0.01126861572265625, 0.022216796875, -0.055450439453125, -0.03680419921875, -0.044586181640625, 0.05206298828125, -0.007038116455078125, 0.0904541015625, -0.02203369140625, 0.032318115234375, 0.0015611648559570312, 0.004383087158203125, 0.01219940185546875, -0.0194091796875, 0.0819091796875, 0.020294189453125, 0.00032591819763183594, -0.03424072265625, -0.01049041748046875, 0.0239105224609375, 0.032958984375, 0.01153564453125, 0.0145721435546875, -0.041015625, 0.01480865478515625, 0.00412750244140625, 0.024383544921875, -0.033843994140625, -0.0406494140625, -0.038360595703125, -0.0000768899917602539, 0.0163116455078125, 0.0226593017578125, 0.0034465789794921875, 0.04010009765625, -0.07159423828125, -0.027496337890625, 0.01183319091796875, -0.0361328125, -0.023681640625, 0.0275115966796875, -0.042327880859375, -0.0162506103515625, 0.00811767578125, -0.01336669921875, 0.00811767578125, 0.01480865478515625, 0.029693603515625, 0.01064300537109375, 0.03265380859375, -0.0224761962890625, -0.0477294921875, 0.00469970703125, -0.03192138671875, -0.01068115234375, -0.011871337890625, 0.00710296630859375, -0.0072479248046875, -0.01519012451171875, 0.00432586669921875, 0.0076904296875, -0.0059814453125, 0.007114410400390625, 0.039398193359375, -0.01525115966796875, 0.01448822021484375, -0.0278778076171875, -0.0173797607421875, 0.006786346435546875, -0.0235443115234375, -0.0189361572265625, 0.00798797607421875, 0.0103912353515625, -0.033294677734375, -0.00933074951171875, 0.028045654296875, 0.03790283203125, -0.058349609375, 0.0181732177734375, -0.0222015380859375, -0.0523681640625, -0.01702880859375, 0.0026035308837890625, 0.043701171875, -0.0036411285400390625, -0.01374053955078125, -0.003719329833984375, 0.0014276504516601562, 0.046783447265625, -0.059326171875, -0.0237274169921875, 0.060333251953125, -0.01010894775390625, -0.0200653076171875, -0.07672119140625, -0.01009368896484375, -0.064697265625, 0.04205322265625, 0.0138092041015625, -0.021942138671875, -0.0037517547607421875, -0.053436279296875, -0.1156005859375, 0.034088134765625, -0.01702880859375, -0.03863525390625, -0.01282501220703125, 0.061492919921875, -0.0009751319885253906, -0.0241241455078125, 0.00634002685546875, -0.0252838134765625, 0.033233642578125, -0.00812530517578125, 0.016021728515625, 0.0660400390625, 0.034210205078125, 0.00794219970703125, 0.018768310546875, 0.00798797607421875, -0.0119476318359375, 0.001773834228515625, -0.0014896392822265625, -0.040740966796875, 0.025726318359375, -0.0014829635620117188, -0.051483154296875, -0.08544921875, 0.017730712890625, 0.056854248046875, -0.0037708282470703125, -0.051910400390625, 0.00435638427734375, 0.00470733642578125, 0.047760009765625, 0.010833740234375, 0.015167236328125, -0.04486083984375, 0.0146026611328125, 0.0218048095703125, -0.0261993408203125, 0.00524139404296875, 0.0311279296875, -0.0653076171875, -0.0152130126953125, 0.013702392578125, -0.01123809814453125, -0.003406524658203125, -0.01030731201171875, -0.0390625, -0.004528045654296875, -0.0096893310546875, -0.0114593505859375, -0.0166015625, 0.00962066650390625, 0.07220458984375, -0.03179931640625, 0.029327392578125, -0.0108184814453125, 0.01410675048828125, 0.047210693359375, -0.0015716552734375, 0.021728515625, 0.056304931640625, -0.0440673828125, 0.004444122314453125, 0.022918701171875, -0.00983428955078125, -0.0023937225341796875, -0.00098419189453125, -0.0004305839538574219, 0.036956787109375, -0.0084075927734375, 0.0494384765625, -0.035186767578125, 0.051300048828125, 0.0104522705078125, 0.01114654541015625, -0.00376129150390625, 0.0142974853515625, 0.01824951171875, -0.003017425537109375, -0.053466796875, 0.0211639404296875, -0.0484619140625, -0.0262603759765625, -0.006175994873046875, 0.01922607421875, -0.011810302734375, -0.054718017578125, 0.05255126953125, -0.014617919921875, 0.010040283203125, 0.0255279541015625 ]
354638442f0175b4e5b61df7efd1dcbe598f1dc4
Wordpress Stackexchange Q: How to show the real post date in a draft When looking at a draft post, get_the_date() only seems to return today's date, not the post date, even if I have selected another date on the post edit screen. Is there a way to show the "actual" post date, the one I selected? I can see in the MySQL database that it's saved in the post_date column. But, like get_the_date, $post->post_date doesn't return it. If the post is a draft, it shows the current date and time. A: Yes, as you - so far - have no publish date. You could use $post->post_modified, which will always be the date of the latest modification to the post data. Debug: Try hooking into the filter and dump both vars: function date_dump_callback( $date, $d ) { echo '<pre>'; print_r( $date ); print_r( $d ); echo '</pre>'; return $date; } add_filter( 'get_the_date', 'date_dump_callback', 20, 2 );
Q: How to show the real post date in a draft When looking at a draft post, get_the_date() only seems to return today's date, not the post date, even if I have selected another date on the post edit screen. Is there a way to show the "actual" post date, the one I selected? I can see in the MySQL database that it's saved in the post_date column. But, like get_the_date, $post->post_date doesn't return it. If the post is a draft, it shows the current date and time. A: Yes, as you - so far - have no publish date. You could use $post->post_modified, which will always be the date of the latest modification to the post data. Debug: Try hooking into the filter and dump both vars: function date_dump_callback( $date, $d ) { echo '<pre>'; print_r( $date ); print_r( $d ); echo '</pre>'; return $date; } add_filter( 'get_the_date', 'date_dump_callback', 20, 2 ); A: I'm not sure why it is modifying the data like that when displaying, but you can use $post->post_date_gmt This will return the scheduled post date the same as it is in the DB except it's in GMT time format, so you might need to convert the time to your local time zone first (this blog post may help). Otherwise, you should be able to use it as is if you're just using the date & not the time but it depends on what you're doing with it. Edit 2/29/12: I wanted to elaborate on my answer to make it more complete and give you something you can actually use. You're right, the post date is being stored in the post_date field in the database. For example, wordpress uses this line of code in wp-admin/includes/meta-boxes.php to set the variable that is used to display the post's date for drafts scheduled for the future: $date = date_i18n( $datef, strtotime( $post->post_date ) ); However, when using the same code for display on the front end, it returns the current time like you said. I think we can conclude that the $post object data is being prepared differently for the front end. Anyways, it is possible to output the same scheduled date that you have set in the admin. Because it seems like we can't use $post->post_date, we can use $post->post_date_gmt like I said before - the only downside is that your timezone probably isn't the same as GMT. So all you need to do is pull the GMT value and convert it to your timezone. You can add this function to your functions.php and call it wherever you want: <?php /** *@param string $datef (optional) to pass the format you want for the returned date string *@return string */ function get_the_real_post_date($datef = 'M j, Y @ G:i') { global $post; if ( !empty( $timezone_string = get_option( 'timezone_string' ) ) ) { $timezone_object = timezone_open( $timezone_string ); $datetime_object = date_create( $post->post_date_gmt ); $offset_sec = round( timezone_offset_get( $timezone_object, $datetime_object ) ); // if you want $offset_hrs = round( $offset_sec / 3600 ); return date_i18n( $datef, strtotime( $post->post_date_gmt ) + $offset_sec ); } elseif (!empty( $offset_hrs = get_option('gmt_offset') ) ) { // this option shows empty for me so I believe it's only used by WP pre 3.0 // the option stores an integer value for the time offset in hours $offset_sec = $offset_hrs * 3600; return date_i18n( $datef, strtotime( $post->post_date_gmt ) + $offset_sec ); } else { return; // shouldn't happen but... } } Of course you could also change the default time format that is defined in the parameter definition if there is a particular format you would use the most. Let me know if this works for you. I'm curious, what are you using the date for? A: In my drafts, $post->post_date_gmt is just 0000-00-00 00:00:00 – supertrue Jun 4 at 15:08 There is no way to edit the publish date of a draft that has not yet been published. The value for post_date_gmt will be 0000-00-00 00:00:00 until the post is published. Make sure the post has been published at least once. Visibility may be set to private if you do not want it published publicly. Once it is published, you may edit the date and it should save that as the value for post_date and post_date_gmt indefinitely unless you change it again. The post_modified and post_modified_gmt values will continue to change any time you modify the post. I have tested this and post_date_gmt will be set to the current date and time upon publishing the post with visibility set to private. You may also edit the date at this point and it should be updated. If you can modify and save a date on the edit screen of a draft (which you can) – supertrue Feb 29 '12 at 1:36 No, you can't modify and save a date on the edit screen of a draft. Prior to publishing a draft, this same area of the "Publish" metabox on the post editor is used for scheduling a date for the post to be published in the future. Of course you will not be able to set a past date or time for scheduling and the future date probably won't be set for post_date_gmt until it is actually published. A: You can output the scheduled date for a draft post by reading the database using wpdb class through the global $wpdb variable provided by Worpdress (see http://codex.wordpress.org/Class_Reference/wpdb ). Add this to your functions.php: // function to get scheduled date for draft post function unpublished_draft_date(){ global $wpdb; global $post; $post_id = $post->ID; $draft_date_array = $wpdb->get_results( 'SELECT post_date FROM wp_posts WHERE ID = '.$post_id ); $draft_date = $draft_date_array[0]->post_date; return $draft_date; } And this inside your post loop: echo unpublished_draft_date(); I provided just the basic code for getting the date you wanted. It's easy to form the date if you need and input a post id to the function if you don't want to use current post id or you want to use the function outside the loop. Please comment below if you need more specific instructions.
wordpress
{ "language": "en", "length": 1005, "provenance": "stackexchange_00019.jsonl.gz:417355", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43207" }
[ 0.01788330078125, -0.032623291015625, -0.004550933837890625, -0.025482177734375, -0.01468658447265625, -0.0264434814453125, 0.014892578125, -0.0158233642578125, 0.0248870849609375, 0.006488800048828125, -0.00780487060546875, -0.0212860107421875, -0.04425048828125, -0.027923583984375, -0.0311126708984375, -0.03509521484375, 0.071044921875, -0.07220458984375, 0.0270538330078125, 0.004039764404296875, -0.007488250732421875, 0.054656982421875, 0.06634521484375, 0.046630859375, 0.034027099609375, 0.003124237060546875, 0.04046630859375, -0.004547119140625, 0.046905517578125, -0.0016984939575195312, 0.0234832763671875, -0.0673828125, 0.0218658447265625, 0.0152130126953125, -0.004718780517578125, 0.048736572265625, 0.0251312255859375, -0.005443572998046875, 0.0185394287109375, 0.027587890625, 7.152557373046875e-7, -0.00013387203216552734, -0.048583984375, -0.016448974609375, -0.055267333984375, -0.014862060546875, 0.0158538818359375, 0.010406494140625, 0.00704193115234375, 0.022308349609375, 0.021484375, 0.017608642578125, 0.011444091796875, 0.0302581787109375, -0.0205230712890625, -0.0179290771484375, -0.0548095703125, 0.044525146484375, 0.055206298828125, -0.0298309326171875, -0.04736328125, -0.0283660888671875, 0.03558349609375, -0.01216888427734375, -0.0157470703125, 0.0169830322265625, 0.039459228515625, -0.003955841064453125, -0.045867919921875, -0.0170440673828125, 0.03656005859375, -0.0215301513671875, 0.015045166015625, -0.046234130859375, -0.03009033203125, -0.01397705078125, -0.01450347900390625, -0.01422119140625, 0.01531982421875, -0.037567138671875, 0.01007080078125, 0.0142669677734375, -0.039276123046875, -0.007564544677734375, 0.0034389495849609375, 0.00004571676254272461, -0.006381988525390625, -0.0233306884765625, -0.04351806640625, -0.033935546875, -0.040252685546875, -0.0217437744140625, -0.04388427734375, 0.01062774658203125, -0.0191650390625, -0.005451202392578125, 0.0300750732421875, 0.06640625, -0.033477783203125, -0.005718231201171875, -0.039459228515625, 0.007137298583984375, -0.046661376953125, -0.0200042724609375, -0.00679779052734375, 0.01904296875, 0.0272369384765625, -0.0057220458984375, 0.0253753662109375, 0.0162506103515625, -0.017364501953125, 0.02471923828125, -0.03289794921875, -0.039825439453125, -0.0083465576171875, 0.0255584716796875, -0.034515380859375, -0.00183868408203125, 0.01446533203125, -0.01552581787109375, 0.0279693603515625, 0.037872314453125, -0.01456451416015625, -0.0017805099487304688, -0.01161956787109375, -0.003139495849609375, -0.0208740234375, -0.0197296142578125, 0.021270751953125, 0.00939178466796875, -0.01206207275390625, 0.013458251953125, 0.027984619140625, -0.004558563232421875, -0.006633758544921875, -0.01202392578125, -0.0033054351806640625, -0.047698974609375, -0.0284423828125, 0.015106201171875, -0.047515869140625, 0.0199737548828125, 0.05938720703125, -0.07403564453125, -0.061920166015625, 0.0283050537109375, 0.0243377685546875, -0.0182037353515625, -0.02777099609375, -0.041290283203125, -0.0849609375, 0.023162841796875, 0.0190277099609375, 0.0179290771484375, -0.008209228515625, -0.0066070556640625, 0.025634765625, -0.03753662109375, 0.01515960693359375, -0.053924560546875, 0.045379638671875, 0.0118408203125, 0.0009288787841796875, 0.0145721435546875, -0.02374267578125, -0.019012451171875, -0.0418701171875, -0.0183563232421875, 0.018646240234375, 0.0026149749755859375, 0.0043792724609375, -0.0272674560546875, 0.0003323554992675781, -0.0198974609375, -0.033935546875, 0.0227813720703125, 0.0245208740234375, -0.03765869140625, 0.00836181640625, 0.02862548828125, -0.0384521484375, -0.02642822265625, 0.005611419677734375, -0.0196380615234375, -0.01110076904296875, 0.006679534912109375, 0.0097808837890625, -0.01335906982421875, 0.02178955078125, -0.0017108917236328125, 0.0014886856079101562, 0.052947998046875, -0.038116455078125, 0.0212249755859375, -0.00012409687042236328, -0.00014853477478027344, -0.03924560546875, -0.0124969482421875, -0.0015125274658203125, 0.0072174072265625, -0.0340576171875, 0.0401611328125, -0.04766845703125, 0.054168701171875, -0.059967041015625, 0.0263824462890625, -0.0283050537109375, 0.04595947265625, -0.0244140625, 0.0270843505859375, 0.03802490234375, 0.00815582275390625, -0.047393798828125, 0.02215576171875, -0.0096282958984375, 0.006298065185546875, -0.0396728515625, -0.00024962425231933594, -0.022979736328125, 0.0115509033203125, 0.0063018798828125, -0.01214599609375, 0.00010639429092407227, 0.01513671875, 0.0714111328125, -0.003787994384765625, 0.008575439453125, -0.016143798828125, 0.08306884765625, 0.01451873779296875, -0.004802703857421875, -0.0216217041015625, -0.002307891845703125, 0.042724609375, -0.0109405517578125, -0.03204345703125, 0.007091522216796875, -0.0693359375, 0.035980224609375, 0.0518798828125, 0.045074462890625, 0.040252685546875, 0.0408935546875, 0.0155487060546875, 0.0654296875, -0.0180816650390625, 0.048492431640625, -0.041351318359375, 0.01186370849609375, 0.052734375, 0.00623321533203125, 0.0139923095703125, 0.0027446746826171875, -0.06085205078125, 0.0290069580078125, 0.0291595458984375, -0.004413604736328125, -0.01102447509765625, 0.015716552734375, -0.0323486328125, 0.0269775390625, -0.045135498046875, -0.038421630859375, -0.00513458251953125, 0.0042877197265625, 0.02581787109375, 0.050628662109375, 0.04925537109375, 0.00514984130859375, -0.00623321533203125, 0.0012607574462890625, 0.0203399658203125, 0.004337310791015625, 0.0225830078125, -0.032470703125, 0.0223236083984375, 0.0013284683227539062, -0.00691986083984375, -0.01244354248046875, 0.005706787109375, -0.004932403564453125, 0.0195770263671875, 0.02178955078125, -0.001201629638671875, 0.0006155967712402344, -0.037200927734375, 0.02532958984375, 0.019073486328125, 0.03826904296875, 0.032257080078125, 0.05474853515625, 0.027496337890625, 0.0187225341796875, 0.02288818359375, 0.0047760009765625, -0.0017728805541992188, -0.00246429443359375, -0.03167724609375, 0.056488037109375, -0.03778076171875, -0.037139892578125, 0.043548583984375, -0.0002510547637939453, 0.01213836669921875, 0.0033588409423828125, -0.01178741455078125, -0.005611419677734375, -0.00644683837890625, -0.0125885009765625, -0.0009899139404296875, -0.07830810546875, 0.004764556884765625, 0.00595855712890625, 0.0206756591796875, -0.01195526123046875, -0.0247802734375, -0.031341552734375, 0.0057220458984375, -0.06256103515625, 0.0020580291748046875, -0.054656982421875, -0.07220458984375, -0.03656005859375, -0.0355224609375, -0.03338623046875, 0.04608154296875, -0.036956787109375, 0.01020050048828125, -0.025482177734375, -0.0016603469848632812, -0.042724609375, -0.04193115234375, -0.05780029296875, -0.0257110595703125, 0.0007443428039550781, 0.02294921875, -0.00012034177780151367, 0.095947265625, 0.034454345703125, -0.0706787109375, -0.031402587890625, 0.05072021484375, -0.0300750732421875, -0.00937652587890625, 0.007205963134765625, -0.016998291015625, 0.032989501953125, -0.00013566017150878906, -0.006038665771484375, 0.0234222412109375, -0.01015472412109375, -0.0208740234375, -0.0232086181640625, -0.01531219482421875, 0.0067291259765625, 0.0216217041015625, 0.0082855224609375, 0.0085906982421875, 0.026092529296875, -0.044647216796875, 0.012908935546875, -0.01806640625, -0.0253143310546875, -0.0132598876953125, 0.0298919677734375, -0.0211334228515625, -0.042999267578125, 0.003955841064453125, -0.01448822021484375, -0.0029392242431640625, 0.0804443359375, -0.0181884765625, 0.0159454345703125, -0.0204010009765625, -0.051666259765625, -0.039306640625, -0.0058441162109375, -0.005901336669921875, 0.0164031982421875, -0.00885009765625, 0.0246734619140625, 0.0007600784301757812, 0.02935791015625, -0.029083251953125, -0.0687255859375, 0.038177490234375, -0.08544921875, -0.03143310546875, -0.06268310546875, 0.00018358230590820312, -0.00801849365234375, 0.088623046875, -0.046600341796875, -0.0016069412231445312, -0.00574493408203125, 0.0244903564453125, -0.03875732421875, -0.04412841796875, -0.050506591796875, -0.00124359130859375, -0.101806640625, -0.0010881423950195312, -0.016754150390625, -0.0206756591796875, -0.019775390625, 0.002414703369140625, -0.04962158203125, -0.045501708984375, 0.0248565673828125, 0.0113677978515625, -0.0211334228515625, 0.029052734375, -0.002288818359375, -0.02294921875, -0.0128936767578125, 0.0095062255859375, -0.06292724609375, -0.007785797119140625, 0.01256561279296875, 0.01456451416015625, -0.00897216796875, -0.0265045166015625, 0.01024627685546875, 0.041229248046875, 0.051971435546875, 0.0088653564453125, 0.007354736328125, -0.065673828125, 0.038726806640625, 0.034027099609375, 0.0292816162109375, 0.006076812744140625, -0.018890380859375, -0.03314208984375, -0.0278167724609375, -0.00878143310546875, -0.0214080810546875, 0.02691650390625, 0.0028591156005859375, -0.007537841796875, 0.00846099853515625, -0.01067352294921875, -0.0002894401550292969, 0.031951904296875, -0.040557861328125, 0.032073974609375, -0.0173797607421875, -0.01434326171875, 0.04998779296875, 0.016387939453125, -0.01528167724609375, -0.0056304931640625, 0.049774169921875, 0.0131988525390625, -0.047576904296875, 0.006198883056640625, 0.014373779296875, 0.03961181640625, -0.0086517333984375, 0.0491943359375, 0.0175323486328125, -0.034210205078125, 0.07244873046875, -0.004016876220703125, 0.00449371337890625, -0.007843017578125, -0.00881195068359375, 0.0191497802734375, 0.01090240478515625, -0.01154327392578125, -0.0037479400634765625, 0.040496826171875, 0.0024662017822265625, -0.0282745361328125, 0.002277374267578125, 0.0239715576171875, 0.0521240234375, -0.045684814453125, 0.040924072265625, -0.038604736328125, -0.039093017578125, 0.0267486572265625, -0.0261383056640625, -0.0005898475646972656, 0.01377105712890625, 0.0014019012451171875, 0.00809478759765625, -0.00998687744140625, 0.00870513916015625, -0.035186767578125, -0.035308837890625, -0.007965087890625, 0.0242919921875, 0.002025604248046875, 0.01515960693359375, -0.0118560791015625, -0.0033779144287109375, 0.0390625, 0.007110595703125, -0.04449462890625, 0.0175933837890625, -0.02520751953125, 0.0089263916015625, 0.0086822509765625, -0.031951904296875, -0.006992340087890625, 0.01837158203125, 0.0131683349609375, 0.04180908203125, -0.0207061767578125, 0.020843505859375, -0.0005717277526855469, 0.0214080810546875, 0.0186767578125, -0.006092071533203125, 0.03863525390625, 0.04193115234375, 0.017425537109375, 0.0380859375, -0.039154052734375, 0.06689453125, 0.041259765625, 0.034088134765625, 0.02813720703125, -0.043212890625, -0.0038700103759765625, 0.00995635986328125, -0.059967041015625, -0.01503753662109375, 0.0017309188842773438, 0.00727081298828125, -0.00720977783203125, -0.0093231201171875, 0.0015382766723632812, 0.04718017578125, 0.0209503173828125, -0.020294189453125, 0.0229644775390625, 0.0489501953125, 0.01221466064453125, -0.005764007568359375, -0.020050048828125, -0.0117645263671875, 0.0228271484375, 0.0197601318359375, -0.01511383056640625, 0.0374755859375, 0.0290679931640625, -0.044464111328125, 0.01483154296875, -0.027069091796875, -0.015655517578125, -0.00634002685546875, -0.040985107421875, 0.00812530517578125, 0.00933837890625, 0.0284576416015625, -0.0309600830078125, -0.03302001953125, 0.05718994140625, 0.00308990478515625, 0.041229248046875, -0.021942138671875, -0.020751953125, -0.03582763671875, 0.0032520294189453125, 0.043792724609375, 0.011993408203125, 0.009033203125, -0.023834228515625, -0.03448486328125, -0.0171661376953125, 0.0141754150390625, -0.03076171875, -0.00811767578125, -0.02667236328125, 0.033294677734375, 0.045440673828125, -0.00452423095703125, -0.041168212890625, 0.0210723876953125, -0.019134521484375, -0.01346588134765625, 0.0927734375, 0.0211334228515625, 0.05548095703125, -0.021697998046875, 0.08123779296875, 0.0195770263671875, 0.00875091552734375, -0.046905517578125, -0.02655029296875, 0.040313720703125, -0.0274658203125, -0.041656494140625, -0.0078582763671875, -0.020538330078125, -0.04083251953125, -0.03118896484375, -0.0247344970703125, -0.001735687255859375, 0.012481689453125, 0.01103973388671875, -0.00933837890625, 0.0198211669921875, 0.0290985107421875, -0.0135498046875, 0.01027679443359375, -0.042999267578125, -0.004077911376953125, 0.0243072509765625, 0.05328369140625, 0.014556884765625, -0.053497314453125, 0.0013942718505859375, 0.0054931640625, -0.0012941360473632812, 0.0236053466796875, 0.043060302734375, 0.0039215087890625, 0.04022216796875, 0.006687164306640625, 0.033294677734375, 0.0222320556640625, 0.01085662841796875, -0.0758056640625, -0.045867919921875, 0.03619384765625, 0.037017822265625, -0.00470733642578125, 0.06500244140625, 0.0115814208984375, 0.05645751953125, 0.04583740234375, 0.055023193359375, -0.0689697265625, 0.0262603759765625, 0.0272064208984375, -0.033233642578125, 0.0445556640625, 0.006072998046875, -0.0128326416015625, -0.01055908203125, 0.039520263671875, -0.0016622543334960938, -0.02667236328125, 0.033172607421875, 0.02239990234375, 0.0229644775390625, -0.0178680419921875, 0.052520751953125, -0.0097503662109375, -0.09283447265625, 0.015655517578125, 0.03546142578125, 0.0015192031860351562, -0.03314208984375, -0.0112152099609375, -0.0090789794921875, -0.01263427734375, -0.055511474609375, 0.007503509521484375, -0.039031982421875, 0.02618408203125, 0.0290069580078125, 0.0282745361328125, 0.04669189453125, 0.039764404296875, 0.01153564453125, 0.013153076171875, 0.0088653564453125, -0.021881103515625, -0.0003597736358642578, -0.0026607513427734375, 0.0235595703125, 0.037017822265625, 0.0164794921875, 0.01824951171875, -0.00004315376281738281, -0.0277099609375, 0.01029205322265625, -0.0029430389404296875, 0.0343017578125, -0.04046630859375, -0.036529541015625, 0.01198577880859375, -0.04583740234375, 0.005374908447265625, 0.00548553466796875, -0.006275177001953125, -0.0241241455078125, 0.01995849609375, -0.019927978515625, -0.00423431396484375, 0.010009765625, -0.0108642578125, -0.06591796875, 0.062408447265625, -0.007465362548828125, 0.040069580078125, -0.005596160888671875, 0.01042938232421875, -0.0033130645751953125, -0.02081298828125, -0.0672607421875, 0.06756591796875, -0.010772705078125, 0.050506591796875, -0.09295654296875, 0.007587432861328125, -0.01178741455078125, -0.003383636474609375, 0.042877197265625, -0.006439208984375, 0.0030994415283203125, 0.0038471221923828125, 0.10174560546875, 0.055450439453125, 0.0287933349609375, -0.009307861328125, 0.035369873046875, 0.052398681640625, 0.038055419921875, -0.0288543701171875, 0.032318115234375, -0.02294921875, 0.00881195068359375, 0.07257080078125, 0.0236663818359375, 0.01654052734375, 0.0119171142578125, -0.033172607421875, -0.02532958984375, 0.0089569091796875, 0.0190582275390625, -0.006664276123046875, 0.0204010009765625, 0.016326904296875, 0.060394287109375, -0.08941650390625, -0.0254669189453125, -0.0220489501953125, 0.05743408203125, 0.023162841796875, -0.0167388916015625, 0.020416259765625, 0.006534576416015625, 0.00983428955078125, 0.0196990966796875, -0.00862884521484375, 0.02435302734375, 0.0167694091796875, 0.01204681396484375, 0.032806396484375, 0.0080413818359375, -0.0208587646484375, 0.01555633544921875, 0.05242919921875, 0.035186767578125, -0.040557861328125, 0.0487060546875, 0.03289794921875, 0.0036773681640625, -0.036529541015625, -0.074462890625, -0.032745361328125, -0.03253173828125, -0.0246429443359375, 0.00432586669921875, -0.0382080078125, -0.0211334228515625, 0.05255126953125, 0.00815582275390625, 0.0023097991943359375, 0.004863739013671875, -0.0562744140625, -0.0221405029296875, 0.0203857421875, 0.004497528076171875, 0.027679443359375, 0.00518035888671875, 0.04095458984375, -0.021697998046875, -0.0017633438110351562, 0.035247802734375, 0.01551055908203125, 0.03765869140625, -0.058319091796875, 0.042938232421875, 0.004924774169921875, 0.005275726318359375, -0.0034618377685546875, 0.020263671875, 0.01441192626953125, 0.063232421875, 0.0248260498046875, -0.06353759765625, -0.0149993896484375, 0.037353515625, -0.034027099609375, -0.027435302734375, -0.0445556640625, -0.0281219482421875, -0.0112457275390625, -0.015411376953125, 0.0579833984375, -0.037445068359375, 0.0225830078125, -0.055023193359375, 0.054046630859375, -0.0204010009765625, 0.01338958740234375, 0.0386962890625, -0.02386474609375, 0.0275115966796875, -0.055267333984375, 0.01288604736328125, 0.038787841796875, -0.04754638671875, -0.056243896484375, -0.02294921875, 0.00849151611328125, -0.00003266334533691406, 0.0302734375, -0.0255584716796875, 0.017852783203125, 0.0227813720703125, -0.0189361572265625, -0.0095977783203125, -0.0035381317138671875, 0.025390625, -0.0166168212890625, -0.055938720703125, -0.0106353759765625, -0.0262298583984375, 0.0007958412170410156, -0.0159912109375, 0.06915283203125, 0.00292205810546875, 0.0027923583984375, -0.02789306640625, 0.057281494140625, -0.09686279296875, -0.0467529296875, 0.0447998046875, -0.052215576171875, -0.0001850128173828125, 0.035125732421875, -0.00817108154296875, -0.005390167236328125, 0.038421630859375, -0.02642822265625, -0.00832366943359375, -0.020965576171875, 0.0225982666015625, -0.00902557373046875, 0.0131683349609375, -0.01552581787109375, 0.025604248046875, 0.0792236328125, 0.01380157470703125, 0.0187530517578125, -0.004703521728515625, 0.004405975341796875, 0.008148193359375, 0.040313720703125, -0.03814697265625, 0.032623291015625, -0.0221405029296875, 0.05804443359375, 0.0511474609375, -0.00244903564453125, 0.0246734619140625, -0.024688720703125, -0.0201873779296875, 0.0044403076171875, 0.0276641845703125, -0.02496337890625, 0.008544921875, 0.048614501953125, -0.0020732879638671875, -0.026153564453125, 0.03076171875, -0.017364501953125, 0.0128631591796875, -0.0253448486328125, 0.0194244384765625, -0.009063720703125, -0.018341064453125, -0.0256500244140625, -0.050445556640625, 0.01032257080078125, 0.00231170654296875, -0.00794219970703125, -0.0172119140625, 0.003276824951171875, -0.0232696533203125, -0.01395416259765625, 0.0033588409423828125, -0.026397705078125, 0.025146484375, 0.0022220611572265625, -0.022552490234375, -0.0452880859375, 0.0088043212890625, 0.004123687744140625, 0.037445068359375, -0.01557159423828125, -0.0010242462158203125, -0.02056884765625, 0.0269317626953125, 0.003765106201171875, -0.0014600753784179688, 0.00949859619140625, 0.0010061264038085938, -0.0197906494140625, 0.0181884765625, 0.0015354156494140625, 0.03826904296875, -0.00780487060546875, -0.030609130859375, -0.0186309814453125, 0.023651123046875, -0.01073455810546875, -0.02410888671875, 0.01611328125, -0.0208282470703125, -0.0170745849609375, -0.008148193359375, 0.0160064697265625, 0.0221710205078125, -0.0183868408203125, -0.045196533203125, -0.00719451904296875, 0.006378173828125, -0.02972412109375, -0.0013151168823242188, 0.0031681060791015625, -0.01419830322265625, 0.0246734619140625, 0.01922607421875, -0.032562255859375, -0.0123138427734375, -0.005573272705078125, -0.01068878173828125, 0.06854248046875, 0.017364501953125, -0.0082855224609375, -0.0292205810546875, -0.038482666015625, -0.058502197265625, -0.0051422119140625, -0.01178741455078125, -0.01153564453125, 0.0276336669921875, 0.01511383056640625, -0.0279693603515625, 0.0045013427734375, 0.0227508544921875, 0.0092010498046875, -0.0059356689453125, -0.021728515625, -0.07818603515625, -0.05181884765625, 0.068603515625, 0.0736083984375, 0.037109375, -0.01654052734375, 0.0267791748046875, -0.00021350383758544922, -0.08782958984375, 0.01512908935546875, 0.03497314453125, -0.0364990234375, 0.007312774658203125, 0.0017910003662109375, -0.012664794921875, 0.00347137451171875, 0.0034389495849609375, -0.01861572265625, -0.01485443115234375, -0.0297088623046875, -0.018157958984375, -0.04144287109375, 0.0179443359375, 0.0295562744140625, -0.03875732421875, -0.0253143310546875, 0.0115203857421875, -0.00655364990234375, -0.00884246826171875, 0.0178375244140625, 0.02239990234375, 0.0288543701171875, -0.0031528472900390625, -0.034942626953125, 0.03521728515625, -0.01459503173828125, 0.018798828125, -0.02447509765625, -0.00777435302734375, -0.0244598388671875, -0.023712158203125, -0.05517578125, 0.052001953125, 0.0172882080078125, -0.033721923828125, 0.08148193359375, 0.00018405914306640625, 0.030181884765625, -0.00449371337890625, 0.032806396484375, -0.0179595947265625, -0.02276611328125, 0.0006961822509765625, -0.0267181396484375, -0.00391387939453125, -0.011505126953125, -0.0209197998046875, 0.00177001953125, -0.00888824462890625, -0.031982421875, -0.0267791748046875, 0.00389862060546875 ]
2a2c2de71ad1990d8377bdffd22bdd9517ebe476
Wordpress Stackexchange Q: Get the user type of an author I'm working on a site and I need to get the type of user the author is so I can mark it. The idea is that if an Admin level user post something it has a [ADMIN] tag or something next to their name. I know how to compare things within php but how do I check to see what user type an author is if possible? I can't seem to find any good documentation on the matter. A: One way would be to use the get_the_author_meta function and pass it user_level More info on the function: http://codex.wordpress.org/Function_Reference/get_the_author_meta Then, see this chart to convert user levels to roles (unless you have created custom roles): http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion Example code $level = get_the_author_meta('user_level'); if($level >= 8) { // Is admin // do something } else if ($level > 2 && $level < 8) { // is editor // do something else }
Q: Get the user type of an author I'm working on a site and I need to get the type of user the author is so I can mark it. The idea is that if an Admin level user post something it has a [ADMIN] tag or something next to their name. I know how to compare things within php but how do I check to see what user type an author is if possible? I can't seem to find any good documentation on the matter. A: One way would be to use the get_the_author_meta function and pass it user_level More info on the function: http://codex.wordpress.org/Function_Reference/get_the_author_meta Then, see this chart to convert user levels to roles (unless you have created custom roles): http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion Example code $level = get_the_author_meta('user_level'); if($level >= 8) { // Is admin // do something } else if ($level > 2 && $level < 8) { // is editor // do something else } A: in the loop: the_author_meta('user_level'); will get you the capability number of the author. which is close, but not quite what you want.... though you could translate that into the default WP roles. to get the roles, you could do the following (which will spit out ALL the roles a user has) : $user = new WP_User( get_the_author_meta('ID')); if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) echo $role; }; http://wordpress.org/support/topic/get-a-users-role-by-user-id?replies=20#post-1363118
wordpress
{ "language": "en", "length": 236, "provenance": "stackexchange_00019.jsonl.gz:417391", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43329" }
[ 0.0185394287109375, 0.0159149169921875, -0.021209716796875, -0.02642822265625, 0.0108795166015625, -0.010406494140625, 0.0109710693359375, -0.032073974609375, -0.0227813720703125, 0.034881591796875, 0.0261077880859375, 0.007488250732421875, -0.0169830322265625, -0.0253448486328125, -0.00803375244140625, -0.0308380126953125, 0.0077362060546875, 0.00958251953125, 0.0267791748046875, -0.016387939453125, 0.01502227783203125, -0.027618408203125, 0.03955078125, -0.025115966796875, 0.0215301513671875, -0.009918212890625, 0.07464599609375, -0.031951904296875, 0.0374755859375, -0.00679779052734375, 0.0283203125, -0.0298919677734375, -0.029022216796875, 0.027679443359375, 0.031768798828125, 0.0294342041015625, 0.0093231201171875, 0.028076171875, 0.0706787109375, -0.031402587890625, 0.0201416015625, -0.0044708251953125, -0.04345703125, 0.0118408203125, -0.042144775390625, -0.056304931640625, 0.040313720703125, 0.01507568359375, 0.0164337158203125, 0.00016963481903076172, 0.00966644287109375, -0.033843994140625, 0.02471923828125, -0.016387939453125, -0.0192108154296875, -0.009521484375, 0.049957275390625, -0.058349609375, 0.0207977294921875, -0.07745361328125, -0.026336669921875, -0.015838623046875, 0.0667724609375, 0.043304443359375, -0.01058197021484375, 0.00597381591796875, 0.0229339599609375, 0.014556884765625, 0.0037021636962890625, -0.0277252197265625, -0.0081634521484375, -0.007137298583984375, -0.03265380859375, 0.01432037353515625, -0.0301513671875, -0.0270538330078125, 0.00640106201171875, -0.045989990234375, 0.0291900634765625, 0.01885986328125, -0.0018167495727539062, 0.009063720703125, -0.01406097412109375, -0.0021076202392578125, 0.0258941650390625, 0.031585693359375, -0.01050567626953125, -0.016265869140625, -0.02154541015625, 0.00994110107421875, -0.02154541015625, -0.0235595703125, 0.0213470458984375, 0.0195465087890625, -0.028167724609375, -0.00927734375, 0.01255035400390625, 0.021514892578125, -0.0049285888671875, -0.0142669677734375, 0.00017333030700683594, -0.03173828125, -0.0281219482421875, -0.0209197998046875, 0.02783203125, 0.04754638671875, -0.0291900634765625, -0.01007843017578125, 0.050323486328125, 0.0276336669921875, 0.025177001953125, 0.0017976760864257812, -0.0557861328125, -0.0195465087890625, 0.0019130706787109375, 0.0282135009765625, -0.07110595703125, 0.0472412109375, -0.0012216567993164062, 0.05743408203125, 0.019683837890625, 0.05047607421875, 0.0328369140625, -0.0423583984375, 0.01172637939453125, 0.01499176025390625, -0.01224517822265625, -0.0760498046875, 0.0119171142578125, 0.002483367919921875, -0.01226806640625, 0.01389312744140625, 0.00995635986328125, 0.01139068603515625, -0.0031108856201171875, -0.0126800537109375, 0.003513336181640625, 0.006381988525390625, -0.0173797607421875, 0.044708251953125, -0.02880859375, -0.02734375, 0.0154266357421875, -0.01001739501953125, -0.03741455078125, 0.043914794921875, 0.0043182373046875, -0.0103759765625, -0.00408172607421875, -0.0733642578125, -0.029296875, -0.035888671875, 0.00463104248046875, 0.0218505859375, 0.00027298927307128906, -0.007389068603515625, 0.032623291015625, -0.0253753662109375, -0.00494384765625, -0.04290771484375, 0.01995849609375, 0.00907135009765625, 0.0245361328125, 0.00424957275390625, 0.01387786865234375, -0.0252532958984375, -0.046234130859375, 0.006298065185546875, 0.0271759033203125, -0.044097900390625, 0.06695556640625, 0.0016946792602539062, 0.0198974609375, 0.0279388427734375, 0.0203399658203125, 0.01525115966796875, 0.0111846923828125, 0.0160369873046875, 0.0051116943359375, 0.0149993896484375, -0.00966644287109375, -0.0196380615234375, 0.034271240234375, -0.01488494873046875, -0.008941650390625, -0.005126953125, 0.01154327392578125, 0.0034427642822265625, 0.0222320556640625, 0.0086517333984375, -0.009246826171875, 0.03277587890625, 0.0172882080078125, -0.0036563873291015625, -0.0104217529296875, -0.0157318115234375, -0.0074462890625, 0.00838470458984375, -0.030181884765625, 0.00380706787109375, 0.013824462890625, 0.002979278564453125, -0.0121307373046875, -0.037353515625, -0.077880859375, -0.0101318359375, -0.0199432373046875, 0.04840087890625, 0.062408447265625, 0.02337646484375, -0.004817962646484375, 0.01654052734375, -0.039703369140625, 0.00397491455078125, -0.0246429443359375, 0.04180908203125, 0.01064300537109375, 0.00603485107421875, 0.0056304931640625, 0.007671356201171875, 0.0007128715515136719, 0.0192413330078125, -0.00949859619140625, 0.01045989990234375, 0.0250244140625, 0.0116119384765625, -0.012542724609375, 0.006404876708984375, 0.0640869140625, 0.0279083251953125, 0.0205078125, -0.021087646484375, 0.049591064453125, -0.0030364990234375, -0.04327392578125, 0.0172271728515625, 0.0191497802734375, -0.05413818359375, -0.0108642578125, 0.057220458984375, 0.036285400390625, -0.01922607421875, 0.007602691650390625, 0.019287109375, 0.01409149169921875, -0.0169525146484375, 0.0244293212890625, -0.01152801513671875, -0.00859832763671875, 0.050018310546875, -0.01032257080078125, 0.0232696533203125, 0.01168060302734375, -0.03900146484375, -0.007511138916015625, 0.061798095703125, -0.000072479248046875, 0.032867431640625, -0.03369140625, 0.003143310546875, -0.00011664628982543945, -0.034698486328125, -0.01102447509765625, -0.0263214111328125, 0.0175323486328125, 0.01290130615234375, 0.0284423828125, 0.035491943359375, -0.038330078125, -0.0200958251953125, 0.0208892822265625, 0.072265625, 0.00702667236328125, 0.04754638671875, 0.0159454345703125, 0.01309967041015625, -0.006076812744140625, -0.0247650146484375, 0.0043792724609375, 0.033660888671875, -0.019195556640625, 0.016510009765625, -0.0142364501953125, -0.0026073455810546875, -0.01049041748046875, 0.0002942085266113281, 0.0146942138671875, 0.0008831024169921875, -0.0202484130859375, -0.00705718994140625, 0.0283660888671875, -0.001232147216796875, -0.017913818359375, 0.01404571533203125, -0.0292510986328125, -0.0125732421875, 0.03424072265625, -0.05999755859375, 0.060760498046875, -0.03558349609375, 0.047698974609375, 0.0745849609375, -0.0033054351806640625, 0.001598358154296875, -0.0063629150390625, -0.03509521484375, -0.027130126953125, 0.055694580078125, 0.0256500244140625, -0.04827880859375, -0.0004622936248779297, 0.0494384765625, 0.0211181640625, 0.018890380859375, 0.00939178466796875, -0.0178070068359375, -0.01015472412109375, 0.01407623291015625, -0.01468658447265625, 0.0108795166015625, 0.018768310546875, -0.0714111328125, -0.0177154541015625, -0.032745361328125, -0.054473876953125, -0.001644134521484375, 0.0073699951171875, -0.0117034912109375, 0.03424072265625, -0.0186004638671875, -0.0360107421875, -0.01739501953125, -0.059844970703125, -0.00957489013671875, -0.004924774169921875, -0.0054931640625, -0.0003561973571777344, 0.00836181640625, -0.0118255615234375, -0.06402587890625, -0.030364990234375, 0.043731689453125, 0.01323699951171875, -0.00890350341796875, -0.0223388671875, -0.0092010498046875, 0.038909912109375, -0.0177154541015625, -0.02197265625, 0.0214691162109375, 0.00412750244140625, -0.0175933837890625, 0.01364898681640625, -0.0260467529296875, 0.04791259765625, 0.00839996337890625, -0.043060302734375, 0.01395416259765625, 0.0699462890625, -0.038818359375, -0.01160430908203125, 0.042816162109375, -0.01141357421875, 0.03729248046875, -0.031768798828125, -0.03955078125, 0.0260467529296875, 0.033599853515625, 0.0362548828125, 0.042938232421875, -0.029571533203125, 0.019775390625, 0.015594482421875, 0.0197296142578125, 0.021484375, 0.007373809814453125, -0.020416259765625, -0.02972412109375, 0.017425537109375, -0.0196685791015625, 0.00018131732940673828, -0.0221405029296875, -0.007305145263671875, -0.00910186767578125, -0.0814208984375, 0.0692138671875, -0.020172119140625, -0.01438140869140625, -0.05419921875, -0.045135498046875, -0.002895355224609375, 0.11346435546875, 0.01739501953125, 0.00870513916015625, -0.01445770263671875, -0.011566162109375, -0.0570068359375, -0.007678985595703125, -0.09222412109375, 0.0296478271484375, -0.06585693359375, -0.00336456298828125, -0.00958251953125, -0.0079345703125, -0.04168701171875, 0.06536865234375, -0.03314208984375, -0.017333984375, 0.02984619140625, -0.0416259765625, 0.003627777099609375, 0.032012939453125, -0.01702880859375, 0.02276611328125, -0.016448974609375, -0.041046142578125, -0.0562744140625, -0.0303955078125, -0.018646240234375, 0.06304931640625, -0.000728607177734375, 0.006011962890625, -0.0189666748046875, 0.04437255859375, 0.01145172119140625, 0.005596160888671875, -0.017608642578125, 0.004055023193359375, -0.0032215118408203125, -0.0200958251953125, -0.029449462890625, -0.02435302734375, -0.022003173828125, -0.01343536376953125, -0.0211944580078125, -0.022216796875, -0.02972412109375, -0.01087188720703125, -0.007732391357421875, -0.023651123046875, -0.03076171875, -0.0428466796875, -0.038116455078125, 0.00888824462890625, -0.015777587890625, -0.005397796630859375, -0.0384521484375, -0.057830810546875, 0.07415771484375, 0.034698486328125, -0.0059661865234375, -0.0237884521484375, 0.079345703125, 0.0115966796875, -0.045135498046875, 0.020233154296875, -0.0123291015625, 0.035797119140625, -0.0151214599609375, 0.039093017578125, 0.040496826171875, -0.021759033203125, 0.03546142578125, 0.0026531219482421875, 0.0120697021484375, -0.0262451171875, 0.047454833984375, -0.02557373046875, -0.03485107421875, 0.0289154052734375, -0.04119873046875, 0.0196380615234375, -0.0035877227783203125, -0.0209197998046875, -0.001495361328125, 0.00925445556640625, 0.042877197265625, -0.02734375, 0.026123046875, -0.031097412109375, -0.03607177734375, 0.01036834716796875, -0.0870361328125, -0.01178741455078125, -0.0134429931640625, 0.0109710693359375, -0.0267791748046875, -0.0011529922485351562, 0.00936126708984375, -0.0215606689453125, -0.0005660057067871094, -0.01483154296875, 0.033843994140625, -0.039093017578125, 0.00492095947265625, -0.00981903076171875, 0.001445770263671875, 0.04833984375, 0.0050201416015625, -0.06787109375, 0.045166015625, -0.0249176025390625, 0.0079345703125, 0.0261993408203125, -0.0198974609375, 0.024139404296875, 0.0170745849609375, -0.022796630859375, 0.001216888427734375, -0.041046142578125, 0.005947113037109375, -0.045928955078125, -0.003093719482421875, -0.04437255859375, 0.01520538330078125, -0.03179931640625, 0.09759521484375, -0.0243682861328125, 0.045440673828125, -0.005535125732421875, 0.03765869140625, 0.039215087890625, 0.0099945068359375, 0.02587890625, 0.00627899169921875, -0.00972747802734375, -0.033233642578125, -0.00083160400390625, -0.029754638671875, 0.019012451171875, 0.0269622802734375, 0.034210205078125, 0.039825439453125, -0.0200347900390625, -0.013275146484375, -0.034088134765625, 0.00237274169921875, -0.004764556884765625, -0.004467010498046875, -0.01551055908203125, -0.01201629638671875, 0.0033512115478515625, 0.01494598388671875, -0.0164337158203125, -0.01395416259765625, 0.0035858154296875, -0.0159912109375, 0.0124664306640625, 0.0137939453125, -0.035430908203125, 0.0172576904296875, 0.02960205078125, -0.10235595703125, -0.046417236328125, 0.0158538818359375, -0.057037353515625, 0.00981903076171875, -0.01084136962890625, -0.03472900390625, 0.01471710205078125, -0.022613525390625, 0.0172271728515625, -0.062164306640625, 0.043121337890625, -0.017669677734375, -0.006710052490234375, 0.05712890625, 0.02423095703125, -0.06634521484375, 0.02056884765625, -0.0758056640625, -0.0018367767333984375, -0.031707763671875, -0.0313720703125, -0.046875, 0.004852294921875, -0.0146026611328125, 0.01349639892578125, -0.0017843246459960938, 0.0290985107421875, 0.048370361328125, 0.03289794921875, -0.02587890625, 0.0238189697265625, 0.004730224609375, 0.06011962890625, -0.008758544921875, 0.0192413330078125, 0.015777587890625, 0.037811279296875, -0.012603759765625, 0.00136566162109375, 0.004863739013671875, 0.01303863525390625, -0.006244659423828125, -0.04144287109375, 0.03253173828125, -0.04571533203125, 0.0380859375, -0.004917144775390625, -0.006618499755859375, 0.0058746337890625, 0.0135650634765625, -0.0183258056640625, -0.01544952392578125, 0.0310516357421875, 0.004680633544921875, -0.0091552734375, -0.00528717041015625, 0.045806884765625, -0.0287322998046875, 0.0008406639099121094, -0.01155853271484375, -0.004917144775390625, -0.00814056396484375, 0.032379150390625, -0.03955078125, 0.0212860107421875, 0.056732177734375, 0.01450347900390625, 0.0391845703125, 0.016082763671875, 0.013824462890625, 0.013671875, -0.031707763671875, 0.003536224365234375, 0.0131072998046875, -0.0090484619140625, -0.017913818359375, 0.020904541015625, 0.011383056640625, -0.00507354736328125, 0.01152801513671875, 0.065185546875, 0.06695556640625, -0.0955810546875, 0.0186309814453125, 0.030181884765625, 0.0198822021484375, 0.01425933837890625, -0.050811767578125, -0.013336181640625, -0.0838623046875, 0.0853271484375, -0.025177001953125, -0.023406982421875, 0.004123687744140625, -0.0418701171875, 0.0027828216552734375, -0.03607177734375, 0.044830322265625, 0.0157318115234375, 0.06842041015625, -0.01194000244140625, -0.04315185546875, 0.027130126953125, -0.010772705078125, 0.0260009765625, -0.0097503662109375, 0.01328277587890625, -0.0280303955078125, 0.023773193359375, -0.0191802978515625, -0.01348114013671875, -0.03515625, 0.00881195068359375, 0.050994873046875, 0.034881591796875, -0.006320953369140625, -0.03656005859375, 0.04541015625, -0.048431396484375, -0.0301361083984375, -0.05194091796875, -0.0416259765625, 0.0220184326171875, 0.006595611572265625, 0.02410888671875, -0.0025730133056640625, -0.0247039794921875, -0.004177093505859375, -0.001674652099609375, 0.047760009765625, 0.0220947265625, -0.051239013671875, 0.033843994140625, 0.0018491744995117188, -0.020263671875, 0.0222625732421875, 0.007537841796875, -0.02899169921875, -0.00997161865234375, 0.02154541015625, -0.01383209228515625, 0.0142669677734375, 0.044403076171875, -0.042816162109375, -0.01482391357421875, 0.01132965087890625, 0.00662994384765625, 0.020904541015625, -0.02081298828125, -0.01812744140625, -0.0357666015625, -0.019012451171875, 0.04803466796875, 0.03973388671875, 0.007354736328125, -0.045928955078125, -0.03662109375, -0.00923919677734375, 0.062744140625, 0.0701904296875, 0.0288543701171875, -0.072021484375, 0.0008749961853027344, 0.036651611328125, 0.006336212158203125, -0.008514404296875, 0.08087158203125, 0.019866943359375, 0.004421234130859375, 0.058349609375, 0.004375457763671875, 0.051971435546875, -0.02423095703125, -0.00873565673828125, 0.016693115234375, 0.02264404296875, 0.00421905517578125, -0.0105438232421875, -0.0182342529296875, -0.0474853515625, -0.0139007568359375, 0.0262298583984375, -0.01399993896484375, 0.0175018310546875, 0.04608154296875, 0.069580078125, -0.033660888671875, 0.0252532958984375, -0.033294677734375, 0.066650390625, 0.0290679931640625, -0.0015354156494140625, 0.0214385986328125, 0.02001953125, -0.00748443603515625, -0.005603790283203125, -0.0016069412231445312, 0.0250091552734375, 0.0005726814270019531, 0.06414794921875, 0.01093292236328125, 0.007030487060546875, -0.0501708984375, 0.020599365234375, 0.0160064697265625, 0.058135986328125, -0.05328369140625, -0.0882568359375, -0.0022029876708984375, 0.004459381103515625, 0.041656494140625, 0.036407470703125, 0.043365478515625, 0.037261962890625, 0.086181640625, -0.053558349609375, -0.00334930419921875, 0.001201629638671875, 0.03314208984375, -0.00757598876953125, -0.0018758773803710938, -0.007610321044921875, -0.017730712890625, -0.05194091796875, 0.0157318115234375, 0.00910186767578125, 0.01096343994140625, 0.020599365234375, 0.01580810546875, 0.040069580078125, -0.00498199462890625, 0.020172119140625, -0.0096588134765625, -0.036285400390625, -0.0020389556884765625, -0.01739501953125, -0.038970947265625, 0.003444671630859375, 0.033905029296875, -0.0196685791015625, -0.0179595947265625, -0.00836181640625, 0.00864410400390625, -0.0112762451171875, -0.0178680419921875, 0.042633056640625, -0.0167999267578125, -0.030975341796875, -0.03839111328125, 0.0204010009765625, 0.026885986328125, 0.006343841552734375, 0.02728271484375, 0.01299285888671875, 0.0389404296875, -0.00011098384857177734, 0.03857421875, 0.003475189208984375, 0.004810333251953125, -0.006465911865234375, -0.020660400390625, 0.0014390945434570312, 0.0057525634765625, -0.067138671875, 0.013336181640625, -0.06640625, -0.056365966796875, 0.0347900390625, 0.02960205078125, -0.038238525390625, 0.029266357421875, -0.01275634765625, -0.023834228515625, 0.03582763671875, -0.00653839111328125, 0.00009363889694213867, 0.055755615234375, 0.021209716796875, -0.001918792724609375, -0.0268096923828125, -0.00969696044921875, -0.017364501953125, 0.0067138671875, 0.038330078125, 0.024169921875, 0.020233154296875, 0.0289459228515625, -0.048828125, 0.050994873046875, -0.0950927734375, -0.0565185546875, 0.06683349609375, -0.030914306640625, -0.025177001953125, 0.0121307373046875, -0.08282470703125, 0.027069091796875, 0.03375244140625, 0.05206298828125, -0.01247406005859375, 0.0293731689453125, 0.032379150390625, 0.0196685791015625, 0.01239013671875, -0.043731689453125, -0.0267333984375, -0.030517578125, -0.01508331298828125, 0.005218505859375, -0.0173797607421875, -0.0024566650390625, 0.0012683868408203125, -0.016357421875, -0.046722412109375, -0.001804351806640625, -0.0088653564453125, -0.040802001953125, 0.0128936767578125, 0.022857666015625, -0.028533935546875, 0.0635986328125, -0.006420135498046875, 0.03717041015625, 0.0183258056640625, 0.057281494140625, 0.056915283203125, -0.0189361572265625, 0.016937255859375, 0.010467529296875, 0.031951904296875, -0.008575439453125, -0.01270294189453125, 0.01403045654296875, -0.0029850006103515625, -0.04095458984375, -0.0038433074951171875, -0.03558349609375, -0.0265350341796875, 0.039794921875, 0.0169219970703125, 0.040374755859375, -0.007633209228515625, -0.03155517578125, 0.007244110107421875, 0.0031185150146484375, -0.029998779296875, -0.00017774105072021484, 0.0232391357421875, -0.05169677734375, 0.029052734375, -0.0299072265625, -0.014312744140625, 0.0343017578125, 0.05914306640625, -0.043701171875, 0.0374755859375, -0.0178070068359375, -0.0589599609375, 0.0026607513427734375, 0.05865478515625, 0.072265625, -0.0396728515625, 0.0041961669921875, 0.04327392578125, 0.0252227783203125, 0.0986328125, -0.04632568359375, -0.00466156005859375, -0.007488250732421875, 0.04052734375, -0.0234527587890625, -0.07196044921875, 0.02587890625, -0.0390625, -0.01727294921875, -0.0257568359375, 0.038330078125, 0.067626953125, 0.00783538818359375, -0.0100860595703125, 0.044219970703125, -0.0162353515625, -0.0186767578125, -0.02838134765625, 0.01467132568359375, 0.020599365234375, -0.026458740234375, -0.0168609619140625, 0.0014333724975585938, -0.03631591796875, -0.0069427490234375, 0.004405975341796875, -0.040069580078125, 0.054779052734375, -0.0035686492919921875, -0.06524658203125, -0.010528564453125, -0.01033782958984375, -0.03375244140625, -0.009246826171875, 0.0053558349609375, 0.005435943603515625, 0.043914794921875, -0.0285797119140625, 0.021453857421875, -0.0078277587890625, 0.04315185546875, -0.0037593841552734375, -0.0252838134765625, -0.00945281982421875, -0.0122528076171875, 0.043365478515625, 0.033050537109375, 0.01317596435546875, -0.02593994140625, -0.001209259033203125, 0.010406494140625, -0.046875, -0.0164947509765625, 0.0304718017578125, -0.06561279296875, 0.0016040802001953125, -0.01129913330078125, -0.03863525390625, -0.0184173583984375, 0.017425537109375, -0.05224609375, 0.0105743408203125, 0.00620269775390625, -0.0037078857421875, -0.0308074951171875, -0.00817108154296875, -0.0318603515625, -0.006397247314453125, -0.01268768310546875, -0.0121307373046875, 0.0157928466796875, -0.029296875, -0.004169464111328125, -0.00811004638671875, 0.0036067962646484375, -0.01355743408203125, 0.019989013671875, -0.011505126953125, -0.0128326416015625, -0.029876708984375, 0.02294921875, 0.004467010498046875, 0.018463134765625, -0.01161956787109375, 0.01213836669921875, 0.028594970703125, 0.03265380859375, -0.0034008026123046875, 0.02764892578125, -0.01090240478515625, 0.03369140625, -0.01482391357421875, 0.0518798828125, 0.0050048828125, -0.0174102783203125, 0.0261993408203125, -0.03131103515625, 0.006900787353515625, 0.012054443359375, 0.019287109375, -0.03558349609375, 0.0203704833984375, 0.041748046875, 0.0023174285888671875, 0.026214599609375 ]
4f471febc35a5d6d5e8cff30fc327da8f0ac2a2b
Wordpress Stackexchange Q: Get ID of "root-page" I have an url that looks like this http://apploadny.appload.nu/tjanster/webbutveckling/ I want to get the ID of the page "tjanster", how can i do that? A: I think what you need is: <?php $post_id = $post->ID; //or somehow get the current post ID. $ancestors = get_post_ancestors($post_id) //$ancestors is an array of post IDs starting with the current post going up the root //'Pop' the root ancestor out or returns the current ID if the post has no ancestors. $root_id = (!empty($ancestors) ? array_pop($ancestors): $post_id); For more info check: http://codex.wordpress.org/Function_Reference/get_post_ancestors
Q: Get ID of "root-page" I have an url that looks like this http://apploadny.appload.nu/tjanster/webbutveckling/ I want to get the ID of the page "tjanster", how can i do that? A: I think what you need is: <?php $post_id = $post->ID; //or somehow get the current post ID. $ancestors = get_post_ancestors($post_id) //$ancestors is an array of post IDs starting with the current post going up the root //'Pop' the root ancestor out or returns the current ID if the post has no ancestors. $root_id = (!empty($ancestors) ? array_pop($ancestors): $post_id); For more info check: http://codex.wordpress.org/Function_Reference/get_post_ancestors A: I think a better solution than @alexleonard 's is to use the parent_id parameter of the post object. $parent = ( $post_obj->parent_id != 0 ) ? $post_obj->parent_id : false; Haven't tested that, so make sure you check for spelling mistakes and such.
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:417403", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43372" }
[ 0.03570556640625, 0.036529541015625, 0.004222869873046875, 0.0015516281127929688, 0.039703369140625, -0.01885986328125, 0.03118896484375, -0.048492431640625, 0.0160980224609375, 0.01459503173828125, -0.0246429443359375, -0.008331298828125, -0.01806640625, -0.014190673828125, -0.01555633544921875, -0.0276336669921875, 0.055328369140625, -0.06146240234375, 0.024444580078125, -0.0013790130615234375, 0.01995849609375, 0.0100250244140625, 0.052520751953125, 0.0137939453125, 0.04656982421875, -0.07977294921875, 0.057281494140625, -0.00006914138793945312, 0.038543701171875, -0.0189971923828125, 0.0264129638671875, -0.0094451904296875, 0.0120391845703125, -0.0302886962890625, 0.052215576171875, -0.01030731201171875, 0.039886474609375, -0.02252197265625, 0.031494140625, -0.0030918121337890625, 0.021453857421875, 0.0018892288208007812, -0.02655029296875, -0.0185089111328125, -0.04278564453125, -0.049774169921875, 0.047454833984375, 0.0181427001953125, 0.022125244140625, -0.0127716064453125, 0.0016565322875976562, 0.0274658203125, -0.0015668869018554688, 0.034393310546875, -0.0059814453125, -0.0004677772521972656, 0.0273590087890625, -0.00489044189453125, 0.037139892578125, -0.051605224609375, -0.05267333984375, -0.0177459716796875, 0.04473876953125, -0.0106964111328125, 0.01113128662109375, -0.01154327392578125, 0.05010986328125, 0.0282745361328125, -0.039581298828125, -0.0269012451171875, 0.007171630859375, 0.01149749755859375, 0.013519287109375, -0.00342559814453125, -0.01442718505859375, -0.050140380859375, 0.0178375244140625, -0.02227783203125, -0.0017042160034179688, 0.0182037353515625, -0.042816162109375, -0.042816162109375, -0.10955810546875, -0.00554656982421875, 0.007114410400390625, 0.032867431640625, -0.0246734619140625, -0.0086517333984375, -0.050567626953125, 0.00832366943359375, -0.050323486328125, -0.02166748046875, -0.01294708251953125, 0.0001499652862548828, -0.031890869140625, 0.0197601318359375, 0.015533447265625, 0.0670166015625, -0.054901123046875, -0.00921630859375, -0.03192138671875, -0.023345947265625, 0.005779266357421875, -0.038360595703125, -0.0034732818603515625, 0.036773681640625, 0.0350341796875, 0.048583984375, 0.041351318359375, 0.0027675628662109375, -0.0015935897827148438, 0.035308837890625, -0.0016651153564453125, -0.003055572509765625, -0.02374267578125, 0.0259246826171875, -0.0025386810302734375, -0.01090240478515625, -0.01006317138671875, 0.00751495361328125, -0.0291595458984375, -0.00910186767578125, 0.0198974609375, -0.035247802734375, 0.0274810791015625, 0.009063720703125, -0.033477783203125, -0.00664520263671875, 0.041015625, 0.0010404586791992188, -0.06280517578125, 0.0053863525390625, 0.08502197265625, 0.01214599609375, 0.014892578125, -0.0199127197265625, -0.0294036865234375, 0.0079193115234375, 0.016937255859375, 0.0017061233520507812, -0.0021572113037109375, -0.03570556640625, 0.033721923828125, 0.005588531494140625, -0.02325439453125, 0.0281982421875, 0.0245361328125, 0.00662994384765625, -0.01476287841796875, -0.058258056640625, 0.00992584228515625, -0.0281982421875, 0.022918701171875, 0.0094451904296875, -0.0111083984375, -0.0194091796875, 0.0128936767578125, -0.029541015625, 0.01361846923828125, -0.028289794921875, 0.022125244140625, 0.0006933212280273438, -0.0219268798828125, -0.033050537109375, -0.04150390625, -0.01357269287109375, -0.012786865234375, 0.00494384765625, 0.01849365234375, 0.049285888671875, 0.01480865478515625, -0.009735107421875, 0.0005407333374023438, 0.00006920099258422852, -0.01032257080078125, 0.012603759765625, -0.02056884765625, -0.016265869140625, 0.01483917236328125, 0.015838623046875, -0.01116180419921875, -0.033447265625, -0.037384033203125, 0.04010009765625, -0.00803375244140625, 0.067626953125, 0.0166015625, 0.0745849609375, -0.03338623046875, 0.032012939453125, -0.01534271240234375, 0.0188140869140625, -0.06524658203125, 0.0657958984375, 0.0185089111328125, -0.01117706298828125, -0.00925445556640625, 0.01458740234375, 0.002044677734375, -0.060302734375, -0.027374267578125, -0.0208587646484375, 0.013427734375, 0.05340576171875, -0.036865234375, 0.0241851806640625, -0.0307769775390625, 0.032501220703125, 0.0341796875, 0.0179595947265625, 0.00580596923828125, 0.035888671875, 0.00006556510925292969, -0.08306884765625, -0.066162109375, 0.03973388671875, 0.0195770263671875, -0.033203125, -0.025543212890625, -0.01029205322265625, -0.06451416015625, 0.035247802734375, -0.08233642578125, 0.0113372802734375, 0.0357666015625, 0.0104217529296875, -0.0180816650390625, -0.0091094970703125, 0.01230621337890625, 0.024932861328125, -0.0506591796875, 0.0161895751953125, 0.0292205810546875, -0.003993988037109375, -0.03924560546875, -0.007663726806640625, -0.01052093505859375, -0.0655517578125, -0.00830841064453125, 0.0665283203125, 0.0182647705078125, 0.0276947021484375, 0.003948211669921875, 0.0169219970703125, 0.0008091926574707031, -0.06005859375, 0.00371551513671875, 0.0023937225341796875, 0.0021572113037109375, 0.04376220703125, 0.025299072265625, 0.0196533203125, 0.0251617431640625, 0.037078857421875, 0.0012178421020507812, 0.03350830078125, 0.006591796875, 0.0452880859375, -0.01971435546875, -0.00640869140625, -0.0218505859375, -0.0208587646484375, 0.00449371337890625, -0.0259552001953125, 0.0280609130859375, 0.0077667236328125, 0.044647216796875, 0.0477294921875, -0.0347900390625, -0.009490966796875, 0.021820068359375, 0.036376953125, -0.00269317626953125, 0.0192413330078125, 0.01264190673828125, -0.0709228515625, 0.004184722900390625, -0.0202789306640625, 0.0017976760864257812, -0.00923919677734375, 0.00414276123046875, 0.017486572265625, -0.008880615234375, 0.003940582275390625, 0.00934600830078125, -0.035247802734375, 0.0157012939453125, 0.045135498046875, 0.0123291015625, 0.022735595703125, 0.00769805908203125, 0.07781982421875, -0.0099334716796875, 0.056396484375, 0.011871337890625, 0.01445770263671875, 0.0298919677734375, -0.044464111328125, 0.033782958984375, -0.046661376953125, 0.0321044921875, 0.0411376953125, -0.00760650634765625, -0.020111083984375, -0.00324249267578125, 0.00554656982421875, 0.01509857177734375, -0.00894927978515625, -0.0032367706298828125, 0.0159912109375, -0.03363037109375, 0.031280517578125, 0.0186767578125, 0.07513427734375, -0.0289459228515625, -0.051788330078125, -0.002460479736328125, 0.0088958740234375, -0.097900390625, -0.1302490234375, 0.019012451171875, -0.08050537109375, -0.00899505615234375, -0.036285400390625, -0.054840087890625, 0.01290130615234375, 0.006381988525390625, 0.0012121200561523438, -0.0311126708984375, -0.0255889892578125, -0.06988525390625, -0.0706787109375, -0.06463623046875, 0.00714874267578125, -0.02020263671875, 0.0252532958984375, 0.005550384521484375, -0.01352691650390625, 0.000736236572265625, -0.003597259521484375, 0.00884246826171875, 0.07281494140625, 0.002971649169921875, -0.049407958984375, -0.00963592529296875, -0.006916046142578125, -0.0218505859375, 0.0104827880859375, -0.02032470703125, -0.004253387451171875, 0.00907135009765625, -0.01081085205078125, -0.0272064208984375, 0.008941650390625, 0.0150146484375, -0.0203094482421875, 0.016632080078125, 0.04571533203125, 0.024261474609375, -0.0168304443359375, -0.04736328125, -0.058746337890625, -0.0748291015625, 0.033355712890625, 0.0391845703125, 0.02734375, -0.02288818359375, 0.0330810546875, 0.006404876708984375, -0.03948974609375, 0.044403076171875, -0.038970947265625, 0.038299560546875, 0.005229949951171875, 0.01611328125, -0.0204620361328125, 0.04425048828125, -0.00608062744140625, 0.00933074951171875, 0.02423095703125, 0.01175689697265625, 0.0235595703125, -0.00921630859375, 0.010955810546875, -0.0122833251953125, 0.0194854736328125, -0.00475311279296875, 0.01058197021484375, 0.0086669921875, -0.0202484130859375, 0.032257080078125, 0.06292724609375, -0.044219970703125, -0.01036834716796875, -0.0029811859130859375, 0.0115966796875, -0.0019330978393554688, -0.060211181640625, -0.04833984375, -0.0113983154296875, -0.019256591796875, -0.0019969940185546875, 0.005352020263671875, -0.017608642578125, -0.01396942138671875, 0.034454345703125, -0.0168609619140625, -0.0005688667297363281, 0.0207061767578125, 0.01055908203125, -0.0243682861328125, 0.03790283203125, -0.004726409912109375, 0.033416748046875, 0.0035419464111328125, -0.0005726814270019531, -0.0936279296875, -0.0235595703125, 0.007442474365234375, 0.07373046875, -0.0204620361328125, 0.0036754608154296875, -0.00894927978515625, 0.05755615234375, -0.0298309326171875, 0.04339599609375, -0.00901031494140625, 0.0538330078125, -0.039764404296875, -0.0401611328125, 0.0024433135986328125, -0.054595947265625, 0.023345947265625, 0.007648468017578125, 0.00008118152618408203, -0.0004963874816894531, -0.0528564453125, -0.04119873046875, -0.0257110595703125, -0.02349853515625, -0.0270233154296875, -0.04913330078125, -0.0275421142578125, 0.0428466796875, -0.0132598876953125, 0.0097198486328125, -0.072021484375, -0.06842041015625, 0.0531005859375, 0.0174407958984375, 0.0035400390625, -0.02337646484375, 0.058319091796875, 0.0100860595703125, -0.03643798828125, -0.007015228271484375, -0.002655029296875, 0.039886474609375, -0.022430419921875, 0.05126953125, 0.043060302734375, -0.0164794921875, 0.0596923828125, -0.0001418590545654297, 0.0012884140014648438, 0.00949859619140625, 0.0203857421875, 0.005558013916015625, -0.027862548828125, 0.025054931640625, -0.005496978759765625, -0.01016998291015625, 0.0163726806640625, -0.05029296875, 0.006988525390625, -0.0308380126953125, 0.03448486328125, -0.040130615234375, 0.053558349609375, -0.0305328369140625, -0.0364990234375, 0.017547607421875, -0.0215911865234375, -7.748603820800781e-7, 0.0015363693237304688, -0.0027523040771484375, 0.021514892578125, 0.0203094482421875, 0.0206756591796875, 0.01320648193359375, 0.021881103515625, 0.00885009765625, 0.044769287109375, 0.0027141571044921875, 0.02923583984375, -0.012359619140625, -0.01523590087890625, 0.049224853515625, 0.00952911376953125, -0.021514892578125, 0.036590576171875, -0.026763916015625, -0.0217742919921875, 0.00811767578125, 0.0154571533203125, 0.04345703125, 0.029144287109375, 0.01168060302734375, -0.0109100341796875, -0.01236724853515625, 0.013092041015625, -0.0382080078125, 0.0036163330078125, 0.015625, -0.016143798828125, -0.02410888671875, 0.032958984375, 0.037841796875, -0.0186767578125, -0.03125, 0.00672149658203125, -0.016387939453125, 0.067626953125, 0.00829315185546875, -0.041839599609375, 0.005321502685546875, 0.04052734375, -0.00846099853515625, -0.034576416015625, 0.036865234375, 0.0565185546875, 0.037750244140625, 0.01605224609375, -0.048583984375, -0.012298583984375, -0.048797607421875, -0.0114898681640625, 0.0172882080078125, 0.0201416015625, -0.01139068603515625, -0.006381988525390625, 0.024993896484375, 0.00600433349609375, 0.021392822265625, -0.0205535888671875, -0.0172882080078125, -0.01284027099609375, -0.0028972625732421875, -0.01486968994140625, -0.06219482421875, 0.032958984375, 0.041748046875, -0.019073486328125, -0.034576416015625, -0.0447998046875, -0.0120391845703125, 0.0200042724609375, -0.02154541015625, -0.013214111328125, 0.018402099609375, 0.02838134765625, 0.06463623046875, -0.0770263671875, -0.02899169921875, -0.0120849609375, -0.0192108154296875, 0.0311126708984375, -0.0084075927734375, 0.0153656005859375, -0.01358795166015625, -0.047943115234375, -0.0169219970703125, 0.0018911361694335938, -0.02703857421875, -0.00910186767578125, 0.0002968311309814453, -0.0118865966796875, 0.0264129638671875, -0.011932373046875, 0.05499267578125, -0.00650787353515625, 0.02752685546875, -0.0200042724609375, 0.05181884765625, 0.01410675048828125, 0.05780029296875, -0.041107177734375, 0.046112060546875, 0.0034351348876953125, 0.03363037109375, -0.0169830322265625, -0.0178985595703125, 0.02178955078125, 0.027679443359375, -0.003398895263671875, -0.023468017578125, 0.01300811767578125, -0.058746337890625, 0.0149993896484375, -0.0181884765625, -0.006305694580078125, -0.00411224365234375, 0.006168365478515625, -0.017822265625, 0.0020618438720703125, 0.0095977783203125, -0.034881591796875, 0.026123046875, -0.04693603515625, -0.03558349609375, 0.0379638671875, 0.0167999267578125, -0.0173187255859375, -0.0016450881958007812, -0.0191650390625, 0.034637451171875, -0.0235748291015625, 0.035980224609375, 0.08203125, 0.021484375, 0.04949951171875, 0.018218994140625, 0.0238189697265625, 0.0146484375, 0.0830078125, -0.0127410888671875, -0.06121826171875, 0.044097900390625, 0.023681640625, -0.0260772705078125, -0.0052490234375, -0.03900146484375, -0.041107177734375, -0.0214080810546875, 0.016845703125, 0.017669677734375, -0.01557159423828125, 0.006732940673828125, -0.0628662109375, -0.0740966796875, -0.00664520263671875, 0.0012378692626953125, -0.0165557861328125, 0.04779052734375, 0.016937255859375, 0.008514404296875, 0.03350830078125, -0.00952911376953125, -0.007488250732421875, -0.05291748046875, 0.0284423828125, -0.004917144775390625, 0.054656982421875, -0.0079498291015625, -0.04473876953125, 0.0190582275390625, -0.02386474609375, 0.029937744140625, -0.01149749755859375, 0.016998291015625, -0.0162506103515625, 0.0467529296875, -0.0279693603515625, 0.006542205810546875, 0.0202789306640625, 0.0233001708984375, 0.0156707763671875, 0.024566650390625, 0.0012788772583007812, -0.01422119140625, -0.009979248046875, -0.0191650390625, 0.017822265625, -0.050933837890625, 0.009368896484375, 0.007015228271484375, -0.05572509765625, 0.0076904296875, 0.006313323974609375, -0.042755126953125, -0.00547027587890625, -0.02935791015625, 0.07293701171875, -0.033294677734375, -0.017364501953125, 0.0160675048828125, -0.0057830810546875, -0.007320404052734375, -0.002109527587890625, 0.030670166015625, -0.029632568359375, -0.00960540771484375, 0.0163421630859375, -0.004245758056640625, -0.01204681396484375, 0.0025501251220703125, -0.0694580078125, 0.043182373046875, 0.02728271484375, 0.031280517578125, -0.0280303955078125, 0.0188140869140625, -0.00664520263671875, -0.00846099853515625, -0.027740478515625, 0.0031414031982421875, 0.0164947509765625, 0.0234375, 0.01023101806640625, -0.007450103759765625, 0.018646240234375, -0.000209808349609375, 0.09661865234375, 0.01513671875, -0.00948333740234375, -0.0325927734375, 0.02630615234375, 0.036956787109375, -0.02496337890625, 0.028167724609375, 0.01546478271484375, 0.0054168701171875, 0.07318115234375, -0.02056884765625, 0.02471923828125, -0.00450897216796875, 0.03955078125, 0.0241851806640625, 0.00820159912109375, -0.0038318634033203125, 0.02166748046875, -0.0268707275390625, -0.0589599609375, 0.0245361328125, 0.039581298828125, -0.04302978515625, 0.0293731689453125, 0.036895751953125, 0.05987548828125, -0.0266571044921875, -0.036102294921875, -0.005054473876953125, 0.049072265625, 0.0141754150390625, 0.023345947265625, 0.0213165283203125, 0.022064208984375, -0.018341064453125, 0.0318603515625, 0.024017333984375, 0.02459716796875, -0.0194549560546875, 0.06109619140625, 0.056396484375, 0.0173492431640625, -0.0270233154296875, -0.036468505859375, 0.035064697265625, 0.08294677734375, -0.0343017578125, -0.019500732421875, 0.0267333984375, 0.01177215576171875, 0.017120361328125, 0.0010862350463867188, 0.036407470703125, -0.01605224609375, 0.0238189697265625, 0.01221466064453125, -0.005123138427734375, 0.0020847320556640625, 0.02239990234375, 0.02386474609375, 0.02264404296875, -0.06134033203125, -0.0132293701171875, 0.004547119140625, -0.0396728515625, 0.00951385498046875, -0.0133056640625, 0.01153564453125, -0.00910186767578125, 0.0230255126953125, 0.02935791015625, 0.006557464599609375, 0.031463623046875, 0.03326416015625, -0.0247955322265625, 0.01274871826171875, -0.02972412109375, 0.0198822021484375, -0.00434112548828125, -0.008392333984375, 0.04595947265625, 0.04132080078125, 0.035003662109375, -0.01953125, -0.013580322265625, 0.036224365234375, -0.0263214111328125, 0.00846099853515625, -0.045074462890625, 0.003131866455078125, -0.009307861328125, -0.0112457275390625, -0.02410888671875, -0.01380157470703125, 0.0171356201171875, 0.0237274169921875, 0.03533935546875, 0.015350341796875, -0.001270294189453125, 0.0173187255859375, 0.01091766357421875, 0.039154052734375, 0.0362548828125, -0.08087158203125, -0.0167236328125, 0.01010894775390625, -0.05438232421875, 0.0271453857421875, 0.044281005859375, -0.0176849365234375, -0.00876617431640625, 0.0137939453125, 0.005306243896484375, -0.05621337890625, 0.019805908203125, 0.020233154296875, 0.024932861328125, 0.01055908203125, 0.03363037109375, -0.004421234130859375, 0.005367279052734375, 0.0172271728515625, -0.0164794921875, -0.011322021484375, 0.03570556640625, 0.01064300537109375, -0.0071563720703125, -0.01120758056640625, 0.050567626953125, -0.042327880859375, -0.0300750732421875, 0.05194091796875, 0.01374053955078125, 0.0550537109375, 0.0037288665771484375, -0.08221435546875, 0.04229736328125, -0.007232666015625, 0.038543701171875, 0.051605224609375, -0.0399169921875, 0.0289306640625, 0.029449462890625, 0.017730712890625, -0.0170135498046875, -0.03302001953125, -0.0207672119140625, 0.004302978515625, 0.016571044921875, 0.00829315185546875, -0.01485443115234375, -0.00200653076171875, 0.01374053955078125, -0.019683837890625, 0.032440185546875, -0.00293731689453125, 0.05291748046875, 0.0127105712890625, 0.004177093505859375, -0.00008279085159301758, 0.01885986328125, -0.02197265625, 0.03851318359375, -0.0158233642578125, 0.04351806640625, 0.00821685791015625, 0.0034389495849609375, -0.017913818359375, 0.00922393798828125, 0.0222015380859375, 0.020416259765625, -0.01003265380859375, -0.02288818359375, -0.01061248779296875, -0.00659942626953125, -0.0293426513671875, -0.0090789794921875, -0.0232391357421875, 0.00821685791015625, 0.0144500732421875, 0.0030975341796875, 0.0276031494140625, 0.007465362548828125, 0.0287322998046875, -0.00391387939453125, -0.0016574859619140625, -0.0242156982421875, 0.03302001953125, -0.006572723388671875, 0.0291748046875, -0.016387939453125, 0.033203125, -0.025634765625, -0.0199127197265625, -0.032928466796875, -0.0043792724609375, -0.017974853515625, 0.0291595458984375, 0.0258331298828125, 0.0090179443359375, 0.018585205078125, -0.022064208984375, -0.031524658203125, 0.01141357421875, 0.02069091796875, 0.05078125, -0.006214141845703125, -0.0258636474609375, 0.007419586181640625, -0.0112457275390625, -0.01027679443359375, -0.042266845703125, 0.03778076171875, -0.09161376953125, -0.016937255859375, -0.053131103515625, 0.0266876220703125, 0.03497314453125, -0.0307159423828125, -0.0384521484375, 0.0198822021484375, -0.01116943359375, -0.0396728515625, -0.01219940185546875, 0.031707763671875, 0.01727294921875, -0.0169219970703125, -0.01125335693359375, -0.014739990234375, -0.0218658447265625, -0.0207366943359375, 0.0372314453125, 0.00433349609375, 0.047088623046875, 0.031097412109375, -0.022308349609375, 0.0183563232421875, 0.01001739501953125, 0.01218414306640625, 0.006130218505859375, 0.01229095458984375, 0.00608062744140625, 0.00902557373046875, -0.035919189453125, 0.024993896484375, 0.0102081298828125, 0.03533935546875, 0.0112152099609375, -0.042938232421875, -0.02581787109375, -0.0078125, 0.05267333984375, 0.032501220703125, 0.01556396484375, -0.034576416015625, -0.0276031494140625, -0.035614013671875, -0.057037353515625, -0.0477294921875, 0.052093505859375, -0.11358642578125, -0.0243072509765625, 0.00433349609375, -0.043060302734375, -0.0058746337890625, -0.01380157470703125, -0.05889892578125, 0.0050048828125, -0.03228759765625, -0.035888671875, 0.00939178466796875, -0.005512237548828125, 0.0259246826171875, -0.037841796875, -0.01210784912109375, -0.005771636962890625, 0.01258087158203125, 0.0031280517578125, -0.0338134765625, 0.00841522216796875, 0.0130462646484375, -0.0210113525390625, 0.0297088623046875, -0.0007290840148925781, 0.005756378173828125, -0.026641845703125, -0.00965118408203125, -0.0180816650390625, 0.02093505859375, -0.0117340087890625, 0.04156494140625, 0.0256500244140625, 0.0016851425170898438, -0.0026149749755859375, 0.043792724609375, -0.0019817352294921875, 0.10723876953125, -0.006511688232421875, 0.07342529296875, -0.0338134765625, -0.0209197998046875, -0.0067291259765625, -0.03924560546875, -0.019287109375, 0.012969970703125, 0.0022411346435546875, -0.055816650390625, 0.0228729248046875, 0.01751708984375, 0.028472900390625, 0.01422882080078125 ]
df16655380655200513dcc8f3b8419fbb15fbefd
Wordpress Stackexchange Q: Pagination for sub-pages I have a top level page with a lot of subpages. When a user visits the top level page they currently see the titles/thumbnails/excerpts of all of the subpages. How can I paginate the display of the subpages so that only 3 are displayed at a time, giving the user the ability to navigate via the typcial "< Previous 1,2,3,4,5 Next >" pagination menu? Any help would be greatly appreciated. Thanks! A: Did you actually insert the titles/thumbnails/excerpts of the subpages manually using the post editor? If so, you can place the <!--next page--> tag in between every three subpages, and they will be split into paginated sections. (Use the HTML editor to insert the tag.) Keep in mind that many people do not like pagination, so doing this could potentially drive visitors away from your site.
Q: Pagination for sub-pages I have a top level page with a lot of subpages. When a user visits the top level page they currently see the titles/thumbnails/excerpts of all of the subpages. How can I paginate the display of the subpages so that only 3 are displayed at a time, giving the user the ability to navigate via the typcial "< Previous 1,2,3,4,5 Next >" pagination menu? Any help would be greatly appreciated. Thanks! A: Did you actually insert the titles/thumbnails/excerpts of the subpages manually using the post editor? If so, you can place the <!--next page--> tag in between every three subpages, and they will be split into paginated sections. (Use the HTML editor to insert the tag.) Keep in mind that many people do not like pagination, so doing this could potentially drive visitors away from your site. A: You should use, wp_link_pages function. When you writing an article use this syntax; <!--nextpage--> Than add this line where ypu want to display your pagination links in your single.php file; <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?> You can get more description about the funcstion on Codex pages.
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:417423", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43425" }
[ 0.06085205078125, 0.00860595703125, 0.0296630859375, -0.01209259033203125, 0.0006508827209472656, -0.023590087890625, 0.03955078125, -0.06561279296875, 0.0360107421875, 0.020355224609375, -0.051025390625, 0.005809783935546875, 0.00513458251953125, 0.0023937225341796875, -0.0295562744140625, -0.042999267578125, 0.050933837890625, -0.045562744140625, 0.0153350830078125, 0.016693115234375, -0.009674072265625, 0.055267333984375, 0.025238037109375, 0.044769287109375, 0.04241943359375, -0.01546478271484375, -0.0168914794921875, 0.027496337890625, 0.004962921142578125, -0.0009660720825195312, 0.0248565673828125, -0.004367828369140625, 0.0196380615234375, -0.0276947021484375, 0.05810546875, 0.029083251953125, 0.016937255859375, -0.01690673828125, 0.043212890625, -0.016357421875, -0.000043332576751708984, 0.01165771484375, 0.015869140625, 0.0080718994140625, -0.01245880126953125, -0.016448974609375, -0.018341064453125, -0.02838134765625, -0.005298614501953125, -0.01097869873046875, 0.016998291015625, -0.001514434814453125, 0.029541015625, -0.0303497314453125, 0.006725311279296875, 0.02130126953125, 0.045074462890625, 0.0022716522216796875, 0.026641845703125, -0.056732177734375, -0.03411865234375, 0.00827789306640625, 0.0322265625, 0.0110015869140625, -0.023895263671875, -0.01076507568359375, -0.03125, 0.0111083984375, 0.029144287109375, -0.029815673828125, -0.0020084381103515625, 0.0201568603515625, 0.0193939208984375, -0.036376953125, -0.0265350341796875, 0.052398681640625, -0.0178680419921875, 0.01285552978515625, 0.038330078125, -0.04217529296875, -0.03582763671875, 0.00774383544921875, -0.05706787109375, -0.03125, 0.01459503173828125, -0.006366729736328125, -0.0242462158203125, 0.0024433135986328125, -0.01497650146484375, 0.0084991455078125, -0.0157928466796875, 0.0208282470703125, 0.000732421875, 0.0079498291015625, -0.0102081298828125, -0.001857757568359375, 0.0040435791015625, 0.056610107421875, -0.0186767578125, -0.0198974609375, -0.0003695487976074219, -0.028533935546875, -0.01788330078125, -0.04278564453125, 0.017120361328125, -0.01522064208984375, -0.010528564453125, -0.0035305023193359375, 0.06585693359375, 0.04205322265625, 0.00672149658203125, 0.0748291015625, -0.00392913818359375, -0.01251220703125, -0.04302978515625, 0.0118560791015625, -0.0215301513671875, -0.03192138671875, 0.01293182373046875, -0.02117919921875, 0.00417327880859375, 0.0386962890625, -0.071533203125, -0.00830841064453125, 0.0235748291015625, 0.02899169921875, 0.0164031982421875, -0.0017862319946289062, 0.0091094970703125, -0.0087127685546875, -0.03814697265625, 0.038116455078125, 0.043914794921875, 0.00391387939453125, -0.02032470703125, -0.001697540283203125, 0.00930023193359375, -0.03240966796875, -0.01044464111328125, 0.003604888916015625, 0.007282257080078125, -0.00858306884765625, 0.021697998046875, -0.0074005126953125, 0.032958984375, 0.031768798828125, 0.02093505859375, 0.01424407958984375, 0.0151519775390625, -0.0196075439453125, 0.0274658203125, -0.050994873046875, 0.029266357421875, -0.017242431640625, -0.06512451171875, -0.06494140625, -0.04931640625, -0.018463134765625, 0.032867431640625, -0.0285491943359375, -0.005069732666015625, 0.0015430450439453125, 0.01322174072265625, -0.051483154296875, -0.058258056640625, -0.0143890380859375, -0.0218048095703125, -0.0033416748046875, 0.0247039794921875, 0.005321502685546875, 0.038970947265625, -0.04290771484375, 0.0070648193359375, 0.00603485107421875, -0.0086517333984375, 0.012298583984375, 0.037017822265625, -0.002399444580078125, -0.00008404254913330078, 0.08917236328125, 0.0196685791015625, -0.0283966064453125, 0.03546142578125, -0.03271484375, -0.057037353515625, 0.017181396484375, -0.0026454925537109375, 0.042633056640625, 0.0272216796875, 0.0251312255859375, 0.0282135009765625, 0.0050506591796875, -0.03399658203125, -0.0024089813232421875, 0.034210205078125, -0.0232086181640625, -0.01297760009765625, -0.01328277587890625, 0.0172271728515625, -0.0283966064453125, -0.034515380859375, 0.033203125, -0.043060302734375, 0.044189453125, 0.01458740234375, -0.0140380859375, 0.0164031982421875, 0.006439208984375, 0.04229736328125, 0.033782958984375, -0.0239715576171875, -0.00713348388671875, 0.01531219482421875, -0.0526123046875, -0.031524658203125, 0.015289306640625, -0.0257720947265625, -0.0235748291015625, 0.01654052734375, 0.01509857177734375, 0.031524658203125, 0.0196533203125, -0.008270263671875, -0.020111083984375, 0.055084228515625, -0.03265380859375, -0.0181732177734375, -0.046600341796875, -0.0012102127075195312, 0.013214111328125, -0.08868408203125, 0.051788330078125, 0.05487060546875, 0.02783203125, -0.047454833984375, 0.0164794921875, 0.034210205078125, 0.033355712890625, -0.0182037353515625, 0.0210113525390625, 0.032440185546875, 0.019683837890625, -0.0244903564453125, -0.04229736328125, 0.020660400390625, -0.08392333984375, -0.00455474853515625, -0.0213623046875, -0.042694091796875, -0.03179931640625, 0.0268096923828125, 0.00800323486328125, 0.02850341796875, -0.021728515625, -0.01322174072265625, 0.048797607421875, 0.0095367431640625, 0.03631591796875, 0.00716400146484375, -0.02996826171875, 0.0070953369140625, -0.007572174072265625, -0.0229034423828125, -0.01415252685546875, 0.007251739501953125, 0.01116943359375, 0.01311492919921875, 0.0053863525390625, -0.0036907196044921875, -0.0032978057861328125, 0.0105743408203125, -0.00411224365234375, 0.00528717041015625, -0.0168914794921875, -0.0179290771484375, -0.019317626953125, -0.04888916015625, 0.034393310546875, 0.0174102783203125, -0.0338134765625, -0.0026092529296875, 0.027587890625, -0.0232391357421875, -0.014312744140625, 0.0098876953125, -0.034820556640625, -0.0186614990234375, 0.01544189453125, -0.0172576904296875, -0.016143798828125, -0.00015461444854736328, 0.0302581787109375, -0.04461669921875, 0.042724609375, -0.00754547119140625, -0.004611968994140625, 0.007694244384765625, -0.047515869140625, 0.06890869140625, -0.06549072265625, 0.014556884765625, 0.05712890625, -0.048675537109375, 0.021881103515625, 0.004238128662109375, -0.0274810791015625, -0.02655029296875, 0.0175323486328125, -0.00537109375, 0.0145416259765625, -0.055694580078125, 0.042816162109375, 0.020172119140625, 0.0311431884765625, -0.0035858154296875, -0.032196044921875, 0.0138092041015625, 0.0180816650390625, -0.045806884765625, -0.035797119140625, 0.04669189453125, -0.09490966796875, -0.010772705078125, 0.0282135009765625, -0.0650634765625, -0.025787353515625, 0.100341796875, -0.006938934326171875, -0.0213165283203125, -0.043853759765625, -0.0217132568359375, -0.039093017578125, -0.0323486328125, 0.083984375, 0.0163726806640625, 0.0182952880859375, -0.01617431640625, 0.0621337890625, -0.0250701904296875, -0.0855712890625, -0.0540771484375, 0.00039577484130859375, -0.01267242431640625, -0.01215362548828125, 0.029876708984375, -0.03033447265625, 0.01251983642578125, 0.019195556640625, -0.01247406005859375, 0.01396942138671875, -0.004825592041015625, -0.01267242431640625, -0.001560211181640625, 0.0020351409912109375, 0.0171356201171875, -0.023040771484375, -0.0006380081176757812, 0.06280517578125, -0.004550933837890625, -0.0108795166015625, -0.00525665283203125, -0.01410675048828125, -0.05560302734375, -0.0253448486328125, 0.0399169921875, -0.00556182861328125, -0.028900146484375, -0.0233612060546875, 0.0079803466796875, 0.0164794921875, -0.014556884765625, 0.0033588409423828125, -0.005474090576171875, 0.007518768310546875, 0.031402587890625, 0.0171356201171875, 0.0316162109375, -0.006771087646484375, 0.01544952392578125, 0.009033203125, 0.0156402587890625, -0.0323486328125, 0.034332275390625, -0.059814453125, -0.029815673828125, 0.032806396484375, 0.0020351409912109375, 0.009918212890625, -0.004680633544921875, -0.029449462890625, 0.007320404052734375, 0.0673828125, -0.09619140625, -0.01300048828125, 0.007564544677734375, 0.012054443359375, 0.01055145263671875, -0.00873565673828125, -0.05535888671875, -0.02203369140625, -0.047882080078125, -0.005176544189453125, -0.024810791015625, -0.004878997802734375, -0.01702880859375, 0.01611328125, -0.022003173828125, -0.032379150390625, 0.0257415771484375, -0.00812530517578125, -0.034149169921875, 0.0309295654296875, -0.0400390625, 0.00446319580078125, -0.044525146484375, -0.00032806396484375, -0.07037353515625, -0.0198974609375, 0.005001068115234375, 0.03814697265625, 0.0177459716796875, -0.07867431640625, -0.0221710205078125, 0.0222930908203125, 0.0099334716796875, 0.0345458984375, 0.0195770263671875, 0.0026092529296875, 0.026153564453125, -0.019256591796875, 0.0172882080078125, -0.02374267578125, -0.0061798095703125, -0.049896240234375, 0.014434814453125, -0.0301361083984375, -0.057891845703125, 0.0038433074951171875, -0.06268310546875, 0.00899505615234375, -0.0609130859375, -0.041595458984375, 0.000873565673828125, 0.01128387451171875, -0.00635528564453125, 0.004817962646484375, -0.03265380859375, -0.0517578125, 0.01287078857421875, 0.006317138671875, -0.035491943359375, 0.0206146240234375, 0.00386810302734375, 0.01151275634765625, -0.0194549560546875, -0.042572021484375, 0.001796722412109375, 0.0299530029296875, -0.005229949951171875, 0.0218505859375, -0.0017862319946289062, -0.027008056640625, 0.045654296875, -0.006328582763671875, 0.032470703125, -0.004222869873046875, -0.016387939453125, -0.01177215576171875, -0.0362548828125, 0.0364990234375, -0.00904083251953125, 0.01812744140625, 0.00782012939453125, -0.01531219482421875, -0.046600341796875, -0.045074462890625, 0.06884765625, 0.0311279296875, 0.039031982421875, -0.051422119140625, -0.01026153564453125, -0.01038360595703125, 0.050933837890625, 0.06475830078125, 0.0282440185546875, 0.006778717041015625, 0.0240631103515625, 0.06597900390625, 0.007709503173828125, 0.03839111328125, 0.029327392578125, -0.00461578369140625, 0.049835205078125, -0.017669677734375, -0.00412750244140625, 0.002956390380859375, 0.01007080078125, 0.0237274169921875, 0.002559661865234375, -0.019866943359375, -0.045166015625, 0.01189422607421875, 0.033477783203125, 0.00667572021484375, 0.004253387451171875, 0.0021514892578125, 0.0180511474609375, 0.036224365234375, 0.0006995201110839844, -0.016204833984375, 0.01509857177734375, -0.021331787109375, -0.02069091796875, 0.0001531839370727539, -0.01508331298828125, -0.00986480712890625, 0.053558349609375, -0.0196380615234375, 0.0296783447265625, -0.0101318359375, -0.031829833984375, 0.0068359375, -0.0036792755126953125, 0.0175018310546875, 0.05328369140625, -0.02587890625, -0.00843048095703125, 0.06072998046875, 0.00021469593048095703, -0.036590576171875, 0.061187744140625, 0.0244140625, 0.02099609375, 0.03851318359375, -0.04833984375, 0.0007185935974121094, -0.0252227783203125, 0.016632080078125, -0.012603759765625, -0.018096923828125, -0.017120361328125, -0.01543426513671875, 0.03326416015625, 0.00812530517578125, -0.00034999847412109375, -0.01078033447265625, -0.015472412109375, -0.001922607421875, -0.0218658447265625, -0.016143798828125, -0.005157470703125, -0.014495849609375, -0.0257720947265625, 0.0012121200561523438, 0.018768310546875, -0.048065185546875, -0.048370361328125, 0.00322723388671875, 0.00803375244140625, 0.019500732421875, -0.0171661376953125, 0.0250091552734375, -0.0220794677734375, -0.0005354881286621094, -0.0523681640625, 0.0245361328125, 0.0023670196533203125, -0.00827789306640625, -0.08843994140625, 0.042816162109375, -0.06494140625, -0.01105499267578125, -0.043365478515625, -0.041351318359375, -0.0760498046875, -0.018951416015625, 0.0006475448608398438, 0.018768310546875, -0.0260467529296875, -0.05462646484375, -0.0234375, 0.0102996826171875, 0.0207366943359375, -0.005207061767578125, -0.00714111328125, 0.06573486328125, -0.04248046875, 0.04931640625, -0.017608642578125, 0.0159149169921875, -0.00433349609375, -0.006206512451171875, 0.0199737548828125, -0.028350830078125, -0.03717041015625, 0.0112762451171875, -0.07513427734375, 0.005706787109375, 0.04718017578125, -0.006778717041015625, -0.0030002593994140625, -0.0199127197265625, 0.005619049072265625, -0.0023555755615234375, 0.03045654296875, -0.01308441162109375, -0.061370849609375, 0.059783935546875, 0.004856109619140625, -0.0029239654541015625, -0.00301361083984375, -0.030792236328125, -0.00015282630920410156, 0.02911376953125, 0.004024505615234375, -0.01338958740234375, -0.0087127685546875, -0.02374267578125, 0.037506103515625, 0.02850341796875, 0.04742431640625, 0.0312042236328125, 0.0287017822265625, 0.0225830078125, -0.0153961181640625, 0.06488037109375, 0.027740478515625, 0.03973388671875, -0.0290985107421875, 0.0192718505859375, 0.0004830360412597656, -0.0290069580078125, -0.02239990234375, 0.0401611328125, 0.020233154296875, -0.044219970703125, -0.006076812744140625, -0.01424407958984375, -0.00742340087890625, -0.000507354736328125, -0.01546478271484375, 0.00820159912109375, -0.0220184326171875, 0.00719451904296875, 0.0181427001953125, -0.0301513671875, -0.0137481689453125, -0.017303466796875, -0.0004363059997558594, -0.00946044921875, 0.01529693603515625, 0.007511138916015625, 0.0175933837890625, -0.04705810546875, -0.0033588409423828125, -0.007904052734375, -0.04156494140625, -0.005802154541015625, -0.00862884521484375, -0.0051116943359375, -0.0294189453125, 0.036102294921875, -0.011962890625, 0.03125, -0.006866455078125, 0.047393798828125, -0.043426513671875, 0.082763671875, -0.03961181640625, 0.03582763671875, 0.052001953125, -0.059173583984375, -0.0078125, 0.0002930164337158203, -0.0096588134765625, 0.00531768798828125, -0.0280303955078125, 0.00473785400390625, -0.045318603515625, 0.007167816162109375, -0.005107879638671875, 0.02880859375, 0.10308837890625, -0.01904296875, -0.0323486328125, 0.0166015625, 0.021331787109375, -0.007106781005859375, -0.00952911376953125, -0.008026123046875, -0.01230621337890625, 0.0079193115234375, -0.020233154296875, -0.0099639892578125, 0.040435791015625, -0.003314971923828125, -0.052734375, 0.0789794921875, -0.024322509765625, 0.0372314453125, 0.02911376953125, 0.02667236328125, -0.006328582763671875, 0.0026683807373046875, 0.0006074905395507812, 0.037872314453125, -0.0233917236328125, 0.02996826171875, -0.024444580078125, -0.0167694091796875, 0.047027587890625, 0.05096435546875, -0.015533447265625, 0.0014171600341796875, -0.024505615234375, -0.0007367134094238281, 0.053436279296875, 0.046051025390625, 0.038177490234375, 0.019683837890625, -0.012176513671875, 0.0173492431640625, 0.037353515625, -0.04681396484375, 0.0164337158203125, 0.0097503662109375, -0.00977325439453125, 0.01116943359375, -0.002735137939453125, -0.01226806640625, -0.01233673095703125, -0.00806427001953125, -0.06927490234375, 0.003971099853515625, 0.033843994140625, 0.0101776123046875, 0.0307769775390625, 0.0255889892578125, 0.045257568359375, -0.0318603515625, -0.04937744140625, -0.003421783447265625, 0.033905029296875, 0.01513671875, 0.030609130859375, 0.00490570068359375, 0.004177093505859375, 0.1072998046875, -0.006916046142578125, 0.00811004638671875, 0.0173187255859375, -0.001506805419921875, 0.055572509765625, 0.0125274658203125, 0.03033447265625, -0.08514404296875, -0.06640625, 0.052093505859375, 0.086669921875, -0.04046630859375, -0.04815673828125, 0.0060577392578125, 0.015350341796875, -0.0009670257568359375, 0.028778076171875, 0.0093994140625, 0.00293731689453125, 0.050018310546875, 0.0156707763671875, -0.041961669921875, 0.0048370361328125, 0.01448822021484375, 0.025482177734375, 0.0303192138671875, 0.02252197265625, -0.031494140625, -0.0084228515625, -0.0095062255859375, 0.01062774658203125, 0.019439697265625, 0.00445556640625, 0.0207977294921875, -0.01214599609375, 0.0105133056640625, 0.00897216796875, 0.018463134765625, -0.01410675048828125, -0.0312347412109375, -0.027679443359375, -0.057769775390625, 0.00827789306640625, 0.025909423828125, -0.0191650390625, -0.0032444000244140625, 0.013336181640625, 0.06304931640625, -0.003505706787109375, -0.032623291015625, 0.006679534912109375, -0.006927490234375, -0.0051116943359375, -0.026397705078125, 0.01241302490234375, 0.0167236328125, -0.005649566650390625, -0.0239105224609375, 0.02850341796875, 0.02667236328125, -0.0159912109375, -0.01180267333984375, 0.00914764404296875, -0.0355224609375, 0.0229644775390625, -0.0072021484375, 0.024200439453125, 0.01322174072265625, -0.093505859375, -0.009765625, -0.0177764892578125, -0.0311431884765625, 0.0247650146484375, 0.0238800048828125, -0.057342529296875, 0.0382080078125, 0.034393310546875, -0.0009069442749023438, 0.007343292236328125, -0.017822265625, 0.0251922607421875, 0.045745849609375, 0.0227813720703125, 0.03753662109375, -0.050689697265625, -0.02752685546875, -0.00283050537109375, 0.0254669189453125, -0.00914764404296875, 0.07928466796875, -0.01494598388671875, 0.00555419921875, 0.0235137939453125, -0.007415771484375, 0.015472412109375, 0.0139312744140625, 0.039093017578125, -0.00441741943359375, 0.0113067626953125, -0.03277587890625, -0.04180908203125, 0.036712646484375, 0.0042724609375, -0.0361328125, 0.0196990966796875, -0.0202789306640625, 0.00713348388671875, 0.000002562999725341797, 0.0202178955078125, -0.0127410888671875, 0.003543853759765625, -0.028289794921875, -0.01348876953125, 0.050048828125, 0.04180908203125, -0.01425933837890625, -0.00418853759765625, 0.038299560546875, -0.0236968994140625, 0.0243682861328125, -0.005321502685546875, 0.058837890625, 0.0364990234375, -0.00974273681640625, -0.00516510009765625, 0.036346435546875, -0.00444793701171875, 0.03564453125, 0.0099334716796875, 0.01114654541015625, 0.047088623046875, -0.0228424072265625, 0.01617431640625, -0.0016336441040039062, 0.00765228271484375, -0.055206298828125, -0.025665283203125, 0.046966552734375, -0.001708984375, -0.0109405517578125, -0.0203857421875, -0.029205322265625, -0.02783203125, 0.0009365081787109375, 0.0247802734375, -0.010528564453125, -0.034271240234375, -0.0982666015625, -0.0162200927734375, 0.0019359588623046875, 0.03204345703125, -0.08984375, 0.0643310546875, 0.0233001708984375, -0.00818634033203125, -0.03143310546875, 0.029266357421875, -0.01413726806640625, -0.021881103515625, -0.05450439453125, 0.0224456787109375, -0.0297088623046875, 0.00331878662109375, -0.0005197525024414062, -0.001522064208984375, 0.041839599609375, -0.0157623291015625, -0.0205535888671875, -0.012420654296875, 0.0137176513671875, 0.037750244140625, 0.0268707275390625, -0.0026836395263671875, 0.024078369140625, 0.0246734619140625, -0.0246734619140625, -0.068115234375, -0.01029205322265625, -0.021514892578125, 0.0316162109375, 0.0174713134765625, -0.02398681640625, -0.0030803680419921875, -0.03564453125, -0.006801605224609375, 0.0628662109375, 0.02191162109375, -0.021270751953125, 0.00582122802734375, 0.01226806640625, -0.054046630859375, 0.01221466064453125, 0.01216888427734375, -0.0229034423828125, 0.04351806640625, 0.02740478515625, 0.052093505859375, 0.016387939453125, 0.03173828125, 0.037109375, 0.000698089599609375, 0.055206298828125, 0.045440673828125, 0.0135040283203125, 0.007335662841796875, -0.0034637451171875, 0.0171356201171875, 0.038909912109375, -0.03668212890625, -0.034088134765625, 0.005435943603515625, 0.0062255859375, 0.021270751953125, 0.0033721923828125, -0.054168701171875, -0.0249481201171875, 0.05145263671875, 0.051727294921875, 0.0257720947265625, -0.020477294921875, 0.0494384765625, 0.006561279296875, -0.057586669921875, 0.0260467529296875, 0.0214080810546875, -0.0250396728515625, 0.00989532470703125, 0.01120758056640625, -0.035797119140625, -0.0426025390625, 0.0008425712585449219, -0.0667724609375, 0.0019216537475585938, -0.0255584716796875, 0.0264434814453125, -0.0271759033203125, -0.01267242431640625, 0.001129150390625, -0.03631591796875, -0.0902099609375, 0.00847625732421875, 0.01502227783203125, -0.0863037109375, -0.036376953125, -0.0090789794921875, 0.0219573974609375, -0.0736083984375, 0.001613616943359375, -0.0184478759765625, 0.051849365234375, -0.06634521484375, 0.007328033447265625, -0.0014715194702148438, 0.03875732421875, 0.013580322265625, 0.045562744140625, -0.02783203125, 0.0360107421875, 0.01534271240234375, 0.0203094482421875, -0.01168060302734375, 0.0887451171875, -0.0021877288818359375, 0.032440185546875, 0.0032596588134765625, -0.0106658935546875, 0.032745361328125, -0.022674560546875, 0.0134735107421875, 0.00521087646484375, -0.0249786376953125, -0.01479339599609375, -0.024658203125, -0.003173828125, -0.007595062255859375, 0.005489349365234375 ]
7d05484069e6d998fd0788cdad1629631e8a8859
Wordpress Stackexchange Q: Create a custom WP install with plugins, theme etc already installed? Is it possible to create a Wordpress install that will automatically install with multiple plugins, a particular theme and custom settings so when I setup multiple blogs I don't have install so much extras each time? It's because I will be installing lots of Wordpress blogs of different kinds that require different plugins and different themes and I want to be able to just install with everything already there.. Thanks A: If you have access to your host commandline and are running linux, why not pair wp_cli with a bash script. In this way you can have a fairly defined standard set of plugins to activate per install. wp plugin activate plugin_a wp plugin activate plugin_b wp plugin activate plugin_c Here's a WP_CLI and YT demo video: * *https://www.siteground.com/tutorials/wordpress/wp-cli.htm *https://www.youtube.com/watch?v=XheCztLIr68
Q: Create a custom WP install with plugins, theme etc already installed? Is it possible to create a Wordpress install that will automatically install with multiple plugins, a particular theme and custom settings so when I setup multiple blogs I don't have install so much extras each time? It's because I will be installing lots of Wordpress blogs of different kinds that require different plugins and different themes and I want to be able to just install with everything already there.. Thanks A: If you have access to your host commandline and are running linux, why not pair wp_cli with a bash script. In this way you can have a fairly defined standard set of plugins to activate per install. wp plugin activate plugin_a wp plugin activate plugin_b wp plugin activate plugin_c Here's a WP_CLI and YT demo video: * *https://www.siteground.com/tutorials/wordpress/wp-cli.htm *https://www.youtube.com/watch?v=XheCztLIr68 A: In the past I've had success in making custom WP installations using custom install.php file. I remember I mostly followed this tutorial and improvised: Automating WordPress customizations – the install.php way @ WordPress Bits The trick was in overriding the installation process by putting your own install.php into wp-content directory. Note that both articles are from 2007. It worked for me in the past but I'm totally not sure if this method works now with WP 3.3. Presently I just use a custom bash script to do a quick install with my favorite plugins and a small plugin to loop through the settings I'd always used to change. I can share a code of both if needed but I believe much better scripts for both can be found online. While I was searching for the above tutorial I've found WPkgr: WordPress Custom Install PKGs - I've never heard about it nor tested it but it looks like worth a try. A: I've always used TGM Plugin Activation to accomplish this. It allows you to require and even automatically install specific plugins. You can do it either by embedding the plugins directly in your theme folder or you can set it up to have the plugins download straight from the WP plugin repository or some other remote repository. A: if you have installed on your servers (and are familiar with) Git, you should be able to easily accomplish this. I'm currently waiting for VersionPress to be released, but there are other plugins that can do this; should also be able to be done manually. I've not done this, but thought it might point you in the right direction. A: You can add themes and plugins to the WordPress wp-content folder. You can also use theme specific default functions and after_switch_theme in your themes so they setup automatically when activated. These functions update theme settings and plugin settings so for example, you could setup a sliders settings. Example: add_action( 'after_switch_theme', 'your_theme_setting_defaults' ); function your_theme_setting_defaults() { if( function_exists( 'your_themes_update_settings' ) ) { your_themes_update_settings( array( 'blog_cat_num' => 5, 'content_archive' => 'full', 'content_archive_limit' => 0, 'content_archive_thumbnail' => 0, 'image_alignment' => 'alignleft', 'posts_nav' => 'numeric', 'site_layout' => 'content-sidebar', ) ); } } You would also need to code the function into your theme. Set plugin defaults example code: add_filter( 'your_themes_slider_settings_defaults', 'your_slider_defaults' ); function your_slider_defaults( $defaults ) { $args = array( 'location_horizontal' => 'left', 'location_vertical' => 'top', 'posts_num' => '3', 'slideshow_excerpt_content_limit' => '100', 'slideshow_excerpt_content' => 'full', 'slideshow_excerpt_width' => '30', 'slideshow_height' => '445', 'slideshow_more_text' => __( 'Continue Reading&hellip;', 'executive' ), 'slideshow_title_show' => 1, 'slideshow_width' => '1140', ); $args = wp_parse_args( $args, $defaults ); return $args; }
wordpress
{ "language": "en", "length": 581, "provenance": "stackexchange_00019.jsonl.gz:417428", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43446" }
[ 0.0211944580078125, -0.0082244873046875, 0.014404296875, -0.036773681640625, -0.008880615234375, -0.0007114410400390625, 0.002017974853515625, -0.017852783203125, -0.033660888671875, -0.0131683349609375, -0.0031681060791015625, 0.040008544921875, -0.03033447265625, -0.03759765625, 0.0421142578125, -0.035186767578125, 0.04339599609375, -0.0301055908203125, 0.006793975830078125, -0.0157012939453125, 0.01309967041015625, 0.01201629638671875, 0.0135040283203125, 0.09051513671875, 0.01332855224609375, 0.007068634033203125, 0.062255859375, -0.01715087890625, 0.00501251220703125, -0.0198974609375, 0.02032470703125, -0.0087890625, 0.0148468017578125, 0.0120849609375, -0.00751495361328125, -0.00705718994140625, -0.0099029541015625, 0.00701904296875, 0.0011034011840820312, 0.020751953125, 0.0021686553955078125, -0.0021762847900390625, 0.04852294921875, 0.037445068359375, 0.004673004150390625, -0.0465087890625, 0.019622802734375, -0.05291748046875, 0.0090789794921875, -0.059173583984375, -0.005489349365234375, 0.004108428955078125, 0.04144287109375, -0.07318115234375, -0.0200958251953125, -0.017547607421875, 0.020477294921875, 0.05755615234375, 0.04364013671875, -0.048980712890625, -0.07183837890625, 0.002079010009765625, 0.02288818359375, -0.0177459716796875, 0.0246734619140625, 0.0016717910766601562, -0.00795745849609375, 0.03955078125, -0.08056640625, 0.01483154296875, 0.03594970703125, -0.062103271484375, 0.003631591796875, -0.018951416015625, 0.006084442138671875, -0.01528167724609375, 0.005718231201171875, -0.029144287109375, 0.01241302490234375, 0.007373809814453125, 0.033599853515625, 0.01739501953125, 0.06817626953125, -0.0692138671875, 0.050445556640625, -0.018829345703125, -0.0005660057067871094, -0.00015807151794433594, -0.00507354736328125, -0.035675048828125, -0.01174163818359375, -0.046630859375, -0.029876708984375, 0.012603759765625, -0.01120758056640625, -0.01482391357421875, 0.019500732421875, 0.032623291015625, 0.0015411376953125, 0.0301971435546875, 0.0035552978515625, -0.04833984375, 0.07598876953125, -0.0399169921875, -0.00661468505859375, 0.049530029296875, -0.0014638900756835938, 0.025604248046875, 0.03790283203125, 0.0206298828125, 0.0218505859375, -0.0187530517578125, -0.006145477294921875, -0.03515625, 0.005840301513671875, 0.035003662109375, -0.01153564453125, 0.0111083984375, 0.006305694580078125, 0.0006346702575683594, -0.007110595703125, 0.01123046875, -0.021575927734375, -0.0029811859130859375, -0.032012939453125, -0.028717041015625, 0.013702392578125, -0.0149688720703125, -0.045013427734375, 0.0083465576171875, -0.031768798828125, 0.01551055908203125, 0.072998046875, 0.04034423828125, -0.0037593841552734375, -0.01983642578125, 0.0137176513671875, 0.05694580078125, 0.0096282958984375, 0.01166534423828125, 0.0086669921875, -0.037109375, -0.0070648193359375, -0.00823974609375, 0.0292205810546875, 0.01238250732421875, 0.0011768341064453125, 0.0125274658203125, 0.00368499755859375, 0.0178985595703125, 0.01508331298828125, -0.03668212890625, 0.002838134765625, -0.0032711029052734375, 0.0189208984375, -0.0193939208984375, -0.007015228271484375, -0.0186767578125, 0.0323486328125, -0.0028896331787109375, -0.009429931640625, -0.009002685546875, 0.0094757080078125, -0.0098876953125, -0.0382080078125, 0.0207061767578125, 0.003795623779296875, -0.0003218650817871094, 0.0200653076171875, -0.0259552001953125, 0.0202484130859375, -0.0264129638671875, 0.04241943359375, 0.0045013427734375, 0.0080108642578125, 0.03765869140625, 0.038787841796875, -0.00788116455078125, 0.0168609619140625, 0.033416748046875, -0.012054443359375, -0.015716552734375, 0.09381103515625, -0.048370361328125, -0.0699462890625, -0.00913238525390625, 0.01195526123046875, 0.0782470703125, 0.050628662109375, 0.0369873046875, 0.0185089111328125, -0.05950927734375, -0.032562255859375, 0.0174713134765625, -0.039459228515625, -0.0229644775390625, 0.00974273681640625, 0.0231170654296875, -0.0174713134765625, 0.004192352294921875, 0.008270263671875, -0.0201263427734375, 0.01375579833984375, -0.001949310302734375, -0.032806396484375, -0.01666259765625, -0.016937255859375, 0.00921630859375, -0.0114898681640625, -0.0180816650390625, 0.004352569580078125, -0.038818359375, 0.039825439453125, -0.09027099609375, -0.041168212890625, 0.0034332275390625, -0.03668212890625, 0.07122802734375, -0.0119476318359375, 0.0699462890625, -0.0022830963134765625, -0.0333251953125, 0.0298614501953125, 0.0014247894287109375, 0.0292510986328125, -0.0104522705078125, -0.004528045654296875, -0.01395416259765625, 0.001983642578125, 0.032012939453125, -0.0262603759765625, -0.00423431396484375, 0.0036144256591796875, -0.018463134765625, -0.034454345703125, -0.0164337158203125, 0.005092620849609375, -0.0582275390625, 0.02203369140625, 0.06109619140625, 0.0234832763671875, 0.026947021484375, -0.023406982421875, -0.006866455078125, 0.040130615234375, -0.0217132568359375, 0.0178070068359375, -0.0032291412353515625, 0.036041259765625, 0.0648193359375, -0.022186279296875, -0.004718780517578125, 0.00809478759765625, -0.034423828125, 0.0159912109375, 0.032623291015625, -0.0277252197265625, -0.033966064453125, 0.03363037109375, -0.024261474609375, 0.011566162109375, -0.00025916099548339844, -0.0157623291015625, 0.00171661376953125, 0.0014801025390625, 0.0114288330078125, 0.0300750732421875, 0.02099609375, -0.006420135498046875, -0.0131683349609375, 0.0085601806640625, 0.0134124755859375, -0.00128936767578125, -0.0025959014892578125, -0.01016998291015625, -0.0088653564453125, -0.01141357421875, 0.004974365234375, -0.007762908935546875, -0.0134735107421875, -0.02191162109375, 0.01367950439453125, -0.0275726318359375, -0.01861572265625, -0.004688262939453125, -0.08416748046875, -0.006999969482421875, 0.01108551025390625, -0.0537109375, -0.059844970703125, -0.0137939453125, -0.00473785400390625, -0.059844970703125, 0.0299224853515625, 0.01303863525390625, -0.027923583984375, -0.00013768672943115234, -0.07745361328125, 0.055511474609375, -0.043487548828125, 0.034332275390625, 0.06768798828125, 0.006114959716796875, 0.0009307861328125, -0.00788116455078125, 0.019866943359375, 0.0189361572265625, -0.011810302734375, -0.027862548828125, -0.0080108642578125, -0.05755615234375, -0.0186767578125, 0.027557373046875, 0.05426025390625, -0.004100799560546875, -0.0350341796875, -0.0004143714904785156, 0.0291290283203125, -0.0269622802734375, -0.0357666015625, 0.033111572265625, -0.06268310546875, 0.04998779296875, -0.023712158203125, -0.01505279541015625, -0.051666259765625, 0.01007843017578125, 0.0175323486328125, -0.01471710205078125, -0.0347900390625, 0.0076446533203125, -0.0625, -0.058868408203125, -0.045684814453125, 0.02117919921875, 0.003978729248046875, -0.00429534912109375, 0.06927490234375, -0.0025920867919921875, -0.058135986328125, -0.01540374755859375, 0.0097808837890625, -0.0007367134094238281, 0.005588531494140625, 0.004192352294921875, -0.027984619140625, 0.015655517578125, -0.017608642578125, 0.025787353515625, 0.03448486328125, -0.01131439208984375, -0.0031070709228515625, -0.005771636962890625, -0.02813720703125, -0.005489349365234375, -0.009613037109375, 0.00424957275390625, -0.025238037109375, -0.0181121826171875, -0.07586669921875, 0.024322509765625, 0.014068603515625, -0.0049285888671875, 0.0010957717895507812, -0.017578125, -0.027374267578125, 0.00693511962890625, 0.0008969306945800781, -0.0110321044921875, 0.00548553466796875, -0.0000667572021484375, -0.0082855224609375, 0.0555419921875, -0.01128387451171875, -0.0017862319946289062, -0.02001953125, 0.001255035400390625, -0.037078857421875, 0.0034465789794921875, -0.006496429443359375, -0.00630950927734375, -0.024505615234375, -0.0146636962890625, -0.04638671875, -0.04876708984375, 0.041412353515625, -0.0146331787109375, 0.0268707275390625, -0.0386962890625, -0.0287933349609375, 0.007801055908203125, 0.10894775390625, -0.08251953125, 0.0021266937255859375, 0.047454833984375, 0.034423828125, -0.040252685546875, -0.0242462158203125, -0.0989990234375, -0.033355712890625, -0.09295654296875, 0.01256561279296875, -0.0095062255859375, -0.031494140625, 0.0025310516357421875, -0.0157012939453125, -0.0552978515625, -0.049285888671875, 0.0361328125, -0.0134429931640625, 0.0506591796875, -0.01348876953125, 0.0253448486328125, -0.0304718017578125, -0.01806640625, -0.0121002197265625, -0.0791015625, -0.0011310577392578125, -0.04705810546875, 0.04656982421875, -0.0037021636962890625, 0.0545654296875, -0.0185089111328125, 0.039642333984375, -0.002422332763671875, 0.041015625, 0.00431060791015625, 0.0308074951171875, 0.005458831787109375, -0.053558349609375, 0.0126800537109375, -0.03753662109375, -0.0345458984375, -0.038909912109375, -0.00733184814453125, 0.03369140625, 0.00830841064453125, 0.047454833984375, 0.0087127685546875, 0.00508880615234375, 0.0218963623046875, -0.00836181640625, -0.0191650390625, 0.02410888671875, -0.0093994140625, -0.013885498046875, -0.01441192626953125, 0.01297760009765625, 0.0120849609375, -0.057464599609375, 0.0092315673828125, 0.02386474609375, 0.0970458984375, 0.018280029296875, 0.0159912109375, -0.03106689453125, 0.0162200927734375, 0.035064697265625, 0.0278167724609375, 0.01490020751953125, 0.00783538818359375, -0.00711822509765625, -0.0308837890625, 0.014556884765625, -0.013702392578125, 0.027435302734375, 0.0194854736328125, 0.0286865234375, -0.00830078125, -0.005054473876953125, 0.017547607421875, 0.0023250579833984375, 0.0196533203125, 0.006809234619140625, -0.0199127197265625, 0.005008697509765625, 0.0223388671875, 0.007274627685546875, -0.015899658203125, -0.030609130859375, -0.038787841796875, 0.0181884765625, -0.01507568359375, -0.0181732177734375, -0.0017633438110351562, 0.0002968311309814453, 0.0045318603515625, -0.006038665771484375, -0.0011730194091796875, 0.06195068359375, 0.05072021484375, 0.004940032958984375, 0.0341796875, 0.047393798828125, -0.028167724609375, 0.00959014892578125, -0.0027103424072265625, 0.061767578125, 0.0046844482421875, -0.051727294921875, -0.007450103759765625, -0.01666259765625, 0.0222320556640625, 0.030303955078125, -0.01085662841796875, 0.0740966796875, 0.0207061767578125, -0.026031494140625, -0.014251708984375, -0.061126708984375, -0.0232696533203125, -0.07373046875, -0.047119140625, -0.000888824462890625, -0.0174560546875, 0.038909912109375, 0.0011491775512695312, -0.005664825439453125, 0.016998291015625, -0.00901031494140625, 0.04620361328125, 0.058868408203125, -0.0005555152893066406, -0.00037860870361328125, 0.0258331298828125, -0.026824951171875, -0.01227569580078125, 0.0045623779296875, -0.0281982421875, 0.0204010009765625, 0.026092529296875, 0.052764892578125, 0.014129638671875, -0.03485107421875, 0.005168914794921875, -0.0548095703125, -0.0039520263671875, -0.0029506683349609375, -0.0126953125, -0.0283660888671875, -0.004192352294921875, 0.046234130859375, 0.03216552734375, -0.00531768798828125, -0.0132293701171875, -0.0011186599731445312, -0.006786346435546875, -0.0008764266967773438, 0.023834228515625, -0.044708251953125, 0.01505279541015625, 0.032318115234375, -0.0031871795654296875, 0.0226898193359375, 0.00940704345703125, -0.0521240234375, -0.045318603515625, -0.0027828216552734375, -0.00736236572265625, 0.038116455078125, -0.0159454345703125, 0.0033702850341796875, -0.01374053955078125, -0.00794219970703125, -0.005771636962890625, 0.01541900634765625, 0.0197601318359375, 0.0005588531494140625, -0.035003662109375, 0.0084381103515625, -0.01187896728515625, -0.02783203125, -0.054840087890625, -0.063232421875, -0.07269287109375, -0.0001443624496459961, 0.0167083740234375, -0.00047969818115234375, 0.00007653236389160156, -0.01514434814453125, -0.0178680419921875, 0.025177001953125, 0.01532745361328125, 0.01206207275390625, 0.009246826171875, 0.0004887580871582031, 0.02020263671875, 0.022369384765625, 0.0295562744140625, 0.018035888671875, 0.0011034011840820312, -0.033935546875, -0.0018711090087890625, -0.0301513671875, -0.0194549560546875, -0.011444091796875, 0.00409698486328125, 0.052215576171875, 0.05621337890625, 0.0023212432861328125, 0.01154327392578125, 0.003360748291015625, 0.01441192626953125, -0.015045166015625, -0.012664794921875, 0.0224761962890625, 0.0031795501708984375, 0.0196380615234375, -0.052093505859375, 0.0037708282470703125, 0.0035991668701171875, 0.01482391357421875, 0.01209259033203125, -0.0418701171875, 0.0029277801513671875, 0.051361083984375, -0.0638427734375, 0.06451416015625, 0.058929443359375, 0.00662994384765625, 0.04522705078125, 0.007793426513671875, 0.011749267578125, 0.0104522705078125, -0.0094451904296875, 0.002529144287109375, -0.02325439453125, 0.0496826171875, -0.0010356903076171875, 0.002429962158203125, 0.04998779296875, -0.022857666015625, 0.0183258056640625, 0.03778076171875, 0.0523681640625, -0.0567626953125, 0.01090240478515625, -0.0016326904296875, -0.008880615234375, 0.028564453125, -0.01074981689453125, -0.00701141357421875, -0.0070037841796875, 0.0172271728515625, -0.01398468017578125, -0.021148681640625, 0.00839996337890625, -0.012786865234375, -0.02166748046875, 0.005462646484375, -0.00864410400390625, 0.01255035400390625, 0.000016927719116210938, 0.0125885009765625, 0.000843048095703125, 0.007965087890625, 0.00632476806640625, -0.011016845703125, -0.009796142578125, -0.0266876220703125, -0.05621337890625, -0.0177154541015625, -0.04241943359375, -0.013397216796875, 0.0002582073211669922, -0.0203094482421875, 0.01528167724609375, 0.045684814453125, -0.0333251953125, 0.031524658203125, 0.01898193359375, 0.0004940032958984375, -0.0133209228515625, -0.01043701171875, 0.034576416015625, 0.036407470703125, -0.0347900390625, 0.019683837890625, -0.0231475830078125, -0.0198974609375, 0.0023555755615234375, 0.0283050537109375, 0.054656982421875, -0.0019683837890625, -0.0294342041015625, 0.056640625, -0.007114410400390625, -0.0230255126953125, -0.0264434814453125, 0.054229736328125, -0.080078125, -0.04052734375, 0.0007886886596679688, -0.003604888916015625, -0.0207366943359375, -0.018585205078125, -0.04522705078125, 0.14111328125, -0.03143310546875, -0.01021575927734375, 0.0029850006103515625, 0.06976318359375, -0.0175933837890625, 0.051910400390625, -0.0269775390625, 0.060089111328125, -0.007770538330078125, 0.0285491943359375, -0.05133056640625, 0.002593994140625, -0.00278472900390625, 0.02972412109375, 0.0135498046875, 0.00872802734375, -0.0308837890625, -0.0117645263671875, 0.0196075439453125, 0.018341064453125, 0.009429931640625, 0.03265380859375, 0.0005135536193847656, 0.043182373046875, 0.034912109375, -0.0142669677734375, 0.03778076171875, 0.013824462890625, -0.0251007080078125, 0.031402587890625, 0.007328033447265625, -0.002532958984375, -0.00736236572265625, 0.05084228515625, -0.033782958984375, -0.00739288330078125, 0.021575927734375, -0.00940704345703125, 0.039642333984375, -0.0247802734375, 0.0054931640625, -0.002414703369140625, 0.03448486328125, -0.00864410400390625, 0.038970947265625, -0.018280029296875, -0.022674560546875, -0.0235443115234375, 0.011383056640625, -0.062408447265625, -0.006252288818359375, -0.01393890380859375, 0.061004638671875, -0.0469970703125, 0.00873565673828125, -0.003208160400390625, 0.022186279296875, -0.025634765625, 0.0276031494140625, -0.0007376670837402344, 0.00011104345321655273, -0.0200653076171875, -0.056854248046875, 0.0019216537475585938, 0.0123748779296875, 0.0052947998046875, -0.006076812744140625, -0.0071868896484375, -0.01349639892578125, 0.044952392578125, -0.031036376953125, 0.0278472900390625, 0.0234832763671875, -0.00850677490234375, -0.006069183349609375, 0.0111846923828125, -0.016632080078125, 0.028350830078125, -0.0072174072265625, -0.015380859375, 0.00925445556640625, 0.031646728515625, 0.0042877197265625, 0.043304443359375, -0.031890869140625, -0.01528167724609375, -0.01093292236328125, 0.058349609375, 0.0194091796875, 0.002117156982421875, -0.019683837890625, -0.03314208984375, 0.00916290283203125, 0.0161285400390625, -0.011627197265625, 0.016143798828125, 0.048370361328125, 0.06866455078125, -0.021392822265625, -0.0197296142578125, 0.056060791015625, -0.010467529296875, -0.0196380615234375, -0.031097412109375, -0.0020542144775390625, 0.0193023681640625, -0.0033092498779296875, -0.003841400146484375, 0.024810791015625, 0.019134521484375, -0.01349639892578125, 0.024627685546875, 0.0021419525146484375, -0.01184844970703125, 0.0266876220703125, -0.013763427734375, 0.0345458984375, 0.00726318359375, -0.09197998046875, -0.021697998046875, -0.022735595703125, -0.04052734375, 0.033355712890625, 0.04412841796875, -0.0216064453125, 0.01274871826171875, 0.0111083984375, -0.0243988037109375, 0.008392333984375, 0.026702880859375, 0.006946563720703125, 0.01953125, 0.0214996337890625, 0.00409698486328125, -0.051544189453125, -0.01995849609375, -0.03765869140625, 0.041534423828125, 0.0271759033203125, 0.072509765625, -0.01361846923828125, 0.018890380859375, -0.006683349609375, -0.00366973876953125, -0.001094818115234375, 0.0039043426513671875, -0.026092529296875, 0.0188446044921875, 0.009796142578125, -0.017669677734375, -0.0308837890625, 0.0053253173828125, 0.0211944580078125, -0.0293426513671875, -0.001697540283203125, -0.043212890625, 0.037689208984375, 0.0131072998046875, 0.02783203125, -0.037933349609375, -0.05255126953125, -0.087158203125, -0.019805908203125, 0.0185699462890625, 0.001964569091796875, -0.00965118408203125, -0.00605010986328125, 0.0243377685546875, -0.006256103515625, 0.0084381103515625, 0.0292205810546875, 0.000980377197265625, 0.0191650390625, 0.0023174285888671875, -0.069580078125, -0.0022792816162109375, -0.017120361328125, -0.033538818359375, 0.01885986328125, 0.04315185546875, 0.0017862319946289062, -0.04150390625, -0.012237548828125, 0.049407958984375, 0.053314208984375, -0.00466156005859375, 0.04937744140625, 0.0014448165893554688, -0.0052032470703125, 0.023223876953125, -0.024993896484375, -0.01555633544921875, -0.028289794921875, -0.0028553009033203125, 0.01407623291015625, -0.024505615234375, -0.0305328369140625, -0.046844482421875, 0.033905029296875, 0.0311279296875, -0.0084228515625, -0.032470703125, 0.0264129638671875, -0.05108642578125, 0.0294189453125, -0.004547119140625, -0.01275634765625, -0.0203857421875, -0.0107879638671875, 0.0045166015625, -0.04254150390625, -0.045623779296875, 0.060943603515625, -0.017242431640625, 0.01568603515625, 0.006866455078125, -0.0232696533203125, -0.009307861328125, 0.03924560546875, 0.0230712890625, 0.0677490234375, 0.052276611328125, 0.002315521240234375, 0.0181427001953125, -0.0205841064453125, -0.0167694091796875, -0.08221435546875, 0.02691650390625, -0.10791015625, -0.02325439453125, -0.023284912109375, 0.02447509765625, 0.03466796875, -0.034881591796875, -0.07489013671875, 0.0276031494140625, -0.022735595703125, -0.03668212890625, -0.06378173828125, 0.0137176513671875, -0.00879669189453125, -0.01165771484375, -0.0338134765625, 0.000021755695343017578, -0.007534027099609375, 0.060089111328125, -0.0152130126953125, 0.0232391357421875, -0.01036834716796875, 0.003459930419921875, -0.01090240478515625, 0.0179901123046875, 0.021087646484375, -0.0384521484375, 0.059295654296875, -0.039276123046875, 0.03912353515625, 0.06494140625, -0.024688720703125, -0.0372314453125, -0.0298919677734375, -0.07958984375, -0.040313720703125, -0.044097900390625, 0.0201263427734375, 0.01763916015625, 0.072265625, 0.0633544921875, 0.00782012939453125, -0.06201171875, -0.036956787109375, -0.02105712890625, 0.015594482421875, -0.00399017333984375, -0.0037250518798828125, -0.060150146484375, 0.007293701171875, 0.0159149169921875, 0.00560760498046875, -0.0052947998046875, 0.01171875, -0.00782012939453125, -0.02569580078125, 0.004180908203125, 0.012115478515625, -0.06341552734375, 0.0108795166015625, 0.064697265625, -0.0278778076171875, 0.01324462890625, 0.006366729736328125, -0.005222320556640625, 0.04718017578125, 0.0282440185546875, 0.011993408203125, 0.033966064453125, -0.06597900390625, 0.01462554931640625, -0.0194549560546875, 0.040985107421875, -0.05145263671875, -0.00809478759765625, -0.0028705596923828125, 0.028106689453125, -0.01546478271484375, 0.0264739990234375, 0.00722503662109375, 0.0347900390625, 0.0010776519775390625, 0.0653076171875, 0.007320404052734375, -0.04583740234375, -0.044036865234375, 0.049530029296875, -0.0260009765625, -0.020355224609375, -0.0153350830078125, -0.02587890625, -0.001987457275390625, -0.00965118408203125, -0.032318115234375, -0.03826904296875, -0.001781463623046875, 0.04229736328125, -0.01346588134765625, 0.01409912109375 ]
23dd10988598bb5a6395b0223ffe31aae794db7a
Wordpress Stackexchange Q: What's a good way to put authors into groups I have 7 companies contributing to one blog, and each company has 3 authors. I'd like to show all posts by all authors of one company. Is that possible? A: To do this literally (put authors into groups) best way would probably be to create custom taxonomy for users. See custom user taxonomies in WordPress for reference. However the end result you are looking for does not really deal with grouping users - it deals with grouping posts. Registering custom taxonomy ("company") for posts would be more simple and straightforward. See register_taxonomy() in Codex.
Q: What's a good way to put authors into groups I have 7 companies contributing to one blog, and each company has 3 authors. I'd like to show all posts by all authors of one company. Is that possible? A: To do this literally (put authors into groups) best way would probably be to create custom taxonomy for users. See custom user taxonomies in WordPress for reference. However the end result you are looking for does not really deal with grouping users - it deals with grouping posts. Registering custom taxonomy ("company") for posts would be more simple and straightforward. See register_taxonomy() in Codex. A: Another simple thing to do would be to add a meta-box to the "users" screen. Call it "company", and use a drop-down or check box and associate users with a company when they are created. If you didn't want to hard code this yourself - you could look into this plugin (or similar). http://wordpress.org/extend/plugins/cimy-user-extra-fields/ Then in your theme, you set up your query using the new meta-box to filter down by company.
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:417434", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43471" }
[ 0.03509521484375, 0.01062774658203125, -0.034393310546875, -0.034515380859375, 0.0174407958984375, -0.02838134765625, 0.00920867919921875, -0.0173187255859375, -0.00589752197265625, -0.00591278076171875, -0.0343017578125, 0.036468505859375, -0.067138671875, -0.0182647705078125, 0.00043082237243652344, -0.0450439453125, 0.0303802490234375, -0.0134124755859375, 0.05279541015625, 0.0160369873046875, -0.011474609375, 0.0139007568359375, 0.06329345703125, -0.0703125, 0.0352783203125, -0.0272674560546875, 0.050567626953125, -0.0202484130859375, 0.047149658203125, -0.01142120361328125, 0.024169921875, -0.0242919921875, 0.01158905029296875, -0.01224517822265625, 0.042205810546875, 0.073486328125, 0.014862060546875, 0.01464080810546875, 0.039703369140625, -0.0057220458984375, 0.0201873779296875, -0.0040130615234375, 0.01070404052734375, 0.029022216796875, 0.0124664306640625, -0.07867431640625, 0.06658935546875, -0.057464599609375, 0.043914794921875, -0.0419921875, 0.020904541015625, 0.024871826171875, 0.0196990966796875, 0.0133514404296875, -0.028961181640625, 0.0168609619140625, 0.049102783203125, -0.044647216796875, 0.046875, -0.10028076171875, -0.047210693359375, -0.043792724609375, 0.07244873046875, 0.055084228515625, 0.023040771484375, 0.002086639404296875, 0.0221405029296875, 0.0282135009765625, -0.027984619140625, -0.00927734375, 0.004665374755859375, -0.0248565673828125, -0.01154327392578125, 0.01464080810546875, -0.0279083251953125, -0.035888671875, -0.0003592967987060547, -0.0693359375, 0.018463134765625, 0.0252838134765625, -0.04376220703125, -0.01824951171875, -0.0224151611328125, -0.03765869140625, 0.0008206367492675781, 0.005825042724609375, -0.0191802978515625, 0.00199127197265625, -0.01274871826171875, -0.01727294921875, -0.0205535888671875, -0.04290771484375, -0.0621337890625, 0.061859130859375, 0.025146484375, -0.0173492431640625, 0.03778076171875, 0.046722412109375, -0.026397705078125, -0.007183074951171875, -0.007419586181640625, -0.01507568359375, 0.002285003662109375, -0.039581298828125, 0.01316070556640625, 0.037811279296875, -0.0143890380859375, 0.00627899169921875, 0.046661376953125, 0.032470703125, 0.009918212890625, 0.0192108154296875, 0.0038318634033203125, -0.02777099609375, -0.0010480880737304688, -0.02862548828125, -0.048004150390625, 0.056640625, 0.0295867919921875, -0.00673675537109375, -0.010711669921875, 0.025390625, -0.0108184814453125, 0.0015544891357421875, -0.03125, -0.016143798828125, 0.01265716552734375, -0.03192138671875, 0.01297760009765625, -0.01409912109375, -0.019317626953125, 0.02032470703125, 0.05242919921875, 0.0252227783203125, 0.007610321044921875, -0.0007748603820800781, 0.0024471282958984375, 0.033203125, -0.00417327880859375, -0.0009889602661132812, -0.00688934326171875, -0.035797119140625, 0.0204620361328125, 0.01465606689453125, 0.005970001220703125, 0.014495849609375, 0.0158538818359375, 0.0235595703125, 0.01387786865234375, 0.0052642822265625, -0.00818634033203125, 0.00955963134765625, 0.01239776611328125, -0.0047149658203125, 0.007579803466796875, -0.044158935546875, -0.003749847412109375, -0.02581787109375, 0.042633056640625, -0.0192108154296875, 0.040618896484375, 0.032470703125, 0.030609130859375, -0.00862884521484375, 0.0158233642578125, -0.062225341796875, -0.06341552734375, 0.0021266937255859375, 0.01117706298828125, -0.0792236328125, -0.020263671875, 0.00334930419921875, 0.04034423828125, 0.0200653076171875, 0.013519287109375, 0.05804443359375, 0.00811767578125, -0.0122222900390625, 0.01381683349609375, 0.06304931640625, 0.0112457275390625, -0.0179290771484375, 0.045074462890625, -0.0260162353515625, -0.050262451171875, 0.01983642578125, 0.00506591796875, 0.056640625, 0.0291748046875, 0.0019588470458984375, 0.055816650390625, -0.01139068603515625, -0.032623291015625, 0.0015497207641601562, -0.00047779083251953125, 0.0015115737915039062, -0.0073699951171875, 0.011077880859375, -0.0017986297607421875, 0.0008206367492675781, 0.01065826416015625, -0.002445220947265625, 0.0296783447265625, -0.0037212371826171875, 0.0085906982421875, 0.01422119140625, -0.0081787109375, 0.021392822265625, 0.04168701171875, 0.0004451274871826172, -0.0031986236572265625, 0.004650115966796875, -0.01366424560546875, -0.04437255859375, -0.0662841796875, 0.028472900390625, 0.0149688720703125, -0.00760650634765625, 0.0203704833984375, -0.0286407470703125, -0.0093231201171875, 0.030548095703125, -0.008270263671875, 0.01214599609375, 0.050079345703125, -0.048431396484375, -0.00969696044921875, -0.055755615234375, -0.00006842613220214844, -0.008514404296875, -0.055877685546875, 0.066162109375, 0.05474853515625, 0.0419921875, -0.0188140869140625, 0.0180511474609375, 0.0213165283203125, 0.0002148151397705078, -0.01561737060546875, 0.01824951171875, 0.0150146484375, -0.014617919921875, -0.0136871337890625, 0.03070068359375, 0.03619384765625, -0.0100860595703125, -0.004863739013671875, 0.02496337890625, 0.0166015625, 0.07421875, -0.024078369140625, 0.0121002197265625, 0.00499725341796875, -0.035797119140625, 0.0013675689697265625, 0.03857421875, -0.035888671875, -0.00518798828125, 0.0015058517456054688, -0.0253143310546875, 0.01458740234375, -0.07379150390625, -0.032928466796875, -0.0279388427734375, 0.037689208984375, -0.0235137939453125, 0.0201568603515625, 0.01009368896484375, -0.0116729736328125, -0.0225677490234375, 0.00705718994140625, -0.02996826171875, 0.00408172607421875, 0.02227783203125, 0.0110626220703125, 0.026092529296875, -0.030609130859375, -0.00786590576171875, 0.032684326171875, 0.016998291015625, -0.0174102783203125, 0.031158447265625, -0.01482391357421875, -0.020904541015625, -0.014678955078125, -0.029998779296875, -0.007488250732421875, -0.022857666015625, -0.055877685546875, -0.07208251953125, -0.035858154296875, 0.035980224609375, -0.0092620849609375, 0.0147705078125, -0.0107879638671875, -0.00856781005859375, -0.01861572265625, -0.066162109375, 0.07366943359375, -0.0599365234375, 0.005706787109375, 0.07373046875, 0.012542724609375, 0.01348114013671875, -0.00019633769989013672, 0.0011873245239257812, 0.006008148193359375, 0.026947021484375, 0.01113128662109375, -0.034423828125, -0.005168914794921875, -0.0017900466918945312, 0.002201080322265625, 0.044219970703125, -0.0180206298828125, -0.054901123046875, 0.017822265625, 0.00484466552734375, -0.020477294921875, -0.0157318115234375, 0.079833984375, -0.041748046875, -0.027557373046875, -0.0231781005859375, -0.043670654296875, -0.0103759765625, 0.003543853759765625, -0.019378662109375, 0.011260986328125, -0.042938232421875, -0.047882080078125, -0.0396728515625, -0.05023193359375, 0.037384033203125, 0.01100921630859375, 0.00969696044921875, 0.003875732421875, 0.03619384765625, -0.0035610198974609375, -0.0592041015625, -0.0109100341796875, 0.03143310546875, -0.00466156005859375, 0.00891876220703125, 0.01824951171875, 0.0216827392578125, -0.000059485435485839844, 0.0156402587890625, 0.016143798828125, 0.02996826171875, -0.048248291015625, -0.033905029296875, 0.01178741455078125, 0.0257110595703125, 0.0252532958984375, -0.0095672607421875, -0.011260986328125, 0.032012939453125, 0.0196075439453125, -0.0203704833984375, 0.0245513916015625, 0.0289154052734375, 0.0201416015625, -0.06414794921875, -0.06640625, -0.0180816650390625, -0.0232086181640625, 0.020660400390625, 0.01328277587890625, 0.0240325927734375, -0.04241943359375, 0.0237884521484375, 0.01015472412109375, 0.019378662109375, 0.018310546875, 0.007480621337890625, 0.00421905517578125, -0.0209197998046875, -0.004119873046875, -0.0166168212890625, 0.007160186767578125, -0.0256500244140625, 0.032257080078125, -0.060699462890625, -0.0274810791015625, 0.033416748046875, -0.0220794677734375, -0.000308990478515625, -0.0308380126953125, -0.0247650146484375, -0.006805419921875, 0.0711669921875, -0.01009368896484375, -0.00910186767578125, 0.0224151611328125, 0.00839996337890625, -0.035858154296875, -0.0088958740234375, -0.054046630859375, -0.0144500732421875, 0.0452880859375, 0.0077667236328125, -0.0084991455078125, 0.0300750732421875, -0.045989990234375, 0.040069580078125, 0.0261077880859375, 0.00878143310546875, 0.0271453857421875, 0.017974853515625, -0.0013113021850585938, -0.00545501708984375, -0.00037550926208496094, -0.0128631591796875, -0.01593017578125, 0.007282257080078125, -0.09442138671875, -0.016632080078125, -0.0146636962890625, 0.052276611328125, -0.03399658203125, 0.01983642578125, -0.0291595458984375, 0.04205322265625, -0.03369140625, 0.0273590087890625, -0.01534271240234375, 0.017974853515625, 0.00534820556640625, -0.00048661231994628906, -0.0241241455078125, -0.007564544677734375, 0.0005617141723632812, -0.035308837890625, -0.0469970703125, -0.06988525390625, -0.04461669921875, -0.019195556640625, 0.0186767578125, -0.040130615234375, -0.0667724609375, -0.05450439453125, -0.0206298828125, 0.04107666015625, -0.027252197265625, 0.025787353515625, -0.07208251953125, -0.08526611328125, 0.047607421875, 0.0236968994140625, -0.00323486328125, 0.00656890869140625, 0.0654296875, 0.0048980712890625, -0.0279083251953125, -0.08612060546875, 0.0006365776062011719, 0.02545166015625, 0.0241546630859375, -0.00632476806640625, 0.01146697998046875, -0.0244903564453125, 0.0015726089477539062, -0.006359100341796875, -0.048095703125, -0.004241943359375, 0.04156494140625, -0.0005040168762207031, -0.026397705078125, 0.01174163818359375, -0.04852294921875, 0.06927490234375, 0.004985809326171875, -0.00930023193359375, -0.0117950439453125, 0.0006318092346191406, 0.0511474609375, -0.0038394927978515625, 0.007076263427734375, -0.050628662109375, -0.048858642578125, 0.017059326171875, -0.0204925537109375, -0.0120697021484375, 0.011077880859375, -0.01284027099609375, -0.023773193359375, -0.0299072265625, -0.0063323974609375, 0.027740478515625, -0.02862548828125, 0.0185089111328125, 0.01363372802734375, 0.00589752197265625, -0.007457733154296875, 0.026519775390625, -0.0216522216796875, 0.06561279296875, 0.0447998046875, -0.057373046875, 0.0709228515625, -0.01132965087890625, 0.0312042236328125, -0.0006704330444335938, -0.0136566162109375, 0.045867919921875, 0.018768310546875, 0.01983642578125, 0.01580810546875, -0.0496826171875, 0.018951416015625, -0.039093017578125, -0.03436279296875, -0.01088714599609375, -0.015594482421875, -0.013153076171875, 0.019012451171875, -0.0293121337890625, 0.002513885498046875, 0.0075836181640625, 0.07867431640625, 0.05859375, 0.0108489990234375, 0.00829315185546875, -0.001190185546875, -0.0086822509765625, 0.01580810546875, -0.0214385986328125, -0.02252197265625, 0.02410888671875, 0.01947021484375, 0.0238037109375, 0.045867919921875, -0.01393890380859375, -0.0058441162109375, -0.033477783203125, -0.0149078369140625, -0.012603759765625, -0.01507568359375, -0.0224151611328125, -0.00783538818359375, -0.006591796875, 0.0013418197631835938, -0.01328277587890625, 0.0088653564453125, -0.0224456787109375, -0.044830322265625, -0.00496673583984375, -0.027496337890625, 0.0268096923828125, -0.038116455078125, -0.038848876953125, -0.0555419921875, -0.0006155967712402344, 0.04571533203125, -0.056549072265625, -0.048370361328125, -0.0172119140625, -0.0007882118225097656, 0.043212890625, -0.023162841796875, 0.036407470703125, -0.00933074951171875, -0.02581787109375, -0.008148193359375, 0.004512786865234375, 0.06097412109375, 0.0423583984375, -0.058197021484375, 0.007198333740234375, -0.039764404296875, 0.0028629302978515625, -0.0108642578125, -0.04315185546875, -0.036651611328125, -0.01248931884765625, 0.01361083984375, -0.00316619873046875, -0.01467132568359375, -0.0703125, -0.0182037353515625, 0.026947021484375, 0.033355712890625, -0.019500732421875, 0.0247802734375, 0.016815185546875, -0.00864410400390625, 0.054351806640625, 0.033905029296875, 0.01763916015625, -0.04705810546875, -0.042816162109375, 0.00554656982421875, -0.06927490234375, -0.0252227783203125, -0.00327301025390625, -0.0239410400390625, 0.0245819091796875, 0.006870269775390625, 0.006015777587890625, 0.005458831787109375, -0.01451873779296875, 0.00994110107421875, 0.0011987686157226562, 0.0018377304077148438, 0.000858306884765625, -0.049102783203125, 0.063720703125, 0.0035724639892578125, 0.061614990234375, -0.022796630859375, -0.0179443359375, 0.0019407272338867188, -0.0193328857421875, 0.024017333984375, 0.0201873779296875, -0.00693511962890625, 0.005859375, 0.01076507568359375, 0.032958984375, 0.032379150390625, 0.0157012939453125, 0.04461669921875, -0.0215301513671875, -0.01763916015625, -0.0021800994873046875, -0.0050048828125, 0.0012769699096679688, -0.0177001953125, 0.01568603515625, 0.00620269775390625, -0.007965087890625, -0.0122528076171875, 0.0294647216796875, 0.006801605224609375, -0.072509765625, 0.01375579833984375, -0.0189208984375, 0.03826904296875, 0.056304931640625, -0.005931854248046875, -0.0028839111328125, 0.0009684562683105469, 0.07989501953125, -0.00296783447265625, 0.00675201416015625, 0.04827880859375, -0.00588226318359375, 0.006023406982421875, -0.029754638671875, 0.0445556640625, 0.00960540771484375, -0.011199951171875, -0.0012216567993164062, 0.021026611328125, -0.01071929931640625, -0.0171356201171875, 0.0230560302734375, -0.0111083984375, 0.028778076171875, -0.0018701553344726562, 0.044342041015625, -0.049346923828125, 0.0214385986328125, -0.0307769775390625, -0.005615234375, -0.0014543533325195312, 0.01515960693359375, -0.03582763671875, 0.002079010009765625, 0.0164642333984375, -0.0631103515625, -0.03759765625, -0.0219879150390625, -0.0181884765625, 0.0244140625, -0.00661468505859375, 0.019256591796875, -0.027496337890625, -0.00891876220703125, -0.006076812744140625, -0.00017595291137695312, 0.057373046875, -0.038238525390625, -0.0067291259765625, 0.03936767578125, -0.0100860595703125, -0.027618408203125, 0.029144287109375, -0.0078582763671875, -0.0672607421875, -0.0328369140625, 0.0323486328125, -0.060577392578125, 0.01177215576171875, 0.0171966552734375, -0.01381683349609375, 0.043487548828125, -0.0298004150390625, -0.00707244873046875, 0.003833770751953125, 0.0295257568359375, 0.01195526123046875, 0.0260009765625, -0.03765869140625, 0.0268402099609375, -0.0176849365234375, 0.05389404296875, -0.051025390625, -0.020965576171875, 0.00662994384765625, 0.04803466796875, 0.06494140625, 0.0106964111328125, -0.07080078125, -0.0113067626953125, 0.061859130859375, 0.018096923828125, -0.01374053955078125, 0.0712890625, -0.0036468505859375, -0.0302886962890625, 0.0205230712890625, 0.0309906005859375, 0.042816162109375, 0.027496337890625, -0.038116455078125, 0.027435302734375, -0.007114410400390625, -0.0009179115295410156, -0.024810791015625, -0.0008563995361328125, -0.0259552001953125, -0.0240631103515625, 0.01502227783203125, 0.006153106689453125, 0.007568359375, 0.036895751953125, 0.042083740234375, -0.040374755859375, -0.01296234130859375, -0.0212249755859375, 0.0462646484375, 0.004268646240234375, 0.0634765625, 0.052703857421875, 0.0278167724609375, 0.04364013671875, 0.039642333984375, 0.06719970703125, 0.03570556640625, -0.032196044921875, 0.050811767578125, -0.0158538818359375, 0.042236328125, -0.068359375, -0.03814697265625, 0.01476287841796875, 0.05657958984375, -0.020111083984375, -0.0111541748046875, 0.01230621337890625, -0.0033702850341796875, 0.0236663818359375, -0.0150146484375, 0.031768798828125, 0.01201629638671875, 0.01259613037109375, -0.03399658203125, -0.021636962890625, 0.0120849609375, 0.027740478515625, -0.01180267333984375, -0.03814697265625, 0.01580810546875, -0.01561737060546875, -0.02105712890625, -0.040863037109375, 0.0173187255859375, 0.055938720703125, 0.0232391357421875, 0.034759521484375, -0.0300750732421875, -0.025299072265625, 0.0225067138671875, -0.0138702392578125, 0.0154571533203125, -0.03973388671875, -0.033660888671875, -0.035797119140625, 0.026092529296875, 0.0413818359375, 0.01216888427734375, -0.0017404556274414062, 0.0149078369140625, 0.04296875, 0.0091094970703125, -0.0215606689453125, 0.035186767578125, -0.006099700927734375, 0.0102386474609375, -0.0267486572265625, -0.005237579345703125, -0.00452423095703125, -0.0232391357421875, -0.0250396728515625, 0.017822265625, 0.0309295654296875, -0.0228424072265625, 0.01503753662109375, 0.004856109619140625, -0.01279449462890625, 0.02618408203125, -0.0172882080078125, 0.0258941650390625, 0.006885528564453125, -0.03167724609375, 0.027008056640625, -0.06976318359375, -0.042327880859375, 0.0234832763671875, 0.0283660888671875, -0.01763916015625, 0.0190887451171875, 0.0306396484375, 0.034820556640625, -0.0149383544921875, -0.0131683349609375, -0.0021114349365234375, -0.00719451904296875, 0.0513916015625, 0.015777587890625, -0.0635986328125, -0.031280517578125, -0.0140533447265625, 0.03143310546875, -0.01180267333984375, 0.06329345703125, -0.006839752197265625, 0.008148193359375, -0.039337158203125, -0.01015472412109375, -0.025634765625, -0.04071044921875, 0.060638427734375, 0.004207611083984375, -0.0308380126953125, 0.004016876220703125, 0.006671905517578125, -0.01395416259765625, 0.0234527587890625, -0.05902099609375, -0.01171875, -0.0341796875, 0.032135009765625, -0.019622802734375, -0.004024505615234375, -0.027435302734375, -0.0263519287109375, -0.044708251953125, -0.005512237548828125, 0.0272979736328125, 0.003200531005859375, -0.0430908203125, 0.0176239013671875, 0.00772857666015625, -0.036712646484375, 0.002162933349609375, -0.0278472900390625, -0.02154541015625, 0.01508331298828125, 0.05621337890625, -0.0567626953125, 0.01023101806640625, -0.0101318359375, 0.00614166259765625, 0.00672149658203125, 0.036712646484375, 0.030242919921875, -0.06243896484375, 0.03997802734375, 0.0116729736328125, 0.0675048828125, 0.0054931640625, 0.0007958412170410156, 0.0019054412841796875, 0.006954193115234375, -0.0233306884765625, 0.0276641845703125, -0.032928466796875, -0.007465362548828125, 0.018157958984375, 0.02044677734375, 0.0214080810546875, -0.02227783203125, -0.08642578125, -0.0233306884765625, 0.021820068359375, 0.0036487579345703125, -0.037811279296875, 0.0262451171875, -0.00867462158203125, 0.0028533935546875, -0.00879669189453125, -0.016845703125, -0.004604339599609375, 0.0159759521484375, -0.0258636474609375, -0.021026611328125, -0.031707763671875, 0.004650115966796875, -0.04473876953125, 0.00997161865234375, 0.01812744140625, 0.00949859619140625, 0.0035762786865234375, 0.055908203125, 0.02197265625, 0.08734130859375, -0.050018310546875, -0.00010704994201660156, -0.0051422119140625, 0.0187835693359375, -0.048126220703125, -0.053192138671875, 0.039825439453125, -0.038665771484375, -0.040069580078125, -0.050506591796875, 0.040252685546875, 0.037384033203125, -0.0209197998046875, -0.043701171875, 0.09539794921875, -0.040557861328125, -0.025177001953125, -0.0277862548828125, 0.0017223358154296875, -0.001628875732421875, 0.00882720947265625, 0.004497528076171875, -0.0209197998046875, -0.032470703125, 0.0025768280029296875, -0.0104827880859375, 0.036102294921875, 0.039154052734375, -0.033477783203125, 0.0167999267578125, -0.01007843017578125, -0.0009541511535644531, -0.040802001953125, 0.002071380615234375, 0.0028667449951171875, 0.01102447509765625, 0.043548583984375, -0.023773193359375, 0.0132293701171875, -0.01294708251953125, 0.013702392578125, 0.00923919677734375, -0.066162109375, 0.0111236572265625, -0.03466796875, -0.00794219970703125, -0.044342041015625, -0.00792694091796875, 0.00797271728515625, -0.01248931884765625, 0.01324462890625, 0.0014810562133789062, -0.0086517333984375, -0.002994537353515625, -0.053741455078125, -0.00965118408203125, -0.006999969482421875, -0.015838623046875, 0.023651123046875, -0.0016422271728515625, -0.02435302734375, 0.0013523101806640625, -0.0206146240234375, -0.025054931640625, -0.048492431640625, 0.01438140869140625, -0.044158935546875, -0.0031337738037109375, -0.05108642578125, -0.0286407470703125, 0.00812530517578125, -0.071044921875, -0.016448974609375, -0.0131072998046875, -0.0330810546875, 0.017364501953125, 0.0450439453125, -0.0014553070068359375, -0.0153656005859375, -0.025787353515625, 0.00168609619140625, -0.03680419921875, 0.0362548828125, 0.0226593017578125, 0.037139892578125, -0.0138092041015625, 0.0638427734375, 0.036468505859375, 0.0306243896484375, -0.04913330078125, -0.0228729248046875, -0.01065826416015625, -0.01427459716796875, -0.018890380859375, 0.0450439453125, 0.0472412109375, -0.0006427764892578125, -0.0018787384033203125, 0.0062103271484375, 0.017791748046875, -0.054351806640625, 0.044891357421875, 0.00946044921875, 0.0303955078125, 0.03875732421875 ]
afbfe084d65a9a48765b39d96a17a406654d0145
Wordpress Stackexchange Q: How to get a buddypress user profile link and a certain user profile field for the current post author? I want to replace get_author_link() and get_the_author_meta($feld) with something equivalent to point to the author of the current post Buddypress user profile page and retrieve a specific profile field from his Buddypress page ie, I just want to show a link to the post user profile and a biography from one of his BP profile fields I'm not sure which functions I should use for this... BuddyPress documentation is still not very clear unlike the WP Codex... thanks A: It's kind of a bit different, but since this thread appears first on Google, it might be usefull for someone else. To get the current logged-in user profile link, just use bp_loggedin_user_domain() Hope that helps.
Q: How to get a buddypress user profile link and a certain user profile field for the current post author? I want to replace get_author_link() and get_the_author_meta($feld) with something equivalent to point to the author of the current post Buddypress user profile page and retrieve a specific profile field from his Buddypress page ie, I just want to show a link to the post user profile and a biography from one of his BP profile fields I'm not sure which functions I should use for this... BuddyPress documentation is still not very clear unlike the WP Codex... thanks A: It's kind of a bit different, but since this thread appears first on Google, it might be usefull for someone else. To get the current logged-in user profile link, just use bp_loggedin_user_domain() Hope that helps. A: For an author's profile link, use bp_core_get_user_domain( $user_id ) to get the URL, and bp_core_get_userlink( $user_id ) to get an HTML link element, including display name. For the xprofile data, use xprofile_get_field_data( $field, $user_id ) $field can be either the name of the field (like 'Biography') or the numerical field id. A: If you need to add it in comments: <?php $author_id = get_comment(get_comment_ID())->user_id; if (function_exists('bp_get_profile_field_data')) { $bp_name = bp_core_get_userlink( $author_id ); $bp_location = bp_get_profile_field_data('field=Location&user_id='.$author_id); if ($bp_name) { echo '<div>'. $bp_name . '</div>'; } if ($bp_location) { echo '<div class="authorinfo">'. $bp_location . '</div>'; } } ?> I included a sample profile field 'location', which may be removed. This is for displaying a link to comment author's Buddypress profile. It must be placed inside your comments loop, which will look something like: foreach($comments as $comment)
wordpress
{ "language": "en", "length": 269, "provenance": "stackexchange_00019.jsonl.gz:417452", "question_score": "19", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43528" }
[ 0.036865234375, 0.0069122314453125, -0.0005345344543457031, -0.031890869140625, 0.0013303756713867188, -0.002559661865234375, 0.00591278076171875, -0.013916015625, -0.041229248046875, 0.06646728515625, 0.03045654296875, 0.033233642578125, 0.0014600753784179688, -0.00977325439453125, -0.00913238525390625, 0.0057525634765625, 0.00991058349609375, 0.0032939910888671875, 0.022216796875, 0.0007376670837402344, 0.007015228271484375, 0.012542724609375, -0.0033779144287109375, -0.03790283203125, 0.053192138671875, -0.0267486572265625, 0.053070068359375, -0.0021114349365234375, 0.0391845703125, -0.00899505615234375, 0.04046630859375, -0.04302978515625, -0.0018339157104492188, 0.0242156982421875, -0.0154876708984375, -0.006641387939453125, 0.0234222412109375, 0.01000213623046875, 0.01445770263671875, 0.0307464599609375, 0.016876220703125, 0.007419586181640625, -0.073974609375, 0.048095703125, -0.058258056640625, -0.07403564453125, 0.029510498046875, -0.0012531280517578125, 0.0023670196533203125, 0.0584716796875, 0.00603485107421875, 0.0260467529296875, 0.002197265625, -0.01474761962890625, 0.0028438568115234375, -0.0164337158203125, 0.0222625732421875, -0.03472900390625, 0.0294036865234375, -0.03448486328125, -0.014251708984375, -0.007354736328125, 0.03179931640625, 0.0029811859130859375, -0.01166534423828125, 0.01294708251953125, -0.0175933837890625, 0.0183258056640625, 0.0242156982421875, -0.02740478515625, -0.0224761962890625, -0.0019178390502929688, -0.01032257080078125, -0.00888824462890625, -0.0291290283203125, -0.0362548828125, 0.00534820556640625, -0.061126708984375, -0.0053863525390625, 0.0308074951171875, -0.06939697265625, -0.03564453125, -0.055908203125, 0.0115814208984375, -0.007564544677734375, 0.045684814453125, -0.0284881591796875, 0.001216888427734375, -0.0253753662109375, 0.006420135498046875, -0.01971435546875, -0.036376953125, -0.00514984130859375, 0.041046142578125, -0.0088958740234375, -0.00855255126953125, 0.037872314453125, 0.04864501953125, 0.004695892333984375, 0.004886627197265625, -0.01236724853515625, -0.0328369140625, 0.004642486572265625, -0.023406982421875, 0.0023746490478515625, 0.056396484375, 0.0008630752563476562, 0.01381683349609375, 0.03314208984375, 0.00865936279296875, 0.0264129638671875, -0.0249786376953125, -0.02288818359375, -0.01861572265625, 0.000988006591796875, 0.04058837890625, -0.039459228515625, 0.019500732421875, -0.0144500732421875, 0.0321044921875, 0.0023708343505859375, 0.0031032562255859375, 0.0257568359375, -0.034698486328125, 0.0184783935546875, 0.0017023086547851562, -0.04779052734375, -0.00047326087951660156, 0.027557373046875, -0.0065460205078125, -0.030517578125, 0.01519012451171875, 0.064697265625, 0.0211944580078125, 0.0101318359375, -0.0240478515625, 0.003444671630859375, -0.0170745849609375, -0.0029201507568359375, 0.007709503173828125, -0.04473876953125, -0.0301666259765625, 0.040252685546875, -0.041290283203125, -0.01470184326171875, 0.0123138427734375, 0.0284881591796875, 0.02227783203125, -0.00978851318359375, -0.040740966796875, -0.023040771484375, 0.023681640625, -0.02130126953125, 0.0277557373046875, 0.06781005859375, -0.01055145263671875, 0.0748291015625, -0.0467529296875, 0.037261962890625, -0.018463134765625, 0.0296630859375, 0.00540924072265625, -0.009674072265625, -0.033172607421875, -0.0423583984375, -0.0277099609375, -0.0110626220703125, 0.005077362060546875, 0.0170440673828125, -0.02056884765625, 0.0216827392578125, -0.01611328125, 0.0035247802734375, -0.0009050369262695312, 0.005191802978515625, -0.00213623046875, -0.016510009765625, 0.058685302734375, 0.01367950439453125, 0.0062408447265625, -0.01006317138671875, -0.039306640625, 0.058441162109375, -0.0169830322265625, -0.044677734375, 0.047149658203125, -0.00684356689453125, 0.05743408203125, 0.0204010009765625, 0.00739288330078125, 0.0141143798828125, 0.00685882568359375, -0.040374755859375, 0.0209197998046875, -0.019744873046875, -0.01232147216796875, 0.01117706298828125, 0.004947662353515625, -0.021270751953125, 0.0162811279296875, -0.031646728515625, -0.0019102096557617188, 0.0008454322814941406, 0.0007982254028320312, -0.045074462890625, -0.00438690185546875, -0.0078887939453125, 0.03692626953125, 0.03216552734375, 0.0188751220703125, 0.004497528076171875, 0.0005445480346679688, 0.006542205810546875, -0.04779052734375, -0.0318603515625, 0.00044083595275878906, -0.0226593017578125, 0.005970001220703125, 0.019073486328125, -0.005893707275390625, -0.005558013916015625, 0.01739501953125, -0.0085906982421875, -0.01412200927734375, 0.024932861328125, -0.0180816650390625, -0.013275146484375, -0.0243072509765625, 0.0061187744140625, -0.0005559921264648438, -0.0301361083984375, 0.0153350830078125, -0.0030517578125, -0.022918701171875, -0.03411865234375, 0.0087432861328125, 0.00678253173828125, -0.020355224609375, 0.0037975311279296875, 0.0377197265625, 0.027069091796875, 0.005748748779296875, 0.00881195068359375, 0.0147552490234375, 0.02020263671875, 0.017303466796875, 0.048309326171875, -0.035369873046875, 0.054168701171875, 0.09149169921875, -0.02008056640625, -0.02093505859375, 0.0127716064453125, -0.036895751953125, 0.015533447265625, 0.0452880859375, -0.0220184326171875, 0.0159759521484375, -0.029266357421875, -0.0004699230194091797, -0.0008130073547363281, -0.021453857421875, 0.007160186767578125, -0.0307769775390625, -0.00041294097900390625, -0.005279541015625, 0.03289794921875, 0.0309906005859375, 0.001888275146484375, -0.038970947265625, 0.018646240234375, 0.062164306640625, -0.00565338134765625, -0.008636474609375, -0.0294647216796875, 0.00247955322265625, -0.0010833740234375, 0.00836944580078125, -0.012664794921875, -0.0125579833984375, -0.0165557861328125, -0.02288818359375, -0.0084686279296875, 0.005550384521484375, 0.005889892578125, -0.0290679931640625, 0.0335693359375, 0.0288543701171875, 0.02398681640625, 0.00485992431640625, 0.027618408203125, -0.00931549072265625, -0.04901123046875, 0.07257080078125, -0.0310211181640625, -0.0278167724609375, 0.0149383544921875, -0.08392333984375, 0.06640625, -0.057037353515625, 0.072998046875, 0.07769775390625, -0.01465606689453125, 0.037078857421875, -0.0024204254150390625, -0.0123291015625, -0.038238525390625, 0.0308837890625, 0.018829345703125, -0.046051025390625, 0.044769287109375, 0.09619140625, 0.02044677734375, 0.01049041748046875, -0.01477813720703125, -0.0212860107421875, -0.0404052734375, 0.004711151123046875, -0.07464599609375, -0.039459228515625, -0.040283203125, -0.11834716796875, 0.0035190582275390625, -0.017242431640625, -0.06353759765625, 0.02276611328125, 0.03515625, 0.0224456787109375, 0.046173095703125, -0.0426025390625, -0.1181640625, -0.053375244140625, -0.0948486328125, -0.0107574462890625, -0.0283203125, -0.02484130859375, 0.006023406982421875, -0.017486572265625, -0.018463134765625, -0.0090484619140625, -0.01045989990234375, 0.0177764892578125, 0.01024627685546875, -0.02764892578125, -0.050933837890625, 0.0234375, -0.0016632080078125, 0.004711151123046875, 0.029052734375, 0.012115478515625, -0.0186767578125, 0.01100921630859375, 0.0048828125, -0.016021728515625, 0.036407470703125, -0.0125274658203125, -0.0309906005859375, 0.0218658447265625, 0.036529541015625, -0.031463623046875, 0.0001811981201171875, -0.008758544921875, -0.036865234375, 0.0240325927734375, 0.007648468017578125, -0.019317626953125, -0.007152557373046875, 0.0012416839599609375, 0.0251312255859375, 0.0211029052734375, -0.016143798828125, 0.0164031982421875, 0.0214691162109375, -0.001739501953125, 0.0256500244140625, -0.0011835098266601562, -0.0029354095458984375, -0.04388427734375, 0.007801055908203125, -0.021820068359375, -0.029571533203125, -0.0249176025390625, -0.006191253662109375, -0.0031719207763671875, -0.0256805419921875, 0.04302978515625, -0.0208892822265625, 0.0112457275390625, -0.04425048828125, -0.0205230712890625, -0.033355712890625, 0.058197021484375, 0.012481689453125, -0.01329803466796875, 0.0285797119140625, 0.0058746337890625, -0.07659912109375, -0.0474853515625, -0.0703125, 0.00669097900390625, -0.053070068359375, -0.006488800048828125, -0.0125732421875, -0.007801055908203125, -0.0290374755859375, 0.071044921875, -0.034637451171875, -0.01336669921875, 0.007053375244140625, 0.019775390625, -0.036285400390625, 0.05877685546875, -0.068115234375, 0.043914794921875, -0.0269927978515625, 0.00894927978515625, -0.04229736328125, -0.01200103759765625, 0.00942230224609375, 0.033111572265625, -0.0026531219482421875, 0.005054473876953125, -0.00614166259765625, 0.03948974609375, 0.0109405517578125, 0.0291748046875, 0.032257080078125, 0.00211334228515625, 0.05908203125, -0.002582550048828125, 0.025848388671875, -0.01560211181640625, 0.0013589859008789062, -0.02105712890625, -0.0131988525390625, 0.00693511962890625, -0.0430908203125, 0.01050567626953125, -0.029937744140625, -0.0193939208984375, -0.055633544921875, -0.0260009765625, 0.01898193359375, 0.039764404296875, -0.005954742431640625, 0.02459716796875, -0.0197601318359375, -0.06427001953125, 0.06353759765625, 0.00344085693359375, -0.0259552001953125, -0.00800323486328125, 0.053009033203125, 0.0163726806640625, -0.02264404296875, -0.0024318695068359375, 0.0203704833984375, 0.030487060546875, -0.02716064453125, 0.048828125, 0.0286102294921875, -0.029022216796875, 0.0694580078125, -0.00738525390625, 0.0157318115234375, -0.02691650390625, 0.044830322265625, -0.0081024169921875, 0.005710601806640625, 0.003910064697265625, 0.0007405281066894531, 0.005039215087890625, 0.006374359130859375, -0.0123443603515625, 0.005096435546875, -0.01519012451171875, 0.0265655517578125, 0.00774383544921875, -0.017181396484375, -0.038909912109375, -0.0297088623046875, 0.013763427734375, -0.033294677734375, 0.0189971923828125, 0.032440185546875, -0.017852783203125, 0.007404327392578125, -0.0062103271484375, -0.008697509765625, -0.01129150390625, -0.0305328369140625, 0.006069183349609375, 0.035003662109375, -0.04083251953125, 0.003177642822265625, 0.01499176025390625, -0.01275634765625, 0.082763671875, 0.00519561767578125, -0.06658935546875, 0.051849365234375, -0.037261962890625, -0.01111602783203125, 0.020172119140625, 0.0031337738037109375, 0.04388427734375, 0.009613037109375, -0.033447265625, -0.0305938720703125, -0.036590576171875, -0.0101318359375, -0.06756591796875, 0.043365478515625, -0.00272369384765625, 0.0175933837890625, 0.0061492919921875, 0.11102294921875, -0.0291748046875, 0.07464599609375, -0.0138092041015625, 0.049591064453125, 0.044647216796875, -0.00951385498046875, 0.02154541015625, 0.0179443359375, -0.00594329833984375, -0.041351318359375, -0.027740478515625, -0.0146331787109375, 0.032958984375, -0.00580596923828125, 0.01552581787109375, 0.05023193359375, -0.01097869873046875, 0.0225830078125, -0.036163330078125, -0.0099639892578125, 0.029022216796875, 0.0235748291015625, -0.043701171875, 0.003681182861328125, 0.028594970703125, -0.009307861328125, -0.0070648193359375, -0.0016727447509765625, 0.00708770751953125, 0.0190277099609375, 0.00988006591796875, -0.034759521484375, -0.03717041015625, 0.0066680908203125, 0.0216522216796875, -0.0199127197265625, -0.038482666015625, -0.001880645751953125, -0.009552001953125, 0.04119873046875, -0.04833984375, -0.04736328125, 0.075439453125, 0.01222991943359375, 0.0273895263671875, -0.058624267578125, 0.00177764892578125, -0.0090179443359375, -0.0301666259765625, 0.09075927734375, 0.032501220703125, -0.039520263671875, 0.033203125, -0.03985595703125, 0.00928497314453125, 0.017547607421875, -0.057464599609375, -0.03619384765625, -0.047607421875, 0.000048100948333740234, 0.00937652587890625, -0.01885986328125, 0.000007867813110351562, 0.01398468017578125, 0.035614013671875, 0.0018873214721679688, 0.051239013671875, -0.003498077392578125, 0.06292724609375, 0.02142333984375, 0.044769287109375, 0.00826263427734375, 0.0244140625, -0.0213165283203125, -0.0159759521484375, -0.01055145263671875, -0.006031036376953125, -0.010009765625, -0.02581787109375, 0.0280914306640625, 0.020233154296875, 0.053436279296875, 0.01457977294921875, -0.026153564453125, 0.00904083251953125, 0.0034580230712890625, -0.0191497802734375, 0.0111846923828125, 0.057464599609375, -0.029205322265625, -0.0058746337890625, -0.00441741943359375, 0.0235443115234375, -0.0087738037109375, 0.01702880859375, -0.050018310546875, 0.01171875, -0.036529541015625, 0.006259918212890625, -0.006221771240234375, 0.0240020751953125, 0.084228515625, 0.006084442138671875, 0.0214691162109375, 0.0439453125, 0.0084075927734375, -0.0261383056640625, 0.017913818359375, -0.01464080810546875, -0.0084991455078125, 0.043975830078125, 0.009552001953125, -0.0159454345703125, 0.022308349609375, -0.0264129638671875, -0.00653076171875, -0.02825927734375, 0.01947021484375, -0.0221405029296875, 0.03961181640625, 0.03155517578125, 0.021759033203125, 0.0191650390625, -0.0070953369140625, -0.01187896728515625, -0.0133819580078125, 0.04248046875, -0.036346435546875, -0.0173187255859375, 0.0204925537109375, -0.01451873779296875, 0.006946563720703125, -0.0281982421875, 0.035369873046875, -0.0017910003662109375, -0.02252197265625, -0.0160064697265625, 0.017669677734375, -0.01702880859375, -0.021148681640625, -0.004291534423828125, -0.0009307861328125, -0.0191497802734375, -0.0274200439453125, 0.0413818359375, -0.030548095703125, 0.01442718505859375, -0.002315521240234375, 0.01178741455078125, 0.060943603515625, 0.040130615234375, 0.016082763671875, -0.0295257568359375, 0.01678466796875, 0.002422332763671875, 0.0268402099609375, -0.050262451171875, 0.0026569366455078125, 0.047088623046875, -0.0310211181640625, 0.0246429443359375, 0.0289764404296875, -0.047119140625, -0.0124664306640625, -0.040313720703125, 0.0814208984375, -0.0222015380859375, -0.01885986328125, 0.0031681060791015625, 0.0445556640625, -0.00801849365234375, 0.00937652587890625, 0.0218658447265625, -0.03741455078125, -0.0235443115234375, 0.01332855224609375, -0.009185791015625, -0.0009417533874511719, 0.011688232421875, -0.07391357421875, 0.043701171875, -0.0211639404296875, 0.0462646484375, -0.00733184814453125, 0.0024547576904296875, 0.01532745361328125, -0.01244354248046875, -0.04229736328125, 0.0562744140625, 0.0220794677734375, 0.0506591796875, -0.07257080078125, -0.03741455078125, 0.01216888427734375, 0.057342529296875, 0.1046142578125, 0.03424072265625, -0.04705810546875, -0.0244598388671875, 0.022216796875, 0.009429931640625, -0.03851318359375, 0.06585693359375, 0.00885772705078125, 0.044525146484375, 0.04205322265625, -0.055633544921875, 0.027557373046875, -0.044036865234375, -0.007114410400390625, 0.0161285400390625, 0.01158905029296875, 0.005054473876953125, -0.017852783203125, -0.01885986328125, -0.022979736328125, -0.007137298583984375, 0.01541900634765625, -0.0227508544921875, 0.004589080810546875, 0.02569580078125, 0.046539306640625, -0.01428985595703125, 0.0253753662109375, -0.0294189453125, 0.049041748046875, 0.0255584716796875, 0.006229400634765625, 0.042938232421875, 0.00615692138671875, 0.05902099609375, -0.0283203125, 0.0014286041259765625, -0.0006718635559082031, 0.034942626953125, 0.07769775390625, 0.0019245147705078125, 0.01175689697265625, -0.074462890625, 0.033843994140625, 0.0225067138671875, 0.08758544921875, -0.0687255859375, -0.060760498046875, 0.0162506103515625, 0.0017719268798828125, 0.00728607177734375, 0.033538818359375, 0.0049896240234375, -0.056854248046875, 0.0174407958984375, -0.05328369140625, 0.0182952880859375, 0.0302886962890625, 0.01544189453125, -0.00016319751739501953, -0.0112152099609375, -0.051605224609375, 0.0170745849609375, -0.0276336669921875, -0.0209503173828125, -0.0092926025390625, -0.018218994140625, 0.0426025390625, -0.00589752197265625, 0.059173583984375, 0.0201263427734375, 0.023651123046875, 0.0049285888671875, 0.0146636962890625, -0.040191650390625, 0.0088958740234375, -0.0181884765625, -0.01351165771484375, 0.01541900634765625, 0.04052734375, -0.037933349609375, 0.006114959716796875, 0.01268768310546875, -0.04986572265625, -0.0014972686767578125, 0.059722900390625, 0.0037479400634765625, -0.024566650390625, -0.02288818359375, 0.02056884765625, 0.025360107421875, -0.00006091594696044922, -0.0030689239501953125, -0.0083770751953125, 0.050689697265625, -0.00666046142578125, 0.0240631103515625, 0.01324462890625, 0.00322723388671875, 0.0175018310546875, 0.0183868408203125, 0.01519775390625, 0.0257415771484375, -0.10101318359375, 0.006900787353515625, -0.0811767578125, -0.029998779296875, 0.0362548828125, 0.0335693359375, -0.0154571533203125, 0.01441192626953125, -0.0251617431640625, 0.01041412353515625, 0.00965118408203125, -0.0229034423828125, 0.0081024169921875, 0.04364013671875, 0.0259857177734375, 0.02099609375, -0.03826904296875, -0.00965118408203125, -0.022674560546875, 0.00952911376953125, 0.05804443359375, 0.01837158203125, 0.0178070068359375, 0.03216552734375, -0.047821044921875, 0.0121307373046875, -0.03887939453125, -0.03997802734375, 0.0677490234375, -0.00824737548828125, -0.037353515625, -0.004566192626953125, -0.036712646484375, 0.051239013671875, 0.0265045166015625, 0.01934814453125, 0.0228729248046875, 0.040557861328125, 0.006359100341796875, 0.0035572052001953125, -0.01444244384765625, -0.04632568359375, -0.0172119140625, -0.0194244384765625, -0.0262298583984375, 0.003734588623046875, -0.033966064453125, 0.016632080078125, 0.0015611648559570312, 0.0244598388671875, -0.027252197265625, -0.004695892333984375, 0.0173187255859375, -0.0301361083984375, 0.014678955078125, 0.0287628173828125, -0.00836944580078125, 0.03228759765625, -0.019378662109375, 0.02691650390625, -0.0117034912109375, 0.045867919921875, 0.0014438629150390625, -0.03173828125, 0.030975341796875, -0.022705078125, 0.031463623046875, -0.01279449462890625, -0.00902557373046875, 0.0019378662109375, 0.017822265625, -0.033843994140625, -0.05242919921875, -0.028656005859375, -0.0531005859375, 0.0001354217529296875, 0.002532958984375, -0.006011962890625, -0.042022705078125, -0.005191802978515625, -0.0361328125, -0.0012731552124023438, -0.0112762451171875, -0.015838623046875, 0.0037136077880859375, 0.006137847900390625, -0.004673004150390625, -0.039886474609375, -0.030487060546875, 0.0230712890625, 0.06268310546875, -0.0025920867919921875, 0.0340576171875, -0.003063201904296875, -0.0576171875, 0.0212860107421875, 0.0145111083984375, 0.0297088623046875, 0.0017614364624023438, 0.0046844482421875, 0.039794921875, -0.001056671142578125, 0.079833984375, -0.052947998046875, -0.018310546875, -0.0156707763671875, 0.002105712890625, -0.0086669921875, -0.034942626953125, 0.031494140625, -0.06988525390625, -0.0278472900390625, -0.03204345703125, -0.0111083984375, -0.01041412353515625, -0.04962158203125, -0.055389404296875, 0.09259033203125, -0.01308441162109375, -0.040740966796875, -0.0587158203125, 0.0163726806640625, 0.024627685546875, -0.03839111328125, -0.0096893310546875, -0.04241943359375, -0.063720703125, -0.008392333984375, 0.025787353515625, 0.03125, 0.00644683837890625, 0.038116455078125, -0.032684326171875, 0.02984619140625, 0.0050506591796875, 0.017364501953125, -0.0034694671630859375, 0.007755279541015625, 0.0090484619140625, 0.0223236083984375, -0.0309600830078125, 0.00521087646484375, -0.0145416259765625, 0.021942138671875, -0.0031528472900390625, -0.045867919921875, -0.00817108154296875, -0.0121002197265625, 0.005641937255859375, 0.02545166015625, -0.004878997802734375, -0.01611328125, -0.006603240966796875, -0.03662109375, 0.006153106689453125, -0.0108795166015625, -0.0030269622802734375, -0.06170654296875, -0.019805908203125, 0.0250396728515625, -0.020904541015625, -0.019012451171875, -0.022064208984375, -0.044403076171875, 0.001392364501953125, -0.0277862548828125, -0.0163116455078125, 0.008575439453125, -0.0074310302734375, 0.0180206298828125, -0.0167236328125, -0.01078033447265625, 0.03424072265625, -0.0122833251953125, 0.00229644775390625, 0.061279296875, 0.018310546875, 0.0182952880859375, -0.024200439453125, -0.000057220458984375, 0.029876708984375, -0.002872467041015625, 0.0021419525146484375, -0.0222930908203125, -0.0187835693359375, 0.03076171875, -0.0005574226379394531, 0.0270843505859375, -0.01219940185546875, 0.036834716796875, 0.0265045166015625, 0.03692626953125, 0.00087738037109375, 0.00824737548828125, 0.00677490234375, 0.02764892578125, -0.0227203369140625, -0.018951416015625, -0.0027446746826171875, -0.051483154296875, -0.0038166046142578125, 0.007610321044921875, 0.0123443603515625, -0.04779052734375, 0.0215911865234375, 0.0284271240234375, 0.039031982421875, 0.02215576171875 ]
c885fb8d74ab37397f4cbb1a6e64e66e7714929a
Wordpress Stackexchange Q: How can I set up a category "overview" page? I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ // category-blog.php mysite.com/category/featured/ // category-featured.php category.php does not seem to work for the overview page, but it would work for a page like mysite.com/category/tech/ if a more specific template file (category-tech.php) was not available. I want to create a "category overview" page (mysite.com/category/) which would show all the terms of the category taxonomy. Similarly, I would also like to be able to do this with a custom taxonomy, such as mysite.com/books/ in this case: mysite.com/books/fiction/ mysite.com/books/non-fiction/ mysite.com/books/science/ I do want this done dynamically, i.e. I don't want to create a page called 'category' with a permalink category and then add the items to that page. I think it would work but that seems like a hack. A: There is no default rewrite to a template for a category or taxonomy landing page. You are correct, that this can be done by creating a custom template and applying it to a page.
Q: How can I set up a category "overview" page? I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ // category-blog.php mysite.com/category/featured/ // category-featured.php category.php does not seem to work for the overview page, but it would work for a page like mysite.com/category/tech/ if a more specific template file (category-tech.php) was not available. I want to create a "category overview" page (mysite.com/category/) which would show all the terms of the category taxonomy. Similarly, I would also like to be able to do this with a custom taxonomy, such as mysite.com/books/ in this case: mysite.com/books/fiction/ mysite.com/books/non-fiction/ mysite.com/books/science/ I do want this done dynamically, i.e. I don't want to create a page called 'category' with a permalink category and then add the items to that page. I think it would work but that seems like a hack. A: There is no default rewrite to a template for a category or taxonomy landing page. You are correct, that this can be done by creating a custom template and applying it to a page.
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:417468", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43573" }
[ 0.0301361083984375, 0.01302337646484375, -0.0241241455078125, -0.06622314453125, 0.00829315185546875, -0.02520751953125, -0.00868988037109375, 0.00217437744140625, -0.035919189453125, 0.0020809173583984375, -0.03643798828125, 0.01666259765625, -0.02099609375, -0.0228424072265625, 0.036376953125, -0.04541015625, 0.024688720703125, -0.004207611083984375, 0.062255859375, -0.0028171539306640625, 0.020904541015625, 0.0230712890625, 0.044281005859375, 0.005451202392578125, 0.0020236968994140625, -0.03875732421875, 0.038787841796875, -0.035491943359375, -0.0029087066650390625, -0.053314208984375, 0.012451171875, 0.03857421875, 0.04400634765625, -0.026031494140625, 0.0174560546875, 0.0121307373046875, 0.01161956787109375, -0.027069091796875, -0.0126800537109375, 0.0330810546875, 0.028076171875, -0.0143280029296875, 0.06695556640625, -0.0004055500030517578, 0.041839599609375, -0.0290679931640625, 0.00482940673828125, -0.0970458984375, 0.008880615234375, -0.06756591796875, -0.0012531280517578125, 0.0258636474609375, 0.0234375, -0.042572021484375, -0.02178955078125, 0.009124755859375, 0.00010919570922851562, -0.0309600830078125, 0.0142364501953125, -0.01557159423828125, 0.0028743743896484375, 0.0024261474609375, 0.0237884521484375, 0.027557373046875, 0.004962921142578125, -0.01357269287109375, 0.030914306640625, 0.03985595703125, -0.02752685546875, -0.025360107421875, 0.00983428955078125, -0.007434844970703125, -0.0124359130859375, -0.02471923828125, -0.030517578125, -0.02191162109375, 0.03240966796875, -0.046722412109375, -0.00521087646484375, 0.004146575927734375, -0.0151214599609375, -0.01338958740234375, 0.0302581787109375, -0.0667724609375, 0.044189453125, -0.0078582763671875, 0.00039458274841308594, -0.006023406982421875, -0.0311431884765625, -0.017181396484375, -0.020843505859375, -0.01309967041015625, -0.04296875, 0.006122589111328125, -0.003437042236328125, -0.007091522216796875, 0.00870513916015625, 0.063232421875, -0.023773193359375, 0.0303955078125, -0.01166534423828125, -0.0285491943359375, 0.050384521484375, -0.06561279296875, 0.0240325927734375, 0.06622314453125, -0.00521087646484375, 0.0237274169921875, 0.061981201171875, 0.0052032470703125, 0.034637451171875, 0.059478759765625, -0.0228729248046875, -0.013641357421875, -0.0042724609375, 0.020477294921875, -0.0312347412109375, -0.0004649162292480469, -0.0205230712890625, -0.007144927978515625, -0.0015058517456054688, 0.044830322265625, 0.01554107666015625, -0.00891876220703125, -0.0147857666015625, 0.0052642822265625, 0.0211639404296875, -0.07977294921875, 0.047210693359375, -0.0208740234375, -0.037933349609375, 0.031768798828125, 0.0250396728515625, 0.001644134521484375, 0.0105133056640625, 0.01068115234375, 0.041046142578125, 0.0110626220703125, 0.0155181884765625, -0.01360321044921875, 0.0212249755859375, 0.00824737548828125, 0.0283203125, -0.0113067626953125, -0.0268096923828125, -0.0125885009765625, 0.0111846923828125, 0.048126220703125, -0.01070404052734375, -0.01739501953125, 0.0302276611328125, -0.03289794921875, 0.04864501953125, -0.02081298828125, -0.03387451171875, -0.051422119140625, -0.01312255859375, -0.01302337646484375, -0.0234222412109375, -0.03887939453125, 0.039276123046875, -0.0002149343490600586, 0.0022602081298828125, -0.00913238525390625, -0.02392578125, -0.008941650390625, -0.056488037109375, -0.01262664794921875, 0.01318359375, -0.015869140625, 0.035186767578125, -0.01580810546875, -0.00830078125, 0.00522613525390625, 0.0185546875, 0.0056610107421875, -0.0134124755859375, 0.0002865791320800781, 0.01605224609375, 0.05023193359375, 0.00860595703125, -0.01824951171875, -0.0060882568359375, 0.01407623291015625, -0.02215576171875, 0.0350341796875, 0.0125885009765625, 0.0621337890625, -0.02093505859375, 0.026153564453125, 0.0002880096435546875, -0.00026297569274902344, -0.06634521484375, 0.025146484375, 0.0193023681640625, 0.00753021240234375, -0.037750244140625, 0.00551605224609375, -0.002071380615234375, -0.03753662109375, -0.032440185546875, 0.03375244140625, -0.0040130615234375, 0.038818359375, 0.018646240234375, 0.025726318359375, -0.01093292236328125, 0.0504150390625, 0.007358551025390625, -0.01023101806640625, 0.008056640625, -0.0013914108276367188, -0.0117645263671875, -0.03369140625, -0.037322998046875, 0.0467529296875, 0.0192413330078125, 0.01708984375, 0.0090179443359375, -0.0181732177734375, 0.04058837890625, -0.01007080078125, 0.022491455078125, 0.04644775390625, 0.033233642578125, 0.00331878662109375, -0.0222930908203125, -0.021759033203125, -0.00559234619140625, 0.0220794677734375, -0.04144287109375, 0.0182037353515625, 0.018890380859375, 0.0156402587890625, -0.050140380859375, 0.01560211181640625, -0.006175994873046875, 0.0016880035400390625, -0.0183563232421875, 0.03009033203125, 0.0263214111328125, 0.0149993896484375, -0.052154541015625, -0.04638671875, 0.0211944580078125, -0.05914306640625, -0.0228271484375, -0.002529144287109375, -0.0002810955047607422, 0.04119873046875, 0.0265960693359375, 0.0051727294921875, -0.0025482177734375, -0.027069091796875, -0.01422119140625, 0.03717041015625, -0.0007891654968261719, -0.022705078125, 0.017059326171875, -0.01451873779296875, 0.0181427001953125, -0.004405975341796875, -0.039459228515625, 0.017303466796875, 0.07470703125, 0.015960693359375, 0.069580078125, 0.0477294921875, -0.033111572265625, -0.01079559326171875, -0.00439453125, 0.0254669189453125, -0.001312255859375, 0.02099609375, 0.024658203125, -0.022064208984375, -0.0134429931640625, -0.0179901123046875, 0.01415252685546875, -0.0031986236572265625, -0.00959014892578125, 0.054229736328125, -0.025543212890625, -0.01259613037109375, -0.044769287109375, -0.10137939453125, -0.00116729736328125, 0.038177490234375, -0.018096923828125, 0.005558013916015625, 0.0110015869140625, 0.04150390625, -0.0061187744140625, 0.0167388916015625, -0.0250396728515625, 0.00902557373046875, 0.0213623046875, -0.061431884765625, 0.0565185546875, -0.05084228515625, 0.040863037109375, 0.05828857421875, -0.020294189453125, 0.031005859375, -0.0016927719116210938, 0.0086669921875, -0.0013399124145507812, 0.023406982421875, 0.008758544921875, -0.0369873046875, -0.00033736228942871094, -0.01351165771484375, 0.0322265625, 0.054718017578125, 0.007129669189453125, -0.017852783203125, 0.0169677734375, 0.038421630859375, -0.0211334228515625, -0.02825927734375, 0.09576416015625, -0.0287017822265625, 0.048370361328125, -0.008392333984375, -0.0191497802734375, -0.07623291015625, 0.0257568359375, -0.006626129150390625, -0.0010995864868164062, -0.0626220703125, -0.06878662109375, -0.1051025390625, -0.0909423828125, -0.061981201171875, 0.0005717277526855469, -0.007110595703125, -0.0037078857421875, 0.03839111328125, -0.0006046295166015625, -0.049407958984375, 0.004970550537109375, 0.0297393798828125, 0.010223388671875, 0.006122589111328125, -0.001995086669921875, -0.0250244140625, 0.00618743896484375, 0.004840850830078125, 0.0157470703125, 0.026947021484375, -0.0132293701171875, -0.00856781005859375, -0.0256805419921875, -0.006992340087890625, -0.026031494140625, -0.004619598388671875, 0.056854248046875, -0.0158233642578125, -0.0325927734375, -0.053375244140625, -0.055419921875, 0.01025390625, -0.046478271484375, -0.045166015625, 0.039154052734375, -0.0209808349609375, -0.031585693359375, -0.005016326904296875, -0.01438140869140625, -0.00968170166015625, 0.0217742919921875, -0.041839599609375, 0.0225372314453125, -0.0193939208984375, -0.027313232421875, -0.014862060546875, 0.00267791748046875, -0.028411865234375, 0.021087646484375, -0.004474639892578125, -0.017425537109375, -0.0305938720703125, 0.030059814453125, -0.0196533203125, -0.09228515625, 0.0350341796875, -0.07415771484375, -0.0299835205078125, -0.03753662109375, 0.00594329833984375, 0.0114593505859375, 0.0888671875, -0.031158447265625, -0.01239013671875, 0.004375457763671875, 0.006763458251953125, -0.0225830078125, -0.01398468017578125, -0.059112548828125, -0.01288604736328125, -0.120361328125, 0.003147125244140625, 0.0107421875, -0.057281494140625, 0.0043487548828125, 0.021270751953125, -0.06982421875, -0.035125732421875, 0.0216522216796875, 0.03753662109375, 0.007289886474609375, -0.016937255859375, 0.0140228271484375, -0.02783203125, 0.002349853515625, -0.0013713836669921875, -0.0169830322265625, 0.0017547607421875, 0.0121002197265625, -0.021484375, -0.0106964111328125, -0.0116424560546875, -0.004436492919921875, 0.0257110595703125, 0.0112762451171875, 0.01346588134765625, 0.026336669921875, 0.00843048095703125, -0.005176544189453125, -0.01287841796875, 0.0291595458984375, -0.041107177734375, -0.0118560791015625, -0.029754638671875, -0.036773681640625, 0.02642822265625, -0.004810333251953125, 0.021636962890625, 0.01248931884765625, -0.01287078857421875, -0.058013916015625, -0.0170745849609375, 0.006984710693359375, 0.005176544189453125, 0.006130218505859375, -0.00531005859375, -0.01535797119140625, -0.041259765625, 0.0280303955078125, -0.00013720989227294922, 0.0028057098388671875, 0.002422332763671875, 0.060699462890625, -0.001331329345703125, -0.0163116455078125, -0.01364898681640625, 0.028411865234375, 0.030548095703125, 0.01212310791015625, 0.036468505859375, -0.0184326171875, -0.020843505859375, 0.082763671875, 0.0009860992431640625, 0.0196380615234375, -0.0270843505859375, 0.03607177734375, -0.02239990234375, -0.04705810546875, 0.04229736328125, -0.026214599609375, 0.0190277099609375, 0.00921630859375, -0.017578125, 0.006427764892578125, -0.0100250244140625, 0.019287109375, -0.0211181640625, 0.0106353759765625, -0.03277587890625, 0.0214691162109375, -0.00916290283203125, 0.08642578125, 0.0338134765625, 0.0270538330078125, 0.013397216796875, -0.0115966796875, 0.00737762451171875, 0.0128326416015625, 0.0026340484619140625, -0.016204833984375, -0.0031280517578125, -0.0006108283996582031, 0.01477813720703125, -0.005519866943359375, 0.0002963542938232422, -0.00518798828125, 0.0158538818359375, -0.01384735107421875, -0.039520263671875, -0.0006008148193359375, -0.01178741455078125, 0.015472412109375, 0.033447265625, -0.0036029815673828125, 0.0234832763671875, 0.008270263671875, 0.0044708251953125, 0.024688720703125, -0.03082275390625, -0.00492095947265625, -0.0175323486328125, -0.00859832763671875, 0.003108978271484375, -0.007495880126953125, 0.035064697265625, 0.03778076171875, -0.00205230712890625, 0.036895751953125, -0.01273345947265625, 0.01274871826171875, 0.0290374755859375, 0.0008325576782226562, 0.0280609130859375, -0.00020897388458251953, 0.003093719482421875, -0.041717529296875, 0.01099395751953125, -0.051544189453125, -0.01163482666015625, 0.0260467529296875, 0.043914794921875, -0.038055419921875, -0.04730224609375, 0.024688720703125, -0.01314544677734375, -0.0218353271484375, -0.028106689453125, -0.055450439453125, -0.037200927734375, -0.01100921630859375, 0.01013946533203125, 0.00719451904296875, -0.006511688232421875, -0.0340576171875, 0.00887298583984375, -0.054107666015625, 0.0249786376953125, -0.0079193115234375, 0.002933502197265625, 0.00812530517578125, -0.0100250244140625, -0.0599365234375, -0.0013742446899414062, 0.045135498046875, -0.051971435546875, -0.039947509765625, -0.0130157470703125, -0.021881103515625, 0.029571533203125, -0.0010175704956054688, 0.01239776611328125, 0.0013322830200195312, -0.028656005859375, 0.006046295166015625, 0.005535125732421875, 0.045013427734375, 0.0173492431640625, -0.0626220703125, 0.028533935546875, -0.0576171875, -0.0099029541015625, -0.041839599609375, -0.04693603515625, -0.054840087890625, -0.00487518310546875, 0.0210113525390625, 0.0155029296875, 0.005451202392578125, -0.04742431640625, -0.05108642578125, 0.0125579833984375, 0.048370361328125, 0.02020263671875, -0.0195159912109375, 0.0289764404296875, 0.0123443603515625, 0.027923583984375, 0.01253509521484375, 0.0006604194641113281, -0.004150390625, -0.0264129638671875, -0.02911376953125, -0.03485107421875, 0.0005431175231933594, 0.026519775390625, -0.04888916015625, 0.0546875, 0.1004638671875, 0.0225982666015625, 0.00661468505859375, -0.027679443359375, 0.000560760498046875, -0.013702392578125, 0.0179595947265625, -0.0251617431640625, -0.02313232421875, 0.06097412109375, 0.020843505859375, 0.0662841796875, -0.00658416748046875, 0.007781982421875, -0.0027027130126953125, -0.0163116455078125, 0.0298919677734375, -0.00524139404296875, -0.07861328125, 0.062469482421875, 0.061431884765625, 0.029296875, 0.0322265625, -0.007106781005859375, 0.00878143310546875, -0.0133819580078125, 0.030670166015625, -0.0093536376953125, -0.0274200439453125, 0.03179931640625, 0.006435394287109375, -0.00299072265625, 0.02239990234375, -0.011932373046875, -0.046478271484375, 0.05072021484375, -0.0078125, -0.0673828125, -0.012603759765625, -0.01393890380859375, 0.007358551025390625, -0.02227783203125, 0.038482666015625, 0.00555419921875, 0.02008056640625, -0.0294189453125, -0.03509521484375, -0.0173187255859375, -0.00885772705078125, -0.0112762451171875, -0.008819580078125, 0.004001617431640625, 0.03704833984375, 0.0305023193359375, -0.0299224853515625, 0.01837158203125, -0.0025119781494140625, 0.03143310546875, -0.00970458984375, 0.0162506103515625, -0.013275146484375, -0.005023956298828125, 0.0209808349609375, 0.072265625, -0.03436279296875, 0.033447265625, 0.045135498046875, -0.010162353515625, -0.01439666748046875, 0.0305328369140625, -0.0288543701171875, 0.033538818359375, -0.00875091552734375, -0.057403564453125, -0.0111083984375, 0.0149688720703125, 0.0250244140625, -0.0273590087890625, 0.01052093505859375, 0.007259368896484375, -0.03997802734375, -0.01263427734375, -0.0263519287109375, -0.059295654296875, 0.08563232421875, -0.041229248046875, -0.0030841827392578125, 0.01971435546875, 0.047454833984375, -0.0204315185546875, 0.02691650390625, 0.0176239013671875, -0.041900634765625, -0.0193328857421875, 0.0284881591796875, -0.0121612548828125, -0.001461029052734375, 0.03271484375, -0.07159423828125, 0.053863525390625, -0.0133514404296875, 0.0308074951171875, 0.0063323974609375, 0.022796630859375, -0.0066070556640625, 0.00018024444580078125, 0.00490570068359375, 0.0318603515625, 0.038787841796875, 0.0264739990234375, 0.002361297607421875, -0.0207366943359375, 0.03564453125, 0.076171875, 0.0758056640625, 0.019195556640625, 0.0102996826171875, -0.00463104248046875, 0.032135009765625, -0.0015859603881835938, -0.042999267578125, 0.025421142578125, -0.017547607421875, -0.004207611083984375, -0.0119476318359375, -0.0149078369140625, 0.0124053955078125, -0.008544921875, -0.032806396484375, 0.00914764404296875, 0.01183319091796875, 0.0225067138671875, -0.00540924072265625, 0.017852783203125, -0.046173095703125, 0.01067352294921875, 0.037384033203125, 0.003231048583984375, 0.0144195556640625, -0.0026073455810546875, -0.00493621826171875, -0.0504150390625, 0.0130767822265625, -0.02520751953125, 0.033935546875, -0.01349639892578125, 0.0195770263671875, 0.0196990966796875, 0.0096893310546875, 0.050140380859375, -0.00963592529296875, -0.0067138671875, 0.02001953125, 0.0032253265380859375, 0.062347412109375, -0.0149078369140625, 0.0227203369140625, -0.04620361328125, 0.0025482177734375, 0.0190582275390625, 0.059967041015625, -0.03765869140625, -0.04376220703125, 0.01296234130859375, 0.0240478515625, 0.0082244873046875, 0.00823974609375, 0.032501220703125, 0.035919189453125, 0.068359375, -0.0377197265625, -0.01079559326171875, 0.021148681640625, 0.0384521484375, -0.006748199462890625, -0.01239013671875, -0.0251922607421875, -0.0173797607421875, -0.05908203125, 0.0280914306640625, 0.00917816162109375, 0.0673828125, 0.03594970703125, 0.0614013671875, -0.01117706298828125, -0.042510986328125, -0.0110626220703125, 0.0184173583984375, -0.0157012939453125, 0.00920867919921875, -0.01317596435546875, -0.01093292236328125, -0.005710601806640625, 0.03643798828125, 0.00946807861328125, -0.008087158203125, 0.00754547119140625, 0.0360107421875, 0.031524658203125, -0.007595062255859375, 0.02545166015625, -0.0019779205322265625, -0.0023250579833984375, -0.02825927734375, 0.0203399658203125, 0.01364898681640625, -0.0034046173095703125, 0.007610321044921875, 0.0235595703125, 0.0333251953125, -0.037689208984375, 0.0107421875, 0.0038166046142578125, -0.06475830078125, 0.046661376953125, -0.0499267578125, 0.0921630859375, -0.01465606689453125, -0.08441162109375, -0.0128936767578125, -0.0460205078125, -0.052032470703125, 0.04193115234375, 0.061309814453125, 0.01136016845703125, -0.032318115234375, -0.022125244140625, 0.02099609375, 0.00455474853515625, -0.0278167724609375, -0.008056640625, -0.01824951171875, 0.0283660888671875, -0.010711669921875, -0.0188446044921875, -0.01024627685546875, 0.01141357421875, 0.01175689697265625, -0.01873779296875, 0.1240234375, -0.046417236328125, -0.0036907196044921875, -0.005889892578125, 0.0328369140625, -0.04376220703125, -0.0177154541015625, 0.057586669921875, 0.0001430511474609375, 0.00698089599609375, -0.00904083251953125, 0.0115203857421875, 0.041015625, 0.0008320808410644531, -0.044158935546875, -0.0002455711364746094, -0.01580810546875, 0.00018477439880371094, 0.0012874603271484375, 0.020233154296875, -0.0197906494140625, -0.03192138671875, -0.045196533203125, -0.03021240234375, 0.039154052734375, 0.03216552734375, -0.0003371238708496094, 0.052276611328125, -0.0072784423828125, 0.00913238525390625, -0.002208709716796875, -0.00911712646484375, 0.0014696121215820312, 0.0364990234375, -0.007434844970703125, -0.0192718505859375, 0.044769287109375, -0.005680084228515625, 0.02215576171875, -0.0023708343505859375, 0.0297088623046875, 0.023651123046875, -0.05804443359375, 0.01450347900390625, -0.005672454833984375, 0.01329803466796875, -0.04498291015625, 0.0031108856201171875, -0.005634307861328125, 0.00514984130859375, 0.058624267578125, -0.023712158203125, -0.0341796875, -0.0090179443359375, 0.0009899139404296875, 0.0235748291015625, 0.007419586181640625, 0.0109405517578125, -0.060028076171875, -0.0025768280029296875, 0.03961181640625, 0.0057830810546875, -0.0243072509765625, 0.0047607421875, -0.0163726806640625, 0.02520751953125, 0.0150146484375, -0.045074462890625, 0.01364898681640625, 0.0015010833740234375, -0.05401611328125, 0.0259246826171875, -0.0296783447265625, -0.0555419921875, -0.01438140869140625, 0.02197265625, 0.03485107421875, -0.0171356201171875, 0.00447845458984375, 0.007598876953125, 0.007236480712890625, 0.081298828125, -0.018035888671875, -0.01143646240234375, 0.00844573974609375, 0.003551483154296875, -0.026458740234375, -0.01108551025390625, 0.01305389404296875, -0.0014352798461914062, -0.012603759765625, 0.0172119140625, -0.025360107421875, -0.01114654541015625, -0.05908203125, -0.0819091796875, 0.0361328125, -0.0078277587890625, -0.0496826171875, -0.045013427734375, 0.018463134765625, -0.006282806396484375, 0.040802001953125, -0.00848388671875, -0.015380859375, -0.01177978515625, 0.0250091552734375, 0.02484130859375, 0.035247802734375, 0.0008349418640136719, 0.036407470703125, -0.0577392578125, 0.01995849609375, -0.01392364501953125, 0.00251007080078125, 0.01030731201171875, -0.0184783935546875, 0.03253173828125, 0.03546142578125, -0.0399169921875, -0.026092529296875, -0.00014638900756835938, -0.0079345703125, 0.0277252197265625, -0.005527496337890625, -0.061126708984375, -0.035491943359375, 0.0293426513671875, 0.026641845703125, 0.013397216796875, 0.014129638671875, -0.036041259765625, -0.0401611328125, -0.02978515625, 0.005886077880859375, 0.037078857421875, -0.083740234375, 0.018646240234375, 0.0479736328125, -0.004245758056640625, -0.007472991943359375, -0.0005450248718261719, -0.021453857421875, -0.015655517578125, -0.00225830078125, 0.017364501953125, -0.043609619140625, -0.0139617919921875, -0.004444122314453125, -0.0184173583984375, -0.0496826171875, -0.00823211669921875, 0.02435302734375, -0.0655517578125, -0.04632568359375, -0.016387939453125, 0.0330810546875, -0.031707763671875, -0.0193023681640625, 0.005970001220703125, -0.01288604736328125, 0.00278472900390625, 0.0160675048828125, -0.022430419921875, 0.041046142578125, 0.0176849365234375, 0.0252838134765625, -0.074462890625, 0.0950927734375, 0.0305023193359375, 0.03460693359375, 0.0142059326171875, -0.0186309814453125, -0.019073486328125, 0.065673828125, -0.0212554931640625, -0.0350341796875, 0.00788116455078125, -0.060821533203125, 0.0164642333984375, -0.04388427734375, 0.0010814666748046875, -0.01519012451171875, -0.0008635520935058594, -0.00620269775390625, -0.0394287109375, 0.01473236083984375 ]
1caa932ae82a3f088e9b70de847bba155e073431
Wordpress Stackexchange Q: WP_Error handles errors, but how can I show success with a message? My script accesses an api to populate posts. I can add any errors to the WP_Error class, but can I add success messages to a global variable? A: you could test for the absence of an error and then display a success message if(!is_wp_error( $thing )) echo "yay!!";
Q: WP_Error handles errors, but how can I show success with a message? My script accesses an api to populate posts. I can add any errors to the WP_Error class, but can I add success messages to a global variable? A: you could test for the absence of an error and then display a success message if(!is_wp_error( $thing )) echo "yay!!";
wordpress
{ "language": "en", "length": 61, "provenance": "stackexchange_00019.jsonl.gz:417477", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43599" }
[ 0.0672607421875, -0.0083465576171875, -0.043365478515625, -0.05767822265625, 0.025146484375, -0.041229248046875, 0.058868408203125, 0.0085906982421875, 0.043487548828125, 0.0197906494140625, -0.030609130859375, -0.0192718505859375, 0.0255584716796875, -0.01751708984375, -0.035430908203125, -0.02801513671875, 0.032196044921875, -0.0207977294921875, 0.02618408203125, -0.0027523040771484375, 0.004734039306640625, 0.026641845703125, -0.01010894775390625, 0.0179595947265625, -0.00716400146484375, 0.029937744140625, 0.03594970703125, -0.0115509033203125, -0.0267181396484375, -0.036590576171875, 0.0015211105346679688, 0.0230255126953125, 0.0093231201171875, 0.03900146484375, -0.0230560302734375, 0.0258331298828125, 0.035552978515625, 0.0236358642578125, 0.00743865966796875, 0.04498291015625, 0.014678955078125, -0.006221771240234375, 0.10772705078125, -0.006481170654296875, 0.025909423828125, -0.02911376953125, 0.053802490234375, -0.046112060546875, 0.0233306884765625, 0.03271484375, 0.0240936279296875, 0.025970458984375, 0.0027179718017578125, -0.007175445556640625, 0.0039825439453125, 0.0281829833984375, -0.0210723876953125, 0.0249786376953125, 0.037750244140625, 0.029083251953125, -0.0372314453125, -0.0162506103515625, -0.0110015869140625, -0.055419921875, 0.0362548828125, -0.01190185546875, -0.0248260498046875, 0.064208984375, -0.03033447265625, 0.01065826416015625, -0.0072784423828125, -0.0274658203125, -0.02532958984375, 0.006378173828125, -0.0111236572265625, -0.02032470703125, 0.0301971435546875, -0.0144500732421875, -0.0163726806640625, 0.048431396484375, 0.0247344970703125, -0.010406494140625, 0.019378662109375, -0.0098114013671875, 0.023773193359375, 0.033538818359375, -0.005649566650390625, -0.01505279541015625, -0.0092010498046875, -0.035491943359375, -0.0075836181640625, -0.0292816162109375, -0.0266571044921875, 0.00665283203125, -0.007808685302734375, -0.03094482421875, -0.0007328987121582031, 0.047149658203125, -0.053802490234375, 0.00714111328125, -0.036285400390625, 0.005626678466796875, 0.00033545494079589844, -0.031341552734375, 0.01012420654296875, 0.019683837890625, -0.01287841796875, -0.033203125, 0.00010341405868530273, 0.0265045166015625, -0.023345947265625, -0.0137481689453125, -0.02215576171875, -0.03131103515625, -0.024871826171875, 0.024627685546875, -0.0238494873046875, 0.0009698867797851562, 0.011566162109375, 0.006801605224609375, 0.01531982421875, 0.0285797119140625, -0.0115966796875, 0.027679443359375, -0.0010738372802734375, 0.0026073455810546875, -0.0001990795135498047, -0.036590576171875, 0.0242462158203125, 0.0266265869140625, 0.013092041015625, 0.02056884765625, -0.0157318115234375, -0.03973388671875, -0.05291748046875, -0.0091400146484375, 0.0177154541015625, -0.047088623046875, -0.015655517578125, 0.0126495361328125, 0.0175323486328125, -0.02984619140625, -0.0267486572265625, -0.004268646240234375, 0.0237884521484375, 0.0200958251953125, 0.0224609375, 0.0119781494140625, -0.0203094482421875, -0.053192138671875, 0.045318603515625, -0.030914306640625, -0.0340576171875, 0.006565093994140625, 0.06414794921875, 0.0073699951171875, 0.0031871795654296875, 0.00351715087890625, 0.03643798828125, 0.0357666015625, 0.0259246826171875, -0.00677490234375, 0.02203369140625, 0.012542724609375, -0.007083892822265625, 0.0107574462890625, -0.06341552734375, 0.0018978118896484375, 0.011016845703125, 0.031341552734375, -0.023712158203125, 0.0035228729248046875, -0.0005202293395996094, -0.020477294921875, -0.0308074951171875, -0.01087188720703125, -0.00339508056640625, 0.01192474365234375, 0.003681182861328125, 0.00434112548828125, -0.01348114013671875, -0.03192138671875, 0.0018796920776367188, 0.013092041015625, -0.0345458984375, -0.04937744140625, 0.02008056640625, -0.007465362548828125, 0.018890380859375, 0.0151519775390625, 0.02557373046875, -0.0006856918334960938, 0.001949310302734375, 0.023284912109375, -0.053497314453125, -0.0550537109375, 0.005741119384765625, 0.01102447509765625, -0.03948974609375, 0.037017822265625, 0.038177490234375, 0.031646728515625, -0.0002415180206298828, -0.021331787109375, -0.0667724609375, 0.00994110107421875, -0.0162200927734375, 0.043243408203125, -0.0177154541015625, -0.0029239654541015625, 0.016754150390625, -0.022369384765625, -0.0011682510375976562, -0.043731689453125, -0.0287628173828125, -0.0019989013671875, -0.0225372314453125, 0.040863037109375, -0.0036334991455078125, 0.06134033203125, -0.0328369140625, -0.0343017578125, -0.03790283203125, -0.0245208740234375, -0.004116058349609375, -0.035736083984375, -0.01421356201171875, -0.016265869140625, -0.01448822021484375, -0.0106964111328125, 0.01129913330078125, 0.0292816162109375, -0.028778076171875, 0.02734375, 0.020050048828125, -0.04046630859375, -0.0172271728515625, -0.12310791015625, 0.052764892578125, 0.054962158203125, 0.038238525390625, 0.0411376953125, 0.006923675537109375, 0.0048370361328125, 0.0279541015625, -0.0455322265625, 0.0161590576171875, -0.0115509033203125, -0.00890350341796875, -0.01247406005859375, -0.0010662078857421875, -0.035400390625, 0.02880859375, -0.0926513671875, -0.020782470703125, 0.03704833984375, -0.0225372314453125, 0.00016748905181884766, -0.0112762451171875, 0.02191162109375, 0.0066680908203125, 0.034088134765625, 0.0190887451171875, 0.0018863677978515625, 0.01357269287109375, -0.047882080078125, 0.0020275115966796875, -0.01702880859375, -0.0021514892578125, -0.02691650390625, 0.0307464599609375, -0.021820068359375, 0.01959228515625, 0.047760009765625, -0.01116943359375, 0.0675048828125, -0.032958984375, -0.0188751220703125, 0.03521728515625, 0.0413818359375, -0.0286407470703125, -0.010284423828125, -0.00519561767578125, -0.00408935546875, 0.0032596588134765625, -0.0099639892578125, 0.055999755859375, -0.0051422119140625, 0.059783935546875, -0.00274658203125, -0.0107879638671875, 0.052947998046875, -0.0281219482421875, 0.0804443359375, 0.01056671142578125, -0.039337158203125, -0.01145172119140625, -0.049957275390625, 0.04302978515625, -0.06781005859375, -0.0205230712890625, 0.0462646484375, -0.026947021484375, 0.0017366409301757812, -0.021240234375, 0.01154327392578125, -0.0199127197265625, 0.03057861328125, 0.000308990478515625, -0.041534423828125, -0.0146331787109375, 0.005664825439453125, 0.03656005859375, 0.09588623046875, -0.00014841556549072266, -0.032684326171875, 0.03369140625, 0.066650390625, -0.04425048828125, -0.11456298828125, 0.005634307861328125, -0.045013427734375, 0.0172882080078125, 0.01413726806640625, -0.017425537109375, -0.020111083984375, 0.04058837890625, -0.0038852691650390625, -0.0164337158203125, -0.01702880859375, -0.01593017578125, -0.043701171875, -0.04827880859375, 0.007419586181640625, -0.00463104248046875, 0.006343841552734375, -0.01125335693359375, 0.09759521484375, 0.008941650390625, -0.032379150390625, -0.001392364501953125, 0.0650634765625, -0.0019159317016601562, -0.01255035400390625, 0.00296783447265625, -0.0045013427734375, 0.01519775390625, 0.0113677978515625, -0.0163726806640625, 0.03216552734375, -0.0304107666015625, -0.0318603515625, 0.006359100341796875, 0.006793975830078125, 0.0136566162109375, -0.021697998046875, -0.0072479248046875, -0.032806396484375, -0.030609130859375, -0.057861328125, -0.031280517578125, 0.0306243896484375, -0.04833984375, -0.058319091796875, 0.0450439453125, -0.03106689453125, -0.0111541748046875, -0.036102294921875, -0.0107574462890625, 0.002899169921875, 0.00890350341796875, -0.04522705078125, 0.065673828125, 0.0021381378173828125, 0.0092620849609375, -0.00330352783203125, 0.01065826416015625, -0.01416778564453125, -0.0139617919921875, -0.004268646240234375, 0.0233917236328125, -0.01116943359375, 0.0267333984375, -0.0489501953125, -0.0167388916015625, 0.0162506103515625, -0.01361846923828125, 0.0202178955078125, -0.034515380859375, -0.004283905029296875, -0.0187530517578125, 0.04083251953125, 0.002307891845703125, -0.0264434814453125, -0.01171875, 0.004596710205078125, -0.040924072265625, -0.03009033203125, -0.006435394287109375, -0.007106781005859375, -0.005138397216796875, 0.024169921875, 0.0111541748046875, 0.011810302734375, -0.044769287109375, 0.08251953125, -0.005523681640625, -0.01169586181640625, 0.034912109375, -0.0633544921875, 0.0188751220703125, -0.004024505615234375, -0.007236480712890625, -0.0256805419921875, 0.0012884140014648438, -0.05645751953125, -0.08880615234375, -0.004848480224609375, -0.034332275390625, 0.047454833984375, -0.0015869140625, -0.0030384063720703125, -0.023773193359375, 0.036773681640625, 0.01244354248046875, -0.018341064453125, 0.0104522705078125, -0.01715087890625, 0.018402099609375, 0.0006546974182128906, -0.0260162353515625, -0.0086517333984375, -0.0014505386352539062, -0.003093719482421875, -0.0478515625, 0.01983642578125, -0.004344940185546875, -0.005451202392578125, 0.037017822265625, -0.041351318359375, 0.006317138671875, -0.0138702392578125, -0.0291748046875, 0.008453369140625, -0.017578125, -0.006969451904296875, -0.0160675048828125, -0.0052337646484375, 0.0017137527465820312, 0.01055145263671875, -0.060943603515625, 0.0231475830078125, 0.01436614990234375, 0.02593994140625, -0.0110321044921875, -0.075927734375, 0.00843048095703125, 0.028289794921875, -0.021209716796875, -0.006252288818359375, -0.022705078125, -0.0229034423828125, 0.02252197265625, -0.0261077880859375, 0.00432586669921875, -0.0086212158203125, 0.020233154296875, 0.015411376953125, 0.00713348388671875, 0.00295257568359375, 0.00032806396484375, 0.005603790283203125, 0.04345703125, -0.0007915496826171875, -0.052276611328125, 0.00846099853515625, 0.048583984375, -0.0455322265625, 0.060943603515625, -0.00896453857421875, 0.001750946044921875, 0.01137542724609375, -0.028656005859375, 0.004734039306640625, 0.0018243789672851562, 0.0175323486328125, -0.034942626953125, -0.0086822509765625, -0.017547607421875, -0.0008778572082519531, -0.01544952392578125, 0.0089111328125, 0.034393310546875, -0.0118255615234375, 0.0023403167724609375, -0.0236053466796875, -0.01262664794921875, 0.07220458984375, 0.035888671875, 0.0022830963134765625, -0.002643585205078125, -0.0007014274597167969, -0.0216064453125, -0.025604248046875, -0.0039520263671875, 0.039459228515625, 0.037567138671875, -0.0274658203125, 0.002361297607421875, 0.00211334228515625, -0.001827239990234375, -0.04931640625, 0.03192138671875, 0.0270233154296875, 0.01001739501953125, -0.02337646484375, 0.08782958984375, 0.0022640228271484375, 0.0211944580078125, -0.01849365234375, 0.005931854248046875, 0.0404052734375, 0.013702392578125, 0.043548583984375, -0.0231170654296875, -0.009033203125, 0.00035691261291503906, 0.00982666015625, -0.01000213623046875, -0.0447998046875, -0.020965576171875, 0.01145172119140625, -0.0244140625, 0.03070068359375, 0.046875, 0.0218048095703125, -0.0240936279296875, 0.052459716796875, 0.0261993408203125, -0.0374755859375, -0.02935791015625, 0.0008516311645507812, 0.044891357421875, 0.00489044189453125, 0.01222991943359375, 0.005107879638671875, 0.006671905517578125, 0.0305938720703125, -0.00438690185546875, 0.0158843994140625, -0.00872802734375, -0.01454925537109375, -0.0121917724609375, -0.0013275146484375, 0.007236480712890625, -0.043701171875, -0.02178955078125, -0.006504058837890625, -0.0132904052734375, 0.046600341796875, -0.045806884765625, -0.0178985595703125, -0.043853759765625, 0.06195068359375, -0.06597900390625, 0.01355743408203125, 0.02508544921875, 0.02349853515625, -0.023529052734375, 0.005405426025390625, -0.020965576171875, -0.030303955078125, -0.01467132568359375, -0.03265380859375, -0.06982421875, -0.0224609375, 0.0157928466796875, -0.00023484230041503906, -0.0016546249389648438, -0.0292510986328125, -0.0296478271484375, 0.03607177734375, 0.0450439453125, 0.0111846923828125, -0.0118408203125, 0.062286376953125, -0.004791259765625, 0.035552978515625, 0.0184173583984375, 0.0236053466796875, 0.01386260986328125, -0.0229949951171875, 0.006786346435546875, -0.034698486328125, 0.00926971435546875, -0.00975799560546875, 0.032196044921875, 0.0009541511535644531, 0.0178985595703125, 0.00762176513671875, -0.015655517578125, -0.03076171875, -0.003604888916015625, -0.004364013671875, 0.05816650390625, -0.032257080078125, -0.05352783203125, 0.07086181640625, -0.023590087890625, -0.04937744140625, 0.0009984970092773438, -0.00525665283203125, 0.01491546630859375, 0.003383636474609375, -0.01763916015625, -0.0241241455078125, -0.03143310546875, 0.04241943359375, 0.08441162109375, 0.017364501953125, 0.050689697265625, 0.01025390625, 0.002376556396484375, 0.02484130859375, 0.048431396484375, -0.041961669921875, -0.0309295654296875, 0.02740478515625, 0.00539398193359375, -0.060821533203125, -0.0220489501953125, -0.03399658203125, 0.018096923828125, 0.06158447265625, 0.08953857421875, -0.07080078125, 0.0163116455078125, 0.0208892822265625, -0.052581787109375, -0.003841400146484375, -0.01395416259765625, 0.0199127197265625, 0.0232086181640625, 0.03350830078125, -0.0004839897155761719, -0.01488494873046875, 0.006046295166015625, -0.015899658203125, 0.002777099609375, -0.0081024169921875, 0.05859375, 0.0120391845703125, -0.06268310546875, 0.01318359375, 0.06536865234375, -0.0020580291748046875, 0.0010042190551757812, 0.034912109375, -0.0308380126953125, 0.0020961761474609375, -0.04278564453125, -0.01177978515625, -0.01389312744140625, -0.0101470947265625, -0.0173187255859375, -0.042694091796875, -0.018157958984375, 0.0401611328125, -0.04193115234375, 0.0166168212890625, 0.01849365234375, -0.0309600830078125, -0.01000213623046875, -0.01009368896484375, 0.016021728515625, 0.06494140625, -0.0166473388671875, 0.024383544921875, 0.00263214111328125, -0.0017118453979492188, -0.01326751708984375, -0.01120758056640625, 0.07391357421875, -0.032470703125, -0.0262451171875, 0.00943756103515625, -0.0030689239501953125, 0.004001617431640625, 0.0131072998046875, 0.039154052734375, -0.0274810791015625, -0.0016107559204101562, 0.00818634033203125, -0.0018177032470703125, -0.01325225830078125, 0.0023937225341796875, -0.050384521484375, 0.1158447265625, 0.0004489421844482422, 0.0128173828125, 0.0013799667358398438, 0.03228759765625, -0.01285552978515625, 0.04571533203125, -0.060638427734375, 0.0889892578125, -0.0015306472778320312, 0.05548095703125, -0.0687255859375, -0.0018205642700195312, 0.01390838623046875, 0.01947021484375, 0.0175018310546875, -0.0006794929504394531, 0.01320648193359375, 0.0242462158203125, 0.02154541015625, 0.026763916015625, -0.00424957275390625, 0.009674072265625, 0.00799560546875, 0.03314208984375, 0.025848388671875, -0.0323486328125, 0.037567138671875, -0.06915283203125, -0.012237548828125, 0.02972412109375, 0.004222869873046875, 0.0023193359375, 0.02752685546875, -0.006435394287109375, -0.03765869140625, 0.0230712890625, 0.01250457763671875, 0.004978179931640625, 0.01488494873046875, 0.039306640625, 0.00555419921875, -0.00339508056640625, -0.0146484375, -0.017669677734375, 0.0272979736328125, -0.0298919677734375, 0.03973388671875, 0.01812744140625, 0.0012063980102539062, 0.0213165283203125, 0.03887939453125, 0.012603759765625, 0.050018310546875, -0.016571044921875, 0.04473876953125, 0.0214080810546875, 0.0305023193359375, -0.0428466796875, 0.006610870361328125, 0.0330810546875, 0.0552978515625, -0.03631591796875, -0.038360595703125, -0.006175994873046875, 0.0025539398193359375, 0.01776123046875, -0.016204833984375, 0.025604248046875, 0.0343017578125, 0.046661376953125, -0.034393310546875, 0.00946044921875, 0.038421630859375, -0.0009737014770507812, 0.017303466796875, 0.021636962890625, -0.0193328857421875, 0.0005445480346679688, -0.033966064453125, 0.0013895034790039062, 0.044342041015625, 0.098388671875, 0.006084442138671875, 0.0576171875, -0.07049560546875, -0.042877197265625, -0.0093994140625, 0.0138702392578125, 0.03448486328125, 0.01532745361328125, -0.0091094970703125, 0.0300445556640625, 0.00884246826171875, 0.01776123046875, -0.01611328125, -0.01557159423828125, 0.03546142578125, 0.056427001953125, -0.0302886962890625, -0.031768798828125, 0.0303192138671875, -0.010894775390625, -0.004138946533203125, -0.0268707275390625, -0.01041412353515625, -0.01605224609375, -0.0225372314453125, -0.01448822021484375, 0.0218048095703125, 0.0023403167724609375, -0.0264129638671875, 0.004764556884765625, -0.0091705322265625, -0.0789794921875, 0.035003662109375, -0.0401611328125, 0.08966064453125, -0.017669677734375, -0.1041259765625, -0.059326171875, 0.0084381103515625, 0.01032257080078125, 0.042144775390625, 0.053436279296875, 0.0218353271484375, -0.0088348388671875, 0.0181884765625, -0.00923919677734375, 0.0172576904296875, -0.017547607421875, 0.0015745162963867188, -0.0303497314453125, 0.021453857421875, -0.01461029052734375, -0.047149658203125, -0.026031494140625, 0.0085601806640625, 0.01239013671875, 0.0143890380859375, 0.015655517578125, 0.0247650146484375, 0.007190704345703125, -0.03424072265625, 0.01226043701171875, -0.0233917236328125, -0.0193023681640625, 0.0071563720703125, 0.0158538818359375, 0.0029621124267578125, -0.01093292236328125, -0.038055419921875, 0.0711669921875, -0.003757476806640625, 0.0014171600341796875, 0.0537109375, -0.014617919921875, -0.0029048919677734375, -0.00948333740234375, 0.0242156982421875, -0.01346588134765625, -0.0309295654296875, -0.02850341796875, 0.014984130859375, 0.01363372802734375, 0.039825439453125, -0.0294342041015625, 0.037994384765625, -0.026214599609375, -0.005970001220703125, -0.0010290145874023438, -0.0330810546875, -0.01629638671875, 0.022979736328125, -0.0277557373046875, 0.0120391845703125, -0.0308074951171875, -0.0282440185546875, 0.006011962890625, -0.005565643310546875, 0.017608642578125, -0.0230865478515625, 0.04583740234375, -0.007549285888671875, -0.03717041015625, -0.0092010498046875, -0.033416748046875, -0.0330810546875, 0.01029205322265625, 0.0022335052490234375, -0.05096435546875, 0.032135009765625, 0.00460052490234375, 0.0025119781494140625, -0.0272979736328125, -0.0216217041015625, 0.01174163818359375, -0.0498046875, 0.04986572265625, 0.0022640228271484375, 0.0266265869140625, -0.0109710693359375, 0.01202392578125, -0.052276611328125, 0.0017652511596679688, 0.049072265625, 0.0007386207580566406, -0.0097808837890625, -0.0034313201904296875, 0.0057220458984375, -0.0213623046875, -0.0230865478515625, -0.036041259765625, 0.013275146484375, -0.0123291015625, 0.01029205322265625, 0.0284881591796875, -0.052154541015625, -0.03558349609375, 0.0033893585205078125, 0.0404052734375, 0.040008544921875, 0.0406494140625, -0.05133056640625, -0.01390838623046875, 0.0035877227783203125, 0.0251617431640625, -0.0240325927734375, 0.004825592041015625, -0.03802490234375, -0.03125, -0.0310821533203125, -0.00804901123046875, 0.0020503997802734375, -0.04974365234375, -0.08135986328125, 0.076171875, -0.017669677734375, -0.025848388671875, -0.054595947265625, -0.040313720703125, -0.00562286376953125, 0.0242919921875, -0.0094146728515625, -0.031036376953125, -0.064208984375, 0.0380859375, 0.01062774658203125, -0.019927978515625, 0.0287628173828125, 0.00897216796875, -0.040863037109375, -0.004436492919921875, -0.01025390625, -0.017822265625, 0.012481689453125, -0.01806640625, 0.00914764404296875, 0.035430908203125, -0.04266357421875, -0.032257080078125, -0.0177459716796875, -0.01361846923828125, 0.0119476318359375, -0.02545166015625, -0.0017852783203125, -0.027435302734375, 0.03619384765625, -0.018524169921875, 0.0100860595703125, 0.0058746337890625, -0.0036373138427734375, -0.0159454345703125, -0.04656982421875, -0.0168914794921875, 0.022674560546875, -0.05279541015625, -0.00882720947265625, -0.0105438232421875, 0.0203399658203125, 0.0169830322265625, -0.0288238525390625, 0.012176513671875, -0.005321502685546875, 0.045562744140625, 0.0196685791015625, -0.028411865234375, -0.07159423828125, 0.08245849609375, -0.0205535888671875, 0.03375244140625, 0.01271820068359375, 0.043487548828125, 0.0555419921875, 0.05999755859375, 0.00756072998046875, 0.0213775634765625, -0.0662841796875, -0.031829833984375, -0.005588531494140625, 0.0202178955078125, -0.004016876220703125, -0.0200042724609375, 0.0135955810546875, 0.0567626953125, -0.019256591796875, 0.07672119140625, 0.0184478759765625, 0.017791748046875, -0.0227813720703125, 0.0184783935546875, -0.01070404052734375, 0.0270233154296875, -0.0082550048828125, 0.032379150390625, -0.01334381103515625, -0.004512786865234375, -0.005279541015625, -0.0252227783203125, 0.00907135009765625, 0.038055419921875, 0.0390625, -0.03759765625, 0.036376953125, 0.0936279296875, 0.056549072265625, 0.02960205078125 ]
0a260301942601279be96f7f5a554e5ab322e2d2
Wordpress Stackexchange Q: How does wordpress know which site to setup (on multisite)? Ok for subdomain it's easy. I guess it just looks up the subdomain: blog5.site.com => explode('.', $_SERVER['REQUEST_URI'])... But how does it do it for sub-directory setups? This should be interesting considering that pages, taxonomies and what not can take the first part of the part after the site domain name. How can it distinguish between a inner blog, and a page of the primary blog? The only thing I could think of is database matching against the entire blog list, then if it fails match primary blog content, but that would be a really stupid thing to do because it seriously slows down the site... A: You can use the get_current_site() function. Ref. : http://codex.wordpress.org/WPMU_Functions/get_current_site
Q: How does wordpress know which site to setup (on multisite)? Ok for subdomain it's easy. I guess it just looks up the subdomain: blog5.site.com => explode('.', $_SERVER['REQUEST_URI'])... But how does it do it for sub-directory setups? This should be interesting considering that pages, taxonomies and what not can take the first part of the part after the site domain name. How can it distinguish between a inner blog, and a page of the primary blog? The only thing I could think of is database matching against the entire blog list, then if it fails match primary blog content, but that would be a really stupid thing to do because it seriously slows down the site... A: You can use the get_current_site() function. Ref. : http://codex.wordpress.org/WPMU_Functions/get_current_site A: Your answer is in ms-settings.php, and it's basically the same for domain and/or subdirectory installs. $current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) ); Both the domain name and the path are used to determine what blog is being accessed. This doesn't "seriously slow down" anything, both the domain and the path are fully indexed fields in the database.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:417479", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43601" }
[ 0.0016937255859375, 0.006023406982421875, -0.0038547515869140625, 0.0298309326171875, -0.018890380859375, -0.034423828125, 0.00148773193359375, -0.05828857421875, 0.01181793212890625, -0.01197052001953125, -0.0443115234375, 0.01519775390625, -0.040740966796875, -0.0269317626953125, 0.019439697265625, -0.037322998046875, 0.0496826171875, -0.0236968994140625, 0.01541900634765625, -0.0009245872497558594, -0.010711669921875, 0.034088134765625, 0.024688720703125, 0.0416259765625, 0.0188751220703125, -0.0276641845703125, 0.059539794921875, -0.000553131103515625, 0.05267333984375, 0.004947662353515625, 0.032806396484375, -0.0445556640625, 0.01751708984375, 0.005733489990234375, 0.0162200927734375, 0.0228118896484375, 0.037353515625, -0.00928497314453125, 0.033355712890625, 0.045379638671875, -0.006473541259765625, 0.00734710693359375, 0.03448486328125, 0.0019378662109375, 0.00453948974609375, -0.06231689453125, 0.024810791015625, -0.038360595703125, 0.011505126953125, -0.050750732421875, -0.0013113021850585938, 0.0036792755126953125, 0.020263671875, -0.025360107421875, -0.03179931640625, -0.0301971435546875, 0.04248046875, 0.00795745849609375, 0.0259857177734375, -0.04876708984375, -0.05487060546875, 0.0206756591796875, 0.04364013671875, 0.0154266357421875, -0.0201263427734375, -0.004169464111328125, -0.0002512931823730469, 0.01491546630859375, -0.006549835205078125, -0.0185546875, 0.01047515869140625, -0.0049285888671875, 0.00263214111328125, -0.0085296630859375, -0.039520263671875, -0.006011962890625, 0.01050567626953125, -0.0258331298828125, 0.0222625732421875, -0.03363037109375, -0.01427459716796875, -0.014801025390625, -0.023406982421875, -0.0171966552734375, 0.0244140625, 0.0221405029296875, -0.0076446533203125, -0.0084686279296875, -0.056304931640625, -0.0198974609375, -0.044708251953125, -0.01129913330078125, -0.0462646484375, -0.0095062255859375, -0.028961181640625, -0.01079559326171875, 0.040618896484375, 0.09869384765625, -0.04290771484375, -0.03485107421875, -0.041900634765625, -0.010711669921875, -0.072998046875, -0.017913818359375, 0.01262664794921875, 0.0148773193359375, 0.0164794921875, -0.0246429443359375, 0.022918701171875, 0.002513885498046875, -0.01419830322265625, 0.04656982421875, -0.0118865966796875, -0.038360595703125, -0.0230712890625, 0.002826690673828125, -0.033843994140625, 0.004093170166015625, 0.007328033447265625, -0.0296478271484375, 0.00432586669921875, 0.06231689453125, -0.02032470703125, 0.0009622573852539062, -0.010101318359375, 0.0189361572265625, 0.01910400390625, -0.052032470703125, -0.06768798828125, 0.007305145263671875, -0.052276611328125, 0.029266357421875, 0.06414794921875, 0.006744384765625, -0.0247344970703125, -0.0224761962890625, 0.047027587890625, 0.04620361328125, 0.0014629364013671875, 0.006683349609375, 0.013946533203125, -0.02349853515625, -0.0296173095703125, -0.01357269287109375, -0.046539306640625, 0.02587890625, 0.029571533203125, 0.0247344970703125, -0.040985107421875, -0.05224609375, -0.01059722900390625, 0.005657196044921875, 0.002910614013671875, 0.01264190673828125, 0.016387939453125, -0.035369873046875, 0.0129241943359375, -0.0298309326171875, 0.0293426513671875, -0.0251922607421875, 0.00897216796875, -0.0053863525390625, 0.0261688232421875, -0.01392364501953125, -0.044158935546875, 0.0204010009765625, -0.042266845703125, -0.0224151611328125, 0.017547607421875, -0.0302734375, 0.00911712646484375, -0.0129852294921875, 0.04156494140625, 0.0200958251953125, 0.005992889404296875, 0.017974853515625, 0.004146575927734375, 0.00658416748046875, 0.00699615478515625, 0.053741455078125, 0.0181884765625, -0.022613525390625, 0.00879669189453125, 0.0017042160034179688, -0.05670166015625, 0.0282745361328125, 0.005359649658203125, 0.039947509765625, 0.0176239013671875, 0.00479888916015625, 0.051513671875, -0.0084075927734375, -0.0396728515625, 0.016510009765625, 0.02496337890625, 0.0230255126953125, -0.006900787353515625, 0.042999267578125, -0.00176239013671875, -0.077392578125, -0.036407470703125, -0.007633209228515625, 0.032257080078125, 0.0179443359375, 0.01403045654296875, 0.0217132568359375, -0.0052642822265625, 0.0318603515625, 0.051910400390625, -0.0045013427734375, -0.01560211181640625, -0.004795074462890625, 0.027313232421875, -0.0850830078125, -0.07757568359375, 0.0185089111328125, -0.01351165771484375, 0.00940704345703125, 0.0031566619873046875, 0.0025501251220703125, -0.0217132568359375, 0.0186920166015625, -0.03118896484375, -0.0212249755859375, 0.05755615234375, -0.0281219482421875, -0.0252838134765625, -0.039825439453125, 0.021209716796875, 0.01556396484375, -0.08984375, 0.033477783203125, 0.01102447509765625, 0.002574920654296875, -0.029266357421875, 0.0163116455078125, 0.03131103515625, -0.032379150390625, -0.00243377685546875, 0.0229644775390625, 0.033203125, 0.018096923828125, -0.0009860992431640625, -0.01056671142578125, -0.0035800933837890625, -0.0628662109375, 0.0005636215209960938, -0.0113677978515625, 0.03448486328125, 0.129638671875, -0.0020580291748046875, 0.0203399658203125, -0.027252197265625, -0.033843994140625, -0.01036834716796875, 0.034820556640625, 0.00182342529296875, -0.004364013671875, 0.00698089599609375, -0.005870819091796875, 0.0131072998046875, 0.0106201171875, -0.03143310546875, 0.0164947509765625, 0.04840087890625, 0.054168701171875, 0.059967041015625, 0.057373046875, -0.00933074951171875, 0.020355224609375, -0.0275115966796875, -0.0294952392578125, 0.002880096435546875, 0.0095062255859375, 0.051300048828125, -0.01421356201171875, -0.032440185546875, -0.0159759521484375, 0.0272216796875, -0.0009946823120117188, -0.0216522216796875, 0.0191650390625, -0.049896240234375, -0.01058197021484375, -0.0188446044921875, -0.0269012451171875, 0.0016727447509765625, 0.04498291015625, 0.0039825439453125, -0.0120697021484375, 0.018524169921875, 0.01142120361328125, -0.03741455078125, 0.040924072265625, 0.00018608570098876953, -0.028106689453125, 0.004222869873046875, -0.044708251953125, 0.04815673828125, -0.046417236328125, 0.02825927734375, 0.058135986328125, -0.01161956787109375, -0.00312042236328125, -0.0210723876953125, 0.00041174888610839844, -0.02032470703125, 0.0010156631469726562, -0.01352691650390625, -0.0048980712890625, -0.08843994140625, -0.0019521713256835938, 0.00888824462890625, -0.0008254051208496094, 0.01114654541015625, -0.01232147216796875, 0.0008916854858398438, -0.00763702392578125, -0.04180908203125, -0.0144500732421875, -0.0028228759765625, -0.039947509765625, 0.031280517578125, -0.022491455078125, 0.005344390869140625, -0.0216827392578125, -0.0006098747253417969, 0.01497650146484375, -0.0027370452880859375, -0.07330322265625, -0.06243896484375, -0.0858154296875, -0.08331298828125, -0.0177001953125, 0.005123138427734375, 0.00891876220703125, -0.0006642341613769531, -0.0019083023071289062, 0.004665374755859375, -0.0474853515625, -0.002231597900390625, 0.04473876953125, -0.0101470947265625, -0.038360595703125, -0.0142974853515625, -0.0302734375, -0.0023345947265625, 0.0014543533325195312, 0.0292816162109375, -0.004955291748046875, 0.0198516845703125, -0.0004391670227050781, 0.0195465087890625, -0.016448974609375, 0.019989013671875, -0.037445068359375, -0.0207977294921875, 0.004913330078125, -0.01446533203125, -0.05596923828125, 0.0261077880859375, -0.03753662109375, -0.040496826171875, 0.037811279296875, 0.0240631103515625, -0.0186920166015625, 0.005542755126953125, -0.014617919921875, 0.01206207275390625, -0.0003294944763183594, -0.0029392242431640625, -0.039031982421875, 0.052337646484375, 0.01546478271484375, 0.0224761962890625, -0.0196685791015625, 0.07220458984375, -0.01416015625, -0.00920867919921875, 0.0182037353515625, -0.0255279541015625, -0.043487548828125, -0.0225677490234375, -0.07470703125, -0.0540771484375, 0.056732177734375, -0.019744873046875, 0.0265045166015625, -0.06268310546875, -0.046539306640625, -0.0303802490234375, 0.1260986328125, -0.058685302734375, -0.009552001953125, 0.01476287841796875, 0.0272064208984375, -0.0112762451171875, -0.042205810546875, -0.049407958984375, -0.01074981689453125, -0.10089111328125, -0.0305938720703125, -0.048370361328125, -0.03515625, 0.005672454833984375, -0.01195526123046875, -0.0220184326171875, -0.06817626953125, 0.03851318359375, -0.003582000732421875, 0.02239990234375, -0.0041046142578125, 0.029632568359375, -0.0296478271484375, -0.0034847259521484375, -0.022216796875, -0.01611328125, -0.021728515625, 0.00640869140625, 0.014251708984375, -0.0009474754333496094, -0.0205841064453125, -0.007427215576171875, 0.0246734619140625, -0.00628662109375, 0.004749298095703125, -0.0097808837890625, -0.00391387939453125, 0.033203125, 0.0005888938903808594, -0.0182342529296875, -0.01763916015625, -0.0135955810546875, -0.017974853515625, -0.016021728515625, -0.0195770263671875, -0.021240234375, -0.049072265625, 0.0310516357421875, -0.0099639892578125, -0.046722412109375, -0.005340576171875, 0.01216888427734375, -0.0013723373413085938, -0.040618896484375, 0.0278167724609375, 0.0304412841796875, -0.02520751953125, 0.0555419921875, -0.0255584716796875, -0.04217529296875, 0.00092315673828125, 0.07037353515625, 0.01385498046875, -0.01395416259765625, 0.004192352294921875, 0.035919189453125, 0.026397705078125, 0.01812744140625, 0.07684326171875, 0.052581787109375, 0.00643157958984375, 0.01739501953125, 0.020477294921875, 0.0038623809814453125, 0.0302734375, -0.01287078857421875, 0.02288818359375, -0.017791748046875, 0.01358795166015625, 0.0081329345703125, -0.005298614501953125, -0.01026153564453125, -0.039947509765625, -0.0094146728515625, -0.01451873779296875, 0.0247039794921875, -0.013946533203125, 0.03521728515625, -0.0377197265625, -0.04388427734375, 0.005504608154296875, -0.015594482421875, 0.02801513671875, 0.01715087890625, -0.0020465850830078125, 0.03546142578125, 0.045257568359375, -0.024566650390625, 0.004001617431640625, 0.0423583984375, 0.046417236328125, 0.034088134765625, -0.0182952880859375, -0.0022869110107421875, -0.047088623046875, -0.0204315185546875, 0.081787109375, -0.0201568603515625, -0.03802490234375, -0.0123748779296875, -0.023101806640625, 0.00351715087890625, 0.053558349609375, -0.035675048828125, 0.050872802734375, 0.019256591796875, -0.04376220703125, 0.00922393798828125, -0.0660400390625, -0.046539306640625, -0.0611572265625, -0.0209808349609375, -0.050872802734375, 0.0195465087890625, 0.049652099609375, 0.03314208984375, -0.01064300537109375, 0.05377197265625, -0.0280303955078125, 0.010772705078125, 0.0316162109375, -0.00507354736328125, 0.02032470703125, 0.01959228515625, -0.0235137939453125, -0.00841522216796875, 0.0162353515625, -0.00968170166015625, 0.0228271484375, 0.0285491943359375, 0.022430419921875, 0.00327301025390625, -0.0200653076171875, 0.00384521484375, -0.040252685546875, -0.0186004638671875, 0.032958984375, -0.002658843994140625, -0.0246429443359375, -0.0307159423828125, 0.02178955078125, 0.05157470703125, -0.0007481575012207031, -0.0015506744384765625, -0.007625579833984375, -0.017425537109375, -0.01129913330078125, 0.02459716796875, -0.0374755859375, 0.004055023193359375, 0.01161956787109375, -0.064453125, 0.001922607421875, 0.019134521484375, -0.0552978515625, -0.047088623046875, 0.0130615234375, -0.03826904296875, 0.00949859619140625, -0.012908935546875, 0.009429931640625, -0.048431396484375, 0.0221405029296875, -0.033935546875, 0.004863739013671875, 0.0305023193359375, 0.00021159648895263672, -0.034454345703125, 0.0153350830078125, -0.054229736328125, -0.0155487060546875, -0.002834320068359375, -0.042205810546875, -0.0330810546875, -0.029815673828125, -0.00733184814453125, -0.01387786865234375, 0.005786895751953125, -0.0242462158203125, -0.0236663818359375, 0.002376556396484375, 0.006099700927734375, -0.070556640625, -0.023284912109375, 0.057220458984375, 0.0200958251953125, 0.0290679931640625, 0.023284912109375, 0.051422119140625, 0.00402069091796875, -0.0298004150390625, 0.004421234130859375, -0.0657958984375, -0.026092529296875, -0.0092926025390625, -0.008514404296875, 0.035919189453125, 0.0201263427734375, 0.004230499267578125, 0.0163421630859375, -0.00307464599609375, 0.007354736328125, -0.016448974609375, -0.045684814453125, -0.0259857177734375, 0.007843017578125, -0.0113677978515625, -0.01947021484375, 0.038238525390625, 0.0168609619140625, -0.01520538330078125, 0.005512237548828125, -0.0038623809814453125, 0.01116943359375, 0.03955078125, -0.05487060546875, 0.061187744140625, 0.07635498046875, 0.0181427001953125, 0.054168701171875, 0.0281219482421875, 0.01495361328125, 0.0201873779296875, -0.0017681121826171875, -0.045867919921875, -0.0219268798828125, 0.00847625732421875, 0.01047515869140625, 0.0089874267578125, 0.025177001953125, -0.00997161865234375, -0.0042266845703125, 0.0175323486328125, 0.05950927734375, -0.03973388671875, 0.007354736328125, 0.037506103515625, -0.0022335052490234375, -0.02777099609375, 0.00821685791015625, -0.015960693359375, -0.01038360595703125, 0.02496337890625, -0.01983642578125, -0.03131103515625, 0.0081024169921875, 0.01611328125, -0.018157958984375, -0.002162933349609375, 0.038818359375, 0.04315185546875, 0.036895751953125, 0.00027489662170410156, -0.0157623291015625, 0.039459228515625, -0.00960540771484375, 0.0028839111328125, -0.0095367431640625, -0.01528167724609375, -0.046630859375, -0.01284027099609375, -0.045745849609375, -0.0006747245788574219, -0.039520263671875, 0.007587432861328125, 0.01092529296875, 0.06915283203125, -0.0479736328125, 0.01285552978515625, 0.05865478515625, -0.03857421875, 0.0189971923828125, 0.01554107666015625, 0.026123046875, -0.0038738250732421875, -0.049072265625, 0.00013184547424316406, -0.06463623046875, 0.01074981689453125, -0.0029888153076171875, -0.0025119781494140625, 0.06304931640625, -0.057891845703125, -0.001972198486328125, 0.05157470703125, 0.042327880859375, -0.0183868408203125, -0.0135650634765625, 0.007732391357421875, -0.041412353515625, -0.058807373046875, -0.00827789306640625, -0.06317138671875, -0.0154571533203125, -0.04071044921875, -0.0274810791015625, 0.04656982421875, -0.006511688232421875, -0.00540924072265625, 0.021728515625, 0.0173797607421875, -0.019287109375, -0.0029449462890625, -0.049346923828125, 0.04217529296875, 0.004680633544921875, 0.048828125, -0.0697021484375, 0.003833770751953125, -0.0000330805778503418, 0.0102996826171875, 0.042999267578125, 0.015411376953125, -0.030426025390625, -0.004825592041015625, 0.0296630859375, 0.0285186767578125, -0.00897979736328125, 0.042755126953125, 0.002338409423828125, 0.039703369140625, 0.03216552734375, -0.049713134765625, 0.035247802734375, -0.029754638671875, -0.0132293701171875, 0.01012420654296875, -0.01384735107421875, -0.039398193359375, 0.02008056640625, -0.00897216796875, -0.033538818359375, 0.01357269287109375, 0.01506805419921875, -0.0263671875, 0.0157928466796875, 0.02197265625, 0.0226593017578125, -0.01309967041015625, 0.07208251953125, -0.04583740234375, 0.062347412109375, -0.01812744140625, 0.002437591552734375, 0.0311126708984375, 0.012725830078125, 0.0137939453125, 0.0175323486328125, -0.003032684326171875, 0.027496337890625, -0.008392333984375, 0.0042724609375, 0.016754150390625, 0.0093231201171875, -0.0438232421875, -0.0274505615234375, 0.05133056640625, 0.029541015625, -0.005401611328125, -0.012481689453125, 0.0007476806640625, -0.0167999267578125, 0.005603790283203125, -0.0250244140625, -0.0013685226440429688, 0.0282440185546875, 0.00830078125, 0.01538848876953125, -0.0240936279296875, 0.006809234619140625, 0.034088134765625, 0.01369476318359375, -0.00949859619140625, -0.00632476806640625, -0.032562255859375, -0.0179290771484375, 0.0013875961303710938, 0.0144195556640625, 0.052215576171875, -0.003204345703125, 0.0802001953125, -0.07098388671875, -0.0253143310546875, -0.0118560791015625, 0.0256195068359375, -0.0302581787109375, 0.01261138916015625, -0.0517578125, -0.062347412109375, 0.0205230712890625, 0.052398681640625, 0.0278167724609375, 0.0265960693359375, 0.03564453125, 0.005908966064453125, -0.043121337890625, 0.011688232421875, 0.044952392578125, -0.026458740234375, 0.054351806640625, -0.055633544921875, 0.01544189453125, -0.00891876220703125, -0.0204925537109375, -0.03289794921875, -0.01393890380859375, 0.061309814453125, -0.043243408203125, 0.045013427734375, -0.00823211669921875, 0.010498046875, 0.04425048828125, -0.00193023681640625, 0.028045654296875, -0.00783538818359375, -0.0430908203125, 0.007663726806640625, -0.03277587890625, -0.03802490234375, -0.005157470703125, 0.038848876953125, 0.0026454925537109375, -0.001953125, 0.01178741455078125, -0.017120361328125, 0.021331787109375, 0.01409149169921875, -0.00926971435546875, 0.0231170654296875, 0.035400390625, 0.0036182403564453125, -0.0191497802734375, -0.004917144775390625, 0.0122528076171875, 0.0057373046875, -0.00403594970703125, 0.06463623046875, -0.01299285888671875, 0.0012149810791015625, 0.01024627685546875, -0.016387939453125, 0.024383544921875, -0.0010738372802734375, 0.0035114288330078125, 0.0145416259765625, 0.01161956787109375, -0.021514892578125, 0.0027065277099609375, 0.05010986328125, 0.01202392578125, -0.0301513671875, 0.02569580078125, -0.0260772705078125, 0.0034618377685546875, 0.01497650146484375, 0.0210418701171875, -0.0253143310546875, -0.047637939453125, -0.053802490234375, -0.002315521240234375, 0.0341796875, 0.035980224609375, -0.01355743408203125, 0.036468505859375, -0.00969696044921875, -0.04443359375, 0.0013713836669921875, -0.0322265625, 0.0152587890625, 0.0291900634765625, 0.00983428955078125, -0.057464599609375, 0.0049896240234375, -0.0131988525390625, -0.00968170166015625, -0.0111541748046875, 0.06292724609375, -0.006992340087890625, -0.031829833984375, 0.0286712646484375, 0.0158538818359375, 0.03778076171875, -0.034942626953125, 0.01934814453125, 0.01556396484375, 0.01520538330078125, 0.0262908935546875, -0.0521240234375, -0.0282745361328125, -0.04046630859375, 0.00925445556640625, 0.014404296875, -0.007114410400390625, 0.002902984619140625, 0.018096923828125, -0.0531005859375, 0.043304443359375, -0.00746917724609375, -0.017669677734375, -0.0195770263671875, -0.023040771484375, 0.00978851318359375, -0.0029354095458984375, -0.014556884765625, -0.01111602783203125, 0.01885986328125, -0.006641387939453125, -0.017913818359375, -0.0408935546875, 0.0100250244140625, -0.012847900390625, 0.0233001708984375, 0.043212890625, -0.039337158203125, -0.01203155517578125, 0.00629425048828125, 0.01425933837890625, 0.05108642578125, 0.0252838134765625, -0.01145172119140625, 0.036712646484375, -0.01226043701171875, -0.016387939453125, -0.038299560546875, -0.01157379150390625, -0.02850341796875, 0.005107879638671875, -0.0225982666015625, -0.009613037109375, -0.00695037841796875, -0.043243408203125, -0.04083251953125, 0.06878662109375, -0.006168365478515625, -0.032196044921875, -0.0687255859375, -0.01184844970703125, -0.00408172607421875, 0.003215789794921875, -0.0389404296875, -0.01203155517578125, -0.0102691650390625, 0.06695556640625, 0.025543212890625, 0.034423828125, 0.002857208251953125, 0.0260162353515625, -0.0032863616943359375, 0.035888671875, 0.0158233642578125, 0.002513885498046875, 0.040130615234375, -0.030914306640625, 0.0215301513671875, 0.042266845703125, -0.034881591796875, -0.0158843994140625, -0.0008120536804199219, 0.01496124267578125, -0.03131103515625, -0.0194549560546875, -0.032989501953125, -0.01282501220703125, 0.08050537109375, 0.08428955078125, 0.02392578125, -0.041748046875, -0.010009765625, 0.00058746337890625, -0.0487060546875, 0.01154327392578125, 0.0372314453125, -0.06903076171875, 0.00817108154296875, 0.0189666748046875, -0.0215301513671875, -0.034820556640625, 0.003566741943359375, -0.055419921875, 0.01274871826171875, 0.025390625, 0.032989501953125, -0.036956787109375, -0.01474761962890625, 0.0367431640625, -0.047576904296875, -0.021209716796875, -0.005527496337890625, 0.0257110595703125, -0.0158538818359375, -0.05230712890625, 0.0262603759765625, 0.03558349609375, -0.05499267578125, -0.0148162841796875, 0.0069580078125, 0.0006937980651855469, -0.0133056640625, -0.035247802734375, 0.006145477294921875, 0.0165863037109375, -0.0138092041015625, 0.0071258544921875, 0.005420684814453125, 0.02581787109375, -0.0142974853515625, 0.03460693359375, 0.026275634765625, 0.041900634765625, -0.02349853515625, 0.07208251953125, 0.0038242340087890625, -0.050445556640625, 0.024444580078125, -0.033203125, -0.01520538330078125, 0.01554107666015625, 0.028594970703125, -0.076904296875, 0.054779052734375, -0.03436279296875, 0.04022216796875, 0.037261962890625 ]
3ebfbfdc4ada351fca9a791f2842051db53ea29e
Wordpress Stackexchange Q: Empty title on front page/Home My main problem is around the title. In my index.php, I have specified a title tag and inserted the following: <?php wp_title(); ?> | <?php bloginfo( 'name' ); ?> My problem is the it is only printing the blog "name" - wp_title() prints nothing i.e. This is what is being printed from the above: | Wordpress Test Site NOTE: The Page Title should be: Home Strangely, when I visit My Sample Page, it presents the following: » Sample Page | Wordpress Test Site And they are both using the same header.php file! Am I missing a setup somewhere that doesn't work on the home page? FYI - I've set the Page - Home as the static front page. Thanks A: The title is empty at the front page in WordPress. Yes, that sucks. Just put the separator into wp_title(): <title><?php // separator, print immediately, separator position wp_title( '·', TRUE, 'right' ); bloginfo( 'name' ); ?></title> This prints out just the blog name on the front page and PAGE NAME · BLOG NAME on other pages.
Q: Empty title on front page/Home My main problem is around the title. In my index.php, I have specified a title tag and inserted the following: <?php wp_title(); ?> | <?php bloginfo( 'name' ); ?> My problem is the it is only printing the blog "name" - wp_title() prints nothing i.e. This is what is being printed from the above: | Wordpress Test Site NOTE: The Page Title should be: Home Strangely, when I visit My Sample Page, it presents the following: » Sample Page | Wordpress Test Site And they are both using the same header.php file! Am I missing a setup somewhere that doesn't work on the home page? FYI - I've set the Page - Home as the static front page. Thanks A: The title is empty at the front page in WordPress. Yes, that sucks. Just put the separator into wp_title(): <title><?php // separator, print immediately, separator position wp_title( '·', TRUE, 'right' ); bloginfo( 'name' ); ?></title> This prints out just the blog name on the front page and PAGE NAME · BLOG NAME on other pages.
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:417484", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43619" }
[ 0.01116943359375, -0.00629425048828125, -0.005069732666015625, 0.044921875, -0.00750732421875, -0.0255889892578125, 0.0400390625, -0.052734375, -0.00608062744140625, 0.0029659271240234375, -0.042327880859375, 0.007579803466796875, -0.025543212890625, -0.023834228515625, 0.0180206298828125, -0.047515869140625, 0.048675537109375, -0.01396942138671875, 0.036895751953125, 0.01947021484375, -0.01444244384765625, 0.048126220703125, 0.0160980224609375, 0.006404876708984375, 0.0207977294921875, -0.054718017578125, 0.0799560546875, -0.00739288330078125, 0.01003265380859375, -0.020050048828125, 0.0184326171875, -0.0050506591796875, -0.00849151611328125, 0.0113677978515625, 0.02703857421875, 0.03875732421875, 0.01219940185546875, 0.02191162109375, 0.026611328125, 0.0251007080078125, 0.00970458984375, 0.0041046142578125, 0.0224761962890625, 0.020111083984375, 0.0066680908203125, -0.037322998046875, 0.01325225830078125, -0.0439453125, -0.01556396484375, -0.0038776397705078125, 0.0200958251953125, 0.00392913818359375, 0.01739501953125, 0.007221221923828125, -0.0184783935546875, -0.0202484130859375, 0.033905029296875, -0.00498199462890625, 0.0186004638671875, -0.037994384765625, -0.03472900390625, 0.0114898681640625, 0.02880859375, 0.001373291015625, 0.00909423828125, -0.005870819091796875, 0.0189971923828125, 0.033050537109375, -0.0202484130859375, 0.0150299072265625, 0.006561279296875, -0.01279449462890625, -0.000522613525390625, -0.01486968994140625, -0.04638671875, -0.00403594970703125, 0.006870269775390625, -0.049713134765625, 0.0233917236328125, -0.0175018310546875, -0.0252227783203125, -0.00666046142578125, -0.0821533203125, -0.018402099609375, 0.00630950927734375, 0.01483154296875, -0.01291656494140625, -0.00067138671875, -0.0169677734375, -0.0054779052734375, -0.006977081298828125, -0.007503509521484375, -0.045166015625, -0.0014972686767578125, 0.01158905029296875, -0.037811279296875, 0.0178070068359375, 0.07196044921875, -0.035491943359375, 0.0009832382202148438, -0.03192138671875, -0.01134490966796875, -0.0002970695495605469, -0.03533935546875, 0.0087127685546875, 0.007625579833984375, 0.0118255615234375, -0.00562286376953125, 0.029205322265625, 0.014801025390625, -0.0112152099609375, 0.018035888671875, -0.0303497314453125, -0.03851318359375, -0.0199737548828125, 0.039825439453125, -0.03582763671875, -0.00482940673828125, 0.006465911865234375, 0.0169219970703125, -0.0035190582275390625, 0.04241943359375, -0.0265045166015625, 0.004825592041015625, 0.0101776123046875, 0.0230865478515625, 0.02886962890625, -0.041534423828125, -0.007266998291015625, 0.024932861328125, -0.00782012939453125, 0.0134735107421875, 0.043365478515625, -0.0124664306640625, -0.0299835205078125, -0.040618896484375, -0.01470184326171875, 0.0017862319946289062, -0.0236663818359375, 0.007366180419921875, 0.0242767333984375, -0.0238494873046875, 0.01328277587890625, -0.0087738037109375, 0.0018835067749023438, 0.037750244140625, 0.0222015380859375, 0.00701904296875, -0.0131378173828125, -0.07672119140625, 0.040740966796875, -0.04150390625, 0.0204620361328125, 0.01366424560546875, 0.00823974609375, -0.034912109375, 0.00018036365509033203, -0.0308685302734375, 0.0173492431640625, -0.0186004638671875, 0.02874755859375, 0.00600433349609375, -0.027069091796875, -0.032562255859375, -0.044281005859375, -0.0279998779296875, 0.00518035888671875, -0.007511138916015625, 0.01702880859375, -0.0277099609375, 0.0143280029296875, 0.0108489990234375, 0.021453857421875, 0.0016832351684570312, -0.005420684814453125, -0.006046295166015625, -0.05377197265625, -0.0360107421875, 0.0200347900390625, 0.040374755859375, 0.0218505859375, 0.0009765625, 0.0019245147705078125, 0.032135009765625, -0.049591064453125, 0.00534820556640625, 0.0226593017578125, 0.048736572265625, 0.01483917236328125, 0.029266357421875, 0.0391845703125, -0.004638671875, -0.065673828125, 0.0161285400390625, -0.004070281982421875, 0.007068634033203125, -0.0250701904296875, -0.006359100341796875, -0.01451873779296875, 0.0038623809814453125, 0.019500732421875, 0.0313720703125, -0.0177764892578125, 0.0138397216796875, 0.0013751983642578125, -0.02056884765625, 0.015380859375, 0.018341064453125, 0.005741119384765625, 0.0147247314453125, 0.01309967041015625, 0.0042724609375, -0.0184783935546875, -0.055938720703125, -0.046051025390625, 0.0016584396362304688, -0.0159454345703125, -0.00318145751953125, 0.0023937225341796875, -0.00727081298828125, 0.01904296875, 0.01477813720703125, -0.0007696151733398438, 0.0230560302734375, 0.07794189453125, -0.024078369140625, -0.033599853515625, -0.06097412109375, 0.0389404296875, -0.0012197494506835938, -0.062469482421875, 0.05157470703125, 0.0231170654296875, 0.041748046875, -0.05194091796875, -0.0258026123046875, -0.0190887451171875, 0.004444122314453125, 0.013702392578125, 0.03912353515625, 0.0106201171875, 0.01129150390625, -0.010284423828125, 0.03314208984375, 0.045928955078125, -0.00921630859375, 0.011688232421875, 0.007373809814453125, 0.0194854736328125, 0.058685302734375, -0.07110595703125, -0.0011129379272460938, 0.01537322998046875, -0.0775146484375, -0.035614013671875, 0.07525634765625, -0.0211639404296875, -0.021514892578125, -0.0223541259765625, 0.01207733154296875, 0.006488800048828125, -0.0023670196533203125, -0.0196685791015625, 0.0012426376342773438, -0.0031948089599609375, 0.045745849609375, -0.00144195556640625, 0.0189056396484375, -0.06988525390625, 0.051544189453125, 0.0190887451171875, 0.02801513671875, 0.01392364501953125, 0.045074462890625, 0.0185699462890625, -0.0249786376953125, -0.00225830078125, -0.023406982421875, 0.0010852813720703125, -0.0027523040771484375, 0.006595611572265625, 0.021453857421875, -0.00447845458984375, -0.004970550537109375, 0.01800537109375, -0.04296875, 0.0010442733764648438, 0.02423095703125, 0.0308837890625, 0.0004487037658691406, -0.0182952880859375, 0.053436279296875, -0.0186004638671875, 0.0833740234375, 0.00218963623046875, -0.0155181884765625, -0.01910400390625, -0.07061767578125, 0.04351806640625, -0.0227508544921875, 0.06365966796875, 0.08673095703125, 0.00797271728515625, 0.02032470703125, 0.0118255615234375, 0.017303466796875, 0.007328033447265625, 0.00545501708984375, -0.007801055908203125, 0.027740478515625, -0.075439453125, 0.01219940185546875, 0.022857666015625, 0.08758544921875, -0.01384735107421875, -0.03924560546875, 0.0234222412109375, 0.033905029296875, -0.06170654296875, -0.0999755859375, -0.034332275390625, -0.027984619140625, 0.024871826171875, -0.005718231201171875, 0.004642486572265625, -0.007320404052734375, 0.0204925537109375, 0.0114898681640625, 0.001373291015625, -0.0672607421875, -0.052032470703125, -0.10906982421875, -0.0908203125, -0.052734375, 0.00754547119140625, 0.0097503662109375, -0.009552001953125, 0.01666259765625, -0.01284027099609375, -0.0614013671875, -0.005157470703125, 0.054595947265625, 0.01849365234375, 0.00299835205078125, 0.016845703125, 0.009033203125, -0.02838134765625, 0.0316162109375, -0.017913818359375, 0.0013637542724609375, -0.02587890625, -0.033416748046875, -0.01471710205078125, -0.03338623046875, -0.040069580078125, 0.04327392578125, 0.036865234375, -0.007183074951171875, 0.00070953369140625, -0.04937744140625, -0.0308837890625, -0.0213470458984375, -0.0621337890625, 0.02008056640625, 0.051849365234375, -0.0010528564453125, -0.01242828369140625, -0.0017423629760742188, -0.001087188720703125, -0.01340484619140625, 0.011566162109375, -0.00833892822265625, -0.0250091552734375, -0.0167999267578125, 0.0140228271484375, 0.005458831787109375, 0.0149688720703125, -0.00485992431640625, 0.0235748291015625, -0.001224517822265625, 0.02996826171875, -0.0005979537963867188, 0.00980377197265625, -0.027618408203125, -0.042694091796875, 0.019989013671875, -0.02923583984375, 0.01282501220703125, -0.0137939453125, -0.0250244140625, 0.00786590576171875, 0.06134033203125, -0.0927734375, -0.007701873779296875, 0.02032470703125, 0.0164642333984375, 0.004795074462890625, -0.034454345703125, -0.05615234375, -0.033203125, -0.0655517578125, 0.0382080078125, -0.01739501953125, 0.0005922317504882812, -0.0215606689453125, -0.006862640380859375, -0.0218048095703125, -0.047760009765625, 0.0352783203125, -0.006481170654296875, -0.002414703369140625, -0.0021343231201171875, -0.042938232421875, -0.0026340484619140625, -0.0283203125, -0.015045166015625, -0.044952392578125, -0.0271759033203125, 0.031219482421875, 0.018280029296875, -0.033050537109375, 0.019866943359375, -0.013031005859375, 0.04083251953125, -0.011871337890625, 0.0123291015625, 0.01125335693359375, 0.0024871826171875, 0.0266265869140625, 0.0059051513671875, -0.003467559814453125, -0.0193328857421875, -0.0113372802734375, -0.0175018310546875, -0.0477294921875, 0.0208892822265625, 0.003627777099609375, 0.00945281982421875, 0.031097412109375, -0.0121917724609375, -0.0171356201171875, -0.039947509765625, -0.0037059783935546875, -0.01409149169921875, 0.0199432373046875, -0.0213165283203125, -0.0265045166015625, 0.0015697479248046875, 0.0206146240234375, -0.01953125, -0.03082275390625, 0.01496124267578125, 0.059326171875, 0.0261993408203125, -0.0117340087890625, -0.0011720657348632812, -0.0013866424560546875, 0.05047607421875, -0.00891876220703125, 0.042938232421875, 0.02264404296875, -0.04742431640625, 0.0712890625, 0.0032596588134765625, 0.020751953125, 0.0011920928955078125, 0.0177001953125, -0.0186614990234375, -0.060394287109375, 0.05712890625, -0.0007305145263671875, -0.0220489501953125, 0.0166168212890625, -0.00934600830078125, 0.01413726806640625, -0.0153045654296875, -0.0182342529296875, -0.037567138671875, 0.05035400390625, 0.027557373046875, -0.01375579833984375, -0.004863739013671875, 0.0147247314453125, 0.009429931640625, 0.034759521484375, -0.004589080810546875, -0.0091552734375, 0.0081024169921875, -0.0091400146484375, 0.023651123046875, -0.0022735595703125, -0.006290435791015625, 0.01023101806640625, -0.016510009765625, -0.03350830078125, 0.022674560546875, -0.01316070556640625, 0.068115234375, 0.019500732421875, -0.0242767333984375, -0.00395965576171875, -0.00733184814453125, 0.02471923828125, 0.0011510848999023438, 0.05780029296875, 0.0149688720703125, -0.004543304443359375, 0.024200439453125, -0.0175628662109375, 0.0279693603515625, 0.01464080810546875, -0.0194549560546875, 0.0077056884765625, 0.017242431640625, -0.017486572265625, 0.01739501953125, 0.046142578125, -0.01229095458984375, 0.03277587890625, -0.0308685302734375, -0.037017822265625, 0.0036144256591796875, 0.06024169921875, 0.031463623046875, -0.039825439453125, -0.03216552734375, 0.0704345703125, 0.027740478515625, -0.03179931640625, -0.01548004150390625, 0.032958984375, 0.064453125, -0.0184783935546875, -0.035797119140625, 0.006717681884765625, -0.048797607421875, 0.0182952880859375, 0.03955078125, -0.0196685791015625, -0.0369873046875, -0.033203125, -0.0007090568542480469, 0.053466796875, -0.03076171875, -0.009490966796875, 0.004558563232421875, -0.01264190673828125, 0.0293121337890625, 0.00244140625, -0.0017671585083007812, 0.0161285400390625, -0.004146575927734375, -0.003650665283203125, 0.0005831718444824219, 0.0182647705078125, -0.0323486328125, -0.01195526123046875, -0.0289459228515625, -0.0216522216796875, 0.059356689453125, -0.040985107421875, 0.053558349609375, -0.05145263671875, -0.00759124755859375, -0.046875, 0.01091766357421875, 0.04119873046875, 0.052398681640625, -0.0399169921875, 0.006183624267578125, -0.038055419921875, -0.00628662109375, 0.0250244140625, -0.01387786865234375, -0.0416259765625, -0.0462646484375, 0.02142333984375, 0.0279388427734375, -0.006229400634765625, -0.0439453125, -0.059906005859375, 0.00534820556640625, 0.0504150390625, 0.059051513671875, -0.03594970703125, 0.033905029296875, 0.01522064208984375, 0.0299530029296875, -0.0139923095703125, 0.01255035400390625, 0.0011968612670898438, -0.02227783203125, 0.027679443359375, 0.00452423095703125, -0.05291748046875, -0.00652313232421875, -0.022796630859375, -0.0138397216796875, 0.042205810546875, -0.0171051025390625, -0.0192718505859375, 0.0146331787109375, 0.0128021240234375, -0.00983428955078125, -0.01374053955078125, 0.043670654296875, -0.034027099609375, 0.0308074951171875, -0.0039825439453125, 0.01129913330078125, -0.019256591796875, -0.0033416748046875, -0.0108184814453125, -0.00592041015625, -0.0180816650390625, 0.0129852294921875, -0.039764404296875, 0.055633544921875, 0.0826416015625, 0.0022373199462890625, 0.064208984375, 0.031158447265625, 0.0144195556640625, 0.03778076171875, 0.01222991943359375, -0.040069580078125, -0.02679443359375, 0.05926513671875, 0.018707275390625, -0.00861358642578125, 0.0755615234375, -0.0200042724609375, -0.0096893310546875, 0.056060791015625, 0.03985595703125, -0.06689453125, -0.00463104248046875, 0.02191162109375, 0.0197296142578125, 0.027923583984375, -0.002010345458984375, 0.0010595321655273438, -0.0101318359375, 0.02728271484375, 0.0114288330078125, -0.012908935546875, 0.01715087890625, 0.030059814453125, -0.002666473388671875, -0.0244293212890625, 0.054962158203125, 0.006710052490234375, -0.08245849609375, 0.01385498046875, 0.06878662109375, -0.048095703125, -0.02667236328125, 0.017669677734375, 0.0094451904296875, -0.0180206298828125, -0.07635498046875, 0.0267333984375, 0.0173797607421875, -0.019378662109375, -0.01058197021484375, 0.0245361328125, -0.037750244140625, 0.0438232421875, -0.04351806640625, 0.040008544921875, 0.01360321044921875, -0.03424072265625, -0.0017671585083007812, -0.01256561279296875, 0.00908660888671875, 0.0171966552734375, -0.036712646484375, 0.02117919921875, -0.009063720703125, -0.0213623046875, -0.027557373046875, -0.06756591796875, 0.075927734375, 0.0160369873046875, -0.040496826171875, -0.02081298828125, -0.009735107421875, 0.01274871826171875, 0.0015716552734375, 0.030548095703125, -0.044586181640625, 0.01464080810546875, 0.0083160400390625, 0.00931549072265625, -0.0217132568359375, 0.007488250732421875, -0.10040283203125, 0.10296630859375, -0.00423431396484375, 0.06121826171875, -0.0097503662109375, 0.01247406005859375, -0.0188140869140625, -0.0162506103515625, -0.049102783203125, 0.08172607421875, -0.0102386474609375, 0.0555419921875, -0.050018310546875, -0.006397247314453125, 0.032135009765625, 0.0296173095703125, -0.004573822021484375, -0.0011749267578125, 0.0306243896484375, -0.01459503173828125, 0.006755828857421875, 0.004673004150390625, -0.034210205078125, 0.0026092529296875, 0.005558013916015625, 0.00045800209045410156, 0.0005908012390136719, -0.006061553955078125, 0.05706787109375, -0.071533203125, -0.03778076171875, 0.015472412109375, 0.0244903564453125, -0.002574920654296875, 0.0215911865234375, -0.017822265625, -0.031158447265625, 0.0238189697265625, 0.005847930908203125, 0.0233917236328125, -0.001689910888671875, 0.045318603515625, 0.054229736328125, -0.057891845703125, 0.00800323486328125, -0.03778076171875, 0.059051513671875, 0.0171966552734375, -0.0027008056640625, 0.02447509765625, 0.0229034423828125, 0.022979736328125, -0.0628662109375, -0.01085662841796875, -0.00914764404296875, -0.01001739501953125, 0.0714111328125, 0.0401611328125, 0.049346923828125, -0.029327392578125, -0.01184844970703125, 0.037139892578125, 0.08953857421875, -0.033203125, -0.01348114013671875, 0.006175994873046875, -0.004550933837890625, -0.001155853271484375, -0.00922393798828125, -0.00551605224609375, 0.0018072128295898438, 0.0231170654296875, -0.0284576416015625, 0.01174163818359375, 0.04083251953125, 0.0034027099609375, 0.00980377197265625, 0.0132293701171875, -0.040802001953125, 0.0182952880859375, -0.01401519775390625, -0.01317596435546875, 0.005130767822265625, 0.0477294921875, 0.01953125, 0.02581787109375, -0.0638427734375, -0.01232147216796875, -0.0287628173828125, 0.05706787109375, 0.01515960693359375, 0.01273345947265625, -0.055206298828125, -0.03814697265625, 0.033935546875, 0.0298614501953125, 0.021575927734375, 0.043914794921875, 0.040313720703125, -0.005779266357421875, -0.015716552734375, 0.00799560546875, -0.03466796875, -0.04248046875, 0.006618499755859375, -0.01192474365234375, 0.022216796875, 0.01520538330078125, -0.005100250244140625, -0.009796142578125, 0.072021484375, -0.004913330078125, -0.04534912109375, 0.033294677734375, 0.003208160400390625, -0.032440185546875, -0.005828857421875, -0.0030117034912109375, 0.043548583984375, -0.00145721435546875, -0.082763671875, -0.0302276611328125, -0.032745361328125, 0.00806427001953125, 0.0284271240234375, 0.04547119140625, 0.0299224853515625, -0.0138092041015625, 0.0182647705078125, -0.01123046875, 0.00789642333984375, -0.01525115966796875, 0.03680419921875, 0.04180908203125, 0.0017080307006835938, 0.031646728515625, -0.057464599609375, -0.0228271484375, -0.016387939453125, 0.01171112060546875, -0.0007648468017578125, 0.0679931640625, 0.00005698204040527344, 0.0167388916015625, -0.0121307373046875, 0.022369384765625, -0.0233917236328125, -0.023101806640625, 0.019561767578125, -0.0120849609375, 0.0182342529296875, -0.00559234619140625, -0.0916748046875, 0.0263214111328125, 0.019866943359375, 0.00012421607971191406, 0.0712890625, -0.044036865234375, 0.00122833251953125, -0.061553955078125, 0.015625, -0.00638580322265625, -0.0006322860717773438, -0.0165557861328125, -0.0057220458984375, 0.041900634765625, 0.042236328125, -0.0147705078125, 0.050811767578125, 0.0019025802612304688, -0.0435791015625, 0.0284576416015625, -0.09716796875, 0.04876708984375, 0.0291290283203125, 0.042816162109375, -0.025970458984375, 0.00005441904067993164, -0.0009489059448242188, 0.0202484130859375, 0.010467529296875, 0.04986572265625, -0.0018444061279296875, 0.0034046173095703125, 0.0141448974609375, -0.036895751953125, 0.00901031494140625, -0.02935791015625, -0.01053619384765625, -0.0005135536193847656, 0.0291748046875, -0.018890380859375, -0.03857421875, -0.030670166015625, -0.052581787109375, -0.00762939453125, 0.02044677734375, -0.0361328125, -0.046356201171875, -0.060089111328125, -0.0259246826171875, -0.051055908203125, -0.0396728515625, 0.063720703125, -0.0122833251953125, -0.03411865234375, -0.0738525390625, -0.0577392578125, 0.00428009033203125, 0.0026607513427734375, 0.034149169921875, -0.0225677490234375, -0.004642486572265625, -0.0209197998046875, -0.00704193115234375, -0.0303497314453125, 0.0134735107421875, 0.0731201171875, -0.017486572265625, -0.055145263671875, -0.03363037109375, -0.0004038810729980469, 0.0165252685546875, -0.02490234375, -0.0229339599609375, -0.0125274658203125, -0.0264892578125, -0.0005559921264648438, -0.013763427734375, 0.027252197265625, -0.06182861328125, -0.057373046875, -0.034423828125, -0.033233642578125, -0.0450439453125, -0.05255126953125, -0.007099151611328125, 0.03558349609375, 0.024993896484375, -0.0156402587890625, -0.0020656585693359375, -0.0006918907165527344, -0.0186767578125, 0.023162841796875, 0.0125732421875, -0.0400390625, 0.006420135498046875, 0.0273590087890625, 0.005096435546875, 0.050048828125, 0.01568603515625, -0.005359649658203125, 0.0240325927734375, 0.0132293701171875, 0.01033782958984375, -0.0196075439453125, 0.029876708984375, -0.01032257080078125, 0.01044464111328125, 0.0294952392578125, -0.05914306640625, -0.01142120361328125, -0.0299530029296875, -0.0011224746704101562, 0.01025390625, -0.0006508827209472656, -0.0117034912109375, -0.00009417533874511719, 0.0222930908203125, 0.0185089111328125, 0.00820159912109375, -0.020355224609375, -0.021270751953125, 0.00539398193359375, -0.0199432373046875, 0.00820159912109375, 0.0184326171875, -0.055572509765625, 0.004779815673828125, -0.00292205810546875, -0.009521484375, -0.04315185546875, 0.0099029541015625, -0.034942626953125, -0.012054443359375, 0.01061248779296875, 0.00571441650390625, 0.0223388671875, -0.0740966796875, 0.0799560546875, -0.042633056640625, -0.0162506103515625, 0.01088714599609375, 0.049835205078125, 0.00408935546875, 0.000446319580078125, 0.02252197265625, 0.015869140625, -0.0162353515625, -0.0023632049560546875, 0.018157958984375, -0.0125885009765625, -0.0003719329833984375, -0.0418701171875, 0.0191192626953125, 0.0063018798828125, -0.0228118896484375, 0.00888824462890625, 0.01309967041015625, 0.0171051025390625, -0.025970458984375, 0.0023174285888671875, -0.01071929931640625, 0.005573272705078125, -0.033355712890625, 0.0616455078125, -0.0202178955078125, -0.0226898193359375, -0.00623321533203125, -0.01319122314453125, -0.00032329559326171875, -0.0002639293670654297, -0.00928497314453125, -0.0333251953125, -0.01026153564453125, -0.0210418701171875, 0.0106201171875, 0.0173797607421875 ]
d9bd28ebbcf86eb952bdfc7a475342b0be17e7eb
Wordpress Stackexchange Q: Does the number of widgets installed affect website performance? Does a website slow down or under perform in any way with a large number of widgets installed? A: I highly doubt you'll run into any significant performance problems with a lot of simple widgets. However, you start putting widgets that grab twitter feeds and facebook feeds all over the place - you'll start seeing some issues. Since that's obviously not a very smart thing to do, I wouldn't worry about it. The only other thing worth mentioning is that I would avoid downloading plugins to acquire more widgets, especially from a source other than wordpress.org. They are frequently riddled with malicious code that could easily effect your sites performance.
Q: Does the number of widgets installed affect website performance? Does a website slow down or under perform in any way with a large number of widgets installed? A: I highly doubt you'll run into any significant performance problems with a lot of simple widgets. However, you start putting widgets that grab twitter feeds and facebook feeds all over the place - you'll start seeing some issues. Since that's obviously not a very smart thing to do, I wouldn't worry about it. The only other thing worth mentioning is that I would avoid downloading plugins to acquire more widgets, especially from a source other than wordpress.org. They are frequently riddled with malicious code that could easily effect your sites performance. A: There's two ways to check that I know of. First is simply test page load time. Second is a little more involved but gives you actual statistics. Set SAVEQUERIES = true in wp-config.php, get the Debug Bar plugin (adds the debug information into an ajax dropdown in the top bar), and take a look at how long the server is taking to pull everything it needs. Widgets only seriously slow things down if they're pulling info from external sites or they're badly coded though, so I wouldn't worry too much about it. A: Put simply: not inherently. If you have a widget that does NOTHING at all...like, literally you add it and there's no code for the widget outside of registering it, you'll see SUCH a small performance hit from adding it that you would need to be looking at microtime() numbers to notice anything. That said, as @cmegown hit on a little, it depends what the widgets do. If you have a widget that calculates pi or solves differential equations or something heinous like that (I can't really think of a good example), then you're gonna start looking at more and more of a performance hit. Real world, where you're going to see issues is widgets that make HTTP requests, be those feeds, stylesheets, or calls to cURL. The best advice I can give you is to know what your widgets are doing, and make sure they're doing it right. Typically if you do that, everything else falls into place. A: There's a plugin called P3 (Plugin Performance Profiler) that helps you checking the performance hit in comparison to the rest of your install.
wordpress
{ "language": "en", "length": 396, "provenance": "stackexchange_00019.jsonl.gz:417514", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43711" }
[ 0.045745849609375, -0.0066680908203125, 0.0250701904296875, -0.0014448165893554688, 0.00646209716796875, -0.0162811279296875, 0.054229736328125, -0.0305328369140625, 0.002101898193359375, 0.0293121337890625, -0.00348663330078125, -0.0219268798828125, 0.01117706298828125, -0.027069091796875, -0.025909423828125, -0.03814697265625, 0.0313720703125, 0.035858154296875, 0.075927734375, 0.01959228515625, 0.0259552001953125, 0.03753662109375, 0.00936126708984375, 0.06683349609375, 0.025054931640625, -0.07330322265625, 0.0311431884765625, -0.01605224609375, -0.0252227783203125, -0.0426025390625, 0.0205230712890625, 0.0751953125, 0.033203125, 0.015655517578125, -0.0308837890625, 0.0242767333984375, -0.025726318359375, 0.0158233642578125, 0.0008540153503417969, 0.009368896484375, 0.0142059326171875, -0.0248260498046875, 0.08392333984375, -0.0222930908203125, 0.0228424072265625, 0.02105712890625, -0.005344390869140625, -0.0855712890625, 0.01275634765625, -0.09442138671875, 0.022796630859375, 0.0188446044921875, 0.062744140625, -0.09619140625, -0.02667236328125, 0.0010967254638671875, 0.003566741943359375, 0.0347900390625, 0.043914794921875, -0.06976318359375, -0.054901123046875, -0.01317596435546875, 0.034423828125, 0.0156707763671875, -0.0108795166015625, -0.01261138916015625, -0.0205535888671875, 0.01280975341796875, -0.0185089111328125, -0.0178680419921875, 0.032562255859375, -0.033843994140625, -0.030609130859375, 0.01430511474609375, 0.047088623046875, -0.0419921875, -0.0005488395690917969, -0.04302978515625, 0.0074462890625, 0.074462890625, 0.000037610530853271484, 0.026519775390625, -0.0214080810546875, -0.02386474609375, 0.01012420654296875, -0.001926422119140625, -0.00839996337890625, -0.01493072509765625, -0.030914306640625, -0.0017652511596679688, -0.016998291015625, -0.032440185546875, -0.0140228271484375, 0.021820068359375, 0.00235748291015625, -0.0205535888671875, 0.0093231201171875, -0.002269744873046875, 0.023193359375, 0.01309967041015625, -0.0087127685546875, -0.0198974609375, 0.008087158203125, -0.00907135009765625, 0.0260772705078125, 0.0230712890625, -0.0218048095703125, 0.032196044921875, 0.0704345703125, 0.0309295654296875, 0.00745391845703125, 0.041229248046875, 0.01529693603515625, -0.0013446807861328125, -0.013397216796875, -0.003704071044921875, -0.010040283203125, 0.0131378173828125, -0.003604888916015625, 0.00750732421875, -0.01313018798828125, 0.027191162109375, -0.030303955078125, 0.01085662841796875, -0.01110076904296875, -0.006305694580078125, 0.01959228515625, -0.01593017578125, -0.04345703125, 0.0021381378173828125, 0.01190185546875, 0.01514434814453125, -0.0177459716796875, 0.017333984375, -0.0360107421875, 0.0006580352783203125, 0.00899505615234375, -0.03070068359375, -0.0200958251953125, 0.0465087890625, -0.036285400390625, -0.06982421875, -0.0258941650390625, -0.02703857421875, 0.059814453125, 0.01169586181640625, 0.001007080078125, 0.00881195068359375, 0.02984619140625, 0.03753662109375, 0.019439697265625, -0.01806640625, 0.033050537109375, -0.007762908935546875, 0.031524658203125, -0.04620361328125, -0.00801849365234375, -0.0262298583984375, 0.0277557373046875, -0.0087890625, -0.0249481201171875, -0.02679443359375, 0.00908660888671875, -0.036468505859375, -0.04522705078125, 0.028350830078125, -0.01227569580078125, 0.00220489501953125, 0.0157623291015625, -0.0196990966796875, -0.01788330078125, -0.034027099609375, 0.018646240234375, 0.022064208984375, 0.0013427734375, 0.0706787109375, 0.02020263671875, 0.025482177734375, 0.0404052734375, -0.0489501953125, -0.0469970703125, -0.0426025390625, 0.11370849609375, -0.05035400390625, -0.07073974609375, 0.031341552734375, 0.003993988037109375, 0.08123779296875, 0.030731201171875, 0.006977081298828125, 0.050018310546875, -0.0239410400390625, -0.03533935546875, -0.034576416015625, 0.0181732177734375, 0.01528167724609375, -0.007476806640625, -0.00543975830078125, 0.0156097412109375, -0.026031494140625, 0.06317138671875, 0.0087890625, -0.01486968994140625, -0.030487060546875, -0.068603515625, -0.00908660888671875, -0.01311492919921875, 0.0191802978515625, 0.005340576171875, 0.03448486328125, 0.0204925537109375, 0.016876220703125, -0.035186767578125, 0.0135345458984375, -0.013671875, -0.005039215087890625, -0.001071929931640625, 0.025726318359375, 0.01214599609375, -0.01165771484375, 0.0099639892578125, -0.023956298828125, 0.0215911865234375, 0.03662109375, 0.0240631103515625, 0.01207733154296875, -0.0263214111328125, -0.020751953125, 0.009857177734375, 0.010986328125, -0.016571044921875, 0.04461669921875, -0.0158233642578125, 0.01523590087890625, -0.01363372802734375, -0.0028438568115234375, -0.019134521484375, -0.048431396484375, 0.0041961669921875, 0.039825439453125, 0.0300140380859375, 0.0166778564453125, -0.0013818740844726562, 0.0247955322265625, -0.0194854736328125, -0.1124267578125, -0.00678253173828125, 0.0219879150390625, 0.03271484375, 0.059112548828125, -0.03997802734375, -0.0207672119140625, 0.014404296875, -0.07427978515625, -0.00470733642578125, 0.03948974609375, -0.010772705078125, 0.02618408203125, -0.0059661865234375, -0.00728607177734375, -0.00247955322265625, 0.0301666259765625, 0.0009088516235351562, 0.006549835205078125, -0.03277587890625, 0.01081085205078125, -0.006439208984375, -0.0025463104248046875, 0.0038509368896484375, -0.00576019287109375, 0.01520538330078125, -0.064697265625, 0.00848388671875, -0.01031494140625, -0.00531768798828125, -0.01050567626953125, -0.0379638671875, 0.02130126953125, 0.0101318359375, -0.024566650390625, 0.022735595703125, 0.039398193359375, -0.018524169921875, -0.01537322998046875, -0.0160369873046875, -0.0185699462890625, -0.008270263671875, 0.0343017578125, 0.0211944580078125, -0.0008935928344726562, 0.0115814208984375, 0.004665374755859375, -0.0164947509765625, 0.049102783203125, 0.0164794921875, -0.034820556640625, 0.0684814453125, -0.01255035400390625, 0.02227783203125, -0.01403045654296875, 0.035491943359375, 0.051849365234375, -0.01181793212890625, -0.00004309415817260742, 0.0088043212890625, 0.030548095703125, 0.02398681640625, 0.0157470703125, 0.01019287109375, 0.01018524169921875, -0.064453125, -0.00927734375, 0.01812744140625, 0.06756591796875, -0.01401519775390625, -0.036163330078125, 0.0010728836059570312, 0.01479339599609375, -0.0458984375, -0.07025146484375, -0.03955078125, -0.03863525390625, -0.017364501953125, -0.005352020263671875, -0.01210784912109375, 0.0161590576171875, -0.0022296905517578125, 0.01555633544921875, -0.038909912109375, -0.0249176025390625, -0.0228729248046875, -0.0576171875, -0.044677734375, 0.0096282958984375, 0.00736236572265625, 0.0268707275390625, -0.00395965576171875, 0.0811767578125, -0.0064544677734375, -0.08001708984375, -0.0285186767578125, -0.0134735107421875, -0.00640869140625, 0.018402099609375, 0.03546142578125, -0.039794921875, -0.033447265625, 0.004428863525390625, -0.01367950439453125, 0.0111846923828125, -0.00942230224609375, -0.01062774658203125, 0.029510498046875, -0.01033782958984375, 0.0310516357421875, 0.0188140869140625, -0.037445068359375, 0.00018846988677978516, 0.016265869140625, -0.050140380859375, -0.00217437744140625, 0.0270843505859375, -0.01451873779296875, -0.051300048828125, -0.00536346435546875, -0.0226287841796875, 0.012298583984375, -0.0380859375, 0.0241241455078125, 0.00016236305236816406, -0.0240020751953125, -0.0198974609375, 0.0147705078125, 0.01409149169921875, 0.040740966796875, -0.0026874542236328125, -0.0174102783203125, -0.033477783203125, 0.0277557373046875, -0.0133209228515625, 0.00075531005859375, -0.040008544921875, 0.0592041015625, -0.040802001953125, 0.034759521484375, 0.00907135009765625, -0.026519775390625, 0.01873779296875, -0.0185089111328125, -0.0023250579833984375, -0.0247344970703125, 0.0294189453125, -0.045074462890625, -0.00749969482421875, -0.0278167724609375, 0.041015625, -0.0697021484375, -0.08392333984375, -0.0283966064453125, 0.0022792816162109375, 0.00867462158203125, 0.0034656524658203125, 0.00818634033203125, -0.0099334716796875, -0.00949859619140625, 0.00033974647521972656, 0.0146636962890625, -0.0020732879638671875, -0.009063720703125, 0.0014495849609375, 0.041900634765625, -0.018829345703125, 0.038787841796875, -0.0230255126953125, 0.030853271484375, -0.060394287109375, -0.0254364013671875, 0.00751495361328125, -0.0443115234375, 0.02923583984375, 0.01025390625, 0.01529693603515625, -0.028472900390625, 0.0106353759765625, -0.019012451171875, 0.004253387451171875, 0.01519012451171875, 0.025665283203125, -0.010162353515625, 0.031097412109375, 0.033782958984375, -0.012908935546875, -0.0048828125, -0.0253143310546875, -0.050048828125, -0.0308837890625, -0.006649017333984375, 0.0247039794921875, 0.04150390625, -0.0263519287109375, 0.00679779052734375, -0.01593017578125, -0.04461669921875, 0.0267791748046875, -0.030853271484375, 0.01303863525390625, -0.025543212890625, -0.010711669921875, 0.0017566680908203125, -0.0290374755859375, 0.0015993118286132812, 0.030120849609375, 0.07305908203125, 0.0247955322265625, 0.007457733154296875, -0.016143798828125, -0.02783203125, 0.0249786376953125, 0.0284271240234375, -0.0106964111328125, -0.00159454345703125, -0.0249481201171875, -0.00630950927734375, 0.0212860107421875, -0.0228729248046875, 0.0211029052734375, 0.055419921875, 0.0287017822265625, 0.006473541259765625, -0.0126953125, 0.0180816650390625, -0.022979736328125, 0.0672607421875, -0.01541900634765625, -0.002796173095703125, 0.0103759765625, 0.0303955078125, -0.0206146240234375, -0.0245361328125, -0.047088623046875, -0.0153045654296875, 0.006671905517578125, 0.0138397216796875, -0.0029582977294921875, 0.0003006458282470703, 0.007350921630859375, -0.0118560791015625, 0.0047454833984375, -0.0262451171875, 0.04534912109375, 0.02960205078125, 0.01143646240234375, -0.003284454345703125, 0.065673828125, -0.032257080078125, -0.0093841552734375, -0.01261138916015625, 0.06256103515625, -0.0018529891967773438, -0.050537109375, 0.055755615234375, -0.017364501953125, -0.01018524169921875, 0.056915283203125, 0.0169525146484375, 0.0145111083984375, -0.01666259765625, -0.0301361083984375, -0.0122833251953125, -0.007049560546875, -0.02117919921875, -0.04388427734375, -0.0655517578125, -0.002155303955078125, -0.03582763671875, 0.031158447265625, -0.03985595703125, -0.0232696533203125, -0.025482177734375, 0.01247406005859375, 0.071044921875, 0.050384521484375, -0.0138092041015625, -0.0117034912109375, 0.04620361328125, -0.0029354095458984375, -0.0266265869140625, 0.01410675048828125, 0.0055694580078125, 0.03265380859375, 0.004970550537109375, 0.0028228759765625, 0.0220489501953125, -0.004741668701171875, 0.01192474365234375, -0.0440673828125, -0.0089111328125, 0.057159423828125, -0.0095672607421875, -0.05987548828125, -0.0204010009765625, -0.0013132095336914062, 0.03314208984375, -0.042205810546875, 0.005931854248046875, -0.005970001220703125, 0.014739990234375, 0.0262298583984375, 0.009246826171875, -0.021209716796875, -0.0006642341613769531, 0.0176544189453125, -0.00612640380859375, -0.03216552734375, -0.007503509521484375, -0.07489013671875, -0.0192108154296875, 0.00713348388671875, 0.0030517578125, 0.01422119140625, -0.01371002197265625, 0.00001800060272216797, -0.0234527587890625, 0.0265045166015625, -0.0267181396484375, 0.028289794921875, -0.0390625, -0.043792724609375, -0.04949951171875, -0.026092529296875, -0.07366943359375, -0.036956787109375, -0.057647705078125, 0.00008469820022583008, -0.07269287109375, 0.0288543701171875, 0.029449462890625, 0.01265716552734375, 0.0165252685546875, 0.0039005279541015625, -0.0063018798828125, 0.0190277099609375, 0.017669677734375, 0.0251007080078125, -0.05523681640625, 0.01068878173828125, 0.01386260986328125, 0.021484375, -0.038726806640625, -0.020965576171875, 0.027496337890625, -0.001201629638671875, 0.048492431640625, 0.005374908447265625, -0.05169677734375, -0.016815185546875, -0.044281005859375, -0.0606689453125, 0.003612518310546875, -0.0286865234375, 0.0222015380859375, -0.031005859375, 0.0188140869140625, -0.0089111328125, 0.01898193359375, -0.04071044921875, -0.02264404296875, 0.035186767578125, 0.018707275390625, -0.0255584716796875, -0.0244903564453125, -0.033538818359375, 0.01959228515625, 0.043731689453125, -0.021148681640625, -0.051300048828125, -0.056640625, 0.053466796875, 0.037841796875, -0.003887176513671875, 0.048980712890625, -0.02203369140625, 0.02325439453125, 0.029815673828125, 0.008941650390625, -0.031463623046875, -0.0177764892578125, 0.04620361328125, -0.008453369140625, -0.0018148422241210938, 0.0160980224609375, -0.01528167724609375, 0.0178070068359375, 0.016143798828125, 0.04595947265625, -0.06817626953125, 0.021209716796875, -0.004505157470703125, -0.01158905029296875, 0.00322723388671875, -0.02313232421875, 0.01493072509765625, -0.043426513671875, 0.094482421875, 0.044677734375, 0.0113525390625, 0.0543212890625, -0.0214385986328125, 0.00592041015625, -0.0087738037109375, 0.041259765625, -0.001312255859375, -0.047576904296875, -0.024017333984375, 0.0243377685546875, -0.01247406005859375, -0.00007385015487670898, -0.0161285400390625, 0.03546142578125, -0.052581787109375, -0.06439208984375, -0.01194000244140625, -0.02947998046875, -0.0238494873046875, 0.035247802734375, -0.0142059326171875, 0.04254150390625, 0.0574951171875, -0.007320404052734375, 0.042388916015625, 0.0070343017578125, 0.0244598388671875, 0.01453399658203125, -0.006748199462890625, 0.00653076171875, 0.0002168416976928711, -0.0122833251953125, 0.00791168212890625, -0.032470703125, -0.020355224609375, -0.0238189697265625, -0.002513885498046875, 0.08404541015625, -0.0155792236328125, -0.025482177734375, 0.030792236328125, 0.007007598876953125, -0.0224456787109375, -0.02508544921875, 0.01328277587890625, -0.048004150390625, 0.004241943359375, -0.01183319091796875, 0.0120086669921875, -0.00036835670471191406, -0.0061798095703125, -0.023193359375, 0.0672607421875, 0.01013946533203125, 0.0003249645233154297, 0.0179443359375, 0.024688720703125, -0.02655029296875, 0.00861358642578125, -0.007778167724609375, 0.0072174072265625, -0.03338623046875, -0.004367828369140625, 0.0011491775512695312, 0.0281524658203125, -0.0126190185546875, -0.01120758056640625, -0.0191650390625, -0.0065155029296875, 0.0008101463317871094, 0.0039043426513671875, 0.020233154296875, 0.03204345703125, 0.00423431396484375, 0.01474761962890625, -0.0249786376953125, 0.00791168212890625, 0.0007429122924804688, 0.0190582275390625, 0.03546142578125, 0.01311492919921875, -0.072021484375, 0.0093231201171875, 0.00506591796875, 0.0045013427734375, -0.0237579345703125, 0.039764404296875, 0.03192138671875, -0.0284423828125, -0.017974853515625, 0.01396942138671875, 0.018096923828125, 0.04266357421875, 0.022308349609375, -0.018157958984375, -0.0263519287109375, -0.0207061767578125, 0.04302978515625, -0.013336181640625, 0.00829315185546875, 0.0215911865234375, 0.0158843994140625, -0.023223876953125, 0.0411376953125, 0.025482177734375, 0.06634521484375, -0.0300140380859375, 0.0115814208984375, 0.0145721435546875, 0.0316162109375, -0.039031982421875, -0.07373046875, 0.031707763671875, 0.0423583984375, 0.00390625, -0.034637451171875, 0.02008056640625, 0.01605224609375, -0.01096343994140625, 0.024261474609375, 0.01309967041015625, -0.033905029296875, 0.01495361328125, 0.0127410888671875, -0.0208740234375, -0.003154754638671875, -0.0004639625549316406, -0.001338958740234375, 0.006626129150390625, 0.031982421875, -0.004726409912109375, 0.01181793212890625, 0.00952911376953125, -0.00010979175567626953, 0.005523681640625, -0.019744873046875, 0.01214599609375, -0.0295562744140625, 0.005218505859375, -0.0169525146484375, 0.0202484130859375, -0.010101318359375, 0.0200347900390625, -0.0601806640625, -0.064208984375, 0.0281982421875, 0.06060791015625, 0.0285797119140625, 0.03515625, 0.0364990234375, 0.05914306640625, 0.01690673828125, 0.006534576416015625, 0.0775146484375, 0.00171661376953125, 0.00209808349609375, -0.021759033203125, 0.0163421630859375, 0.018280029296875, -0.003742218017578125, -0.0245819091796875, 0.0276947021484375, 0.0196380615234375, -0.00749969482421875, 0.006755828857421875, 0.0007486343383789062, -0.0145263671875, 0.023040771484375, 0.007366180419921875, 0.0113372802734375, 0.017730712890625, -0.09490966796875, 0.000036776065826416016, -0.01593017578125, -0.06817626953125, 0.0126190185546875, 0.0302581787109375, -0.0545654296875, 0.036041259765625, -0.0134429931640625, -0.016448974609375, -0.005096435546875, -0.0030918121337890625, 0.03265380859375, 0.022186279296875, 0.004299163818359375, 0.01483154296875, -0.03460693359375, -0.00139617919921875, -0.0084075927734375, 0.0172882080078125, -0.0105438232421875, 0.11138916015625, -0.0221099853515625, 0.00798797607421875, 0.08270263671875, -0.08111572265625, 0.1268310546875, 0.058258056640625, 0.0165557861328125, -0.004940032958984375, -0.0309906005859375, -0.046875, -0.052703857421875, -0.01522064208984375, 0.0135498046875, -0.03826904296875, 0.0016088485717773438, -0.0472412109375, 0.033843994140625, 0.00563812255859375, 0.0174102783203125, -0.04058837890625, -0.02886962890625, -0.0308837890625, -0.0251007080078125, 0.01299285888671875, -0.044647216796875, -0.00013697147369384766, 0.00882720947265625, 0.0195159912109375, 0.02056884765625, -0.0102386474609375, 0.033935546875, -0.045013427734375, 0.01273345947265625, -0.006500244140625, -0.019989013671875, 0.0006875991821289062, -0.0247344970703125, -0.0155029296875, 0.00777435302734375, 0.0158843994140625, 0.0022640228271484375, -0.005054473876953125, -0.0233917236328125, 0.033294677734375, 0.000044465065002441406, -0.039215087890625, 0.0166015625, 0.027618408203125, -0.01806640625, 0.01117706298828125, 0.06060791015625, 0.0098419189453125, 0.025054931640625, -0.041259765625, -0.023590087890625, -0.00940704345703125, -0.06817626953125, -0.041290283203125, 0.006099700927734375, 0.03961181640625, 0.0280303955078125, -0.059478759765625, 0.06024169921875, -0.032684326171875, -0.041290283203125, 0.0235443115234375, 0.00003403425216674805, 0.0190277099609375, 0.02740478515625, -0.0211944580078125, -0.01047515869140625, -0.019256591796875, 0.020721435546875, 0.00516510009765625, 0.041290283203125, 0.035125732421875, -0.0360107421875, 0.0220947265625, 0.0300445556640625, 0.035491943359375, 0.06585693359375, 0.0347900390625, 0.01885986328125, 0.015411376953125, 0.032440185546875, -0.0289306640625, -0.0904541015625, 0.004085540771484375, -0.019744873046875, 0.00263214111328125, -0.03704833984375, 0.01502227783203125, 0.0016269683837890625, -0.0489501953125, -0.06781005859375, 0.064453125, -0.0203857421875, -0.021026611328125, -0.03265380859375, -0.00814056396484375, -0.017059326171875, -0.00942230224609375, -0.0109405517578125, -0.01910400390625, -0.02056884765625, 0.040435791015625, 0.03411865234375, -0.0220489501953125, 0.04150390625, 0.0034332275390625, -0.07861328125, 0.004222869873046875, -0.0092620849609375, 0.014068603515625, -0.03131103515625, 0.0235748291015625, -0.0165252685546875, 0.026580810546875, -0.0259246826171875, 0.0006933212280273438, -0.002490997314453125, 0.024749755859375, -0.0037994384765625, -0.043182373046875, -0.0220947265625, -0.007160186767578125, 0.05023193359375, 0.043701171875, 0.023284912109375, -0.0260772705078125, -0.017547607421875, 0.00605010986328125, 0.006221771240234375, -0.00782012939453125, 0.00762939453125, -0.058563232421875, -0.00858306884765625, -0.0029888153076171875, -0.0124359130859375, 0.05194091796875, -0.037384033203125, -0.0012750625610351562, 0.016265869140625, 0.032806396484375, 0.01123809814453125, -0.01212310791015625, -0.0006680488586425781, 0.001644134521484375, 0.00977325439453125, 0.045684814453125, -0.001552581787109375, 0.002712249755859375, 0.03033447265625, 0.0712890625, -0.004314422607421875, -0.01519012451171875, -0.0171661376953125, 0.0221710205078125, -0.0087127685546875, 0.0345458984375, -0.0192718505859375, -0.0221099853515625, -0.01271820068359375, -0.0005698204040527344, -0.000011920928955078125, -0.0282135009765625, -0.003238677978515625, 0.0121002197265625, -0.01508331298828125, 0.066162109375, -0.01436614990234375, 0.0859375, 0.0014410018920898438, 0.017822265625, -0.005939483642578125, -0.0002142190933227539, 0.051361083984375, -0.041290283203125, 0.01001739501953125, -0.017822265625, 0.003589630126953125, -0.03985595703125, 0.017852783203125, -0.06524658203125, -0.006561279296875, 0.0275726318359375 ]
f0bfd30b4f6666938231e7c3938795790a24b1bb
Wordpress Stackexchange Q: WP Query to get all posts (including in draft/pending review) I currently have the following query: $args = array( 'post_type' => 'post', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => 10, ); $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); ?> This returns all the posts that are published. How can I alter it to show every post whether it's published, pending, or in draft? A: Also you can customize for pending and drafts or any selected status $args = array( 'post_type' => 'post', 'orderby' => 'title', 'order' => 'ASC', 'post_status' => array( 'pending', 'draft', 'future' ), 'posts_per_page' => 10, );
Q: WP Query to get all posts (including in draft/pending review) I currently have the following query: $args = array( 'post_type' => 'post', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => 10, ); $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); ?> This returns all the posts that are published. How can I alter it to show every post whether it's published, pending, or in draft? A: Also you can customize for pending and drafts or any selected status $args = array( 'post_type' => 'post', 'orderby' => 'title', 'order' => 'ASC', 'post_status' => array( 'pending', 'draft', 'future' ), 'posts_per_page' => 10, ); A: You can add post_status to your query, the string 'any' will return all posts no matter the status, or you can use an array to just grab those you want. $args = array( 'post_type' => 'post', 'orderby' => 'title', 'order' => 'ASC', 'post_status' => 'any', 'posts_per_page' => 10, ); http://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:417521", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43737" }
[ 0.039306640625, -0.005901336669921875, -0.0203857421875, -0.0167999267578125, -0.0014734268188476562, -0.04302978515625, 0.03118896484375, -0.01126861572265625, 0.01190185546875, 0.0275421142578125, -0.033905029296875, -0.018157958984375, -0.0275726318359375, -0.01029205322265625, -0.0302734375, -0.056671142578125, 0.040618896484375, -0.0283660888671875, 0.041961669921875, -0.00676727294921875, 0.00848388671875, 0.01392364501953125, 0.055328369140625, 0.01030731201171875, 0.0038909912109375, 0.036376953125, 0.042144775390625, -0.01523590087890625, -0.0030574798583984375, -0.010406494140625, 0.01395416259765625, -0.0205535888671875, 0.00666046142578125, -0.016448974609375, 0.034454345703125, 0.0022449493408203125, 0.018096923828125, -0.01268768310546875, 0.022796630859375, -0.0005011558532714844, 0.0270233154296875, -0.021148681640625, -0.00726318359375, 0.0184783935546875, -0.031829833984375, -0.016815185546875, 0.02325439453125, 0.00408935546875, 0.00991058349609375, -0.029083251953125, -0.006885528564453125, 0.015594482421875, 0.005191802978515625, -0.003360748291015625, -0.035308837890625, -0.0252227783203125, 0.02294921875, -0.0183868408203125, 0.06341552734375, -0.0648193359375, -0.0543212890625, -0.03466796875, 0.046142578125, -0.011871337890625, -0.040008544921875, 0.02032470703125, 0.022613525390625, -0.019989013671875, -0.01323699951171875, -0.050018310546875, 0.0218353271484375, -0.0129241943359375, -0.00829315185546875, -0.0171661376953125, -0.002716064453125, -0.022918701171875, -0.0298614501953125, -0.04132080078125, 0.02423095703125, 0.0250701904296875, 0.0000959634780883789, -0.0188751220703125, -0.052154541015625, 0.00965118408203125, -0.0174102783203125, 0.00025582313537597656, -0.013153076171875, -0.00716400146484375, -0.0180511474609375, -0.04833984375, -0.0116729736328125, -0.0498046875, -0.055450439453125, 0.004100799560546875, 0.007801055908203125, -0.057830810546875, 0.006130218505859375, 0.061279296875, -0.0037593841552734375, 0.021575927734375, -0.043243408203125, -0.0231170654296875, -0.01338958740234375, -0.044281005859375, 0.0207977294921875, 0.0300445556640625, -0.0148468017578125, -0.005962371826171875, 0.053009033203125, 0.042572021484375, 0.0262451171875, 0.004852294921875, -0.0171661376953125, 0.0106658935546875, -0.029296875, 0.015228271484375, -0.043121337890625, 0.0014238357543945312, -0.016021728515625, -0.0067138671875, 0.04071044921875, 0.046600341796875, 0.00914764404296875, -0.031585693359375, -0.001537322998046875, 0.0036449432373046875, -0.0272216796875, -0.048797607421875, -0.05133056640625, 0.06536865234375, -0.006671905517578125, 0.00775146484375, 0.01126861572265625, -0.0087127685546875, -0.037750244140625, -0.026519775390625, 0.0213623046875, 0.0014019012451171875, 0.019195556640625, -0.00962066650390625, -0.01430511474609375, -0.0251312255859375, 0.0205230712890625, 0.0217742919921875, -0.041748046875, 0.0007901191711425781, 0.023406982421875, 0.014434814453125, -0.01419830322265625, -0.01415252685546875, -0.055511474609375, 0.034210205078125, 0.02001953125, 0.01055908203125, -0.03912353515625, -0.0127410888671875, 0.00860595703125, -0.0221710205078125, -0.00376129150390625, -0.04364013671875, 0.038177490234375, 0.032196044921875, 0.01508331298828125, -0.0084991455078125, -0.0182952880859375, -0.049835205078125, -0.050872802734375, -0.0190277099609375, 0.0231781005859375, 0.0235595703125, -0.049102783203125, -0.027984619140625, 0.0989990234375, 0.01465606689453125, -0.038726806640625, 0.032470703125, -0.005100250244140625, -0.03631591796875, 0.033050537109375, 0.009368896484375, -0.050384521484375, -0.034332275390625, 0.0045928955078125, -0.009521484375, -0.050140380859375, 0.0140380859375, 0.01206207275390625, 0.021697998046875, 0.00849151611328125, 0.01263427734375, 0.047393798828125, 0.01751708984375, -0.058502197265625, 0.0631103515625, -0.0299835205078125, -0.02471923828125, -0.021728515625, -0.0019445419311523438, -0.0187530517578125, 0.002117156982421875, 0.032745361328125, -0.0132598876953125, -0.0057525634765625, -0.00848388671875, -0.030609130859375, -0.03070068359375, -0.0002579689025878906, 0.0118408203125, 0.0008020401000976562, 0.036773681640625, 0.02728271484375, 0.01093292236328125, -0.047393798828125, 0.0225372314453125, -0.0152740478515625, -0.009124755859375, -0.0040130615234375, -0.0159149169921875, 0.00013005733489990234, -0.008758544921875, -0.007144927978515625, -0.0241851806640625, -0.03448486328125, 0.035858154296875, 0.08355712890625, -0.051116943359375, 0.029266357421875, -0.053741455078125, 0.07666015625, -0.010162353515625, -0.040557861328125, 0.0004661083221435547, 0.02984619140625, 0.0601806640625, -0.005828857421875, 0.0008783340454101562, 0.037109375, -0.0455322265625, 0.022735595703125, 0.0325927734375, 0.031524658203125, 0.01462554931640625, 0.00933074951171875, 0.04119873046875, 0.0648193359375, -0.031646728515625, -0.001331329345703125, 0.0164031982421875, 0.048736572265625, 0.08941650390625, 0.007595062255859375, 0.0022144317626953125, -0.005641937255859375, 0.00701904296875, 0.01035308837890625, 0.031982421875, 0.00827789306640625, 0.02691650390625, -0.049896240234375, 0.040069580078125, -0.00896453857421875, -0.0190887451171875, -0.01184844970703125, -0.0151214599609375, 0.0007090568542480469, 0.00969696044921875, 0.0213623046875, 0.0283203125, -0.0258941650390625, -0.010711669921875, 0.01406097412109375, 0.0121307373046875, 0.017913818359375, 0.03338623046875, -0.049896240234375, 0.02288818359375, -0.0247802734375, -0.002208709716796875, 0.02142333984375, 0.006649017333984375, -0.003299713134765625, 0.0390625, 0.043212890625, -0.015777587890625, -0.0250091552734375, -0.03704833984375, 0.0229644775390625, -0.0017795562744140625, 0.00417327880859375, 0.03790283203125, 0.04620361328125, 0.03997802734375, 0.0174713134765625, 0.0163726806640625, -0.0117950439453125, 0.00582122802734375, -0.0201263427734375, -0.08966064453125, 0.052093505859375, -0.042449951171875, 0.02593994140625, 0.08941650390625, 0.042724609375, -0.01277923583984375, -0.02105712890625, -0.0217742919921875, 0.0050811767578125, -0.014862060546875, -0.031402587890625, -0.00836944580078125, -0.07635498046875, -0.005847930908203125, 0.0357666015625, 0.02410888671875, 0.024932861328125, 0.00853729248046875, 0.00295257568359375, 0.0266265869140625, -0.0609130859375, -0.0616455078125, -0.0034580230712890625, -0.04449462890625, -0.015777587890625, -0.04327392578125, -0.01280975341796875, 0.0159759521484375, -0.056243896484375, -0.000030279159545898438, -0.0231170654296875, 0.0294952392578125, -0.0657958984375, -0.005100250244140625, -0.0657958984375, 0.0321044921875, -0.018157958984375, 0.043365478515625, 0.019256591796875, 0.08453369140625, 0.022491455078125, -0.0660400390625, 0.008270263671875, 0.046905517578125, -0.0380859375, 0.0132904052734375, 0.015289306640625, 0.0249481201171875, -0.02490234375, 0.01274871826171875, 0.01336669921875, 0.044952392578125, -0.051025390625, 0.01052093505859375, -0.002864837646484375, -0.0007767677307128906, 0.0113067626953125, -0.015625, -0.0092315673828125, 0.00847625732421875, 0.004047393798828125, -0.03399658203125, 0.0176544189453125, -0.00777435302734375, -0.023284912109375, -0.0005297660827636719, -0.0046234130859375, 0.0025730133056640625, 0.0007023811340332031, -0.00916290283203125, 0.030914306640625, 0.01337432861328125, 0.058685302734375, -0.031951904296875, 0.03814697265625, -0.004360198974609375, -0.00042629241943359375, -0.06756591796875, 0.017333984375, -0.01273345947265625, 0.0250244140625, 0.0020923614501953125, 0.00005340576171875, -0.0279083251953125, 0.0196075439453125, -0.039459228515625, -0.0556640625, 0.01044464111328125, -0.07415771484375, -0.007511138916015625, -0.0238189697265625, 0.00795745849609375, 0.00862884521484375, 0.0826416015625, -0.019439697265625, -0.00933074951171875, -0.052978515625, 0.0002760887145996094, -0.032989501953125, -0.06060791015625, -0.01593017578125, 0.006786346435546875, -0.01006317138671875, -0.005527496337890625, -0.027984619140625, -0.0190277099609375, -0.0159454345703125, -0.04779052734375, -0.006061553955078125, -0.032684326171875, 0.029754638671875, -0.0211181640625, 0.025604248046875, -0.0015573501586914062, 0.004657745361328125, -0.0080718994140625, -0.01064300537109375, -0.03179931640625, -0.08380126953125, -0.01580810546875, 0.0076751708984375, 0.0399169921875, -0.028106689453125, -0.005443572998046875, -0.02838134765625, 0.03350830078125, 0.0034389495849609375, 0.06195068359375, -0.014373779296875, 0.0033740997314453125, -0.01342010498046875, -0.0119476318359375, 0.00798797607421875, -0.03485107421875, -0.02532958984375, -0.0181121826171875, 0.029327392578125, 0.002460479736328125, -0.05084228515625, -0.017974853515625, -0.04193115234375, 0.00567626953125, -0.0181427001953125, -0.006832122802734375, 0.003971099853515625, 0.04034423828125, -0.0259246826171875, 0.00669097900390625, -0.0170440673828125, -0.025665283203125, 0.041290283203125, 0.01030731201171875, -0.0220184326171875, -0.0011568069458007812, 0.059326171875, 0.00926971435546875, -0.023956298828125, -0.024749755859375, -0.038421630859375, 0.0367431640625, -0.028594970703125, 0.0606689453125, 0.0552978515625, -0.0207977294921875, 0.024627685546875, 0.005817413330078125, -0.0276641845703125, 0.04052734375, -0.0216522216796875, 0.012847900390625, -0.0215606689453125, -0.0235443115234375, 0.0013475418090820312, 0.02276611328125, 0.02764892578125, -0.015594482421875, -0.01812744140625, 0.0239715576171875, 0.059906005859375, -0.038726806640625, 0.038055419921875, -0.026031494140625, -0.02978515625, 0.01065826416015625, 0.006744384765625, -0.000667572021484375, 0.019287109375, -0.00305938720703125, 0.0080413818359375, 0.026885986328125, -0.006275177001953125, 0.0124969482421875, 0.05218505859375, 0.0012493133544921875, 0.03790283203125, 0.01189422607421875, -0.0210113525390625, -0.0285491943359375, -0.01303863525390625, 0.072509765625, 0.0007066726684570312, -0.067626953125, 0.0237274169921875, -0.0124359130859375, 0.01018524169921875, 0.0162811279296875, -0.0022029876708984375, 0.0321044921875, 0.07135009765625, 0.010223388671875, -0.02130126953125, 0.003589630126953125, 0.03369140625, -0.0301513671875, 0.0219573974609375, 0.0123443603515625, -0.0145416259765625, 0.0197601318359375, 0.06561279296875, -0.0162353515625, 0.055694580078125, -0.0218505859375, 0.0038700103759765625, 0.0290374755859375, -0.00739288330078125, 0.0205230712890625, 0.0374755859375, 0.009002685546875, -0.0290985107421875, 0.033721923828125, -0.0205078125, 0.0016651153564453125, -0.0038509368896484375, -0.007244110107421875, 0.016510009765625, -0.01128387451171875, 0.0428466796875, 0.0224456787109375, -0.036407470703125, 0.01532745361328125, 0.061676025390625, 0.01479339599609375, -0.0289764404296875, -0.01380157470703125, 0.0034332275390625, 0.0670166015625, -0.004512786865234375, 0.0241241455078125, -0.0073394775390625, 0.023895263671875, -0.040618896484375, -0.00876617431640625, 0.0015611648559570312, 0.01355743408203125, -0.034210205078125, -0.052398681640625, -0.0084075927734375, -0.0233917236328125, 0.021209716796875, -0.0134429931640625, -0.0225067138671875, 0.052520751953125, -0.0196533203125, 0.0394287109375, -0.018218994140625, -0.00920867919921875, -0.02520751953125, 0.01641845703125, 0.043670654296875, 0.0275726318359375, 0.0247802734375, -0.033477783203125, -0.031829833984375, -0.03369140625, 0.025848388671875, -0.035247802734375, -0.01168060302734375, -0.0240478515625, 0.036163330078125, 0.025238037109375, -0.00467681884765625, -0.059173583984375, -0.0318603515625, -0.004268646240234375, 0.03485107421875, 0.032867431640625, 0.015655517578125, 0.050445556640625, -0.0294647216796875, 0.051483154296875, -0.0059356689453125, 0.0022907257080078125, -0.0638427734375, -0.0030536651611328125, 0.0276031494140625, -0.06903076171875, -0.033966064453125, -0.0064239501953125, -0.05633544921875, -0.0121612548828125, -0.008026123046875, -0.004627227783203125, 0.00626373291015625, -0.024444580078125, 0.009124755859375, -0.003566741943359375, 0.035003662109375, -0.0085296630859375, -0.00519561767578125, 0.06536865234375, -0.0169219970703125, -0.0159149169921875, -0.006076812744140625, 0.0017232894897460938, 0.00630950927734375, -0.004894256591796875, 0.0115203857421875, -0.0188140869140625, -0.0250396728515625, 0.0302581787109375, 0.0443115234375, 0.01898193359375, 0.030426025390625, 0.004451751708984375, 0.018798828125, -0.001033782958984375, 0.004314422607421875, 0.022125244140625, -0.01044464111328125, 0.0784912109375, 0.007785797119140625, -0.007801055908203125, 0.06671142578125, -0.042083740234375, -0.0160064697265625, 0.03369140625, 0.03729248046875, -0.0599365234375, 0.011566162109375, 0.0252838134765625, 0.008453369140625, -0.0031070709228515625, 0.00604248046875, -0.016754150390625, -0.0263671875, 0.01367950439453125, -0.0232391357421875, -0.0283203125, -0.0035610198974609375, 0.00696563720703125, 0.0265960693359375, -0.0208892822265625, 0.01422882080078125, -0.00005316734313964844, -0.0770263671875, 0.0071868896484375, 0.05511474609375, -0.01641845703125, -0.0180206298828125, 0.0263824462890625, -0.00777435302734375, 0.017852783203125, -0.0281219482421875, 0.051361083984375, -0.0159454345703125, -0.00687408447265625, 0.039398193359375, -0.01136016845703125, -0.0025119781494140625, 0.07147216796875, -0.02099609375, 0.0214385986328125, 0.0438232421875, -0.0654296875, -0.09234619140625, -0.006847381591796875, -0.01535797119140625, 0.0258941650390625, 0.00531005859375, 0.0362548828125, -0.037506103515625, -0.00089263916015625, 0.00908660888671875, -0.01654052734375, 0.018402099609375, -0.07489013671875, 0.0191802978515625, 0.044219970703125, -0.00919342041015625, -0.00542449951171875, 0.0038280487060546875, 0.0011882781982421875, -0.03887939453125, -0.00678253173828125, 0.00882720947265625, -0.01253509521484375, -0.0286712646484375, -0.01055908203125, -0.08172607421875, 0.07843017578125, 0.0004754066467285156, 0.037200927734375, 0.0170135498046875, 0.018798828125, -0.0333251953125, -0.0184783935546875, -0.052276611328125, 0.07269287109375, -0.006351470947265625, 0.041595458984375, -0.0633544921875, 0.0025997161865234375, -0.005374908447265625, 0.017120361328125, 0.07159423828125, -0.00339508056640625, -0.030059814453125, 0.0037174224853515625, 0.0946044921875, 0.0650634765625, 0.036712646484375, 0.0185699462890625, 0.01297760009765625, 0.062042236328125, 0.05169677734375, -0.060302734375, 0.04156494140625, -0.044097900390625, 0.0113067626953125, 0.0261383056640625, 0.0207977294921875, 0.03179931640625, -0.0277862548828125, -0.007175445556640625, -0.06011962890625, 0.00016748905181884766, 0.045501708984375, 0.00017261505126953125, 0.0263214111328125, 0.024078369140625, 0.043670654296875, -0.06964111328125, -0.0352783203125, -0.01131439208984375, 0.037750244140625, 0.00865936279296875, -0.0022373199462890625, 0.01434326171875, 0.00887298583984375, 0.036468505859375, 0.0016765594482421875, 0.0003070831298828125, 0.0198974609375, -0.003620147705078125, 0.0258026123046875, 0.035491943359375, 0.0206756591796875, -0.0308990478515625, -0.0067138671875, 0.056427001953125, 0.03363037109375, -0.029083251953125, -0.01425933837890625, 0.0242462158203125, -0.00408172607421875, -0.0263824462890625, -0.006305694580078125, -0.00948333740234375, 0.0005621910095214844, 0.0254364013671875, -0.01346588134765625, -0.01202392578125, -0.003002166748046875, 0.031402587890625, -0.017669677734375, -0.051483154296875, 0.0083770751953125, 0.00382232666015625, -0.02911376953125, -0.0013608932495117188, 0.0170135498046875, 0.042999267578125, 0.0170440673828125, 0.01413726806640625, -0.033294677734375, -0.011383056640625, 0.0009326934814453125, -0.0006275177001953125, -0.006313323974609375, -0.01006317138671875, -0.0244903564453125, -0.034759521484375, 0.01788330078125, 0.036651611328125, 0.0670166015625, -0.03759765625, 0.04693603515625, 0.02099609375, -0.05023193359375, 0.0014352798461914062, 0.0001252889633178711, -0.007686614990234375, -0.05999755859375, -0.0223388671875, -0.027618408203125, 0.0390625, 0.00856781005859375, 0.0384521484375, 0.040924072265625, 0.00148773193359375, -0.0195770263671875, 0.03192138671875, -0.0050048828125, -0.02484130859375, 0.040252685546875, 0.007720947265625, 0.03131103515625, -0.005863189697265625, -0.0760498046875, -0.0275115966796875, -0.06353759765625, 0.0200042724609375, 0.0305328369140625, 0.0270538330078125, 0.0006351470947265625, 0.0386962890625, 0.0290069580078125, -0.0024242401123046875, 0.0079193115234375, -0.0069122314453125, 0.018463134765625, 0.021484375, 0.0219879150390625, 0.01451873779296875, -0.0701904296875, -0.0300445556640625, 0.0026397705078125, 0.004001617431640625, -0.0240631103515625, 0.010040283203125, 0.035675048828125, -0.00033926963806152344, 0.0151519775390625, 0.00279998779296875, -0.00759124755859375, -0.02471923828125, 0.04888916015625, -0.0289306640625, -0.032012939453125, 0.0106353759765625, 0.00775909423828125, -0.010589599609375, 0.04803466796875, -0.04998779296875, 0.003437042236328125, -0.039306640625, 0.01068115234375, -0.060028076171875, -0.0168304443359375, -0.010498046875, 0.042022705078125, 0.037628173828125, -0.0242462158203125, 0.0440673828125, 0.005565643310546875, 0.01337432861328125, 0.019195556640625, 0.0203399658203125, -0.05267333984375, 0.0302734375, -0.037567138671875, 0.056060791015625, 0.0408935546875, 0.0205841064453125, 0.052215576171875, -0.01450347900390625, -0.023956298828125, 0.0101776123046875, 0.0152435302734375, -0.0325927734375, -0.014678955078125, 0.027313232421875, -0.04949951171875, -0.0200958251953125, 0.0240325927734375, 0.0126953125, 0.00872802734375, -0.046478271484375, -0.0037403106689453125, -0.0223846435546875, -0.014892578125, -0.035003662109375, -0.01078033447265625, -0.0160675048828125, -0.0008063316345214844, -0.001125335693359375, -0.0670166015625, -0.01313018798828125, -0.03924560546875, -0.0081329345703125, -0.021697998046875, 0.0165863037109375, 0.005126953125, -0.0279998779296875, -0.0330810546875, -0.0338134765625, -0.0188751220703125, 0.004970550537109375, 0.0094451904296875, -0.035736083984375, -0.0142669677734375, -0.033203125, 0.00537109375, -0.0232086181640625, -0.0085906982421875, 0.0171966552734375, -0.0196990966796875, -0.0303497314453125, -0.0160980224609375, 0.011474609375, 0.01380157470703125, 0.0276336669921875, -0.0013799667358398438, 0.02001953125, 0.014923095703125, -0.023712158203125, -0.056732177734375, 0.00994110107421875, -0.0042572021484375, -0.0116119384765625, -0.034942626953125, 0.046417236328125, 0.068359375, -0.0002218484878540039, -0.047088623046875, 0.044158935546875, -0.04376220703125, -0.033172607421875, -0.05804443359375, 0.026611328125, 0.01122283935546875, -0.0219268798828125, -0.02154541015625, 0.00876617431640625, -0.0168914794921875, 0.002315521240234375, 0.005176544189453125, 0.060516357421875, -0.0147247314453125, 0.0296630859375, -0.0828857421875, -0.002925872802734375, -0.060699462890625, 0.0118255615234375, -0.006885528564453125, -0.0156707763671875, 0.016571044921875, 0.03228759765625, -0.020111083984375, -0.041168212890625, 0.00933837890625, -0.0227203369140625, -0.00609588623046875, 0.0225372314453125, -0.067626953125, -0.026214599609375, 0.09295654296875, 0.055633544921875, 0.044403076171875, -0.0302734375, 0.0205230712890625, -0.0005092620849609375, -0.0276947021484375, -0.00730133056640625, 0.0161895751953125, -0.027923583984375, -0.00047469139099121094, 0.0018930435180664062, -0.008331298828125, -0.03753662109375, -0.01251220703125, -0.053741455078125, -0.019317626953125, -0.07305908203125, -0.01200103759765625, -0.014068603515625, 0.01230621337890625, 0.0032196044921875, -0.0269012451171875, -0.0215606689453125, -0.0112762451171875, 0.0106201171875, -0.0230560302734375, 0.00022614002227783203, 0.0101776123046875, 0.041595458984375, 0.00534820556640625, -0.026031494140625, 0.047393798828125, -0.055816650390625, 0.057037353515625, 0.0153045654296875, -0.018707275390625, 0.00079345703125, -0.000751495361328125, -0.0251007080078125, 0.006237030029296875, 0.0192718505859375, 0.000008821487426757812, 0.0849609375, 0.0155181884765625, 0.0577392578125, -0.002864837646484375, 0.05145263671875, 0.0196990966796875, -0.047943115234375, 0.0435791015625, -0.044403076171875, -0.011016845703125, -0.0130767822265625, -0.0294036865234375, -0.0290069580078125, 0.00797271728515625, 0.0283355712890625, -0.0243072509765625, 0.01531982421875 ]
8a42a30876e43d5127a5875ce410b63c6cdf8c36
Wordpress Stackexchange Q: How to use Plupload in themes I am developing a theme which needs uploading from front-end. I want to integrate plupload in my theme while keeping in mind that: * *Uploading will be handled upon form submission, and not from the plupload regular method. This means that I just need the design of plupload, and not the uploading functionality. After selecting the files, when I submit the form (containing selected files and other information), I should be able to grab all the form info (including files info) in the target page. E.g. In user profile page, I want to update my avatar along with my other information. Any help would be appreciated. A: Plupload can fall back to HTML4 (form submission) file uploads. Just define the runtime to be HTML4 in the js runtime parameters. I know the following plugin is using Plupload so I would probably just look at their source. Do not copy but I would use it to help get yourself going. http://www.tn3gallery.com/
Q: How to use Plupload in themes I am developing a theme which needs uploading from front-end. I want to integrate plupload in my theme while keeping in mind that: * *Uploading will be handled upon form submission, and not from the plupload regular method. This means that I just need the design of plupload, and not the uploading functionality. After selecting the files, when I submit the form (containing selected files and other information), I should be able to grab all the form info (including files info) in the target page. E.g. In user profile page, I want to update my avatar along with my other information. Any help would be appreciated. A: Plupload can fall back to HTML4 (form submission) file uploads. Just define the runtime to be HTML4 in the js runtime parameters. I know the following plugin is using Plupload so I would probably just look at their source. Do not copy but I would use it to help get yourself going. http://www.tn3gallery.com/
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:417536", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43792" }
[ 0.03338623046875, -0.0007076263427734375, 0.00945281982421875, -0.0168914794921875, 0.004726409912109375, 0.0010585784912109375, 0.037811279296875, -0.0226287841796875, 0.039337158203125, -0.00624847412109375, -0.048583984375, 0.0321044921875, 0.0028781890869140625, -0.0177154541015625, 0.0200347900390625, -0.00641632080078125, 0.015411376953125, 0.003925323486328125, 0.038604736328125, 0.00397491455078125, -0.0010280609130859375, 0.0247344970703125, 0.0151824951171875, -0.04510498046875, 0.009429931640625, 0.0064849853515625, -0.011505126953125, 0.0310516357421875, -0.03765869140625, -0.032867431640625, 0.00905609130859375, 0.0303497314453125, 0.01611328125, 0.0034542083740234375, 0.008453369140625, 0.031402587890625, 0.0570068359375, -0.0251617431640625, 0.0262451171875, 0.014068603515625, 0.04736328125, -0.0206146240234375, -0.0006685256958007812, 0.0298919677734375, -0.0246124267578125, -0.0253753662109375, 0.039642333984375, -0.01413726806640625, 0.02471923828125, 0.006916046142578125, 0.01137542724609375, 0.0203399658203125, 0.03912353515625, -0.028717041015625, -0.01617431640625, -0.0245361328125, -0.0142669677734375, 0.0017442703247070312, 0.028167724609375, 0.0292205810546875, -0.01287078857421875, -0.0142822265625, 0.01198577880859375, -0.0264434814453125, -0.01085662841796875, -0.007526397705078125, -0.032470703125, 0.0111846923828125, 0.0079193115234375, -0.002674102783203125, 0.0101470947265625, -0.01922607421875, 0.017333984375, 0.003993988037109375, 0.0034732818603515625, -0.018829345703125, -0.00738525390625, -0.0018434524536132812, 0.032318115234375, 0.0014495849609375, -0.03631591796875, -0.016632080078125, -0.01126861572265625, -0.03778076171875, -0.006832122802734375, -0.01027679443359375, -0.011688232421875, 0.00797271728515625, -0.0195770263671875, 0.00472259521484375, -0.01824951171875, 0.01512908935546875, -0.025482177734375, 0.032867431640625, -0.0041351318359375, -0.004741668701171875, -0.005046844482421875, -0.0168914794921875, 0.01100921630859375, 0.0208892822265625, 0.01305389404296875, -0.063720703125, 0.08795166015625, -0.0335693359375, 0.00621795654296875, 0.042022705078125, 0.00424957275390625, -0.039276123046875, 0.0171966552734375, 0.016143798828125, -0.0104827880859375, 0.04742431640625, 0.044189453125, 0.0001042485237121582, -0.023681640625, 0.0140838623046875, 0.0242767333984375, 0.0189208984375, 0.0029773712158203125, 0.03460693359375, 0.020172119140625, 0.023284912109375, 0.0019388198852539062, -0.0153656005859375, -0.002712249755859375, -0.01861572265625, -0.01056671142578125, -0.0255889892578125, -0.00556182861328125, 0.043243408203125, -0.0285186767578125, 0.00318145751953125, 0.057952880859375, 0.01666259765625, -0.003101348876953125, -0.0301055908203125, 0.044586181640625, -0.005645751953125, 0.017791748046875, 0.00945281982421875, 0.029571533203125, -0.041717529296875, -0.0250244140625, 0.024658203125, -0.023284912109375, 0.0321044921875, 0.01361846923828125, 0.006805419921875, -0.0020198822021484375, -0.055938720703125, 0.028717041015625, -0.051239013671875, 0.0237884521484375, -0.005626678466796875, 0.05517578125, -0.022430419921875, 0.041351318359375, -0.03411865234375, 0.006809234619140625, -0.0137481689453125, 0.01058197021484375, -0.0183258056640625, 0.00925445556640625, -0.029693603515625, -0.0231781005859375, 0.0018825531005859375, -0.032928466796875, 0.0051116943359375, 0.0247650146484375, 0.0164947509765625, 0.028167724609375, -0.01140594482421875, 0.026092529296875, 0.01812744140625, 0.005123138427734375, 0.01155853271484375, 0.0164337158203125, 0.046783447265625, 0.025238037109375, 0.02569580078125, 0.0139923095703125, -0.03369140625, 0.07525634765625, -0.0210418701171875, -0.05560302734375, 0.0221099853515625, 0.0160064697265625, 0.0390625, -0.002727508544921875, 0.0012311935424804688, 0.045989990234375, 0.04736328125, -0.031890869140625, 0.022216796875, 0.00249481201171875, 0.0167236328125, -0.06439208984375, 0.0157470703125, -0.0279388427734375, -0.020050048828125, 0.003936767578125, -0.0035247802734375, 0.025787353515625, -0.0027904510498046875, -0.00975799560546875, 0.00658416748046875, 0.00049591064453125, 0.01342010498046875, 0.0059967041015625, -0.003185272216796875, 0.0233612060546875, 0.03564453125, -0.0214080810546875, -0.07830810546875, -0.037689208984375, 0.056976318359375, -0.0194091796875, 0.023712158203125, -0.0080108642578125, 0.0526123046875, -0.033447265625, -0.006938934326171875, -0.0248260498046875, 0.0131683349609375, -0.00867462158203125, 0.04107666015625, -0.0276336669921875, 0.007709503173828125, 0.0017147064208984375, 0.0270843505859375, 0.013519287109375, -0.0018863677978515625, -0.00821685791015625, 0.037994384765625, -0.0159454345703125, -0.036102294921875, -0.047515869140625, -0.0731201171875, 0.029449462890625, 0.06365966796875, 0.01456451416015625, -0.008453369140625, -0.028411865234375, -0.018402099609375, 0.034881591796875, 0.031768798828125, 0.027923583984375, -0.0127410888671875, 0.0060882568359375, 0.0226287841796875, -0.0084075927734375, -0.0220794677734375, 0.022247314453125, -0.06396484375, 0.01383209228515625, 0.036773681640625, -0.00501251220703125, -0.005176544189453125, 0.00433349609375, -0.0035190582275390625, -0.0014362335205078125, -0.0186767578125, -0.020904541015625, -0.0185394287109375, 0.046356201171875, -0.0190582275390625, 0.0098876953125, -0.00418853759765625, -0.0479736328125, 0.00443267822265625, 0.02349853515625, -0.0186920166015625, 0.0075225830078125, 0.041595458984375, 0.00281524658203125, -0.0118255615234375, -0.01093292236328125, -0.023712158203125, 0.0003895759582519531, -0.0008144378662109375, -0.0343017578125, -0.00042057037353515625, -0.033477783203125, -0.009918212890625, -0.0289459228515625, -0.0789794921875, 0.02142333984375, 0.004642486572265625, 0.0174713134765625, 0.019500732421875, 0.04510498046875, 0.01433563232421875, -0.02301025390625, 0.0173187255859375, -0.018951416015625, -0.01441192626953125, -0.005268096923828125, -0.0234222412109375, 0.03643798828125, -0.03253173828125, 0.031646728515625, 0.0556640625, -0.024627685546875, 0.0245208740234375, -0.005634307861328125, -0.0086517333984375, -0.0286865234375, 0.0228729248046875, 0.004611968994140625, 0.004329681396484375, -0.032196044921875, 0.037689208984375, 0.01049041748046875, -0.0318603515625, 0.005451202392578125, -0.0281829833984375, -0.0169677734375, 0.001102447509765625, -0.053131103515625, -0.0108184814453125, 0.00984954833984375, -0.08477783203125, 0.0050811767578125, -0.01203155517578125, -0.04205322265625, -0.00492095947265625, 0.017181396484375, -0.008056640625, -0.06170654296875, -0.00012105703353881836, 0.0109710693359375, -0.056427001953125, -0.03924560546875, -0.025299072265625, 0.009490966796875, 0.024139404296875, -0.0081939697265625, 0.06353759765625, -0.01029205322265625, -0.0235443115234375, -0.01239013671875, 0.00881195068359375, -0.006793975830078125, -0.0259246826171875, 0.065673828125, -0.0258331298828125, -0.01666259765625, 0.00470733642578125, -0.0177459716796875, 0.03704833984375, -0.06390380859375, -0.00579071044921875, -0.024261474609375, -0.057098388671875, -0.0237274169921875, 0.051910400390625, 0.0291748046875, -0.0716552734375, -0.013427734375, -0.08538818359375, 0.0037593841552734375, 0.00667572021484375, -0.0159912109375, -0.048126220703125, 0.004955291748046875, -0.039398193359375, -0.04229736328125, 0.00109100341796875, 0.00891876220703125, 0.004314422607421875, -0.01776123046875, -0.016143798828125, 0.02545166015625, 0.013275146484375, 0.020233154296875, 0.01267242431640625, -0.01181793212890625, -0.0239410400390625, 0.032012939453125, -0.0098724365234375, 0.005352020263671875, -0.0310211181640625, 0.06475830078125, -0.0262451171875, -0.077392578125, 0.036102294921875, -0.033477783203125, 0.0400390625, -0.0538330078125, -0.0196380615234375, -0.005615234375, 0.12347412109375, 0.004817962646484375, -0.0225677490234375, 0.0009975433349609375, 0.0018892288208007812, -0.02716064453125, 0.01396942138671875, -0.0285797119140625, 0.003814697265625, -0.008880615234375, -0.041168212890625, -0.028839111328125, -0.0254669189453125, 0.0253753662109375, -0.04644775390625, 0.00786590576171875, -0.036163330078125, 0.041534423828125, -0.06671142578125, 0.0156097412109375, -0.006839752197265625, -0.010223388671875, -0.036041259765625, -0.0136566162109375, -0.03289794921875, -0.06353759765625, 0.00482940673828125, 0.00588226318359375, -0.01422119140625, -0.0025005340576171875, -0.041595458984375, -0.0350341796875, 0.00511932373046875, 0.02978515625, 0.044281005859375, -0.0236663818359375, -0.01364898681640625, -0.0196075439453125, -0.0394287109375, -0.01136016845703125, -0.0225067138671875, 0.0240020751953125, -0.007457733154296875, -0.044036865234375, -0.018280029296875, -0.03179931640625, -0.0290069580078125, 0.0082550048828125, -0.057342529296875, 0.00789642333984375, -0.019805908203125, -0.04742431640625, 0.0015707015991210938, -0.00981903076171875, -0.01947021484375, -0.012847900390625, 0.00464630126953125, 0.051025390625, 0.0169525146484375, 0.05047607421875, -0.0033435821533203125, 0.0941162109375, -0.00621795654296875, -0.028961181640625, -0.059326171875, 0.0323486328125, 0.058624267578125, -0.00914764404296875, 0.015045166015625, 0.0234832763671875, -0.0638427734375, 0.08770751953125, 0.045806884765625, 0.0364990234375, -0.03155517578125, -0.022613525390625, 0.0007691383361816406, -0.0078887939453125, 0.003498077392578125, 0.0162353515625, 0.0275726318359375, -0.04144287109375, -0.03631591796875, -0.0006041526794433594, -0.0102691650390625, 0.0279388427734375, -0.00015115737915039062, 0.037933349609375, -0.021026611328125, -0.0501708984375, 0.01690673828125, -0.0821533203125, 0.048675537109375, 0.00994110107421875, 0.001529693603515625, 0.03375244140625, 0.032867431640625, -0.00559234619140625, -0.006343841552734375, -0.0078887939453125, -0.00926971435546875, 0.01410675048828125, 0.0011320114135742188, 0.011383056640625, -0.0244293212890625, -0.006732940673828125, -0.007572174072265625, -0.01282501220703125, -0.00788116455078125, -0.0673828125, -0.0172271728515625, 0.012054443359375, 0.01019287109375, -0.01169586181640625, -0.0015850067138671875, 0.036407470703125, 0.016082763671875, 0.0185699462890625, 0.0125885009765625, 0.0196533203125, -0.01166534423828125, 0.02252197265625, 0.02349853515625, -0.02874755859375, -0.0038585662841796875, 0.0209503173828125, 0.021942138671875, -0.016754150390625, 0.0106964111328125, 0.04071044921875, 0.046783447265625, 0.001617431640625, 0.035614013671875, 0.0114593505859375, -0.0019931793212890625, -0.053466796875, -0.0210113525390625, -0.01776123046875, 0.055389404296875, 0.01020050048828125, 0.008026123046875, -0.006610870361328125, -0.06329345703125, 0.034149169921875, -0.045745849609375, 0.00614166259765625, -0.041412353515625, -0.0173187255859375, 0.01358795166015625, 0.00858306884765625, 0.0150299072265625, 0.013519287109375, 0.01139068603515625, 0.0025157928466796875, 0.012298583984375, 0.01192474365234375, -0.0020294189453125, 0.033416748046875, -0.0413818359375, 0.0179595947265625, 0.0288238525390625, 0.0196380615234375, -0.0306396484375, -0.0037326812744140625, -0.0511474609375, 0.0169830322265625, -0.02911376953125, 0.00583648681640625, 0.03607177734375, -0.0369873046875, -0.0256805419921875, -0.025146484375, 0.050201416015625, 0.0067596435546875, 0.0025997161865234375, 0.056549072265625, 0.0221710205078125, -0.043365478515625, -0.01146697998046875, -0.05804443359375, -0.0176544189453125, -0.00981903076171875, -0.020416259765625, -0.042999267578125, -0.0084228515625, -0.0195159912109375, 0.0276947021484375, -0.0173187255859375, -0.01546478271484375, 0.006504058837890625, 0.0055694580078125, -0.01065826416015625, 0.00136566162109375, 0.03271484375, 0.0193634033203125, 0.00684356689453125, 0.0274810791015625, 0.024932861328125, 0.01953125, -0.027557373046875, -0.035675048828125, -0.00864410400390625, -0.0654296875, -0.034515380859375, 0.0185699462890625, -0.0228424072265625, 0.07342529296875, 0.056121826171875, 0.00855255126953125, -0.0022754669189453125, -0.0406494140625, 0.006572723388671875, -0.0225830078125, 0.07904052734375, -0.06182861328125, -0.05621337890625, 0.045745849609375, -0.026763916015625, -0.039337158203125, 0.0203399658203125, -0.0179595947265625, 0.01226043701171875, 0.0292510986328125, -0.0265350341796875, -0.0035228729248046875, 0.00762939453125, 0.0404052734375, 0.07391357421875, 0.00988006591796875, 0.03912353515625, 0.06744384765625, 0.0227203369140625, -0.0123443603515625, 0.058197021484375, -0.01148223876953125, -0.02655029296875, 0.0263671875, 0.0141143798828125, -0.0264892578125, -0.0113372802734375, -0.0262603759765625, 0.018310546875, 0.0218353271484375, 0.052276611328125, -0.0517578125, 0.0263671875, 0.0156402587890625, -0.003086090087890625, 0.034454345703125, -0.00484466552734375, -0.01873779296875, -0.01415252685546875, 0.042724609375, -0.01169586181640625, -0.015869140625, 0.0322265625, -0.00896453857421875, 0.00830078125, -0.010650634765625, 0.044677734375, 0.00923919677734375, -0.0309295654296875, -0.0207977294921875, 0.0256805419921875, -0.01171875, -0.0186614990234375, 0.0145263671875, -0.0426025390625, -0.009765625, -0.039581298828125, -0.021514892578125, -0.023773193359375, -0.001087188720703125, 0.0145416259765625, 0.0164031982421875, 0.0633544921875, 0.05938720703125, 0.008270263671875, -0.005580902099609375, 0.034454345703125, 0.014556884765625, 0.032623291015625, -0.009979248046875, 0.0291290283203125, -0.03955078125, -0.06329345703125, -0.0010128021240234375, -0.047576904296875, -0.0009002685546875, 0.0101165771484375, 0.022216796875, 0.0595703125, -0.05499267578125, -0.01483917236328125, 0.038055419921875, -0.01200103759765625, -0.01001739501953125, -0.0198974609375, 0.0075836181640625, -0.044189453125, -0.0220184326171875, -0.0247802734375, -0.0672607421875, 0.0175323486328125, -0.040374755859375, -0.07257080078125, 0.13134765625, -0.00627899169921875, 0.042724609375, 0.0222015380859375, 0.05877685546875, -0.031951904296875, 0.01317596435546875, -0.035858154296875, 0.038604736328125, -0.0260772705078125, 0.0238494873046875, -0.059112548828125, 0.0239410400390625, -0.020782470703125, 0.005359649658203125, 0.019287109375, -0.020294189453125, -0.0033397674560546875, 0.00490570068359375, 0.0987548828125, 0.08245849609375, 0.04779052734375, -0.01058197021484375, -0.0239105224609375, 0.0098419189453125, -0.0005273818969726562, -0.0252685546875, 0.016632080078125, -0.006317138671875, -0.038116455078125, 0.006504058837890625, 0.001918792724609375, -0.0021686553955078125, 0.0022716522216796875, -0.0194091796875, -0.044952392578125, 0.00839996337890625, 0.0243682861328125, 0.0172882080078125, 0.021881103515625, 0.0032596588134765625, 0.00525665283203125, -0.056884765625, 0.01168060302734375, -0.02978515625, 0.040313720703125, -0.0261993408203125, 0.01218414306640625, -0.00803375244140625, 0.0025844573974609375, 0.021148681640625, -0.025299072265625, -0.00960540771484375, 0.0191650390625, -0.0171051025390625, 0.0264739990234375, -0.0217437744140625, 0.022216796875, -0.06939697265625, -0.0440673828125, 0.0004439353942871094, 0.023834228515625, -0.02703857421875, -0.047882080078125, 0.0204925537109375, 0.01250457763671875, -0.0031642913818359375, 0.0166168212890625, 0.007541656494140625, -0.0782470703125, -0.013275146484375, 0.036956787109375, -0.0217742919921875, -0.01361083984375, 0.053955078125, 0.012359619140625, 0.01262664794921875, -0.0083160400390625, -0.0311737060546875, -0.010467529296875, 0.022796630859375, -0.042938232421875, -0.001018524169921875, -0.0135650634765625, 0.04949951171875, -0.04522705078125, 0.016082763671875, -0.0179595947265625, 0.037261962890625, -0.007389068603515625, 0.03314208984375, -0.014312744140625, -0.026763916015625, 0.00962066650390625, 0.01274871826171875, -0.0007243156433105469, 0.02392578125, 0.0557861328125, 0.0543212890625, -0.0124664306640625, -0.0281524658203125, -0.049285888671875, -0.012237548828125, -0.029571533203125, -0.0182647705078125, -0.0196533203125, 0.00983428955078125, -0.006397247314453125, 0.00202178955078125, 0.01666259765625, 0.0196685791015625, -0.0447998046875, 0.0016965866088867188, -0.0011777877807617188, -0.062744140625, 0.053070068359375, -0.0165863037109375, 0.08447265625, -0.024078369140625, -0.08465576171875, 0.00406646728515625, -0.056427001953125, -0.0506591796875, 0.029510498046875, 0.0411376953125, -0.0216064453125, 0.0016117095947265625, 0.0305633544921875, -0.006473541259765625, -0.0012969970703125, 0.0164031982421875, -0.00341796875, -0.0019779205322265625, 0.036834716796875, -0.0030574798583984375, -0.00616455078125, -0.01419830322265625, 0.00962066650390625, 0.04522705078125, 0.01885986328125, 0.050537109375, -0.03131103515625, 0.01447296142578125, 0.0604248046875, -0.00006461143493652344, 0.0159149169921875, 0.01983642578125, 0.03033447265625, -0.01177215576171875, 0.0031299591064453125, -0.0214385986328125, -0.048492431640625, 0.0224456787109375, 0.00505828857421875, -0.0311737060546875, -0.00609588623046875, 0.0276336669921875, 0.0158843994140625, 0.040802001953125, 0.00691986083984375, -0.01385498046875, -0.0102386474609375, -0.01393890380859375, -0.00732421875, 0.033538818359375, 0.006473541259765625, -0.04083251953125, 0.0281829833984375, -0.0004684925079345703, -0.01184844970703125, -0.00020945072174072266, -0.0113677978515625, -0.019439697265625, 0.0166015625, 0.0039005279541015625, -0.053314208984375, 0.0290374755859375, -0.00891876220703125, 0.02008056640625, -0.01220703125, 0.0831298828125, 0.03704833984375, -0.0750732421875, 0.0204925537109375, 0.0316162109375, 0.03594970703125, -0.033355712890625, 0.005523681640625, 0.0308837890625, -0.0022182464599609375, 0.01464080810546875, -0.045074462890625, -0.01187896728515625, -0.0323486328125, -0.0159454345703125, 0.04803466796875, -0.036865234375, 0.01082611083984375, -0.0860595703125, 0.0185394287109375, 0.025604248046875, -0.0064239501953125, -0.06024169921875, 0.037353515625, -0.0294189453125, 0.04864501953125, -0.022064208984375, 0.023773193359375, -0.0004470348358154297, 0.01849365234375, -0.06329345703125, -0.00975799560546875, -0.03082275390625, 0.0002751350402832031, -0.0258026123046875, 0.032470703125, 0.06817626953125, -0.04364013671875, -0.0301055908203125, 0.0179443359375, 0.0283660888671875, 0.068359375, -0.02252197265625, -0.0308685302734375, -0.0090179443359375, 0.019317626953125, 0.01499176025390625, -0.04986572265625, -0.0295257568359375, -0.0014829635620117188, 0.03570556640625, -0.032684326171875, 0.00844573974609375, 0.0095672607421875, -0.0460205078125, -0.0882568359375, 0.06390380859375, -0.0096282958984375, -0.041961669921875, -0.021026611328125, 0.0139923095703125, 0.015350341796875, -0.0328369140625, -0.0150146484375, -0.0255279541015625, -0.046875, -0.0017919540405273438, -0.01459503173828125, 0.0205535888671875, 0.0284423828125, -0.0236663818359375, -0.06817626953125, -0.051483154296875, -0.057037353515625, -0.01409912109375, 0.0321044921875, -0.0300140380859375, 0.031097412109375, 0.0328369140625, -0.038818359375, -0.00508880615234375, -0.0150909423828125, -0.0095977783203125, -0.005397796630859375, -0.01146697998046875, -0.07415771484375, -0.0256195068359375, 0.07745361328125, 0.095947265625, 0.0267333984375, -0.0229644775390625, -0.0279693603515625, -0.0192108154296875, -0.0238494873046875, 0.0282440185546875, 0.0274200439453125, -0.052215576171875, 0.03631591796875, 0.03778076171875, 0.010284423828125, 0.01038360595703125, -0.01415252685546875, -0.017425537109375, -0.02227783203125, -0.019989013671875, -0.0122833251953125, -0.023193359375, -0.037567138671875, 0.076416015625, -0.0377197265625, 0.0107879638671875, 0.0007066726684570312, 0.029449462890625, 0.03033447265625, -0.00457763671875, 0.0258026123046875, 0.06182861328125, -0.0704345703125, -0.0175323486328125, 0.0259857177734375, 0.036285400390625, -0.0182342529296875, 0.00634765625, -0.0039520263671875, 0.00390625, -0.006023406982421875, 0.004486083984375, -0.0216522216796875, 0.04107666015625, -0.01140594482421875, 0.06903076171875, -0.0121612548828125, -0.0452880859375, -0.0518798828125, 0.044525146484375, -0.003131866455078125, -0.01389312744140625, 0.0250244140625, -0.025726318359375, 0.035430908203125, -0.0015163421630859375, -0.01302337646484375, 0.0107421875, -0.0202484130859375, -0.00047016143798828125, -0.0306854248046875, -0.0031681060791015625 ]
ea0f4d13d419a961c0b4e378eb5096c3621afbda
Wordpress Stackexchange Q: Using nonce external of WP Admin All, I've got two wordpress pages. One wordpress page displays a form to do some registration stuff for the website. The second wordpress page actually processes the data and inserts it into a custom MySQL table that I have. I'd like to use the nonce functionality inherit to Wordpress. The user doesn't have to be a Wordpress admin or have any type of permissions to be able to do it. Can anyone give me an example or show me how to do this outside of the WP Admin in a Wordpress page? Thanks for any advice in advance! A: Nonces are not tied to the admin interface. This codex page explains them very well. Essentially, you add : <?php wp_nonce_field('name_of_my_action', 'name_of_nonce_field'); ?> in your form (this creates a hidden input field containing an one-time-use token). And where you're doing the form processing you just check if the nonce is correct if(!wp_verify_nonce($_POST['name_of_nonce_field'], 'name_of_my_action')){ // no permissions }
Q: Using nonce external of WP Admin All, I've got two wordpress pages. One wordpress page displays a form to do some registration stuff for the website. The second wordpress page actually processes the data and inserts it into a custom MySQL table that I have. I'd like to use the nonce functionality inherit to Wordpress. The user doesn't have to be a Wordpress admin or have any type of permissions to be able to do it. Can anyone give me an example or show me how to do this outside of the WP Admin in a Wordpress page? Thanks for any advice in advance! A: Nonces are not tied to the admin interface. This codex page explains them very well. Essentially, you add : <?php wp_nonce_field('name_of_my_action', 'name_of_nonce_field'); ?> in your form (this creates a hidden input field containing an one-time-use token). And where you're doing the form processing you just check if the nonce is correct if(!wp_verify_nonce($_POST['name_of_nonce_field'], 'name_of_my_action')){ // no permissions }
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:417546", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43823" }
[ 0.06610107421875, 0.0072479248046875, -0.00850677490234375, -0.004077911376953125, 0.033477783203125, -0.05517578125, 0.06396484375, -0.035491943359375, 0.0162811279296875, 0.023345947265625, -0.0310211181640625, 0.0035419464111328125, -0.01219940185546875, -0.01302337646484375, -0.0283660888671875, -0.0322265625, 0.01180267333984375, 0.008087158203125, 0.03887939453125, 0.01361083984375, 0.004642486572265625, 0.01052093505859375, 0.00972747802734375, -0.093017578125, 0.04302978515625, -0.0819091796875, 0.060211181640625, -0.0119476318359375, 0.0484619140625, -0.01494598388671875, 0.039093017578125, -0.0308380126953125, -0.00270843505859375, 0.044097900390625, -0.044830322265625, -0.0267486572265625, -0.0214385986328125, 0.0220184326171875, 0.002872467041015625, 0.02947998046875, 0.0238800048828125, -0.008941650390625, 0.011260986328125, 0.024658203125, -0.015655517578125, -0.053466796875, 0.047821044921875, -0.0243072509765625, -0.0228271484375, 0.024322509765625, 0.015869140625, -0.0014677047729492188, 0.0252838134765625, -0.005199432373046875, 0.0001316070556640625, 0.0005488395690917969, -0.03338623046875, -0.0263519287109375, 0.025054931640625, 0.0440673828125, 0.003421783447265625, -0.02838134765625, 0.0030841827392578125, -0.04327392578125, 0.00933074951171875, -0.015960693359375, -0.0178070068359375, 0.0279541015625, -0.07928466796875, -0.00005632638931274414, 0.053802490234375, -0.04766845703125, -0.01515960693359375, -0.026947021484375, 0.007022857666015625, 0.014404296875, 0.017822265625, 0.00667572021484375, -0.02227783203125, 0.026031494140625, -0.0264892578125, 0.00921630859375, -0.048126220703125, 0.0159149169921875, -0.0321044921875, 0.0246734619140625, -0.02423095703125, -0.006866455078125, -0.01117706298828125, -0.00820159912109375, -0.0186920166015625, -0.023284912109375, 0.0185394287109375, -0.01312255859375, -0.032379150390625, -0.018768310546875, 0.00010269880294799805, -0.0243377685546875, 0.00798797607421875, -0.0206756591796875, 0.06671142578125, -0.058013916015625, 0.01300048828125, -0.0021152496337890625, -0.0007195472717285156, 0.082763671875, 0.027435302734375, -0.043670654296875, -0.046966552734375, -0.024993896484375, -0.013671875, -0.046630859375, 0.00878143310546875, -0.054779052734375, 0.0038051605224609375, 0.02813720703125, 0.01198577880859375, -0.0042266845703125, 0.0171966552734375, -0.04046630859375, -0.0184326171875, -0.025726318359375, 0.0308380126953125, 0.005184173583984375, 0.0240325927734375, 0.0005850791931152344, -0.03472900390625, -0.004604339599609375, 0.023681640625, 0.0221405029296875, -0.02880859375, 0.0223846435546875, 0.084716796875, 0.003459930419921875, -0.0135955810546875, -0.0192718505859375, 0.039947509765625, 0.0521240234375, 0.0262298583984375, -0.0012292861938476562, 0.05609130859375, -0.031768798828125, -0.02508544921875, 0.0572509765625, 0.0355224609375, 0.017059326171875, 0.0159759521484375, 0.00939178466796875, 0.01023101806640625, 0.01108551025390625, 0.00687408447265625, -0.01898193359375, 0.02362060546875, -0.0089263916015625, 0.035675048828125, -0.0007810592651367188, 0.041717529296875, -0.016571044921875, -0.009765625, -0.004505157470703125, 0.00616455078125, -0.01430511474609375, 0.00975799560546875, -0.025238037109375, -0.02935791015625, 0.0016613006591796875, -0.035430908203125, -0.003368377685546875, 0.019256591796875, -0.035491943359375, 0.03350830078125, -0.032012939453125, 0.0131378173828125, 0.0006375312805175781, 0.01137542724609375, 0.03131103515625, 0.0004432201385498047, 0.08343505859375, 0.0015020370483398438, 0.0173797607421875, 0.00939178466796875, -0.050384521484375, 0.07666015625, -0.0277862548828125, -0.0287933349609375, -0.024200439453125, 0.04345703125, 0.043426513671875, 0.0108795166015625, 0.0374755859375, 0.03021240234375, 0.0010900497436523438, -0.003871917724609375, 0.043243408203125, -0.006439208984375, -0.059478759765625, -0.0394287109375, -0.0144500732421875, -0.0292816162109375, 0.0052490234375, 0.0008444786071777344, -0.0176239013671875, 0.02044677734375, -0.0108489990234375, -0.00037360191345214844, -0.023101806640625, -0.006107330322265625, 0.0165557861328125, -0.0178985595703125, 0.006092071533203125, 0.021331787109375, -0.006282806396484375, -0.0263824462890625, -0.029998779296875, -0.0186004638671875, 0.00460052490234375, -0.01018524169921875, 0.059722900390625, 0.007465362548828125, 0.04827880859375, 0.0304412841796875, -0.041229248046875, 0.02093505859375, -0.01253509521484375, 0.0197601318359375, 0.0021419525146484375, -0.022979736328125, -0.003925323486328125, 0.00957489013671875, 0.0030345916748046875, 0.01282501220703125, 0.04443359375, 0.0210723876953125, -0.0157470703125, -0.051849365234375, -0.02532958984375, -0.038177490234375, -0.07000732421875, 0.0017213821411132812, 0.08392333984375, 0.045745849609375, 0.01497650146484375, 0.000988006591796875, -0.0254058837890625, 0.06451416015625, -0.051239013671875, 0.0098419189453125, -0.03179931640625, -0.034393310546875, -0.0300445556640625, -0.0011310577392578125, -0.0078277587890625, 0.0428466796875, -0.08087158203125, -0.023284912109375, 0.0618896484375, -0.0244598388671875, -0.0496826171875, 0.0164947509765625, 0.005825042724609375, 0.01561737060546875, -0.038055419921875, -0.015655517578125, 0.0020046234130859375, 0.013916015625, -0.0255126953125, -0.01666259765625, -0.021942138671875, -0.01007843017578125, 0.00850677490234375, 0.031402587890625, -0.047576904296875, -0.0005559921264648438, 0.002681732177734375, 0.035614013671875, 0.016204833984375, -0.021270751953125, -0.0013074874877929688, -0.005603790283203125, 0.005401611328125, -0.005779266357421875, 0.05218505859375, -0.01031494140625, -0.01425933837890625, -0.025543212890625, -0.0188751220703125, 0.0033740997314453125, 0.01007080078125, 0.0335693359375, 0.0114593505859375, 0.0234222412109375, 0.0198822021484375, -0.02276611328125, 0.039398193359375, 0.0311737060546875, -0.0289306640625, -0.06927490234375, -0.039337158203125, 0.02935791015625, -0.0506591796875, 0.0014638900756835938, 0.068603515625, 0.01026153564453125, 0.0026569366455078125, 0.0097808837890625, -0.0248870849609375, 0.049072265625, 0.010223388671875, -0.0035152435302734375, -0.023834228515625, -0.043121337890625, -0.057464599609375, -0.004055023193359375, -0.0189056396484375, -0.0066375732421875, -0.04669189453125, -0.01465606689453125, 0.002620697021484375, -0.06689453125, -0.005496978759765625, -0.060394287109375, -0.049957275390625, -0.0036487579345703125, -0.02001953125, -0.025726318359375, 0.027618408203125, 0.011444091796875, 0.0152587890625, -0.0140533447265625, 0.007587432861328125, 0.0188751220703125, -0.0037021636962890625, -0.025482177734375, -0.020599365234375, 0.007602691650390625, 0.005817413330078125, 0.0021076202392578125, 0.037872314453125, -0.005893707275390625, -0.037445068359375, -0.0189361572265625, 0.0215606689453125, -0.00600433349609375, -0.01593017578125, -0.01678466796875, -0.00402069091796875, 0.01715087890625, -0.0029964447021484375, -0.0443115234375, -0.0030307769775390625, 0.0258331298828125, -0.017486572265625, 0.0210113525390625, -0.039276123046875, 0.0289154052734375, 0.0160064697265625, -0.045440673828125, -0.0299530029296875, 0.0109100341796875, -0.059234619140625, 0.03460693359375, -0.0012903213500976562, -0.005603790283203125, -0.00907135009765625, -0.017608642578125, -0.0262451171875, 0.0240325927734375, -0.018096923828125, 0.01488494873046875, 0.033233642578125, -0.0036411285400390625, 0.016265869140625, -0.035308837890625, -0.00705718994140625, 0.0149078369140625, 0.0109710693359375, -0.0030307769775390625, -0.02703857421875, 0.0283966064453125, -0.0098114013671875, 0.01153564453125, -0.01029205322265625, 0.023681640625, -0.0238494873046875, -0.060943603515625, 0.0738525390625, 0.054595947265625, 0.003894805908203125, -0.0007052421569824219, -0.05511474609375, 0.01641845703125, 0.10198974609375, -0.0181121826171875, -0.0345458984375, 0.00873565673828125, 0.0438232421875, -0.03900146484375, -0.04925537109375, 0.0253753662109375, -0.032196044921875, -0.0523681640625, -0.0249481201171875, -0.035552978515625, -0.0176544189453125, 0.0253753662109375, 0.005893707275390625, 0.00801849365234375, -0.05792236328125, 0.01532745361328125, -0.03692626953125, 0.00780487060546875, -0.01415252685546875, -0.006259918212890625, -0.03118896484375, 0.0010423660278320312, -0.0288848876953125, -0.0413818359375, -0.01201629638671875, -0.01227569580078125, 0.032958984375, 0.004669189453125, 0.0016117095947265625, 0.0179290771484375, 0.04022216796875, -0.01163482666015625, 0.006198883056640625, -0.0233154296875, 0.009490966796875, -0.0379638671875, -0.002490997314453125, -0.01215362548828125, -0.0168304443359375, 0.01299285888671875, -0.0026340484619140625, -0.03704833984375, -0.03204345703125, -0.04473876953125, -0.036376953125, 0.008026123046875, -0.04071044921875, -0.04815673828125, -0.0185546875, -0.0102691650390625, -0.0013952255249023438, -0.054046630859375, 0.0333251953125, -0.00007051229476928711, -0.0501708984375, 0.022796630859375, -0.0300140380859375, 0.01076507568359375, 0.00970458984375, 0.08807373046875, 0.0221099853515625, -0.00011521577835083008, -0.0004968643188476562, -0.0023651123046875, 0.01287841796875, -0.057373046875, 0.053436279296875, 0.056182861328125, 0.0295867919921875, -0.0157318115234375, -0.0214996337890625, -0.0467529296875, 0.032318115234375, 0.00736236572265625, 0.022552490234375, -0.04827880859375, 0.0064239501953125, -0.0081787109375, 0.01776123046875, 0.00577545166015625, -0.01251983642578125, -0.0021800994873046875, 0.010498046875, -0.006053924560546875, -0.0167083740234375, 0.01438140869140625, 0.01123809814453125, -0.035919189453125, -0.006626129150390625, -0.08380126953125, 0.00731658935546875, 0.05267333984375, -0.0256195068359375, 0.0020465850830078125, -0.01910400390625, -0.004276275634765625, -0.0186004638671875, -0.036651611328125, 0.0160369873046875, 0.01438140869140625, -0.0142974853515625, 0.0171966552734375, 0.01052093505859375, -0.0014095306396484375, 0.048614501953125, -0.048370361328125, -0.0732421875, -0.036590576171875, -0.018280029296875, 0.001239776611328125, 0.065673828125, -0.00048065185546875, 0.019378662109375, -0.02667236328125, 0.01044464111328125, 0.02752685546875, -0.01500701904296875, -0.038848876953125, -0.02484130859375, -0.01226043701171875, -0.01004791259765625, -0.0024471282958984375, -0.01334381103515625, 0.0992431640625, -0.0130157470703125, 0.05743408203125, -0.0245513916015625, 0.0526123046875, 0.0576171875, 0.0034275054931640625, 0.02276611328125, -0.0136871337890625, -0.00937652587890625, -0.0118560791015625, -0.021575927734375, -0.0305938720703125, -0.03668212890625, 0.033782958984375, 0.040008544921875, -0.007415771484375, 0.0176239013671875, -0.012054443359375, 0.0114898681640625, -0.004749298095703125, 0.009033203125, 0.04754638671875, 0.00628662109375, 0.004802703857421875, 0.0149078369140625, 0.00763702392578125, 0.0159454345703125, -0.014495849609375, 0.06365966796875, -0.0133056640625, 0.034088134765625, 0.029052734375, 0.005176544189453125, 0.0026645660400390625, -0.01384735107421875, 0.00852203369140625, -0.00853729248046875, -0.038116455078125, 0.0207061767578125, 0.01458740234375, -0.01464080810546875, -0.0197601318359375, 0.048614501953125, -0.005825042724609375, -0.0007424354553222656, -0.04730224609375, 0.0174560546875, -0.03472900390625, -0.0093231201171875, 0.06304931640625, 0.0151824951171875, -0.0190582275390625, -0.041717529296875, -0.031646728515625, -0.03729248046875, 0.00566864013671875, 0.018402099609375, -0.003253936767578125, 0.023223876953125, -0.0277099609375, 0.034820556640625, -0.03948974609375, -0.0126953125, 0.003932952880859375, 0.0035610198974609375, -0.02398681640625, 0.025115966796875, -0.01482391357421875, 0.06988525390625, -0.038177490234375, 0.04449462890625, -0.0066070556640625, 0.01195526123046875, -0.034698486328125, 0.01241302490234375, -0.004718780517578125, -0.04669189453125, 0.00560760498046875, -0.0016527175903320312, -0.0111083984375, 0.015655517578125, 0.037872314453125, -0.002765655517578125, 0.037750244140625, -0.0050811767578125, 0.0097503662109375, -0.005462646484375, -0.00313568115234375, -0.039764404296875, -0.01947021484375, 0.057281494140625, -0.0367431640625, -0.0254974365234375, -0.01102447509765625, -0.0181427001953125, 0.0303497314453125, 0.005809783935546875, 0.0030918121337890625, 0.0311431884765625, 0.006511688232421875, 0.0240325927734375, 0.05987548828125, -0.0149993896484375, 0.01788330078125, 0.045928955078125, 0.00223541259765625, -0.00012576580047607422, 0.0186004638671875, -0.0208587646484375, -0.0125885009765625, 0.049102783203125, 0.0113372802734375, -0.0228424072265625, 0.0200653076171875, -0.017242431640625, 0.041259765625, 0.04168701171875, 0.08984375, -0.07080078125, 0.0271759033203125, 0.01337432861328125, -0.046112060546875, 0.0208740234375, 0.004085540771484375, -0.0187835693359375, -0.01061248779296875, 0.02996826171875, -0.0163726806640625, -0.01953125, 0.0211029052734375, 0.0060882568359375, -0.0169677734375, -0.0177459716796875, 0.059844970703125, 0.01544189453125, 0.022186279296875, 0.0169677734375, -0.039398193359375, 0.02471923828125, -0.0244903564453125, 0.0081634521484375, -0.0056304931640625, -0.034271240234375, -0.039337158203125, -0.004566192626953125, -0.0184173583984375, -0.0127410888671875, -0.006378173828125, 0.0261077880859375, 0.06768798828125, 0.052215576171875, 0.0126953125, -0.056243896484375, 0.0394287109375, 0.026580810546875, -0.0156402587890625, -0.032958984375, -0.020660400390625, 0.032196044921875, -0.01218414306640625, 0.011566162109375, -0.0098114013671875, -0.01445770263671875, -0.0012159347534179688, 0.00348663330078125, 0.048675537109375, -0.01323699951171875, -0.0172271728515625, 0.05657958984375, -0.01044464111328125, -0.0401611328125, 0.038970947265625, 0.0087890625, -0.0262908935546875, -0.03399658203125, 0.0240020751953125, -0.052032470703125, 0.0170135498046875, 0.03594970703125, -0.08197021484375, 0.16845703125, 0.048736572265625, 0.01446533203125, 0.00846099853515625, 0.06549072265625, -0.08892822265625, 0.01910400390625, -0.07891845703125, 0.038238525390625, -0.0041351318359375, 0.045562744140625, -0.07818603515625, -0.013214111328125, -0.0160980224609375, 0.0200347900390625, 0.02490234375, 0.024871826171875, -0.0144500732421875, -0.005306243896484375, -0.002498626708984375, -0.03192138671875, -0.054931640625, 0.0604248046875, 0.016815185546875, 0.0018787384033203125, 0.036102294921875, -0.015960693359375, 0.0111846923828125, 0.004741668701171875, 0.0142364501953125, 0.05621337890625, -0.002532958984375, -0.01024627685546875, 0.0030765533447265625, 0.04766845703125, -0.0650634765625, 0.007640838623046875, 0.050872802734375, -0.060699462890625, -0.01143646240234375, 0.0129241943359375, 0.008544921875, -0.020416259765625, 0.02685546875, -0.045318603515625, 0.04302978515625, -0.01094818115234375, 0.00875091552734375, 0.0185089111328125, -0.0041351318359375, 0.07489013671875, 0.032073974609375, -0.003726959228515625, 0.021209716796875, 0.02801513671875, 0.028472900390625, 0.021148681640625, 0.03240966796875, -0.0177154541015625, 0.04742431640625, 0.0389404296875, 0.036376953125, -0.045257568359375, -0.01232147216796875, -0.0023250579833984375, 0.011627197265625, 0.0175018310546875, -0.0362548828125, 0.01194000244140625, -0.01276397705078125, 0.0188446044921875, 0.0374755859375, -0.01385498046875, 0.0214080810546875, 0.00420379638671875, 0.0224151611328125, 0.043487548828125, -0.019287109375, 0.0092010498046875, -0.0361328125, 0.0015087127685546875, 0.0196990966796875, 0.0091400146484375, -0.00372314453125, 0.02655029296875, 0.052490234375, 0.016510009765625, -0.00885009765625, 0.0197906494140625, 0.01143646240234375, -0.0182037353515625, -0.034149169921875, -0.0289154052734375, 0.0343017578125, 0.026885986328125, -0.0017480850219726562, 0.03607177734375, 0.05859375, 0.03704833984375, -0.040557861328125, -0.021636962890625, 0.0119781494140625, -0.03338623046875, -0.0137176513671875, -0.0360107421875, -0.00527191162109375, 0.0018978118896484375, -0.01116943359375, 0.00945281982421875, -0.00040650367736816406, 0.0209197998046875, -0.0203399658203125, 0.0225982666015625, -0.0007686614990234375, -0.02569580078125, 0.0298919677734375, -0.0142364501953125, 0.043731689453125, 0.0024433135986328125, -0.0721435546875, -0.027740478515625, -0.02020263671875, -0.021728515625, 0.03350830078125, 0.03717041015625, -0.02154541015625, 0.0208892822265625, 0.043609619140625, -0.0007395744323730469, 0.00970458984375, -0.0096282958984375, 0.0335693359375, -0.0010833740234375, 0.007476806640625, 0.017578125, -0.024322509765625, -0.0191650390625, -0.0125885009765625, 0.030029296875, 0.02685546875, 0.0125579833984375, 0.006107330322265625, 0.0261383056640625, -0.022857666015625, 0.0274505615234375, -0.033935546875, -0.027587890625, 0.0340576171875, 0.0084075927734375, 0.0037899017333984375, -0.0043182373046875, -0.01739501953125, 0.07025146484375, -0.01319122314453125, -0.00820159912109375, 0.03460693359375, -0.0035762786865234375, 0.0029048919677734375, 0.01092529296875, -0.0008711814880371094, -0.02783203125, -0.04693603515625, -0.0180206298828125, 0.038238525390625, 0.00481414794921875, 0.01360321044921875, -0.050140380859375, 0.045074462890625, -0.0048675537109375, 0.0093536376953125, 0.01380157470703125, -0.032958984375, -0.0155181884765625, 0.007049560546875, 0.005229949951171875, 0.02972412109375, -0.0161895751953125, -0.0284423828125, -0.00023674964904785156, 0.024627685546875, -0.0352783203125, 0.005504608154296875, 0.0107879638671875, -0.0323486328125, 0.0028896331787109375, 0.037353515625, 0.0213623046875, 0.015960693359375, -0.041473388671875, 0.00003546476364135742, -0.01250457763671875, -0.06463623046875, -0.0260772705078125, -0.06463623046875, 0.0154876708984375, 0.03338623046875, 0.0017728805541992188, 0.03350830078125, 0.01232147216796875, 0.01617431640625, 0.04736328125, 0.0026454925537109375, -0.0360107421875, 0.0011510848999023438, -0.0236663818359375, 0.076171875, -0.0012369155883789062, 0.0450439453125, -0.01384735107421875, -0.0018873214721679688, -0.05120849609375, -0.0230712890625, -0.0212860107421875, 0.039642333984375, -0.014251708984375, 0.03564453125, 0.048553466796875, -0.035797119140625, -0.0302886962890625, 0.041748046875, 0.03173828125, 0.07379150390625, 0.031036376953125, -0.023712158203125, -0.0212860107421875, 0.004878997802734375, -0.0024318695068359375, -0.0225067138671875, 0.03265380859375, -0.053680419921875, -0.0306549072265625, -0.02801513671875, 0.019256591796875, 0.03802490234375, -0.03680419921875, -0.09423828125, 0.04632568359375, -0.0287933349609375, -0.037872314453125, -0.043914794921875, 0.004638671875, 0.0158233642578125, -0.056182861328125, -0.025543212890625, -0.0305023193359375, -0.05438232421875, 0.01549530029296875, 0.0467529296875, -0.0350341796875, 0.021942138671875, 0.084716796875, -0.037841796875, 0.05078125, 0.0171356201171875, -0.02191162109375, 0.035736083984375, -0.0201568603515625, 0.021453857421875, 0.03570556640625, -0.0435791015625, -0.0372314453125, -0.01629638671875, -0.0112457275390625, -0.0115509033203125, -0.005603790283203125, -0.0189971923828125, -0.0024051666259765625, 0.060791015625, 0.044158935546875, 0.011688232421875, -0.0302886962890625, -0.0254974365234375, -0.0275115966796875, -0.049774169921875, -0.02972412109375, 0.02935791015625, -0.07794189453125, -0.00655364990234375, -0.00009322166442871094, -0.0192108154296875, -0.032257080078125, 0.038665771484375, -0.0293121337890625, 0.000331878662109375, 0.031402587890625, -0.01336669921875, -0.01397705078125, -0.028778076171875, 0.05841064453125, -0.04095458984375, -0.01245880126953125, 0.021026611328125, 0.017547607421875, 0.02471923828125, 0.00949859619140625, -0.0037326812744140625, 0.0015745162963867188, -0.004352569580078125, 0.0127105712890625, 0.001239776611328125, 0.0239715576171875, -0.01250457763671875, 0.0010290145874023438, -0.0338134765625, 0.0258331298828125, 0.00955963134765625, 0.048248291015625, 0.005161285400390625, 0.019866943359375, 0.0263824462890625, 0.0124359130859375, -0.01873779296875, -0.0207977294921875, -0.0223236083984375, 0.0303192138671875, 0.003696441650390625, -0.00728607177734375, 0.061798095703125, -0.036041259765625, 0.01049041748046875, 0.021942138671875, -0.012786865234375, 0.0037326812744140625, -0.01148223876953125, 0.0526123046875, -0.0038967132568359375, -0.00231170654296875 ]
72c144b4bf54709289826ed84c6adae59895664d
Wordpress Stackexchange Q: Sub domain redirection to taxonomy Hi all I want to use sub domain for my taxonomy like that : http://taxonomy.domain.com/apple map to http://www.domain.com/taxonomy/apple I add this to my vhost RewriteCond %{HTTP_HOST} ^taxonomy\.domain\.com [NC] RewriteRule ^/(.*)$ http://www.domain.com/taxonomy/$1 [L] And add a wildcard to my dns configuration. The redirection works but I want to use only rewrite but not redirection. So I want to use the target page but still have the subdomain url. So taxonomy.domain.com/apple is map but not redirect to the taxonomy url Any help? thanks in advance A: Do you have the line Options +FollowSymlinks defined in the .htaccess file before your rewrite rules? If so, remove it. If not, add it.
Q: Sub domain redirection to taxonomy Hi all I want to use sub domain for my taxonomy like that : http://taxonomy.domain.com/apple map to http://www.domain.com/taxonomy/apple I add this to my vhost RewriteCond %{HTTP_HOST} ^taxonomy\.domain\.com [NC] RewriteRule ^/(.*)$ http://www.domain.com/taxonomy/$1 [L] And add a wildcard to my dns configuration. The redirection works but I want to use only rewrite but not redirection. So I want to use the target page but still have the subdomain url. So taxonomy.domain.com/apple is map but not redirect to the taxonomy url Any help? thanks in advance A: Do you have the line Options +FollowSymlinks defined in the .htaccess file before your rewrite rules? If so, remove it. If not, add it.
wordpress
{ "language": "en", "length": 114, "provenance": "stackexchange_00019.jsonl.gz:417573", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43908" }
[ 0.037689208984375, 0.002231597900390625, -0.01366424560546875, -0.03765869140625, 0.006305694580078125, -0.038543701171875, 0.026763916015625, -0.01293182373046875, -0.0196075439453125, 0.004543304443359375, -0.0213775634765625, 0.016326904296875, -0.0150604248046875, -0.035614013671875, 0.033172607421875, -0.02197265625, 0.0016222000122070312, -0.0247650146484375, 0.01073455810546875, -0.016387939453125, 0.017547607421875, 0.006107330322265625, -0.0014171600341796875, -0.027740478515625, 0.0078582763671875, -0.01096343994140625, 0.05755615234375, -0.00360870361328125, -0.0158233642578125, -0.033538818359375, 0.0166168212890625, 0.01325225830078125, 0.03515625, 0.00033736228942871094, 0.006435394287109375, 0.01480865478515625, 0.040740966796875, -0.01256561279296875, 0.0203704833984375, 0.0277862548828125, 0.038482666015625, -0.028778076171875, -0.0248870849609375, 0.0139007568359375, 0.00957489013671875, -0.0672607421875, 0.0538330078125, -0.059173583984375, -0.0178985595703125, -0.0232696533203125, 0.033233642578125, 0.0191497802734375, 0.047088623046875, -0.000032007694244384766, -0.00879669189453125, 0.0003407001495361328, -0.0259857177734375, 0.0098724365234375, 0.026397705078125, -0.033843994140625, -0.0209197998046875, 0.0033206939697265625, 0.032989501953125, 0.04095458984375, -0.01224517822265625, 0.001514434814453125, -0.01499176025390625, 0.005588531494140625, -0.063232421875, -0.017547607421875, 0.05169677734375, -0.049102783203125, 0.0038909912109375, -0.0015106201171875, -0.0185394287109375, -0.05657958984375, 0.055877685546875, -0.024749755859375, -0.021148681640625, 0.01462554931640625, 0.00742340087890625, -0.032012939453125, -0.0033512115478515625, -0.006618499755859375, 0.009246826171875, 0.01113128662109375, -0.00760650634765625, -0.0094451904296875, -0.06658935546875, -0.0311737060546875, -0.035888671875, -0.0299224853515625, -0.07208251953125, -0.003459930419921875, -0.0018167495727539062, -0.00753021240234375, 0.0562744140625, 0.062347412109375, 0.006641387939453125, 0.0017080307006835938, -0.0237274169921875, -0.037139892578125, -0.0185699462890625, -0.03167724609375, 0.005985260009765625, 0.03668212890625, 0.005603790283203125, 0.020538330078125, 0.04443359375, 0.0183563232421875, 0.0006527900695800781, 0.023101806640625, -0.00897216796875, -0.00771331787109375, -0.0413818359375, -0.003841400146484375, -0.048858642578125, -0.0179595947265625, -0.006992340087890625, -0.028106689453125, -0.0029735565185546875, 0.03216552734375, 0.042205810546875, 0.01024627685546875, 0.0014219284057617188, 0.025115966796875, 0.0063323974609375, -0.07537841796875, -0.0018978118896484375, -0.0083160400390625, -0.0171051025390625, 0.03277587890625, -0.005672454833984375, 0.0162200927734375, -0.006473541259765625, -0.0017375946044921875, 0.045318603515625, -0.00911712646484375, -0.0188751220703125, 0.00010967254638671875, 0.0318603515625, 0.01715087890625, 0.005908966064453125, -0.01287841796875, -0.019378662109375, 0.028228759765625, 0.01367950439453125, 0.021484375, -0.01629638671875, -0.06768798828125, 0.051116943359375, -0.09417724609375, 0.0675048828125, 0.003086090087890625, -0.053314208984375, -0.0268402099609375, 0.032012939453125, -0.037353515625, -0.044036865234375, -0.07196044921875, 0.00670623779296875, 0.0029754638671875, 0.032562255859375, -0.04229736328125, -0.049774169921875, -0.004329681396484375, -0.059967041015625, -0.0198822021484375, 0.0316162109375, -0.0246429443359375, 0.057830810546875, -0.022186279296875, 0.0182342529296875, 0.012451171875, 0.0183258056640625, 0.0086517333984375, 0.0360107421875, 0.019439697265625, -0.007801055908203125, 0.0810546875, 0.031463623046875, -0.0257568359375, 0.019561767578125, 0.00421142578125, -0.0273284912109375, 0.06414794921875, -0.012451171875, 0.06951904296875, 0.0084075927734375, 0.0167694091796875, -0.0258331298828125, 0.0207672119140625, -0.09185791015625, 0.05767822265625, 0.01309967041015625, -0.0134735107421875, 0.02325439453125, 0.0097198486328125, 0.0267791748046875, -0.05731201171875, -0.0487060546875, 0.0018358230590820312, -0.0300750732421875, 0.046783447265625, -0.006591796875, -0.006439208984375, 0.00650787353515625, 0.00861358642578125, 0.0234832763671875, 0.030609130859375, -0.0136871337890625, -0.0014772415161132812, 0.015869140625, -0.0772705078125, -0.028228759765625, 0.0240478515625, -0.016326904296875, -0.0100860595703125, -0.011138916015625, 0.014892578125, -0.004543304443359375, -0.00626373291015625, -0.0169677734375, -0.0050506591796875, -0.00397491455078125, 0.0263671875, -0.024078369140625, 0.01052093505859375, -0.0418701171875, 0.04449462890625, -0.083984375, -0.0001647472381591797, 0.02044677734375, -0.0216217041015625, -0.05877685546875, 0.01346588134765625, -0.022308349609375, -0.01141357421875, -0.0162353515625, 0.04742431640625, 0.0188751220703125, 0.0374755859375, -0.040771484375, -0.033172607421875, 0.048614501953125, -0.0312042236328125, -0.01084136962890625, -0.0100555419921875, -0.0277862548828125, -0.00661468505859375, 0.031951904296875, 0.00954437255859375, 0.0186004638671875, 0.0171051025390625, -0.0176544189453125, 0.037109375, -0.0005035400390625, -0.0310211181640625, 0.0262908935546875, -0.0185546875, 0.0280609130859375, -0.0087127685546875, -0.055419921875, 0.0153961181640625, -0.025665283203125, 0.03717041015625, 0.001556396484375, 0.01131439208984375, -0.01552581787109375, 0.012237548828125, 0.01715087890625, -0.0052642822265625, -0.0038909912109375, 0.00893402099609375, 0.05548095703125, -0.0250396728515625, -0.0159454345703125, 0.0020294189453125, 0.012847900390625, -0.0025577545166015625, -0.0209808349609375, 0.035919189453125, -0.039031982421875, -0.0177459716796875, -0.035491943359375, -0.06451416015625, -0.0036449432373046875, 0.00839996337890625, -0.0223846435546875, -0.00138092041015625, 0.016143798828125, 0.04571533203125, 0.01085662841796875, -0.0092315673828125, 0.0117645263671875, 0.004657745361328125, -0.006561279296875, -0.03082275390625, 0.040069580078125, -0.041534423828125, 0.016876220703125, 0.058074951171875, -0.0137176513671875, 0.01111602783203125, 0.0250244140625, -0.0419921875, 0.0191802978515625, 0.00357818603515625, -0.00850677490234375, 0.01168060302734375, -0.07305908203125, 0.0161590576171875, 0.0175628662109375, 0.0145721435546875, -0.0247344970703125, -0.04437255859375, -0.0076751708984375, -0.01038360595703125, -0.053924560546875, -0.034423828125, 0.0221405029296875, 0.01543426513671875, 0.0288848876953125, 0.0484619140625, 0.019012451171875, -0.045623779296875, 0.055816650390625, 0.0113525390625, 0.034271240234375, -0.0279541015625, -0.09393310546875, -0.064697265625, -0.098876953125, -0.057220458984375, -0.01274871826171875, -0.0009255409240722656, 0.0166168212890625, 0.0191802978515625, 0.0179443359375, -0.004886627197265625, 0.057525634765625, 0.05023193359375, 0.0036773681640625, 0.00079345703125, -0.01117706298828125, -0.034454345703125, -0.0240478515625, -0.004833221435546875, 0.057525634765625, -0.001911163330078125, 0.0034656524658203125, 0.0096435546875, 0.006893157958984375, -0.0075225830078125, 0.01617431640625, -0.0596923828125, -0.006015777587890625, 0.0265960693359375, -0.01666259765625, -0.032928466796875, -0.0199127197265625, -0.0013628005981445312, -0.018218994140625, 0.009185791015625, 0.017364501953125, -0.02813720703125, -0.0030193328857421875, 0.0003108978271484375, 0.00273895263671875, 0.0024242401123046875, -0.026702880859375, -0.0279388427734375, 0.032012939453125, 0.00534820556640625, 0.0262908935546875, 0.01175689697265625, 0.035003662109375, -0.0030345916748046875, -0.0243377685546875, 0.002658843994140625, 0.004146575927734375, -0.021514892578125, 0.0272369384765625, -0.0643310546875, -0.03839111328125, 0.01175689697265625, -0.0855712890625, -0.01090240478515625, -0.039581298828125, 0.0258331298828125, -0.0238037109375, 0.05560302734375, -0.0260009765625, -0.00952911376953125, -0.018402099609375, 0.007633209228515625, 0.0235748291015625, -0.03143310546875, -0.0100555419921875, -0.033172607421875, -0.1007080078125, -0.01241302490234375, -0.00794219970703125, -0.038330078125, 0.009429931640625, -0.0367431640625, -0.043731689453125, -0.057098388671875, 0.0211029052734375, -0.0125579833984375, 0.008056640625, 0.01274871826171875, -0.0023250579833984375, -0.00969696044921875, -0.016845703125, -0.0279693603515625, -0.005462646484375, 0.0011415481567382812, 0.06195068359375, -0.040618896484375, -0.0245361328125, -0.007110595703125, 0.02203369140625, 0.034515380859375, -0.01107025146484375, -0.00783538818359375, -0.028350830078125, 0.0052490234375, -0.02789306640625, 0.01806640625, -0.0238494873046875, 0.005947113037109375, 0.00860595703125, 0.004322052001953125, -0.03509521484375, 0.0119781494140625, -0.006145477294921875, 0.0244140625, 0.04376220703125, -0.053375244140625, -0.07489013671875, -0.035919189453125, -0.03790283203125, -0.01331329345703125, -0.01702880859375, -0.0264892578125, -0.013671875, -0.060760498046875, 0.02667236328125, -0.01171112060546875, -0.01230621337890625, 0.0162506103515625, 0.06439208984375, 0.0110626220703125, -0.015838623046875, -0.00012183189392089844, 0.00797271728515625, 0.0131072998046875, -0.0162811279296875, 0.0185546875, -0.028472900390625, -0.017852783203125, 0.070556640625, -0.02069091796875, 0.0300445556640625, 0.00469970703125, -0.0191650390625, 0.00310516357421875, -0.0406494140625, 0.0276947021484375, -0.005870819091796875, -0.004024505615234375, 0.022247314453125, 0.006977081298828125, -0.042388916015625, -0.01995849609375, 0.04638671875, 0.0233001708984375, 0.001468658447265625, -0.053863525390625, -0.0246429443359375, 0.021148681640625, -0.006175994873046875, 0.0309906005859375, -0.0017766952514648438, -0.003173828125, 0.005466461181640625, 0.015869140625, -0.043548583984375, 0.046417236328125, 0.020263671875, 0.0281219482421875, 0.01148223876953125, 0.005523681640625, -0.03045654296875, -0.00147247314453125, 0.0010366439819335938, 0.04302978515625, 0.0194854736328125, -0.0249786376953125, 0.00891876220703125, -0.0008893013000488281, -0.04925537109375, 0.0213470458984375, -0.0252227783203125, 0.037689208984375, 0.0057220458984375, -0.0088043212890625, 0.021026611328125, -0.020416259765625, -0.04425048828125, -0.030731201171875, 0.0267333984375, 0.001232147216796875, -0.02294921875, 0.01200103759765625, 0.0455322265625, -0.01776123046875, 0.0237884521484375, 0.009918212890625, 0.0068359375, 0.0167236328125, 0.022216796875, 0.022674560546875, 0.0017795562744140625, -0.0195770263671875, 0.0216064453125, -0.003635406494140625, -0.040802001953125, 0.02069091796875, 0.0170745849609375, 0.043304443359375, -0.010650634765625, -0.0322265625, 0.026153564453125, -0.01425933837890625, 0.0038700103759765625, -0.0146331787109375, -0.0693359375, -0.02130126953125, -0.0277252197265625, -0.0401611328125, 0.02154541015625, -0.024200439453125, -0.0106048583984375, -0.005016326904296875, -0.00872802734375, 0.04791259765625, -0.0160675048828125, 0.0139617919921875, 0.022247314453125, 0.0138702392578125, -0.043731689453125, -0.0016527175903320312, 0.020599365234375, -0.034912109375, -0.040924072265625, -0.0084991455078125, -0.0307159423828125, 0.039825439453125, -0.0125732421875, 0.0293426513671875, -0.01302337646484375, -0.0206146240234375, 0.0137481689453125, -0.00470733642578125, 0.0694580078125, 0.0408935546875, -0.10162353515625, 0.03778076171875, -0.02752685546875, 0.0301055908203125, 0.034942626953125, -0.031585693359375, -0.026824951171875, -0.03961181640625, -0.004489898681640625, 0.0175323486328125, 0.00814056396484375, 0.01220703125, -0.010284423828125, -0.001476287841796875, -0.0088958740234375, -0.02313232421875, -0.022491455078125, 0.041656494140625, -0.0307769775390625, 0.03045654296875, -0.030609130859375, 0.01055145263671875, 0.0163726806640625, -0.021759033203125, -0.0189971923828125, -0.09661865234375, -0.005023956298828125, 0.0174102783203125, -0.04052734375, 0.061248779296875, 0.05224609375, 0.0162811279296875, 0.02813720703125, -0.004703521728515625, 0.005397796630859375, -0.017303466796875, -0.03338623046875, -0.045196533203125, 0.0374755859375, -0.00934600830078125, 0.0121307373046875, 0.04119873046875, -0.0019588470458984375, -0.0196380615234375, -0.0204010009765625, 0.0167236328125, 0.00989532470703125, 0.001842498779296875, -0.01381683349609375, 0.010833740234375, 0.02008056640625, -0.006130218505859375, 0.0253753662109375, 0.00710296630859375, -0.0004780292510986328, 0.00446319580078125, 0.0079345703125, -0.04290771484375, 0.0040740966796875, 0.048187255859375, 0.011688232421875, -0.01551055908203125, 0.0299224853515625, -0.01373291015625, -0.032135009765625, 0.0684814453125, 0.02008056640625, -0.08416748046875, -0.0259552001953125, -0.0230865478515625, -0.00742340087890625, -0.023223876953125, -0.00015306472778320312, 0.0281524658203125, 0.065673828125, -0.034881591796875, -0.0004343986511230469, -0.038604736328125, -0.0167694091796875, 0.01471710205078125, -0.00557708740234375, 0.005756378173828125, 0.0282440185546875, 0.01110076904296875, -0.0269775390625, -0.0019989013671875, 0.010162353515625, 0.005695343017578125, 0.019805908203125, 0.00839996337890625, 0.0174713134765625, -0.017974853515625, -0.0137481689453125, 0.055877685546875, -0.028228759765625, -0.0166168212890625, -0.01154327392578125, -0.020904541015625, 0.01363372802734375, 0.061187744140625, -0.03924560546875, 0.0123443603515625, 0.03460693359375, -0.0447998046875, 0.0501708984375, -0.0045166015625, -0.0087890625, -0.0235748291015625, -0.01116180419921875, -0.0111083984375, -0.029266357421875, -0.0003535747528076172, -0.01264190673828125, -0.04266357421875, 0.061065673828125, -0.056243896484375, 0.0084686279296875, 0.017425537109375, 0.028900146484375, 0.0037364959716796875, 0.0040740966796875, 0.037139892578125, -0.01399993896484375, -0.015869140625, 0.01448822021484375, -0.0226593017578125, -0.0286865234375, -0.04156494140625, -0.035675048828125, 0.07196044921875, -0.0089874267578125, 0.0208892822265625, 0.0215301513671875, 0.041900634765625, -0.00797271728515625, 0.027008056640625, -0.01532745361328125, 0.01544952392578125, 0.032928466796875, 0.007373809814453125, 0.021697998046875, 0.00025177001953125, 0.01512908935546875, 0.02740478515625, 0.03619384765625, 0.0166778564453125, -0.0650634765625, 0.020721435546875, 0.03985595703125, -0.003978729248046875, -0.00795745849609375, 0.072021484375, -0.0244293212890625, -0.03460693359375, -0.010467529296875, -0.006549835205078125, 0.00002485513687133789, 0.00131988525390625, -0.02899169921875, 0.0131072998046875, 0.00191497802734375, -0.005710601806640625, 0.0159912109375, 0.0082550048828125, -0.033477783203125, 0.01287078857421875, 0.0299224853515625, -0.0202484130859375, 0.041046142578125, -0.02484130859375, 0.0015516281127929688, -0.032257080078125, 0.0635986328125, -0.035186767578125, 0.046173095703125, -0.0233154296875, 0.00634002685546875, 0.0070648193359375, 0.004123687744140625, 0.09912109375, -0.024139404296875, -0.01096343994140625, 0.0220947265625, -0.004505157470703125, 0.0175628662109375, -0.0045166015625, 0.0203094482421875, -0.044342041015625, -0.00522613525390625, 0.019134521484375, 0.02587890625, -0.027679443359375, -0.023529052734375, 0.006458282470703125, 0.013031005859375, 0.023681640625, 0.01004791259765625, 0.06158447265625, 0.0175323486328125, -0.0070953369140625, -0.01904296875, 0.0159149169921875, 0.035400390625, 0.0022068023681640625, 0.004268646240234375, 0.037994384765625, -0.044525146484375, 0.02032470703125, -0.043914794921875, -0.0048980712890625, 0.0257110595703125, 0.08770751953125, 0.010467529296875, 0.08135986328125, -0.034210205078125, -0.04931640625, 0.006153106689453125, -0.014190673828125, 0.0030689239501953125, -0.0172882080078125, -0.0187835693359375, -0.037841796875, 0.067138671875, 0.040313720703125, 0.01224517822265625, 0.005565643310546875, 0.03643798828125, 0.052276611328125, 0.0005011558532714844, -0.01317596435546875, 0.048797607421875, -0.00417327880859375, 0.046295166015625, -0.00943756103515625, 0.0176239013671875, 0.03466796875, -0.016357421875, -0.06146240234375, -0.0198516845703125, 0.08587646484375, -0.00618743896484375, 0.04388427734375, 0.0014619827270507812, -0.0237579345703125, -0.00494384765625, -0.041717529296875, 0.046417236328125, 0.009735107421875, -0.03460693359375, -0.0115814208984375, -0.025299072265625, -0.0231475830078125, 0.0251617431640625, 0.0374755859375, -0.0004725456237792969, 0.0151214599609375, 0.0016336441040039062, -0.016937255859375, -0.000797271728515625, 0.0128631591796875, -0.00485992431640625, 0.01593017578125, 0.023773193359375, 0.0015621185302734375, -0.02899169921875, -0.00835418701171875, -0.008026123046875, 0.0090484619140625, 0.01239776611328125, 0.12164306640625, -0.046783447265625, 0.00286865234375, -0.054412841796875, 0.03656005859375, -0.054656982421875, -0.0673828125, 0.0726318359375, -0.002933502197265625, -0.0183258056640625, 0.005123138427734375, -0.05908203125, 0.0157470703125, 0.02947998046875, -0.042572021484375, 0.02935791015625, 0.00656890869140625, -0.002971649169921875, -0.036590576171875, 0.03021240234375, -0.027740478515625, -0.0972900390625, -0.104248046875, 0.0082550048828125, 0.0183258056640625, 0.07037353515625, -0.036895751953125, 0.0192413330078125, -0.0303955078125, -0.017791748046875, 0.01507568359375, -0.035919189453125, 0.0224456787109375, 0.0369873046875, -0.060211181640625, -0.0162353515625, 0.055908203125, 0.0009365081787109375, 0.0156707763671875, 0.004795074462890625, 0.0396728515625, 0.027191162109375, -0.054718017578125, -0.011627197265625, -0.01386260986328125, 0.00630950927734375, -0.002666473388671875, -0.0007796287536621094, -0.01739501953125, -0.0112762451171875, -0.008544921875, -0.0011730194091796875, -0.0097808837890625, -0.0258941650390625, -0.0211639404296875, 0.0195465087890625, -0.0265655517578125, 0.0086212158203125, -0.052276611328125, -0.01519775390625, 0.07489013671875, 0.0185394287109375, -0.06793212890625, 0.018890380859375, -0.0217437744140625, 0.05267333984375, 0.00824737548828125, -0.0169219970703125, 0.00656890869140625, 0.0125274658203125, -0.03564453125, -0.001979827880859375, -0.0382080078125, -0.0196990966796875, -0.0302276611328125, 0.01137542724609375, 0.033172607421875, -0.0272064208984375, 0.01445770263671875, -0.0237884521484375, 0.003265380859375, 0.03424072265625, -0.002655029296875, -0.0056610107421875, 0.0153656005859375, 0.00540924072265625, -0.04132080078125, 0.004604339599609375, 0.0203094482421875, 0.0026645660400390625, -0.02960205078125, -0.00244903564453125, -0.029205322265625, -0.01351165771484375, -0.04180908203125, -0.03253173828125, 0.03094482421875, 0.0159149169921875, -0.0245513916015625, -0.045867919921875, -0.01329803466796875, -0.007049560546875, 0.063720703125, -0.01318359375, -0.001766204833984375, -0.028533935546875, 0.03369140625, 0.0280303955078125, 0.0634765625, -0.01158905029296875, 0.0197601318359375, 0.0249786376953125, 0.042449951171875, 0.0250244140625, 0.020172119140625, -0.0093841552734375, -0.031646728515625, 0.05767822265625, 0.048004150390625, -0.0193939208984375, 0.0220947265625, 0.03631591796875, 0.0101165771484375, 0.0011281967163085938, -0.0299835205078125, -0.01152801513671875, -0.0189056396484375, 0.064453125, -0.0160369873046875, 0.0112457275390625, -0.01739501953125, -0.0665283203125, -0.04473876953125, -0.004535675048828125, -0.0216827392578125, 0.041656494140625, -0.10980224609375, -0.0005083084106445312, 0.034210205078125, 0.002124786376953125, -0.01690673828125, 0.006641387939453125, -0.01120758056640625, 0.0039215087890625, 0.0292205810546875, -0.012420654296875, -0.007965087890625, 0.04620361328125, 0.0133514404296875, -0.03570556640625, -0.03118896484375, -0.01953125, 0.0147857666015625, -0.0323486328125, -0.07525634765625, -0.0040435791015625, 0.033966064453125, 0.005462646484375, -0.0023784637451171875, 0.0284576416015625, -0.00926971435546875, 0.0032787322998046875, 0.01459503173828125, -0.0258636474609375, 0.0267791748046875, 0.0196380615234375, 0.0270233154296875, -0.02947998046875, 0.03558349609375, 0.013092041015625, 0.0556640625, -0.01352691650390625, 0.029632568359375, -0.0197601318359375, 0.05572509765625, -0.048919677734375, 0.007137298583984375, -0.0301055908203125, -0.004154205322265625, 0.0207061767578125, 0.029449462890625, 0.03546142578125, -0.0017862319946289062, 0.0333251953125, -0.0030002593994140625, 0.0178070068359375, 0.00978851318359375 ]
7ab9ceed30c88b133de4af911b8d6b2a9a9c49a9
Wordpress Stackexchange Q: WooCommerce permalinks I got the following question: When I go to a WooCommerce category, the link displays like this: http://www.example.com/product-category/category/ Where the bold text is the link like it is and the rest is the product category that needs to be shown. When i go into WooCommerce settings and I go to the pages tab, I got an option to change productcategory slugs. If I fill the following in this textfield: %product_cat% the links shows as follows: http://www.example.com/category/category/ What I want to show in my links is: http://www.example.com/category/subcategory/product Is there any way to do this? A: We use a method simular to this to generate product permalinks: Custom field values in permalink Annoyingly this supports one level of category only - not nested categories, so I believe what you want to do is not possible (but if anyone else has a solution I'd love to hear it!).
Q: WooCommerce permalinks I got the following question: When I go to a WooCommerce category, the link displays like this: http://www.example.com/product-category/category/ Where the bold text is the link like it is and the rest is the product category that needs to be shown. When i go into WooCommerce settings and I go to the pages tab, I got an option to change productcategory slugs. If I fill the following in this textfield: %product_cat% the links shows as follows: http://www.example.com/category/category/ What I want to show in my links is: http://www.example.com/category/subcategory/product Is there any way to do this? A: We use a method simular to this to generate product permalinks: Custom field values in permalink Annoyingly this supports one level of category only - not nested categories, so I believe what you want to do is not possible (but if anyone else has a solution I'd love to hear it!). A: There is post on here about URL rewrites that you can use for woocommerce if you want to do something else. Product Base Page URL You'll also want to tick this option on WooCommerce > Settings > Pages This setting is mentioned in the WooCommerce documentation on Permalinks
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:417574", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43909" }
[ 0.040008544921875, -0.00598907470703125, -0.00785064697265625, -0.038787841796875, 0.005870819091796875, -0.0252838134765625, 0.0250701904296875, -0.0097198486328125, -0.02392578125, -0.0008826255798339844, -0.0276641845703125, -0.0277862548828125, -0.01377105712890625, -0.03173828125, 0.01357269287109375, -0.0477294921875, 0.0159912109375, 0.01934814453125, 0.034088134765625, 0.00470733642578125, -0.014801025390625, 0.03424072265625, 0.01055908203125, 0.026763916015625, 0.03607177734375, -0.0290985107421875, 0.096435546875, -0.0694580078125, 0.045257568359375, -0.037628173828125, 0.022430419921875, -0.0079498291015625, 0.0298004150390625, -0.02618408203125, 0.04736328125, 0.029937744140625, 0.0258331298828125, -0.012725830078125, 0.01861572265625, 0.00843048095703125, 0.04681396484375, -0.0267181396484375, 0.0386962890625, 0.020751953125, 0.032989501953125, -0.0296630859375, 0.036376953125, -0.0865478515625, 0.00554656982421875, -0.04278564453125, 0.00160980224609375, 0.03485107421875, 0.0178070068359375, -0.014129638671875, -0.0166168212890625, 0.0002682209014892578, -0.0445556640625, 0.0043182373046875, 0.029022216796875, 0.020965576171875, -0.00036072731018066406, -0.0214691162109375, 0.004459381103515625, -0.01534271240234375, -0.01006317138671875, -0.0041046142578125, -0.0129241943359375, 0.020660400390625, -0.00653076171875, 0.00852203369140625, 0.017242431640625, -0.007732391357421875, 0.0014734268188476562, -0.00368499755859375, -0.047760009765625, -0.021636962890625, 0.0078887939453125, -0.0236358642578125, 0.0268707275390625, -0.0062103271484375, 0.00798797607421875, -0.01849365234375, 0.0262908935546875, -0.044677734375, 0.0289154052734375, -0.0161285400390625, 0.003955841064453125, -0.009765625, -0.019195556640625, -0.03271484375, -0.02130126953125, -0.01148223876953125, -0.04217529296875, 0.01409912109375, -0.0246734619140625, -0.003971099853515625, 0.013336181640625, -0.0139923095703125, 0.0157470703125, 0.0162353515625, 0.0253448486328125, -0.047271728515625, 0.037200927734375, -0.0226287841796875, -0.00624847412109375, 0.012420654296875, 0.027099609375, 0.04730224609375, 0.0390625, 0.0230255126953125, -0.001544952392578125, 0.05633544921875, 0.0012187957763671875, -0.0213623046875, -0.0152587890625, 0.01480865478515625, -0.03082275390625, 0.0236053466796875, -0.00971221923828125, 0.02276611328125, 0.00839996337890625, 0.060791015625, 0.020355224609375, -0.00553131103515625, -0.01235198974609375, 0.00820159912109375, 0.0247802734375, -0.09588623046875, 0.0036716461181640625, -0.0249176025390625, -0.0238494873046875, 0.026123046875, 0.035400390625, 0.053497314453125, 0.0301971435546875, 0.00345611572265625, 0.02783203125, 0.0019969940185546875, 0.0008945465087890625, 0.0019397735595703125, 0.00982666015625, 0.0173492431640625, 0.0177154541015625, -0.021484375, 0.028289794921875, 0.0028209686279296875, -0.00876617431640625, 0.0251922607421875, 0.02825927734375, 0.00061798095703125, 0.028900146484375, -0.045654296875, 0.0369873046875, 0.005855560302734375, -0.0105133056640625, -0.0027828216552734375, 0.033294677734375, -0.021759033203125, -0.0294036865234375, -0.05279541015625, 0.007904052734375, -0.009033203125, 0.03668212890625, -0.033660888671875, -0.052642822265625, 0.0276031494140625, -0.074951171875, -0.0230560302734375, 0.0202178955078125, 0.0258026123046875, 0.01812744140625, -0.00888824462890625, -0.0144805908203125, 0.015167236328125, 0.00719451904296875, 0.0011119842529296875, 0.005157470703125, 0.0218505859375, 0.030242919921875, 0.04071044921875, 0.0101318359375, -0.027069091796875, 0.051849365234375, -0.012725830078125, -0.032012939453125, 0.024200439453125, 0.0205841064453125, 0.0360107421875, -0.033233642578125, 0.0189971923828125, 0.035552978515625, 0.0472412109375, -0.05657958984375, 0.0271148681640625, -0.01107025146484375, -0.028717041015625, 0.008209228515625, 0.0030002593994140625, -0.0080108642578125, -0.0215301513671875, -0.017486572265625, 0.027435302734375, 0.00922393798828125, 0.037506103515625, 0.001644134521484375, 0.0565185546875, -0.006649017333984375, 0.04254150390625, -0.001407623291015625, 0.0452880859375, 0.0014524459838867188, 0.024261474609375, -0.01274871826171875, -0.0992431640625, -0.01418304443359375, 0.01348876953125, 0.004070281982421875, 0.01751708984375, -0.0168304443359375, 0.02166748046875, -0.01409912109375, -0.018096923828125, -0.0132293701171875, 0.039459228515625, 0.027374267578125, 0.005260467529296875, -0.00750732421875, -0.018829345703125, 0.0019779205322265625, 0.036102294921875, -0.09521484375, 0.0003185272216796875, 0.07769775390625, 0.0228729248046875, -0.054718017578125, 0.0298004150390625, 0.006145477294921875, -0.0211181640625, -0.04345703125, 0.03546142578125, 0.02569580078125, -0.0003199577331542969, -0.0306243896484375, -0.039215087890625, 0.0677490234375, -0.0252227783203125, -0.01451873779296875, -0.01467132568359375, -0.035980224609375, 0.01540374755859375, 0.01313018798828125, 0.032562255859375, 0.01294708251953125, -0.018890380859375, -0.00923919677734375, 0.049285888671875, -0.00252532958984375, -0.0272674560546875, 0.010589599609375, 0.01419830322265625, 0.01076507568359375, -0.00034618377685546875, -0.0266265869140625, 0.002155303955078125, -0.0027751922607421875, 0.0186614990234375, 0.0207977294921875, 0.0261383056640625, -0.0038394927978515625, -0.01345062255859375, 0.00437164306640625, -0.0113067626953125, -0.016632080078125, 0.025054931640625, 0.036773681640625, -0.05706787109375, -0.038177490234375, 0.0062713623046875, -0.0014400482177734375, -0.01103973388671875, -0.00374603271484375, 0.06500244140625, 0.0206146240234375, -0.0165557861328125, -0.057708740234375, -0.0782470703125, 0.0034847259521484375, 0.0241241455078125, -0.00981903076171875, -0.005645751953125, 0.01605224609375, 0.03076171875, -0.0283355712890625, 0.038482666015625, -0.0416259765625, -0.007293701171875, 0.045623779296875, -0.031646728515625, 0.061981201171875, -0.0498046875, 0.02056884765625, 0.050018310546875, -0.042449951171875, 0.02593994140625, 0.0041961669921875, -0.0113372802734375, 0.022552490234375, -0.01061248779296875, -0.03131103515625, -0.01212310791015625, -0.07012939453125, -0.028564453125, 0.0239410400390625, 0.016937255859375, 0.006183624267578125, -0.036956787109375, -0.0024433135986328125, 0.035614013671875, -0.05413818359375, -0.05126953125, -0.0051727294921875, -0.035919189453125, 0.03070068359375, 0.00890350341796875, 0.00519561767578125, -0.03631591796875, 0.032684326171875, 0.017547607421875, 0.0014905929565429688, -0.0565185546875, -0.052459716796875, -0.07073974609375, -0.061798095703125, -0.0168914794921875, 0.00691986083984375, -0.00168609619140625, 0.00926971435546875, -0.0119476318359375, -0.00782012939453125, -0.049835205078125, 0.007015228271484375, 0.06170654296875, -0.00018906593322753906, -0.012664794921875, 0.0102691650390625, -0.05224609375, -0.012359619140625, 0.0026645660400390625, 0.061737060546875, 0.0245208740234375, -0.0203399658203125, 0.0199737548828125, 0.0106048583984375, -0.0003459453582763672, 0.0264892578125, -0.0193328857421875, -0.004268646240234375, 0.022979736328125, 0.004390716552734375, -0.04193115234375, -0.06512451171875, -0.007358551025390625, -0.045318603515625, 0.050872802734375, 0.0175933837890625, 0.005664825439453125, 0.00045013427734375, 0.03778076171875, 0.0269012451171875, 0.00026416778564453125, 0.0202178955078125, -0.049560546875, -0.0059051513671875, 0.01486968994140625, 0.02899169921875, -0.022918701171875, 0.0254364013671875, -0.034393310546875, 0.0198974609375, 0.0009069442749023438, -0.0195770263671875, -0.0054473876953125, 0.0042266845703125, -0.0128631591796875, -0.07171630859375, 0.04827880859375, -0.090576171875, -0.03179931640625, -0.054962158203125, -0.0113677978515625, -0.023956298828125, 0.0845947265625, 0.00653839111328125, -0.026702880859375, 0.00647735595703125, 0.0212554931640625, -0.0380859375, -0.004749298095703125, -0.0340576171875, -0.00945281982421875, -0.064697265625, 0.00655364990234375, -0.005962371826171875, -0.034576416015625, 0.008331298828125, -0.0028629302978515625, -0.031646728515625, -0.02825927734375, 0.02325439453125, 0.002086639404296875, -0.0190582275390625, 0.036468505859375, -0.0256805419921875, 0.0209808349609375, -0.023773193359375, -0.003162384033203125, -0.0246429443359375, -0.026641845703125, 0.05279541015625, 0.0335693359375, -0.019989013671875, -0.0189666748046875, -0.0190277099609375, 0.05560302734375, 0.01309967041015625, 0.03271484375, 0.02923583984375, 0.005260467529296875, -0.0116119384765625, 0.006702423095703125, 0.035888671875, -0.0307769775390625, 0.00830078125, -0.037994384765625, -0.0289154052734375, -0.00323486328125, -0.0225982666015625, 0.06060791015625, 0.0025806427001953125, -0.0100555419921875, -0.1092529296875, -0.0338134765625, -0.004467010498046875, -0.0033588409423828125, -0.00412750244140625, -0.0029296875, -0.0253143310546875, -0.086669921875, 0.030487060546875, -0.023040771484375, 0.00032019615173339844, 0.0205535888671875, 0.034271240234375, 0.00435638427734375, -0.0064849853515625, 0.0102081298828125, 0.01898193359375, 0.03125, 0.002910614013671875, 0.02935791015625, -0.01018524169921875, -0.0033435821533203125, 0.036163330078125, -0.0081939697265625, 0.0206756591796875, -0.0032253265380859375, 0.02435302734375, 0.0012359619140625, 0.0018758773803710938, 0.01031494140625, -0.022369384765625, 0.0198974609375, 0.015106201171875, -0.0135650634765625, -0.0020503997802734375, -0.06585693359375, 0.02642822265625, 0.0305023193359375, -0.00994873046875, -0.052734375, -0.017669677734375, 0.006969451904296875, 0.0184173583984375, 0.056640625, 0.0253143310546875, -0.00980377197265625, 0.029083251953125, 0.017364501953125, 0.0035152435302734375, -0.027984619140625, -0.0340576171875, -0.03411865234375, 0.00838470458984375, -0.032012939453125, -0.0109405517578125, -0.0010271072387695312, 0.0016508102416992188, 0.009613037109375, -0.011199951171875, -0.00960540771484375, -0.03369140625, -0.040618896484375, -0.00225830078125, 0.01476287841796875, -0.00783538818359375, 0.02496337890625, 0.0055084228515625, -0.01515960693359375, 0.011322021484375, -0.052490234375, 0.001071929931640625, -0.045257568359375, 0.0279541015625, 0.0032176971435546875, -0.005321502685546875, -0.005401611328125, 0.0718994140625, 0.01555633544921875, 0.026824951171875, -0.00449371337890625, -0.01451873779296875, 0.023284912109375, 0.03179931640625, 0.029388427734375, -0.0222015380859375, -0.029388427734375, 0.01006317138671875, 0.030609130859375, -0.03619384765625, -0.016754150390625, 0.021881103515625, 0.0452880859375, -0.025909423828125, -0.01953125, 0.0028324127197265625, -0.01494598388671875, -0.0070953369140625, 0.007068634033203125, -0.044891357421875, -0.0194549560546875, -0.0260467529296875, -0.003452301025390625, 0.016876220703125, -0.0225830078125, -0.022674560546875, 0.01561737060546875, -0.03839111328125, 0.024932861328125, -0.004695892333984375, 0.01025390625, 0.004669189453125, -0.004657745361328125, -0.022918701171875, -0.0264434814453125, 0.008941650390625, -0.0211639404296875, 0.0063323974609375, -0.034881591796875, -0.023895263671875, 0.0478515625, 0.0299530029296875, 0.09326171875, -0.0335693359375, -0.07147216796875, 0.0207061767578125, -0.0141143798828125, 0.03948974609375, 0.01279449462890625, -0.07861328125, 0.00598907470703125, -0.009552001953125, 0.007904052734375, 0.04107666015625, -0.003986358642578125, -0.0345458984375, -0.02789306640625, 0.0188446044921875, 0.0218505859375, 0.00937652587890625, -0.034942626953125, -0.0269622802734375, -0.01197052001953125, 0.02142333984375, -0.007232666015625, -0.01332855224609375, 0.022491455078125, -0.002178192138671875, 0.034149169921875, -0.0085296630859375, -0.0198974609375, -0.02197265625, -0.0147857666015625, -0.00206756591796875, -0.033538818359375, -0.01226043701171875, -0.0008411407470703125, -0.033203125, 0.0277862548828125, 0.06512451171875, 0.0141754150390625, 0.0090179443359375, -0.028076171875, 0.0009670257568359375, -0.01873779296875, 0.01454925537109375, -0.03179931640625, -0.023651123046875, 0.04443359375, 0.007720947265625, 0.048004150390625, 0.01107025146484375, -0.0265350341796875, 0.006130218505859375, 0.004360198974609375, 0.02490234375, 0.0172119140625, -0.043365478515625, 0.0408935546875, 0.048248291015625, 0.0283203125, 0.035797119140625, 0.0032711029052734375, 0.017547607421875, 0.0037403106689453125, 0.01457977294921875, 0.0416259765625, 0.01727294921875, 0.0430908203125, -0.0048370361328125, 0.0112152099609375, 0.03253173828125, -0.018890380859375, -0.022979736328125, 0.0673828125, 0.059234619140625, -0.0855712890625, -0.0175628662109375, 0.00605010986328125, 0.0034503936767578125, 0.0008559226989746094, 0.0209197998046875, -0.0150146484375, -0.02227783203125, -0.0025634765625, -0.048736572265625, -0.0196075439453125, -0.020263671875, -0.0153045654296875, 0.01953125, 0.040863037109375, 0.0560302734375, -0.0010356903076171875, -0.0455322265625, -0.058990478515625, 0.0264739990234375, -0.0143280029296875, -0.0072479248046875, -0.0257568359375, 0.01348876953125, -0.0124359130859375, 0.0121002197265625, 0.0673828125, -0.042388916015625, 0.0693359375, 0.01666259765625, -0.0016040802001953125, 0.01024627685546875, 0.023895263671875, -0.0124359130859375, 0.00809478759765625, -0.0079345703125, -0.03515625, 0.06878662109375, 0.004024505615234375, -0.00768280029296875, 0.01486968994140625, -0.060577392578125, -0.032867431640625, -0.048370361328125, 0.0601806640625, -0.016815185546875, 0.0172119140625, 0.07061767578125, -0.035736083984375, -0.034637451171875, 0.01434326171875, 0.046905517578125, 0.00885009765625, -0.00785064697265625, 0.0264434814453125, -0.00968170166015625, 0.0214691162109375, -0.00662994384765625, 0.01442718505859375, 0.015960693359375, -0.0179443359375, -0.06524658203125, 0.040802001953125, -0.03155517578125, 0.04864501953125, 0.018218994140625, 0.0010480880737304688, 0.013702392578125, -0.009979248046875, -0.0251312255859375, 0.041015625, 0.030670166015625, 0.049468994140625, -0.0275421142578125, -0.04052734375, 0.042266845703125, 0.068115234375, 0.0867919921875, 0.019439697265625, -0.0235443115234375, 0.0180511474609375, 0.071533203125, -0.0115203857421875, -0.03704833984375, 0.047607421875, -0.012542724609375, -0.023529052734375, 0.03228759765625, 0.007781982421875, 0.0245819091796875, 0.019378662109375, -0.0289459228515625, 0.0029964447021484375, 0.029083251953125, 0.037109375, 0.004940032958984375, 0.039886474609375, 0.0166168212890625, -0.01438140869140625, 0.016326904296875, -0.056427001953125, 0.01004791259765625, 0.002391815185546875, 0.02008056640625, -0.046112060546875, 0.01137542724609375, -0.039581298828125, 0.05242919921875, 0.0086822509765625, 0.0205841064453125, 0.025054931640625, 0.0081329345703125, 0.1043701171875, -0.02764892578125, 0.005062103271484375, 0.00331878662109375, -0.00846099853515625, 0.07470703125, 0.0238189697265625, 0.03387451171875, -0.0184478759765625, 0.0157318115234375, 0.045806884765625, 0.06939697265625, -0.047821044921875, -0.065185546875, 0.01485443115234375, -0.00850677490234375, 0.0128936767578125, -0.0004870891571044922, -0.0017910003662109375, -0.036468505859375, 0.00994873046875, -0.053680419921875, 0.003658294677734375, 0.04351806640625, 0.0528564453125, 0.0002143383026123047, -0.03179931640625, -0.064208984375, -0.0237884521484375, -0.052001953125, 0.041168212890625, 0.0251312255859375, 0.0716552734375, 0.00803375244140625, 0.0755615234375, -0.03594970703125, -0.049652099609375, 0.01232147216796875, 0.006877899169921875, -0.01885986328125, -0.01457977294921875, -0.01471710205078125, -0.036407470703125, 0.0161895751953125, 0.0439453125, 0.0163726806640625, 0.0008778572082519531, 0.0151214599609375, 0.038848876953125, 0.034698486328125, -0.0137786865234375, 0.0299072265625, 0.0049896240234375, 0.029571533203125, -0.041351318359375, 0.06927490234375, 0.0225982666015625, 0.0228118896484375, -0.01277923583984375, 0.034576416015625, 0.0311737060546875, -0.0125274658203125, 0.0279541015625, -0.0012111663818359375, -0.024932861328125, 0.036834716796875, -0.0362548828125, 0.060760498046875, 0.0002321004867553711, -0.040771484375, -0.01235198974609375, -0.0224761962890625, -0.031829833984375, 0.0252532958984375, 0.039398193359375, -0.011627197265625, 0.0242767333984375, 0.006397247314453125, 0.0007543563842773438, 0.014190673828125, -0.026336669921875, 0.00665283203125, -0.0312042236328125, -0.0014009475708007812, -0.0020732879638671875, -0.0165557861328125, -0.0025157928466796875, -0.004909515380859375, -0.0073699951171875, 0.0240020751953125, 0.08636474609375, -0.01064300537109375, 0.00870513916015625, -0.0259246826171875, 0.0179901123046875, -0.036285400390625, -0.03173828125, 0.059539794921875, -0.00890350341796875, -0.0257110595703125, -0.00551605224609375, 0.00820159912109375, -0.012725830078125, 0.045135498046875, -0.043792724609375, -0.026031494140625, -0.0284576416015625, 0.040008544921875, -0.0080108642578125, 0.0509033203125, -0.01235198974609375, -0.0655517578125, -0.05609130859375, 0.011627197265625, -0.0006108283996582031, 0.014984130859375, -0.013275146484375, -0.004772186279296875, 0.0005459785461425781, -0.030914306640625, -0.003116607666015625, 0.00928497314453125, 0.023681640625, 0.0484619140625, -0.0139923095703125, 0.04931640625, 0.035186767578125, -0.0157470703125, 0.04949951171875, -0.00035452842712402344, -0.0204315185546875, 0.044158935546875, -0.07861328125, -0.0022754669189453125, 0.0265045166015625, 0.01189422607421875, -0.015899658203125, 0.002140045166015625, 0.020416259765625, -0.034942626953125, 0.0081024169921875, -0.01177215576171875, -0.05120849609375, -0.0242919921875, 0.0081787109375, -0.000047147274017333984, 0.01546478271484375, -0.026947021484375, -0.04241943359375, 0.01395416259765625, 0.04364013671875, 0.00433349609375, -0.0401611328125, 0.00736236572265625, -0.0116119384765625, 0.0830078125, -0.0167236328125, -0.0435791015625, 0.003185272216796875, -0.003704071044921875, -0.03521728515625, 0.017333984375, -0.0660400390625, -0.05596923828125, -0.049163818359375, 0.01959228515625, 0.02978515625, -0.032623291015625, -0.026214599609375, -0.004474639892578125, -0.002971649169921875, 0.06719970703125, 0.03582763671875, -0.019683837890625, -0.01163482666015625, 0.029052734375, -0.0189056396484375, -0.02142333984375, 0.01535797119140625, -0.01812744140625, -0.00789642333984375, -0.00510406494140625, -0.011077880859375, 0.01007843017578125, -0.0419921875, -0.050872802734375, 0.07464599609375, -0.00931549072265625, -0.0175018310546875, -0.032867431640625, -0.0007328987121582031, -0.0369873046875, 0.07781982421875, -0.0085601806640625, -0.0011081695556640625, -0.01258087158203125, 0.042266845703125, 0.019378662109375, 0.01464080810546875, 0.004947662353515625, 0.00490570068359375, -0.0170440673828125, 0.03631591796875, 0.032501220703125, 0.0233001708984375, 0.034454345703125, -0.0112762451171875, 0.0090179443359375, 0.03802490234375, -0.045623779296875, -0.03460693359375, -0.032501220703125, -0.0206146240234375, 0.03558349609375, -0.04534912109375, -0.0433349609375, -0.08203125, 0.008056640625, -0.0253448486328125, 0.00677490234375, 0.042388916015625, -0.029388427734375, -0.0238037109375, 0.01348876953125, 0.00746917724609375, 0.0092010498046875, -0.0626220703125, 0.0160064697265625, 0.032623291015625, 0.00283050537109375, -0.0115814208984375, 0.02947998046875, -0.0374755859375, -0.004291534423828125, 0.0386962890625, 0.0126800537109375, -0.071044921875, -0.0006670951843261719, 0.00218963623046875, -0.0211334228515625, -0.03057861328125, 0.000354766845703125, 0.005886077880859375, -0.03900146484375, -0.0254974365234375, -0.0285797119140625, -0.0009546279907226562, -0.0017137527465820312, 0.0023059844970703125, 0.002513885498046875, 0.0289459228515625, -0.005214691162109375, 0.00858306884765625, -0.032867431640625, 0.03704833984375, 0.007663726806640625, 0.0171051025390625, -0.01497650146484375, 0.051788330078125, 0.03314208984375, 0.08404541015625, 0.0014629364013671875, -0.0094451904296875, -0.010650634765625, 0.05230712890625, -0.02630615234375, 0.00039696693420410156, -0.00531768798828125, -0.056854248046875, -0.0015954971313476562, -0.0071563720703125, -0.03271484375, -0.0293121337890625, -0.015899658203125, -0.021575927734375, -0.0207061767578125, 0.00691986083984375 ]
f5e62ef70ea55a51ff530b73c28818a207cdf90a
Wordpress Stackexchange Q: What's the proper way to add a favicon in Wordpress without a plugin? What's the proper way to add a favicon in Wordpress without a plugin? Do I just place a file called favicon.ico with my icon into the root of my site? Do I also need this code? <link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/x-icon" /> Some say it's this code: <link rel="icon" type="image/png" href="http://yourblog.com/favicon.png" /> And this is for iPhones? <link rel="apple-touch-icon" href="/customIcon.png" /> Any suggestions on software to create it or to convert it from a thumbnail? And what types of files are supported - just .ico? I saw another thread with so many methods and I was unclear about the best practice for this simple task: How to change the WordPress favicon? A: A lot will depend on the theme you're using. If the theme is defining your favicon (with a <link> tag in the header), then you'll need to replace favicon.ico in your theme to change it. But if your theme isn't defining anything, placing a favicon.ico at the root of your site should be enough.
Q: What's the proper way to add a favicon in Wordpress without a plugin? What's the proper way to add a favicon in Wordpress without a plugin? Do I just place a file called favicon.ico with my icon into the root of my site? Do I also need this code? <link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/x-icon" /> Some say it's this code: <link rel="icon" type="image/png" href="http://yourblog.com/favicon.png" /> And this is for iPhones? <link rel="apple-touch-icon" href="/customIcon.png" /> Any suggestions on software to create it or to convert it from a thumbnail? And what types of files are supported - just .ico? I saw another thread with so many methods and I was unclear about the best practice for this simple task: How to change the WordPress favicon? A: A lot will depend on the theme you're using. If the theme is defining your favicon (with a <link> tag in the header), then you'll need to replace favicon.ico in your theme to change it. But if your theme isn't defining anything, placing a favicon.ico at the root of your site should be enough. A: Be patient, core is there for help This is a planned feature, with two assigned core devs, that comes with 3.4. A: I usually put the icons in an images folder inside my theme so I'd use function kia_add_favicon(){ ?> <!-- Custom Favicons --> <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri();?>/images/favicon.ico"/> <link rel="apple-touch-icon" href="<?php echo get_stylesheet_directory_uri(); ?>/apple-touch-icon.png"> <?php } add_action('wp_head','kia_add_favicon'); edited: to add the apple touch icon per the comment, and to clarify that if you are using a child theme, but the favicon is in the parent theme's image folder, you'd use get_template_directory_url(); if you are not using a child theme, then either will work I usually create my favicons here: http://tools.dynamicdrive.com/favicon/ A: Actually, the correct method to add a favicon is via a Plugin, so that the added favicon is not Theme-dependent. Essentially, use @helgatheviking's method, but put it in a custom Plugin, rather than in your Theme's functions.php file. Note: if you're using a top-level domain, i.e. example.com, just drop favicon.ico in the document root, and you're done. For anything else, create a custom Plugin. Note 2: Refer to Trac Ticket #16434. A site favicon option is being added to core, hopefully version one of which will land in the upcoming 3.4 release.
wordpress
{ "language": "en", "length": 386, "provenance": "stackexchange_00019.jsonl.gz:417581", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43928" }
[ 0.04718017578125, 0.007740020751953125, 0.031982421875, 0.0218353271484375, 0.0042724609375, -0.0232086181640625, 0.06683349609375, -0.05780029296875, -0.029693603515625, 0.016448974609375, 0.006420135498046875, 0.00004458427429199219, -0.039947509765625, -0.032928466796875, -0.0044097900390625, -0.044158935546875, 0.04547119140625, -0.0227813720703125, 0.04412841796875, 0.00029540061950683594, 0.0012769699096679688, 0.0308074951171875, 0.0677490234375, 0.047607421875, 0.022857666015625, -0.0498046875, 0.125732421875, -0.00988006591796875, 0.01186370849609375, -0.02093505859375, 0.0301971435546875, -0.0103302001953125, 0.031585693359375, 0.01357269287109375, -0.00969696044921875, 0.06365966796875, 0.019134521484375, -0.002475738525390625, 0.0083160400390625, 0.023681640625, 0.01812744140625, -0.00867462158203125, 0.0274505615234375, 0.033050537109375, -0.0081329345703125, -0.0203857421875, -0.0028553009033203125, -0.051788330078125, -0.00817108154296875, -0.059906005859375, -0.0033397674560546875, 0.0224456787109375, 0.0340576171875, -0.027740478515625, -0.0140533447265625, 0.00850677490234375, 0.0063629150390625, -0.01026153564453125, 0.03436279296875, -0.01390838623046875, -0.0182037353515625, -0.00701904296875, 0.019500732421875, 0.0005192756652832031, 0.0206298828125, -0.01561737060546875, -0.026275634765625, 0.01904296875, -0.042572021484375, 0.02716064453125, 0.0450439453125, -0.0271453857421875, 0.00466156005859375, -0.034271240234375, 0.0290374755859375, 0.0159912109375, -0.04400634765625, -0.0261077880859375, 0.034454345703125, 0.0096435546875, 0.0177764892578125, 0.00858306884765625, -0.004779815673828125, -0.04510498046875, 0.0189971923828125, -0.01509857177734375, -0.00540924072265625, -0.005222320556640625, -0.046295166015625, -0.031768798828125, -0.034912109375, -0.01419830322265625, -0.07666015625, 0.004608154296875, -0.005092620849609375, 0.00865936279296875, -0.04925537109375, 0.01451873779296875, -0.0189361572265625, 0.05169677734375, 0.00806427001953125, -0.03173828125, 0.0906982421875, -0.070068359375, -0.0118560791015625, 0.0518798828125, 0.000469207763671875, 0.01326751708984375, 0.0023441314697265625, 0.0266265869140625, 0.0059967041015625, -0.03424072265625, 0.02154541015625, -0.03314208984375, -0.0200653076171875, 0.01953125, 0.01885986328125, -0.008819580078125, 0.01032257080078125, -0.0126953125, 0.020965576171875, 0.049407958984375, -0.006893157958984375, -0.024658203125, -0.0071258544921875, -0.0128326416015625, -0.0019054412841796875, -0.0347900390625, 0.0003345012664794922, 0.0244293212890625, -0.042938232421875, -0.0068511962890625, 0.0992431640625, 0.062408447265625, 0.03509521484375, -0.031585693359375, -0.0162353515625, -0.00557708740234375, 0.0118865966796875, 0.022491455078125, 0.02117919921875, -0.072509765625, -0.005420684814453125, 0.037261962890625, 0.01702880859375, 0.0191650390625, -0.001056671142578125, 0.0298004150390625, 0.0140838623046875, -0.0247955322265625, 0.016082763671875, -0.02056884765625, 0.0221099853515625, 0.0056915283203125, 0.007144927978515625, -0.0161285400390625, 0.04449462890625, -0.0312042236328125, 0.0028057098388671875, -0.04473876953125, -0.0361328125, -0.0138702392578125, 0.0218505859375, 0.00014030933380126953, 0.01131439208984375, 0.01511383056640625, 0.0150146484375, 0.0207977294921875, 0.01629638671875, 0.006252288818359375, 0.015380859375, -0.017791748046875, 0.0227508544921875, -0.01171875, -0.0117034912109375, 0.0082855224609375, 0.047149658203125, 0.01468658447265625, 0.005809783935546875, 0.08367919921875, 0.02288818359375, -0.0176544189453125, 0.07952880859375, -0.03143310546875, -0.053619384765625, 0.0540771484375, 0.00795745849609375, 0.09539794921875, -0.006496429443359375, 0.0265350341796875, -0.0030059814453125, 0.0238037109375, -0.05706787109375, 0.0496826171875, -0.01235198974609375, -0.004268646240234375, -0.03204345703125, 0.0187835693359375, -0.0159149169921875, -0.02838134765625, -0.015960693359375, 0.0119781494140625, -0.0102386474609375, 0.0116119384765625, -0.04571533203125, 0.00939178466796875, -0.0223236083984375, 0.0313720703125, 0.02484130859375, -0.0002799034118652344, 0.003124237060546875, -0.004322052001953125, 0.0201873779296875, -0.0823974609375, -0.0679931640625, 0.0131378173828125, -0.017242431640625, -0.0230865478515625, -0.0230865478515625, 0.0077667236328125, -0.0113372802734375, -0.0195465087890625, -0.02947998046875, 0.021728515625, 0.03302001953125, 0.0091094970703125, -0.03570556640625, -0.01140594482421875, 0.0019350051879882812, 0.01532745361328125, -0.053955078125, 0.048004150390625, -0.0357666015625, -0.018341064453125, -0.01154327392578125, 0.0034465789794921875, -0.00652313232421875, -0.07550048828125, 0.01219940185546875, 0.0496826171875, 0.02178955078125, 0.033477783203125, -0.0009207725524902344, 0.0260772705078125, 0.0283355712890625, -0.044219970703125, 0.0087738037109375, -0.0019817352294921875, 0.0018901824951171875, -0.01715087890625, 0.047210693359375, -0.058929443359375, 0.021453857421875, -0.09381103515625, 0.0205078125, -0.0029010772705078125, -0.0118560791015625, 0.0022830963134765625, 0.0015773773193359375, -0.0321044921875, 0.0128021240234375, -0.003173828125, -0.037017822265625, 0.00577545166015625, -0.01129913330078125, 0.0015306472778320312, -0.005901336669921875, 0.01161956787109375, -0.032440185546875, -0.006496429443359375, 0.042144775390625, 0.03375244140625, -0.0109405517578125, 0.03094482421875, 0.0131072998046875, 0.01451873779296875, -0.0206298828125, 0.00197601318359375, 0.0110931396484375, 0.0235748291015625, -0.0255889892578125, -0.00286865234375, -0.0094146728515625, -0.01220703125, -0.00890350341796875, -0.0268707275390625, 0.0191192626953125, 0.0098876953125, -0.02081298828125, 0.0016145706176757812, 0.0161590576171875, 0.01383209228515625, -0.032318115234375, 0.015167236328125, -0.0046234130859375, -0.0016613006591796875, -0.0521240234375, -0.07244873046875, 0.055938720703125, -0.051177978515625, 0.0037097930908203125, 0.079345703125, 0.0006542205810546875, 0.00669097900390625, 0.005359649658203125, -0.001041412353515625, -0.0127105712890625, 0.01267242431640625, 0.0016412734985351562, -0.00743865966796875, -0.0065460205078125, 0.0699462890625, 0.01415252685546875, 0.0164794921875, -0.01251983642578125, -0.0382080078125, -0.0187225341796875, 0.000020503997802734375, -0.0875244140625, -0.061798095703125, -0.0241851806640625, -0.035186767578125, 0.0015192031860351562, 0.0024013519287109375, -0.01499176025390625, 0.007488250732421875, 0.0230560302734375, 0.0120391845703125, -0.053680419921875, -0.033294677734375, 0.026214599609375, -0.06494140625, -0.029815673828125, -0.0196075439453125, 0.0153656005859375, 0.01306915283203125, 0.0164642333984375, -0.0270538330078125, -0.00839996337890625, -0.0063323974609375, 0.0094757080078125, 0.0557861328125, 0.0020351409912109375, -0.03924560546875, 0.0421142578125, -0.052825927734375, -0.027740478515625, 0.0011644363403320312, 0.032501220703125, 0.007476806640625, -0.0089874267578125, -0.0013608932495117188, -0.01470184326171875, -0.05401611328125, -0.0186767578125, 0.031402587890625, 0.0120697021484375, -0.04766845703125, 0.022369384765625, -0.06573486328125, -0.0166473388671875, 0.01261138916015625, -0.008575439453125, 0.045440673828125, -0.033966064453125, -0.0140533447265625, 0.00952911376953125, 0.042266845703125, -0.0283660888671875, -0.007640838623046875, 0.0155029296875, -0.02227783203125, 0.019317626953125, -0.01397705078125, -0.0158233642578125, -0.016632080078125, 0.0201568603515625, -0.00289154052734375, 0.020263671875, 0.0084228515625, 0.050689697265625, -0.0043182373046875, 0.03533935546875, -0.0501708984375, -0.0269775390625, 0.0269012451171875, -0.01236724853515625, 0.0269622802734375, -0.019287109375, -0.0299835205078125, -0.0262908935546875, 0.0699462890625, 0.0072174072265625, -0.0277862548828125, 0.012176513671875, 0.0284576416015625, -0.022064208984375, -0.048675537109375, 0.00394439697265625, -0.0277557373046875, -0.06866455078125, 0.00605010986328125, -0.005859375, -0.0256805419921875, 0.00377655029296875, -0.0287628173828125, -0.03125, -0.0310516357421875, 0.031402587890625, -0.02667236328125, -0.0283050537109375, 0.037689208984375, -0.04632568359375, 0.020050048828125, -0.03411865234375, -0.0186614990234375, -0.051788330078125, -0.01548004150390625, -0.06756591796875, 0.0706787109375, 0.03851318359375, -0.005496978759765625, -0.0233001708984375, 0.03448486328125, -0.0257415771484375, 0.036712646484375, -0.00881195068359375, 0.047515869140625, -0.0308380126953125, -0.0312347412109375, -0.00019621849060058594, -0.033843994140625, -0.0025539398193359375, 0.0024242401123046875, -0.051025390625, 0.02569580078125, 0.01203155517578125, 0.033294677734375, 0.044677734375, -0.04150390625, -0.01113128662109375, -0.02215576171875, -0.0355224609375, 0.01180267333984375, -0.005588531494140625, -0.0088653564453125, -0.033477783203125, -0.024169921875, 0.06622314453125, 0.008636474609375, 0.0233154296875, 0.00415802001953125, 0.12109375, 0.01288604736328125, -0.03009033203125, -0.045379638671875, 0.005802154541015625, 0.007396697998046875, -0.00702667236328125, 0.0260162353515625, -0.017608642578125, 0.00177001953125, 0.0312347412109375, -0.042938232421875, 0.006988525390625, 0.0196075439453125, 0.0039520263671875, 0.0158843994140625, -0.047821044921875, 0.03839111328125, 0.016448974609375, -0.01352691650390625, 0.026641845703125, -0.00624847412109375, 0.0034427642822265625, 0.032318115234375, 0.01505279541015625, -0.03228759765625, -0.00705718994140625, -0.016510009765625, -0.0175323486328125, 0.00821685791015625, -0.0077362060546875, 0.053924560546875, 0.0022335052490234375, 0.01154327392578125, 0.0112762451171875, 0.03143310546875, -0.00841522216796875, -0.00995635986328125, 0.02838134765625, -0.0270538330078125, 0.022247314453125, -0.0195465087890625, -0.02581787109375, -0.032073974609375, -0.0204010009765625, 0.09503173828125, 0.053558349609375, -0.007602691650390625, -0.0207977294921875, -0.00029468536376953125, 0.0227203369140625, -0.034423828125, 0.00634002685546875, 0.036407470703125, -0.03997802734375, -0.0018482208251953125, -0.003078460693359375, -0.03533935546875, -0.06884765625, -0.040252685546875, 0.028076171875, 0.020843505859375, -0.0095062255859375, -0.00018417835235595703, 0.017242431640625, 0.033782958984375, -0.0081939697265625, -0.004596710205078125, -0.006237030029296875, 0.002437591552734375, 0.0158538818359375, 0.01824951171875, -0.01033782958984375, -0.00035858154296875, -0.018035888671875, 0.0219879150390625, -0.0146484375, 0.006984710693359375, -0.007472991943359375, 0.0550537109375, -0.03192138671875, -0.022552490234375, 0.017669677734375, -0.07196044921875, -0.005092620849609375, 0.0306854248046875, -0.0160675048828125, -0.049560546875, -0.007843017578125, 0.01444244384765625, 0.027740478515625, -0.0362548828125, -0.01448822021484375, 0.01004791259765625, -0.007808685302734375, 0.024017333984375, -0.0223541259765625, -0.00885009765625, 0.0196380615234375, 0.0215606689453125, -0.0098419189453125, -0.0291290283203125, -0.02099609375, -0.06658935546875, 0.0017147064208984375, -0.01367950439453125, 0.00240325927734375, 0.00530242919921875, -0.03546142578125, 0.056488037109375, 0.0024166107177734375, -0.0467529296875, -0.006214141845703125, 0.0308685302734375, 0.01418304443359375, 0.014190673828125, -0.047607421875, 0.0018186569213867188, -0.04644775390625, -0.018585205078125, 0.016357421875, -0.0052032470703125, -0.035186767578125, -0.0186920166015625, 0.01910400390625, 0.042694091796875, -0.0267791748046875, -0.0192413330078125, 0.0104522705078125, 0.029815673828125, 0.003276824951171875, 0.08258056640625, 0.003749847412109375, -0.021514892578125, 0.0057830810546875, 0.0226287841796875, 0.0150299072265625, -0.010223388671875, 0.0214385986328125, -0.04052734375, 0.0108795166015625, -0.0526123046875, -0.0230712890625, -0.00421142578125, -0.00901031494140625, 0.0146026611328125, 0.016082763671875, -0.003444671630859375, 0.0009446144104003906, -0.0169219970703125, -0.0016460418701171875, -0.01219940185546875, 0.037872314453125, 0.0018587112426757812, -0.01352691650390625, 0.0394287109375, 0.0007567405700683594, 0.0091094970703125, 0.0007462501525878906, 0.0011119842529296875, -0.028533935546875, 0.002811431884765625, -0.0251312255859375, 0.00521087646484375, -0.0626220703125, 0.06500244140625, 0.06622314453125, 0.014190673828125, 0.038116455078125, 0.0401611328125, 0.0023193359375, -0.0177764892578125, 0.053314208984375, -0.0301055908203125, -0.0457763671875, 0.024505615234375, 0.01247406005859375, -0.01690673828125, 0.02142333984375, -0.026123046875, 0.026092529296875, 0.044036865234375, 0.058013916015625, -0.056793212890625, -0.0003185272216796875, -0.007251739501953125, -0.044769287109375, 0.048065185546875, 0.0120391845703125, -0.014190673828125, -0.016876220703125, 0.040069580078125, -0.06378173828125, -0.009765625, 0.0175933837890625, -0.020782470703125, -0.00228118896484375, 0.01023101806640625, 0.0274810791015625, 0.0164031982421875, -0.026336669921875, 0.0025653839111328125, 0.0186309814453125, 0.02685546875, -0.0005998611450195312, 0.0155487060546875, -0.01316070556640625, -0.01082611083984375, -0.04937744140625, -0.004123687744140625, -0.02606201171875, -0.01102447509765625, 0.0611572265625, 0.0263519287109375, -0.0008182525634765625, 0.037078857421875, -0.004131317138671875, 0.0141448974609375, -0.0022792816162109375, -0.0096588134765625, 0.00026106834411621094, 0.0062103271484375, 0.00920867919921875, 0.017303466796875, -0.0240478515625, 0.006561279296875, -0.03448486328125, 0.017364501953125, -0.022857666015625, -0.0308837890625, 0.0809326171875, -0.03387451171875, -0.0137786865234375, 0.00734710693359375, 0.01186370849609375, -0.00452423095703125, -0.0148468017578125, 0.052398681640625, -0.042144775390625, -0.02978515625, 0.01296234130859375, -0.01119232177734375, -0.023681640625, -0.0118255615234375, -0.04498291015625, 0.1146240234375, -0.025482177734375, -0.004299163818359375, 0.001857757568359375, 0.055511474609375, -0.01044464111328125, 0.042694091796875, -0.03326416015625, 0.04180908203125, -0.0304107666015625, 0.0286407470703125, -0.0290069580078125, 0.01812744140625, -0.002849578857421875, -0.030670166015625, 0.062286376953125, 0.0126495361328125, -0.041778564453125, -0.00315093994140625, 0.049713134765625, 0.024444580078125, 0.008026123046875, 0.042816162109375, -0.009674072265625, 0.0020961761474609375, 0.0190582275390625, 0.00861358642578125, 0.048065185546875, -0.007640838623046875, -0.045806884765625, -0.003833770751953125, 0.025054931640625, 0.0177154541015625, 0.0191192626953125, -0.0214385986328125, -0.05218505859375, 0.017974853515625, 0.0389404296875, 0.0035190582275390625, 0.008636474609375, 0.049346923828125, 0.01337432861328125, 0.00726318359375, -0.0016946792602539062, -0.021697998046875, 0.053466796875, -0.0205535888671875, -0.0034008026123046875, 0.009246826171875, 0.001972198486328125, -0.05059814453125, 0.0177154541015625, 0.00022220611572265625, 0.046417236328125, -0.022552490234375, 0.00212860107421875, 0.0246429443359375, 0.0028896331787109375, -0.0223236083984375, 0.0198211669921875, 0.044158935546875, 0.0182952880859375, -0.031005859375, -0.0239410400390625, 0.008819580078125, 0.0036678314208984375, 0.04437255859375, -0.004650115966796875, 0.08270263671875, -0.0682373046875, -0.07977294921875, 0.0088348388671875, 0.045196533203125, 0.0462646484375, -0.0011768341064453125, 0.024200439453125, 0.0751953125, -0.09954833984375, 0.05426025390625, 0.0031070709228515625, 0.0170745849609375, 0.007266998291015625, -0.035552978515625, -0.03167724609375, 0.0035076141357421875, 0.056884765625, 0.0379638671875, 0.004364013671875, 0.006103515625, 0.0226287841796875, -0.01678466796875, 0.011962890625, -0.0099945068359375, 0.0134124755859375, 0.0046844482421875, 0.025115966796875, 0.0435791015625, 0.0258331298828125, 0.034088134765625, 0.040496826171875, 0.0084686279296875, 0.01873779296875, -0.00339508056640625, -0.0007715225219726562, -0.03631591796875, 0.023468017578125, 0.037109375, 0.016876220703125, -0.018798828125, -0.021759033203125, 0.0838623046875, -0.038726806640625, 0.029876708984375, -0.01367950439453125, -0.023101806640625, 0.0184326171875, -0.0310821533203125, 0.044677734375, -0.0167388916015625, 0.0048675537109375, 0.0094451904296875, 0.0021152496337890625, -0.07745361328125, 0.000021457672119140625, 0.041046142578125, -0.0127410888671875, -0.011444091796875, 0.007778167724609375, 0.0177001953125, -0.0279693603515625, -0.01126861572265625, 0.020355224609375, -0.0071868896484375, 0.0226287841796875, 0.0218505859375, -0.0169677734375, -0.03729248046875, 0.0103912353515625, 0.0643310546875, 0.00913238525390625, 0.0226593017578125, -0.01806640625, 0.01593017578125, -0.02520751953125, -0.019622802734375, 0.00013887882232666016, -0.0062713623046875, -0.0203704833984375, 0.01239776611328125, -0.0033016204833984375, -0.00672149658203125, -0.05633544921875, 0.040679931640625, 0.0121612548828125, -0.0202178955078125, 0.036224365234375, -0.00762939453125, 0.0151824951171875, -0.00848388671875, -0.005733489990234375, -0.032867431640625, -0.055206298828125, -0.047943115234375, 0.00858306884765625, 0.006927490234375, -0.002559661865234375, -0.03839111328125, 0.0103759765625, -0.011566162109375, -0.03021240234375, 0.0282135009765625, -0.01546478271484375, 0.0222015380859375, 0.027130126953125, 0.0052947998046875, -0.03448486328125, 0.00238037109375, -0.0122528076171875, -0.005237579345703125, 0.006916046142578125, 0.038421630859375, -0.005954742431640625, -0.030487060546875, 0.05059814453125, -0.015228271484375, 0.00033283233642578125, -0.060546875, -0.03240966796875, 0.03857421875, 0.01351165771484375, 0.0169677734375, 0.06634521484375, -0.00821685791015625, -0.0228729248046875, -0.03240966796875, -0.00836944580078125, -0.049774169921875, -0.037109375, -0.078857421875, 0.0032176971435546875, 0.0545654296875, 0.01088714599609375, -0.07318115234375, 0.0176849365234375, -0.012969970703125, 0.07196044921875, -0.0104217529296875, 0.0322265625, -0.0157318115234375, -0.01320648193359375, -0.054046630859375, -0.0528564453125, -0.023040771484375, 0.06304931640625, -0.036590576171875, 0.02215576171875, 0.0250091552734375, -0.022430419921875, -0.0129852294921875, 0.019012451171875, 0.02899169921875, 0.0572509765625, -0.0010652542114257812, -0.0198516845703125, 0.008056640625, -0.015533447265625, -0.017578125, -0.026123046875, 0.0186920166015625, -0.0810546875, -0.03875732421875, -0.046295166015625, 0.0038394927978515625, -0.0082550048828125, -0.04925537109375, -0.06378173828125, 0.01031494140625, -0.01215362548828125, -0.035491943359375, -0.0421142578125, -0.0134124755859375, -0.0174407958984375, 0.0299224853515625, -0.00433349609375, -0.034942626953125, -0.0166778564453125, 0.0416259765625, 0.00789642333984375, 0.015777587890625, 0.0215911865234375, 0.00525665283203125, 0.0238037109375, 0.042236328125, 0.04595947265625, -0.01983642578125, 0.023040771484375, -0.0239715576171875, 0.031341552734375, 0.033966064453125, -0.05963134765625, -0.038848876953125, -0.0209197998046875, 0.003322601318359375, -0.0199737548828125, -0.03143310546875, 0.006000518798828125, -0.0030193328857421875, 0.0657958984375, 0.01149749755859375, 0.01184844970703125, -0.015899658203125, -0.043212890625, -0.029754638671875, -0.0153350830078125, 0.0013456344604492188, 0.018096923828125, -0.058349609375, 0.004497528076171875, 0.011810302734375, 0.002407073974609375, 0.01314544677734375, -0.0017538070678710938, 0.0088348388671875, -0.0017681121826171875, 0.0202789306640625, -0.0253143310546875, -0.0018053054809570312, 0.01358795166015625, 0.05255126953125, -0.020355224609375, 0.0692138671875, -0.0316162109375, 0.0155487060546875, 0.0714111328125, -0.00335693359375, 0.037567138671875, 0.015625, -0.026336669921875, 0.023101806640625, 0.0201873779296875, 0.053741455078125, -0.0340576171875, -0.035919189453125, -0.013916015625, 0.0160369873046875, 0.01316070556640625, 0.043914794921875, -0.034881591796875, 0.045379638671875, 0.02020263671875, 0.0231475830078125, -0.019500732421875, -0.00800323486328125, -0.031097412109375, 0.0236968994140625, -0.044097900390625, 0.02362060546875, -0.0275726318359375, 0.0133819580078125, 0.0096893310546875, -0.0157623291015625, -0.00433349609375, -0.059844970703125, 0.0279083251953125, -0.02032470703125, -0.009033203125, 0.03057861328125 ]
3cc127dcff4e6dcd10d39bfaad261a21bfe193f8
Wordpress Stackexchange Q: How long does a deprecated function live in core? I'm curious to find out the process/philosophy behind removing deprecated functions from core. The Codex says this: These functions below have been deprecated. That means they have been replaced by new functions or are no longer supported, and may be removed from future versions. Since 'may be removed' is a bit ominous and somewhat unclear, I have the following questions. * *What is the criteria for deletion of a deprecated function? (i.e. version gap, time-frame, security risk, etc...) *Is the deletion of a function communicated to the public officially? For example: get_postdata() has been deprecated since 1.5.1 and doesn't have an official Codex page. Is there a reason this is still around other than to support older versions of WordPress? A: There is no "criteria" or whatever …like in most other places.
Q: How long does a deprecated function live in core? I'm curious to find out the process/philosophy behind removing deprecated functions from core. The Codex says this: These functions below have been deprecated. That means they have been replaced by new functions or are no longer supported, and may be removed from future versions. Since 'may be removed' is a bit ominous and somewhat unclear, I have the following questions. * *What is the criteria for deletion of a deprecated function? (i.e. version gap, time-frame, security risk, etc...) *Is the deletion of a function communicated to the public officially? For example: get_postdata() has been deprecated since 1.5.1 and doesn't have an official Codex page. Is there a reason this is still around other than to support older versions of WordPress? A: There is no "criteria" or whatever …like in most other places. A: Don't take it as anything official, but I seem to recall one of the core devs saying something to the effect that they don't have plans to permanently remove any of the deprecated functions in the foreseeable future. That's not to say it won't happen eventually, though. If you see a function that doesn't have a Codex page, add it! A: There was some discussion a couple years ago to have a set number of releases between deprecation and removal, but at the time deprecation was poorly handled. There were a number of functions that did not have an @deprecated version number filled in, certain functions were widely used by loosely maintained plugins, and so on. It doesn't seem like there was any real resolution to the matter either. A: To the best of my knowledge, and having heard Nacin say it explicitly, no deprecated function has ever been removed from WordPress to date. No guarantees for the future, but it's never happened yet. Still, avoid deprecated functions.
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:417582", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43935" }
[ 0.039093017578125, 0.040557861328125, -0.020355224609375, -0.0225372314453125, 0.0193939208984375, -0.0258026123046875, 0.02154541015625, -0.0440673828125, 0.0784912109375, -0.0038814544677734375, -0.0384521484375, -0.05810546875, 0.00041413307189941406, -0.0279541015625, -0.0399169921875, -0.028076171875, 0.07421875, -0.027374267578125, 0.03778076171875, 0.0085906982421875, 0.018707275390625, 0.05438232421875, 0.0308074951171875, 0.1253662109375, -0.0021877288818359375, -0.0143280029296875, 0.004627227783203125, 0.0029964447021484375, -0.0121917724609375, -0.008819580078125, 0.0005054473876953125, 0.0224609375, -0.0313720703125, 0.07965087890625, -0.03857421875, 0.0006403923034667969, -0.005565643310546875, 0.03717041015625, 0.03717041015625, 0.0015687942504882812, -0.0061492919921875, 0.0208740234375, -0.0054931640625, -0.036895751953125, -0.00794219970703125, -0.03167724609375, 0.00003838539123535156, -0.0200347900390625, -0.0227508544921875, 0.0301513671875, 0.02569580078125, -0.00887298583984375, 0.03118896484375, -0.007781982421875, -0.01043701171875, -0.0341796875, 0.0038928985595703125, 0.008056640625, 0.03753662109375, 0.0360107421875, -0.0200653076171875, 0.019287109375, 0.005207061767578125, -0.051605224609375, 0.031463623046875, 0.032958984375, 0.053070068359375, -0.000041544437408447266, -0.03826904296875, 0.026641845703125, 0.01065826416015625, -0.037628173828125, -0.0105133056640625, 0.0014696121215820312, 0.0018892288208007812, 0.0028324127197265625, 0.01250457763671875, 0.006031036376953125, 0.00067901611328125, 0.03021240234375, -0.00048279762268066406, -0.040313720703125, -0.0140838623046875, 0.0017824172973632812, 0.007457733154296875, 0.0090179443359375, 0.004619598388671875, -0.0046234130859375, -0.03240966796875, -0.0125274658203125, -0.031494140625, -0.0389404296875, -0.0261993408203125, -0.00441741943359375, -0.0048675537109375, -0.004840850830078125, 0.0130462646484375, 0.04925537109375, 0.00009334087371826172, -0.024505615234375, 0.0094146728515625, -0.034332275390625, -0.033355712890625, -0.005035400390625, -0.01410675048828125, 0.0177764892578125, -0.0227203369140625, -0.04901123046875, -0.016326904296875, 0.052032470703125, -0.0205535888671875, -0.041778564453125, 0.00263214111328125, -0.050567626953125, -0.0028629302978515625, 0.039825439453125, 0.01093292236328125, 0.00009924173355102539, 0.0081939697265625, 0.002796173095703125, 0.0192413330078125, 0.022216796875, -0.003997802734375, -0.0006203651428222656, -0.0015993118286132812, -0.0097503662109375, -0.0291748046875, -0.00841522216796875, 0.0178985595703125, 0.070556640625, -0.045013427734375, 0.0020503997802734375, 0.0282440185546875, -0.051513671875, -0.040191650390625, -0.048492431640625, 0.041595458984375, -0.048828125, -0.01067352294921875, 0.025543212890625, 0.0141448974609375, -0.0391845703125, -0.0005617141723632812, 0.00865936279296875, 0.02374267578125, -0.00890350341796875, 0.022125244140625, 0.024505615234375, 0.014739990234375, -0.0364990234375, 0.00470733642578125, 0.0265655517578125, 0.046600341796875, -0.015838623046875, -0.029449462890625, -0.0293121337890625, 0.041259765625, -0.04937744140625, -0.0296478271484375, -0.05126953125, 0.00859832763671875, -0.02752685546875, -0.0007448196411132812, -0.0302276611328125, -0.07220458984375, 0.03692626953125, -0.0364990234375, -0.0032024383544921875, 0.02783203125, 0.036285400390625, 0.0206451416015625, -0.054779052734375, -0.01409912109375, 0.01215362548828125, -0.005588531494140625, 0.0225830078125, 0.0027141571044921875, 0.01406097412109375, 0.0328369140625, 0.04083251953125, 0.005596160888671875, -0.0247344970703125, 0.053985595703125, -0.0186004638671875, -0.052337646484375, -0.0008249282836914062, 0.015411376953125, 0.05072021484375, 0.0218963623046875, 0.025421142578125, 0.00879669189453125, -0.0191802978515625, 0.01543426513671875, 0.04473876953125, 0.0209808349609375, -0.0396728515625, -0.06353759765625, -0.01036834716796875, -0.0277252197265625, -0.02569580078125, 0.00034427642822265625, 0.0091400146484375, -0.00858306884765625, -0.0419921875, -0.1368408203125, 0.0190582275390625, -0.05889892578125, 0.080322265625, -0.006252288818359375, 0.0255126953125, 0.0318603515625, 0.0262298583984375, -0.048248291015625, 0.0479736328125, -0.005462646484375, 0.0029449462890625, 0.00850677490234375, -0.0037937164306640625, -0.0182952880859375, 0.0161895751953125, -0.0506591796875, 0.00835418701171875, -0.06939697265625, -0.033599853515625, 0.044769287109375, -0.0138397216796875, 0.0048065185546875, -0.029937744140625, 0.036346435546875, -0.00586700439453125, -0.0185699462890625, 0.01187896728515625, 0.057464599609375, 0.04876708984375, -0.021728515625, -0.026275634765625, -0.026702880859375, -0.055511474609375, 0.007472991943359375, 0.061279296875, 0.0269012451171875, 0.03045654296875, -0.00995635986328125, -0.019805908203125, 0.036346435546875, -0.025115966796875, 0.01030731201171875, -0.019134521484375, 0.031707763671875, 0.06719970703125, 0.0197601318359375, -0.01165008544921875, -0.005313873291015625, 0.037811279296875, 0.02923583984375, 0.005084991455078125, -0.0117340087890625, -0.01202392578125, -0.007656097412109375, -0.00949859619140625, 0.0236968994140625, -0.042755126953125, -0.052490234375, 0.00550079345703125, -0.01331329345703125, 0.0265350341796875, 0.03668212890625, 0.0582275390625, -0.005023956298828125, -0.005359649658203125, 0.005603790283203125, 0.019561767578125, -0.01503753662109375, 0.08251953125, 0.0285797119140625, 0.0227508544921875, -0.04193115234375, -0.023345947265625, -0.00616455078125, 0.070068359375, 0.0025310516357421875, 0.04071044921875, 0.00553131103515625, -0.01457977294921875, 0.0037288665771484375, 0.020843505859375, 0.001811981201171875, -0.0181121826171875, 0.0560302734375, -0.005985260009765625, 0.016448974609375, 0.029876708984375, -0.0189208984375, 0.072021484375, 0.0341796875, -0.0289306640625, -0.0006866455078125, -0.031463623046875, 0.00917816162109375, -0.0139617919921875, 0.00740814208984375, 0.05706787109375, 0.030181884765625, -0.0209197998046875, 0.003154754638671875, 0.0550537109375, 0.01776123046875, -0.0232696533203125, -0.007503509521484375, 0.01873779296875, -0.00006151199340820312, 0.046112060546875, 0.037078857421875, 0.08441162109375, -0.03662109375, -0.0592041015625, -0.032745361328125, 0.0443115234375, -0.09979248046875, -0.06451416015625, -0.0458984375, -0.004917144775390625, 0.006824493408203125, -0.00362396240234375, 0.01226043701171875, 0.00635528564453125, -0.00775909423828125, 0.01203155517578125, 0.01311492919921875, -0.0184478759765625, -0.04412841796875, -0.04559326171875, -0.059783935546875, -0.0082244873046875, -0.016143798828125, 0.0013866424560546875, -0.0094451904296875, 0.06268310546875, -0.00951385498046875, -0.052581787109375, -0.01360321044921875, -0.04107666015625, -0.0120697021484375, 0.00537872314453125, 0.0396728515625, 0.0155487060546875, -0.0251007080078125, 0.0100555419921875, -0.0187225341796875, 0.05047607421875, -0.05389404296875, 0.00982666015625, -0.008087158203125, 0.006114959716796875, 0.004253387451171875, 0.0283050537109375, 0.01641845703125, -0.0033016204833984375, 0.003604888916015625, -0.0428466796875, -0.0189666748046875, 0.049591064453125, -0.0018768310546875, 0.02716064453125, -0.01430511474609375, -0.04736328125, 0.00467681884765625, 0.0246429443359375, -0.020965576171875, 0.0037021636962890625, -0.004909515380859375, -0.013641357421875, 0.0206451416015625, -0.01513671875, -0.0167083740234375, -0.0038051605224609375, 0.0360107421875, -0.017913818359375, 0.0198211669921875, 0.03179931640625, 0.035125732421875, 0.05352783203125, -0.07550048828125, 0.01702880859375, -0.0230560302734375, 0.043609619140625, 0.03839111328125, -0.0197906494140625, 0.03277587890625, -0.0258026123046875, 0.032257080078125, 0.060028076171875, 0.0149993896484375, 0.0023746490478515625, -0.0120391845703125, -0.01218414306640625, -0.0229034423828125, -0.01444244384765625, -0.050201416015625, 0.022979736328125, -0.047760009765625, 0.0097198486328125, 0.0176849365234375, -0.00717926025390625, -0.0267486572265625, 0.0282745361328125, -0.0185546875, -0.0144500732421875, 0.00914764404296875, -0.00344085693359375, 0.048583984375, -0.0235595703125, 0.0421142578125, -0.0172119140625, 0.029266357421875, -0.0577392578125, 0.021759033203125, 0.0032062530517578125, -0.0712890625, 0.016510009765625, 0.08056640625, -0.05712890625, 0.0270233154296875, 0.0024051666259765625, 0.055633544921875, 0.032257080078125, 0.01192474365234375, -0.055419921875, 0.0283050537109375, 0.010528564453125, 0.0278472900390625, -0.0035037994384765625, -0.019561767578125, -0.01806640625, 0.0298309326171875, 0.01543426513671875, -0.0182647705078125, -0.009033203125, -0.013702392578125, -0.0008549690246582031, 0.0132904052734375, -0.01256561279296875, -0.02667236328125, 0.03717041015625, -0.0127716064453125, -0.00609588623046875, -0.034637451171875, -0.01198577880859375, 0.0472412109375, 0.025909423828125, -0.0084228515625, 0.02093505859375, 0.0904541015625, 0.0079193115234375, -0.023773193359375, -0.072509765625, -0.02197265625, 0.0330810546875, 0.01239776611328125, 0.0291748046875, 0.0014162063598632812, -0.031768798828125, 0.05242919921875, 0.0110321044921875, 0.0203399658203125, -0.037017822265625, -0.0059051513671875, 0.0008764266967773438, -0.006481170654296875, 0.0057525634765625, -0.0005006790161132812, 0.041473388671875, -0.0134429931640625, -0.034576416015625, 0.01406097412109375, -0.025848388671875, 0.02947998046875, 0.0009965896606445312, 0.035797119140625, -0.042236328125, -0.08807373046875, 0.0292816162109375, -0.05303955078125, 0.036102294921875, 0.0065765380859375, -0.0124053955078125, 0.05535888671875, -0.004459381103515625, 0.0181427001953125, -0.006103515625, -0.0025348663330078125, -0.03887939453125, 0.04058837890625, 0.0013818740844726562, 0.005268096923828125, -0.01052093505859375, -0.01241302490234375, 0.04791259765625, -0.0214691162109375, -0.06158447265625, 0.007259368896484375, -0.008056640625, 0.002559661865234375, 0.039154052734375, -0.01245880126953125, 0.008392333984375, 0.031585693359375, -0.0056304931640625, -0.007965087890625, -0.029632568359375, 0.0254364013671875, -0.0185699462890625, 0.0196685791015625, -0.0262603759765625, 0.0018415451049804688, 0.0253143310546875, -0.016815185546875, -0.04486083984375, 0.01947021484375, 0.00223541259765625, 0.037017822265625, 0.0203857421875, 0.040069580078125, 0.0036449432373046875, -0.00634765625, 0.01375579833984375, 0.007709503173828125, -0.01055908203125, -0.0052947998046875, -0.0540771484375, 0.014190673828125, 0.001129150390625, -0.020050048828125, 0.041656494140625, -0.0184478759765625, 0.0208587646484375, -0.0109405517578125, 0.021331787109375, 0.0018949508666992188, -0.039093017578125, 0.01050567626953125, 0.0299224853515625, 0.005458831787109375, -0.01517486572265625, 0.02197265625, -0.028289794921875, 0.005954742431640625, -0.01739501953125, -0.0159454345703125, -0.03973388671875, -0.006378173828125, 0.01534271240234375, 0.0010509490966796875, -0.043670654296875, -0.037445068359375, 0.0212860107421875, -0.00457000732421875, -0.0022945404052734375, 0.0010614395141601562, 0.021759033203125, -0.0015954971313476562, 0.04559326171875, -0.03338623046875, -0.034210205078125, 0.06390380859375, -0.00885009765625, 0.08599853515625, 0.02923583984375, -0.05181884765625, -0.00894927978515625, -0.04473876953125, -0.0389404296875, -0.06072998046875, -0.0352783203125, -0.0594482421875, 0.0310211181640625, 0.018463134765625, 0.041839599609375, 0.006622314453125, 0.0012302398681640625, 0.00891876220703125, 0.020050048828125, -0.004993438720703125, 0.0849609375, -0.0169677734375, 0.0080413818359375, 0.031890869140625, 0.013031005859375, 0.00966644287109375, 0.0258941650390625, 0.0238189697265625, -0.0557861328125, 0.041229248046875, -0.00797271728515625, -0.058441162109375, -0.07672119140625, -0.023590087890625, -0.01137542724609375, 0.049652099609375, -0.0280609130859375, 0.0133819580078125, 0.004756927490234375, -0.00371551513671875, -0.03521728515625, 0.0181121826171875, -0.01303863525390625, 0.05517578125, -0.03472900390625, -0.018310546875, 0.037384033203125, 0.00750732421875, -0.0159454345703125, 0.0413818359375, -0.026763916015625, 0.039947509765625, 0.038909912109375, 0.0184173583984375, 0.0089111328125, 0.054412841796875, -0.0029296875, 0.0262451171875, 0.03411865234375, -0.0009937286376953125, 0.0020389556884765625, 0.021942138671875, 0.0029277801513671875, -0.031768798828125, 0.03131103515625, -0.0008111000061035156, -0.0077667236328125, 0.012603759765625, -0.025146484375, -0.0250091552734375, 0.014129638671875, 0.038848876953125, -0.02252197265625, -0.0096893310546875, 0.0186767578125, -0.014739990234375, 0.0086822509765625, -0.002468109130859375, 0.0112457275390625, 0.00795745849609375, 0.007659912109375, 0.046112060546875, -0.009307861328125, 0.0229949951171875, 0.039276123046875, -0.0123291015625, -0.0163421630859375, 0.04339599609375, 0.020233154296875, -0.00005739927291870117, 0.0240478515625, 0.01375579833984375, 0.00749969482421875, -0.038177490234375, 0.0186767578125, -0.022247314453125, -0.03582763671875, -0.07867431640625, -0.0246429443359375, 0.022247314453125, -0.0206756591796875, 0.0221405029296875, 0.04400634765625, 0.017303466796875, 0.04302978515625, 0.00585174560546875, -0.01201629638671875, 0.0178070068359375, -0.00339508056640625, -0.051666259765625, -0.0675048828125, 0.037750244140625, 0.00264739990234375, -0.0770263671875, 0.0452880859375, -0.03533935546875, -0.047515869140625, 0.00035643577575683594, 0.006114959716796875, 0.05810546875, -0.0499267578125, -0.007289886474609375, 0.0108489990234375, 0.00313568115234375, -0.0020236968994140625, -0.0254974365234375, 0.0009675025939941406, -0.048919677734375, 0.0009832382202148438, -0.021026611328125, -0.005367279052734375, 0.0166473388671875, -0.015869140625, -0.03857421875, 0.0621337890625, 0.0278167724609375, -0.0176239013671875, 0.01152801513671875, 0.0261383056640625, -0.052032470703125, -0.0007472038269042969, 0.010528564453125, 0.042694091796875, -0.02996826171875, 0.0172271728515625, 0.01171875, 0.035614013671875, 0.01500701904296875, -0.01317596435546875, 0.01064300537109375, 0.0024280548095703125, 0.062103271484375, -0.0038204193115234375, 0.00036525726318359375, -0.00325775146484375, -0.04290771484375, -0.01267242431640625, -0.02154541015625, -0.0216217041015625, -0.00667572021484375, -0.01282501220703125, 0.0128326416015625, -0.0198211669921875, -0.025146484375, 0.005062103271484375, 0.0014057159423828125, -0.0036468505859375, -0.0131072998046875, -0.049774169921875, -0.00408172607421875, -0.014739990234375, -0.004940032958984375, 0.0167999267578125, -0.01187896728515625, 0.03662109375, 0.0018024444580078125, -0.01114654541015625, 0.0173797607421875, -0.036346435546875, 0.034820556640625, -0.00788116455078125, 0.03985595703125, 0.045440673828125, 0.039398193359375, 0.02490234375, -0.021087646484375, 0.0260009765625, 0.0027561187744140625, -0.05059814453125, 0.08984375, 0.033416748046875, 0.0175628662109375, -0.0295562744140625, 0.03167724609375, 0.0390625, 0.08636474609375, -0.06719970703125, -0.0050811767578125, 0.0139923095703125, -0.0178985595703125, -0.01555633544921875, -0.042266845703125, -0.030914306640625, -0.00861358642578125, 0.003604888916015625, -0.0218048095703125, -0.046356201171875, 0.00606536865234375, 0.0268096923828125, 0.016693115234375, 0.0024280548095703125, 0.00801849365234375, -0.06298828125, -0.00441741943359375, -0.02410888671875, 0.021087646484375, 0.01654052734375, -0.00783538818359375, 0.026580810546875, 0.029205322265625, -0.00251007080078125, 0.0372314453125, 0.01389312744140625, -0.0121612548828125, -0.057861328125, -0.01082611083984375, -0.0924072265625, -0.00927734375, 0.04071044921875, 0.032867431640625, -0.02166748046875, -0.006496429443359375, 0.00594329833984375, -0.023773193359375, 0.00760650634765625, 0.054351806640625, -0.0127105712890625, 0.00920867919921875, -0.022735595703125, 0.006374359130859375, 0.00226593017578125, -0.0086669921875, -0.015777587890625, 0.0238800048828125, 0.0027484893798828125, 0.003849029541015625, 0.006053924560546875, 0.00879669189453125, -0.023345947265625, 0.0584716796875, -0.03460693359375, 0.075439453125, 0.01416778564453125, 0.00011485815048217773, 0.0029239654541015625, -0.014007568359375, 0.008392333984375, -0.0235748291015625, 0.002445220947265625, -0.0128173828125, 0.026031494140625, 0.0154571533203125, 0.006114959716796875, 0.00301361083984375, 0.0009937286376953125, -0.004871368408203125, -0.00848388671875, 0.033538818359375, 0.0114593505859375, 0.001506805419921875, -0.006275177001953125, -0.02679443359375, 0.033233642578125, 0.009857177734375, 0.08062744140625, -0.03656005859375, 0.0264892578125, -0.0007724761962890625, 0.006145477294921875, -0.0223236083984375, 0.00814056396484375, 0.00771331787109375, -0.0178680419921875, -0.0163116455078125, -0.004268646240234375, -0.0111083984375, 0.033477783203125, 0.0390625, -0.044464111328125, 0.0185546875, 0.023834228515625, -0.003414154052734375, -0.04681396484375, -0.007404327392578125, -0.0173797607421875, -0.0089569091796875, 0.040924072265625, 0.0028533935546875, -0.0037021636962890625, 0.0038661956787109375, 0.026519775390625, 0.00928497314453125, 0.013671875, -0.044891357421875, 0.0235748291015625, -0.0291748046875, 0.028778076171875, 0.029022216796875, 0.0391845703125, 0.022125244140625, -0.0133514404296875, -0.0236663818359375, 0.034759521484375, -0.007701873779296875, 0.0087127685546875, 0.0008716583251953125, 0.0164794921875, 0.0021991729736328125, 0.003147125244140625, 0.0298614501953125, -0.0167236328125, -0.007740020751953125, -0.0116729736328125, 0.00007092952728271484, 0.026763916015625, -0.0022182464599609375, -0.00901031494140625, -0.0146026611328125, -0.0223236083984375, 0.00617218017578125, -0.0057373046875, -0.016510009765625, -0.0242919921875, 0.001285552978515625, 0.047027587890625, 0.0254974365234375, -0.053741455078125, 0.01041412353515625, -0.001209259033203125, 0.01560211181640625, 0.0288238525390625, 0.00848388671875, -0.011383056640625, 0.04522705078125, -0.0269317626953125, -0.05853271484375, -0.023040771484375, 0.04351806640625, -0.0323486328125, 0.0330810546875, 0.0343017578125, -0.0297698974609375, -0.023895263671875, 0.06640625, 0.039306640625, 0.10321044921875, 0.01174163818359375, -0.0036182403564453125, 0.0372314453125, -0.005321502685546875, -0.0511474609375, -0.06573486328125, 0.0261077880859375, -0.08880615234375, -0.027587890625, 0.0015764236450195312, 0.0286102294921875, 0.043212890625, -0.01352691650390625, -0.037994384765625, 0.0295562744140625, 0.007266998291015625, -0.025665283203125, -0.02789306640625, -0.0016317367553710938, -0.01149749755859375, 0.034210205078125, 0.01194000244140625, -0.0291290283203125, -0.0289306640625, 0.01332855224609375, -0.0014867782592773438, 0.041015625, 0.0169219970703125, 0.015472412109375, 0.027374267578125, 0.049896240234375, 0.04095458984375, 0.0028095245361328125, -0.009033203125, -0.018157958984375, 0.06573486328125, 0.037872314453125, -0.013824462890625, 0.05029296875, 0.0299530029296875, 0.01129913330078125, -0.007022857666015625, -0.03466796875, -0.0121917724609375, -0.0062713623046875, 0.052703857421875, 0.028411865234375, 0.0209197998046875, -0.04620361328125, -0.0233001708984375, -0.0008835792541503906, -0.0018987655639648438, -0.009429931640625, 0.0179595947265625, -0.058502197265625, -0.0243988037109375, 0.007659912109375, -0.0211334228515625, 0.004474639892578125, -0.03997802734375, -0.0328369140625, -0.00102996826171875, -0.020904541015625, -0.002170562744140625, -0.0015411376953125, 0.023773193359375, 0.00031256675720214844, 0.0019102096557617188, 0.031829833984375, -0.00872802734375, -0.00408172607421875, 0.0157012939453125, 0.0655517578125, 0.050872802734375, 0.022918701171875, -0.04327392578125, 0.0018396377563476562, 0.024566650390625, 0.033203125, -0.024261474609375, -0.05621337890625, 0.01161956787109375, 0.01995849609375, 0.0083465576171875, 0.03704833984375, -0.0175933837890625, 0.07110595703125, 0.01197052001953125, 0.016387939453125, -0.03271484375, 0.06976318359375, -0.02679443359375, 0.052520751953125, -0.0125732421875, 0.004932403564453125, 0.0251312255859375, -0.006061553955078125, 0.0204315185546875, 0.01715087890625, 0.038299560546875, -0.038055419921875, 0.033203125, 0.08172607421875, 0.01552581787109375, 0.016632080078125 ]
00597eee05706fe77d1a5dbf8aa7f5c29e791aae
Wordpress Stackexchange Q: Subpages return 404 error I set permanent link as http://site.com/%postname%/. I'm talking about this type of pages: http://codex.wordpress.org/Pages_Screen. All first level pages work fine. But subpages don't. For the first level page I get url like this: http://site.com/page/. For the second level page - http://site.com/page/subpage/. If I use permanent link http://site.com/?p=123 or http://site.com/2012/02/29/sample-post/, subpage works fine then. How does make it work with http://site.com/%postname%/ mask? Added: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Update: I found the reason. It is a post_type field in the wp_posts. But I cannot find out where this field is saved? A: You're wanting to use "Pretty Permalinks" and in order to do so you need to have some form of rewrite documentation present. The easiest and most common is a .htaccess file to hold the rewrite rules. Do you have an .htaccess present for the site? If you do not, you can reference the WordPress Codex here: http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F
Q: Subpages return 404 error I set permanent link as http://site.com/%postname%/. I'm talking about this type of pages: http://codex.wordpress.org/Pages_Screen. All first level pages work fine. But subpages don't. For the first level page I get url like this: http://site.com/page/. For the second level page - http://site.com/page/subpage/. If I use permanent link http://site.com/?p=123 or http://site.com/2012/02/29/sample-post/, subpage works fine then. How does make it work with http://site.com/%postname%/ mask? Added: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Update: I found the reason. It is a post_type field in the wp_posts. But I cannot find out where this field is saved? A: You're wanting to use "Pretty Permalinks" and in order to do so you need to have some form of rewrite documentation present. The easiest and most common is a .htaccess file to hold the rewrite rules. Do you have an .htaccess present for the site? If you do not, you can reference the WordPress Codex here: http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:417583", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43936" }
[ 0.05389404296875, -0.0137786865234375, 0.0036945343017578125, 0.0015125274658203125, -0.01462554931640625, -0.02362060546875, 0.039642333984375, -0.0482177734375, -0.0015087127685546875, -0.002300262451171875, -0.0189361572265625, 0.007053375244140625, 0.001850128173828125, -0.034393310546875, 0.04058837890625, -0.0172271728515625, 0.029876708984375, -0.00981903076171875, 0.01039886474609375, -0.004795074462890625, -0.007579803466796875, 0.0164947509765625, 0.017822265625, 0.005462646484375, 0.036346435546875, -0.032073974609375, 0.049652099609375, -0.015533447265625, 0.0208740234375, -0.032958984375, 0.022613525390625, 0.00466156005859375, 0.03448486328125, -0.01107025146484375, 0.0153656005859375, -0.0361328125, -0.00470733642578125, -0.018951416015625, -0.0028362274169921875, 0.004215240478515625, -0.00749969482421875, 0.0259857177734375, 0.0379638671875, 0.0276031494140625, 0.0029506683349609375, -0.059356689453125, -0.00458526611328125, -0.060546875, 0.01116180419921875, -0.00014972686767578125, 0.00630950927734375, 0.0288238525390625, 0.00534820556640625, 0.01036834716796875, -0.01715087890625, -0.021087646484375, 0.049774169921875, -0.056304931640625, 0.0124359130859375, -0.0294952392578125, -0.0214691162109375, 0.0079193115234375, 0.0268096923828125, 0.0196990966796875, -0.03125, -0.030548095703125, -0.0156402587890625, 0.0200653076171875, -0.021331787109375, -0.018463134765625, 0.037078857421875, 0.0015316009521484375, -0.0087738037109375, -0.0341796875, 0.00009715557098388672, -0.005889892578125, 0.00531005859375, -0.0070343017578125, -0.01214599609375, 0.020599365234375, -0.0012912750244140625, -0.02392578125, -0.059661865234375, -0.0213775634765625, 0.01654052734375, 0.0174560546875, -0.004486083984375, -0.01230621337890625, -0.0244293212890625, -0.00907135009765625, -0.0311279296875, -0.0172882080078125, 0.01020050048828125, -0.0273895263671875, -0.0300750732421875, -0.0287628173828125, 0.03302001953125, 0.0614013671875, 0.0482177734375, 0.0301361083984375, -0.009765625, -0.04693603515625, 0.027618408203125, -0.061767578125, 0.016021728515625, 0.0184326171875, 0.020172119140625, 0.051116943359375, 0.06268310546875, 0.0033721923828125, 0.0029544830322265625, 0.06817626953125, -0.0025348663330078125, -0.041473388671875, -0.01239776611328125, 0.0255889892578125, -0.0213165283203125, -0.0282135009765625, 0.0023708343505859375, -0.026611328125, -0.00011235475540161133, 0.05059814453125, -0.045562744140625, -0.01885986328125, -0.00530242919921875, -0.004108428955078125, 0.0235443115234375, -0.0254974365234375, 0.00620269775390625, 0.02093505859375, -0.0174713134765625, 0.01494598388671875, 0.006229400634765625, 0.002490997314453125, -0.0191192626953125, -0.0048065185546875, 0.018463134765625, -0.04058837890625, -0.010986328125, 0.008026123046875, -0.01904296875, -0.03173828125, 0.0159759521484375, -0.0206298828125, -0.00827789306640625, 0.0443115234375, 0.0217132568359375, 0.0149383544921875, -0.0300445556640625, -0.0687255859375, 0.028045654296875, -0.04998779296875, 0.03228759765625, -0.0034160614013671875, -0.0255279541015625, -0.06915283203125, -0.0030670166015625, -0.042724609375, 0.0228118896484375, -0.043182373046875, 0.004291534423828125, -0.01097869873046875, 0.0142822265625, -0.034515380859375, -0.032958984375, -0.013397216796875, -0.051727294921875, -0.006298065185546875, 0.0192413330078125, 0.029296875, 0.036529541015625, -0.0200042724609375, -0.0204925537109375, -0.0033817291259765625, 0.0024242401123046875, -0.00656890869140625, -0.007427215576171875, 0.0281219482421875, -0.0023899078369140625, 0.07958984375, 0.05035400390625, -0.018463134765625, 0.012359619140625, 0.0180511474609375, -0.04681396484375, 0.037322998046875, 0.0291595458984375, 0.06378173828125, -0.03839111328125, 0.0184478759765625, 0.06488037109375, 0.03863525390625, -0.04754638671875, 0.05584716796875, -0.0267791748046875, -0.031005859375, -0.011077880859375, 0.0109100341796875, -0.043853759765625, 0.005889892578125, -0.049835205078125, 0.0195159912109375, -0.01117706298828125, 0.04449462890625, 0.0148773193359375, 0.02325439453125, -0.012481689453125, 0.0192718505859375, 0.0219879150390625, 0.0237579345703125, 0.0115814208984375, 0.00862884521484375, -0.0181427001953125, -0.045013427734375, -0.0308074951171875, 0.040985107421875, -0.0245208740234375, 0.03082275390625, -0.016571044921875, 0.0273284912109375, -0.0103912353515625, -0.0489501953125, -0.0037212371826171875, -0.010589599609375, -0.0006031990051269531, -0.0214080810546875, -0.01165771484375, -0.00550079345703125, -0.04351806640625, 0.0234527587890625, -0.06317138671875, 0.01352691650390625, -0.005229949951171875, -0.02783203125, -0.0625, 0.01336669921875, -0.055389404296875, -0.002246856689453125, -0.007434844970703125, 0.04425048828125, 0.038055419921875, 0.0302886962890625, -0.009246826171875, -0.026123046875, 0.051239013671875, -0.047393798828125, 0.0008726119995117188, -0.026031494140625, -0.003543853759765625, 0.0217437744140625, 0.012115478515625, 0.0203399658203125, 0.025604248046875, -0.031402587890625, -0.00991058349609375, 0.0426025390625, -0.03369140625, -0.01485443115234375, -0.01021575927734375, 0.001373291015625, 0.01308441162109375, -0.005741119384765625, 0.0082244873046875, -0.01910400390625, -0.003887176513671875, 0.025146484375, 0.0367431640625, 0.03277587890625, 0.0227508544921875, -0.00873565673828125, -0.00943756103515625, -0.0234222412109375, -0.0035381317138671875, 0.017974853515625, 0.08831787109375, -0.0245513916015625, -0.0206298828125, -0.0168304443359375, 0.022857666015625, 0.013824462890625, -0.00666046142578125, 0.0355224609375, -0.021087646484375, -0.0130615234375, -0.0213470458984375, -0.04571533203125, -0.0212554931640625, 0.00054931640625, 0.0340576171875, -0.008575439453125, 0.0196533203125, 0.004642486572265625, -0.035247802734375, 0.036773681640625, -0.00585174560546875, -0.03607177734375, 0.0295867919921875, -0.046630859375, 0.051483154296875, -0.052337646484375, 0.00884246826171875, 0.04608154296875, -0.0259857177734375, 0.004215240478515625, -0.006969451904296875, -0.031951904296875, -0.0185089111328125, -0.00396728515625, -0.01557159423828125, -0.0181732177734375, -0.039825439453125, -0.003986358642578125, 0.02532958984375, 0.0379638671875, -0.00038623809814453125, -0.025909423828125, -0.0017786026000976562, 0.039794921875, -0.06451416015625, -0.050445556640625, -0.0362548828125, -0.04156494140625, 0.0019254684448242188, 0.039215087890625, -0.0112762451171875, -0.01041412353515625, 0.07025146484375, 0.00928497314453125, -0.015289306640625, -0.0479736328125, -0.045501708984375, -0.08782958984375, -0.07562255859375, -0.0177764892578125, 0.00688934326171875, 0.006999969482421875, 0.0009746551513671875, 0.01114654541015625, -0.00250244140625, -0.04229736328125, 0.00664520263671875, 0.029693603515625, -0.0038604736328125, -0.0218048095703125, -0.0115203857421875, -0.01270294189453125, 0.00983428955078125, 0.0005884170532226562, 0.042572021484375, 0.032012939453125, -0.0198822021484375, 0.00365447998046875, -0.0176849365234375, -0.01788330078125, -0.007175445556640625, 0.01555633544921875, 0.037261962890625, -0.0211639404296875, 0.007965087890625, -0.059783935546875, -0.063232421875, -0.028839111328125, -0.07061767578125, 0.045440673828125, 0.0374755859375, 0.0220947265625, -0.007495880126953125, 0.0242462158203125, -0.009307861328125, 0.00955963134765625, 0.040191650390625, -0.03155517578125, 0.00904083251953125, -0.01036834716796875, -0.0098876953125, -0.02911376953125, 0.029296875, -0.0165557861328125, 0.046142578125, 0.0200347900390625, 0.0064544677734375, -0.005680084228515625, 0.006923675537109375, -0.029266357421875, -0.0555419921875, 0.0311279296875, -0.107177734375, -0.0159149169921875, -0.058990478515625, 0.002574920654296875, -0.0265960693359375, 0.054229736328125, -0.0217742919921875, -0.01947021484375, -0.04095458984375, 0.00908660888671875, -0.0024929046630859375, -0.05023193359375, 0.017608642578125, -0.0023746490478515625, -0.0830078125, -0.0072479248046875, -0.0218658447265625, -0.028076171875, 0.0269622802734375, -0.0280609130859375, -0.005046844482421875, -0.0596923828125, 0.0263824462890625, -0.029144287109375, -0.03857421875, 0.060150146484375, -0.04010009765625, 0.0198516845703125, -0.0296478271484375, -0.00962066650390625, -0.055633544921875, -0.0284881591796875, 0.00972747802734375, 0.044708251953125, 0.0130767822265625, -0.0472412109375, 0.00780487060546875, 0.05731201171875, 0.0120849609375, 0.0182037353515625, -0.0007662773132324219, -0.0089263916015625, -0.01058197021484375, 0.01361846923828125, 0.0187835693359375, -0.006336212158203125, 0.03375244140625, -0.0014715194702148438, -0.045501708984375, 0.0103302001953125, -0.039581298828125, 0.007305145263671875, -0.0002186298370361328, -0.042938232421875, -0.03314208984375, -0.00756072998046875, -0.01280975341796875, 0.01352691650390625, -0.0117950439453125, -0.0085296630859375, -0.01314544677734375, -0.03314208984375, 0.0270538330078125, -0.0134735107421875, 0.0124664306640625, 0.007617950439453125, 0.034149169921875, 0.0081634521484375, -0.0199737548828125, -0.007228851318359375, 0.0248260498046875, 0.0248870849609375, -0.03985595703125, 0.08489990234375, 0.0594482421875, 0.025787353515625, 0.0295562744140625, -0.01522064208984375, 0.008087158203125, -0.0291748046875, -0.003582000732421875, -0.0048828125, 0.006298065185546875, 0.0024089813232421875, -0.028076171875, 0.047088623046875, 0.024200439453125, -0.027618408203125, 0.0187835693359375, -0.062347412109375, 0.0251617431640625, -0.00011014938354492188, 0.0207977294921875, -0.040191650390625, -0.0394287109375, 0.0148773193359375, 0.01030731201171875, 0.040008544921875, 0.00704193115234375, 0.00899505615234375, 0.0305328369140625, 0.03173828125, -0.01067352294921875, 0.03125, 0.0307464599609375, 0.046356201171875, 0.032958984375, 0.00942230224609375, 0.00860595703125, -0.0258941650390625, 0.004241943359375, 0.034454345703125, 0.0005764961242675781, -0.018096923828125, -0.0173187255859375, -0.013763427734375, -0.021209716796875, 0.0042572021484375, -0.00930023193359375, 0.01010894775390625, 0.007965087890625, -0.0224151611328125, 0.01543426513671875, 0.00859832763671875, -0.0175933837890625, -0.02685546875, 0.03387451171875, 0.005558013916015625, 0.0098114013671875, -0.0214691162109375, 0.10455322265625, 0.02886962890625, 0.0223388671875, -0.028106689453125, -0.0270233154296875, 0.0280303955078125, 0.045074462890625, 0.0207061767578125, -0.0177764892578125, -0.01033782958984375, 0.032196044921875, 0.041595458984375, -0.04986572265625, -0.024169921875, 0.04876708984375, 0.0711669921875, -0.030792236328125, -0.0292205810546875, -0.00616455078125, -0.0164031982421875, -0.0019702911376953125, -0.004016876220703125, -0.0218505859375, -0.01849365234375, -0.007129669189453125, 0.0036678314208984375, 0.0181732177734375, -0.01641845703125, -0.01285552978515625, 0.02508544921875, -0.0084228515625, 0.019744873046875, -0.01369476318359375, 0.0027561187744140625, -0.01140594482421875, -0.00853729248046875, 0.0285186767578125, -0.031402587890625, -0.02142333984375, -0.02825927734375, 0.0102996826171875, -0.03228759765625, -0.005157470703125, 0.04302978515625, -0.0046539306640625, 0.0465087890625, -0.006336212158203125, -0.036224365234375, 0.04510498046875, -0.00351715087890625, 0.03216552734375, 0.00534820556640625, -0.06573486328125, 0.0005617141723632812, -0.016357421875, 0.0204315185546875, 0.029449462890625, 0.0025177001953125, -0.0278167724609375, -0.0122222900390625, -0.0019702911376953125, 0.01453399658203125, -0.00446319580078125, -0.007465362548828125, -0.036590576171875, 0.01227569580078125, 0.01175689697265625, 0.0160369873046875, -0.036712646484375, 0.08343505859375, -0.0160675048828125, 0.01029205322265625, -0.0184783935546875, 0.03125, -0.0057525634765625, 0.00946807861328125, 0.025390625, -0.048980712890625, -0.04058837890625, -0.035858154296875, -0.018157958984375, 0.050262451171875, 0.07177734375, 0.00698089599609375, 0.01611328125, -0.015716552734375, 0.01250457763671875, -0.029144287109375, 0.01271820068359375, -0.0540771484375, -0.018280029296875, 0.0187225341796875, 0.006175994873046875, 0.0574951171875, 0.00884246826171875, -0.034027099609375, -0.01030731201171875, 0.012969970703125, 0.02630615234375, 0.012359619140625, -0.00850677490234375, 0.0009374618530273438, 0.07666015625, 0.0389404296875, 0.07293701171875, 0.00849151611328125, 0.03826904296875, 0.050323486328125, 0.0271759033203125, 0.00836944580078125, -0.01910400390625, 0.052947998046875, 0.016937255859375, -0.0013494491577148438, 0.05181884765625, -0.0136260986328125, -0.0151214599609375, 0.085693359375, 0.030364990234375, -0.10272216796875, -0.01021575927734375, -0.0219573974609375, -0.01031494140625, -0.0009064674377441406, -0.0247650146484375, 0.01116943359375, 0.004962921142578125, -0.003681182861328125, 0.026092529296875, -0.034576416015625, -0.0281982421875, 0.0047607421875, 0.020843505859375, -0.001781463623046875, 0.0794677734375, -0.007595062255859375, -0.006877899169921875, -0.053741455078125, -0.007114410400390625, 0.006702423095703125, 0.0011882781982421875, -0.012603759765625, -0.005237579345703125, -0.043701171875, -0.01258087158203125, -0.0056304931640625, -0.036224365234375, -0.0021877288818359375, 0.0253143310546875, -0.01177215576171875, -0.005001068115234375, 0.0269012451171875, -0.027069091796875, 0.0033245086669921875, 0.005184173583984375, -0.046112060546875, 0.046600341796875, -0.0291290283203125, 0.005237579345703125, -0.01328277587890625, -0.053497314453125, -0.0008654594421386719, -0.0240478515625, -0.01476287841796875, -0.01192474365234375, -0.038726806640625, 0.09246826171875, -0.07745361328125, -0.0028076171875, 0.006103515625, 0.0147857666015625, 0.004230499267578125, -0.0269775390625, -0.007732391357421875, -0.0126495361328125, 0.0229339599609375, -0.030609130859375, 0.01389312744140625, 0.027679443359375, -0.0465087890625, -0.049957275390625, 0.08636474609375, -0.020721435546875, 0.0080413818359375, 0.0222015380859375, 0.040496826171875, -0.0308074951171875, 0.02081298828125, -0.022186279296875, 0.056793212890625, 0.0186004638671875, 0.049102783203125, -0.0501708984375, -0.033905029296875, 0.03289794921875, 0.066162109375, 0.07220458984375, 0.0274200439453125, -0.054412841796875, 0.01158905029296875, 0.053314208984375, 0.016571044921875, -0.0080413818359375, 0.054443359375, -0.024505615234375, 0.06121826171875, 0.038330078125, -0.0654296875, 0.00933837890625, -0.01470184326171875, -0.043182373046875, -0.00699615478515625, 0.00007194280624389648, -0.0236053466796875, 0.024383544921875, -0.036468505859375, -0.0367431640625, 0.018310546875, 0.017181396484375, -0.0035400390625, 0.043975830078125, 0.01035308837890625, 0.054168701171875, -0.00891876220703125, -0.0242919921875, -0.0167236328125, 0.050018310546875, 0.0163726806640625, 0.017303466796875, -0.0164794921875, 0.004756927490234375, 0.0567626953125, -0.01214599609375, -0.0092620849609375, 0.05047607421875, -0.01184844970703125, 0.040191650390625, 0.03314208984375, 0.01052093505859375, -0.04571533203125, 0.00433349609375, 0.0772705078125, 0.07318115234375, -0.048614501953125, -0.07427978515625, -0.007236480712890625, 0.0035343170166015625, 0.03118896484375, 0.0101318359375, 0.042938232421875, -0.0010080337524414062, 0.0279693603515625, -0.032623291015625, 0.005153656005859375, 0.0099029541015625, 0.022979736328125, -0.0199127197265625, -0.0133514404296875, -0.015625, 0.017669677734375, -0.013214111328125, -0.0198211669921875, 0.0228271484375, 0.03948974609375, 0.017303466796875, 0.027008056640625, -0.00832366943359375, -0.013336181640625, 0.007801055908203125, 0.0048675537109375, -0.01372528076171875, 0.0080718994140625, -0.04852294921875, -0.0618896484375, 0.062744140625, 0.045013427734375, 0.00299072265625, 0.020751953125, 0.019561767578125, -0.0030918121337890625, -0.0275421142578125, -0.01023101806640625, 0.0171356201171875, -0.041748046875, 0.0190887451171875, -0.0110321044921875, -0.0167083740234375, -0.019805908203125, -0.0234375, -0.0340576171875, 0.032012939453125, -0.006008148193359375, 0.0108184814453125, -0.0084381103515625, 0.01319122314453125, -0.00982666015625, 0.053680419921875, -0.00492095947265625, 0.01384735107421875, 0.018646240234375, -0.02276611328125, 0.0108184814453125, -0.0253448486328125, -0.047943115234375, 0.013153076171875, 0.032073974609375, 0.00759124755859375, -0.00021147727966308594, -0.00417327880859375, 0.0149383544921875, 0.0163421630859375, -0.04217529296875, 0.0203857421875, 0.0303497314453125, 0.01568603515625, 0.026458740234375, -0.047607421875, -0.0230560302734375, -0.03692626953125, 0.02215576171875, 0.001987457275390625, 0.177734375, -0.07080078125, 0.00612640380859375, -0.047515869140625, 0.0026950836181640625, -0.017242431640625, -0.029327392578125, -0.004329681396484375, -0.0007872581481933594, -0.00467681884765625, 0.00916290283203125, -0.055633544921875, 0.0279693603515625, -0.000014901161193847656, -0.015960693359375, 0.0007014274597167969, -0.016510009765625, 0.0207061767578125, 0.0205535888671875, 0.020538330078125, -0.0239410400390625, -0.0662841796875, -0.07110595703125, 0.002719879150390625, 0.032867431640625, 0.0447998046875, -0.0225067138671875, 0.01025390625, 0.0264434814453125, -0.03302001953125, 0.02496337890625, -0.0372314453125, 0.059661865234375, 0.036590576171875, 0.0007529258728027344, 0.00775146484375, 0.02337646484375, -0.018646240234375, 0.028778076171875, 0.012847900390625, 0.0228271484375, 0.01502227783203125, -0.02532958984375, 0.0093841552734375, -0.01238250732421875, 0.0006456375122070312, -0.02325439453125, -0.0240020751953125, 0.0061798095703125, -0.008544921875, 0.01497650146484375, -0.03778076171875, -0.02215576171875, -0.000774383544921875, -0.007289886474609375, 0.0218963623046875, 0.0030517578125, -0.035888671875, -0.0242919921875, -0.0026607513427734375, 0.0125885009765625, 0.0197601318359375, -0.07977294921875, 0.032135009765625, -0.00012362003326416016, 0.0604248046875, -0.032257080078125, 0.023651123046875, -0.0086212158203125, 0.0217437744140625, -0.041961669921875, 0.0256500244140625, -0.03173828125, -0.034271240234375, -0.01513671875, 0.009979248046875, 0.03997802734375, -0.01739501953125, 0.00872039794921875, -0.0124359130859375, -0.003437042236328125, 0.043365478515625, -0.032684326171875, 0.001216888427734375, 0.010162353515625, 0.0169525146484375, -0.038421630859375, -0.048797607421875, 0.000614166259765625, -0.0223236083984375, 0.0154266357421875, -0.0347900390625, 0.02093505859375, 0.0169830322265625, -0.03631591796875, -0.01531219482421875, 0.02349853515625, 0.0100250244140625, -0.01708984375, -0.050933837890625, -0.02154541015625, -0.033721923828125, 0.07891845703125, -0.0036869049072265625, -0.027313232421875, -0.033477783203125, 0.045318603515625, 0.033843994140625, 0.03924560546875, -0.006622314453125, 0.05242919921875, 0.006366729736328125, 0.06976318359375, 0.0411376953125, 0.006313323974609375, 0.03948974609375, -0.034027099609375, 0.055908203125, 0.062744140625, -0.045745849609375, 0.00677490234375, -0.0049591064453125, -0.0148162841796875, 0.006549835205078125, -0.05645751953125, -0.031768798828125, -0.04571533203125, 0.07843017578125, -0.00792694091796875, 0.016510009765625, 0.005680084228515625, -0.010650634765625, -0.044525146484375, -0.0255279541015625, -0.00576019287109375, 0.0240631103515625, -0.05389404296875, 0.006595611572265625, 0.00785064697265625, 0.0036449432373046875, -0.0075225830078125, -0.0190582275390625, -0.0238494873046875, -0.0037860870361328125, 0.00594329833984375, -0.0157012939453125, -0.00467681884765625, -0.0244293212890625, 0.05108642578125, -0.036407470703125, -0.01306915283203125, -0.0025634765625, 0.03155517578125, 0.00296783447265625, -0.018890380859375, 0.008331298828125, 0.027801513671875, -0.0166778564453125, 0.00847625732421875, 0.00876617431640625, 0.0248260498046875, -0.019775390625, -0.0113983154296875, -0.005687713623046875, 0.0226593017578125, -0.006488800048828125, 0.004940032958984375, -0.00705718994140625, 0.055450439453125, -0.004062652587890625, 0.07196044921875, 0.0005774497985839844, 0.038665771484375, 0.0099029541015625, 0.051116943359375, -0.0138702392578125, -0.0089874267578125, 0.0200958251953125, -0.05810546875, -0.007671356201171875, -0.0005288124084472656, -0.059844970703125, -0.0477294921875, 0.00803375244140625, -0.039581298828125, -0.023101806640625, 0.01459503173828125 ]
0db32941d8a62d1c78119dc65b124132cdbecbb5
Wordpress Stackexchange Q: Make Custom Field Into A Link On The Front End? I have set some custom field 'artist' and 'song-name' displaying like: Artist: <user input> Song Name: <user input> My question, how do you make the on artist and song name into a clickable link? Such that when the artist name is clicked for example, it will bring up the page with all posts of that artist name? Thinking about it, its kinda like the_category() or get_category_link, only I am using custom fields. A: This is better accomplished by registering a new taxonomy. You get all of the advantages of categories and tags without the hassle of custom fields. Codex: register_taxonomy Tutorial: How to Create Custom Taxonomies in WordPress 3
Q: Make Custom Field Into A Link On The Front End? I have set some custom field 'artist' and 'song-name' displaying like: Artist: <user input> Song Name: <user input> My question, how do you make the on artist and song name into a clickable link? Such that when the artist name is clicked for example, it will bring up the page with all posts of that artist name? Thinking about it, its kinda like the_category() or get_category_link, only I am using custom fields. A: This is better accomplished by registering a new taxonomy. You get all of the advantages of categories and tags without the hassle of custom fields. Codex: register_taxonomy Tutorial: How to Create Custom Taxonomies in WordPress 3 A: These are two very different data relationships: Each song may be assigned to more than one artist – it is a 1:n relationship. But each song has just one title – a 1:1 relationship. So use a basic meta field (post meta) for the title or even just the title field. And use a custom taxonomy for artists. Look at the very similar question about quote authors to get an idea how this could be done.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:417595", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/43986" }
[ 0.07208251953125, -0.0009760856628417969, 0.022308349609375, -0.053253173828125, 0.00592041015625, -0.014312744140625, 0.0195770263671875, -0.0177764892578125, -0.01068878173828125, -0.000049948692321777344, -0.0117950439453125, 0.0028076171875, -0.0380859375, -0.03411865234375, -0.00003457069396972656, -0.054168701171875, 0.0179290771484375, 0.00843048095703125, 0.033935546875, -0.0090484619140625, 0.035552978515625, -0.0027828216552734375, 0.0205535888671875, -0.03179931640625, 0.035064697265625, -0.01268768310546875, 0.0489501953125, -0.032318115234375, 0.039520263671875, 0.0038585662841796875, 0.0295257568359375, -0.04571533203125, 0.0162506103515625, 0.0026912689208984375, -0.00760650634765625, -0.0036334991455078125, 0.03607177734375, -0.00789642333984375, -0.01308441162109375, 0.04388427734375, 0.027130126953125, -0.029998779296875, -0.056304931640625, 0.0036830902099609375, -0.0161895751953125, -0.057403564453125, 0.050140380859375, -0.04052734375, 0.00634765625, -0.0019044876098632812, 0.0015115737915039062, 0.04241943359375, 0.0081787109375, -0.00872039794921875, 0.00919342041015625, 0.0230865478515625, -0.046661376953125, -0.0294189453125, 0.004100799560546875, 0.0205841064453125, 0.041046142578125, -0.026214599609375, 0.00878143310546875, 0.02490234375, 0.0121612548828125, -0.01012420654296875, -0.0217132568359375, 0.03240966796875, -0.0113372802734375, -0.0137481689453125, 0.00830078125, -0.021148681640625, 0.0068359375, 0.01245880126953125, -0.023956298828125, -0.0234832763671875, 0.020355224609375, -0.01436614990234375, 0.0054168701171875, 0.017486572265625, -0.01180267333984375, 0.006847381591796875, -0.01568603515625, -0.00864410400390625, 0.013946533203125, 0.01222991943359375, -0.0159912109375, -0.01471710205078125, -0.00519561767578125, -0.0335693359375, -0.017303466796875, 0.0004296302795410156, -0.037322998046875, 0.00550079345703125, -0.021881103515625, -0.00839996337890625, 0.02264404296875, 0.0268707275390625, 0.009521484375, 0.00237274169921875, 0.015716552734375, -0.046661376953125, 0.037353515625, -0.0253753662109375, 0.0018520355224609375, 0.07855224609375, 0.029815673828125, 0.026885986328125, 0.027618408203125, -0.016326904296875, 0.016143798828125, -0.0018281936645507812, -0.0024356842041015625, 0.0298614501953125, -0.0389404296875, -0.004077911376953125, -0.0214385986328125, 0.0019741058349609375, -0.02410888671875, 0.038482666015625, 0.005035400390625, -0.0160675048828125, 0.0126190185546875, 0.047210693359375, -0.0006384849548339844, -0.00848388671875, -0.02825927734375, 0.00286102294921875, -0.006504058837890625, 0.012908935546875, -0.038787841796875, 0.0239410400390625, 0.086669921875, 0.023681640625, 0.01355743408203125, -0.0286712646484375, 0.00563812255859375, -0.0276336669921875, -0.0213470458984375, 0.044525146484375, -0.0113067626953125, -0.050628662109375, 0.012664794921875, 0.00027060508728027344, 0.044189453125, 0.0102081298828125, 0.01088714599609375, 0.0255126953125, 0.009735107421875, -0.0295562744140625, 0.0299835205078125, -0.01053619384765625, 0.035736083984375, 0.005611419677734375, 0.0021228790283203125, -0.0148162841796875, 0.0609130859375, -0.032470703125, -0.0238037109375, -0.034393310546875, 0.05767822265625, 0.0208282470703125, -0.0112762451171875, -0.03485107421875, -0.033416748046875, -0.066650390625, -0.05938720703125, 0.0102996826171875, 0.0250244140625, -0.0251007080078125, 0.034423828125, 0.01097869873046875, -0.0108795166015625, 0.011993408203125, 0.0310211181640625, -0.00018274784088134766, 0.0231781005859375, 0.009521484375, 0.00942230224609375, 0.041717529296875, 0.002025604248046875, -0.031280517578125, 0.0797119140625, -0.060516357421875, -0.06396484375, 0.058074951171875, 0.004116058349609375, 0.077392578125, 0.016143798828125, 0.0099334716796875, 0.027374267578125, 0.015533447265625, 0.0013284683227539062, 0.0009832382202148438, 0.0007600784301757812, -0.032012939453125, -0.007659912109375, -0.00946807861328125, -0.0170440673828125, 0.03948974609375, -0.033172607421875, 0.03753662109375, -0.016998291015625, 0.04925537109375, 0.040191650390625, 0.028594970703125, 0.01085662841796875, 0.0108184814453125, -0.01904296875, 0.01503753662109375, 0.0226287841796875, -0.0033817291259765625, -0.0089569091796875, -0.05157470703125, -0.0172882080078125, 0.005329132080078125, 0.00995635986328125, 0.00809478759765625, -0.0167388916015625, -0.0174560546875, -0.00798797607421875, -0.0262298583984375, -0.0021762847900390625, 0.053680419921875, -0.0251007080078125, -0.00396728515625, -0.0276031494140625, -0.001705169677734375, -0.044189453125, 0.026153564453125, -0.015228271484375, 0.012298583984375, 0.07061767578125, 0.0017910003662109375, -0.0350341796875, 0.004695892333984375, 0.004978179931640625, -0.0758056640625, -0.0179443359375, 0.06646728515625, 0.0183258056640625, -0.02398681640625, -0.0229339599609375, -0.0109710693359375, -0.01531982421875, 0.01020050048828125, 0.034423828125, -0.0265045166015625, 0.0269012451171875, 0.06292724609375, -0.01934814453125, 0.0214385986328125, 0.0162200927734375, -0.04290771484375, 0.02093505859375, 0.047821044921875, 0.007659912109375, -0.02569580078125, -0.0018100738525390625, 0.0052947998046875, 0.0022716522216796875, -0.03350830078125, -0.041778564453125, -0.013153076171875, -0.0015201568603515625, 0.019134521484375, 0.0175018310546875, 0.00567626953125, -0.038482666015625, 0.0223541259765625, 0.0255889892578125, -0.0148162841796875, -0.0017061233520507812, 0.0135345458984375, 0.01259613037109375, -0.02130126953125, -0.0025997161865234375, -0.0142974853515625, -0.0032329559326171875, -0.0049591064453125, -0.016326904296875, 0.004413604736328125, -0.004364013671875, 0.0007462501525878906, -0.0035400390625, -0.03033447265625, 0.02716064453125, 0.02825927734375, -0.009857177734375, -0.005184173583984375, 0.0147705078125, 0.053955078125, 0.0038604736328125, 0.01751708984375, 0.0092620849609375, -0.005062103271484375, -0.0122833251953125, -0.0306549072265625, 0.0341796875, -0.034088134765625, 0.028411865234375, 0.063720703125, -0.01611328125, 0.0168609619140625, -0.004238128662109375, -0.01000213623046875, -0.00817108154296875, 0.00762939453125, -0.0038318634033203125, -0.049652099609375, -0.0092620849609375, -0.018341064453125, 0.0214080810546875, 0.0270843505859375, -0.0081329345703125, -0.040283203125, -0.01560211181640625, 0.0217437744140625, -0.05987548828125, -0.035980224609375, 0.03076171875, -0.03521728515625, 0.014739990234375, 0.00458526611328125, -0.019195556640625, -0.029144287109375, 0.036346435546875, -0.0006175041198730469, 0.05084228515625, -0.0377197265625, -0.0440673828125, -0.020172119140625, -0.061614990234375, -0.0058135986328125, 0.00325775146484375, -0.0092010498046875, 0.00830078125, 0.0024871826171875, 0.00528717041015625, 0.00634765625, 0.040771484375, 0.005649566650390625, -0.00170135498046875, -0.0121002197265625, 0.0037517547607421875, 0.01293182373046875, 0.019439697265625, 0.007785797119140625, 0.0430908203125, 0.037384033203125, -0.03631591796875, -0.0276031494140625, -0.0194854736328125, 0.018768310546875, 0.0236663818359375, 0.015899658203125, 0.013458251953125, 0.0654296875, 0.06988525390625, 0.01123046875, 0.003543853759765625, 0.0106353759765625, 0.0036792755126953125, -0.003753662109375, -0.056182861328125, -0.008453369140625, 0.0026111602783203125, 0.044769287109375, -0.007213592529296875, 0.0231170654296875, -0.0357666015625, -0.0013780593872070312, -0.00640106201171875, 0.016632080078125, 0.02227783203125, 0.034271240234375, 0.0287933349609375, -0.0179443359375, -0.00041604042053222656, 0.0028514862060546875, 0.0058135986328125, -0.01019287109375, 0.019195556640625, -0.031646728515625, -0.037994384765625, 0.046417236328125, -0.024444580078125, 0.01047515869140625, -0.0443115234375, -0.0278167724609375, -0.0186920166015625, 0.07080078125, -0.0081024169921875, -0.010406494140625, 0.0540771484375, 0.009735107421875, -0.020263671875, 0.0191650390625, -0.0791015625, -0.0102081298828125, -0.04705810546875, 0.0070953369140625, 0.01120758056640625, -0.014495849609375, -0.04876708984375, 0.06085205078125, -0.048492431640625, 0.01078033447265625, 0.038787841796875, 0.006816864013671875, -0.037353515625, 0.04974365234375, -0.0556640625, 0.0377197265625, -0.04705810546875, 0.0156707763671875, -0.04962158203125, -0.007778167724609375, 0.023193359375, 0.01093292236328125, -0.0167083740234375, -0.006984710693359375, -0.0266571044921875, 0.0237579345703125, 0.038360595703125, 0.018463134765625, 0.03729248046875, -0.0188140869140625, 0.03741455078125, 0.01690673828125, 0.037078857421875, -0.00830841064453125, -0.006885528564453125, -0.0271453857421875, -0.01629638671875, 0.045501708984375, -0.0128936767578125, 0.029388427734375, 0.0025997161865234375, -0.01348114013671875, -0.0474853515625, -0.0740966796875, -0.042999267578125, -0.0006937980651855469, 0.0035858154296875, -0.0236968994140625, -0.066162109375, -0.039764404296875, 0.0028133392333984375, -0.032012939453125, 0.0008716583251953125, 0.020355224609375, 0.080322265625, 0.023406982421875, 0.004150390625, -0.0306396484375, 0.0173797607421875, 0.044586181640625, 0.0278167724609375, 0.00493621826171875, 0.0002999305725097656, -0.0406494140625, 0.046112060546875, 0.0176849365234375, 0.00878143310546875, -0.015289306640625, 0.049957275390625, 0.00641632080078125, -0.00354766845703125, 0.008148193359375, -0.00850677490234375, 0.0022869110107421875, 0.0299530029296875, -0.039794921875, -0.0061187744140625, -0.0131988525390625, 0.050018310546875, -0.03240966796875, 0.0245361328125, -0.03717041015625, -0.01456451416015625, -0.0013723373413085938, -0.0416259765625, 0.048126220703125, 0.01549530029296875, -0.0015354156494140625, 0.019866943359375, 0.02923583984375, 0.007686614990234375, 0.0203094482421875, -0.0404052734375, -0.00267791748046875, 0.02154541015625, -0.005947113037109375, -0.007843017578125, 0.03875732421875, -0.0198516845703125, 0.06927490234375, 0.0161285400390625, -0.04736328125, -0.005519866943359375, -0.01436614990234375, 0.0110015869140625, 0.00832366943359375, 0.01580810546875, 0.05181884765625, 0.032562255859375, 0.003986358642578125, -0.00372314453125, -0.0118408203125, 0.035308837890625, -0.0435791015625, 0.0128173828125, 0.01324462890625, -0.0010471343994140625, -0.004528045654296875, 0.0810546875, 0.03802490234375, 0.0166015625, -0.03076171875, 0.034393310546875, 0.041168212890625, 0.0196533203125, 0.0272674560546875, 0.0082855224609375, -0.040191650390625, 0.01030731201171875, -0.01239776611328125, -0.0279998779296875, 0.02520751953125, 0.01027679443359375, 0.03192138671875, 0.0222015380859375, -0.015655517578125, 0.0120086669921875, -0.03179931640625, -0.0025768280029296875, -0.00885772705078125, -0.052032470703125, -0.042022705078125, -0.00995635986328125, 0.0197601318359375, 0.008026123046875, -0.0189971923828125, -0.0250091552734375, 0.0328369140625, -0.0350341796875, 0.0445556640625, -0.0221405029296875, 0.032257080078125, -0.0038547515869140625, -0.01129150390625, 0.0174713134765625, -0.007068634033203125, 0.0350341796875, -0.044403076171875, -0.0030612945556640625, -0.04351806640625, -0.002162933349609375, 0.0625, -0.022369384765625, -0.020965576171875, -0.03173828125, 0.031097412109375, -0.029144287109375, -0.01287078857421875, 0.0667724609375, 0.0212249755859375, -0.00835418701171875, 0.01387786865234375, -0.040313720703125, 0.0016775131225585938, -0.0020465850830078125, -0.0252532958984375, 0.0005087852478027344, -0.0171661376953125, -0.0012035369873046875, 0.0160980224609375, -0.0089569091796875, -0.04412841796875, -0.01375579833984375, -0.0032024383544921875, 0.01337432861328125, -0.039093017578125, 0.017181396484375, -0.01239013671875, 0.032257080078125, 0.0269775390625, 0.0301666259765625, -0.02899169921875, -0.04736328125, -0.0234222412109375, -0.038543701171875, -0.07635498046875, -0.0181732177734375, 0.041107177734375, -0.0255279541015625, 0.08270263671875, 0.033935546875, 0.01369476318359375, 0.01097869873046875, -0.0243682861328125, 0.0009775161743164062, -0.0214080810546875, 0.056915283203125, -0.0005192756652832031, 0.017181396484375, -0.00911712646484375, -0.000028133392333984375, 0.043182373046875, -0.0009570121765136719, -0.000171661376953125, -0.01404571533203125, -0.01052093505859375, -0.0005273818969726562, 0.008636474609375, -0.0121612548828125, 0.00815582275390625, 0.00658416748046875, 0.002716064453125, 0.0181884765625, 0.008148193359375, 0.01061248779296875, -0.01910400390625, 0.004970550537109375, 0.0138397216796875, -0.020263671875, 0.041778564453125, -0.01068115234375, -0.015472412109375, 0.0032176971435546875, -0.0253143310546875, 0.002674102783203125, 0.027618408203125, 0.046234130859375, -0.05902099609375, 0.00806427001953125, 0.003086090087890625, 0.004665374755859375, 0.0135040283203125, 0.029632568359375, -0.0079345703125, 0.0201416015625, -0.01404571533203125, -0.04071044921875, -0.010040283203125, 0.01427459716796875, 0.0039825439453125, 0.0266571044921875, 0.0399169921875, 0.04632568359375, -0.017364501953125, -0.031951904296875, -0.07330322265625, 0.0087127685546875, -0.016082763671875, -0.0217437744140625, 0.026092529296875, -0.0279541015625, 0.03302001953125, 0.0152587890625, 0.056732177734375, -0.030731201171875, 0.0518798828125, -0.0125885009765625, 0.02911376953125, 0.03521728515625, 0.032623291015625, -0.00881195068359375, 0.0064239501953125, -0.00860595703125, 0.0316162109375, 0.036956787109375, -0.026702880859375, -0.0372314453125, 0.005706787109375, 0.0095672607421875, -0.005878448486328125, 0.001689910888671875, -0.01392364501953125, -0.02923583984375, 0.07086181640625, 0.179443359375, -0.01450347900390625, -0.07177734375, 0.0277862548828125, -0.009307861328125, -0.039398193359375, -0.0302276611328125, 0.00536346435546875, -0.06671142578125, -0.04107666015625, -0.021484375, -0.045928955078125, 0.022003173828125, -0.035614013671875, -0.0450439453125, 0.13037109375, -0.01776123046875, 0.009918212890625, -0.003253936767578125, 0.06561279296875, 0.0014944076538085938, 0.0675048828125, -0.022247314453125, 0.0518798828125, 0.038330078125, 0.0025577545166015625, -0.03472900390625, -0.0269622802734375, 0.000659942626953125, 0.032745361328125, 0.049896240234375, 0.0130767822265625, 0.00264739990234375, 0.0023250579833984375, 0.051513671875, 0.0271759033203125, -0.023681640625, 0.0205841064453125, 0.0167236328125, 0.0081024169921875, 0.040679931640625, 0.035888671875, 0.04229736328125, 0.0132293701171875, -0.032623291015625, 0.03912353515625, 0.01605224609375, 0.019012451171875, -0.0009188652038574219, 0.04461669921875, -0.0523681640625, -0.0006170272827148438, 0.048828125, -0.0032863616943359375, 0.0023517608642578125, 0.057220458984375, 0.06591796875, -0.01139068603515625, 0.0201416015625, -0.031951904296875, 0.061248779296875, 0.025177001953125, 0.0335693359375, -0.0172882080078125, -0.004589080810546875, 0.0377197265625, 0.00788116455078125, 0.008941650390625, 0.034210205078125, -0.0017805099487304688, 0.0654296875, 0.0084381103515625, -0.01134490966796875, -0.06805419921875, -0.016204833984375, 0.04833984375, 0.08599853515625, -0.05364990234375, -0.05487060546875, 0.0045623779296875, 0.00568389892578125, 0.042083740234375, 0.04522705078125, 0.06646728515625, 0.0169219970703125, 0.013153076171875, -0.050811767578125, 0.04443359375, 0.03399658203125, 0.0225830078125, -0.01273345947265625, 0.00315093994140625, -0.1046142578125, 0.04791259765625, -0.04583740234375, 0.00970458984375, 0.00803375244140625, 0.031402587890625, 0.0229339599609375, 0.01230621337890625, 0.0308380126953125, -0.010772705078125, 0.01192474365234375, 0.033233642578125, 0.0237884521484375, -0.0211334228515625, -0.0102996826171875, -0.040679931640625, 0.0241241455078125, 0.01361083984375, 0.00035190582275390625, 0.01203155517578125, 0.029510498046875, 0.041656494140625, 0.0130767822265625, -0.0169830322265625, 0.041717529296875, -0.01200103759765625, -0.0005583763122558594, -0.026885986328125, 0.0016565322875976562, 0.0265045166015625, 0.005672454833984375, -0.006404876708984375, -0.01434326171875, 0.056427001953125, -0.0016088485717773438, 0.053924560546875, -0.0106964111328125, -0.0109710693359375, 0.040069580078125, -0.075927734375, 0.0858154296875, 0.011962890625, -0.09674072265625, -0.01788330078125, -0.00955963134765625, -0.08087158203125, 0.0274200439453125, 0.04150390625, -0.060272216796875, 0.0259246826171875, -0.06317138671875, 0.005489349365234375, -0.007053375244140625, -0.0162506103515625, -0.0028228759765625, 0.043731689453125, -0.002471923828125, 0.0046844482421875, -0.033843994140625, -0.01465606689453125, 0.013092041015625, 0.0050201416015625, -0.0175933837890625, 0.091552734375, -0.024017333984375, -0.01287841796875, -0.03790283203125, 0.014556884765625, -0.032928466796875, -0.03253173828125, 0.049285888671875, 0.015869140625, -0.0086517333984375, -0.0078277587890625, 0.00006568431854248047, 0.0208587646484375, 0.005489349365234375, -0.054443359375, -0.0153045654296875, 0.018280029296875, 0.01139068603515625, 0.009063720703125, 0.0032863616943359375, -0.031768798828125, -0.0322265625, -0.046295166015625, -0.0240631103515625, 0.0221710205078125, 0.0222625732421875, -0.0177764892578125, 0.03179931640625, 0.03326416015625, -0.006320953369140625, 0.00870513916015625, -0.048370361328125, 0.01157379150390625, 0.025848388671875, 0.059173583984375, -0.023162841796875, 0.00038504600524902344, -0.0175933837890625, 0.011199951171875, -0.0038509368896484375, 0.0269622802734375, 0.00844573974609375, -0.0164337158203125, 0.00220489501953125, -0.00308990478515625, 0.01467132568359375, -0.01064300537109375, -0.00954437255859375, -0.0020122528076171875, -0.00429534912109375, -0.0036411285400390625, -0.04095458984375, -0.0303497314453125, -0.022705078125, -0.0032711029052734375, 0.0253448486328125, -0.01448822021484375, -0.0374755859375, -0.0732421875, 0.0030193328857421875, 0.0309295654296875, 0.0025272369384765625, -0.03546142578125, 0.00539398193359375, -0.0225372314453125, 0.04254150390625, -0.0084228515625, 0.01136016845703125, -0.0005269050598144531, 0.0540771484375, -0.014251708984375, -0.01983642578125, -0.016876220703125, 0.0127410888671875, -0.023681640625, 0.0228424072265625, 0.0222625732421875, -0.0211334228515625, -0.002750396728515625, 0.01238250732421875, 0.023651123046875, 0.055328369140625, 0.047698974609375, -0.0179901123046875, 0.03369140625, 0.00018417835235595703, -0.019012451171875, -0.0577392578125, 0.00864410400390625, -0.050506591796875, 0.0186767578125, -0.0115509033203125, 0.01187896728515625, 0.0265350341796875, -0.03228759765625, -0.10162353515625, 0.03521728515625, -0.0208892822265625, -0.0430908203125, -0.04736328125, -0.0146331787109375, 0.0014314651489257812, 0.04669189453125, -0.0110015869140625, -0.0146331787109375, -0.038604736328125, 0.03521728515625, 0.0006499290466308594, 0.01540374755859375, 0.017120361328125, 0.025238037109375, -0.0477294921875, 0.00916290283203125, -0.005126953125, -0.00392913818359375, 0.04278564453125, -0.0302886962890625, 0.0290374755859375, 0.002628326416015625, -0.0782470703125, -0.018768310546875, -0.0258331298828125, 0.0462646484375, -0.0051116943359375, -0.02923583984375, -0.0003993511199951172, -0.046630859375, 0.017669677734375, 0.00406646728515625, -0.0019664764404296875, 0.005451202392578125, -0.05340576171875, -0.04913330078125, -0.015045166015625, -0.04888916015625, 0.0004260540008544922, -0.0958251953125, -0.0104522705078125, 0.007015228271484375, -0.01409912109375, -0.0159759521484375, 0.00902557373046875, -0.041015625, 0.016204833984375, 0.045257568359375, 0.0280609130859375, -0.038787841796875, 0.058563232421875, 0.0099639892578125, -0.027069091796875, -0.027801513671875, -0.00855255126953125, -0.0157623291015625, -0.01554107666015625, -0.021240234375, 0.014862060546875, -0.04107666015625, -0.0175323486328125, 0.0222320556640625, -0.0083160400390625, -0.0030536651611328125, -0.025360107421875, -0.024658203125, -0.01227569580078125, 0.0511474609375, -0.020416259765625, 0.03387451171875, 0.0005326271057128906, 0.0885009765625, 0.006343841552734375, 0.0855712890625, -0.03179931640625, -0.01922607421875, -0.02166748046875, 0.016876220703125, -0.04486083984375, 0.01558685302734375, 0.0028667449951171875, -0.015228271484375, 0.01053619384765625, 0.0066070556640625, -0.0270538330078125, -0.0117645263671875, -0.0115203857421875, -0.039886474609375, -0.0247955322265625, 0.0052490234375 ]
bdbaa2c0b8b9c2194292456b8d069e14d7a169e5
Wordpress Stackexchange Q: Logout redirect to current page - function I'm looking for a function that can redirect users when they logout to the current page. I'm looking for a code I can use in functions.php? A: Using this code in the functions.php does the trick: function wpse_44020_logout_redirect( $logouturl, $redir ) { return $logouturl . '&amp;redirect_to=' . get_permalink(); } add_filter( 'logout_url', 'wpse_44020_logout_redirect', 10, 2 ); Note - The above code works only on non-admin pages. To make this work on any page you should replace: return $logouturl . '&amp;redirect_to=' . get_permalink(); With: return $logouturl . '&amp;redirect_to=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Q: Logout redirect to current page - function I'm looking for a function that can redirect users when they logout to the current page. I'm looking for a code I can use in functions.php? A: Using this code in the functions.php does the trick: function wpse_44020_logout_redirect( $logouturl, $redir ) { return $logouturl . '&amp;redirect_to=' . get_permalink(); } add_filter( 'logout_url', 'wpse_44020_logout_redirect', 10, 2 ); Note - The above code works only on non-admin pages. To make this work on any page you should replace: return $logouturl . '&amp;redirect_to=' . get_permalink(); With: return $logouturl . '&amp;redirect_to=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; A: Have a look here - http://codex.wordpress.org/Function_Reference/wp_logout_url Easy as adding this: <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a> A: It's really easy: global $post; $postid = $post->ID; $log_out_me = wp_logout_url( get_permalink($postid) ); <a href="'<?php echo $log_out_me; ?>">Logout</a> Now get_permalink() is out of the loop. A: add_filter('logout_url', create_function(false, "return '" . wp_logout_url(get_option("home")) . "';")); Or change home URL to current page URL.
wordpress
{ "language": "en", "length": 160, "provenance": "stackexchange_00019.jsonl.gz:417605", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44020" }
[ 0.0745849609375, 0.0173187255859375, -0.004711151123046875, -0.0377197265625, 0.02752685546875, -0.04205322265625, 0.040985107421875, -0.01239013671875, 0.0175933837890625, -0.0036640167236328125, 0.00873565673828125, -0.0187530517578125, -0.047576904296875, -0.04974365234375, 0.00588226318359375, -0.01593017578125, 0.032470703125, -0.001941680908203125, 0.04791259765625, 0.002239227294921875, -0.00811767578125, 0.040283203125, 0.035430908203125, 0.0238037109375, -0.026611328125, -0.00665283203125, 0.11029052734375, -0.0098724365234375, -0.010986328125, -0.0286865234375, 0.0004901885986328125, 0.004146575927734375, 0.0088653564453125, 0.0419921875, -0.0347900390625, 0.017303466796875, -0.01438140869140625, 0.018310546875, 0.01432037353515625, 0.0162506103515625, 0.0298614501953125, -0.022216796875, -0.0195770263671875, 0.023468017578125, -0.034820556640625, -0.022918701171875, 0.018829345703125, -0.005603790283203125, -0.0090179443359375, 0.055450439453125, 0.042236328125, 0.0053253173828125, 0.04473876953125, -0.0247650146484375, -0.00628662109375, 0.011505126953125, -0.016265869140625, -0.0131988525390625, 0.042510986328125, 0.00984954833984375, -0.0129241943359375, -0.032073974609375, 0.026031494140625, -0.03497314453125, -0.0303192138671875, 0.0127410888671875, -0.0044708251953125, 0.015045166015625, -0.020782470703125, -0.055755615234375, -0.010223388671875, -0.003753662109375, -0.024200439453125, 0.027740478515625, -0.0257415771484375, -0.032318115234375, 0.0355224609375, -0.01145172119140625, -0.005413055419921875, 0.053619384765625, -0.028533935546875, -0.0115814208984375, -0.023101806640625, -0.01296234130859375, -0.004734039306640625, 0.00485992431640625, -0.0301666259765625, -0.00421905517578125, -0.031402587890625, -0.03411865234375, -0.03704833984375, 0.02935791015625, -0.0345458984375, -0.033416748046875, -0.03466796875, -0.0181884765625, 0.028533935546875, 0.048858642578125, 0.0007176399230957031, -0.02239990234375, -0.0047607421875, -0.03289794921875, -0.03497314453125, -0.0153961181640625, 0.0038776397705078125, 0.067138671875, 0.01012420654296875, -0.005748748779296875, -0.00693511962890625, -0.0079803466796875, 0.01067352294921875, -0.04351806640625, -0.03485107421875, -0.039825439453125, -0.007053375244140625, 0.04644775390625, -0.0282745361328125, -0.01271820068359375, -0.0010967254638671875, 0.016021728515625, -0.046295166015625, -0.040557861328125, 0.04779052734375, -0.0010242462158203125, 0.00905609130859375, -0.0133514404296875, -0.0287322998046875, -0.01824951171875, 0.025390625, 0.01436614990234375, -0.046966552734375, -0.002422332763671875, 0.040863037109375, -0.0047454833984375, 0.005550384521484375, -0.0256500244140625, 0.076171875, -0.043701171875, 0.009063720703125, 0.0318603515625, 0.001140594482421875, -0.049774169921875, -0.035919189453125, 0.007045745849609375, 0.036651611328125, 0.0467529296875, 0.030426025390625, -0.0020503997802734375, -0.0244598388671875, -0.047698974609375, -0.003101348876953125, 0.00023746490478515625, 0.005046844482421875, -0.02642822265625, 0.0149383544921875, -0.03375244140625, -0.02459716796875, 0.002201080322265625, 0.019317626953125, 0.007740020751953125, 0.035614013671875, -0.0025920867919921875, -0.0053558349609375, -0.01309967041015625, -0.042144775390625, -0.00475311279296875, -0.04937744140625, -0.0167083740234375, 0.0290985107421875, 0.042572021484375, 0.0235595703125, -0.053985595703125, 0.005645751953125, 0.0271759033203125, -0.0066680908203125, 0.0212554931640625, -0.019866943359375, 0.041046142578125, 0.028717041015625, 0.035552978515625, 0.0154266357421875, -0.0261993408203125, 0.043121337890625, 0.01168060302734375, -0.0252838134765625, 0.0494384765625, -0.01535797119140625, 0.024322509765625, -0.00010204315185546875, -0.005207061767578125, -0.0220489501953125, 0.030029296875, -0.006847381591796875, -0.0019855499267578125, -0.029693603515625, -0.014862060546875, 0.031707763671875, 0.026947021484375, -0.024444580078125, 0.00933837890625, 0.050079345703125, 0.043548583984375, -0.033905029296875, 0.0127105712890625, -0.060089111328125, 0.04132080078125, -0.01959228515625, 0.029541015625, 0.024169921875, 0.0195159912109375, 0.001598358154296875, -0.004161834716796875, -0.0022125244140625, -0.0276641845703125, -0.03204345703125, 0.01396942138671875, -0.016265869140625, 0.05145263671875, 0.0031185150146484375, 0.042816162109375, 0.00789642333984375, -0.0411376953125, 0.0005588531494140625, -0.037261962890625, 0.018341064453125, -0.0251922607421875, -0.030792236328125, -0.03839111328125, -0.02239990234375, -0.0254974365234375, -0.009429931640625, 0.08349609375, 0.02215576171875, 0.0179290771484375, -0.03802490234375, -0.0116119384765625, -0.01593017578125, -0.0018529891967773438, -0.0254974365234375, 0.0280303955078125, 0.041168212890625, 0.049896240234375, 0.01654052734375, 0.039764404296875, 0.0535888671875, -0.053985595703125, 0.004276275634765625, 0.01351165771484375, 0.049530029296875, 0.0421142578125, -0.01458740234375, -0.0408935546875, 0.0302734375, -0.056640625, 0.036773681640625, 0.0257415771484375, -0.0159149169921875, 0.01374053955078125, 0.01299285888671875, -0.046142578125, 0.0029315948486328125, -0.0516357421875, -0.03240966796875, -0.00788116455078125, -0.00965118408203125, -0.01259613037109375, 0.0021209716796875, -0.006786346435546875, -0.01343536376953125, -0.032073974609375, 0.032867431640625, -0.006359100341796875, -0.005374908447265625, 0.039825439453125, 0.02069091796875, -0.0653076171875, -0.04583740234375, 0.01245880126953125, 0.00942230224609375, 0.004177093505859375, 0.0018758773803710938, 0.032958984375, -0.0289764404296875, -0.0219573974609375, 0.028411865234375, 0.0017805099487304688, -0.033782958984375, -0.01558685302734375, 0.04583740234375, -0.01395416259765625, 0.0272979736328125, 0.00191497802734375, -0.023406982421875, 0.035919189453125, 0.035614013671875, -0.053924560546875, 0.0160369873046875, -0.03680419921875, 0.043731689453125, -0.042236328125, 0.01983642578125, 0.04925537109375, -0.0287017822265625, 0.038421630859375, -0.005283355712890625, 0.019256591796875, 0.00830078125, -0.021759033203125, -0.026092529296875, -0.01433563232421875, -0.029083251953125, 0.0030307769775390625, 0.0218963623046875, 0.031494140625, -0.01181793212890625, -0.03961181640625, -0.026214599609375, -0.00457763671875, -0.083984375, -0.07208251953125, -0.049468994140625, -0.057220458984375, -0.00214385986328125, 0.012939453125, -0.0160369873046875, 0.01387786865234375, 0.050567626953125, 0.015655517578125, 0.0384521484375, -0.019775390625, -0.0562744140625, -0.016448974609375, -0.0628662109375, 0.00995635986328125, -0.00644683837890625, -0.006443023681640625, -0.0020198822021484375, 0.0300140380859375, -0.005985260009765625, -0.038177490234375, -0.019744873046875, 0.07855224609375, 0.007659912109375, -0.0340576171875, -0.0291748046875, -0.004924774169921875, -0.0088958740234375, 0.0028858184814453125, 0.059173583984375, 0.006870269775390625, 0.005809783935546875, 0.0113983154296875, -0.024688720703125, -0.0439453125, 0.005542755126953125, -0.019561767578125, -0.001682281494140625, -0.01873779296875, 0.0019483566284179688, -0.042572021484375, -0.0200042724609375, -0.00946044921875, -0.0654296875, 0.00067138671875, 0.038177490234375, -0.01047515869140625, 0.0218963623046875, -0.0396728515625, 0.01319122314453125, 0.004047393798828125, 0.0168609619140625, -0.00463104248046875, 0.01538848876953125, -0.004566192626953125, 0.008544921875, -0.028717041015625, 0.034271240234375, -0.0008192062377929688, 0.03704833984375, 0.0232696533203125, 0.022552490234375, -0.00992584228515625, 0.00008535385131835938, -0.05615234375, -0.0950927734375, 0.06585693359375, -0.0318603515625, -0.05267333984375, -0.01763916015625, -0.0167236328125, 0.020843505859375, 0.09124755859375, -0.005741119384765625, -0.01200103759765625, -0.004241943359375, -0.005870819091796875, -0.0016880035400390625, 0.0003020763397216797, -0.036224365234375, -0.0110626220703125, -0.1097412109375, 0.01277923583984375, -0.01549530029296875, -0.00301361083984375, -0.00580596923828125, -0.005634307861328125, -0.0215606689453125, -0.06707763671875, 0.011932373046875, -0.00891876220703125, 0.005657196044921875, 0.0181732177734375, -0.03497314453125, 0.005756378173828125, 0.0211181640625, -0.044281005859375, -0.007106781005859375, 0.00839996337890625, -0.0283355712890625, 0.03680419921875, 0.056304931640625, -0.05609130859375, 0.009674072265625, 0.02386474609375, 0.0111236572265625, 0.004444122314453125, -0.0164947509765625, -0.016510009765625, 0.038360595703125, -0.004261016845703125, -0.030242919921875, 0.0011138916015625, 0.0118255615234375, 0.0013971328735351562, -0.03955078125, -0.0097808837890625, -0.0213775634765625, 0.021759033203125, 0.025970458984375, -0.051422119140625, -0.04449462890625, -0.024444580078125, 0.0221405029296875, 0.031829833984375, -0.00839996337890625, 0.0183258056640625, -0.0080108642578125, -0.04571533203125, 0.0323486328125, 0.0102996826171875, -0.049468994140625, 0.0127105712890625, 0.0152435302734375, 0.0132598876953125, -0.0191192626953125, -0.00702667236328125, 0.004940032958984375, 0.0029544830322265625, -0.018951416015625, 0.03857421875, -0.046783447265625, -0.02325439453125, 0.111572265625, -0.050018310546875, -0.0008111000061035156, -0.059967041015625, 0.048248291015625, -0.0153045654296875, -0.0240478515625, 0.0180511474609375, -0.046417236328125, 0.046417236328125, -0.001956939697265625, 0.0024967193603515625, -0.027587890625, 0.02532958984375, 0.037933349609375, -0.0163421630859375, 0.017822265625, -0.0267486572265625, -0.03631591796875, 0.0009665489196777344, 0.0197906494140625, 0.025848388671875, 0.058837890625, -0.021392822265625, 0.042236328125, 0.036102294921875, -0.005870819091796875, -0.031829833984375, -0.00962066650390625, -0.0203704833984375, 0.042938232421875, -0.06597900390625, -0.0035858154296875, -0.01190948486328125, -0.017364501953125, 0.0673828125, 0.029693603515625, -0.035308837890625, 0.0116119384765625, -0.0225982666015625, -0.022216796875, -0.0132904052734375, -0.0010585784912109375, 0.0452880859375, 0.0109100341796875, -0.032135009765625, -0.0136871337890625, -0.030303955078125, -0.0003020763397216797, -0.0582275390625, 0.01433563232421875, -0.00827789306640625, 0.00399017333984375, -0.00931549072265625, 0.093505859375, 0.00316619873046875, 0.05975341796875, -0.018829345703125, 0.006175994873046875, -0.0015554428100585938, 0.01192474365234375, 0.016937255859375, 0.039520263671875, -0.00972747802734375, -0.00015974044799804688, 0.019775390625, -0.038177490234375, -0.0108642578125, 0.0123443603515625, 0.03289794921875, -0.0048065185546875, 0.00791168212890625, 0.0330810546875, 0.0009226799011230469, 0.00865936279296875, 0.058837890625, 0.0031909942626953125, -0.09429931640625, -0.0101165771484375, 0.0273590087890625, 0.01432037353515625, -0.06805419921875, -0.0222015380859375, -0.0253448486328125, -0.03363037109375, 0.01177978515625, 0.0193328857421875, -0.020416259765625, -0.0011091232299804688, -0.022247314453125, -0.06890869140625, -0.04461669921875, 0.0063323974609375, -0.029327392578125, 0.0024662017822265625, -0.0217437744140625, -0.0270538330078125, 0.018646240234375, -0.02978515625, 0.0288848876953125, -0.0184783935546875, -0.0166473388671875, 0.0263519287109375, -0.0134124755859375, 0.09100341796875, 0.04217529296875, -0.0953369140625, 0.0009965896606445312, -0.0469970703125, 0.01131439208984375, 0.00955963134765625, -0.045928955078125, -0.020965576171875, -0.02618408203125, 0.053497314453125, 0.028900146484375, 0.035980224609375, -0.01800537109375, -0.049652099609375, 0.00555419921875, 0.037261962890625, 0.051910400390625, 0.01065826416015625, 0.0758056640625, -0.03216552734375, 0.0623779296875, 0.012481689453125, 0.052490234375, -0.00931549072265625, -0.025848388671875, 0.0328369140625, 0.0162200927734375, -0.0279083251953125, -0.05596923828125, -0.0165863037109375, -0.023651123046875, 0.07232666015625, -0.018280029296875, -0.017669677734375, 0.0111541748046875, 0.0024547576904296875, -0.0234832763671875, -0.01629638671875, 0.055145263671875, 0.00945281982421875, -0.0269927978515625, 0.0170745849609375, 0.031524658203125, -0.01873779296875, -0.0072479248046875, -0.0096893310546875, 0.0017852783203125, 0.020416259765625, -0.00714874267578125, -0.04852294921875, 0.033538818359375, 0.08221435546875, -0.0222015380859375, 0.029388427734375, -0.01201629638671875, -0.0203094482421875, 0.0435791015625, -0.0175628662109375, -0.022216796875, 0.0291900634765625, 0.0290679931640625, -0.012115478515625, -0.0158538818359375, 0.01200103759765625, -0.01141357421875, -0.0028400421142578125, 0.0548095703125, 0.0599365234375, -0.09490966796875, 0.0311431884765625, 0.02825927734375, 0.0239105224609375, 0.0192413330078125, -0.0024566650390625, 0.0216064453125, 0.0248260498046875, 0.01242828369140625, -0.0282745361328125, -0.0221405029296875, 0.0018777847290039062, -0.0087127685546875, -0.0239105224609375, -0.03594970703125, 0.019134521484375, 0.0137939453125, -0.07366943359375, 0.04010009765625, 0.03472900390625, -0.0213623046875, -0.031951904296875, -0.00870513916015625, 0.017852783203125, -0.0298004150390625, -0.0523681640625, 0.0238800048828125, 0.004817962646484375, 0.01861572265625, 0.02606201171875, -0.027008056640625, 0.0413818359375, 0.04779052734375, -0.015625, 0.01485443115234375, 0.0178985595703125, -0.001911163330078125, 0.01291656494140625, -0.0201568603515625, 0.0244903564453125, -0.0068817138671875, -0.07550048828125, 0.01548004150390625, -0.049285888671875, -0.0053253173828125, -0.007648468017578125, -0.044586181640625, 0.0657958984375, -0.020355224609375, -0.01389312744140625, 0.01093292236328125, 0.019287109375, -0.002407073974609375, -0.00685882568359375, 0.01544189453125, -0.041473388671875, -0.057891845703125, -0.005321502685546875, -0.06988525390625, 0.0272064208984375, -0.025909423828125, -0.04132080078125, 0.0638427734375, -0.011627197265625, 0.0285797119140625, 0.0226593017578125, 0.036224365234375, 0.0017061233520507812, 0.029571533203125, -0.030853271484375, 0.040008544921875, -0.0021266937255859375, 0.04876708984375, -0.0274658203125, 0.0015773773193359375, 0.016571044921875, 0.0144195556640625, 0.033966064453125, 0.0256195068359375, -0.04266357421875, 0.00794219970703125, 0.02276611328125, 0.0214691162109375, 0.003620147705078125, 0.058990478515625, -0.0159454345703125, -0.02001953125, 0.01213836669921875, -0.021270751953125, 0.00853729248046875, 0.0036029815673828125, -0.025970458984375, -0.0019283294677734375, -0.0007295608520507812, -0.041259765625, -0.0263671875, 0.003917694091796875, -0.091552734375, 0.01360321044921875, 0.0284423828125, 0.052703857421875, -0.019134521484375, 0.038909912109375, 0.0101165771484375, -0.057830810546875, 0.01342010498046875, -0.04681396484375, 0.03619384765625, -0.0264129638671875, 0.016265869140625, 0.061920166015625, 0.02960205078125, 0.00572967529296875, -0.01300048828125, 0.0193023681640625, -0.005123138427734375, -0.023284912109375, 0.0794677734375, 0.03997802734375, 0.03802490234375, -0.00954437255859375, 0.0045013427734375, 0.0103607177734375, 0.0780029296875, -0.0416259765625, 0.005443572998046875, -0.0008416175842285156, 0.0036640167236328125, 0.03314208984375, -0.0097808837890625, 0.08642578125, -0.03564453125, -0.060272216796875, 0.02581787109375, -0.0035457611083984375, 0.0198822021484375, 0.01593017578125, 0.01230621337890625, 0.00626373291015625, -0.0487060546875, 0.022064208984375, 0.0066070556640625, -0.031829833984375, 0.0171051025390625, 0.017425537109375, -0.00519561767578125, 0.0159149169921875, 0.01140594482421875, 0.005939483642578125, 0.0159454345703125, 0.030059814453125, 0.0031490325927734375, -0.0167083740234375, -0.016143798828125, -0.052581787109375, 0.0235595703125, 0.0301513671875, -0.0006008148193359375, -0.02862548828125, -0.0084381103515625, -0.01568603515625, -0.023681640625, -0.0166473388671875, 0.0257568359375, -0.023681640625, 0.0119171142578125, -0.01436614990234375, 0.00110626220703125, -0.00467681884765625, -0.01512908935546875, -0.01605224609375, 0.0247344970703125, 0.0120391845703125, -0.0238494873046875, 0.035919189453125, -0.0022754669189453125, -0.028472900390625, -0.00484466552734375, 0.0014820098876953125, 0.05584716796875, 0.0088958740234375, -0.0562744140625, -0.0123443603515625, -0.0233306884765625, -0.00931549072265625, 0.018646240234375, 0.037933349609375, 0.00492095947265625, 0.006378173828125, 0.005985260009765625, 0.00986480712890625, 0.0015592575073242188, -0.00672149658203125, -0.0110321044921875, -0.03094482421875, 0.0298614501953125, -0.0151519775390625, -0.0780029296875, -0.0230560302734375, -0.048309326171875, 0.00911712646484375, 0.0247344970703125, 0.0533447265625, 0.01081085205078125, 0.03485107421875, -0.0181121826171875, -0.00786590576171875, -0.004955291748046875, -0.018798828125, 0.0163116455078125, 0.0158233642578125, -0.00337982177734375, -0.019317626953125, -0.10528564453125, 0.02117919921875, 0.0145721435546875, 0.0286407470703125, 0.03765869140625, -0.0007038116455078125, 0.01531219482421875, 0.007843017578125, 0.004486083984375, -0.0168914794921875, -0.038818359375, 0.00948333740234375, 0.00958251953125, 0.00609588623046875, 0.046478271484375, 0.01015472412109375, 0.05108642578125, -0.018798828125, -0.0245819091796875, -0.0034770965576171875, -0.049102783203125, -0.01995849609375, 0.031707763671875, 0.004547119140625, 0.01947021484375, -0.0091400146484375, -0.022308349609375, -0.017913818359375, 0.0128173828125, -0.024383544921875, -0.0275421142578125, 0.04022216796875, 0.0238189697265625, -0.0148468017578125, 0.00830841064453125, -0.007965087890625, -0.0178680419921875, 0.00775146484375, -0.01092529296875, -0.016510009765625, -0.0924072265625, -0.0382080078125, -0.059844970703125, 0.01309967041015625, 0.0390625, -0.0060577392578125, -0.030059814453125, -0.0157318115234375, -0.01020050048828125, 0.0275115966796875, -0.01525115966796875, -0.01528167724609375, -0.0213165283203125, -0.0249481201171875, 0.03753662109375, -0.004085540771484375, -0.0007081031799316406, 0.01471710205078125, 0.028167724609375, -0.046417236328125, -0.00893402099609375, -0.029693603515625, -0.0093841552734375, -0.028228759765625, -0.0238800048828125, 0.0283050537109375, 0.00836181640625, -0.01091766357421875, -0.02197265625, -0.039306640625, 0.0248870849609375, -0.0521240234375, -0.0474853515625, 0.0218963623046875, 0.0037326812744140625, 0.0194854736328125, 0.0299072265625, -0.0066375732421875, 0.05816650390625, 0.00501251220703125, -0.0086212158203125, -0.0148162841796875, -0.00881195068359375, -0.032501220703125, -0.05157470703125, 0.0117950439453125, 0.013946533203125, -0.0307159423828125, -0.015899658203125, 0.071533203125, 0.0167999267578125, -0.05340576171875, -0.0016765594482421875, -0.0272979736328125, 0.017333984375, -0.01116943359375, 0.01293182373046875, 0.03485107421875, 0.01326751708984375, 0.052032470703125, -0.01666259765625, 0.035003662109375, 0.0125885009765625, -0.01480865478515625, -0.002048492431640625, 0.0016584396362304688, 0.034088134765625, 0.0648193359375, 0.0116729736328125, 0.0201873779296875, 0.003223419189453125, -0.047698974609375, -0.020538330078125, -0.007724761962890625, 0.0270233154296875, 0.0142364501953125, 0.024322509765625, 0.01537322998046875, 0.0020542144775390625, -0.0252685546875, -0.08203125, -0.016265869140625, -0.00717926025390625, -0.0229339599609375, 0.0276641845703125, -0.0924072265625, -0.0091400146484375, -0.0007739067077636719, -0.0198974609375, -0.01371002197265625, 0.012420654296875, -0.0253143310546875, 0.0011444091796875, 0.0187835693359375, -0.0061798095703125, -0.0108795166015625, -0.0006108283996582031, 0.06280517578125, -0.048553466796875, -0.005008697509765625, 0.004306793212890625, 0.017364501953125, 0.013031005859375, -0.029296875, 0.0113067626953125, 0.044891357421875, -0.01678466796875, -0.033447265625, 0.0400390625, 0.03997802734375, 0.0243682861328125, -0.0169219970703125, -0.01007843017578125, 0.022979736328125, -0.0009851455688476562, 0.02142333984375, -0.01444244384765625, 0.057098388671875, 0.010528564453125, 0.029296875, -0.0220794677734375, 0.0032634735107421875, -0.019134521484375, 0.03729248046875, 0.000995635986328125, -0.003936767578125, 0.051910400390625, -0.037322998046875, 0.01056671142578125, -0.0013942718505859375, 0.03497314453125, -0.0306396484375, 0.053741455078125, -0.005367279052734375, 0.004566192626953125, 0.031158447265625 ]
59eed0a2f88422dbdd20e884a5b552a603331dfa
Wordpress Stackexchange Q: Is there a way to prevent author change when editor/administrator edits a post? As an administrator when I change or edit a post of an author (for example add a category through quick edit) the author of the post changes. We do not want this to happen. Is there a way to prevent this? A: Both, quick edit and the regular post edit screen, offer an author field. Just take care to set the correct author when you edit something. To see this field you have to enable it in the screen option in the upper right corner:
Q: Is there a way to prevent author change when editor/administrator edits a post? As an administrator when I change or edit a post of an author (for example add a category through quick edit) the author of the post changes. We do not want this to happen. Is there a way to prevent this? A: Both, quick edit and the regular post edit screen, offer an author field. Just take care to set the correct author when you edit something. To see this field you have to enable it in the screen option in the upper right corner:
wordpress
{ "language": "en", "length": 99, "provenance": "stackexchange_00019.jsonl.gz:417607", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44023" }
[ 0.059234619140625, 0.031829833984375, 0.01523590087890625, -0.0074615478515625, 0.032257080078125, -0.0284881591796875, 0.0201416015625, -0.062103271484375, -0.040008544921875, 0.031829833984375, 0.0245513916015625, -0.0057373046875, 0.00025463104248046875, -0.03680419921875, -0.01312255859375, -0.01334381103515625, 0.009521484375, -0.00507354736328125, 0.01262664794921875, -0.003734588623046875, -0.006565093994140625, -0.005062103271484375, 0.0191650390625, -0.032470703125, 0.0247039794921875, -0.004913330078125, 0.016815185546875, -0.041717529296875, 0.0227508544921875, -0.0068817138671875, 0.0268096923828125, -0.034942626953125, -0.013946533203125, 0.06719970703125, -0.033416748046875, 0.049072265625, -0.013580322265625, 0.048858642578125, 0.042266845703125, -0.000052928924560546875, 0.02130126953125, -0.0199432373046875, -0.0308380126953125, 0.00846099853515625, -0.02618408203125, -0.038787841796875, 0.0229644775390625, -0.02960205078125, 0.0239410400390625, -0.01505279541015625, -0.01568603515625, 0.0188446044921875, 0.00023603439331054688, -0.01873779296875, -0.01558685302734375, -0.0199127197265625, -0.00804901123046875, 0.0157623291015625, 0.022430419921875, -0.05938720703125, -0.0259246826171875, -0.003925323486328125, 0.037384033203125, 0.0394287109375, 0.0238189697265625, -0.0003616809844970703, 0.0338134765625, 0.0232696533203125, -0.04351806640625, 0.01319122314453125, 0.042236328125, -0.04168701171875, 0.00254058837890625, -0.0025386810302734375, 0.0014238357543945312, -0.052093505859375, 0.0036296844482421875, -0.0572509765625, 0.01280975341796875, 0.0220184326171875, 0.02752685546875, -0.0026454925537109375, 0.057464599609375, -0.0369873046875, 0.00975799560546875, -0.023590087890625, -0.005153656005859375, -0.006622314453125, -0.0221710205078125, 0.0046844482421875, -0.0186920166015625, -0.04901123046875, -0.02655029296875, 0.056793212890625, 0.015777587890625, -0.002880096435546875, 0.0386962890625, 0.072021484375, -0.00754547119140625, -0.0019989013671875, -0.025177001953125, -0.01800537109375, -0.022674560546875, -0.0396728515625, -0.0031585693359375, 0.054962158203125, 0.0021991729736328125, 0.0296630859375, 0.0285491943359375, 0.008880615234375, 0.01157379150390625, 0.00324249267578125, -0.0024738311767578125, -0.0212860107421875, -0.0015935897827148438, 0.034423828125, -0.018768310546875, 0.015594482421875, 0.00003534555435180664, 0.0123748779296875, -0.02301025390625, -0.009002685546875, 0.0038661956787109375, -0.03179931640625, 0.026702880859375, -0.0260009765625, -0.04638671875, 0.04754638671875, 0.0302581787109375, -0.0227203369140625, -0.04931640625, 0.0048828125, 0.08935546875, 0.056365966796875, 0.05279541015625, -0.01739501953125, -0.0203399658203125, -0.0024623870849609375, 0.0022735595703125, 0.0059051513671875, -0.026458740234375, -0.0027103424072265625, 0.04693603515625, -0.0254058837890625, -0.0152587890625, 0.016998291015625, 0.00444793701171875, 0.0262908935546875, -0.0139923095703125, -0.043487548828125, 0.01715087890625, -0.0543212890625, 0.0286407470703125, 0.0004444122314453125, 0.037750244140625, -0.041290283203125, 0.03497314453125, -0.03326416015625, 0.019195556640625, -0.020172119140625, 0.0223846435546875, -0.01113128662109375, 0.066650390625, -0.0089111328125, -0.028717041015625, 0.014923095703125, -0.1044921875, -0.02008056640625, 0.018341064453125, 0.0137939453125, 0.0399169921875, 0.0184478759765625, -0.02099609375, 0.003047943115234375, 0.003993988037109375, -0.0191192626953125, -0.017364501953125, -0.029388427734375, 0.0075225830078125, 0.0811767578125, 0.01275634765625, -0.02215576171875, -0.0249176025390625, 0.01488494873046875, -0.006793975830078125, -0.01158905029296875, 0.012237548828125, 0.03643798828125, 0.0202178955078125, 0.024200439453125, -0.01172637939453125, -0.007015228271484375, -0.04345703125, -0.01175689697265625, 0.00975799560546875, -0.008544921875, 0.00812530517578125, -0.008941650390625, 0.016143798828125, 0.0120391845703125, -0.01091766357421875, -0.017974853515625, 0.01062774658203125, -0.01273345947265625, -0.052154541015625, -0.01039886474609375, -0.026885986328125, 0.03521728515625, 0.052093505859375, 0.0306243896484375, -0.010894775390625, -0.005817413330078125, -0.0125732421875, 0.0053253173828125, -0.021484375, 0.03643798828125, -0.01169586181640625, 0.01788330078125, 0.01947021484375, -0.0014514923095703125, 0.0164947509765625, 0.007068634033203125, -0.0004978179931640625, -0.0278472900390625, -0.020599365234375, -0.035797119140625, -0.0157623291015625, -0.0274505615234375, -0.03271484375, -0.026336669921875, 0.0273895263671875, 0.057159423828125, 0.046905517578125, -0.00150299072265625, -0.060577392578125, -0.037139892578125, -0.04852294921875, -0.09014892578125, 0.0010128021240234375, 0.102783203125, 0.01332855224609375, -0.04974365234375, -0.032257080078125, 0.016815185546875, 0.004608154296875, 0.0088043212890625, 0.01148223876953125, 0.00252532958984375, 0.0237274169921875, 0.07373046875, 0.0286712646484375, -0.00970458984375, -0.00917816162109375, -0.07891845703125, 0.01413726806640625, 0.0206451416015625, 0.0116424560546875, 0.0004050731658935547, 0.00550079345703125, -0.0091400146484375, 0.00444793701171875, -0.0210113525390625, -0.038482666015625, 0.0012941360473632812, -0.0211639404296875, 0.013427734375, 0.00421905517578125, 0.01403045654296875, -0.04302978515625, -0.013397216796875, 0.0281219482421875, 0.049560546875, 0.016082763671875, 0.024200439453125, 0.00989532470703125, 0.021636962890625, -0.0162811279296875, -0.020904541015625, 0.034393310546875, 0.0292205810546875, -0.0537109375, -0.0177154541015625, -0.0284881591796875, -0.01088714599609375, 0.0028820037841796875, -0.0364990234375, 0.018310546875, -0.051239013671875, -0.0303802490234375, -0.02532958984375, 0.01313018798828125, -0.01436614990234375, -0.0193023681640625, -0.00203704833984375, -0.00848388671875, -0.0298919677734375, -0.01543426513671875, -0.0277862548828125, 0.0316162109375, -0.0241546630859375, 0.037139892578125, 0.062469482421875, 0.0131378173828125, 0.024261474609375, 0.0149383544921875, 0.0014295578002929688, 0.0027923583984375, 0.033203125, 0.0223541259765625, 0.0382080078125, -0.075439453125, -0.0031528472900390625, 0.0229949951171875, 0.00792694091796875, 0.0169219970703125, -0.0299224853515625, 0.00333404541015625, 0.0283660888671875, -0.036529541015625, 0.00441741943359375, -0.0238800048828125, -0.048004150390625, -0.0284271240234375, 0.027313232421875, -0.03619384765625, 0.0023651123046875, 0.05950927734375, 0.01605224609375, 0.023956298828125, -0.00875091552734375, -0.01351165771484375, -0.00897979736328125, -0.039459228515625, -0.0543212890625, -0.014404296875, -0.024749755859375, 0.01053619384765625, 0.07769775390625, 0.0113677978515625, -0.06646728515625, -0.0200347900390625, -0.0404052734375, -0.0247955322265625, 0.031280517578125, -0.002010345458984375, -0.01088714599609375, 0.01226043701171875, 0.00991058349609375, 0.0302734375, 0.0014514923095703125, -0.00901031494140625, -0.030487060546875, -0.01360321044921875, 0.024566650390625, 0.045166015625, 0.047271728515625, -0.00284576416015625, 0.0489501953125, 0.07989501953125, -0.0005550384521484375, 0.0188751220703125, -0.00988006591796875, -0.0198974609375, 0.00731658935546875, -0.0127105712890625, -0.006359100341796875, -0.01328277587890625, 0.0255889892578125, 0.036834716796875, 0.026641845703125, -0.035919189453125, 0.0162353515625, 0.0253753662109375, 0.006683349609375, 0.034698486328125, -0.005481719970703125, -0.045928955078125, -0.061553955078125, 0.050628662109375, -0.024993896484375, -0.040252685546875, -0.0311126708984375, 0.0252532958984375, 0.020233154296875, -0.02069091796875, 0.0010852813720703125, -0.08380126953125, 0.01306915283203125, -0.042449951171875, 0.01332855224609375, -0.024169921875, 0.04595947265625, -0.00841522216796875, -0.0115509033203125, 0.0206146240234375, 0.0189208984375, -0.055084228515625, -0.03057861328125, -0.066162109375, -0.00018072128295898438, -0.0010232925415039062, 0.022979736328125, 0.0179595947265625, -0.0016908645629882812, -0.051422119140625, 0.10418701171875, -0.011199951171875, 0.00913238525390625, 0.047332763671875, -0.056182861328125, 0.0173187255859375, 0.03570556640625, 0.02703857421875, -0.00666046142578125, -0.03875732421875, -0.0250091552734375, -0.1451416015625, -0.0222320556640625, -0.0472412109375, 0.094970703125, 0.0016851425170898438, 0.017608642578125, -0.04443359375, 0.06396484375, -0.01110076904296875, 0.041656494140625, 0.0034008026123046875, 0.0190277099609375, 0.0225677490234375, -0.017822265625, 0.003997802734375, -0.0244598388671875, 0.0030231475830078125, -0.0104217529296875, -0.036468505859375, 0.0006380081176757812, -0.04327392578125, -0.03350830078125, -0.021240234375, -0.035552978515625, -0.07440185546875, -0.0772705078125, -0.0204620361328125, 0.035736083984375, -0.011932373046875, 0.0248870849609375, -0.09466552734375, -0.09271240234375, 0.037384033203125, -0.01377105712890625, 0.017791748046875, -0.0029144287109375, 0.10382080078125, 0.0193023681640625, -0.0087127685546875, -0.01690673828125, -0.0004439353942871094, 0.026580810546875, -0.018524169921875, 0.015655517578125, -0.001270294189453125, -0.014678955078125, 0.0273895263671875, -0.02435302734375, -0.0352783203125, -0.0239105224609375, 0.06646728515625, 0.011688232421875, 0.0059661865234375, -0.0269012451171875, -0.035552978515625, 0.0643310546875, 0.0006117820739746094, -0.002376556396484375, 0.045135498046875, 0.01161956787109375, -0.02227783203125, -0.0203399658203125, -0.01052093505859375, 0.0110931396484375, -0.023590087890625, 0.00716400146484375, -0.004795074462890625, -0.003108978271484375, 0.01088714599609375, 0.01496124267578125, -0.0166015625, -0.0036716461181640625, 0.01064300537109375, -0.048187255859375, -0.0283966064453125, -0.01861572265625, 0.0255126953125, -0.03631591796875, 0.01031494140625, -0.0203857421875, -0.0272979736328125, 0.058013916015625, 0.00909423828125, -0.045654296875, 0.055816650390625, -0.0169830322265625, 0.006610870361328125, 0.029022216796875, -0.0426025390625, 0.016632080078125, 0.01116180419921875, -0.0123748779296875, 0.02154541015625, -0.0219879150390625, -0.006114959716796875, -0.01371002197265625, -0.012176513671875, 0.0054473876953125, -0.0165252685546875, 0.01294708251953125, 0.008270263671875, 0.017486572265625, -0.0251007080078125, -0.0249786376953125, 0.04656982421875, 0.046173095703125, -0.0297698974609375, 0.0035228729248046875, 0.07537841796875, 0.0092315673828125, -0.059600830078125, 0.008544921875, -0.0484619140625, -0.01983642578125, 0.01125335693359375, 0.051300048828125, 0.033172607421875, -0.00605010986328125, -0.0015363693237304688, -0.0165863037109375, 0.0023593902587890625, 0.0037784576416015625, -0.0200958251953125, -0.061187744140625, 0.01198577880859375, 0.018310546875, -0.0056304931640625, -0.036834716796875, -0.00370025634765625, -0.04681396484375, -0.0162506103515625, 0.001605987548828125, -0.0018243789672851562, -0.0178070068359375, 0.0125732421875, 0.0019931793212890625, -0.017364501953125, -0.0251922607421875, -0.00775146484375, -0.0169525146484375, 0.00887298583984375, -0.0177001953125, -0.017791748046875, 0.03143310546875, 0.0009784698486328125, 0.00276947021484375, -0.0264434814453125, 0.0166778564453125, 0.01471710205078125, -0.006023406982421875, 0.06414794921875, 0.0151824951171875, -0.04254150390625, -0.00502777099609375, -0.0859375, -0.037078857421875, -0.07403564453125, -0.0445556640625, -0.0496826171875, 0.00963592529296875, -0.0030727386474609375, 0.01119232177734375, -0.01364898681640625, -0.0131988525390625, -0.01070404052734375, 0.0180511474609375, 0.0069427490234375, 0.0203857421875, -0.01468658447265625, 0.043548583984375, -0.0167999267578125, 0.04254150390625, -0.0171661376953125, -0.0008249282836914062, -0.02874755859375, -0.006984710693359375, 0.007167816162109375, -0.03759765625, -0.01702880859375, 0.0210113525390625, -0.0304718017578125, -0.0175323486328125, -0.004306793212890625, -0.004840850830078125, -0.005825042724609375, -0.02569580078125, 0.0010852813720703125, -0.01428985595703125, 0.00913238525390625, -0.0285186767578125, -0.012725830078125, -0.0163116455078125, -0.002040863037109375, 0.051055908203125, -0.0189971923828125, -0.020538330078125, 0.018096923828125, -0.0252227783203125, 0.017242431640625, 0.022369384765625, -0.01476287841796875, 0.00576019287109375, 0.03851318359375, 0.01348876953125, 0.032867431640625, 0.042999267578125, 0.0286407470703125, -0.0021228790283203125, -0.026947021484375, -0.056640625, 0.0277099609375, -0.0018854141235351562, -0.01187896728515625, 0.020477294921875, 0.0153961181640625, 0.00441741943359375, 0.0022029876708984375, 0.06048583984375, 0.074462890625, -0.08233642578125, 0.009796142578125, 0.03302001953125, 0.0005712509155273438, 0.01358795166015625, 0.01702880859375, -0.032623291015625, 0.0093536376953125, 0.044189453125, -0.0831298828125, -0.017059326171875, 0.026641845703125, -0.00830078125, -0.01049041748046875, -0.05157470703125, 0.06451416015625, 0.0177459716796875, 0.0142974853515625, 0.0310821533203125, -0.017730712890625, 0.01218414306640625, -0.038238525390625, -0.006023406982421875, 0.01262664794921875, -0.0016050338745117188, -0.056243896484375, 0.036041259765625, -0.010589599609375, 0.019134521484375, 0.005054473876953125, 0.0180511474609375, 0.0227813720703125, 0.0272674560546875, -0.0048828125, 0.0107879638671875, 0.01003265380859375, -0.017181396484375, -0.00992584228515625, -0.0528564453125, -0.01445770263671875, 0.049896240234375, -0.02947998046875, 0.016571044921875, 0.01297760009765625, -0.027252197265625, -0.00392913818359375, -0.0236663818359375, 0.047760009765625, -0.033111572265625, -0.014129638671875, 0.0295562744140625, -0.0224456787109375, -0.0126190185546875, 0.00687408447265625, -0.0455322265625, -0.039398193359375, -0.0099334716796875, -0.0229949951171875, -0.053680419921875, 0.03131103515625, -0.0200042724609375, -0.038543701171875, 0.049407958984375, 0.0241546630859375, 0.0013971328735351562, 0.004119873046875, 0.0199127197265625, -0.026611328125, 0.0022678375244140625, -0.0281829833984375, 0.060516357421875, 0.01001739501953125, 0.022918701171875, -0.05853271484375, -0.0204315185546875, 0.00342559814453125, 0.05841064453125, 0.0645751953125, 0.019561767578125, -0.007293701171875, 0.0229949951171875, 0.0210113525390625, -0.00922393798828125, -0.0703125, 0.053375244140625, 0.004169464111328125, -0.0153350830078125, 0.03350830078125, 0.022369384765625, 0.037811279296875, -0.004055023193359375, -0.0264129638671875, 0.0175323486328125, 0.015655517578125, 0.03411865234375, -0.01556396484375, -0.0030384063720703125, 0.0173492431640625, -0.019500732421875, -0.01560211181640625, 0.006267547607421875, -0.0047760009765625, 0.06280517578125, 0.06268310546875, -0.0352783203125, -0.0001316070556640625, -0.031646728515625, 0.072021484375, 0.0277099609375, 0.038330078125, 0.0113067626953125, 0.0003809928894042969, 0.0242919921875, 0.045440673828125, 0.030364990234375, 0.04827880859375, 0.007534027099609375, -0.01178741455078125, -0.0020580291748046875, 0.00855255126953125, -0.033966064453125, 0.01293182373046875, 0.0296173095703125, 0.01471710205078125, -0.0212249755859375, 0.009613037109375, -0.0024204254150390625, -0.0198822021484375, -0.0179595947265625, -0.04498291015625, -0.03729248046875, -0.00395965576171875, 0.008148193359375, -0.0185699462890625, -0.0247650146484375, 0.034149169921875, 0.0362548828125, 0.023284912109375, 0.031707763671875, -0.032440185546875, -0.0404052734375, -0.035888671875, -0.041778564453125, -0.0023040771484375, 0.03497314453125, 0.064697265625, 0.0301055908203125, 0.048309326171875, -0.021636962890625, -0.0183563232421875, 0.0110321044921875, 0.02337646484375, 0.00890350341796875, -0.04400634765625, -0.021240234375, 0.04498291015625, 0.0229034423828125, 0.0003147125244140625, 0.023651123046875, 0.04949951171875, 0.040985107421875, -0.017364501953125, -0.0168609619140625, 0.0076446533203125, -0.029144287109375, -0.023193359375, -0.031707763671875, 0.021697998046875, 0.04498291015625, 0.0150909423828125, -0.00687408447265625, 0.020111083984375, 0.0426025390625, 0.0103302001953125, -0.0419921875, 0.02325439453125, -0.035064697265625, 0.0404052734375, -0.01538848876953125, 0.0010528564453125, 0.02374267578125, -0.0294647216796875, 0.0259857177734375, -0.039459228515625, -0.09136962890625, 0.0149688720703125, 0.034027099609375, -0.0474853515625, 0.030731201171875, -0.045654296875, -0.005924224853515625, -0.01251983642578125, -0.021392822265625, 0.015869140625, 0.0268096923828125, -0.000896453857421875, -0.001056671142578125, -0.00724029541015625, -0.00981903076171875, 0.01345062255859375, 0.0212249755859375, 0.0243988037109375, 0.037322998046875, 0.0054931640625, 0.01708984375, -0.0292205810546875, 0.0197296142578125, -0.072509765625, -0.038787841796875, 0.0693359375, -0.045745849609375, -0.043548583984375, 0.0110321044921875, -0.026214599609375, 0.0210723876953125, 0.0184326171875, -0.0127716064453125, 0.039031982421875, -0.025787353515625, 0.01090240478515625, -0.03497314453125, 0.018951416015625, -0.0240936279296875, -0.026458740234375, -0.042755126953125, -0.0218505859375, 0.0244598388671875, 0.0085601806640625, -0.007755279541015625, 0.01548004150390625, 0.006015777587890625, 0.01232147216796875, -0.0101776123046875, 0.03021240234375, -0.04833984375, 0.01451873779296875, -0.0130767822265625, -0.01366424560546875, 0.0309906005859375, -0.0038814544677734375, 0.01471710205078125, 0.0241241455078125, 0.0213470458984375, 0.0333251953125, -0.049163818359375, -0.036651611328125, -0.0205230712890625, 0.030059814453125, 0.0107269287109375, 0.002010345458984375, -0.054534912109375, 0.00873565673828125, -0.069091796875, 0.0287628173828125, -0.0226593017578125, -0.026153564453125, 0.015716552734375, -0.0033473968505859375, 0.0031414031982421875, -0.016632080078125, -0.0221710205078125, 0.01172637939453125, 0.0015459060668945312, -0.0092620849609375, -0.055877685546875, 0.0439453125, -0.027099609375, 0.049346923828125, -0.05059814453125, -0.031219482421875, 0.020111083984375, 0.040740966796875, -0.07061767578125, -0.0143890380859375, -0.032196044921875, -0.03863525390625, -0.05450439453125, 0.0086822509765625, 0.037200927734375, -0.001682281494140625, -0.0228271484375, 0.00933074951171875, -0.005298614501953125, 0.054656982421875, -0.0411376953125, -0.04449462890625, -0.0095977783203125, 0.0196533203125, 0.01329803466796875, -0.051788330078125, -0.00934600830078125, -0.025634765625, 0.0159759521484375, -0.058563232421875, 0.0013723373413085938, -0.008880615234375, -0.041900634765625, -0.045684814453125, 0.01678466796875, -0.00885772705078125, -0.03753662109375, 0.00719451904296875, -0.019439697265625, -0.04833984375, 0.05120849609375, 0.0250091552734375, -0.039031982421875, 0.0206451416015625, 0.03680419921875, 0.0006308555603027344, 0.01467132568359375, 0.0264434814453125, -0.046417236328125, -0.035430908203125, -0.0152740478515625, -0.0016498565673828125, 0.00859832763671875, 0.007183074951171875, -0.011993408203125, 0.0157623291015625, 0.029876708984375, -0.01947021484375, -0.018524169921875, 0.00121307373046875, -0.005214691162109375, -0.01702880859375, -0.043975830078125, -0.0501708984375, -0.026885986328125, 0.0771484375, 0.07977294921875, 0.0253448486328125, -0.04083251953125, 0.02508544921875, -0.007694244384765625, -0.0011949539184570312, -0.003204345703125, -0.01267242431640625, -0.00926971435546875, -0.01136016845703125, -0.0130157470703125, -0.034576416015625, -0.0115203857421875, 0.0076904296875, -0.048492431640625, -0.0010471343994140625, -0.04010009765625, -0.0174713134765625, -0.03619384765625, -0.0010089874267578125, 0.0116729736328125, -0.021575927734375, -0.0031375885009765625, 0.005382537841796875, -0.000038623809814453125, -0.0079803466796875, 0.0433349609375, -0.0265350341796875, 0.0066680908203125, -0.049468994140625, 0.0274200439453125, -0.0306243896484375, 0.052032470703125, -0.06231689453125, 0.01151275634765625, -0.029693603515625, 0.03045654296875, 0.0080413818359375, 0.027130126953125, 0.016143798828125, 0.027618408203125, 0.0272674560546875, 0.03125, -0.0081787109375, -0.0257720947265625, -0.00597381591796875, 0.0220184326171875, -0.03631591796875, 0.005340576171875, -0.0025234222412109375, -0.031494140625, -0.0016880035400390625, 0.01065826416015625, -0.0143585205078125, -0.014801025390625, -0.023956298828125, -0.04254150390625, 0.01471710205078125, -0.0006861686706542969 ]
7db66836767cce298c39d471f61e77870fb66210
Wordpress Stackexchange Q: How To Change Custom Taxonomy To Radio Buttons I've actually found a solution to my problem here: Altering the appearance of custom taxonomy inputs but I wanted to ask a followup question, and it seems I couldn't ask in that thread. Here's the code provided on that thread that seemed to work. add_action('add_meta_boxes','mysite_add_meta_boxes',10,2); function mysite_add_meta_boxes($post_type, $post) { ob_start(); } add_action('dbx_post_sidebar','mysite_dbx_post_sidebar'); function mysite_dbx_post_sidebar() { $html = ob_get_clean(); $html = str_replace('"checkbox"','"radio"',$html); echo $html; } When I use the code above, it does transform the checkboxes in all taxonomy boxes to a radio button. But I only want 3 boxes to change their checkboxes into a radio button. So how do you turn the checkboxes into radio buttons for a specific taxonomy box? tnx. A: hope it isn't considered overly self-promotional, but i've turned stephen harris' code into a plugin that will do this for you: http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ i'm still working on getting the quick edit to show radio buttons too, but that appears to be significantly harder.
Q: How To Change Custom Taxonomy To Radio Buttons I've actually found a solution to my problem here: Altering the appearance of custom taxonomy inputs but I wanted to ask a followup question, and it seems I couldn't ask in that thread. Here's the code provided on that thread that seemed to work. add_action('add_meta_boxes','mysite_add_meta_boxes',10,2); function mysite_add_meta_boxes($post_type, $post) { ob_start(); } add_action('dbx_post_sidebar','mysite_dbx_post_sidebar'); function mysite_dbx_post_sidebar() { $html = ob_get_clean(); $html = str_replace('"checkbox"','"radio"',$html); echo $html; } When I use the code above, it does transform the checkboxes in all taxonomy boxes to a radio button. But I only want 3 boxes to change their checkboxes into a radio button. So how do you turn the checkboxes into radio buttons for a specific taxonomy box? tnx. A: hope it isn't considered overly self-promotional, but i've turned stephen harris' code into a plugin that will do this for you: http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ i'm still working on getting the quick edit to show radio buttons too, but that appears to be significantly harder. A: The most straightforward way would be to to de-register the taxonomy's metabox and replace it with your own custom metabox. Below is my attempt. There are some drawbacks though, without adding in some javascript, I was unable to replicate WordPress 'add new term' feature, consequently you can only select pre-existing categories. (Or a least I was, but it added a checkbox rather than radio button). class My_Radio_Tax{ static $taxonomy = 'event-category'; //Slug of taxonomy static $post_type = 'event';//Post type for meta-box function load(){ add_action( 'admin_menu', array(__CLASS__,'remove_meta_box')); add_action( 'add_meta_boxes', array(__CLASS__,'add_meta_box')); } //Remove taxonomy meta box function remove_meta_box(){ //The taxonomy metabox ID. This is different for non-hierarchical taxonomies $tax_mb_id = self::$taxonomy.'div'; remove_meta_box($tax_mb_id, self::$post_type, 'normal'); } //Add new taxonomy meta box function add_meta_box() { add_meta_box( 'my_tax', 'My taxonomy',array(__CLASS__,'metabox_inner'),'event' ,'side','core'); } //Callback to set up metabox function metabox_inner( $post ) { //Get taxonomy and terms $taxonomy = self::$taxonomy; $tax = get_taxonomy($taxonomy); $name = 'tax_input[' . $taxonomy . ']'; $terms = get_terms('event-category',array('hide_empty' => 0)); //Get current and popular terms $popular = get_terms( $taxonomy, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) ); $postterms = get_the_terms( $post->ID,$taxonomy ); $current = ($postterms ? array_pop($postterms) : false); $current = ($current ? $current->term_id : 0); ?> <div id="taxonomy-<?php echo $taxonomy; ?>" class="categorydiv"> <!-- Display tabs--> <ul id="<?php echo $taxonomy; ?>-tabs" class="category-tabs"> <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all" tabindex="3"><?php echo $tax->labels->all_items; ?></a></li> <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> </ul> <!-- Display popular taxonomy terms --> <div id="<?php echo $taxonomy; ?>-pop" class="tabs-panel" style="display: none;"> <ul id="<?php echo $taxonomy; ?>checklist-pop" class="categorychecklist form-no-clear" > <?php foreach($popular as $term){ $id = "id='in-popular-event-category-$term->term_id'"; echo "<li id='popular-event-category-$taxonomy-$term->term_id'><label class='selectit'>"; echo "<input type='radio' {$id}".checked($current,$term->term_id,false)."value='$term->term_id' />$term->name<br />"; echo "</label></li>"; }?> </ul> </div> <!-- Display taxonomy terms --> <div id="<?php echo $taxonomy; ?>-all" class="tabs-panel"> <ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy?> categorychecklist form-no-clear"> <?php foreach($terms as $term){ $id = "id='in-event-category-$term->term_id'"; echo "<li id='event-category-$taxonomy-$term->term_id'><label class='selectit'>"; echo "<input type='radio' {$id} name='{name}'".checked($current,$term->term_id,false)."value='$term->term_id' />$term->name<br />"; echo "</label></li>"; }?> </ul> </div> </div> <?php } } My_Radio_Tax::load();
wordpress
{ "language": "en", "length": 500, "provenance": "stackexchange_00019.jsonl.gz:417608", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44026" }
[ 0.07427978515625, -0.00737762451171875, 0.018768310546875, -0.0230712890625, 0.018402099609375, -0.0259246826171875, 0.048614501953125, -0.024261474609375, 0.00661468505859375, 0.012939453125, -0.025177001953125, -0.016754150390625, -0.0648193359375, -0.0200042724609375, -0.038970947265625, -0.046966552734375, 0.0264434814453125, 0.0030040740966796875, 0.032958984375, -0.0222625732421875, 0.01151275634765625, -0.009246826171875, 0.031585693359375, 0.00835418701171875, 0.046539306640625, -0.046234130859375, 0.06341552734375, -0.044708251953125, 0.036865234375, -0.031402587890625, 0.03369140625, -0.009918212890625, 0.01898193359375, 0.022857666015625, -0.0177764892578125, 0.023101806640625, 0.003238677978515625, 0.007450103759765625, -0.004962921142578125, 0.04248046875, 0.05596923828125, -0.05059814453125, -0.0048675537109375, -0.0238189697265625, 0.0029315948486328125, -0.01071929931640625, 0.036865234375, -0.05462646484375, 0.0118408203125, -0.056549072265625, 0.0106048583984375, 0.0253448486328125, 0.038330078125, -0.08062744140625, -0.01922607421875, 0.00992584228515625, -0.01503753662109375, -0.032440185546875, 0.0266265869140625, 0.014892578125, -0.0006403923034667969, -0.0233917236328125, 0.023712158203125, -0.01438140869140625, -0.00783538818359375, 0.004413604736328125, -0.0243377685546875, 0.01125335693359375, -0.013397216796875, 0.006130218505859375, 0.0127716064453125, -0.033966064453125, 0.010528564453125, -0.000052988529205322266, 0.002964019775390625, -0.0295867919921875, 0.00010955333709716797, 0.00028777122497558594, 0.01788330078125, 0.01410675048828125, 0.06298828125, 0.0036449432373046875, 0.003192901611328125, 0.0202178955078125, 0.02972412109375, 0.038726806640625, 0.004848480224609375, -0.048828125, -0.0228729248046875, -0.024139404296875, -0.00630950927734375, -0.025177001953125, -0.06793212890625, 0.0203857421875, 0.01496124267578125, -0.049163818359375, 0.0037441253662109375, 0.0017681121826171875, -0.0219268798828125, -0.004726409912109375, -0.0088958740234375, -0.0264739990234375, 0.0256195068359375, -0.01190948486328125, 0.0037078857421875, 0.01708984375, 0.01456451416015625, 0.0216827392578125, 0.048980712890625, 0.0263824462890625, 0.007152557373046875, 0.04986572265625, -0.0190582275390625, -0.0140380859375, -0.0246124267578125, 0.00649261474609375, -0.0308380126953125, 0.01088714599609375, 0.0006165504455566406, 0.01502227783203125, -0.00666046142578125, 0.0193939208984375, 0.020904541015625, -0.034942626953125, 0.00395965576171875, -0.01342010498046875, -0.013946533203125, -0.03387451171875, -0.03485107421875, 0.0170745849609375, -0.0614013671875, -0.0147247314453125, 0.09466552734375, 0.07086181640625, 0.049713134765625, -0.0257720947265625, 0.038665771484375, -0.0236968994140625, -0.01519012451171875, 0.023956298828125, -0.003696441650390625, -0.03741455078125, -0.01497650146484375, -0.013153076171875, -0.0143280029296875, 0.037811279296875, 0.0435791015625, -0.005725860595703125, -0.04534912109375, -0.055816650390625, 0.0087432861328125, -0.0236053466796875, 0.058319091796875, 0.01352691650390625, -0.0557861328125, -0.002719879150390625, 0.0614013671875, -0.04132080078125, -0.061431884765625, -0.0726318359375, 0.030853271484375, 0.0220489501953125, 0.034698486328125, 0.00200653076171875, 0.0007100105285644531, -0.028411865234375, -0.048675537109375, -0.00809478759765625, 0.0287933349609375, 0.0017271041870117188, 0.0280609130859375, -0.03131103515625, -0.01493072509765625, 0.005558013916015625, 0.002246856689453125, 0.0225372314453125, -0.00624847412109375, 0.037200927734375, -0.002361297607421875, 0.00464630126953125, 0.003314971923828125, -0.048004150390625, 0.040313720703125, -0.0079803466796875, -0.053466796875, 0.03094482421875, -0.005771636962890625, 0.02557373046875, 0.029754638671875, 0.00991058349609375, 0.0242156982421875, 0.0134429931640625, -0.06427001953125, 0.048736572265625, 0.01392364501953125, -0.00463104248046875, -0.02191162109375, -0.0068359375, 0.0028133392333984375, -0.019012451171875, -0.046142578125, 0.016357421875, -0.0110626220703125, 0.0423583984375, -0.0239105224609375, 0.0211334228515625, -0.0273895263671875, 0.034820556640625, 0.01580810546875, 0.0145263671875, -0.0090179443359375, -0.004413604736328125, 0.00843048095703125, -0.05560302734375, -0.0298309326171875, 0.0322265625, 0.01528167724609375, 0.01690673828125, 0.0070037841796875, 0.000012755393981933594, 0.01261138916015625, -0.016632080078125, -0.00482940673828125, 0.02313232421875, 0.0269012451171875, -0.00681304931640625, -0.016693115234375, -0.01213836669921875, -0.00630950927734375, 0.031036376953125, -0.0640869140625, 0.03204345703125, 0.042877197265625, 0.03204345703125, -0.0184326171875, 0.004253387451171875, 0.033966064453125, -0.03765869140625, 0.004726409912109375, 0.0257415771484375, 0.0251922607421875, 0.00885772705078125, -0.019866943359375, 0.0048370361328125, 0.05364990234375, -0.0223236083984375, -0.003795623779296875, 0.002468109130859375, 0.005168914794921875, 0.029937744140625, -0.01181793212890625, 0.01398468017578125, 0.01806640625, -0.036773681640625, 0.034881591796875, 0.0153045654296875, -0.0184326171875, -0.0024089813232421875, 0.019744873046875, -0.037322998046875, 0.00653076171875, -0.049407958984375, -0.0323486328125, -0.02362060546875, 0.062408447265625, 0.0100860595703125, 0.053314208984375, 0.03277587890625, 0.01538848876953125, -0.0024814605712890625, -0.017974853515625, -0.05633544921875, 0.006870269775390625, 0.0174560546875, -0.02740478515625, 0.0158843994140625, -0.02862548828125, 0.00022494792938232422, 0.0220184326171875, 0.00528717041015625, 0.00443267822265625, 0.048858642578125, -0.03594970703125, -0.01316070556640625, 0.0008444786071777344, -0.057586669921875, -0.04449462890625, -0.00879669189453125, -0.022796630859375, -0.058746337890625, 0.0009646415710449219, 0.0057830810546875, -0.0306549072265625, 0.03802490234375, -0.0237884521484375, -0.0294952392578125, 0.027099609375, -0.043121337890625, 0.045654296875, -0.0300445556640625, 0.010498046875, 0.05108642578125, 0.004428863525390625, -0.0022182464599609375, 0.01611328125, 0.01549530029296875, -0.024444580078125, 0.05145263671875, 0.0223541259765625, 0.0023975372314453125, -0.0281219482421875, -0.0017871856689453125, 0.0069580078125, -0.0252227783203125, 0.0192108154296875, -0.0322265625, 0.005298614501953125, -0.01032257080078125, -0.04168701171875, -0.01050567626953125, 0.0241546630859375, -0.00415802001953125, -0.016326904296875, 0.010772705078125, 0.00009745359420776367, -0.0164947509765625, 0.0018606185913085938, -0.01081085205078125, 0.014923095703125, -0.0294036865234375, -0.0190887451171875, -0.02301025390625, -0.056976318359375, -0.004253387451171875, 0.01198577880859375, -0.003009796142578125, 0.01367950439453125, 0.04144287109375, 0.004245758056640625, -0.043426513671875, 0.025360107421875, 0.00908660888671875, 0.0016498565673828125, 0.017333984375, 0.052093505859375, -0.056060791015625, -0.008758544921875, -0.0125579833984375, 0.0285186767578125, 0.0261993408203125, -0.0293121337890625, -0.002681732177734375, -0.0179443359375, 0.034698486328125, 0.02203369140625, -0.0225372314453125, 0.02734375, 0.040130615234375, 0.007282257080078125, -0.0077056884765625, 0.00930023193359375, 0.01032257080078125, 0.0017538070678710938, -0.004932403564453125, -0.055328369140625, -0.0104827880859375, -0.00669097900390625, 0.040191650390625, -0.00266265869140625, 0.0013608932495117188, 0.01230621337890625, -0.00531768798828125, -0.03363037109375, -0.0081939697265625, -0.0035247802734375, -0.0029544830322265625, -0.046539306640625, -0.033203125, 0.0261993408203125, -0.03326416015625, 0.0186920166015625, -0.0310516357421875, 0.0626220703125, -0.03363037109375, -0.0430908203125, 0.0163726806640625, -0.09893798828125, -0.0132598876953125, -0.036468505859375, 0.01024627685546875, 0.00698089599609375, 0.06658935546875, -0.054290771484375, -0.019989013671875, 0.018585205078125, 0.0139923095703125, -0.0010242462158203125, -0.0133819580078125, -0.02984619140625, -0.03167724609375, -0.1126708984375, 0.0262451171875, 0.0170135498046875, -0.0540771484375, -0.015350341796875, -0.0008244514465332031, -0.08575439453125, -0.0272979736328125, 0.0469970703125, -0.035888671875, -0.0189056396484375, 0.030975341796875, -0.01898193359375, -0.01534271240234375, -0.036346435546875, 0.0032138824462890625, -0.0721435546875, -0.017425537109375, -0.0080108642578125, 0.039764404296875, 0.006313323974609375, 0.0022487640380859375, 0.0013828277587890625, 0.06488037109375, 0.012237548828125, -0.0185394287109375, 0.016510009765625, 0.013946533203125, 0.007007598876953125, -0.00487518310546875, 0.00182342529296875, -0.00508880615234375, -0.0310821533203125, 0.01007080078125, 0.027130126953125, 0.072509765625, -0.0094146728515625, -0.0280609130859375, 0.00978851318359375, -0.019500732421875, -0.0753173828125, -0.061065673828125, -0.06982421875, -0.00925445556640625, -0.0511474609375, -0.0001558065414428711, -0.04864501953125, -0.079833984375, 0.002216339111328125, -0.050689697265625, -0.010284423828125, 0.0301055908203125, 0.03228759765625, 0.00948333740234375, 0.00879669189453125, -0.035980224609375, -0.039794921875, -0.00353240966796875, -0.0012311935424804688, -0.01149749755859375, -0.028594970703125, -0.0113067626953125, 0.05780029296875, -0.054229736328125, 0.0198822021484375, -0.062255859375, 0.11151123046875, -0.001110076904296875, 0.030517578125, 0.00045013427734375, -0.0246734619140625, -0.007415771484375, -0.01204681396484375, -0.0014104843139648438, -0.034820556640625, -0.00936126708984375, 0.058135986328125, 0.0193023681640625, 0.003997802734375, -0.04644775390625, -0.040924072265625, 0.0183868408203125, 0.01084136962890625, 0.0185394287109375, 0.040679931640625, -0.00525665283203125, 0.0297088623046875, -0.015594482421875, 0.01143646240234375, -0.01114654541015625, -0.00998687744140625, -0.0255279541015625, 0.0183563232421875, 0.0132598876953125, -0.006343841552734375, -0.003093719482421875, 0.0149993896484375, 0.007843017578125, 0.007266998291015625, -0.0282745361328125, -0.034820556640625, 0.0149383544921875, 0.03857421875, -0.005855560302734375, 0.01529693603515625, 0.0457763671875, 0.00772857666015625, -0.01027679443359375, -0.01293182373046875, -0.04193115234375, 0.020263671875, -0.04742431640625, -0.004924774169921875, 0.035888671875, -0.028717041015625, 0.026611328125, 0.023895263671875, 0.0117034912109375, 0.0187530517578125, -0.0223541259765625, 0.050994873046875, 0.035064697265625, 0.0164794921875, 0.0075225830078125, 0.0159149169921875, 0.0019893646240234375, -0.01308441162109375, -0.01125335693359375, -0.00949859619140625, -0.0275115966796875, 0.02569580078125, 0.0299835205078125, -0.0029735565185546875, 0.01432037353515625, -0.027099609375, -0.025390625, -0.004161834716796875, -0.00963592529296875, -0.0357666015625, -0.036529541015625, -0.00972747802734375, -0.00406646728515625, 0.01061248779296875, -0.01837158203125, 0.007427215576171875, 0.016876220703125, 0.0160064697265625, 0.0267181396484375, -0.021942138671875, -0.00283050537109375, 0.0020275115966796875, 0.017425537109375, -0.082763671875, -0.0105438232421875, 0.00299835205078125, -0.0574951171875, -0.0701904296875, 0.0294036865234375, -0.009368896484375, -0.016754150390625, -0.0218963623046875, 0.00222015380859375, -0.01348876953125, -0.0020313262939453125, -0.0024051666259765625, -0.001682281494140625, 0.066162109375, 0.022369384765625, -0.026123046875, -0.01953125, -0.036376953125, -0.01309967041015625, -0.06829833984375, -0.053436279296875, -0.0181884765625, 0.02740478515625, -0.0178375244140625, 0.00711822509765625, -0.015960693359375, -0.0037097930908203125, -0.017974853515625, 0.0157928466796875, 0.006511688232421875, 0.019989013671875, 0.0187530517578125, -0.03369140625, -0.012420654296875, 0.045196533203125, 0.001983642578125, -0.062744140625, -0.0404052734375, -0.0206451416015625, -0.02825927734375, -0.07330322265625, -0.02923583984375, 0.0258941650390625, -0.04266357421875, 0.0654296875, 0.056610107421875, 0.004467010498046875, 0.041839599609375, -0.006946563720703125, -0.005382537841796875, -0.01000213623046875, -0.0123748779296875, -0.0209197998046875, 0.046722412109375, 0.0183563232421875, -0.010894775390625, -0.0167388916015625, -0.0122222900390625, 0.003063201904296875, -0.0096282958984375, 0.0018777847290039062, -0.00279998779296875, -0.006969451904296875, -0.079833984375, 0.038421630859375, 0.02801513671875, 0.0280609130859375, 0.030059814453125, -0.0233612060546875, 0.0213623046875, -0.017059326171875, -0.01922607421875, 0.01335906982421875, 0.0380859375, 0.055877685546875, -0.01275634765625, -0.026641845703125, 0.0244140625, -0.02911376953125, 0.00804901123046875, 0.0243988037109375, 0.0267486572265625, -0.0626220703125, 0.0149078369140625, -0.0064697265625, 0.0087738037109375, 0.05804443359375, -0.00164031982421875, -0.0253143310546875, -0.0423583984375, 0.038177490234375, 0.01026153564453125, -0.03509521484375, 0.0155029296875, 0.0143585205078125, 0.00433349609375, -0.0310821533203125, 0.07489013671875, 0.018157958984375, -0.02056884765625, 0.01348114013671875, -0.000965118408203125, 0.0155181884765625, 0.001194000244140625, 0.035003662109375, -0.037933349609375, -0.002109527587890625, -0.045318603515625, -0.0088348388671875, -0.01355743408203125, -0.03485107421875, 0.0203857421875, -0.004657745361328125, 0.0196380615234375, 0.032196044921875, -0.0222930908203125, 0.0215911865234375, -0.0228729248046875, -0.021209716796875, -0.0124053955078125, -0.0172576904296875, -0.0157012939453125, 0.001678466796875, -0.01212310791015625, 0.0264129638671875, -0.02239990234375, -0.02984619140625, -0.00606536865234375, -0.004852294921875, 0.0997314453125, -0.00611114501953125, -0.03411865234375, 0.019317626953125, 0.0223388671875, -0.0159454345703125, -0.003505706787109375, 0.00823211669921875, -0.08892822265625, -0.0633544921875, 0.003192901611328125, -0.06304931640625, 0.008392333984375, -0.00838470458984375, -0.07135009765625, 0.1021728515625, 0.015350341796875, 0.02398681640625, -0.0016813278198242188, 0.037109375, -0.04498291015625, 0.0036525726318359375, -0.0031909942626953125, 0.01514434814453125, 0.0200653076171875, -0.026153564453125, -0.0027980804443359375, -0.00138092041015625, -0.0154571533203125, 0.0251922607421875, 0.034881591796875, 0.00820159912109375, 0.01617431640625, -0.01061248779296875, 0.03289794921875, 0.0557861328125, 0.00039076805114746094, -0.0267181396484375, 0.001529693603515625, 0.05377197265625, 0.029144287109375, -0.035552978515625, 0.03594970703125, 0.0006213188171386719, -0.033660888671875, 0.03009033203125, 0.00934600830078125, 0.0012426376342773438, -0.007137298583984375, 0.051422119140625, -0.01971435546875, -0.0172576904296875, 0.01538848876953125, -0.0217437744140625, 0.0191802978515625, 0.005435943603515625, -0.00817108154296875, 0.0360107421875, 0.032257080078125, -0.0127410888671875, 0.034637451171875, -0.020904541015625, 0.068359375, -0.008941650390625, 0.00748443603515625, 0.05828857421875, 0.01494598388671875, 0.0357666015625, 0.032867431640625, -0.017822265625, 0.04376220703125, -0.0036773681640625, 0.0166778564453125, -0.041168212890625, 0.046356201171875, 0.005702972412109375, 0.0360107421875, -0.0545654296875, -0.061553955078125, 0.00264739990234375, 0.0104827880859375, 0.03253173828125, 0.0137481689453125, 0.044158935546875, 0.008880615234375, 0.0377197265625, -0.032928466796875, -0.002887725830078125, 0.0036144256591796875, 0.0069122314453125, -0.00028204917907714844, 0.034423828125, -0.01165771484375, -0.0127716064453125, -0.04010009765625, -0.00946807861328125, 0.0167999267578125, 0.06317138671875, 0.030670166015625, 0.036651611328125, -0.01338958740234375, -0.0266265869140625, -0.007198333740234375, 0.007293701171875, -0.00012493133544921875, -0.01447296142578125, 0.001361846923828125, -0.008575439453125, -0.0030231475830078125, 0.01690673828125, 0.01114654541015625, 0.039337158203125, 0.0268707275390625, 0.038604736328125, 0.021942138671875, -0.0012149810791015625, 0.0706787109375, -0.01092529296875, -0.01186370849609375, -0.032562255859375, 0.0533447265625, 0.0604248046875, 0.0299224853515625, -0.007488250732421875, 0.02484130859375, 0.0784912109375, -0.0079193115234375, 0.059234619140625, -0.0010976791381835938, 0.0096893310546875, 0.04443359375, -0.0291900634765625, 0.07757568359375, 0.0107421875, -0.07220458984375, -0.006572723388671875, -0.06268310546875, -0.037139892578125, 0.048583984375, 0.042938232421875, -0.0273284912109375, 0.033935546875, -0.00839996337890625, -0.019927978515625, 0.0122833251953125, 0.026947021484375, -0.011138916015625, 0.028717041015625, 0.0301513671875, -0.0017690658569335938, -0.02972412109375, -0.014190673828125, 0.01131439208984375, 0.020660400390625, -0.0184173583984375, 0.06646728515625, -0.01910400390625, -0.00907135009765625, -0.0758056640625, -0.021026611328125, -0.03997802734375, -0.046234130859375, 0.0118865966796875, 0.0033893585205078125, -0.02496337890625, 0.0146484375, 0.03948974609375, 0.047698974609375, 0.02099609375, -0.0458984375, 0.0191802978515625, -0.0030536651611328125, -0.007678985595703125, -0.027801513671875, 0.038665771484375, -0.0171966552734375, -0.03369140625, -0.0457763671875, -0.005237579345703125, 0.0352783203125, 0.07415771484375, 0.0004379749298095703, 0.0309906005859375, 0.028076171875, 0.005954742431640625, 0.0196533203125, -0.0143585205078125, 0.042083740234375, 0.0462646484375, -0.00905609130859375, -0.0172271728515625, 0.001071929931640625, -0.0232391357421875, 0.0064849853515625, 0.0006995201110839844, 0.0002123117446899414, 0.00855255126953125, -0.06292724609375, 0.0180816650390625, 0.0159759521484375, 0.028533935546875, -0.0156097412109375, 0.0019025802612304688, 0.034088134765625, -0.0122222900390625, -0.01131439208984375, 0.0462646484375, -0.0006875991821289062, 0.0034008026123046875, -0.01366424560546875, -0.0061798095703125, 0.0170135498046875, -0.0170745849609375, -0.0284271240234375, 0.021087646484375, 0.011260986328125, -0.00027823448181152344, -0.0308074951171875, 0.024078369140625, -0.023345947265625, 0.035491943359375, -0.0213470458984375, -0.01407623291015625, 0.01275634765625, 0.051055908203125, -0.038177490234375, -0.003528594970703125, -0.038299560546875, -0.029388427734375, -0.04693603515625, 0.0260467529296875, -0.0004425048828125, -0.03399658203125, 0.0281219482421875, 0.004913330078125, 0.0303192138671875, 0.04644775390625, 0.08489990234375, -0.0243682861328125, 0.036163330078125, -0.005970001220703125, -0.0186614990234375, -0.046142578125, 0.011993408203125, -0.07476806640625, 0.0010347366333007812, -0.03741455078125, 0.01177215576171875, 0.0128326416015625, -0.0418701171875, -0.060546875, 0.0226287841796875, -0.013885498046875, -0.0287628173828125, -0.0222625732421875, 0.025482177734375, 0.0017366409301757812, -0.00978851318359375, -0.015869140625, -0.005199432373046875, -0.005558013916015625, 0.0015878677368164062, 0.0051422119140625, 0.04180908203125, 0.00811767578125, -0.013580322265625, -0.039459228515625, -0.0032024383544921875, 0.0013217926025390625, 0.047027587890625, 0.0148162841796875, -0.041900634765625, -0.01358795166015625, -0.01473236083984375, -0.08648681640625, -0.11712646484375, -0.01538848876953125, 0.07958984375, 0.012786865234375, -0.0855712890625, -0.0185699462890625, -0.04107666015625, 0.06414794921875, -0.034576416015625, 0.01371002197265625, -0.0194549560546875, -0.039947509765625, -0.03765869140625, 0.0009899139404296875, -0.018798828125, 0.01038360595703125, -0.086669921875, -0.0189666748046875, 0.03155517578125, -0.0281982421875, 0.00007271766662597656, -0.00041794776916503906, -0.040313720703125, 0.007617950439453125, -0.00458526611328125, -0.0201416015625, -0.05743408203125, 0.0293731689453125, 0.005462646484375, -0.0285491943359375, -0.0374755859375, 0.0009303092956542969, -0.01274871826171875, -0.031707763671875, -0.003971099853515625, -0.0157928466796875, 0.0205078125, -0.04388427734375, 0.01267242431640625, -0.0169830322265625, 0.00010001659393310547, -0.040008544921875, 0.02435302734375, -0.021820068359375, 0.01412200927734375, -0.0167083740234375, 0.01377105712890625, -0.0113372802734375, 0.033111572265625, -0.01192474365234375, 0.066162109375, -0.041961669921875, -0.026275634765625, -0.016571044921875, -0.00811767578125, -0.01334381103515625, 0.02508544921875, 0.048980712890625, -0.03802490234375, 0.016693115234375, -0.02301025390625, 0.01114654541015625, -0.0261993408203125, -0.006805419921875, -0.0008039474487304688, -0.01445770263671875, 0.0193328857421875 ]
072595b2f944659fdc72040700e0bfbee2742ce2
Wordpress Stackexchange Q: Custom post types - Use post_id in permalink structure I'm registering my CPT like so: $args = array( 'labels' => $labels, 'public' => true, 'hierarchical' => false, 'rewrite' => array( 'with_front' => false, 'slug' => 'news/events' ), 'supports' => array( 'title', 'editor', 'thumbnail' ) ); register_post_type('events',$args); Now that will generate post permalinks like so: /news/events/{post_name}/ but I want the following permalink structure: /news/events/{post_id}/{post_name}/. How do I do this? A: @Bainternet - your answer didn't fully work but I did some more searching and was able to piece this filter together that did work: add_filter('post_type_link', 'custom_event_permalink', 1, 3); function custom_event_permalink($post_link, $id = 0, $leavename) { if ( strpos('%event_id%', $post_link) === 'FALSE' ) { return $post_link; } $post = &get_post($id); if ( is_wp_error($post) || $post->post_type != 'events' ) { return $post_link; } return str_replace('%event_id%', $post->ID, $post_link); } +1 for getting me most of the way
Q: Custom post types - Use post_id in permalink structure I'm registering my CPT like so: $args = array( 'labels' => $labels, 'public' => true, 'hierarchical' => false, 'rewrite' => array( 'with_front' => false, 'slug' => 'news/events' ), 'supports' => array( 'title', 'editor', 'thumbnail' ) ); register_post_type('events',$args); Now that will generate post permalinks like so: /news/events/{post_name}/ but I want the following permalink structure: /news/events/{post_id}/{post_name}/. How do I do this? A: @Bainternet - your answer didn't fully work but I did some more searching and was able to piece this filter together that did work: add_filter('post_type_link', 'custom_event_permalink', 1, 3); function custom_event_permalink($post_link, $id = 0, $leavename) { if ( strpos('%event_id%', $post_link) === 'FALSE' ) { return $post_link; } $post = &get_post($id); if ( is_wp_error($post) || $post->post_type != 'events' ) { return $post_link; } return str_replace('%event_id%', $post->ID, $post_link); } +1 for getting me most of the way A: Try this First add to %event_id% to your slug: $args = array( 'labels' => $labels, 'public' => true, 'hierarchical' => false, 'rewrite' => array( 'with_front' => false, 'slug' => 'news/events/%event_id%/%postname%' ), 'supports' => array( 'title', 'editor', 'thumbnail' ) ); register_post_type('events',$args); then add a filter to the single event premalink: add_filter('post_type_link', 'custom_event_permalink', 1, 3); function custom_event_permalink($post_link, $id = 0, $leavename) { global $wp_rewrite; $post = &get_post($id); if ( is_wp_error( $post ) || 'events' != $post->post_type) return $post_link; $newlink = $wp_rewrite->get_extra_permastruct('events'); $newlink = str_replace("%event_id%", $post->ID, $newlink); $newlink = home_url(user_trailingslashit($newlink)); return $newlink; } that should do the trick but it's untested. And make sure to flush rewrite rules.
wordpress
{ "language": "en", "length": 250, "provenance": "stackexchange_00019.jsonl.gz:417612", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44047" }
[ 0.081298828125, 0.00917816162109375, 0.05133056640625, -0.047210693359375, 0.0218658447265625, -0.0096435546875, 0.03668212890625, -0.041900634765625, -0.0264739990234375, 0.01244354248046875, 0.01363372802734375, 0.016754150390625, -0.040924072265625, -0.0423583984375, 0.0235443115234375, -0.00940704345703125, 0.016326904296875, -0.023590087890625, 0.0013494491577148438, -0.028717041015625, 0.00640106201171875, -0.0185394287109375, 0.04888916015625, 0.0194854736328125, 0.05419921875, -0.0107421875, 0.06365966796875, -0.04443359375, 0.03387451171875, -0.0159912109375, 0.026214599609375, -0.034088134765625, 0.0187835693359375, -0.006717681884765625, 0.0180206298828125, 0.03515625, 0.03253173828125, -0.005352020263671875, 0.031982421875, 0.011383056640625, 0.00030994415283203125, 0.00830078125, 0.035888671875, 0.0188751220703125, -0.00927734375, -0.00995635986328125, -0.0187835693359375, -0.0533447265625, -0.01194000244140625, -0.0035400390625, 0.0267181396484375, 0.0086212158203125, 0.0377197265625, -0.00885772705078125, -0.00952911376953125, 0.0135650634765625, 0.00958251953125, -0.053466796875, 0.0338134765625, 0.027313232421875, -0.0112457275390625, -0.021942138671875, 0.025390625, -0.037078857421875, -0.0458984375, 0.0079345703125, 0.0013551712036132812, -0.003299713134765625, -0.002185821533203125, -0.05712890625, 0.0017347335815429688, 0.004489898681640625, -0.0153656005859375, -0.0259552001953125, -0.018035888671875, -0.007080078125, -0.0016012191772460938, -0.0474853515625, -0.013824462890625, 0.018951416015625, -0.002788543701171875, -0.01471710205078125, -0.0292816162109375, -0.01141357421875, 0.00832366943359375, 0.018280029296875, -0.01367950439453125, -0.006557464599609375, -0.0192413330078125, -0.024261474609375, -0.012237548828125, -0.049224853515625, -0.0128173828125, -0.00041413307189941406, -0.004909515380859375, -0.04571533203125, 0.0400390625, 0.058074951171875, -0.032470703125, 0.00888824462890625, 0.0222320556640625, -0.04510498046875, 0.0552978515625, -0.043304443359375, 0.0206298828125, 0.043121337890625, 0.01300048828125, 0.035736083984375, 0.049041748046875, 0.007568359375, 0.01485443115234375, 0.045806884765625, -0.001781463623046875, 0.0214080810546875, -0.043975830078125, 0.031829833984375, -0.01418304443359375, -0.01708984375, -0.032867431640625, 0.055694580078125, -0.009796142578125, 0.00826263427734375, 0.04803466796875, 0.00908660888671875, 0.001689910888671875, 0.0234527587890625, -0.0011968612670898438, -0.07489013671875, -0.000033736228942871094, 0.0277099609375, -0.03076171875, 0.006267547607421875, 0.08135986328125, 0.02252197265625, 0.00701904296875, -0.01959228515625, 0.052398681640625, -0.0229034423828125, -0.0219879150390625, 0.0191497802734375, 0.0374755859375, 0.00319671630859375, -0.00690460205078125, -0.0011301040649414062, 0.01338958740234375, 0.0283660888671875, 0.01264190673828125, 0.0033206939697265625, -0.012237548828125, -0.0257415771484375, -0.014923095703125, -0.03387451171875, 0.05084228515625, 0.0011739730834960938, -0.040008544921875, -0.045074462890625, 0.0129852294921875, -0.035400390625, 0.00146484375, -0.0628662109375, 0.0192413330078125, -0.017913818359375, -0.0086517333984375, -0.059906005859375, -0.069580078125, 0.0298614501953125, -0.05731201171875, -0.0177459716796875, 0.0208587646484375, 0.03424072265625, 0.012451171875, -0.006198883056640625, -0.0187530517578125, -0.004024505615234375, -0.0096282958984375, -0.0047454833984375, 0.00814056396484375, 0.01274871826171875, 0.01291656494140625, 0.056304931640625, 0.014801025390625, -0.01727294921875, 0.031463623046875, -0.009552001953125, -0.07073974609375, 0.054718017578125, 0.02264404296875, 0.07720947265625, -0.008575439453125, 0.0160064697265625, 0.036773681640625, 0.025115966796875, -0.039825439453125, 0.004474639892578125, -0.0290679931640625, -0.040985107421875, 0.04071044921875, -0.014007568359375, -0.0146026611328125, 0.048828125, -0.0419921875, 0.01251983642578125, 0.00908660888671875, 0.037872314453125, -0.0406494140625, 0.06304931640625, -0.0308990478515625, 0.04669189453125, -0.01534271240234375, 0.018402099609375, 0.02410888671875, 0.0135498046875, -0.034637451171875, -0.0275421142578125, 0.0018558502197265625, 0.050506591796875, 0.0171966552734375, -0.019744873046875, -0.06304931640625, -0.005626678466796875, -0.056915283203125, -0.037078857421875, -0.0535888671875, 0.0767822265625, 0.07537841796875, -0.02557373046875, 0.0027484893798828125, -0.033538818359375, 0.023345947265625, 0.01535797119140625, -0.07513427734375, 0.0292816162109375, 0.04681396484375, 0.0028438568115234375, -0.032470703125, 0.0164947509765625, 0.012939453125, -0.03399658203125, -0.0133209228515625, 0.046356201171875, 0.028533935546875, 0.03656005859375, -0.0026607513427734375, -0.0022449493408203125, 0.0635986328125, 0.006481170654296875, 0.035858154296875, -0.03240966796875, -0.00574493408203125, 0.03326416015625, -0.007137298583984375, 0.0269775390625, 0.0185546875, 0.010528564453125, 0.00604248046875, 0.04168701171875, -0.03411865234375, -0.0133819580078125, 0.008941650390625, -0.01407623291015625, 0.0049896240234375, -0.02410888671875, -0.01275634765625, -0.0138092041015625, 0.0028934478759765625, 0.0309906005859375, 0.03521728515625, 0.0276336669921875, -0.0159454345703125, 0.013580322265625, -0.0003101825714111328, -0.006256103515625, -0.0153350830078125, 0.0058746337890625, 0.040252685546875, 0.006565093994140625, -0.04217529296875, 0.01380157470703125, 0.01329803466796875, 0.0019311904907226562, -0.03515625, 0.0214996337890625, -0.032806396484375, -0.01406097412109375, -0.0171051025390625, -0.04290771484375, -0.00952911376953125, -0.00955963134765625, 0.005672454833984375, -0.04193115234375, 0.004802703857421875, 0.0166015625, -0.025848388671875, 0.0338134765625, 0.004985809326171875, -0.04150390625, 0.0111541748046875, -0.03564453125, 0.044921875, -0.05133056640625, 0.025115966796875, 0.048614501953125, -0.035125732421875, 0.021392822265625, 0.003875732421875, -0.0267181396484375, -0.00754547119140625, 0.01373291015625, -0.02374267578125, -0.0279388427734375, -0.047821044921875, 0.00672149658203125, 0.02313232421875, 0.0684814453125, -0.006618499755859375, -0.048797607421875, 0.00553131103515625, 0.03289794921875, -0.044647216796875, -0.04962158203125, -0.014434814453125, -0.034820556640625, 0.00675201416015625, -0.00433349609375, -0.007427215576171875, -0.0058441162109375, -0.0081329345703125, 0.00325775146484375, -0.0198211669921875, 0.01178741455078125, -0.054473876953125, -0.0240936279296875, -0.058685302734375, 0.036529541015625, -0.01160430908203125, 0.0267486572265625, 0.01132965087890625, 0.0028533935546875, 0.01509857177734375, -0.052520751953125, 0.031829833984375, 0.038726806640625, -0.029815673828125, -0.01433563232421875, -0.0162506103515625, -0.0282135009765625, 0.0231781005859375, -0.0124053955078125, 0.055267333984375, 0.032958984375, -0.0205535888671875, 0.005649566650390625, -0.010650634765625, 0.00861358642578125, 0.04132080078125, 0.037322998046875, 0.005840301513671875, 0.050445556640625, 0.0633544921875, -0.018280029296875, -0.01763916015625, -0.0270538330078125, -0.044677734375, 0.0177764892578125, 0.0243988037109375, 0.00621795654296875, -0.0203094482421875, 0.0186004638671875, 0.0219879150390625, 0.01763916015625, 0.041229248046875, -0.0256805419921875, 0.04638671875, 0.00943756103515625, 0.0208892822265625, -0.060577392578125, 0.00783538818359375, -0.026641845703125, 0.0171356201171875, -0.0044403076171875, -0.0137481689453125, -0.0149688720703125, -0.006641387939453125, -0.0462646484375, -0.0804443359375, 0.05389404296875, -0.06292724609375, -0.017364501953125, -0.033843994140625, -0.0197296142578125, 0.0294189453125, 0.09185791015625, -0.00980377197265625, -0.0251312255859375, -0.03741455078125, -0.016082763671875, 0.0275726318359375, -0.007335662841796875, 0.01412200927734375, -0.00400543212890625, -0.048370361328125, -0.0199737548828125, -0.0120391845703125, -0.0380859375, -0.0100860595703125, 0.012969970703125, -0.0211944580078125, -0.0266571044921875, 0.03173828125, 0.029632568359375, -0.01398468017578125, 0.06500244140625, -0.0209808349609375, 0.045135498046875, -0.037384033203125, 0.014251708984375, -0.07879638671875, -0.0272064208984375, 0.0164642333984375, 0.0667724609375, 0.00850677490234375, -0.0203704833984375, -0.018280029296875, 0.050628662109375, 0.0218353271484375, -0.01715087890625, 0.002803802490234375, -0.02667236328125, -0.00777435302734375, 0.033721923828125, -0.0113067626953125, -0.0017957687377929688, 0.005588531494140625, 0.0032024383544921875, -0.06524658203125, 0.0197906494140625, -0.0234375, 0.004360198974609375, 0.031646728515625, -0.0467529296875, -0.0631103515625, 0.005157470703125, 0.01038360595703125, 0.019989013671875, 0.001796722412109375, -0.021148681640625, -0.004062652587890625, -0.08154296875, 0.0242156982421875, -0.01453399658203125, -0.0133514404296875, 0.005428314208984375, 0.0665283203125, 0.016876220703125, -0.01214599609375, -0.0196380615234375, 0.007480621337890625, 0.0227203369140625, -0.012115478515625, 0.06182861328125, 0.0272674560546875, 0.01085662841796875, 0.01611328125, -0.01454925537109375, -0.033111572265625, 0.0032749176025390625, 0.03240966796875, 0.0278472900390625, 0.0007143020629882812, -0.0075531005859375, -0.02142333984375, 0.047088623046875, 0.0163116455078125, 0.0008130073547363281, -0.026092529296875, 0.0031452178955078125, 0.059967041015625, -0.0067596435546875, 0.0155029296875, -0.0498046875, -0.0007014274597167969, 0.0235595703125, 0.0232696533203125, 0.039093017578125, 0.0080413818359375, -0.0007696151733398438, 0.0019474029541015625, -0.0309906005859375, 0.004337310791015625, 0.01702880859375, 0.0096435546875, 0.026397705078125, 0.0213165283203125, 0.049896240234375, 0.012664794921875, -0.0231781005859375, -0.00807952880859375, 0.0430908203125, 0.01082611083984375, 0.006305694580078125, -0.01480865478515625, -0.0222320556640625, -0.0183258056640625, 0.00902557373046875, -0.004505157470703125, 0.044647216796875, 0.0662841796875, -0.00592041015625, -0.005405426025390625, -0.0207061767578125, 0.04791259765625, -0.04052734375, -0.0194244384765625, -0.00946807861328125, -0.00044655799865722656, -0.0177459716796875, 0.0570068359375, 0.01519775390625, 0.013458251953125, -0.0152435302734375, 0.04974365234375, 0.059967041015625, 0.0309906005859375, 0.0212860107421875, -0.041046142578125, -0.01776123046875, 0.01678466796875, -0.016021728515625, -0.0567626953125, -0.049560546875, 0.0355224609375, 0.0704345703125, -0.0131988525390625, 0.0147247314453125, -0.00496673583984375, 0.008026123046875, -0.0200653076171875, 0.0240020751953125, -0.005702972412109375, -0.03814697265625, -0.0159759521484375, 0.01465606689453125, 0.016693115234375, -0.0105438232421875, -0.031829833984375, 0.045684814453125, -0.0301971435546875, 0.0164337158203125, 0.021392822265625, -0.0286712646484375, 0.0233917236328125, 0.0279693603515625, 0.0250396728515625, -0.027618408203125, -0.0115203857421875, -0.00386810302734375, 0.01019287109375, -0.016265869140625, -0.0096435546875, 0.0225372314453125, -0.033477783203125, 0.046234130859375, -0.03228759765625, -0.011077880859375, -0.01108551025390625, 0.0019407272338867188, 0.048492431640625, 0.039794921875, -0.06561279296875, 0.0105743408203125, -0.006191253662109375, 0.02410888671875, 0.00030112266540527344, -0.01377105712890625, -0.0213470458984375, -0.011993408203125, 0.00598907470703125, 0.0111846923828125, 0.017181396484375, 0.01367950439453125, 0.003932952880859375, 0.0184326171875, -0.0211944580078125, 0.0154266357421875, -0.0019474029541015625, 0.0704345703125, -0.0006847381591796875, 0.045135498046875, 0.019287109375, 0.0201263427734375, -0.038818359375, -0.00507354736328125, -0.03668212890625, -0.039825439453125, 0.0078887939453125, 0.01250457763671875, 0.00356292724609375, 0.041168212890625, 0.0513916015625, 0.0155181884765625, 0.0038051605224609375, -0.01415252685546875, 0.00043463706970214844, -0.0269927978515625, -0.003353118896484375, -0.044647216796875, -0.004955291748046875, -0.0004124641418457031, -0.009918212890625, 0.0202484130859375, 0.00991058349609375, 0.03143310546875, -0.03485107421875, -0.0188751220703125, -0.0075531005859375, 0.0222320556640625, 0.004634857177734375, 0.03240966796875, 0.06439208984375, 0.018035888671875, 0.05712890625, 0.011810302734375, 0.0229644775390625, 0.04217529296875, 0.041168212890625, 0.027587890625, -0.002613067626953125, 0.09283447265625, 0.0202484130859375, -0.01812744140625, 0.051422119140625, -0.03399658203125, -0.023284912109375, 0.022064208984375, 0.022857666015625, -0.0322265625, -0.0093536376953125, -0.0007414817810058594, 0.0181732177734375, 0.0229339599609375, 0.00007671117782592773, 0.0165252685546875, 0.03729248046875, -0.02679443359375, -0.01194000244140625, -0.045989990234375, -0.036895751953125, 0.0012273788452148438, 0.01311492919921875, 0.0010814666748046875, 0.0404052734375, -0.0215911865234375, -0.02008056640625, -0.04443359375, -0.01180267333984375, -0.0008983612060546875, -0.009033203125, 0.0269317626953125, -0.02099609375, -0.00872039794921875, -0.05389404296875, -0.0086669921875, -0.0291595458984375, 0.000682830810546875, 0.0220184326171875, -0.035430908203125, 0.02886962890625, 0.0184478759765625, -0.0194854736328125, 0.01194000244140625, -0.0097808837890625, -0.0200347900390625, -0.040374755859375, -0.0263519287109375, 0.001983642578125, 0.039276123046875, -0.00678253173828125, 0.0256500244140625, -0.0045318603515625, -0.039520263671875, -0.01404571533203125, -0.01041412353515625, 0.111572265625, -0.054229736328125, -0.021148681640625, 0.0229949951171875, 0.020477294921875, -0.0230712890625, -0.01042938232421875, 0.0071563720703125, -0.06634521484375, -0.06268310546875, -0.0010595321655273438, -0.059356689453125, -0.0178070068359375, -0.032623291015625, -0.0401611328125, 0.1141357421875, 0.00778961181640625, 0.0159149169921875, 0.035858154296875, 0.051025390625, -0.04498291015625, 0.0318603515625, -0.0294342041015625, 0.03826904296875, -0.04693603515625, 0.0396728515625, -0.0546875, -0.01091766357421875, 0.0104827880859375, 0.0289306640625, 0.058013916015625, 0.0211181640625, -0.041351318359375, 0.0255126953125, 0.051055908203125, 0.0108642578125, -0.019866943359375, 0.041259765625, -0.0239715576171875, 0.0364990234375, 0.056610107421875, -0.0272979736328125, 0.04986572265625, -0.01511383056640625, -0.0301666259765625, -0.0140380859375, 0.0106048583984375, 0.01222991943359375, 0.00357818603515625, -0.06561279296875, -0.022430419921875, 0.004749298095703125, 0.017181396484375, -0.026763916015625, 0.0311431884765625, 0.02227783203125, 0.08807373046875, -0.07562255859375, -0.0254669189453125, -0.029205322265625, 0.06988525390625, 0.0260009765625, -0.0018148422241210938, 0.032684326171875, 0.0169525146484375, 0.01611328125, -0.01122283935546875, -0.00020992755889892578, 0.006175994873046875, -0.00281524658203125, 0.041778564453125, 0.025360107421875, 0.0163116455078125, -0.0533447265625, -0.029327392578125, 0.081298828125, 0.078369140625, -0.043212890625, -0.04473876953125, 0.00176239013671875, 0.0254058837890625, 0.032318115234375, 0.0047454833984375, 0.042633056640625, -0.0021305084228515625, 0.03497314453125, -0.044281005859375, 0.0017833709716796875, 0.0345458984375, 0.0215606689453125, -0.00787353515625, -0.044342041015625, -0.036163330078125, 0.01473236083984375, -0.07025146484375, 0.033721923828125, 0.042022705078125, 0.0689697265625, 0.016571044921875, 0.0364990234375, 0.01419830322265625, -0.028533935546875, 0.0200347900390625, 0.0003376007080078125, -0.009521484375, -0.0200958251953125, 0.005306243896484375, -0.023345947265625, -0.020904541015625, 0.0272979736328125, 0.0294342041015625, 0.00905609130859375, 0.032928466796875, 0.0105743408203125, 0.0031375885009765625, -0.0030345916748046875, -0.004100799560546875, -0.0213470458984375, 0.0171356201171875, -0.030548095703125, -0.0034847259521484375, -0.0218048095703125, -0.022247314453125, -0.00980377197265625, 0.00006318092346191406, 0.006015777587890625, 0.0033416748046875, 0.0211944580078125, 0.004192352294921875, -0.01068878173828125, 0.031829833984375, 0.009613037109375, 0.037384033203125, 0.0338134765625, -0.0899658203125, -0.01102447509765625, -0.03326416015625, -0.049560546875, 0.042083740234375, 0.050079345703125, 0.00688934326171875, -0.031005859375, -0.00702667236328125, 0.0226593017578125, 0.02191162109375, -0.03271484375, -0.005279541015625, 0.042877197265625, 0.0248260498046875, 0.0226593017578125, -0.041717529296875, -0.0200653076171875, -0.006397247314453125, 0.014984130859375, 0.0019388198852539062, 0.08404541015625, -0.018310546875, 0.00980377197265625, 0.0019989013671875, 0.019744873046875, -0.02032470703125, 0.0038127899169921875, 0.0175933837890625, 0.0010356903076171875, 0.02301025390625, -0.0171661376953125, 0.00550079345703125, -0.005077362060546875, 0.056549072265625, -0.0478515625, -0.004119873046875, -0.0239410400390625, 0.0303955078125, -0.02484130859375, 0.030364990234375, -0.0224456787109375, -0.04974365234375, -0.062408447265625, -0.005218505859375, 0.034576416015625, 0.0321044921875, -0.00872802734375, 0.033721923828125, -0.0134124755859375, -0.0308380126953125, 0.0291900634765625, -0.057373046875, 0.030059814453125, 0.02349853515625, 0.006237030029296875, -0.030731201171875, 0.034881591796875, -0.01027679443359375, 0.0201568603515625, 0.0174560546875, 0.05047607421875, 0.0008759498596191406, -0.024322509765625, -0.01290130615234375, -0.01183319091796875, 0.01152801513671875, -0.019561767578125, 0.00540924072265625, 0.0021648406982421875, -0.012969970703125, 0.009674072265625, -0.035125732421875, -0.0239715576171875, -0.04046630859375, 0.004100799560546875, 0.01678466796875, -0.0113677978515625, -0.0316162109375, -0.043975830078125, -0.004863739013671875, 0.043060302734375, -0.005523681640625, -0.0033435821533203125, 0.003864288330078125, -0.044158935546875, 0.01468658447265625, -0.003711700439453125, -0.01171112060546875, -0.0029697418212890625, 0.0246429443359375, -0.0015153884887695312, -0.0007023811340332031, -0.0537109375, -0.00021791458129882812, -0.026947021484375, 0.004909515380859375, 0.03692626953125, -0.01910400390625, -0.065185546875, 0.0052337646484375, -0.0184783935546875, 0.053955078125, -0.0009684562683105469, -0.0167236328125, 0.007122039794921875, 0.024139404296875, -0.036895751953125, -0.04876708984375, 0.0170440673828125, -0.037933349609375, -0.0168609619140625, -0.026702880859375, -0.0091094970703125, 0.007343292236328125, -0.031890869140625, -0.054718017578125, 0.0745849609375, -0.0190277099609375, -0.01108551025390625, -0.07391357421875, 0.0115203857421875, -0.0003669261932373047, 0.0006260871887207031, -0.004093170166015625, -0.0501708984375, -0.0256805419921875, 0.033172607421875, -0.006839752197265625, 0.0303497314453125, 0.0193328857421875, 0.008636474609375, -0.024871826171875, -0.01479339599609375, -0.019500732421875, -0.0159454345703125, 0.038177490234375, -0.0224609375, 0.023590087890625, 0.01097869873046875, -0.056365966796875, -0.01462554931640625, -0.036773681640625, 0.012054443359375, -0.0130615234375, -0.0966796875, -0.0130462646484375, -0.019622802734375, 0.0648193359375, 0.027923583984375, 0.0175323486328125, -0.036712646484375, -0.004116058349609375, -0.043212890625, -0.06787109375, -0.03668212890625, 0.0298614501953125, -0.06982421875, -0.01861572265625, -0.0111236572265625, 0.011077880859375, 0.0064544677734375, 0.0194091796875, 0.010345458984375, -0.0239105224609375, 0.01611328125, -0.0199127197265625, -0.042022705078125, 0.05426025390625, 0.0159454345703125, -0.02264404296875, 0.01251983642578125, -0.03631591796875, -0.007404327392578125, 0.0133819580078125, -0.06719970703125, -0.03265380859375, -0.00872802734375, 0.006519317626953125, 0.0048980712890625, 0.006259918212890625, 0.03680419921875, 0.016571044921875, -0.0009984970092773438, -0.0217437744140625, 0.0186767578125, -0.00635528564453125, 0.009857177734375, -0.006343841552734375, -0.00812530517578125, -0.0032939910888671875, 0.09930419921875, 0.017059326171875, 0.0345458984375, 0.006916046142578125, 0.030731201171875, -0.0328369140625, 0.0037860870361328125, -0.031402587890625, -0.015106201171875, 0.0016574859619140625, -0.0199127197265625, -0.0306854248046875, -0.0194549560546875, -0.00897979736328125, -0.022247314453125, -0.034881591796875, 0.00951385498046875 ]
c81b1b2ea745c79ca37e6e607e2cd19d8dd0026a
Wordpress Stackexchange Q: How do I load a CSS style into WordPress admin area only? I'm trying to load a CSS file for my WordPress post area, but having no luck. I have read over the wp_enqueue_style function and came up with the code below, but it doesn't load up. Is there a tag or character missing from my code. I have a custom write panel when a user post that I want to style with the CSS file. Any help would be great. Here is what I have in my themes functions.php file: function mytheme_add_init() { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/scripts/custom.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/scripts/custom.js", false, "1.0"); } A: Just hook your callback into admin_print_styles, i.e.: add_action( 'admin_print_styles', 'mytheme_add_init' ); Alternately, you could add an is_admin() conditional wrapper inside your callback, and hook into wp_enqueue_scripts: function mytheme_add_init() { if ( is_admin() ) { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/scripts/custom.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/scripts/custom.js", false, "1.0"); } } add_action( 'wp_enqueue_scripts', 'mytheme_add_init' ); But the absolute best approach is to hook into your Theme's admin page, via admin_print_styles-appearance_page_{pagename}: add_action( 'admin_print_styles-appearance_page_{pagename}', 'mytheme_add_init', 11 ); This is a custom hook specifically for your appearance page, as defined via your add_theme_page() call.
Q: How do I load a CSS style into WordPress admin area only? I'm trying to load a CSS file for my WordPress post area, but having no luck. I have read over the wp_enqueue_style function and came up with the code below, but it doesn't load up. Is there a tag or character missing from my code. I have a custom write panel when a user post that I want to style with the CSS file. Any help would be great. Here is what I have in my themes functions.php file: function mytheme_add_init() { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/scripts/custom.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/scripts/custom.js", false, "1.0"); } A: Just hook your callback into admin_print_styles, i.e.: add_action( 'admin_print_styles', 'mytheme_add_init' ); Alternately, you could add an is_admin() conditional wrapper inside your callback, and hook into wp_enqueue_scripts: function mytheme_add_init() { if ( is_admin() ) { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/scripts/custom.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/scripts/custom.js", false, "1.0"); } } add_action( 'wp_enqueue_scripts', 'mytheme_add_init' ); But the absolute best approach is to hook into your Theme's admin page, via admin_print_styles-appearance_page_{pagename}: add_action( 'admin_print_styles-appearance_page_{pagename}', 'mytheme_add_init', 11 ); This is a custom hook specifically for your appearance page, as defined via your add_theme_page() call. A: Late answer: As both previous answers showed old, incomplete or complicated ways, here's an updated version that works the v3.5+ way. What's different? Here's the list * *The first thing we do is using the admin_enqueue_scripts hook. This hook *The wp_enqueue_style()s last argument is the targeted media and it's already set to all per default. No need to add it. *We use the get_template_directory_uri() function to retrieve the URl for our stylesheet. No need to check the option value for template_directory here. *We then use the return value of get_template_directory() to retrieve the path and wrap it into a filemtime() call to get the last time where the stylesheet was edited. This way we append a new version number as query argument and force browser to reload the stylesheet if there's a new version. No need to force hard reloads with Ctrl + F5. *One important thing is to add the right dependencies as you don't want to have your styles overwritten with a higher specifity by wp-admin.css, ie (even worse) or the color scheme. The really tough part is to check the color scheme, as this file carries most of what is styled in the admin UI and is a user setting. We want to add this as dependency as well. *The last thing we do is wrapping the call to add the hook into another function that is hooked to the contextual admin_head-* hook, where * is the pageslug. We hook it two times to take new as well as edited posts into consideration. Here's the code for your functions.php file. add_action( 'admin_head-post.php', 'wpse44135AttachAdminStyle' ); add_action( 'admin_head-post-new.php', 'wpse44135AttachAdminStyle' ); function wpse44135AttachAdminStyle() { add_action( 'admin_enqueue_scripts', 'wpse44135EnqueueAdminStyle' ); } function wpse44135EnqueueAdminStyle() { $scheme = get_user_meta( get_current_user_id(), 'admin_color', true ); wp_enqueue_style( "admin_style", get_template_directory_uri()."/scripts/custom.css", array( 'wp-admin', 'ie', "colors-{$scheme}" ), filemtime( get_template_directory()."/scripts/custom.css" ), "all" ); } Alternatives? In case you just want to add styles to the TinyMCE WYSIWYG editor, you can use add_editor_style() to register your themes stylesheet in the admin areas text editor as well. The path you add as argument is relative to your themes root. In your functions.php file: add_editor_style( '/scripts/custom.css' ); It's as simple as that. A: Here is a quick way to add some style in admin head. hope this helps: add_action('admin_head', 'my_custom_fonts'); function my_custom_fonts() { echo '<style> body, td, textarea, input, select { font-family: "Lucida Grande"; font-size: 12px; } </style>'; }
wordpress
{ "language": "en", "length": 589, "provenance": "stackexchange_00019.jsonl.gz:417639", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44135" }
[ 0.0302734375, -0.002460479736328125, -0.01476287841796875, -0.033172607421875, 0.0009946823120117188, -0.020050048828125, 0.0091705322265625, -0.0070037841796875, -0.03765869140625, 0.009307861328125, -0.035491943359375, 0.047393798828125, -0.0227508544921875, -0.0009164810180664062, 0.025543212890625, -0.03753662109375, 0.057586669921875, -0.01512908935546875, 0.045867919921875, 0.0013055801391601562, -0.011322021484375, 0.04425048828125, 0.046142578125, 0.020172119140625, -0.00888824462890625, -0.004207611083984375, 0.10479736328125, -0.0035114288330078125, 0.0184783935546875, -0.020263671875, 0.017791748046875, -0.0316162109375, 0.033599853515625, -0.002712249755859375, 0.0017709732055664062, 0.0130615234375, -0.001934051513671875, -0.0020694732666015625, 0.007965087890625, 0.01419830322265625, 0.0307464599609375, -0.019744873046875, -0.0166778564453125, 0.0305023193359375, -0.0247955322265625, -0.028839111328125, 0.004306793212890625, -0.01751708984375, 0.00604248046875, -0.00402069091796875, 0.0162506103515625, -0.0217742919921875, 0.016082763671875, 0.01558685302734375, -0.0034198760986328125, 0.03302001953125, -0.0227813720703125, -0.0218048095703125, 0.01410675048828125, 0.0210723876953125, -0.0007171630859375, -0.0176544189453125, 0.0210113525390625, -0.0248260498046875, -0.0183868408203125, 0.0120391845703125, -0.0076751708984375, 0.003871917724609375, -0.037384033203125, -0.0092010498046875, 0.019927978515625, -0.032745361328125, 0.0029582977294921875, -0.0227813720703125, -0.045318603515625, 0.02197265625, 0.01171112060546875, -0.007049560546875, 0.0196685791015625, -0.02020263671875, 0.01690673828125, -0.0010824203491210938, -0.031829833984375, -0.002532958984375, 0.00421142578125, 0.01442718505859375, -0.0129852294921875, -0.0170745849609375, -0.0202484130859375, 0.0019512176513671875, -0.031036376953125, 0.00011610984802246094, -0.0038166046142578125, -0.01320648193359375, 0.0006742477416992188, -0.0290679931640625, 0.02728271484375, 0.06927490234375, 0.0278778076171875, 0.035675048828125, -0.0130615234375, -0.022064208984375, 0.0103912353515625, -0.038299560546875, 0.01024627685546875, 0.078857421875, 0.005237579345703125, 0.016693115234375, 0.0260009765625, -0.01395416259765625, 0.0120849609375, -0.040618896484375, 0.005344390869140625, -0.0304107666015625, -0.0134735107421875, -0.0135498046875, -0.0225982666015625, 0.01059722900390625, 0.0118865966796875, -0.0298309326171875, 0.0147857666015625, 0.04229736328125, -0.0020885467529296875, 0.0007681846618652344, -0.006328582763671875, 0.004314422607421875, 0.00662994384765625, -0.053680419921875, 0.0008668899536132812, 0.035308837890625, -0.0209197998046875, 0.00772857666015625, 0.043792724609375, 0.01284027099609375, -0.0191192626953125, -0.0188446044921875, 0.03497314453125, 0.0305328369140625, -0.01507568359375, -0.0150299072265625, 0.023468017578125, -0.0261993408203125, -0.0160064697265625, -0.0081939697265625, -0.046417236328125, 0.02679443359375, 0.010009765625, 0.00801849365234375, -0.0141448974609375, -0.067138671875, 0.005191802978515625, -0.0440673828125, 0.0240631103515625, 0.0300750732421875, 0.01488494873046875, -0.006122589111328125, 0.07147216796875, -0.0265960693359375, -0.02081298828125, -0.035369873046875, -0.0202484130859375, 0.0241546630859375, 0.033050537109375, -0.0139617919921875, -0.01024627685546875, -0.03106689453125, -0.00988006591796875, -0.00604248046875, 0.0328369140625, 0.007595062255859375, 0.006084442138671875, -0.01788330078125, 0.061248779296875, 0.0283355712890625, -0.007129669189453125, 0.031890869140625, 0.0192718505859375, 0.0292510986328125, 0.020050048828125, 0.01275634765625, -0.0270843505859375, -0.03717041015625, 0.07000732421875, -0.05419921875, -0.0267486572265625, -0.031524658203125, 0.021209716796875, 0.037384033203125, 0.015228271484375, 0.021331787109375, 0.03363037109375, -0.0088348388671875, -0.00738525390625, -0.0186004638671875, -0.0195770263671875, -0.0269317626953125, 0.005138397216796875, -0.002170562744140625, -0.01438140869140625, 0.03179931640625, -0.002155303955078125, -0.003963470458984375, 0.03936767578125, -0.0162506103515625, 0.005039215087890625, 0.0100250244140625, -0.0004611015319824219, 0.02734375, 0.0212249755859375, 0.004276275634765625, -0.0084228515625, -0.00855255126953125, 0.007472991943359375, -0.0236053466796875, -0.03314208984375, 0.034912109375, -0.00787353515625, 0.0631103515625, 0.004573822021484375, 0.04901123046875, 0.01207733154296875, -0.05865478515625, 0.0167999267578125, 0.0133056640625, -0.01006317138671875, -0.0038166046142578125, -0.0200042724609375, -0.0103912353515625, 0.00788116455078125, -0.005191802978515625, 0.0237884521484375, 0.0367431640625, 0.01953125, 0.0623779296875, -0.0179443359375, -0.0208282470703125, 0.00362396240234375, -0.033935546875, 0.031951904296875, 0.03387451171875, 0.034423828125, 0.00980377197265625, 0.0073089599609375, 0.023956298828125, 0.06842041015625, -0.01277923583984375, 0.004100799560546875, 0.003757476806640625, -0.012542724609375, 0.0003719329833984375, -0.0158233642578125, 0.01425933837890625, 0.041046142578125, -0.049102783203125, 0.024932861328125, 0.049835205078125, -0.01140594482421875, -0.0113525390625, 0.0006337165832519531, 0.0163726806640625, 0.0128173828125, 0.03515625, -0.00850677490234375, 0.0171356201171875, 0.0094146728515625, 0.005657196044921875, -0.01505279541015625, -0.01432037353515625, -0.04498291015625, 0.01263427734375, 0.042510986328125, -0.014678955078125, -0.0194854736328125, 0.032623291015625, 0.045806884765625, -0.0537109375, -0.048248291015625, 0.002208709716796875, 0.01157379150390625, 0.00623321533203125, 0.01377105712890625, 0.0268707275390625, -0.049896240234375, -0.004360198974609375, -0.00499725341796875, -0.0479736328125, -0.0068359375, 0.052276611328125, 0.0207672119140625, 0.038543701171875, 0.051483154296875, 0.0164642333984375, -0.01108551025390625, 0.023529052734375, -0.02825927734375, -0.0101470947265625, 0.024505615234375, 0.0011529922485351562, 0.0188140869140625, 0.0012493133544921875, 0.032958984375, 0.0506591796875, 0.01800537109375, -0.01081085205078125, 0.00778961181640625, 0.0172882080078125, -0.005146026611328125, 0.0178070068359375, 0.0142059326171875, -0.03173828125, 0.0069122314453125, 0.0200347900390625, 0.053070068359375, 0.032623291015625, 0.033294677734375, -0.02838134765625, -0.005191802978515625, 0.047882080078125, -0.075439453125, -0.07464599609375, -0.0278778076171875, -0.10009765625, 0.00658416748046875, -0.034332275390625, -0.0404052734375, 0.008758544921875, -0.02252197265625, 0.01580810546875, 0.0125274658203125, -0.02984619140625, -0.0204925537109375, -0.044952392578125, -0.044342041015625, -0.0455322265625, -0.00183868408203125, -0.0325927734375, 0.003459930419921875, 0.07794189453125, 0.012847900390625, -0.0458984375, 0.0281829833984375, 0.0260467529296875, -0.0023822784423828125, 0.0311431884765625, 0.01282501220703125, -0.0220489501953125, 0.004558563232421875, 0.0032749176025390625, 0.0032329559326171875, 0.01470184326171875, -0.0241546630859375, -0.0199127197265625, -0.02685546875, -0.005069732666015625, -0.024993896484375, 0.06463623046875, 0.038330078125, -0.033355712890625, -0.0039825439453125, -0.057281494140625, -0.02099609375, -0.0048370361328125, -0.0251007080078125, 0.0482177734375, 0.004268646240234375, -0.006931304931640625, 0.0017833709716796875, 0.047271728515625, 0.027252197265625, 0.007595062255859375, 0.01715087890625, -0.006252288818359375, 0.0233154296875, -0.0032196044921875, 0.0160064697265625, -0.035919189453125, 0.0178680419921875, -0.01885986328125, 0.0033588409423828125, 0.002696990966796875, -0.01220703125, -0.026947021484375, -0.004756927490234375, -0.05401611328125, -0.01277923583984375, 0.0252532958984375, -0.017913818359375, 0.04534912109375, -0.035919189453125, -0.0153045654296875, -0.019134521484375, 0.07666015625, -0.0275726318359375, -0.007778167724609375, 0.0025482177734375, 0.0235748291015625, -0.0513916015625, -0.06866455078125, -0.04437255859375, 0.0189208984375, -0.11602783203125, 0.0113677978515625, -0.0103607177734375, -0.0296630859375, 0.01313018798828125, -0.028167724609375, -0.039459228515625, -0.0645751953125, 0.01285552978515625, -0.030914306640625, 0.0134429931640625, 0.03387451171875, -0.0166015625, 0.0133209228515625, 0.0178375244140625, -0.062744140625, -0.13720703125, -0.00963592529296875, -0.0723876953125, 0.098388671875, 0.03521728515625, 0.01088714599609375, -0.01486968994140625, 0.0594482421875, -0.01287078857421875, -0.002872467041015625, 0.023895263671875, 0.04583740234375, -0.039825439453125, -0.0177154541015625, 0.014923095703125, -0.05224609375, -0.01214599609375, 0.01053619384765625, -0.040252685546875, 0.0242767333984375, -0.0140228271484375, -0.022186279296875, 0.03192138671875, -0.03851318359375, -0.011993408203125, 0.007633209228515625, 0.009857177734375, -0.00875091552734375, -0.00757598876953125, -0.01320648193359375, 0.0190277099609375, -0.00897216796875, 0.00313568115234375, -0.030181884765625, -0.00383758544921875, 0.0019369125366210938, 0.029571533203125, 0.034515380859375, -0.011322021484375, 0.02874755859375, 0.04248046875, 0.02215576171875, -0.005199432373046875, 0.055694580078125, 0.006595611572265625, -0.025177001953125, 0.07635498046875, 0.0048675537109375, 0.003330230712890625, -0.0140533447265625, 0.09130859375, -0.0003628730773925781, -0.0036525726318359375, 0.006725311279296875, -0.0178680419921875, -0.0133819580078125, 0.005458831787109375, -0.005947113037109375, -0.0183868408203125, 0.014739990234375, 0.0305023193359375, -0.00839996337890625, -0.0008835792541503906, -0.03778076171875, -0.015289306640625, -0.007259368896484375, -0.0009760856628417969, 0.0679931640625, 0.034820556640625, -0.016571044921875, 0.0287933349609375, 0.051544189453125, -0.007022857666015625, 0.0379638671875, 0.058746337890625, 0.0169677734375, 0.0258941650390625, 0.05389404296875, -0.001415252685546875, -0.026947021484375, -0.0081329345703125, -0.000946044921875, -0.003662109375, -0.031768798828125, -0.04681396484375, 0.00952911376953125, 0.0770263671875, -0.0111846923828125, 0.0275726318359375, 0.0458984375, 0.0253448486328125, -0.0307159423828125, -0.039642333984375, 0.00714111328125, -0.00341033935546875, -0.06231689453125, 0.022247314453125, -0.0162811279296875, -0.006992340087890625, 0.0162200927734375, 0.0006794929504394531, 0.062347412109375, -0.01244354248046875, -0.026214599609375, 0.002811431884765625, -0.0257415771484375, 0.04852294921875, 0.0020618438720703125, -0.0236358642578125, 0.01708984375, 0.018341064453125, 0.034027099609375, -0.0372314453125, 0.01032257080078125, 0.01027679443359375, 0.043243408203125, -0.02197265625, -0.0389404296875, 0.03515625, -0.0284881591796875, -0.044525146484375, 0.026519775390625, -0.0030670166015625, -0.034942626953125, -0.037078857421875, -0.020416259765625, 0.0157623291015625, 0.01012420654296875, 0.0183868408203125, 0.0298919677734375, -0.0103912353515625, 0.0089263916015625, -0.00199127197265625, -0.01198577880859375, -0.01416778564453125, -0.01309967041015625, -0.0255279541015625, -0.0039043426513671875, 0.005161285400390625, -0.0740966796875, -0.04632568359375, 0.0018968582153320312, 0.004688262939453125, 0.00997161865234375, -0.009429931640625, 0.0175933837890625, -0.0309600830078125, 0.005321502685546875, -0.054962158203125, 0.02685546875, 0.007534027099609375, -0.0112152099609375, -0.0196533203125, -0.006214141845703125, -0.0304718017578125, -0.004314422607421875, -0.047821044921875, -0.067626953125, -0.0244598388671875, 0.004901885986328125, -0.024688720703125, -0.00716400146484375, -0.033477783203125, -0.024322509765625, -0.04827880859375, 0.061553955078125, 0.061981201171875, 0.056610107421875, -0.02459716796875, 0.07830810546875, 0.0183258056640625, 0.0312347412109375, 0.0230865478515625, 0.045989990234375, -0.0008230209350585938, -0.0142974853515625, -0.0258636474609375, -0.068603515625, 0.0128936767578125, -0.005558013916015625, 0.00940704345703125, 0.059661865234375, 0.071044921875, 0.02642822265625, 0.0163421630859375, 0.011688232421875, 0.002475738525390625, -0.01739501953125, -0.01702880859375, 0.032470703125, 0.0391845703125, -0.0199737548828125, -0.01113128662109375, 0.0241241455078125, -0.0255126953125, -0.01274871826171875, 0.03424072265625, -0.0241546630859375, 0.038299560546875, -0.002628326416015625, -0.0986328125, 0.057464599609375, 0.006961822509765625, 0.03826904296875, 0.0345458984375, -0.059967041015625, 0.024932861328125, -0.00292205810546875, 0.004032135009765625, 0.014434814453125, -0.0028285980224609375, 0.042144775390625, -0.00029587745666503906, 0.024169921875, 0.040191650390625, -0.004909515380859375, 0.0137939453125, 0.039215087890625, 0.042510986328125, -0.0882568359375, 0.02117919921875, -0.0080108642578125, 0.01430511474609375, 0.04638671875, -0.029693603515625, 0.0019741058349609375, -0.0240478515625, 0.08599853515625, 0.027984619140625, -0.00213623046875, 0.04339599609375, -0.006298065185546875, -0.0084381103515625, -0.0036296844482421875, 0.00859832763671875, 0.01560211181640625, -0.01097869873046875, 0.003124237060546875, 0.00039076805114746094, -0.007083892822265625, -0.007701873779296875, 0.019744873046875, -0.032135009765625, -0.020782470703125, -0.03192138671875, 0.004878997802734375, -0.01174163818359375, -0.020477294921875, 0.0217437744140625, 0.00812530517578125, 0.05712890625, 0.031524658203125, 0.01108551025390625, -0.0159149169921875, -0.0181732177734375, 0.0533447265625, 0.0012102127075195312, -0.035614013671875, 0.0081329345703125, 0.01470947265625, -0.0249481201171875, 0.022857666015625, 0.0196075439453125, -0.04248046875, -0.001430511474609375, -0.02001953125, 0.060394287109375, -0.034698486328125, -0.0205078125, 0.00501251220703125, -0.0276947021484375, 0.0037212371826171875, -0.032958984375, 0.0181427001953125, -0.07666015625, -0.057647705078125, -0.0027179718017578125, -0.0833740234375, -0.045135498046875, -0.057464599609375, -0.0248870849609375, 0.0672607421875, -0.05804443359375, -0.007404327392578125, 0.0132904052734375, 0.03643798828125, 0.006908416748046875, 0.036163330078125, -0.004302978515625, 0.0179901123046875, 0.0289306640625, 0.01262664794921875, -0.02655029296875, -0.008056640625, 0.0027103424072265625, 0.041748046875, 0.039093017578125, 0.01055145263671875, -0.034149169921875, -0.0004973411560058594, 0.0506591796875, 0.061859130859375, 0.029815673828125, 0.0009284019470214844, -0.0124664306640625, -0.0216217041015625, 0.001026153564453125, -0.0125579833984375, 0.039306640625, -0.040283203125, -0.034576416015625, 0.01093292236328125, -0.0237579345703125, -0.04107666015625, -0.0027751922607421875, -0.01261138916015625, -0.05621337890625, 0.0167999267578125, 0.0335693359375, -0.035491943359375, -0.0386962890625, 0.05377197265625, -0.0004303455352783203, -0.028106689453125, -0.052825927734375, -0.0237274169921875, 0.0207672119140625, -0.00457000732421875, -0.01071929931640625, -0.0445556640625, -0.00006479024887084961, -0.022125244140625, -0.0284271240234375, -0.0144195556640625, 0.04498291015625, -0.04718017578125, 0.0341796875, 0.006153106689453125, 0.032257080078125, -0.0096435546875, -0.0202178955078125, -0.045013427734375, 0.00785064697265625, -0.01139068603515625, -0.0123748779296875, 0.024810791015625, 0.0261077880859375, -0.0212554931640625, 0.003963470458984375, -0.011260986328125, -0.0238800048828125, 0.0247802734375, -0.0230560302734375, -0.01430511474609375, 0.002166748046875, 0.006221771240234375, -0.01418304443359375, -0.001312255859375, -0.0008630752563476562, -0.00022685527801513672, -0.054229736328125, 0.037261962890625, 0.0200347900390625, 0.053192138671875, -0.004306793212890625, 0.043243408203125, -0.0211029052734375, -0.025543212890625, -0.0479736328125, 0.021087646484375, 0.0246734619140625, 0.04412841796875, -0.0218353271484375, 0.04461669921875, -0.0173797607421875, 0.03912353515625, 0.0039005279541015625, -0.020233154296875, 0.026092529296875, 0.01898193359375, -0.038909912109375, -0.0128631591796875, 0.00731658935546875, -0.02117919921875, -0.0008420944213867188, -0.0023860931396484375, 0.009124755859375, -0.00399017333984375, 0.0010213851928710938, -0.01503753662109375, 0.056854248046875, -0.00005131959915161133, -0.04376220703125, 0.031280517578125, 0.0009322166442871094, -0.0119171142578125, 0.03668212890625, 0.023681640625, 0.05780029296875, 0.0117645263671875, -0.01329803466796875, 0.0098114013671875, -0.024078369140625, 0.0157928466796875, 0.0003750324249267578, 0.0206298828125, -0.001171112060546875, 0.042205810546875, 0.059967041015625, -0.024322509765625, -0.032745361328125, 0.034088134765625, 0.027069091796875, -0.0116424560546875, 0.021514892578125, 0.0311126708984375, -0.059173583984375, -0.035125732421875, -0.0360107421875, 0.05548095703125, 0.0036067962646484375, 0.0310211181640625, -0.0307769775390625, 0.037841796875, 0.01265716552734375, 0.0195159912109375, -0.01302337646484375, -0.00992584228515625, 0.0214080810546875, -0.0159454345703125, 0.0021228790283203125, -0.0040130615234375, -0.042083740234375, -0.0059967041015625, 0.04180908203125, -0.00957489013671875, -0.022369384765625, 0.02423095703125, 0.028717041015625, -0.0025959014892578125, 0.00505828857421875, -0.03985595703125, -0.04571533203125, -0.05755615234375, -0.007843017578125, 0.001918792724609375, -0.0250091552734375, -0.02301025390625, 0.01287078857421875, 0.048309326171875, -0.02349853515625, 0.038421630859375, -0.01175689697265625, 0.0828857421875, 0.04730224609375, -0.011566162109375, -0.005939483642578125, 0.021392822265625, -0.007190704345703125, 0.0288543701171875, 0.0032062530517578125, 0.04888916015625, -0.0011587142944335938, -0.0164642333984375, 0.04827880859375, 0.056060791015625, 0.0535888671875, -0.0254669189453125, 0.010772705078125, 0.06610107421875, -0.0245819091796875, 0.0005888938903808594, -0.04498291015625, -0.042449951171875, -0.076171875, 0.01045989990234375, 0.0174102783203125, -0.0273895263671875, -0.034393310546875, -0.0212554931640625, 0.024505615234375, 0.01540374755859375, -0.01222991943359375, -0.060821533203125, 0.032928466796875, -0.05377197265625, 0.058685302734375, -0.018463134765625, 0.02972412109375, 0.00600433349609375, 0.040740966796875, -0.055084228515625, -0.039642333984375, -0.019683837890625, 0.025543212890625, -0.0496826171875, 0.0205230712890625, 0.03558349609375, -0.01849365234375, 0.042816162109375, 0.01227569580078125, 0.015594482421875, 0.0689697265625, -0.06170654296875, 0.0013885498046875, 0.036376953125, 0.0099334716796875, -0.0276031494140625, -0.0992431640625, -0.0255584716796875, -0.048370361328125, 0.0211944580078125, 0.0021190643310546875, -0.018280029296875, -0.0130157470703125, -0.0384521484375, -0.06903076171875, 0.00717926025390625, 0.01009368896484375, -0.039459228515625, -0.03009033203125, -0.0054473876953125, 0.00969696044921875, -0.01245880126953125, -0.016265869140625, -0.018402099609375, -0.03839111328125, 0.00846099853515625, -0.006626129150390625, 0.021453857421875, 0.0390625, -0.020965576171875, -0.044464111328125, -0.0089111328125, -0.0025196075439453125, -0.0164947509765625, -0.0092926025390625, -0.003875732421875, 0.0190582275390625, 0.035797119140625, -0.011993408203125, -0.0184783935546875, 0.0091400146484375, -0.01309967041015625, 0.005779266357421875, 0.00908660888671875, -0.050079345703125, -0.0023441314697265625, 0.11041259765625, 0.0264739990234375, 0.03497314453125, -0.0238189697265625, -0.0233001708984375, -0.03594970703125, -0.0426025390625, -0.017608642578125, 0.03582763671875, -0.06842041015625, 0.0031223297119140625, 0.0168609619140625, 0.006938934326171875, -0.01377105712890625, -0.0008907318115234375, -0.01910400390625, -0.02783203125, -0.006256103515625, -0.007904052734375, -0.0333251953125, -0.0229034423828125, 0.0833740234375, -0.030975341796875, 0.0229034423828125, 0.0052642822265625, 0.0299224853515625, 0.05230712890625, 0.033660888671875, -0.022613525390625, 0.033447265625, -0.031890869140625, 0.023529052734375, -0.0086517333984375, 0.000004708766937255859, -0.036041259765625, 0.0311737060546875, 0.01641845703125, -0.02105712890625, -0.029693603515625, -0.050079345703125, 0.0298309326171875, -0.0008902549743652344, -0.040618896484375, 0.08154296875, -0.01983642578125, 0.015777587890625, -0.011138916015625, 0.00457763671875, 0.0023937225341796875, 0.0094146728515625, 0.046295166015625, -0.0095977783203125, -0.014373779296875, -0.0019273757934570312, -0.01338958740234375, -0.0718994140625, 0.026824951171875, -0.03460693359375, 0.023040771484375, 0.0264739990234375 ]
62969bb10735333da71d6899c2fd47e8d3ae534c
Wordpress Stackexchange Q: Why is the_content() not displaying the content? in my wordpress site, the_content() is not showing the content, but $post->post_content shows it, why this is happening? and how can I use the_content again? A: If it worked before, it's probably a plugin hooking into the_content filter. Disable your plugins one by one to see if this fixes the issue. Next, check the callback functions for the_content filter. You can see every callback for the_content by adding the following: add_action('template_redirect', 'wpse_44152_template_redirect'); function wpse_44152_template_redirect(){ global $wp_filter; print_r($wp_filter['the_content']); } Find each of the functions listed by doing a 'find in files' code search on your code editor. A filter callback HAS TO return $content data back for the_content() to work properly.
Q: Why is the_content() not displaying the content? in my wordpress site, the_content() is not showing the content, but $post->post_content shows it, why this is happening? and how can I use the_content again? A: If it worked before, it's probably a plugin hooking into the_content filter. Disable your plugins one by one to see if this fixes the issue. Next, check the callback functions for the_content filter. You can see every callback for the_content by adding the following: add_action('template_redirect', 'wpse_44152_template_redirect'); function wpse_44152_template_redirect(){ global $wp_filter; print_r($wp_filter['the_content']); } Find each of the functions listed by doing a 'find in files' code search on your code editor. A filter callback HAS TO return $content data back for the_content() to work properly. A: In order to use "the_content()" it must be used within The Loop. See here: http://codex.wordpress.org/Function_Reference/the_content "Displays the contents of the current post. This tag must be within The_Loop." A: you can check your functions.php in your theme folder,find if some function do something for the "the_content" function.my theme have the same problem,and I found a function has a mistake and cause "the_content" can't work find text like "the_content" in your functions.php,
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:417643", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44152" }
[ -0.014617919921875, -0.0148162841796875, -0.005863189697265625, 0.0174407958984375, -0.0016202926635742188, -0.030609130859375, 0.0435791015625, -0.035400390625, 0.06524658203125, 0.026580810546875, -0.066162109375, -0.05029296875, -0.00586700439453125, -0.0227203369140625, -0.058990478515625, -0.060882568359375, 0.029327392578125, -0.01824951171875, 0.03143310546875, -0.01222991943359375, 0.01873779296875, 0.02105712890625, 0.01055908203125, 0.019622802734375, 0.00612640380859375, -0.0024700164794921875, 0.10614013671875, -0.0174102783203125, -0.0028209686279296875, -0.0318603515625, 0.0208892822265625, -0.0008668899536132812, 0.0237274169921875, 0.055877685546875, -0.086181640625, -0.0164031982421875, -0.0181732177734375, 0.00438690185546875, -0.0216522216796875, 0.03692626953125, -0.007450103759765625, 0.004459381103515625, 0.0262451171875, 0.006847381591796875, 0.0079498291015625, -0.029022216796875, 0.01163482666015625, -0.0616455078125, -0.0119476318359375, -0.01983642578125, 0.035614013671875, -0.017669677734375, 0.041473388671875, -0.03228759765625, 0.004199981689453125, 0.032989501953125, -0.039703369140625, 0.05279541015625, 0.038299560546875, -0.039337158203125, -0.039764404296875, -0.01239013671875, 0.0176849365234375, 0.000446319580078125, -0.01047515869140625, 0.0289764404296875, 0.054168701171875, -0.01560211181640625, -0.07598876953125, -0.002300262451171875, 0.0404052734375, -0.053314208984375, 0.001377105712890625, -0.0253143310546875, -0.0137786865234375, -0.02056884765625, 0.02001953125, -0.019622802734375, 0.00630950927734375, 0.002925872802734375, 0.01433563232421875, 0.034942626953125, -0.037109375, -0.0013561248779296875, 0.0043487548828125, 0.01284027099609375, -0.0247344970703125, -0.03497314453125, -0.0161590576171875, -0.0178375244140625, -0.016265869140625, -0.0019121170043945312, -0.007068634033203125, -0.010772705078125, -0.0152587890625, -0.032012939453125, 0.021240234375, 0.0704345703125, -0.0287017822265625, -0.0042572021484375, 0.01190948486328125, -0.040191650390625, 0.056884765625, -0.05096435546875, -0.01425933837890625, -0.01235198974609375, 0.0102996826171875, 0.0008325576782226562, 0.03521728515625, 0.04193115234375, -0.014068603515625, 0.0162811279296875, -0.0173187255859375, -0.03533935546875, -0.009246826171875, 0.019744873046875, -0.04364013671875, 0.001552581787109375, 0.0096435546875, 0.0013065338134765625, 0.01065826416015625, 0.004077911376953125, -0.00897979736328125, -0.02093505859375, 0.01425933837890625, -0.026123046875, -0.048736572265625, 0.0166168212890625, 0.044952392578125, 0.0048675537109375, -0.040008544921875, -0.010711669921875, 0.0384521484375, 0.028564453125, 0.0186614990234375, -0.02392578125, -0.00856781005859375, -0.048980712890625, -0.040679931640625, 0.0224609375, -0.0382080078125, -0.006954193115234375, 0.0201263427734375, -0.06280517578125, 0.044219970703125, 0.026824951171875, 0.0299530029296875, 0.018524169921875, -0.003772735595703125, -0.050262451171875, 0.0377197265625, 0.0010042190551757812, 0.0263519287109375, -0.00522613525390625, 0.0166778564453125, -0.02838134765625, 0.039154052734375, -0.046905517578125, -0.0230255126953125, -0.0440673828125, 0.06658935546875, 0.0102386474609375, -0.0062408447265625, -0.00212860107421875, -0.043060302734375, -0.033599853515625, -0.07525634765625, -0.026580810546875, 0.0184173583984375, -0.0277862548828125, 0.0296783447265625, 0.00897979736328125, -0.0311126708984375, -0.0282135009765625, -0.006805419921875, -0.017578125, 0.01434326171875, 0.021209716796875, 0.00533294677734375, 0.05267333984375, -0.00859832763671875, -0.024322509765625, 0.06195068359375, -0.03619384765625, -0.03466796875, 0.029266357421875, 0.028839111328125, 0.035247802734375, -0.020355224609375, 0.00997161865234375, 0.03948974609375, 0.056549072265625, -0.037933349609375, -0.001857757568359375, 0.004383087158203125, -0.0301055908203125, -0.03143310546875, -0.032257080078125, 0.0013484954833984375, 0.031585693359375, 0.03631591796875, -0.00803375244140625, 0.01270294189453125, 0.0215606689453125, -0.06292724609375, 0.00826263427734375, -0.024871826171875, 0.003971099853515625, 0.01715087890625, 0.0231170654296875, 0.005779266357421875, 0.004913330078125, -0.030120849609375, -0.0215606689453125, -0.0455322265625, 0.002353668212890625, -0.0472412109375, -0.029022216796875, -0.00774383544921875, 0.03717041015625, -0.01506805419921875, -0.0021533966064453125, -0.05609130859375, -0.043701171875, 0.074951171875, 0.008697509765625, -0.0092010498046875, -0.01212310791015625, 0.051025390625, 0.0083160400390625, -0.0240020751953125, 0.028839111328125, 0.03607177734375, 0.01385498046875, -0.045806884765625, 0.006183624267578125, -0.011077880859375, -0.0413818359375, -0.01436614990234375, 0.058807373046875, 0.03851318359375, 0.0897216796875, -0.0292510986328125, -0.0265350341796875, 0.10736083984375, -0.0183563232421875, 0.00846099853515625, -0.01071929931640625, 0.055999755859375, 0.0452880859375, 0.005496978759765625, -0.0208587646484375, 0.03680419921875, -0.0390625, 0.048431396484375, 0.028411865234375, -0.00672149658203125, 0.026947021484375, -0.023681640625, 0.01044464111328125, -0.0018491744995117188, 0.01641845703125, 0.00827789306640625, -0.0098419189453125, -0.0222930908203125, 0.043792724609375, 0.025177001953125, 0.019012451171875, -0.004589080810546875, -0.0077362060546875, 0.005260467529296875, 0.0071258544921875, 0.0030269622802734375, 0.05859375, 0.007381439208984375, -0.0238037109375, -0.030029296875, -0.0186004638671875, 0.0290069580078125, 0.0288238525390625, 0.01406097412109375, 0.032470703125, -0.0299530029296875, -0.0159454345703125, 0.0090179443359375, -0.0117645263671875, -0.0168914794921875, 0.02099609375, 0.036651611328125, -0.0197296142578125, 0.006343841552734375, 0.049468994140625, 0.0177154541015625, 0.0322265625, 0.0096893310546875, -0.006542205810546875, 0.01078033447265625, -0.01407623291015625, 0.03759765625, -0.039581298828125, 0.0172882080078125, 0.037994384765625, -0.0285797119140625, 0.01126861572265625, 0.0279693603515625, 0.0118408203125, 0.045013427734375, 0.0011034011840820312, -0.0008368492126464844, 0.020660400390625, -0.0830078125, -0.040679931640625, 0.032623291015625, 0.035369873046875, -0.007110595703125, -0.050689697265625, -0.028900146484375, 0.031768798828125, -0.10577392578125, -0.053314208984375, -0.031341552734375, -0.0745849609375, -0.031524658203125, -0.01163482666015625, -0.03533935546875, 0.018310546875, 0.0025806427001953125, 0.0078125, -0.0038928985595703125, -0.016082763671875, -0.091796875, -0.031463623046875, -0.0606689453125, 0.0540771484375, -0.023040771484375, 0.0203857421875, 0.006908416748046875, 0.01708984375, -0.00800323486328125, -0.073974609375, -0.00433349609375, 0.01268768310546875, -0.01401519775390625, 0.0357666015625, 0.003204345703125, 0.024139404296875, -0.0128326416015625, 0.0263214111328125, -0.004795074462890625, 0.011016845703125, -0.0208282470703125, -0.04705810546875, -0.023406982421875, -0.03558349609375, 0.0000451207160949707, -0.0004184246063232422, 0.016998291015625, -0.017242431640625, 0.0128936767578125, -0.051544189453125, -0.024139404296875, -0.0195465087890625, -0.063232421875, 0.0250091552734375, 0.05401611328125, -0.0005369186401367188, -0.0307464599609375, 0.0051727294921875, -0.027008056640625, 0.01171875, 0.0114288330078125, -0.0275421142578125, 0.06549072265625, -0.005947113037109375, -0.028900146484375, 0.0026073455810546875, -0.01372528076171875, -0.00942230224609375, 0.0033435821533203125, -0.016448974609375, 0.0292205810546875, -0.004940032958984375, 0.011688232421875, -0.040130615234375, -0.031219482421875, 0.0616455078125, 0.01486968994140625, 0.0030364990234375, -0.02850341796875, -0.05242919921875, -0.00850677490234375, 0.0867919921875, -0.03900146484375, 0.0047607421875, -0.0118865966796875, 0.00383758544921875, -0.01200103759765625, -0.046356201171875, -0.046173095703125, -0.01187896728515625, -0.05810546875, 0.0027065277099609375, -0.0242919921875, -0.0209197998046875, -0.00341796875, -0.006565093994140625, -0.006130218505859375, -0.0360107421875, 0.02685546875, -0.020782470703125, 0.004024505615234375, 0.01348114013671875, -0.0168304443359375, -0.031341552734375, -0.01329803466796875, -0.01296234130859375, -0.047760009765625, -0.01451873779296875, 0.0223541259765625, 0.030670166015625, 0.01248931884765625, -0.0268707275390625, -0.0268096923828125, 0.020263671875, 0.0438232421875, 0.043060302734375, 0.00801849365234375, -0.036407470703125, 0.03424072265625, -0.00298309326171875, 0.0307464599609375, -0.00873565673828125, 0.002346038818359375, -0.0089874267578125, -0.00904083251953125, 0.05657958984375, -0.0362548828125, 0.03082275390625, -0.025421142578125, -0.0193634033203125, 0.0015935897827148438, 0.0016508102416992188, -0.0249786376953125, 0.0009431838989257812, -0.0305938720703125, 0.0253753662109375, 0.01389312744140625, -0.0160369873046875, 0.040679931640625, -0.006870269775390625, -0.04193115234375, 0.0050048828125, 0.05499267578125, 0.036834716796875, -0.019683837890625, -0.0182342529296875, -0.0024089813232421875, 0.01374053955078125, -0.00872039794921875, 0.05615234375, 0.00716400146484375, -0.0162200927734375, 0.0845947265625, -0.01194000244140625, 0.0297393798828125, -0.0141143798828125, 0.0770263671875, 0.0121307373046875, -0.0010328292846679688, 0.031158447265625, 0.0161895751953125, -0.0296783447265625, -0.002532958984375, -0.003925323486328125, -0.018402099609375, 0.043243408203125, 0.0303497314453125, -0.016998291015625, 0.0231170654296875, -0.026031494140625, -0.0201568603515625, -0.0011816024780273438, 0.0251617431640625, 0.0310821533203125, 0.02392578125, 0.007518768310546875, 0.00998687744140625, 0.026214599609375, 0.012481689453125, -0.0009274482727050781, -0.00812530517578125, -0.01522064208984375, 0.026824951171875, 0.01483154296875, 0.00809478759765625, 0.004425048828125, -0.0164337158203125, 0.068359375, 0.007343292236328125, -0.04461669921875, 0.0198974609375, -0.0229339599609375, 0.0090789794921875, 0.038970947265625, -0.000766754150390625, 0.0009012222290039062, 0.02813720703125, -0.0145721435546875, 0.008636474609375, 0.03936767578125, 0.016876220703125, -0.0163421630859375, 0.027801513671875, -0.01373291015625, 0.00783538818359375, 0.011688232421875, 0.036956787109375, -0.039520263671875, 0.04022216796875, -0.0034847259521484375, 0.0079803466796875, -0.0011148452758789062, 0.0506591796875, 0.0265045166015625, -0.046234130859375, 0.007720947265625, 0.02886962890625, 0.0067138671875, -0.04876708984375, -0.0323486328125, 0.0213623046875, 0.05487060546875, -0.04913330078125, -0.0100250244140625, 0.045654296875, 0.01198577880859375, 0.021392822265625, 0.0261077880859375, -0.0361328125, -0.053619384765625, -0.01922607421875, 0.02685546875, 0.0467529296875, -0.035552978515625, -0.0162506103515625, 0.0027141571044921875, -0.0235137939453125, 0.0055999755859375, 0.01617431640625, -0.029815673828125, 0.0171966552734375, 0.002658843994140625, 0.0210113525390625, -0.04742431640625, -0.01410675048828125, 0.0017442703247070312, 0.015960693359375, -0.03546142578125, 0.0236968994140625, 0.0654296875, -0.032135009765625, 0.030242919921875, -0.020172119140625, 0.0026149749755859375, -0.0306396484375, 0.028106689453125, 0.0265655517578125, 0.02667236328125, -0.0841064453125, 0.04681396484375, -0.04351806640625, 0.01556396484375, -0.034576416015625, -0.051971435546875, -0.0628662109375, -0.036163330078125, 0.0173187255859375, -0.0016641616821289062, -0.0019178390502929688, -0.034454345703125, -0.038909912109375, 0.05108642578125, 0.04534912109375, 0.07305908203125, -0.00323486328125, 0.088134765625, -0.00838470458984375, 0.0731201171875, 0.00725555419921875, 0.034881591796875, -0.023834228515625, -0.0289459228515625, 0.01142120361328125, -0.035400390625, -0.018768310546875, -0.0098876953125, 0.02667236328125, 0.01324462890625, 0.01224517822265625, -0.004299163818359375, -0.0014944076538085938, -0.00919342041015625, -0.018829345703125, -0.0208587646484375, 0.0103607177734375, 0.004741668701171875, 0.00687408447265625, 0.0004444122314453125, -0.027099609375, 0.0229034423828125, -0.0028858184814453125, -0.010955810546875, 0.0176544189453125, -0.0141143798828125, 0.002017974853515625, 0.0328369140625, -0.0229034423828125, 0.040679931640625, 0.04132080078125, 0.0023555755615234375, 0.0289764404296875, -0.00493621826171875, -0.01039886474609375, -0.00432586669921875, 0.015655517578125, -0.03729248046875, -0.0255126953125, 0.0220184326171875, 0.012939453125, -0.0020198822021484375, 0.007549285888671875, -0.0081634521484375, 0.00807952880859375, 0.06109619140625, 0.03729248046875, -0.090576171875, 0.0007433891296386719, -0.00534820556640625, -0.00470733642578125, 0.01824951171875, 0.0043182373046875, -0.012908935546875, 0.00457763671875, 0.035247802734375, 0.0071563720703125, -0.0004897117614746094, 0.053466796875, 0.0116119384765625, -0.0208740234375, 0.00437164306640625, -0.0022411346435546875, 0.013641357421875, -0.04522705078125, 0.019439697265625, 0.03472900390625, 0.004352569580078125, -0.00736236572265625, -0.0077056884765625, -0.03131103515625, -0.0279998779296875, -0.024261474609375, -0.00843048095703125, -0.0170135498046875, 0.0164642333984375, 0.005615234375, 0.0073089599609375, -0.00550079345703125, 0.07965087890625, -0.039031982421875, 0.04034423828125, 0.044342041015625, -0.039886474609375, -0.0162200927734375, 0.004123687744140625, 0.03668212890625, 0.050537109375, -0.047607421875, 0.0298004150390625, -0.01335906982421875, -0.0096435546875, 0.0035533905029296875, -0.034423828125, 0.06036376953125, -0.0062408447265625, -0.03021240234375, 0.0148468017578125, -0.03497314453125, -0.013946533203125, -0.0168304443359375, 0.054290771484375, -0.01015472412109375, 0.0465087890625, -0.0016889572143554688, 0.05126953125, -0.017730712890625, -0.0161285400390625, -0.0653076171875, 0.08062744140625, -0.0005526542663574219, 0.030120849609375, 0.01947021484375, 0.01515960693359375, -0.041748046875, -0.0256195068359375, -0.034515380859375, 0.08941650390625, -0.0110321044921875, 0.07318115234375, -0.07666015625, -0.0153045654296875, 0.0239410400390625, 0.057281494140625, 0.034088134765625, 0.0010938644409179688, -0.07342529296875, -0.03656005859375, 0.04486083984375, 0.039825439453125, 0.03277587890625, 0.049224853515625, -0.0212554931640625, 0.01374053955078125, -0.0225677490234375, -0.06787109375, 0.0143585205078125, -0.04925537109375, -0.03350830078125, 0.0013294219970703125, 0.004276275634765625, -0.01220703125, 0.046234130859375, -0.02532958984375, -0.0509033203125, 0.01479339599609375, 0.0294342041015625, -0.032012939453125, -0.0130767822265625, 0.044158935546875, 0.0124969482421875, -0.04949951171875, -0.0206756591796875, -0.042449951171875, 0.040435791015625, 0.0008587837219238281, 0.0321044921875, 0.00910186767578125, 0.0112457275390625, 0.0694580078125, -0.034515380859375, 0.00820159912109375, 0.0256195068359375, -0.0225372314453125, 0.004817962646484375, 0.015899658203125, -0.004840850830078125, -0.05657958984375, -0.031524658203125, 0.02069091796875, 0.03570556640625, -0.0221405029296875, -0.0066375732421875, 0.022613525390625, 0.00026488304138183594, -0.022430419921875, -0.027496337890625, -0.0174713134765625, 0.0043792724609375, 0.0035648345947265625, -0.0302886962890625, -0.034515380859375, 0.0243377685546875, 0.03192138671875, -0.0066680908203125, -0.0161590576171875, 0.01517486572265625, -0.04388427734375, -0.035186767578125, 0.034637451171875, 0.03375244140625, 0.043304443359375, -0.0215301513671875, 0.077392578125, -0.038482666015625, -0.00862884521484375, 0.01520538330078125, 0.01363372802734375, -0.05523681640625, 0.002285003662109375, -0.0308837890625, -0.0638427734375, -0.005512237548828125, 0.03753662109375, -0.01070404052734375, -0.02447509765625, -0.0066070556640625, 0.02227783203125, 0.002452850341796875, -0.0245819091796875, 0.0037860870361328125, -0.0106964111328125, 0.006153106689453125, -0.034393310546875, 0.00927734375, -0.0007290840148925781, -0.00829315185546875, 0.01053619384765625, -0.00897979736328125, 0.0290374755859375, 0.0013780593872070312, 0.03033447265625, -0.004367828369140625, -0.034393310546875, 0.0013208389282226562, 0.0050201416015625, 0.08673095703125, 0.018035888671875, -0.0684814453125, -0.0021820068359375, -0.0282440185546875, -0.0445556640625, 0.03033447265625, 0.0496826171875, -0.01329803466796875, 0.01593017578125, -0.0173492431640625, -0.0157928466796875, 0.0147857666015625, -0.0089263916015625, 0.01242828369140625, -0.0019893646240234375, -0.00879669189453125, -0.01454925537109375, -0.01422882080078125, -0.0203094482421875, -0.00244903564453125, 0.05047607421875, 0.00537109375, 0.07623291015625, -0.040313720703125, 0.031829833984375, -0.02484130859375, 0.01305389404296875, -0.020843505859375, -0.00624847412109375, -0.00372314453125, 0.0201416015625, 0.01136016845703125, -0.0191650390625, -0.0640869140625, -0.0132293701171875, 0.0631103515625, -0.0033588409423828125, 0.01611328125, -0.0177764892578125, 0.025390625, -0.036712646484375, -0.0024662017822265625, -0.02264404296875, 0.0142669677734375, -0.0153656005859375, -0.02545166015625, 0.045623779296875, 0.005084991455078125, 0.00919342041015625, 0.0015716552734375, -0.00833892822265625, -0.07806396484375, 0.00397491455078125, -0.03692626953125, -0.007663726806640625, 0.036895751953125, 0.03955078125, -0.024200439453125, -0.005695343017578125, -0.00968170166015625, 0.01519012451171875, 0.002170562744140625, 0.0243072509765625, 0.007724761962890625, 0.0096282958984375, 0.00202178955078125, -0.055572509765625, 0.00897216796875, -0.0379638671875, -0.00945281982421875, 0.0008611679077148438, 0.02764892578125, -0.00804901123046875, 0.00661468505859375, 0.0004968643188476562, -0.0167999267578125, -0.0209503173828125, -0.013763427734375, 0.004550933837890625, -0.034698486328125, 0.0159149169921875, 0.01525115966796875, 0.0404052734375, -0.0032901763916015625, -0.0305328369140625, -0.0137939453125, -0.04046630859375, 0.05084228515625, -0.005733489990234375, -0.00415802001953125, 0.028564453125, 0.040557861328125, -0.0204315185546875, 0.046966552734375, -0.0172576904296875, -0.04931640625, 0.0052947998046875, 0.00957489013671875, 0.018707275390625, -0.020599365234375, -0.00681304931640625, 0.032684326171875, -0.01177978515625, 0.086669921875, 0.0161285400390625, -0.0184173583984375, 0.000011086463928222656, 0.0018262863159179688, -0.02008056640625, 0.031158447265625, 0.0316162109375, 0.03338623046875, -0.06695556640625, -0.01354217529296875, 0.030426025390625, 0.0233306884765625, -0.0226287841796875, -0.0594482421875, -0.018890380859375, 0.004482269287109375, -0.0257720947265625, -0.0234375, -0.0081787109375, -0.00567626953125, -0.0208892822265625, -0.0164337158203125, 0.003765106201171875, -0.0201263427734375, 0.030792236328125, -0.01227569580078125, 0.0288238525390625, 0.0310821533203125, -0.042877197265625, -0.050048828125, -0.0499267578125, -0.04534912109375, -0.0089111328125, -0.0081329345703125, -0.026885986328125, 0.01210784912109375, 0.01153564453125, -0.027862548828125, -0.052398681640625, 0.0151824951171875, -0.01580810546875, -0.0010633468627929688, -0.0203857421875, -0.0016021728515625, -0.0271453857421875, 0.025634765625, -0.0098724365234375, -0.005039215087890625, 0.0037212371826171875, 0.00841522216796875, -0.0143280029296875, -0.07415771484375, -0.0035800933837890625, 0.04132080078125, -0.0604248046875, -0.007518768310546875, -0.007740020751953125, -0.022308349609375, 0.03656005859375, -0.039459228515625, -0.0253143310546875, -0.0172271728515625, -0.040924072265625, 0.0021190643310546875, -0.031219482421875, -0.06781005859375, 0.0419921875, -0.01410675048828125, 0.0038166046142578125, -0.00121307373046875, 0.04620361328125, 0.0045623779296875, 0.02423095703125, 0.040435791015625, 0.0188751220703125, -0.029998779296875, -0.00806427001953125, 0.019195556640625, 0.0122222900390625, 0.001827239990234375, -0.04144287109375, 0.01123809814453125, 0.0298614501953125, -0.04827880859375, 0.050445556640625, 0.052459716796875, 0.02642822265625, -0.0252838134765625, 0.0572509765625, -0.01139068603515625, 0.02923583984375, -0.0001628398895263672, 0.0176544189453125, -0.041748046875, 0.0016565322875976562, -0.00858306884765625, -0.0153350830078125, 0.0148162841796875, 0.0089874267578125, 0.03179931640625, 0.00708770751953125, 0.00504302978515625, -0.06573486328125, -0.006618499755859375, 0.000774383544921875 ]
b729c58b8c87c53e1586a6afddb2f87403c7c572
Wordpress Stackexchange Q: How can I test how fast or slow my wordpress website it? I have my FIRST wordpress website and I love it, however I'm not sure if it's my browser (Firefox 8.0.1 for Mac) or my computer or the website itself but it's going really slow. MY SITE is in the finalizing stages and I want to make sure it's smooth. This is my first wordpress site so I can see myself adding a lot of things and maybe slowing it don that way? First off, is it slow for you guys? Where is a good site, plugin or article about how to determine how slow/fast your wordpress site it? Is there a handy plugin that can speed it up? Is there somewhere I can check to see how big my site it? What might be a specific thing slowing it down? A: You can meassure Plugin performance with the P3 Plugin pretty well. It will show you, which one of your plugins is the one that takes the most time and costs you the most resources.
Q: How can I test how fast or slow my wordpress website it? I have my FIRST wordpress website and I love it, however I'm not sure if it's my browser (Firefox 8.0.1 for Mac) or my computer or the website itself but it's going really slow. MY SITE is in the finalizing stages and I want to make sure it's smooth. This is my first wordpress site so I can see myself adding a lot of things and maybe slowing it don that way? First off, is it slow for you guys? Where is a good site, plugin or article about how to determine how slow/fast your wordpress site it? Is there a handy plugin that can speed it up? Is there somewhere I can check to see how big my site it? What might be a specific thing slowing it down? A: You can meassure Plugin performance with the P3 Plugin pretty well. It will show you, which one of your plugins is the one that takes the most time and costs you the most resources. A: Try Pingdom. A: There are several factors that will make your Wordpress site slugish. One of the largest gains can be made with the W3 cache plugin, along with several other smaller fixes. Also choosing a well made theme can help with CSS & PHP bloat. Guide on Wordpress http://wp.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site/ General Google Speed assessment: https://developers.google.com/pagespeed/#url=http_3A_2F_2Fsafetyspeakers.ca_2F&mobile=false W3 Cache tutorial: http://www.techiezone.net/tutorials/configure-w3-total-cache/ **Edit You also might want to checkout this book to really tweak it: http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309 A: I would strongly recommend using the YSlow plugin for your browser. It provides useful feedback on what could be (is) slowing your site down. A: Check out webpagetest.org where you'll get a graded report like this: A: There are several tools to check for Website speed: 7 Best Free Website Speed Tools You could also add code at the footer of your Website that measures the loading time of the page (does not work well with a caching plugin, understandably): <?php echo get_num_queries(); ?> <em title="Sometimes queries value does not update when page is cached.">queries</em> in <?php timer_stop(1); ?> seconds. Hope this helps. Boutros. A: Hi there you can measure your website speed using several websites like Google Pagespeed insights , gtmetrix and webpagetest.org. I find the later very easy and it explains in details what kind of problem your website faces. You can also check this video where you will learn how to test and understand your website speed.
wordpress
{ "language": "en", "length": 413, "provenance": "stackexchange_00019.jsonl.gz:417644", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44154" }
[ -0.037139892578125, 0.0114593505859375, -0.026824951171875, 0.078125, -0.0271453857421875, -0.03662109375, 0.051849365234375, -0.0614013671875, -0.01387786865234375, 0.001491546630859375, -0.043121337890625, 0.0296630859375, 0.0033588409423828125, -0.0234375, 0.0198211669921875, -0.03021240234375, 0.05706787109375, -0.00200653076171875, 0.037933349609375, 0.01275634765625, -0.0090179443359375, 0.057861328125, 0.0076904296875, 0.09423828125, 0.05126953125, -0.035736083984375, 0.045867919921875, 0.01129150390625, 0.04376220703125, 0.01105499267578125, 0.03875732421875, -0.0521240234375, -0.007022857666015625, 0.04571533203125, -0.026580810546875, -0.007266998291015625, -0.0253143310546875, 0.0238494873046875, 0.032684326171875, -0.01213836669921875, 0.02813720703125, -0.0168609619140625, -0.0160675048828125, 0.0020923614501953125, -0.007602691650390625, -0.06707763671875, 0.061981201171875, -0.04364013671875, -0.0027904510498046875, -0.07818603515625, 0.004638671875, 0.01483917236328125, 0.034454345703125, -0.027740478515625, -0.000018715858459472656, 0.02191162109375, 0.03314208984375, 0.0313720703125, 0.044525146484375, -0.0633544921875, -0.06927490234375, 0.00907135009765625, 0.03692626953125, 0.0007715225219726562, -0.053466796875, -0.0150146484375, -0.0228118896484375, -0.00356292724609375, 0.045440673828125, -0.04107666015625, -0.003082275390625, 0.0302734375, 0.03253173828125, -0.00769805908203125, -0.048858642578125, -0.0704345703125, 0.054962158203125, -0.049346923828125, 0.0019254684448242188, -0.0178070068359375, -0.02960205078125, -0.014892578125, -0.0357666015625, -0.012603759765625, 0.002170562744140625, 0.0277862548828125, -0.018341064453125, -0.004177093505859375, -0.032623291015625, -0.03521728515625, -0.034820556640625, 0.005695343017578125, -0.03240966796875, -0.0194549560546875, -0.043426513671875, 0.0004420280456542969, 0.0241851806640625, -0.017242431640625, 0.0025539398193359375, -0.0202484130859375, 0.0225372314453125, -0.048004150390625, 0.027801513671875, 0.0008273124694824219, 0.01214599609375, 0.0194549560546875, 0.0006508827209472656, 0.01183319091796875, 0.046905517578125, 0.0261383056640625, -0.0104522705078125, 0.0625, -0.047149658203125, -0.004436492919921875, -0.036407470703125, 0.0249176025390625, -0.057220458984375, 0.0022449493408203125, -0.01690673828125, 0.032379150390625, -0.00452423095703125, 0.01788330078125, 0.0159454345703125, -0.0033740997314453125, -0.0159149169921875, -0.0113983154296875, 0.008453369140625, -0.042572021484375, 0.0080108642578125, 0.0066986083984375, 0.00039005279541015625, 0.0284271240234375, 0.0016698837280273438, 0.005146026611328125, -0.023040771484375, 0.0006442070007324219, 0.0131683349609375, -0.00347900390625, -0.0166778564453125, 0.0290069580078125, -0.01483154296875, -0.04815673828125, -0.0203094482421875, -0.022491455078125, 0.035186767578125, -0.0016956329345703125, -0.006134033203125, 0.02972412109375, -0.00023806095123291016, -0.009490966796875, 0.057861328125, -0.054046630859375, 0.03997802734375, -0.026214599609375, -0.010498046875, -0.028350830078125, -0.0311431884765625, -0.005207061767578125, -0.006763458251953125, -0.006107330322265625, -0.0173492431640625, 0.0191802978515625, 0.0675048828125, 0.0085601806640625, 0.004825592041015625, -0.0189361572265625, -0.04840087890625, -0.006084442138671875, 0.0193634033203125, -0.0277862548828125, 0.0013980865478515625, -0.00991058349609375, 0.050811767578125, -0.0162506103515625, -0.00923919677734375, 0.0269927978515625, 0.01702880859375, 0.022552490234375, 0.015594482421875, 0.00513458251953125, -0.024993896484375, -0.03680419921875, 0.083251953125, -0.048797607421875, -0.01274871826171875, -0.0196380615234375, 0.014495849609375, -0.005138397216796875, 0.006488800048828125, 0.007251739501953125, 0.01511383056640625, 0.01806640625, -0.032379150390625, 0.0071563720703125, 0.00707244873046875, -0.002166748046875, -0.038330078125, -0.001972198486328125, -0.0103302001953125, -0.01136016845703125, 0.0100555419921875, -0.0104827880859375, -0.007598876953125, -0.0262451171875, -0.0784912109375, -0.0190582275390625, -0.0259857177734375, 0.040618896484375, 0.058197021484375, 0.036163330078125, -0.015594482421875, 0.0045166015625, -0.0103759765625, -0.0345458984375, -0.04412841796875, 0.00214385986328125, -0.006748199462890625, -0.0271453857421875, 0.0043182373046875, -0.02685546875, 0.007236480712890625, 0.0285797119140625, -0.0071868896484375, 0.034515380859375, 0.014923095703125, 0.0278778076171875, -0.035552978515625, 0.0198516845703125, -0.010101318359375, 0.02947998046875, -0.0325927734375, 0.00954437255859375, 0.049163818359375, 0.058319091796875, 0.007495880126953125, -0.0018739700317382812, 0.00838470458984375, -0.09576416015625, 0.003574371337890625, 0.052276611328125, 0.042449951171875, 0.0069122314453125, 0.019683837890625, 0.023834228515625, 0.02685546875, -0.05157470703125, 0.0137481689453125, -0.0103912353515625, 0.040130615234375, 0.031341552734375, -0.04388427734375, -0.038604736328125, 0.0421142578125, -0.00927734375, 0.02020263671875, 0.03277587890625, -0.01439666748046875, -0.01100921630859375, 0.0022068023681640625, 0.01287841796875, 0.006618499755859375, 0.016357421875, -0.002777099609375, 0.0005941390991210938, 0.021636962890625, 0.017852783203125, 0.0178680419921875, 0.01203155517578125, -0.034027099609375, 0.03515625, 0.0185089111328125, -0.0340576171875, 0.00506591796875, 0.01824951171875, 0.035552978515625, 0.0107269287109375, -0.0308685302734375, -0.007781982421875, 0.0216064453125, 0.00010776519775390625, -0.0034465789794921875, -0.0006909370422363281, -0.007297515869140625, 0.00946807861328125, -0.0130767822265625, -0.033935546875, 0.0288238525390625, 0.0577392578125, 0.0039825439453125, 0.00817108154296875, 0.049346923828125, -0.00849151611328125, -0.028961181640625, 0.036529541015625, 0.004848480224609375, -0.0355224609375, 0.042572021484375, -0.0218963623046875, 0.033660888671875, -0.0220184326171875, 0.044891357421875, 0.05419921875, -0.028533935546875, 0.020416259765625, -0.003917694091796875, 0.0010280609130859375, 0.0264434814453125, -0.0229949951171875, -0.035003662109375, 0.03533935546875, -0.10296630859375, -0.00649261474609375, 0.01558685302734375, 0.0052490234375, 0.00905609130859375, -0.0176849365234375, -0.0220184326171875, -0.01219940185546875, -0.0958251953125, -0.07794189453125, -0.07354736328125, -0.08990478515625, -0.022613525390625, 0.0211639404296875, -0.037811279296875, 0.0290374755859375, 0.05377197265625, 0.0286407470703125, -0.0214996337890625, -0.053619384765625, -0.061798095703125, -0.08184814453125, -0.07379150390625, -0.024810791015625, 0.0029926300048828125, 0.0241241455078125, 0.0085906982421875, 0.073974609375, -0.0014619827270507812, -0.046722412109375, -0.0219268798828125, -0.04052734375, -0.0149688720703125, 0.00923919677734375, 0.01380157470703125, -0.001209259033203125, -0.0183258056640625, 0.0128021240234375, -0.01708984375, 0.0021209716796875, -0.016265869140625, -0.0272369384765625, -0.01666259765625, -0.02215576171875, -0.006805419921875, -0.0212249755859375, 0.007152557373046875, -0.0220947265625, -0.0256805419921875, -0.04107666015625, -0.03204345703125, 0.0268096923828125, -0.025543212890625, -0.0221099853515625, 0.017425537109375, -0.0228424072265625, 0.00499725341796875, -0.011016845703125, 0.0036468505859375, -0.0013103485107421875, 0.020263671875, -0.028045654296875, 0.01103973388671875, 0.00664520263671875, 0.006591796875, -0.0153350830078125, 0.025665283203125, -0.0218658447265625, 0.0660400390625, 0.0283355712890625, 0.00016927719116210938, 0.00391387939453125, 0.010986328125, -0.00818634033203125, -0.01078033447265625, 0.0259857177734375, -0.0130767822265625, 0.04833984375, -0.049560546875, -0.0298309326171875, -0.028350830078125, 0.07647705078125, -0.056915283203125, -0.00484466552734375, -0.0136566162109375, 0.01348114013671875, 0.00254058837890625, -0.04888916015625, -0.0278167724609375, -0.0189208984375, -0.02313232421875, 0.0026874542236328125, -0.016632080078125, -0.017791748046875, -0.00972747802734375, -0.00725555419921875, 0.0029277801513671875, -0.0369873046875, 0.006656646728515625, -0.0487060546875, -0.0109405517578125, -0.0283966064453125, -0.03125, -0.035369873046875, 0.01568603515625, -0.06109619140625, -0.0164794921875, -0.01202392578125, -0.020751953125, 0.0304107666015625, 0.0128936767578125, -0.0139617919921875, -0.005443572998046875, 0.020538330078125, 0.0008950233459472656, 0.0662841796875, -0.0276947021484375, -0.0160675048828125, 0.017120361328125, 0.00920867919921875, 0.00585174560546875, 0.0045166015625, -0.021026611328125, -0.033111572265625, -0.01554107666015625, -0.01360321044921875, -0.010284423828125, -0.001903533935546875, 0.00772857666015625, -0.0049591064453125, 0.00771331787109375, -0.035736083984375, -0.048919677734375, -0.003963470458984375, -0.035980224609375, 0.0045318603515625, -0.028564453125, -0.02581787109375, 0.060455322265625, -0.01242828369140625, 0.01474761962890625, -0.007686614990234375, 0.0958251953125, 0.01296234130859375, -0.0202484130859375, -0.007289886474609375, 0.0008392333984375, 0.03118896484375, 0.019989013671875, 0.016510009765625, -0.00487518310546875, -0.0240631103515625, 0.0430908203125, 0.00926971435546875, 0.012054443359375, 0.005306243896484375, 0.0034637451171875, 0.018585205078125, 0.01358795166015625, -0.0107574462890625, 0.02874755859375, 0.003887176513671875, 0.00965118408203125, -0.0252685546875, 0.0021686553955078125, -0.01082611083984375, 0.0369873046875, 0.004497528076171875, -0.001804351806640625, -0.0472412109375, -0.0239105224609375, 0.0103912353515625, -0.01287841796875, 0.032257080078125, 0.03857421875, -0.02099609375, 0.057464599609375, 0.050537109375, -0.01519775390625, 0.035430908203125, 0.023193359375, 0.00955963134765625, 0.020111083984375, 0.0203704833984375, -0.0182952880859375, 0.0037994384765625, -0.0115814208984375, 0.040557861328125, -0.005519866943359375, -0.063232421875, 0.008148193359375, 0.00646209716796875, 0.0241241455078125, 0.033660888671875, -0.0174407958984375, 0.0163116455078125, 0.02191162109375, 0.0013875961303710938, 0.01084136962890625, -0.01004791259765625, -0.003681182861328125, -0.0286712646484375, -0.054351806640625, -0.0262603759765625, -0.0290985107421875, 0.059906005859375, -0.035552978515625, -0.0469970703125, 0.00975799560546875, -0.004268646240234375, 0.060028076171875, 0.048980712890625, -0.0011844635009765625, 0.0147247314453125, 0.0206298828125, -0.01187896728515625, -0.0399169921875, -0.01094818115234375, -0.006404876708984375, -0.0027675628662109375, -0.01678466796875, 0.01435089111328125, -0.0205230712890625, -0.003566741943359375, 0.042388916015625, -0.00559234619140625, -0.0136871337890625, -0.01329803466796875, 0.0243377685546875, -0.0031299591064453125, 0.00200653076171875, 0.0151214599609375, 0.004184722900390625, 0.0205078125, -0.01024627685546875, 0.0245361328125, -0.01226043701171875, 0.048095703125, -0.01212310791015625, 0.01580810546875, 0.002269744873046875, -0.005001068115234375, 0.033050537109375, -0.044647216796875, -0.046142578125, 0.011383056640625, 0.0394287109375, -0.0249481201171875, 0.0012331008911132812, 0.03863525390625, -0.03643798828125, -0.0294647216796875, -0.0298004150390625, 0.048675537109375, -0.08038330078125, 0.0264129638671875, -0.0118408203125, -0.0095977783203125, 0.019317626953125, -0.05511474609375, -0.05682373046875, -0.06640625, -0.057769775390625, 0.0169677734375, -0.03741455078125, 0.049591064453125, -0.05352783203125, -0.0125274658203125, -0.0311279296875, 0.00811004638671875, 0.0034694671630859375, 0.0267333984375, -0.00006526708602905273, -0.05328369140625, 0.0030651092529296875, -0.0068817138671875, -0.003292083740234375, 0.01093292236328125, 0.00644683837890625, -0.0110931396484375, -0.004299163818359375, -0.0306854248046875, 0.042724609375, 0.039947509765625, -0.0565185546875, -0.056671142578125, -0.03570556640625, -0.035186767578125, 0.07012939453125, -0.028564453125, -0.0210113525390625, -0.00742340087890625, 0.007625579833984375, -0.0067596435546875, 0.045257568359375, 0.017181396484375, 0.01032257080078125, 0.00409698486328125, 0.007289886474609375, -0.005397796630859375, -0.02996826171875, -0.0245819091796875, 0.007843017578125, 0.028717041015625, -0.006664276123046875, -0.0210418701171875, 0.02239990234375, -0.01071929931640625, -0.0148773193359375, 0.01009368896484375, 0.034423828125, 0.0235595703125, 0.0482177734375, 0.01473236083984375, -0.0009684562683105469, -0.01513671875, -0.00251007080078125, 0.03948974609375, 0.006832122802734375, -0.00461578369140625, 0.02276611328125, -0.01324462890625, -0.0024204254150390625, 0.030731201171875, 0.0254669189453125, -0.050933837890625, 0.0149078369140625, -0.02227783203125, -0.01983642578125, 0.019287109375, -0.06317138671875, 0.00667572021484375, -0.0418701171875, 0.102294921875, 0.0211944580078125, -0.017791748046875, 0.046783447265625, -0.0254669189453125, 0.0163421630859375, -0.01153564453125, 0.05670166015625, -0.0009703636169433594, -0.10882568359375, 0.0259857177734375, 0.058746337890625, -0.00742340087890625, -0.054962158203125, -0.003734588623046875, 0.01027679443359375, -0.0150604248046875, -0.0469970703125, 0.044769287109375, -0.0194244384765625, 0.04022216796875, 0.0220184326171875, -0.02435302734375, 0.014617919921875, 0.049835205078125, -0.028839111328125, 0.02392578125, -0.0009870529174804688, 0.0010204315185546875, 0.01424407958984375, -0.0002968311309814453, 0.028533935546875, -0.01445770263671875, -0.038726806640625, -0.0019521713256835938, -0.0277862548828125, -0.00827789306640625, -0.01435089111328125, -0.01364898681640625, 0.08587646484375, -0.032379150390625, -0.0009002685546875, 0.03753662109375, 0.02886962890625, -0.0252685546875, -0.035308837890625, -0.01043701171875, 0.01800537109375, 0.07794189453125, -0.04132080078125, 0.04498291015625, 0.01617431640625, -0.03662109375, -0.032196044921875, 0.029876708984375, -0.0261077880859375, -0.0117950439453125, -0.001773834228515625, 0.0212249755859375, -0.00811767578125, 0.0030307769775390625, -0.0202178955078125, 0.07037353515625, -0.035125732421875, 0.0157318115234375, -0.044952392578125, 0.01036834716796875, 0.0051422119140625, -0.0019273757934570312, -0.00150299072265625, -0.006175994873046875, -0.0216522216796875, 0.006450653076171875, 0.06549072265625, 0.03961181640625, 0.032257080078125, 0.0282745361328125, -0.0253448486328125, 0.0246124267578125, 0.0050048828125, -0.0277862548828125, 0.01274871826171875, 0.0291595458984375, -0.05413818359375, 0.0306243896484375, 0.0251312255859375, 0.0145721435546875, 0.0020694732666015625, -0.00821685791015625, -0.0273895263671875, 0.0073394775390625, 0.016845703125, 0.038848876953125, 0.0224151611328125, 0.060699462890625, 0.0709228515625, -0.00745391845703125, 0.01328277587890625, -0.026885986328125, 0.07135009765625, -0.00484466552734375, 0.020904541015625, 0.001865386962890625, 0.0205230712890625, -0.01241302490234375, -0.0011415481567382812, 0.00772857666015625, 0.047637939453125, -0.0582275390625, 0.01555633544921875, 0.006763458251953125, 0.02728271484375, -0.038177490234375, -0.07928466796875, 0.01512908935546875, 0.05511474609375, 0.00992584228515625, -0.071044921875, -0.0032482147216796875, -0.0160064697265625, 0.016448974609375, 0.019622802734375, 0.0255126953125, -0.02508544921875, 0.0175628662109375, 0.012939453125, -0.0031948089599609375, -0.01885986328125, -0.0025482177734375, 0.0108184814453125, 0.04638671875, -0.0031185150146484375, 0.0200347900390625, 0.0074920654296875, -0.0020751953125, -0.0012407302856445312, -0.0161895751953125, -0.016693115234375, 0.037628173828125, 0.0345458984375, 0.0307464599609375, -0.01528167724609375, 0.0445556640625, -0.0185699462890625, 0.01441192626953125, -0.025909423828125, -0.042755126953125, -0.000102996826171875, 0.0413818359375, -0.00839996337890625, 0.01215362548828125, 0.0535888671875, 0.07421875, -0.01059722900390625, -0.0212860107421875, 0.059112548828125, -0.0013132095336914062, -0.049224853515625, -0.035736083984375, -0.0220794677734375, 0.052032470703125, 0.01343536376953125, 0.04315185546875, 0.0008068084716796875, 0.046875, -0.022003173828125, 0.01641845703125, 0.0025177001953125, -0.0242919921875, 0.00870513916015625, -0.005706787109375, -0.002529144287109375, -0.006755828857421875, -0.0709228515625, -0.0001341104507446289, -0.0013475418090820312, 0.0028018951416015625, -0.01690673828125, 0.0016841888427734375, -0.025482177734375, 0.05975341796875, 0.01123809814453125, -0.0224456787109375, 0.00368499755859375, -0.005718231201171875, 0.017669677734375, 0.0249176025390625, 0.0036144256591796875, 0.0018796920776367188, -0.0267486572265625, -0.009002685546875, -0.0294036865234375, 0.04296875, 0.03704833984375, 0.0997314453125, -0.041412353515625, 0.0310821533203125, 0.0272979736328125, -0.0421142578125, 0.064697265625, 0.0224609375, -0.00928497314453125, 0.0238800048828125, 0.0003173351287841797, -0.028106689453125, -0.0638427734375, 0.030181884765625, 0.0245208740234375, 0.0028209686279296875, 0.0307769775390625, -0.0042572021484375, 0.01407623291015625, -0.01129913330078125, 0.0111236572265625, -0.0290985107421875, -0.041748046875, 0.00888824462890625, 0.0168609619140625, -0.0017910003662109375, -0.0165252685546875, -0.00875091552734375, 0.0194091796875, 0.007625579833984375, -0.018463134765625, 0.01462554931640625, -0.0110626220703125, 0.013336181640625, 0.031982421875, -0.00003725290298461914, -0.052154541015625, -0.00466156005859375, -0.0207977294921875, -0.01557159423828125, 0.01029205322265625, 0.032806396484375, 0.0096588134765625, -0.007537841796875, 0.015228271484375, 0.01715087890625, 0.01343536376953125, -0.045318603515625, -0.0036945343017578125, 0.0330810546875, 0.00792694091796875, 0.003269195556640625, 0.03173828125, -0.0210723876953125, 0.007472991943359375, -0.0281524658203125, -0.00847625732421875, 0.0006771087646484375, -0.04522705078125, -0.037841796875, -0.02191162109375, 0.002857208251953125, -0.0220184326171875, 0.006961822509765625, -0.003986358642578125, -0.033416748046875, -0.0102996826171875, -0.0276336669921875, 0.0367431640625, -0.0119781494140625, 0.0184326171875, -0.006168365478515625, -0.060333251953125, -0.01186370849609375, 0.09136962890625, -0.00783538818359375, 0.0293426513671875, 0.063720703125, -0.030914306640625, -0.04510498046875, -0.0023746490478515625, 0.01300811767578125, 0.050537109375, -0.032684326171875, -0.0052032470703125, 0.06805419921875, -0.031768798828125, -0.03424072265625, -0.048065185546875, -0.01094818115234375, -0.00576019287109375, 0.001590728759765625, -0.07904052734375, 0.04296875, 0.0288848876953125, -0.0180206298828125, -0.0283050537109375, -0.00502777099609375, -0.01140594482421875, -0.0118408203125, -0.080810546875, 0.0149688720703125, -0.01264190673828125, -0.0192413330078125, -0.04449462890625, 0.0019369125366210938, -0.002094268798828125, 0.07135009765625, 0.030975341796875, 0.04473876953125, -0.01166534423828125, 0.061248779296875, 0.0004010200500488281, 0.0655517578125, 0.0277862548828125, 0.0020599365234375, -0.0155487060546875, 0.016632080078125, 0.0033855438232421875, 0.03662109375, -0.0008802413940429688, 0.007587432861328125, 0.01413726806640625, -0.0179443359375, -0.00910186767578125, -0.0251617431640625, -0.054443359375, -0.00768280029296875, 0.0736083984375, 0.08990478515625, 0.028076171875, -0.048675537109375, 0.011932373046875, 0.0091552734375, -0.022613525390625, -0.02716064453125, 0.01195526123046875, -0.05718994140625, -0.0163726806640625, -0.007366180419921875, -0.0102081298828125, 0.040863037109375, -0.01094818115234375, -0.0033397674560546875, 0.01561737060546875, 0.06341552734375, -0.0006303787231445312, -0.03680419921875, 0.0290679931640625, 0.0400390625, -0.0421142578125, -0.004932403564453125, -0.002105712890625, -0.005779266357421875, 0.01470184326171875, -0.0161590576171875, 0.049530029296875, 0.020477294921875, -0.0272216796875, -0.002185821533203125, 0.0235137939453125, 0.01910400390625, -0.0113067626953125, -0.0406494140625, -0.01126861572265625, -0.00508880615234375, -0.0033626556396484375, -0.010101318359375, 0.002582550048828125, -0.037689208984375, -0.0175018310546875, 0.036590576171875, -0.0032558441162109375, 0.07635498046875, -0.00554656982421875, 0.036529541015625, -0.005016326904296875, -0.006458282470703125, 0.036224365234375, -0.034088134765625, 0.017547607421875, 0.0167999267578125, -0.004497528076171875, -0.00995635986328125, -0.0218048095703125, -0.06622314453125, -0.010589599609375, -0.00804901123046875 ]
44dc37d87039be395bf5cd873b58666f210b10fe
Wordpress Stackexchange Q: Why is a 500 error generated by admin-ajax.php not going into the Apache error log? I'm getting 500 errors with AJAX on the admin side. However, these errors aren't being logged in the Apache logs so they're rather hard to debug. Is there some way I can find out what they are? Thanks A: Sometimes I have a 500 error ( from NGinx ) just because I have a "character" getting outputted before the first header gets written ( or in-between ). Activate WP_DEBUG = true and see what happens. 99% of the case I could spot the error from there. ( and it was nearly all the time the above error ). Post back if that doesn't solve your debug difficulty problem. We'll have a look at your apache config by then.
Q: Why is a 500 error generated by admin-ajax.php not going into the Apache error log? I'm getting 500 errors with AJAX on the admin side. However, these errors aren't being logged in the Apache logs so they're rather hard to debug. Is there some way I can find out what they are? Thanks A: Sometimes I have a 500 error ( from NGinx ) just because I have a "character" getting outputted before the first header gets written ( or in-between ). Activate WP_DEBUG = true and see what happens. 99% of the case I could spot the error from there. ( and it was nearly all the time the above error ). Post back if that doesn't solve your debug difficulty problem. We'll have a look at your apache config by then.
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:417657", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44219" }
[ 0.09075927734375, -0.0018033981323242188, -0.020660400390625, -0.11065673828125, 0.03240966796875, -0.0230255126953125, -0.0156402587890625, 0.0157318115234375, 0.0221405029296875, 0.0193328857421875, -0.032196044921875, 0.0236663818359375, -0.004535675048828125, 0.00295257568359375, -0.01154327392578125, -0.0052032470703125, 0.0184173583984375, 0.022918701171875, 0.0255889892578125, -0.0016717910766601562, -0.0008168220520019531, 0.01107025146484375, -0.025146484375, 0.035552978515625, -0.00414276123046875, 0.035247802734375, 0.01319122314453125, -0.01447296142578125, -0.0167999267578125, -0.0118255615234375, 0.005619049072265625, 0.0163116455078125, 0.01690673828125, 0.052154541015625, -0.0518798828125, -0.0180816650390625, 0.0307159423828125, 0.007633209228515625, -0.00717926025390625, 0.035675048828125, -0.007190704345703125, 0.00434112548828125, 0.1314697265625, 0.002887725830078125, 0.04901123046875, 0.00785064697265625, 0.016143798828125, -0.07110595703125, -0.0169219970703125, -0.029632568359375, 0.0289764404296875, -0.038421630859375, 0.046722412109375, -0.0380859375, -0.034332275390625, -0.0302581787109375, -0.026336669921875, 0.0386962890625, 0.028564453125, 0.0032825469970703125, -0.029083251953125, -0.00926971435546875, -0.004489898681640625, -0.03533935546875, -0.0196990966796875, 0.01136016845703125, 0.03631591796875, -0.002899169921875, 0.01367950439453125, -0.0247039794921875, 0.0014848709106445312, 0.0204620361328125, -0.0118408203125, 0.023345947265625, -0.006778717041015625, -0.039031982421875, 0.053436279296875, 0.0135040283203125, -0.0218353271484375, 0.04913330078125, 0.038909912109375, 0.0215606689453125, 0.001506805419921875, 0.072998046875, -0.06781005859375, 0.049835205078125, -0.019683837890625, -0.0428466796875, -0.017913818359375, -0.043548583984375, -0.0228118896484375, -0.072509765625, -0.064697265625, 0.03082275390625, 0.0120849609375, -0.0146331787109375, 0.01629638671875, 0.00901031494140625, -0.0302734375, -0.02557373046875, -0.01776123046875, -0.0092315673828125, 0.004848480224609375, 0.007724761962890625, 0.0123748779296875, -0.009307861328125, -0.0154571533203125, -0.0031833648681640625, 0.0545654296875, 0.0333251953125, -0.00649261474609375, 0.045196533203125, 0.0008411407470703125, -0.0038661956787109375, 0.002132415771484375, 0.005092620849609375, -0.0141143798828125, 0.0121612548828125, -0.023834228515625, 0.0160980224609375, -0.0203094482421875, 0.01358795166015625, -0.049346923828125, 0.035430908203125, -0.01174163818359375, -0.0194244384765625, 0.0135040283203125, 0.01934814453125, 0.038482666015625, 0.0033512115478515625, -0.032958984375, 0.0396728515625, 0.0206146240234375, -0.0202789306640625, -0.0211639404296875, -0.007289886474609375, 0.04901123046875, -0.01300048828125, -0.0050506591796875, 0.0154266357421875, 0.0016508102416992188, -0.0221405029296875, -0.0013179779052734375, -0.0038433074951171875, -0.0302886962890625, 0.0008382797241210938, 0.01247406005859375, 0.0211944580078125, -0.004177093505859375, -0.0577392578125, 0.0032291412353515625, -0.008453369140625, 0.0095672607421875, 0.03643798828125, 0.0261688232421875, -0.006267547607421875, 0.059539794921875, -0.024993896484375, 0.01263427734375, -0.0284881591796875, 0.0283355712890625, -0.0047454833984375, 0.0264434814453125, -0.01059722900390625, -0.0218963623046875, 0.0141754150390625, -0.08099365234375, -0.004566192626953125, 0.0230712890625, 0.02423095703125, -0.0035552978515625, 0.00848388671875, 0.0090789794921875, -0.01007080078125, -0.0130462646484375, -0.0030994415283203125, 0.0008859634399414062, -0.0126953125, 0.0007028579711914062, 0.005649566650390625, -0.0184478759765625, -0.035125732421875, -0.00383758544921875, 0.007091522216796875, -0.0245819091796875, 0.042327880859375, 0.0230560302734375, 0.0347900390625, -0.02166748046875, 0.004917144775390625, 0.01500701904296875, 0.04473876953125, 0.0311279296875, -0.0135498046875, 0.0003368854522705078, -0.055023193359375, -0.043243408203125, -0.032989501953125, -0.0187225341796875, 0.01739501953125, -0.01062774658203125, 0.0596923828125, -0.01971435546875, -0.0080413818359375, -0.04498291015625, 0.01010894775390625, -0.0160675048828125, 0.0648193359375, 0.019927978515625, 0.0173492431640625, 0.00027441978454589844, 0.0191192626953125, -0.02447509765625, -0.00409698486328125, -0.0301513671875, -0.00469207763671875, -0.04364013671875, 0.052581787109375, 0.01041412353515625, 0.041839599609375, -0.021759033203125, -0.0274658203125, -0.0200653076171875, -0.045623779296875, 0.00402069091796875, 0.0209808349609375, -0.02215576171875, 0.01496124267578125, 0.042510986328125, -0.0028133392333984375, 0.062164306640625, 0.01340484619140625, 0.05206298828125, 0.053680419921875, -0.01560211181640625, -0.0345458984375, -0.0299224853515625, -0.0921630859375, 0.006439208984375, 0.060211181640625, 0.0311431884765625, 0.01971435546875, 0.00460052490234375, 0.04937744140625, -0.06146240234375, -0.08624267578125, 0.032989501953125, -0.003345489501953125, -0.0017948150634765625, -0.041168212890625, 0.0041351318359375, -0.06414794921875, 0.05157470703125, -0.03338623046875, 0.006061553955078125, 0.0224456787109375, 0.00164794921875, -0.01641845703125, -0.035797119140625, 0.02154541015625, 0.0188751220703125, -0.016082763671875, -0.052032470703125, 0.01348114013671875, 0.0174407958984375, -0.0153045654296875, 0.0038013458251953125, 0.0008840560913085938, -0.01442718505859375, -0.0108489990234375, 0.0258941650390625, -0.027252197265625, 0.0110321044921875, 0.05645751953125, 0.02093505859375, 0.017242431640625, -0.030120849609375, -0.0194244384765625, 0.022125244140625, 0.03973388671875, -0.035430908203125, 0.0280609130859375, 0.00983428955078125, -0.015777587890625, -0.0069580078125, -0.028533935546875, 0.0036640167236328125, -0.0537109375, 0.02337646484375, -0.02264404296875, 0.0016222000122070312, 0.034576416015625, -0.004062652587890625, 0.04278564453125, 0.01308441162109375, -0.018890380859375, 0.0458984375, -0.060638427734375, 0.046875, -0.018829345703125, 0.05517578125, 0.0667724609375, 0.01129913330078125, -0.005352020263671875, -0.00677490234375, -0.0289154052734375, 0.004299163818359375, -0.0318603515625, -0.046142578125, -0.0167083740234375, -0.051025390625, 0.021759033203125, 0.04754638671875, 0.06610107421875, 0.0206146240234375, -0.039825439453125, -0.004596710205078125, 0.065673828125, -0.05987548828125, -0.1121826171875, -0.061981201171875, -0.004932403564453125, 0.038299560546875, 0.01959228515625, 0.021148681640625, -0.0109100341796875, 0.0248870849609375, 0.0183563232421875, 0.01421356201171875, -0.04345703125, -0.046234130859375, -0.06231689453125, -0.06024169921875, -0.0275115966796875, 0.0025806427001953125, -0.002056121826171875, -0.003391265869140625, 0.051727294921875, -0.013885498046875, -0.06365966796875, -0.045196533203125, 0.049835205078125, -0.01947021484375, -0.0279388427734375, -0.0262298583984375, 0.0013217926025390625, -0.0169525146484375, 0.0112457275390625, 0.0025043487548828125, -0.020538330078125, 0.017608642578125, -0.02777099609375, -0.022369384765625, 0.0005922317504882812, 0.0219879150390625, -0.00844573974609375, 0.0157623291015625, -0.020172119140625, 0.0167694091796875, -0.049896240234375, -0.02362060546875, 0.033660888671875, -0.0343017578125, 0.01032257080078125, 0.01242828369140625, -0.0411376953125, 0.055206298828125, -0.044219970703125, 0.0012369155883789062, 0.002483367919921875, -0.0247802734375, -0.0154571533203125, 0.06317138671875, -0.0193023681640625, -0.006046295166015625, -0.0061492919921875, 0.052093505859375, -0.00032639503479003906, -0.045440673828125, 0.009368896484375, 0.00597381591796875, -0.00616455078125, 0.002025604248046875, -0.02783203125, -0.043548583984375, 0.026397705078125, -0.055816650390625, -0.0258026123046875, -0.01369476318359375, 0.00485992431640625, 0.01055145263671875, 0.0489501953125, 0.010772705078125, -0.00894927978515625, -0.033843994140625, 0.009857177734375, -0.0235443115234375, -0.07415771484375, 0.010589599609375, 0.0091705322265625, -0.034149169921875, 0.0250396728515625, 0.002655029296875, -0.01335906982421875, -0.018280029296875, 0.01204681396484375, -0.01280975341796875, -0.0276336669921875, 0.02679443359375, -0.04791259765625, 0.039215087890625, -0.0106048583984375, 0.033111572265625, -0.053436279296875, -0.01004791259765625, -0.037872314453125, -0.08935546875, -0.016693115234375, -0.048614501953125, 0.0860595703125, 0.03692626953125, -0.031646728515625, -0.0248260498046875, 0.032562255859375, -0.0279998779296875, -0.022705078125, 0.020233154296875, 0.015533447265625, 0.00612640380859375, 0.0164031982421875, -0.01331329345703125, -0.00637054443359375, 0.0249176025390625, -0.0013608932495117188, -0.038330078125, -0.01190185546875, -0.043548583984375, -0.0274658203125, 0.004848480224609375, -0.0357666015625, -0.05682373046875, -0.0180816650390625, -0.0341796875, 0.0029544830322265625, 0.0037670135498046875, -0.03204345703125, -0.00923919677734375, -0.0611572265625, 0.0110931396484375, -0.0103302001953125, 0.0033626556396484375, -0.0085601806640625, 0.058868408203125, 0.03839111328125, -0.00608062744140625, 0.05621337890625, -0.0066070556640625, 0.01105499267578125, -0.024810791015625, 0.05377197265625, 0.0205535888671875, -0.004863739013671875, 0.042327880859375, -0.035614013671875, 0.02484130859375, -0.01111602783203125, -0.00554656982421875, -0.0024814605712890625, -0.0224456787109375, 0.0279083251953125, 0.0165252685546875, -0.015228271484375, -0.02569580078125, -0.01568603515625, 0.0159149169921875, 0.00164794921875, 0.002002716064453125, -0.030120849609375, 0.049468994140625, 0.00775909423828125, -0.01092529296875, -0.001247406005859375, -0.047637939453125, 0.04541015625, 0.03424072265625, -0.002079010009765625, -0.0008478164672851562, 0.01080322265625, 0.017181396484375, -0.0109405517578125, 0.06610107421875, -0.0335693359375, 0.059722900390625, 0.00020635128021240234, -0.0008864402770996094, -0.045745849609375, -0.01229095458984375, 0.014129638671875, 0.0169677734375, -0.040191650390625, 0.01885986328125, 0.0240936279296875, -0.036376953125, -0.00958251953125, -0.0102386474609375, 0.0115966796875, -0.0220184326171875, -0.003269195556640625, 0.0027980804443359375, 0.002246856689453125, -0.04144287109375, -0.0260162353515625, 0.05023193359375, -0.0010232925415039062, -0.01059722900390625, -0.01390838623046875, 0.0253753662109375, 0.0209197998046875, -0.01535797119140625, 0.00016832351684570312, -0.01727294921875, -0.030731201171875, 0.0789794921875, 0.0296173095703125, -0.08001708984375, 0.033172607421875, 0.038909912109375, 0.0230560302734375, -0.054107666015625, -0.004734039306640625, -0.0030975341796875, 0.03338623046875, 0.0207366943359375, -0.0077972412109375, 0.013519287109375, -0.004886627197265625, -0.01861572265625, 0.034759521484375, -0.0019130706787109375, -0.0455322265625, -0.0141754150390625, -0.0187835693359375, 0.01142120361328125, -0.0240936279296875, 0.0166168212890625, 0.01593017578125, 0.03759765625, 0.040863037109375, -0.022918701171875, -0.00963592529296875, -0.00731658935546875, 0.00423431396484375, -0.034271240234375, -0.0200958251953125, -0.005222320556640625, -0.045318603515625, -0.00833892822265625, -0.0008435249328613281, -0.00556182861328125, 0.041961669921875, -0.0254058837890625, -0.003887176513671875, -0.00608062744140625, 0.0156707763671875, -0.0176239013671875, 0.0377197265625, -0.0184326171875, -0.0076141357421875, -0.0177001953125, 0.0221405029296875, -0.0589599609375, -0.033355712890625, 0.00408935546875, -0.004482269287109375, -0.0250701904296875, -0.0213165283203125, 0.0130157470703125, -0.0157623291015625, 0.00868988037109375, -0.00034356117248535156, -0.033172607421875, 0.032318115234375, 0.03387451171875, -0.02813720703125, -0.040557861328125, 0.0299072265625, 0.043365478515625, -0.03997802734375, -0.0213165283203125, 0.010009765625, 0.0305023193359375, 0.000133514404296875, 0.0003631114959716797, -0.03515625, 0.0129852294921875, -0.02117919921875, 0.05535888671875, -0.0009503364562988281, 0.016998291015625, -0.0012884140014648438, -0.01119232177734375, 0.01094818115234375, -0.004245758056640625, -0.005832672119140625, 0.030181884765625, 0.05322265625, 0.003131866455078125, 0.055877685546875, -0.00884246826171875, 0.049835205078125, 0.006443023681640625, -0.005123138427734375, 0.01171875, -0.01480865478515625, 0.0308990478515625, 0.0047454833984375, 0.0259246826171875, 0.0037212371826171875, 0.07598876953125, 0.01338958740234375, 0.0308074951171875, 0.056610107421875, 0.00965118408203125, -0.004180908203125, 0.050201416015625, -0.0005788803100585938, -0.059173583984375, 0.0155029296875, 0.00653839111328125, -0.010467529296875, -0.002105712890625, -0.017486572265625, 0.01189422607421875, 0.05560302734375, 0.072998046875, -0.09722900390625, 0.01065826416015625, 0.012664794921875, -0.0205535888671875, -0.00926971435546875, -0.01275634765625, 0.004253387451171875, -0.00859832763671875, 0.038665771484375, -0.00791168212890625, -0.00399017333984375, 0.0254974365234375, -0.0167694091796875, 0.01282501220703125, -0.0205535888671875, 0.07916259765625, -0.00455474853515625, -0.01068878173828125, -0.0053558349609375, -0.0114593505859375, 0.0306549072265625, -0.0034084320068359375, 0.01050567626953125, -0.01116180419921875, -0.026275634765625, -0.039581298828125, -0.001953125, -0.0021877288818359375, -0.0310516357421875, 0.0238494873046875, 0.045654296875, 0.0255584716796875, 0.06854248046875, 0.0019931793212890625, 0.0023860931396484375, 0.0277862548828125, 0.01715087890625, 0.06280517578125, -0.01678466796875, 0.0014009475708007812, 0.01337432861328125, -0.08148193359375, -0.007282257080078125, -0.0232086181640625, 0.0227508544921875, 0.013946533203125, 0.056671142578125, 0.045623779296875, 0.01125335693359375, -0.042144775390625, 0.038604736328125, -0.020416259765625, -0.0220794677734375, -0.0174713134765625, 0.016082763671875, -0.00534820556640625, 0.0193023681640625, -0.0018281936645507812, -0.01561737060546875, -0.0166473388671875, -0.032806396484375, -0.02154541015625, 0.0304107666015625, -0.01189422607421875, -0.005596160888671875, 0.0211944580078125, 0.012237548828125, -0.022125244140625, -0.01287078857421875, -0.016754150390625, 0.0374755859375, -0.0177764892578125, 0.045013427734375, -0.0791015625, -0.022491455078125, 0.01331329345703125, 0.054962158203125, 0.0290679931640625, 0.01221466064453125, -0.0450439453125, -0.0164794921875, 0.01026153564453125, 0.0408935546875, 0.00632476806640625, 0.030487060546875, 0.0231170654296875, -0.01006317138671875, 0.005481719970703125, -0.0128936767578125, 0.02288818359375, -0.0364990234375, 0.01532745361328125, 0.0517578125, 0.007091522216796875, -0.00672149658203125, 0.049530029296875, -0.05364990234375, -0.0086212158203125, 0.026397705078125, -0.0009403228759765625, -0.0237274169921875, 0.0211334228515625, 0.05853271484375, 0.056304931640625, -0.035186767578125, -0.0158233642578125, -0.03387451171875, 0.057373046875, 0.00020313262939453125, 0.0036163330078125, -0.002254486083984375, 0.0198516845703125, 0.0100555419921875, -0.036346435546875, -0.007228851318359375, 0.040191650390625, -0.061004638671875, 0.0270843505859375, 0.01318359375, 0.0311279296875, -0.038482666015625, -0.056884765625, -0.01143646240234375, 0.045745849609375, -0.00739288330078125, -0.062255859375, -0.0104522705078125, 0.0164642333984375, 0.0455322265625, 0.026031494140625, 0.046875, 0.0160980224609375, 0.0399169921875, 0.0274505615234375, -0.0330810546875, -0.041412353515625, 0.0196533203125, 0.0009164810180664062, 0.0098114013671875, 0.048828125, -0.038818359375, -0.01389312744140625, -0.03399658203125, 0.0169830322265625, 0.062255859375, 0.05059814453125, -0.0030651092529296875, -0.054718017578125, -0.038055419921875, 0.0188140869140625, -0.03668212890625, -0.0302734375, -0.0125885009765625, -0.0268096923828125, -0.026214599609375, 0.0104827880859375, 0.037353515625, -0.0364990234375, 0.0224761962890625, 0.01739501953125, 0.03436279296875, -0.01306915283203125, -0.03302001953125, -0.0146942138671875, -0.02685546875, -0.03125, -0.0268096923828125, 0.0093994140625, 0.0271759033203125, 0.01404571533203125, -0.00006777048110961914, 0.0193023681640625, 0.0178070068359375, -0.0050506591796875, 0.049835205078125, 0.0114288330078125, -0.0430908203125, 0.010345458984375, -0.024627685546875, 0.0667724609375, 0.013641357421875, -0.0606689453125, -0.013763427734375, 0.04541015625, -0.003376007080078125, -0.0307464599609375, 0.01192474365234375, -0.015472412109375, 0.036224365234375, -0.0112457275390625, 0.0241241455078125, -0.017425537109375, -0.01068115234375, -0.0031528472900390625, -0.022430419921875, 0.0300140380859375, -0.004154205322265625, -0.017730712890625, -0.0122222900390625, -0.014251708984375, 0.036865234375, 0.04241943359375, 0.042816162109375, -0.012451171875, 0.0307769775390625, 0.0010900497436523438, -0.0267791748046875, 0.0236968994140625, 0.000946044921875, 0.0032024383544921875, 0.0037174224853515625, -0.0226898193359375, -0.02105712890625, -0.061492919921875, 0.038787841796875, 0.01247406005859375, -0.00366973876953125, 0.05792236328125, -0.0411376953125, 0.00534820556640625, -0.0318603515625, 0.024627685546875, -0.01061248779296875, -0.08013916015625, -0.01910400390625, 0.0655517578125, -0.0149078369140625, 0.06512451171875, -0.00150299072265625, 0.006954193115234375, -0.0017633438110351562, -0.060791015625, 0.017822265625, -0.057037353515625, 0.020111083984375, 0.042266845703125, 0.0201873779296875, 0.00606536865234375, -0.0001392364501953125, -0.0162353515625, 0.037261962890625, -0.0007658004760742188, 0.054290771484375, -0.0139617919921875, 0.06805419921875, -0.0413818359375, 0.0079345703125, -0.00004661083221435547, -0.01380157470703125, -0.0013456344604492188, -0.0166168212890625, -0.028289794921875, 0.01345062255859375, 0.01483154296875, 0.0071563720703125, 0.0181884765625, -0.031707763671875, 0.00634002685546875, 0.00821685791015625, -0.0096893310546875, -0.0014142990112304688, -0.00725555419921875, 0.01554107666015625, -0.01068115234375, -0.0192718505859375, -0.018585205078125, -0.0135345458984375, 0.033538818359375, -0.0007109642028808594, -0.03106689453125, 0.0031871795654296875, 0.0019311904907226562, -0.035552978515625, -0.0082244873046875, -0.041839599609375, 0.004238128662109375, -0.0230865478515625, -0.0022144317626953125, 0.0188751220703125, -0.0204620361328125, 0.0086517333984375, -0.026824951171875, 0.012786865234375, 0.01708984375, -0.004077911376953125, -0.0032367706298828125, -0.00991058349609375, 0.051513671875, -0.0175323486328125, -0.06744384765625, 0.0031890869140625, -0.0147705078125, -0.006061553955078125, -0.0048675537109375, 0.012237548828125, 0.0104827880859375, -0.041015625, -0.0877685546875, 0.0318603515625, 0.00878143310546875, -0.0340576171875, 0.0069427490234375, -0.036773681640625, 0.01059722900390625, -0.0185394287109375, -0.005191802978515625, -0.01139068603515625, -0.058502197265625, -0.0138397216796875, 0.027862548828125, -0.05828857421875, 0.041534423828125, -0.006275177001953125, -0.057861328125, 0.03125, 0.050628662109375, 0.01366424560546875, 0.0282745361328125, -0.01824951171875, 0.07861328125, 0.07318115234375, -0.0010051727294921875, 0.044158935546875, 0.0192108154296875, -0.08001708984375, 0.0173492431640625, 0.014251708984375, -0.03155517578125, -0.0030727386474609375, 0.03692626953125, 0.03521728515625, 0.006404876708984375, -0.020050048828125, -0.00634002685546875, -0.0159759521484375, -0.0024776458740234375, -0.0267333984375, 0.00853729248046875, -0.07745361328125, -0.037078857421875, 0.01171875, -0.01297760009765625, -0.01235198974609375, 0.042022705078125, -0.018280029296875, 0.00867462158203125, 0.0841064453125, -0.006198883056640625, -0.00775909423828125, -0.06207275390625, 0.02557373046875, -0.004150390625, -0.002170562744140625, 0.005756378173828125, 0.040008544921875, 0.00691986083984375, 0.040557861328125, 0.034210205078125, 0.0128936767578125, -0.05072021484375, 0.0291290283203125, 0.0035858154296875, 0.062408447265625, -0.05548095703125, -0.0450439453125, 0.0040130615234375, 0.007350921630859375, -0.0209197998046875, -0.01151275634765625, 0.035491943359375, 0.005222320556640625, -0.026580810546875, 0.042388916015625, -0.0279693603515625, 0.00360870361328125, -0.0266876220703125, 0.027435302734375, 0.004940032958984375, 0.0065155029296875, 0.033843994140625, -0.015625, 0.0196685791015625, 0.03363037109375, 0.024993896484375, -0.0015611648559570312, 0.006412506103515625, 0.0223846435546875, 0.0209808349609375, 0.0024204254150390625 ]
14de2a106e2498c6af8c878cbaaab9c3ef6e5267
Wordpress Stackexchange Q: Have save_post write to database image meta Programming rookie back again. I have been studying the add_action('save_post','') but I am having difficulty getting it to work for my needs. The concept is simple - update the database information for an attachment's meta info. Here's where I'm at. I have my add_meta_box working great with an input box that is pre-populated with the Camera information from image meta. If I make an edit in this Camera field and update the post, no matter what variation of update_post_meta I try, it's failing. For example: $camera = $imgmeta['image_meta']['camera']; $update = $_POST['exif_field_camera']; update_post_meta($post_id, $camera, $update); I am fearing a horrible rookie mistake here, since it's not working. The code I am using to retrieve the information and using it as part of my add_meta_box is: $args = get_posts( array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ) ); foreach ($args as $attachment) { $imgID = $attachment->ID; $imgmeta = wp_get_attachment_metadata($imgID); $camera = $imgmeta['image_meta']['camera']; } What would the code be to write the new Camera input box information?
Q: Have save_post write to database image meta Programming rookie back again. I have been studying the add_action('save_post','') but I am having difficulty getting it to work for my needs. The concept is simple - update the database information for an attachment's meta info. Here's where I'm at. I have my add_meta_box working great with an input box that is pre-populated with the Camera information from image meta. If I make an edit in this Camera field and update the post, no matter what variation of update_post_meta I try, it's failing. For example: $camera = $imgmeta['image_meta']['camera']; $update = $_POST['exif_field_camera']; update_post_meta($post_id, $camera, $update); I am fearing a horrible rookie mistake here, since it's not working. The code I am using to retrieve the information and using it as part of my add_meta_box is: $args = get_posts( array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ) ); foreach ($args as $attachment) { $imgID = $attachment->ID; $imgmeta = wp_get_attachment_metadata($imgID); $camera = $imgmeta['image_meta']['camera']; } What would the code be to write the new Camera input box information?
wordpress
{ "language": "en", "length": 178, "provenance": "stackexchange_00019.jsonl.gz:417681", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44291" }
[ 0.0278778076171875, -0.0307464599609375, 0.025604248046875, -0.006740570068359375, -0.0202484130859375, 0.003459930419921875, 0.031829833984375, -0.029541015625, 0.02252197265625, 0.0302734375, -0.0474853515625, -0.03302001953125, 0.00861358642578125, 0.006244659423828125, -0.059844970703125, -0.03839111328125, 0.038848876953125, -0.014068603515625, 0.0528564453125, 0.0284423828125, 0.004199981689453125, 0.058685302734375, 0.005462646484375, -0.032745361328125, 0.0178680419921875, 0.01473236083984375, -0.01221466064453125, -0.006679534912109375, -0.01422882080078125, -0.0075836181640625, 0.00922393798828125, 0.0240631103515625, 0.0235748291015625, 0.00730133056640625, -0.0083465576171875, 0.01070404052734375, 0.060516357421875, -0.017669677734375, -0.002658843994140625, 0.04498291015625, 0.006465911865234375, 0.0041351318359375, -0.009307861328125, -0.004192352294921875, -0.030242919921875, -0.0201873779296875, -0.0007662773132324219, -0.0201263427734375, 0.006801605224609375, 0.025787353515625, -0.007419586181640625, 0.0167083740234375, -0.01194000244140625, 0.00794219970703125, 0.006267547607421875, -0.00885772705078125, -0.03277587890625, -0.0064239501953125, 0.0335693359375, 0.059906005859375, -0.01061248779296875, -0.01308441162109375, -0.007720947265625, -0.06488037109375, 0.0209808349609375, -0.0178680419921875, 0.00811004638671875, 0.0167236328125, -0.06317138671875, 0.01141357421875, 0.06817626953125, -0.04290771484375, 0.0039520263671875, -0.034881591796875, 0.034698486328125, 0.0099945068359375, -0.00948333740234375, 0.0026073455810546875, -0.00809478759765625, 0.0224456787109375, 0.0350341796875, 0.029449462890625, 0.0131683349609375, 0.013916015625, -0.0196075439453125, 0.021148681640625, -0.01232147216796875, -0.0280609130859375, -0.01148223876953125, -0.041717529296875, -0.0014858245849609375, -0.06256103515625, -0.0202178955078125, 0.008514404296875, -0.0099334716796875, -0.04241943359375, 0.01302337646484375, 0.03643798828125, -0.00960540771484375, -0.00923919677734375, 0.024322509765625, -0.0635986328125, 0.03076171875, -0.036773681640625, 0.015716552734375, 0.034271240234375, -0.002460479736328125, -0.073974609375, -0.0016279220581054688, -0.00034236907958984375, -0.01079559326171875, 0.0259552001953125, -0.013580322265625, -0.003887176513671875, -0.025238037109375, 0.0157623291015625, -0.036590576171875, 0.01947021484375, -0.00543212890625, 0.0011806488037109375, -0.01806640625, 0.0031642913818359375, -0.026519775390625, -0.031341552734375, 0.016815185546875, -0.02044677734375, -0.01299285888671875, 0.016204833984375, 0.04473876953125, -0.00521087646484375, -0.0545654296875, 0.018035888671875, 0.07379150390625, 0.0180511474609375, 0.0360107421875, -0.00780487060546875, -0.01313018798828125, -0.04510498046875, -0.007671356201171875, 0.038543701171875, -0.01134490966796875, -0.0765380859375, -0.0003979206085205078, 0.0179595947265625, -0.032867431640625, 0.0380859375, 0.007808685302734375, -0.0038814544677734375, -0.0032787322998046875, -0.08331298828125, 0.0161285400390625, -0.0595703125, 0.0186614990234375, 0.007320404052734375, 0.0030364990234375, 0.01403045654296875, 0.047332763671875, -0.0207366943359375, -0.0298614501953125, -0.039459228515625, 0.00609588623046875, 0.006008148193359375, 0.035888671875, -0.02001953125, -0.005947113037109375, -0.0239410400390625, -0.045501708984375, -0.005706787109375, 0.0258636474609375, 0.0118560791015625, 0.023681640625, 0.0076446533203125, 0.0372314453125, 0.01000213623046875, 0.0019893646240234375, -0.003997802734375, -0.031097412109375, 0.00568389892578125, 0.028717041015625, -0.00775909423828125, -0.023651123046875, -0.034149169921875, 0.051483154296875, -0.0089111328125, -0.046539306640625, 0.018585205078125, -0.0148773193359375, 0.0241851806640625, 0.033203125, -0.001392364501953125, 0.0304107666015625, 0.0013895034790039062, -0.045318603515625, 0.037567138671875, -0.0149993896484375, -0.00476837158203125, -0.0280609130859375, 0.014801025390625, -0.0217742919921875, -0.01922607421875, -0.01190948486328125, 0.0247344970703125, -0.0031223297119140625, 0.022979736328125, -0.0271148681640625, 0.02276611328125, -0.0182952880859375, 0.043426513671875, -0.046356201171875, 0.01593017578125, 0.033721923828125, -0.018951416015625, -0.0261993408203125, 0.0114593505859375, 0.01520538330078125, -0.00998687744140625, -0.0283050537109375, 0.025299072265625, -0.0189361572265625, 0.053253173828125, -0.059814453125, -0.048553466796875, -0.050323486328125, -0.01390838623046875, 0.07623291015625, 0.01812744140625, -0.03466796875, -0.01910400390625, 0.0360107421875, 0.004306793212890625, -0.056976318359375, 0.0557861328125, -0.0038280487060546875, -0.03399658203125, -0.056182861328125, -0.0116424560546875, -0.0270538330078125, -0.061126708984375, -0.0002951622009277344, 0.07061767578125, 0.040802001953125, -0.00836181640625, 0.0201568603515625, 0.034393310546875, 0.0523681640625, -0.006195068359375, 0.01251983642578125, 0.0013151168823242188, 0.007598876953125, 0.01430511474609375, -0.0301055908203125, 0.0046234130859375, 0.0225067138671875, -0.08050537109375, 0.00957489013671875, 0.05023193359375, -0.0230560302734375, 0.0005183219909667969, 0.0186004638671875, -0.01081085205078125, -0.0096893310546875, -0.0310516357421875, 0.005458831787109375, -0.00957489013671875, 0.054046630859375, 0.0260772705078125, 0.056793212890625, 0.0242919921875, -0.053680419921875, 0.037017822265625, 0.0198211669921875, -0.0031185150146484375, -0.0012264251708984375, 0.024017333984375, -0.01861572265625, 0.000354766845703125, -0.0340576171875, 0.00936126708984375, 0.001117706298828125, 0.003978729248046875, -0.006717681884765625, 0.044158935546875, 0.0087890625, -0.0217132568359375, -0.02105712890625, -0.0439453125, 0.0072021484375, -0.01552581787109375, -0.04205322265625, -0.019378662109375, 0.0175018310546875, 0.004566192626953125, -0.0039215087890625, -0.01161956787109375, 0.0075836181640625, -0.0271453857421875, 0.034393310546875, -0.0154571533203125, 0.0323486328125, -0.0245513916015625, 0.03936767578125, 0.0533447265625, -0.031585693359375, 0.01255035400390625, -0.03497314453125, -0.0199127197265625, -0.07763671875, 0.03704833984375, 0.0016145706176757812, -0.07958984375, 0.0122528076171875, 0.035858154296875, 0.0088958740234375, 0.036651611328125, -0.0134124755859375, -0.050750732421875, -0.00885772705078125, 0.00856781005859375, -0.07470703125, -0.0667724609375, 0.00493621826171875, -0.10125732421875, -0.0285186767578125, -0.01324462890625, -0.070556640625, 0.0150909423828125, 0.0256195068359375, 0.003612518310546875, -0.0302734375, 0.0197601318359375, -0.0264892578125, -0.01495361328125, -0.049468994140625, -0.010284423828125, 0.0006403923034667969, 0.040802001953125, 0.002956390380859375, 0.007411956787109375, -0.0060272216796875, -0.0259246826171875, 0.002910614013671875, -0.040618896484375, 0.019256591796875, 0.0128936767578125, -0.013092041015625, -0.042449951171875, -0.025177001953125, -0.02545166015625, 0.047637939453125, 0.004154205322265625, -0.0002288818359375, 0.031524658203125, -0.038421630859375, -0.01551055908203125, 0.00878143310546875, -0.0052947998046875, 0.0171661376953125, 0.02801513671875, 0.028228759765625, -0.0313720703125, -0.0047454833984375, -0.0011739730834960938, -0.00560760498046875, -0.0272369384765625, -0.01387786865234375, 0.005340576171875, -0.0008177757263183594, 0.0208740234375, 0.01351165771484375, 0.0183563232421875, 0.01464080810546875, -0.003681182861328125, 0.006801605224609375, -0.021484375, -0.0100860595703125, -0.03131103515625, -0.0087432861328125, -0.028411865234375, 0.0198822021484375, -0.013763427734375, 0.006343841552734375, -0.01519012451171875, 0.00716400146484375, -0.038543701171875, -0.0288848876953125, 0.032806396484375, -0.033203125, 0.045654296875, -0.04290771484375, -0.00922393798828125, -0.0195770263671875, 0.0792236328125, -0.030426025390625, -0.035308837890625, 0.00621795654296875, 0.01367950439453125, -0.0098419189453125, 0.0028839111328125, 0.00832366943359375, -0.0111541748046875, -0.023468017578125, -0.0217437744140625, 0.01331329345703125, -0.0445556640625, 0.01113128662109375, -0.025177001953125, -0.0232086181640625, -0.035675048828125, 0.043212890625, -0.01041412353515625, 0.04046630859375, 0.031402587890625, 0.0283050537109375, 0.007358551025390625, -0.02001953125, -0.016693115234375, -0.12310791015625, -0.026031494140625, 0.02044677734375, 0.079345703125, -0.0498046875, 0.02740478515625, -0.055389404296875, 0.0596923828125, 0.0107421875, 0.0128173828125, 0.000553131103515625, 0.01262664794921875, -0.041290283203125, -0.0357666015625, 0.005886077880859375, -0.043975830078125, -0.0192413330078125, -0.0287628173828125, -0.0268707275390625, -0.0268402099609375, -0.0364990234375, -0.036376953125, -0.000018775463104248047, -0.01070404052734375, -0.02923583984375, -0.0029468536376953125, 0.0082550048828125, 0.00852203369140625, -0.0157623291015625, -0.0015506744384765625, -0.007781982421875, -0.0173797607421875, 0.01837158203125, -0.045440673828125, -0.004543304443359375, 0.0009326934814453125, 0.0863037109375, 0.019134521484375, -0.00017535686492919922, 0.005512237548828125, 0.0307464599609375, 0.03082275390625, -0.0042266845703125, -0.01342010498046875, -0.002964019775390625, -0.00949859619140625, 0.004009246826171875, 0.0024280548095703125, 0.007076263427734375, -0.033233642578125, 0.06817626953125, -0.007526397705078125, -0.01031494140625, 0.01593017578125, -0.041839599609375, 0.020782470703125, -0.00860595703125, -0.02545166015625, 0.0007534027099609375, -0.047454833984375, 0.026153564453125, 0.0008592605590820312, 0.06158447265625, -0.0279388427734375, -0.0269927978515625, 0.0013704299926757812, -0.033660888671875, 0.01068115234375, 0.023345947265625, -0.01134490966796875, 0.007541656494140625, -0.009765625, -0.01409912109375, -0.0172576904296875, -0.005184173583984375, -0.007232666015625, 0.01349639892578125, 0.009002685546875, -0.0141448974609375, -0.016021728515625, 0.004180908203125, -0.0469970703125, 0.0157623291015625, -0.00868988037109375, -0.0294647216796875, 0.027435302734375, 0.044158935546875, -0.0157318115234375, 0.035369873046875, 0.042449951171875, 0.0007009506225585938, 0.0110931396484375, -0.021820068359375, -0.02545166015625, 0.017669677734375, -0.037567138671875, -0.01548004150390625, 0.01143646240234375, -0.00986480712890625, 0.00392913818359375, 0.03802490234375, -0.03173828125, 0.00698089599609375, -0.0029163360595703125, 0.047210693359375, 0.045318603515625, 0.0164947509765625, 0.0213165283203125, -0.0181732177734375, 0.01172637939453125, -0.032379150390625, -0.01309967041015625, -0.0216827392578125, 0.0265960693359375, -0.0011796951293945312, 0.02593994140625, 0.01239013671875, -0.02496337890625, 0.0119476318359375, -0.0416259765625, -0.01221466064453125, 0.0246734619140625, 0.00927734375, -0.042083740234375, -0.0019330978393554688, 0.0135650634765625, -0.00653076171875, -0.020660400390625, 0.01438140869140625, -0.0127105712890625, 0.00115203857421875, 0.01654052734375, -0.034393310546875, 0.01258087158203125, -0.0201873779296875, -0.01222991943359375, -0.006839752197265625, -0.03961181640625, -0.036376953125, 0.044158935546875, 0.01399993896484375, -0.0172271728515625, -0.00930023193359375, 0.0254974365234375, 0.00372314453125, 0.0033111572265625, -0.046722412109375, 0.00484466552734375, -0.045654296875, -0.004184722900390625, 0.0284271240234375, -0.0182952880859375, 0.0450439453125, -0.03997802734375, -0.0234222412109375, -0.0238494873046875, 0.07318115234375, -0.0010519027709960938, 0.0086822509765625, -0.0288238525390625, -0.0235137939453125, 0.04449462890625, -0.0185089111328125, 0.04931640625, 0.0242462158203125, 0.0048065185546875, -0.050018310546875, 0.0888671875, 0.0189666748046875, 0.0364990234375, -0.0274810791015625, 0.0101165771484375, 0.01172637939453125, -0.0012531280517578125, -0.04510498046875, 0.0096282958984375, -0.02313232421875, -0.040252685546875, 0.01483154296875, 0.02337646484375, 0.0031585693359375, -0.00154876708984375, 0.0007066726684570312, 0.006984710693359375, 0.0208740234375, -0.0122222900390625, -0.01532745361328125, -0.0192413330078125, 0.03753662109375, -0.01314544677734375, 0.0404052734375, 0.019378662109375, -0.052276611328125, -0.0272369384765625, -0.01042938232421875, 0.016632080078125, 0.043121337890625, -0.04205322265625, 0.006450653076171875, 0.0267486572265625, -0.03118896484375, 0.0034942626953125, 0.0390625, 0.0145263671875, 0.0390625, -0.002620697021484375, 0.014129638671875, 0.05377197265625, 0.00643157958984375, -0.007251739501953125, 0.001712799072265625, 0.0635986328125, 0.005207061767578125, -0.0214385986328125, 0.041595458984375, -0.032196044921875, 0.02532958984375, -0.01198577880859375, 0.05389404296875, -0.0121002197265625, 0.0244293212890625, 0.018829345703125, 0.01043701171875, 0.06610107421875, -0.0182952880859375, 0.00952911376953125, -0.00533294677734375, 0.02239990234375, 0.0033283233642578125, -0.03466796875, -0.0102691650390625, 0.0007848739624023438, 0.00823974609375, 0.0020694732666015625, -0.0200958251953125, -0.01123809814453125, -0.009368896484375, -0.035308837890625, -0.002498626708984375, -0.0182647705078125, -0.014373779296875, 0.0173492431640625, -0.007633209228515625, -0.017333984375, -0.07049560546875, -0.004428863525390625, 0.0030269622802734375, -0.027740478515625, -0.01197052001953125, 0.01146697998046875, 0.06689453125, 0.043487548828125, 0.0161285400390625, -0.0240478515625, 0.0250396728515625, 0.0306396484375, -0.0550537109375, -0.0408935546875, 0.0021114349365234375, 0.025115966796875, -0.0517578125, 0.0283966064453125, -0.027618408203125, -0.0010595321655273438, -0.01537322998046875, -0.0131988525390625, 0.06280517578125, -0.032806396484375, -0.0225830078125, 0.0179901123046875, 0.034454345703125, -0.00823211669921875, 0.0103302001953125, 0.041961669921875, -0.056671142578125, -0.045257568359375, 0.0239715576171875, -0.04608154296875, -0.0186309814453125, 0.0157318115234375, -0.09033203125, 0.0887451171875, 0.004909515380859375, 0.0452880859375, -0.016265869140625, 0.02166748046875, -0.0343017578125, -0.0222320556640625, -0.0560302734375, 0.0426025390625, -0.039703369140625, 0.04217529296875, -0.040496826171875, 0.015899658203125, 0.00766754150390625, -0.0124969482421875, 0.0814208984375, 0.020904541015625, -0.05120849609375, -0.025360107421875, 0.02276611328125, 0.00704193115234375, -0.0222930908203125, 0.06658935546875, 0.019989013671875, 0.007171630859375, 0.05841064453125, -0.033843994140625, 0.02716064453125, -0.026763916015625, 0.0221710205078125, 0.024505615234375, -0.00787353515625, -0.0305938720703125, -0.0213623046875, 0.036590576171875, -0.032501220703125, -0.027191162109375, 0.01393890380859375, -0.0322265625, -0.018280029296875, 0.0357666015625, 0.00350189208984375, -0.0181121826171875, -0.0185546875, -0.0325927734375, 0.01505279541015625, -0.0126800537109375, 0.0009503364562988281, -0.005359649658203125, 0.00754547119140625, -0.02655029296875, 0.01082611083984375, -0.00839996337890625, 0.04345703125, -0.01560211181640625, 0.05401611328125, 0.007411956787109375, 0.0145721435546875, -0.0386962890625, 0.0198211669921875, 0.05853271484375, 0.07110595703125, -0.042388916015625, -0.02392578125, 0.0116729736328125, 0.0055084228515625, -0.0035076141357421875, 0.005580902099609375, 0.0357666015625, -0.0225067138671875, -0.002040863037109375, -0.0447998046875, 0.0274658203125, 0.02117919921875, 0.004283905029296875, -0.005207061767578125, 0.0189666748046875, -0.040863037109375, 0.0263519287109375, -0.053192138671875, -0.00974273681640625, 0.00833892822265625, 0.0721435546875, 0.0531005859375, 0.025726318359375, -0.0018138885498046875, -0.04974365234375, -0.041748046875, 0.0347900390625, -0.015655517578125, 0.059783935546875, -0.0477294921875, -0.020904541015625, 0.01049041748046875, 0.030548095703125, 0.039276123046875, 0.09759521484375, 0.07464599609375, -0.004283905029296875, -0.0246734619140625, 0.0322265625, 0.0545654296875, -0.04547119140625, 0.004482269287109375, -0.04144287109375, 0.04931640625, 0.0249481201171875, 0.024627685546875, -0.01160430908203125, 0.0269317626953125, 0.03790283203125, -0.045562744140625, 0.05474853515625, -0.0181884765625, -0.0269927978515625, 0.043701171875, -0.0011196136474609375, 0.10552978515625, 0.005764007568359375, -0.07000732421875, 0.0028076171875, -0.036529541015625, -0.05621337890625, 0.025634765625, 0.031951904296875, -0.060882568359375, 0.06451416015625, -0.0517578125, -0.024810791015625, 0.044281005859375, 0.0254669189453125, -0.053924560546875, 0.0479736328125, 0.049163818359375, -0.0244293212890625, -0.01398468017578125, 0.0005636215209960938, 0.02581787109375, 0.0131378173828125, -0.03448486328125, 0.058807373046875, -0.020172119140625, -0.00865936279296875, -0.0044097900390625, -0.01003265380859375, -0.0058746337890625, -0.0255126953125, -0.00682830810546875, -0.0240325927734375, 0.0021495819091796875, 0.0048980712890625, 0.04364013671875, 0.028045654296875, 0.029510498046875, -0.0198974609375, -0.0007214546203613281, -0.01105499267578125, 0.0137939453125, 0.0009412765502929688, 0.036041259765625, -0.01302337646484375, 0.0119476318359375, -0.0015106201171875, -0.057373046875, 0.051544189453125, 0.01415252685546875, 0.047760009765625, 0.031280517578125, 0.0374755859375, 0.031707763671875, 0.0200042724609375, 0.00521087646484375, 0.036468505859375, 0.034698486328125, -0.034698486328125, -0.0153656005859375, 0.01058197021484375, -0.0218658447265625, 0.01456451416015625, 0.005199432373046875, 0.054962158203125, 0.01373291015625, -0.004283905029296875, -0.00848388671875, 0.033966064453125, 0.0400390625, 0.0024280548095703125, 0.020965576171875, -0.0018568038940429688, -0.01873779296875, 0.0100250244140625, -0.00986480712890625, -0.0224456787109375, -0.065185546875, 0.004077911376953125, 0.0106964111328125, -0.0308837890625, -0.00661468505859375, -0.0198822021484375, -0.0120391845703125, 0.029266357421875, 0.00687408447265625, -0.021728515625, -0.00394439697265625, -0.016387939453125, -0.0003185272216796875, 0.0012807846069335938, -0.0374755859375, -0.00675201416015625, 0.0770263671875, 0.02606201171875, -0.04791259765625, -0.041900634765625, 0.0333251953125, -0.072509765625, 0.04217529296875, 0.04351806640625, -0.033843994140625, -0.01983642578125, 0.036376953125, 0.052520751953125, 0.07281494140625, -0.007511138916015625, -0.043121337890625, -0.02496337890625, 0.011505126953125, 0.0191497802734375, -0.024932861328125, -0.01454925537109375, -0.01338958740234375, -0.00922393798828125, -0.005245208740234375, 0.005859375, 0.015716552734375, -0.03741455078125, -0.058319091796875, 0.019866943359375, -0.0019969940185546875, -0.0254058837890625, -0.0286407470703125, 0.041351318359375, -0.01617431640625, 0.07550048828125, 0.016693115234375, -0.0254058837890625, 0.0184173583984375, -0.002407073974609375, 0.0170135498046875, -0.0308990478515625, 0.04998779296875, -0.032684326171875, -0.0526123046875, -0.0162353515625, -0.0080413818359375, -0.0059814453125, -0.007503509521484375, -0.012115478515625, 0.03076171875, 0.042694091796875, -0.0206451416015625, -0.047637939453125, 0.007659912109375, -0.0129852294921875, -0.033782958984375, -0.0312347412109375, -0.0396728515625, 0.0098876953125, 0.1195068359375, 0.0709228515625, 0.01513671875, -0.06829833984375, 0.050506591796875, -0.0020732879638671875, -0.068359375, -0.01108551025390625, 0.026641845703125, -0.036865234375, -0.03411865234375, 0.004497528076171875, 0.016265869140625, -0.0196533203125, 0.028045654296875, 0.0135955810546875, -0.0292816162109375, 0.0533447265625, -0.0213165283203125, -0.01004791259765625, -0.031890869140625, 0.09637451171875, -0.049835205078125, 0.0003161430358886719, 0.019866943359375, 0.01324462890625, 0.05078125, 0.02984619140625, 0.00968170166015625, -0.00936126708984375, -0.0078277587890625, 0.0018987655639648438, 0.023681640625, 0.00838470458984375, 0.0209808349609375, -0.041656494140625, -0.02496337890625, -0.01322174072265625, 0.003597259521484375, -0.0202789306640625, -0.0084075927734375, -0.021514892578125, -0.0005602836608886719, 0.052001953125, -0.0149383544921875, -0.04608154296875, -0.017181396484375, -0.005207061767578125, -0.0010595321655273438, 0.0030994415283203125, 0.044189453125, -0.0293426513671875, 0.01922607421875, -0.01309967041015625, 0.0135955810546875, -0.02301025390625, 0.0016841888427734375, -0.0215606689453125, -0.01192474365234375, 0.01715087890625 ]
45070de86eba44122181c47335814fac235070d8
Wordpress Stackexchange Q: How do I know if author field was changed on post save? I'm writing a plugin that sends notifications on various post events. One of the notifications should be sent when a post is assigned to a different author. How can I know that the post author was changed ? A: Best Hook for that would be wp_insert_post_data function wpse44358_filter_handler( $data , $postarr ){ //do your stuff //if ($data['post_author'] == ... return data; // make sure you return something } add_filter( 'wp_insert_post_data' , 'wpse44358_filter_handler' , '99', 2 );
Q: How do I know if author field was changed on post save? I'm writing a plugin that sends notifications on various post events. One of the notifications should be sent when a post is assigned to a different author. How can I know that the post author was changed ? A: Best Hook for that would be wp_insert_post_data function wpse44358_filter_handler( $data , $postarr ){ //do your stuff //if ($data['post_author'] == ... return data; // make sure you return something } add_filter( 'wp_insert_post_data' , 'wpse44358_filter_handler' , '99', 2 );
wordpress
{ "language": "en", "length": 89, "provenance": "stackexchange_00019.jsonl.gz:417696", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44358" }
[ 0.007236480712890625, 0.03759765625, -0.0244598388671875, -0.01140594482421875, 0.029998779296875, -0.020050048828125, 0.003353118896484375, -0.03375244140625, -0.002819061279296875, 0.009307861328125, -0.029876708984375, 0.02581787109375, -0.006481170654296875, -0.01934814453125, 0.01049041748046875, -0.0184478759765625, 0.0185546875, -0.017303466796875, 0.032562255859375, -0.00395965576171875, 0.016937255859375, -0.0023632049560546875, 0.0301055908203125, -0.0161895751953125, 0.039337158203125, -0.01349639892578125, 0.08355712890625, -0.0147552490234375, 0.05853271484375, 0.0116729736328125, 0.039703369140625, -0.07598876953125, -0.000484466552734375, 0.075927734375, -0.06353759765625, 0.0601806640625, -0.0030002593994140625, 0.04974365234375, 0.03375244140625, 0.0165252685546875, 0.0286102294921875, -0.01323699951171875, -0.037567138671875, -0.00817108154296875, -0.0234222412109375, -0.03857421875, 0.032562255859375, -0.007793426513671875, 0.0196990966796875, 0.002071380615234375, -0.0128631591796875, -0.0059967041015625, -0.0092926025390625, 0.0311737060546875, -0.01708984375, -0.00348663330078125, -0.022491455078125, 0.056793212890625, 0.032196044921875, -0.0247344970703125, -0.0283355712890625, -0.0009646415710449219, 0.01212310791015625, 0.0084381103515625, 0.01082611083984375, 0.0048828125, 0.02081298828125, 0.025787353515625, -0.00902557373046875, 0.0013074874877929688, 0.01338958740234375, -0.030059814453125, -0.018646240234375, 0.0142364501953125, -0.0193328857421875, -0.048736572265625, 0.03521728515625, -0.044342041015625, -0.010986328125, 0.046051025390625, -0.0087127685546875, 0.0170745849609375, 0.049285888671875, -0.05419921875, 0.0190277099609375, -0.0197601318359375, -0.021484375, 0.0006256103515625, -0.039459228515625, 0.01253509521484375, -0.02362060546875, -0.035064697265625, -0.027740478515625, 0.0372314453125, 0.00360107421875, -0.006053924560546875, 0.0377197265625, 0.07958984375, -0.047760009765625, -0.036407470703125, -0.0207061767578125, 0.006107330322265625, -0.059234619140625, -0.01442718505859375, 0.0042266845703125, 0.0300445556640625, 0.02386474609375, -0.0290374755859375, 0.00872039794921875, 0.003658294677734375, -0.021392822265625, 0.00640869140625, -0.00021541118621826172, 0.0131378173828125, -0.036102294921875, -0.009307861328125, -0.027252197265625, -0.004840850830078125, -0.0177459716796875, -0.00878143310546875, 0.0194854736328125, 0.01922607421875, -0.00693511962890625, -0.0290985107421875, 0.0384521484375, -0.00560760498046875, -0.04595947265625, 0.02130126953125, -0.0066070556640625, -0.0078125, -0.055511474609375, 0.006244659423828125, 0.11767578125, 0.053131103515625, 0.043609619140625, -0.028411865234375, 0.0238037109375, -0.000579833984375, -0.00637054443359375, 0.0270843505859375, -0.042938232421875, -0.028167724609375, 0.005157470703125, -0.0362548828125, -0.00756072998046875, 0.009124755859375, 0.006526947021484375, 0.0273590087890625, 0.004428863525390625, -0.04339599609375, 0.01245880126953125, -0.0164031982421875, 0.0259552001953125, 0.01424407958984375, 0.051239013671875, -0.01276397705078125, 0.0694580078125, -0.029266357421875, -0.0220489501953125, -0.0283966064453125, 0.026885986328125, -0.0081024169921875, 0.0262603759765625, -0.01062774658203125, -0.0210723876953125, 0.00666046142578125, -0.07989501953125, -0.013702392578125, 0.017791748046875, -0.029327392578125, 0.031982421875, 0.01519012451171875, 0.0015659332275390625, 0.0271759033203125, 0.0137176513671875, 0.016326904296875, -0.01496124267578125, -0.007778167724609375, 0.03472900390625, 0.0294647216796875, -0.0068359375, -0.0110626220703125, 0.0364990234375, -0.01422119140625, -0.0158538818359375, 0.0645751953125, -0.00008273124694824219, 0.05474853515625, -0.004993438720703125, 0.0034542083740234375, -0.0113372802734375, 0.0296783447265625, -0.00662994384765625, -0.032806396484375, 0.0235137939453125, 0.0005311965942382812, -0.0097503662109375, -0.0016937255859375, 0.011505126953125, -0.00620269775390625, -0.01067352294921875, 0.016571044921875, -0.00426483154296875, -0.0023632049560546875, -0.08294677734375, 0.0201873779296875, -0.032562255859375, 0.045989990234375, 0.0380859375, 0.03125, 0.015869140625, 0.034088134765625, -0.04486083984375, 0.004482269287109375, -0.042938232421875, 0.0126495361328125, -0.0310211181640625, -0.0267181396484375, -0.006900787353515625, -0.00469207763671875, -0.029296875, 0.0303497314453125, -0.03863525390625, -0.0200042724609375, 0.00885009765625, -0.0313720703125, -0.0028324127197265625, -0.0308074951171875, 0.01560211181640625, -0.01012420654296875, 0.0194091796875, 0.0406494140625, 0.0261383056640625, -0.021820068359375, -0.027984619140625, -0.01445770263671875, -0.0040283203125, -0.11297607421875, 0.0082550048828125, 0.0816650390625, 0.023651123046875, -0.0287322998046875, -0.0029010772705078125, 0.037078857421875, 0.0595703125, 0.0413818359375, 0.0185394287109375, 0.0119171142578125, 0.034332275390625, 0.07159423828125, -0.032989501953125, 0.005031585693359375, 0.0014400482177734375, -0.08526611328125, 0.01085662841796875, 0.052764892578125, 0.008819580078125, 0.053070068359375, -0.0275115966796875, 0.0062408447265625, -0.01739501953125, -0.0279541015625, -0.01113128662109375, -0.0288848876953125, 0.04498291015625, 0.0063934326171875, 0.0157318115234375, 0.003719329833984375, -0.045318603515625, 0.02569580078125, 0.0145721435546875, -0.040496826171875, 0.0209503173828125, 0.041748046875, -0.0279541015625, 0.051666259765625, -0.01904296875, -0.0141448974609375, 0.019012451171875, 0.0262908935546875, -0.058624267578125, -0.02099609375, -0.033843994140625, -0.0203704833984375, -0.0141143798828125, -0.00428009033203125, 0.0230865478515625, -0.058380126953125, -0.0224609375, -0.0321044921875, 0.015350341796875, 0.0210723876953125, -0.0147705078125, 0.0167999267578125, -0.00815582275390625, -0.0188446044921875, -0.018463134765625, -0.044158935546875, 0.058258056640625, -0.0176849365234375, 0.00753021240234375, 0.07354736328125, 0.023834228515625, 0.01108551025390625, 0.0015439987182617188, -0.0082244873046875, -0.017608642578125, 0.0307159423828125, 0.0086669921875, -0.002582550048828125, -0.07745361328125, -0.01247406005859375, 0.0198516845703125, 0.04437255859375, -0.016632080078125, -0.043304443359375, -0.0202484130859375, 0.02783203125, -0.0611572265625, -0.037567138671875, -0.05084228515625, -0.0697021484375, -0.0254669189453125, -0.0200347900390625, -0.03839111328125, 0.0222015380859375, 0.0087432861328125, 0.0174102783203125, 0.00974273681640625, -0.0218048095703125, -0.0623779296875, -0.031036376953125, -0.06683349609375, 0.01161956787109375, -0.004764556884765625, 0.00862884521484375, 0.0033168792724609375, 0.055206298828125, 0.0007238388061523438, -0.071533203125, -0.04315185546875, 0.017730712890625, -0.01299285888671875, -0.00152587890625, -0.0201568603515625, 0.0189971923828125, 0.01348876953125, 0.01439666748046875, -0.0025959014892578125, 0.0233306884765625, -0.014862060546875, -0.028778076171875, -0.0028076171875, -0.000052094459533691406, 0.03271484375, 0.0012235641479492188, -0.0102081298828125, 0.002201080322265625, 0.04132080078125, -0.042083740234375, -0.01345062255859375, -0.006343841552734375, -0.0308685302734375, 0.0207977294921875, -0.00151824951171875, -0.01018524169921875, -0.01218414306640625, 0.033111572265625, 0.007259368896484375, -0.00010877847671508789, -0.005809783935546875, -0.016265869140625, 0.04669189453125, 0.0034389495849609375, 0.0071258544921875, -0.01410675048828125, -0.052001953125, -0.037445068359375, 0.0313720703125, -0.037445068359375, 0.00595855712890625, -0.0238800048828125, 0.0283355712890625, -0.0086669921875, -0.047027587890625, 0.0343017578125, -0.036346435546875, -0.00853729248046875, -0.02862548828125, -0.01399993896484375, 0.011383056640625, 0.06585693359375, 0.01180267333984375, -0.0252532958984375, 0.015655517578125, 0.0134429931640625, -0.03704833984375, -0.0210113525390625, -0.0286407470703125, -0.012542724609375, -0.038818359375, 0.036346435546875, 0.003833770751953125, 0.006649017333984375, -0.0576171875, 0.060699462890625, -0.03472900390625, 0.00263214111328125, 0.0311126708984375, -0.0438232421875, 0.0176544189453125, 0.005832672119140625, -0.01038360595703125, 0.00791168212890625, -0.0270843505859375, -0.040496826171875, -0.10028076171875, -0.02020263671875, -0.012420654296875, 0.042755126953125, -0.019439697265625, 0.010589599609375, -0.02423095703125, 0.040283203125, 0.01294708251953125, 0.050811767578125, -0.0003483295440673828, -0.0020580291748046875, 0.03271484375, -0.0298004150390625, 0.00824737548828125, -0.020294189453125, 0.0196380615234375, -0.01241302490234375, -0.037261962890625, -0.001125335693359375, -0.03875732421875, 0.007053375244140625, -0.01499176025390625, -0.0243682861328125, -0.051422119140625, -0.04913330078125, -0.03656005859375, 0.0233001708984375, -0.0183563232421875, 0.0119781494140625, -0.042022705078125, -0.0753173828125, 0.04473876953125, -0.01947021484375, 0.0164337158203125, 0.00496673583984375, 0.10687255859375, 0.0185546875, 0.001033782958984375, -0.027374267578125, -0.0165863037109375, 0.037322998046875, 0.003925323486328125, 0.00127410888671875, 0.0143280029296875, -0.037109375, 0.0260467529296875, 0.007904052734375, -0.03582763671875, -0.00774383544921875, 0.04864501953125, 0.007076263427734375, -0.016571044921875, -0.006549835205078125, -0.03350830078125, 0.05645751953125, 0.00045680999755859375, -0.023101806640625, 0.01132965087890625, 0.0271453857421875, 0.019927978515625, -0.059967041015625, 0.03656005859375, -0.005580902099609375, -0.0472412109375, 0.0176849365234375, -0.007770538330078125, 0.0021209716796875, 0.00428009033203125, 0.01236724853515625, -0.0083465576171875, -0.00555419921875, -0.004302978515625, -0.06256103515625, -0.0174407958984375, -0.009613037109375, 0.020050048828125, -0.040618896484375, 0.0022125244140625, -0.038330078125, -0.0157928466796875, 0.047607421875, 0.0186309814453125, -0.06500244140625, 0.056396484375, -0.00830078125, 0.01300048828125, 0.022918701171875, -0.03399658203125, 0.052459716796875, 0.0386962890625, -0.02362060546875, 0.015167236328125, -0.0261993408203125, 0.0092926025390625, -0.04632568359375, 0.017425537109375, -0.0117034912109375, 0.0093994140625, 0.019622802734375, 0.0310821533203125, 0.018035888671875, 0.004123687744140625, -0.023040771484375, 0.054412841796875, 0.04071044921875, 0.019134521484375, 0.0240020751953125, -0.0104827880859375, 0.018341064453125, -0.025787353515625, -0.010345458984375, -0.05035400390625, 0.01168060302734375, 0.00830078125, 0.0259246826171875, 0.045166015625, -0.0195465087890625, 0.032318115234375, -0.007190704345703125, -0.00218963623046875, 0.00479888916015625, 0.01995849609375, -0.021331787109375, -0.0016698837280273438, 0.046356201171875, 0.029327392578125, 0.006587982177734375, 0.0040283203125, -0.049102783203125, -0.026580810546875, -0.0004987716674804688, -0.0098419189453125, 0.01123809814453125, -0.0137481689453125, -0.0205078125, -0.037353515625, -0.027313232421875, 0.0265045166015625, -0.003528594970703125, -0.004314422607421875, -0.033538818359375, -0.01387786865234375, 0.046783447265625, -0.0138702392578125, 0.004985809326171875, -0.0257720947265625, 0.009674072265625, 0.0260772705078125, -0.0017156600952148438, 0.0753173828125, 0.026611328125, -0.030120849609375, 0.001628875732421875, -0.05615234375, -0.01561737060546875, -0.01947021484375, -0.018035888671875, -0.043365478515625, 0.001373291015625, -0.003276824951171875, 0.01073455810546875, -0.0164642333984375, -0.0217742919921875, 0.0206146240234375, 0.01154327392578125, -0.01165771484375, 0.004001617431640625, 0.014190673828125, 0.07708740234375, -0.0253143310546875, 0.048614501953125, 0.01134490966796875, 0.01776123046875, -0.07061767578125, -0.0019359588623046875, -0.0011758804321289062, -0.0288238525390625, -0.0066375732421875, -0.01268768310546875, 0.0127410888671875, -0.0203857421875, -0.010589599609375, 0.0040435791015625, -0.0022258758544921875, -0.00982666015625, 0.0053558349609375, -0.007381439208984375, -0.0152130126953125, 0.017578125, -0.0198211669921875, 0.0218505859375, -0.008575439453125, 0.001758575439453125, -0.024932861328125, -0.0177764892578125, 0.00897216796875, 0.01085662841796875, -0.0189056396484375, 0.01861572265625, -0.0210723876953125, 0.0208282470703125, 0.035125732421875, 0.017974853515625, 0.056488037109375, 0.023284912109375, 0.04595947265625, 0.020233154296875, -0.0232086181640625, -0.01428985595703125, 0.0256500244140625, 0.03875732421875, -0.0027675628662109375, 0.009002685546875, 0.034393310546875, -0.00951385498046875, 0.021240234375, -0.00550079345703125, 0.068115234375, -0.0244598388671875, 0.034881591796875, 0.046051025390625, 0.0104827880859375, 0.032684326171875, 0.022186279296875, -0.033447265625, -0.02862548828125, 0.0472412109375, -0.07232666015625, -0.003276824951171875, 0.040008544921875, -0.005626678466796875, 0.0033512115478515625, -0.061187744140625, 0.041229248046875, 0.01244354248046875, 0.0125579833984375, 0.035369873046875, 0.00012564659118652344, 0.00945281982421875, -0.0274658203125, 0.0136871337890625, 0.042724609375, -0.00823211669921875, -0.046875, 0.05548095703125, 0.01229095458984375, -0.007030487060546875, -0.03759765625, 0.052032470703125, 0.053863525390625, 0.0364990234375, 0.032318115234375, -0.04833984375, 0.01497650146484375, 0.005573272705078125, -0.0428466796875, -0.05352783203125, 0.015625, 0.07891845703125, -0.06536865234375, 0.0513916015625, 0.00019931793212890625, -0.0173797607421875, -0.0028209686279296875, 0.002857208251953125, 0.0435791015625, -0.0316162109375, -0.0158233642578125, 0.017425537109375, -0.00275421142578125, 0.01128387451171875, 0.01056671142578125, -0.0022754669189453125, -0.0401611328125, -0.022552490234375, 0.00943756103515625, -0.052276611328125, -0.0055999755859375, -0.00815582275390625, -0.07098388671875, 0.09844970703125, 0.040924072265625, 0.01788330078125, -0.0005555152893066406, 0.0408935546875, -0.06439208984375, -0.006473541259765625, -0.06689453125, 0.0758056640625, 0.0115814208984375, 0.0653076171875, -0.0982666015625, -0.0264739990234375, 0.00030517578125, 0.044525146484375, 0.07269287109375, 0.0005011558532714844, 0.040985107421875, 0.002834320068359375, 0.0224609375, -0.0261383056640625, -0.07904052734375, 0.034454345703125, -0.00007730722427368164, 0.0200958251953125, 0.0254974365234375, -0.022705078125, 0.04193115234375, -0.032440185546875, -0.0218505859375, 0.007083892822265625, 0.003391265869140625, 0.0198974609375, -0.0259857177734375, -0.042236328125, 0.01105499267578125, -0.0291748046875, -0.01270294189453125, -0.030303955078125, 0.0183563232421875, 0.05084228515625, 0.06732177734375, 0.0010929107666015625, 0.0286865234375, -0.0225067138671875, 0.06494140625, 0.01605224609375, 0.038299560546875, 0.011993408203125, 0.0110015869140625, 0.025665283203125, 0.0186920166015625, 0.01275634765625, 0.033935546875, -0.00542449951171875, 0.044525146484375, 0.02447509765625, 0.00009316205978393555, -0.022003173828125, 0.031768798828125, 0.036285400390625, 0.0421142578125, -0.057220458984375, -0.00757598876953125, 0.0273284912109375, 0.00847625732421875, -0.0276641845703125, -0.030181884765625, -0.03271484375, -0.041046142578125, -0.005615234375, -0.0167999267578125, -0.0304412841796875, 0.0202178955078125, 0.059539794921875, 0.0208282470703125, 0.0330810546875, -0.0487060546875, -0.07147216796875, -0.051025390625, -0.0117950439453125, 0.0256500244140625, 0.046234130859375, 0.033721923828125, 0.03143310546875, 0.050750732421875, -0.02105712890625, 0.01444244384765625, -0.0170135498046875, 0.01067352294921875, -0.0096893310546875, -0.0196533203125, -0.0155029296875, 0.027130126953125, 0.03643798828125, 0.0257110595703125, 0.03143310546875, 0.028961181640625, -0.006481170654296875, -0.0235137939453125, 0.00408935546875, -0.01094818115234375, -0.042449951171875, -0.0281524658203125, -0.038665771484375, -0.0008444786071777344, 0.0294036865234375, 0.0020427703857421875, 0.0201416015625, -0.00921630859375, 0.03631591796875, -0.027740478515625, 0.0010013580322265625, 0.012481689453125, -0.03466796875, 0.03594970703125, 0.03759765625, 0.03240966796875, 0.019775390625, -0.052581787109375, 0.0108184814453125, -0.0130615234375, -0.06689453125, -0.005664825439453125, 0.021728515625, -0.043701171875, 0.0411376953125, -0.0075225830078125, -0.019775390625, 0.0296630859375, -0.01342010498046875, -0.0036182403564453125, 0.019866943359375, 0.00366973876953125, -0.0141143798828125, -0.01386260986328125, -0.01560211181640625, 0.01297760009765625, 0.0224456787109375, 0.007274627685546875, -0.01432037353515625, 0.018768310546875, 0.017669677734375, -0.01520538330078125, 0.035186767578125, -0.06976318359375, -0.0282440185546875, 0.0693359375, -0.050048828125, -0.034454345703125, 0.01213836669921875, -0.0426025390625, 0.020111083984375, 0.0234832763671875, 0.00399017333984375, 0.03363037109375, -0.0173187255859375, 0.0187835693359375, -0.01444244384765625, -0.04046630859375, -0.057403564453125, -0.036712646484375, -0.0150146484375, -0.0101776123046875, -0.0156097412109375, -0.048248291015625, 0.001796722412109375, 0.01229095458984375, -0.0170135498046875, -0.015289306640625, -0.00298309326171875, 0.0007805824279785156, -0.04803466796875, 0.0208892822265625, 0.0033893585205078125, -0.02069091796875, -0.002719879150390625, -0.016693115234375, 0.022796630859375, -0.014434814453125, 0.055450439453125, 0.0014438629150390625, -0.00446319580078125, -0.035980224609375, -0.040985107421875, 0.0132904052734375, -0.005954742431640625, 0.002956390380859375, -0.046844482421875, 0.01373291015625, -0.047698974609375, 0.00920867919921875, -0.0171051025390625, -0.01552581787109375, 0.0256500244140625, 0.0229339599609375, 0.02490234375, -0.00534820556640625, -0.028289794921875, -0.004352569580078125, 0.01446533203125, -0.0240325927734375, -0.0196685791015625, 0.0011320114135742188, -0.049468994140625, 0.025299072265625, -0.03887939453125, -0.0302581787109375, 0.0335693359375, 0.087646484375, -0.034210205078125, -0.018890380859375, -0.01580810546875, -0.0267181396484375, -0.0355224609375, 0.003414154052734375, 0.037994384765625, -0.017578125, -0.047393798828125, 0.00467681884765625, 0.018280029296875, 0.046875, 0.00005930662155151367, -0.0243072509765625, 0.00807952880859375, 0.007404327392578125, -0.01186370849609375, -0.0440673828125, 0.0174560546875, -0.047271728515625, -0.00543212890625, -0.0802001953125, 0.0256805419921875, 0.0301666259765625, -0.0225982666015625, -0.0517578125, 0.041961669921875, -0.033416748046875, -0.0184173583984375, -0.039093017578125, 0.0009593963623046875, -0.00917816162109375, 0.0166168212890625, -0.0031185150146484375, -0.0213775634765625, 0.0020198822021484375, 0.033355712890625, -0.0140838623046875, 0.02166748046875, 0.018280029296875, -0.0478515625, -0.0638427734375, -0.037078857421875, -0.039306640625, -0.0011806488037109375, -0.00212860107421875, -0.0271759033203125, 0.0013141632080078125, 0.0131683349609375, -0.0440673828125, -0.026031494140625, 0.01227569580078125, 0.0311126708984375, -0.0443115234375, -0.0279388427734375, 0.005512237548828125, 0.0303192138671875, 0.0889892578125, 0.07489013671875, 0.0188751220703125, -0.0733642578125, 0.02801513671875, -0.006053924560546875, 0.00948333740234375, 0.00783538818359375, -0.016143798828125, 0.000827789306640625, -0.00897216796875, -0.0070953369140625, -0.007045745849609375, -0.037872314453125, 0.00970458984375, -0.02569580078125, -0.022369384765625, 0.0057220458984375, -0.00171661376953125, -0.018402099609375, -0.019500732421875, 0.0246734619140625, -0.0178375244140625, 0.0193939208984375, 0.0235443115234375, 0.01207733154296875, 0.023773193359375, 0.06524658203125, 0.0267181396484375, 0.02899169921875, -0.033111572265625, 0.004199981689453125, 0.0182037353515625, 0.037689208984375, -0.040008544921875, -0.01428985595703125, -0.015625, 0.018798828125, -0.0028591156005859375, 0.0029010772705078125, 0.0232086181640625, -0.00998687744140625, -0.01560211181640625, 0.03857421875, -0.0118865966796875, -0.00981903076171875, -0.0187530517578125, 0.041046142578125, -0.03131103515625, -0.00362396240234375, -0.0009622573852539062, -0.01476287841796875, 0.00496673583984375, 0.0276336669921875, 0.02178955078125, -0.0399169921875, 0.0338134765625, 0.0085906982421875, 0.042938232421875, 0.0158233642578125 ]