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
51392e3c2e868cecf0c77a309d796c84f4cf7476
Wordpress Stackexchange Q: How can I just get content inside a shortcode or just outside Suppose I have content like [xxx] Here is some content in xxx [/xxx] Here is content outside xxx ... Can I somehow just get * *content inside [xxx] ONLY *content outside [xxx] ONLY A: Depends on the shortcode. If you have access to the shortcode's handler function, that function's second argument is the content inside the shortcode: function wpse20136_shortcode( $atts, $content ){ // $content has the content inside xxx } register_shortcode( 'xxx', 'wpse20136_shortcode' ); For getting all content not in shortcodes, that's easy. strip_shortcodes() does that: strip_shortcodes( get_the_content() ); for example, will give you the content of the current post with only the content not inside shortcodes.
Q: How can I just get content inside a shortcode or just outside Suppose I have content like [xxx] Here is some content in xxx [/xxx] Here is content outside xxx ... Can I somehow just get * *content inside [xxx] ONLY *content outside [xxx] ONLY A: Depends on the shortcode. If you have access to the shortcode's handler function, that function's second argument is the content inside the shortcode: function wpse20136_shortcode( $atts, $content ){ // $content has the content inside xxx } register_shortcode( 'xxx', 'wpse20136_shortcode' ); For getting all content not in shortcodes, that's easy. strip_shortcodes() does that: strip_shortcodes( get_the_content() ); for example, will give you the content of the current post with only the content not inside shortcodes.
wordpress
{ "language": "en", "length": 120, "provenance": "stackexchange_00019.jsonl.gz:410371", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20136" }
[ 0.0309295654296875, -0.02569580078125, 0.006984710693359375, 0.01934814453125, -0.00807952880859375, -0.0338134765625, 0.036956787109375, -0.021942138671875, -0.00980377197265625, -0.0005974769592285156, -0.080810546875, 0.02093505859375, -0.05035400390625, 0.021636962890625, 0.00286865234375, -0.08154296875, 0.0308837890625, -0.002460479736328125, 0.0273895263671875, -0.0159149169921875, 0.01270294189453125, -0.009307861328125, 0.005168914794921875, 0.049774169921875, -0.00534820556640625, -0.0150299072265625, 0.10540771484375, 0.00565338134765625, -0.021728515625, -0.040557861328125, 0.0202484130859375, 0.00617218017578125, 0.042938232421875, 0.03057861328125, -0.0780029296875, 0.015960693359375, -0.061920166015625, 0.033721923828125, -0.00749969482421875, 0.004779815673828125, 0.01055908203125, 0.0020198822021484375, 0.047698974609375, 0.057281494140625, -0.00039768218994140625, -0.0292816162109375, 0.01236724853515625, -0.06036376953125, 0.0029888153076171875, 0.01561737060546875, 0.0428466796875, 0.01473236083984375, 0.049560546875, 0.001842498779296875, -0.00957489013671875, 0.004482269287109375, -0.0206298828125, -0.056915283203125, 0.060394287109375, -0.0292205810546875, -0.035003662109375, -0.0831298828125, 0.04901123046875, -0.02337646484375, 0.032562255859375, 0.01476287841796875, 0.040618896484375, 0.0178070068359375, -0.063720703125, 0.057769775390625, 0.05316162109375, -0.063232421875, -0.01788330078125, -0.03692626953125, -0.028961181640625, 0.06427001953125, -0.029510498046875, -0.0243377685546875, 0.00907135009765625, 0.005313873291015625, -0.0193634033203125, 0.00716400146484375, -0.0635986328125, -0.02252197265625, 0.0234222412109375, 0.023406982421875, -0.002689361572265625, -0.01555633544921875, -0.00560760498046875, 0.032257080078125, -0.01479339599609375, 0.044219970703125, -0.01137542724609375, 0.033538818359375, -0.005512237548828125, -0.00704193115234375, 0.00273895263671875, 0.046051025390625, -0.046356201171875, 0.031829833984375, -0.00868988037109375, -0.03558349609375, 0.06414794921875, -0.068603515625, 0.01288604736328125, -0.004970550537109375, -0.0182647705078125, -0.068603515625, 0.047393798828125, 0.026824951171875, -0.01873779296875, 0.076171875, -0.0251007080078125, -0.00888824462890625, -0.0299224853515625, 0.0467529296875, -0.045013427734375, -0.0165863037109375, -0.01374053955078125, -0.004108428955078125, 0.004108428955078125, 0.00030231475830078125, 0.032440185546875, -0.007404327392578125, 0.00466156005859375, 0.0081787109375, -0.0202484130859375, -0.036224365234375, 0.053253173828125, 0.027557373046875, -0.0245361328125, 0.0012359619140625, 0.00208282470703125, -0.01058197021484375, -0.017486572265625, -0.00998687744140625, -0.00433349609375, 0.004177093505859375, -0.0002415180206298828, 0.0014619827270507812, -0.00006872415542602539, -0.00931549072265625, 0.0142364501953125, -0.0019969940185546875, -0.004421234130859375, 0.006641387939453125, 0.019195556640625, 0.0247344970703125, -0.018218994140625, -0.0528564453125, 0.032501220703125, 0.009033203125, 0.03515625, 0.00455474853515625, -0.0155792236328125, -0.037261962890625, 0.05865478515625, -0.04205322265625, -0.02978515625, -0.06890869140625, 0.05633544921875, 0.005672454833984375, 0.015167236328125, -0.0223541259765625, -0.05169677734375, -0.03155517578125, -0.07720947265625, -0.01641845703125, 0.0205535888671875, 0.04266357421875, 0.01499176025390625, -0.02288818359375, -0.0516357421875, 0.004261016845703125, 0.01041412353515625, 0.003360748291015625, -0.01497650146484375, 0.004726409912109375, -0.0018453598022460938, 0.0574951171875, 0.01149749755859375, -0.044219970703125, 0.004795074462890625, 0.0113983154296875, -0.050140380859375, 0.026947021484375, 0.02703857421875, 0.09747314453125, 0.0176239013671875, 0.0191802978515625, 0.02069091796875, -0.023651123046875, -0.01549530029296875, -0.008026123046875, -0.00551605224609375, -0.01092529296875, -0.027069091796875, -0.0035343170166015625, -0.0149993896484375, 0.011932373046875, -0.00037741661071777344, -0.035614013671875, 0.045440673828125, 0.01201629638671875, 0.02508544921875, -0.0050048828125, -0.0089111328125, -0.00390625, 0.0178070068359375, -0.0171051025390625, 0.0113067626953125, -0.01421356201171875, -0.00644683837890625, -0.039337158203125, -0.04388427734375, 0.03009033203125, -0.012298583984375, 0.0239410400390625, 0.0219268798828125, 0.03790283203125, 0.0469970703125, -0.01221466064453125, 0.03790283203125, -0.00514984130859375, 0.053497314453125, -0.0286102294921875, -0.017974853515625, -0.0252532958984375, 0.016082763671875, 0.021240234375, -0.07415771484375, 0.0152435302734375, 0.0124053955078125, -0.0095977783203125, -0.04779052734375, 0.0208892822265625, -0.0132904052734375, 0.014312744140625, -0.01523590087890625, 0.02587890625, 0.04571533203125, 0.052398681640625, 0.00836944580078125, 0.0021266937255859375, 0.1307373046875, 0.007366180419921875, 0.0044403076171875, -0.0159759521484375, 0.01070404052734375, 0.04913330078125, -0.00032210350036621094, 0.002819061279296875, 0.01242828369140625, -0.0167236328125, 0.00011998414993286133, 0.0286865234375, 0.0003361701965332031, 0.031494140625, -0.00675201416015625, 0.0179443359375, -0.0021533966064453125, 0.006862640380859375, -0.0005059242248535156, -0.0197296142578125, 0.027130126953125, 0.010467529296875, 0.048797607421875, 0.04498291015625, -0.005764007568359375, -0.02276611328125, -0.0116119384765625, 0.0181732177734375, 0.0007839202880859375, 0.066650390625, 0.038055419921875, -0.00859832763671875, -0.02520751953125, -0.022308349609375, 0.026947021484375, 0.04278564453125, -0.0099334716796875, 0.01128387451171875, 0.0037746429443359375, -0.0036869049072265625, 0.0234222412109375, -0.0023670196533203125, 0.008453369140625, 0.00424957275390625, 0.0196990966796875, 0.01580810546875, 0.00484466552734375, 0.0791015625, 0.00991058349609375, 0.041473388671875, 0.04388427734375, 0.0219573974609375, 0.031982421875, -0.0216522216796875, 0.028289794921875, -0.018707275390625, 0.0166778564453125, 0.054473876953125, 0.006427764892578125, -0.00991058349609375, 0.01021575927734375, -0.032196044921875, -0.01068878173828125, 0.0022640228271484375, -0.0023136138916015625, 0.04010009765625, -0.08795166015625, 0.042877197265625, 0.011810302734375, 0.039398193359375, -0.003231048583984375, -0.032958984375, 0.00010526180267333984, 0.0284423828125, -0.053924560546875, -0.03594970703125, 0.035675048828125, -0.039794921875, -0.029388427734375, -0.038726806640625, -0.035247802734375, -0.0036525726318359375, -0.035003662109375, -0.01458740234375, 0.0218353271484375, -0.036041259765625, -0.053375244140625, -0.0224761962890625, -0.06353759765625, 0.04022216796875, 0.001407623291015625, 0.0205841064453125, 0.01064300537109375, 0.009918212890625, 0.00732421875, -0.043701171875, 0.0013570785522460938, 0.044525146484375, -0.0374755859375, -0.01531219482421875, -0.0298614501953125, 0.0244140625, -0.03472900390625, 0.02264404296875, -0.035125732421875, -0.0142974853515625, 0.0056610107421875, -0.0248565673828125, -0.00994873046875, 0.005893707275390625, 0.04302978515625, 0.004291534423828125, -0.01039886474609375, 0.0206146240234375, 0.06268310546875, -0.017974853515625, -0.029083251953125, 0.0173187255859375, -0.06817626953125, -0.035308837890625, 0.038787841796875, -0.0073699951171875, 0.0091552734375, -0.0301361083984375, 0.0242156982421875, 0.038818359375, 0.0214691162109375, 0.01110076904296875, 0.0287628173828125, -0.01324462890625, -0.01021575927734375, -0.03826904296875, 0.007091522216796875, -0.0212249755859375, 0.0244903564453125, 0.002483367919921875, 0.036712646484375, 0.0012226104736328125, 0.0355224609375, -0.01024627685546875, -0.00640869140625, 0.052154541015625, 0.0277252197265625, 0.05816650390625, -0.047515869140625, -0.052886962890625, -0.032928466796875, 0.09381103515625, -0.06005859375, -0.0038318634033203125, 0.005367279052734375, -0.00020778179168701172, -0.012054443359375, -0.020477294921875, -0.0833740234375, -0.01465606689453125, -0.03741455078125, 0.01099395751953125, -0.0316162109375, 0.0192413330078125, -0.0108184814453125, -0.026519775390625, -0.0084991455078125, -0.04608154296875, 0.02825927734375, 0.00800323486328125, 0.0310516357421875, -0.044921875, 0.01502227783203125, -0.046112060546875, -0.01035308837890625, 0.005916595458984375, -0.0190887451171875, -0.0121002197265625, 0.01165771484375, 0.00467681884765625, 0.0026836395263671875, -0.01543426513671875, -0.03369140625, -0.0015201568603515625, -0.045166015625, -0.006622314453125, -0.01123809814453125, 0.052154541015625, -0.021881103515625, 0.03814697265625, 0.0036830902099609375, -0.004871368408203125, -0.0182342529296875, 0.01044464111328125, 0.0070648193359375, 0.05535888671875, -0.01540374755859375, -0.00601959228515625, 0.01093292236328125, -0.0257110595703125, -0.033843994140625, -0.0016775131225585938, -0.0148468017578125, 0.01131439208984375, -0.05133056640625, 0.019775390625, -0.0087432861328125, -0.037261962890625, 0.05133056640625, 0.046478271484375, -0.054595947265625, -0.0073394775390625, 0.0116119384765625, 0.0189666748046875, -0.055450439453125, -0.06463623046875, -0.0124969482421875, 0.03326416015625, -0.033966064453125, 0.0419921875, 0.025787353515625, -0.0218353271484375, 0.07843017578125, -0.010009765625, 0.013275146484375, -0.034332275390625, 0.07666015625, 0.0135345458984375, 0.0236968994140625, 0.0067596435546875, 0.011962890625, -0.0135345458984375, -0.0038318634033203125, -0.01983642578125, 0.0018100738525390625, 0.0022373199462890625, 0.030975341796875, -0.0205078125, 0.037811279296875, -0.021759033203125, -0.013885498046875, -0.022735595703125, 0.06866455078125, 0.0174560546875, 0.051849365234375, -0.00215911865234375, 0.01148223876953125, 0.05523681640625, 0.0111083984375, 0.0272216796875, -0.0094146728515625, 0.0003314018249511719, 0.043212890625, -0.0379638671875, -0.042083740234375, 0.03448486328125, 0.0025501251220703125, 0.0214691162109375, -0.03741455078125, -0.06719970703125, -0.0345458984375, -0.038299560546875, -0.00514984130859375, 0.02825927734375, 0.0140228271484375, -0.0034465789794921875, 0.00004035234451293945, 0.0170440673828125, -0.0038394927978515625, 0.01224517822265625, 0.0240936279296875, -0.016815185546875, 0.0242462158203125, -0.036773681640625, 0.006435394287109375, 0.00567626953125, 0.05145263671875, -0.0931396484375, 0.05908203125, 0.01204681396484375, -0.015838623046875, -0.006275177001953125, 0.00670623779296875, 0.0218658447265625, -0.005283355712890625, 0.01441192626953125, -0.02545166015625, 0.038726806640625, -0.0206451416015625, -0.03076171875, 0.03692626953125, 0.047760009765625, -0.0096282958984375, 0.0108184814453125, -0.02276611328125, -0.00330352783203125, -0.0011310577392578125, 0.0138397216796875, 0.038818359375, 0.0189056396484375, -0.044647216796875, -0.00807952880859375, 0.041259765625, 0.053741455078125, 0.0009608268737792969, -0.002899169921875, -0.0164947509765625, -0.036834716796875, 0.0491943359375, -0.04827880859375, -0.00997161865234375, -0.004543304443359375, -0.00803375244140625, -0.0288543701171875, -0.02276611328125, 0.0162811279296875, 0.0170135498046875, -0.0102386474609375, -0.0220489501953125, 0.04193115234375, -0.0308990478515625, 0.00878143310546875, -0.0299530029296875, 0.02630615234375, -0.022857666015625, -0.003971099853515625, 0.035064697265625, 0.013916015625, -0.0209808349609375, 0.012359619140625, -0.036712646484375, -0.0013322830200195312, -0.00016009807586669922, -0.06964111328125, -0.02630615234375, -0.0249481201171875, 0.0009560585021972656, 0.01427459716796875, 0.0027980804443359375, 0.00646209716796875, 0.016693115234375, 0.015899658203125, -0.0247344970703125, 0.0308380126953125, -0.00516510009765625, 0.051788330078125, 0.012603759765625, 0.043365478515625, 0.0306243896484375, 0.052947998046875, -0.003955841064453125, -0.041717529296875, 0.01454925537109375, -0.060333251953125, -0.03375244140625, -0.03851318359375, 0.027313232421875, 0.0347900390625, -0.01312255859375, 0.00870513916015625, -0.0286865234375, -0.0117950439453125, -0.01229095458984375, -0.0190277099609375, 0.057586669921875, 0.002468109130859375, 0.0031070709228515625, -0.026947021484375, -0.032073974609375, -0.038787841796875, -0.0192108154296875, -0.01142120361328125, 0.0164337158203125, 0.004741668701171875, 0.0016202926635742188, 0.0156707763671875, 0.008880615234375, 0.0193023681640625, 0.055389404296875, -0.01137542724609375, 0.043182373046875, 0.045684814453125, 0.006439208984375, -0.0168914794921875, 0.01306915283203125, 0.01522064208984375, 0.0235137939453125, 0.048736572265625, -0.01189422607421875, -0.027313232421875, 0.012176513671875, -0.040191650390625, 0.033538818359375, 0.07464599609375, 0.091796875, -0.08575439453125, 0.005077362060546875, 0.0321044921875, -0.045867919921875, 0.0017557144165039062, 0.032958984375, -0.032470703125, 0.00598907470703125, 0.0178985595703125, 0.002582550048828125, -0.0088043212890625, 0.031707763671875, 0.046142578125, -0.0322265625, -0.01412200927734375, 0.038330078125, 0.033111572265625, -0.0104522705078125, 0.03533935546875, -0.012237548828125, 0.031524658203125, -0.036346435546875, 0.029510498046875, -0.0233001708984375, 0.0023956298828125, -0.00922393798828125, 0.03533935546875, 0.0257568359375, 0.0027751922607421875, -0.031829833984375, -0.0161285400390625, -0.004413604736328125, 0.060791015625, -0.048187255859375, 0.0225067138671875, 0.031524658203125, 0.0011053085327148438, 0.0287628173828125, 0.012420654296875, -0.0024852752685546875, 0.02630615234375, -0.03350830078125, -0.0031070709228515625, -0.03656005859375, 0.034393310546875, -0.006134033203125, -0.02923583984375, 0.06597900390625, -0.047515869140625, -0.0017423629760742188, 0.024169921875, -0.0010385513305664062, -0.0120849609375, -0.007061004638671875, 0.0298004150390625, -0.0008702278137207031, 0.034454345703125, 0.004673004150390625, 0.02978515625, -0.0037059783935546875, -0.0034027099609375, -0.08099365234375, 0.09808349609375, 0.00598907470703125, 0.03253173828125, 0.0179290771484375, 0.02423095703125, -0.05181884765625, -0.0192413330078125, -0.0419921875, 0.06317138671875, 0.0330810546875, 0.039581298828125, -0.0665283203125, -0.038848876953125, -0.0028362274169921875, 0.06842041015625, 0.0279541015625, 0.0005345344543457031, 0.0018625259399414062, -0.001422882080078125, 0.034271240234375, -0.005146026611328125, -0.03271484375, 0.029876708984375, 0.00836944580078125, 0.046722412109375, 0.042999267578125, -0.04290771484375, 0.02813720703125, -0.00572967529296875, 0.0008311271667480469, 0.042022705078125, 0.01079559326171875, 0.00269317626953125, 0.039764404296875, -0.00982666015625, -0.0232696533203125, 0.02301025390625, 0.007099151611328125, -0.00499725341796875, -0.046966552734375, 0.060882568359375, 0.0004684925079345703, -0.0202484130859375, -0.028167724609375, -0.03814697265625, 0.034881591796875, 0.0143280029296875, 0.06353759765625, 0.039886474609375, 0.029266357421875, 0.114501953125, -0.01202392578125, 0.043853759765625, 0.01087188720703125, -0.02020263671875, 0.01464080810546875, 0.00139617919921875, -0.006317138671875, -0.049163818359375, 0.041717529296875, 0.0149993896484375, 0.01593017578125, -0.03759765625, -0.0078277587890625, 0.01052093505859375, 0.004077911376953125, -0.0284271240234375, -0.02850341796875, -0.01971435546875, 0.0150604248046875, 0.0202178955078125, -0.01537322998046875, -0.011138916015625, 0.0211944580078125, 0.06256103515625, 0.021087646484375, 0.005641937255859375, -0.07122802734375, -0.049224853515625, -0.034637451171875, -0.00069427490234375, 0.0261688232421875, 0.031341552734375, 0.009521484375, 0.0235137939453125, -0.02813720703125, -0.0166015625, 0.00974273681640625, 0.01241302490234375, -0.01300811767578125, -0.0258026123046875, -0.0006437301635742188, -0.042144775390625, 0.004138946533203125, 0.02264404296875, 0.025054931640625, -0.0345458984375, -0.00876617431640625, 0.021240234375, 0.0233001708984375, -0.01218414306640625, 0.031829833984375, 0.003108978271484375, 0.01206207275390625, -0.051300048828125, -0.02001953125, 0.0098114013671875, -0.01055145263671875, -0.0085601806640625, -0.0293426513671875, 0.048980712890625, -0.02740478515625, 0.046966552734375, -0.008758544921875, 0.00498199462890625, 0.01088714599609375, -0.0343017578125, -0.00907135009765625, -0.0214080810546875, -0.045867919921875, -0.0221405029296875, -0.00835418701171875, -0.0086212158203125, 0.0192413330078125, 0.042144775390625, 0.01873779296875, 0.0011577606201171875, 0.022674560546875, -0.03887939453125, -0.0020046234130859375, 0.03167724609375, 0.02569580078125, -0.0128631591796875, 0.002506256103515625, -0.011688232421875, -0.042236328125, -0.039520263671875, -0.0082244873046875, 0.039459228515625, 0.0498046875, 0.00318145751953125, 0.021575927734375, 0.052337646484375, 0.005615234375, -0.01380157470703125, 0.0187835693359375, -0.0155792236328125, 0.029205322265625, 0.00011229515075683594, -0.002758026123046875, -0.0201568603515625, 0.041412353515625, 0.0352783203125, 0.0419921875, -0.0209808349609375, 0.00939178466796875, -0.0217132568359375, 0.01318359375, -0.028472900390625, 0.01922607421875, -0.01509857177734375, 0.003948211669921875, 0.022430419921875, -0.00617218017578125, 0.0196075439453125, 0.01319122314453125, -0.01024627685546875, 0.0008096694946289062, 0.047088623046875, -0.05072021484375, 0.0323486328125, -0.0001424551010131836, 0.04443359375, 0.0263824462890625, 0.02789306640625, -0.009521484375, 0.009429931640625, -0.0291748046875, 0.020904541015625, -0.00603485107421875, 0.011932373046875, 0.01123046875, -0.04632568359375, 0.014495849609375, 0.038330078125, 0.047088623046875, -0.01023101806640625, 0.0165252685546875, 0.020904541015625, -0.01410675048828125, 0.019500732421875, -0.00933074951171875, 0.0074310302734375, -0.017608642578125, -0.0275726318359375, -0.00058746337890625, -0.0025043487548828125, 0.00272369384765625, 0.01788330078125, -0.01354217529296875, 0.0460205078125, 0.010009765625, -0.031768798828125, -0.0109710693359375, 0.003490447998046875, 0.040130615234375, 0.0152130126953125, 0.0364990234375, -0.00818634033203125, -0.01277923583984375, -0.0732421875, -0.03338623046875, -0.02435302734375, 0.03546142578125, -0.029144287109375, 0.027587890625, 0.0305023193359375, -0.0247039794921875, -0.0291595458984375, 0.055755615234375, 0.00962066650390625, 0.09552001953125, -0.011016845703125, -0.005573272705078125, 0.036834716796875, -0.02813720703125, -0.03619384765625, -0.005035400390625, 0.0156707763671875, 0.0013608932495117188, -0.042877197265625, -0.0083160400390625, -0.0067291259765625, 0.00121307373046875, -0.033538818359375, -0.03143310546875, 0.02911376953125, -0.0012359619140625, -0.032867431640625, -0.047332763671875, 0.0079345703125, 0.0143585205078125, -0.03314208984375, -0.036346435546875, 0.0216827392578125, -0.0303802490234375, 0.020416259765625, 0.01971435546875, 0.038818359375, 0.006641387939453125, 0.0206756591796875, -0.046142578125, 0.01450347900390625, -0.02801513671875, 0.0232391357421875, 0.034576416015625, 0.00815582275390625, 0.02203369140625, 0.0159759521484375, -0.050933837890625, 0.0016736984252929688, -0.027252197265625, -0.0200042724609375, -0.0085296630859375, -0.048370361328125, -0.00921630859375, -0.0088653564453125, 0.060638427734375, 0.0163116455078125, 0.00962066650390625, -0.044525146484375, -0.0082550048828125, 0.0272674560546875, 0.0136871337890625, 0.0094451904296875, -0.00992584228515625, 0.003223419189453125, -0.01044464111328125, -0.052703857421875, -0.0218658447265625, -0.005214691162109375, -0.00914764404296875, -0.053375244140625, -0.00577545166015625, -0.029388427734375, 0.0167388916015625, -0.064453125, 0.006992340087890625, 0.03302001953125, -0.02728271484375, 0.01253509521484375, 0.004550933837890625, -0.0004239082336425781, 0.0248870849609375, 0.02398681640625, 0.0007810592651367188, 0.012298583984375, -0.0197601318359375, 0.0002770423889160156, 0.011688232421875, 0.0513916015625, -0.0157928466796875, -0.0093994140625, -0.01580810546875, 0.037994384765625, 0.02923583984375, 0.0367431640625, -0.011505126953125, 0.006481170654296875, 0.0179443359375, -0.0174560546875, -0.019622802734375, 0.0780029296875, -0.01413726806640625, 0.05523681640625, -0.00984954833984375, -0.020965576171875, 0.032440185546875, -0.047210693359375, -0.0192413330078125, 0.037872314453125, -0.020538330078125, -0.032928466796875, 0.01287078857421875, -0.0185699462890625, 0.02490234375, -0.007625579833984375 ]
f1862d98b000673142daf236ba9ef48f06e07aea
Wordpress Stackexchange Q: Site stuck in "Database Update Required" loop I just updated to 3.1.3 and now when I go to the admin I get the "Database Update Required" /wp-admin/upgrade.php screen. I click 'Upgrade Now' and it says it's done, but then trying to access anything in the admin gets me the same screen again. How do I get past this? EDIT: In trying to use toscho's solution, I discovered that my wordpress db tables are not writable, which likely led to the error loop. Any ideas for how to track that down? A: I had the same problem recently. For some reason the option db_upgraded isn’t set by the upgrade process. Fix * *Go to /wp-admin/options.php. *Fill the field db_upgraded with a 0 (zero). *Hit Save Changes. Done.
Q: Site stuck in "Database Update Required" loop I just updated to 3.1.3 and now when I go to the admin I get the "Database Update Required" /wp-admin/upgrade.php screen. I click 'Upgrade Now' and it says it's done, but then trying to access anything in the admin gets me the same screen again. How do I get past this? EDIT: In trying to use toscho's solution, I discovered that my wordpress db tables are not writable, which likely led to the error loop. Any ideas for how to track that down? A: I had the same problem recently. For some reason the option db_upgraded isn’t set by the upgrade process. Fix * *Go to /wp-admin/options.php. *Fill the field db_upgraded with a 0 (zero). *Hit Save Changes. Done. A: If you didn't disable all your plugins before updating do it manually by renaming the wp-content/plugins directory. Clear your browsers cache and all cookies and try again. If your still having the problem open the file wp-includes/version.php to make sure it is the correct file for 3.1.3. You should see this database version: /** * The WordPress version string * * @global string $wp_version */ $wp_version = '3.1.3'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ $wp_db_version = 17516; If everything checks out and your still having the problem add this to your wp-config.php file: define('WP_ALLOW_REPAIR', true); Navigate to : yoursite.com/wp-admin/maint/repair.php to attempt a database repair. What WordPress version are you updating from? A: Discovered that the db files I copied over from another machine had incorrect ownership. Once I chown -R mysql:mysql myblogdbdirectory and restarted MySQL, the database upgrade worked. A: I just had the same problem and I got to see there was no space left on device. Database could not save data, so it could not update. For some users, it is worth checking. A: For me it was permissions of the DB user and the DB. They were too strict, once I gave the user ALL privileges, I was able to get passed the loop. Either fix the user permissions of your SQL user, or use root if you have access to that SQL user. A: I solved this issue by using the core upgrade-db function of the WP-CLI project. It's designed to perform exactly the same task, but using the command line instead of the web. A: For me, the solution was to restart memcached. We're using the Memcached plugin.
wordpress
{ "language": "en", "length": 418, "provenance": "stackexchange_00019.jsonl.gz:410374", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20144" }
[ 0.052001953125, -0.0068817138671875, -0.023834228515625, -0.049163818359375, 0.02764892578125, -0.039825439453125, 0.034881591796875, -0.002582550048828125, 0.097900390625, 0.01824951171875, -0.09100341796875, -0.0226898193359375, -0.00014126300811767578, 0.01474761962890625, -0.067138671875, -0.0198822021484375, 0.047149658203125, -0.00688934326171875, 0.0303955078125, 0.01317596435546875, -0.01363372802734375, 0.06365966796875, -0.0218963623046875, 0.038848876953125, 0.00594329833984375, 0.0010175704956054688, 0.0574951171875, -0.0266571044921875, 0.01512908935546875, -0.004703521728515625, 0.01015472412109375, -0.0155487060546875, 0.015716552734375, 0.0215606689453125, -0.0169830322265625, -0.040069580078125, 0.0181121826171875, -0.0030841827392578125, -0.0185546875, 0.038726806640625, -0.0023288726806640625, 0.0104217529296875, 0.0295867919921875, 0.01251220703125, -0.0157928466796875, -0.024993896484375, -0.003017425537109375, -0.030487060546875, 0.0259857177734375, -0.01739501953125, -0.01242828369140625, 0.00948333740234375, -0.0015630722045898438, -0.004913330078125, 0.00046825408935546875, 0.0137481689453125, -0.0179595947265625, 0.0024127960205078125, 0.023895263671875, 0.0011587142944335938, -0.021209716796875, -0.0167083740234375, 0.02301025390625, -0.0267333984375, -0.029022216796875, 0.00988006591796875, 0.05316162109375, -0.00458526611328125, -0.0246124267578125, -0.035430908203125, 0.01168060302734375, 0.0036411285400390625, -0.006511688232421875, 0.010833740234375, 0.0091705322265625, 0.011810302734375, 0.0226898193359375, 0.015380859375, 0.004268646240234375, 0.030120849609375, 0.0193634033203125, 0.012359619140625, 0.00901031494140625, 0.017120361328125, -0.0114593505859375, 0.024871826171875, -0.017822265625, -0.027984619140625, -0.00405120849609375, -0.0350341796875, -0.006519317626953125, 0.002437591552734375, -0.031982421875, -0.0033206939697265625, -0.0162200927734375, -0.044891357421875, 0.02349853515625, 0.058929443359375, -0.0285797119140625, 0.021484375, -0.032257080078125, -0.0271453857421875, 0.03094482421875, -0.044158935546875, 0.0023517608642578125, 0.0018329620361328125, -0.004856109619140625, 0.0018682479858398438, 0.02874755859375, 0.0252685546875, -0.0094146728515625, 0.0167999267578125, -0.0245819091796875, -0.014556884765625, -0.027679443359375, 0.007171630859375, -0.049468994140625, 0.006134033203125, -0.006816864013671875, 0.003467559814453125, -0.024261474609375, 0.0186767578125, -0.0928955078125, -0.0302734375, 0.0224456787109375, -0.027557373046875, 0.0007128715515136719, 0.056640625, -0.0303192138671875, -0.007770538330078125, -0.0297698974609375, 0.0205230712890625, 0.057098388671875, 0.04827880859375, 0.00917816162109375, -0.0109405517578125, 0.0202789306640625, 0.00208282470703125, -0.00638580322265625, 0.0438232421875, -0.01849365234375, -0.060882568359375, -0.0255584716796875, -0.01216888427734375, 0.0284423828125, 0.048828125, 0.003940582275390625, -0.00527191162109375, 0.02587890625, -0.04449462890625, 0.0034236907958984375, -0.016143798828125, 0.04486083984375, -0.0030059814453125, 0.007282257080078125, -0.05206298828125, 0.0234375, -0.0435791015625, 0.0094146728515625, -0.0440673828125, -0.0260009765625, 0.00469207763671875, 0.03582763671875, -0.0301666259765625, -0.0146026611328125, -0.0080718994140625, -0.039520263671875, 0.005779266357421875, 0.028472900390625, 0.0230255126953125, 0.0095062255859375, -0.01296234130859375, 0.0263214111328125, 0.02056884765625, -0.01239776611328125, 0.028656005859375, -0.009185791015625, -0.0301513671875, 0.033905029296875, 0.0193939208984375, -0.0135650634765625, -0.019287109375, 0.02587890625, -0.0009469985961914062, -0.018402099609375, -0.007167816162109375, 0.0189056396484375, 0.03594970703125, 0.01262664794921875, 0.0229644775390625, 0.009735107421875, 0.00936126708984375, 0.01270294189453125, 0.049591064453125, -0.028167724609375, -0.05035400390625, -0.0200653076171875, 0.0166168212890625, -0.0457763671875, -0.0312347412109375, -0.054229736328125, 0.06195068359375, -0.0628662109375, 0.0438232421875, -0.018890380859375, 0.018218994140625, -0.00968170166015625, 0.038543701171875, 0.03515625, 0.02398681640625, 0.0007925033569335938, 0.028167724609375, -0.02764892578125, 0.00786590576171875, -0.039276123046875, 0.01432037353515625, -0.0654296875, 0.019561767578125, -0.021209716796875, 0.06182861328125, -0.0164337158203125, -0.056304931640625, -0.0172271728515625, -0.041107177734375, 0.0228424072265625, 0.0019521713256835938, -0.0174713134765625, 0.0006008148193359375, 0.0333251953125, 0.01678466796875, 0.018890380859375, 0.00691986083984375, 0.02935791015625, 0.019775390625, -0.040313720703125, -0.00839996337890625, -0.0266876220703125, -0.076416015625, 0.003875732421875, 0.06475830078125, 0.042816162109375, -0.01073455810546875, -0.016326904296875, -0.0067138671875, 0.0176239013671875, -0.0675048828125, -0.003086090087890625, -0.0014410018920898438, -0.0007910728454589844, 0.06951904296875, 0.0017547607421875, 0.0236968994140625, 0.00560760498046875, -0.0002605915069580078, -0.01421356201171875, 0.04290771484375, 0.007427215576171875, 0.0017528533935546875, -0.053009033203125, 0.00882720947265625, 0.01505279541015625, -0.046051025390625, -0.0552978515625, -0.01322174072265625, 0.0116729736328125, -0.0079193115234375, 0.03460693359375, 0.0347900390625, -0.00246429443359375, -0.022552490234375, 0.00823974609375, 0.007495880126953125, 0.0133514404296875, 0.0196533203125, -0.064697265625, 0.06329345703125, -0.025482177734375, 0.016876220703125, 0.004180908203125, 0.0110321044921875, -0.02606201171875, -0.00908660888671875, 0.00257110595703125, -0.00504302978515625, 0.007472991943359375, -0.0233612060546875, 0.0307464599609375, -0.01422882080078125, -0.05572509765625, -0.048065185546875, 0.0223541259765625, -0.018890380859375, -0.03680419921875, -0.0039520263671875, -0.0169525146484375, -0.033203125, 0.0418701171875, 0.0014753341674804688, 0.0188446044921875, -0.00586700439453125, 0.004703521728515625, 0.04803466796875, -0.0080718994140625, 0.00469970703125, 0.019317626953125, -0.01055908203125, 0.001102447509765625, 0.03436279296875, 0.01549530029296875, 0.0145111083984375, -0.0625, 0.01812744140625, 0.047149658203125, 0.0206756591796875, 0.04266357421875, -0.0072021484375, 0.01439666748046875, 0.039825439453125, -0.080078125, -0.1077880859375, -0.09088134765625, -0.0240631103515625, -0.02630615234375, 0.003749847412109375, -0.00543975830078125, 0.036834716796875, -0.0046539306640625, 0.0169677734375, 0.0198211669921875, 0.01337432861328125, -0.08221435546875, -0.051513671875, -0.091796875, -0.04962158203125, -0.028778076171875, 0.022430419921875, -0.00875091552734375, 0.037689208984375, -0.027313232421875, -0.07415771484375, -0.043853759765625, -0.0295257568359375, -0.00577545166015625, 0.0036983489990234375, -0.020172119140625, -0.027557373046875, 0.0294647216796875, 0.008941650390625, -0.005657196044921875, -0.00926971435546875, 0.0163116455078125, -0.045013427734375, -0.01497650146484375, 0.01194000244140625, 0.00894927978515625, -0.01428985595703125, 0.013031005859375, 0.019134521484375, -0.0134429931640625, -0.02752685546875, 0.0196380615234375, 0.00409698486328125, -0.0091552734375, -0.0004000663757324219, -0.023193359375, -0.020416259765625, 0.0126495361328125, -0.0008206367492675781, 0.004199981689453125, -0.0016155242919921875, -0.03326416015625, -0.0024013519287109375, -0.0066680908203125, -0.0049285888671875, -0.0005960464477539062, 0.01153564453125, 0.0192108154296875, -0.02508544921875, 0.032318115234375, 0.01073455810546875, -0.0178680419921875, -0.014007568359375, 0.01031494140625, -0.0164337158203125, -0.049041748046875, 0.0391845703125, -0.06817626953125, 0.025421142578125, -0.08502197265625, -0.0305023193359375, -0.042083740234375, 0.09332275390625, 0.0120086669921875, -0.00931549072265625, -0.0240478515625, 0.0018138885498046875, -0.031890869140625, -0.01479339599609375, 0.0006680488586425781, -0.0041351318359375, 0.0165557861328125, -0.01824951171875, -0.04815673828125, 0.0160064697265625, -0.0277252197265625, 0.0105438232421875, 0.0257568359375, -0.03369140625, 0.02984619140625, -0.046356201171875, -0.0234375, 0.03411865234375, -0.0209808349609375, -0.024932861328125, -0.018707275390625, -0.017974853515625, -0.1317138671875, -0.017333984375, -0.0206756591796875, 0.0714111328125, -0.01102447509765625, 0.0098724365234375, -0.0615234375, 0.0280609130859375, 0.040924072265625, 0.0161590576171875, 0.0019283294677734375, -0.032806396484375, -0.05126953125, -0.001644134521484375, 0.01934814453125, -0.0294342041015625, -0.0236358642578125, -0.06976318359375, 0.000015676021575927734, -0.0313720703125, -0.04461669921875, 0.020263671875, -0.05145263671875, 0.0175628662109375, -0.0191497802734375, -0.01302337646484375, 0.00656890869140625, 0.02655029296875, -0.0225067138671875, 0.0269622802734375, -0.021881103515625, -0.0293121337890625, 0.057708740234375, -0.02972412109375, 0.0017004013061523438, 0.0085601806640625, 0.086669921875, 0.002109527587890625, -0.0200347900390625, -0.052337646484375, -0.048797607421875, 0.040435791015625, 0.0235443115234375, 0.050384521484375, 0.056915283203125, -0.0216522216796875, 0.035919189453125, 0.052093505859375, 0.00568389892578125, 0.0106658935546875, -0.007656097412109375, 0.00786590576171875, -0.04608154296875, 0.02337646484375, -0.01056671142578125, 0.002071380615234375, 0.029205322265625, 0.00278472900390625, 0.005664825439453125, -0.02374267578125, 0.0012969970703125, 0.0190277099609375, -0.020416259765625, -0.0200042724609375, -0.042724609375, 0.01800537109375, 0.031585693359375, 0.0130767822265625, 0.0024738311767578125, 0.00272369384765625, 0.0297393798828125, 0.0218505859375, -0.01042938232421875, -0.031005859375, -0.00988006591796875, -0.0086669921875, 0.04925537109375, -0.05816650390625, -0.0079345703125, -0.0213165283203125, -0.03515625, 0.10662841796875, 0.03997802734375, -0.0570068359375, 0.053009033203125, -0.01122283935546875, 0.050537109375, 0.002681732177734375, 0.022247314453125, 0.026641845703125, -0.0172882080078125, -0.008758544921875, -0.01378631591796875, 0.01531982421875, -0.0311279296875, -0.017425537109375, -0.0071563720703125, 0.002391815185546875, -0.0240478515625, 0.01497650146484375, -0.0191650390625, 0.00235748291015625, -0.0223541259765625, -0.002288818359375, 0.01078033447265625, 0.03729248046875, -0.0036907196044921875, 0.01432037353515625, 0.0305023193359375, -0.006870269775390625, -0.024444580078125, 0.0531005859375, -0.054931640625, -0.006748199462890625, -0.0182037353515625, 0.053680419921875, -0.00318145751953125, -0.0222625732421875, 0.035552978515625, -0.04327392578125, 0.004016876220703125, 0.035614013671875, -0.00276947021484375, -0.04461669921875, -0.0265655517578125, 0.02862548828125, 0.06097412109375, -0.0322265625, 0.00824737548828125, -0.0115966796875, -0.031494140625, -0.006290435791015625, 0.0071563720703125, 0.0105743408203125, -0.04534912109375, -0.047210693359375, 0.0220489501953125, -0.0222015380859375, -0.0210418701171875, 0.0291290283203125, 0.00247955322265625, -0.01070404052734375, 0.0028095245361328125, 0.006072998046875, 0.0197906494140625, 0.0197296142578125, -0.00823211669921875, -0.050628662109375, 0.0093536376953125, 0.003925323486328125, 0.034912109375, -0.01486968994140625, -0.034332275390625, -0.0151824951171875, -0.06158447265625, -0.040557861328125, -0.04986572265625, -0.01953125, -0.059234619140625, 0.0218048095703125, -0.0152740478515625, -0.000545501708984375, 0.00295257568359375, 0.0106201171875, -0.036407470703125, 0.05340576171875, 0.0277099609375, 0.00962066650390625, -0.0143280029296875, 0.05206298828125, -0.010772705078125, 0.0221405029296875, 0.0038967132568359375, 0.0154571533203125, -0.0279083251953125, -0.0006203651428222656, 0.00650787353515625, -0.0113677978515625, -0.005672454833984375, -0.002368927001953125, 0.00948333740234375, -0.0330810546875, 0.006816864013671875, -0.016082763671875, -0.0179443359375, -0.026397705078125, 0.00450897216796875, -0.01001739501953125, 0.0870361328125, -0.00234222412109375, -0.01519775390625, 0.032318115234375, -0.034332275390625, -0.00293731689453125, -0.0174713134765625, 0.031524658203125, -0.01322174072265625, -0.038543701171875, -0.034088134765625, 0.041290283203125, -0.028656005859375, 0.0625, 0.032623291015625, -0.01192474365234375, 0.017669677734375, 0.0054473876953125, -0.0021076202392578125, -0.04266357421875, -0.0158538818359375, 0.006290435791015625, -0.005268096923828125, 0.044097900390625, -0.00406646728515625, -0.01349639892578125, 0.0253448486328125, -0.0311126708984375, 0.0382080078125, 0.050567626953125, 0.08013916015625, -0.05474853515625, 0.0168609619140625, 0.01186370849609375, -0.049530029296875, 0.04119873046875, 0.00434112548828125, -0.031005859375, -0.061431884765625, 0.029449462890625, -0.0287628173828125, -0.02496337890625, -0.01026153564453125, -0.009857177734375, -0.004276275634765625, -0.0183258056640625, 0.00719451904296875, -0.006801605224609375, 0.019134521484375, -0.042938232421875, -0.004375457763671875, -0.0210418701171875, 0.0268402099609375, 0.0154266357421875, -0.0220794677734375, -0.032257080078125, -0.0256500244140625, -0.0103759765625, -0.00325775146484375, -0.03302001953125, -0.02972412109375, 0.040191650390625, 0.0382080078125, 0.0823974609375, -0.004077911376953125, 0.01517486572265625, 0.054168701171875, 0.040191650390625, 0.028778076171875, -0.02685546875, 0.0136871337890625, 0.0117340087890625, -0.040130615234375, 0.01318359375, -0.00135040283203125, -0.021881103515625, -0.00994110107421875, -0.014068603515625, 0.00685882568359375, 0.01922607421875, -0.0257568359375, 0.035980224609375, 0.0174102783203125, -0.015625, -0.00457000732421875, 0.02276611328125, -0.054473876953125, -0.02471923828125, 0.009735107421875, -0.031219482421875, -0.0302886962890625, -0.0021800994873046875, -0.01983642578125, 0.06878662109375, -0.0106353759765625, -0.026580810546875, 0.037841796875, 0.036956787109375, -0.056884765625, 0.01076507568359375, -0.0097808837890625, 0.01328277587890625, 0.0258636474609375, 0.0107421875, -0.0207061767578125, -0.005413055419921875, 0.001354217529296875, 0.037689208984375, -0.0187225341796875, -0.004627227783203125, -0.01227569580078125, 0.002170562744140625, 0.0386962890625, 0.066162109375, 0.050567626953125, -0.0011920928955078125, -0.012115478515625, 0.039794921875, 0.04266357421875, -0.032440185546875, 0.03741455078125, 0.009796142578125, -0.039337158203125, 0.005161285400390625, 0.01222991943359375, 0.01514434814453125, 0.0055084228515625, 0.0295562744140625, -0.0267791748046875, -0.0021610260009765625, 0.031585693359375, -0.039306640625, -0.018280029296875, 0.038970947265625, -0.0269012451171875, 0.0013589859008789062, 0.0166168212890625, -0.027862548828125, 0.0232086181640625, -0.02618408203125, -0.023162841796875, -0.00812530517578125, -0.0004832744598388672, -0.007274627685546875, 0.0080718994140625, -0.0260162353515625, 0.043121337890625, 0.0029087066650390625, 0.067138671875, 0.04962158203125, 0.049835205078125, -0.00009441375732421875, 0.02069091796875, 0.006561279296875, 0.07086181640625, -0.042724609375, -0.034942626953125, 0.0033016204833984375, -0.019439697265625, 0.006076812744140625, 0.0150146484375, 0.0002720355987548828, 0.056060791015625, 0.0386962890625, -0.0209197998046875, 0.011962890625, 0.024139404296875, -0.0234832763671875, -0.004184722900390625, 0.00922393798828125, 0.00725555419921875, 0.0457763671875, -0.0098114013671875, 0.00725555419921875, 0.007598876953125, 0.01385498046875, -0.0174560546875, -0.006473541259765625, -0.0175323486328125, 0.01073455810546875, -0.022735595703125, 0.0439453125, -0.02178955078125, 0.033538818359375, -0.06439208984375, -0.072509765625, 0.00928497314453125, 0.0615234375, -0.0137176513671875, 0.01023101806640625, 0.03863525390625, 0.044281005859375, -0.02508544921875, -0.01708984375, 0.044464111328125, -0.01093292236328125, -0.0428466796875, -0.029937744140625, -0.00672149658203125, 0.0235443115234375, 0.00982666015625, 0.01303863525390625, 0.041290283203125, 0.0137176513671875, 0.030059814453125, -0.0178070068359375, 0.02166748046875, -0.031646728515625, 0.048004150390625, 0.0416259765625, 0.05645751953125, 0.06304931640625, -0.03314208984375, -0.0078582763671875, 0.0251312255859375, -0.00287628173828125, -0.027374267578125, 0.00443267822265625, -0.031219482421875, 0.05487060546875, -0.0167083740234375, 0.007068634033203125, 0.0027637481689453125, 0.0017976760864257812, -0.018310546875, 0.01548004150390625, 0.042022705078125, -0.00849151611328125, -0.042938232421875, -0.03271484375, -0.003673553466796875, 0.0253753662109375, -0.004970550537109375, 0.0887451171875, -0.0121002197265625, 0.007472991943359375, -0.008697509765625, 0.0038433074951171875, -0.0251617431640625, -0.0050048828125, -0.04840087890625, -0.006679534912109375, 0.012603759765625, -0.00768280029296875, -0.06793212890625, 0.042938232421875, 0.012847900390625, -0.0121002197265625, 0.00933074951171875, 0.008880615234375, 0.006107330322265625, -0.01012420654296875, -0.031829833984375, -0.038055419921875, -0.05438232421875, -0.0018177032470703125, 0.0184478759765625, -0.0216217041015625, -0.004619598388671875, 0.00403594970703125, -0.0110931396484375, 0.007343292236328125, 0.01509857177734375, -0.0021724700927734375, 0.060089111328125, -0.034149169921875, 0.01788330078125, -0.03240966796875, 0.00897979736328125, 0.00583648681640625, -0.0231475830078125, 0.041229248046875, -0.01427459716796875, 0.0447998046875, -0.002986907958984375, 0.035491943359375, 0.006679534912109375, 0.039764404296875, 0.02374267578125, -0.0372314453125, 0.00677490234375, 0.0215301513671875, -0.01158905029296875, 0.01024627685546875, -0.0037689208984375, -0.0198211669921875, -0.038787841796875, -0.019744873046875, 0.0209503173828125, -0.04315185546875, -0.025787353515625, -0.0687255859375, 0.0276947021484375, 0.0364990234375, 0.0077362060546875, -0.083740234375, 0.054931640625, -0.0249176025390625, 0.054473876953125, -0.021575927734375, 0.00713348388671875, 0.0186309814453125, 0.044952392578125, -0.042327880859375, -0.018218994140625, -0.00641632080078125, 0.0121917724609375, -0.0104827880859375, -0.0093231201171875, -0.016387939453125, -0.006587982177734375, 0.0093841552734375, -0.02630615234375, -0.003627777099609375, 0.025970458984375, 0.05694580078125, -0.0019130706787109375, 0.059814453125, -0.032562255859375, -0.043731689453125, -0.073974609375, 0.0113983154296875, -0.09478759765625, -0.013702392578125, -0.0210113525390625, 0.0226898193359375, 0.042022705078125, -0.0252685546875, -0.07757568359375, -0.0025482177734375, -0.0159149169921875, -0.0361328125, -0.051727294921875, -0.0198516845703125, -0.02032470703125, 0.071044921875, -0.00730133056640625, -0.02935791015625, -0.0204620361328125, 0.05194091796875, 0.051910400390625, -0.034881591796875, 0.045379638671875, 0.04351806640625, -0.07354736328125, 0.026214599609375, 0.0011892318725585938, 0.00870513916015625, 0.01561737060546875, -0.0059051513671875, 0.02496337890625, 0.061126708984375, -0.029052734375, -0.02984619140625, -0.0167083740234375, -0.0362548828125, -0.0052642822265625, -0.03448486328125, -0.025909423828125, -0.0302581787109375, 0.074951171875, 0.036285400390625, 0.0196533203125, -0.0087127685546875, -0.0171051025390625, -0.044952392578125, -0.01186370849609375, -0.024993896484375, 0.02349853515625, -0.09661865234375, -0.0203704833984375, 0.041717529296875, -0.0209808349609375, -0.03143310546875, 0.0552978515625, -0.03399658203125, -0.0005078315734863281, 0.029632568359375, -0.0263214111328125, -0.0279693603515625, -0.022857666015625, 0.00957489013671875, -0.004703521728515625, -0.0027866363525390625, -0.006168365478515625, 0.0162353515625, -0.01806640625, 0.01003265380859375, -0.019439697265625, -0.0179595947265625, -0.01715087890625, 0.031829833984375, -0.007232666015625, 0.035980224609375, -0.03741455078125, -0.004436492919921875, 0.0149993896484375, 0.01702880859375, 0.005443572998046875, 0.0172882080078125, -0.046234130859375, 0.0323486328125, -0.0139617919921875, 0.043243408203125, -0.006366729736328125, 0.0020542144775390625, -0.0219268798828125, 0.0282745361328125, -0.023040771484375, -0.005313873291015625, -0.004161834716796875, -0.005672454833984375, 0.0177154541015625, 0.03997802734375, 0.018890380859375, -0.0092315673828125, 0.0100860595703125, -0.0253753662109375, 0.0236663818359375, -0.0013494491577148438 ]
b0d7b8a00b67540c1a2e63b47f8f0fa107529603
Wordpress Stackexchange Q: WP function/filter for modifying http headers? Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers? For now I just hook a PHP header() call into the WP 'init' hook like this: add_action('init', 'add_header_xua'); function add_header_xua(){ if(!is_admin()){ header('X-UA-Compatible: IE=edge,chrome=1'); } } But is this the correct way to do that? A: The init action is the wrong place to do it. A better place would be at template_redirect, so that you only affect the front end view of the site and not the admin areas.
Q: WP function/filter for modifying http headers? Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers? For now I just hook a PHP header() call into the WP 'init' hook like this: add_action('init', 'add_header_xua'); function add_header_xua(){ if(!is_admin()){ header('X-UA-Compatible: IE=edge,chrome=1'); } } But is this the correct way to do that? A: The init action is the wrong place to do it. A better place would be at template_redirect, so that you only affect the front end view of the site and not the admin areas. A: send_headers is the preferred method over wp_headers for this situation as demonstrated in the codex. is_admin() || add_action('send_headers', function(){ header('X-UA-Compatible: IE=edge,chrome=1'); }, 1); Here's my explanation for why on a similar question. A: Here is the code I've used, based on the original question and on Dominic P's answer... /* * Modify HTTP header */ function add_header_xua($headers) { // var_dump($headers); #=> if you want to see the current headers... if (!is_admin()) { $headers['X-UA-Compatible'] = 'IE=edge,chrome=1'; } return $headers; } add_filter('wp_headers', 'add_header_xua'); Once you've added that code to your functions.php file, you can check it works by running a test at http://web-sniffer.net/ to ensure the HTTP headers have indeed changed. A: I know it's been a while, but if anyone else stumbles on this, I found a WordPress hook specifically for modifying HTTP headers. The hook is wp_headers and it's called in the wp class. The first argument passed is an array of headers with the header name as the key. The second argument is a reference to the wp class object.
wordpress
{ "language": "en", "length": 264, "provenance": "stackexchange_00019.jsonl.gz:410386", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20192" }
[ 0.047271728515625, 0.006103515625, -0.03387451171875, -0.0167236328125, 0.022552490234375, -0.04595947265625, 0.04034423828125, -0.0147552490234375, -0.034149169921875, 0.035400390625, 0.01483917236328125, 0.01104736328125, 0.0148468017578125, -0.0265350341796875, 0.0148773193359375, -0.016510009765625, 0.0247344970703125, -0.0007967948913574219, 0.0269012451171875, -0.0038776397705078125, -0.0038776397705078125, 0.0173797607421875, -0.0052337646484375, 0.0203094482421875, -0.001964569091796875, -0.0297088623046875, 0.034515380859375, -0.036163330078125, -0.00658416748046875, -0.018890380859375, 0.000812530517578125, 0.0285186767578125, 0.012176513671875, 0.043731689453125, -0.04327392578125, 0.037933349609375, -0.01427459716796875, 0.0239105224609375, 0.003963470458984375, 0.033538818359375, 0.038543701171875, -0.019561767578125, -0.005859375, 0.033782958984375, -0.004215240478515625, -0.06390380859375, 0.06378173828125, -0.0413818359375, 0.017608642578125, -0.006008148193359375, -0.00446319580078125, 0.002475738525390625, 0.00952911376953125, -0.035369873046875, -0.003387451171875, 0.0006690025329589844, -0.0165863037109375, 0.0290069580078125, 0.035247802734375, 0.010833740234375, -0.02630615234375, -0.0076751708984375, 0.004169464111328125, -0.031951904296875, 0.0252685546875, -0.00902557373046875, 0.017120361328125, 0.0189208984375, -0.066650390625, 0.0220794677734375, 0.054779052734375, -0.04449462890625, -0.025054931640625, -0.0007624626159667969, -0.0218963623046875, -0.037933349609375, 0.0283203125, -0.0362548828125, -0.003223419189453125, 0.02899169921875, 0.05682373046875, -0.00357818603515625, 0.00019228458404541016, -0.0143585205078125, 0.0254669189453125, 0.024017333984375, 0.00484466552734375, -0.046173095703125, -0.0307159423828125, -0.004245758056640625, -0.025054931640625, -0.033294677734375, -0.037261962890625, -0.0017223358154296875, 0.00335693359375, -0.01483917236328125, -0.007656097412109375, -0.0105743408203125, 0.0215301513671875, 0.043243408203125, -0.00286865234375, -0.0394287109375, 0.0811767578125, -0.0401611328125, 0.012969970703125, 0.0479736328125, -0.003887176513671875, 0.061767578125, 0.05267333984375, 0.0190582275390625, 0.0097503662109375, 0.032623291015625, 0.01690673828125, -0.0039825439453125, -0.0645751953125, -0.00843048095703125, 0.0001857280731201172, -0.0265960693359375, 0.0079193115234375, -0.021331787109375, 0.00313568115234375, 0.0017213821411132812, 0.05029296875, 0.0026836395263671875, -0.00045490264892578125, 0.0036067962646484375, -0.02783203125, -0.051361083984375, 0.004535675048828125, -0.0097198486328125, -0.013885498046875, 0.035308837890625, 0.01031494140625, 0.0020122528076171875, -0.00905609130859375, -0.004909515380859375, 0.0615234375, 0.005184173583984375, 0.004604339599609375, 0.01198577880859375, 0.04736328125, -0.03485107421875, -0.0750732421875, 0.03485107421875, 0.0283966064453125, -0.023651123046875, -0.0036487579345703125, 0.04925537109375, 0.0244903564453125, 0.0008859634399414062, 0.025360107421875, -0.0068206787109375, 0.01552581787109375, 0.00530242919921875, 0.0081939697265625, 0.00592041015625, 0.0022754669189453125, -0.00508880615234375, -0.01226806640625, -0.00518035888671875, -0.01401519775390625, -0.0257415771484375, -0.00936126708984375, -0.0217437744140625, -0.051422119140625, 0.039581298828125, 0.006381988525390625, -0.00360107421875, 0.0201873779296875, 0.01461029052734375, 0.0007681846618652344, 0.026092529296875, 0.023223876953125, 0.009368896484375, 0.0005474090576171875, -0.01390838623046875, -0.00902557373046875, 0.057403564453125, -0.01263427734375, 0.053131103515625, 0.040435791015625, -0.0312042236328125, 0.041961669921875, 0.00897216796875, -0.061492919921875, 0.0511474609375, 0.0106964111328125, 0.08123779296875, -0.0016155242919921875, 0.01320648193359375, 0.02825927734375, 0.0011444091796875, -0.02069091796875, -0.024566650390625, -0.0092620849609375, -0.046142578125, 0.015899658203125, -0.032501220703125, -0.00708770751953125, 0.068115234375, 0.018096923828125, 0.02215576171875, 0.002628326416015625, 0.0012302398681640625, -0.02825927734375, 0.02911376953125, -0.0233001708984375, 0.0340576171875, 0.03973388671875, 0.01904296875, -0.0161285400390625, -0.00527191162109375, -0.005786895751953125, -0.01259613037109375, -0.03729248046875, -0.004146575927734375, 0.00211334228515625, 0.0151214599609375, 0.01385498046875, 0.022247314453125, 0.0265655517578125, -0.0016603469848632812, 0.00623321533203125, -0.0020198822021484375, 0.00337982177734375, -0.0088958740234375, -0.0017490386962890625, 0.0022106170654296875, 0.026153564453125, 0.011199951171875, 0.01251220703125, 0.01788330078125, 0.0291290283203125, 0.0474853515625, -0.021240234375, -0.00939178466796875, -0.0372314453125, -0.0775146484375, -0.00981903076171875, 0.059814453125, 0.048187255859375, 0.01061248779296875, 0.0020427703857421875, 0.0157318115234375, 0.0548095703125, -0.056396484375, 0.0032825469970703125, 0.00954437255859375, -0.0006532669067382812, -0.01479339599609375, 0.01348876953125, -0.03302001953125, 0.036468505859375, -0.07867431640625, 0.042999267578125, 0.01461029052734375, -0.032928466796875, -0.04522705078125, -0.0027008056640625, 0.001636505126953125, 0.0169525146484375, -0.0292510986328125, -0.043365478515625, 0.00811767578125, 0.057464599609375, -0.0308380126953125, 0.020355224609375, 0.0009660720825195312, -0.0321044921875, -0.0088958740234375, 0.040496826171875, -0.00997161865234375, -0.0038700103759765625, 0.056732177734375, 0.039459228515625, 0.032257080078125, -0.0283660888671875, -0.01241302490234375, -0.01209259033203125, 0.04052734375, -0.019195556640625, 0.0174407958984375, -0.005496978759765625, -0.0081787109375, -0.0235137939453125, -0.01421356201171875, 0.0286865234375, 0.0198211669921875, 0.037567138671875, -0.00916290283203125, 0.012054443359375, 0.00493621826171875, -0.0496826171875, 0.06988525390625, -0.0096893310546875, -0.035858154296875, -0.0177764892578125, -0.043853759765625, 0.0217742919921875, -0.019439697265625, 0.04718017578125, 0.06939697265625, 0.00827789306640625, 0.0086517333984375, -0.0019197463989257812, -0.0146942138671875, -0.00858306884765625, 0.01409149169921875, -0.003009796142578125, -0.0207061767578125, -0.024322509765625, 0.0260772705078125, 0.014404296875, -0.01348876953125, 0.0019588470458984375, -0.02587890625, -0.032501220703125, -0.00098419189453125, -0.08343505859375, -0.03131103515625, -0.0186767578125, -0.051055908203125, 0.00560760498046875, -0.007427215576171875, -0.02032470703125, 0.0024547576904296875, 0.006488800048828125, 0.00997161865234375, 0.02740478515625, 0.0078125, -0.029327392578125, 0.0025005340576171875, -0.063720703125, -0.02520751953125, -0.00811767578125, 0.0025348663330078125, 0.000014901161193847656, 0.0287017822265625, -0.004123687744140625, -0.038421630859375, -0.00858306884765625, 0.00911712646484375, -0.0092010498046875, -0.0025920867919921875, 0.023712158203125, -0.07525634765625, 0.0164642333984375, -0.0152587890625, 0.014678955078125, 0.0247039794921875, -0.0031948089599609375, 0.00891876220703125, -0.0268707275390625, -0.041900634765625, -0.03851318359375, 0.039093017578125, 0.039794921875, -0.0792236328125, -0.0159912109375, -0.09954833984375, 0.00890350341796875, 0.02569580078125, -0.00525665283203125, -0.0015716552734375, -0.00672149658203125, -0.03851318359375, 0.01549530029296875, -0.006107330322265625, -0.00972747802734375, -0.003429412841796875, 0.0194549560546875, -0.03485107421875, 0.028350830078125, 0.001987457275390625, -0.000675201416015625, -0.006572723388671875, 0.00812530517578125, -0.016021728515625, 0.00684356689453125, 0.0081634521484375, 0.00928497314453125, -0.0034847259521484375, 0.0018262863159179688, -0.048004150390625, -0.03692626953125, 0.045928955078125, -0.007808685302734375, 0.0163116455078125, -0.019195556640625, -0.03460693359375, -0.002956390380859375, 0.0943603515625, -0.00823974609375, -0.022064208984375, 0.005382537841796875, 0.0167694091796875, -0.01629638671875, -0.038543701171875, -0.0174713134765625, -0.0155029296875, -0.07293701171875, 0.0267486572265625, -0.0089263916015625, -0.0121002197265625, -0.0355224609375, 0.02301025390625, -0.049346923828125, -0.0384521484375, 0.00612640380859375, 0.0204010009765625, -0.03399658203125, 0.06427001953125, -0.043548583984375, 0.049285888671875, 0.008544921875, -0.0294189453125, -0.0230865478515625, -0.00579071044921875, -0.05181884765625, 0.05010986328125, 0.056365966796875, -0.059906005859375, 0.0024623870849609375, 0.01134490966796875, 0.0102691650390625, 0.014312744140625, -0.0003190040588378906, -0.0007791519165039062, 0.0214080810546875, -0.03662109375, -0.008209228515625, -0.02447509765625, -0.035430908203125, -0.01171875, -0.036895751953125, 0.03155517578125, 0.0271148681640625, 0.00788116455078125, 0.047149658203125, -0.0189361572265625, -0.061798095703125, -0.06201171875, -0.0229034423828125, 0.0107879638671875, -0.041839599609375, 0.038726806640625, -0.0545654296875, -0.05865478515625, 0.053863525390625, -0.01358795166015625, 0.0025882720947265625, -0.0152130126953125, 0.07745361328125, 0.0167236328125, -0.0229644775390625, 0.03179931640625, 0.0003769397735595703, 0.018768310546875, -0.01629638671875, 0.050537109375, -0.01345062255859375, -0.01751708984375, 0.09405517578125, -0.0267333984375, 0.0232086181640625, -0.004016876220703125, 0.024505615234375, 0.031280517578125, 0.0173797607421875, 0.006778717041015625, 0.050537109375, -0.018341064453125, -0.03485107421875, -0.014556884765625, 0.017913818359375, 0.04534912109375, 0.0157928466796875, 0.0013990402221679688, -0.029876708984375, -0.03314208984375, -0.005329132080078125, 0.005596160888671875, -0.0168609619140625, 0.0538330078125, 0.023956298828125, 0.0039005279541015625, -0.005336761474609375, 0.007427215576171875, 0.042266845703125, -0.029327392578125, 0.0162811279296875, -0.0926513671875, 0.075927734375, -0.048095703125, -0.00003635883331298828, -0.00922393798828125, -0.01934814453125, 0.060272216796875, 0.0350341796875, -0.0299072265625, 0.0215911865234375, -0.00638580322265625, 0.0039215087890625, -0.01202392578125, -0.0233612060546875, 0.006458282470703125, 0.0025920867919921875, -0.02117919921875, -0.01513671875, -0.02716064453125, -0.01194000244140625, -0.03192138671875, 0.034454345703125, 0.00890350341796875, -0.00432586669921875, 0.01502227783203125, 0.01493072509765625, 0.049560546875, -0.01433563232421875, -0.006832122802734375, 0.050537109375, 0.032012939453125, 0.01297760009765625, -0.007717132568359375, 0.0186309814453125, 0.004444122314453125, -0.01422119140625, 0.01271820068359375, -0.018157958984375, -0.043975830078125, 0.0178985595703125, 0.018341064453125, 0.003612518310546875, 0.0389404296875, -0.005596160888671875, 0.0303497314453125, -0.00916290283203125, 0.04425048828125, 0.011932373046875, -0.03021240234375, -0.023040771484375, 0.00664520263671875, 0.04632568359375, -0.01763916015625, -0.0196380615234375, -0.004352569580078125, -0.02410888671875, 0.0193634033203125, -0.0188446044921875, -0.0162506103515625, 0.00774383544921875, -0.002826690673828125, -0.0034732818603515625, -0.03167724609375, -0.03387451171875, -0.02166748046875, -0.0170440673828125, -0.0061492919921875, 0.0260009765625, 0.03021240234375, -0.0247344970703125, -0.003208160400390625, -0.006389617919921875, 0.01398468017578125, -0.02508544921875, 0.00835418701171875, 0.046295166015625, 0.015228271484375, -0.065673828125, 0.0029468536376953125, -0.0275726318359375, 0.00453948974609375, -0.049896240234375, -0.035614013671875, -0.031402587890625, 0.0190887451171875, -0.01473236083984375, 0.0178680419921875, -0.0131378173828125, 0.0182342529296875, -0.01187896728515625, 0.0290679931640625, 0.01081085205078125, 0.045196533203125, -0.04150390625, 0.06494140625, 0.017333984375, 0.0218048095703125, 0.0018568038940429688, 0.05767822265625, 0.046722412109375, -0.0206451416015625, 0.01995849609375, -0.015533447265625, -0.028533935546875, -0.0247955322265625, -0.03240966796875, 0.0098419189453125, 0.0650634765625, -0.0147857666015625, 0.02679443359375, -0.0257110595703125, 0.00510406494140625, -0.0307159423828125, -0.00778961181640625, -0.04925537109375, -0.01480865478515625, 0.0140838623046875, 0.0221099853515625, 0.01093292236328125, -0.0482177734375, -0.03607177734375, 0.042144775390625, 0.018951416015625, 0.0287933349609375, -0.037628173828125, -0.08697509765625, 0.06427001953125, 0.0919189453125, 0.035614013671875, 0.06121826171875, -0.0008854866027832031, 0.02313232421875, 0.026336669921875, -0.00937652587890625, -0.0132293701171875, -0.006031036376953125, 0.026519775390625, 0.0151519775390625, 0.01053619384765625, 0.055877685546875, -0.01016998291015625, 0.025177001953125, 0.049713134765625, 0.07611083984375, -0.08624267578125, 0.030914306640625, 0.039093017578125, 0.0206451416015625, 0.035064697265625, -0.005840301513671875, -0.0345458984375, -0.040130615234375, 0.0701904296875, -0.024169921875, 0.0028324127197265625, 0.03826904296875, 0.020050048828125, -0.0269317626953125, -0.018707275390625, 0.0169677734375, -0.00222015380859375, 0.0014886856079101562, -0.0265655517578125, 0.005962371826171875, -0.0484619140625, -0.0196075439453125, 0.049285888671875, 0.01433563232421875, 0.0005903244018554688, -0.0361328125, 0.042572021484375, 0.017913818359375, -0.034027099609375, 0.0479736328125, -0.01508331298828125, 0.05072021484375, 0.052520751953125, -0.01512908935546875, 0.0205078125, 0.008209228515625, 0.04058837890625, -0.0311279296875, -0.031341552734375, 0.018035888671875, 0.051116943359375, -0.03399658203125, 0.023681640625, -0.003284454345703125, -0.0268096923828125, -0.005161285400390625, -0.048736572265625, 0.034454345703125, -0.037384033203125, -0.0054168701171875, 0.02679443359375, -0.0220794677734375, -0.01468658447265625, 0.0143890380859375, 0.003864288330078125, -0.04437255859375, -0.0311279296875, 0.00406646728515625, -0.0633544921875, 0.002216339111328125, 0.02606201171875, -0.06597900390625, 0.09332275390625, 0.04193115234375, 0.0293121337890625, -0.011260986328125, 0.02947998046875, -0.04705810546875, -0.00023746490478515625, -0.0306854248046875, 0.03759765625, 0.0179290771484375, 0.038818359375, -0.04254150390625, -0.01113128662109375, -0.0009260177612304688, 0.03753662109375, 0.005352020263671875, -0.006561279296875, 0.0022754669189453125, 0.0028018951416015625, 0.0228729248046875, 0.0018396377563476562, -0.010162353515625, 0.0287628173828125, -0.0179901123046875, -0.0176544189453125, -0.018829345703125, -0.017578125, 0.0234222412109375, -0.0430908203125, -0.0325927734375, -0.00551605224609375, 0.0140838623046875, 0.016021728515625, -0.0213623046875, 0.051422119140625, -0.09033203125, -0.01358795166015625, 0.056640625, -0.0038738250732421875, -0.042816162109375, 0.035980224609375, -0.026611328125, -0.0109405517578125, -0.00787353515625, -0.037628173828125, 0.02313232421875, -0.00896453857421875, 0.01139068603515625, 0.02276611328125, 0.019561767578125, -0.0076751708984375, -0.01132965087890625, 0.006816864013671875, 0.0382080078125, -0.0443115234375, 0.038818359375, 0.032623291015625, 0.0382080078125, 0.003627777099609375, -0.00021088123321533203, 0.00951385498046875, 0.03729248046875, -0.021759033203125, -0.017303466796875, -0.002765655517578125, 0.01346588134765625, 0.0421142578125, -0.011383056640625, 0.07354736328125, -0.0248565673828125, -0.0142822265625, 0.01290130615234375, 0.019012451171875, 0.04345703125, -0.0003020763397216797, 0.03668212890625, 0.06781005859375, -0.06298828125, 0.032867431640625, -0.0379638671875, 0.007568359375, -0.004940032958984375, 0.038909912109375, 0.01371002197265625, 0.034759521484375, 0.00261688232421875, -0.015106201171875, -0.030426025390625, 0.031158447265625, -0.01561737060546875, 0.040985107421875, -0.050628662109375, -0.0286712646484375, -0.0007843971252441406, 0.04315185546875, 0.0126495361328125, -0.007373809814453125, 0.04510498046875, 0.01084136962890625, -0.052581787109375, -0.0045013427734375, 0.009185791015625, -0.036834716796875, 0.00998687744140625, -0.032012939453125, 0.017608642578125, 0.028106689453125, 0.00542449951171875, 0.00385284423828125, -0.010223388671875, 0.056060791015625, -0.04803466796875, 0.027008056640625, -0.01343536376953125, -0.044464111328125, 0.0306396484375, 0.00722503662109375, 0.0570068359375, -0.00804901123046875, -0.053131103515625, -0.0026226043701171875, -0.02313232421875, -0.0855712890625, 0.0771484375, 0.06817626953125, -0.035919189453125, 0.01026153564453125, 0.01177978515625, -0.005252838134765625, -0.0162811279296875, 0.00494384765625, 0.0037631988525390625, 0.0009598731994628906, 0.0137481689453125, 0.004241943359375, -0.01264190673828125, -0.01198577880859375, -0.0173187255859375, 0.0452880859375, 0.048675537109375, 0.05291748046875, -0.0190277099609375, 0.047210693359375, 0.027069091796875, -0.0219573974609375, 0.03204345703125, 0.0291748046875, 0.0207366943359375, 0.00225830078125, -0.0098114013671875, -0.0240020751953125, -0.0609130859375, 0.021026611328125, 0.0178985595703125, -0.0245361328125, 0.0377197265625, -0.01338958740234375, 0.01641845703125, -0.029388427734375, 0.0626220703125, -0.01456451416015625, -0.04364013671875, -0.07781982421875, -0.02716064453125, 0.045135498046875, 0.048736572265625, 0.01380157470703125, 0.0211029052734375, 0.01073455810546875, -0.0096435546875, -0.0061798095703125, -0.0034694671630859375, 0.0057220458984375, 0.032257080078125, -0.040191650390625, -0.005115509033203125, 0.041534423828125, -0.0082244873046875, 0.0124053955078125, 0.01078033447265625, 0.0218353271484375, 0.01204681396484375, -0.043609619140625, -0.04351806640625, 0.0027866363525390625, 0.01532745361328125, -0.022369384765625, 0.015777587890625, -0.0032596588134765625, -0.00689697265625, -0.00978851318359375, 0.004924774169921875, -0.0185394287109375, -0.020111083984375, -0.027130126953125, 0.003261566162109375, -0.030120849609375, -0.07806396484375, -0.0587158203125, 0.0130462646484375, 0.0404052734375, -0.014373779296875, -0.0213165283203125, -0.008514404296875, -0.04498291015625, 0.0665283203125, 0.00609588623046875, 0.0013446807861328125, -0.0216522216796875, 0.020721435546875, -0.03131103515625, -0.0751953125, -0.0562744140625, 0.056732177734375, -0.07763671875, -0.0101165771484375, 0.0518798828125, -0.004398345947265625, -0.027587890625, -0.0283966064453125, -0.0216217041015625, 0.040008544921875, -0.08197021484375, -0.037567138671875, 0.0208892822265625, -0.026092529296875, -0.000591278076171875, -0.0192718505859375, 0.01114654541015625, -0.0662841796875, -0.0094757080078125, -0.007537841796875, -0.014862060546875, -0.01386260986328125, -0.04876708984375, -0.06146240234375, 0.0489501953125, 0.000247955322265625, -0.024505615234375, -0.08673095703125, 0.044281005859375, 0.00927734375, -0.0173187255859375, -0.036773681640625, -0.019317626953125, -0.021270751953125, 0.0266265869140625, 0.01739501953125, 0.03057861328125, 0.0178680419921875, 0.00952911376953125, 0.012939453125, 0.05206298828125, 0.0491943359375, 0.0218048095703125, -0.019989013671875, -0.0020656585693359375, 0.042327880859375, 0.051971435546875, 0.00980377197265625, 0.035552978515625, 0.035400390625, -0.0352783203125, -0.008148193359375, -0.007656097412109375, -0.0147705078125, -0.0208282470703125, 0.043365478515625, 0.0360107421875, 0.007152557373046875, -0.005092620849609375, 0.0071868896484375, -0.0115966796875, 0.00817108154296875, 0.0078277587890625, -0.00913238525390625, -0.014556884765625, 0.00008594989776611328, 0.018218994140625, 0.020721435546875, -0.0447998046875, 0.00008952617645263672, -0.0047454833984375, -0.0300140380859375, 0.0213623046875, -0.006103515625, 0.0251007080078125, -0.0119781494140625, 0.0623779296875, -0.04925537109375, -0.0231475830078125, 0.0057830810546875, 0.0296478271484375, 0.0038967132568359375, -0.024200439453125, -0.00213623046875, 0.0428466796875, -0.0258331298828125, 0.00882720947265625, 0.011199951171875, 0.013427734375, -0.01776123046875, 0.0037994384765625, -0.006290435791015625, 0.025726318359375, -0.0106964111328125, 0.0218658447265625, -0.0116119384765625, 0.01739501953125, -0.020477294921875, 0.050201416015625, -0.02386474609375, 0.007160186767578125, -0.0287628173828125, 0.01291656494140625, 0.0116424560546875, 0.0030059814453125, 0.058441162109375, -0.016143798828125, -0.0160369873046875, 0.0211334228515625, -0.027130126953125, -0.051605224609375, 0.036712646484375, -0.05792236328125, 0.01654052734375, 0.0245361328125 ]
a9a1c2177e55364e45f7aeff81c8764b63d8abd1
Wordpress Stackexchange Q: Transient / object cache maximum key length Possible Duplicate: Long option names fail silently? The WordPress Transients API makes it easy to save expensive values and look them up later. If you install an object backend (such as APC object cache, memcache or W3 Total Cache) you can cache these values between requests, gaining even more. But I've noticed that when the name of a transient field is too long, it simply doesn't bother caching it. Aside from being somewhere in the region of 50 characters, I don't know what the maximum length of these names is. Is this documented somewhere? Does it depend on what backend you're using? A: A transient that doesn't expire has a max name length of 53 characters yet a transient that does expire has a max name length of 45 characters. http://core.trac.wordpress.org/ticket/15058
Q: Transient / object cache maximum key length Possible Duplicate: Long option names fail silently? The WordPress Transients API makes it easy to save expensive values and look them up later. If you install an object backend (such as APC object cache, memcache or W3 Total Cache) you can cache these values between requests, gaining even more. But I've noticed that when the name of a transient field is too long, it simply doesn't bother caching it. Aside from being somewhere in the region of 50 characters, I don't know what the maximum length of these names is. Is this documented somewhere? Does it depend on what backend you're using? A: A transient that doesn't expire has a max name length of 53 characters yet a transient that does expire has a max name length of 45 characters. http://core.trac.wordpress.org/ticket/15058
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:410388", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20196" }
[ -0.001148223876953125, -0.0184478759765625, 0.0039520263671875, -0.0008344650268554688, -0.03076171875, -0.00970458984375, 0.016082763671875, -0.006099700927734375, 0.0035724639892578125, 0.0316162109375, 0.00699615478515625, -0.036651611328125, 0.02557373046875, -0.032318115234375, -0.0227508544921875, -0.0219879150390625, 0.041290283203125, -0.0121002197265625, 0.03143310546875, -0.01297760009765625, -0.0007433891296386719, 0.0204315185546875, 0.038177490234375, 0.05059814453125, 0.0452880859375, -0.08807373046875, 0.08349609375, -0.04547119140625, 0.037384033203125, -0.033447265625, 0.0323486328125, -0.00566864013671875, 0.0306243896484375, 0.0249176025390625, -0.040130615234375, 0.0182952880859375, 0.004627227783203125, 0.015289306640625, -0.00212860107421875, 0.01003265380859375, 0.0222320556640625, -0.0175628662109375, 0.0244903564453125, -0.0004646778106689453, 0.0003249645233154297, -0.0092926025390625, 0.00878143310546875, -0.052215576171875, 0.050994873046875, 0.02679443359375, -0.01535797119140625, 0.00884246826171875, -0.012939453125, -0.000002384185791015625, -0.0173797607421875, -0.0308380126953125, -0.008819580078125, 0.0006489753723144531, 0.0271759033203125, 0.0167083740234375, -0.00484466552734375, 0.0012922286987304688, 0.00490570068359375, -0.0203857421875, -0.01080322265625, -0.0168609619140625, 0.03289794921875, 0.01384735107421875, 0.0110015869140625, -0.0029163360595703125, 0.024658203125, 0.010223388671875, 0.00737762451171875, -0.021728515625, -0.0166015625, -0.00818634033203125, 0.0308380126953125, -0.01317596435546875, 0.00833892822265625, -0.0181427001953125, 0.01329803466796875, -0.0201568603515625, -0.022857666015625, 0.006134033203125, 0.00559234619140625, 0.017822265625, -0.00547027587890625, -0.01206207275390625, -0.0033206939697265625, -0.02880859375, -0.005672454833984375, -0.0418701171875, -0.034271240234375, 0.041748046875, 0.0190887451171875, -0.03399658203125, -0.0155487060546875, -0.01317596435546875, -0.0054168701171875, 0.0177764892578125, 0.017181396484375, -0.042938232421875, 0.051666259765625, -0.0280609130859375, 0.0035762786865234375, 0.0212249755859375, 0.00962066650390625, 0.0104522705078125, 0.0270538330078125, 0.007335662841796875, -0.0164794921875, 0.005970001220703125, 0.0153656005859375, 0.0029449462890625, 0.00969696044921875, -0.056640625, -0.061859130859375, 0.060699462890625, -0.0034542083740234375, -0.008697509765625, 0.0108184814453125, 0.0258331298828125, -0.044891357421875, -0.0108642578125, -0.012847900390625, -0.0272064208984375, -0.0233612060546875, 0.025054931640625, -0.0208587646484375, 0.0283050537109375, 0.00208282470703125, 0.006988525390625, -0.014434814453125, -0.00569915771484375, -0.0243377685546875, -0.01316070556640625, 0.0010204315185546875, -0.0044097900390625, -0.01477813720703125, 0.01953125, -0.002086639404296875, -0.0168304443359375, 0.0274200439453125, -0.016265869140625, -0.01027679443359375, 0.017913818359375, 0.00881195068359375, 0.01480865478515625, -0.009002685546875, -0.049163818359375, 0.0160369873046875, -0.0224456787109375, 0.05377197265625, -0.01134490966796875, -0.07122802734375, -0.05291748046875, -0.0038547515869140625, -0.041839599609375, -0.0299224853515625, -0.06744384765625, -0.022430419921875, -0.05023193359375, -0.01560211181640625, -0.045013427734375, -0.05615234375, 0.054595947265625, -0.004474639892578125, 0.006221771240234375, 0.0220947265625, 0.07666015625, -0.013092041015625, -0.025238037109375, 0.0103912353515625, -0.00655364990234375, -0.03729248046875, 0.003936767578125, -0.031646728515625, 0.0472412109375, 0.044921875, -0.06756591796875, -0.046661376953125, -0.057342529296875, 0.064697265625, -0.0268707275390625, -0.04571533203125, -0.004627227783203125, 0.016326904296875, 0.0491943359375, 0.0214996337890625, 0.01702880859375, 0.047760009765625, 0.01561737060546875, 0.0029544830322265625, 0.0200042724609375, 0.001033782958984375, 0.00470733642578125, -0.012298583984375, 0.03167724609375, -0.007778167724609375, -0.051849365234375, 0.038482666015625, -0.0211181640625, 0.023406982421875, -0.05072021484375, -0.03729248046875, -0.017425537109375, -0.0177001953125, 0.02557373046875, -0.01971435546875, 0.025146484375, 0.0237579345703125, 0.01500701904296875, -0.033050537109375, 0.015350341796875, 0.00567626953125, -0.0200347900390625, -0.0019216537475585938, 0.01171875, 0.0221710205078125, -0.01544189453125, 0.041534423828125, 0.01061248779296875, 0.0262603759765625, -0.01125335693359375, 0.0137481689453125, 0.01401519775390625, -0.01451873779296875, 0.0090179443359375, 0.0153961181640625, 0.01467132568359375, 0.01308441162109375, -0.01177978515625, -0.0014162063598632812, -0.0193328857421875, -0.0249481201171875, -0.00960540771484375, -0.0269012451171875, -0.0850830078125, 0.0033664703369140625, 0.06951904296875, 0.0230865478515625, 0.0030879974365234375, -0.006866455078125, 0.037567138671875, 0.0171051025390625, -0.0225830078125, 0.01354217529296875, 0.0007739067077636719, 0.01361083984375, 0.027069091796875, -0.01175689697265625, -0.0100555419921875, 0.00586700439453125, -0.044403076171875, 0.01300811767578125, 0.0122833251953125, -0.037139892578125, -0.01708984375, 0.004913330078125, 0.00054168701171875, 0.004322052001953125, -0.02960205078125, 0.015838623046875, -0.0150299072265625, 0.0174102783203125, 0.01422119140625, 0.0109710693359375, 0.003082275390625, -0.01393890380859375, 0.0489501953125, 0.0026226043701171875, -0.095947265625, 0.004413604736328125, -0.034271240234375, 0.039398193359375, -0.043487548828125, -0.01265716552734375, 0.0140380859375, 0.0015020370483398438, -0.051055908203125, -0.018585205078125, 0.053680419921875, 0.00439453125, -0.0149078369140625, -0.0252685546875, -0.01227569580078125, -0.007305145263671875, -0.0416259765625, 0.0007920265197753906, 0.01528167724609375, 0.0142059326171875, 0.0638427734375, 0.00921630859375, 0.031951904296875, 0.0170440673828125, 0.00848388671875, 0.03753662109375, -0.0372314453125, 0.035980224609375, -0.0263671875, 0.048431396484375, 0.06817626953125, -0.04486083984375, 0.04486083984375, -0.0010023117065429688, 0.0389404296875, 0.02783203125, -0.00295257568359375, -0.01270294189453125, -0.01239776611328125, -0.0274200439453125, -0.019500732421875, 0.0207061767578125, 0.07196044921875, 0.004161834716796875, -0.0294036865234375, 0.0184783935546875, 0.0614013671875, -0.0237274169921875, -0.053436279296875, 0.01788330078125, 0.0183563232421875, -0.051544189453125, 0.025970458984375, -0.0034389495849609375, 0.012237548828125, 0.00901031494140625, -0.025421142578125, -0.0030231475830078125, -0.046905517578125, -0.049591064453125, -0.07708740234375, -0.048126220703125, -0.039886474609375, 0.0004820823669433594, -0.022674560546875, 0.0002543926239013672, 0.0229339599609375, -0.0163421630859375, -0.07586669921875, -0.05645751953125, -0.0233154296875, -0.01332855224609375, -0.0181884765625, 0.012603759765625, -0.002117156982421875, 0.00603485107421875, -0.005035400390625, 0.0175933837890625, 0.040496826171875, -0.0313720703125, 0.0016460418701171875, -0.006183624267578125, -0.01448822021484375, 0.042236328125, 0.026336669921875, -0.00873565673828125, 0.045318603515625, 0.0755615234375, -0.0164947509765625, -0.059814453125, 0.0221405029296875, -0.040985107421875, 0.0088043212890625, -0.0077362060546875, 0.00023508071899414062, -0.009735107421875, 0.053680419921875, -0.05126953125, -0.041656494140625, -0.0055084228515625, -0.06890869140625, -0.0137176513671875, 0.006160736083984375, 0.01007080078125, 0.05511474609375, 0.03741455078125, -0.030487060546875, 0.0225067138671875, 0.0247650146484375, -0.0213165283203125, 0.0244140625, -0.042724609375, 0.039520263671875, -0.11346435546875, 0.040679931640625, -0.04937744140625, -0.00292205810546875, -0.053375244140625, -0.03125, -0.0024852752685546875, 0.1163330078125, 0.027740478515625, -0.025787353515625, -0.03570556640625, 0.005077362060546875, -0.0229949951171875, -0.026702880859375, 0.034912109375, 0.002223968505859375, -0.054931640625, 0.019378662109375, 0.019012451171875, -0.022125244140625, -0.00728607177734375, 0.015228271484375, -0.02520751953125, -0.029296875, 0.02862548828125, -0.034698486328125, 0.047882080078125, -0.10504150390625, 0.040618896484375, -0.10687255859375, 0.0008788108825683594, -0.0229339599609375, -0.032684326171875, -0.025909423828125, 0.01459503173828125, 0.04632568359375, 0.0258941650390625, -0.0501708984375, 0.01800537109375, 0.05914306640625, 0.0258026123046875, 0.0574951171875, 0.013427734375, -0.029998779296875, 0.04339599609375, 0.0261077880859375, 0.052581787109375, -0.00392913818359375, -0.00289154052734375, -0.038543701171875, -0.033843994140625, -0.049896240234375, -0.032257080078125, -0.01012420654296875, -0.0213775634765625, -0.01006317138671875, -0.04437255859375, -0.036865234375, -0.015289306640625, 0.00933837890625, -0.03570556640625, 0.024810791015625, -0.0313720703125, -0.0210418701171875, 0.07415771484375, 0.028167724609375, 0.0182952880859375, -0.0010614395141601562, 0.07147216796875, -0.00818634033203125, -0.04833984375, -0.09283447265625, 0.006168365478515625, 0.0095062255859375, 0.01389312744140625, -0.01282501220703125, -0.0462646484375, -0.01055145263671875, 0.030853271484375, -0.0161590576171875, 0.00359344482421875, -0.0156402587890625, 0.0242767333984375, -0.0001544952392578125, -0.01160430908203125, -0.005031585693359375, -0.0037059783935546875, 0.01085662841796875, 0.0216217041015625, -0.0203704833984375, -0.0052642822265625, -0.04327392578125, 0.027191162109375, -0.032318115234375, 0.041473388671875, -0.011566162109375, -0.090087890625, 0.042572021484375, -0.09686279296875, -0.01253509521484375, -0.0194091796875, 0.0011768341064453125, 0.020111083984375, -0.01470947265625, 0.0009965896606445312, 0.0211181640625, 0.01885986328125, 0.022369384765625, 0.052520751953125, 0.01088714599609375, 0.012176513671875, -0.0203857421875, -0.0062713623046875, 0.02166748046875, -0.0276641845703125, -0.046356201171875, -0.0011301040649414062, -0.0179901123046875, 0.0372314453125, 0.035003662109375, 0.0146331787109375, 0.009063720703125, 0.01012420654296875, 0.0263519287109375, 0.019073486328125, -0.0217742919921875, 0.039459228515625, -0.02081298828125, 0.004253387451171875, -0.0019512176513671875, -0.00911712646484375, -0.006412506103515625, 0.036895751953125, -0.02410888671875, 0.019317626953125, -0.01025390625, 0.061737060546875, 0.05609130859375, 0.0311737060546875, 0.0199737548828125, -0.034698486328125, 0.00473785400390625, -0.0106201171875, -0.038726806640625, -0.03741455078125, -0.004276275634765625, 0.0263671875, 0.0452880859375, 0.005603790283203125, -0.022186279296875, 0.010040283203125, -0.0256805419921875, -0.016510009765625, -0.00936126708984375, -0.0308990478515625, -0.0223236083984375, -0.0069122314453125, 0.00707244873046875, 0.003101348876953125, -0.002071380615234375, -0.01540374755859375, 0.000949859619140625, -0.033203125, 0.029876708984375, 0.0132598876953125, 0.031707763671875, -0.0236968994140625, -0.043365478515625, -0.06927490234375, -0.01273345947265625, -0.0170440673828125, -0.00986480712890625, -0.0469970703125, 0.0162200927734375, -0.028289794921875, 0.0039520263671875, -0.0020885467529296875, 0.0136566162109375, -0.0276641845703125, 0.0011301040649414062, -0.00484466552734375, 0.008026123046875, 0.0272674560546875, -0.009429931640625, -0.01800537109375, -0.0187530517578125, -0.0172882080078125, -0.011932373046875, 0.0919189453125, 0.02044677734375, 0.0035877227783203125, -0.0306243896484375, -0.020904541015625, -0.0001875162124633789, 0.012237548828125, 0.0301513671875, -0.0306243896484375, 0.0487060546875, 0.0107421875, 0.01340484619140625, -0.0187530517578125, -0.02655029296875, 0.06304931640625, -0.0198822021484375, 0.01027679443359375, -0.0133209228515625, 0.0258636474609375, -0.0232696533203125, 0.04913330078125, 0.017913818359375, -0.05340576171875, -0.032989501953125, -0.040740966796875, -0.042694091796875, 0.02960205078125, -0.018890380859375, 0.0408935546875, -0.0258331298828125, 0.0026836395263671875, -0.01081085205078125, 0.00957489013671875, -0.056304931640625, -0.01029205322265625, 0.030059814453125, -0.026123046875, -0.003803253173828125, -0.006755828857421875, -0.049163818359375, 0.052978515625, -0.007717132568359375, 0.0268402099609375, 0.03350830078125, -0.03411865234375, 0.0220184326171875, 0.08697509765625, 0.024688720703125, 0.049774169921875, 0.016815185546875, 0.0167999267578125, 0.01065826416015625, 0.05633544921875, -0.031768798828125, -0.0787353515625, 0.031219482421875, 0.0261383056640625, -0.035308837890625, 0.006702423095703125, -0.033782958984375, -0.01107025146484375, 0.003082275390625, 0.01611328125, 0.00722503662109375, -0.0082550048828125, 0.00318145751953125, -0.0168304443359375, 0.01708984375, 0.00592803955078125, 0.0300750732421875, 0.0225372314453125, -0.0213470458984375, -0.0013895034790039062, -0.027008056640625, -0.0153350830078125, -0.0014562606811523438, -0.0225067138671875, -0.0240020751953125, 0.007419586181640625, 0.01280975341796875, -0.0233001708984375, 0.0214691162109375, 0.014892578125, -0.006023406982421875, -0.032501220703125, 0.00925445556640625, 0.01261138916015625, -0.02838134765625, -0.04248046875, 0.01482391357421875, -0.01125335693359375, -0.01058197021484375, 0.02191162109375, 0.02685546875, 0.0037517547607421875, 0.023956298828125, 0.0025348663330078125, 0.011962890625, -0.0009741783142089844, -0.0081787109375, 0.06494140625, -0.019927978515625, -0.01285552978515625, -0.0171966552734375, 0.00765228271484375, -0.005023956298828125, 0.004802703857421875, -0.024322509765625, -0.014617919921875, -0.0161285400390625, 0.03936767578125, 0.027496337890625, -0.0361328125, 0.019683837890625, 0.0015659332275390625, -0.00872039794921875, 0.01425933837890625, 0.01554107666015625, -0.00022649765014648438, -0.003787994384765625, -0.0006604194641113281, -0.056121826171875, 0.0037708282470703125, -0.01263427734375, -0.0484619140625, 0.10430908203125, 0.034820556640625, 0.0270843505859375, 0.00380706787109375, 0.04010009765625, -0.0374755859375, 0.0142059326171875, -0.0183868408203125, 0.0163116455078125, -0.01175689697265625, 0.0247955322265625, -0.0458984375, -0.0141448974609375, -0.004787445068359375, 0.0384521484375, 0.03173828125, 0.015045166015625, -0.025909423828125, -0.00461578369140625, 0.010833740234375, 0.006160736083984375, -0.0256195068359375, 0.05767822265625, 0.01953125, -0.0037384033203125, 0.05694580078125, 0.0182952880859375, 0.035980224609375, -0.0037822723388671875, 0.005992889404296875, 0.024658203125, 0.0035457611083984375, 0.01509857177734375, 0.016265869140625, 0.0209503173828125, 0.0295562744140625, -0.01427459716796875, -0.0014619827270507812, -0.068115234375, 0.0118560791015625, -0.0147705078125, 0.0199432373046875, -0.044586181640625, -0.052734375, -0.00423431396484375, 0.0276947021484375, 0.0263519287109375, -0.0079498291015625, 0.048187255859375, 0.0139923095703125, -0.0179901123046875, -0.00634765625, -0.003749847412109375, -0.0120086669921875, -0.005580902099609375, 0.007556915283203125, -0.00702667236328125, 0.017669677734375, -0.042755126953125, -0.0177459716796875, 0.04150390625, 0.03277587890625, -0.019378662109375, -0.0416259765625, 0.00948333740234375, 0.00530242919921875, 0.016326904296875, -0.0016880035400390625, 0.023040771484375, 0.02099609375, 0.012908935546875, -0.0311431884765625, 0.03863525390625, 0.07537841796875, 0.030181884765625, 0.0274658203125, 0.04547119140625, -0.1290283203125, 0.005512237548828125, 0.01343536376953125, -0.02337646484375, 0.00359344482421875, 0.046783447265625, 0.01378631591796875, 0.01366424560546875, -0.0305328369140625, -0.0071563720703125, -0.0009469985961914062, 0.034393310546875, 0.04913330078125, -0.027099609375, 0.01172637939453125, -0.006862640380859375, 0.04534912109375, -0.006450653076171875, -0.00846099853515625, 0.0240478515625, 0.062255859375, 0.008087158203125, -0.0770263671875, -0.00982666015625, 0.0318603515625, -0.048431396484375, 0.02850341796875, -0.037841796875, -0.00995635986328125, -0.01238250732421875, -0.025787353515625, -0.0237274169921875, -0.0096588134765625, 0.033233642578125, 0.0095672607421875, 0.00418853759765625, 0.0130462646484375, -0.039337158203125, 0.01094818115234375, 0.0206298828125, 0.0401611328125, 0.043548583984375, -0.00824737548828125, -0.01812744140625, -0.01544189453125, 0.0136260986328125, 0.0006227493286132812, 0.0251007080078125, 0.027557373046875, 0.014434814453125, -0.029449462890625, -0.052642822265625, 0.0010881423950195312, 0.0509033203125, 0.00951385498046875, 0.06182861328125, 0.00949859619140625, -0.00891876220703125, -0.06134033203125, -0.012359619140625, 0.0217437744140625, -0.0166168212890625, -0.02734375, 0.04339599609375, 0.0240478515625, -0.0186920166015625, 0.00734710693359375, -0.04229736328125, 0.03240966796875, 0.0162811279296875, -0.0307769775390625, -0.0003542900085449219, -0.0144195556640625, -0.0052337646484375, -0.015716552734375, 0.0036830902099609375, 0.051239013671875, -0.024810791015625, 0.01065826416015625, -0.01824951171875, 0.031341552734375, -0.03466796875, -0.0108795166015625, -0.035736083984375, -0.03985595703125, -0.0054473876953125, 0.00432586669921875, -0.0172882080078125, -0.0217437744140625, -0.017974853515625, 0.00897216796875, 0.02923583984375, -0.0038299560546875, 0.0284423828125, -0.018585205078125, 0.0517578125, 0.0248870849609375, 0.0166015625, -0.020538330078125, -0.045623779296875, -0.0238494873046875, -0.00844573974609375, -0.00933837890625, 0.006793975830078125, -0.029296875, 0.048828125, 0.03167724609375, -0.01259613037109375, 0.0127410888671875, -0.04656982421875, -0.0160675048828125, 0.018829345703125, 0.0222015380859375, 0.0299224853515625, 0.0111846923828125, -0.0150299072265625, -0.0266571044921875, -0.0143890380859375, -0.002010345458984375, 0.01238250732421875, 0.0037326812744140625, 0.00328826904296875, -0.03802490234375, 0.0013828277587890625, 0.0011501312255859375, 0.0033054351806640625, 0.005527496337890625, -0.0261077880859375, -0.053558349609375, -0.0079803466796875, 0.0013494491577148438, -0.0194091796875, 0.005886077880859375, 0.00409698486328125, -0.046966552734375, -0.036224365234375, 0.060577392578125, -0.0132598876953125, -0.0209197998046875, 0.022613525390625, 0.00867462158203125, -0.016876220703125, -0.039154052734375, -0.0061798095703125, 0.0008115768432617188, -0.048431396484375, 0.016082763671875, 0.05023193359375, -0.003490447998046875, -0.060272216796875, -0.10064697265625, 0.0037784576416015625, -0.054962158203125, 0.0208892822265625, -0.009735107421875, 0.0270233154296875, 0.022918701171875, -0.0250091552734375, -0.0037078857421875, 0.06256103515625, 0.01593017578125, -0.007373809814453125, -0.004703521728515625, -0.0872802734375, -0.037872314453125, 0.11468505859375, 0.01355743408203125, -0.0241851806640625, -0.044281005859375, 0.05499267578125, 0.026031494140625, 0.0261993408203125, -0.00206756591796875, 0.02325439453125, -0.0294952392578125, 0.053466796875, 0.0214691162109375, 0.038055419921875, -0.010589599609375, 0.0025501251220703125, 0.0440673828125, 0.0726318359375, 0.0098724365234375, 0.00799560546875, 0.01461029052734375, -0.077392578125, -0.0300140380859375, -0.0150604248046875, -0.0084991455078125, 0.032501220703125, 0.05328369140625, 0.0906982421875, 0.0082855224609375, -0.06549072265625, 0.0131378173828125, 0.0091400146484375, -0.01446533203125, -0.025970458984375, 0.0019741058349609375, -0.04913330078125, -0.033111572265625, -0.00806427001953125, 0.0228424072265625, 0.0025844573974609375, -0.01139068603515625, -0.0016117095947265625, -0.020599365234375, 0.042999267578125, -0.01302337646484375, 0.015228271484375, 0.00926971435546875, -0.02593994140625, -0.013153076171875, -0.049591064453125, -0.0399169921875, 0.0228271484375, -0.06768798828125, -0.05462646484375, -0.04266357421875, -0.0195770263671875, 0.00786590576171875, 0.035980224609375, -0.0249176025390625, 0.0170440673828125, -0.01215362548828125, 0.0284423828125, 0.026947021484375, 0.0095367431640625, -0.024383544921875, 0.00213623046875, 0.00951385498046875, 0.014556884765625, -0.027252197265625, 0.0223541259765625, 0.00902557373046875, -0.032470703125, -0.0111846923828125, 0.038604736328125, -0.029754638671875, -0.02838134765625, 0.00489044189453125, -0.045196533203125, 0.003265380859375, -0.01515960693359375, -0.02532958984375, -0.0173797607421875, -0.027191162109375, -0.046234130859375, -0.0114898681640625, 0.005725860595703125 ]
99634d24a9295966fea31045e89fe6a9a1ded918
Wordpress Stackexchange Q: Check if post/page has gallery? I'd like to run some code only if a gallery (inserted with the [gallery] shortcode) has been inserted into a post/page. I did the following: gallery_shortcode($post->ID) ? $gallery = 1 : $gallery = 0; However, this always sets $gallery = 0 whether there's a gallery or not. Am I using this incorrectly? A: My iteration on the suggested solution here, is the following function in my theme's functions.php: function has_gallery($post_id = false) { if (!$post_id) { global $post; } else { $post = get_post($post_id); } return ( strpos($post->post_content,'[gallery') !== false); } Which I can then call in a template file (doesn't care about The Loop): $has_gallery = has_gallery($post_id) ? true : false; or more direct: has_gallery($post_id); //will evaluate to true/false $post_id is optional, the following will only work within The Loop: has_gallery();
Q: Check if post/page has gallery? I'd like to run some code only if a gallery (inserted with the [gallery] shortcode) has been inserted into a post/page. I did the following: gallery_shortcode($post->ID) ? $gallery = 1 : $gallery = 0; However, this always sets $gallery = 0 whether there's a gallery or not. Am I using this incorrectly? A: My iteration on the suggested solution here, is the following function in my theme's functions.php: function has_gallery($post_id = false) { if (!$post_id) { global $post; } else { $post = get_post($post_id); } return ( strpos($post->post_content,'[gallery') !== false); } Which I can then call in a template file (doesn't care about The Loop): $has_gallery = has_gallery($post_id) ? true : false; or more direct: has_gallery($post_id); //will evaluate to true/false $post_id is optional, the following will only work within The Loop: has_gallery(); A: How about simply using the get_post_gallery() function. This is exactly the way, most themes are checking if a post has a gallery to print the correct body CSS classes: if ( get_post_gallery() ) { // run your code in here } P.S. I really don't like solutions that search the whole content for anything, even if string functions are typically quite fast in PHP, it's still a huge performance overhead. A: try : if (strpos($post->post_content,'[gallery') === false){ $gallery = 0; }else{ $gallery = 1; }
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:410394", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20218" }
[ 0.03228759765625, 0.01520538330078125, 0.00220489501953125, 0.00044417381286621094, 0.0362548828125, -0.0307769775390625, 0.07073974609375, -0.04571533203125, 0.016510009765625, -0.0062713623046875, -0.041351318359375, 0.00800323486328125, -0.07733154296875, -0.014984130859375, -0.0220184326171875, -0.055877685546875, 0.0174713134765625, -0.010223388671875, 0.03704833984375, -0.0072174072265625, 0.01375579833984375, -0.00507354736328125, 0.032623291015625, -0.022857666015625, 0.03582763671875, -0.029571533203125, 0.07122802734375, -0.003910064697265625, 0.023345947265625, -0.00858306884765625, 0.03656005859375, -0.02581787109375, 0.04638671875, 0.00637054443359375, -0.03973388671875, 0.0599365234375, -0.03778076171875, 0.0088348388671875, 0.0026836395263671875, 0.01837158203125, 0.01256561279296875, 0.0104827880859375, -0.0218658447265625, -0.036407470703125, -0.038604736328125, 0.0242462158203125, -0.0216217041015625, -0.0185394287109375, 0.017822265625, 0.01407623291015625, 0.020599365234375, -0.0006475448608398438, 0.0261077880859375, -0.01715087890625, -0.0164642333984375, 0.0025081634521484375, -0.0224456787109375, -0.050628662109375, 0.038818359375, -0.018035888671875, -0.0232696533203125, -0.04071044921875, 0.029998779296875, -0.018890380859375, -0.002960205078125, 0.01352691650390625, -0.040557861328125, 0.011138916015625, -0.0201873779296875, -0.004970550537109375, 0.018798828125, -0.05487060546875, 0.0031986236572265625, -0.007236480712890625, -0.0238800048828125, 0.006946563720703125, 0.0019464492797851562, -0.003070831298828125, 0.00567626953125, -0.00481414794921875, -0.02764892578125, -0.01009368896484375, -0.0236663818359375, -0.003429412841796875, -0.01062774658203125, 0.0188751220703125, -0.019775390625, -0.0010833740234375, -0.002513885498046875, -0.031829833984375, -0.0007519721984863281, 0.01297760009765625, -0.00928497314453125, -0.02294921875, -0.040435791015625, -0.037994384765625, 0.0183258056640625, 0.09149169921875, -0.0235595703125, 0.016693115234375, -0.03765869140625, -0.0177001953125, -0.003116607666015625, -0.05413818359375, 0.0189361572265625, 0.0297698974609375, -0.001148223876953125, -0.03472900390625, 0.0195159912109375, 0.0007910728454589844, -0.0180511474609375, 0.0267333984375, -0.0190277099609375, -0.002716064453125, -0.01355743408203125, 0.009796142578125, -0.047882080078125, 0.01169586181640625, -0.02398681640625, 0.01410675048828125, 0.0213165283203125, 0.039886474609375, 0.0296478271484375, -0.03973388671875, -0.0005602836608886719, 0.015533447265625, -0.0458984375, -0.060028076171875, 0.0306243896484375, 0.00872039794921875, -0.0443115234375, 0.016876220703125, 0.07000732421875, 0.00708770751953125, 0.01666259765625, -0.0105743408203125, -0.0201263427734375, -0.008819580078125, 0.0117645263671875, -0.021209716796875, 0.032318115234375, -0.035675048828125, -0.0125579833984375, 0.01409149169921875, 0.0077972412109375, 0.0198211669921875, 0.038726806640625, 0.022186279296875, -0.0244598388671875, -0.07830810546875, 0.054412841796875, 0.0269012451171875, 0.003726959228515625, 0.03363037109375, 0.0196990966796875, 0.0101776123046875, 0.04632568359375, -0.0139617919921875, -0.017578125, -0.040130615234375, -0.0037937164306640625, -0.00511932373046875, -0.00457000732421875, -0.062042236328125, -0.056671142578125, -0.00894927978515625, -0.006481170654296875, -0.0023345947265625, 0.0280914306640625, 0.0438232421875, 0.01800537109375, -0.0413818359375, -0.0007238388061523438, 0.0341796875, -0.00336456298828125, 0.0243072509765625, 0.014617919921875, 0.001262664794921875, 0.0153350830078125, 0.01995849609375, -0.021209716796875, -0.0257568359375, 0.045074462890625, -0.019317626953125, -0.046234130859375, 0.057708740234375, 0.0114898681640625, 0.03411865234375, -0.0247955322265625, 0.0052032470703125, 0.0411376953125, 0.06201171875, -0.0299835205078125, 0.0177001953125, -0.006252288818359375, -0.008056640625, 0.002994537353515625, 0.016082763671875, -0.010894775390625, -0.0184783935546875, 0.0281829833984375, -0.0170745849609375, 0.0185546875, -0.0068206787109375, -0.0313720703125, -0.00016164779663085938, -0.019683837890625, 0.0242462158203125, -0.06707763671875, 0.0148468017578125, 0.040374755859375, -0.00836181640625, -0.04205322265625, 0.0614013671875, 0.042205810546875, 0.0276336669921875, -0.04107666015625, 0.01678466796875, -0.0496826171875, 0.0384521484375, -0.0494384765625, -0.0435791015625, -0.0469970703125, 0.00022363662719726562, 0.04937744140625, 0.01288604736328125, -0.0261077880859375, -0.01507568359375, -0.006317138671875, 0.050201416015625, -0.09814453125, 0.0089569091796875, 0.00965118408203125, -0.0238189697265625, -0.04974365234375, -0.01258087158203125, -0.01959228515625, -0.06939697265625, 0.0059967041015625, 0.0712890625, 0.050262451171875, 0.0232696533203125, 0.0014429092407226562, -0.03607177734375, 0.058441162109375, -0.0193634033203125, 0.0254974365234375, -0.05035400390625, -0.011138916015625, 0.07159423828125, -0.00847625732421875, 0.06494140625, -0.017303466796875, 0.004852294921875, -0.0016984939575195312, 0.049346923828125, -0.00022363662719726562, 0.049896240234375, 0.0034656524658203125, 0.00843048095703125, -0.023284912109375, 0.033233642578125, 0.037872314453125, -0.01248931884765625, 0.060272216796875, 0.03204345703125, 0.052337646484375, 0.029693603515625, -0.0521240234375, 0.05084228515625, -0.001079559326171875, -0.02960205078125, 0.0163116455078125, 0.019622802734375, 0.00769805908203125, 0.06683349609375, -0.05859375, -0.0018053054809570312, 0.04339599609375, 0.033355712890625, -0.0230560302734375, 0.0200042724609375, -0.0293426513671875, -0.00673675537109375, 0.003643035888671875, -0.0699462890625, 0.0007877349853515625, 0.0160064697265625, -0.018768310546875, -0.042724609375, 0.0132598876953125, 0.017547607421875, -0.032379150390625, 0.037109375, -0.01078033447265625, -0.0361328125, 0.00249481201171875, -0.060089111328125, 0.0560302734375, -0.04058837890625, 0.0250701904296875, 0.07830810546875, -0.010894775390625, 0.027801513671875, -0.007305145263671875, 0.0118560791015625, -0.015472412109375, 0.02203369140625, 0.00832366943359375, -0.0266876220703125, -0.0061798095703125, 0.027130126953125, 0.027099609375, 0.0394287109375, 0.0009279251098632812, -0.021728515625, -0.00473785400390625, 0.02044677734375, -0.051971435546875, -0.062347412109375, 0.0299530029296875, -0.03155517578125, 0.003936767578125, -0.012939453125, -0.013153076171875, -0.021453857421875, 0.002887725830078125, 0.0017271041870117188, -0.047332763671875, -0.031707763671875, -0.033538818359375, -0.0732421875, -0.030975341796875, 0.041900634765625, 0.012451171875, 0.006183624267578125, -0.003917694091796875, 0.0977783203125, 0.0106658935546875, -0.061676025390625, -0.01204681396484375, -0.0243682861328125, -0.021484375, 0.025146484375, -0.0003399848937988281, -0.0285797119140625, -0.043701171875, 0.0035037994384765625, -0.0228424072265625, -0.02093505859375, 0.0367431640625, 0.0011301040649414062, -0.007717132568359375, -0.0061798095703125, 0.0345458984375, 0.0266265869140625, 0.00518035888671875, 0.0124664306640625, 0.06219482421875, -0.0247802734375, -0.02685546875, -0.0166473388671875, -0.054351806640625, 0.004901885986328125, 0.033355712890625, -0.0015039443969726562, -0.004039764404296875, -0.007598876953125, -0.0296630859375, -0.00939178466796875, 0.0149993896484375, -0.0452880859375, 0.03912353515625, -0.00020742416381835938, -0.0059967041015625, -0.0010862350463867188, 0.01593017578125, -0.0240631103515625, 0.007411956787109375, -0.004421234130859375, -0.004825592041015625, -0.0203094482421875, 0.03509521484375, -0.01091766357421875, -0.0256805419921875, 0.032379150390625, 0.0190887451171875, 0.06500244140625, -0.059295654296875, -0.038177490234375, -0.037811279296875, 0.07415771484375, 0.0119476318359375, -0.013671875, -0.00756072998046875, -0.0053558349609375, 0.009246826171875, -0.01244354248046875, -0.0115814208984375, -0.0189056396484375, -0.0504150390625, 0.00792694091796875, 0.00218963623046875, -0.02789306640625, -0.01427459716796875, -0.0545654296875, -0.038726806640625, -0.0221405029296875, 0.0247039794921875, -0.0165252685546875, 0.03643798828125, -0.00464630126953125, 0.0079345703125, 0.000024557113647460938, -0.0011577606201171875, -0.042083740234375, -0.1119384765625, -0.01316070556640625, 0.017913818359375, 0.04998779296875, -0.0048065185546875, -0.04595947265625, -0.0350341796875, 0.032958984375, 0.0022430419921875, -0.0061492919921875, -0.0171356201171875, 0.0016536712646484375, -0.0462646484375, 0.0205230712890625, -0.008758544921875, -0.007232666015625, 0.0177459716796875, 0.03009033203125, 0.0218505859375, 0.021270751953125, -0.055145263671875, -0.0640869140625, -0.00724029541015625, -0.0304718017578125, 0.001739501953125, -0.0159454345703125, 0.022705078125, 0.03369140625, 0.0017099380493164062, 0.00897979736328125, -0.03204345703125, -0.0025463104248046875, -0.022979736328125, -0.0157012939453125, -0.039154052734375, 0.042327880859375, 0.0711669921875, 0.0282745361328125, 0.00927734375, -0.07940673828125, 0.03729248046875, 0.0247344970703125, 0.02301025390625, 0.039031982421875, 0.0164337158203125, -0.02752685546875, 0.0283050537109375, 0.0255889892578125, -0.042236328125, -0.0293426513671875, 0.07208251953125, 0.0011281967163085938, -0.0203094482421875, 0.0155029296875, -0.0380859375, 0.033935546875, 0.01898193359375, -0.026031494140625, -0.0094757080078125, 0.00789642333984375, 0.02459716796875, -0.029998779296875, 0.034881591796875, -0.0181732177734375, 0.0142059326171875, -0.031036376953125, 0.0675048828125, 0.006378173828125, 0.041412353515625, -0.0025539398193359375, -0.0249176025390625, 0.02264404296875, -0.0008521080017089844, 0.055145263671875, 0.0689697265625, 0.0214080810546875, 0.05755615234375, 0.0081024169921875, -0.004909515380859375, -0.0011510848999023438, 0.006496429443359375, -0.01947021484375, -0.0122528076171875, -0.025665283203125, -0.049468994140625, 0.005321502685546875, -0.021240234375, 0.016143798828125, 0.0252532958984375, 0.0606689453125, -0.007198333740234375, -0.051727294921875, -0.0013532638549804688, -0.0276336669921875, -0.0110626220703125, -0.061492919921875, -0.01139068603515625, -0.00499725341796875, -0.025115966796875, 0.016387939453125, -0.0089874267578125, -0.03192138671875, -0.005802154541015625, 0.0182037353515625, 0.01102447509765625, 0.01372528076171875, 0.02880859375, 0.0192718505859375, -0.00795745849609375, 0.0125885009765625, -0.01078033447265625, 0.019500732421875, -0.021636962890625, -0.0176849365234375, 0.0312347412109375, 0.018096923828125, -0.032623291015625, -0.017425537109375, 0.0068511962890625, 0.00980377197265625, -0.024078369140625, 0.0034084320068359375, -0.03582763671875, -0.02728271484375, -0.03472900390625, 0.0023555755615234375, 0.0266876220703125, -0.012542724609375, -0.026153564453125, 0.027435302734375, -0.024200439453125, 0.0219879150390625, 0.031890869140625, -0.038909912109375, 0.004180908203125, 0.0046844482421875, -0.01849365234375, -0.036407470703125, -0.0009441375732421875, 0.029876708984375, 0.04412841796875, -0.04986572265625, -0.041229248046875, 0.045379638671875, -0.01294708251953125, 0.023529052734375, -0.042144775390625, -0.00785064697265625, -0.0545654296875, 0.009429931640625, 0.0216827392578125, 0.00957489013671875, -0.0114593505859375, 0.007282257080078125, -0.04608154296875, -0.017791748046875, 0.034942626953125, -0.017791748046875, -0.0267486572265625, -0.04327392578125, -0.024322509765625, 0.03277587890625, -0.0169525146484375, 0.0032863616943359375, 0.011810302734375, 0.01233673095703125, -0.019073486328125, 0.052886962890625, 0.0271759033203125, -0.0105133056640625, -0.0050811767578125, 0.0177764892578125, 0.00499725341796875, -0.0238800048828125, -0.020050048828125, -0.02728271484375, -0.002414703369140625, -0.0064544677734375, -0.01496124267578125, 0.00823211669921875, 0.00812530517578125, -0.01136016845703125, 0.007556915283203125, -0.0088043212890625, 0.01099395751953125, 0.006664276123046875, -0.00548553466796875, -0.006122589111328125, 0.01059722900390625, 0.019927978515625, 0.00909423828125, 0.0321044921875, -0.0032138824462890625, 0.01311492919921875, -0.0244140625, -0.05303955078125, 0.03302001953125, 0.01177215576171875, 0.01117706298828125, 0.014312744140625, -0.0106048583984375, 0.0814208984375, 0.07818603515625, -0.01849365234375, 0.057769775390625, 0.01885986328125, 0.000012218952178955078, 0.01006317138671875, 0.03375244140625, -0.0046844482421875, -0.0160980224609375, 0.09820556640625, 0.030853271484375, -0.01580810546875, 0.063720703125, -0.0341796875, 0.020721435546875, 0.02728271484375, 0.04779052734375, -0.0168914794921875, -0.0037746429443359375, 0.01849365234375, -0.029144287109375, 0.0091400146484375, -0.053558349609375, 0.0015106201171875, -0.03155517578125, 0.11114501953125, -0.0201416015625, -0.0186614990234375, 0.029144287109375, -0.051605224609375, -0.015289306640625, -0.0211334228515625, 0.0209808349609375, 0.0249176025390625, -0.0112762451171875, 0.0236358642578125, 0.01088714599609375, 0.00905609130859375, -0.0271453857421875, 0.02984619140625, -0.0037784576416015625, -0.03277587890625, -0.06536865234375, -0.0003352165222167969, 0.041900634765625, -0.0340576171875, 0.026275634765625, 0.0213165283203125, 0.0263214111328125, 0.04473876953125, -0.006099700927734375, 0.004970550537109375, 0.016357421875, -0.00238800048828125, -0.0394287109375, -0.00884246826171875, 0.0186920166015625, 0.044036865234375, -0.0496826171875, 0.030242919921875, -0.032318115234375, 0.00848388671875, -0.00943756103515625, -0.02008056640625, 0.1036376953125, -0.06884765625, -0.00478363037109375, -0.0145416259765625, 0.032257080078125, 0.005523681640625, 0.0168609619140625, 0.0283660888671875, -0.022857666015625, -0.0213775634765625, 0.025238037109375, -0.057159423828125, -0.0556640625, -0.0150604248046875, -0.09112548828125, 0.08447265625, 0.00018346309661865234, 0.0614013671875, 0.01715087890625, 0.01432037353515625, -0.0364990234375, -0.0121307373046875, -0.023895263671875, 0.035888671875, 0.0216827392578125, 0.018829345703125, -0.0196380615234375, -0.006496429443359375, 0.0091094970703125, 0.04052734375, 0.0202178955078125, 0.002838134765625, 0.045166015625, 0.0175628662109375, 0.03857421875, 0.005146026611328125, -0.0284576416015625, -0.004486083984375, -0.016937255859375, 0.018890380859375, 0.0301055908203125, -0.054931640625, 0.0226287841796875, -0.0224761962890625, -0.0239410400390625, -0.0153656005859375, 0.00981903076171875, 0.0026836395263671875, -0.0027523040771484375, 0.0133514404296875, -0.022552490234375, -0.004207611083984375, 0.0233154296875, -0.01348876953125, -0.004058837890625, 0.036773681640625, 0.033843994140625, -0.052703857421875, -0.0115509033203125, -0.0311431884765625, 0.04425048828125, -0.01172637939453125, 0.011566162109375, 0.0086517333984375, 0.0023632049560546875, 0.048614501953125, -0.01361083984375, -0.007358551025390625, 0.005290985107421875, 0.00408935546875, 0.038543701171875, 0.048553466796875, 0.00576019287109375, -0.01352691650390625, 0.01352691650390625, 0.050506591796875, 0.051055908203125, -0.030120849609375, -0.02447509765625, 0.02532958984375, 0.00991058349609375, -0.0246429443359375, -0.0279541015625, -0.0347900390625, -0.0229949951171875, 0.03472900390625, -0.03057861328125, -0.011688232421875, 0.027069091796875, 0.036468505859375, -0.00275421142578125, -0.0238037109375, -0.025238037109375, -0.0306243896484375, -0.03826904296875, 0.0298919677734375, 0.007717132568359375, 0.053466796875, 0.0005078315734863281, 0.051361083984375, -0.0341796875, -0.0135498046875, -0.04290771484375, 0.03778076171875, -0.0242462158203125, 0.060028076171875, -0.080322265625, -0.033966064453125, 0.01534271240234375, 0.05230712890625, 0.020111083984375, 0.005664825439453125, 0.03363037109375, 0.0321044921875, -0.01535797119140625, -0.0026531219482421875, 0.04461669921875, -0.01519775390625, -0.0115509033203125, -0.0194091796875, 0.0014429092407226562, 0.0285797119140625, -0.00798797607421875, 0.00229644775390625, 0.006366729736328125, 0.044769287109375, -0.038330078125, -0.00937652587890625, -0.00968170166015625, -0.046905517578125, 0.05389404296875, 0.011260986328125, 0.0777587890625, 0.007053375244140625, -0.032012939453125, -0.0008335113525390625, -0.02117919921875, -0.08148193359375, 0.023406982421875, 0.049774169921875, -0.03411865234375, 0.015777587890625, 0.019622802734375, -0.00963592529296875, 0.00966644287109375, 0.0159454345703125, 0.0024890899658203125, -0.022125244140625, 0.021881103515625, -0.01509857177734375, -0.00783538818359375, -0.0232696533203125, -0.01312255859375, 0.0452880859375, 0.019256591796875, 0.016204833984375, 0.0053253173828125, 0.03216552734375, -0.005992889404296875, -0.0271148681640625, 0.0074920654296875, -0.00710296630859375, -0.00847625732421875, -0.015960693359375, 0.00859832763671875, -0.0030269622802734375, -0.009033203125, 0.0114593505859375, 0.049041748046875, -0.01617431640625, 0.00629425048828125, -0.0275726318359375, 0.0223236083984375, -0.00836944580078125, 0.04779052734375, -0.02447509765625, -0.054595947265625, -0.057037353515625, 0.0151214599609375, 0.0244903564453125, 0.0115509033203125, -0.03839111328125, 0.046112060546875, 0.004146575927734375, -0.041534423828125, 0.041778564453125, -0.0576171875, 0.02288818359375, 0.03167724609375, 0.039215087890625, 0.0013332366943359375, -0.04412841796875, -0.0290679931640625, -0.0231475830078125, 0.0212249755859375, -0.047210693359375, -0.01438140869140625, -0.0509033203125, -0.035400390625, 0.0309906005859375, 0.03369140625, 0.004596710205078125, 0.016021728515625, -0.010009765625, -0.037994384765625, 0.0118255615234375, -0.031494140625, -0.0168304443359375, -0.038665771484375, 0.0009174346923828125, 0.00916290283203125, -0.005542755126953125, -0.0011873245239257812, -0.0007734298706054688, 0.01020050048828125, 0.0187225341796875, 0.0017642974853515625, -0.04962158203125, 0.031005859375, -0.014312744140625, 0.00811767578125, -0.01995849609375, 0.037109375, 0.00524139404296875, 0.0243988037109375, -0.048370361328125, 0.0257720947265625, -0.0164642333984375, -0.01605224609375, 0.004878997802734375, 0.0211181640625, 0.039031982421875, -0.039794921875, -0.0313720703125, 0.0233306884765625, 0.0357666015625, 0.04669189453125, 0.036376953125, -0.0303497314453125, -0.00431060791015625, -0.0045013427734375, 0.002635955810546875, -0.00553131103515625, 0.00949859619140625, -0.0413818359375, 0.00008475780487060547, -0.0162353515625, -0.0072479248046875, 0.01184844970703125, -0.0506591796875, -0.11724853515625, 0.04376220703125, -0.0283203125, -0.041290283203125, -0.0250244140625, 0.004840850830078125, -0.007457733154296875, 0.029266357421875, 0.0003962516784667969, -0.02813720703125, -0.00528717041015625, 0.01153564453125, 0.019195556640625, 0.0024166107177734375, 0.03619384765625, -0.00406646728515625, -0.0234527587890625, 0.007701873779296875, -0.005580902099609375, 0.0005788803100585938, 0.032806396484375, -0.025390625, 0.0247802734375, 0.0189208984375, -0.052703857421875, -0.03485107421875, -0.01519775390625, 0.0104217529296875, -0.00029587745666503906, -0.042083740234375, -0.036529541015625, -0.036041259765625, 0.09783935546875, 0.010589599609375, 0.0223846435546875, -0.01067352294921875, -0.03424072265625, -0.00463104248046875, -0.01873779296875, 0.00441741943359375, 0.01302337646484375, -0.03338623046875, 0.027252197265625, -0.038421630859375, 0.00821685791015625, -0.038360595703125, -0.01508331298828125, -0.03466796875, -0.02581787109375, -0.03466796875, -0.001148223876953125, 0.0035190582275390625, 0.0009007453918457031, 0.031158447265625, -0.025634765625, 0.0236968994140625, -0.03369140625, 0.017181396484375, 0.02880859375, -0.00662994384765625, 0.0260009765625, 0.057647705078125, -0.04156494140625, -0.02325439453125, 0.03582763671875, -0.020263671875, 0.0132598876953125, -0.0026874542236328125, 0.0076751708984375, -0.0081634521484375, -0.0031337738037109375, -0.0308837890625, 0.0139923095703125, -0.001499176025390625, -0.0201263427734375, 0.032196044921875, 0.006134033203125, 0.03619384765625, 0.016204833984375, 0.032867431640625, 0.007656097412109375, -0.0307769775390625, 0.036529541015625, -0.045318603515625, -0.01099395751953125, 0.02996826171875, -0.0222625732421875, -0.093017578125, 0.047637939453125, -0.007732391357421875, 0.048858642578125, 0.027740478515625 ]
89fbb82b182d0ba9bb3659efd8804c8152f9c7ef
Wordpress Stackexchange Q: Get posts by menu ID I'm a little stuck here. I have a menu in Wordpress with some posts in it. What I would like is to retrieve all the posts as objects. I think I'm pretty close, but the SQL query doesn't seem to work as I want. This is wat I have so far: $querystr = " SELECT wposts.* FROM wp_posts wposts LEFT JOIN wp_postmeta wmeta ON wposts.ID = wmeta.post_id LEFT JOIN wp_term_relationships wrel ON wrel.object_id = wmeta.meta_value LEFT JOIN wp_terms wterms ON wrel.term_taxonomy_id = wterms.term_id WHERE wterms.term_id= $menu_id "; $posts = $wpdb->get_results($querystr, OBJECT); I'm pretty sure it's a stupid little SQL logic error, but I realy can't find it.. A: There's a function to get a nav menu as object: wp_get_nav_menu_object() - the items (posts) are inside the object and accessible.
Q: Get posts by menu ID I'm a little stuck here. I have a menu in Wordpress with some posts in it. What I would like is to retrieve all the posts as objects. I think I'm pretty close, but the SQL query doesn't seem to work as I want. This is wat I have so far: $querystr = " SELECT wposts.* FROM wp_posts wposts LEFT JOIN wp_postmeta wmeta ON wposts.ID = wmeta.post_id LEFT JOIN wp_term_relationships wrel ON wrel.object_id = wmeta.meta_value LEFT JOIN wp_terms wterms ON wrel.term_taxonomy_id = wterms.term_id WHERE wterms.term_id= $menu_id "; $posts = $wpdb->get_results($querystr, OBJECT); I'm pretty sure it's a stupid little SQL logic error, but I realy can't find it.. A: There's a function to get a nav menu as object: wp_get_nav_menu_object() - the items (posts) are inside the object and accessible. A: I recently needed the same thing, I had menu of categories and I needed to get the categories that in the menu. After a several hours digging in the WP core, I found the wp_get_nav_menu_items() function that helped me. I finnally came with this, 220 was my menu_id $navcat = wp_get_nav_menu_items('220'); foreach ($navcat as $obj) { $catid = $obj->object_id; $category = get_category($catid); ... ... } So, if you have a nav menu of posts, I assume you can do the same, something like this should work - $nav_items = wp_get_nav_menu_items('220'); foreach ($nav_items as $obj) { $objid = $obj->object_id; $postobj = get_post($objid); //do stuff with the post.. } I think it can save you some complexed mySQL query...
wordpress
{ "language": "en", "length": 253, "provenance": "stackexchange_00019.jsonl.gz:410395", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20220" }
[ 0.06964111328125, 0.009368896484375, 0.0307769775390625, 0.031494140625, 0.03857421875, -0.03338623046875, 0.09564208984375, -0.0635986328125, 0.023406982421875, 0.0206451416015625, -0.057220458984375, 0.0003228187561035156, -0.0225982666015625, -0.006191253662109375, -0.0223846435546875, -0.053314208984375, 0.04400634765625, -0.011871337890625, 0.043426513671875, 0.0093231201171875, 0.005096435546875, 0.029998779296875, 0.04638671875, 0.00838470458984375, 0.05718994140625, -0.031341552734375, 0.007091522216796875, -0.0004589557647705078, 0.028900146484375, -0.00551605224609375, 0.0312042236328125, -0.01364898681640625, 0.0075836181640625, -0.019805908203125, 0.034088134765625, -0.0213470458984375, 0.0012531280517578125, 0.006008148193359375, 0.0264434814453125, -0.013916015625, 0.019012451171875, -0.0027751922607421875, -0.0128173828125, 0.03155517578125, -0.028045654296875, -0.045318603515625, 0.0196685791015625, -0.0308380126953125, 0.0233612060546875, -0.04150390625, 0.004673004150390625, 0.008209228515625, 0.0271453857421875, -0.02667236328125, -0.030670166015625, -0.02191162109375, 0.0283050537109375, -0.054962158203125, 0.040771484375, -0.014984130859375, -0.033050537109375, -0.0261688232421875, 0.0273590087890625, -0.0236358642578125, 0.00007718801498413086, 0.03179931640625, 0.06787109375, 0.0185546875, -0.07330322265625, -0.0222625732421875, 0.0183563232421875, -0.04241943359375, -0.00890350341796875, 0.00466156005859375, 0.0017690658569335938, -0.066162109375, 0.02923583984375, -0.05279541015625, -0.0162200927734375, 0.050628662109375, 0.0004954338073730469, 0.010101318359375, -0.07159423828125, 0.036346435546875, -0.03936767578125, 0.039886474609375, -0.0282135009765625, -0.025390625, -0.030548095703125, -0.03485107421875, -0.0117340087890625, -0.0154266357421875, -0.0732421875, 0.00568389892578125, 0.00402069091796875, -0.046722412109375, 0.005634307861328125, 0.045196533203125, -0.033447265625, 0.0284423828125, -0.01512908935546875, -0.0275115966796875, 0.03399658203125, -0.055999755859375, 0.0238189697265625, 0.0247039794921875, 0.0133819580078125, 0.0183258056640625, 0.05291748046875, 0.021331787109375, 0.01145172119140625, 0.05950927734375, -0.0122833251953125, 0.0030879974365234375, -0.0313720703125, 0.0123291015625, -0.03143310546875, -0.018646240234375, -0.0129852294921875, -0.00795745849609375, -0.01404571533203125, -0.002269744873046875, 0.00750732421875, 0.0232086181640625, -0.0112762451171875, 0.002170562744140625, -0.01739501953125, -0.0038909912109375, -0.04248046875, 0.047882080078125, -0.0362548828125, -0.011383056640625, 0.058868408203125, 0.031768798828125, -0.0012874603271484375, -0.046630859375, -0.02410888671875, -0.0021190643310546875, -0.01105499267578125, -0.011505126953125, 0.0272979736328125, -0.01061248779296875, 0.010009765625, 0.0062713623046875, -0.029296875, 0.016571044921875, 0.0140228271484375, 0.0091552734375, -0.003719329833984375, -0.0531005859375, -0.033294677734375, 0.02130126953125, 0.0284271240234375, 0.0190277099609375, 0.006671905517578125, -0.0210113525390625, 0.051361083984375, -0.047027587890625, -0.004711151123046875, -0.05157470703125, -0.01221466064453125, 0.006557464599609375, 0.032470703125, -0.03240966796875, -0.0293426513671875, -0.01149749755859375, -0.015228271484375, -0.0111236572265625, 0.0188140869140625, 0.0478515625, 0.0009250640869140625, -0.0440673828125, 0.006977081298828125, 0.022308349609375, -0.01192474365234375, 0.026885986328125, 0.00896453857421875, -0.0400390625, 0.02178955078125, 0.04205322265625, -0.033599853515625, -0.035858154296875, -0.01413726806640625, -0.0148773193359375, -0.0450439453125, 0.041717529296875, 0.00742340087890625, 0.05657958984375, 0.015960693359375, 0.010284423828125, 0.036376953125, 0.01204681396484375, -0.04803466796875, 0.042327880859375, -0.00628662109375, -0.0232696533203125, -0.0017299652099609375, 0.01053619384765625, -0.0175018310546875, -0.016448974609375, 0.017333984375, 0.0217742919921875, -0.005626678466796875, 0.007541656494140625, -0.0570068359375, -0.0027942657470703125, -0.018402099609375, 0.031524658203125, 0.0033969879150390625, 0.0239105224609375, 0.0184326171875, 0.0097503662109375, -0.02874755859375, -0.0299530029296875, -0.0198974609375, -0.0038013458251953125, -0.004169464111328125, 0.007366180419921875, -0.030364990234375, 0.0013933181762695312, -0.06341552734375, -0.0269622802734375, -0.060638427734375, 0.03955078125, 0.032867431640625, 0.006374359130859375, -0.005657196044921875, -0.00606536865234375, 0.0618896484375, 0.0194854736328125, 0.0064239501953125, -0.01068878173828125, 0.0013065338134765625, 0.039459228515625, 0.0028209686279296875, 0.005878448486328125, 0.0228729248046875, -0.033447265625, 0.0238189697265625, 0.0207366943359375, 0.037353515625, 0.0002224445343017578, -0.0162353515625, -0.0305633544921875, 0.01053619384765625, -0.07177734375, 0.0015039443969726562, -0.0243072509765625, -0.028717041015625, 0.0214691162109375, 0.044189453125, 0.025543212890625, 0.019989013671875, 0.034759521484375, -0.00420379638671875, 0.037139892578125, 0.0031890869140625, 0.044342041015625, -0.020843505859375, 0.0201263427734375, -0.0184478759765625, 0.0034847259521484375, 0.0110015869140625, -0.0162811279296875, 0.045196533203125, 0.00988006591796875, 0.039215087890625, 0.0228271484375, -0.035003662109375, 0.00971221923828125, 0.0087127685546875, -0.0038471221923828125, 0.000006794929504394531, 0.013916015625, -0.0043792724609375, -0.0120697021484375, -0.0360107421875, 0.008575439453125, 0.0028533935546875, -0.004444122314453125, -0.003253936767578125, 0.0240631103515625, 0.039764404296875, -0.005817413330078125, 0.00655364990234375, -0.045867919921875, 0.02471923828125, 0.00316619873046875, -0.0274810791015625, 0.02044677734375, 0.02569580078125, 0.041351318359375, -0.010498046875, 0.032928466796875, -0.03143310546875, 0.0210418701171875, 0.054534912109375, -0.01482391357421875, 0.0179443359375, -0.0005860328674316406, 0.0498046875, 0.05120849609375, 0.0081939697265625, 0.0101776123046875, -0.0011587142944335938, -0.01507568359375, -0.007965087890625, 0.03564453125, -0.0017108917236328125, -0.033172607421875, -0.0091552734375, 0.037200927734375, 0.0122833251953125, 0.052581787109375, -0.0308074951171875, -0.049896240234375, -0.0238189697265625, 0.002246856689453125, -0.11053466796875, -0.0947265625, 0.0298614501953125, -0.0306854248046875, 0.00585174560546875, -0.0028209686279296875, -0.015350341796875, -0.0097503662109375, 0.020904541015625, -0.003078460693359375, 0.02783203125, -0.0026683807373046875, -0.098388671875, -0.0067138671875, -0.0772705078125, 0.0218658447265625, -0.0251007080078125, 0.0245361328125, 0.00829315185546875, 0.0277099609375, -0.004848480224609375, -0.045745849609375, 0.00958251953125, 0.0726318359375, -0.018951416015625, -0.01280975341796875, -0.0090789794921875, 0.00891876220703125, -0.0275726318359375, 0.0041351318359375, 0.0089569091796875, 0.01556396484375, -0.0227813720703125, 0.00630950927734375, 0.0082550048828125, 0.046875, 0.045135498046875, -0.03204345703125, -0.0237579345703125, 0.0941162109375, 0.046417236328125, 0.023193359375, -0.0225830078125, -0.053253173828125, -0.046875, 0.04730224609375, 0.0033435821533203125, 0.041839599609375, -0.0106658935546875, 0.039764404296875, 0.020355224609375, -0.0010986328125, 0.004863739013671875, -0.007843017578125, 0.0299835205078125, 0.00299835205078125, 0.0220184326171875, -0.0104217529296875, 0.032073974609375, -0.0232391357421875, -0.0030345916748046875, -0.0091400146484375, 0.004192352294921875, -0.02044677734375, -0.0159454345703125, -0.05535888671875, -0.041229248046875, 0.0426025390625, -0.01361846923828125, 0.0224151611328125, -0.0311279296875, -0.029815673828125, -0.01076507568359375, 0.092041015625, 0.01331329345703125, -0.033935546875, -0.032135009765625, 0.006084442138671875, -0.0166778564453125, -0.0460205078125, 0.00449371337890625, -0.00978851318359375, -0.059326171875, 0.01544189453125, -0.00608062744140625, -0.01849365234375, -0.028717041015625, 0.0265350341796875, -0.05242919921875, -0.025787353515625, 0.042938232421875, -0.0556640625, 0.010406494140625, 0.007198333740234375, -0.0025119781494140625, -0.0233154296875, -0.0311279296875, -0.00751495361328125, -0.08428955078125, -0.0218658447265625, 0.0228271484375, 0.043304443359375, 0.0013370513916015625, -0.0312347412109375, 0.0160980224609375, 0.06414794921875, 0.0206298828125, 0.04705810546875, 0.0070343017578125, 0.006927490234375, -0.016571044921875, -0.0347900390625, 0.01018524169921875, -0.046905517578125, -0.00435638427734375, -0.0226593017578125, -0.006862640380859375, -0.003253936767578125, -0.04327392578125, 0.0204315185546875, -0.037017822265625, -0.008148193359375, -0.01131439208984375, -0.01409912109375, -0.015777587890625, 0.032135009765625, -0.0297393798828125, 0.0189208984375, -0.020538330078125, -0.02374267578125, 0.015716552734375, 0.0294189453125, -0.020751953125, 0.01000213623046875, 0.032867431640625, 0.0149688720703125, -0.038330078125, -0.033538818359375, -0.00897979736328125, 0.0256500244140625, -0.00531005859375, 0.0474853515625, 0.04290771484375, -0.0233306884765625, 0.02679443359375, 0.029205322265625, -0.00927734375, -0.00873565673828125, 0.05804443359375, 0.00695037841796875, 0.0126190185546875, -0.0047149658203125, -0.0139617919921875, 0.0091094970703125, 0.039306640625, 0.00023734569549560547, -0.06695556640625, -0.01190185546875, 0.08892822265625, -0.0131683349609375, 0.032196044921875, -0.057220458984375, -0.02606201171875, 0.0115814208984375, -0.03759765625, 0.0389404296875, 0.0192108154296875, 0.009613037109375, 0.024169921875, 0.03466796875, 0.0213775634765625, 0.0065460205078125, 0.031494140625, -0.0097808837890625, 0.0286407470703125, 0.01555633544921875, -0.0016412734985351562, -0.0197906494140625, 0.0028438568115234375, 0.037353515625, -0.00917816162109375, -0.044769287109375, -0.01021575927734375, -0.005611419677734375, 0.026397705078125, 0.022735595703125, -0.035675048828125, 0.04486083984375, 0.0289154052734375, -0.00667572021484375, -0.029296875, -0.05364990234375, -0.00634765625, -0.0465087890625, 0.02471923828125, 0.00696563720703125, -0.004276275634765625, -0.001026153564453125, 0.0728759765625, 0.0010700225830078125, 0.03594970703125, -0.0209197998046875, 0.026397705078125, -0.0352783203125, 0.054656982421875, 0.00424957275390625, -0.0258331298828125, 0.033203125, 0.0150146484375, 0.01413726806640625, -0.0304412841796875, -0.01000213623046875, 0.0102386474609375, 0.041168212890625, 0.007053375244140625, -0.0090484619140625, 0.0177459716796875, -0.01473236083984375, -0.0018138885498046875, 0.035400390625, -0.0013942718505859375, -0.03131103515625, -0.02789306640625, -0.01294708251953125, 0.01812744140625, -0.0115509033203125, -0.002758026123046875, -0.0021991729736328125, 0.02081298828125, 0.045318603515625, -0.05706787109375, -0.0002543926239013672, 0.0280914306640625, 0.0419921875, -0.032562255859375, -0.01898193359375, 0.005764007568359375, -0.0287017822265625, -0.02301025390625, -0.0050811767578125, -0.0107879638671875, 0.055206298828125, -0.0214385986328125, 0.0447998046875, -0.0194549560546875, -0.01149749755859375, -0.01264190673828125, 0.007503509521484375, 0.06182861328125, 0.0401611328125, -0.004886627197265625, 0.001766204833984375, -0.01448822021484375, 0.00952911376953125, 0.0543212890625, -0.03753662109375, -0.009796142578125, -0.052398681640625, -0.022003173828125, 0.0200653076171875, 0.0189056396484375, 0.04058837890625, -0.0081939697265625, -0.01531982421875, -0.0278472900390625, -0.01206207275390625, -0.005764007568359375, 0.0850830078125, -0.0312042236328125, 0.061248779296875, 0.0003120899200439453, 0.024505615234375, -0.045928955078125, 0.0053558349609375, 0.0056915283203125, -0.046417236328125, -0.008880615234375, 0.00022721290588378906, -0.0161590576171875, -0.0006837844848632812, 0.004077911376953125, 0.004283905029296875, 0.056304931640625, -0.031982421875, -0.0023441314697265625, -0.0167236328125, 0.003650665283203125, -0.053558349609375, 0.020965576171875, 0.040496826171875, -0.029510498046875, -0.004810333251953125, -0.0020122528076171875, 0.0026187896728515625, -0.0002453327178955078, -0.01415252685546875, 0.00753021240234375, 0.01806640625, -0.022369384765625, 0.023681640625, 0.06549072265625, 0.03302001953125, 0.050689697265625, 0.002483367919921875, 0.0330810546875, 0.00011670589447021484, -0.0264129638671875, -0.02001953125, 0.04083251953125, 0.039337158203125, -0.0204010009765625, -0.006649017333984375, 0.0235748291015625, -0.0261077880859375, 0.0247039794921875, 0.0011720657348632812, 0.051971435546875, -0.0206451416015625, 0.021484375, 0.0263671875, -0.04095458984375, 0.011688232421875, 0.01227569580078125, -0.0196075439453125, -0.034515380859375, -0.0164337158203125, -0.00335693359375, -0.0281219482421875, -0.0159149169921875, 0.0163726806640625, -0.009857177734375, -0.023681640625, 0.042083740234375, 0.0010175704956054688, 0.00811004638671875, -0.0169525146484375, -0.00931549072265625, -0.003719329833984375, -0.0298919677734375, -0.005199432373046875, 0.00731658935546875, 0.0017023086547851562, -0.039337158203125, 0.061492919921875, -0.04156494140625, 0.03668212890625, 0.037689208984375, 0.00646209716796875, -0.01238250732421875, 0.0255126953125, -0.01312255859375, 0.015594482421875, -0.011749267578125, -0.031982421875, -0.0199432373046875, -0.018157958984375, -0.007099151611328125, 0.04681396484375, -0.0218353271484375, 0.0227813720703125, 0.004024505615234375, -0.00824737548828125, -0.01432037353515625, -0.05767822265625, 0.06805419921875, -0.06884765625, 0.003040313720703125, 0.00495147705078125, 0.008392333984375, 0.001323699951171875, -0.00437164306640625, 0.036590576171875, -0.031280517578125, 0.0142364501953125, 0.017791748046875, 0.0283050537109375, -0.040313720703125, -0.01209259033203125, -0.04315185546875, 0.05194091796875, -0.01250457763671875, 0.006130218505859375, 0.0193939208984375, 0.018341064453125, -0.0206451416015625, 0.007129669189453125, -0.060760498046875, 0.06866455078125, 0.01203155517578125, 0.06341552734375, -0.056243896484375, -0.00968170166015625, 0.01384735107421875, 0.03607177734375, 0.04644775390625, -0.001972198486328125, -0.042755126953125, -0.044281005859375, 0.03326416015625, 0.061492919921875, 0.031280517578125, 0.0254364013671875, 0.026031494140625, 0.005146026611328125, 0.0699462890625, -0.0213623046875, 0.035858154296875, -0.00853729248046875, 0.0285491943359375, 0.035125732421875, -0.01192474365234375, -0.017608642578125, -0.002048492431640625, 0.005527496337890625, -0.0111846923828125, -0.005718231201171875, -0.01470947265625, 0.0005087852478027344, 0.040985107421875, 0.00994110107421875, 0.06622314453125, -0.0643310546875, -0.0263671875, -0.0182952880859375, 0.048614501953125, 0.0149688720703125, -0.005252838134765625, 0.0279541015625, 0.0254058837890625, 0.033294677734375, -0.0191497802734375, -0.0025234222412109375, 0.016448974609375, -0.01947021484375, 0.0733642578125, 0.0380859375, 0.03857421875, -0.07000732421875, -0.06964111328125, 0.060455322265625, 0.0994873046875, -0.034912109375, -0.040191650390625, 0.009490966796875, 0.00579833984375, 0.0074310302734375, 0.0428466796875, 0.04888916015625, 0.058502197265625, 0.057373046875, -0.003925323486328125, -0.0023040771484375, 0.021209716796875, 0.019622802734375, 0.01152801513671875, -0.00045990943908691406, -0.034393310546875, 0.0030956268310546875, -0.049896240234375, 0.020355224609375, 0.0308990478515625, 0.04656982421875, 0.004329681396484375, 0.06427001953125, -0.02752685546875, -0.0161285400390625, 0.0218353271484375, 0.03143310546875, 0.0230560302734375, -0.03521728515625, -0.0095062255859375, -0.06451416015625, 0.0222625732421875, 0.01357269287109375, 0.0347900390625, 0.01175689697265625, 0.0594482421875, 0.0177154541015625, -0.0384521484375, -0.004276275634765625, 0.038604736328125, -0.0220947265625, -0.05267333984375, -0.019073486328125, -0.013092041015625, 0.032806396484375, 0.00720977783203125, 0.0204315185546875, 0.039337158203125, 0.0184478759765625, -0.010467529296875, 0.05303955078125, -0.0013599395751953125, 0.0174713134765625, 0.028228759765625, 0.002567291259765625, -0.0028820037841796875, 0.0117034912109375, -0.12493896484375, -0.04278564453125, -0.04150390625, -0.02569580078125, 0.040313720703125, 0.044219970703125, 0.01418304443359375, -0.01276397705078125, 0.00299072265625, -0.00681304931640625, 0.013458251953125, -0.00409698486328125, 0.01546478271484375, 0.037200927734375, 0.02783203125, 0.0171966552734375, -0.062164306640625, -0.040985107421875, -0.0122528076171875, 0.006145477294921875, 0.026580810546875, -0.036102294921875, 0.07354736328125, 0.0325927734375, -0.06414794921875, 0.0384521484375, -0.07745361328125, -0.054901123046875, 0.0159149169921875, -0.0015010833740234375, -0.0012111663818359375, 0.01500701904296875, -0.0212554931640625, 0.00965118408203125, 0.055999755859375, -0.01904296875, 0.0266265869140625, -0.037811279296875, 0.010894775390625, -0.058349609375, 0.0223846435546875, -0.024658203125, 0.03192138671875, 0.016387939453125, -0.05322265625, 0.047576904296875, 0.0171356201171875, 0.04364013671875, 0.023406982421875, -0.027679443359375, -0.0408935546875, 0.020172119140625, -0.038818359375, 0.019561767578125, 0.040252685546875, -0.0055389404296875, 0.03106689453125, 0.031951904296875, -0.01043701171875, -0.004673004150390625, 0.035858154296875, -0.043487548828125, 0.019683837890625, -0.03790283203125, 0.01776123046875, 0.018798828125, 0.052032470703125, -0.0144195556640625, 0.0283355712890625, 0.0182952880859375, 0.00917816162109375, -0.0167083740234375, -0.015960693359375, -0.0291595458984375, -0.03753662109375, -0.0086212158203125, 0.01149749755859375, -0.02264404296875, -0.042266845703125, -0.055755615234375, -0.0164031982421875, 0.0188751220703125, 0.006221771240234375, -0.0234832763671875, 0.019073486328125, -0.012939453125, 0.01157379150390625, -0.0291748046875, -0.03497314453125, 0.0154266357421875, 0.0118560791015625, 0.00010603666305541992, 0.00455474853515625, -0.0181884765625, 0.00931549072265625, 0.01432037353515625, 0.023773193359375, 0.028961181640625, -0.04266357421875, -0.03375244140625, 0.01397705078125, 0.043609619140625, 0.053009033203125, 0.05548095703125, -0.012481689453125, -0.022369384765625, 0.03167724609375, -0.0227508544921875, -0.042144775390625, 0.026275634765625, -0.0288543701171875, -0.02996826171875, 0.006649017333984375, 0.01495361328125, 0.0362548828125, -0.020263671875, -0.0521240234375, 0.0614013671875, -0.0135955810546875, -0.0238494873046875, -0.04638671875, -0.0189971923828125, 0.01119232177734375, -0.0138397216796875, -0.027679443359375, -0.01154327392578125, -0.056243896484375, 0.0333251953125, 0.01401519775390625, 0.0391845703125, 0.0210113525390625, -0.0013685226440429688, -0.060577392578125, -0.0015850067138671875, -0.03662109375, 0.02386474609375, -0.01245880126953125, 0.0007791519165039062, 0.01141357421875, 0.038818359375, -0.038665771484375, -0.034820556640625, -0.0196075439453125, 0.007293701171875, 0.0016632080078125, 0.001651763916015625, -0.0282135009765625, 0.006801605224609375, 0.0291748046875, 0.040679931640625, 0.023040771484375, -0.042572021484375, 0.0011796951293945312, -0.02056884765625, -0.04840087890625, -0.035797119140625, 0.03765869140625, -0.08062744140625, -0.0147857666015625, 0.00618743896484375, -0.0265045166015625, -0.002307891845703125, -0.004608154296875, -0.043060302734375, -0.0020599365234375, -0.0275726318359375, -0.01605224609375, -0.0158233642578125, -0.00885772705078125, 0.03466796875, -0.03692626953125, -0.035308837890625, 0.00007200241088867188, 0.023468017578125, -0.008331298828125, -0.01319122314453125, -0.026824951171875, -0.00522613525390625, 0.00006794929504394531, 0.01617431640625, -0.005558013916015625, 0.007556915283203125, 0.00390625, 0.0032939910888671875, -0.015411376953125, 0.0293426513671875, 0.01837158203125, 0.026702880859375, -0.00252532958984375, 0.031890869140625, 0.0188446044921875, 0.026458740234375, 0.0033321380615234375, 0.040924072265625, 0.00598907470703125, 0.052734375, -0.0008521080017089844, -0.03399658203125, 0.026580810546875, -0.0498046875, -0.01678466796875, 0.031585693359375, -0.03228759765625, -0.04986572265625, 0.03802490234375, 0.03851318359375, 0.01081085205078125, 0.0230255126953125 ]
0d75ba17cda35a314205ae9be5510a54faed0f7d
Wordpress Stackexchange Q: Add dollar sign and commas to a number? I have a field on the admin side where a user enters a number for a price. If a user enters 1000000 I'd like to be able to display on the front-end $1,000,000. Any ideas on how to accomplish this? Edit More details, the post is a custom post type 'property'. To add the meta fields on the back-end I'm using Meta Box Script, http://www.deluxeblogtips.com/2011/03/meta-box-script-update-v30.html The code to display the numbers on the front-end I use $meta = get_post_meta(get_the_ID(), 'rw_propPrice', true); echo $meta; A: To format number, you can use the function number_format_i18n (it's not documented now, but you can see its source here). Its work is format the number based on the language. You might want to look at number_format (PHP built_in function, and is used by number_format_i18n) to have more control to decimal point and thousand separator. In your case, this code will help you: $meta = get_post_meta(get_the_ID(), 'rw_propPrice', true); echo '$' . number_format($meta, 0, '.', ',');
Q: Add dollar sign and commas to a number? I have a field on the admin side where a user enters a number for a price. If a user enters 1000000 I'd like to be able to display on the front-end $1,000,000. Any ideas on how to accomplish this? Edit More details, the post is a custom post type 'property'. To add the meta fields on the back-end I'm using Meta Box Script, http://www.deluxeblogtips.com/2011/03/meta-box-script-update-v30.html The code to display the numbers on the front-end I use $meta = get_post_meta(get_the_ID(), 'rw_propPrice', true); echo $meta; A: To format number, you can use the function number_format_i18n (it's not documented now, but you can see its source here). Its work is format the number based on the language. You might want to look at number_format (PHP built_in function, and is used by number_format_i18n) to have more control to decimal point and thousand separator. In your case, this code will help you: $meta = get_post_meta(get_the_ID(), 'rw_propPrice', true); echo '$' . number_format($meta, 0, '.', ','); A: Just a guess (you really need to be more specific in your Q - what screen, how did you add it, metabox/settings section/bla???)... $foo = get_option( 'your_option_name' ); echo '$'.$foo['bar']; // where bar is the searched value in the options array
wordpress
{ "language": "en", "length": 210, "provenance": "stackexchange_00019.jsonl.gz:410396", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20223" }
[ 0.0290374755859375, -0.003528594970703125, -0.0012254714965820312, -0.0396728515625, 0.006320953369140625, -0.01055908203125, -0.00016796588897705078, -0.006343841552734375, 0.0220489501953125, -0.005645751953125, 0.0125885009765625, -0.01091766357421875, -0.0309295654296875, -0.057281494140625, -0.0001392364501953125, -0.01090240478515625, 0.0225067138671875, 0.002155303955078125, 0.037811279296875, -0.002887725830078125, 0.00316619873046875, 0.02410888671875, 0.028167724609375, -0.01560211181640625, 0.0248260498046875, -0.05316162109375, 0.034820556640625, -0.0211944580078125, 0.0268096923828125, -0.0101165771484375, 0.0174713134765625, 0.00033855438232421875, 0.040740966796875, -0.00518798828125, 0.007598876953125, 0.09381103515625, 0.0244598388671875, 0.00228118896484375, 0.018402099609375, 0.01067352294921875, 0.042266845703125, -0.0199127197265625, -0.0226287841796875, 0.0276641845703125, -0.0285797119140625, -0.01145172119140625, 0.0258026123046875, -0.01141357421875, 0.0491943359375, 0.01462554931640625, -0.017425537109375, 0.0328369140625, -0.027008056640625, 0.00984954833984375, -0.00017452239990234375, 0.00608062744140625, -0.040802001953125, -0.005828857421875, 0.01169586181640625, 0.04638671875, 0.034515380859375, 0.00365447998046875, -0.01479339599609375, -0.017486572265625, 0.00794219970703125, -0.0002491474151611328, -0.042694091796875, 0.03326416015625, 0.017669677734375, -0.00525665283203125, -0.026092529296875, -0.03131103515625, 0.005340576171875, -0.01312255859375, -0.0186920166015625, -0.0180206298828125, -0.003322601318359375, -0.042083740234375, 0.02001953125, -0.00704193115234375, 0.048614501953125, 0.0288543701171875, 0.00860595703125, 0.01800537109375, -0.00742340087890625, 0.0297393798828125, -0.0109100341796875, -0.0298004150390625, -0.033203125, -0.046722412109375, -0.01419830322265625, -0.06463623046875, -0.055755615234375, 0.001094818115234375, 0.00014221668243408203, -0.039093017578125, 0.0005011558532714844, 0.0165252685546875, -0.01171112060546875, -0.017608642578125, -0.00965118408203125, -0.0203399658203125, -0.0194091796875, -0.016143798828125, -0.004505157470703125, 0.04638671875, 0.00432586669921875, 0.048828125, 0.04095458984375, 0.02447509765625, 0.01041412353515625, 0.0099945068359375, -0.044891357421875, -0.0232086181640625, -0.0196533203125, 0.0296783447265625, -0.06488037109375, 0.0236968994140625, 0.00484466552734375, -0.0125579833984375, 0.0110626220703125, 0.047210693359375, 0.03741455078125, -0.05816650390625, 0.010650634765625, 0.01366424560546875, -0.0205230712890625, -0.0811767578125, -0.040130615234375, 0.027984619140625, -0.0218353271484375, 0.002223968505859375, 0.030670166015625, 0.03131103515625, -0.004825592041015625, -0.0036163330078125, 0.029510498046875, -0.052490234375, -0.0204010009765625, 0.0299072265625, -0.041900634765625, -0.0400390625, -0.0028667449951171875, -0.0186004638671875, -0.0087738037109375, 0.0411376953125, 0.033233642578125, -0.01800537109375, -0.0203094482421875, -0.0631103515625, 0.004486083984375, -0.0299224853515625, 0.03460693359375, 0.01580810546875, -0.051300048828125, 0.0256500244140625, 0.004009246826171875, 0.006252288818359375, -0.0552978515625, -0.009307861328125, 0.0089874267578125, -0.0302734375, -0.003997802734375, -0.06890869140625, -0.08673095703125, 0.036895751953125, -0.043121337890625, -0.0162506103515625, 0.017730712890625, 0.0400390625, 0.036102294921875, 0.033355712890625, -0.04840087890625, 0.00785064697265625, 0.002300262451171875, -0.030029296875, 0.0112762451171875, 0.0609130859375, 0.00722503662109375, 0.0193023681640625, 0.016998291015625, -0.03985595703125, 0.072021484375, -0.0135498046875, -0.044036865234375, -0.003631591796875, -0.008697509765625, 0.0118560791015625, 0.0257568359375, 0.002346038818359375, 0.0206756591796875, -0.0006389617919921875, -0.041351318359375, 0.01349639892578125, 0.004947662353515625, -0.032623291015625, -0.01221466064453125, -0.026519775390625, 0.0009288787841796875, 0.0183563232421875, -0.005748748779296875, 0.05682373046875, -0.044830322265625, 0.023956298828125, -0.0235748291015625, 0.001682281494140625, -0.0020084381103515625, 0.038330078125, -0.05224609375, 0.0110015869140625, 0.029327392578125, -0.0262451171875, -0.01465606689453125, 0.018798828125, 0.0252685546875, 0.006923675537109375, -0.006267547607421875, 0.036529541015625, 0.01093292236328125, 0.01319122314453125, 0.03814697265625, -0.0411376953125, 0.034088134765625, 0.022857666015625, 0.0216064453125, -0.0207977294921875, -0.024658203125, -0.02459716796875, 0.00838470458984375, -0.016998291015625, 0.0142059326171875, 0.05841064453125, -0.025054931640625, -0.0024127960205078125, -0.0179443359375, -0.01288604736328125, -0.0186920166015625, -0.0772705078125, 0.0213470458984375, 0.060882568359375, 0.0166778564453125, -0.00792694091796875, 0.003597259521484375, 0.0190277099609375, 0.0198974609375, -0.0086822509765625, 0.015106201171875, -0.00890350341796875, 0.005107879638671875, 0.0142669677734375, -0.049102783203125, -0.004512786865234375, 0.0206451416015625, -0.08819580078125, 0.00591278076171875, 0.04736328125, -0.031402587890625, -0.0185089111328125, 0.021392822265625, -0.002727508544921875, -0.0022602081298828125, -0.0207672119140625, -0.0009975433349609375, -0.0220184326171875, 0.006198883056640625, 0.0211334228515625, 0.023590087890625, 0.0162353515625, -0.03546142578125, 0.022247314453125, 0.017669677734375, 0.0015811920166015625, 0.004253387451171875, -0.0229949951171875, -0.11517333984375, -0.01092529296875, -0.031585693359375, 0.061859130859375, 0.01195526123046875, -0.06097412109375, 0.005100250244140625, 0.042510986328125, -0.0187530517578125, -0.012481689453125, -0.007289886474609375, -0.025604248046875, -0.0152587890625, 0.00841522216796875, 0.0105438232421875, -0.015655517578125, 0.008819580078125, 0.02099609375, 0.00704193115234375, -0.0072479248046875, 0.016204833984375, -0.03582763671875, -0.0182037353515625, -0.036895751953125, 0.048309326171875, -0.06402587890625, 0.006565093994140625, 0.049285888671875, -0.040985107421875, 0.01345062255859375, -0.01468658447265625, -0.01154327392578125, -0.028656005859375, 0.03143310546875, -0.00746917724609375, -0.070068359375, -0.022308349609375, -0.0252227783203125, 0.02337646484375, 0.0079803466796875, -0.0196990966796875, -0.03155517578125, -0.034576416015625, 0.0025577545166015625, -0.11553955078125, -0.07769775390625, -0.01898193359375, -0.0755615234375, -0.037109375, -0.0011091232299804688, -0.054962158203125, 0.0328369140625, 0.017547607421875, 0.00501251220703125, 0.031524658203125, -0.03936767578125, 0.0073089599609375, -0.041107177734375, -0.055755615234375, -0.06622314453125, 0.0257415771484375, -0.01464080810546875, 0.0027523040771484375, 0.060882568359375, 0.011505126953125, -0.013397216796875, 0.032501220703125, 0.050384521484375, 0.0013990402221679688, -0.0050506591796875, 0.0034732818603515625, -0.02001953125, -0.005023956298828125, -0.0102996826171875, 0.007595062255859375, 0.00909423828125, -0.0142974853515625, 0.0008630752563476562, -0.020263671875, -0.0021533966064453125, -0.0024204254150390625, 0.059722900390625, 0.03204345703125, 0.003021240234375, 0.0228271484375, -0.038421630859375, -0.03033447265625, -0.00628662109375, -0.031097412109375, 0.01415252685546875, 0.0182037353515625, -0.017822265625, -0.0032672882080078125, 0.0275421142578125, -0.0279693603515625, 0.00025653839111328125, 0.01322174072265625, -0.0257720947265625, -0.0047149658203125, -0.0241546630859375, -0.018096923828125, 0.009185791015625, -0.01045989990234375, -0.0285186767578125, 0.060028076171875, -0.0034198760986328125, 0.0031375885009765625, -0.01068878173828125, 0.00856781005859375, -0.0110321044921875, -0.07421875, 0.059295654296875, -0.0433349609375, 0.007144927978515625, -0.06378173828125, -0.0313720703125, -0.02337646484375, 0.11431884765625, -0.051605224609375, -0.0076904296875, 0.0004067420959472656, 0.00958251953125, -0.0306854248046875, -0.0138092041015625, -0.0596923828125, 0.0014667510986328125, -0.04754638671875, 0.0037078857421875, -0.0035305023193359375, -0.0197906494140625, -0.007167816162109375, 0.016387939453125, -0.01023101806640625, -0.0203094482421875, 0.017974853515625, -0.0335693359375, -0.0177001953125, 0.038482666015625, -0.0073699951171875, 0.00007003545761108398, 0.0056915283203125, -0.044097900390625, -0.033599853515625, -0.022308349609375, 0.01959228515625, 0.04473876953125, 0.0284423828125, -0.08258056640625, 0.041259765625, 0.06622314453125, -0.0164031982421875, -0.026458740234375, -0.0137481689453125, 0.03515625, -0.035400390625, -0.03118896484375, -0.03955078125, -0.043731689453125, -0.0435791015625, -0.0282135009765625, 0.00426483154296875, 0.0171661376953125, -0.0267333984375, -0.01538848876953125, -0.018768310546875, 0.012542724609375, -0.0693359375, -0.021575927734375, -0.03851318359375, -0.006435394287109375, -0.04815673828125, -0.00457763671875, -0.024505615234375, -0.075439453125, 0.0300140380859375, -0.00972747802734375, -0.00875091552734375, 0.019134521484375, 0.0640869140625, 0.006954193115234375, -0.0189056396484375, -0.059356689453125, -0.0009245872497558594, 0.04229736328125, -0.0266571044921875, -0.0377197265625, -0.03643798828125, -0.057861328125, 0.0660400390625, -0.01320648193359375, 0.02923583984375, -0.026519775390625, 0.04034423828125, -0.028045654296875, -0.042083740234375, 0.046600341796875, -0.030059814453125, -0.0028781890869140625, -0.009735107421875, -0.0012359619140625, -0.00978851318359375, 0.0127105712890625, 0.01459503173828125, -0.00960540771484375, 0.041656494140625, 0.0025043487548828125, -0.031036376953125, 0.00479888916015625, -0.0262908935546875, 0.01203155517578125, 0.019073486328125, 0.0118255615234375, 0.01006317138671875, 0.015716552734375, -0.01074981689453125, 0.0357666015625, 0.033660888671875, -0.0201873779296875, 0.0279998779296875, -0.01090240478515625, -0.03326416015625, 0.01311492919921875, 0.01044464111328125, 0.016021728515625, 0.005645751953125, 0.0159759521484375, -0.080322265625, 0.00667572021484375, 0.0226287841796875, -0.03759765625, 0.027008056640625, 0.0164947509765625, 0.0013303756713867188, -0.01953125, -0.004726409912109375, 0.054229736328125, -0.027679443359375, -0.033447265625, -0.00035452842712402344, 0.01288604736328125, -0.0175628662109375, -0.05621337890625, 0.0986328125, -0.0199737548828125, 0.0323486328125, -0.0048828125, 0.034332275390625, 0.014434814453125, 0.0178375244140625, 0.0298919677734375, -0.019195556640625, 0.00817108154296875, -0.006755828857421875, -0.022674560546875, 0.0140838623046875, 0.01221466064453125, 0.0355224609375, -0.0017690658569335938, -0.002773284912109375, 0.0102691650390625, -0.00403594970703125, -0.0147552490234375, -0.0010576248168945312, 0.007686614990234375, -0.0266265869140625, 0.00009888410568237305, -0.024139404296875, -0.027557373046875, 0.01085662841796875, -0.0224609375, 0.01092529296875, 0.025238037109375, -0.0101470947265625, 0.035247802734375, -0.031280517578125, 0.041656494140625, -0.044830322265625, -0.044403076171875, 0.01316070556640625, -0.0032558441162109375, -0.0106353759765625, -0.07977294921875, -0.0311279296875, -0.028289794921875, 0.007717132568359375, 0.05657958984375, -0.0224761962890625, 0.0293121337890625, -0.042236328125, 0.008758544921875, -0.0225372314453125, 0.0072784423828125, 0.047271728515625, 0.020599365234375, -0.0113372802734375, -0.0116424560546875, -0.0257415771484375, -0.03900146484375, 0.04022216796875, 0.03277587890625, -0.029937744140625, -0.03460693359375, 0.01568603515625, 0.027130126953125, -0.01092529296875, -0.017181396484375, -0.037109375, 0.0205230712890625, 0.034637451171875, 0.072998046875, -0.030364990234375, 0.045684814453125, -0.0087127685546875, 0.043182373046875, 0.0024204254150390625, 0.0134124755859375, 0.0060272216796875, -0.018218994140625, 0.03033447265625, 0.0204925537109375, -0.026397705078125, -0.013916015625, 0.01535797119140625, -0.06854248046875, -0.0267791748046875, -0.028228759765625, 0.00438690185546875, 0.00159454345703125, 0.01291656494140625, -0.042144775390625, -0.0252685546875, 0.0024013519287109375, 0.047454833984375, -0.05718994140625, -0.049560546875, 0.01477813720703125, 0.019378662109375, 0.01202392578125, 0.01904296875, -0.037994384765625, 0.0082855224609375, 0.0411376953125, -0.0316162109375, -0.0059967041015625, 0.0133056640625, 0.0692138671875, 0.03570556640625, -0.00833892822265625, 0.0584716796875, -0.0002856254577636719, -0.0262908935546875, -0.0058135986328125, 0.00231170654296875, 0.007442474365234375, -0.017608642578125, 0.026519775390625, 0.0097808837890625, 0.005924224853515625, 0.03497314453125, 0.072509765625, 0.08642578125, -0.11181640625, 0.01251983642578125, 0.0135040283203125, -0.002658843994140625, 0.06988525390625, -0.0030040740966796875, 0.00804901123046875, -0.0203094482421875, -0.00928497314453125, 0.020233154296875, -0.0201416015625, -0.0062713623046875, 0.0164337158203125, -0.0032444000244140625, -0.021270751953125, 0.00933837890625, -0.01094818115234375, -0.032684326171875, -0.01549530029296875, 0.0220489501953125, -0.0182647705078125, -0.032379150390625, -0.0225677490234375, 0.0032825469970703125, -0.034423828125, -0.08013916015625, -0.0244293212890625, -0.0275421142578125, 0.0159912109375, 0.06646728515625, 0.0394287109375, 0.035858154296875, 0.059967041015625, 0.0154876708984375, 0.0172271728515625, 0.01055145263671875, 0.043304443359375, 0.039581298828125, -0.0188446044921875, -0.020172119140625, 0.0234832763671875, -0.02105712890625, -0.007694244384765625, -0.0035762786865234375, -0.0065155029296875, -0.0173492431640625, -0.038543701171875, 0.055816650390625, 0.026611328125, -0.06512451171875, -0.006282806396484375, 0.00018739700317382812, 0.00371551513671875, 0.006378173828125, -0.006633758544921875, -0.0188446044921875, 0.0030345916748046875, -0.007556915283203125, -0.044921875, -0.0097503662109375, 0.0016679763793945312, -0.037872314453125, 0.0278472900390625, 0.0011396408081054688, 0.0055999755859375, -0.007701873779296875, 0.01702880859375, -0.00318145751953125, -0.005741119384765625, -0.0413818359375, 0.032958984375, 0.0152587890625, 0.0262298583984375, -0.04833984375, -0.01435089111328125, 0.00490570068359375, 0.037322998046875, 0.01273345947265625, 0.0038280487060546875, -0.026641845703125, -0.01293182373046875, 0.01251983642578125, 0.0290679931640625, 0.01068878173828125, 0.03594970703125, -0.005146026611328125, 0.004817962646484375, 0.036895751953125, -0.00994873046875, 0.0213775634765625, -0.00238037109375, -0.022979736328125, 0.0156707763671875, 0.006855010986328125, -0.00597381591796875, -0.007740020751953125, -0.006465911865234375, -0.03094482421875, -0.0056610107421875, 0.012237548828125, -0.054473876953125, 0.022064208984375, -0.0063629150390625, -0.012664794921875, -0.02105712890625, -0.052825927734375, -0.0095062255859375, 0.002841949462890625, -0.008544921875, 0.012786865234375, 0.059722900390625, 0.01149749755859375, -0.0080413818359375, 0.035186767578125, 0.015899658203125, 0.01137542724609375, 0.0189971923828125, 0.049072265625, 0.03460693359375, -0.004695892333984375, -0.018035888671875, 0.0750732421875, 0.0299835205078125, 0.058074951171875, -0.0806884765625, -0.042388916015625, 0.0111846923828125, -0.0177001953125, 0.0146026611328125, 0.0108184814453125, 0.0158843994140625, 0.0024852752685546875, 0.01251983642578125, -0.005535125732421875, -0.00617218017578125, 0.015472412109375, 0.019195556640625, 0.0265655517578125, 0.0543212890625, -0.032623291015625, -0.0295257568359375, -0.0640869140625, -0.0193939208984375, 0.038055419921875, 0.1002197265625, 0.037445068359375, 0.07769775390625, -0.008331298828125, -0.051666259765625, -0.021728515625, 0.03167724609375, 0.0792236328125, -0.02410888671875, 0.042449951171875, 0.054168701171875, 0.00975799560546875, -0.018768310546875, -0.02276611328125, 0.03802490234375, 0.062469482421875, 0.048828125, -0.03955078125, -0.018951416015625, -0.0055999755859375, -0.034698486328125, -0.023529052734375, -0.034698486328125, -0.0030384063720703125, -0.0054931640625, 0.006984710693359375, 0.0286712646484375, 0.037200927734375, -0.02081298828125, -0.001552581787109375, 0.0184478759765625, 0.007175445556640625, 0.006397247314453125, 0.02911376953125, -0.012237548828125, 0.0083465576171875, 0.01224517822265625, -0.01000213623046875, 0.0189971923828125, -0.0286865234375, -0.037872314453125, -0.004024505615234375, 0.01560211181640625, -0.032501220703125, 0.045806884765625, -0.01544189453125, -0.002635955810546875, 0.038421630859375, -0.0104217529296875, -0.020782470703125, 0.0008053779602050781, 0.02398681640625, -0.006961822509765625, -0.005687713623046875, -0.01308441162109375, -0.0029315948486328125, 0.0562744140625, 0.01218414306640625, 0.03436279296875, -0.024566650390625, 0.0275726318359375, -0.01483154296875, -0.01528167724609375, 0.0181427001953125, -0.0175323486328125, 0.05181884765625, 0.0170135498046875, -0.022308349609375, -0.03228759765625, 0.039764404296875, -0.01016998291015625, 0.03155517578125, -0.06915283203125, -0.027557373046875, -0.007022857666015625, 0.0220184326171875, -0.0062255859375, 0.0189208984375, -0.00232696533203125, -0.0243377685546875, -0.0218353271484375, 0.0140533447265625, 0.0396728515625, 0.0838623046875, 0.0008449554443359375, 0.0088043212890625, 0.0270538330078125, -0.0277099609375, 0.037353515625, -0.02337646484375, 0.07867431640625, 0.042327880859375, -0.0303497314453125, 0.0396728515625, -0.0212249755859375, -0.030975341796875, 0.034393310546875, 0.0073699951171875, -0.021575927734375, 0.01520538330078125, 0.0330810546875, -0.026031494140625, 0.039642333984375, 0.03887939453125, 0.004169464111328125, 0.0174713134765625, 0.00707244873046875, -0.0308380126953125, -0.0074005126953125, -0.0014276504516601562, -0.03302001953125, -0.0279083251953125, 0.01800537109375, 0.0249481201171875, 0.02117919921875, -0.00608062744140625, -0.0292816162109375, -0.004791259765625, 0.01715087890625, -0.00977325439453125, 0.0007338523864746094, -0.036712646484375, 0.0015230178833007812, 0.039703369140625, -0.0018186569213867188, -0.0256805419921875, 0.0016994476318359375, 0.049774169921875, -0.01551055908203125, -0.05340576171875, -0.0217132568359375, 0.03802490234375, -0.044097900390625, 0.0239410400390625, 0.034423828125, -0.0212249755859375, 0.0222625732421875, 0.0088653564453125, 0.0265045166015625, 0.04644775390625, -0.00884246826171875, -0.0169219970703125, -0.0137786865234375, 0.0220184326171875, -0.001949310302734375, -0.0721435546875, 0.00310516357421875, -0.0753173828125, 0.002269744873046875, -0.01552581787109375, 0.003826141357421875, 0.0133056640625, -0.032501220703125, -0.062164306640625, 0.0251007080078125, -0.0030193328857421875, -0.0175018310546875, 0.01611328125, -0.07513427734375, -0.0255126953125, 0.05242919921875, 0.00600433349609375, -0.00862884521484375, -0.0517578125, 0.023162841796875, 0.0197906494140625, -0.057281494140625, 0.037841796875, 0.0081787109375, -0.070556640625, 0.017578125, 0.0121612548828125, -0.0199737548828125, 0.005771636962890625, -0.00630950927734375, 0.006427764892578125, 0.01531982421875, -0.048187255859375, 0.00034880638122558594, -0.00970458984375, 0.025238037109375, -0.00331878662109375, -0.03009033203125, -0.027069091796875, -0.048736572265625, 0.07720947265625, -0.0288848876953125, 0.01470184326171875, 0.0183258056640625, 0.01244354248046875, -0.004276275634765625, 0.004245758056640625, -0.0035572052001953125, -0.004215240478515625, -0.0273284912109375, -0.01213836669921875, -0.0032253265380859375, 0.0145721435546875, 0.046661376953125, 0.0183563232421875, 0.027130126953125, 0.002887725830078125, 0.06829833984375, -0.031494140625, -0.0252838134765625, -0.0273895263671875, 0.0626220703125, -0.05462646484375, -0.046356201171875, 0.01032257080078125, 0.02587890625, -0.01532745361328125, -0.0237579345703125, -0.0675048828125, -0.0193023681640625, 0.0015115737915039062, 0.033294677734375, -0.0205230712890625, 0.057342529296875, -0.0233154296875, 0.032745361328125, 0.0019016265869140625, 0.00927734375, -0.01529693603515625, 0.0080413818359375, 0.01009368896484375, 0.041351318359375, 0.002685546875, 0.053436279296875, -0.0206451416015625, 0.0279388427734375, -0.0238494873046875, 0.0246734619140625, -0.012847900390625, 0.0034923553466796875, 0.0193939208984375, -0.01074981689453125, -0.0011396408081054688, -0.033599853515625, -0.016876220703125, -0.05108642578125, 0.0234222412109375, -0.0179290771484375, -0.0052642822265625, 0.03363037109375 ]
a6a272c9713b2421af53475a3feaf4a8e0dda14c
Wordpress Stackexchange Q: How to create a public profile for authors/contributors/users? I would like to add a public profile page to the authors and others contributors in my site. where visitors can see their profile info. I don't wanna use Buddypress, is it possible with WordPress alone? A: bainternet posted something in this thread that will help you, (this is actually editing user profiles from frontend) but it will give you the idea, then just echo the fields out on author.php
Q: How to create a public profile for authors/contributors/users? I would like to add a public profile page to the authors and others contributors in my site. where visitors can see their profile info. I don't wanna use Buddypress, is it possible with WordPress alone? A: bainternet posted something in this thread that will help you, (this is actually editing user profiles from frontend) but it will give you the idea, then just echo the fields out on author.php A: I created a new content type called authors, and then used Advanced Custom Fields to create post-to-post relationships between authors and posts. This way I can have multiple author pages linked to one post, and make templates that display all authors and "Other content by [this|these] author[s]" at the bottom of posts, and "Content by this author" to the bottom of author pages. This also allows authors to have custom urls such as mysite.org/authors/foo_bar and an archive page of all authors at mysite.org/authors
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:410406", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20247" }
[ 0.0245819091796875, 0.0113067626953125, 0.0018033981323242188, -0.0173797607421875, -0.011260986328125, -0.000881195068359375, 0.0025691986083984375, -0.037689208984375, -0.06451416015625, 0.0146636962890625, 0.01390838623046875, 0.033599853515625, -0.046234130859375, -0.01454925537109375, 0.0038089752197265625, -0.040130615234375, 0.0076751708984375, 0.0174407958984375, 0.029937744140625, 0.00902557373046875, 0.0019006729125976562, 0.0178680419921875, 0.01349639892578125, -0.02264404296875, 0.045928955078125, -0.0108184814453125, 0.03509521484375, -0.016845703125, 0.038299560546875, -0.0034122467041015625, 0.02764892578125, -0.0210723876953125, -0.00618743896484375, 0.02093505859375, 0.0171356201171875, 0.03143310546875, 0.01477813720703125, 0.0271759033203125, 0.043975830078125, -0.003307342529296875, 0.036956787109375, -0.0198211669921875, -0.05242919921875, 0.0482177734375, -0.0287628173828125, -0.06402587890625, 0.048187255859375, -0.03125, 0.024810791015625, 0.0179901123046875, -0.0089874267578125, 0.032196044921875, -0.0094451904296875, -0.03167724609375, -0.01157379150390625, -0.01800537109375, 0.06060791015625, -0.0105743408203125, 0.05511474609375, -0.09320068359375, -0.06646728515625, -0.0281219482421875, 0.05511474609375, 0.0192718505859375, 0.0008630752563476562, -0.00630950927734375, -0.0309906005859375, 0.032867431640625, -0.03662109375, -0.0133514404296875, 0.0177459716796875, -0.0484619140625, -0.0164642333984375, 0.00238037109375, -0.0504150390625, -0.01248931884765625, -0.004199981689453125, -0.06500244140625, 0.0252685546875, 0.0119171142578125, -0.045684814453125, -0.03338623046875, -0.0380859375, -0.021728515625, 0.00844573974609375, 0.0159149169921875, -0.0182342529296875, 0.007289886474609375, -0.023681640625, 0.036712646484375, -0.0103912353515625, -0.06719970703125, -0.00782012939453125, 0.076904296875, 0.0201873779296875, 0.020721435546875, 0.0267333984375, 0.033233642578125, -0.01068115234375, 0.0101776123046875, 0.0194244384765625, -0.03118896484375, 0.034027099609375, -0.0340576171875, 0.007568359375, 0.054931640625, -0.017303466796875, 0.0037860870361328125, 0.0214996337890625, 0.0159149169921875, 0.006092071533203125, -0.02215576171875, -0.0008554458618164062, -0.015045166015625, -0.012939453125, 0.020721435546875, -0.0173797607421875, 0.0246734619140625, 0.004573822021484375, 0.02734375, -0.006755828857421875, 0.0052337646484375, 0.0264434814453125, -0.020721435546875, -0.01340484619140625, -0.01497650146484375, -0.0275115966796875, -0.0171966552734375, 0.008056640625, -0.00927734375, -0.031402587890625, 0.0282135009765625, 0.0499267578125, 0.01300811767578125, 0.0009665489196777344, -0.01537322998046875, 0.0213165283203125, -0.000621795654296875, -0.0065155029296875, 0.03900146484375, -0.0478515625, -0.034088134765625, 0.0264892578125, -0.034912109375, -0.01096343994140625, 0.0208892822265625, 0.00926971435546875, 0.0244140625, -0.0039520263671875, -0.038330078125, -0.01541900634765625, 0.007694244384765625, -0.039154052734375, 0.0209808349609375, 0.060089111328125, -0.0289459228515625, 0.0188751220703125, -0.0244140625, 0.07427978515625, 0.005123138427734375, 0.0400390625, 0.01171875, 0.0102996826171875, 0.030487060546875, 0.0192108154296875, -0.0253448486328125, -0.0195465087890625, 0.01123809814453125, 0.01273345947265625, -0.0155029296875, -0.004238128662109375, -0.005535125732421875, -0.0050201416015625, 0.0193939208984375, 0.012664794921875, 0.0297698974609375, -0.0069427490234375, 0.007965087890625, 0.0141754150390625, 0.06475830078125, 0.01812744140625, -0.0223541259765625, 0.02947998046875, 0.0034942626953125, -0.058013916015625, 0.0523681640625, -0.007572174072265625, 0.07659912109375, 0.036224365234375, -0.00643157958984375, 0.00014853477478027344, -0.01444244384765625, -0.0104827880859375, 0.0184783935546875, 0.01337432861328125, -0.0333251953125, -0.01300048828125, -0.01407623291015625, -0.00186920166015625, -0.0006966590881347656, -0.0007205009460449219, 0.0020771026611328125, 0.01320648193359375, -0.00946807861328125, -0.031829833984375, 0.01568603515625, -0.0096588134765625, 0.024993896484375, 0.046142578125, -0.01311492919921875, -0.01222991943359375, -0.0193023681640625, 0.025787353515625, -0.069091796875, -0.06756591796875, 0.0164642333984375, -0.00585174560546875, 0.007198333740234375, 0.0188446044921875, 0.018280029296875, 0.000804901123046875, 0.034576416015625, -0.00788116455078125, -0.0194244384765625, 0.0435791015625, -0.044189453125, -0.0237884521484375, -0.04266357421875, -0.00980377197265625, -0.02386474609375, -0.056121826171875, 0.0640869140625, 0.00012433528900146484, -0.0094757080078125, 0.0017986297607421875, 0.01074981689453125, 0.01430511474609375, -0.0498046875, -0.0009546279907226562, 0.03363037109375, 0.019683837890625, -0.002410888671875, -0.00778961181640625, 0.023773193359375, 0.0106048583984375, 0.0282135009765625, 0.045074462890625, -0.0191650390625, 0.02685546875, 0.04168701171875, -0.02239990234375, -0.0300445556640625, 0.0095977783203125, -0.11383056640625, 0.004535675048828125, 0.037933349609375, -0.05206298828125, 0.01383209228515625, -0.004405975341796875, -0.0198822021484375, 0.012939453125, -0.0118560791015625, 0.0229949951171875, -0.01593017578125, 0.0101470947265625, -0.0194854736328125, 0.02984619140625, 0.03057861328125, 0.0014009475708007812, -0.0173797607421875, 0.0051116943359375, -0.01081085205078125, 0.0064544677734375, 0.007244110107421875, -0.0031490325927734375, 0.006195068359375, -0.0110626220703125, 0.0004382133483886719, 0.00335693359375, -0.0044403076171875, -0.00022351741790771484, 0.0066680908203125, -0.002162933349609375, -0.005130767822265625, 0.0278167724609375, -0.003551483154296875, 0.01360321044921875, 0.005016326904296875, -0.032379150390625, -0.042694091796875, -0.00995635986328125, 0.00783538818359375, -0.04315185546875, 0.0306243896484375, -0.0036525726318359375, -0.02581787109375, 0.0220184326171875, -0.0972900390625, 0.082275390625, -0.05499267578125, 0.050994873046875, 0.09326171875, -0.0022449493408203125, 0.0294189453125, -0.006175994873046875, 0.022064208984375, -0.0168914794921875, 0.037750244140625, 0.0212249755859375, -0.030487060546875, 0.0265655517578125, 0.0673828125, 0.012542724609375, -0.021484375, 0.020599365234375, -0.0032939910888671875, -0.01103973388671875, 0.0100860595703125, -0.00760650634765625, 0.021392822265625, -0.03497314453125, -0.082763671875, -0.021453857421875, -0.0137939453125, -0.053802490234375, 0.032501220703125, 0.016204833984375, 0.006259918212890625, -0.0095672607421875, -0.04937744140625, -0.05950927734375, -0.06964111328125, -0.08026123046875, -0.016876220703125, -0.00150299072265625, 0.007259368896484375, 0.0009503364562988281, 0.02886962890625, -0.01352691650390625, -0.030517578125, -0.0164794921875, -0.00818634033203125, 0.0092926025390625, -0.012542724609375, 0.0023212432861328125, -0.01096343994140625, -0.006427764892578125, 0.00592803955078125, 0.0418701171875, 0.0271148681640625, -0.028289794921875, -0.007701873779296875, -0.01055908203125, -0.0202789306640625, 0.00879669189453125, 0.022216796875, 0.0047607421875, -0.044281005859375, -0.01047515869140625, -0.0604248046875, 0.006072998046875, 0.0216522216796875, -0.005542755126953125, -0.016143798828125, -0.0208892822265625, -0.039642333984375, -0.021881103515625, 0.01104736328125, 0.00659942626953125, 0.039093017578125, -0.036285400390625, 0.01113128662109375, -0.014190673828125, 0.0007390975952148438, -0.004489898681640625, 0.037689208984375, -0.0184326171875, -0.03302001953125, 0.034454345703125, -0.01232147216796875, -0.00969696044921875, -0.0243682861328125, 0.0450439453125, -0.0227813720703125, -0.04339599609375, 0.040283203125, -0.0281829833984375, 0.01383209228515625, -0.0618896484375, -0.0238494873046875, -0.038421630859375, 0.07177734375, 0.0159454345703125, 0.0073089599609375, 0.031707763671875, -0.01033782958984375, -0.056884765625, -0.015472412109375, -0.0830078125, -0.0048980712890625, 0.0223846435546875, 0.01727294921875, 0.0034084320068359375, 0.007198333740234375, -0.06365966796875, 0.04193115234375, -0.0128936767578125, 0.01206207275390625, 0.0022335052490234375, -0.029754638671875, -0.004974365234375, 0.021636962890625, -0.01678466796875, -0.002166748046875, -0.0092010498046875, -0.03662109375, -0.07635498046875, -0.01505279541015625, -0.0037021636962890625, 0.033477783203125, -0.024322509765625, 0.018524169921875, -0.0107269287109375, 0.048431396484375, 0.00516510009765625, 0.03948974609375, 0.01181793212890625, 0.00626373291015625, -0.0031681060791015625, -0.0157470703125, 0.006969451904296875, -0.02734375, -0.01910400390625, -0.033477783203125, -0.0251007080078125, 0.005767822265625, -0.015838623046875, 0.0142822265625, -0.0008320808410644531, -0.0136871337890625, -0.046142578125, -0.022003173828125, 0.03240966796875, 0.05413818359375, -0.01277923583984375, 0.0248565673828125, -0.04541015625, -0.057373046875, 0.028961181640625, 0.006927490234375, -0.0201568603515625, 0.0203704833984375, 0.0694580078125, 0.00893402099609375, -0.0033969879150390625, -0.08319091796875, 0.00553131103515625, 0.033203125, -0.0198822021484375, 0.047271728515625, 0.022552490234375, -0.01393890380859375, 0.03985595703125, -0.01312255859375, -0.00036597251892089844, -0.03155517578125, 0.02447509765625, -0.0115203857421875, -0.0146331787109375, 0.0213623046875, -0.01378631591796875, 0.0604248046875, 0.030426025390625, -0.01371002197265625, 0.02899169921875, -0.01195526123046875, 0.0112457275390625, -0.0091400146484375, -0.00811004638671875, -0.0180511474609375, -0.0207977294921875, 0.006092071533203125, -0.07159423828125, 0.037628173828125, 0.020599365234375, -0.0036907196044921875, 0.0010833740234375, 0.016845703125, -0.021728515625, -0.009307861328125, -0.050323486328125, 0.00447845458984375, 0.00933074951171875, -0.03961181640625, -0.01910400390625, 0.0130615234375, -0.02374267578125, 0.09759521484375, 0.0239715576171875, -0.06329345703125, 0.034698486328125, -0.037689208984375, 0.026519775390625, 0.004314422607421875, 0.01404571533203125, 0.04046630859375, 0.014984130859375, -0.02044677734375, -0.01244354248046875, -0.016937255859375, 0.002834320068359375, -0.051849365234375, 0.062255859375, 0.0034637451171875, 0.00899505615234375, 0.0121917724609375, 0.060791015625, -0.02618408203125, 0.033660888671875, -0.002002716064453125, 0.06658935546875, 0.08349609375, -0.0394287109375, 0.003543853759765625, 0.046356201171875, -0.00815582275390625, -0.051971435546875, -0.0035343170166015625, -0.005405426025390625, 0.0305633544921875, 0.00910186767578125, -0.012542724609375, 0.041259765625, 0.0016260147094726562, 0.01971435546875, -0.0186767578125, -0.0210113525390625, -0.042572021484375, -0.01641845703125, -0.0028591156005859375, 0.00487518310546875, -0.00908660888671875, -0.0235443115234375, 0.02386474609375, 0.00035953521728515625, -0.028900146484375, -0.0236968994140625, -0.013519287109375, 0.006778717041015625, -0.03582763671875, -0.009033203125, 0.002170562744140625, -0.0167388916015625, -0.0243072509765625, -0.007396697998046875, -0.007724761962890625, -0.0006518363952636719, -0.0173797607421875, -0.0207061767578125, 0.050628662109375, -0.00649261474609375, 0.01145172119140625, -0.01397705078125, -0.00024437904357910156, 0.03521728515625, -0.0150299072265625, 0.08294677734375, 0.0202484130859375, -0.03057861328125, -0.0019083023071289062, -0.044586181640625, 0.001033782958984375, -0.004230499267578125, -0.044708251953125, -0.02081298828125, -0.0242462158203125, 0.01025390625, 0.0164642333984375, -0.0298309326171875, -0.059600830078125, -0.0055389404296875, 0.0172119140625, 0.024932861328125, 0.01419830322265625, -0.016815185546875, 0.05596923828125, -0.0287322998046875, 0.06475830078125, -0.014068603515625, 0.02349853515625, 0.0027179718017578125, -0.031707763671875, 0.0111846923828125, -0.0174560546875, -0.0234832763671875, -0.01678466796875, -0.00687408447265625, 0.00968170166015625, 0.0272979736328125, 0.0029926300048828125, 0.0151824951171875, -0.033966064453125, -0.002368927001953125, -0.01309967041015625, 0.03155517578125, -0.02813720703125, -0.0110931396484375, 0.0048065185546875, 0.0033550262451171875, 0.035430908203125, -0.010345458984375, -0.0208587646484375, 0.004848480224609375, -0.001430511474609375, 0.0108184814453125, 0.006374359130859375, -0.01373291015625, 0.0325927734375, 0.056396484375, 0.010833740234375, 0.0340576171875, 0.033447265625, 0.01256561279296875, 0.011932373046875, 0.017791748046875, -0.056793212890625, -0.012298583984375, 0.0274810791015625, 0.011505126953125, -0.01265716552734375, 0.0160980224609375, -0.013519287109375, 0.0036468505859375, 0.037994384765625, 0.0389404296875, -0.1007080078125, 0.03399658203125, 0.019561767578125, 0.035064697265625, 0.035400390625, -0.017333984375, -0.004520416259765625, -0.05474853515625, 0.06585693359375, -0.0059967041015625, 0.0027942657470703125, 0.00792694091796875, -0.016265869140625, 0.00189971923828125, -0.022308349609375, 0.040130615234375, 0.0182647705078125, -0.0145263671875, 0.0032444000244140625, 0.0225067138671875, 0.0114288330078125, -0.013031005859375, -0.016082763671875, 0.003696441650390625, 0.006793975830078125, -0.004032135009765625, 0.06793212890625, -0.0673828125, 0.037994384765625, 0.046722412109375, -0.00667572021484375, 0.017303466796875, 0.042816162109375, -0.0014181137084960938, 0.0166778564453125, 0.0024280548095703125, -0.00243377685546875, 0.03216552734375, -0.02374267578125, 0.0033512115478515625, 0.0226593017578125, -0.0237579345703125, 0.00952911376953125, 0.000293731689453125, -0.0191192626953125, -0.0113525390625, 0.036773681640625, 0.07452392578125, -0.0135345458984375, -0.033203125, 0.032501220703125, 0.034912109375, -0.012786865234375, 0.0199432373046875, -0.01763916015625, -0.0235137939453125, 0.007617950439453125, 0.0115509033203125, -0.0166473388671875, 0.020721435546875, 0.011962890625, -0.054229736328125, 0.0655517578125, -0.028289794921875, 0.006816864013671875, -0.012725830078125, 0.0338134765625, 0.01010894775390625, 0.0286865234375, -0.00958251953125, 0.06524658203125, 0.0258941650390625, 0.056884765625, -0.045196533203125, -0.043792724609375, 0.035919189453125, 0.095458984375, 0.08380126953125, 0.026763916015625, -0.03155517578125, -0.0131378173828125, 0.0084075927734375, -0.01361083984375, -0.04937744140625, 0.0635986328125, -0.00348663330078125, -0.0350341796875, 0.0222930908203125, -0.030487060546875, 0.0302886962890625, -0.054412841796875, 0.02374267578125, -0.01181793212890625, 0.0216522216796875, 0.0303802490234375, -0.00737762451171875, 0.0010690689086914062, -0.0283050537109375, 0.0016794204711914062, 0.0143890380859375, 0.0309906005859375, -0.01922607421875, 0.0474853515625, 0.0290374755859375, 0.00972747802734375, 0.007183074951171875, -0.02294921875, 0.050323486328125, 0.015594482421875, 0.01282501220703125, 0.052276611328125, 0.02081298828125, 0.0081329345703125, 0.0176849365234375, 0.0239410400390625, 0.029876708984375, -0.003459930419921875, 0.058502197265625, 0.006458282470703125, 0.034759521484375, -0.080322265625, -0.060089111328125, 0.032928466796875, 0.08880615234375, -0.021942138671875, -0.04925537109375, 0.0093231201171875, 0.0179595947265625, 0.0120697021484375, 0.00606536865234375, 0.0179901123046875, -0.027130126953125, 0.0362548828125, -0.049072265625, 0.01326751708984375, 0.0406494140625, 0.0130767822265625, -0.004398345947265625, -0.051361083984375, -0.0205535888671875, 0.0258331298828125, -0.0243377685546875, -0.031890869140625, -0.002460479736328125, 0.0004992485046386719, 0.04962158203125, -0.0112152099609375, 0.06060791015625, 0.00015652179718017578, 0.00804901123046875, 0.005401611328125, 0.0384521484375, -0.0266571044921875, -0.0238800048828125, -0.00598907470703125, 0.037200927734375, 0.0255584716796875, 0.00927734375, 0.004993438720703125, 0.053436279296875, 0.0256500244140625, -0.057464599609375, -0.005130767822265625, 0.03277587890625, -0.0322265625, -0.0208892822265625, -0.033721923828125, 0.0108184814453125, 0.0295867919921875, 0.0017242431640625, -0.006862640380859375, -0.00864410400390625, 0.06646728515625, -0.03485107421875, 0.0236663818359375, -0.00713348388671875, -0.024658203125, 0.05804443359375, -0.009521484375, 0.043212890625, -0.00936126708984375, -0.1019287109375, -0.01111602783203125, -0.06353759765625, -0.04449462890625, 0.050933837890625, 0.044891357421875, -0.039947509765625, 0.018768310546875, 0.00452423095703125, 0.0294036865234375, 0.00804901123046875, -0.04364013671875, 0.01214599609375, 0.041046142578125, 0.031646728515625, 0.02508544921875, -0.06298828125, -0.0440673828125, -0.0550537109375, 0.06085205078125, 0.04852294921875, 0.060333251953125, -0.0222015380859375, 0.054046630859375, -0.02398681640625, 0.015960693359375, -0.031280517578125, -0.033294677734375, 0.05010986328125, -0.010498046875, -0.023681640625, -0.002986907958984375, -0.02581787109375, 0.04913330078125, -0.0166015625, -0.0260772705078125, 0.0028705596923828125, -0.0023784637451171875, 0.01532745361328125, 0.010955810546875, -0.0209808349609375, -0.031341552734375, -0.0230255126953125, -0.01381683349609375, 0.0115203857421875, -0.0034008026123046875, -0.0330810546875, -0.028839111328125, 0.0323486328125, -0.00949859619140625, -0.049346923828125, -0.005367279052734375, -0.045196533203125, -0.0413818359375, 0.0141448974609375, 0.044677734375, -0.04052734375, 0.0169525146484375, -0.0115814208984375, -0.0033054351806640625, 0.01361083984375, 0.0218963623046875, 0.010009765625, -0.0155487060546875, 0.031494140625, -0.01300811767578125, 0.03289794921875, -0.0114593505859375, -0.00220489501953125, -0.01421356201171875, 0.0143585205078125, -0.006046295166015625, 0.033294677734375, -0.0204925537109375, -0.02685546875, 0.01107025146484375, 0.00878143310546875, 0.003948211669921875, -0.035614013671875, -0.0687255859375, 0.0160675048828125, -0.0186309814453125, -0.012176513671875, -0.032684326171875, 0.01319122314453125, 0.005611419677734375, 0.040924072265625, -0.0435791015625, -0.02947998046875, 0.0272674560546875, 0.032562255859375, -0.033050537109375, 0.044219970703125, -0.01035308837890625, -0.0531005859375, 0.0230865478515625, 0.038116455078125, 0.080322265625, -0.021270751953125, 0.0245208740234375, 0.0335693359375, 0.0269622802734375, 0.094482421875, -0.08953857421875, -0.033416748046875, -0.0189208984375, -0.0033588409423828125, 0.0084381103515625, -0.0379638671875, 0.01387786865234375, -0.07049560546875, -0.0323486328125, -0.043853759765625, 0.00931549072265625, 0.01508331298828125, -0.038543701171875, -0.0810546875, 0.1007080078125, -0.0450439453125, -0.0262451171875, -0.039276123046875, -0.0012636184692382812, 0.010711669921875, -0.0228271484375, -0.01517486572265625, 0.01203155517578125, -0.03778076171875, 0.016693115234375, -0.01232147216796875, 0.034393310546875, -0.0087890625, -0.004497528076171875, -0.014007568359375, 0.0161895751953125, -0.0075225830078125, -0.0361328125, 0.036468505859375, -0.0283660888671875, 0.03033447265625, 0.040069580078125, -0.049102783203125, -0.050262451171875, -0.03057861328125, -0.006809234619140625, 0.0116729736328125, -0.03619384765625, -0.004192352294921875, -0.0202178955078125, -0.0106353759765625, -0.0020847320556640625, 0.0038967132568359375, -0.005115509033203125, 0.0251312255859375, -0.0177001953125, 0.010894775390625, 0.00653076171875, -0.0153961181640625, -0.028167724609375, -0.01031494140625, 0.01415252685546875, -0.0009016990661621094, -0.006237030029296875, -0.020965576171875, -0.0231781005859375, -0.01108551025390625, -0.0116424560546875, -0.02032470703125, 0.021728515625, -0.0117034912109375, 0.0038394927978515625, -0.0203094482421875, -0.0467529296875, 0.0214996337890625, 0.00955963134765625, -0.05035400390625, -0.0109100341796875, 0.015625, -0.01557159423828125, -0.0052337646484375, 0.0269927978515625, 0.0163116455078125, 0.021484375, -0.0206451416015625, -0.0264129638671875, -0.016326904296875, 0.041534423828125, 0.026123046875, 0.04400634765625, -0.049530029296875, 0.0587158203125, 0.02410888671875, 0.040435791015625, -0.027496337890625, -0.0223541259765625, -0.03131103515625, 0.03912353515625, -0.05352783203125, 0.01861572265625, -0.0108184814453125, -0.029815673828125, 0.00887298583984375, 0.00922393798828125, -0.0017309188842773438, -0.0252838134765625, 0.01328277587890625, 0.007411956787109375, 0.012237548828125, 0.01385498046875 ]
7475d54d5a4165a1e44be36b09864d02dcdacd31
Wordpress Stackexchange Q: importing data from non-wordpress mysql db I have created an import file to get the articles from a non-wordpress db and bring them in as posts in wordpress, I am not sure how to bring over the thumbnail image into my custom field I defined as "thumbnail". Any suggestions. Here is the code I am using: $results = mysql_query("SELECT headline, abstract, article, author, posted, category, img, facilities FROM articles",$lclink); $i = 0; while ($row = mysql_fetch_array($results,MYSQL_ASSOC)) { $post = array(); $post['post_status'] = 'publish'; $post['post_category'] = array(1); $post['post_date'] = date('Y-m-d H:i:s',strtotime($row['posted'])); $post['post_title'] = $row['headline']; $post['post_excerpt'] = $row['abstract']; $post['post_content'] = $row['article']; $post['post_author'] = $row['author']; $posts[$i] = $post; $i++; } require('./wp-load.php'); foreach ($posts as $post) { wp_insert_post($post); } A: you need to get the ID back from your post insertion and use that with add_post_meta: $post_id = wp_insert_post($post); add_post_meta($post_id, 'thumbnail', $yourvalue, true);
Q: importing data from non-wordpress mysql db I have created an import file to get the articles from a non-wordpress db and bring them in as posts in wordpress, I am not sure how to bring over the thumbnail image into my custom field I defined as "thumbnail". Any suggestions. Here is the code I am using: $results = mysql_query("SELECT headline, abstract, article, author, posted, category, img, facilities FROM articles",$lclink); $i = 0; while ($row = mysql_fetch_array($results,MYSQL_ASSOC)) { $post = array(); $post['post_status'] = 'publish'; $post['post_category'] = array(1); $post['post_date'] = date('Y-m-d H:i:s',strtotime($row['posted'])); $post['post_title'] = $row['headline']; $post['post_excerpt'] = $row['abstract']; $post['post_content'] = $row['article']; $post['post_author'] = $row['author']; $posts[$i] = $post; $i++; } require('./wp-load.php'); foreach ($posts as $post) { wp_insert_post($post); } A: you need to get the ID back from your post insertion and use that with add_post_meta: $post_id = wp_insert_post($post); add_post_meta($post_id, 'thumbnail', $yourvalue, true);
wordpress
{ "language": "en", "length": 140, "provenance": "stackexchange_00019.jsonl.gz:410413", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20269" }
[ 0.0797119140625, 0.027313232421875, 0.01374053955078125, -0.0201873779296875, 0.049896240234375, -0.030548095703125, 0.06695556640625, -0.048248291015625, -0.001949310302734375, 0.01126861572265625, -0.042449951171875, 0.01055908203125, -0.061492919921875, -0.00899505615234375, -0.0102386474609375, -0.04693603515625, 0.034332275390625, -0.0182647705078125, 0.0391845703125, 0.0175323486328125, 0.0078582763671875, 0.0362548828125, 0.03643798828125, -0.039154052734375, 0.0360107421875, 0.004337310791015625, 0.01253509521484375, 0.0032978057861328125, -0.004215240478515625, 0.0033321380615234375, 0.031707763671875, -0.0194091796875, 0.0170745849609375, -0.006206512451171875, -0.0114288330078125, 0.032073974609375, 0.0401611328125, 0.0008211135864257812, -0.0074920654296875, 0.050933837890625, 0.0201263427734375, -0.010406494140625, 0.00043773651123046875, 0.0216522216796875, -0.015167236328125, -0.02899169921875, 0.01473236083984375, -0.03021240234375, 0.0125885009765625, -0.029571533203125, 0.00035381317138671875, 0.0281829833984375, 0.03448486328125, -0.029022216796875, -0.006717681884765625, -0.003826141357421875, -0.050872802734375, 0.0294647216796875, 0.040924072265625, 0.0256195068359375, -0.0250701904296875, -0.018218994140625, -0.0038089752197265625, -0.023651123046875, 0.0022563934326171875, 0.0011548995971679688, 0.0011148452758789062, 0.02056884765625, -0.049774169921875, -0.00756072998046875, 0.0252532958984375, -0.032989501953125, -0.01229095458984375, -0.016632080078125, -0.038909912109375, 0.034454345703125, 0.0210723876953125, -0.0306243896484375, 0.0007944107055664062, -0.00485992431640625, -0.01898193359375, 0.00856781005859375, -0.0300140380859375, -0.0193023681640625, 0.019317626953125, 0.0201568603515625, -0.0179901123046875, -0.014556884765625, -0.03167724609375, -0.00860595703125, -0.0240936279296875, -0.039886474609375, -0.033599853515625, 0.01473236083984375, 0.0249786376953125, -0.025970458984375, -0.010284423828125, 0.050262451171875, -0.0271453857421875, 0.0236358642578125, -0.01152801513671875, -0.022186279296875, 0.05352783203125, -0.055633544921875, 0.02362060546875, 0.0101470947265625, -0.0294189453125, -0.07891845703125, 0.03173828125, 0.0290679931640625, -0.01259613037109375, 0.0204315185546875, -0.0016717910766601562, 0.04046630859375, -0.036041259765625, 0.0230560302734375, -0.01010894775390625, -0.0264739990234375, -0.04681396484375, 0.007549285888671875, -0.0083770751953125, 0.024566650390625, -0.0433349609375, -0.041900634765625, 0.0258636474609375, -0.0122222900390625, -0.02252197265625, 0.0217437744140625, -0.07196044921875, 0.0217437744140625, -0.0292205810546875, 0.0269317626953125, 0.1090087890625, 0.055999755859375, 0.0013017654418945312, -0.0145721435546875, 0.020355224609375, -0.007659912109375, -0.0204620361328125, 0.02349853515625, -0.032379150390625, -0.041351318359375, -0.0015506744384765625, -0.024871826171875, 0.016510009765625, 0.035125732421875, 0.01395416259765625, 0.0123443603515625, -0.002834320068359375, -0.0369873046875, -0.01995849609375, -0.005451202392578125, 0.0208282470703125, 0.01352691650390625, -0.0033054351806640625, -0.035247802734375, 0.040069580078125, -0.04931640625, 0.0259552001953125, -0.0460205078125, 0.0110931396484375, -0.005664825439453125, 0.0166473388671875, -0.034027099609375, -0.02606201171875, 0.0010957717895507812, -0.069580078125, -0.006134033203125, 0.02386474609375, 0.052093505859375, 0.0027618408203125, 0.012359619140625, 0.024139404296875, 0.0131988525390625, -0.0200653076171875, -0.0178070068359375, 0.005565643310546875, -0.006305694580078125, 0.0090789794921875, 0.06817626953125, 0.004329681396484375, -0.02935791015625, 0.01239776611328125, -0.0104827880859375, -0.029815673828125, 0.0236053466796875, 0.00926971435546875, 0.06072998046875, 0.01409149169921875, 0.022369384765625, 0.0190582275390625, -0.0081939697265625, -0.05413818359375, 0.0033969879150390625, 0.0190887451171875, -0.017669677734375, -0.005825042724609375, -0.01025390625, 0.009918212890625, -0.00628662109375, 0.0283660888671875, 0.0233612060546875, 0.019989013671875, 0.03619384765625, -0.0301666259765625, 0.03375244140625, -0.0216522216796875, 0.030059814453125, -0.01080322265625, 0.034027099609375, 0.02685546875, 0.0283355712890625, -0.03167724609375, -0.0178070068359375, -0.0205230712890625, -0.006351470947265625, -0.00714874267578125, 0.0008006095886230469, -0.0139312744140625, 0.034912109375, -0.03558349609375, -0.021636962890625, -0.046295166015625, -0.004405975341796875, 0.049560546875, -0.00278472900390625, -0.027557373046875, -0.0085906982421875, 0.0032520294189453125, 0.01094818115234375, -0.051361083984375, 0.045562744140625, 0.01142120361328125, -0.0227203369140625, -0.0157623291015625, 0.0173187255859375, 0.0293426513671875, -0.07012939453125, 0.007526397705078125, 0.055877685546875, 0.0299530029296875, 0.0254669189453125, -0.003147125244140625, 0.0008826255798339844, 0.06640625, 0.00742340087890625, 0.0116729736328125, -0.01496124267578125, -0.0026836395263671875, 0.0307159423828125, -0.046112060546875, -0.0029926300048828125, 0.029083251953125, -0.047607421875, -0.016815185546875, 0.059783935546875, -0.0248260498046875, 0.0179443359375, -0.0018157958984375, -0.0051116943359375, -0.00420379638671875, -0.0010814666748046875, 0.0038471221923828125, -0.0217437744140625, 0.048675537109375, 0.0291595458984375, 0.03973388671875, 0.0293731689453125, -0.032470703125, 0.007488250732421875, -0.003086090087890625, -0.004795074462890625, 0.00653076171875, 0.004894256591796875, -0.012237548828125, 0.01511383056640625, -0.027099609375, 0.0110626220703125, 0.0273895263671875, 0.0115814208984375, -0.002285003662109375, 0.035675048828125, 0.00980377197265625, 0.01108551025390625, -0.0259246826171875, -0.042236328125, 0.02874755859375, 0.034820556640625, -0.0155181884765625, 0.00843048095703125, 0.035858154296875, 0.034881591796875, -0.01503753662109375, 0.027496337890625, -0.004009246826171875, 0.00859832763671875, -0.0017261505126953125, -0.0628662109375, 0.057952880859375, -0.03900146484375, 0.020751953125, 0.060638427734375, -0.0246429443359375, 0.01540374755859375, -0.007061004638671875, 0.004085540771484375, -0.02008056640625, 0.00937652587890625, -0.00954437255859375, -0.04168701171875, -0.0284881591796875, 0.00628662109375, 0.0284576416015625, 0.06793212890625, -0.0155487060546875, -0.04669189453125, -0.002819061279296875, 0.0230560302734375, -0.07135009765625, -0.07879638671875, -0.01139068603515625, -0.05560302734375, -0.028564453125, -0.01305389404296875, -0.040557861328125, 0.007755279541015625, -0.01427459716796875, 0.00824737548828125, -0.0035800933837890625, -0.0140533447265625, -0.044464111328125, -0.037811279296875, -0.08477783203125, -0.034698486328125, 0.008056640625, 0.0285491943359375, 0.0196380615234375, 0.0205078125, 0.01690673828125, -0.036346435546875, 0.0280609130859375, 0.05572509765625, -0.0272979736328125, -0.01251220703125, -0.0277252197265625, 0.0193023681640625, -0.0011892318725585938, -0.01027679443359375, 0.0159149169921875, 0.0223236083984375, -0.0141143798828125, -0.00160980224609375, -0.0211944580078125, 0.036376953125, -0.015228271484375, 0.0421142578125, 0.049530029296875, 0.034027099609375, 0.0153656005859375, -0.0196990966796875, -0.0222625732421875, -0.004665374755859375, -0.031494140625, 0.000545501708984375, 0.0214691162109375, -0.0099334716796875, -0.01375579833984375, 0.0246124267578125, -0.01540374755859375, 0.0194244384765625, -0.0005259513854980469, 0.00047969818115234375, 0.00010037422180175781, -0.007080078125, -0.0067138671875, 0.00540924072265625, 0.01007080078125, 0.002628326416015625, 0.0587158203125, 0.0292205810546875, 0.036590576171875, 0.007785797119140625, 0.0172576904296875, -0.050445556640625, -0.047821044921875, 0.037933349609375, -0.01373291015625, 0.0123748779296875, -0.02117919921875, -0.0261688232421875, 0.006855010986328125, 0.08416748046875, -0.046417236328125, -0.014739990234375, -0.01279449462890625, -0.0034046173095703125, -0.0135955810546875, -0.02825927734375, -0.02947998046875, -0.0013608932495117188, -0.0193023681640625, 0.003986358642578125, 0.0015850067138671875, -0.0207977294921875, 0.00949859619140625, 0.01227569580078125, 0.00490570068359375, -0.015838623046875, 0.00244140625, 0.01007080078125, 0.01519012451171875, 0.0675048828125, -0.0289764404296875, 0.08050537109375, -0.0401611328125, -0.0176544189453125, -0.11102294921875, -0.0126495361328125, -0.01229095458984375, 0.06787109375, -0.006587982177734375, 0.005008697509765625, -0.036224365234375, 0.043121337890625, -0.05706787109375, -0.00641632080078125, 0.006061553955078125, 0.0814208984375, -0.00862884521484375, -0.033203125, -0.00867462158203125, -0.03887939453125, -0.020599365234375, -0.06793212890625, -0.0343017578125, -0.0282135009765625, -0.043060302734375, 0.02685546875, -0.0458984375, -0.002162933349609375, -0.0118865966796875, -0.01568603515625, 0.06878662109375, 0.044403076171875, 0.016571044921875, -0.0024700164794921875, -0.00937652587890625, 0.0032863616943359375, 0.055419921875, -0.0152435302734375, -0.0101165771484375, -0.004283905029296875, 0.083251953125, 0.01447296142578125, -0.0214996337890625, -0.06585693359375, 0.018646240234375, 0.0157470703125, -0.033782958984375, 0.04718017578125, 0.0305633544921875, 0.01519012451171875, 0.01520538330078125, -0.030242919921875, -0.0206756591796875, -0.0204315185546875, 0.0635986328125, -0.006229400634765625, -0.0243988037109375, 0.024017333984375, -0.03314208984375, 0.021392822265625, 0.058868408203125, 0.016387939453125, -0.0277099609375, 0.024993896484375, 0.03277587890625, -0.04022216796875, 0.01363372802734375, -0.0196685791015625, -0.01154327392578125, 0.0058135986328125, -0.0171966552734375, 0.0131378173828125, 0.018707275390625, -0.0010051727294921875, -0.000995635986328125, -0.01142120361328125, 0.01061248779296875, 0.0186920166015625, 0.003223419189453125, 0.02667236328125, 0.014312744140625, 0.047607421875, 0.00246429443359375, -0.0184326171875, 0.012664794921875, 0.0294036865234375, -0.0008320808410644531, -0.0419921875, -0.05645751953125, 0.0178985595703125, 0.04736328125, -0.0081787109375, 0.004978179931640625, 0.0271453857421875, 0.017852783203125, -0.016937255859375, -0.00678253173828125, 0.007579803466796875, -0.0031833648681640625, -0.040283203125, -0.01285552978515625, 0.01137542724609375, -0.016815185546875, 0.0062255859375, 0.073974609375, -0.01611328125, 0.031219482421875, -0.017242431640625, 0.05743408203125, 0.007720947265625, 0.046112060546875, -0.012664794921875, 0.006671905517578125, 0.01471710205078125, 0.01336669921875, -0.0014429092407226562, -0.053619384765625, 0.0271759033203125, 0.0153350830078125, 0.07171630859375, 0.0016222000122070312, -0.04132080078125, 0.021759033203125, -0.045867919921875, -0.0167999267578125, 0.0267181396484375, 0.0060882568359375, -0.044952392578125, 0.0005135536193847656, -0.00605010986328125, -0.0031528472900390625, -0.0097503662109375, 0.006107330322265625, 0.02264404296875, 0.0265960693359375, 0.0299530029296875, -0.03076171875, 0.003292083740234375, -0.0151824951171875, -0.004100799560546875, 0.01029205322265625, -0.0325927734375, -0.0184783935546875, 0.07061767578125, 0.02008056640625, -0.033966064453125, -0.02685546875, 0.0280303955078125, -0.038726806640625, 0.00982666015625, -0.023193359375, 0.0161895751953125, -0.0199737548828125, 0.01065826416015625, 0.03863525390625, 0.016357421875, 0.0165252685546875, -0.0162811279296875, -0.0156402587890625, -0.027252197265625, 0.026763916015625, 0.00428009033203125, -0.01910400390625, -0.01016998291015625, 0.01739501953125, 0.0238037109375, -0.006595611572265625, -0.0292205810546875, 0.00875091552734375, 0.01151275634765625, -0.0007081031799316406, 0.04498291015625, 0.0006055831909179688, 0.0574951171875, -0.0174407958984375, 0.05828857421875, 0.03271484375, 0.03985595703125, -0.01727294921875, -0.0278778076171875, -0.053131103515625, -0.081787109375, 0.032806396484375, 0.056060791015625, -0.00728607177734375, 0.030731201171875, -0.0036373138427734375, 0.023773193359375, 0.00444793701171875, -0.01885986328125, -0.0015268325805664062, -0.01163482666015625, 0.017852783203125, -0.0007419586181640625, -0.018402099609375, 0.0367431640625, -0.0301361083984375, -0.0188751220703125, 0.0099334716796875, 0.01248931884765625, 0.0034236907958984375, -0.03216552734375, -0.0264129638671875, 0.0206146240234375, -0.031280517578125, 0.0313720703125, 0.10211181640625, 0.0141448974609375, 0.045867919921875, 0.03265380859375, -0.00368499755859375, 0.025299072265625, 0.0238494873046875, -0.0012025833129882812, -0.0024852752685546875, 0.04541015625, -0.0014638900756835938, -0.03204345703125, 0.01041412353515625, -0.030517578125, 0.0293426513671875, -0.0107879638671875, 0.054534912109375, 0.0095977783203125, 0.02996826171875, 0.0310821533203125, -0.0550537109375, 0.004901885986328125, -0.011322021484375, -0.003932952880859375, -0.02252197265625, 0.042938232421875, 0.041259765625, -0.025848388671875, 0.018585205078125, 0.0247802734375, 0.0014495849609375, -0.0080108642578125, -0.0255279541015625, -0.01512908935546875, -0.0295257568359375, 0.00023293495178222656, 0.0171966552734375, -0.020477294921875, -0.0076141357421875, 0.0253143310546875, -0.03082275390625, 0.00836181640625, -0.0187835693359375, 0.02398681640625, -0.0357666015625, 0.0106201171875, 0.0231475830078125, 0.06402587890625, 0.03912353515625, 0.039825439453125, 0.03948974609375, -0.00295257568359375, 0.0011053085327148438, 0.0271759033203125, -0.00011277198791503906, -0.007694244384765625, -0.01465606689453125, 0.0227203369140625, 0.00585174560546875, 0.021270751953125, -0.006061553955078125, -0.011016845703125, 0.00033974647521972656, -0.003215789794921875, 0.04345703125, -0.0289459228515625, -0.0187225341796875, 0.01340484619140625, 0.0170135498046875, 0.022705078125, -0.001895904541015625, 0.05865478515625, -0.052490234375, -0.0059356689453125, 0.01513671875, 0.019683837890625, -0.040679931640625, -0.00634002685546875, -0.09716796875, 0.09967041015625, 0.021331787109375, 0.035552978515625, 0.00949859619140625, 0.035400390625, -0.04718017578125, -0.018798828125, -0.02862548828125, 0.03692626953125, 0.008880615234375, 0.0065155029296875, -0.061370849609375, -0.005725860595703125, -0.022064208984375, 0.01439666748046875, 0.0577392578125, 0.00789642333984375, -0.0305328369140625, -0.000850677490234375, 0.05859375, 0.04559326171875, 0.004673004150390625, 0.0188140869140625, -0.0244140625, 0.0212554931640625, 0.06561279296875, -0.061309814453125, 0.0213775634765625, 0.037689208984375, -0.022979736328125, -0.0022945404052734375, 0.0074005126953125, 0.02618408203125, -0.0037593841552734375, -0.01110076904296875, 0.00406646728515625, -0.00695037841796875, 0.010711669921875, -0.041778564453125, 0.047607421875, 0.0297393798828125, 0.049041748046875, -0.02569580078125, -0.061553955078125, 0.0007624626159667969, 0.046295166015625, 0.01264190673828125, 0.04156494140625, 0.0182952880859375, 0.0177764892578125, 0.09197998046875, 0.0187835693359375, 0.0235137939453125, 0.033538818359375, -0.001129150390625, 0.0618896484375, 0.046478271484375, 0.00780487060546875, -0.0306243896484375, 0.0325927734375, 0.0645751953125, 0.07916259765625, -0.07586669921875, -0.0355224609375, 0.00025463104248046875, 0.032440185546875, 0.01468658447265625, -0.0256805419921875, -0.0013608932495117188, -0.047271728515625, 0.0165252685546875, -0.0094451904296875, -0.018768310546875, 0.0238800048828125, 0.0031490325927734375, 0.0020084381103515625, 0.00566864013671875, -0.0040130615234375, -0.007183074951171875, -0.050048828125, 0.045013427734375, 0.02337646484375, 0.026641845703125, -0.004375457763671875, 0.068115234375, 0.0172576904296875, -0.004512786865234375, -0.0149383544921875, 0.0190887451171875, 0.0118560791015625, 0.034942626953125, -0.032745361328125, -0.0323486328125, 0.027130126953125, 0.0325927734375, -0.00867462158203125, 0.044891357421875, 0.0712890625, 0.06414794921875, -0.051544189453125, -0.0222015380859375, 0.050506591796875, -0.030517578125, -0.03021240234375, -0.031524658203125, 0.0220489501953125, 0.0118865966796875, 0.019775390625, 0.0012311935424804688, 0.055999755859375, 0.0022602081298828125, -0.0252227783203125, 0.0286865234375, -0.00798797607421875, -0.02886962890625, 0.06329345703125, -0.00612640380859375, 0.05889892578125, -0.00804901123046875, -0.0743408203125, 0.01007843017578125, -0.03167724609375, -0.0179595947265625, -0.0091094970703125, 0.007411956787109375, -0.03668212890625, 0.052337646484375, 0.03448486328125, 0.0017681121826171875, 0.0205841064453125, -0.01302337646484375, 0.029754638671875, 0.0134124755859375, 0.014556884765625, 0.0250091552734375, -0.0212249755859375, -0.0274200439453125, 0.00640869140625, 0.052581787109375, 0.0203399658203125, -0.02777099609375, 0.01163482666015625, 0.0294952392578125, -0.016143798828125, 0.006778717041015625, -0.0217437744140625, 0.0014247894287109375, -0.000652313232421875, 0.01363372802734375, 0.01465606689453125, -0.01255035400390625, 0.01332855224609375, -0.0134735107421875, 0.045135498046875, -0.034698486328125, -0.040008544921875, -0.00516510009765625, 0.044403076171875, 0.014801025390625, -0.01007080078125, -0.036651611328125, 0.0225677490234375, -0.02313232421875, -0.0640869140625, 0.061492919921875, -0.00521087646484375, 0.028839111328125, 0.0269775390625, 0.0301055908203125, -0.02288818359375, 0.03179931640625, -0.0160980224609375, 0.056121826171875, 0.034912109375, -0.0034313201904296875, -0.049102783203125, 0.02056884765625, -0.0024051666259765625, -0.0063323974609375, 0.0237579345703125, 0.03094482421875, 0.021881103515625, -0.04852294921875, 0.01033782958984375, 0.03900146484375, 0.06585693359375, 0.022705078125, 0.043487548828125, -0.022247314453125, -0.01465606689453125, -0.002544403076171875, -0.009490966796875, -0.016082763671875, -0.05755615234375, 0.00421142578125, 0.0117034912109375, -0.03143310546875, -0.03363037109375, -0.0699462890625, -0.020294189453125, 0.035675048828125, 0.00838470458984375, -0.037017822265625, 0.02337646484375, -0.0114288330078125, 0.004878997802734375, 0.007633209228515625, -0.0035858154296875, 0.006389617919921875, 0.06195068359375, -0.02197265625, -0.033416748046875, -0.0125579833984375, 0.005001068115234375, -0.0452880859375, 0.03399658203125, 0.03790283203125, -0.03857421875, -0.037139892578125, 0.043853759765625, 0.01393890380859375, 0.08404541015625, -0.00716400146484375, -0.03826904296875, -0.013031005859375, 0.004940032958984375, -0.007045745849609375, -0.072265625, 0.00910186767578125, -0.08380126953125, -0.00823211669921875, -0.0291595458984375, -0.00041747093200683594, 0.01151275634765625, -0.03057861328125, -0.068115234375, 0.0311279296875, -0.0233917236328125, -0.042205810546875, -0.01508331298828125, -0.0264739990234375, -0.005298614501953125, 0.004215240478515625, -0.006099700927734375, -0.0143890380859375, -0.041534423828125, 0.0134735107421875, 0.00975799560546875, -0.03265380859375, 0.040283203125, -0.034393310546875, -0.06671142578125, -0.01352691650390625, -0.005054473876953125, -0.018402099609375, 0.032012939453125, -0.017913818359375, 0.04168701171875, 0.038726806640625, -0.0325927734375, -0.01446533203125, -0.006732940673828125, -0.00879669189453125, -0.048431396484375, -0.0211944580078125, -0.0257415771484375, 0.0228424072265625, 0.110595703125, 0.07208251953125, 0.0258941650390625, -0.06689453125, 0.005519866943359375, -0.006740570068359375, -0.0101318359375, -0.015960693359375, 0.004241943359375, -0.061767578125, -0.04962158203125, 0.0189971923828125, -0.0164947509765625, 0.032867431640625, -0.024688720703125, -0.029754638671875, -0.0054168701171875, -0.00867462158203125, -0.0112152099609375, -0.04205322265625, 0.020843505859375, 0.0611572265625, -0.0579833984375, -0.0197601318359375, 0.0197906494140625, -0.0107421875, 0.01202392578125, -0.0252532958984375, -0.01953125, -0.0206451416015625, 0.005046844482421875, 0.031494140625, -0.0115203857421875, 0.0110015869140625, -0.025543212890625, 0.008270263671875, 0.01250457763671875, 0.012420654296875, -0.0216217041015625, 0.004756927490234375, 0.0148468017578125, -0.00511932373046875, -0.0458984375, 0.07098388671875, -0.0006265640258789062, -0.055419921875, -0.0243072509765625, 0.0147705078125, -0.0245513916015625, 0.007633209228515625, 0.00726318359375, -0.015869140625, 0.0018138885498046875, -0.0203094482421875, -0.0280914306640625, -0.032135009765625, -0.00891876220703125, 0.01363372802734375, -0.0286102294921875, 0.0052337646484375 ]
dc72d31c82c9bb02fbcefe2c4cb2c012ee499f90
Wordpress Stackexchange Q: What's the difference between home_url() and site_url() My understanding is that site_url() returns the location where the WordPress core files are. If my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But then how does home_url() differ? For me, home_url() returns the same thing: http://example.com/blog If that's correct, then can I get WordPress to return http://example.com/ ? A: If you want WP installed in a directory but the site home on your domain root, you need to move the main index.php file out to your domain root and edit the require statement to point within your directory. This process is outlined here: Giving WordPress Its Own Directory.
Q: What's the difference between home_url() and site_url() My understanding is that site_url() returns the location where the WordPress core files are. If my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But then how does home_url() differ? For me, home_url() returns the same thing: http://example.com/blog If that's correct, then can I get WordPress to return http://example.com/ ? A: If you want WP installed in a directory but the site home on your domain root, you need to move the main index.php file out to your domain root and edit the require statement to point within your directory. This process is outlined here: Giving WordPress Its Own Directory. A: You are asking two questions at once: * *What's the difference between home_url() and site_url()? *How do I get WordPress to return the URL root without the subdirectory where it's installed? Here are the answers, and I confirmed with Andrew Nacin, a core developer of WordPress, as well as ran some server tests to confirm what Andrew told me. Question # 1 In General > Settings of wp-admin, home_url() references the field labeled "Site Address (URL)". Confusing, huh? Yeah, it says "Site Address" so you might assume site_url(), but you'd be wrong. Run your own test and you'll see. (You can temporarily drop an echo H1 field with site_url() and home_url() values at the top of your your theme's functions.php.) Meanwhile, site_url() references the field labeled "WordPress Address (URL)" in General > Settings. So, if you're wanting to reference where a physical path might be such as calling a plugin's folder path on the URL to load an image, or calling a theme's folder path to load an image, you should actually use other functions for those - look at plugins_url() and get_template_directory_uri(). The site_url() will always be the location where you can reach the site by tacking on /wp-admin on the end, while home_url() would not reliably be this location. The home_url() would be where you have set your homepage by setting General > Settings "Site Address (URL)" field. Question # 2 So, if I have placed my blog in http://example.com/blog, and example.com is just some static site where I have like a portfolio theme, then this would be a scenario that lines up with your question. In such a case, then I would use this snippet of code: <?php function getDomain() { $sURL = site_url(); // WordPress function $asParts = parse_url( $sURL ); // PHP function if ( ! $asParts ) wp_die( 'ERROR: Path corrupt for parsing.' ); // replace this with a better error result $sScheme = $asParts['scheme']; $nPort = $asParts['port']; $sHost = $asParts['host']; $nPort = 80 == $nPort ? '' : $nPort; $nPort = 'https' == $sScheme AND 443 == $nPort ? '' : $nPort; $sPort = ! empty( $sPort ) ? ":$nPort" : ''; $sReturn = $sScheme . '://' . $sHost . $sPort; return $sReturn; } A: The site_url() and home_url() functions are similar and can lead to confusion in how they work. The site_url() function retrieves the value value for siteurl in the wp_options table in your database. This is the URL to the WordPress core files. If your core files exist in a subdirectory /wordpress on your web server, the value would be http://example.com/wordpress. The home_url() function retrieves the value for home in the wp_options table in your database. This is the address you want people to visit to view your WordPress web site. If your WordPress core files exist in /wordpress, but you want your web site URL to be http://example.com the home value should be http://example.com. A: ##TLDR: In a non-standard installation, you can place your WordPress files in a subdirectory of your website root. ...and still allow your visitors to visitors to access your WordPress "website" from your site's Domain (root) URL, without appending the subdirectory name: (ie: www.example.com vs www.example.com/wordpress): WP function | wp_options. | WP constant | what it represents | WP Settings Label | Example ------------------------------------------------------------------------------------------------------------------------------------- `site_url()` | `siteurl` | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress `home_url()` | `home` | `WP_HOME` | browser address bar | Site Address | https://www.example.com Where the value for a WP constant takes precedence over an wp_options/ WP Settings value. ##Different Configurations for WordPress In the most standard WordPress installations, home_url and site_url will have the same value. Regardless, they represent two different things. In a non-standard installation, they may have different values. NOTE: I am leaving off the protocol in my answer for easier readability. In this post, PREPEND EVERY URL with: https://, http:// OR // (unless I included it already). (// is the relative protocol and will work for either/both http:// or https://) Standard Installations (including "One-Click" Installs) home_url: is the home page of your (wordpress) website, as indicated in the user's address bar. site_url: is the directory where your wordpress files are located. WordPress's 5-minute install installs wordpress files these two values will be the same - wordpress files will be installed in the same folder that you want people to use to address your website, or the wordpress (blog) portion of your server's website. Example 1: user accesses your blog at: www.example.com, wordpress files installed at: www.example.com, or the root folder of your server's website. home_url === site_url === "www.example.com" Example 2: user accesses your blog at: www.example.com/blog, wordpress files installed at: www.example.com/blog, or in the blog folder inside the root of your website. home_url === site_url === "www.example.com/blog" In this case www.example.com is the main website, and www.example.com/blog is the root of your blog. Here your blog is separated from, and works as subset of, your main website. In this case, your main website is not controlled, defined, or styled by WordPress. Just your blog is. All urls in your blog will be proceeded by www.example.com/blog Note: In documentation, "Wordpress site/website" (as opposed to simply "site/website") refers to the directory where your WordPress files are installed. In this case, it is www.example.com/blog - everything within the blog folder. The "WordPress website", in this scenario, is not the same as your domain, your root, or your main website. It is a subset of your overall website. Kind of like a website inside a website. I mention this as the terminology can seem unclear or confusing, given this particular setup. Alternate WordPress Installation Configuration Giving WordPress Its Own Directory, the section Method II (With URL change). For example, many people don't want to clog up the root folder of their website with all the wordpress files. They want to install wordpress in a subdirectory, *but have the "blog" or "WordPress website" accessed as if the files were installed in the root of the server's root for the website. This is particularly be true when WordPress is used to build and run an entire website that does not even have a "blog". Example 3: user accesses your "blog" at: www.example.com, wordpress files installed at: www.example.com/wordpress, or the root folder of your server's website. home_url === "www.example.com" site_url === "www.example.com/wordpress" (Note: this configuration will not work "out of the box" just by changing the values of these variables. It requires additional configuration changes to work properly) See Giving WordPress Its Own Directory, the section titled Method II (With URL change) for how to do this. In this case home_url and site_url should hold different values. In this setup, you want your website to function exactly as if WordPress files were installed in the server's root directory for your website... BUT, for organizational purposes on the server, you actually have your WordPress files in a folder called wordpress in the server's root directory for your website. So, user will type in www.example.com to get your WordPress home page, instead of www.example.com/wordpress wordpress function <--> database variable <--> Wordpress Constant This section assumes Example 3 configuration above. address bar url: www.example.com wordpress files: /wordpress directory (The other cases are trivial: All variables/functions hold/return the same value.) How to set the values for site_url and home_url First, let me note that siteurl and home store values returned by the functions above * *Normally you set these values on the WordPress backend/dashboard/admin panel: Settings -> General -> siteurl WordPress Address: https://www.example.com/wordpress home Site Address: https://www.example.com (do not include trailing slashes here - that would be configured elsewhere) *Alternatively, you set these values in your WordPress database: wp_options table -> options_name | options_value siteurl | https://www.example.com/wordpress home | https://www.example.com (do not include trailing slashes here - that would be configured elsewhere) *Edit your wp-config.php Define these specific constants to hold your values Define WP_HOME and WP_SITEURL settings by inserting these lines toward the top of your wp-config.php file: define('WP_SITEURL','http://example.com/wordpress'); // wordpress core files define('WP_HOME','http://example.com'); // address bar url // ** MySQL settings - You can get this info from your web host ** // ... (do not include trailing slashes here - that would be configured elsewhere) Reference: WP_SITEURL and WP_HOME NOTE: This is confusing (I really wish WordPress had Labeled the Settings similar to their php names, such as Wordpress Site Address and Home Page Address or something more explicit like location of WordPress Site core files and browser url to access WordPress home page) `WP_SITEURL` <--> `site_url()` <--> `siteurl` <--> Wordpress Address <--> /wordpress `WP_HOME` <--> `home_url()` <--> `home` <--> Site Address <--> / Now Here is where it gets tricky ! IF you defined those constants in your wp-config.php file, it does not matter what values you have in your database/settings page. In fact, you will not be able to modify this value through the back end (it'll be greyed out). You can still modify in by editing your database, but doing so will have no effect on your site, while the constants exist in your wp-config file. You config file will not change the values in your database (or hence you settings page). Instead, your database/settings page values will be ignored. The values in wp-config override or take precedence over your database setting. #So... to wrap up (TLDR) : WP function | wp_options. | WP constant | what it represents | WP Settings Label | Example ------------------------------------------------------------------------------------------------------------------------------------- `site_url()` | `siteurl` | `WP_SITEURL` | WordPress files location | WordPress Address | https://www.example.com/wordpress `home_url()` | `home` | `WP_HOME` | browser address bar | Site Address | https://www.example.com Where the value for a WP constant takes precedence over an wp_options/ WP Settings value. The wp_options record value and the WP Settings value are the same. Editing one, by definition edits the other. It is just 2 different ways of accessing the same variable. On the other hand, the WordPress Constants are unique and independent. Internally, WordPress (PHP) constants override their db counterparts. If a constant is defined in wp-config, it does not change the database. But internally WordPress will always prefer/use its value instead of the db one. A: To answer your second question: Q: If that's correct, then can I get wordpress to return http://example.com/ ? You can't, unless you take the Giving WordPress its own directory steps. Using this means you put WordPress core files into /blog or /WordPress and then the index.php into your root. If you decide to put WordPress inside its own directory then you would use home_url() for going to index.php and site_url() for getting core files and such. Refrences: Codex for site_url Codex for home_url Codex for Giving Wordpress Own Directory A: The easiest way to get the site url without any sub-directories ( http://example.com/ instead of http://example.com/blog ), just use the backslash / For example, if you type: <a href="/">domain url</a> It will create a link that goes to your domain
wordpress
{ "language": "en", "length": 1928, "provenance": "stackexchange_00019.jsonl.gz:410420", "question_score": "87", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20294" }
[ 0.04608154296875, 0.006336212158203125, 0.0081787109375, -0.00675201416015625, 0.01016998291015625, -0.03778076171875, 0.04052734375, -0.04327392578125, 0.010528564453125, 0.0013551712036132812, -0.025665283203125, -0.0033206939697265625, -0.0101470947265625, -0.038543701171875, 0.0240325927734375, -0.0246734619140625, 0.053192138671875, -0.0282440185546875, 0.007228851318359375, 0.01312255859375, -0.006542205810546875, 0.0303955078125, -0.004669189453125, 0.063720703125, 0.034576416015625, -0.046234130859375, 0.051483154296875, -0.00848388671875, -0.0011434555053710938, -0.0216217041015625, 0.0184478759765625, 0.0024013519287109375, 0.028228759765625, 0.025238037109375, -0.03460693359375, -0.0325927734375, -0.00505828857421875, 0.021697998046875, -0.0313720703125, 0.034271240234375, -0.00044536590576171875, -0.000010728836059570312, 0.006702423095703125, 0.017974853515625, -0.01849365234375, -0.029632568359375, 0.02264404296875, -0.007297515869140625, -0.017242431640625, -0.01070404052734375, -0.001857757568359375, 0.02593994140625, 0.01226043701171875, -0.005458831787109375, -0.00719451904296875, -0.018035888671875, 0.044219970703125, -0.0111846923828125, 0.01380157470703125, -0.0770263671875, -0.050628662109375, 0.0325927734375, 0.042236328125, 0.04937744140625, -0.01348114013671875, 0.01149749755859375, 0.026123046875, 0.016143798828125, -0.08001708984375, -0.0229949951171875, 0.015869140625, -0.03704833984375, -0.023284912109375, -0.0105743408203125, -0.04412841796875, 0.025604248046875, -0.025299072265625, -0.04290771484375, 0.04608154296875, -0.0036563873291015625, -0.04473876953125, -0.01255035400390625, -0.0599365234375, -0.049163818359375, 0.0106201171875, -0.01470184326171875, -0.0186767578125, 0.003070831298828125, -0.0186309814453125, 0.00859832763671875, -0.0196990966796875, -0.0172271728515625, -0.0179595947265625, 0.01461029052734375, 0.00634765625, -0.026397705078125, -0.01751708984375, -0.006038665771484375, -0.0360107421875, -0.0095367431640625, -0.00531768798828125, -0.006847381591796875, -0.0021724700927734375, -0.01062774658203125, 0.01214599609375, 0.06292724609375, 0.0207672119140625, 0.0170745849609375, 0.0291748046875, -0.002044677734375, 0.016326904296875, 0.0236663818359375, -0.035369873046875, -0.051300048828125, 0.0054168701171875, 0.01076507568359375, -0.06982421875, 0.009735107421875, 0.009002685546875, -0.0244903564453125, 0.0051116943359375, 0.053558349609375, 0.00965118408203125, -0.03472900390625, -0.006397247314453125, -0.0012912750244140625, 0.00440216064453125, -0.06591796875, -0.0250091552734375, 0.053314208984375, -0.0255889892578125, 0.0024776458740234375, 0.0205841064453125, -0.00424957275390625, -0.017333984375, -0.035247802734375, 0.01108551025390625, -0.003284454345703125, -0.0186767578125, 0.0260772705078125, -0.0026149749755859375, -0.0305633544921875, -0.01357269287109375, -0.0213775634765625, 0.002521514892578125, 0.0252685546875, 0.0158233642578125, 0.0081787109375, 0.0018739700317382812, -0.0268402099609375, -0.0205841064453125, -0.00765228271484375, 0.0250701904296875, 0.014068603515625, 0.019775390625, -0.040130615234375, 0.01387786865234375, -0.052276611328125, 0.028778076171875, -0.033203125, -0.00959014892578125, 0.0206451416015625, 0.033538818359375, -0.042266845703125, -0.04827880859375, -0.033905029296875, -0.007266998291015625, -0.0198516845703125, 0.020782470703125, 0.0184478759765625, 0.0164337158203125, 0.007701873779296875, 0.004131317138671875, 0.0173187255859375, 0.0113983154296875, 0.005615234375, -0.017822265625, 0.007457733154296875, 0.004878997802734375, 0.07269287109375, 0.025543212890625, -0.01386260986328125, 0.007373809814453125, 0.021881103515625, -0.036712646484375, 0.03277587890625, 0.003726959228515625, 0.0304107666015625, -0.0164031982421875, 0.0110626220703125, 0.053466796875, 0.047332763671875, -0.014617919921875, 0.05023193359375, -0.0343017578125, -0.0423583984375, -0.01180267333984375, 0.01611328125, -0.04248046875, -0.00344085693359375, -0.006816864013671875, 0.021575927734375, 0.0220184326171875, 0.0279998779296875, 0.0010089874267578125, 0.03436279296875, -0.028289794921875, 0.03204345703125, 0.0290679931640625, 0.0294036865234375, 0.0029659271240234375, 0.035888671875, -0.003734588623046875, -0.07440185546875, -0.04150390625, 0.0234375, -0.016082763671875, 0.0214691162109375, -0.0032558441162109375, 0.03875732421875, -0.02801513671875, 0.0191650390625, -0.042572021484375, -0.0272216796875, 0.0665283203125, -0.02911376953125, -0.016204833984375, -0.040740966796875, 0.0299224853515625, 0.0061187744140625, -0.092041015625, 0.0484619140625, 0.041748046875, 0.03851318359375, -0.039642333984375, -0.0101470947265625, -0.0156402587890625, -0.04144287109375, 0.01085662841796875, 0.05657958984375, 0.0322265625, 0.0159454345703125, -0.0247802734375, -0.027587890625, 0.0323486328125, -0.01258087158203125, 0.01288604736328125, -0.033172607421875, 0.00673675537109375, 0.051055908203125, -0.00901031494140625, -0.0008420944213867188, 0.0074310302734375, -0.07464599609375, -0.035736083984375, 0.051300048828125, -0.019439697265625, 0.0167236328125, -0.034210205078125, 0.00402069091796875, 0.00504302978515625, 0.00958251953125, 0.00467681884765625, -0.00305938720703125, -0.033843994140625, 0.043304443359375, 0.01502227783203125, 0.042388916015625, -0.0251007080078125, -0.0049896240234375, 0.01103973388671875, 0.035675048828125, -0.00034046173095703125, 0.063232421875, 0.04278564453125, -0.0447998046875, 0.01666259765625, -0.0308380126953125, -0.0338134765625, 0.019073486328125, -0.024749755859375, 0.019744873046875, -0.0275421142578125, -0.0035228729248046875, -0.03204345703125, -0.048187255859375, 0.019805908203125, 0.04180908203125, 0.041473388671875, 0.019012451171875, 0.048126220703125, -0.017791748046875, -0.02935791015625, 0.052276611328125, -0.0012302398681640625, -0.055419921875, 0.03875732421875, -0.0157318115234375, -0.00036835670471191406, -0.007312774658203125, 0.044586181640625, 0.041778564453125, 0.01190185546875, -0.017608642578125, 0.0201416015625, 0.015869140625, 0.029083251953125, -0.0141143798828125, -0.01551055908203125, 0.056793212890625, -0.11297607421875, -0.01166534423828125, 0.01055145263671875, -0.0200653076171875, 0.0321044921875, -0.0179595947265625, 0.0019626617431640625, -0.00789642333984375, -0.09112548828125, -0.092529296875, -0.03729248046875, -0.04595947265625, 0.03472900390625, 0.0026111602783203125, -0.01177215576171875, -0.0162353515625, 0.0210113525390625, 0.03472900390625, 0.024505615234375, -0.0213623046875, -0.091552734375, -0.0762939453125, -0.09954833984375, -0.0219573974609375, -0.01052093505859375, 0.0086669921875, 0.0153350830078125, 0.0163421630859375, 0.0125885009765625, -0.0208282470703125, 0.020172119140625, 0.0565185546875, -0.0104522705078125, -0.04388427734375, -0.01373291015625, 0.0013179779052734375, -0.041839599609375, 0.0154876708984375, 0.03387451171875, -0.0009121894836425781, -0.002094268798828125, -0.00572967529296875, 0.013885498046875, -0.010986328125, 0.01361083984375, -0.014190673828125, -0.0089874267578125, -0.027587890625, -0.003787994384765625, -0.0712890625, -0.061004638671875, -0.010284423828125, -0.05865478515625, 0.06817626953125, 0.0618896484375, -0.015045166015625, 0.0223388671875, 0.00919342041015625, -0.0167388916015625, -0.0212249755859375, 0.060394287109375, -0.0433349609375, 0.0587158203125, -0.02001953125, -0.02398681640625, -0.057891845703125, 0.04266357421875, -0.00322723388671875, -0.038421630859375, 0.0008869171142578125, 0.01287078857421875, -0.019256591796875, -0.0193939208984375, -0.06634521484375, -0.04095458984375, 0.040130615234375, -0.0264129638671875, 0.005733489990234375, -0.0263824462890625, -0.0191497802734375, 0.00438690185546875, 0.0782470703125, -0.0892333984375, -0.007801055908203125, 0.0174560546875, 0.0227203369140625, -0.0242919921875, -0.03179931640625, -0.0821533203125, -0.00875091552734375, -0.0506591796875, 0.00879669189453125, -0.0247802734375, -0.0018529891967773438, -0.01522064208984375, 0.006801605224609375, -0.0186767578125, -0.046142578125, 0.0201416015625, 0.01776123046875, 0.00739288330078125, -0.00820159912109375, 0.01629638671875, -0.015350341796875, 0.01434326171875, -0.0159912109375, -0.0345458984375, -0.01428985595703125, 0.01319122314453125, 0.0145263671875, -0.01380157470703125, -0.0180511474609375, -0.008331298828125, 0.03192138671875, -0.00514984130859375, -0.005863189697265625, 0.0057373046875, -0.01145172119140625, 0.048095703125, 0.0221710205078125, 0.002239227294921875, -0.00061798095703125, 0.0206451416015625, -0.04132080078125, -0.0909423828125, -0.024444580078125, -0.00774383544921875, 0.0816650390625, 0.017059326171875, -0.0164337158203125, -0.002124786376953125, -0.004230499267578125, -0.047607421875, 0.01442718505859375, -0.0197296142578125, -0.0185394287109375, -0.007007598876953125, -0.0172576904296875, 0.0241241455078125, -0.024505615234375, -0.01995849609375, 0.00754547119140625, 0.04815673828125, 0.0234527587890625, -0.01424407958984375, 0.01358795166015625, 0.0253448486328125, 0.020843505859375, 0.027435302734375, 0.058624267578125, 0.023284912109375, 0.0079345703125, 0.0010366439819335938, 0.01220703125, 0.0156097412109375, 0.035308837890625, 0.018310546875, 0.016448974609375, -0.007320404052734375, 0.0003018379211425781, 0.026397705078125, -0.07904052734375, 0.053680419921875, -0.00848388671875, -0.00991058349609375, -0.0005240440368652344, 0.0178985595703125, -0.033416748046875, 0.016357421875, -0.01531219482421875, -0.0280914306640625, 0.01953125, -0.00787353515625, 0.0289764404296875, 0.0011005401611328125, 0.005390167236328125, 0.0067291259765625, -0.0017938613891601562, 0.0030345916748046875, 0.03436279296875, 0.0182952880859375, 0.0020732879638671875, 0.02032470703125, 0.005313873291015625, -0.0275726318359375, 0.004215240478515625, -0.0116424560546875, 0.049285888671875, 0.01401519775390625, -0.03485107421875, 0.0028858184814453125, -0.010498046875, 0.0122222900390625, 0.0070953369140625, -0.0174713134765625, 0.0135955810546875, 0.001232147216796875, -0.0272064208984375, -0.0019969940185546875, -0.01442718505859375, -0.034759521484375, -0.047882080078125, 0.048126220703125, -0.0084228515625, 0.0224761962890625, 0.061492919921875, 0.045257568359375, -0.0040740966796875, 0.053619384765625, -0.038482666015625, -0.018463134765625, 0.034942626953125, 0.01212310791015625, 0.00516510009765625, 0.009918212890625, -0.01256561279296875, 0.01514434814453125, 0.062103271484375, 0.004985809326171875, 0.0161590576171875, 0.0074005126953125, 0.039215087890625, 0.00598907470703125, -0.0158843994140625, -0.01174163818359375, -0.0606689453125, 0.0030574798583984375, 0.032196044921875, -0.03399658203125, -0.059814453125, -0.015655517578125, -0.0025806427001953125, 0.0307769775390625, -0.0447998046875, -0.03338623046875, 0.01373291015625, 0.0017156600952148438, 0.045440673828125, 0.013092041015625, -0.035491943359375, 0.0494384765625, 0.046661376953125, 0.00460052490234375, 0.001880645751953125, 0.00634765625, 0.01157379150390625, -0.00917816162109375, -0.0272064208984375, -0.0290069580078125, 0.054443359375, -0.01194000244140625, 0.0241851806640625, -0.024688720703125, -0.0202789306640625, -0.031585693359375, -0.002056121826171875, 0.05792236328125, 0.037322998046875, -0.07354736328125, 0.01435089111328125, -0.06072998046875, 0.015960693359375, 0.02716064453125, -0.0230865478515625, -0.02789306640625, -0.0218963623046875, 0.0015153884887695312, 0.0087890625, 0.0201568603515625, 0.0135345458984375, -0.01495361328125, 0.0125274658203125, -0.00382232666015625, -0.0181732177734375, -0.004161834716796875, 0.03631591796875, 0.01288604736328125, 0.03778076171875, 0.0264129638671875, 0.02655029296875, 0.006649017333984375, -0.046600341796875, 0.032867431640625, -0.0472412109375, -0.037109375, -0.06341552734375, 0.0254058837890625, 0.03436279296875, 0.020233154296875, -0.0075225830078125, -0.033233642578125, 0.01345062255859375, -0.0018701553344726562, -0.018646240234375, 0.003520965576171875, 0.0265350341796875, 0.00977325439453125, -0.032745361328125, 0.014312744140625, 0.04083251953125, -0.0282440185546875, -0.0158843994140625, 0.009033203125, 0.01491546630859375, 0.00981903076171875, 0.01097869873046875, -0.0504150390625, 0.06329345703125, 0.1297607421875, 0.01461029052734375, 0.07720947265625, 0.0535888671875, 0.00902557373046875, 0.0264434814453125, 0.0281982421875, -0.04150390625, -0.038482666015625, 0.054107666015625, 0.0264434814453125, -0.01629638671875, 0.06146240234375, -0.01137542724609375, 0.027130126953125, 0.0447998046875, 0.06365966796875, -0.059722900390625, 0.006671905517578125, 0.0021533966064453125, 0.0001310110092163086, 0.04278564453125, 0.02398681640625, -0.0232086181640625, -0.03656005859375, 0.00879669189453125, 0.0003972053527832031, 0.00018358230590820312, 0.00524139404296875, 0.0257568359375, 0.000957489013671875, -0.0232696533203125, 0.01476287841796875, -0.0026187896728515625, -0.0295562744140625, -0.0095672607421875, 0.0155181884765625, -0.03009033203125, -0.006237030029296875, -0.00743865966796875, 0.0077362060546875, -0.020843505859375, -0.051483154296875, 0.0015163421630859375, -0.017425537109375, -0.004207611083984375, 0.0247344970703125, -0.01326751708984375, 0.026031494140625, 0.0023632049560546875, -0.004261016845703125, 0.0009050369262695312, -0.019683837890625, -0.017822265625, 0.06939697265625, 0.0265960693359375, 0.01806640625, 0.00238800048828125, -0.0211639404296875, -0.0189056396484375, -0.026519775390625, 0.00726318359375, -0.006824493408203125, -0.0249176025390625, 0.07672119140625, -0.01256561279296875, -0.0229644775390625, 0.00803375244140625, -0.00569915771484375, 0.005374908447265625, -0.0167388916015625, 0.054229736328125, -0.062469482421875, -0.0167999267578125, 0.0047454833984375, -0.00861358642578125, -0.00527191162109375, -0.0298919677734375, -0.00879669189453125, 0.06671142578125, -0.052398681640625, 0.019256591796875, 0.03704833984375, 0.0160369873046875, 0.007625579833984375, 0.03875732421875, -0.0189971923828125, 0.0335693359375, 0.03125, -0.0338134765625, -0.013458251953125, 0.0153045654296875, -0.033233642578125, -0.01145172119140625, 0.05938720703125, 0.0293121337890625, -0.044891357421875, -0.03662109375, 0.011932373046875, 0.03399658203125, -0.0079193115234375, 0.039031982421875, -0.00732421875, 0.05987548828125, 0.06292724609375, -0.0418701171875, 0.020904541015625, 0.01439666748046875, -0.03955078125, 0.00948333740234375, 0.018890380859375, -0.0023250579833984375, 0.025634765625, -0.03173828125, -0.0183868408203125, 0.01187896728515625, 0.005817413330078125, -0.00394439697265625, 0.0190887451171875, 0.01214599609375, 0.0214385986328125, 0.0086669921875, 0.01323699951171875, -0.0117034912109375, 0.043548583984375, 0.0037078857421875, 0.01528167724609375, 0.006092071533203125, 0.01715087890625, 0.023193359375, 0.01012420654296875, -0.004669189453125, 0.050628662109375, -0.0330810546875, 0.061492919921875, 0.074951171875, 0.03973388671875, 0.012420654296875, 0.032196044921875, 0.041595458984375, 0.060272216796875, -0.03973388671875, 0.0086822509765625, 0.009429931640625, -0.00734710693359375, -0.00470733642578125, -0.0308685302734375, 0.0160675048828125, 0.00605010986328125, -0.0286865234375, -0.041839599609375, -0.0017833709716796875, 0.044891357421875, -0.0028629302978515625, -0.0188140869140625, -0.0265960693359375, 0.0194091796875, 0.0187530517578125, 0.005649566650390625, 0.006359100341796875, -0.0172882080078125, -0.0084075927734375, 0.004032135009765625, 0.01334381103515625, -0.02099609375, 0.00884246826171875, -0.03314208984375, 0.0767822265625, -0.002155303955078125, 0.0212554931640625, -0.069580078125, -0.0726318359375, 0.03302001953125, 0.059661865234375, 0.038055419921875, 0.044403076171875, 0.0501708984375, 0.046356201171875, 0.0012845993041992188, -0.0005826950073242188, 0.0330810546875, -0.0040283203125, 0.0223846435546875, -0.02984619140625, 0.040435791015625, -0.00579833984375, -0.00534820556640625, -0.01068115234375, 0.022613525390625, 0.0178680419921875, -0.0258636474609375, 0.0589599609375, -0.0196990966796875, 0.0170745849609375, 0.0169677734375, -0.0299835205078125, 0.028472900390625, -0.01396942138671875, 0.012908935546875, -0.016387939453125, 0.00684356689453125, -0.007282257080078125, 0.01535797119140625, 0.05120849609375, 0.039337158203125, -0.004547119140625, 0.02423095703125, -0.0162353515625, 0.009063720703125, -0.0007662773132324219, 0.00881195068359375, -0.007213592529296875, 0.024139404296875, -0.001232147216796875, -0.05078125, -0.033477783203125, -0.01242828369140625, 0.030029296875, -0.0071563720703125, 0.1201171875, -0.044586181640625, 0.0026226043701171875, 0.005084991455078125, 0.03192138671875, -0.0243377685546875, -0.0083465576171875, -0.004100799560546875, -0.0233001708984375, 0.03143310546875, 0.008270263671875, -0.053924560546875, -0.0149078369140625, 0.02032470703125, -0.042388916015625, 0.03057861328125, -0.04241943359375, 0.0105133056640625, -0.0322265625, -0.004009246826171875, -0.039642333984375, -0.051666259765625, -0.0654296875, -0.00606536865234375, 0.0255126953125, 0.01605224609375, -0.0345458984375, 0.038970947265625, -0.0180511474609375, -0.0355224609375, 0.038177490234375, -0.062164306640625, 0.0491943359375, 0.028839111328125, -0.0077362060546875, -0.044952392578125, 0.0203857421875, -0.01383209228515625, 0.014801025390625, 0.003444671630859375, 0.0732421875, 0.0169677734375, -0.022979736328125, -0.01309967041015625, -0.0411376953125, 0.0110626220703125, -0.01312255859375, -0.0005240440368652344, -0.0161285400390625, 0.0244903564453125, -0.0310516357421875, -0.0207672119140625, -0.0061187744140625, 0.004425048828125, -0.019195556640625, 0.00795745849609375, -0.00556182861328125, -0.0240020751953125, -0.01102447509765625, -0.0015115737915039062, 0.000022351741790771484, -0.007495880126953125, -0.01299285888671875, 0.00347137451171875, -0.0219268798828125, 0.007747650146484375, -0.031494140625, 0.041717529296875, -0.0254058837890625, 0.0301361083984375, -0.03314208984375, 0.005283355712890625, -0.033599853515625, 0.0013217926025390625, -0.0142974853515625, 0.03533935546875, 0.049407958984375, -0.0304412841796875, -0.014007568359375, 0.028350830078125, 0.01425933837890625, 0.08111572265625, -0.028717041015625, -0.02862548828125, -0.018035888671875, -0.0207672119140625, 0.0038776397705078125, -0.017791748046875, 0.003612518310546875, -0.040985107421875, -0.0445556640625, -0.0147857666015625, -0.01038360595703125, -0.0027751922607421875, -0.047576904296875, -0.0665283203125, 0.0455322265625, -0.00637054443359375, -0.03662109375, -0.054962158203125, 0.007549285888671875, 0.00983428955078125, 0.03399658203125, -0.009124755859375, -0.0232086181640625, -0.03350830078125, 0.016448974609375, 0.052490234375, 0.046844482421875, 0.0101318359375, 0.032073974609375, 0.00804901123046875, 0.054412841796875, 0.0220184326171875, 0.0323486328125, 0.01194000244140625, 0.01102447509765625, 0.0301666259765625, 0.04949951171875, 0.0007033348083496094, 0.07073974609375, -0.0035305023193359375, -0.05010986328125, -0.0167694091796875, -0.044036865234375, 0.01520538330078125, -0.0080108642578125, 0.0247955322265625, 0.01001739501953125, -0.01024627685546875, -0.018890380859375, -0.041015625, -0.026092529296875, -0.00745391845703125, -0.0203399658203125, 0.0235595703125, -0.076416015625, 0.0038394927978515625, 0.01096343994140625, -0.01593017578125, -0.01568603515625, -0.0204620361328125, -0.053253173828125, -0.0011997222900390625, -0.0023479461669921875, 0.001758575439453125, -0.031402587890625, -0.0615234375, 0.06011962890625, -0.024566650390625, 0.03558349609375, -0.0025272369384765625, 0.043914794921875, 0.040374755859375, 0.0173797607421875, 0.01175689697265625, 0.03912353515625, -0.032196044921875, -0.031951904296875, 0.031768798828125, 0.0012884140014648438, 0.021087646484375, -0.0262451171875, 0.0261077880859375, 0.00553131103515625, -0.0185394287109375, 0.0010271072387695312, 0.034027099609375, 0.0158233642578125, -0.0308837890625, 0.0167236328125, 0.0251922607421875, 0.01523590087890625, 0.0018749237060546875, 0.033599853515625, -0.0531005859375, -0.0228118896484375, -0.0236053466796875, -0.043731689453125, -0.00406646728515625, 0.0249481201171875, -0.0014543533325195312, -0.0221099853515625, 0.002899169921875, -0.0263824462890625, 0.00357818603515625, -0.0026073455810546875 ]
07255816100e6b9402c184e558180cbb67f9f840
Wordpress Stackexchange Q: List posts from Custom Post type with hierarchy? I have a custom post type that is set to have hierarchy. I'm trying to create a list of posts in that post type that display's that hierarchy using nested unordered lists. I have this post structure: Post -child post -- child of child post -- child of child post And I want to be able to create a list of posts (which i guess are behaving more like pages since they have hierarchy), that reflects this structure using unordered lists, like so: <ul> <li>Post <ul> <li>child post <ul> <li>child of child post</li> <li>chld of child post</li> </ul> </li> </ul> </li> </ul> What's the best way to do this (if there is one) so that I don't have to go back into the code whenever I add new parent pages? A: <ul id="my_cutom_type-list"> <?php wp_list_pages( 'post_type=my_custom_type&title_li=' ); ?> </ul>
Q: List posts from Custom Post type with hierarchy? I have a custom post type that is set to have hierarchy. I'm trying to create a list of posts in that post type that display's that hierarchy using nested unordered lists. I have this post structure: Post -child post -- child of child post -- child of child post And I want to be able to create a list of posts (which i guess are behaving more like pages since they have hierarchy), that reflects this structure using unordered lists, like so: <ul> <li>Post <ul> <li>child post <ul> <li>child of child post</li> <li>chld of child post</li> </ul> </li> </ul> </li> </ul> What's the best way to do this (if there is one) so that I don't have to go back into the code whenever I add new parent pages? A: <ul id="my_cutom_type-list"> <?php wp_list_pages( 'post_type=my_custom_type&title_li=' ); ?> </ul>
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:410424", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20305" }
[ 0.049530029296875, 0.0026760101318359375, 0.0165557861328125, -0.02593994140625, 0.0192413330078125, -0.008270263671875, 0.050750732421875, -0.0267181396484375, -0.04583740234375, 0.0037250518798828125, 0.001552581787109375, 0.0311431884765625, -0.052032470703125, -0.035919189453125, 0.01214599609375, -0.0384521484375, 0.041107177734375, -0.03387451171875, 0.0416259765625, -0.025299072265625, 0.005077362060546875, -0.01318359375, 0.090087890625, 0.0115966796875, 0.02178955078125, -0.0003573894500732422, 0.0027217864990234375, -0.002246856689453125, 0.0099334716796875, -0.0051727294921875, 0.02532958984375, -0.0218048095703125, 0.0158233642578125, -0.0236663818359375, 0.05035400390625, 0.007537841796875, -0.005657196044921875, -0.007259368896484375, 0.031646728515625, 0.0008816719055175781, -0.007114410400390625, 0.0134735107421875, 0.034332275390625, -0.00023233890533447266, -0.01528167724609375, -0.0280609130859375, 0.006389617919921875, -0.0285186767578125, 0.021148681640625, -0.060333251953125, 0.0195770263671875, 0.004802703857421875, 0.039581298828125, -0.03765869140625, -0.027496337890625, 0.0015020370483398438, 0.0215606689453125, -0.015869140625, 0.052398681640625, -0.04803466796875, -0.051483154296875, -0.022552490234375, 0.05316162109375, 0.0036716461181640625, 0.013153076171875, 0.006298065185546875, 0.0131072998046875, 0.0163421630859375, -0.0215301513671875, 0.00806427001953125, 0.018524169921875, -0.03076171875, 0.004512786865234375, -0.018890380859375, -0.004665374755859375, -0.043426513671875, -0.00498199462890625, -0.044677734375, 0.00959014892578125, 0.01103973388671875, -0.01605224609375, 0.0305023193359375, -0.0178985595703125, -0.0275115966796875, -0.007720947265625, -0.0279998779296875, -0.0267791748046875, 0.0005197525024414062, -0.032318115234375, 0.005443572998046875, -0.0277862548828125, -0.0298004150390625, -0.016845703125, 0.0458984375, -0.0017118453979492188, 0.01416778564453125, 0.01953125, 0.0472412109375, -0.0094451904296875, 0.027618408203125, -0.006549835205078125, -0.0367431640625, 0.05438232421875, -0.0518798828125, 0.032257080078125, 0.00960540771484375, -0.02203369140625, -0.019866943359375, 0.07135009765625, 0.040924072265625, 0.0079345703125, 0.064453125, 0.01290130615234375, -0.00247955322265625, 0.0025119781494140625, 0.010894775390625, -0.01560211181640625, 0.030120849609375, -0.01541900634765625, 0.03326416015625, -0.002628326416015625, 0.028533935546875, -0.00872802734375, -0.014373779296875, 0.0100860595703125, 0.0180511474609375, -0.00305938720703125, -0.047515869140625, 0.0595703125, -0.01214599609375, -0.07867431640625, 0.0103759765625, 0.08026123046875, 0.0226898193359375, 0.040191650390625, -0.0174713134765625, -0.00952911376953125, -0.0264434814453125, -0.0038814544677734375, -0.018218994140625, 0.032073974609375, -0.0267486572265625, 0.0035381317138671875, 0.0238037109375, -0.01953125, 0.045745849609375, 0.0094757080078125, -0.016082763671875, -0.0092926025390625, -0.058197021484375, -0.01461029052734375, -0.04901123046875, 0.049713134765625, -0.017059326171875, -0.04052734375, -0.06396484375, -0.01800537109375, -0.03607177734375, 0.029571533203125, -0.05615234375, -0.034454345703125, 0.0016660690307617188, 0.040863037109375, -0.06646728515625, -0.07122802734375, 0.0300140380859375, -0.0447998046875, -0.0073699951171875, 0.027679443359375, -0.046905517578125, 0.0303802490234375, -0.050384521484375, -0.00891876220703125, 0.00818634033203125, 0.021697998046875, 0.038055419921875, -0.0140533447265625, -0.04583740234375, 0.0268402099609375, 0.040435791015625, 0.0057830810546875, -0.0193328857421875, -0.039154052734375, 0.04730224609375, -0.052490234375, 0.031890869140625, 0.017669677734375, 0.07489013671875, 0.0035552978515625, 0.027496337890625, 0.005512237548828125, 0.014739990234375, -0.059661865234375, 0.03155517578125, 0.020782470703125, -0.0233154296875, -0.023834228515625, -0.022674560546875, 0.006481170654296875, -0.0006699562072753906, -0.039459228515625, 0.00943756103515625, -0.0205230712890625, 0.035888671875, 0.004974365234375, -0.013427734375, 0.00841522216796875, 0.022186279296875, 0.002796173095703125, -0.00417327880859375, 0.023040771484375, 0.01401519775390625, 0.0007758140563964844, -0.0819091796875, -0.0408935546875, 0.03656005859375, 0.022857666015625, -0.029571533203125, -0.01192474365234375, -0.050994873046875, 0.0144805908203125, -0.0032901763916015625, -0.01241302490234375, 0.05377197265625, 0.08514404296875, 0.012908935546875, -0.0161285400390625, -0.0103759765625, 0.052032470703125, 0.049560546875, -0.0941162109375, -0.0205535888671875, 0.03802490234375, 0.0195770263671875, -0.04815673828125, -0.007213592529296875, -0.01055908203125, -0.0224151611328125, -0.0142059326171875, 0.059295654296875, 0.0206756591796875, 0.051361083984375, -0.0083465576171875, 0.0172271728515625, 0.042938232421875, -0.034515380859375, -0.009002685546875, 0.00408172607421875, -0.032073974609375, 0.005962371826171875, 0.035064697265625, 0.0379638671875, 0.02703857421875, 0.03802490234375, 0.01303863525390625, 0.03778076171875, 0.0297698974609375, 0.0296783447265625, -0.0018968582153320312, -0.00786590576171875, -0.0028743743896484375, 0.019927978515625, -0.038177490234375, 0.0115203857421875, 0.04931640625, -0.0116729736328125, 0.038238525390625, 0.0257415771484375, -0.03472900390625, -0.021026611328125, 0.0214080810546875, 0.02532958984375, 0.00772857666015625, -0.0321044921875, -0.022491455078125, -0.0015497207641601562, -0.0322265625, 0.0167083740234375, 0.023834228515625, -0.03131103515625, -0.0021495819091796875, 0.0390625, 0.0034465789794921875, -0.0014486312866210938, -0.01380157470703125, -0.038909912109375, 0.007610321044921875, 0.02911376953125, -0.021636962890625, -0.0006256103515625, 0.00847625732421875, 0.0596923828125, -0.0148468017578125, 0.03656005859375, -0.0194854736328125, 0.0222625732421875, 0.01195526123046875, -0.052764892578125, 0.048065185546875, -0.026885986328125, 0.0298004150390625, 0.06341552734375, 0.009521484375, 0.00714111328125, -0.0219268798828125, 0.04180908203125, 0.00229644775390625, 0.003078460693359375, -0.0204010009765625, -0.0556640625, 0.006679534912109375, -0.01042938232421875, 0.0426025390625, 0.056884765625, 0.049957275390625, -0.00936126708984375, 0.04119873046875, 0.056365966796875, 0.0089569091796875, -0.0479736328125, 0.0181732177734375, -0.0767822265625, 0.0016803741455078125, -0.025848388671875, -0.041748046875, -0.0220947265625, 0.0013322830200195312, 0.0016336441040039062, -0.01702880859375, -0.001983642578125, -0.061492919921875, -0.045074462890625, -0.0626220703125, -0.01219940185546875, -0.01256561279296875, 0.015533447265625, -0.004535675048828125, 0.0631103515625, 0.002288818359375, -0.06805419921875, -0.033294677734375, 0.0482177734375, -0.02142333984375, -0.007083892822265625, -0.0105743408203125, 0.00403594970703125, 0.021240234375, 0.003215789794921875, -0.003986358642578125, 0.018402099609375, -0.00984954833984375, -0.0236968994140625, -0.0217742919921875, 0.021514892578125, 0.032440185546875, -0.033538818359375, 0.00238037109375, 0.05364990234375, 0.0227508544921875, -0.00901031494140625, -0.036834716796875, -0.0250396728515625, -0.055572509765625, -0.01134490966796875, 0.0084075927734375, 0.0209197998046875, -0.05072021484375, 0.04962158203125, -0.0005431175231933594, -0.0006556510925292969, 0.0257720947265625, -0.022216796875, 0.0382080078125, 0.010101318359375, 0.01262664794921875, -0.01459503173828125, 0.0335693359375, -0.01461029052734375, -0.00506591796875, 0.004116058349609375, -0.00482177734375, -0.0205535888671875, -0.0038776397705078125, -0.0298919677734375, -0.058013916015625, 0.04571533203125, -0.0247955322265625, 0.00397491455078125, -0.035552978515625, -0.0352783203125, -0.007358551025390625, 0.08770751953125, -0.0601806640625, 0.0023956298828125, -0.0195770263671875, 0.006195068359375, -0.0125274658203125, -0.06890869140625, -0.058563232421875, -0.01509857177734375, -0.0733642578125, 0.01678466796875, 0.01273345947265625, -0.0240325927734375, -0.0262451171875, 0.0572509765625, -0.0567626953125, -0.022216796875, 0.038482666015625, -0.01947021484375, -0.01108551025390625, -0.0009918212890625, -0.0129547119140625, -0.02459716796875, -0.0302734375, -0.00505828857421875, -0.06353759765625, -0.0304412841796875, 0.0010433197021484375, 0.060150146484375, 0.010009765625, -0.0511474609375, 0.006488800048828125, 0.055755615234375, 0.034576416015625, 0.051055908203125, 0.00049591064453125, -0.005573272705078125, 0.0190887451171875, -0.034759521484375, 0.0158538818359375, -0.03204345703125, -0.062469482421875, -0.0256500244140625, 0.0154876708984375, 0.0204620361328125, -0.0017251968383789062, -0.0261688232421875, 0.002223968505859375, 0.01045989990234375, -0.052520751953125, -0.035400390625, -0.043731689453125, -0.0008397102355957031, -0.0058441162109375, -0.00836944580078125, -0.038543701171875, -0.0888671875, -0.00344085693359375, 0.047515869140625, -0.01503753662109375, 0.009979248046875, 0.014129638671875, 0.018035888671875, -0.025848388671875, -0.06707763671875, 0.003936767578125, 0.0181427001953125, -0.043853759765625, 0.0633544921875, 0.0189208984375, 0.016387939453125, 0.0291748046875, -0.04107666015625, 0.01386260986328125, 0.029541015625, 0.01491546630859375, 0.0305633544921875, 0.0097808837890625, 0.002643585205078125, 0.043304443359375, -0.041290283203125, 0.0301971435546875, -0.0210723876953125, -0.004058837890625, -0.01202392578125, 0.049102783203125, -0.032073974609375, 0.0106353759765625, -0.0491943359375, -0.03857421875, 0.0311279296875, -0.02801513671875, -0.008026123046875, -0.00606536865234375, 0.0056610107421875, 0.0030384063720703125, -0.033355712890625, 0.0294036865234375, 0.014404296875, 0.044769287109375, 0.017578125, 0.05853271484375, 0.01049041748046875, 0.03326416015625, -0.0232696533203125, -0.011871337890625, 0.060302734375, 0.033050537109375, -0.0251007080078125, 0.00844573974609375, -0.0143890380859375, -0.01708984375, -0.024078369140625, 0.0160675048828125, 0.0208740234375, 0.048431396484375, 0.01861572265625, 0.007244110107421875, 0.005954742431640625, 0.045074462890625, -0.01165008544921875, -0.03277587890625, 0.023590087890625, -0.03228759765625, -0.01224517822265625, 0.0450439453125, -0.0006799697875976562, 0.0123748779296875, -0.01593017578125, 0.027374267578125, 0.0120391845703125, 0.02996826171875, 0.0129852294921875, 0.0164947509765625, -0.007526397705078125, 0.006378173828125, 0.00305938720703125, -0.03363037109375, -0.02227783203125, 0.033050537109375, 0.03912353515625, 0.01910400390625, -0.01062774658203125, -0.0113067626953125, -0.0175018310546875, -0.03057861328125, 0.028472900390625, 0.0298919677734375, -0.00852203369140625, -0.01873779296875, 0.0239410400390625, 0.03363037109375, 0.0167083740234375, -0.039794921875, 0.029449462890625, -0.046905517578125, 0.0214385986328125, -0.0013856887817382812, -0.0335693359375, 0.0242767333984375, 0.03692626953125, -0.06024169921875, -0.0196685791015625, 0.026824951171875, -0.0572509765625, -0.037841796875, 0.0011692047119140625, -0.0231170654296875, 0.00434112548828125, -0.005084991455078125, 0.034393310546875, -0.01824951171875, -0.01458740234375, 0.003772735595703125, 0.006031036376953125, 0.049041748046875, 0.0204315185546875, -0.0255279541015625, -0.01052093505859375, -0.03271484375, -0.01418304443359375, -0.0173492431640625, -0.040313720703125, -0.027557373046875, -0.003753662109375, 0.00643157958984375, 0.0033435821533203125, 0.0093231201171875, -0.0223236083984375, -0.0225677490234375, 0.0090179443359375, 0.0248260498046875, -0.01425933837890625, -0.0203857421875, 0.0867919921875, -0.010589599609375, 0.0771484375, -0.0011234283447265625, 0.0286865234375, -0.019378662109375, -0.0178985595703125, 0.0188446044921875, -0.06982421875, -0.0308685302734375, -0.01275634765625, -0.0245513916015625, 0.0330810546875, 0.02655029296875, -0.0021610260009765625, 0.0251922607421875, -0.029296875, 0.0023555755615234375, -0.012359619140625, 0.00978851318359375, -0.032806396484375, 0.0011644363403320312, 0.028228759765625, 0.01497650146484375, 0.022857666015625, 0.006328582763671875, -0.004894256591796875, -0.0308990478515625, 0.018035888671875, 0.0059814453125, -0.031829833984375, -0.0211029052734375, 0.02996826171875, 0.031097412109375, 0.016082763671875, 0.0288238525390625, 0.0081939697265625, 0.00939178466796875, -0.020599365234375, 0.00850677490234375, 0.019378662109375, -0.03399658203125, 0.08270263671875, 0.01806640625, -0.032012939453125, 0.048553466796875, -0.0626220703125, -0.0309600830078125, 0.0298004150390625, 0.03973388671875, -0.03594970703125, -0.0098419189453125, 0.02392578125, -0.004985809326171875, -0.00592041015625, 0.00273895263671875, 0.000514984130859375, -0.035186767578125, 0.005779266357421875, -0.0008940696716308594, -0.0241241455078125, -0.01424407958984375, -0.020172119140625, -0.0014200210571289062, -0.015655517578125, 0.0594482421875, 0.018768310546875, 0.0791015625, -0.05120849609375, -0.0667724609375, 0.0281524658203125, -0.0234527587890625, 0.02685546875, -0.0489501953125, 0.006893157958984375, -0.0308074951171875, 0.02081298828125, -0.0174560546875, 0.00588226318359375, 0.0343017578125, -0.016082763671875, -0.016571044921875, 0.041168212890625, -0.046295166015625, 0.043548583984375, 0.00787353515625, -0.044769287109375, -0.0028095245361328125, 0.0059814453125, 0.0100250244140625, 0.003803253173828125, -0.03826904296875, 0.0093231201171875, -0.04791259765625, 0.0096588134765625, -0.012176513671875, -0.03326416015625, 0.06890869140625, -0.03192138671875, -0.01480865478515625, 0.0114288330078125, 0.0298004150390625, 0.0099029541015625, 0.0084686279296875, 0.0316162109375, -0.052642822265625, -0.0294189453125, 0.01898193359375, -0.0191192626953125, -0.0103759765625, -0.003910064697265625, -0.0418701171875, 0.06842041015625, -0.03668212890625, 0.0238189697265625, 0.0177459716796875, 0.0259246826171875, -0.009735107421875, 0.004550933837890625, -0.028717041015625, 0.051177978515625, 0.0246429443359375, 0.027191162109375, -0.05377197265625, -0.0179595947265625, 0.0031528472900390625, 0.049896240234375, 0.017059326171875, 0.00170135498046875, -0.0467529296875, -0.0050811767578125, 0.019989013671875, 0.0259857177734375, 0.004138946533203125, 0.0479736328125, -0.004634857177734375, 0.03228759765625, 0.02142333984375, -0.041351318359375, 0.0277862548828125, 0.004016876220703125, -0.023895263671875, 0.033203125, 0.005741119384765625, -0.0043792724609375, -0.0021381378173828125, -0.0296478271484375, -0.03607177734375, -0.00015103816986083984, 0.008392333984375, 0.0198822021484375, 0.02935791015625, 0.02398681640625, 0.0278167724609375, -0.0236968994140625, -0.0218658447265625, -0.0092926025390625, 0.047821044921875, -0.007808685302734375, 0.015106201171875, -0.0047149658203125, 0.0120391845703125, -0.006427764892578125, -0.028411865234375, 0.0026607513427734375, 0.01226806640625, -0.0340576171875, 0.043121337890625, 0.031646728515625, -0.00028777122497558594, -0.05169677734375, 0.02099609375, 0.05859375, 0.07122802734375, -0.053863525390625, -0.054931640625, 0.0100250244140625, 0.01218414306640625, 0.01824951171875, 0.003753662109375, 0.019683837890625, 0.0162811279296875, 0.06390380859375, -0.040771484375, -0.023040771484375, -0.005645751953125, 0.0281219482421875, -0.00238800048828125, -0.007343292236328125, -0.0019073486328125, -0.040374755859375, 0.0010080337524414062, -0.040496826171875, 0.0081329345703125, 0.032745361328125, 0.01898193359375, 0.037261962890625, -0.0254974365234375, -0.0141448974609375, 0.040191650390625, -0.02777099609375, 0.017120361328125, -0.050994873046875, 0.04229736328125, -0.0033779144287109375, -0.0005903244018554688, 0.0030078887939453125, 0.0124359130859375, 0.02685546875, 0.0450439453125, 0.033447265625, -0.0189361572265625, -0.00992584228515625, 0.035064697265625, -0.0262298583984375, -0.039520263671875, -0.027618408203125, -0.024017333984375, 0.0258331298828125, -0.0006766319274902344, 0.024871826171875, -0.007732391357421875, 0.04339599609375, 0.00841522216796875, 0.0413818359375, 0.005615234375, 0.0012121200561523438, 0.02734375, -0.0148468017578125, 0.044830322265625, 0.01424407958984375, -0.08251953125, -0.0418701171875, 0.0210113525390625, -0.039031982421875, 0.0411376953125, 0.052001953125, 0.0007128715515136719, -0.031646728515625, 0.0209197998046875, -0.027587890625, -0.0066070556640625, 0.031707763671875, 0.007465362548828125, 0.04852294921875, 0.018890380859375, 0.0245208740234375, -0.0185699462890625, -0.017242431640625, -0.00211334228515625, 0.0290069580078125, 0.0167388916015625, 0.060821533203125, -0.012115478515625, 0.0238037109375, -0.019317626953125, 0.05059814453125, -0.05267333984375, -0.036468505859375, 0.051483154296875, -0.006320953369140625, 0.00782012939453125, -0.0027217864990234375, -0.0308074951171875, 0.00930023193359375, 0.0287322998046875, -0.01471710205078125, -0.01568603515625, -0.0257568359375, 0.0254364013671875, -0.0008358955383300781, 0.038482666015625, -0.0225982666015625, 0.01154327392578125, -0.023834228515625, -0.046844482421875, 0.05096435546875, 0.004894256591796875, -0.0007863044738769531, 0.0540771484375, 0.0002655982971191406, -0.021881103515625, 0.03997802734375, -0.06689453125, 0.02825927734375, 0.01175689697265625, 0.0321044921875, -0.055328369140625, 0.041778564453125, -0.00582122802734375, 0.01236724853515625, 0.016876220703125, 0.043701171875, 0.0333251953125, -0.049102783203125, -0.002948760986328125, 0.0252227783203125, 0.0296783447265625, -0.03546142578125, -0.00862884521484375, 0.0322265625, -0.0266571044921875, -0.01287078857421875, -0.00231170654296875, -0.032196044921875, -0.058197021484375, 0.027008056640625, 0.00943756103515625, -0.005313873291015625, -0.01995849609375, -0.0254058837890625, -0.00904083251953125, 0.048095703125, 0.03173828125, -0.049102783203125, 0.034149169921875, -0.0036220550537109375, -0.011932373046875, 0.03253173828125, 0.048736572265625, -0.003269195556640625, 0.020751953125, -0.0132598876953125, 0.0291900634765625, 0.00620269775390625, 0.00989532470703125, 0.03369140625, 0.0228118896484375, 0.0228118896484375, -0.0236053466796875, 0.01303863525390625, 0.037139892578125, 0.042388916015625, 0.0775146484375, 0.064697265625, -0.023590087890625, -0.0221099853515625, 0.00891876220703125, -0.00897979736328125, -0.0172271728515625, 0.0377197265625, -0.07012939453125, -0.054046630859375, 0.006206512451171875, 0.0234375, 0.057281494140625, -0.019775390625, -0.0582275390625, 0.09918212890625, -0.0288848876953125, -0.020751953125, -0.00429534912109375, 0.016143798828125, -0.0178680419921875, 0.0235137939453125, 0.0247650146484375, -0.058837890625, 0.010223388671875, 0.007965087890625, -0.001499176025390625, 0.045257568359375, 0.0209503173828125, -0.005279541015625, -0.0043487548828125, 0.0018377304077148438, 0.004367828369140625, -0.004360198974609375, -0.005527496337890625, 0.016632080078125, -0.0173492431640625, 0.011077880859375, -0.058990478515625, 0.002826690673828125, -0.024200439453125, 0.05145263671875, 0.00769805908203125, -0.01473236083984375, -0.0283966064453125, -0.038421630859375, 0.0142059326171875, 0.003856658935546875, 0.0096588134765625, 0.006168365478515625, -0.019561767578125, -0.0655517578125, -0.05780029296875, 0.0027370452880859375, 0.023834228515625, -0.05426025390625, 0.0162353515625, 0.023468017578125, -0.0007696151733398438, -0.0154876708984375, -0.01041412353515625, -0.0222015380859375, -0.0304107666015625, -0.01303863525390625, 0.006504058837890625, -0.024688720703125, 0.02862548828125, -0.00027561187744140625, -0.017913818359375, -0.009124755859375, -0.0225677490234375, -0.004550933837890625, -0.01349639892578125, 0.0026569366455078125, -0.05059814453125, 0.01142120361328125, -0.0272674560546875, 0.0284271240234375, -0.0258331298828125, 0.0340576171875, -0.0367431640625, 0.0443115234375, -0.031707763671875, 0.0018634796142578125, 0.01108551025390625, -0.0284271240234375, -0.02130126953125, 0.05047607421875, 0.0169219970703125, 0.07373046875, 0.027923583984375, 0.0426025390625, -0.01529693603515625, 0.06640625, 0.0176544189453125, -0.035186767578125, 0.019622802734375, -0.02386474609375, 0.0025634765625, -0.02117919921875, -0.040374755859375, -0.0270843505859375, -0.0016050338745117188, 0.04052734375, -0.0355224609375, 0.0157928466796875 ]
34a6c74178e6be07227e2415876d4cdda0d1ba82
Wordpress Stackexchange Q: How to call the_excerpt() with tags or the_content() as an excerpt? Is it possible to call the_excerpt() with tags intact? I'd like to create a excerpted listing of my posts in a specific category, but I'd also like the links and formatting carried over from the post content. I'm currently using the_excerpt() which otherwise works fine, however, the tags are stripped out. I can't find a filter to place on the_excerpt() to do this, so barring that, is it possible to filter the_content() to pull the first 100 words with tags and a read more link at the end? A: Actually, I just did something like this for a Drupal site. I based my truncation function on this: Truncate text preserving HTML tags with PHP Use the final version of the function at the end of the comments. The function takes its $length parameter in characters, not words, but you can probably use the general rule-of-thumb of 5 characters per word to estimate, if needed. Hook your function to the get_the_excerpt filter, and you should be in pretty good shape.
Q: How to call the_excerpt() with tags or the_content() as an excerpt? Is it possible to call the_excerpt() with tags intact? I'd like to create a excerpted listing of my posts in a specific category, but I'd also like the links and formatting carried over from the post content. I'm currently using the_excerpt() which otherwise works fine, however, the tags are stripped out. I can't find a filter to place on the_excerpt() to do this, so barring that, is it possible to filter the_content() to pull the first 100 words with tags and a read more link at the end? A: Actually, I just did something like this for a Drupal site. I based my truncation function on this: Truncate text preserving HTML tags with PHP Use the final version of the function at the end of the comments. The function takes its $length parameter in characters, not words, but you can probably use the general rule-of-thumb of 5 characters per word to estimate, if needed. Hook your function to the get_the_excerpt filter, and you should be in pretty good shape.
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:410426", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20312" }
[ 0.019256591796875, -0.003345489501953125, 0.0085601806640625, 0.00902557373046875, -0.003879547119140625, -0.03350830078125, 0.0301666259765625, -0.044708251953125, -0.00489044189453125, 0.0311737060546875, -0.0213623046875, -0.0186920166015625, 0.0207061767578125, -0.028656005859375, -0.0178375244140625, -0.030670166015625, 0.0313720703125, -0.01050567626953125, 0.041839599609375, -0.00681304931640625, 0.0293426513671875, 0.0081024169921875, 0.0226287841796875, 0.038818359375, 0.0058746337890625, -0.00044918060302734375, 0.08172607421875, -0.006916046142578125, 0.005176544189453125, -0.01511383056640625, 0.01496124267578125, -0.0265960693359375, 0.012786865234375, 0.057373046875, -0.060882568359375, 0.0054168701171875, 0.006130218505859375, 0.0131072998046875, 0.019866943359375, 0.02001953125, 0.007694244384765625, 0.00919342041015625, 0.004116058349609375, 0.044036865234375, -0.0170745849609375, -0.038970947265625, 0.03155517578125, -0.048614501953125, 0.0012674331665039062, -0.010650634765625, 0.041839599609375, 0.003429412841796875, 0.045379638671875, -0.09405517578125, -0.004638671875, 0.032073974609375, -0.0016603469848632812, -0.00582122802734375, 0.0219573974609375, -0.036346435546875, -0.01438140869140625, 0.006153106689453125, 0.03289794921875, 0.025848388671875, 0.01134490966796875, 0.01424407958984375, 0.03179931640625, 0.0097808837890625, -0.03118896484375, -0.006145477294921875, -0.0019073486328125, -0.04388427734375, -0.00084686279296875, -0.03375244140625, -0.0185089111328125, 0.036773681640625, -0.0267486572265625, 0.005767822265625, 0.01145172119140625, -0.0121002197265625, 0.01396942138671875, 0.0081634521484375, -0.026641845703125, -0.01363372802734375, 0.01558685302734375, 0.00269317626953125, -0.0170745849609375, -0.01470184326171875, -0.031585693359375, 0.0026092529296875, -0.0203704833984375, 0.001987457275390625, -0.005039215087890625, 0.017974853515625, -0.00344085693359375, -0.0173797607421875, 0.01149749755859375, 0.0064849853515625, -0.0198974609375, -0.011016845703125, 0.0282440185546875, -0.052642822265625, 0.0672607421875, -0.0189666748046875, 0.0164794921875, 0.049713134765625, -0.0130615234375, -0.02899169921875, 0.050567626953125, 0.0277099609375, 0.0210113525390625, 0.0041351318359375, -0.01342010498046875, -0.0501708984375, -0.03656005859375, 0.040008544921875, -0.0186309814453125, -0.0258636474609375, 0.025787353515625, -0.0283203125, 0.01021575927734375, 0.00647735595703125, 0.01287078857421875, 0.03857421875, -0.0345458984375, -0.008087158203125, 0.0019311904907226562, -0.0237579345703125, 0.05560302734375, 0.008575439453125, -0.0233001708984375, 0.0281524658203125, -0.0264434814453125, -0.04400634765625, -0.0291290283203125, 0.0011987686157226562, -0.003154754638671875, -0.04486083984375, -0.01812744140625, -0.01270294189453125, 0.0285491943359375, 0.0051116943359375, 0.01284027099609375, -0.002811431884765625, 0.006526947021484375, 0.03607177734375, 0.0233612060546875, -0.002140045166015625, 0.0061492919921875, -0.0226287841796875, 0.0034236907958984375, -0.035614013671875, 0.08416748046875, -0.049072265625, -0.071533203125, -0.09161376953125, -0.01395416259765625, -0.0577392578125, 0.00881195068359375, -0.0966796875, 0.04742431640625, -0.0245208740234375, -0.02752685546875, -0.01361083984375, -0.053680419921875, 0.01007843017578125, -0.04833984375, -0.016448974609375, 0.027557373046875, 0.044219970703125, 0.007598876953125, -0.0165557861328125, -0.008087158203125, 0.0106201171875, -0.0005035400390625, 0.022705078125, 0.0171966552734375, -0.033966064453125, 0.01016998291015625, 0.054229736328125, -0.018707275390625, -0.04095458984375, -0.0024776458740234375, -0.035186767578125, -0.0005602836608886719, 0.01403045654296875, 0.039520263671875, 0.06097412109375, -0.021148681640625, 0.03216552734375, -0.00829315185546875, 0.0128173828125, -0.045440673828125, 0.0004181861877441406, -0.0086822509765625, -0.02008056640625, -0.01227569580078125, -0.03070068359375, -0.005977630615234375, 0.03265380859375, 0.077392578125, -0.04156494140625, 0.031951904296875, -0.0233612060546875, -0.054168701171875, -0.00319671630859375, -0.0203399658203125, 0.021392822265625, -0.0343017578125, 0.0204010009765625, 0.0321044921875, -0.017059326171875, -0.0311126708984375, -0.005718231201171875, 0.00400543212890625, -0.010955810546875, -0.0364990234375, -0.0153656005859375, 0.001201629638671875, 0.00914764404296875, 0.037689208984375, 0.0063323974609375, 0.0186004638671875, 0.01666259765625, 0.060394287109375, -0.0770263671875, 0.023162841796875, -0.054473876953125, 0.021881103515625, -0.016021728515625, -0.04974365234375, 0.041168212890625, 0.0701904296875, 0.053863525390625, -0.02008056640625, 0.0019044876098632812, 0.037384033203125, -0.03814697265625, -0.006420135498046875, 0.041229248046875, 0.043914794921875, 0.0504150390625, -0.0401611328125, -0.09051513671875, 0.0751953125, -0.01861572265625, 0.0117034912109375, -0.0540771484375, 0.0094451904296875, 0.01971435546875, 0.0035419464111328125, -0.0140533447265625, 0.021087646484375, 0.008636474609375, 0.0124053955078125, 0.0118408203125, 0.01751708984375, 0.0142364501953125, -0.0013341903686523438, -0.0092010498046875, -0.0022563934326171875, -0.0177001953125, -0.01369476318359375, -0.0207061767578125, 0.015869140625, 0.04876708984375, 0.043731689453125, 0.04290771484375, -0.024444580078125, 0.00858306884765625, 0.00873565673828125, 0.07269287109375, 0.010406494140625, 0.056793212890625, -0.0439453125, -0.053619384765625, 0.00193023681640625, 0.0042266845703125, -0.0325927734375, -0.007335662841796875, 0.01102447509765625, 0.055999755859375, 0.032501220703125, -0.011077880859375, -0.0266265869140625, -0.047210693359375, -0.00098419189453125, 0.0230560302734375, -0.02044677734375, -0.034698486328125, 0.01166534423828125, 0.012481689453125, -0.00821685791015625, 0.0015058517456054688, -0.01194000244140625, -0.00749969482421875, 0.01142120361328125, -0.00946044921875, 0.036285400390625, -0.0273895263671875, 0.06829833984375, 0.050811767578125, -0.02716064453125, 0.015716552734375, 0.01275634765625, 0.01255035400390625, 0.03314208984375, 0.004207611083984375, 0.0031681060791015625, 0.01119232177734375, -0.03753662109375, 0.012237548828125, 0.0156707763671875, 0.06231689453125, -0.0184326171875, -0.05865478515625, -0.0120849609375, 0.03961181640625, -0.05194091796875, -0.0229644775390625, 0.059173583984375, -0.047576904296875, -0.0296783447265625, 0.007671356201171875, -0.041046142578125, -0.024505615234375, 0.040985107421875, -0.0263214111328125, -0.011322021484375, -0.0361328125, -0.057342529296875, -0.052490234375, -0.09588623046875, 0.05694580078125, 0.011749267578125, 0.0531005859375, 0.0150299072265625, 0.004375457763671875, -0.0036525726318359375, -0.0364990234375, 0.0059814453125, -0.0323486328125, -0.0204620361328125, 0.01534271240234375, 0.033905029296875, 0.004039764404296875, -0.01132965087890625, 0.02899169921875, 0.00004029273986816406, 0.0219268798828125, -0.030364990234375, -0.04498291015625, -0.0239410400390625, 0.021453857421875, 0.034576416015625, 0.0025386810302734375, 0.01165008544921875, 0.05615234375, 0.053741455078125, -0.00846099853515625, -0.00785064697265625, -0.0003809928894042969, -0.0382080078125, -0.005245208740234375, 0.0582275390625, -0.0240631103515625, -0.031494140625, -0.01158905029296875, -0.00200653076171875, 0.00649261474609375, 0.05267333984375, -0.0269012451171875, 0.0237884521484375, -0.0188751220703125, -0.038726806640625, -0.024932861328125, 0.0307464599609375, 0.0145111083984375, -0.007904052734375, -0.00746917724609375, 0.049652099609375, -0.0217132568359375, 0.0186920166015625, -0.08258056640625, -0.0223388671875, 0.0458984375, -0.00630950927734375, -0.0216217041015625, -0.00725555419921875, -0.030914306640625, 0.005863189697265625, 0.049285888671875, -0.0372314453125, -0.0399169921875, -0.0103302001953125, 0.01534271240234375, 0.01428985595703125, -0.01395416259765625, 0.0045928955078125, -0.026611328125, -0.056976318359375, -0.0095977783203125, -0.0343017578125, -0.0186004638671875, -0.0097198486328125, -0.0052032470703125, -0.01459503173828125, -0.034637451171875, 0.047760009765625, -0.008941650390625, -0.00131988525390625, 0.005886077880859375, 0.0165557861328125, -0.035308837890625, -0.019927978515625, 0.00015223026275634766, -0.06707763671875, -0.00799560546875, -0.020355224609375, 0.035369873046875, 0.01013946533203125, -0.01251220703125, 0.00457000732421875, 0.05755615234375, 0.054779052734375, -0.046844482421875, 0.0291900634765625, -0.026824951171875, -0.005283355712890625, 0.0000028014183044433594, 0.010833740234375, -0.04669189453125, -0.0262603759765625, -0.039306640625, -0.00994110107421875, 0.042327880859375, -0.018341064453125, 0.0275726318359375, -0.0208587646484375, 0.0093231201171875, -0.0677490234375, -0.02996826171875, -0.0254364013671875, -0.0238800048828125, -0.019744873046875, 0.0047760009765625, 0.01105499267578125, -0.061614990234375, 0.043212890625, 0.0299224853515625, -0.047515869140625, 0.0006847381591796875, 0.041168212890625, 0.025634765625, -0.034271240234375, -0.03985595703125, 0.0157623291015625, 0.048309326171875, -0.06585693359375, 0.042724609375, 0.0089874267578125, -0.0577392578125, 0.1190185546875, -0.0090789794921875, 0.00257110595703125, -0.0015287399291992188, 0.00390625, 0.0118255615234375, -0.00530242919921875, -0.003383636474609375, -0.006732940673828125, 0.048065185546875, -0.012939453125, -0.0167694091796875, 0.00457000732421875, 0.0233001708984375, 0.03271484375, -0.0259552001953125, 0.042877197265625, -0.006435394287109375, 0.008453369140625, 0.00896453857421875, 0.046966552734375, -0.0062713623046875, 0.0009698867797851562, 0.0246429443359375, -0.036346435546875, -0.0166015625, 0.034912109375, -0.02435302734375, -0.007801055908203125, -0.033050537109375, 0.0279083251953125, 0.002323150634765625, 0.002056121826171875, 0.00508880615234375, -0.00469207763671875, -0.00971221923828125, -0.00676727294921875, -0.03985595703125, 0.0025501251220703125, -0.002262115478515625, 0.0298004150390625, 0.0179443359375, 0.0007762908935546875, -0.0244903564453125, -0.02484130859375, 0.0065765380859375, 0.0295562744140625, 0.0060272216796875, -0.003063201904296875, 0.00653076171875, -0.025634765625, -0.0025768280029296875, -0.012237548828125, 0.021026611328125, 0.041412353515625, -0.039581298828125, 0.04534912109375, -0.0015964508056640625, 0.01605224609375, 0.0011081695556640625, 0.034881591796875, 0.0308685302734375, -0.0182952880859375, -0.01617431640625, 0.01568603515625, -0.0321044921875, -0.0290374755859375, -0.0130615234375, 0.03656005859375, 0.040679931640625, -0.00785064697265625, -0.0152130126953125, -0.0017175674438476562, -0.0305938720703125, -0.016632080078125, 0.029510498046875, -0.004550933837890625, -0.0322265625, -0.034881591796875, 0.01157379150390625, 0.03155517578125, 0.014739990234375, -0.005252838134765625, 0.002452850341796875, -0.0122222900390625, 0.00884246826171875, -0.0250701904296875, -0.03277587890625, 0.0139007568359375, 0.006084442138671875, 0.0274200439453125, -0.0306549072265625, -0.0158538818359375, 0.027801513671875, 0.0029697418212890625, -0.019561767578125, 0.011138916015625, 0.047882080078125, -0.015716552734375, -0.0012569427490234375, -0.0245208740234375, 0.0012941360473632812, -0.0322265625, 0.00037789344787597656, 0.08721923828125, 0.059478759765625, -0.06719970703125, 0.0289306640625, -0.061126708984375, 0.01192474365234375, -0.010223388671875, -0.06610107421875, -0.045623779296875, -0.0307159423828125, 0.0088348388671875, -0.0003707408905029297, 0.020233154296875, 0.004634857177734375, -0.01194000244140625, 0.00676727294921875, -0.0078125, 0.010040283203125, 0.00376129150390625, 0.0012760162353515625, 0.0303192138671875, 0.00948333740234375, 0.01654052734375, -0.00038123130798339844, -0.006099700927734375, -0.03155517578125, -0.00939178466796875, -0.0545654296875, 0.0037078857421875, -0.016876220703125, 0.056976318359375, 0.0195770263671875, 0.0238189697265625, 0.021026611328125, -0.0078887939453125, -0.0221710205078125, 0.0007586479187011719, -0.02239990234375, 0.0196990966796875, -0.01343536376953125, -0.0226287841796875, 0.005039215087890625, -0.00875091552734375, 0.00394439697265625, -0.00571441650390625, 0.0285797119140625, -0.0118865966796875, -0.00782012939453125, -0.01018524169921875, -0.0037326812744140625, 0.033477783203125, -0.0538330078125, 0.0212249755859375, -0.00543975830078125, 0.037445068359375, 0.016021728515625, 0.01178741455078125, 0.049285888671875, 0.01436614990234375, -0.01374053955078125, 0.01654052734375, 0.0250244140625, -0.0009717941284179688, 0.015960693359375, 0.0167694091796875, -0.01334381103515625, 0.0142059326171875, 0.01403045654296875, 0.0285491943359375, -0.03515625, 0.00894927978515625, -0.00749969482421875, -0.003631591796875, 0.02276611328125, 0.007373809814453125, -0.01194000244140625, -0.05828857421875, 0.041259765625, -0.0084686279296875, 0.0007719993591308594, 0.00499725341796875, -0.0266265869140625, -0.005695343017578125, -0.0291900634765625, 0.00815582275390625, 0.0182342529296875, -0.06317138671875, 0.040618896484375, 0.047637939453125, 0.0234222412109375, -0.05377197265625, -0.00472259521484375, 0.0005984306335449219, -0.007694244384765625, -0.0168304443359375, 0.03466796875, -0.019989013671875, 0.043701171875, -0.006511688232421875, -0.0179290771484375, 0.007167816162109375, 0.039886474609375, -0.0260009765625, 0.0085296630859375, 0.020904541015625, -0.0469970703125, -0.039337158203125, -0.024444580078125, 0.024871826171875, 0.021881103515625, 0.00994873046875, 0.025787353515625, -0.005565643310546875, -0.05487060546875, 0.00933837890625, 0.029754638671875, 0.0460205078125, -0.004131317138671875, -0.044952392578125, 0.0550537109375, -0.03167724609375, -0.035552978515625, -0.022735595703125, 0.0330810546875, -0.0535888671875, 0.0185089111328125, -0.0006146430969238281, 0.0145263671875, -0.0225830078125, -0.038116455078125, -0.0655517578125, 0.11517333984375, 0.0211944580078125, 0.00939178466796875, -0.00138092041015625, 0.059356689453125, -0.05389404296875, 0.01480865478515625, -0.016693115234375, 0.055206298828125, -0.0200347900390625, 0.0186309814453125, -0.034332275390625, -0.0061492919921875, 0.004268646240234375, 0.033416748046875, 0.006153106689453125, -0.0029125213623046875, 0.00016641616821289062, -0.033935546875, 0.013519287109375, 0.0240631103515625, 0.0030689239501953125, 0.0041351318359375, 0.03729248046875, 0.05517578125, 0.0289764404296875, -0.036895751953125, 0.043182373046875, -0.0826416015625, 0.01192474365234375, 0.045867919921875, -0.00199127197265625, -0.0086822509765625, 0.01141357421875, -0.0141754150390625, -0.004245758056640625, -0.0104217529296875, -0.0003020763397216797, -0.0467529296875, 0.0250396728515625, 0.041534423828125, 0.0645751953125, -0.07568359375, -0.041351318359375, -0.0218658447265625, 0.049224853515625, 0.00617218017578125, 0.08319091796875, 0.055694580078125, 0.037384033203125, 0.08740234375, -0.0201873779296875, 0.0440673828125, -0.0198211669921875, -0.0338134765625, 0.022552490234375, 0.0036106109619140625, -0.01348876953125, -0.054962158203125, -0.0152435302734375, 0.039703369140625, 0.041168212890625, -0.045013427734375, 0.0051727294921875, 0.00978851318359375, 0.01190185546875, 0.010894775390625, -0.0269775390625, 0.0258941650390625, 0.050323486328125, 0.033294677734375, -0.00711822509765625, -0.03369140625, -0.00667572021484375, 0.04779052734375, 0.0185546875, 0.03271484375, -0.00004774332046508789, -0.052520751953125, -0.037261962890625, 0.03826904296875, 0.02349853515625, -0.0082550048828125, -0.0228271484375, 0.020355224609375, 0.01128387451171875, 0.0264434814453125, 0.0265045166015625, 0.018646240234375, -0.0135040283203125, -0.036224365234375, 0.033477783203125, -0.01190185546875, -0.0083465576171875, -0.0147705078125, 0.006847381591796875, -0.059112548828125, 0.0202789306640625, 0.0340576171875, -0.07806396484375, -0.0208892822265625, 0.033905029296875, -0.01016998291015625, 0.0241546630859375, -0.0237274169921875, 0.0084991455078125, 0.00754547119140625, -0.01055908203125, -0.01355743408203125, 0.01445770263671875, 0.038482666015625, -0.004405975341796875, 0.021484375, 0.00002753734588623047, 0.0114898681640625, 0.02734375, 0.007244110107421875, -0.01548004150390625, 0.0224609375, -0.067138671875, 0.00644683837890625, -0.0238189697265625, -0.04583740234375, 0.01482391357421875, 0.0401611328125, -0.02838134765625, 0.027313232421875, -0.00844573974609375, -0.0001474618911743164, 0.007110595703125, -0.0012178421020507812, -0.0277099609375, 0.051971435546875, 0.034515380859375, 0.005878448486328125, -0.038848876953125, -0.018280029296875, 0.01044464111328125, 0.049224853515625, -0.007747650146484375, 0.0687255859375, -0.026214599609375, 0.0232391357421875, -0.00412750244140625, 0.035064697265625, -0.037353515625, -0.0379638671875, 0.0479736328125, 0.007293701171875, 0.0290374755859375, -0.00954437255859375, -0.00853729248046875, 0.02325439453125, 0.046875, -0.01129913330078125, 0.020782470703125, 0.003986358642578125, 0.0004706382751464844, -0.026611328125, 0.06268310546875, -0.0079498291015625, 0.00099945068359375, -0.01543426513671875, -0.033447265625, 0.0438232421875, 0.049560546875, 0.041046142578125, 0.0013637542724609375, 0.03668212890625, 0.00917816162109375, -0.00405120849609375, 0.026275634765625, -0.0013561248779296875, 0.0269775390625, 0.0017995834350585938, -0.01184844970703125, 0.046142578125, -0.01158905029296875, 0.033447265625, 0.0133209228515625, 0.040130615234375, 0.05316162109375, -0.037689208984375, 0.0038051605224609375, 0.00965118408203125, 0.05810546875, -0.0023174285888671875, 0.0296173095703125, -0.02069091796875, 0.0127410888671875, 0.024139404296875, 0.006343841552734375, -0.028533935546875, -0.02978515625, -0.0106353759765625, -0.00363922119140625, -0.032684326171875, -0.09088134765625, -0.07232666015625, -0.035675048828125, 0.01123809814453125, 0.0020771026611328125, -0.0234375, 0.00998687744140625, 0.00548553466796875, 0.00811767578125, -0.036468505859375, -0.04254150390625, 0.01532745361328125, 0.0257720947265625, -0.032257080078125, -0.057464599609375, -0.060272216796875, 0.040802001953125, -0.06195068359375, 0.0408935546875, 0.0828857421875, -0.055206298828125, -0.048431396484375, 0.059173583984375, 0.0294952392578125, 0.10028076171875, -0.006542205810546875, 0.00794219970703125, 0.02276611328125, 0.039764404296875, -0.01910400390625, -0.058563232421875, -0.01421356201171875, 0.0178375244140625, 0.0167388916015625, 0.03863525390625, -0.03369140625, -0.01995849609375, -0.031951904296875, -0.037261962890625, 0.0313720703125, 0.0120391845703125, -0.0296173095703125, 0.02978515625, -0.00891876220703125, 0.004505157470703125, -0.0224456787109375, 0.008514404296875, 0.011383056640625, -0.0296630859375, -0.023468017578125, 0.01385498046875, 0.03753662109375, 0.0204620361328125, -0.00685882568359375, -0.0155181884765625, 0.00975799560546875, 0.0036220550537109375, 0.021148681640625, -0.0183258056640625, -0.002399444580078125, 0.00678253173828125, 0.040069580078125, -0.02288818359375, -0.005893707275390625, 0.0076446533203125, -0.0205841064453125, -0.01360321044921875, -0.021270751953125, -0.02276611328125, -0.0418701171875, 0.01092529296875, 0.03350830078125, -0.01059722900390625, -0.01168060302734375, 0.005886077880859375, 0.01247406005859375, -0.02532958984375, -0.0173187255859375, 0.023406982421875, -0.046722412109375, -0.01258087158203125, -0.0124053955078125, 0.011566162109375, 0.03271484375, -0.0660400390625, -0.0251922607421875, -0.022186279296875, -0.0491943359375, 0.061798095703125, -0.09503173828125, -0.06219482421875, 0.0166473388671875, -0.033294677734375, -0.061614990234375, -0.00400543212890625, 0.0275115966796875, -0.05572509765625, -0.0301361083984375, -0.0194244384765625, -0.0099945068359375, 0.01224517822265625, 0.031982421875, 0.0117645263671875, 0.0096893310546875, 0.00618743896484375, 0.00684356689453125, -0.0085296630859375, 0.0136871337890625, 0.009857177734375, 0.02801513671875, 0.0084228515625, -0.0015153884887695312, -0.010406494140625, 0.0001709461212158203, 0.0005793571472167969, 0.0157470703125, -0.01174163818359375, 0.03704833984375, -0.007656097412109375, -0.0184173583984375, 0.0113677978515625, -0.020538330078125, 0.010833740234375, -0.0015840530395507812, 0.0254669189453125, -0.033111572265625, 0.016204833984375, -0.047210693359375, 0.0108184814453125, 0.016876220703125 ]
64220f93e19e079a704c96ca377fa5cb135fca31
Wordpress Stackexchange Q: Comment visibility There will be many people commenting on a post. So, when a commentator visits the post, he should be able to see 'only' his own comment(s).Post author can see all comments only on his own post. How can I do this in WordPress? A: By using the 'pre_get_comments' action, found in wp-includes/comment.php: function restrict_visible_comments( $comments_query ) { if ( !is_singular() ) return; if ( current_user_can( 'moderate_comments' ) ) return; // moderators can see all comments if ( get_current_user_id() == get_queried_object()->post_author ) return; // the author of the post can see all comments $comments_query->query_vars['user_id'] = get_current_user_id(); } if ( !is_admin() ) add_action( 'pre_get_comments', 'restrict_visible_comments' ); Note that the above won't display comments left by non-registered users. Update: Nevermind, this won't work because get_comments() isn't used consistently in comments_template(): http://core.trac.wordpress.org/browser/tags/3.1.3/wp-includes/comment-template.php#L882
Q: Comment visibility There will be many people commenting on a post. So, when a commentator visits the post, he should be able to see 'only' his own comment(s).Post author can see all comments only on his own post. How can I do this in WordPress? A: By using the 'pre_get_comments' action, found in wp-includes/comment.php: function restrict_visible_comments( $comments_query ) { if ( !is_singular() ) return; if ( current_user_can( 'moderate_comments' ) ) return; // moderators can see all comments if ( get_current_user_id() == get_queried_object()->post_author ) return; // the author of the post can see all comments $comments_query->query_vars['user_id'] = get_current_user_id(); } if ( !is_admin() ) add_action( 'pre_get_comments', 'restrict_visible_comments' ); Note that the above won't display comments left by non-registered users. Update: Nevermind, this won't work because get_comments() isn't used consistently in comments_template(): http://core.trac.wordpress.org/browser/tags/3.1.3/wp-includes/comment-template.php#L882 A: use the comments_array filter, and remove the unnecessary comments. Some loose code to get you started <?php add_filter('comments_array','display_only_user_comments') function display_only_user_comments($comments){ $comemnts=NULL; /*modify this part to get only user comments*/ if ( $user_ID) { $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, $user_ID)); } else if ( empty($comment_author) ) { $comments = get_comments( array('post_id' => $post->ID, 'status' => 'approve', 'order' => 'ASC') ); } else { $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, wp_specialchars_decode($comment_author,ENT_QUOTES), $comment_author_email)); } return $comments; } ?> A: @Satish... Thanks a lot man! I don't know if you're solution worked for the question asker, but it worked for me! I has spent 2 days trying things with 'comments_clauses' and 'pre_get_comments', and had given up! A: My solution for author to see only his comments add_filter('pre_get_comments','display_only_user_comments'); function display_only_user_comments($query){ global $pagenow; if('edit-comments.php' != $pagenow || $query->is_admin) return $query; if( !current_user_can( 'manage_options' ) ) { global $user_ID; $query->query_vars['post_author'] = $user_ID; } return $query; } A: Useful Comments Plugin..If you are not well known about codings means Plugin is the Easiest Way to Do that.:) I hope you got answer...:)
wordpress
{ "language": "en", "length": 358, "provenance": "stackexchange_00019.jsonl.gz:410427", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20313" }
[ 0.0765380859375, -0.00782012939453125, 0.033599853515625, -0.0594482421875, 0.015777587890625, -0.01508331298828125, 0.03338623046875, -0.0232696533203125, 0.021209716796875, 0.041748046875, -0.08380126953125, -0.00417327880859375, -0.037506103515625, 0.023895263671875, -0.06024169921875, -0.06378173828125, 0.05352783203125, -0.0016574859619140625, 0.07891845703125, 0.00751495361328125, 0.04827880859375, 0.0245819091796875, 0.039825439453125, 0.07720947265625, 0.0261077880859375, -0.037353515625, 0.10369873046875, -0.03131103515625, 0.032745361328125, -0.03314208984375, 0.0304412841796875, -0.01558685302734375, -0.0035686492919921875, 0.03533935546875, -0.01169586181640625, 0.0041961669921875, -0.01348876953125, 0.0284881591796875, 0.0203704833984375, 0.016143798828125, 0.0261688232421875, -0.0164031982421875, -0.0628662109375, 0.00850677490234375, -0.050628662109375, -0.0341796875, 0.0307464599609375, 0.003570556640625, 0.0301361083984375, 0.031158447265625, 0.038421630859375, 0.06719970703125, 0.04888916015625, 0.016387939453125, -0.00814056396484375, 0.022125244140625, -0.0240478515625, 0.0179290771484375, 0.047515869140625, -0.045318603515625, -0.022308349609375, -0.039703369140625, 0.03594970703125, 0.007518768310546875, -0.00730133056640625, -0.00975799560546875, 0.018890380859375, 0.0241546630859375, 0.001827239990234375, -0.002544403076171875, -0.0032291412353515625, 0.0131378173828125, -0.0070953369140625, -0.0174560546875, -0.0278167724609375, -0.0087432861328125, 0.00020813941955566406, -0.0309295654296875, 0.0281219482421875, 0.00133514404296875, 0.0311126708984375, -0.0171356201171875, -0.039459228515625, 0.003643035888671875, 0.0151519775390625, 0.0273590087890625, 0.001705169677734375, -0.0301971435546875, -0.01366424560546875, -0.0141143798828125, -0.0166473388671875, -0.0203857421875, -0.01354217529296875, 0.013916015625, -0.0177764892578125, -0.0158843994140625, 0.04302978515625, 0.061279296875, -0.046539306640625, 0.008453369140625, -0.043212890625, 0.005096435546875, -0.025238037109375, -0.0234375, -0.011749267578125, 0.025543212890625, -0.0111541748046875, 0.006320953369140625, 0.031494140625, 0.044189453125, 0.020843505859375, -0.04205322265625, -0.02593994140625, 0.0031108856201171875, -0.0190277099609375, 0.0057830810546875, -0.05145263671875, -0.0008635520935058594, -0.02142333984375, 0.00988006591796875, 0.00260162353515625, 0.0274810791015625, -0.0222015380859375, -0.0330810546875, 0.026947021484375, -0.024017333984375, -0.010711669921875, 0.004306793212890625, -0.00466156005859375, 0.03521728515625, -0.026947021484375, 0.0188751220703125, 0.03363037109375, -0.0232086181640625, -0.0283050537109375, -0.027740478515625, -0.007274627685546875, 0.0020599365234375, -0.0025920867919921875, 0.00583648681640625, 0.025421142578125, -0.00725555419921875, 0.01337432861328125, -0.0021114349365234375, -0.058319091796875, 0.03192138671875, 0.0216522216796875, -0.00804901123046875, -0.03167724609375, -0.050140380859375, -0.06610107421875, 0.026947021484375, 0.0223541259765625, -0.012420654296875, 0.04974365234375, -0.017486572265625, 0.051666259765625, -0.0379638671875, -0.0102996826171875, -0.021240234375, 0.019683837890625, 0.01076507568359375, -0.00592803955078125, -0.001590728759765625, -0.0195770263671875, -0.0218658447265625, -0.001750946044921875, 0.007144927978515625, 0.0215911865234375, 0.0007357597351074219, -0.0071868896484375, -0.047393798828125, 0.0301361083984375, 0.0184173583984375, -0.00611114501953125, 0.037078857421875, -0.0250701904296875, 0.009002685546875, 0.01331329345703125, 0.00897979736328125, -0.01284027099609375, -0.045654296875, 0.0086822509765625, 0.0055694580078125, -0.0445556640625, 0.0273895263671875, 0.0307464599609375, 0.0699462890625, -0.0216827392578125, 0.0272064208984375, 0.03118896484375, 0.041748046875, -0.002902984619140625, 0.0079193115234375, -0.035369873046875, -0.01496124267578125, -0.0338134765625, 0.0272369384765625, -0.02606201171875, 0.0275115966796875, 0.015045166015625, -0.0223846435546875, 0.037261962890625, 0.0007658004760742188, -0.054901123046875, 0.028289794921875, -0.0377197265625, 0.035247802734375, 0.0008816719055175781, 0.01486968994140625, 0.020538330078125, 0.00873565673828125, -0.045623779296875, 0.00908660888671875, -0.02294921875, -0.0044708251953125, -0.03253173828125, 0.0347900390625, 0.00882720947265625, 0.050262451171875, 0.02825927734375, -0.035064697265625, 0.02099609375, -0.006374359130859375, 0.04180908203125, -0.020050048828125, -0.0185394287109375, -0.0178070068359375, 0.032196044921875, 0.0061492919921875, -0.0182342529296875, 0.0203857421875, -0.00925445556640625, 0.0055999755859375, -0.01320648193359375, 0.00441741943359375, -0.0006237030029296875, -0.0222320556640625, -0.00004506111145019531, 0.0308074951171875, 0.0243682861328125, -0.00640106201171875, 0.01143646240234375, 0.026580810546875, 0.06414794921875, 0.01073455810546875, 0.0219268798828125, -0.0170745849609375, 0.03387451171875, 0.006832122802734375, -0.0029850006103515625, -0.0244140625, 0.04486083984375, -0.044677734375, 0.050323486328125, 0.03021240234375, 0.0013799667358398438, 0.0222015380859375, -0.038421630859375, 0.0128021240234375, -0.0076751708984375, -0.00876617431640625, 0.00980377197265625, -0.0186309814453125, -0.0252227783203125, -0.048797607421875, -0.01450347900390625, -0.00556182861328125, -0.0035343170166015625, -0.047698974609375, 0.0308380126953125, 0.01004791259765625, 0.0165557861328125, 0.0379638671875, -0.028350830078125, 0.036865234375, -0.006984710693359375, -0.0195159912109375, 0.023590087890625, 0.020172119140625, -0.01287841796875, 0.03497314453125, -0.04241943359375, -0.01216888427734375, -0.01514434814453125, -0.0142364501953125, -0.0033512115478515625, 0.00991058349609375, -0.035308837890625, -0.008636474609375, 0.005218505859375, 0.0618896484375, 0.029998779296875, -0.0017032623291015625, 0.04656982421875, 0.0211029052734375, -0.01361083984375, -0.0872802734375, 0.0743408203125, -0.050384521484375, 0.034271240234375, 0.08966064453125, 0.02423095703125, 0.02099609375, 0.00765228271484375, 0.0006771087646484375, 0.00208282470703125, 0.015655517578125, -0.005565643310546875, 0.0208740234375, -0.06536865234375, 0.0205078125, 0.0084686279296875, 0.017486572265625, -0.0145263671875, -0.036712646484375, -0.016357421875, 0.0095977783203125, 0.01485443115234375, 0.063232421875, -0.01097869873046875, -0.06982421875, -0.055267333984375, -0.0377197265625, -0.055511474609375, 0.032470703125, -0.0419921875, -0.0007009506225585938, -0.0132904052734375, -0.04083251953125, -0.057342529296875, -0.028717041015625, -0.053314208984375, 0.05181884765625, 0.001956939697265625, 0.014678955078125, 0.0044708251953125, 0.06640625, 0.01079559326171875, -0.03167724609375, 0.002269744873046875, 0.00798797607421875, -0.011322021484375, -0.0216827392578125, -0.0113525390625, 0.01102447509765625, -0.00628662109375, 0.014495849609375, -0.056549072265625, -0.0021076202392578125, -0.0021266937255859375, -0.0149688720703125, 0.0193328857421875, 0.0285491943359375, 0.038818359375, 0.045440673828125, -0.029937744140625, 0.045501708984375, 0.06103515625, -0.0140228271484375, 0.00107574462890625, -0.015533447265625, -0.037109375, -0.0174560546875, 0.0226287841796875, -0.000014007091522216797, -0.0270538330078125, -0.0011110305786132812, 0.05596923828125, 0.042388916015625, 0.0106201171875, 0.0050506591796875, -0.0164337158203125, 0.0266571044921875, 0.037841796875, -0.035186767578125, 0.004543304443359375, -0.01342010498046875, 0.0007271766662597656, -0.0166778564453125, 0.01036834716796875, -0.03375244140625, 0.0239105224609375, -0.049774169921875, 0.0111236572265625, 0.0489501953125, 0.03082275390625, -0.0028743743896484375, -0.00963592529296875, -0.0309295654296875, -0.024810791015625, 0.024078369140625, -0.0037479400634765625, -0.0159759521484375, 0.0293121337890625, -0.002681732177734375, -0.03411865234375, 0.036834716796875, -0.06072998046875, -0.00313568115234375, -0.0506591796875, 0.027801513671875, -0.0244903564453125, -0.01458740234375, -0.04583740234375, 0.00211334228515625, -0.0543212890625, -0.0151214599609375, 0.012298583984375, 0.01055908203125, 0.005535125732421875, -0.003253936767578125, -0.0308837890625, 0.0294036865234375, -0.0009293556213378906, -0.034393310546875, -0.0245361328125, -0.0163421630859375, -0.01163482666015625, 0.033050537109375, -0.0107879638671875, 0.0498046875, -0.00446319580078125, 0.041168212890625, 0.019744873046875, 0.04730224609375, -0.0281829833984375, -0.00408935546875, -0.025238037109375, -0.01166534423828125, 0.004222869873046875, -0.007537841796875, 0.0303497314453125, 0.01470947265625, -0.0194549560546875, 0.01108551025390625, -0.057861328125, 0.01476287841796875, -0.0303497314453125, -0.03570556640625, -0.00885772705078125, -0.0634765625, -0.016937255859375, 0.031524658203125, -0.03411865234375, 0.02435302734375, -0.0584716796875, -0.012908935546875, -0.01187896728515625, -0.043426513671875, -0.0018758773803710938, 0.025909423828125, 0.0291748046875, 0.0218505859375, 0.0059814453125, 0.01157379150390625, -0.0136566162109375, 0.0184326171875, 0.01508331298828125, 0.033203125, 0.00545501708984375, -0.026275634765625, 0.0565185546875, 0.0002620220184326172, 0.0133056640625, -0.013427734375, 0.054779052734375, -0.031524658203125, -0.03668212890625, 0.035247802734375, -0.047607421875, 0.0052337646484375, -0.0138092041015625, 0.00501251220703125, -0.011993408203125, -0.00885009765625, 0.048736572265625, 0.0261688232421875, -0.01430511474609375, -0.049041748046875, -0.01861572265625, 0.00040221214294433594, -0.05023193359375, 0.08447265625, 0.040740966796875, -0.01154327392578125, 0.06317138671875, 0.035858154296875, -0.0047454833984375, 0.0033321380615234375, 0.01959228515625, -0.026702880859375, 0.0221099853515625, 0.0174407958984375, -0.021820068359375, -0.0177459716796875, -0.0117034912109375, 0.083740234375, 0.00510406494140625, -0.052764892578125, 0.032623291015625, -0.0164794921875, 0.0259552001953125, 0.0181884765625, -0.005702972412109375, 0.034149169921875, -0.006195068359375, -0.0164947509765625, 0.0159454345703125, -0.0258941650390625, -0.0305328369140625, -0.042999267578125, 0.0009832382202148438, 0.01739501953125, 0.003284454345703125, 0.0282745361328125, 0.048797607421875, 0.002048492431640625, 0.048004150390625, -0.0260772705078125, 0.0576171875, 0.01163482666015625, 0.0166015625, -0.006351470947265625, 0.01140594482421875, 0.026580810546875, -0.0096588134765625, 0.00832366943359375, -0.004756927490234375, -0.01337432861328125, 0.0231170654296875, 0.006191253662109375, 0.058685302734375, 0.0411376953125, -0.026336669921875, 0.00850677490234375, 0.00196075439453125, 0.0108184814453125, 0.037994384765625, -0.0149383544921875, -0.004871368408203125, -0.002635955810546875, -0.0018358230590820312, -0.004245758056640625, -0.019073486328125, 0.01131439208984375, -0.039215087890625, -0.0104522705078125, 0.0204925537109375, -0.0272979736328125, 0.0004401206970214844, -0.0032806396484375, -0.030029296875, -0.0219573974609375, -0.01192474365234375, -0.041290283203125, -0.0231170654296875, -0.0004372596740722656, 0.0016698837280273438, 0.0275421142578125, 0.0082550048828125, -0.0021457672119140625, -0.01531982421875, -0.0118865966796875, 0.00623321533203125, -0.005451202392578125, 0.05560302734375, -0.0081329345703125, -0.00206756591796875, 0.005252838134765625, -0.05224609375, -0.0299224853515625, -0.01363372802734375, -0.06109619140625, -0.045318603515625, -0.0144195556640625, 0.01486968994140625, 0.0078887939453125, 0.0212249755859375, -0.00421142578125, -0.0154876708984375, 0.02215576171875, 0.0019311904907226562, 0.029327392578125, -0.02459716796875, 0.08087158203125, 0.004764556884765625, 0.041290283203125, 0.019866943359375, 0.058258056640625, -0.004337310791015625, -0.0196990966796875, 0.01421356201171875, -0.033905029296875, -0.041046142578125, -0.022430419921875, -0.0147552490234375, 0.0202484130859375, 0.037353515625, -0.01313018798828125, 0.01174163818359375, -0.01482391357421875, -0.0014619827270507812, -0.0185699462890625, 0.026397705078125, 0.0126953125, 0.0305328369140625, -0.005481719970703125, 0.0380859375, 0.037567138671875, -0.0521240234375, -0.0215301513671875, -0.016510009765625, 0.0207366943359375, -0.0093994140625, -0.0112457275390625, -0.022918701171875, 0.04754638671875, 0.0772705078125, 0.01441192626953125, 0.053436279296875, 0.0318603515625, 0.034820556640625, -0.0108642578125, 0.016143798828125, -0.0121307373046875, -0.01271820068359375, 0.028350830078125, 0.0055999755859375, 0.005985260009765625, 0.0214691162109375, -0.01264190673828125, 0.01446533203125, 0.01276397705078125, 0.0204315185546875, -0.041168212890625, 0.00728607177734375, -0.0032901763916015625, -0.01189422607421875, 0.0389404296875, -0.0089874267578125, -0.002838134765625, -0.0465087890625, 0.0838623046875, -0.0101776123046875, 0.00366973876953125, 0.0283355712890625, -0.033721923828125, -0.003253936767578125, -0.0255584716796875, 0.027496337890625, -0.0109100341796875, -0.03485107421875, -0.01425933837890625, 0.03436279296875, -0.0300140380859375, -0.054107666015625, -0.035919189453125, 0.04010009765625, -0.01873779296875, -0.07635498046875, 0.04107666015625, -0.063232421875, 0.041351318359375, 0.051849365234375, 0.0169677734375, -0.03179931640625, 0.06085205078125, -0.0240478515625, 0.044281005859375, 0.0241241455078125, -0.062408447265625, -0.027862548828125, -0.02984619140625, 0.003437042236328125, 0.059112548828125, -0.01849365234375, 0.028717041015625, 0.0152130126953125, -0.0248870849609375, -0.00392913818359375, 0.0284576416015625, 0.0865478515625, -0.036834716796875, -0.0214691162109375, 0.0281982421875, 0.00959014892578125, -0.005817413330078125, 0.01448822021484375, -0.005916595458984375, -0.0063629150390625, 0.025848388671875, 0.00244140625, -0.017791748046875, 0.00485992431640625, 0.0013561248779296875, -0.07647705078125, 0.065185546875, 0.0293426513671875, 0.05224609375, 0.0034637451171875, -0.006023406982421875, -0.03240966796875, -0.0172119140625, -0.035430908203125, 0.0634765625, 0.01320648193359375, 0.10211181640625, -0.0765380859375, -0.05145263671875, 0.054229736328125, 0.1053466796875, 0.08306884765625, 0.019683837890625, -0.0269317626953125, -0.018341064453125, 0.03216552734375, 0.032012939453125, -0.0200042724609375, 0.036102294921875, 0.003284454345703125, -0.00013017654418945312, 0.05059814453125, -0.00771331787109375, 0.041290283203125, -0.0247955322265625, -0.00339508056640625, 0.0075836181640625, 0.0008916854858398438, 0.01007080078125, -0.01010894775390625, 0.0694580078125, -0.039459228515625, -0.0004935264587402344, 0.04278564453125, -0.042694091796875, -0.01959228515625, 0.0350341796875, 0.06903076171875, -0.08184814453125, -0.039276123046875, -0.03973388671875, 0.059234619140625, 0.049072265625, 0.026092529296875, 0.031280517578125, 0.01776123046875, 0.027984619140625, -0.02301025390625, 0.00556182861328125, -0.02264404296875, -0.008758544921875, 0.0261688232421875, 0.0206146240234375, 0.039459228515625, -0.029754638671875, -0.03497314453125, 0.00218963623046875, 0.0277557373046875, -0.0169525146484375, -0.006259918212890625, 0.0196685791015625, 0.01360321044921875, -0.0024318695068359375, -0.004848480224609375, 0.0207672119140625, 0.044525146484375, 0.0628662109375, -0.032745361328125, -0.0298919677734375, -0.000016450881958007812, 0.021697998046875, -0.0004200935363769531, -0.01456451416015625, 0.02899169921875, -0.026641845703125, -0.03741455078125, -0.027984619140625, 0.0035076141357421875, 0.01727294921875, 0.04254150390625, 0.0286102294921875, 0.06427001953125, -0.00807952880859375, 0.0134735107421875, -0.0132598876953125, 0.0129852294921875, -0.0361328125, -0.005321502685546875, -0.004482269287109375, 0.015167236328125, 0.024139404296875, 0.018707275390625, 0.01320648193359375, 0.01001739501953125, -0.0180511474609375, -0.03485107421875, 0.005107879638671875, 0.0081634521484375, -0.0364990234375, 0.0224456787109375, -0.053680419921875, 0.0111541748046875, 0.002685546875, -0.01421356201171875, 0.00354766845703125, -0.0257568359375, 0.053955078125, 0.006786346435546875, 0.005126953125, 0.0111541748046875, 0.00566864013671875, 0.047882080078125, 0.0224151611328125, 0.0007529258728027344, 0.03277587890625, -0.00612640380859375, 0.02301025390625, -0.0193328857421875, -0.059417724609375, -0.00811767578125, 0.02020263671875, -0.04150390625, 0.0567626953125, -0.01235198974609375, 0.021484375, 0.005733489990234375, -0.0472412109375, 0.0369873046875, 0.0096893310546875, 0.003185272216796875, 0.023193359375, -0.0595703125, -0.048065185546875, -0.04180908203125, 0.045013427734375, 0.0189056396484375, 0.055419921875, -0.00730133056640625, 0.028106689453125, -0.05303955078125, 0.037078857421875, -0.071533203125, -0.04376220703125, 0.0418701171875, -0.0002703666687011719, -0.0175323486328125, 0.011138916015625, -0.03912353515625, 0.060760498046875, 0.022674560546875, 0.0163116455078125, 0.0828857421875, -0.0122833251953125, -0.006793975830078125, -0.050994873046875, 0.00286102294921875, -0.0267791748046875, -0.0137481689453125, -0.0191192626953125, -0.00666046142578125, 0.01285552978515625, -0.0162506103515625, -0.03033447265625, 0.04107666015625, -0.010772705078125, 0.0026988983154296875, -0.01116180419921875, -0.011138916015625, -0.0265350341796875, 0.026763916015625, -0.0263824462890625, 0.039154052734375, 0.0235137939453125, -0.007598876953125, 0.035797119140625, 0.0221099853515625, -0.01885986328125, 0.035491943359375, -0.00241851806640625, -0.01036834716796875, -0.0013484954833984375, 0.053619384765625, 0.007549285888671875, 0.0222930908203125, -0.042724609375, 0.00928497314453125, -0.005054473876953125, 0.0007719993591308594, -0.0162353515625, 0.00913238525390625, -0.033477783203125, 0.00637054443359375, -0.011993408203125, -0.05157470703125, -0.07550048828125, -0.0264129638671875, -0.0009107589721679688, -0.002979278564453125, -0.01003265380859375, -0.0093994140625, 0.00687408447265625, 0.0147857666015625, -0.0258941650390625, 0.039642333984375, 0.0073394775390625, 0.01036834716796875, -0.04217529296875, 0.0164794921875, -0.004642486572265625, -0.016357421875, 0.0285491943359375, 0.044952392578125, 0.06268310546875, -0.04425048828125, -0.017486572265625, 0.06854248046875, 0.042236328125, 0.1051025390625, -0.035186767578125, -0.0017843246459960938, 0.0177459716796875, 0.003997802734375, -0.0229034423828125, -0.05499267578125, 0.003314971923828125, -0.02044677734375, -0.01316070556640625, -0.00920867919921875, 0.02398681640625, 0.054962158203125, -0.022125244140625, -0.059722900390625, 0.068603515625, -0.019378662109375, -0.0222930908203125, -0.046966552734375, -0.01434326171875, -0.0054168701171875, 0.067626953125, 0.0014581680297851562, -0.0224151611328125, -0.03924560546875, 0.0213165283203125, 0.00035190582275390625, -0.019927978515625, 0.033050537109375, -0.002685546875, -0.0217132568359375, 0.0194091796875, 0.034088134765625, -0.039154052734375, -0.033477783203125, 0.0013484954833984375, -0.0109405517578125, 0.007305145263671875, -0.025177001953125, -0.023193359375, 0.01222991943359375, 0.01041412353515625, 0.0028247833251953125, 0.01297760009765625, 0.00628662109375, 0.003566741943359375, 0.006641387939453125, 0.0206146240234375, -0.0038700103759765625, -0.0228271484375, 0.06011962890625, 0.0134429931640625, -0.07220458984375, -0.0115509033203125, 0.016265869140625, -0.04071044921875, -0.0268707275390625, 0.0151519775390625, -0.00281524658203125, -0.0304107666015625, -0.029632568359375, -0.041229248046875, -0.0169525146484375, -0.045654296875, -0.0137176513671875, 0.01143646240234375, -0.0024051666259765625, 0.022247314453125, -0.0192718505859375, -0.016082763671875, 0.0015926361083984375, 0.003070831298828125, -0.0140838623046875, -0.013671875, -0.018768310546875, -0.039306640625, -0.00917816162109375, 0.004817962646484375, -0.0036792755126953125, 0.037384033203125, -0.001636505126953125, -0.0213470458984375, -0.019744873046875, 0.0217132568359375, 0.01166534423828125, 0.038818359375, 0.0028858184814453125, 0.002483367919921875, 0.018524169921875, 0.0009813308715820312, -0.0255889892578125, 0.050994873046875, -0.01422119140625, 0.033477783203125, -0.037078857421875, 0.0007014274597167969, -0.01511383056640625, -0.0038623809814453125, -0.020538330078125, 0.01432037353515625, -0.04840087890625, -0.07183837890625, 0.06488037109375, 0.050628662109375, 0.01334381103515625, 0.033355712890625 ]
2af8d30389506aa825cc2afe6b46f7114de9e2a3
Wordpress Stackexchange Q: plugin_action_links Filter Hook Deprecated? http://adambrown.info/p/wp_hooks/hook/plugin_action_links_%7B$plugin_file%7D Says the hook is deprecated. However, the {$prefix}plugin_action_hook_{$plugin_file} is not. I poked around the wp-admin/includes/class-wp-plugins-list-table.php file for the hook, and found this: $actions = apply_filters( $prefix . "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context ); $prefix is defined a few lines above: $prefix = $screen->is_network ? 'network_admin_' : ''; Since I was able to get my add_filter call to plugin_actions_row_{$plugin_file} to work, I'm assuming the filter hook is still there. Well, sort of: the filter is still available as it's not a network admin screen. Correct? And one could use... add_filter( 'network_admin_plugin_action_links_{$plugin_file}', 'do_something' ) ...to put a link into the network's plugin screen? A: Yes, both should work as expected: "plugin_action_links_{$plugin_file}" "network_admin_plugin_action_links_{$plugin_file}" Note that I'm using " instead of '. PS: The term is deprecated, not depreciated.
Q: plugin_action_links Filter Hook Deprecated? http://adambrown.info/p/wp_hooks/hook/plugin_action_links_%7B$plugin_file%7D Says the hook is deprecated. However, the {$prefix}plugin_action_hook_{$plugin_file} is not. I poked around the wp-admin/includes/class-wp-plugins-list-table.php file for the hook, and found this: $actions = apply_filters( $prefix . "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context ); $prefix is defined a few lines above: $prefix = $screen->is_network ? 'network_admin_' : ''; Since I was able to get my add_filter call to plugin_actions_row_{$plugin_file} to work, I'm assuming the filter hook is still there. Well, sort of: the filter is still available as it's not a network admin screen. Correct? And one could use... add_filter( 'network_admin_plugin_action_links_{$plugin_file}', 'do_something' ) ...to put a link into the network's plugin screen? A: Yes, both should work as expected: "plugin_action_links_{$plugin_file}" "network_admin_plugin_action_links_{$plugin_file}" Note that I'm using " instead of '. PS: The term is deprecated, not depreciated. A: This should be backward compatible and error free "{$prefix}plugin_action_links_{$plugin_file}"
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:410434", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20327" }
[ 0.050384521484375, -0.003551483154296875, 0.00826263427734375, -0.054901123046875, 0.0086669921875, -0.020263671875, 0.0272064208984375, -0.00390625, 0.007518768310546875, 0.004726409912109375, 0.0184783935546875, -0.023162841796875, -0.0290985107421875, -0.04534912109375, -0.005420684814453125, -0.028289794921875, 0.033447265625, -0.02740478515625, 0.00771331787109375, -0.006099700927734375, -0.0063629150390625, 0.0141143798828125, -0.0023479461669921875, 0.0105743408203125, 0.01153564453125, -0.037811279296875, 0.08990478515625, -0.0233612060546875, 0.02484130859375, -0.0032501220703125, -0.002811431884765625, -0.02545166015625, 0.029083251953125, 0.03143310546875, -0.05828857421875, -0.035125732421875, -0.0082244873046875, 0.00547027587890625, -0.034149169921875, 0.029937744140625, 0.0523681640625, -0.014434814453125, 0.01239013671875, 0.0192413330078125, -0.00823211669921875, -0.0340576171875, 0.0567626953125, -0.02508544921875, 0.0011568069458007812, 0.020660400390625, 0.01181793212890625, -0.0218353271484375, 0.0241546630859375, -0.010101318359375, -0.01120758056640625, -0.0095672607421875, -0.07373046875, 0.036865234375, 0.0082550048828125, 0.054473876953125, 0.030609130859375, 0.000019788742065429688, -0.008544921875, -0.032470703125, 0.025909423828125, -0.00910186767578125, 0.042144775390625, 0.022186279296875, 0.0124664306640625, 0.0196380615234375, 0.0004718303680419922, -0.00431060791015625, -0.02423095703125, -0.01230621337890625, -0.01226806640625, -0.0196685791015625, 0.0218353271484375, -0.019317626953125, -0.004058837890625, 0.01904296875, -0.0279541015625, -0.018707275390625, 0.00714874267578125, -0.01515960693359375, -0.022369384765625, -0.005405426025390625, -0.018096923828125, 0.00589752197265625, -0.03424072265625, 0.0008797645568847656, -0.027374267578125, 0.005306243896484375, 0.00550079345703125, -0.01422119140625, -0.052490234375, 0.01183319091796875, 0.0134735107421875, 0.032257080078125, 0.0151824951171875, 0.0030536651611328125, 0.014739990234375, -0.038116455078125, 0.006534576416015625, -0.0270843505859375, -0.0091552734375, 0.054290771484375, 0.01108551025390625, 0.03790283203125, 0.018798828125, 0.01403045654296875, 0.0100250244140625, -0.01520538330078125, -0.0243072509765625, 0.01508331298828125, -0.047515869140625, 0.00783538818359375, -0.0469970703125, -0.0248870849609375, -0.0221710205078125, -0.001598358154296875, -0.0174713134765625, -0.0267791748046875, -0.005931854248046875, 0.03619384765625, -0.021240234375, -0.03131103515625, -0.0279693603515625, 0.02459716796875, -0.005664825439453125, 0.00782012939453125, 0.01520538330078125, 0.0203094482421875, 0.008392333984375, 0.00951385498046875, -0.033782958984375, 0.0111236572265625, 0.019744873046875, 0.006557464599609375, 0.00670623779296875, -0.00971221923828125, 0.0098724365234375, 0.0037326812744140625, 0.00656890869140625, -0.012420654296875, 0.04302978515625, -0.0172576904296875, -0.0042877197265625, 0.04461669921875, 0.043304443359375, 0.00653076171875, 0.053436279296875, -0.036865234375, 0.0179290771484375, 0.0287628173828125, 0.018402099609375, 0.02813720703125, 0.08050537109375, -0.02801513671875, -0.045867919921875, -0.035186767578125, -0.00887298583984375, 0.00125885009765625, 0.001270294189453125, -0.080322265625, -0.059173583984375, -0.0211181640625, -0.02734375, 0.0010099411010742188, 0.019317626953125, 0.0018911361694335938, 0.023040771484375, 0.0104522705078125, 0.023345947265625, 0.01384735107421875, 0.0012369155883789062, 0.003627777099609375, 0.01425933837890625, 0.034515380859375, 0.0244293212890625, 0.03155517578125, -0.00872039794921875, -0.032867431640625, 0.087158203125, -0.029632568359375, -0.04278564453125, 0.0216827392578125, 0.00406646728515625, 0.0267333984375, -0.0017671585083007812, -0.0016050338745117188, 0.059112548828125, 0.01287078857421875, 0.00220489501953125, -0.008697509765625, -0.0197601318359375, -0.0239105224609375, 0.00963592529296875, 0.0183563232421875, -0.032501220703125, 0.01383209228515625, -0.006931304931640625, 0.029266357421875, -0.01384735107421875, 0.0172882080078125, -0.04327392578125, 0.0153045654296875, -0.0218505859375, 0.044525146484375, -0.00543212890625, -0.018218994140625, -0.0024013519287109375, -0.0209503173828125, 0.0177764892578125, -0.047088623046875, -0.00890350341796875, 0.053558349609375, -0.048675537109375, -0.0054168701171875, 0.005428314208984375, 0.0292816162109375, 0.010040283203125, 0.01092529296875, 0.022247314453125, -0.01355743408203125, 0.00914764404296875, -0.02801513671875, -0.002796173095703125, -0.0203857421875, -0.04229736328125, 0.0031375885009765625, -0.032135009765625, 0.04339599609375, 0.0173797607421875, 0.034454345703125, -0.0008306503295898438, 0.00865936279296875, 0.00391387939453125, -0.0526123046875, -0.00485992431640625, 0.0191650390625, 0.054595947265625, 0.0126800537109375, -0.003238677978515625, -0.042205810546875, 0.00022470951080322266, -0.06829833984375, 0.033905029296875, -0.03631591796875, -0.002307891845703125, 0.027191162109375, -0.0038356781005859375, 0.0011758804321289062, 0.013397216796875, 0.007472991943359375, 0.0008425712585449219, 0.00913238525390625, 0.0012102127075195312, -0.042083740234375, -0.0196380615234375, 0.00485992431640625, 0.042327880859375, -0.0037822723388671875, -0.07110595703125, 0.0305633544921875, 0.03662109375, -0.041107177734375, 0.01100921630859375, 0.007572174072265625, -0.0250701904296875, -0.0119171142578125, 0.0513916015625, 0.044647216796875, -0.021881103515625, 0.05126953125, 0.033355712890625, -0.0023021697998046875, -0.0325927734375, -0.00848388671875, -0.021484375, 0.0158843994140625, -0.0257110595703125, 0.006656646728515625, 0.025299072265625, -0.0212860107421875, -0.025146484375, -0.0008816719055175781, 0.0379638671875, -0.032470703125, 0.0670166015625, -0.00012612342834472656, 0.03106689453125, 0.00783538818359375, -0.004596710205078125, 0.05999755859375, -0.0180511474609375, -0.038421630859375, -0.00406646728515625, -0.0280303955078125, 0.03228759765625, -0.039031982421875, 0.0413818359375, 0.06182861328125, -0.0247650146484375, 0.01105499267578125, -0.0171661376953125, -0.0139923095703125, -0.0177764892578125, -0.002826690673828125, -0.0214996337890625, -0.019775390625, -0.0293121337890625, 0.0079345703125, 0.002399444580078125, 0.0037708282470703125, -0.04388427734375, -0.0694580078125, -0.04986572265625, -0.0239715576171875, -0.11553955078125, -0.03411865234375, -0.026275634765625, -0.06109619140625, 0.042266845703125, -0.01412200927734375, -0.01995849609375, -0.0172119140625, 0.0232391357421875, 0.0195465087890625, -0.00991058349609375, -0.01476287841796875, -0.033538818359375, -0.01407623291015625, -0.05303955078125, 0.04254150390625, -0.0095977783203125, 0.012237548828125, 0.00553131103515625, 0.057098388671875, 0.01335906982421875, -0.028045654296875, 0.024810791015625, -0.01470184326171875, -0.0155487060546875, 0.0003178119659423828, 0.0213775634765625, -0.011566162109375, 0.01560211181640625, 0.00962066650390625, 0.0121002197265625, 0.0408935546875, -0.034149169921875, -0.02496337890625, -0.00661468505859375, 0.02166748046875, 0.01209259033203125, 0.0243072509765625, 0.0151214599609375, 0.0179443359375, 0.00844573974609375, -0.0269927978515625, 0.0230560302734375, -0.0008172988891601562, 0.0087432861328125, 0.05859375, -0.0255889892578125, -0.0310516357421875, 0.01238250732421875, 0.040283203125, -0.0253448486328125, -0.013427734375, -0.0008988380432128906, -0.03204345703125, -0.029388427734375, -0.0148773193359375, -0.01303863525390625, 0.0267486572265625, 0.026458740234375, 0.0034027099609375, 0.034393310546875, 0.02752685546875, 0.037933349609375, 0.0386962890625, 0.0197906494140625, 0.0299072265625, -0.021209716796875, 0.050811767578125, -0.035797119140625, -0.01065826416015625, -0.04510498046875, 0.0012111663818359375, -0.040008544921875, 0.0254974365234375, -0.054412841796875, -0.032135009765625, -0.032470703125, 0.03326416015625, 0.00289154052734375, -0.06549072265625, 0.04083251953125, -0.02606201171875, -0.09588623046875, 0.002780914306640625, 0.0126190185546875, -0.058074951171875, 0.0177154541015625, -0.036895751953125, -0.03802490234375, -0.039642333984375, 0.0235137939453125, 0.039154052734375, -0.01020050048828125, 0.049896240234375, -0.05548095703125, 0.0535888671875, -0.034332275390625, 0.0083770751953125, -0.03778076171875, 0.01168060302734375, -0.07952880859375, 0.043914794921875, 0.057342529296875, -0.010040283203125, -0.0216827392578125, -0.00830078125, 0.0330810546875, 0.0017795562744140625, 0.042083740234375, -0.0263214111328125, 0.015716552734375, -0.0035724639892578125, 0.0265350341796875, -0.040863037109375, 0.01207733154296875, -0.0112457275390625, -0.06842041015625, -0.021209716796875, -0.0218353271484375, 0.00249481201171875, 0.030303955078125, -0.047393798828125, -0.044464111328125, -0.033660888671875, -0.0045318603515625, -0.0034160614013671875, 0.0268402099609375, -0.02813720703125, -0.051239013671875, -0.04730224609375, -0.0004639625549316406, -0.054168701171875, -0.01142120361328125, 0.0179443359375, 0.0791015625, 0.038055419921875, 0.0258941650390625, 0.0009417533874511719, 0.013702392578125, 0.032745361328125, -0.02703857421875, 0.061279296875, 0.033203125, -0.0001691579818725586, 0.0338134765625, -0.01470947265625, 0.0234527587890625, -0.01494598388671875, 0.03094482421875, -0.0009212493896484375, 0.006298065185546875, 0.0194549560546875, 0.00745391845703125, -0.01708984375, 0.0192108154296875, -0.00994110107421875, -0.038116455078125, -0.0088653564453125, 0.07159423828125, -0.0254058837890625, 0.061248779296875, -0.0450439453125, -0.0232696533203125, 0.0101318359375, -0.020233154296875, 0.06939697265625, 0.034759521484375, 0.001995086669921875, 0.017059326171875, 0.00580596923828125, 0.01326751708984375, 0.01428985595703125, 0.0117340087890625, -0.04443359375, 0.048370361328125, -0.005847930908203125, -0.032318115234375, 0.010284423828125, -0.0165557861328125, 0.057708740234375, -0.0196685791015625, -0.01568603515625, -0.016754150390625, -0.04949951171875, 0.0014371871948242188, 0.0252227783203125, 0.003376007080078125, 0.004833221435546875, 0.03741455078125, -0.01326751708984375, 0.008148193359375, 0.039306640625, 0.0080718994140625, -0.016754150390625, 0.012420654296875, -0.016204833984375, 0.00392913818359375, 0.0092010498046875, 0.0166778564453125, -0.01654052734375, 0.0169525146484375, -0.0025920867919921875, 0.047149658203125, 0.03985595703125, -0.016998291015625, 0.0071868896484375, 0.0101776123046875, 0.009124755859375, -0.042633056640625, 0.005298614501953125, -0.0048980712890625, 0.01256561279296875, 0.04656982421875, 0.00745391845703125, -0.01299285888671875, -0.02740478515625, -0.0181884765625, -0.0135498046875, -0.042327880859375, 0.0806884765625, 0.00908660888671875, -0.075927734375, -0.0679931640625, -0.005817413330078125, 0.04254150390625, -0.006504058837890625, 0.0075531005859375, -0.0036373138427734375, 0.0263519287109375, -0.0078277587890625, -0.0237579345703125, -0.05194091796875, 0.0027370452880859375, 0.0281829833984375, 0.0203094482421875, -0.01363372802734375, -0.0187225341796875, -0.04095458984375, 0.009796142578125, -0.019683837890625, 0.01100921630859375, 0.056854248046875, -0.032379150390625, 0.0687255859375, -0.0231170654296875, -0.04034423828125, -0.0016326904296875, 0.0095367431640625, 0.04449462890625, 0.047607421875, -0.06024169921875, 0.004177093505859375, 0.00020813941955566406, -0.03125, -0.0364990234375, -0.0027942657470703125, -0.052825927734375, 0.0101318359375, 0.0208892822265625, 0.028289794921875, 0.0030498504638671875, 0.004611968994140625, -0.006473541259765625, -0.0037288665771484375, -0.006565093994140625, 0.03643798828125, 0.0008611679077148438, 0.01439666748046875, -0.00461578369140625, 0.032135009765625, 0.0013179779052734375, 0.00792694091796875, -0.0063629150390625, -0.01203155517578125, 0.01137542724609375, -0.01074981689453125, -0.03179931640625, 0.016082763671875, -0.037811279296875, 0.003231048583984375, 0.0288543701171875, -0.013641357421875, 0.015472412109375, 0.01526641845703125, -0.004940032958984375, -0.0236968994140625, -0.0174560546875, 0.036224365234375, 0.0162353515625, 0.0118255615234375, -0.048736572265625, -0.01030731201171875, -0.00836944580078125, 0.031951904296875, 0.0066680908203125, -0.0447998046875, 0.00846099853515625, 0.022857666015625, -0.0107421875, 0.054473876953125, 0.0640869140625, 0.0033626556396484375, 0.035430908203125, 0.0237884521484375, 0.00860595703125, -0.004238128662109375, 0.033966064453125, 0.047454833984375, -0.0157012939453125, 0.05841064453125, 0.00975799560546875, 0.005390167236328125, 0.043548583984375, -0.03265380859375, 0.01503753662109375, 0.01261138916015625, 0.01271820068359375, -0.06396484375, 0.0155792236328125, -0.01265716552734375, 0.00775909423828125, 0.050994873046875, -0.00440216064453125, 0.0226593017578125, 0.0369873046875, 0.01361083984375, 0.02703857421875, -0.022979736328125, 0.0208587646484375, 0.017730712890625, -0.016998291015625, 0.018218994140625, 0.01297760009765625, -0.004009246826171875, 0.022613525390625, -0.0538330078125, -0.0251312255859375, -0.00424957275390625, -0.01261138916015625, 0.0030460357666015625, -0.006168365478515625, -0.034759521484375, -0.0369873046875, -0.00789642333984375, -0.009002685546875, -0.01320648193359375, 0.0380859375, -0.005336761474609375, 0.034423828125, 0.04638671875, 0.00916290283203125, -0.007556915283203125, 0.012847900390625, 0.00336456298828125, -0.01084136962890625, -0.030487060546875, -0.00980377197265625, 0.0290985107421875, -0.0250701904296875, 0.019378662109375, -0.00022304058074951172, -0.024383544921875, -0.00392913818359375, -0.026458740234375, 0.06439208984375, -0.011993408203125, -0.0311126708984375, 0.0159912109375, -0.057403564453125, -0.00312042236328125, -0.00350189208984375, 0.0010814666748046875, -0.052459716796875, -0.039520263671875, -0.007022857666015625, -0.05426025390625, 0.01108551025390625, -0.00460052490234375, -0.03338623046875, 0.0892333984375, -0.00516510009765625, 0.00489044189453125, -0.0101165771484375, 0.0391845703125, -0.0085906982421875, 0.034454345703125, -0.02783203125, 0.0285186767578125, -0.01479339599609375, 0.038116455078125, 0.0435791015625, 0.035491943359375, 0.03509521484375, -0.044281005859375, -0.007305145263671875, 0.0180816650390625, -0.041534423828125, -0.028228759765625, -0.0380859375, -0.035308837890625, -0.0139007568359375, 0.061798095703125, 0.007740020751953125, -0.0268402099609375, 0.010650634765625, 0.005153656005859375, 0.04498291015625, -0.06298828125, 0.00983428955078125, -0.0022487640380859375, 0.007472991943359375, 0.0106048583984375, -0.01485443115234375, 0.039886474609375, -0.044708251953125, -0.0186004638671875, 0.034149169921875, -0.058441162109375, -0.006866455078125, 0.0240936279296875, -0.01306915283203125, 0.04083251953125, -0.0157470703125, -0.0149383544921875, 0.031463623046875, 0.012664794921875, 0.00798797607421875, 0.0179595947265625, 0.0084686279296875, 0.03985595703125, -0.03912353515625, -0.006305694580078125, 0.004199981689453125, -0.0128173828125, 0.03350830078125, -0.0041656494140625, 0.0104217529296875, -0.030303955078125, 0.032867431640625, 0.021331787109375, 0.0419921875, -0.039459228515625, -0.10235595703125, -0.00782012939453125, -0.0111846923828125, 0.04620361328125, 0.0592041015625, 0.04986572265625, -0.035980224609375, 0.0285491943359375, -0.030975341796875, 0.0006685256958007812, 0.033203125, 0.032012939453125, 0.023895263671875, 0.06573486328125, -0.06878662109375, -0.0280303955078125, -0.047882080078125, 0.020965576171875, 0.02423095703125, 0.057586669921875, -0.0036296844482421875, 0.046722412109375, -0.015869140625, -0.0199127197265625, -0.02252197265625, 0.0352783203125, -0.0489501953125, 0.050018310546875, -0.05010986328125, -0.058685302734375, -0.03070068359375, 0.03387451171875, 0.06378173828125, 0.0242156982421875, 0.026214599609375, -0.00853729248046875, 0.012451171875, 0.03192138671875, 0.0164642333984375, -0.0186920166015625, 0.00946044921875, -0.048858642578125, 0.028167724609375, 0.0054931640625, -0.00962066650390625, 0.009307861328125, -0.04443359375, 0.048858642578125, -0.0233001708984375, 0.01255035400390625, -0.003627777099609375, -0.0574951171875, 0.0025081634521484375, -0.01259613037109375, 0.07537841796875, 0.004398345947265625, -0.06866455078125, -0.0196380615234375, -0.01139068603515625, -0.0218963623046875, 0.027740478515625, 0.042022705078125, -0.004573822021484375, 0.003864288330078125, 0.00873565673828125, -0.0036373138427734375, -0.0173492431640625, 0.006542205810546875, -0.006732940673828125, 0.016571044921875, 0.031494140625, -0.002384185791015625, 0.034210205078125, 0.0257415771484375, -0.006191253662109375, 0.042999267578125, 0.043701171875, 0.1180419921875, -0.06610107421875, 0.02935791015625, 0.025360107421875, -0.006015777587890625, -0.00405120849609375, 0.0406494140625, -0.037750244140625, -0.0223541259765625, -0.0170135498046875, -0.00438690185546875, -0.01531982421875, 0.018768310546875, 0.0606689453125, -0.046356201171875, -0.0323486328125, 0.08331298828125, 0.0030345916748046875, -0.0257110595703125, 0.05291748046875, -0.017608642578125, -0.0704345703125, -0.0347900390625, 0.007541656494140625, 0.01519775390625, 0.06378173828125, 0.02496337890625, 0.0289154052734375, -0.01605224609375, 0.0294647216796875, -0.0113525390625, 0.0260467529296875, -0.032989501953125, 0.0243682861328125, -0.056671142578125, 0.043426513671875, 0.04449462890625, -0.01531219482421875, 0.034820556640625, 0.0215911865234375, 0.004913330078125, 0.0254974365234375, -0.01543426513671875, 0.00734710693359375, 0.00311279296875, 0.044525146484375, -0.028472900390625, 0.01568603515625, -0.0010633468627929688, 0.01551055908203125, 0.00223541259765625, -0.0225982666015625, -0.03314208984375, -0.06658935546875, -0.007236480712890625, 0.0166778564453125, -0.0323486328125, -0.08111572265625, -0.06988525390625, 0.038970947265625, 0.040313720703125, 0.0137176513671875, -0.08660888671875, 0.06341552734375, -0.037933349609375, 0.04730224609375, 0.00676727294921875, 0.021514892578125, -0.0169677734375, 0.0008907318115234375, -0.0178375244140625, -0.021728515625, -0.01531219482421875, 0.05633544921875, 0.013031005859375, 0.02545166015625, 0.0241241455078125, -0.019805908203125, -0.0180816650390625, 0.0435791015625, 0.0236663818359375, 0.081298828125, 0.00902557373046875, -0.03167724609375, -0.01372528076171875, 0.0153656005859375, -0.0152130126953125, 0.010498046875, 0.026641845703125, -0.02972412109375, -0.031036376953125, 0.0196380615234375, -0.035308837890625, -0.02734375, -0.0592041015625, -0.0689697265625, 0.059814453125, 0.007587432861328125, -0.0313720703125, -0.072021484375, 0.0215301513671875, 0.0189971923828125, 0.01690673828125, -0.0182342529296875, -0.0214080810546875, -0.060546875, -0.0003440380096435547, -0.00463104248046875, -0.00008565187454223633, -0.0027027130126953125, -0.02850341796875, -0.03173828125, 0.012298583984375, 0.0333251953125, -0.00176239013671875, 0.0070953369140625, -0.0260162353515625, 0.07080078125, 0.040985107421875, -0.0196380615234375, 0.043853759765625, 0.033538818359375, -0.014923095703125, 0.0096282958984375, -0.025360107421875, 0.017852783203125, 0.00868988037109375, 0.00902557373046875, -0.003993988037109375, -0.0020542144775390625, -0.025634765625, -0.00913238525390625, -0.05633544921875, -0.005840301513671875, -0.0223236083984375, 0.0030841827392578125, -0.06146240234375, -0.0033550262451171875, 0.01348876953125, -0.00669097900390625, 0.007022857666015625, 0.01255035400390625, -0.0113983154296875, -0.0170440673828125, 0.03961181640625, 0.00630950927734375, -0.0343017578125, 0.0227813720703125, 0.0595703125, -0.04052734375, 0.0011768341064453125, 0.0149078369140625, -0.01433563232421875, 0.029815673828125, 0.047760009765625, 0.00852203369140625, -0.01406097412109375, -0.04254150390625, 0.00943756103515625, 0.0106048583984375, 0.041717529296875, -0.0142364501953125, -0.038848876953125, -0.00981903076171875, 0.006259918212890625, -0.01091766357421875, 0.000316619873046875, -0.00377655029296875, 0.0057220458984375, -0.017425537109375, 0.11767578125, -0.048614501953125, 0.032684326171875, -0.020263671875, 0.01678466796875, -0.0046844482421875, 0.0179443359375, 0.0482177734375, -0.00705718994140625, -0.00511932373046875, 0.0259246826171875, -0.004665374755859375, -0.056365966796875, 0.05450439453125, -0.0280609130859375, 0.0089569091796875, 0.033721923828125 ]
52840c708547e73eb1384a6418d1a9a44dea7804
Wordpress Stackexchange Q: Make a really simple gallery structure The default gallery structure of WordPress is really tortuous: <div id="gallery-1" class="gallery..."> <dl class="gallery-item"> <dt class="gallery-icon"> <a title="01Exam" href="bar"> <img title="then my image" src="foo.jpg"> </a> </dt> </dl> </div> Can you help me to output a simple list of images just like: <ul class="gallery-item"> <li> <img title="then my image" src="foo.jpg"> <li> </ul> A: Use your own gallery shortcode handler - something like this in your functions.php: function __my_gallery_shortcode( $attr ) { // render the gallery the way you want it } add_shortcode( 'gallery', '__my_gallery_shortcode' ); To get you started, you could just copy the code from the default handler gallery_shortcode(), and edit as you require.
Q: Make a really simple gallery structure The default gallery structure of WordPress is really tortuous: <div id="gallery-1" class="gallery..."> <dl class="gallery-item"> <dt class="gallery-icon"> <a title="01Exam" href="bar"> <img title="then my image" src="foo.jpg"> </a> </dt> </dl> </div> Can you help me to output a simple list of images just like: <ul class="gallery-item"> <li> <img title="then my image" src="foo.jpg"> <li> </ul> A: Use your own gallery shortcode handler - something like this in your functions.php: function __my_gallery_shortcode( $attr ) { // render the gallery the way you want it } add_shortcode( 'gallery', '__my_gallery_shortcode' ); To get you started, you could just copy the code from the default handler gallery_shortcode(), and edit as you require.
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:410438", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20341" }
[ 0.027313232421875, -0.0140838623046875, -0.00006467103958129883, -0.031768798828125, -0.0023097991943359375, -0.00992584228515625, 0.025543212890625, -0.0036067962646484375, 0.0160064697265625, 0.00348663330078125, -0.0175933837890625, 0.01031494140625, -0.06683349609375, -0.0182037353515625, -0.034637451171875, -0.04132080078125, 0.0311737060546875, -0.0030059814453125, 0.04205322265625, 0.003986358642578125, 0.0127410888671875, 0.0120086669921875, 0.040130615234375, 0.0447998046875, 0.007106781005859375, -0.0213470458984375, 0.1058349609375, -0.0033435821533203125, 0.01336669921875, -0.01026153564453125, 0.027435302734375, -0.031982421875, 0.03009033203125, -0.008331298828125, -0.0009450912475585938, 0.07958984375, 0.0123138427734375, -0.001232147216796875, 0.00853729248046875, 0.0050201416015625, 0.021820068359375, -0.00464630126953125, 0.0389404296875, -0.04290771484375, 0.0010986328125, -0.0007071495056152344, 0.01459503173828125, -0.028228759765625, 0.007137298583984375, -0.0254364013671875, 0.022308349609375, 0.029815673828125, 0.04132080078125, -0.0394287109375, -0.0168914794921875, -0.00829315185546875, 0.0161895751953125, -0.091064453125, 0.0333251953125, -0.0209197998046875, -0.0113983154296875, -0.0399169921875, 0.042205810546875, -0.0141754150390625, 0.006481170654296875, 0.01605224609375, -0.0159454345703125, 0.027801513671875, -0.033172607421875, 0.0016126632690429688, 0.0112762451171875, -0.057647705078125, -0.00809478759765625, -0.0556640625, -0.00769805908203125, 0.0643310546875, -0.03997802734375, -0.01097869873046875, 0.01387786865234375, -0.0081939697265625, 0.0416259765625, -0.006317138671875, 0.0029621124267578125, -0.01396942138671875, 0.0290985107421875, 0.0023326873779296875, 0.00989532470703125, -0.01995849609375, -0.0024509429931640625, -0.016632080078125, -0.01161956787109375, -0.000583648681640625, -0.0021038055419921875, -0.00711822509765625, -0.037322998046875, -0.0225982666015625, -0.0221710205078125, -0.0008530616760253906, 0.01190948486328125, 0.026123046875, 0.0017299652099609375, -0.0261383056640625, 0.0322265625, -0.0277557373046875, -0.0012788772583007812, -0.007541656494140625, 0.0007967948913574219, 0.00862884521484375, 0.0247955322265625, 0.045928955078125, -0.02496337890625, 0.042388916015625, -0.0164031982421875, 0.01849365234375, -0.0109710693359375, 0.00643157958984375, -0.059661865234375, 0.0469970703125, -0.020477294921875, 0.0615234375, -0.00695037841796875, 0.00669097900390625, 0.040069580078125, 0.0174102783203125, 0.010009765625, 0.036834716796875, -0.0140228271484375, -0.0633544921875, 0.034454345703125, -0.04296875, -0.049102783203125, 0.04510498046875, 0.0950927734375, 0.02301025390625, 0.0307464599609375, 0.006694793701171875, 0.045928955078125, -0.03271484375, 0.0002149343490600586, -0.0238800048828125, 0.0260467529296875, 0.0128631591796875, 0.00955963134765625, -0.016845703125, -0.01392364501953125, 0.005718231201171875, 0.0223541259765625, 0.03778076171875, -0.02349853515625, -0.0513916015625, 0.0251922607421875, 0.0260162353515625, 0.01116180419921875, 0.035491943359375, -0.0169677734375, 0.0287933349609375, 0.03350830078125, -0.0036029815673828125, -0.026397705078125, -0.04931640625, -0.006587982177734375, 0.01100921630859375, 0.031341552734375, -0.042999267578125, -0.015289306640625, -0.0255889892578125, -0.03814697265625, -0.01019287109375, 0.0205535888671875, 0.012054443359375, 0.0360107421875, -0.05035400390625, -0.03521728515625, 0.0189056396484375, 0.00537109375, 0.036102294921875, -0.0123443603515625, -0.0186767578125, 0.01084136962890625, 0.0230255126953125, 0.0006494522094726562, -0.02520751953125, -0.0264892578125, 0.035186767578125, -0.05352783203125, 0.0280609130859375, -0.006221771240234375, 0.0516357421875, 0.0200653076171875, 0.0129852294921875, 0.0032253265380859375, 0.006439208984375, -0.0755615234375, 0.0027713775634765625, -0.005672454833984375, 0.010284423828125, 0.016265869140625, 0.00675201416015625, 0.005481719970703125, -0.01419830322265625, -0.02008056640625, 0.0139923095703125, -0.00711822509765625, 0.03948974609375, 0.035675048828125, -0.005218505859375, 0.01470947265625, 0.0097808837890625, -0.05810546875, 0.0025615692138671875, 0.038360595703125, 0.0168914794921875, -0.03515625, -0.020111083984375, 0.01198577880859375, 0.036773681640625, -0.0292816162109375, 0.0206298828125, -0.0271453857421875, 0.00621795654296875, -0.016357421875, -0.057861328125, -0.006244659423828125, 0.04052734375, 0.049285888671875, 0.0062408447265625, -0.045867919921875, -0.035247802734375, -0.02935791015625, 0.0214385986328125, -0.11749267578125, 0.056427001953125, 0.0008287429809570312, -0.0218048095703125, -0.056549072265625, -0.00865936279296875, -0.011474609375, 0.00441741943359375, 0.0088958740234375, 0.04010009765625, 0.03167724609375, 0.049774169921875, -0.0017976760864257812, 0.0005974769592285156, 0.0670166015625, -0.02642822265625, 0.0130615234375, -0.01459503173828125, -0.025360107421875, 0.014007568359375, -0.0126495361328125, 0.0110931396484375, 0.0228424072265625, -0.0281829833984375, -0.01465606689453125, 0.0467529296875, -0.00893402099609375, -0.0149688720703125, 0.01861572265625, 0.02337646484375, -0.0032176971435546875, 0.035552978515625, 0.004383087158203125, 0.0029697418212890625, 0.046783447265625, 0.02301025390625, 0.04376220703125, 0.0279083251953125, -0.03466796875, 0.039794921875, -0.00182342529296875, -0.02923583984375, 0.005382537841796875, 0.021636962890625, -0.006214141845703125, -0.01413726806640625, -0.0250091552734375, 0.01342010498046875, -0.01114654541015625, -0.0097808837890625, -0.0153961181640625, 0.039459228515625, -0.00467681884765625, -0.022125244140625, -0.01422882080078125, -0.044403076171875, 0.00737762451171875, -0.00882720947265625, 0.0069732666015625, -0.01690673828125, 0.0004582405090332031, 0.030731201171875, -0.028717041015625, 0.049407958984375, -0.0009446144104003906, -0.019989013671875, 0.047393798828125, -0.04473876953125, 0.0562744140625, -0.040069580078125, 0.044281005859375, 0.06243896484375, -0.045654296875, 0.0206451416015625, -0.0084991455078125, 0.0209197998046875, -0.0152435302734375, -0.007171630859375, -0.0170745849609375, -0.0040740966796875, -0.028839111328125, 0.01342010498046875, 0.01139068603515625, 0.07806396484375, -0.0357666015625, -0.046966552734375, 0.0125885009765625, 0.0237579345703125, -0.039093017578125, -0.06829833984375, 0.034210205078125, -0.043609619140625, 0.0159149169921875, 0.001865386962890625, -0.0194091796875, -0.0268402099609375, 0.03759765625, -0.0041656494140625, -0.042816162109375, -0.003940582275390625, -0.00384521484375, -0.03704833984375, -0.03411865234375, 0.017059326171875, 0.004711151123046875, 0.023468017578125, 0.0080718994140625, 0.0401611328125, 0.00594329833984375, -0.02978515625, 0.0159454345703125, 0.0023136138916015625, -0.01134490966796875, 0.00974273681640625, 0.0136260986328125, -0.0343017578125, 0.00797271728515625, 0.00379180908203125, -0.00643157958984375, 0.01302337646484375, -0.010986328125, -0.00939178466796875, -0.00969696044921875, -0.0006070137023925781, 0.0142059326171875, 0.017913818359375, -0.004497528076171875, -0.003673553466796875, 0.024200439453125, -0.03277587890625, -0.03143310546875, -0.002002716064453125, -0.056060791015625, -0.043548583984375, 0.02252197265625, 0.00782012939453125, -0.0265655517578125, 0.0018463134765625, -0.037933349609375, 0.00041031837463378906, 0.013702392578125, -0.0416259765625, 0.02581787109375, -0.01407623291015625, -0.0333251953125, -0.0096588134765625, 0.044342041015625, -0.01446533203125, 0.0032711029052734375, 0.018157958984375, 0.0034332275390625, -0.0113525390625, 0.0058135986328125, -0.02130126953125, -0.056671142578125, 0.0419921875, 0.00620269775390625, 0.03564453125, -0.040130615234375, -0.0249786376953125, -0.0081939697265625, 0.07666015625, -0.053009033203125, 0.005237579345703125, 0.02459716796875, 0.00634765625, -0.00823211669921875, -0.0168304443359375, -0.0845947265625, -0.0224456787109375, -0.089111328125, 0.0221405029296875, 0.01393890380859375, -0.04345703125, 0.01241302490234375, -0.0775146484375, -0.043914794921875, -0.05474853515625, 0.025115966796875, 0.031982421875, 0.025115966796875, -0.004756927490234375, 0.013946533203125, -0.01236724853515625, 0.0107879638671875, -0.01165008544921875, -0.10113525390625, -0.04510498046875, 0.01715087890625, 0.10882568359375, -0.005847930908203125, -0.0216217041015625, -0.045135498046875, 0.06427001953125, -0.03173828125, 0.003803253173828125, 0.0140838623046875, 0.038116455078125, 0.00909423828125, 0.0206146240234375, 0.0018682479858398438, -0.0217132568359375, -0.00806427001953125, -0.013275146484375, -0.01129150390625, -0.003635406494140625, -0.03656005859375, -0.025390625, -0.022705078125, -0.0114898681640625, -0.039886474609375, -0.041107177734375, 0.001438140869140625, 0.0271453857421875, -0.005313873291015625, 0.0183258056640625, -0.049285888671875, -0.033782958984375, -0.0238494873046875, -0.009429931640625, -0.0340576171875, 0.03717041015625, 0.0178375244140625, 0.018035888671875, 0.0071868896484375, -0.08099365234375, 0.0285186767578125, 0.037750244140625, 0.0313720703125, 0.031829833984375, 0.0029697418212890625, -0.0194091796875, 0.0232391357421875, 0.02374267578125, 0.00695037841796875, -0.0299835205078125, 0.05804443359375, -0.0017852783203125, -0.0180206298828125, 0.0221710205078125, -0.0182037353515625, -0.017730712890625, 0.018890380859375, -0.01401519775390625, 0.00833892822265625, -0.01153564453125, -0.0019502639770507812, -0.00702667236328125, 0.003986358642578125, 0.0050506591796875, -0.004261016845703125, -0.0235595703125, 0.0885009765625, 0.019256591796875, 0.02606201171875, 0.0013551712036132812, -0.00588226318359375, 0.0352783203125, -0.01325225830078125, 0.049072265625, -0.00716400146484375, 0.02264404296875, 0.0099945068359375, 0.0297393798828125, -0.010650634765625, 0.0308990478515625, -0.0146026611328125, -0.004638671875, 0.040496826171875, -0.01061248779296875, -0.0234222412109375, 0.02655029296875, 0.03778076171875, -0.048065185546875, 0.01222991943359375, 0.032440185546875, 0.025299072265625, 0.006679534912109375, 0.0007343292236328125, -0.03564453125, 0.024688720703125, -0.0277557373046875, -0.0126190185546875, -0.008575439453125, -0.0137939453125, 0.0142059326171875, 0.003498077392578125, -0.0281524658203125, 0.0029582977294921875, 0.00872039794921875, -0.0083160400390625, 0.033477783203125, 0.028564453125, 0.0222015380859375, -0.00981903076171875, -0.01343536376953125, 0.034149169921875, 0.0287017822265625, -0.039764404296875, -0.0113372802734375, 0.055816650390625, 0.04608154296875, -0.0029315948486328125, -0.020355224609375, -0.03924560546875, -0.0224151611328125, -0.0006647109985351562, -0.032135009765625, -0.06866455078125, -0.040374755859375, -0.01031494140625, 0.0321044921875, 0.04864501953125, -0.0228424072265625, -0.0275115966796875, 0.0061798095703125, -0.019256591796875, 0.023162841796875, 0.006511688232421875, -0.025299072265625, 0.0246734619140625, 0.0168914794921875, 0.010833740234375, -0.0005669593811035156, -0.0018939971923828125, -0.030670166015625, 0.0019140243530273438, -0.017486572265625, -0.0115814208984375, 0.052581787109375, -0.0469970703125, -0.00809478759765625, -0.052337646484375, 0.05303955078125, -0.10980224609375, 0.016815185546875, 0.0241546630859375, 0.0213470458984375, -0.042022705078125, -0.027557373046875, -0.0196075439453125, -0.006870269775390625, 0.01436614990234375, 0.0028400421142578125, -0.025543212890625, -0.0051727294921875, -0.030792236328125, 0.006732940673828125, 0.0202789306640625, 0.045684814453125, -0.028564453125, 0.0159454345703125, -0.00927734375, 0.0038700103759765625, 0.002452850341796875, 0.01727294921875, -0.0140228271484375, 0.04010009765625, -0.00951385498046875, -0.010589599609375, -0.02978515625, -0.0083160400390625, 0.025115966796875, -0.040771484375, -0.059722900390625, -0.0152740478515625, -0.0294189453125, 0.04290771484375, 0.045623779296875, -0.0105133056640625, 0.00916290283203125, 0.0015974044799804688, -0.01508331298828125, 0.0025501251220703125, 0.0250091552734375, -0.0043182373046875, 0.01441192626953125, 0.0253448486328125, 0.0255126953125, 0.06353759765625, -0.045806884765625, -0.0552978515625, 0.0243682861328125, 0.0013704299926757812, 0.033294677734375, 0.01184844970703125, -0.01806640625, 0.04083251953125, 0.03338623046875, -0.0220489501953125, 0.0304107666015625, 0.013824462890625, -0.005435943603515625, -0.01068878173828125, 0.03277587890625, 0.03106689453125, -0.006622314453125, 0.09014892578125, 0.002552032470703125, -0.04327392578125, 0.034881591796875, -0.059356689453125, 0.0277557373046875, 0.01456451416015625, 0.066650390625, -0.004352569580078125, 0.0202789306640625, -0.008056640625, -0.045257568359375, 0.052093505859375, -0.0145416259765625, -0.014984130859375, -0.03826904296875, 0.050201416015625, 0.0107269287109375, -0.00966644287109375, 0.004093170166015625, 0.006992340087890625, -0.0074005126953125, 0.0272674560546875, 0.033294677734375, 0.018280029296875, 0.0004901885986328125, -0.058013916015625, -0.004604339599609375, 0.0030803680419921875, -0.01232147216796875, 0.030120849609375, -0.0152435302734375, -0.0173797607421875, -0.03338623046875, 0.00897979736328125, 0.01471710205078125, -0.014312744140625, 0.0011796951293945312, -0.007720947265625, -0.00551605224609375, 0.042877197265625, -0.041290283203125, 0.0234222412109375, 0.020172119140625, -0.0343017578125, 0.032928466796875, -0.022918701171875, 0.00229644775390625, -0.0036602020263671875, -0.06646728515625, 0.006591796875, -0.039215087890625, 0.01238250732421875, -0.0248870849609375, -0.057464599609375, 0.1055908203125, -0.0582275390625, -0.00499725341796875, -0.004131317138671875, 0.031402587890625, -0.006134033203125, 0.00888824462890625, 0.01052093505859375, -0.04534912109375, -0.019317626953125, 0.00189208984375, -0.04803466796875, 0.0025844573974609375, -0.0219268798828125, -0.0662841796875, 0.05718994140625, -0.0164337158203125, 0.0217132568359375, 0.02362060546875, 0.0160064697265625, -0.034149169921875, -0.0239410400390625, -0.0160675048828125, 0.01358795166015625, -0.001316070556640625, 0.0144195556640625, 0.0089569091796875, 0.0044708251953125, 0.01446533203125, 0.0173187255859375, 0.039520263671875, 0.01593017578125, -0.03460693359375, -0.0021228790283203125, 0.044525146484375, 0.002063751220703125, -0.0268402099609375, 0.060211181640625, -0.05694580078125, 0.00884246826171875, -0.010772705078125, -0.033233642578125, -0.00728607177734375, 0.0364990234375, -0.07904052734375, -0.004180908203125, 0.0088043212890625, 0.01413726806640625, 0.01519775390625, 0.00015294551849365234, -0.039642333984375, 0.002231597900390625, 0.036773681640625, -0.0138397216796875, 0.01410675048828125, 0.03570556640625, 0.037628173828125, -0.014678955078125, -0.005035400390625, -0.025421142578125, 0.053253173828125, -0.00830078125, 0.0232391357421875, 0.035888671875, 0.015838623046875, 0.0220794677734375, 0.0221099853515625, 0.0252685546875, 0.0241241455078125, -0.01165008544921875, 0.02825927734375, 0.00785064697265625, 0.00156402587890625, -0.07501220703125, -0.031219482421875, 0.09820556640625, 0.072998046875, -0.031463623046875, -0.0048980712890625, 0.007625579833984375, 0.006072998046875, 0.00792694091796875, -0.02288818359375, 0.0254364013671875, -0.01165008544921875, -0.004505157470703125, -0.03668212890625, -0.034881591796875, 0.013763427734375, 0.03265380859375, -0.0157623291015625, -0.03033447265625, 0.015655517578125, -0.03704833984375, -0.0169219970703125, 0.0272979736328125, 0.006153106689453125, 0.006805419921875, -0.0323486328125, 0.04388427734375, 0.0250396728515625, 0.0135498046875, -0.0099029541015625, 0.0183258056640625, -0.023101806640625, 0.01111602783203125, -0.038787841796875, -0.042816162109375, -0.01357269287109375, 0.04730224609375, 0.00798797607421875, 0.036895751953125, 0.029205322265625, 0.00223541259765625, -0.0263824462890625, 0.0000730752944946289, 0.01702880859375, -0.03057861328125, 0.01357269287109375, -0.01462554931640625, 0.01904296875, 0.03411865234375, -0.00982666015625, -0.00473785400390625, -0.01180267333984375, 0.061370849609375, -0.07061767578125, 0.04156494140625, -0.0233917236328125, -0.0255889892578125, 0.024658203125, -0.0494384765625, 0.043670654296875, -0.0498046875, -0.09295654296875, -0.0207061767578125, -0.02813720703125, -0.0936279296875, 0.079833984375, 0.067138671875, -0.006191253662109375, -0.043365478515625, 0.0050048828125, -0.0094757080078125, -0.0282745361328125, 0.0171966552734375, 0.01702880859375, 0.015533447265625, 0.033447265625, 0.0078125, -0.045166015625, -0.0341796875, -0.0391845703125, 0.045196533203125, 0.0404052734375, 0.04730224609375, -0.01544952392578125, 0.049224853515625, -0.01751708984375, -0.016754150390625, -0.001499176025390625, -0.00811767578125, 0.026947021484375, -0.006809234619140625, -0.0252685546875, -0.02032470703125, 0.041595458984375, -0.010040283203125, 0.032623291015625, -0.06732177734375, -0.035308837890625, -0.019012451171875, 0.0355224609375, -0.004314422607421875, 0.059417724609375, -0.016448974609375, -0.03887939453125, -0.0579833984375, -0.00433349609375, 0.0256805419921875, 0.0213165283203125, -0.025726318359375, 0.008209228515625, 0.02752685546875, -0.036376953125, 0.022735595703125, -0.0362548828125, 0.0338134765625, 0.033843994140625, 0.06121826171875, -0.036224365234375, 0.00815582275390625, -0.01308441162109375, -0.0078582763671875, 0.0254364013671875, 0.01049041748046875, 0.00006186962127685547, -0.054779052734375, 0.01531982421875, 0.032135009765625, 0.02691650390625, -0.04949951171875, -0.00048470497131347656, 0.039764404296875, -0.027191162109375, 0.0175018310546875, 0.0157470703125, -0.00749969482421875, -0.05615234375, -0.0119781494140625, 0.004375457763671875, -0.0188751220703125, -0.0095062255859375, -0.0218963623046875, 0.00797271728515625, 0.02099609375, 0.03350830078125, -0.056915283203125, 0.03436279296875, 0.030181884765625, 0.0019121170043945312, 0.02789306640625, 0.0199737548828125, 0.00669097900390625, 0.018768310546875, -0.05120849609375, -0.037384033203125, -0.01265716552734375, 0.0191497802734375, -0.0174407958984375, 0.02789306640625, 0.018951416015625, -0.0228118896484375, 0.024017333984375, 0.035125732421875, 0.01385498046875, 0.09429931640625, -0.006534576416015625, -0.0528564453125, -0.012786865234375, -0.00676727294921875, 0.0178375244140625, 0.0011796951293945312, 0.00519561767578125, -0.05126953125, -0.0097503662109375, 0.0233154296875, -0.05096435546875, -0.01009368896484375, -0.0625, -0.08197021484375, 0.07171630859375, -0.0014934539794921875, -0.041534423828125, -0.0210113525390625, 0.01007843017578125, -0.0097808837890625, 0.031951904296875, -0.0037136077880859375, -0.0089263916015625, 0.01324462890625, 0.0168609619140625, 0.0161590576171875, 0.0345458984375, 0.0153961181640625, 0.00048160552978515625, 0.012847900390625, 0.0234222412109375, 0.00952911376953125, 0.005832672119140625, 0.031341552734375, -0.056060791015625, 0.06280517578125, 0.0177764892578125, -0.06622314453125, -0.00579833984375, -0.00518798828125, 0.0271148681640625, 0.01503753662109375, -0.0616455078125, -0.023040771484375, -0.044525146484375, 0.0179290771484375, -0.004375457763671875, 0.002826690673828125, 0.004238128662109375, 0.0114288330078125, 0.036041259765625, -0.0232086181640625, -0.02960205078125, 0.031036376953125, -0.06817626953125, -0.05108642578125, -0.017730712890625, 0.01763916015625, -0.038604736328125, 0.003787994384765625, -0.0163116455078125, -0.03729248046875, -0.032623291015625, -0.017822265625, -0.019287109375, 0.01282501220703125, 0.088134765625, -0.03851318359375, 0.031158447265625, -0.01025390625, 0.008636474609375, 0.054351806640625, -0.0292816162109375, -0.0206146240234375, 0.04327392578125, -0.0343017578125, -0.0019741058349609375, 0.01007080078125, -0.0178680419921875, -0.0009794235229492188, 0.03326416015625, -0.026611328125, 0.01324462890625, 0.0190277099609375, 0.012908935546875, -0.0144805908203125, 0.023895263671875, 0.03558349609375, 0.01470947265625, -0.0010700225830078125, -0.02947998046875, -0.01111602783203125, 0.037811279296875, -0.03173828125, -0.0143890380859375, 0.0162353515625, -0.053070068359375, 0.016204833984375, -0.00862884521484375, 0.0264739990234375, -0.030609130859375, -0.0017976760864257812, -0.025970458984375, 0.0128936767578125, 0.005786895751953125 ]
00006a5b891ff4c7da4095b9634d355265f5c68a
Wordpress Stackexchange Q: Post visibility on the basis of roles How to make a post visible to only: * *The post author, irrespective of its user role. *All users from a specific user role. Other then these, no one should be able to see the post. How should I approach this. Note that I have only three user roles in WP. Admin, and 2 other custom roles. A: Give your custom roles the capability to "read_member_posts" or whatever. Then you could apply a filter to the_content() add_filter( 'the_content', 'my_wpse20347_filter' ); function my_wpse20347_filter( $content ) { global $post; if( author_can( $post->ID, 'edit_posts' ) || current_user_can( 'read_member_posts' ) ) { return $content; } else { // Everyone else sees this in place of the content. return '<p>Only members may view this post</p>'; } }
Q: Post visibility on the basis of roles How to make a post visible to only: * *The post author, irrespective of its user role. *All users from a specific user role. Other then these, no one should be able to see the post. How should I approach this. Note that I have only three user roles in WP. Admin, and 2 other custom roles. A: Give your custom roles the capability to "read_member_posts" or whatever. Then you could apply a filter to the_content() add_filter( 'the_content', 'my_wpse20347_filter' ); function my_wpse20347_filter( $content ) { global $post; if( author_can( $post->ID, 'edit_posts' ) || current_user_can( 'read_member_posts' ) ) { return $content; } else { // Everyone else sees this in place of the content. return '<p>Only members may view this post</p>'; } } A: We already got a plugin in the WPSE Plugin Repository written by BAinternet, that does exactly that.
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:410441", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20347" }
[ 0.06640625, -0.01532745361328125, 0.02301025390625, -0.02252197265625, 0.00592803955078125, -0.0325927734375, 0.03326416015625, -0.040374755859375, 0.0226287841796875, 0.0181427001953125, -0.035491943359375, -0.036102294921875, -0.027008056640625, -0.01174163818359375, -0.04833984375, -0.04534912109375, 0.01312255859375, 0.019378662109375, 0.05670166015625, -0.0137176513671875, 0.0207061767578125, -0.0245361328125, 0.059417724609375, 0.0007796287536621094, 0.004909515380859375, -0.0088653564453125, 0.0771484375, -0.037200927734375, 0.019775390625, -0.021484375, 0.029876708984375, -0.01308441162109375, -0.01641845703125, 0.020172119140625, 0.032257080078125, -0.00896453857421875, -0.0241851806640625, 0.0191497802734375, 0.03173828125, -0.0293426513671875, -0.0112152099609375, 0.0215606689453125, -0.0235443115234375, 0.013519287109375, -0.028564453125, -0.03887939453125, -0.0224151611328125, -0.0255584716796875, 0.01378631591796875, 0.023529052734375, 0.0188751220703125, 0.05548095703125, 0.0161285400390625, 0.0010509490966796875, -0.0008573532104492188, 0.006244659423828125, -0.0225830078125, 0.03240966796875, 0.06121826171875, -0.051055908203125, -0.057769775390625, -0.05670166015625, 0.04693603515625, -0.001422882080078125, 0.00467681884765625, 0.002277374267578125, 0.0340576171875, 0.016693115234375, -0.0574951171875, -0.006103515625, 0.02655029296875, -0.0305328369140625, 0.007198333740234375, -0.037689208984375, -0.03887939453125, -0.0024204254150390625, 0.00783538818359375, -0.030670166015625, 0.017791748046875, -0.0187225341796875, -0.004711151123046875, -0.00383758544921875, 0.0052642822265625, 0.002567291259765625, -0.0164794921875, 0.012420654296875, -0.0328369140625, -0.0009365081787109375, 0.00690460205078125, -0.0150146484375, -0.00885009765625, 0.0166778564453125, -0.02838134765625, 0.038421630859375, -0.0105438232421875, -0.0208740234375, 0.050140380859375, 0.0718994140625, -0.0173492431640625, -0.0168304443359375, -0.01441192626953125, -0.0288543701171875, -0.0284271240234375, -0.00771331787109375, -0.002178192138671875, 0.038970947265625, -0.0086517333984375, 0.0282745361328125, 0.022613525390625, 0.022247314453125, 0.02886962890625, -0.0328369140625, -0.0225372314453125, 0.0091705322265625, -0.037872314453125, 0.0004315376281738281, -0.04547119140625, -0.012115478515625, -0.0199432373046875, 0.02728271484375, -0.01885986328125, 0.0028476715087890625, -0.00463104248046875, -0.049591064453125, 0.032196044921875, -0.00775146484375, -0.033172607421875, 0.0081329345703125, 0.02398681640625, -0.005035400390625, -0.049285888671875, 0.0090179443359375, 0.07012939453125, 0.0170440673828125, 0.0213470458984375, -0.020233154296875, -0.0280609130859375, -0.03582763671875, -0.025543212890625, 0.0121917724609375, -0.004299163818359375, -0.0034942626953125, 0.047698974609375, -0.035675048828125, -0.007183074951171875, 0.044219970703125, 0.0186309814453125, 0.00334930419921875, -0.01873779296875, -0.04534912109375, -0.047149658203125, 0.01084136962890625, 0.006374359130859375, 0.001689910888671875, 0.04718017578125, 0.0003981590270996094, 0.06927490234375, -0.0286865234375, -0.0128631591796875, -0.0184783935546875, 0.06353759765625, 0.02996826171875, 0.03570556640625, 0.0242156982421875, -0.0050201416015625, -0.049102783203125, -0.069091796875, -0.01085662841796875, 0.0219573974609375, -0.05316162109375, 0.047760009765625, -0.036651611328125, 0.010498046875, 0.004268646240234375, 0.00620269775390625, 0.045928955078125, -0.026641845703125, 0.0250091552734375, 0.01337432861328125, -0.0177001953125, -0.00591278076171875, -0.036590576171875, 0.0309295654296875, 0.0159454345703125, -0.032073974609375, 0.01500701904296875, 0.0038661956787109375, 0.026153564453125, 0.0018358230590820312, 0.0149078369140625, 0.0257720947265625, 0.031890869140625, 0.0154571533203125, -0.02679443359375, -0.03472900390625, -0.03936767578125, 0.00434112548828125, -0.002826690673828125, -0.019012451171875, 0.05767822265625, 0.037811279296875, 0.002460479736328125, 0.00937652587890625, 0.0023345947265625, 0.007099151611328125, -0.000152587890625, -0.0038299560546875, 0.001949310302734375, -0.0027599334716796875, 0.01433563232421875, 0.0282440185546875, 0.039764404296875, -0.0256805419921875, -0.0709228515625, -0.04034423828125, 0.0205535888671875, -0.01442718505859375, 0.0136871337890625, -0.01220703125, 0.0121002197265625, 0.00955963134765625, -0.045623779296875, -0.0181732177734375, -0.0008807182312011719, 0.042633056640625, -0.00421905517578125, 0.008514404296875, -0.007137298583984375, 0.08880615234375, 0.01192474365234375, 0.0303802490234375, -0.0254058837890625, 0.03173828125, -0.004962921142578125, -0.0294647216796875, 0.0047607421875, 0.00971221923828125, -0.057952880859375, -0.006793975830078125, 0.051910400390625, 0.01824951171875, 0.0228729248046875, -0.018157958984375, 0.027923583984375, 0.06689453125, -0.033660888671875, -0.01641845703125, 0.015350341796875, 0.0092315673828125, 0.033172607421875, -0.0181121826171875, 0.00899505615234375, 0.0258636474609375, -0.0266571044921875, -0.004489898681640625, 0.048553466796875, 0.0199432373046875, 0.05303955078125, -0.024932861328125, -0.03717041015625, 0.019866943359375, -0.0118560791015625, -0.0276336669921875, -0.01497650146484375, -0.0185546875, -0.00691986083984375, 0.0072479248046875, 0.005584716796875, -0.032379150390625, -0.01325225830078125, 0.030548095703125, 0.041351318359375, 0.007167816162109375, 0.0115509033203125, -0.0003218650817871094, -0.033721923828125, 0.0024929046630859375, -0.0215606689453125, 0.01812744140625, -0.01322174072265625, -0.00959014892578125, 0.00904083251953125, -0.00249481201171875, -0.0044708251953125, 0.020294189453125, 0.0042724609375, 0.0244598388671875, 0.0098419189453125, 0.00226593017578125, -0.001995086669921875, 0.01084136962890625, 0.0286407470703125, 0.01354217529296875, 0.028900146484375, 0.03631591796875, -0.004756927490234375, -0.053466796875, -0.0965576171875, 0.0760498046875, -0.0655517578125, 0.0047149658203125, 0.0927734375, 0.032379150390625, -0.003223419189453125, -0.003978729248046875, 0.0076751708984375, -0.03350830078125, 0.03875732421875, 0.0003421306610107422, -0.038238525390625, -0.0194854736328125, 0.01116180419921875, 0.01324462890625, -0.00580596923828125, 0.007720947265625, -0.01456451416015625, -0.0111541748046875, 0.0279998779296875, -0.041107177734375, 0.0173492431640625, 0.00470733642578125, -0.0889892578125, -0.0019626617431640625, -0.0172576904296875, -0.052215576171875, -0.0169677734375, 0.022216796875, 0.00778961181640625, -0.066650390625, 0.0268402099609375, -0.0157623291015625, 0.003467559814453125, -0.0142059326171875, 0.04901123046875, -0.019073486328125, 0.0255279541015625, 0.0080413818359375, 0.06048583984375, 0.01476287841796875, -0.051483154296875, 0.004375457763671875, 0.0137481689453125, -0.043731689453125, -0.015777587890625, -0.028350830078125, 0.0335693359375, -0.0283203125, 0.0230560302734375, -0.02276611328125, -0.021514892578125, -0.0016918182373046875, -0.032501220703125, 0.0211334228515625, -0.01190185546875, 0.037322998046875, 0.02435302734375, -0.04730224609375, 0.02734375, 0.05194091796875, -0.03045654296875, 0.0138397216796875, -0.04290771484375, -0.040313720703125, -0.046844482421875, 0.002288818359375, 0.0150146484375, -0.039764404296875, 0.0010089874267578125, 0.034210205078125, 0.0267181396484375, -0.0210723876953125, 0.009063720703125, -0.0188140869140625, 0.042022705078125, 0.05889892578125, 0.0162353515625, 0.0014429092407226562, -0.0173492431640625, 0.011474609375, -0.01386260986328125, -0.00795745849609375, -0.0447998046875, 0.035308837890625, -0.051727294921875, -0.0291595458984375, 0.042816162109375, 0.0050811767578125, 0.020843505859375, -0.0172119140625, -0.02923583984375, -0.00592803955078125, 0.0679931640625, -0.01081085205078125, -0.00426483154296875, -0.011383056640625, -0.005863189697265625, -0.0238800048828125, 0.010406494140625, -0.04290771484375, 0.007366180419921875, -0.07354736328125, 0.01432037353515625, -0.0191497802734375, -0.0184478759765625, -0.034576416015625, 0.0015239715576171875, -0.0555419921875, -0.02459716796875, 0.036102294921875, -0.019683837890625, 0.015411376953125, 0.0020904541015625, 0.002811431884765625, -0.02252197265625, -0.03680419921875, -0.0122222900390625, -0.07568359375, -0.00772857666015625, -0.007244110107421875, 0.048187255859375, -0.0089569091796875, 0.03851318359375, -0.01428985595703125, 0.044342041015625, 0.0183258056640625, 0.045684814453125, -0.027374267578125, -0.017669677734375, 0.0017070770263671875, 0.005779266357421875, 0.005001068115234375, 0.0040130615234375, 0.0130462646484375, -0.0269012451171875, -0.035888671875, -0.033935546875, -0.053863525390625, -0.007762908935546875, -0.0230865478515625, -0.0180511474609375, -0.0487060546875, -0.055694580078125, -0.0255126953125, 0.0213775634765625, -0.0309295654296875, 0.0156097412109375, -0.06591796875, -0.057373046875, 0.01071929931640625, -0.00556182861328125, -0.0179443359375, 0.0254974365234375, 0.043701171875, 0.017120361328125, -0.007747650146484375, -0.053253173828125, -0.0051727294921875, 0.0181427001953125, 0.00737762451171875, 0.040863037109375, 0.030914306640625, -0.01519012451171875, 0.02593994140625, 0.0102691650390625, -0.0198974609375, 0.01239776611328125, 0.060455322265625, -0.0013284683227539062, -0.03955078125, 0.0237884521484375, -0.0280914306640625, -0.01367950439453125, -0.027099609375, 0.00955963134765625, -0.0223846435546875, 0.025238037109375, 0.051910400390625, 0.002643585205078125, 0.0221405029296875, -0.0288238525390625, 0.006439208984375, -0.0185394287109375, 0.016693115234375, 0.03460693359375, 0.031982421875, 0.0006985664367675781, -0.000023186206817626953, 0.0264739990234375, -0.00958251953125, -0.0104522705078125, 0.01690673828125, 0.00494384765625, 0.0284576416015625, 0.007476806640625, -0.00981903076171875, -0.045745849609375, -0.01032257080078125, 0.049652099609375, 0.00490570068359375, -0.06768798828125, 0.037109375, -0.00872802734375, 0.0382080078125, 0.0313720703125, -0.0247955322265625, 0.0169219970703125, 0.0211029052734375, -0.005786895751953125, 0.0005469322204589844, -0.0025424957275390625, 0.00482177734375, -0.0282745361328125, 0.011016845703125, 0.0232086181640625, -0.0017833709716796875, 0.01195526123046875, 0.07977294921875, -0.0015192031860351562, 0.0435791015625, -0.039642333984375, 0.060516357421875, 0.04193115234375, -0.005229949951171875, -0.0068359375, 0.01995849609375, 0.01067352294921875, -0.032196044921875, 0.01363372802734375, -0.0223388671875, -0.0088043212890625, 0.0487060546875, 0.019073486328125, 0.01971435546875, 0.0089874267578125, -0.0136871337890625, 0.01445770263671875, -0.01268768310546875, 0.022430419921875, 0.0031375885009765625, -0.0723876953125, -0.0245208740234375, 0.0428466796875, 0.032135009765625, -0.0262603759765625, 0.0016021728515625, -0.004169464111328125, 0.00453948974609375, 0.01450347900390625, -0.007274627685546875, -0.020965576171875, 0.0011234283447265625, 0.012847900390625, -0.02099609375, -0.0231170654296875, 0.01345062255859375, -0.004016876220703125, 0.00936126708984375, -0.0180511474609375, -0.0165863037109375, 0.0207366943359375, -0.0037670135498046875, -0.00582122802734375, -0.0213165283203125, 0.006175994873046875, 0.04559326171875, -0.0018301010131835938, 0.060302734375, -0.0018682479858398438, -0.08062744140625, 0.0087127685546875, -0.0762939453125, 0.00012755393981933594, -0.0345458984375, -0.055694580078125, -0.040496826171875, 0.0017213821411132812, 0.039276123046875, -0.00600433349609375, 0.01412200927734375, -0.07232666015625, -0.025177001953125, 0.03155517578125, 0.055755615234375, 0.0178375244140625, -0.015228271484375, 0.098388671875, -0.002971649169921875, 0.062347412109375, 0.01515960693359375, 0.035491943359375, -0.03350830078125, -0.01242828369140625, 0.0031871795654296875, -0.044891357421875, -0.0205078125, 0.012786865234375, -0.021087646484375, -0.01611328125, -0.004596710205078125, -0.004871368408203125, 0.01641845703125, -0.01165008544921875, -0.00399017333984375, -0.022613525390625, -0.018829345703125, -0.0220794677734375, 0.0294952392578125, -0.0298919677734375, 0.027587890625, 0.04034423828125, -0.007617950439453125, -0.038360595703125, 0.001476287841796875, 0.0277557373046875, 0.019683837890625, -0.01250457763671875, -0.01531982421875, 0.0056304931640625, 0.07855224609375, 0.01361083984375, 0.061553955078125, 0.0285797119140625, 0.035675048828125, 0.052398681640625, -0.0157928466796875, -0.0189971923828125, 0.0194091796875, 0.0033092498779296875, -0.01381683349609375, 0.0181427001953125, 0.00231170654296875, -0.002353668212890625, 0.00762939453125, 0.056396484375, 0.04302978515625, -0.08282470703125, 0.004520416259765625, 0.0006866455078125, -0.01428985595703125, 0.018585205078125, 0.012542724609375, -0.004261016845703125, -0.0097503662109375, 0.048828125, -0.036895751953125, 0.0042724609375, 0.0297088623046875, -0.022369384765625, -0.0014390945434570312, -0.013763427734375, 0.027923583984375, 0.002147674560546875, -0.0084991455078125, 0.007503509521484375, 0.0003044605255126953, -0.0033473968505859375, -0.0284881591796875, -0.0183868408203125, 0.021759033203125, -0.02557373046875, -0.10748291015625, -0.009918212890625, -0.0124664306640625, 0.004634857177734375, 0.03179931640625, 0.008392333984375, -0.036865234375, 0.03936767578125, -0.037750244140625, 0.048309326171875, 0.0196533203125, -0.054534912109375, -0.0310516357421875, -0.0491943359375, -0.01503753662109375, 0.08258056640625, -0.04241943359375, 0.032806396484375, 0.0190582275390625, -0.005107879638671875, -0.019500732421875, -0.037261962890625, 0.1148681640625, -0.0133209228515625, -0.035858154296875, -0.0028705596923828125, 0.0021915435791015625, -0.01393890380859375, 0.0089569091796875, 0.0140380859375, -0.007434844970703125, 0.00801849365234375, -0.002834320068359375, -0.0249786376953125, -0.00225830078125, -0.0017194747924804688, -0.06884765625, 0.07867431640625, -0.004230499267578125, 0.056365966796875, 0.021392822265625, 0.00653839111328125, -0.0225677490234375, -0.021331787109375, -0.0589599609375, 0.07403564453125, 0.01349639892578125, 0.08636474609375, -0.0460205078125, -0.0052490234375, 0.04425048828125, 0.02410888671875, 0.03338623046875, 0.027313232421875, -0.054107666015625, -0.026824951171875, 0.018463134765625, 0.0330810546875, 0.004161834716796875, 0.052978515625, -0.005031585693359375, 0.0011968612670898438, -0.0089874267578125, -0.01311492919921875, 0.034698486328125, -0.0168609619140625, -0.039398193359375, 0.019195556640625, 0.024078369140625, 0.02777099609375, 0.01465606689453125, 0.00820159912109375, -0.060638427734375, 0.016571044921875, 0.0584716796875, -0.0265960693359375, -0.002887725830078125, 0.0007786750793457031, 0.043548583984375, -0.083984375, -0.03155517578125, -0.02099609375, 0.049591064453125, 0.042022705078125, 0.0261993408203125, 0.01200103759765625, 0.01751708984375, 0.034759521484375, -0.01262664794921875, 0.0185546875, 0.01229095458984375, -0.0305023193359375, 0.020599365234375, 0.05010986328125, 0.01971435546875, -0.030120849609375, -0.007843017578125, 0.0296173095703125, 0.045867919921875, -0.0290679931640625, 0.00981903076171875, 0.017059326171875, 0.01702880859375, -0.0214385986328125, -0.033416748046875, -0.024993896484375, 0.007427215576171875, 0.043487548828125, -0.0484619140625, 0.006191253662109375, 0.02783203125, 0.009063720703125, -0.00919342041015625, -0.0301361083984375, -0.01345062255859375, 0.00693511962890625, -0.0172271728515625, -0.062225341796875, 0.022369384765625, 0.021392822265625, 0.049652099609375, -0.023101806640625, 0.07183837890625, -0.006195068359375, 0.007396697998046875, -0.00391387939453125, 0.00550079345703125, -0.0194244384765625, -0.0521240234375, -0.055328369140625, 0.0312347412109375, 0.044189453125, 0.0041351318359375, -0.0039005279541015625, 0.0114898681640625, 0.01348114013671875, -0.0266265869140625, -0.020050048828125, -0.0151824951171875, -0.021331787109375, 0.023956298828125, -0.0051422119140625, -0.005298614501953125, -0.0218048095703125, -0.036285400390625, -0.01995849609375, 0.0277252197265625, -0.00806427001953125, -0.0111236572265625, 0.0171661376953125, 0.0027923583984375, -0.0352783203125, 0.036468505859375, -0.0277252197265625, 0.061920166015625, -0.01293182373046875, -0.0438232421875, 0.0191192626953125, -0.039031982421875, -0.0760498046875, 0.012481689453125, 0.03070068359375, -0.03997802734375, 0.04095458984375, 0.0181121826171875, 0.01446533203125, -0.018646240234375, -0.014801025390625, 0.0367431640625, 0.02362060546875, 0.007328033447265625, 0.029296875, -0.011810302734375, -0.031036376953125, -0.0259857177734375, 0.0634765625, 0.0198516845703125, 0.0645751953125, -0.04071044921875, 0.041351318359375, -0.068359375, 0.045623779296875, -0.09515380859375, -0.06329345703125, 0.04718017578125, -0.01103973388671875, -0.002025604248046875, 0.021087646484375, -0.01122283935546875, 0.0213775634765625, 0.017059326171875, -0.0294342041015625, 0.0333251953125, -0.0289764404296875, 0.01146697998046875, -0.0224151611328125, 0.016754150390625, -0.0126800537109375, 0.02130126953125, -0.0540771484375, -0.0489501953125, 0.06207275390625, -0.0052947998046875, -0.038116455078125, 0.0372314453125, -0.014984130859375, -0.048431396484375, 0.005126953125, -0.040740966796875, -0.0307464599609375, 0.006519317626953125, 0.0341796875, 0.00806427001953125, 0.021453857421875, -0.00876617431640625, 0.00478363037109375, 0.0270843505859375, -0.03717041015625, 0.032470703125, -0.0290679931640625, -0.00518035888671875, 0.0021877288818359375, 0.039276123046875, -0.01442718505859375, 0.0172882080078125, -0.018280029296875, 0.00814056396484375, -0.036865234375, 0.050445556640625, -0.00814056396484375, 0.02484130859375, -0.0404052734375, 0.0029296875, -0.0011453628540039062, -0.08050537109375, -0.08544921875, 0.0062103271484375, 0.031951904296875, 0.0008101463317871094, -0.04547119140625, 0.0262908935546875, -0.0243988037109375, 0.049468994140625, -0.0273590087890625, 0.015960693359375, 0.00738525390625, 0.06488037109375, -0.022003173828125, 0.037567138671875, -0.0225677490234375, -0.056488037109375, -0.01001739501953125, 0.0225677490234375, 0.0330810546875, -0.0198822021484375, -0.0208282470703125, 0.0484619140625, 0.00002580881118774414, 0.0831298828125, -0.0213623046875, -0.004917144775390625, 0.00054931640625, 0.01074981689453125, -0.02789306640625, -0.046661376953125, 0.029876708984375, -0.0276031494140625, -0.041534423828125, -0.005260467529296875, 0.021942138671875, 0.046051025390625, 0.00978851318359375, -0.01534271240234375, 0.101318359375, -0.0163116455078125, -0.00974273681640625, -0.045196533203125, -0.0188751220703125, -0.007350921630859375, 0.038055419921875, -0.0033321380615234375, -0.035675048828125, -0.041107177734375, 0.031951904296875, -0.007709503173828125, 0.00940704345703125, 0.0064239501953125, 0.0247955322265625, -0.0186920166015625, 0.0149993896484375, 0.015716552734375, -0.055145263671875, -0.019927978515625, 0.014007568359375, -0.006481170654296875, 0.02069091796875, -0.0189208984375, -0.04168701171875, 0.0038738250732421875, -0.012664794921875, 0.0064849853515625, -0.0010509490966796875, -0.007511138916015625, -0.021453857421875, 0.0108642578125, 0.02386474609375, 0.00341033935546875, -0.00902557373046875, 0.0257110595703125, -0.01580810546875, -0.0762939453125, 0.0003185272216796875, 0.02154541015625, -0.046112060546875, 0.01306915283203125, 0.0136260986328125, -0.0190887451171875, 0.02056884765625, -0.02056884765625, -0.0396728515625, -0.004642486572265625, -0.04779052734375, -0.00969696044921875, -0.047760009765625, 0.0182647705078125, 0.01519012451171875, -0.035552978515625, -0.02703857421875, 0.00012362003326416016, -0.01027679443359375, -0.01221466064453125, -0.0002624988555908203, -0.0220947265625, -0.033843994140625, -0.022613525390625, 0.01873779296875, -0.01290130615234375, 0.043701171875, -0.05029296875, -0.00679779052734375, -0.01020050048828125, 0.042083740234375, 0.01009368896484375, 0.051361083984375, -0.006099700927734375, 0.0430908203125, 0.01873779296875, 0.007579803466796875, -0.04864501953125, 0.031280517578125, -0.0147247314453125, 0.023834228515625, -0.022247314453125, 0.018402099609375, 0.032928466796875, -0.0091094970703125, 0.0023899078369140625, 0.0210723876953125, -0.0219573974609375, 0.004642486572265625, -0.0118255615234375, -0.007965087890625, 0.005664825439453125, -0.012298583984375 ]
9a6a0c9192441307b6c0ec64deff0d6363d36069
Wordpress Stackexchange Q: Splitting WordPress theme CSS into multiple files, good or bad? I'm developing a WordPress theme framework. I want organize CSS for each section into separate files for the following reasons. * *Developers can easily deregister styles by parent theme and load their own styles. *Easy to maintain. *I can load only the required styles based on the options selected by the user. Disadvantages Extra http requests => more load on the server. This disadvantage can be taken care by combining all the CSS files before they are served to the user using plugins like wp-minify. But, will this combining process out weigh the above advantages. A: From http://headjs.com/ : There is a common misbelief that a single combined script performs best. Wrong: * *latest browsers and Head JS can load scripts in parallel. loading 3 parts in parallel instead of as a single chunk is usually faster. *iPhone 3.x cannot cache files larger than 15kb and in iPhone 4 the limit is 25kb. And this is the size before gzipping. if you care about iPhones you should respect these limits (i dont know if it means .css and .js or only .js)
Q: Splitting WordPress theme CSS into multiple files, good or bad? I'm developing a WordPress theme framework. I want organize CSS for each section into separate files for the following reasons. * *Developers can easily deregister styles by parent theme and load their own styles. *Easy to maintain. *I can load only the required styles based on the options selected by the user. Disadvantages Extra http requests => more load on the server. This disadvantage can be taken care by combining all the CSS files before they are served to the user using plugins like wp-minify. But, will this combining process out weigh the above advantages. A: From http://headjs.com/ : There is a common misbelief that a single combined script performs best. Wrong: * *latest browsers and Head JS can load scripts in parallel. loading 3 parts in parallel instead of as a single chunk is usually faster. *iPhone 3.x cannot cache files larger than 15kb and in iPhone 4 the limit is 25kb. And this is the size before gzipping. if you care about iPhones you should respect these limits (i dont know if it means .css and .js or only .js) A: Following @edelwater's excellent answer, another side-effect of the 'combine all' mantra is the induction of unused selectors. Whilst perhaps unnoticeable on modern desktops, there's still an extra hit on rendering time. For example, Chrome audit advises their removal as part of improving performance. Of course, loading every declaration on-demand is ridiculous (not to mention counter-intuitive). It's down to common sense, plucking out considerable chunks that aren't used for the majority of the site, and loading them in with wp_enqueue_style() when they're needed. Update: Yes, of course there'll be overhead if you're combining your stylesheets on-demand (read: for every request). However, I believe plugins like WP Minify cache the output on first request, so there shouldn't be a problem. A: Thank you edelwater and TheDeadMedic for you answers. I think I will use the WordPress file system to save the files to uploads directory. http://ottopress.com/2011/tutorial-using-the-wp_filesystem/ I have to ask for ftp login on some wordpress installs, I think I can handle that without loosing the AJAX options page using page overlay like wordpress uploader.
wordpress
{ "language": "en", "length": 367, "provenance": "stackexchange_00019.jsonl.gz:410443", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20360" }
[ 0.0013551712036132812, -0.0303955078125, -0.016937255859375, -0.050537109375, -0.021820068359375, -0.0063934326171875, -0.0250244140625, 0.0228729248046875, -0.05352783203125, 0.007068634033203125, -0.01387786865234375, 0.046142578125, -0.048431396484375, -0.01910400390625, 0.035858154296875, -0.03875732421875, 0.041961669921875, -0.06744384765625, -0.01433563232421875, 0.0060577392578125, -0.0015888214111328125, 0.0273590087890625, 0.0021495819091796875, 0.032623291015625, 0.02496337890625, -0.049713134765625, -0.003955841064453125, 0.01433563232421875, -0.01432037353515625, -0.020355224609375, 0.0119781494140625, 0.046173095703125, 0.01396942138671875, 0.016082763671875, 0.0218505859375, 0.018218994140625, 0.009765625, -0.00795745849609375, 0.0225372314453125, 0.028778076171875, -0.0003147125244140625, 0.004207611083984375, 0.052520751953125, 0.045928955078125, 0.0086669921875, -0.044921875, 0.00921630859375, -0.06756591796875, -0.009246826171875, -0.060028076171875, 0.007129669189453125, -0.00969696044921875, 0.03509521484375, -0.07568359375, -0.0074920654296875, -0.0046234130859375, 0.01947021484375, 0.0174102783203125, 0.0389404296875, -0.038604736328125, -0.0482177734375, 0.007205963134765625, 0.0266265869140625, -0.01629638671875, -0.00244903564453125, 0.004962921142578125, -0.01476287841796875, 0.01404571533203125, -0.04541015625, -0.021148681640625, 0.00887298583984375, -0.047393798828125, 0.003955841064453125, -0.0372314453125, -0.01087188720703125, 0.01230621337890625, -0.005710601806640625, -0.028656005859375, 0.03326416015625, -0.0172882080078125, -0.0267333984375, 0.00806427001953125, -0.05560302734375, -0.072998046875, 0.019500732421875, -0.0357666015625, -0.0215911865234375, 0.00469207763671875, -0.03729248046875, -0.00811004638671875, -0.0343017578125, -0.02655029296875, -0.0312347412109375, 0.00946044921875, -0.00782012939453125, -0.01751708984375, 0.01119232177734375, 0.029144287109375, -0.0218658447265625, 0.0156402587890625, 0.01105499267578125, -0.0206146240234375, 0.03924560546875, -0.0224151611328125, -0.0011186599731445312, 0.03338623046875, -0.00034999847412109375, 0.019195556640625, 0.018096923828125, 0.02789306640625, -0.0017518997192382812, 0.0214691162109375, 0.00379180908203125, -0.035919189453125, 0.004913330078125, 0.0033779144287109375, -0.01276397705078125, 0.02276611328125, 0.006687164306640625, -0.0233306884765625, 0.00824737548828125, 0.01360321044921875, -0.0224151611328125, 0.03424072265625, -0.032196044921875, -0.0167999267578125, 0.00315093994140625, -0.005298614501953125, -0.00516510009765625, -0.0010843276977539062, 0.006252288818359375, -0.0036678314208984375, 0.00579833984375, 0.0546875, 0.0044097900390625, 0.005458831787109375, 0.050933837890625, 0.005069732666015625, -0.021759033203125, 0.013580322265625, 0.01515960693359375, -0.021148681640625, -0.0285186767578125, -0.01153564453125, -0.00548553466796875, 0.0182647705078125, 0.03564453125, 0.0107574462890625, -0.02349853515625, -0.041900634765625, 0.01038360595703125, -0.00905609130859375, 0.034637451171875, 0.0207366943359375, -0.043212890625, -0.049407958984375, 0.021392822265625, -0.05865478515625, 0.030609130859375, -0.06988525390625, -0.01149749755859375, 0.0173187255859375, 0.06549072265625, -0.02496337890625, -0.001056671142578125, -0.027313232421875, -0.052581787109375, -0.0063018798828125, 0.0261688232421875, -0.028167724609375, -0.0186309814453125, -0.0273284912109375, 0.053802490234375, 0.02496337890625, 0.0126495361328125, 0.0679931640625, 0.033233642578125, -0.026611328125, 0.0124969482421875, 0.047515869140625, -0.00989532470703125, -0.020782470703125, 0.06689453125, -0.0239105224609375, -0.04754638671875, 0.0250396728515625, -0.0032978057861328125, 0.062744140625, 0.0218505859375, 0.024139404296875, 0.007564544677734375, -0.0095367431640625, -0.0194854736328125, 0.0238800048828125, 0.00023794174194335938, 0.0011081695556640625, -0.0026988983154296875, 0.036590576171875, -0.00537109375, -0.04736328125, -0.01355743408203125, 0.007442474365234375, 0.012237548828125, 0.0029125213623046875, -0.01251983642578125, 0.0057220458984375, -0.01959228515625, 0.026336669921875, -0.0621337890625, 0.0146484375, 0.017822265625, -0.013336181640625, -0.00860595703125, -0.036468505859375, 0.0170745849609375, 0.01265716552734375, -0.006534576416015625, 0.0029087066650390625, 0.0018663406372070312, -0.0186614990234375, 0.01039886474609375, 0.024993896484375, 0.001361846923828125, 0.04693603515625, 0.051361083984375, 0.00215911865234375, -0.030364990234375, -0.01262664794921875, -0.002593994140625, 0.0310211181640625, -0.0780029296875, 0.04693603515625, 0.07476806640625, 0.0943603515625, -0.0006537437438964844, -0.0021762847900390625, 0.034271240234375, -0.0278167724609375, 0.002674102783203125, 0.026458740234375, 0.05621337890625, 0.0288848876953125, 0.008026123046875, -0.0155487060546875, 0.07733154296875, -0.039703369140625, 0.00021541118621826172, -0.01358795166015625, -0.0168609619140625, -0.0295562744140625, -0.0024471282958984375, -0.0237274169921875, 0.052886962890625, -0.08038330078125, -0.01396942138671875, 0.05035400390625, -0.035675048828125, -0.0498046875, -0.0199737548828125, 0.0272369384765625, 0.02197265625, -0.0645751953125, -0.04290771484375, -0.0159912109375, 0.0146026611328125, 0.0176544189453125, 0.00522613525390625, -0.012939453125, 0.003009796142578125, 0.0304412841796875, 0.0008330345153808594, -0.10589599609375, 0.027984619140625, 0.0238800048828125, -0.0006165504455566406, 0.0208587646484375, -0.0197906494140625, -0.0190277099609375, 0.0413818359375, 0.0233001708984375, -0.00847625732421875, 0.011688232421875, -0.042388916015625, -0.01128387451171875, 0.0037708282470703125, -0.0626220703125, -0.0172882080078125, 0.00505828857421875, 0.022125244140625, 0.050506591796875, 0.03631591796875, 0.0474853515625, 0.01004791259765625, 0.035797119140625, 0.0092315673828125, 0.0068511962890625, 0.090087890625, 0.015350341796875, 0.015289306640625, -0.0014181137084960938, 0.045166015625, 0.030670166015625, -0.03704833984375, 0.0146331787109375, 0.0078582763671875, 0.0263671875, 0.0242767333984375, -0.0216827392578125, -0.022918701171875, -0.01435089111328125, -0.047882080078125, -0.00588226318359375, 0.025909423828125, 0.0310211181640625, 0.003559112548828125, -0.0262451171875, 0.00018870830535888672, 0.024261474609375, -0.0243377685546875, -0.0299835205078125, -0.0017862319946289062, -0.06573486328125, 0.002178192138671875, 0.0008034706115722656, -0.0291748046875, -0.01253509521484375, 0.00803375244140625, 0.0169525146484375, -0.0229644775390625, -0.043701171875, -0.053253173828125, -0.052398681640625, -0.056549072265625, 0.05169677734375, 0.00543212890625, 0.023773193359375, 0.0007486343383789062, 0.0784912109375, -0.00620269775390625, -0.05133056640625, -0.0269775390625, -0.004486083984375, -0.01511383056640625, -0.0107421875, -0.004619598388671875, -0.021820068359375, -0.013031005859375, 0.0036029815673828125, 0.0155487060546875, -0.007488250732421875, 0.002475738525390625, -0.00768280029296875, -0.045562744140625, 0.0107879638671875, -0.032440185546875, 0.0238037109375, 0.057464599609375, -0.0026950836181640625, -0.001415252685546875, -0.02642822265625, -0.055816650390625, -0.0051116943359375, -0.045013427734375, -0.002040863037109375, 0.05535888671875, -0.0151214599609375, -0.01739501953125, -0.00058746337890625, 0.04327392578125, 0.0028057098388671875, -0.006649017333984375, -0.039764404296875, 0.11279296875, 0.030059814453125, 0.0576171875, -0.057098388671875, 0.0242767333984375, -0.032012939453125, 0.00821685791015625, -0.00777435302734375, -0.01165771484375, -0.0191650390625, 0.004093170166015625, -0.041778564453125, -0.0198974609375, 0.0305328369140625, 0.00403594970703125, 0.0208740234375, -0.01428985595703125, -0.0187835693359375, -0.0047760009765625, 0.057220458984375, -0.0611572265625, 0.005054473876953125, -0.00487518310546875, 0.030731201171875, -0.058441162109375, -0.09246826171875, -0.04888916015625, -0.0098876953125, -0.031463623046875, 0.0099334716796875, -0.014373779296875, -0.0078277587890625, -0.0212860107421875, -0.0175933837890625, -0.0078125, -0.0301361083984375, 0.01486968994140625, 0.005634307861328125, -0.002956390380859375, -0.0303192138671875, 0.00150299072265625, -0.055877685546875, 0.00936126708984375, -0.00881195068359375, -0.049713134765625, -0.01751708984375, 0.0003807544708251953, 0.04595947265625, -0.017303466796875, 0.0298614501953125, -0.008209228515625, 0.04644775390625, -0.0458984375, 0.06756591796875, -0.01338958740234375, 0.034210205078125, 0.029022216796875, 0.0205841064453125, 0.0080108642578125, -0.0013532638549804688, -0.0139617919921875, -0.032684326171875, -0.056121826171875, -0.0207366943359375, -0.0213775634765625, -0.00981903076171875, 0.0141448974609375, -0.0129547119140625, -0.005634307861328125, 0.0012788772583007812, -0.01177978515625, 0.01611328125, 0.0275726318359375, -0.03155517578125, -0.017852783203125, -0.0163116455078125, 0.0237274169921875, 0.0195159912109375, -0.00490570068359375, 0.0065155029296875, 0.056640625, 0.01824951171875, -0.03448486328125, -0.07415771484375, -0.0082244873046875, 0.03704833984375, 0.025848388671875, 0.04412841796875, 0.009765625, -0.025482177734375, 0.0797119140625, 0.0235443115234375, -0.017303466796875, 0.028533935546875, 0.0023441314697265625, -0.0017099380493164062, -0.02703857421875, 0.0011167526245117188, -0.0218048095703125, 0.0005869865417480469, 0.039520263671875, 0.02069091796875, -0.0186004638671875, 0.0210418701171875, 0.032745361328125, 0.01210784912109375, -0.054473876953125, -0.03912353515625, -0.07733154296875, 0.0158843994140625, -0.0152740478515625, 0.06280517578125, 0.01080322265625, -0.00014543533325195312, 0.08551025390625, 0.056243896484375, -0.01009368896484375, 0.0113525390625, 0.0254974365234375, -0.0211181640625, 0.01174163818359375, 0.007579803466796875, -0.037841796875, -0.00931549072265625, -0.00025153160095214844, 0.057037353515625, 0.036224365234375, -0.016326904296875, -0.02557373046875, 0.00583648681640625, -0.00493621826171875, -0.01264190673828125, -0.00876617431640625, 0.06719970703125, -0.0106201171875, -0.021575927734375, -0.016387939453125, -0.062042236328125, -0.0489501953125, -0.06658935546875, -0.004886627197265625, -0.0013608932495117188, -0.0228424072265625, 0.0693359375, -0.046142578125, -0.010040283203125, 0.00524139404296875, 0.0008254051208496094, 0.0185394287109375, 0.01200103759765625, 0.0240631103515625, -0.0084381103515625, 0.0156707763671875, 0.0133209228515625, 0.00911712646484375, 0.045318603515625, -0.067138671875, 0.0006046295166015625, 0.060028076171875, 0.051361083984375, -0.0229034423828125, -0.0521240234375, 0.0279083251953125, 0.00791168212890625, 0.0032634735107421875, -0.01097869873046875, -0.01055908203125, -0.007488250732421875, -0.006389617919921875, 0.0020580291748046875, 0.0252532958984375, 0.00728607177734375, 0.006877899169921875, -0.0135498046875, 0.006381988525390625, 0.002117156982421875, 0.0244140625, -0.038177490234375, 0.00004315376281738281, 0.0102386474609375, -0.03692626953125, 0.007450103759765625, 0.00548553466796875, -0.1107177734375, -0.07464599609375, 0.0186767578125, 0.0014667510986328125, 0.0007963180541992188, 0.004261016845703125, 0.0042266845703125, -0.028564453125, -0.0061187744140625, 0.0033588409423828125, 0.0119781494140625, 0.0241241455078125, -0.01136016845703125, -0.07696533203125, 0.04522705078125, -0.0621337890625, -0.0028972625732421875, -0.0250396728515625, -0.059173583984375, -0.06634521484375, -0.020904541015625, 0.004184722900390625, -0.021148681640625, 0.021270751953125, -0.01399993896484375, -0.037872314453125, 0.037261962890625, 0.042694091796875, -0.002651214599609375, -0.0201873779296875, 0.04461669921875, -0.00864410400390625, 0.0092620849609375, 0.01123809814453125, 0.023193359375, -0.003894805908203125, -0.0152587890625, 0.00801849365234375, -0.05328369140625, -0.04388427734375, -0.01314544677734375, -0.0212554931640625, 0.03997802734375, 0.043975830078125, -0.01248931884765625, 0.0261688232421875, -0.0122222900390625, 0.006900787353515625, -0.01800537109375, -0.0124359130859375, -0.01959228515625, -0.007694244384765625, 0.0333251953125, 0.028411865234375, 0.028839111328125, -0.0301513671875, -0.0740966796875, 0.03472900390625, 0.024871826171875, 0.027587890625, -0.01087188720703125, -0.033599853515625, 0.014129638671875, 0.036956787109375, 0.0179901123046875, 0.02972412109375, -0.0016956329345703125, 0.018798828125, 0.023956298828125, 0.01727294921875, 0.0188140869140625, -0.019805908203125, 0.017333984375, -0.0146026611328125, 0.00341033935546875, -0.00433349609375, -0.01464080810546875, 0.0233612060546875, 0.057037353515625, 0.08074951171875, -0.07086181640625, -0.0006079673767089844, -0.01275634765625, -0.0279083251953125, 0.0234832763671875, 0.0169830322265625, 0.01306915283203125, -0.00513458251953125, 0.01220703125, 0.01558685302734375, -0.0053558349609375, 0.0328369140625, -0.0017843246459960938, 0.01125335693359375, -0.0024166107177734375, 0.0018482208251953125, -0.0120849609375, -0.10919189453125, -0.01064300537109375, 0.07904052734375, -0.035186767578125, -0.006465911865234375, 0.0309600830078125, -0.0189666748046875, -0.0091552734375, -0.021240234375, 0.02178955078125, 0.0018911361694335938, -0.024688720703125, -0.0219573974609375, -0.0162506103515625, 0.0220794677734375, 0.0562744140625, -0.042205810546875, 0.025543212890625, 0.018035888671875, 0.0178375244140625, -0.01428985595703125, -0.002643585205078125, 0.03387451171875, -0.01367950439453125, -0.01275634765625, 0.0136566162109375, -0.025909423828125, -0.0245819091796875, -0.01491546630859375, -0.0099639892578125, 0.0594482421875, -0.0181732177734375, -0.0158843994140625, 0.0203399658203125, 0.0228271484375, -0.0071563720703125, 0.00621795654296875, 0.039398193359375, -0.06451416015625, -0.0443115234375, 0.0278778076171875, -0.027618408203125, -0.0095367431640625, 0.007587432861328125, -0.037689208984375, 0.075439453125, -0.044219970703125, 0.037445068359375, 0.0323486328125, 0.026885986328125, -0.0037708282470703125, 0.02545166015625, -0.02581787109375, 0.0333251953125, -0.0011501312255859375, 0.004863739013671875, -0.004608154296875, 0.01213836669921875, 0.009674072265625, 0.002628326416015625, 0.037567138671875, 0.0025768280029296875, -0.01763916015625, 0.007244110107421875, 0.0892333984375, 0.0295257568359375, 0.007328033447265625, 0.03753662109375, -0.0141448974609375, -0.027435302734375, -0.00156402587890625, 0.031646728515625, 0.037109375, -0.01129150390625, -0.07635498046875, 0.0033664703369140625, 0.005779266357421875, -0.025054931640625, -0.01294708251953125, 0.033599853515625, -0.06427001953125, 0.0120697021484375, 0.036407470703125, 0.021636962890625, 0.0167083740234375, 0.0192718505859375, 0.035491943359375, -0.0277252197265625, 0.002971649169921875, -0.0230712890625, 0.0479736328125, -0.013885498046875, -0.0006632804870605469, 0.03155517578125, -0.002666473388671875, 0.0187835693359375, 0.021881103515625, 0.0004954338073730469, 0.01873779296875, 0.004047393798828125, 0.0186309814453125, 0.004741668701171875, 0.043243408203125, -0.034027099609375, -0.04278564453125, -0.0191802978515625, 0.0287628173828125, -0.00555419921875, -0.035430908203125, -0.002079010009765625, -0.0108184814453125, 0.0152435302734375, -0.0201416015625, 0.01331329345703125, -0.029449462890625, -0.01398468017578125, 0.01171875, -0.0087890625, 0.01390838623046875, -0.0008249282836914062, 0.01023101806640625, 0.0264434814453125, 0.0003046989440917969, 0.01013946533203125, -0.048126220703125, 0.0032024383544921875, 0.00801849365234375, 0.037200927734375, 0.03558349609375, 0.043426513671875, 0.037353515625, -0.0296630859375, -0.00768280029296875, 0.0305023193359375, 0.0040283203125, -0.0100555419921875, -0.0006155967712402344, -0.0181884765625, 0.0109100341796875, 0.0283966064453125, 0.043426513671875, 0.0174560546875, 0.0467529296875, 0.029815673828125, -0.04022216796875, 0.00024819374084472656, 0.00884246826171875, -0.0233917236328125, -0.003330230712890625, -0.0273284912109375, -0.00008952617645263672, -0.00027179718017578125, -0.00856781005859375, -0.0016393661499023438, -0.0000451207160949707, 0.021881103515625, -0.001819610595703125, -0.00820159912109375, 0.003482818603515625, -0.007091522216796875, -0.00583648681640625, -0.0129241943359375, -0.036590576171875, 0.01325225830078125, -0.03887939453125, 0.005397796630859375, 0.006618499755859375, 0.00014328956604003906, -0.0207366943359375, 0.0272674560546875, 0.003032684326171875, 0.025970458984375, 0.040283203125, -0.007049560546875, -0.0228729248046875, 0.0096893310546875, 0.03466796875, 0.00772857666015625, 0.01198577880859375, 0.036956787109375, -0.07769775390625, -0.047454833984375, -0.030914306640625, 0.044097900390625, 0.038299560546875, 0.0899658203125, -0.0213470458984375, 0.03546142578125, 0.026824951171875, -0.02581787109375, 0.03485107421875, -0.0025997161865234375, 0.03070068359375, -0.005771636962890625, 0.007335662841796875, -0.0143280029296875, -0.0185699462890625, -0.019866943359375, 0.03460693359375, -0.040435791015625, -0.0341796875, -0.006183624267578125, 0.035980224609375, 0.00815582275390625, 0.0170135498046875, -0.0291748046875, -0.0478515625, -0.0254058837890625, 0.0177154541015625, -0.0030059814453125, -0.01220703125, -0.021209716796875, -0.009246826171875, 0.041595458984375, -0.0307769775390625, 0.042724609375, 0.00009578466415405273, 0.05615234375, 0.0256805419921875, 0.016571044921875, -0.0728759765625, 0.03778076171875, -0.0051727294921875, -0.00867462158203125, 0.006267547607421875, 0.070556640625, 0.010528564453125, -0.039031982421875, 0.041473388671875, 0.0997314453125, 0.0712890625, -0.00702667236328125, 0.04034423828125, 0.07598876953125, -0.03216552734375, 0.0225982666015625, -0.01605224609375, -0.01873779296875, 0.0091705322265625, -0.006969451904296875, 0.0235595703125, 0.0024738311767578125, -0.018341064453125, -0.07733154296875, -0.00847625732421875, 0.02398681640625, -0.00036454200744628906, -0.02032470703125, 0.0323486328125, -0.03369140625, -0.0224151611328125, 0.00013899803161621094, 0.020263671875, -0.028350830078125, -0.0347900390625, -0.036834716796875, -0.07244873046875, -0.040924072265625, 0.08251953125, -0.0367431640625, 0.0257415771484375, 0.035797119140625, -0.027862548828125, 0.03369140625, 0.028045654296875, 0.046783447265625, 0.0784912109375, -0.0001672506332397461, -0.01861572265625, -0.00414276123046875, 0.0006661415100097656, -0.003597259521484375, -0.0380859375, -0.00017702579498291016, -0.024078369140625, -0.01313018798828125, -0.03948974609375, -0.011077880859375, -0.01027679443359375, -0.05792236328125, -0.06378173828125, 0.06396484375, -0.0157012939453125, -0.021636962890625, -0.027557373046875, 0.00707244873046875, -0.01006317138671875, -0.00899505615234375, -0.002521514892578125, -0.0506591796875, 0.01067352294921875, 0.05352783203125, 0.0057830810546875, 0.04095458984375, -0.0090484619140625, 0.0391845703125, -0.0285186767578125, 0.038177490234375, 0.01605224609375, -0.0231781005859375, -0.0399169921875, 0.033660888671875, 0.005397796630859375, 0.0462646484375, -0.00927734375, -0.0017795562744140625, 0.018096923828125, -0.001354217529296875, 0.0055389404296875, -0.0029392242431640625, -0.025604248046875, -0.0099029541015625, 0.044158935546875, 0.0225372314453125, 0.01070404052734375, -0.01262664794921875, -0.01244354248046875, -0.00855255126953125, 0.01342010498046875, 0.010772705078125, 0.007904052734375, -0.04705810546875, -0.004108428955078125, 0.0033245086669921875, -0.001079559326171875, 0.0272979736328125, -0.017120361328125, -0.034759521484375, -0.00035691261291503906, 0.00962066650390625, 0.0235595703125, -0.08770751953125, -0.00656890869140625, 0.033416748046875, -0.009918212890625, 0.0301513671875, 0.00360870361328125, 0.0113067626953125, 0.035919189453125, 0.05548095703125, -0.000820159912109375, 0.03338623046875, -0.03509521484375, 0.035797119140625, -0.0030918121337890625, 0.030609130859375, -0.060150146484375, 0.001003265380859375, 0.0022106170654296875, 0.01171112060546875, -0.0035190582275390625, 0.00901031494140625, -0.00931549072265625, 0.031585693359375, -0.011322021484375, 0.05224609375, -0.0097198486328125, 0.026947021484375, -0.0167236328125, 0.0469970703125, -0.0055999755859375, -0.004741668701171875, 0.0274658203125, -0.0291290283203125, -0.0017328262329101562, 0.00708770751953125, 0.01084136962890625, -0.057708740234375, 0.02740478515625, -0.013031005859375, 0.0205535888671875, 0.01097869873046875 ]
75f3d8357adbf176dbf3176c15cfc35b0ab20ef6
Wordpress Stackexchange Q: Make individual attachments private? Is there any way to make individual attachments private similar to how a post can be made private? I've looked through various plugins but none really seem to do the job. They usually make all attachments private which I do not want. A: You can try to put a Custom Field to the attachments and filter from there. http://wpengineer.com/2076/add-custom-field-attachment-in-wordpress/
Q: Make individual attachments private? Is there any way to make individual attachments private similar to how a post can be made private? I've looked through various plugins but none really seem to do the job. They usually make all attachments private which I do not want. A: You can try to put a Custom Field to the attachments and filter from there. http://wpengineer.com/2076/add-custom-field-attachment-in-wordpress/
wordpress
{ "language": "en", "length": 64, "provenance": "stackexchange_00019.jsonl.gz:410450", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20377" }
[ 0.038909912109375, -0.0037288665771484375, 0.0183868408203125, 0.0050811767578125, 0.0040130615234375, -0.01029205322265625, 0.0312347412109375, -0.053314208984375, -0.0283355712890625, -0.000013649463653564453, -0.0020275115966796875, 0.009307861328125, -0.04913330078125, -0.0433349609375, 0.0140533447265625, -0.05657958984375, 0.01456451416015625, 0.05316162109375, 0.055206298828125, 0.0028591156005859375, 0.01605224609375, 0.01033782958984375, 0.0105438232421875, 0.01338958740234375, 0.016632080078125, 0.06378173828125, 0.045166015625, -0.0190582275390625, 0.0219879150390625, -0.007511138916015625, 0.01959228515625, -0.049072265625, -0.00807952880859375, 0.033966064453125, -0.007244110107421875, 0.002593994140625, -0.03131103515625, 0.034088134765625, 0.0272979736328125, 0.002696990966796875, 0.0418701171875, -0.0220947265625, -0.0213470458984375, 0.075439453125, -0.0280914306640625, -0.035888671875, 0.04241943359375, -0.036376953125, 0.044769287109375, -0.04345703125, 0.00872039794921875, 0.01386260986328125, 0.02081298828125, -0.05023193359375, -0.0173797607421875, 0.0035991668701171875, 0.0019931793212890625, 0.0139617919921875, 0.0499267578125, -0.04229736328125, -0.0428466796875, -0.03009033203125, 0.04058837890625, 0.011962890625, 0.0173797607421875, -0.019989013671875, -0.0474853515625, 0.03912353515625, -0.060272216796875, 0.024688720703125, 0.05145263671875, -0.056732177734375, 0.0121917724609375, -0.04644775390625, -0.0188140869140625, 0.0272979736328125, 0.00838470458984375, -0.022552490234375, 0.0211944580078125, -0.025726318359375, 0.02337646484375, -0.00980377197265625, -0.040618896484375, 0.017608642578125, 0.004085540771484375, 0.055267333984375, -0.01242828369140625, -0.03582763671875, 0.01233673095703125, 0.03851318359375, -0.00395965576171875, 0.0021991729736328125, 0.02874755859375, 0.053253173828125, -0.0257415771484375, 0.01457977294921875, 0.037017822265625, 0.0233306884765625, 0.0021514892578125, -0.003116607666015625, 0.0283966064453125, -0.0318603515625, 0.009735107421875, -0.021148681640625, -0.00760650634765625, -0.00004941225051879883, -0.005573272705078125, 0.005084991455078125, 0.0189971923828125, 0.0267333984375, -0.0208282470703125, 0.057037353515625, 0.033721923828125, 0.00672149658203125, -0.007617950439453125, -0.0257110595703125, -0.010650634765625, 0.045562744140625, -0.003253936767578125, 0.046600341796875, 0.015411376953125, -0.00907135009765625, 0.0220947265625, 0.009429931640625, -0.0232086181640625, -0.03814697265625, -0.038238525390625, -0.01210784912109375, 0.004680633544921875, 0.00036144256591796875, -0.0275115966796875, 0.04522705078125, 0.034912109375, -0.00662994384765625, -0.006671905517578125, -0.0008015632629394531, 0.0233001708984375, -0.007648468017578125, -0.004467010498046875, 0.0214691162109375, 0.0217437744140625, -0.0100555419921875, -0.0039825439453125, 0.00537109375, 0.002773284912109375, 0.0110626220703125, 0.0243682861328125, 0.0210113525390625, -0.0244598388671875, -0.034942626953125, 0.012054443359375, -0.00225067138671875, 0.016510009765625, -0.007541656494140625, 0.01715087890625, 0.0011396408081054688, 0.0411376953125, -0.011077880859375, -0.007965087890625, -0.0279388427734375, 0.0758056640625, -0.0061187744140625, -0.02508544921875, 0.056915283203125, 0.029510498046875, -0.002979278564453125, -0.033782958984375, -0.003902435302734375, 0.0158233642578125, 0.01363372802734375, 0.0190582275390625, -0.0283050537109375, -0.01263427734375, -0.00501251220703125, -0.01456451416015625, 0.0168914794921875, -0.0177001953125, 0.005489349365234375, 0.0203857421875, 0.05242919921875, 0.0083465576171875, -0.03961181640625, 0.031494140625, -0.0011396408081054688, -0.032989501953125, 0.04803466796875, -0.003971099853515625, 0.015899658203125, 0.0211029052734375, -0.0094451904296875, 0.04644775390625, 0.015380859375, -0.005039215087890625, -0.01471710205078125, -0.00826263427734375, 0.0098419189453125, -0.025238037109375, 0.0299072265625, -0.0208740234375, -0.001842498779296875, -0.052978515625, 0.0048675537109375, 0.00357818603515625, 0.037689208984375, 0.04681396484375, -0.0049285888671875, 0.00530242919921875, 0.006359100341796875, -0.06158447265625, -0.006011962890625, 0.0367431640625, -0.0433349609375, 0.0034027099609375, -0.02197265625, -0.00005418062210083008, -0.0457763671875, -0.006290435791015625, 0.0193023681640625, -0.0025691986083984375, 0.018951416015625, -0.029266357421875, -0.022125244140625, -0.030548095703125, -0.0014047622680664062, 0.0242767333984375, -0.00394439697265625, -0.01108551025390625, 0.004482269287109375, 0.0173797607421875, 0.02349853515625, -0.0413818359375, -0.00014150142669677734, -0.002460479736328125, -0.0206146240234375, -0.00823211669921875, 0.00795745849609375, -0.00714111328125, -0.10272216796875, 0.0053253173828125, 0.0618896484375, 0.032318115234375, 0.01220703125, 0.01070404052734375, 0.00894927978515625, 0.054779052734375, 0.00962066650390625, 0.0390625, -0.0235443115234375, -0.01065826416015625, -0.0171051025390625, -0.0253143310546875, -0.01800537109375, 0.05120849609375, -0.03692626953125, 0.0117034912109375, 0.03948974609375, -0.0214385986328125, -0.0180206298828125, 0.005580902099609375, 0.001678466796875, 0.0238800048828125, 0.054443359375, 0.0011234283447265625, 0.035308837890625, 0.0343017578125, -0.0029296875, 0.047332763671875, 0.04107666015625, -0.0034084320068359375, -0.004528045654296875, -0.01267242431640625, -0.038970947265625, 0.0081787109375, 0.0447998046875, 0.0276336669921875, 0.0237274169921875, -0.0228424072265625, -0.01299285888671875, 0.023590087890625, 0.029632568359375, -0.0032672882080078125, 0.0093231201171875, -0.01355743408203125, -0.01397705078125, 0.010345458984375, -0.0237884521484375, 0.0067596435546875, -0.005828857421875, -0.060546875, -0.05364990234375, -0.0203704833984375, 0.058441162109375, -0.0152130126953125, 0.018096923828125, 0.0289764404296875, -0.01220703125, -0.01258087158203125, -0.07586669921875, 0.06524658203125, -0.08331298828125, 0.0635986328125, 0.07000732421875, -0.0394287109375, 0.0416259765625, 0.0165252685546875, -0.00829315185546875, 0.00405120849609375, 0.040557861328125, 0.01488494873046875, -0.027130126953125, -0.037872314453125, -0.0015649795532226562, -0.007442474365234375, 0.035003662109375, -0.0299530029296875, -0.060699462890625, -0.014068603515625, 0.00023567676544189453, -0.0169219970703125, 0.031707763671875, 0.00875091552734375, -0.076904296875, -0.0263519287109375, -0.0153656005859375, -0.043212890625, 0.0125274658203125, 0.015533447265625, 0.01206207275390625, -0.005580902099609375, -0.020660400390625, -0.035797119140625, 0.0023288726806640625, -0.0258636474609375, 0.0797119140625, 0.00006914138793945312, 0.00508880615234375, -0.0019130706787109375, 0.0712890625, 0.00231170654296875, -0.04302978515625, -0.006679534912109375, -0.039947509765625, 0.0054779052734375, 0.0238189697265625, 0.016204833984375, -0.045440673828125, -0.0288543701171875, 0.0059814453125, 0.0207672119140625, 0.0091705322265625, -0.018646240234375, -0.004901885986328125, -0.017364501953125, 0.031585693359375, 0.019195556640625, 0.00910186767578125, 0.001354217529296875, 0.012542724609375, 0.006473541259765625, -0.0266571044921875, 0.019775390625, -0.00814056396484375, -0.005420684814453125, -0.006603240966796875, -0.010833740234375, -0.0182647705078125, -0.0274810791015625, 0.01209259033203125, 0.041046142578125, 0.0081329345703125, -0.0240325927734375, -0.002277374267578125, 0.0007333755493164062, 0.01352691650390625, 0.03448486328125, 0.020233154296875, -0.0014314651489257812, -0.03289794921875, 0.0155181884765625, -0.0183563232421875, -0.0182647705078125, -0.041107177734375, 0.045989990234375, -0.040008544921875, -0.0543212890625, 0.04046630859375, -0.04241943359375, 0.032318115234375, -0.0584716796875, -0.0185089111328125, -0.02484130859375, 0.10235595703125, -0.05108642578125, -0.014678955078125, 0.01096343994140625, 0.021728515625, -0.032470703125, -0.0675048828125, -0.039276123046875, -0.0233154296875, 0.00295257568359375, 0.032379150390625, 0.028411865234375, -0.030609130859375, -0.0312042236328125, -0.0457763671875, -0.01557159423828125, -0.0001741647720336914, 0.0077056884765625, -0.003711700439453125, 0.0144805908203125, 0.00862884521484375, 0.0126953125, -0.0094757080078125, 0.0005650520324707031, -0.039642333984375, -0.0836181640625, -0.0123443603515625, -0.050079345703125, 0.051605224609375, -0.0084228515625, 0.06329345703125, -0.027984619140625, 0.04241943359375, -0.0098419189453125, -0.0016126632690429688, -0.018096923828125, -0.01290130615234375, 0.00037741661071777344, 0.0655517578125, -0.0095977783203125, 0.021331787109375, 0.0152130126953125, -0.039306640625, -0.07867431640625, -0.07080078125, -0.03802490234375, -0.020843505859375, 0.0135040283203125, -0.044769287109375, -0.035308837890625, -0.0245819091796875, -0.009429931640625, 0.0012683868408203125, -0.026031494140625, 0.0014925003051757812, -0.013824462890625, -0.036407470703125, 0.01523590087890625, 0.00726318359375, -0.03668212890625, 0.018524169921875, 0.0245208740234375, 0.01018524169921875, -0.0172576904296875, -0.08831787109375, 0.0074310302734375, 0.028045654296875, -0.039154052734375, 0.049591064453125, 0.031158447265625, -0.00284576416015625, 0.07611083984375, -0.02685546875, 0.003948211669921875, -0.040740966796875, 0.08782958984375, -0.00742340087890625, -0.00026702880859375, 0.0246124267578125, -0.01473236083984375, 0.0146484375, -0.0009412765502929688, -0.01430511474609375, -0.020782470703125, -0.017181396484375, 0.05963134765625, -0.02325439453125, 0.0496826171875, -0.0272216796875, -0.08441162109375, 0.0283966064453125, -0.06298828125, 0.017364501953125, -0.0014905929565429688, -0.00958251953125, 0.042144775390625, 0.0276641845703125, -0.00800323486328125, -0.045166015625, -0.02044677734375, -0.0156402587890625, 0.01557159423828125, -0.01203155517578125, -0.0024127960205078125, -0.0303192138671875, -0.005863189697265625, 0.027435302734375, 0.00966644287109375, -0.046630859375, 0.005161285400390625, 0.00018465518951416016, 0.0071563720703125, 0.0218505859375, -0.0168609619140625, 0.02069091796875, -0.01215362548828125, -0.005840301513671875, 0.0125579833984375, -0.054290771484375, 0.018829345703125, -0.0355224609375, 0.051910400390625, 0.0035228729248046875, -0.00063323974609375, 0.061676025390625, -0.00400543212890625, -0.023223876953125, 0.0198516845703125, -0.007144927978515625, 0.032562255859375, 0.061431884765625, -0.0110931396484375, 0.01904296875, 0.008270263671875, -0.01187896728515625, -0.036468505859375, 0.0091094970703125, -0.050262451171875, -0.00637054443359375, 0.0016870498657226562, 0.052947998046875, -0.0081024169921875, -0.0205841064453125, 0.05047607421875, -0.0278778076171875, -0.01399993896484375, 0.00067901611328125, 0.0141143798828125, -0.0178680419921875, -0.0028972625732421875, -0.003299713134765625, -0.003597259521484375, 0.0038776397705078125, 0.006824493408203125, -0.054443359375, -0.02410888671875, -0.04083251953125, 0.05108642578125, -0.066162109375, -0.0018711090087890625, 0.00562286376953125, 0.0011053085327148438, -0.0084228515625, -0.03167724609375, -0.05560302734375, -0.044036865234375, 0.0002815723419189453, 0.0155029296875, 0.0433349609375, 0.0024623870849609375, 0.05206298828125, -0.0283966064453125, -0.0211944580078125, -0.00827789306640625, 0.00170135498046875, 0.0224609375, 0.006561279296875, -0.0268096923828125, -0.021270751953125, -0.03515625, -0.0202178955078125, 0.02203369140625, -0.01316070556640625, -0.0274810791015625, -0.00360870361328125, 0.0195465087890625, 0.035980224609375, -0.0184173583984375, -0.0391845703125, -0.00432586669921875, -0.0170440673828125, 0.0206146240234375, 0.0023746490478515625, -0.0000591278076171875, 0.04278564453125, -0.0033512115478515625, 0.048248291015625, 0.0127716064453125, 0.022796630859375, -0.020965576171875, -0.0211334228515625, 0.0019407272338867188, -0.057159423828125, -0.001766204833984375, 0.0182647705078125, -0.00858306884765625, -0.021453857421875, -0.0411376953125, 0.0015802383422851562, -0.006458282470703125, -0.0545654296875, -0.01953125, -0.0085296630859375, 0.0914306640625, -0.0303497314453125, 0.003917694091796875, 0.003833770751953125, -0.01059722900390625, 0.022796630859375, 0.0189208984375, -0.04278564453125, 0.0272979736328125, 0.0033092498779296875, 0.0294952392578125, 0.01041412353515625, -0.0134429931640625, 0.01380157470703125, 0.0121307373046875, 0.024932861328125, 0.043914794921875, -0.0029430389404296875, 0.05108642578125, 0.0251617431640625, 0.001537322998046875, -0.007709503173828125, -0.03131103515625, 0.051605224609375, 0.012664794921875, -0.021270751953125, 0.0693359375, -0.03594970703125, 0.047943115234375, 0.0220184326171875, 0.0631103515625, -0.0865478515625, 0.04656982421875, -0.0144195556640625, -0.005992889404296875, 0.06298828125, -0.0028820037841796875, 0.021240234375, -0.01548004150390625, 0.023956298828125, 0.03082275390625, -0.00946044921875, -0.005023956298828125, -0.01198577880859375, 0.00466156005859375, 0.004596710205078125, 0.00482177734375, -0.004627227783203125, -0.07904052734375, 0.0113067626953125, 0.05242919921875, -0.002864837646484375, -0.0390625, 0.01129913330078125, 0.0225677490234375, -0.01430511474609375, -0.04815673828125, 0.02825927734375, -0.014007568359375, 0.02001953125, 0.01241302490234375, -0.00975799560546875, 0.010345458984375, 0.02392578125, -0.00024175643920898438, -0.0228118896484375, 0.0100250244140625, -0.06146240234375, 0.019317626953125, -0.03350830078125, -0.0011577606201171875, 0.042633056640625, -0.0679931640625, 0.01383209228515625, -0.004924774169921875, 0.00768280029296875, -0.007068634033203125, -0.018463134765625, 0.067626953125, -0.06365966796875, 0.0025539398193359375, 0.028564453125, 0.030975341796875, 0.006744384765625, 0.003482818603515625, -0.00948333740234375, -0.018096923828125, 0.0135498046875, -0.01032257080078125, -0.0184478759765625, 0.00919342041015625, -0.010009765625, -0.0582275390625, 0.0897216796875, -0.0147552490234375, 0.02685546875, -0.0009207725524902344, 0.03729248046875, 0.0018262863159179688, 0.0225067138671875, -0.033660888671875, 0.04437255859375, 0.0089111328125, 0.03070068359375, -0.054718017578125, -0.0216827392578125, -0.0082855224609375, 0.04205322265625, 0.060760498046875, 0.0148468017578125, -0.0013208389282226562, -0.01346588134765625, 0.07623291015625, 0.057373046875, -0.009002685546875, 0.0105133056640625, 0.00533294677734375, -0.0010614395141601562, 0.0174560546875, -0.007476806640625, 0.0301055908203125, -0.0232086181640625, 0.0017786026000976562, 0.01568603515625, 0.007122039794921875, 0.01476287841796875, -0.015472412109375, 0.055938720703125, -0.0245513916015625, -0.00872802734375, 0.0165252685546875, -0.01477813720703125, -0.010589599609375, 0.06134033203125, 0.0292205810546875, -0.016357421875, -0.025238037109375, -0.0242156982421875, 0.042083740234375, -0.003719329833984375, 0.03955078125, 0.0229949951171875, 0.00450897216796875, 0.01419830322265625, 0.0034236907958984375, 0.02899169921875, 0.0255279541015625, -0.034088134765625, -0.036590576171875, -0.03570556640625, -0.00876617431640625, -0.07891845703125, -0.0166168212890625, 0.056549072265625, 0.01119232177734375, -0.0030040740966796875, -0.016876220703125, 0.0055389404296875, 0.007686614990234375, -0.01010894775390625, -0.0212860107421875, -0.0205535888671875, -0.0078277587890625, 0.0266265869140625, -0.0458984375, 0.0275726318359375, 0.039337158203125, 0.054351806640625, 0.0012617111206054688, -0.0074005126953125, -0.1036376953125, -0.00487518310546875, -0.0102386474609375, -0.054779052734375, 0.00975799560546875, 0.0020542144775390625, 0.0295257568359375, -0.01181793212890625, 0.053466796875, 0.0009255409240722656, -0.02435302734375, 0.0276336669921875, 0.03765869140625, 0.00968170166015625, -0.0302886962890625, -0.009307861328125, 0.0252838134765625, 0.045166015625, 0.0311279296875, -0.001766204833984375, 0.038604736328125, 0.0016279220581054688, -0.0316162109375, -0.00701141357421875, -0.039642333984375, -0.034332275390625, 0.04022216796875, -0.033843994140625, 0.0511474609375, 0.0270843505859375, -0.0038299560546875, -0.020050048828125, -0.00901031494140625, 0.0826416015625, 0.0117340087890625, -0.02960205078125, 0.01522064208984375, -0.036529541015625, 0.0247650146484375, -0.0423583984375, 0.007495880126953125, 0.0017232894897460938, -0.0621337890625, 0.002895355224609375, -0.027374267578125, -0.06292724609375, 0.0119781494140625, 0.043426513671875, -0.025604248046875, 0.02880859375, 0.017425537109375, -0.00731658935546875, -0.0027523040771484375, -0.040771484375, 0.033447265625, -0.059783935546875, -0.0171356201171875, -0.023284912109375, -0.118896484375, -0.062164306640625, -0.070068359375, 0.0372314453125, 0.030303955078125, 0.061676025390625, 0.01477813720703125, 0.043060302734375, -0.03692626953125, 0.0086669921875, -0.01352691650390625, -0.0223388671875, 0.0286407470703125, 0.01371002197265625, -0.021636962890625, -0.00370025634765625, -0.0287933349609375, -0.0173797607421875, 0.00844573974609375, -0.055633544921875, -0.032867431640625, -0.01934814453125, 0.0355224609375, 0.022705078125, 0.042633056640625, -0.0111083984375, 0.00408172607421875, 0.0008301734924316406, -0.01800537109375, 0.025482177734375, 0.005702972412109375, 0.0084686279296875, 0.0175323486328125, -0.0034008026123046875, -0.0225982666015625, 0.015411376953125, -0.00873565673828125, 0.0141754150390625, 0.0229644775390625, -0.00010263919830322266, -0.044708251953125, -0.00811767578125, -0.02752685546875, 0.021392822265625, -0.01397705078125, 0.053955078125, 0.004489898681640625, -0.045928955078125, -0.037872314453125, -0.0215301513671875, 0.00934600830078125, -0.0029773712158203125, 0.0011749267578125, -0.045318603515625, -0.003932952880859375, -0.023529052734375, -0.004703521728515625, -0.02984619140625, -0.041046142578125, 0.01654052734375, 0.008026123046875, -0.0011529922485351562, -0.033111572265625, -0.0181121826171875, 0.00879669189453125, 0.02850341796875, 0.006336212158203125, -0.066650390625, 0.031524658203125, -0.0164031982421875, 0.01226043701171875, -0.01195526123046875, 0.007114410400390625, 0.0010919570922851562, 0.03155517578125, -0.03802490234375, -0.041473388671875, -0.01558685302734375, 0.048614501953125, -0.0139007568359375, 0.03546142578125, 0.04718017578125, -0.045074462890625, 0.0450439453125, 0.056640625, 0.0447998046875, 0.099609375, 0.004150390625, -0.046600341796875, -0.0203399658203125, 0.0063323974609375, 0.0101318359375, -0.0127716064453125, 0.0234527587890625, -0.0589599609375, -0.034820556640625, -0.034149169921875, 0.002471923828125, -0.0115814208984375, -0.047882080078125, -0.0738525390625, 0.0936279296875, -0.0322265625, -0.028289794921875, -0.07763671875, 0.02783203125, -0.006015777587890625, -0.031097412109375, -0.0272979736328125, -0.0019330978393554688, -0.01345062255859375, 0.04522705078125, 0.0162506103515625, 0.024322509765625, 0.0203704833984375, 0.05853271484375, -0.01381683349609375, 0.052001953125, 0.0283966064453125, -0.0169219970703125, 0.0006136894226074219, -0.007732391357421875, 0.0301513671875, 0.03936767578125, -0.01690673828125, 0.007022857666015625, 0.01413726806640625, -0.032318115234375, -0.00943756103515625, -0.0207977294921875, -0.0263214111328125, -0.002834320068359375, 0.027679443359375, 0.06451416015625, 0.009796142578125, -0.0299530029296875, 0.0191192626953125, -0.0141143798828125, -0.0162506103515625, -0.00725555419921875, 0.0003383159637451172, -0.034027099609375, -0.006031036376953125, -0.006603240966796875, 0.0012083053588867188, 0.00957489013671875, -0.014923095703125, -0.00652313232421875, -0.0248565673828125, 0.0265350341796875, 0.006038665771484375, -0.028289794921875, 0.002063751220703125, 0.023468017578125, -0.024200439453125, 0.0026378631591796875, 0.0183563232421875, -0.00347900390625, 0.004150390625, 0.0244598388671875, -0.00020647048950195312, -0.050872802734375, 0.006381988525390625, 0.051361083984375, -0.00434112548828125, 0.052001953125, -0.032928466796875, -0.03173828125, -0.054779052734375, 0.0166473388671875, 0.04010009765625, 0.016754150390625, -0.058135986328125, 0.02569580078125, 0.055694580078125, -0.0032253265380859375, -0.031402587890625, -0.0250701904296875, -0.028594970703125, 0.0184326171875, -0.022552490234375, 0.0238189697265625, 0.02618408203125, -0.01401519775390625, -0.001331329345703125, 0.00493621826171875, -0.0209197998046875, -0.03173828125, 0.024566650390625, -0.0145263671875, -0.01276397705078125, 0.0237579345703125 ]
b8bd5c8d0493ce0ea4dc75f7770129ff4db473a5
Wordpress Stackexchange Q: WP_Query and next_posts_link I cannot figure out how to make next_posts_link() work within my custom WP_Query. Here is the function: function artists() { echo '<div id="artists">'; $args = array( 'post_type' => 'artist', 'posts_per_page' => 3, 'paged' => get_query_var( 'page' )); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); echo '<a class="artist" href="'.get_post_permalink().'">'; echo '<h3 class="artist-name">'.get_the_title().'</h3>'; $attachments = attachments_get_attachments(); $total_attachments = count( $attachments ); for( $i=0; $i<$total_attachments; $i++ ) { $thumb = wp_get_attachment_image_src( $attachments[$i]['id'], 'thumbnail' ); echo '<span class="thumb"><img src="'.$thumb[0].'" /></span>'; } echo '</a>'; endwhile; echo '</div>'; next_posts_link(); } Can anyone tell me what I am doing wrong? Thanks A: try passing max_num_pages to the function: next_posts_link('Older Entries »', $loop->max_num_pages);
Q: WP_Query and next_posts_link I cannot figure out how to make next_posts_link() work within my custom WP_Query. Here is the function: function artists() { echo '<div id="artists">'; $args = array( 'post_type' => 'artist', 'posts_per_page' => 3, 'paged' => get_query_var( 'page' )); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); echo '<a class="artist" href="'.get_post_permalink().'">'; echo '<h3 class="artist-name">'.get_the_title().'</h3>'; $attachments = attachments_get_attachments(); $total_attachments = count( $attachments ); for( $i=0; $i<$total_attachments; $i++ ) { $thumb = wp_get_attachment_image_src( $attachments[$i]['id'], 'thumbnail' ); echo '<span class="thumb"><img src="'.$thumb[0].'" /></span>'; } echo '</a>'; endwhile; echo '</div>'; next_posts_link(); } Can anyone tell me what I am doing wrong? Thanks A: try passing max_num_pages to the function: next_posts_link('Older Entries »', $loop->max_num_pages); A: next_posts_link and previous_posts_link , as well as several others functions, make use of a global variable called $wp_query. This variable is actually an instance of the WP_Query object. However, when you create our own instantiation of WP_Query, you don’t have this global variable $wp_query, which is why paging will not work. to fix that you trick $wp_query global //save old query $temp = $wp_query; //clear $wp_query; $wp_query= null; //create a new instance $wp_query = new WP_Query(); $args = array( 'post_type' => 'artist', 'posts_per_page' => 3, 'paged' => get_query_var( 'page' )); $wp_query->query($args); while ( $wp_query->have_posts() ) : $wp_query->the_post(); echo '<a class="artist" href="'.get_post_permalink().'">'; echo '<h3 class="artist-name">'.get_the_title().'</h3>'; $attachments = attachments_get_attachments(); $total_attachments = count( $attachments ); for( $i=0; $i<$total_attachments; $i++ ) { $thumb = wp_get_attachment_image_src( $attachments[$i]['id'], 'thumbnail' ); echo '<span class="thumb"><img src="'.$thumb[0].'" /></span>'; } echo '</a>'; endwhile; echo '</div>'; next_posts_link(); //clear again $wp_query = null; //reset $wp_query = $temp;
wordpress
{ "language": "en", "length": 260, "provenance": "stackexchange_00019.jsonl.gz:410463", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20424" }
[ 0.08660888671875, -0.008331298828125, 0.043914794921875, -0.0565185546875, 0.015472412109375, -0.022186279296875, 0.039031982421875, -0.035430908203125, 0.0262603759765625, 0.0289764404296875, -0.05242919921875, -0.0076904296875, -0.0187530517578125, 0.0003743171691894531, -0.02587890625, -0.037445068359375, 0.053192138671875, -0.054931640625, 0.0222930908203125, 0.003688812255859375, 0.01885986328125, 0.04095458984375, 0.030670166015625, 0.05731201171875, 0.0102691650390625, 0.03759765625, 0.0711669921875, -0.033538818359375, 0.01837158203125, -0.00691986083984375, 0.018585205078125, -0.049835205078125, 0.0177001953125, 0.034332275390625, -0.0284271240234375, 0.00920867919921875, 0.03143310546875, -0.0037384033203125, 0.0010509490966796875, 0.05010986328125, 0.01197052001953125, 0.005290985107421875, -0.017242431640625, -0.01065826416015625, -0.0251922607421875, -0.023284912109375, 0.0010461807250976562, -0.0312042236328125, 0.01323699951171875, 0.01535797119140625, 0.004791259765625, 0.033599853515625, 0.0097808837890625, 0.032318115234375, -0.003871917724609375, 0.00768280029296875, -0.005229949951171875, -0.0274505615234375, 0.01235198974609375, -0.0066680908203125, -0.007904052734375, 0.003753662109375, 0.0191497802734375, -0.00142669677734375, -0.00421905517578125, 0.008819580078125, 0.0264739990234375, 0.0228424072265625, -0.01045989990234375, -0.0286865234375, -0.0040130615234375, 0.00798797607421875, -0.00102996826171875, -0.028594970703125, -0.00209808349609375, 0.004566192626953125, -0.00896453857421875, -0.040740966796875, 0.005786895751953125, 0.00713348388671875, -0.0291290283203125, 0.0069122314453125, -0.058013916015625, 0.033599853515625, -0.01702880859375, 0.05120849609375, -0.0287322998046875, -0.024169921875, -0.0195770263671875, -0.01470184326171875, -0.0303192138671875, -0.01873779296875, 0.0273590087890625, -0.03863525390625, -0.044525146484375, -0.021484375, -0.01221466064453125, 0.015838623046875, 0.01512908935546875, 0.0091400146484375, -0.005954742431640625, -0.038330078125, 0.01358795166015625, -0.0355224609375, 0.015533447265625, 0.047210693359375, -0.0031948089599609375, 0.0306549072265625, 0.0574951171875, 0.0162353515625, 0.032012939453125, 0.016326904296875, -0.007778167724609375, 0.02569580078125, -0.02752685546875, -0.0239715576171875, -0.054046630859375, 0.020904541015625, -0.0078582763671875, 0.00923919677734375, -0.0198822021484375, 0.0002512931823730469, 0.00936126708984375, 0.00018143653869628906, 0.03790283203125, 0.0377197265625, -0.0015954971313476562, -0.031341552734375, 0.047943115234375, 0.04791259765625, -0.0408935546875, -0.01019287109375, 0.01079559326171875, -0.01534271240234375, 0.006031036376953125, -0.0304718017578125, 0.004070281982421875, -0.047088623046875, -0.0078887939453125, 0.02716064453125, -0.005702972412109375, -0.041259765625, -0.002574920654296875, -0.00957489013671875, 0.0258026123046875, 0.019073486328125, 0.003681182861328125, 0.0217742919921875, -0.0082244873046875, -0.023773193359375, 0.0210723876953125, -0.0286712646484375, 0.033111572265625, -0.01116180419921875, -0.00702667236328125, -0.040496826171875, 0.0223541259765625, -0.024688720703125, 0.00045037269592285156, -0.02685546875, 0.0258636474609375, 0.032135009765625, 0.043243408203125, -0.03857421875, -0.044677734375, -0.04876708984375, -0.0887451171875, -0.019287109375, 0.01904296875, 0.0653076171875, 0.0305023193359375, -0.060089111328125, -0.0151214599609375, 0.0048065185546875, -0.0223388671875, 0.00814056396484375, 0.002040863037109375, -0.007328033447265625, 0.031341552734375, 0.046112060546875, -0.020233154296875, -0.0270538330078125, 0.0615234375, -0.05126953125, -0.036895751953125, 0.048675537109375, 0.01042938232421875, 0.055511474609375, -0.01015472412109375, 0.01190948486328125, 0.036346435546875, 0.03082275390625, -0.0447998046875, 0.03228759765625, 0.003681182861328125, -0.038482666015625, 0.00551605224609375, -0.018341064453125, -0.0001342296600341797, 0.0034503936767578125, -0.0068359375, 0.023040771484375, -0.0006127357482910156, 0.018707275390625, -0.0223541259765625, 0.03363037109375, -0.01241302490234375, 0.042755126953125, -0.0010004043579101562, 0.0243072509765625, 0.0086212158203125, 0.0167694091796875, -0.0355224609375, 0.01282501220703125, -0.01593017578125, 0.00701141357421875, -0.0050506591796875, 0.0080108642578125, -0.021636962890625, 0.0182647705078125, -0.02130126953125, -0.0193939208984375, -0.0173187255859375, 0.0264434814453125, 0.06536865234375, -0.0179595947265625, -0.01551055908203125, -0.031524658203125, -0.0172271728515625, 0.018218994140625, -0.1209716796875, 0.050140380859375, 0.042572021484375, 0.0140533447265625, -0.03338623046875, 0.01221466064453125, 0.018798828125, -0.02899169921875, -0.01407623291015625, 0.04119873046875, 0.0445556640625, 0.0197906494140625, -0.03204345703125, -0.054840087890625, 0.04010009765625, -0.0277252197265625, 0.01029205322265625, -0.046630859375, -0.0266571044921875, 0.0199737548828125, 0.00919342041015625, 0.0211944580078125, 0.0249786376953125, 0.0158233642578125, 0.003936767578125, 0.052215576171875, 0.04541015625, 0.043243408203125, -0.04949951171875, 0.02618408203125, 0.0004372596740722656, -0.016143798828125, -0.03619384765625, -0.01151275634765625, 0.015228271484375, -0.00017881393432617188, 0.01473236083984375, -0.007686614990234375, -0.016815185546875, 0.0019426345825195312, 0.005496978759765625, -0.028106689453125, -0.0032825469970703125, 0.00966644287109375, -0.0291748046875, -0.0238189697265625, -0.031158447265625, 0.018341064453125, 0.0074615478515625, -0.0241546630859375, -0.00856781005859375, 0.053070068359375, -0.004688262939453125, -0.0062255859375, -0.03802490234375, 0.0037250518798828125, 0.0130615234375, 0.034637451171875, 0.0052337646484375, 0.0289764404296875, 0.04931640625, 0.0438232421875, -0.0034008026123046875, 0.03759765625, -0.021331787109375, 0.01343536376953125, -0.0211029052734375, -0.041656494140625, 0.041290283203125, -0.048095703125, 0.052703857421875, 0.060089111328125, -0.027069091796875, 0.031951904296875, -0.01509857177734375, -0.01953125, -0.0117340087890625, 0.0278778076171875, -0.010345458984375, -0.0699462890625, 0.0021152496337890625, -0.01169586181640625, 0.0268096923828125, 0.03961181640625, -0.0005717277526855469, -0.042510986328125, 0.005153656005859375, 0.0277099609375, -0.09246826171875, -0.0765380859375, 0.030426025390625, -0.07391357421875, 0.006519317626953125, 0.030517578125, -0.04443359375, -0.0262298583984375, 0.0799560546875, -0.004268646240234375, 0.00423431396484375, -0.0430908203125, -0.06475830078125, -0.07147216796875, -0.0872802734375, 0.0063323974609375, 0.01129150390625, 0.0218048095703125, 0.0009365081787109375, 0.0267486572265625, 0.0009975433349609375, -0.0245513916015625, 0.0198822021484375, 0.0086517333984375, -0.006290435791015625, -0.0080108642578125, -0.0124664306640625, 0.0198516845703125, -0.033935546875, -0.01119232177734375, 0.0672607421875, 0.0279693603515625, -0.0380859375, 0.031982421875, 0.007091522216796875, 0.0191192626953125, 0.048980712890625, 0.047332763671875, -0.0112762451171875, 0.05712890625, 0.0789794921875, -0.00823974609375, -0.027313232421875, -0.040863037109375, -0.0572509765625, 0.055328369140625, 0.024017333984375, 0.0134124755859375, 0.015655517578125, 0.027923583984375, -0.01091766357421875, 0.01157379150390625, -0.02911376953125, -0.0249786376953125, 0.0357666015625, 0.013916015625, 0.0237579345703125, 0.024078369140625, 0.0241241455078125, -0.003326416015625, 0.0218048095703125, 0.0087432861328125, 0.032684326171875, 0.01045989990234375, -0.01198577880859375, -0.04071044921875, -0.01519012451171875, 0.041748046875, 0.00772857666015625, 0.0168914794921875, -0.0186004638671875, -0.03192138671875, -0.0189361572265625, 0.043212890625, -0.037384033203125, -0.029541015625, 0.0223846435546875, 0.00848388671875, -0.006511688232421875, -0.01532745361328125, -0.0179443359375, -0.01320648193359375, -0.056732177734375, -0.0227203369140625, -0.039520263671875, -0.01953125, -0.00958251953125, 0.04486083984375, -0.0367431640625, -0.032958984375, 0.0213623046875, 0.00994873046875, -0.033111572265625, 0.04046630859375, -0.07391357421875, 0.0299072265625, -0.048065185546875, 0.01045989990234375, -0.10198974609375, -0.01476287841796875, -0.0037860870361328125, 0.0872802734375, 0.01666259765625, -0.03955078125, -0.06256103515625, 0.031707763671875, 0.0072784423828125, 0.0223846435546875, 0.01727294921875, -0.00013744831085205078, 0.0194854736328125, -0.00048732757568359375, 0.02178955078125, -0.0206756591796875, -0.0134124755859375, -0.036376953125, -0.0212249755859375, -0.006977081298828125, -0.042999267578125, -0.0272064208984375, -0.040740966796875, 0.00809478759765625, -0.0509033203125, -0.0170135498046875, 0.043304443359375, 0.073486328125, 0.0087738037109375, 0.02178955078125, -0.0501708984375, -0.044830322265625, 0.0338134765625, -0.028778076171875, -0.036651611328125, 0.00197601318359375, 0.0679931640625, 0.0294647216796875, -0.005756378173828125, -0.03173828125, 0.0307464599609375, 0.0172576904296875, -0.002071380615234375, 0.01434326171875, -0.01145172119140625, -0.0238800048828125, 0.03228759765625, -0.00824737548828125, -0.007442474365234375, -0.0131988525390625, 0.031829833984375, 0.0185394287109375, -0.0015897750854492188, -0.003753662109375, -0.0011138916015625, 0.02197265625, 0.0214996337890625, -0.0421142578125, -0.01374053955078125, -0.020111083984375, 0.051055908203125, -0.0255889892578125, 0.043731689453125, -0.045318603515625, -0.0032787322998046875, -0.0000010132789611816406, 0.0193328857421875, 0.09075927734375, 0.05914306640625, -0.0181121826171875, 0.04248046875, 0.023529052734375, -0.01036834716796875, 0.0204925537109375, 0.0213623046875, 0.0270233154296875, 0.045318603515625, -0.020111083984375, 0.00572967529296875, -0.01849365234375, -0.001678466796875, 0.048187255859375, 0.020111083984375, -0.001949310302734375, -0.04656982421875, -0.0032024383544921875, 0.00588226318359375, -0.0208892822265625, 0.013153076171875, 0.05865478515625, 0.006664276123046875, -0.016845703125, -0.0107879638671875, -0.006969451904296875, -0.023895263671875, -0.049896240234375, 0.022613525390625, 0.0026149749755859375, 0.006313323974609375, -0.0072174072265625, 0.10113525390625, 0.00913238525390625, 0.047393798828125, -0.028289794921875, 0.0018167495727539062, -0.0010824203491210938, 0.0240478515625, 0.02215576171875, 0.005367279052734375, -0.0035457611083984375, -0.0032520294189453125, 0.03582763671875, -0.043731689453125, -0.00969696044921875, 0.0241241455078125, 0.048675537109375, 0.043487548828125, 0.003086090087890625, -0.011566162109375, 0.0017595291137695312, -0.0352783203125, 0.036865234375, 0.058807373046875, -0.033660888671875, -0.00809478759765625, 0.03948974609375, 0.007579803466796875, -0.0011777877807617188, -0.0506591796875, 0.0426025390625, -0.0278778076171875, 0.05029296875, -0.043975830078125, 0.0060882568359375, 0.03155517578125, 0.0218658447265625, 0.0299224853515625, 0.0003864765167236328, -0.0009756088256835938, 0.029754638671875, 0.012237548828125, -0.032379150390625, -0.0192413330078125, 0.023712158203125, -0.0254669189453125, 0.0265045166015625, -0.053131103515625, 0.009765625, -0.057098388671875, -0.01409912109375, 0.08697509765625, 0.05291748046875, -0.0224609375, 0.029876708984375, -0.004047393798828125, 0.00457000732421875, 0.03509521484375, -0.0078277587890625, -0.0208587646484375, -0.04534912109375, 0.0289154052734375, 0.02862548828125, 0.00450897216796875, -0.0291595458984375, -0.01384735107421875, -0.004734039306640625, 0.0110321044921875, 0.042724609375, -0.0233612060546875, 0.0523681640625, 0.0491943359375, 0.0025005340576171875, 0.0166015625, 0.0020732879638671875, -0.040313720703125, 0.004886627197265625, 0.004390716552734375, -0.07208251953125, -0.0269775390625, 0.0178985595703125, -0.05450439453125, 0.00678253173828125, 0.004566192626953125, -0.011810302734375, 0.03265380859375, -0.0169219970703125, -0.00893402099609375, 0.002285003662109375, -0.01123046875, 0.01708984375, 0.01464080810546875, 0.046539306640625, -0.01873779296875, -0.01287078857421875, 0.01178741455078125, -0.032501220703125, 0.01444244384765625, 0.0196533203125, -0.019775390625, 0.007556915283203125, 0.0015726089477539062, 0.0131378173828125, 0.03948974609375, -0.0036487579345703125, 0.021728515625, 0.0233306884765625, 0.002147674560546875, 0.002140045166015625, -0.0033588409423828125, 0.040802001953125, 0.04119873046875, 0.06494140625, -0.0155181884765625, 0.0100860595703125, 0.01837158203125, -0.019439697265625, 0.0006680488586425781, -0.03173828125, 0.032958984375, 0.0283660888671875, -0.0102996826171875, -0.0020732879638671875, -0.0250701904296875, 0.018707275390625, -0.00455474853515625, 0.02386474609375, 0.010589599609375, 0.057647705078125, -0.00010377168655395508, 0.01285552978515625, 0.0288238525390625, -0.0163421630859375, 0.009857177734375, 0.00791168212890625, -0.0114898681640625, -0.002025604248046875, -0.05267333984375, -0.01244354248046875, 0.04815673828125, -0.035186767578125, -0.00778961181640625, -0.0087432861328125, -0.0264892578125, 0.006145477294921875, 0.01293182373046875, 0.04095458984375, -0.041259765625, 0.048248291015625, 0.002124786376953125, 0.00818634033203125, 0.0247955322265625, 0.02850341796875, 0.01226043701171875, -0.0092010498046875, 0.007152557373046875, -0.03363037109375, -0.01345062255859375, -0.0408935546875, 0.0020542144775390625, 0.050079345703125, -0.035919189453125, 0.035614013671875, 0.0158538818359375, -0.032196044921875, -0.017486572265625, 0.048583984375, 0.1298828125, -0.03570556640625, -0.03619384765625, 0.041717529296875, 0.01380157470703125, -0.04058837890625, -0.0172119140625, 0.0025920867919921875, -0.07086181640625, -0.052001953125, -0.0026111602783203125, -0.049957275390625, 0.00693511962890625, -0.02984619140625, -0.04864501953125, 0.08819580078125, -0.035888671875, 0.0479736328125, 0.0545654296875, 0.023101806640625, -0.017059326171875, 0.00710296630859375, -0.024627685546875, 0.021331787109375, -0.0033664703369140625, 0.0276947021484375, -0.052154541015625, -0.0103302001953125, 0.01036834716796875, 0.05364990234375, 0.036651611328125, 0.0052642822265625, -0.0222625732421875, -0.00894927978515625, 0.0589599609375, 0.0291748046875, -0.00803375244140625, 0.033172607421875, 0.032073974609375, 0.0113067626953125, 0.06719970703125, -0.031341552734375, 0.039154052734375, -0.040313720703125, 0.0292205810546875, 0.028656005859375, 0.01971435546875, 0.036346435546875, -0.023773193359375, 0.0125732421875, -0.0650634765625, -0.00791168212890625, 0.051910400390625, -0.028839111328125, -0.0015468597412109375, 0.0750732421875, 0.040313720703125, -0.0296173095703125, -0.0484619140625, -0.026275634765625, 0.03741455078125, -0.0013370513916015625, 0.0113983154296875, 0.036712646484375, 0.0174407958984375, 0.0455322265625, 0.005779266357421875, 0.0096893310546875, 0.00583648681640625, 0.0210113525390625, 0.07513427734375, 0.0143890380859375, 0.01360321044921875, -0.07196044921875, -0.02374267578125, 0.06793212890625, 0.08929443359375, -0.048553466796875, -0.007274627685546875, -0.002025604248046875, -0.006439208984375, 0.01507568359375, 0.001922607421875, 0.04296875, 0.0247802734375, -0.0012645721435546875, -0.042724609375, -0.0010366439819335938, 0.0241851806640625, 0.00316619873046875, -0.01003265380859375, -0.01314544677734375, -0.0203094482421875, -0.01351165771484375, -0.0153045654296875, 0.00795745849609375, 0.03289794921875, 0.0301666259765625, -0.0121002197265625, 0.0214691162109375, -0.0027446746826171875, 0.01181793212890625, 0.0116729736328125, -0.00972747802734375, -0.03826904296875, 0.0006680488586425781, -0.03680419921875, -0.05609130859375, -0.0006122589111328125, 0.04248046875, 0.0014934539794921875, 0.00829315185546875, -0.0004220008850097656, 0.0177459716796875, 0.021942138671875, -0.0054931640625, 0.023834228515625, -0.0161590576171875, -0.0251617431640625, -0.0296630859375, 0.0341796875, 0.0298004150390625, 0.010223388671875, 0.01593017578125, 0.0142364501953125, 0.03155517578125, -0.01221466064453125, 0.062469482421875, -0.00800323486328125, -0.00434112548828125, 0.022705078125, -0.0199737548828125, 0.086181640625, 0.02783203125, -0.07000732421875, -0.014556884765625, -0.0217132568359375, -0.0207672119140625, -0.0104522705078125, 0.005130767822265625, -0.01471710205078125, 0.03369140625, -0.029510498046875, -0.0173187255859375, -0.006298065185546875, 0.003299713134765625, 0.0099334716796875, 0.0006685256958007812, -0.00998687744140625, -0.0169525146484375, -0.0173797607421875, -0.0253143310546875, -0.0010843276977539062, 0.03289794921875, 0.0117950439453125, 0.0226287841796875, -0.0038852691650390625, 0.01442718505859375, 0.02093505859375, 0.0217132568359375, 0.0142974853515625, 0.00494384765625, 0.07708740234375, 0.0157470703125, 0.0090484619140625, -0.042572021484375, -0.0159149169921875, 0.0159149169921875, 0.01971435546875, -0.035491943359375, -0.0185089111328125, 0.01305389404296875, 0.0227203369140625, 0.02435302734375, 0.01348114013671875, -0.0272369384765625, -0.01259613037109375, -0.032073974609375, -0.037994384765625, 0.0318603515625, -0.00991058349609375, -0.0147552490234375, 0.040130615234375, 0.042724609375, -0.004535675048828125, 0.0201873779296875, -0.030548095703125, 0.031005859375, 0.0377197265625, 0.02789306640625, -0.018890380859375, -0.04107666015625, -0.0256500244140625, -0.006988525390625, -0.00351715087890625, -0.0037593841552734375, -0.0280303955078125, -0.0277099609375, -0.01151275634765625, 0.036102294921875, 0.043060302734375, 0.006008148193359375, 0.019287109375, 0.003200531005859375, -0.0389404296875, -0.0026950836181640625, -0.023101806640625, -0.0266571044921875, -0.055389404296875, 0.0170745849609375, 0.03839111328125, 0.0038909912109375, 0.01412200927734375, -0.0229644775390625, -0.006092071533203125, 0.021697998046875, 0.03265380859375, -0.08953857421875, 0.03564453125, 0.009857177734375, 0.028076171875, -0.0242462158203125, -0.0174407958984375, -0.00243377685546875, -0.013031005859375, 0.006099700927734375, -0.01555633544921875, -0.04736328125, 0.03375244140625, -0.01910400390625, 0.00505828857421875, 0.0006837844848632812, -0.01593017578125, 0.00783538818359375, 0.0123748779296875, -0.00557708740234375, 0.07025146484375, 0.0039043426513671875, -0.00466156005859375, 0.038818359375, 0.000032007694244384766, -0.029815673828125, -0.057708740234375, 0.01280975341796875, -0.046142578125, -0.004390716552734375, 0.036529541015625, -0.036956787109375, -0.004291534423828125, -0.04010009765625, -0.10357666015625, 0.028778076171875, -0.004985809326171875, -0.05169677734375, -0.05572509765625, 0.01396942138671875, 0.01296234130859375, 0.01371002197265625, -0.00983428955078125, -0.01401519775390625, -0.04815673828125, 0.004596710205078125, 0.03173828125, 0.0053253173828125, 0.03277587890625, -0.002162933349609375, -0.037689208984375, 0.0185699462890625, 0.00884246826171875, 0.0179901123046875, 0.019012451171875, -0.0098724365234375, 0.0290985107421875, 0.0239715576171875, -0.0258941650390625, -0.00522613525390625, 0.000629425048828125, 0.0237274169921875, -0.02374267578125, -0.0221710205078125, -0.01551055908203125, -0.00725555419921875, 0.07452392578125, 0.048919677734375, 0.0230255126953125, -0.026092529296875, 0.00762176513671875, 0.0143585205078125, -0.032928466796875, -0.025848388671875, 0.0266571044921875, -0.07537841796875, -0.052337646484375, 0.00832366943359375, 0.00472259521484375, -0.0093841552734375, -0.0018520355224609375, -0.02056884765625, -0.0253448486328125, 0.01348876953125, 0.0152130126953125, -0.02508544921875, 0.0183868408203125, 0.0423583984375, -0.03778076171875, 0.0014190673828125, -0.0201873779296875, 0.01126861572265625, 0.00878143310546875, -0.044769287109375, -0.005298614501953125, 0.01238250732421875, -0.0190887451171875, -0.0043792724609375, 0.0157928466796875, -0.019805908203125, 0.005130767822265625, -0.002651214599609375, 0.00504302978515625, 0.0191802978515625, -0.01142120361328125, -0.00846099853515625, -0.005405426025390625, 0.04095458984375, -0.00646209716796875, 0.06622314453125, -0.006805419921875, 0.030364990234375, 0.040863037109375, -0.0216522216796875, -0.03564453125, 0.0163116455078125, 0.0023632049560546875, -0.05267333984375, 0.01482391357421875, 0.01290130615234375, 0.0204620361328125, -0.00832366943359375, 0.01224517822265625, 0.0232696533203125, -0.00547027587890625, 0.0215911865234375 ]
278df0440a64625df32434589b6be0a4100a9ac5
Wordpress Stackexchange Q: Duplicate and change a Theme Widget Is there a way (a common one) to duplicate and change a theme widget ? I'm asking this because, I have this widget that displays the recent news and if we click, it will display ALL news, but I wish to create a new widget that lists the latest articles (posts with a category "articles"), and if we click, that lists ALL articles. Is there any widget like this that someone knows about ? If not, where should I look at in order to duplicate and change a theme widget ? Thanks a lot A: Widgets extend the Widget Class, search in the theme code for a class that extends WP_Widget. Copy/Paste it, rename it, and change what you'd like. You can also look in the file wp-includes/default-widgets.php and use one of those as a starting point.
Q: Duplicate and change a Theme Widget Is there a way (a common one) to duplicate and change a theme widget ? I'm asking this because, I have this widget that displays the recent news and if we click, it will display ALL news, but I wish to create a new widget that lists the latest articles (posts with a category "articles"), and if we click, that lists ALL articles. Is there any widget like this that someone knows about ? If not, where should I look at in order to duplicate and change a theme widget ? Thanks a lot A: Widgets extend the Widget Class, search in the theme code for a class that extends WP_Widget. Copy/Paste it, rename it, and change what you'd like. You can also look in the file wp-includes/default-widgets.php and use one of those as a starting point.
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:410468", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20434" }
[ 0.04205322265625, -0.01551055908203125, 0.032623291015625, -0.0006985664367675781, 0.0089263916015625, -0.0122528076171875, 0.053985595703125, -0.03631591796875, 0.005542755126953125, 0.04046630859375, -0.0262908935546875, 0.00963592529296875, -0.0108642578125, -0.0012521743774414062, -0.040435791015625, -0.033233642578125, 0.038482666015625, 0.0065155029296875, 0.026763916015625, -0.011505126953125, 0.0098724365234375, 0.0140838623046875, 0.023590087890625, 0.08636474609375, 0.003398895263671875, -0.0091552734375, 0.0625, 0.003265380859375, -0.006549835205078125, -0.0171356201171875, 0.033111572265625, -0.00710296630859375, 0.0219268798828125, 0.01312255859375, -0.0416259765625, 0.002330780029296875, 0.00933074951171875, 0.00435638427734375, -0.003658294677734375, 0.032012939453125, 0.0200958251953125, -0.003627777099609375, 0.0025730133056640625, -0.0074920654296875, -0.0212554931640625, -0.03472900390625, 0.039154052734375, -0.01161956787109375, 0.00626373291015625, -0.021484375, 0.02752685546875, -0.0404052734375, 0.041900634765625, -0.027374267578125, -0.0232391357421875, -0.00353240966796875, -0.00693511962890625, 0.005626678466796875, 0.0384521484375, -0.0173492431640625, -0.027740478515625, -0.034027099609375, 0.0200042724609375, -0.007282257080078125, 0.0005331039428710938, -0.00809478759765625, 0.028839111328125, 0.0120086669921875, -0.04876708984375, -0.0159149169921875, 0.044647216796875, -0.0195465087890625, -0.003864288330078125, -0.01308441162109375, 0.0003044605255126953, 0.0140838623046875, -0.0199127197265625, -0.0174407958984375, 0.01187896728515625, 0.013702392578125, 0.01068878173828125, 0.049774169921875, -0.01264190673828125, -0.0220489501953125, 0.01123809814453125, -0.010223388671875, -0.0098114013671875, -0.02838134765625, -0.01666259765625, -0.01468658447265625, -0.0035533905029296875, -0.05999755859375, -0.0219268798828125, 0.02001953125, 0.0245208740234375, -0.042633056640625, -0.01412200927734375, 0.046905517578125, -0.03045654296875, 0.0421142578125, -0.039947509765625, -0.00916290283203125, 0.0222625732421875, -0.053558349609375, -0.005489349365234375, 0.024505615234375, 0.0009613037109375, 0.01413726806640625, 0.048492431640625, 0.046630859375, 0.006801605224609375, 0.0401611328125, 0.016845703125, -0.01090240478515625, -0.033477783203125, 0.03326416015625, 0.019378662109375, 0.00213623046875, 0.0194854736328125, 0.032623291015625, 0.01558685302734375, 0.0361328125, 0.03741455078125, 0.0025196075439453125, 0.005767822265625, 0.0274200439453125, -0.0262298583984375, -0.06048583984375, 0.0386962890625, -0.032318115234375, -0.04144287109375, -0.0047149658203125, 0.07342529296875, 0.0693359375, 0.048736572265625, -0.0005388259887695312, 0.0279998779296875, 0.0200958251953125, 0.012664794921875, 0.026458740234375, 0.0002713203430175781, -0.0297698974609375, 0.0087432861328125, 0.003452301025390625, 0.059722900390625, 0.01837158203125, 0.0137481689453125, -0.000021755695343017578, 0.025146484375, 0.01971435546875, -0.016265869140625, -0.0206146240234375, 0.009368896484375, -0.0019741058349609375, 0.03668212890625, -0.05352783203125, 0.046142578125, -0.038299560546875, 0.031768798828125, -0.029205322265625, 0.0205841064453125, -0.03363037109375, -0.03411865234375, -0.034149169921875, -0.050567626953125, 0.0157012939453125, -0.0135345458984375, 0.020416259765625, 0.0167388916015625, 0.0477294921875, 0.0219268798828125, -0.0192413330078125, 0.0089263916015625, 0.004985809326171875, -0.0161285400390625, 0.0011138916015625, -0.040863037109375, -0.0003349781036376953, 0.028167724609375, 0.004077911376953125, -0.0248565673828125, -0.04669189453125, -0.012054443359375, 0.0164794921875, -0.034210205078125, -0.0157623291015625, 0.0054779052734375, 0.044036865234375, 0.03375244140625, 0.0175933837890625, 0.01232147216796875, -0.037353515625, -0.02447509765625, -0.022064208984375, -0.00139617919921875, 0.01081085205078125, -0.006256103515625, 0.02069091796875, -0.011383056640625, -0.02471923828125, 0.027191162109375, 0.0258636474609375, -0.0197296142578125, 0.01459503173828125, -0.055816650390625, 0.0254669189453125, -0.01012420654296875, 0.041107177734375, 0.0145111083984375, 0.0416259765625, 0.01107025146484375, 0.0249786376953125, -0.01611328125, -0.027435302734375, -0.034576416015625, -0.04205322265625, 0.00011640787124633789, 0.0343017578125, 0.006259918212890625, 0.0125885009765625, -0.0012502670288085938, 0.0036487579345703125, 0.0038356781005859375, 0.0184478759765625, 0.046661376953125, -0.004680633544921875, -0.031829833984375, -0.0323486328125, -0.00521087646484375, 0.0012178421020507812, -0.08709716796875, 0.060516357421875, 0.0079345703125, 0.0180511474609375, -0.0079193115234375, 0.0033245086669921875, -0.0093841552734375, -0.0302886962890625, 0.0029811859130859375, 0.035888671875, 0.034912109375, -0.00372314453125, -0.00804901123046875, 0.00894927978515625, 0.0117950439453125, -0.048065185546875, 0.011505126953125, 0.006732940673828125, 0.03778076171875, 0.058380126953125, 0.01483917236328125, -0.0223846435546875, 0.0203704833984375, -0.03460693359375, 0.0166473388671875, 0.016082763671875, 0.00336456298828125, 0.052642822265625, -0.058837890625, 0.018707275390625, -0.024139404296875, 0.009765625, 0.0128631591796875, -0.0028781890869140625, 0.053619384765625, -0.00864410400390625, 0.029052734375, 0.007297515869140625, -0.027862548828125, -0.00911712646484375, 0.011383056640625, 0.007678985595703125, 0.01244354248046875, 0.049591064453125, -0.006031036376953125, 0.0211334228515625, -0.0011873245239257812, -0.0232391357421875, 0.0018281936645507812, 0.0318603515625, -0.00513458251953125, 0.055511474609375, -0.04217529296875, -0.024261474609375, -0.0283203125, -0.021087646484375, -0.021575927734375, -0.00787353515625, -0.012054443359375, 0.02301025390625, 0.0179595947265625, 0.0391845703125, -0.037261962890625, 0.058258056640625, 0.0008325576782226562, 0.00994110107421875, 0.00785064697265625, 0.0002815723419189453, 0.01274871826171875, -0.004688262939453125, 0.036285400390625, 0.050750732421875, -0.0022144317626953125, -0.0013751983642578125, 0.0022792816162109375, 0.0183868408203125, 0.0033626556396484375, -0.01220703125, -0.01386260986328125, 0.028289794921875, -0.0870361328125, 0.0223388671875, 0.04742431640625, 0.052520751953125, 0.01216888427734375, -0.022216796875, -0.00881195068359375, 0.0418701171875, -0.046600341796875, -0.0682373046875, -0.003753662109375, -0.031951904296875, 0.0328369140625, 0.0185394287109375, -0.0083465576171875, -0.033905029296875, 0.056549072265625, 0.01287078857421875, 0.00850677490234375, -0.0299835205078125, -0.045928955078125, -0.03485107421875, -0.0635986328125, -0.0221405029296875, -0.00511932373046875, 0.0206298828125, 0.002960205078125, 0.00888824462890625, -0.0179901123046875, -0.052520751953125, -0.0139007568359375, 0.06793212890625, 0.02069091796875, 0.0022792816162109375, 0.056671142578125, -0.026275634765625, -0.0125274658203125, -0.0010967254638671875, -0.0005006790161132812, 0.050445556640625, -0.047698974609375, -0.004177093505859375, 0.0027294158935546875, -0.01361846923828125, 0.0160980224609375, 0.04150390625, -0.008758544921875, 0.0176849365234375, 0.0450439453125, -0.022064208984375, -0.0355224609375, 0.0269927978515625, -0.02685546875, -0.0067291259765625, -0.0239105224609375, -0.0018930435180664062, 0.018402099609375, 0.0270843505859375, -0.0256805419921875, 0.00926971435546875, 0.00897216796875, -0.038421630859375, 0.06884765625, 0.0002161264419555664, -0.0262603759765625, -0.0012493133544921875, -0.03729248046875, -0.046234130859375, 0.072998046875, -0.009002685546875, 0.00579833984375, -0.0089569091796875, 0.05584716796875, 0.0175933837890625, -0.050567626953125, 0.024017333984375, -0.07440185546875, 0.00002002716064453125, -0.018341064453125, 0.006366729736328125, 0.030426025390625, 0.08538818359375, -0.07269287109375, -0.0203094482421875, -0.0010366439819335938, 0.028778076171875, -0.00434112548828125, -0.037384033203125, -0.01666259765625, -0.041473388671875, -0.10296630859375, 0.01953125, 0.0160369873046875, -0.0220947265625, -0.02850341796875, 0.05059814453125, -0.06585693359375, -0.015655517578125, 0.052337646484375, -0.0377197265625, 0.0186767578125, 0.045989990234375, -0.0135345458984375, 0.025848388671875, -0.054901123046875, -0.0091552734375, -0.042755126953125, -0.0009794235229492188, -0.0865478515625, 0.06634521484375, 0.05877685546875, -0.033233642578125, -0.0177154541015625, 0.0041656494140625, 0.006534576416015625, -0.0107421875, 0.03045654296875, 0.01251983642578125, 0.01251220703125, 0.0182342529296875, 0.01088714599609375, -0.0311279296875, 0.0003693103790283203, -0.0262908935546875, -0.038330078125, 0.01065826416015625, -0.04229736328125, 0.029876708984375, -0.0223846435546875, -0.02593994140625, -0.0247802734375, -0.0284881591796875, -0.005916595458984375, 0.0159454345703125, -0.0105743408203125, 0.0171051025390625, -0.01177978515625, -0.0274505615234375, 0.00788116455078125, -0.022125244140625, -0.058349609375, 0.02716064453125, 0.0714111328125, 0.0310821533203125, -0.0013093948364257812, -0.057342529296875, -0.0277557373046875, 0.023651123046875, 0.003021240234375, -0.02874755859375, 0.0017719268798828125, -0.01116180419921875, -0.00452423095703125, -0.0207366943359375, -0.0222625732421875, 0.0296478271484375, 0.036041259765625, 0.029754638671875, -0.00260162353515625, -0.0214385986328125, 0.01526641845703125, -0.0125885009765625, 0.041717529296875, -0.01116943359375, -0.0016527175903320312, -0.00249481201171875, 0.03472900390625, -0.01456451416015625, -0.01415252685546875, -0.028472900390625, 0.0177154541015625, -0.02105712890625, 0.038909912109375, 0.01114654541015625, 0.00460052490234375, 0.011962890625, -0.033843994140625, 0.04119873046875, -0.008392333984375, -0.0013952255249023438, 0.03228759765625, -0.0150909423828125, 0.0066070556640625, 0.0220489501953125, -0.0294952392578125, -0.030914306640625, -0.023284912109375, 0.058258056640625, 0.041900634765625, -0.051544189453125, 0.042572021484375, 0.00848388671875, -0.0020084381103515625, 0.01312255859375, 0.00740814208984375, 0.0004565715789794922, 0.01276397705078125, -0.0357666015625, 0.007671356201171875, 0.0234527587890625, -0.020965576171875, -0.030731201171875, -0.0284881591796875, 0.0014514923095703125, -0.0246734619140625, 0.03961181640625, 0.001567840576171875, 0.0031890869140625, 0.020782470703125, -0.0214996337890625, 0.07305908203125, 0.053985595703125, 0.0020656585693359375, 0.0013208389282226562, 0.0198211669921875, 0.0104827880859375, -0.0304412841796875, -0.00980377197265625, -0.00382232666015625, -0.006649017333984375, 0.02703857421875, 0.0132293701171875, -0.0022029876708984375, 0.006252288818359375, 0.000980377197265625, -0.00604248046875, 0.002986907958984375, -0.0144500732421875, -0.0072021484375, -0.001605987548828125, 0.0159912109375, 0.0006008148193359375, -0.0098876953125, -0.0105133056640625, -0.01253509521484375, -0.02294921875, -0.060211181640625, -0.0118255615234375, 0.004810333251953125, -0.00481414794921875, -0.00403594970703125, -0.014678955078125, -0.009246826171875, -0.01544952392578125, 0.0097503662109375, -0.1053466796875, -0.0218963623046875, -0.0013113021850585938, 0.00830078125, 0.00830841064453125, -0.00954437255859375, 0.084716796875, -0.027252197265625, -0.050933837890625, -0.00960540771484375, 0.00870513916015625, 0.00882720947265625, -0.00109100341796875, -0.041229248046875, 0.0005316734313964844, -0.053253173828125, -0.0225067138671875, -0.08685302734375, -0.05303955078125, -0.055694580078125, 0.0023479461669921875, 0.034698486328125, 0.02587890625, -0.022216796875, -0.053680419921875, 0.0114593505859375, 0.0042266845703125, 0.0217132568359375, 0.03033447265625, -0.00923919677734375, 0.02703857421875, 0.013671875, 0.040496826171875, -0.00879669189453125, -0.021820068359375, -0.04241943359375, -0.0020275115966796875, -0.00016760826110839844, -0.01617431640625, 0.0006780624389648438, 0.006328582763671875, -0.038543701171875, -0.031951904296875, 0.0285797119140625, -0.0086212158203125, 0.031951904296875, -0.04974365234375, 0.0019989013671875, -0.028961181640625, 0.0031414031982421875, -0.08636474609375, -0.0165252685546875, 0.0242919921875, -0.0435791015625, -0.046142578125, 0.0182647705078125, 0.0257415771484375, -0.016693115234375, -0.00612640380859375, -0.035003662109375, 0.0128173828125, -0.0777587890625, 0.08843994140625, 0.03729248046875, 0.00470733642578125, 0.040863037109375, -0.015106201171875, 0.0303497314453125, 0.035858154296875, 0.014404296875, 0.01168060302734375, 0.01453399658203125, 0.06573486328125, 0.00324249267578125, -0.0103607177734375, 0.0251922607421875, -0.039642333984375, -0.037872314453125, 0.005413055419921875, 0.0133209228515625, -0.024810791015625, 0.00971221923828125, 0.024169921875, 0.03778076171875, -0.032562255859375, 0.042816162109375, -0.031280517578125, -0.066650390625, 0.0231475830078125, 0.0009675025939941406, 0.019989013671875, 0.02752685546875, 0.005001068115234375, -0.0005612373352050781, -0.0172119140625, -0.0006046295166015625, 0.0160675048828125, -0.02313232421875, -0.00493621826171875, 0.0292816162109375, 0.01314544677734375, -0.01119232177734375, -0.0262908935546875, -0.017578125, -0.036529541015625, -0.051483154296875, -0.0037441253662109375, -0.018951416015625, -0.00518035888671875, -0.05352783203125, 0.0196685791015625, 0.051422119140625, 0.05096435546875, -0.01297760009765625, 0.015838623046875, 0.01470947265625, 0.0479736328125, 0.0186920166015625, 0.0229034423828125, 0.024444580078125, 0.01039886474609375, 0.002666473388671875, -0.0018901824951171875, -0.0276031494140625, -0.01546478271484375, -0.022918701171875, -0.00133514404296875, 0.11767578125, -0.053863525390625, -0.0118408203125, 0.0267181396484375, 0.026824951171875, -0.0158843994140625, 0.0105133056640625, 0.037750244140625, -0.05609130859375, -0.01296234130859375, 0.00034689903259277344, -0.00927734375, 0.007843017578125, 0.0022563934326171875, -0.050628662109375, 0.10986328125, 0.0268096923828125, 0.0006203651428222656, 0.02288818359375, 0.051666259765625, -0.044586181640625, 0.020599365234375, -0.0256195068359375, 0.047760009765625, 0.0008492469787597656, 0.005046844482421875, 0.0111846923828125, 0.02130126953125, 0.0004260540008544922, -0.0079193115234375, 0.01395416259765625, 0.006130218505859375, -0.0002827644348144531, 0.01519775390625, 0.041473388671875, 0.0305023193359375, -0.0020122528076171875, 0.033477783203125, -0.007076263427734375, 0.0263519287109375, 0.0230712890625, -0.038818359375, 0.031463623046875, -0.0081634521484375, -0.01203155517578125, 0.027008056640625, 0.0163116455078125, 0.02001953125, -0.02117919921875, 0.0250091552734375, -0.0271759033203125, -0.0118560791015625, 0.030487060546875, -0.01172637939453125, -0.00963592529296875, 0.0389404296875, 0.0445556640625, -0.0085296630859375, 0.03509521484375, -0.046844482421875, 0.0457763671875, 0.0177459716796875, 0.006443023681640625, -0.017303466796875, 0.004375457763671875, 0.041229248046875, 0.01241302490234375, 0.0022563934326171875, 0.05059814453125, -0.01226043701171875, 0.039825439453125, 0.051055908203125, 0.0328369140625, -0.005279541015625, 0.0081329345703125, 0.03973388671875, 0.047698974609375, -0.037506103515625, -0.06536865234375, 0.01152801513671875, 0.007080078125, 0.0099639892578125, 0.02459716796875, 0.0184783935546875, -0.03619384765625, 0.0186767578125, -0.045318603515625, -0.0249786376953125, 0.05072021484375, 0.0255584716796875, -0.0020771026611328125, -0.0125885009765625, -0.0030307769775390625, -0.023773193359375, -0.06683349609375, 0.0274505615234375, 0.0205078125, 0.05316162109375, 0.006900787353515625, 0.05499267578125, 0.0137481689453125, -0.020233154296875, -0.01210784912109375, 0.0204925537109375, -0.00875091552734375, 0.024169921875, -0.041473388671875, -0.05859375, 0.0628662109375, 0.033294677734375, 0.004779815673828125, 0.021759033203125, 0.03497314453125, 0.03643798828125, -0.0177764892578125, -0.0098114013671875, 0.0224609375, -0.016082763671875, 0.0217742919921875, -0.041046142578125, -0.004589080810546875, -0.0245361328125, -0.0189208984375, -0.01042938232421875, -0.0011749267578125, 0.0098724365234375, -0.007587432861328125, 0.04736328125, -0.006603240966796875, 0.00762939453125, 0.039276123046875, -0.031463623046875, 0.0478515625, -0.005096435546875, -0.1170654296875, -0.006511688232421875, -0.042694091796875, -0.07928466796875, 0.035430908203125, 0.039398193359375, -0.058807373046875, 0.003265380859375, -0.01033782958984375, 0.01053619384765625, 0.013763427734375, -0.04534912109375, 0.02288818359375, 0.01293182373046875, 0.0026531219482421875, 0.0281524658203125, -0.046600341796875, -0.029388427734375, -0.0015172958374023438, 0.045257568359375, 0.029693603515625, 0.004886627197265625, 0.03436279296875, 0.0281982421875, -0.00984954833984375, 0.02410888671875, -0.032867431640625, -0.050445556640625, 0.092529296875, -0.020965576171875, -0.01558685302734375, -0.005390167236328125, -0.0238189697265625, -0.031494140625, 0.041595458984375, -0.0645751953125, -0.01837158203125, -0.0501708984375, 0.03424072265625, -0.032135009765625, -0.0032634735107421875, -0.0274658203125, 0.035186767578125, 0.039825439453125, -0.00389862060546875, 0.0224609375, -0.045074462890625, -0.037445068359375, -0.015350341796875, 0.0205535888671875, -0.0148162841796875, -0.0101776123046875, 0.053955078125, -0.050079345703125, 0.0139617919921875, 0.02191162109375, -0.033782958984375, 0.0250396728515625, -0.0180816650390625, 0.0050201416015625, -0.0049896240234375, 0.07177734375, -0.024749755859375, 0.0146331787109375, -0.0020160675048828125, -0.00629425048828125, -0.012786865234375, -0.06170654296875, -0.007701873779296875, 0.04327392578125, -0.004550933837890625, -0.0159912109375, -0.0180511474609375, -0.0184173583984375, -0.0230255126953125, -0.01050567626953125, 0.0200958251953125, -0.01033782958984375, -0.0187225341796875, -0.062286376953125, 0.0060882568359375, 0.01432037353515625, 0.00795745849609375, -0.0628662109375, 0.0728759765625, -0.0160064697265625, 0.0018100738525390625, -0.01160430908203125, -0.050384521484375, 0.021331787109375, 0.037811279296875, -0.00936126708984375, -0.0023956298828125, -0.038055419921875, -0.02337646484375, -0.041534423828125, 0.025238037109375, 0.0318603515625, -0.036163330078125, 0.005245208740234375, 0.00841522216796875, 0.0225982666015625, 0.050537109375, 0.0224761962890625, 0.005401611328125, 0.0278778076171875, 0.0131988525390625, -0.051513671875, -0.044647216796875, 0.024322509765625, -0.027801513671875, -0.005916595458984375, 0.002582550048828125, -0.04327392578125, -0.03875732421875, -0.06475830078125, -0.09112548828125, 0.029449462890625, 0.007495880126953125, -0.035125732421875, -0.0389404296875, -0.011688232421875, -0.0161590576171875, -0.0182037353515625, -0.01250457763671875, 0.00394439697265625, -0.017852783203125, 0.03662109375, 0.023162841796875, 0.05322265625, -0.00728607177734375, 0.0157012939453125, -0.0634765625, 0.01373291015625, -0.039215087890625, 0.04534912109375, -0.0246734619140625, 0.005352020263671875, -0.0093994140625, 0.03973388671875, -0.0228271484375, -0.054443359375, -0.0136566162109375, 0.0227813720703125, -0.011962890625, 0.0003800392150878906, -0.035308837890625, -0.008056640625, 0.068115234375, 0.06597900390625, 0.01763916015625, -0.0335693359375, -0.0012035369873046875, 0.0186920166015625, -0.0311431884765625, -0.002330780029296875, 0.021881103515625, -0.06640625, -0.030487060546875, 0.02081298828125, -0.0164031982421875, 0.0213165283203125, 0.0033473968505859375, -0.02001953125, 0.005863189697265625, 0.01514434814453125, 0.0043792724609375, -0.054656982421875, 0.03985595703125, 0.076416015625, -0.04058837890625, 0.05828857421875, -0.015594482421875, -0.001575469970703125, 0.086181640625, -0.0222015380859375, -0.03692626953125, -0.025787353515625, 0.005855560302734375, 0.004062652587890625, -0.0142974853515625, 0.03485107421875, 0.006336212158203125, 0.01305389404296875, -0.01477813720703125, 0.020751953125, -0.00035071372985839844, 0.01190185546875, -0.0025119781494140625, 0.0233917236328125, -2.980232238769531e-7, 0.0867919921875, -0.0079803466796875, 0.046173095703125, 0.001789093017578125, 0.040740966796875, -0.0029811859130859375, 0.0027637481689453125, 0.033966064453125, -0.035430908203125, 0.01001739501953125, 0.01495361328125, 0.0264129638671875, -0.032623291015625, 0.022552490234375, 0.02728271484375, 0.003002166748046875, 0.0181732177734375 ]
4ded3ed359597619b4d95adc51a4da5920d2c0c3
Wordpress Stackexchange Q: Using wordpress post data as input for google visualisations I'm trying to use wordpress post data (eg title, link, custom fields) as a data source for google visualisations. I want to be able to take the wordpress data for all posts and visualise using the "table" and "motion" charts. Related doc http://code.google.com/apis/chart/interactive/docs/gallery/table.html http://code.google.com/apis/chart/interactive/docs/gallery/motion.HTML How do I loop though all my posts to create an array that that will work as a data source? I want to get post titles, post urls and associated custom fields for graphing. Hope you can help! A: Well you can just use the WordPress loop with a custom query to throw all the data you need into arrays. For example if you want all the post titles in an array (using get_posts); $all_posts = get_posts('numberposts=-1'); $all_titles = array(); foreach( $all_posts as $all_post ) { $all_titles[] = $all_post->post_title; } As for using the data in Google charts that is up to you, but I would recommend using JSON ( using json_encode), XML or one of the many PHP chart wrappers.
Q: Using wordpress post data as input for google visualisations I'm trying to use wordpress post data (eg title, link, custom fields) as a data source for google visualisations. I want to be able to take the wordpress data for all posts and visualise using the "table" and "motion" charts. Related doc http://code.google.com/apis/chart/interactive/docs/gallery/table.html http://code.google.com/apis/chart/interactive/docs/gallery/motion.HTML How do I loop though all my posts to create an array that that will work as a data source? I want to get post titles, post urls and associated custom fields for graphing. Hope you can help! A: Well you can just use the WordPress loop with a custom query to throw all the data you need into arrays. For example if you want all the post titles in an array (using get_posts); $all_posts = get_posts('numberposts=-1'); $all_titles = array(); foreach( $all_posts as $all_post ) { $all_titles[] = $all_post->post_title; } As for using the data in Google charts that is up to you, but I would recommend using JSON ( using json_encode), XML or one of the many PHP chart wrappers.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:410470", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20440" }
[ 0.05926513671875, 0.00548553466796875, 0.0028476715087890625, -0.03668212890625, 0.0165252685546875, -0.02532958984375, 0.056976318359375, -0.0142974853515625, 0.026580810546875, 0.01091766357421875, -0.024444580078125, 0.00942230224609375, -0.0513916015625, -0.01554107666015625, -0.027252197265625, -0.027252197265625, 0.0576171875, -0.04779052734375, 0.043060302734375, 0.0070953369140625, -0.015777587890625, 0.051788330078125, 0.07537841796875, 0.040496826171875, 0.0142669677734375, 0.0263671875, 0.038177490234375, -0.031829833984375, 0.007740020751953125, -0.022552490234375, 0.0159759521484375, -0.006412506103515625, 0.02587890625, 0.0107269287109375, -0.0181884765625, 0.0313720703125, 0.00934600830078125, -0.01166534423828125, 0.00849151611328125, 0.021087646484375, 0.020599365234375, -0.0011968612670898438, 0.048614501953125, -0.007595062255859375, -0.007415771484375, 0.0215301513671875, -0.00435638427734375, -0.0133056640625, -0.00611114501953125, 0.0305633544921875, 0.034820556640625, 0.00799560546875, 0.037506103515625, 0.032318115234375, 0.004268646240234375, -0.00189971923828125, 0.0136260986328125, -0.0175018310546875, 0.05255126953125, -0.05279541015625, -0.05352783203125, -0.048828125, 0.055511474609375, -0.005779266357421875, 0.0101470947265625, -0.0006895065307617188, 0.0118408203125, 0.00623321533203125, 0.01605224609375, 0.0164947509765625, 0.03564453125, -0.0157318115234375, -0.0032901763916015625, -0.029815673828125, 0.01451873779296875, -0.000007927417755126953, -0.002948760986328125, -0.010162353515625, -0.009002685546875, 0.0189361572265625, 0.0137939453125, 0.01139068603515625, -0.0014438629150390625, -0.0007433891296386719, -0.0157012939453125, -0.0033397674560546875, -0.025299072265625, -0.0156402587890625, -0.020172119140625, -0.04315185546875, -0.0125579833984375, 0.002056121826171875, -0.0634765625, 0.007801055908203125, 0.01049041748046875, -0.046630859375, -0.004253387451171875, -0.0037078857421875, -0.0239715576171875, 0.0188751220703125, -0.007320404052734375, -0.0162811279296875, 0.0291900634765625, -0.01552581787109375, 0.0301513671875, -0.0008878707885742188, -0.0323486328125, -0.041290283203125, 0.052764892578125, 0.029022216796875, -0.016632080078125, 0.056304931640625, 0.006656646728515625, 0.01885986328125, -0.0220794677734375, -0.013427734375, -0.040252685546875, 0.0085601806640625, -0.019866943359375, -0.005481719970703125, -0.0167388916015625, -0.0012311935424804688, -0.031951904296875, 0.013916015625, 0.025360107421875, 0.007404327392578125, -0.004489898681640625, 0.0171051025390625, -0.04046630859375, 0.03741455078125, -0.0269317626953125, 0.021820068359375, 0.061553955078125, 0.051116943359375, 0.0011692047119140625, -0.0175018310546875, -0.025482177734375, -0.04302978515625, -0.033203125, 0.0197601318359375, 0.003063201904296875, -0.031005859375, 0.0093231201171875, -0.008026123046875, 0.046356201171875, 0.007305145263671875, 0.0191192626953125, 0.01385498046875, -0.00238037109375, -0.01078033447265625, 0.0199432373046875, 0.0283966064453125, -0.00850677490234375, 0.04010009765625, 0.01568603515625, -0.0030574798583984375, 0.037841796875, -0.0261077880859375, 0.0281524658203125, -0.033905029296875, 0.00933074951171875, -0.01348876953125, 0.004070281982421875, -0.023345947265625, -0.0174713134765625, 0.0042877197265625, -0.0196685791015625, -0.01204681396484375, 0.031890869140625, 0.002902984619140625, 0.0060882568359375, 0.004535675048828125, 0.052337646484375, 0.01580810546875, 0.005157470703125, 0.02142333984375, -0.03369140625, -0.0305938720703125, 0.034332275390625, 0.04974365234375, 0.0003173351287841797, -0.029571533203125, -0.00286102294921875, -0.0028171539306640625, 0.00231170654296875, 0.02166748046875, 0.0159912109375, 0.017669677734375, -0.020294189453125, 0.0313720703125, 0.00897979736328125, 0.038543701171875, -0.007694244384765625, 0.01354217529296875, -0.014739990234375, -0.035491943359375, 0.01149749755859375, 0.0008311271667480469, -0.0128021240234375, 0.0008983612060546875, -0.01064300537109375, 0.0022754669189453125, 0.01032257080078125, 0.0321044921875, -0.0169525146484375, 0.024322509765625, -0.021881103515625, 0.02313232421875, -0.0577392578125, 0.045501708984375, 0.06060791015625, 0.0200958251953125, -0.0816650390625, 0.056488037109375, 0.044525146484375, -0.0179595947265625, -0.00534820556640625, 0.01483154296875, -0.004734039306640625, 0.0000896453857421875, 0.01105499267578125, -0.053741455078125, 0.004482269287109375, 0.035186767578125, 0.07086181640625, -0.03924560546875, -0.0137176513671875, -0.0294342041015625, 0.058563232421875, -0.02679443359375, 0.00685882568359375, 0.06292724609375, 0.01470947265625, 0.01496124267578125, -0.0225830078125, -0.04205322265625, -0.00493621826171875, -0.051544189453125, 0.0297088623046875, 0.061004638671875, 0.0271759033203125, 0.0377197265625, -0.00024771690368652344, -0.01044464111328125, 0.03289794921875, -0.0003407001495361328, 0.020233154296875, -0.040069580078125, -0.004070281982421875, 0.046478271484375, -0.02642822265625, 0.0458984375, 0.005550384521484375, -0.02606201171875, 0.0285491943359375, 0.05413818359375, 0.0323486328125, 0.0103912353515625, -0.024261474609375, 0.0268707275390625, -0.0029544830322265625, 0.0433349609375, -0.0283966064453125, 0.0160980224609375, 0.033905029296875, 0.01477813720703125, 0.034576416015625, 0.039642333984375, -0.038299560546875, 0.0169219970703125, 0.013275146484375, 0.0037975311279296875, 0.0185699462890625, 0.0277557373046875, 0.0098724365234375, 0.023345947265625, -0.0225067138671875, -0.018585205078125, 0.016357421875, 0.0206451416015625, -0.005405426025390625, 0.0011091232299804688, -0.0228118896484375, -0.00555419921875, 0.0253753662109375, -0.04486083984375, -0.00251007080078125, 0.0008320808410644531, 0.00847625732421875, -0.003963470458984375, -0.0011701583862304688, 0.02545166015625, -0.03070068359375, 0.058868408203125, 0.005382537841796875, -0.0239105224609375, 0.044464111328125, -0.0462646484375, 0.0307464599609375, -0.0095062255859375, 0.0526123046875, 0.0775146484375, 0.01297760009765625, -0.0008387565612792969, -0.0296173095703125, 0.01424407958984375, -0.0016193389892578125, -0.01253509521484375, -0.034088134765625, -0.10205078125, 0.037078857421875, 0.0006246566772460938, 0.01043701171875, 0.05377197265625, -0.003368377685546875, -0.0455322265625, 0.0043792724609375, 0.032989501953125, -0.10406494140625, -0.1400146484375, 0.08544921875, -0.0914306640625, -0.018096923828125, -0.0645751953125, -0.0621337890625, 0.0014371871948242188, -0.0294036865234375, -0.014739990234375, -0.014007568359375, 0.00386810302734375, -0.03985595703125, -0.0231781005859375, -0.043243408203125, 0.01319122314453125, -0.0171966552734375, 0.0224761962890625, 0.0115966796875, -0.005584716796875, 0.0142364501953125, 0.0010404586791992188, 0.022064208984375, 0.0943603515625, -0.0160675048828125, -0.036468505859375, 0.00013959407806396484, 0.005870819091796875, -0.0236663818359375, 0.0031528472900390625, -0.004817962646484375, 0.018280029296875, -0.024169921875, -0.0027008056640625, 0.002506256103515625, 0.04241943359375, 0.012481689453125, -0.0240325927734375, -0.004695892333984375, 0.05279541015625, -0.00428009033203125, -0.0152435302734375, -0.03826904296875, 0.0091400146484375, -0.035888671875, -0.045318603515625, 0.0261077880859375, -0.007755279541015625, -0.0245819091796875, 0.0081787109375, 0.019927978515625, 0.01517486572265625, 0.006633758544921875, 0.01092529296875, -0.02142333984375, 0.00504302978515625, 0.01334381103515625, -0.002132415771484375, -0.016265869140625, -0.03033447265625, 0.08319091796875, 0.0084381103515625, -0.0241241455078125, -0.01342010498046875, 0.0216217041015625, -0.008697509765625, 0.01186370849609375, 0.01715087890625, 0.0263519287109375, 0.043060302734375, 0.022979736328125, -0.02606201171875, 0.01306915283203125, 0.0400390625, -0.03668212890625, -0.0018053054809570312, -0.004978179931640625, -0.0013713836669921875, -0.026611328125, -0.0204925537109375, -0.06292724609375, -0.01031494140625, -0.059112548828125, 0.0218505859375, -0.012176513671875, -0.01021575927734375, -0.0097198486328125, 0.0382080078125, -0.0283050537109375, -0.034210205078125, 0.0006284713745117188, 0.050628662109375, -0.005401611328125, 0.01129150390625, -0.01227569580078125, 0.028564453125, -0.0123138427734375, 0.002704620361328125, -0.060302734375, -0.006732940673828125, -0.0008530616760253906, 0.036529541015625, 0.0193634033203125, -0.052490234375, 0.027801513671875, 0.0689697265625, -0.01904296875, 0.003086090087890625, -0.01284027099609375, 0.0328369140625, -0.0306243896484375, -0.0009326934814453125, -0.0206756591796875, -0.025787353515625, -0.0258331298828125, -0.02008056640625, 0.0223236083984375, 0.038177490234375, -0.0185546875, -0.020233154296875, -0.033599853515625, -0.0009350776672363281, -0.049102783203125, -0.0411376953125, 0.003757476806640625, 0.00836944580078125, -0.020599365234375, 0.0174407958984375, -0.04327392578125, -0.052734375, 0.06597900390625, 0.0215301513671875, -0.0020389556884765625, -0.0030689239501953125, 0.075439453125, -0.0038299560546875, -0.049560546875, -0.10052490234375, -0.00763702392578125, 0.050079345703125, -0.03216552734375, 0.054962158203125, 0.038665771484375, -0.042449951171875, 0.08746337890625, -0.0034313201904296875, -0.0211944580078125, 0.024871826171875, 0.0257720947265625, 0.0155029296875, -0.01485443115234375, -0.0006518363952636719, 0.010345458984375, -0.006610870361328125, 0.0134735107421875, 0.01119232177734375, -0.034088134765625, 0.0250396728515625, 0.05126953125, -0.01091766357421875, 0.0233001708984375, -0.00579833984375, -0.0106353759765625, 0.006439208984375, -0.053314208984375, 0.0291748046875, 0.0181427001953125, 0.0055084228515625, -0.000919342041015625, 0.0186004638671875, 0.0040283203125, 0.01898193359375, 0.03387451171875, 0.002056121826171875, 0.0184478759765625, 0.043975830078125, -0.0026149749755859375, -0.032073974609375, -0.0125579833984375, 0.035003662109375, -0.0130615234375, -0.0767822265625, 0.024200439453125, -0.00734710693359375, 0.0307464599609375, 0.0168304443359375, -0.0005402565002441406, 0.0192108154296875, 0.06903076171875, 0.017791748046875, 0.0303802490234375, 0.00513458251953125, 0.03741455078125, -0.01422119140625, 0.0307464599609375, 0.01605224609375, -0.0038089752197265625, -0.0292205810546875, 0.09063720703125, 0.0102691650390625, 0.0257415771484375, -0.013824462890625, 0.0631103515625, 0.01116943359375, 0.045562744140625, -0.016876220703125, -0.01001739501953125, 0.010101318359375, 0.02880859375, -0.0189361572265625, -0.032257080078125, -0.00797271728515625, 0.016387939453125, 0.036285400390625, 0.0263671875, -0.014312744140625, 0.0077056884765625, -0.0250396728515625, -0.0231781005859375, -0.0026035308837890625, 0.00372314453125, -0.01348114013671875, 0.0028839111328125, 0.0003991127014160156, 0.0011625289916992188, 0.0099945068359375, 0.017974853515625, 0.00804901123046875, 0.0158538818359375, 0.05487060546875, -0.048492431640625, 0.0489501953125, -0.0216522216796875, -0.034912109375, -0.036529541015625, -0.027008056640625, -0.0008063316345214844, -0.038055419921875, -0.0377197265625, 0.0080413818359375, -0.01143646240234375, -0.0039520263671875, -0.039642333984375, 0.005279541015625, -0.050750732421875, 0.040496826171875, -0.07647705078125, 0.00823211669921875, 0.0504150390625, 0.043426513671875, 0.0343017578125, -0.0034847259521484375, -0.032684326171875, -0.033966064453125, -0.004634857177734375, -0.044891357421875, -0.040191650390625, -0.04193115234375, 0.019256591796875, 0.026885986328125, 0.01983642578125, 0.0063323974609375, 0.0009784698486328125, 0.00222015380859375, -0.00984954833984375, 0.062744140625, -0.036224365234375, 0.060089111328125, 0.015625, 0.054595947265625, -0.0160064697265625, -0.01422882080078125, -0.05364990234375, 0.01476287841796875, 0.0321044921875, -0.058807373046875, -0.059661865234375, -0.00719451904296875, -0.05328369140625, 0.01216888427734375, 0.01143646240234375, -0.009613037109375, 0.0286407470703125, -0.03302001953125, 0.0011854171752929688, 0.0028247833251953125, 0.0178985595703125, -0.0280303955078125, -0.0096282958984375, 0.057220458984375, 0.043243408203125, 0.04241943359375, -0.05584716796875, -0.041748046875, -0.00420379638671875, 0.036224365234375, 0.0005445480346679688, -0.0333251953125, -0.0343017578125, 0.02423095703125, 0.08782958984375, 0.0236663818359375, 0.056427001953125, 0.0188446044921875, 0.023223876953125, 0.043914794921875, -0.006305694580078125, 0.0140228271484375, -0.02655029296875, 0.0248260498046875, -0.0134429931640625, -0.0221099853515625, -0.0007061958312988281, -0.039764404296875, 0.0021839141845703125, 0.0026111602783203125, 0.02655029296875, -0.011077880859375, 0.0225982666015625, -0.005950927734375, -0.007778167724609375, 0.0309295654296875, -0.0210113525390625, 0.0134124755859375, -0.0223541259765625, 0.00074005126953125, 0.03338623046875, -0.0272979736328125, -0.0182647705078125, -0.0112457275390625, 0.032073974609375, -0.020233154296875, 0.038360595703125, -0.028961181640625, -0.10009765625, -0.040283203125, 0.054168701171875, -0.0546875, -0.017181396484375, -0.0068817138671875, 0.007579803466796875, -0.01959228515625, -0.052947998046875, 0.0013494491577148438, -0.042572021484375, 0.023162841796875, -0.055572509765625, 0.00823211669921875, 0.07208251953125, 0.04510498046875, 0.00548553466796875, -0.032501220703125, 0.02789306640625, 0.0267181396484375, 0.023956298828125, -0.011199951171875, -0.00873565673828125, 0.0595703125, -0.03680419921875, 0.00952911376953125, -0.01219940185546875, 0.04388427734375, 0.0008263587951660156, 0.05487060546875, 0.044891357421875, -0.003742218017578125, -0.03485107421875, 0.034423828125, -0.00246429443359375, -0.0066986083984375, -0.03179931640625, 0.028106689453125, -0.051177978515625, 0.00606536865234375, 0.012451171875, -0.0112457275390625, -0.0296630859375, -0.01177978515625, -0.03826904296875, 0.08111572265625, -0.01300811767578125, 0.0157318115234375, 0.0184173583984375, 0.039093017578125, -0.0159149169921875, 0.0244140625, -0.024139404296875, 0.05560302734375, 0.042724609375, 0.00946807861328125, -0.04754638671875, -0.0186309814453125, 0.00507354736328125, 0.0665283203125, 0.056732177734375, 0.00167083740234375, -0.032623291015625, -0.0202178955078125, 0.044525146484375, 0.030975341796875, -0.010498046875, 0.0284271240234375, -0.01000213623046875, -0.0148468017578125, 0.036376953125, -0.0224609375, 0.0158233642578125, 0.01358795166015625, 0.0045013427734375, 0.02313232421875, 0.006561279296875, 0.0031490325927734375, 0.025115966796875, -0.04693603515625, 0.01371002197265625, 0.01390838623046875, -0.020904541015625, 0.0045013427734375, -0.00862884521484375, 0.0175933837890625, 0.0088958740234375, -0.039459228515625, -0.06585693359375, 0.002536773681640625, 0.0217437744140625, 0.01113128662109375, 0.006687164306640625, 0.0265960693359375, -0.0016355514526367188, 0.04107666015625, 0.03802490234375, 0.007511138916015625, 0.0254058837890625, 0.0240936279296875, 0.047698974609375, 0.013214111328125, -0.0009984970092773438, -0.06353759765625, -0.027587890625, 0.052459716796875, 0.0693359375, -0.05047607421875, -0.025604248046875, 0.006435394287109375, 0.0190887451171875, 0.01335906982421875, 0.005481719970703125, 0.0347900390625, -0.03240966796875, 0.0094451904296875, -0.0240325927734375, 0.004970550537109375, 0.0035114288330078125, 0.0293426513671875, -0.0017576217651367188, -0.0175933837890625, -0.0491943359375, -0.01065826416015625, -0.00360107421875, -0.0101318359375, 0.0077972412109375, 0.0294647216796875, 0.007198333740234375, 0.0408935546875, -0.017730712890625, -0.003650665283203125, -0.01264190673828125, 0.007526397705078125, 0.01163482666015625, 0.018341064453125, -0.04742431640625, -0.027862548828125, 0.0262603759765625, 0.047027587890625, 0.040557861328125, -0.0012407302856445312, 0.033905029296875, 0.0244903564453125, -0.0215911865234375, 0.00009125471115112305, 0.044464111328125, -0.0169677734375, -0.07440185546875, 0.0038700103759765625, -0.07769775390625, 0.007274627685546875, -0.029693603515625, 0.0458984375, 0.006465911865234375, -0.0025920867919921875, -0.04248046875, 0.07647705078125, -0.0184173583984375, -0.007472991943359375, 0.0516357421875, -0.0186004638671875, 0.10040283203125, -0.0033245086669921875, -0.05841064453125, 0.005764007568359375, -0.01102447509765625, -0.019927978515625, -0.0262908935546875, 0.0031833648681640625, -0.0450439453125, 0.07318115234375, -0.021820068359375, -0.01044464111328125, 0.01447296142578125, 0.002140045166015625, -0.000701904296875, 0.0362548828125, 0.0191192626953125, -0.00811767578125, -0.041259765625, -0.02679443359375, -0.0079498291015625, 0.0362548828125, 0.0179595947265625, 0.01226806640625, 0.002532958984375, 0.0217132568359375, 0.024505615234375, -0.021331787109375, 0.0270233154296875, 0.023712158203125, 0.015350341796875, -0.0014429092407226562, -0.0002796649932861328, -0.0254974365234375, 0.021148681640625, -0.0239410400390625, 0.041107177734375, -0.05120849609375, -0.040802001953125, -0.01517486572265625, 0.03802490234375, -0.007740020751953125, -0.018646240234375, -0.032989501953125, -0.041412353515625, -0.063720703125, -0.0201263427734375, 0.031890869140625, 0.03460693359375, 0.01174163818359375, 0.05181884765625, 0.00920867919921875, -0.01505279541015625, 0.033935546875, -0.06573486328125, 0.065185546875, 0.044097900390625, -0.033599853515625, -0.017974853515625, 0.0169677734375, -0.0027332305908203125, 0.0005960464477539062, 0.03363037109375, -0.01055145263671875, 0.0276641845703125, -0.032379150390625, -0.0096893310546875, 0.01702880859375, 0.05181884765625, 0.0176239013671875, 0.0270538330078125, -0.019989013671875, 0.0018253326416015625, -0.03741455078125, 0.052520751953125, -0.00974273681640625, -0.052001953125, -0.0247802734375, -0.00859832763671875, -0.035400390625, -0.0173797607421875, -0.01393890380859375, -0.01227569580078125, 0.007358551025390625, -0.004146575927734375, -0.02618408203125, 0.01424407958984375, -0.038604736328125, -0.006389617919921875, 0.007488250732421875, 0.002437591552734375, 0.002105712890625, 0.049957275390625, 0.009918212890625, -0.01430511474609375, -0.001674652099609375, 0.0295867919921875, 0.02093505859375, 0.025665283203125, 0.036529541015625, -0.0330810546875, -0.0281219482421875, 0.03924560546875, 0.04925537109375, 0.07684326171875, 0.027557373046875, -0.010711669921875, 0.0005698204040527344, 0.0245513916015625, -0.0272064208984375, -0.06964111328125, 0.01470184326171875, -0.03607177734375, -0.009735107421875, -0.0010271072387695312, -0.0028095245361328125, 0.0225982666015625, -0.0302734375, -0.0867919921875, 0.0192108154296875, -0.0253143310546875, -0.0472412109375, -0.04632568359375, -0.006175994873046875, 0.01457977294921875, 0.008453369140625, -0.0159149169921875, -0.01087188720703125, -0.038330078125, 0.01544952392578125, -0.0035343170166015625, 0.0533447265625, 0.00435638427734375, 0.0185546875, -0.038238525390625, 0.020172119140625, -0.02288818359375, 0.0086822509765625, 0.035491943359375, -0.043121337890625, 0.0323486328125, 0.0171966552734375, -0.059844970703125, -0.040374755859375, -0.011077880859375, 0.0234222412109375, -0.0188751220703125, 0.0007929801940917969, -0.042633056640625, -0.0178680419921875, 0.0625, 0.0703125, 0.0269317626953125, -0.02349853515625, -0.031951904296875, -0.0340576171875, 0.0116729736328125, 0.0035076141357421875, 0.0087890625, -0.03668212890625, 0.0143280029296875, 0.008087158203125, -0.00397491455078125, -0.00012731552124023438, 0.01181793212890625, -0.018402099609375, -0.01438140869140625, 0.002227783203125, -0.031646728515625, -0.0005655288696289062, 0.0287933349609375, 0.0168609619140625, -0.0280914306640625, -0.012908935546875, -0.022125244140625, -0.0004987716674804688, -0.006351470947265625, -0.01525115966796875, 0.0148773193359375, 0.0158843994140625, -0.0174713134765625, -0.01244354248046875, 0.032867431640625, 0.031280517578125, 0.0113372802734375, -0.0203399658203125, -0.017333984375, 0.01580810546875, 0.017181396484375, 0.01251983642578125, -0.01354217529296875, 0.0208892822265625, 0.025115966796875, 0.00789642333984375, 0.022247314453125, -0.01277923583984375, -0.0304107666015625, 0.062103271484375, 0.01073455810546875, -0.046600341796875, 0.0260467529296875, -0.04449462890625, 0.01392364501953125, 0.0045623779296875, -0.024322509765625, 0.0006341934204101562, -0.0175933837890625, -0.042633056640625, -0.0203094482421875, -0.017425537109375 ]
59e0ac38645125d7161d7b170ae6550b93e7bd48
Wordpress Stackexchange Q: WordPress localization In WordPress localization files (.po), does php map files by the line number eg. comments.php:60 or msgid msgid "<span class=\"meta-nav\">&larr;</span> Older Comments". So basically, if I have said string in comments.php in line 60, and move it to line 74, does it still get localized by the msgid? A: if I have said string in comments.php in line 60, and move it to line 74, does it still get localized by the msgid? Yes it does. Localization does not depend on line numbers of strings.
Q: WordPress localization In WordPress localization files (.po), does php map files by the line number eg. comments.php:60 or msgid msgid "<span class=\"meta-nav\">&larr;</span> Older Comments". So basically, if I have said string in comments.php in line 60, and move it to line 74, does it still get localized by the msgid? A: if I have said string in comments.php in line 60, and move it to line 74, does it still get localized by the msgid? Yes it does. Localization does not depend on line numbers of strings.
wordpress
{ "language": "en", "length": 88, "provenance": "stackexchange_00019.jsonl.gz:410477", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20464" }
[ 0.02410888671875, 0.00876617431640625, 0.032470703125, -0.0070343017578125, 0.0027942657470703125, 0.0003979206085205078, 0.038299560546875, -0.0272369384765625, 0.0238494873046875, -0.0005803108215332031, -0.044586181640625, -0.01242828369140625, -0.02850341796875, -0.018524169921875, -0.0016307830810546875, -0.046783447265625, 0.0245513916015625, -0.0004987716674804688, -0.001308441162109375, -0.01476287841796875, -0.00644683837890625, 0.0113067626953125, 0.00826263427734375, 0.03558349609375, 0.035675048828125, -0.070556640625, 0.0095672607421875, -0.00687408447265625, -0.0174102783203125, -0.024200439453125, 0.0123138427734375, 0.041015625, 0.0297393798828125, 0.01323699951171875, -0.027740478515625, -0.040435791015625, -0.00786590576171875, -0.0005297660827636719, -0.0170440673828125, 0.01012420654296875, 0.00545501708984375, -0.01030731201171875, 0.0277099609375, 0.00788116455078125, -0.022369384765625, -0.007526397705078125, -0.00695037841796875, -0.018280029296875, 0.0073699951171875, 0.0288238525390625, 0.006732940673828125, 0.004322052001953125, 0.0227203369140625, -0.0032100677490234375, -0.0006909370422363281, 0.008880615234375, -0.05780029296875, 0.0440673828125, 0.01546478271484375, 0.00261688232421875, 0.006565093994140625, 0.01140594482421875, 0.00249481201171875, 0.01377105712890625, -0.03265380859375, -0.00884246826171875, -0.038787841796875, 0.0021953582763671875, -0.01178741455078125, -0.0465087890625, 0.008941650390625, -0.01146697998046875, 0.005046844482421875, -0.0660400390625, 0.05560302734375, 0.019622802734375, -0.062469482421875, -0.04315185546875, 0.02227783203125, 0.0205535888671875, 0.0335693359375, 0.0213470458984375, -0.00908660888671875, -0.0288543701171875, 0.01409912109375, -0.01251983642578125, -0.004119873046875, -0.027923583984375, -0.0758056640625, -0.0491943359375, -0.04315185546875, -0.0236358642578125, -0.09405517578125, -0.0289154052734375, -0.00908660888671875, -0.01560211181640625, -0.0158843994140625, 0.0158233642578125, -0.030792236328125, 0.01499176025390625, -0.032196044921875, -0.0016527175903320312, -0.01593017578125, -0.03466796875, 0.0369873046875, 0.043487548828125, -0.036041259765625, 0.0003414154052734375, 0.07501220703125, 0.022186279296875, 0.019561767578125, 0.0264739990234375, -0.01331329345703125, -0.0293731689453125, -0.01453399658203125, 0.0440673828125, -0.00980377197265625, 0.0152587890625, 0.011566162109375, 0.00555419921875, -0.01947021484375, 0.00804901123046875, -0.0011243820190429688, -0.0027446746826171875, 0.003631591796875, -0.0274658203125, -0.023834228515625, 0.031463623046875, -0.009033203125, 0.0843505859375, 0.01015472412109375, -0.0211181640625, -0.051666259765625, -0.0251007080078125, -0.06488037109375, -0.028228759765625, 0.01354217529296875, -0.050323486328125, -0.017608642578125, 0.01419830322265625, -0.036590576171875, -0.01052093505859375, 0.041351318359375, -0.0389404296875, -0.02728271484375, -0.0019407272338867188, 0.01453399658203125, 0.050018310546875, -0.00737762451171875, -0.036651611328125, 0.03143310546875, -0.006488800048828125, 0.0295257568359375, 0.019378662109375, 0.00531005859375, -0.044921875, 0.04290771484375, -0.056365966796875, 0.016510009765625, -0.053192138671875, 0.00678253173828125, -0.010894775390625, -0.01708984375, -0.0570068359375, -0.0826416015625, 0.01061248779296875, -0.0012884140014648438, -0.0031452178955078125, 0.00891876220703125, 0.01275634765625, -0.0255279541015625, 0.03216552734375, 0.0263824462890625, -0.0015344619750976562, -0.006984710693359375, -0.013092041015625, -0.038787841796875, -0.0022525787353515625, 0.01450347900390625, 0.0029506683349609375, 0.0306396484375, -0.0184478759765625, -0.0030879974365234375, 0.049041748046875, -0.036346435546875, -0.0316162109375, 0.0247344970703125, 0.039764404296875, 0.0377197265625, 0.0224151611328125, 0.04681396484375, -0.0258636474609375, -0.0306549072265625, -0.0135040283203125, -0.0501708984375, 0.021148681640625, 0.042816162109375, 0.06878662109375, -0.00677490234375, -0.02130126953125, -0.0002639293670654297, -0.0146636962890625, 0.030914306640625, 0.00807952880859375, -0.034942626953125, 0.0343017578125, -0.04364013671875, 0.04132080078125, 0.039154052734375, -0.0004706382751464844, -0.019012451171875, -0.0282440185546875, 0.0224456787109375, -0.023468017578125, -0.0509033203125, -0.0127105712890625, -0.00270843505859375, 0.038604736328125, 0.01203155517578125, 0.004482269287109375, 0.03125, -0.0186309814453125, 0.03271484375, 0.0352783203125, -0.0233917236328125, -0.0009937286376953125, -0.0278778076171875, 0.01479339599609375, 0.0164947509765625, -0.025360107421875, 0.10333251953125, 0.032867431640625, -0.0252838134765625, -0.027984619140625, -0.020721435546875, -0.0084686279296875, -0.013458251953125, -0.06890869140625, 0.01531982421875, 0.047210693359375, 0.045745849609375, 0.01364898681640625, 0.022613525390625, 0.0223541259765625, 0.02001953125, -0.03155517578125, 0.0343017578125, -0.01129913330078125, -0.002017974853515625, 0.026763916015625, -0.031646728515625, -0.0148773193359375, 0.01537322998046875, -0.05767822265625, -0.042205810546875, 0.056884765625, -0.0223541259765625, -0.048553466796875, 0.026885986328125, 0.009765625, 0.0129852294921875, -0.0028533935546875, -0.01329803466796875, -0.0004737377166748047, -0.0117340087890625, -0.01146697998046875, -0.020294189453125, -0.01885986328125, -0.055389404296875, 0.006519317626953125, 0.048004150390625, 0.035888671875, 0.02154541015625, 0.04595947265625, -0.06915283203125, -0.0014705657958984375, 0.00653076171875, 0.004364013671875, -0.01511383056640625, 0.0037059783935546875, -0.0157012939453125, 0.0174713134765625, -0.015411376953125, -0.018829345703125, 0.0242462158203125, 0.0218658447265625, -0.004344940185546875, -0.02459716796875, -0.041534423828125, -0.008087158203125, -0.00826263427734375, 0.06585693359375, -0.0209503173828125, 0.03857421875, 0.0198211669921875, 0.0162200927734375, 0.06768798828125, -0.0145416259765625, 0.00789642333984375, -0.00458526611328125, 0.03289794921875, 0.0462646484375, 0.0016279220581054688, -0.015777587890625, -0.0158538818359375, 0.01425933837890625, 0.03009033203125, -0.022491455078125, -0.021881103515625, -0.019256591796875, -0.002429962158203125, -0.0199127197265625, -0.01096343994140625, 0.0008726119995117188, -0.0231170654296875, -0.05224609375, 0.0033168792724609375, -0.0178375244140625, -0.107177734375, -0.09075927734375, 0.0030460357666015625, -0.0280609130859375, -0.007015228271484375, 0.0210418701171875, -0.0139312744140625, -0.027862548828125, 0.03619384765625, -0.00750732421875, -0.00267791748046875, -0.037384033203125, -0.0753173828125, -0.07354736328125, -0.0667724609375, 0.02288818359375, -0.0023746490478515625, 0.01284027099609375, 0.00997161865234375, -0.031768798828125, 0.00859832763671875, -0.018096923828125, 0.0391845703125, 0.062744140625, 0.003078460693359375, 0.01346588134765625, -0.035369873046875, -0.038787841796875, 0.081298828125, -0.01430511474609375, -0.021514892578125, 0.0142364501953125, 0.027069091796875, -0.0010385513305664062, 0.006870269775390625, 0.01064300537109375, 0.022552490234375, -0.06317138671875, -0.016204833984375, 0.0104217529296875, -0.0244598388671875, -0.03826904296875, -0.02490234375, 0.016326904296875, -0.01165771484375, 0.0227813720703125, 0.002582550048828125, -0.0202484130859375, -0.0019388198852539062, 0.032012939453125, 0.0087890625, -0.01284027099609375, 0.01560211181640625, -0.032196044921875, 0.0010919570922851562, 0.0156097412109375, 0.010284423828125, -0.0223236083984375, 0.02099609375, -0.0098876953125, -0.012908935546875, -0.01287078857421875, 0.0210113525390625, -0.005138397216796875, -0.02740478515625, -0.0726318359375, 0.0296630859375, 0.01430511474609375, -0.01061248779296875, 0.032073974609375, -0.00868988037109375, 0.0029144287109375, -0.0181121826171875, 0.035552978515625, -0.0242919921875, -0.03802490234375, 0.043609619140625, 0.034637451171875, -0.04095458984375, 0.0085296630859375, -0.0205230712890625, -0.0255584716796875, -0.0092620849609375, 0.01523590087890625, 0.0175018310546875, -0.010528564453125, -0.028045654296875, 0.0677490234375, -0.0197906494140625, -0.006099700927734375, 0.01496124267578125, 0.036834716796875, 0.037567138671875, 0.0169525146484375, 0.04608154296875, 0.0124664306640625, 0.0229949951171875, -0.033538818359375, -0.0496826171875, -0.0258026123046875, -0.0213470458984375, 0.06610107421875, 0.0206298828125, -0.025146484375, -0.00933837890625, 0.0552978515625, -0.03167724609375, 0.0077972412109375, 0.0193939208984375, 0.024169921875, -0.0191650390625, 0.0216522216796875, 0.01666259765625, -0.0272979736328125, -0.027984619140625, 0.008514404296875, -0.020294189453125, 0.052337646484375, 0.007205963134765625, -0.01543426513671875, 0.040496826171875, -0.0287628173828125, -0.031829833984375, -0.0234222412109375, -0.036041259765625, 0.0126190185546875, -0.0064697265625, -0.0084686279296875, -0.02471923828125, -0.040618896484375, 0.01140594482421875, -0.0225830078125, 0.00347137451171875, 0.0158843994140625, 0.04864501953125, 0.01702880859375, -0.01248931884765625, -0.036041259765625, 0.0130615234375, 0.0159149169921875, 0.0635986328125, 0.05926513671875, 0.01299285888671875, -0.004730224609375, 0.04150390625, 0.03863525390625, 0.00496673583984375, 0.0234832763671875, -0.024169921875, -0.01084136962890625, -0.05169677734375, 0.035858154296875, -0.007282257080078125, 0.0172882080078125, 0.025421142578125, 0.0111236572265625, -0.0243072509765625, -0.010711669921875, 0.032196044921875, 0.0121917724609375, -0.0235595703125, -0.033905029296875, -0.07122802734375, 0.034637451171875, -0.0860595703125, 0.005123138427734375, -0.00811767578125, 0.004608154296875, 0.0305023193359375, 0.0142059326171875, -0.0037631988525390625, 0.041412353515625, 0.04205322265625, 0.01065826416015625, 0.0168914794921875, 0.05169677734375, -0.00884246826171875, -0.0253448486328125, 0.00481414794921875, 0.01153564453125, -0.0309295654296875, -0.0419921875, -0.045074462890625, 0.0101776123046875, -0.00955963134765625, 0.04840087890625, -0.0027980804443359375, 0.009124755859375, 0.01171875, -0.0004763603210449219, 0.01450347900390625, 0.00862884521484375, -0.00821685791015625, -0.0186614990234375, -0.0030460357666015625, 0.016998291015625, -0.030181884765625, 0.029022216796875, 0.007293701171875, -0.0032062530517578125, 0.0005536079406738281, -0.02728271484375, -0.007251739501953125, -0.03692626953125, 0.043060302734375, 0.00237274169921875, 0.0013580322265625, 0.0182952880859375, 0.0155181884765625, 0.034088134765625, 0.00942230224609375, 0.0237274169921875, 0.003986358642578125, -0.023956298828125, 0.0107421875, -0.003963470458984375, 0.018341064453125, 0.0020751953125, -0.005863189697265625, 0.04833984375, 0.0220489501953125, -0.06634521484375, -0.00724029541015625, -0.0156707763671875, 0.001007080078125, -0.034698486328125, 0.0299835205078125, -0.020172119140625, 0.00021183490753173828, -0.035919189453125, 0.0256500244140625, -0.04248046875, -0.0309906005859375, -0.00835418701171875, -0.0367431640625, -0.0032138824462890625, 0.00487518310546875, -0.00045371055603027344, -0.01922607421875, -0.008056640625, -0.021270751953125, 0.0135498046875, -0.015960693359375, 0.017730712890625, -0.03369140625, 0.0156097412109375, -0.043426513671875, -0.0021762847900390625, 0.0419921875, 0.0086517333984375, -0.0360107421875, 0.0183868408203125, -0.0261688232421875, -0.003231048583984375, 0.00015783309936523438, -0.052490234375, -0.05047607421875, -0.029876708984375, 0.0048980712890625, 0.036865234375, -0.00536346435546875, 0.0145111083984375, -0.003269195556640625, 0.017333984375, -0.01094818115234375, 0.0718994140625, -0.052001953125, 0.04437255859375, 0.03765869140625, -0.031463623046875, -0.01556396484375, 0.0501708984375, 0.029205322265625, 0.0021820068359375, 0.033203125, 0.0127716064453125, -0.0394287109375, -0.0284576416015625, -0.01064300537109375, -0.030670166015625, 0.0229034423828125, -0.0301361083984375, 0.01381683349609375, 0.005153656005859375, 0.006343841552734375, -0.0113372802734375, -0.02838134765625, -0.001491546630859375, 0.00443267822265625, -0.003398895263671875, -0.036224365234375, 0.02667236328125, -0.0133056640625, 0.0240020751953125, 0.000881195068359375, -0.039520263671875, 0.0008459091186523438, 0.035919189453125, -0.037933349609375, 0.0235748291015625, 0.0304107666015625, 0.0027313232421875, 0.02020263671875, 0.004833221435546875, 0.0097503662109375, -0.011016845703125, 0.00514984130859375, 0.012786865234375, 0.03070068359375, 0.00716400146484375, -0.0257415771484375, -0.005657196044921875, -0.0289459228515625, -0.018096923828125, 0.02947998046875, 0.045654296875, 0.06768798828125, -0.06085205078125, -0.00799560546875, 0.0019474029541015625, -0.0355224609375, 0.01751708984375, -0.0012102127075195312, 0.042755126953125, 0.00818634033203125, 0.0634765625, 0.0250244140625, 0.00801849365234375, 0.039886474609375, -0.0186614990234375, -0.002254486083984375, -0.03155517578125, -0.01464080810546875, -0.002712249755859375, -0.01363372802734375, -0.00007355213165283203, 0.01361083984375, -0.0013437271118164062, -0.067626953125, -0.0494384765625, 0.01332855224609375, -0.050567626953125, -0.09002685546875, -0.004306793212890625, -0.03369140625, 0.049163818359375, -0.026641845703125, 0.0004394054412841797, 0.07061767578125, 0.05047607421875, -0.0193328857421875, -0.015350341796875, 0.0294189453125, 0.0176239013671875, -0.027679443359375, -0.029296875, -0.005428314208984375, 0.01204681396484375, -0.0005168914794921875, 0.0087738037109375, -0.0186614990234375, -0.0289459228515625, 0.00936126708984375, 0.0210418701171875, 0.023406982421875, -0.054840087890625, -0.006839752197265625, 0.03277587890625, -0.01441192626953125, 0.006439208984375, 0.00707244873046875, -0.0029754638671875, -0.04681396484375, -0.040313720703125, -0.0011444091796875, -0.05126953125, 0.03564453125, 0.00734710693359375, -0.04119873046875, 0.011199951171875, -0.004711151123046875, 0.0135498046875, -0.004840850830078125, 0.00850677490234375, 0.0293731689453125, 0.016937255859375, 0.008636474609375, 0.035003662109375, -0.001987457275390625, 0.0188140869140625, -0.00455474853515625, -0.01071929931640625, 0.034942626953125, 0.076416015625, 0.054351806640625, -0.0009946823120117188, -0.00397491455078125, -0.01238250732421875, 0.04345703125, 0.048583984375, 0.0019140243530273438, 0.0124359130859375, -0.0151519775390625, -0.0017137527465820312, -0.0035190582275390625, -0.034454345703125, 0.01027679443359375, -0.03790283203125, -0.0272369384765625, 0.0011615753173828125, 0.01053619384765625, -0.0223846435546875, -0.026397705078125, 0.06658935546875, -0.0330810546875, -0.01556396484375, 0.0178070068359375, -0.0222320556640625, -0.0246124267578125, 0.0294036865234375, 0.01519775390625, -0.0293731689453125, -0.0175018310546875, -0.028778076171875, 0.0297698974609375, 0.00753021240234375, 0.042755126953125, 0.01296234130859375, 0.0235748291015625, 0.057037353515625, -0.050048828125, 0.00981903076171875, 0.0025043487548828125, -0.04119873046875, 0.031219482421875, 0.052093505859375, 0.05072021484375, 0.056549072265625, 0.0179443359375, -0.002162933349609375, 0.03814697265625, -0.0284271240234375, -0.006572723388671875, 0.01113128662109375, -0.009063720703125, -0.0018215179443359375, -0.004581451416015625, 0.03826904296875, -0.046783447265625, -0.03814697265625, -0.01099395751953125, -0.00705718994140625, 0.01270294189453125, 0.0168304443359375, 0.009368896484375, 0.07177734375, -0.0218353271484375, -0.01294708251953125, -0.0433349609375, 0.049591064453125, 0.023406982421875, 0.0271759033203125, -0.045318603515625, 0.0643310546875, -0.01490020751953125, -0.0012607574462890625, -0.0008172988891601562, 0.05169677734375, 0.00821685791015625, -0.0163726806640625, -0.03265380859375, -0.035247802734375, 0.0119781494140625, 0.0189208984375, 0.046142578125, 0.051513671875, 0.078125, 0.0258026123046875, -0.0286407470703125, 0.0189208984375, 0.0660400390625, -0.02276611328125, -0.006488800048828125, -0.035736083984375, 0.0068817138671875, 0.01384735107421875, 0.0013713836669921875, 0.00010758638381958008, 0.03363037109375, 0.0301361083984375, 0.027740478515625, 0.0160980224609375, 0.00794219970703125, -0.02044677734375, -0.0126953125, 0.00363922119140625, 0.042205810546875, 0.052978515625, 0.02935791015625, 0.004108428955078125, 0.0260467529296875, -0.037872314453125, -0.0179443359375, 0.0277862548828125, -0.008575439453125, 0.0249481201171875, -0.0043792724609375, -0.0174713134765625, 0.01971435546875, -0.015228271484375, 0.01806640625, 0.05621337890625, 0.0150604248046875, 0.0236358642578125, -0.07061767578125, -0.03826904296875, -0.041900634765625, 0.0517578125, 0.02264404296875, 0.0535888671875, -0.0068511962890625, 0.04388427734375, -0.059234619140625, 0.01334381103515625, -0.050811767578125, -0.047027587890625, 0.0213775634765625, 0.021636962890625, 0.004459381103515625, 0.0037555694580078125, -0.0279541015625, -0.019287109375, 0.0292205810546875, -0.041778564453125, 0.0169677734375, -0.030242919921875, 0.0200958251953125, -0.0281524658203125, 0.0157623291015625, -0.0181884765625, -0.01337432861328125, -0.0288238525390625, -0.03448486328125, 0.052825927734375, 0.050384521484375, 0.033721923828125, 0.05859375, 0.00794219970703125, 0.000827789306640625, 0.0303192138671875, -0.034088134765625, 0.005634307861328125, 0.01482391357421875, 0.006595611572265625, 0.0171966552734375, -0.0176849365234375, -0.031890869140625, 0.007587432861328125, 0.0108642578125, 0.01238250732421875, -0.0080413818359375, 0.037139892578125, 0.00875091552734375, -0.00371551513671875, 0.02703857421875, -0.01155853271484375, -0.010040283203125, 0.00783538818359375, 0.0129547119140625, 0.01172637939453125, -0.00388336181640625, -0.003177642822265625, -0.0192718505859375, -0.01477813720703125, 0.0129547119140625, -0.02398681640625, -0.0060882568359375, -0.00789642333984375, -0.06072998046875, 0.01421356201171875, 0.00374603271484375, 0.009490966796875, -0.009765625, -0.01264190673828125, -0.06317138671875, 0.00865936279296875, 0.00943756103515625, -0.03570556640625, -0.048187255859375, -0.046295166015625, -0.032623291015625, -0.058837890625, 0.043487548828125, -0.0153350830078125, 0.04473876953125, 0.052581787109375, -0.0188751220703125, -0.033905029296875, 0.086181640625, 0.022216796875, 0.12646484375, -0.055023193359375, -0.01045989990234375, 0.05401611328125, -0.01451873779296875, -0.04315185546875, -0.07568359375, 0.01459503173828125, -0.0831298828125, -0.0047607421875, 0.007659912109375, 0.006130218505859375, 0.0174713134765625, -0.034088134765625, -0.1070556640625, 0.045013427734375, -0.01299285888671875, -0.040252685546875, -0.06658935546875, -0.005107879638671875, 0.0029773712158203125, 0.052581787109375, -0.0208892822265625, -0.0206451416015625, -0.037628173828125, 0.0218048095703125, -0.005382537841796875, 0.042999267578125, -0.007526397705078125, -0.0260162353515625, 0.06671142578125, 0.0615234375, 0.09130859375, -0.01305389404296875, -0.0158843994140625, 0.017425537109375, 0.0209808349609375, 0.0521240234375, -0.01517486572265625, 0.01324462890625, 0.0007281303405761719, 0.00047969818115234375, -0.01568603515625, -0.016326904296875, -0.03424072265625, -0.0022945404052734375, 0.06982421875, 0.053253173828125, 0.0180511474609375, -0.0304718017578125, 0.036895751953125, 0.02154541015625, -0.0303802490234375, -0.0287628173828125, 0.009796142578125, -0.0296630859375, -0.0445556640625, -0.025299072265625, 0.0002665519714355469, 0.024017333984375, -0.014739990234375, -0.003997802734375, -0.014892578125, -0.001682281494140625, -0.04754638671875, 0.04229736328125, -0.1044921875, 0.08148193359375, -0.0213623046875, 0.02899169921875, 0.0204925537109375, 0.05316162109375, 0.05169677734375, 0.092529296875, -0.02764892578125, 0.0222015380859375, -0.0007519721984863281, 0.00817108154296875, 0.01959228515625, 0.005828857421875, 0.0253143310546875, 0.0185089111328125, -0.00727081298828125, 0.0179443359375, 0.027862548828125, 0.036285400390625, -0.0067901611328125, -0.0050506591796875, -0.00605010986328125, -0.03570556640625, 0.0167999267578125, 0.0163726806640625, -0.016693115234375, 0.053375244140625, -0.017425537109375, -0.03155517578125, -0.01371002197265625, -0.026397705078125, 0.023773193359375, -0.0247039794921875, 0.007389068603515625, -0.036712646484375, 0.0118255615234375, -0.006072998046875, -0.0232086181640625, 0.0322265625 ]
f0dff536af3c0ab03c937b69c3848332d8b7d902
Wordpress Stackexchange Q: Why are admin scripts not printed I am trying to enqueue/print scripts in the admin area. But they dont seem to appear. add_action('admin_init', function() { add_meta_box('portfolio-meta', 'Details', 'portfolio_metabox_details', 'portfolio'); wp_register_script('jqeury-validate', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js'); wp_enqueue_script('jquery-validate'); wp_register_script('ae-admin', get_bloginfo('template_directory') . '/js/admin.js', array('jquery', 'jquery-validate')); wp_enqueue_script('ae-admin'); wp_localize_script('ae-admin', 'WpAjax', array( 'AjaxUrl' => admin_url('admin-ajax.php') )); wp_register_style('ae-validate', get_bloginfo('template_directory') . '/css/validate.css'); wp_enqueue_style('ae-validate'); }); But my script (admin.js) does not seem to get printed. I even tried to put those in 'init' instead of 'admin_init' still I dont see my scripts ... why is that? How can I debug? A: Use the admin_enqueue_scripts hook instead of admin_init Note: you should use hooks that target admin pages as specifically as possible. e.g.: * *Plugins: Use the admin_print_scripts-{plugin-page} hook *Themes: Use the admin_print_scripts-{theme-page} hook (where {theme-page} is whatever string you use in the add_theme_page() call) *Custom Post-Type Edit Page: Use the admin_print_scripts-edit.php hook, For Custom Post Types, inside your function, do something like the following: global $typenow; if( 'portfolio' == $typenow ) { // wp_enqueue_script() calls go here } (h/t t31os)
Q: Why are admin scripts not printed I am trying to enqueue/print scripts in the admin area. But they dont seem to appear. add_action('admin_init', function() { add_meta_box('portfolio-meta', 'Details', 'portfolio_metabox_details', 'portfolio'); wp_register_script('jqeury-validate', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js'); wp_enqueue_script('jquery-validate'); wp_register_script('ae-admin', get_bloginfo('template_directory') . '/js/admin.js', array('jquery', 'jquery-validate')); wp_enqueue_script('ae-admin'); wp_localize_script('ae-admin', 'WpAjax', array( 'AjaxUrl' => admin_url('admin-ajax.php') )); wp_register_style('ae-validate', get_bloginfo('template_directory') . '/css/validate.css'); wp_enqueue_style('ae-validate'); }); But my script (admin.js) does not seem to get printed. I even tried to put those in 'init' instead of 'admin_init' still I dont see my scripts ... why is that? How can I debug? A: Use the admin_enqueue_scripts hook instead of admin_init Note: you should use hooks that target admin pages as specifically as possible. e.g.: * *Plugins: Use the admin_print_scripts-{plugin-page} hook *Themes: Use the admin_print_scripts-{theme-page} hook (where {theme-page} is whatever string you use in the add_theme_page() call) *Custom Post-Type Edit Page: Use the admin_print_scripts-edit.php hook, For Custom Post Types, inside your function, do something like the following: global $typenow; if( 'portfolio' == $typenow ) { // wp_enqueue_script() calls go here } (h/t t31os) A: I just noticed that your add_action() call is incorrect. You have to pass it a callback, not the function definition. You have: add_action('admin_init', function() { // function definition here }); Instead, you should have: function mytheme_enqueue_admin_scripts() { // register/enqueue code goes here } add_action( 'hook_name', 'mytheme_enqueue_admin_scripts' ); A: Make sure your header.php (or another function in the header) runs the wp_head action hook. The code should look like this: <?php wp_head() ?> A: Actually I just had a typo wp_register_script('jqeury-validate', 'http://ajax.aspnetcdn.com/ajax/jquery.validate ^ But thanks @Chris_O, & @Chip Bennett for their great answers
wordpress
{ "language": "en", "length": 261, "provenance": "stackexchange_00019.jsonl.gz:410480", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20479" }
[ -0.0015058517456054688, -0.005748748779296875, -0.040557861328125, -0.01140594482421875, 0.0009918212890625, -0.0287628173828125, 0.0018529891967773438, -0.00530242919921875, -0.04345703125, 0.026885986328125, -0.0298004150390625, 0.038909912109375, -0.021331787109375, -0.01390838623046875, 0.011505126953125, -0.05072021484375, 0.048583984375, -0.04583740234375, 0.00206756591796875, -0.0091705322265625, 0.014739990234375, 0.026580810546875, 0.0089874267578125, 0.06549072265625, -0.0335693359375, 0.004451751708984375, 0.13330078125, -0.01551055908203125, 0.002002716064453125, -0.0225830078125, 0.007965087890625, -0.0267486572265625, 0.00695037841796875, -0.00765228271484375, 0.042144775390625, -0.002857208251953125, 0.04522705078125, -0.0092315673828125, 0.0173492431640625, 0.035797119140625, 0.01465606689453125, 0.0002772808074951172, 0.0335693359375, 0.031585693359375, -0.00585174560546875, -0.020477294921875, -0.0028514862060546875, -0.033935546875, -0.0001760721206665039, 0.01708984375, -0.005519866943359375, -0.028350830078125, -0.0111846923828125, 0.0400390625, -0.00429534912109375, 0.01140594482421875, -0.025482177734375, -0.0245819091796875, 0.02069091796875, 0.071044921875, 0.01490020751953125, -0.002685546875, -0.01513671875, -0.07183837890625, -0.01151275634765625, 0.001529693603515625, -0.02655029296875, 0.01119232177734375, -0.0099945068359375, 0.000782012939453125, 0.006824493408203125, -0.031646728515625, -0.0022602081298828125, 0.0136871337890625, -0.0255889892578125, -0.0002180337905883789, 0.01053619384765625, -0.0027942657470703125, 0.027191162109375, -0.0038013458251953125, 0.021759033203125, -0.0022029876708984375, -0.036041259765625, 0.040252685546875, -0.037017822265625, 0.0309600830078125, -0.0160980224609375, -0.0254974365234375, -0.0213470458984375, -0.02593994140625, -0.031768798828125, -0.04248046875, -0.00917816162109375, -0.030731201171875, -0.0031871795654296875, -0.033782958984375, 0.048248291015625, 0.07379150390625, 0.021087646484375, 0.04034423828125, -0.034271240234375, -0.0310211181640625, 0.03338623046875, -0.04681396484375, -0.00782012939453125, 0.046783447265625, 0.00690460205078125, 0.03155517578125, 0.041534423828125, 0.00754547119140625, 0.0153961181640625, -0.0121307373046875, -0.003948211669921875, -0.0149383544921875, -0.02203369140625, -0.005405426025390625, -0.0166473388671875, 0.01107025146484375, 0.0225372314453125, 0.0184783935546875, 0.0234375, 0.053497314453125, -0.00955963134765625, -0.0225372314453125, 0.005786895751953125, -0.007556915283203125, -0.007110595703125, -0.046905517578125, 0.0287933349609375, 0.0046539306640625, -0.0144805908203125, 0.0125732421875, 0.025665283203125, 0.0020236968994140625, -0.0099029541015625, -0.012786865234375, 0.027587890625, 0.0175933837890625, -0.01212310791015625, -0.022735595703125, -0.01312255859375, -0.00009888410568237305, 0.0175628662109375, -0.037139892578125, -0.06231689453125, 0.02215576171875, 0.0135345458984375, -0.0013027191162109375, -0.032196044921875, -0.065185546875, -0.01549530029296875, -0.00997161865234375, 0.039093017578125, 0.0018024444580078125, 0.020355224609375, -0.03570556640625, 0.06866455078125, -0.045135498046875, -0.01459503173828125, -0.043304443359375, 0.01062774658203125, 0.024688720703125, 0.02069091796875, -0.046112060546875, -0.0285797119140625, -0.0665283203125, -0.0262451171875, -0.009735107421875, 0.0286407470703125, 0.0094757080078125, 0.0168914794921875, -0.03875732421875, 0.033935546875, 0.003368377685546875, -0.02032470703125, 0.026824951171875, -0.0209503173828125, 0.0134735107421875, 0.04815673828125, -0.013916015625, -0.0248260498046875, -0.0219879150390625, 0.06732177734375, -0.026519775390625, -0.04669189453125, -0.0284881591796875, 0.027069091796875, 0.029266357421875, 0.02227783203125, 0.0140380859375, 0.07354736328125, -0.0208282470703125, -0.0263519287109375, 0.00858306884765625, -0.0241546630859375, -0.006137847900390625, -0.0023441314697265625, 0.031982421875, -0.023284912109375, -0.01300811767578125, -0.029052734375, -0.01861572265625, 0.031829833984375, 0.0092315673828125, 0.00533294677734375, -0.01361846923828125, -0.0119476318359375, 0.0282135009765625, 0.003704071044921875, 0.00020706653594970703, -0.002857208251953125, -0.0169525146484375, 0.0048370361328125, -0.0095062255859375, -0.0248870849609375, 0.0200042724609375, -0.048797607421875, 0.055816650390625, 0.007205963134765625, 0.0208740234375, 0.0288238525390625, -0.048583984375, 0.042694091796875, -0.01009368896484375, 0.007404327392578125, 0.0041656494140625, -0.01229095458984375, -0.01068878173828125, 0.0108489990234375, 0.01329803466796875, -0.0218505859375, 0.045806884765625, 0.0050506591796875, 0.06671142578125, -0.0082855224609375, -0.035003662109375, -0.0157623291015625, -0.0249481201171875, 0.03546142578125, 0.0271148681640625, 0.032623291015625, 0.0289459228515625, 0.0019435882568359375, 0.018310546875, 0.048431396484375, -0.040283203125, 0.006000518798828125, 0.01062774658203125, -0.0274810791015625, -0.0019245147705078125, -0.0120849609375, 0.0005688667297363281, 0.027679443359375, -0.010711669921875, -0.0193328857421875, 0.055938720703125, -0.0095062255859375, -0.01308441162109375, -0.015838623046875, 0.031494140625, 0.016082763671875, 0.038543701171875, -0.0073699951171875, 0.0257720947265625, 0.0216217041015625, 0.00949859619140625, 0.023345947265625, 0.0245513916015625, -0.0255889892578125, -0.01995849609375, 0.0276031494140625, 0.025909423828125, 0.0024738311767578125, 0.043792724609375, 0.012603759765625, -0.004932403564453125, -0.031005859375, -0.023834228515625, 0.0207061767578125, 0.0261383056640625, 0.04156494140625, 0.049346923828125, -0.0071258544921875, -0.006420135498046875, -0.000728607177734375, -0.030975341796875, 0.0014820098876953125, 0.06903076171875, 0.033599853515625, 0.01751708984375, 0.0374755859375, 0.00441741943359375, -0.006237030029296875, 0.0234222412109375, 0.00786590576171875, -0.036102294921875, 0.0171661376953125, -0.0258026123046875, 0.048675537109375, -0.045440673828125, 0.038177490234375, 0.04571533203125, -0.0206298828125, 0.01116943359375, -0.0143280029296875, 0.04022216796875, 0.00797271728515625, 0.00821685791015625, 0.0030918121337890625, -0.037872314453125, -0.0031452178955078125, 0.003742218017578125, 0.0498046875, 0.044586181640625, 0.0217437744140625, -0.03863525390625, -0.00035858154296875, 0.0260009765625, -0.09759521484375, -0.12103271484375, -0.07470703125, -0.10107421875, 0.03936767578125, -0.0116729736328125, -0.02899169921875, 0.0019235610961914062, 0.024078369140625, 0.0360107421875, 0.011138916015625, -0.0260009765625, -0.0017299652099609375, -0.0276947021484375, -0.0357666015625, -0.041046142578125, 0.0011777877807617188, -0.0300140380859375, 0.005764007568359375, 0.06927490234375, 0.0135040283203125, -0.0889892578125, 0.0166778564453125, -0.0218505859375, -0.0000014901161193847656, 0.06658935546875, 0.0116119384765625, -0.0164794921875, -0.04376220703125, 0.013702392578125, 0.0026454925537109375, -0.010498046875, -0.00934600830078125, -0.01995849609375, -0.01255035400390625, -0.032073974609375, -0.016876220703125, 0.017425537109375, 0.01116943359375, -0.03839111328125, -0.00687408447265625, -0.064697265625, -0.0227813720703125, 0.0173797607421875, -0.01197052001953125, 0.059295654296875, -0.0133056640625, -0.01080322265625, 0.024505615234375, 0.046905517578125, 0.005710601806640625, -0.008270263671875, -0.0038356781005859375, -0.024169921875, 0.036102294921875, 0.0014181137084960938, 0.027374267578125, -0.00830078125, 0.00897216796875, -0.028167724609375, 0.003421783447265625, -0.009552001953125, -0.01491546630859375, -0.023590087890625, 0.0205078125, 0.0013446807861328125, -0.03375244140625, 0.033935546875, -0.022918701171875, -0.007476806640625, -0.01068115234375, -0.00440216064453125, -0.0024662017822265625, 0.062744140625, -0.07275390625, -0.0115814208984375, 0.002925872802734375, 0.0293426513671875, -0.0504150390625, -0.08953857421875, -0.020233154296875, -0.01251983642578125, -0.12298583984375, -0.002117156982421875, -0.0172119140625, -0.0418701171875, 0.0157623291015625, -0.038848876953125, -0.038360595703125, -0.071044921875, 0.04144287109375, -0.027984619140625, -0.0002799034118652344, 0.01117706298828125, 0.00507354736328125, -0.028900146484375, -0.005466461181640625, -0.030670166015625, -0.09088134765625, -0.0179443359375, -0.062286376953125, 0.09027099609375, 0.04095458984375, -0.0176544189453125, -0.0249786376953125, 0.0333251953125, -0.0223846435546875, -0.002529144287109375, 0.0087432861328125, 0.0582275390625, -0.045745849609375, -0.04046630859375, -0.005229949951171875, -0.072265625, -0.01032257080078125, 0.0006966590881347656, -0.038848876953125, -0.0025634765625, 0.01081085205078125, -0.0136871337890625, 0.053131103515625, -0.0249176025390625, -0.010101318359375, -0.0005421638488769531, -0.0301361083984375, -0.025604248046875, -0.01220703125, -0.033660888671875, 0.007152557373046875, -0.00318145751953125, -0.0037841796875, -0.06939697265625, -0.00909423828125, 0.007762908935546875, 0.03814697265625, 0.02716064453125, 0.016143798828125, 0.03131103515625, 0.00917816162109375, 0.00960540771484375, 0.0196990966796875, 0.0430908203125, 0.01285552978515625, -0.008026123046875, 0.050628662109375, -0.0018053054809570312, -0.00460052490234375, -0.01296234130859375, 0.05108642578125, -0.004398345947265625, -0.0202178955078125, 0.00323486328125, -0.0243072509765625, 0.0225067138671875, -0.0042572021484375, -0.0025272369384765625, 0.00247955322265625, 0.012542724609375, 0.0024967193603515625, -0.0062408447265625, 0.01190948486328125, -0.006717681884765625, -0.0099945068359375, -0.0125579833984375, 0.0174713134765625, 0.0421142578125, 0.0125579833984375, -0.004596710205078125, -0.002864837646484375, 0.04608154296875, 0.003467559814453125, 0.0269927978515625, 0.032958984375, -0.01001739501953125, 0.04144287109375, 0.03375244140625, -0.0081329345703125, 0.004169464111328125, -0.01094818115234375, 0.00959014892578125, 0.0018939971923828125, -0.026397705078125, -0.0290985107421875, -0.01033782958984375, 0.0745849609375, -0.0163726806640625, 0.050048828125, 0.016143798828125, 0.017425537109375, -0.0217437744140625, -0.0380859375, 0.0633544921875, -0.00047516822814941406, -0.043243408203125, 0.0262298583984375, -0.02642822265625, 0.0030803680419921875, -0.0019235610961914062, 0.03179931640625, 0.0037670135498046875, -0.00096893310546875, -0.015106201171875, 0.007511138916015625, -0.0252685546875, 0.060028076171875, 0.02099609375, -0.0496826171875, 0.00017702579498291016, 0.02581787109375, -0.004238128662109375, -0.02972412109375, 0.01837158203125, 0.01708984375, 0.0223388671875, -0.00978851318359375, -0.02911376953125, 0.02325439453125, -0.01294708251953125, -0.0299072265625, 0.004283905029296875, -0.01374053955078125, -0.0184326171875, -0.0124969482421875, 0.00095367431640625, 0.0306549072265625, 0.02484130859375, 0.020538330078125, 0.0223541259765625, -0.0026111602783203125, -0.002166748046875, -0.034393310546875, -0.01503753662109375, -0.01105499267578125, 0.01000213623046875, -0.02862548828125, 0.0034427642822265625, -0.005767822265625, -0.06805419921875, -0.0679931640625, 0.0251312255859375, 0.01276397705078125, 0.039093017578125, -0.0170440673828125, 0.004360198974609375, -0.04144287109375, 0.032318115234375, -0.032867431640625, 0.01496124267578125, 0.0323486328125, 0.0020885467529296875, 0.006900787353515625, -0.035858154296875, -0.0302886962890625, -0.0482177734375, -0.035491943359375, -0.003025054931640625, -0.01371002197265625, 0.0172271728515625, 0.01157379150390625, 0.030364990234375, -0.0421142578125, -0.0689697265625, -0.035369873046875, 0.0288238525390625, 0.06085205078125, 0.1064453125, -0.0347900390625, 0.0794677734375, 0.02203369140625, 0.00685882568359375, 0.00621795654296875, 0.033782958984375, -0.01377105712890625, 0.00885772705078125, -0.022552490234375, -0.054473876953125, 0.021636962890625, 0.00713348388671875, -0.00469970703125, 0.0232086181640625, 0.03851318359375, 0.0241851806640625, 0.00878143310546875, 0.01056671142578125, -0.00013744831085205078, -0.01324462890625, -0.006046295166015625, 0.03778076171875, 0.03009033203125, 0.0180511474609375, -0.0200042724609375, 0.015289306640625, -0.00653076171875, -0.0305023193359375, 0.05712890625, -0.0037136077880859375, 0.03131103515625, 0.00640106201171875, -0.02093505859375, 0.042205810546875, -0.01027679443359375, 0.0248260498046875, 0.0093841552734375, -0.0255889892578125, 0.01403045654296875, -0.05181884765625, 0.01132965087890625, 0.0080718994140625, -0.038787841796875, 0.058074951171875, 0.004077911376953125, -0.00939178466796875, 0.0738525390625, -0.024169921875, 0.0094757080078125, 0.05670166015625, 0.0360107421875, -0.12060546875, 0.029632568359375, 0.002513885498046875, 0.029632568359375, 0.0259857177734375, -0.028106689453125, 0.004863739013671875, -0.008209228515625, 0.060516357421875, 0.053497314453125, -0.0003952980041503906, 0.050933837890625, 0.0146484375, -0.0019893646240234375, -0.00504302978515625, -0.00682830810546875, 0.0124053955078125, -0.0255584716796875, 0.004467010498046875, 0.0288238525390625, -0.01503753662109375, -0.005237579345703125, 0.00495147705078125, 0.0016994476318359375, -0.0306396484375, -0.036529541015625, 0.01097869873046875, -0.015777587890625, -0.017608642578125, 0.0174102783203125, 0.0205078125, 0.055206298828125, 0.03265380859375, 0.02398681640625, -0.02294921875, -0.013519287109375, 0.0253143310546875, 0.015869140625, -0.0104522705078125, 0.0156707763671875, 0.0352783203125, -0.033050537109375, 0.01495361328125, 0.00981903076171875, -0.0180206298828125, 0.00339508056640625, -0.0272216796875, 0.0191650390625, -0.0037937164306640625, -0.0310821533203125, -0.00002872943878173828, -0.0173797607421875, 0.021514892578125, -0.004062652587890625, 0.0019292831420898438, -0.06854248046875, -0.0247802734375, 0.006134033203125, -0.038055419921875, -0.0153045654296875, -0.0009512901306152344, -0.036041259765625, 0.0634765625, -0.00675201416015625, 0.00933074951171875, 0.0279388427734375, 0.0158538818359375, -0.02288818359375, -0.01042938232421875, -0.01483154296875, 0.05181884765625, -0.0389404296875, 0.019561767578125, -0.037139892578125, 0.0107879638671875, 0.01035308837890625, 0.0258026123046875, 0.0186920166015625, 0.00594329833984375, -0.0262298583984375, -0.0135650634765625, 0.016510009765625, 0.034820556640625, 0.0125274658203125, 0.010955810546875, 0.03460693359375, 0.0258331298828125, 0.01367950439453125, -0.0293731689453125, 0.034515380859375, -0.061737060546875, -0.00652313232421875, 0.059051513671875, -0.0090179443359375, -0.0213775634765625, -0.00362396240234375, -0.0168914794921875, -0.04559326171875, 0.0180206298828125, 0.027740478515625, -0.0228424072265625, -0.02459716796875, 0.04351806640625, -0.0207977294921875, 0.008056640625, -0.0604248046875, -0.01251983642578125, -0.00965118408203125, -0.0243377685546875, 0.020477294921875, -0.00974273681640625, 0.029449462890625, -0.0167999267578125, -0.00836944580078125, 0.0160675048828125, 0.05767822265625, -0.0631103515625, -0.000732421875, 0.01284027099609375, 0.040802001953125, 0.01499176025390625, 0.00965118408203125, 0.005290985107421875, -0.0163421630859375, -0.0067291259765625, -0.0206146240234375, 0.0145416259765625, 0.03070068359375, 0.007320404052734375, 0.01317596435546875, 0.0259552001953125, -0.00579071044921875, 0.0321044921875, -0.015625, -0.059173583984375, 0.005405426025390625, 0.031585693359375, 0.0037059783935546875, -0.00304412841796875, 0.039825439453125, -0.044097900390625, -0.05877685546875, 0.031280517578125, 0.01105499267578125, 0.0716552734375, 0.0197906494140625, 0.055572509765625, -0.056640625, -0.0416259765625, -0.040069580078125, 0.0056915283203125, 0.0067291259765625, 0.039398193359375, -0.049072265625, 0.028564453125, 0.007633209228515625, 0.042327880859375, 0.00757598876953125, -0.03460693359375, 0.0156402587890625, -0.0009775161743164062, -0.0750732421875, -0.01088714599609375, 0.0289459228515625, -0.0206756591796875, -0.0185699462890625, 0.003154754638671875, 0.02667236328125, 0.0062713623046875, 0.0177764892578125, 0.0029087066650390625, 0.09698486328125, -0.0226287841796875, -0.06268310546875, 0.0292816162109375, -0.002391815185546875, -0.04486083984375, -0.004497528076171875, 0.035614013671875, 0.06536865234375, -0.00251007080078125, -0.03033447265625, -0.005474090576171875, -0.017547607421875, -0.023590087890625, 0.033721923828125, 0.040740966796875, -0.0213165283203125, 0.03448486328125, 0.07379150390625, -0.031951904296875, -0.007801055908203125, 0.040435791015625, 0.0228729248046875, -0.0157318115234375, 0.01519012451171875, 0.0239715576171875, -0.006000518798828125, -0.017059326171875, 0.00243377685546875, 0.04486083984375, -0.021209716796875, 0.0799560546875, -0.06048583984375, 0.0014171600341796875, -0.0090789794921875, 0.005199432373046875, -0.0255126953125, -0.040618896484375, 0.0286712646484375, -0.0330810546875, -0.01146697998046875, 0.007404327392578125, -0.05615234375, 0.01160430908203125, 0.028167724609375, -0.002811431884765625, 0.0119781494140625, -0.0003871917724609375, 0.0077667236328125, -0.0204620361328125, 0.033294677734375, -0.029083251953125, -0.0545654296875, -0.03448486328125, 0.023345947265625, 0.0036144256591796875, 0.00818634033203125, -0.01482391357421875, 0.01004791259765625, 0.0272064208984375, -0.0303497314453125, 0.01197052001953125, -0.012115478515625, 0.0301055908203125, 0.0374755859375, 0.0023632049560546875, 0.04656982421875, 0.004772186279296875, -0.010345458984375, 0.0496826171875, -0.0029354095458984375, 0.035858154296875, 0.00640869140625, 0.045013427734375, 0.020355224609375, 0.026519775390625, 0.037200927734375, -0.0103759765625, -0.0012454986572265625, 0.033355712890625, -0.029541015625, 0.0018939971923828125, -0.00836944580078125, -0.0249481201171875, -0.061279296875, -0.00008881092071533203, 0.01898193359375, -0.0207366943359375, -0.01129913330078125, -0.0340576171875, 0.024749755859375, 0.0097503662109375, -0.0265045166015625, -0.02935791015625, 0.025726318359375, -0.0711669921875, 0.0212554931640625, -0.0176849365234375, 0.03948974609375, 0.003971099853515625, 0.0196075439453125, -0.041015625, -0.02252197265625, -0.00952911376953125, 0.0290069580078125, -0.0247955322265625, 0.0167236328125, 0.0294647216796875, -0.02252197265625, 0.00024402141571044922, 0.01296234130859375, 0.0023632049560546875, 0.07867431640625, -0.001651763916015625, -0.030517578125, -0.0199737548828125, 0.039886474609375, 0.0020275115966796875, -0.050506591796875, -0.0184478759765625, -0.00921630859375, 0.01374053955078125, -0.01126861572265625, -0.00324249267578125, 0.0102081298828125, -0.035400390625, -0.08380126953125, 0.05206298828125, -0.012786865234375, -0.0248565673828125, -0.040771484375, -0.00341796875, 0.0156097412109375, 0.00015342235565185547, -0.0198822021484375, -0.023345947265625, -0.06353759765625, -0.00272369384765625, 0.0140228271484375, -0.0028533935546875, 0.0419921875, -0.04351806640625, -0.0229339599609375, 0.0167694091796875, 0.03961181640625, 0.01287841796875, -0.0116424560546875, -0.004364013671875, 0.021209716796875, 0.032867431640625, -0.0177154541015625, 0.0015363693237304688, 0.0164794921875, -0.007213592529296875, 0.0016984939575195312, 0.00496673583984375, -0.047760009765625, -0.00728607177734375, 0.099609375, 0.0252227783203125, 0.024139404296875, -0.023956298828125, 0.0030765533447265625, -0.037139892578125, -0.014801025390625, -0.02581787109375, 0.014678955078125, -0.054046630859375, -0.0123291015625, 0.00408935546875, 0.0307769775390625, -0.05438232421875, -0.021514892578125, 0.004688262939453125, -0.051055908203125, 0.01395416259765625, 0.026275634765625, 0.0258636474609375, -0.09747314453125, 0.09613037109375, -0.03985595703125, 0.006198883056640625, 0.023590087890625, 0.06048583984375, 0.047698974609375, 0.048370361328125, -0.01393890380859375, 0.0216217041015625, -0.052764892578125, 0.0304107666015625, -0.0262298583984375, 0.0238189697265625, -0.06640625, 0.0091705322265625, 0.019989013671875, -0.0003495216369628906, -0.0278167724609375, -0.0083160400390625, 0.02264404296875, 0.0027313232421875, -0.033233642578125, 0.0291900634765625, -0.03271484375, 0.01334381103515625, -0.0166778564453125, 0.014739990234375, 0.00894927978515625, -0.0008654594421386719, 0.062744140625, -0.0200347900390625, 0.0005044937133789062, -0.018890380859375, -0.0018682479858398438, -0.0401611328125, -0.017822265625, -0.0237579345703125, 0.01404571533203125, 0.01422119140625 ]
005c59427a423f7769db14874612a9e057f591ca
Wordpress Stackexchange Q: Make item checked by default for all users in "Screen Options" pane When you are in the dashboard, the options checked and unchecked in the "Screen Options" pane seem to me to be completely random and arbitrary and cause lots of confusion when something doesn't show up that you need that "should" be there but isn't. Is there some way to influence which of these options are checked, and make that stick for all users? A: Possibly already answered here : How to set default screen options?
Q: Make item checked by default for all users in "Screen Options" pane When you are in the dashboard, the options checked and unchecked in the "Screen Options" pane seem to me to be completely random and arbitrary and cause lots of confusion when something doesn't show up that you need that "should" be there but isn't. Is there some way to influence which of these options are checked, and make that stick for all users? A: Possibly already answered here : How to set default screen options? A: mike23's link gives the hint to the following function: // add_action('user_register', 'wpse20505_set_user_metaboxes'); add_action('admin_init', 'wpse20505_set_user_metaboxes'); function wpse20505_set_user_metaboxes($user_id=NULL) { $meta_key['hidden'] = 'metaboxhidden_dashboard'; $meta_value = array( 'dashboard_incoming_links', 'dashboard_plugins', 'dashboard_primary', 'dashboard_quick_press', 'dashboard_recent_comments', 'dashboard_recent_drafts', 'dashboard_right_now', 'dashboard_secondary' ); $blogusers = get_users('blog_id=1'); foreach ($blogusers as $user) { // this conditional will check if the user already set his preferences and may be removed if wanted if ( ! get_user_meta( $user->ID, $meta_key['hidden'], true) ) { update_user_meta( $user->ID, $meta_key['hidden'], $meta_value ); } } } The admin_init need to be run only once, and then user_register may be enabled to configure the dashboard for new users. The meta_value array contains all the widgets and may be customized to your needs. A: 1) Copy this codes and paste it in your editor and save it as enable_custom_field.php. Then, create a folder named "Enable Custom Field By Default" and put that PHP file in this folder. Like this, your created with your own plugin. Just put this folder in your plugin folder and activate it in your admin page. <?php /* Plugin Name: Enable Custom Fields per Default Version: 1.0 Required: 3.1 Author: Thomas Scholz Author URI: http://toscho.de License: GPL */ ! defined( 'ABSPATH' ) and exit; add_filter( 'default_hidden_meta_boxes', 'enable_custom_fields_per_default', 20, 1 ); /** * Removes custom fields from the default hidden elements. * * The original ( wp-admin/includes/template.php#get_hidden_meta_boxes() ): * array( * 'slugdiv', * 'trackbacksdiv', * 'postcustom', <-- we need this * 'postexcerpt', * 'commentstatusdiv', * 'commentsdiv', * 'authordiv', * 'revisionsdiv' * ) * * It has no effect if the user has decided to hide the box. * This option is saved in "metaboxhidden_{$screen->id}" * * @param array $hidden * @return array $hidden */ function enable_custom_fields_per_default( $hidden ) { foreach ( $hidden as $i => $metabox ) { if ( 'postcustom' == $metabox ) { unset ( $hidden[$i] ); } } return $hidden; } ?> 2) I have tried this one by creating new user in my admin page and logged in with that user. Custom fields are there in my page's edit section. It worked like a charm.
wordpress
{ "language": "en", "length": 428, "provenance": "stackexchange_00019.jsonl.gz:410489", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20505" }
[ 0.04107666015625, 0.017242431640625, 0.00919342041015625, 0.0277862548828125, 0.01213836669921875, -0.0307464599609375, 0.06378173828125, -0.05517578125, 0.019989013671875, 0.005603790283203125, -0.0301971435546875, -0.0207366943359375, -0.0238189697265625, -0.021575927734375, -0.03125, -0.0440673828125, 0.00931549072265625, 0.0116119384765625, -0.002716064453125, -0.031463623046875, 0.005462646484375, -0.0221099853515625, -0.0203399658203125, 0.05462646484375, 0.0225677490234375, -0.04974365234375, -0.09674072265625, 0.0070953369140625, -0.0227203369140625, -0.0133209228515625, -0.01214599609375, 0.0426025390625, -0.01105499267578125, 0.047119140625, -0.0017223358154296875, 0.00022029876708984375, 0.0274658203125, 0.0311126708984375, 0.06158447265625, -0.0120086669921875, 0.0309906005859375, -0.01324462890625, 0.0037479400634765625, 0.014129638671875, -0.00707244873046875, -0.030059814453125, 0.03106689453125, -0.035491943359375, 0.034088134765625, 0.00421142578125, -0.01727294921875, 0.0235443115234375, -0.019927978515625, -0.046905517578125, 0.00020825862884521484, -0.00464630126953125, 0.0237884521484375, -0.030059814453125, 0.0521240234375, 0.0016832351684570312, -0.0251007080078125, -0.0299530029296875, 0.0207977294921875, -0.04156494140625, 0.0213775634765625, -0.041229248046875, -0.0229034423828125, 0.05914306640625, -0.040252685546875, 0.019256591796875, 0.0251922607421875, -0.0208740234375, 0.0270233154296875, -0.04388427734375, 0.0187835693359375, 0.0253448486328125, -0.0265655517578125, 0.01247406005859375, 0.032470703125, -0.0085906982421875, -0.02587890625, -0.020355224609375, 0.0005016326904296875, -0.06353759765625, 0.018524169921875, -0.033447265625, -0.0060882568359375, 0.014678955078125, -0.0011701583862304688, -0.044525146484375, 0.007175445556640625, -0.0256195068359375, -0.047576904296875, 0.01090240478515625, 0.013702392578125, -0.0504150390625, 0.04119873046875, 0.11065673828125, 0.0060272216796875, 0.0152130126953125, -0.0565185546875, 0.0125579833984375, -0.046112060546875, -0.0323486328125, -0.00008082389831542969, 0.00885772705078125, 0.01375579833984375, 0.04736328125, 0.03192138671875, 0.02972412109375, 0.0017871856689453125, 0.0142822265625, -0.025848388671875, 0.0108184814453125, -0.039825439453125, -0.0210113525390625, -0.058990478515625, 0.002849578857421875, -0.0138397216796875, -0.0032062530517578125, 0.0233306884765625, 0.04632568359375, 0.01557159423828125, -0.035888671875, -0.046661376953125, -0.0390625, -0.0271453857421875, -0.0565185546875, -0.1015625, -0.00543975830078125, 0.002178192138671875, 0.03717041015625, 0.043426513671875, 0.061309814453125, 0.0036067962646484375, 0.01812744140625, -0.02001953125, -0.0135040283203125, -0.0122528076171875, 0.0379638671875, 0.0022220611572265625, -0.05108642578125, -0.0023097991943359375, 0.00637054443359375, 0.019378662109375, 0.015350341796875, 0.027984619140625, 0.0296478271484375, -0.0261077880859375, -0.0496826171875, 0.03399658203125, 0.007411956787109375, -0.01395416259765625, 0.019317626953125, 0.00823974609375, 0.0150146484375, 0.004596710205078125, 0.009429931640625, -0.01666259765625, 0.004985809326171875, -0.0233306884765625, -0.0235595703125, 0.019683837890625, -0.0171966552734375, -0.0012664794921875, 0.0226898193359375, 0.0038547515869140625, 0.01213836669921875, 0.01549530029296875, 0.00659942626953125, -0.04693603515625, -0.030792236328125, 0.007389068603515625, 0.0031261444091796875, -0.005077362060546875, 0.056182861328125, -0.00318145751953125, -0.0006794929504394531, 0.0252838134765625, 0.00035071372985839844, -0.0247039794921875, -0.04876708984375, 0.00395965576171875, -0.006908416748046875, -0.0535888671875, -0.0047607421875, -0.0033779144287109375, 0.04376220703125, 0.068603515625, 0.00830841064453125, 0.008575439453125, -0.03460693359375, -0.021270751953125, -0.0266876220703125, 0.007343292236328125, 0.0120391845703125, -0.03662109375, 0.0090484619140625, -0.02203369140625, 0.00894927978515625, 0.07421875, -0.03497314453125, 0.039215087890625, -0.054229736328125, -0.040557861328125, -0.0628662109375, 0.003948211669921875, 0.0173187255859375, 0.0236663818359375, -0.02679443359375, -0.00804901123046875, -0.045013427734375, 0.0095062255859375, -0.0030460357666015625, -0.0289306640625, 0.031036376953125, -0.006885528564453125, 0.00690460205078125, 0.002197265625, -0.035003662109375, 0.01535797119140625, -0.001911163330078125, 0.01873779296875, 0.01045989990234375, -0.00750732421875, -0.006984710693359375, -0.01520538330078125, -0.004810333251953125, 0.0312347412109375, -0.0076904296875, 0.0543212890625, 0.012481689453125, -0.0124053955078125, 0.01000213623046875, -0.027984619140625, -0.004596710205078125, -0.01678466796875, -0.025726318359375, 0.0019664764404296875, 0.037750244140625, 0.0090789794921875, 0.0261993408203125, -0.006626129150390625, 0.035400390625, -0.016815185546875, -0.0279388427734375, 0.0173797607421875, 0.01184844970703125, 0.00711822509765625, 0.0193939208984375, 0.0308074951171875, 0.02508544921875, 0.0243072509765625, 0.0187835693359375, 0.04803466796875, 0.011474609375, -0.0310821533203125, 0.03936767578125, -0.01306915283203125, -0.02044677734375, -0.006015777587890625, 0.009429931640625, 0.0275726318359375, -0.01519775390625, 0.021148681640625, -0.054962158203125, -0.0016460418701171875, -0.013671875, -0.0092315673828125, -0.020904541015625, 0.0229339599609375, -0.034942626953125, -0.0198516845703125, 0.025299072265625, 0.042938232421875, -0.022979736328125, -0.037994384765625, -0.011749267578125, -0.0257110595703125, 0.006671905517578125, -0.00238800048828125, 0.0011501312255859375, -0.012359619140625, -0.01030731201171875, 0.024505615234375, -0.050750732421875, -0.00279998779296875, -0.00039076805114746094, -0.0003323554992675781, -0.0228729248046875, 0.0386962890625, -0.01690673828125, -0.020660400390625, 0.034576416015625, -0.006591796875, -0.046630859375, -0.023651123046875, -0.0215301513671875, 0.0253448486328125, -0.0265350341796875, 0.00005602836608886719, 0.06634521484375, 0.0004200935363769531, 0.01824951171875, 0.0024623870849609375, 0.0239715576171875, 0.019195556640625, -0.0224761962890625, -0.01415252685546875, 0.0252227783203125, -0.046356201171875, 0.0311279296875, 0.0233306884765625, 0.019775390625, 0.006946563720703125, -0.0247650146484375, -0.00836944580078125, 0.00829315185546875, -0.050689697265625, -0.0655517578125, 0.0176239013671875, -0.0242462158203125, -0.01505279541015625, -0.01025390625, -0.0032405853271484375, 0.005523681640625, -0.007495880126953125, -0.0016841888427734375, -0.006816864013671875, -0.003314971923828125, 0.0009899139404296875, 0.00286102294921875, -0.017120361328125, 0.005420684814453125, -0.018646240234375, -0.006130218505859375, -0.0076141357421875, 0.0518798828125, -0.01158905029296875, -0.051177978515625, -0.040740966796875, -0.058624267578125, 0.0152740478515625, -0.016754150390625, 0.022491455078125, -0.04217529296875, 0.01143646240234375, -0.0017852783203125, -0.007709503173828125, 0.022216796875, -0.0095367431640625, -0.01806640625, -0.005519866943359375, -0.0225067138671875, -0.03033447265625, 0.05072021484375, 0.0264129638671875, -0.01450347900390625, 0.007354736328125, -0.039459228515625, 0.0189056396484375, 0.0242767333984375, 0.006732940673828125, 0.016448974609375, -0.0287933349609375, -0.01654052734375, 0.0185089111328125, 0.01091766357421875, 0.01413726806640625, -0.008087158203125, 0.050506591796875, -0.00586700439453125, -0.0118865966796875, -0.0180511474609375, -0.01898193359375, -0.03131103515625, -0.013397216796875, -0.05841064453125, -0.00705718994140625, -0.03741455078125, -0.053863525390625, -0.03448486328125, 0.03973388671875, 0.00682830810546875, -0.0285491943359375, 0.0193023681640625, -0.0286712646484375, -0.02880859375, 0.004718780517578125, 0.0174713134765625, 0.0147552490234375, 0.0325927734375, -0.0634765625, -0.00228118896484375, 0.029144287109375, 0.029876708984375, -0.03662109375, -0.047088623046875, -0.045196533203125, -0.02728271484375, -0.10455322265625, 0.01035308837890625, 0.02398681640625, -0.0604248046875, -0.01242828369140625, -0.0005488395690917969, -0.0516357421875, -0.03857421875, 0.047760009765625, 0.0005702972412109375, 0.01702880859375, -0.00972747802734375, 0.038421630859375, -0.0379638671875, 0.0033092498779296875, -0.0125885009765625, -0.077392578125, -0.017303466796875, -0.032958984375, 0.05950927734375, 0.033721923828125, -0.0171051025390625, 0.0159759521484375, 0.060882568359375, 0.0189361572265625, 0.02532958984375, 0.0168609619140625, -0.01023101806640625, 0.0225982666015625, -0.019134521484375, 0.01025390625, -0.024169921875, -0.02484130859375, -0.006366729736328125, -0.001796722412109375, 0.0302734375, 0.005519866943359375, -0.00861358642578125, 0.0154876708984375, -0.011444091796875, -0.111328125, -0.04925537109375, -0.0172882080078125, -0.018585205078125, -0.00019562244415283203, -0.015960693359375, -0.049591064453125, -0.10040283203125, 0.02862548828125, -0.01190185546875, 0.01336669921875, 0.007457733154296875, 0.05706787109375, -0.001689910888671875, -0.0228424072265625, 0.0064697265625, -0.02435302734375, 0.00264739990234375, 0.00521087646484375, -0.000396728515625, -0.0160064697265625, 0.00827789306640625, 0.01107025146484375, -0.04150390625, 0.000644683837890625, -0.037353515625, 0.0606689453125, -0.0343017578125, -0.0270233154296875, 0.0303192138671875, -0.05755615234375, 0.0131378173828125, 0.02923583984375, 0.0308837890625, 0.0213775634765625, -0.0014514923095703125, -0.0333251953125, 0.02862548828125, -0.055694580078125, 0.015350341796875, -0.00875091552734375, -0.007080078125, 0.025054931640625, 0.0229949951171875, 0.014190673828125, 0.0006284713745117188, 0.0004811286926269531, 0.0225372314453125, 0.01849365234375, 0.00638580322265625, 0.016021728515625, -0.00203704833984375, 0.058135986328125, -0.00409698486328125, 0.0181732177734375, -0.00750732421875, -0.005496978759765625, 0.016204833984375, -0.003253936767578125, -0.040313720703125, 0.01117706298828125, -0.01508331298828125, -0.017669677734375, 0.0181732177734375, 0.01528167724609375, 0.03369140625, 0.0169219970703125, -0.0198822021484375, -0.0148468017578125, -0.02288818359375, 0.01168060302734375, -0.045501708984375, 0.01287841796875, -0.007221221923828125, 0.0006241798400878906, 0.041351318359375, -0.005672454833984375, -0.01120758056640625, 0.00151824951171875, -0.0220489501953125, 0.000988006591796875, 0.040985107421875, -0.03729248046875, 0.005268096923828125, 0.059326171875, -0.03240966796875, -0.003662109375, 0.05224609375, -0.00817108154296875, -0.0146636962890625, 0.0236358642578125, 0.01160430908203125, 0.02960205078125, 0.0256500244140625, -0.025238037109375, -0.001987457275390625, -0.0027790069580078125, 0.03125, -0.0416259765625, -0.07208251953125, -0.0335693359375, 0.00902557373046875, 0.021087646484375, -0.052032470703125, -0.02508544921875, 0.0491943359375, -0.02069091796875, 0.044677734375, 0.0789794921875, -0.02386474609375, 0.002048492431640625, 0.006038665771484375, -0.066650390625, 0.0142364501953125, 0.025115966796875, -0.0657958984375, -0.046966552734375, 0.00421142578125, -0.032623291015625, 0.062225341796875, -0.015960693359375, 0.0145263671875, -0.0224609375, -0.000980377197265625, 0.0300750732421875, 0.023101806640625, 0.0104827880859375, -0.025909423828125, -0.031524658203125, -0.007106781005859375, -0.04876708984375, -0.031829833984375, -0.05633544921875, -0.0382080078125, -0.05657958984375, -0.00092315673828125, 0.028106689453125, 0.0258026123046875, 0.00811767578125, -0.059539794921875, -0.015960693359375, 0.01108551025390625, 0.0548095703125, 0.0163116455078125, 0.015411376953125, 0.044586181640625, -0.03912353515625, 0.050201416015625, 0.0035419464111328125, 0.005645751953125, -0.06396484375, -0.00547027587890625, -0.0096588134765625, -0.03350830078125, 0.00296783447265625, 0.01325225830078125, -0.006473541259765625, 0.0256805419921875, 0.047027587890625, 0.01336669921875, 0.0019741058349609375, -0.0012483596801757812, -0.0014028549194335938, -0.006717681884765625, 0.0295562744140625, 0.02008056640625, 0.0176849365234375, 0.03497314453125, 0.005443572998046875, -0.0169677734375, -0.004215240478515625, 0.015869140625, -0.033966064453125, 0.01482391357421875, -0.0148162841796875, -0.0311126708984375, -0.086669921875, 0.1173095703125, 0.06396484375, -0.024322509765625, 0.0121307373046875, -0.0139312744140625, -0.021087646484375, -0.010894775390625, 0.0213470458984375, -0.01531982421875, -0.013824462890625, -0.0167236328125, -0.0177154541015625, -0.0159912109375, -0.04052734375, -0.01041412353515625, -0.0023746490478515625, 0.0823974609375, 0.04266357421875, -0.140869140625, 0.0231170654296875, 0.01061248779296875, 0.01039886474609375, -0.003910064697265625, 0.003459930419921875, 0.01161956787109375, -0.02105712890625, 0.0435791015625, -0.0634765625, -0.02001953125, 0.00662994384765625, -0.07073974609375, 0.005886077880859375, -0.0022735595703125, 0.03192138671875, -0.03155517578125, -0.021636962890625, -0.06256103515625, 0.0247955322265625, -0.054443359375, -0.02081298828125, 0.0498046875, 0.0173187255859375, -0.01078033447265625, -0.10369873046875, -0.01042938232421875, 0.0201873779296875, -0.06805419921875, 0.04815673828125, -0.0082855224609375, -0.01300811767578125, 0.0310516357421875, -0.0239410400390625, 0.0159149169921875, 0.0091094970703125, -0.0535888671875, 0.01715087890625, -0.007274627685546875, 0.030609130859375, -0.0196533203125, -0.0304412841796875, 0.00997161865234375, -0.0328369140625, -0.039459228515625, -0.00665283203125, -0.0275421142578125, 0.0447998046875, -0.04071044921875, -0.012939453125, -0.01541900634765625, 0.0183258056640625, 0.047271728515625, 0.01511383056640625, -0.0270233154296875, -0.06036376953125, -0.047271728515625, -0.01001739501953125, -0.0894775390625, 0.00383758544921875, 0.00115966796875, 0.006587982177734375, 0.0023860931396484375, 0.0159149169921875, -0.035675048828125, 0.0031452178955078125, 0.01477813720703125, 0.0006241798400878906, 0.02471923828125, -0.033416748046875, 0.006809234619140625, 0.0216064453125, 0.067138671875, -0.060882568359375, -0.045684814453125, 0.01045989990234375, 0.08050537109375, -0.01149749755859375, -0.001567840576171875, -0.005706787109375, -0.0003943443298339844, 0.031463623046875, 0.034637451171875, 0.016693115234375, 0.01222991943359375, 0.0274505615234375, 0.010040283203125, 0.019744873046875, -0.01751708984375, 0.01166534423828125, -0.0125579833984375, 0.003932952880859375, 0.0401611328125, 0.0157318115234375, 0.0169525146484375, 0.0157470703125, 0.038848876953125, -0.01457977294921875, 0.006519317626953125, 0.01291656494140625, -0.04254150390625, 0.0164337158203125, 0.0298919677734375, 0.0340576171875, -0.0225830078125, -0.02105712890625, -0.0163421630859375, 0.044830322265625, 0.00368499755859375, -0.04107666015625, 0.02337646484375, 0.005275726318359375, -0.06683349609375, -0.0221405029296875, -0.04315185546875, -0.01556396484375, 0.005939483642578125, -0.033172607421875, -0.0018224716186523438, 0.004238128662109375, -0.029144287109375, 0.0287322998046875, 0.037994384765625, -0.007366180419921875, -0.0203399658203125, -0.02178955078125, 0.01385498046875, 0.032623291015625, 0.032012939453125, -0.0123443603515625, 0.03363037109375, -0.06292724609375, 0.01070404052734375, -0.046630859375, 0.019989013671875, 0.0265045166015625, -0.00043272972106933594, -0.0206146240234375, -0.004627227783203125, -0.035919189453125, 0.04791259765625, -0.00832366943359375, 0.0249786376953125, -0.00012874603271484375, -0.0439453125, -0.0150909423828125, -0.019256591796875, 0.02239990234375, 0.0307464599609375, -0.044952392578125, 0.0545654296875, 0.03289794921875, 0.06549072265625, -0.073486328125, -0.0186767578125, 0.03961181640625, 0.031494140625, 0.0065765380859375, -0.0357666015625, -0.001140594482421875, 0.0141448974609375, -0.00289154052734375, -0.0189208984375, 0.02032470703125, -0.00873565673828125, -0.041259765625, 0.0222625732421875, 0.006450653076171875, 0.09393310546875, 0.01013946533203125, 0.0267791748046875, 0.00045228004455566406, 0.1025390625, 0.007373809814453125, 0.020294189453125, 0.0038967132568359375, -0.01346588134765625, 0.0318603515625, 0.018646240234375, 0.08038330078125, 0.0345458984375, -0.0307159423828125, -0.0089874267578125, 0.0193328857421875, -0.01178741455078125, -0.02984619140625, 0.0201263427734375, 0.0168914794921875, -0.00090789794921875, 0.01308441162109375, -0.00897216796875, 0.021881103515625, 0.00240325927734375, -0.002902984619140625, 0.05218505859375, 0.0298614501953125, 0.017120361328125, -0.032135009765625, -0.0003304481506347656, 0.00030612945556640625, 0.0235137939453125, -0.02410888671875, 0.03741455078125, -0.005657196044921875, 0.00949859619140625, 0.0032062530517578125, 0.030853271484375, -0.004077911376953125, -0.011627197265625, 0.064453125, 0.0192718505859375, 0.005023956298828125, -0.0274810791015625, -0.02972412109375, 0.027313232421875, 0.01560211181640625, -0.0282745361328125, 0.0178985595703125, -0.02496337890625, 0.003231048583984375, -0.004039764404296875, 0.04437255859375, -0.01947021484375, -0.062042236328125, -0.02386474609375, 0.0300750732421875, -0.00787353515625, 0.01702880859375, -0.03094482421875, 0.03857421875, -0.0226593017578125, 0.007068634033203125, -0.03125, 0.01500701904296875, -0.07012939453125, 0.005672454833984375, -0.0107879638671875, 0.029388427734375, -0.041900634765625, -0.01641845703125, -0.003025054931640625, 0.012359619140625, -0.07403564453125, -0.00670623779296875, 0.0237579345703125, -0.03094482421875, 0.0074310302734375, -0.0005044937133789062, -0.041015625, -0.01277923583984375, 0.031646728515625, -0.0218963623046875, -0.00357818603515625, 0.0406494140625, 0.0064544677734375, 0.01629638671875, -0.03106689453125, -0.0176239013671875, 0.01149749755859375, -0.0229644775390625, 0.00785064697265625, 0.0205841064453125, 0.035980224609375, 0.0029201507568359375, -0.039093017578125, 0.035919189453125, -0.04412841796875, 0.009735107421875, 0.00836181640625, 0.00836944580078125, -0.006443023681640625, -0.0147705078125, -0.03253173828125, 0.0081939697265625, -0.006565093994140625, -0.00909423828125, 0.0203094482421875, 0.0216217041015625, 0.00363922119140625, -0.00601959228515625, 0.004405975341796875, 0.018463134765625, 0.0016183853149414062, 0.0780029296875, 0.00424957275390625, -0.03839111328125, -0.031707763671875, 0.001132965087890625, 0.00917816162109375, -0.0079803466796875, 0.002002716064453125, -0.03521728515625, -0.01385498046875, 0.00830078125, 0.012237548828125, 0.04437255859375, -0.0271148681640625, -0.06524658203125, 0.0802001953125, -0.0157470703125, -0.0260467529296875, -0.02398681640625, 0.00782012939453125, -0.0164642333984375, 0.055816650390625, -0.004947662353515625, -0.004703521728515625, -0.0107269287109375, 0.0160675048828125, 0.02459716796875, 0.01513671875, 0.01027679443359375, 0.01035308837890625, -0.046142578125, 0.0078887939453125, -0.02716064453125, 0.017608642578125, 0.051788330078125, -0.037139892578125, 0.027557373046875, 0.044769287109375, -0.0379638671875, -0.06951904296875, -0.0300750732421875, -0.031829833984375, 0.004383087158203125, -0.0231781005859375, -0.01885986328125, -0.021148681640625, 0.016387939453125, 0.02191162109375, 0.01349639892578125, 0.01145172119140625, -0.05267333984375, -0.0457763671875, 0.0201873779296875, -0.02630615234375, -0.006961822509765625, -0.054534912109375, 0.0159454345703125, -0.032073974609375, -0.036651611328125, 0.00777435302734375, 0.0131378173828125, -0.031280517578125, 0.0252227783203125, 0.04071044921875, -0.01617431640625, -0.03204345703125, -0.0347900390625, -0.0232086181640625, 0.0136260986328125, 0.0060882568359375, -0.0408935546875, 0.04095458984375, -0.03692626953125, -0.0084686279296875, -0.035491943359375, 0.0233612060546875, -0.07574462890625, 0.0233917236328125, -0.0426025390625, 0.04901123046875, -0.0850830078125, 0.0179595947265625, -0.0179901123046875, 0.01186370849609375, 0.004451751708984375, 0.023834228515625, -0.033477783203125, 0.02923583984375, 0.0216064453125, 0.021575927734375, -0.029937744140625, -0.0203704833984375, -0.05712890625, 0.05767822265625, 0.0152435302734375, -0.00652313232421875, 0.083740234375, -0.032623291015625, 0.0005564689636230469, 0.01161956787109375, -0.0191650390625, -0.03643798828125, 0.0230560302734375, -0.001255035400390625, -0.00726318359375, 0.003566741943359375 ]
f0a16ccca0157ee3f8b7c539c410c39dba59bb97
Wordpress Stackexchange Q: Identify which loop you are hooking into; primary or secondary? What is the most efficient way to determine which loop I'm in? I have a few plugins that alter the query by hooking into various parts of WP_Query::get_posts(), through the usual suspects, ie posts_where, posts_join, etc. I don't want to effect every loop on every page though, so right now I'm running a debug_backtrace() and checking for the existence of the main() or query_posts() function as necessary. There has to be a more efficient way to identify the primary loop and sub-loops on each page. Something I keep missing when I pore over the query vars and other aspects of the request, something that's unique to each one. How would you go about doing this? A: Just a quick update that a new method is_main_query() has been introduced in WP 3.3. Example: add_action( 'pre_get_posts', 'foo_modify_query_exclude_category' ); function foo_modify_query_exclude_category( $query ) { if ( $query->is_main_query() && ! $query->get( 'cat' ) ) $query->set( 'cat', '-5' ); } Resources: * *WPDevel: New API in 3.3: is_main_query() *Codex reference: is_main_query() *Related Trac Ticket #18677
Q: Identify which loop you are hooking into; primary or secondary? What is the most efficient way to determine which loop I'm in? I have a few plugins that alter the query by hooking into various parts of WP_Query::get_posts(), through the usual suspects, ie posts_where, posts_join, etc. I don't want to effect every loop on every page though, so right now I'm running a debug_backtrace() and checking for the existence of the main() or query_posts() function as necessary. There has to be a more efficient way to identify the primary loop and sub-loops on each page. Something I keep missing when I pore over the query vars and other aspects of the request, something that's unique to each one. How would you go about doing this? A: Just a quick update that a new method is_main_query() has been introduced in WP 3.3. Example: add_action( 'pre_get_posts', 'foo_modify_query_exclude_category' ); function foo_modify_query_exclude_category( $query ) { if ( $query->is_main_query() && ! $query->get( 'cat' ) ) $query->set( 'cat', '-5' ); } Resources: * *WPDevel: New API in 3.3: is_main_query() *Codex reference: is_main_query() *Related Trac Ticket #18677 A: If secondary loops are called properly (i.e. by not mucking with query_posts(), and by setting a variable $myloop equal to get_posts() or new WP_Query), then identifying said loop is as simple as referencing the variable. If you need to call a second loop from within the primary Loop, and you call setup_postdata() in the secondary loop, you may need to call wp_reset_query() when you close your secondary loop, so that your template tags revert to applying to the primary Loop.
wordpress
{ "language": "en", "length": 262, "provenance": "stackexchange_00019.jsonl.gz:410503", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20545" }
[ 0.009552001953125, -0.00860595703125, -0.015411376953125, -0.004802703857421875, 0.00876617431640625, -0.044097900390625, 0.058135986328125, 0.0014438629150390625, 0.01175689697265625, 0.051300048828125, -0.017852783203125, 0.0167999267578125, 0.006168365478515625, -0.01320648193359375, -0.0308990478515625, 0.0004963874816894531, 0.04193115234375, -0.05029296875, -0.0010223388671875, -0.030792236328125, 0.0169525146484375, -0.01448822021484375, 0.03765869140625, 0.08831787109375, 0.007244110107421875, -0.065185546875, 0.07611083984375, -0.004718780517578125, 0.0126495361328125, -0.01105499267578125, 0.0113372802734375, -0.01389312744140625, 0.016448974609375, 0.01461029052734375, -0.003963470458984375, 0.016754150390625, 0.0269775390625, -0.01270294189453125, 0.020294189453125, 0.007617950439453125, 0.0095062255859375, -0.009918212890625, -0.043487548828125, -0.02203369140625, -0.05517578125, -0.0273590087890625, 0.0498046875, 0.031768798828125, 0.048858642578125, -0.0069122314453125, 0.005718231201171875, 0.0189361572265625, 0.007717132568359375, 0.00856781005859375, -0.0199127197265625, 0.044952392578125, 0.009979248046875, -0.02947998046875, 0.025634765625, -0.0010385513305664062, -0.03570556640625, -0.006191253662109375, 0.031524658203125, -0.027069091796875, 0.00330352783203125, -0.015167236328125, 0.0237579345703125, 0.0110321044921875, 0.017669677734375, -0.0202178955078125, -0.004367828369140625, 0.019622802734375, -0.00424957275390625, 0.024017333984375, -0.055572509765625, -0.0308074951171875, 0.038665771484375, -0.0176849365234375, 0.0240936279296875, -0.002201080322265625, -0.0345458984375, -0.02484130859375, -0.0767822265625, 0.0185089111328125, -0.0120697021484375, 0.036376953125, -0.0177154541015625, -0.000011682510375976562, -0.035980224609375, -0.0194091796875, -0.018768310546875, -0.0311431884765625, -0.001880645751953125, -0.0242919921875, -0.0173492431640625, -0.03521728515625, -0.0016193389892578125, 0.0322265625, -0.016571044921875, 0.00322723388671875, -0.0124664306640625, -0.0198822021484375, -0.0159759521484375, -0.01383209228515625, 0.031982421875, 0.06805419921875, 0.017333984375, 0.01430511474609375, 0.06817626953125, 0.0034503936767578125, 0.0261688232421875, 0.0758056640625, -0.014495849609375, 0.02154541015625, -0.049102783203125, 0.000926971435546875, -0.03570556640625, 0.002956390380859375, -0.03448486328125, 0.05010986328125, 0.01275634765625, 0.03973388671875, -0.00749969482421875, -0.0264892578125, 0.00844573974609375, -0.0003371238708496094, -0.01258087158203125, -0.032958984375, -0.008148193359375, 0.03619384765625, -0.0205535888671875, -0.0251007080078125, 0.06353759765625, 0.035552978515625, -0.0029048919677734375, -0.0264892578125, -0.0011186599731445312, 0.0010633468627929688, -0.01108551025390625, 0.01006317138671875, 0.0046234130859375, -0.034515380859375, 0.00510406494140625, -0.0138702392578125, 0.01291656494140625, 0.030517578125, 0.02044677734375, 0.00836944580078125, -0.0001437664031982422, -0.033233642578125, 0.019500732421875, -0.03497314453125, 0.032745361328125, -0.0201263427734375, 0.007450103759765625, -0.0146636962890625, 0.01201629638671875, -0.0168914794921875, -0.022216796875, 0.00014460086822509766, -0.005413055419921875, -0.01224517822265625, 0.0051116943359375, -0.0308074951171875, -0.0389404296875, 0.01505279541015625, -0.0234375, 0.004791259765625, 0.005947113037109375, 0.0146636962890625, 0.0203094482421875, -0.00560760498046875, -0.0193023681640625, -0.004302978515625, -0.006542205810546875, -0.00949859619140625, -0.019775390625, -0.00872039794921875, 0.044525146484375, 0.01477813720703125, -0.017242431640625, -0.035980224609375, 0.0289764404296875, 0.0019025802612304688, -0.0712890625, 0.056671142578125, 0.006610870361328125, 0.055938720703125, -0.00801849365234375, -0.01168060302734375, 0.07037353515625, 0.050872802734375, -0.01515960693359375, 0.033935546875, 0.00688934326171875, -0.045684814453125, -0.0161285400390625, -0.0063629150390625, 0.005435943603515625, -0.032806396484375, 0.014434814453125, 0.04693603515625, -0.031341552734375, 0.0242156982421875, -0.09893798828125, 0.04046630859375, -0.0219268798828125, 0.042388916015625, 0.0265045166015625, 0.05224609375, 0.00994110107421875, 0.044647216796875, -0.0251617431640625, -0.0216827392578125, -0.031036376953125, 0.0012054443359375, -0.01520538330078125, 0.01416015625, 0.0126495361328125, 0.009918212890625, 0.045135498046875, -0.01435089111328125, 0.0235137939453125, 0.0201416015625, 0.08184814453125, -0.0137481689453125, -0.004482269287109375, -0.0275726318359375, 0.063232421875, 0.0228118896484375, -0.0628662109375, -0.00010889768600463867, 0.06878662109375, 0.072998046875, -0.0208740234375, 0.002918243408203125, 0.038909912109375, -0.01024627685546875, 0.0007691383361816406, 0.02691650390625, 0.0340576171875, 0.02044677734375, -0.029693603515625, -0.046600341796875, 0.054290771484375, -0.05181884765625, -0.01528167724609375, -0.0240631103515625, 0.023468017578125, 0.0626220703125, -0.032379150390625, 0.0025634765625, 0.01873779296875, 0.0290069580078125, -0.004150390625, 0.0172882080078125, 0.0033588409423828125, 0.006931304931640625, -0.0128936767578125, -0.01317596435546875, 0.0203704833984375, -0.006671905517578125, -0.044342041015625, 0.0131683349609375, 0.06890869140625, -0.0244598388671875, 0.06353759765625, 0.049896240234375, 0.0133819580078125, -0.0272674560546875, -0.0172576904296875, -0.0227203369140625, -0.010009765625, -0.022735595703125, -0.0250091552734375, 0.0163116455078125, -0.04150390625, 0.025421142578125, 0.0096893310546875, -0.02288818359375, -0.0208892822265625, 0.056182861328125, -0.033203125, -0.02337646484375, -0.050689697265625, -0.06390380859375, -0.0055694580078125, -0.0212860107421875, 0.038909912109375, -0.002147674560546875, 0.030517578125, 0.00621795654296875, -0.0263671875, 0.039520263671875, -0.0011453628540039062, -0.0311279296875, 0.037506103515625, -0.015594482421875, 0.039886474609375, -0.033782958984375, 0.02349853515625, 0.050445556640625, -0.017181396484375, 0.0050811767578125, 0.0008821487426757812, -0.0181732177734375, -0.0242767333984375, 0.014190673828125, 0.00487518310546875, 0.017578125, -0.08203125, 0.01486968994140625, 0.01971435546875, 0.054290771484375, -0.0103302001953125, -0.053741455078125, 0.03021240234375, 0.004894256591796875, -0.04583740234375, -0.0926513671875, -0.00833892822265625, -0.0228118896484375, -0.04119873046875, -0.004535675048828125, -0.0200042724609375, 0.01922607421875, -0.01806640625, -0.01947021484375, 0.034454345703125, -0.0187530517578125, -0.06829833984375, -0.040740966796875, -0.068603515625, -0.0169677734375, -0.0009698867797851562, 0.01393890380859375, -0.003330230712890625, 0.097412109375, 0.002933502197265625, -0.059295654296875, -0.02667236328125, -0.0028591156005859375, -0.01342010498046875, -0.01401519775390625, -0.0338134765625, 0.0193634033203125, -0.01271820068359375, 0.004543304443359375, -0.0271759033203125, 0.002269744873046875, 0.006694793701171875, -0.01666259765625, 0.006282806396484375, -0.00418853759765625, 0.03338623046875, 0.007534027099609375, -0.018951416015625, 0.035888671875, 0.046661376953125, -0.012725830078125, -0.022216796875, -0.0199432373046875, -0.0537109375, -0.016082763671875, 0.0207061767578125, 0.021820068359375, 0.005374908447265625, -0.0215911865234375, 0.0240936279296875, -0.0293121337890625, -0.039825439453125, -0.0285491943359375, 0.061004638671875, 0.018310546875, 0.061309814453125, -0.005702972412109375, 0.037445068359375, -0.019989013671875, -0.003528594970703125, 0.01151275634765625, -0.0028781890869140625, 0.01629638671875, -0.040924072265625, 0.01070404052734375, 0.048583984375, 0.01151275634765625, -0.018524169921875, 0.02142333984375, -0.007709503173828125, -0.004425048828125, -0.029052734375, 0.01861572265625, -0.05780029296875, -0.0270843505859375, -0.0200958251953125, 0.0167388916015625, -0.015106201171875, -0.02325439453125, 0.000858306884765625, -0.01299285888671875, -0.056884765625, -0.022216796875, -0.0273284912109375, -0.027801513671875, -0.0307159423828125, 0.035675048828125, -0.05718994140625, -0.028900146484375, 0.05419921875, -0.07452392578125, -0.00165557861328125, -0.00913238525390625, -0.013092041015625, -0.043365478515625, -0.03656005859375, -0.025726318359375, -0.10455322265625, -0.014862060546875, -0.02978515625, 0.056427001953125, 0.0198516845703125, -0.050933837890625, -0.0218048095703125, 0.038818359375, 0.034515380859375, -0.0252532958984375, 0.001735687255859375, -0.032562255859375, -0.00785064697265625, 0.0355224609375, -0.0305023193359375, 0.001369476318359375, -0.01494598388671875, -0.021026611328125, -0.0258636474609375, 0.0184478759765625, -0.0264434814453125, -0.0281829833984375, -0.006542205810546875, -0.01342010498046875, -0.046295166015625, -0.031402587890625, 0.013458251953125, 0.006320953369140625, -0.039794921875, 0.0303497314453125, -0.023101806640625, -0.03118896484375, 0.046539306640625, -0.00565338134765625, -0.00634765625, 0.0094451904296875, 0.063232421875, 0.005115509033203125, -0.024871826171875, -0.060821533203125, -0.0292510986328125, 0.0103759765625, -0.004016876220703125, 0.061981201171875, 0.022125244140625, 0.0011749267578125, 0.05322265625, -0.0081329345703125, 0.00785064697265625, -0.0308837890625, 0.01275634765625, 0.0159912109375, -0.01384735107421875, 0.00539398193359375, 0.0050506591796875, 0.034912109375, 0.0023784637451171875, -0.0161895751953125, -0.023193359375, 0.01560211181640625, 0.037353515625, -0.01580810546875, 0.041229248046875, -0.0260467529296875, -0.01352691650390625, 0.0088348388671875, 0.06768798828125, 0.0287933349609375, 0.02984619140625, 0.005130767822265625, 0.0073394775390625, 0.0127716064453125, 0.00861358642578125, 0.00431060791015625, 0.0660400390625, -0.024627685546875, 0.0638427734375, -0.0171661376953125, -0.00988006591796875, -0.035675048828125, -0.003936767578125, 0.012420654296875, -0.054718017578125, -0.05633544921875, -0.01088714599609375, -0.018035888671875, 0.031890869140625, 0.06005859375, -0.0264739990234375, 0.04254150390625, -0.009674072265625, -0.025146484375, -0.01155853271484375, -0.02984619140625, -0.06951904296875, -0.051849365234375, -0.005458831787109375, -0.0285797119140625, 0.000059723854064941406, 0.0159149169921875, 0.0213165283203125, -0.016937255859375, 0.0273590087890625, -0.01446533203125, 0.00920867919921875, 0.00501251220703125, -0.0006961822509765625, -0.00438690185546875, 0.045806884765625, -0.0007839202880859375, -0.01153564453125, 0.040618896484375, 0.003467559814453125, 0.0038814544677734375, 0.006443023681640625, 0.01241302490234375, -0.0028514862060546875, 0.0018682479858398438, 0.00864410400390625, -0.02655029296875, -0.01186370849609375, 0.02899169921875, 0.0008020401000976562, -0.00399017333984375, -0.04443359375, -0.010650634765625, 0.05517578125, 0.0146484375, -0.0268096923828125, -0.03155517578125, -0.054351806640625, 0.0164794921875, 0.0172882080078125, -0.0142669677734375, 0.036102294921875, 0.0279998779296875, -0.039306640625, -0.04046630859375, 0.0011777877807617188, -0.012786865234375, -0.0016727447509765625, -0.01043701171875, -0.01220703125, -0.032562255859375, -0.012237548828125, 0.045318603515625, -0.011871337890625, -0.049713134765625, -0.01195526123046875, 0.0017786026000976562, 0.08380126953125, 0.06939697265625, -0.03179931640625, -0.0125885009765625, -0.0712890625, -0.023345947265625, -0.01306915283203125, -0.057159423828125, -0.02679443359375, -0.0013294219970703125, -0.016845703125, 0.00392913818359375, -0.013824462890625, -0.01044464111328125, -0.00804901123046875, 0.01323699951171875, -0.007228851318359375, 0.001068115234375, -0.0185394287109375, 0.0682373046875, -0.0311279296875, 0.024688720703125, -0.0127105712890625, 0.01715087890625, 0.01476287841796875, -0.00797271728515625, -0.0178070068359375, -0.08001708984375, 0.00014770030975341797, 0.0153350830078125, 0.00220489501953125, 0.061981201171875, 0.04083251953125, 0.01129150390625, -0.003894805908203125, 0.0005807876586914062, 0.007282257080078125, -0.01540374755859375, 0.0201568603515625, -0.004573822021484375, -0.0313720703125, 0.046112060546875, 0.01016998291015625, -0.027130126953125, -0.0355224609375, -0.0309295654296875, 0.004467010498046875, 0.0253143310546875, -0.00795745849609375, -0.0016021728515625, -0.0285491943359375, 0.06805419921875, 0.062744140625, 0.007415771484375, 0.057525634765625, 0.00771331787109375, 0.017547607421875, -0.004657745361328125, -0.033294677734375, 0.04840087890625, 0.0379638671875, 0.045623779296875, -0.0148773193359375, -0.01367950439453125, 0.01154327392578125, -0.039306640625, -0.003101348876953125, -0.0005159378051757812, 0.0550537109375, -0.01276397705078125, 0.02056884765625, 0.030059814453125, -0.01361846923828125, -0.009033203125, 0.0049896240234375, -0.00982666015625, 0.0074005126953125, 0.04217529296875, -0.005817413330078125, -0.01384735107421875, 0.02606201171875, -0.0047149658203125, -0.0256805419921875, -0.02703857421875, 0.02392578125, 0.0118560791015625, -0.00025916099548339844, 0.01375579833984375, 0.004467010498046875, -0.0108489990234375, -0.05517578125, 0.00890350341796875, 0.0230712890625, -0.007694244384765625, -0.0849609375, 0.0157012939453125, 0.01456451416015625, 0.003253936767578125, 0.0042266845703125, -0.0012407302856445312, 0.037322998046875, 0.048370361328125, -0.0025844573974609375, 0.00624847412109375, 0.032562255859375, -0.0171356201171875, -0.01325225830078125, 0.007617950439453125, 0.042083740234375, 0.02581787109375, -0.061065673828125, 0.0302581787109375, -0.041107177734375, 0.0017004013061523438, -0.01027679443359375, -0.0352783203125, 0.06500244140625, -0.0192718505859375, -0.01291656494140625, 0.0225830078125, 0.0035648345947265625, 0.002620697021484375, -0.024383544921875, 0.02728271484375, -0.05596923828125, -0.032196044921875, -0.0102081298828125, -0.04168701171875, -0.0293121337890625, -0.0516357421875, -0.05859375, 0.060394287109375, -0.018646240234375, 0.04327392578125, 0.0267181396484375, 0.001163482666015625, -0.0223846435546875, -0.023834228515625, -0.060028076171875, 0.072265625, 0.015625, 0.105224609375, -0.05743408203125, -0.030975341796875, 0.057586669921875, 0.04791259765625, 0.00783538818359375, 0.0030689239501953125, -0.0390625, 0.005832672119140625, 0.046875, 0.06329345703125, 0.041595458984375, 0.0211334228515625, -0.016937255859375, 0.02978515625, 0.0555419921875, -0.0325927734375, 0.03387451171875, 0.02569580078125, -0.01120758056640625, 0.0283966064453125, 0.01751708984375, 0.03143310546875, 0.0267486572265625, 0.059661865234375, -0.0168914794921875, 0.00524139404296875, 0.036285400390625, -0.0128173828125, -0.0007257461547851562, 0.042724609375, -0.01141357421875, -0.0281829833984375, -0.0306243896484375, -0.0249786376953125, 0.0254364013671875, -0.01317596435546875, 0.01262664794921875, 0.0122528076171875, 0.0059814453125, 0.0972900390625, -0.007171630859375, -0.01067352294921875, 0.0142974853515625, 0.0020694732666015625, 0.01904296875, 0.02093505859375, 0.04156494140625, 0.0025959014892578125, 0.040863037109375, 0.0296630859375, 0.0215606689453125, -0.03240966796875, -0.06622314453125, 0.00008356571197509766, -0.021331787109375, 0.01032257080078125, 0.01557159423828125, -0.003757476806640625, 0.0234222412109375, 0.05712890625, -0.05950927734375, -0.0232696533203125, 0.0188446044921875, 0.011749267578125, -0.0203094482421875, -0.042236328125, 0.043701171875, -0.0216827392578125, -0.0018911361694335938, -0.02178955078125, 0.004638671875, 0.004779815673828125, 0.00726318359375, 0.009307861328125, -0.00803375244140625, -0.0010995864868164062, -0.03802490234375, 0.0187835693359375, -0.043792724609375, 0.06829833984375, -0.0694580078125, -0.0458984375, -0.0234832763671875, 0.06341552734375, 0.05364990234375, 0.04400634765625, 0.048004150390625, 0.029449462890625, -0.0204620361328125, 0.0183563232421875, 0.053619384765625, -0.01473236083984375, -0.0226287841796875, -0.03961181640625, -0.026336669921875, 0.0009784698486328125, -0.0030879974365234375, 0.008026123046875, 0.015869140625, 0.0086822509765625, 0.0211334228515625, -0.008087158203125, 0.00803375244140625, -0.0262451171875, 0.054107666015625, -0.01934814453125, 0.0653076171875, 0.0225830078125, -0.06109619140625, -0.005336761474609375, 0.023223876953125, -0.031402587890625, -0.00702667236328125, 0.018798828125, -0.04217529296875, 0.041168212890625, 0.0035495758056640625, 0.00487518310546875, 0.019561767578125, -0.0296630859375, -0.003143310546875, -0.006542205810546875, 0.0177764892578125, 0.00476837158203125, -0.06512451171875, -0.006305694580078125, -0.0012331008911132812, -0.0252532958984375, 0.00678253173828125, 0.0245819091796875, 0.061920166015625, 0.0025196075439453125, 0.02642822265625, -0.005306243896484375, -0.01340484619140625, 0.0081329345703125, -0.01491546630859375, -0.063232421875, 0.0011548995971679688, 0.0222320556640625, 0.0151214599609375, -0.042877197265625, 0.07940673828125, -0.057891845703125, -0.0208282470703125, -0.03466796875, 0.03643798828125, -0.046722412109375, 0.039581298828125, -0.00606536865234375, 0.008087158203125, 0.00640106201171875, -0.00847625732421875, 0.0237884521484375, 0.04571533203125, 0.01190948486328125, 0.0035495758056640625, -0.00836181640625, -0.00762939453125, 0.008758544921875, 0.03875732421875, -0.004451751708984375, 0.0243988037109375, -0.034332275390625, 0.01031494140625, 0.012908935546875, -0.0156402587890625, 0.026397705078125, 0.009796142578125, 0.019927978515625, 0.01384735107421875, 0.0234375, -0.0182342529296875, -0.0004093647003173828, 0.034912109375, -0.012115478515625, 0.008056640625, -0.01129913330078125, 0.006427764892578125, -0.005828857421875, -0.0002613067626953125, -0.031280517578125, -0.0181884765625, -0.017730712890625, -0.00876617431640625, -0.005157470703125, -0.050994873046875, -0.038330078125, -0.057525634765625, 0.017333984375, -0.0147857666015625, -0.028900146484375, -0.0225067138671875, -0.0022125244140625, 0.00968170166015625, -0.0552978515625, 0.0233612060546875, -0.0154266357421875, -0.013702392578125, -0.0216827392578125, 0.0161895751953125, -0.03265380859375, 0.01418304443359375, 0.01287078857421875, 0.01241302490234375, 0.0384521484375, -0.026336669921875, -0.039794921875, 0.00115966796875, 0.0032253265380859375, 0.0147247314453125, 0.027679443359375, -0.0274200439453125, 0.02935791015625, 0.0002987384796142578, -0.018951416015625, -0.024932861328125, -0.0017671585083007812, -0.00537872314453125, -0.0081787109375, 0.0166473388671875, 0.02349853515625, 0.046417236328125, 0.007305145263671875, -0.03515625, 0.0582275390625, -0.004871368408203125, -0.01178741455078125, -0.03900146484375, 0.008697509765625, 0.0188446044921875, -0.042144775390625, -0.0139007568359375, -0.0307769775390625, -0.042816162109375, 0.0034160614013671875, 0.03643798828125, 0.0099029541015625, 0.032318115234375, 0.02471923828125, -0.06787109375, 0.01507568359375, -0.0059661865234375, 0.033660888671875, 0.01104736328125, 0.01678466796875, 0.006916046142578125, 0.018524169921875, -0.039886474609375, 0.073486328125, -0.01526641845703125, 0.01413726806640625, 0.0008273124694824219, -0.00003641843795776367, -0.0538330078125, -0.00856781005859375, 0.07794189453125, 0.05712890625, 0.0263671875, -0.051239013671875, -0.0201416015625, -0.045806884765625, -0.0250091552734375, 0.006198883056640625, 0.0186309814453125, -0.058258056640625, 0.01198577880859375, 0.032257080078125, -0.0159759521484375, -0.038665771484375, 0.0177001953125, -0.05767822265625, -0.01024627685546875, -0.0229034423828125, -0.005672454833984375, -0.030487060546875, -0.013641357421875, -0.03631591796875, -0.00818634033203125, -0.0654296875, -0.02850341796875, 0.0197906494140625, -0.08380126953125, -0.044708251953125, 0.036224365234375, -0.0027027130126953125, -0.0355224609375, 0.0013484954833984375, 0.023406982421875, 0.01377105712890625, -0.01016998291015625, -0.0236053466796875, -0.00994110107421875, 0.008544921875, 0.01386260986328125, -0.002925872802734375, -0.0312042236328125, 0.0391845703125, 0.00200653076171875, 0.0266876220703125, -0.001804351806640625, 0.08575439453125, 0.0151214599609375, 0.0183258056640625, 0.0259552001953125, -0.01104736328125, 0.040008544921875, -0.0166778564453125, 0.0011157989501953125, 0.017791748046875, -0.020416259765625, -0.01215362548828125, -0.0085296630859375, -0.00789642333984375, -0.003208160400390625, 0.0001251697540283203 ]
0c87b77e6ccc95f9b58bd1254f7537643c2dd477
Wordpress Stackexchange Q: Getting an ordered list of tags - via wp_tag_cloud or not? I'm trying to output an ordered list of the top five tags for my site into the sidebar. At the moment, I'm using wp_tag_cloud like this to get it to output a nice <ul>: wp_tag_cloud('smallest=12&largest=12&orderby=count&order=DESC&format=list&unit=px&number=5'); However, I'd like it to output as an <ol> instead of a <ul>. Is it possible to do this without hacking the core? Presumably via functions.php or the like? Also, in the output from wp_tag_cloud, the font size is being set by inline styles. Seeing as I don't need the tag cloud to actually function as a tag cloud, is there any way to simply remove all inline styling from it? Finally, if there's an easier or less convoluted way of getting an ordered list of tags, please let me know. Thanks. A: one possibility: using the 'format=array' and 'echo=0' parameters; and building a foreach loop to output each tag: <ol> <?php $wptc = wp_tag_cloud('smallest=12&largest=12&orderby=count&order=DESC&format=array&unit=px&number=5&echo=0'); foreach( $wptc as $wpt ) echo "<li>" . $wpt . "</li>\n"; ?> </ol>
Q: Getting an ordered list of tags - via wp_tag_cloud or not? I'm trying to output an ordered list of the top five tags for my site into the sidebar. At the moment, I'm using wp_tag_cloud like this to get it to output a nice <ul>: wp_tag_cloud('smallest=12&largest=12&orderby=count&order=DESC&format=list&unit=px&number=5'); However, I'd like it to output as an <ol> instead of a <ul>. Is it possible to do this without hacking the core? Presumably via functions.php or the like? Also, in the output from wp_tag_cloud, the font size is being set by inline styles. Seeing as I don't need the tag cloud to actually function as a tag cloud, is there any way to simply remove all inline styling from it? Finally, if there's an easier or less convoluted way of getting an ordered list of tags, please let me know. Thanks. A: one possibility: using the 'format=array' and 'echo=0' parameters; and building a foreach loop to output each tag: <ol> <?php $wptc = wp_tag_cloud('smallest=12&largest=12&orderby=count&order=DESC&format=array&unit=px&number=5&echo=0'); foreach( $wptc as $wpt ) echo "<li>" . $wpt . "</li>\n"; ?> </ol>
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:410513", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20573" }
[ 0.00795745849609375, -0.004817962646484375, -0.04681396484375, -0.029052734375, 0.0201568603515625, -0.033935546875, 0.030059814453125, 0.0174102783203125, -0.0201568603515625, 0.009613037109375, -0.01561737060546875, -0.01739501953125, -0.035797119140625, -0.02398681640625, -0.00988006591796875, -0.06195068359375, 0.0654296875, -0.0408935546875, 0.034210205078125, 0.00478363037109375, -0.024322509765625, 0.04693603515625, 0.04437255859375, 0.063720703125, 0.004306793212890625, -0.01271820068359375, 0.029083251953125, -0.015625, 0.001556396484375, -0.00811004638671875, 0.0181427001953125, 0.007144927978515625, 0.0280609130859375, 0.019622802734375, -0.040374755859375, -0.01285552978515625, -0.01110076904296875, -0.0004291534423828125, -0.03228759765625, 0.02862548828125, -0.0015420913696289062, 0.00502777099609375, 0.01422882080078125, -0.0284881591796875, -0.0254058837890625, -0.00048089027404785156, 0.00336456298828125, -0.0078277587890625, 0.0015172958374023438, -0.0186309814453125, 0.0172271728515625, 0.005031585693359375, 0.039093017578125, -0.03326416015625, -0.004489898681640625, 0.03955078125, -0.00839996337890625, -0.01175689697265625, -0.001041412353515625, -0.00955963134765625, 0.0012445449829101562, 0.00958251953125, 0.0305633544921875, 0.01546478271484375, -0.01470184326171875, 0.0206451416015625, 0.048675537109375, 0.001194000244140625, 0.0284423828125, 0.001247406005859375, -0.02557373046875, 0.00022673606872558594, -0.00030112266540527344, -0.0199127197265625, -0.0013303756713867188, -0.00705718994140625, -0.00844573974609375, -0.04534912109375, -0.000020623207092285156, 0.0222625732421875, -0.0184783935546875, -0.007358551025390625, -0.0428466796875, -0.01959228515625, 0.0200958251953125, 0.0204620361328125, -0.02313232421875, -0.0209197998046875, -0.03399658203125, -0.0245208740234375, -0.0266265869140625, -0.0302734375, 0.010406494140625, -0.0175323486328125, -0.045745849609375, -0.0185394287109375, -0.0054473876953125, -0.017730712890625, -0.0018701553344726562, -0.01355743408203125, 0.050994873046875, -0.052825927734375, 0.01117706298828125, -0.00485992431640625, 0.01042938232421875, 0.0498046875, -0.039642333984375, 0.01367950439453125, 0.054412841796875, 0.037353515625, 0.032806396484375, -0.0261993408203125, 0.00026416778564453125, -0.01416015625, -0.0103302001953125, 0.0012664794921875, -0.045166015625, 0.02740478515625, 0.0007724761962890625, -0.0015802383422851562, 0.0002300739288330078, 0.04205322265625, -0.023529052734375, -0.0185699462890625, 0.0164642333984375, 0.0222625732421875, 0.0023193359375, -0.02789306640625, -0.057098388671875, 0.019683837890625, -0.003864288330078125, 0.020050048828125, -0.01947021484375, 0.00905609130859375, -0.03057861328125, 0.0028743743896484375, 0.0182037353515625, -0.03509521484375, 0.0102691650390625, 0.029388427734375, -0.003292083740234375, -0.034332275390625, 0.0152130126953125, -0.0027446746826171875, -0.0073699951171875, 0.0232696533203125, 0.0311431884765625, 0.01154327392578125, -0.0193328857421875, -0.0601806640625, 0.05322265625, -0.04730224609375, 0.047210693359375, -0.018707275390625, -0.039154052734375, 0.01480865478515625, -0.0161285400390625, 0.0028934478759765625, -0.045379638671875, -0.033172607421875, -0.025848388671875, -0.020050048828125, 0.00962066650390625, -0.01303863525390625, -0.00640106201171875, 0.0308074951171875, 0.00675201416015625, 0.00516510009765625, 0.040985107421875, 0.0430908203125, 0.01270294189453125, -0.035003662109375, 0.043609619140625, 0.06451416015625, 0.00799560546875, 0.0540771484375, -0.024810791015625, -0.0164947509765625, 0.02978515625, -0.0106048583984375, -0.0227203369140625, -0.018280029296875, 0.032196044921875, -0.003559112548828125, -0.06610107421875, 0.0017414093017578125, -0.0273590087890625, 0.04803466796875, 0.08056640625, 0.0010433197021484375, -0.012176513671875, -0.04461669921875, -0.03533935546875, 0.058868408203125, -0.0095977783203125, -0.020965576171875, -0.069580078125, 0.020965576171875, -0.035736083984375, -0.037750244140625, -0.004619598388671875, 0.0064239501953125, -0.0240936279296875, 0.0163116455078125, -0.05047607421875, 0.000293731689453125, -0.02056884765625, 0.029937744140625, 0.0176239013671875, -0.0094451904296875, -0.006458282470703125, -0.03570556640625, -0.009552001953125, 0.0213775634765625, -0.035858154296875, 0.0218353271484375, 0.01390838623046875, 0.00052642822265625, -0.00313568115234375, -0.01291656494140625, -0.01335906982421875, 0.004970550537109375, -0.0274658203125, 0.03985595703125, 0.032806396484375, -0.021148681640625, 0.0014333724975585938, -0.024322509765625, 0.03936767578125, 0.004817962646484375, 0.011962890625, 0.011810302734375, 0.08056640625, 0.058258056640625, -0.0204620361328125, -0.01397705078125, 0.0029468536376953125, -0.072998046875, -0.0012378692626953125, 0.056243896484375, 0.041961669921875, 0.042572021484375, 0.01506805419921875, 0.03179931640625, 0.053955078125, -0.01105499267578125, 0.017059326171875, -0.0277557373046875, 0.0025768280029296875, 0.024627685546875, -0.005584716796875, 0.0122528076171875, 0.01523590087890625, -0.00673675537109375, 0.0138092041015625, 0.023406982421875, 0.0123443603515625, 0.04583740234375, -0.01345062255859375, -0.00812530517578125, 0.006092071533203125, 0.01171112060546875, -0.0150909423828125, 0.001323699951171875, 0.033905029296875, 0.00958251953125, 0.0157623291015625, 0.0011339187622070312, -0.051239013671875, 0.0222625732421875, 0.024810791015625, 0.0101165771484375, 0.000324249267578125, -0.01364898681640625, -0.033843994140625, -0.02764892578125, 0.0007910728454589844, 0.0272979736328125, -0.047393798828125, -0.0439453125, 0.00911712646484375, 0.05389404296875, 0.027496337890625, -0.01467132568359375, -0.0170135498046875, 0.0020275115966796875, 0.008575439453125, 0.0185546875, -0.046234130859375, 0.00273895263671875, 0.00960540771484375, 0.0718994140625, -0.009063720703125, 0.00902557373046875, -0.01207733154296875, 0.04742431640625, 0.023345947265625, -0.05859375, 0.0401611328125, -0.022857666015625, 0.0643310546875, 0.07818603515625, -0.0027141571044921875, 0.0306854248046875, -0.014862060546875, 0.01343536376953125, 0.004482269287109375, -0.021270751953125, -0.035430908203125, -0.0283050537109375, -0.040008544921875, -0.006053924560546875, 0.035675048828125, 0.042083740234375, 0.023956298828125, -0.035675048828125, 0.00569915771484375, 0.036407470703125, -0.08209228515625, -0.100830078125, 0.024932861328125, -0.0236968994140625, 0.00598907470703125, 0.0220184326171875, -0.0274505615234375, -0.0305328369140625, 0.058746337890625, 0.0004227161407470703, 0.042938232421875, -0.0215606689453125, -0.03656005859375, 0.006877899169921875, -0.06304931640625, 0.0263519287109375, 0.0045318603515625, 0.01204681396484375, 0.0029144287109375, 0.0511474609375, 0.00003457069396972656, -0.039581298828125, -0.01036834716796875, 0.039794921875, -0.00008147954940795898, 0.01678466796875, 0.0038166046142578125, -0.032501220703125, -0.016937255859375, -0.0138397216796875, -0.004222869873046875, 0.0008592605590820312, 0.007843017578125, -0.0020084381103515625, 0.005260467529296875, -0.03814697265625, 0.0266265869140625, -0.01898193359375, -0.029144287109375, 0.0012998580932617188, 0.03314208984375, -0.033233642578125, -0.01363372802734375, -0.0007920265197753906, -0.0042266845703125, 0.052947998046875, -0.041168212890625, -0.00957489013671875, 0.0276641845703125, 0.05096435546875, 0.0156097412109375, -0.002033233642578125, 0.034881591796875, -0.0281829833984375, -0.01092529296875, -0.004489898681640625, -0.003086090087890625, -0.0257720947265625, 0.06646728515625, 0.0037708282470703125, -0.0408935546875, 0.01103973388671875, 0.001739501953125, -0.024932861328125, -0.00917816162109375, -0.0648193359375, -0.020660400390625, 0.0411376953125, -0.022918701171875, -0.01003265380859375, -0.0037975311279296875, -0.006626129150390625, -0.00630950927734375, 0.03741455078125, -0.04473876953125, -0.036895751953125, 0.006351470947265625, 0.01568603515625, -0.045013427734375, -0.00940704345703125, -0.0235137939453125, -0.00812530517578125, -0.10498046875, 0.0219573974609375, -0.016754150390625, -0.016876220703125, 0.0107574462890625, -0.036773681640625, -0.046295166015625, -0.058441162109375, 0.06182861328125, 0.0023403167724609375, -0.007328033447265625, -0.00804901123046875, -0.0125579833984375, -0.0494384765625, -0.0540771484375, 0.033050537109375, -0.04205322265625, -0.007244110107421875, -0.01270294189453125, 0.00368499755859375, -0.0038471221923828125, -0.0260467529296875, 0.0008044242858886719, 0.047576904296875, -0.018768310546875, -0.0170745849609375, 0.03515625, 0.061767578125, -0.0025043487548828125, -0.0509033203125, -0.00225830078125, -0.05340576171875, -0.038238525390625, -0.0260772705078125, -0.010406494140625, 0.05029296875, 0.006366729736328125, 0.033447265625, 0.0211639404296875, 0.006160736083984375, -0.08868408203125, -0.00861358642578125, -0.007724761962890625, 0.012481689453125, -0.037689208984375, 0.0156707763671875, -0.007110595703125, -0.0733642578125, 0.0147705078125, 0.01543426513671875, -0.0223236083984375, 0.01392364501953125, 0.048492431640625, 0.0207672119140625, -0.019989013671875, -0.05950927734375, -0.00115203857421875, 0.0333251953125, 0.018157958984375, 0.0380859375, 0.0391845703125, -0.0170440673828125, 0.0159454345703125, 0.0294952392578125, 0.0301055908203125, 0.010894775390625, 0.0233154296875, 0.0157470703125, 0.01214599609375, 0.0028228759765625, 0.0205230712890625, -0.052337646484375, 0.027862548828125, 0.015655517578125, -0.027923583984375, 0.034423828125, 0.0185546875, -0.01287078857421875, -0.00687408447265625, 0.004741668701171875, -0.058349609375, 0.01251983642578125, 0.04443359375, -0.0123291015625, 0.0229949951171875, 0.0017910003662109375, 0.032073974609375, 0.007434844970703125, 0.02374267578125, 0.0164947509765625, -0.01322174072265625, -0.03509521484375, 0.016387939453125, 0.021392822265625, -0.001735687255859375, 0.039337158203125, 0.004638671875, -0.005336761474609375, 0.00894927978515625, -0.0274505615234375, -0.01399993896484375, -0.01415252685546875, -0.0035552978515625, 0.0017185211181640625, 0.0205535888671875, 0.04620361328125, 0.0006356239318847656, -0.00266265869140625, 0.0191192626953125, -0.034454345703125, 0.0166778564453125, -0.036865234375, -0.01313018798828125, -0.001438140869140625, -0.02410888671875, 0.004253387451171875, 0.03997802734375, -0.08038330078125, 0.039703369140625, 0.0170135498046875, 0.000015616416931152344, 0.005157470703125, 0.0179901123046875, 0.0142669677734375, -0.011474609375, 0.01953125, -0.0289459228515625, 0.045989990234375, -0.0014905929565429688, -0.0247344970703125, 0.0177154541015625, -0.00482177734375, 0.004741668701171875, 0.024627685546875, -0.0015115737915039062, 0.00388336181640625, -0.01279449462890625, 0.039642333984375, -0.01381683349609375, -0.0235595703125, -0.05816650390625, -0.0190582275390625, 0.07763671875, -0.01395416259765625, 0.001361846923828125, 0.01462554931640625, 0.05755615234375, 0.046539306640625, -0.034149169921875, -0.016357421875, 0.045013427734375, 0.0484619140625, -0.034942626953125, 0.005146026611328125, -0.0135498046875, -0.0168914794921875, -0.060699462890625, 0.0156707763671875, -0.03009033203125, 0.03326416015625, -0.034210205078125, 0.06591796875, -0.01198577880859375, -0.0228118896484375, -0.0711669921875, 0.02545166015625, 0.0201873779296875, 0.050872802734375, -0.01015472412109375, -0.004047393798828125, -0.030364990234375, -0.0263824462890625, 0.038665771484375, -0.01263427734375, -0.0005483627319335938, -0.0258941650390625, 0.0243072509765625, 0.01152801513671875, -0.002475738525390625, -0.05340576171875, -0.023956298828125, 0.00679779052734375, 0.0279541015625, 0.018035888671875, -0.0282440185546875, 0.07373046875, 0.0051422119140625, 0.0307464599609375, 0.031524658203125, 0.047576904296875, -0.01038360595703125, -0.01495361328125, -0.0015039443969726562, -0.06671142578125, -0.0253143310546875, -0.0010366439819335938, -0.016204833984375, 0.0305938720703125, 0.0080108642578125, 0.0025463104248046875, 0.06146240234375, 0.0035037994384765625, 0.0307769775390625, 0.0158843994140625, -0.0589599609375, -0.01450347900390625, -0.015380859375, 0.087890625, 0.0020580291748046875, -0.004550933837890625, -0.0028247833251953125, -0.0411376953125, 0.0210418701171875, 0.01629638671875, 0.01551055908203125, -0.017181396484375, -0.0159759521484375, 0.0160064697265625, 0.038970947265625, 0.0185699462890625, 0.038299560546875, -0.00582122802734375, 0.0166778564453125, -0.005840301513671875, -0.018463134765625, 0.04290771484375, 0.02362060546875, 0.052978515625, -0.0200958251953125, 0.01080322265625, 0.0252532958984375, -0.0296630859375, -0.0229949951171875, 0.035736083984375, 0.020263671875, -0.0303497314453125, -0.031585693359375, -0.030059814453125, -0.023834228515625, -0.00865936279296875, 0.0085296630859375, -0.01552581787109375, -0.046417236328125, 0.07586669921875, -0.000011205673217773438, 0.00045943260192871094, 0.03326416015625, -0.0157318115234375, 0.01265716552734375, 0.01403045654296875, 0.055877685546875, 0.00925445556640625, -0.0654296875, -0.0279541015625, 0.04315185546875, 0.00017786026000976562, -0.008087158203125, 0.036956787109375, -0.045806884765625, -0.0243682861328125, -0.06903076171875, -0.052154541015625, 0.031585693359375, -0.04541015625, 0.0223236083984375, -0.0219879150390625, -0.017608642578125, 0.04864501953125, -0.033172607421875, 0.02978515625, 0.0187835693359375, -0.036041259765625, 0.0246429443359375, -0.004467010498046875, 0.002330780029296875, -0.0144805908203125, 0.0036945343017578125, 0.0132293701171875, -0.0203857421875, -0.00547027587890625, 0.002834320068359375, 0.01088714599609375, 0.03594970703125, -0.01629638671875, -0.01267242431640625, 0.0379638671875, 0.0374755859375, -0.009368896484375, -0.02203369140625, 0.06707763671875, -0.104736328125, -0.04412841796875, 0.02215576171875, -0.0137481689453125, -0.0098419189453125, -0.019195556640625, -0.0477294921875, 0.11663818359375, -0.0299072265625, 0.0142822265625, 0.025634765625, 0.03997802734375, -0.040130615234375, 0.01012420654296875, -0.0227203369140625, 0.0263671875, -0.026031494140625, 0.05267333984375, -0.04534912109375, -0.02618408203125, 0.01502227783203125, 0.07000732421875, 0.033660888671875, 0.004833221435546875, -0.065673828125, 0.0008149147033691406, 0.057281494140625, 0.033538818359375, 0.0081024169921875, 0.0587158203125, -0.0008554458618164062, 0.0294342041015625, -0.0026531219482421875, -0.037994384765625, 0.0423583984375, -0.055511474609375, -0.0296478271484375, 0.0294342041015625, 0.0019388198852539062, -0.020538330078125, 0.0063934326171875, 0.00858306884765625, -0.03759765625, 0.00640869140625, 0.01849365234375, -0.01532745361328125, -0.0008387565612792969, 0.01306915283203125, 0.01885986328125, -0.057586669921875, -0.060516357421875, -0.0153961181640625, 0.0185089111328125, 0.01125335693359375, 0.0244293212890625, -0.003734588623046875, 0.0199432373046875, 0.034912109375, -0.038330078125, 0.00463104248046875, -0.005825042724609375, -0.025177001953125, 0.039276123046875, -0.01206207275390625, 0.0129547119140625, -0.08294677734375, -0.017120361328125, 0.07513427734375, 0.06719970703125, -0.033966064453125, 0.006336212158203125, 0.0157623291015625, 0.0181732177734375, 0.0007581710815429688, 0.0161285400390625, 0.0555419921875, -0.0269317626953125, -0.0145416259765625, -0.029022216796875, -0.0299530029296875, 0.002532958984375, 0.06842041015625, 0.0012569427490234375, 0.0013980865478515625, -0.032012939453125, -0.083740234375, -0.0175323486328125, -0.0017242431640625, 0.037261962890625, 0.0301361083984375, -0.007297515869140625, 0.026947021484375, -0.0201568603515625, -0.0084381103515625, -0.0061492919921875, -0.0159759521484375, 0.0302581787109375, 0.004558563232421875, 0.01043701171875, 0.047882080078125, -0.01526641845703125, 0.00505828857421875, 0.03924560546875, -0.0283050537109375, 0.0233917236328125, 0.0129241943359375, -0.051971435546875, -0.00942230224609375, 0.04107666015625, -0.0157012939453125, -0.046722412109375, -0.018768310546875, -0.00246429443359375, 0.0433349609375, 0.0113677978515625, 0.04296875, 0.036376953125, 0.0218353271484375, -0.052703857421875, 0.043212890625, -0.0157623291015625, 0.00040030479431152344, -0.0066986083984375, -0.028411865234375, -0.0261688232421875, -0.013916015625, -0.0784912109375, -0.012481689453125, -0.06414794921875, 0.022613525390625, 0.026214599609375, 0.0275726318359375, 0.01107025146484375, 0.037109375, 0.04217529296875, -0.0215606689453125, 0.03302001953125, -0.007549285888671875, 0.033416748046875, 0.05633544921875, 0.01332855224609375, 0.0362548828125, -0.0787353515625, -0.04168701171875, -0.016937255859375, 0.0350341796875, 0.0179595947265625, 0.0214385986328125, 0.0290985107421875, 0.0246124267578125, -0.0195465087890625, -0.0116729736328125, -0.02447509765625, -0.06170654296875, 0.08880615234375, -0.03558349609375, -0.042388916015625, -0.01154327392578125, -0.0208740234375, -0.005985260009765625, 0.028076171875, -0.0232391357421875, -0.041534423828125, -0.00579071044921875, 0.035980224609375, 0.01861572265625, 0.05010986328125, -0.01497650146484375, -0.063232421875, -0.0266876220703125, -0.007022857666015625, -0.00913238525390625, 0.0616455078125, 0.061126708984375, 0.0152130126953125, 0.005504608154296875, -0.0428466796875, 0.033355712890625, -0.036956787109375, 0.044830322265625, 0.0226287841796875, 0.01690673828125, -0.008575439453125, 0.0196533203125, -0.025421142578125, -0.00823211669921875, 0.0188751220703125, 0.018829345703125, 0.0073699951171875, -0.01227569580078125, 0.048980712890625, 0.04779052734375, 0.0280914306640625, -0.046295166015625, -0.0010204315185546875, 0.07781982421875, -0.0191497802734375, -0.0207366943359375, 0.033416748046875, -0.020172119140625, -0.0239105224609375, 0.006572723388671875, 0.00919342041015625, 0.009765625, 0.00795745849609375, 0.00868988037109375, -0.042449951171875, 0.0190582275390625, -0.0175933837890625, 0.04547119140625, -0.056060791015625, 0.0008087158203125, -0.037445068359375, 0.018157958984375, 0.0071258544921875, -0.018951416015625, -0.0167083740234375, -0.0154266357421875, -0.0401611328125, -0.051971435546875, 0.05560302734375, -0.04779052734375, 0.0044097900390625, 0.0090484619140625, -0.0180511474609375, 0.0038547515869140625, -0.00312042236328125, 0.00933837890625, 0.050689697265625, 0.02410888671875, -0.0096588134765625, 0.03143310546875, 0.0115509033203125, -0.0426025390625, -0.05438232421875, 0.01081085205078125, -0.03082275390625, 0.005275726318359375, -0.00091552734375, 0.002010345458984375, 0.013885498046875, -0.049957275390625, -0.1085205078125, 0.07098388671875, -0.0271148681640625, -0.03131103515625, 0.0239105224609375, 0.002330780029296875, -0.0172882080078125, 0.0498046875, 0.03131103515625, -0.0242767333984375, -0.0052490234375, -0.003238677978515625, 0.00502777099609375, -0.00852203369140625, 0.045013427734375, -0.01316070556640625, -0.0604248046875, -0.001628875732421875, -0.0020847320556640625, 0.0019044876098632812, -0.041351318359375, 0.00957489013671875, -0.00788116455078125, 0.005649566650390625, -0.0253448486328125, -0.021209716796875, 0.0175933837890625, 0.0169525146484375, 0.017822265625, -0.024139404296875, -0.043212890625, -0.03564453125, 0.02239990234375, 0.041351318359375, 0.0019369125366210938, -0.006500244140625, -0.0234527587890625, -0.003101348876953125, -0.037139892578125, -0.0158843994140625, 0.025238037109375, -0.08013916015625, -0.022918701171875, -0.00452423095703125, 0.0165252685546875, 0.00957489013671875, -0.035980224609375, -0.0160675048828125, -0.0225830078125, -0.0286102294921875, 0.010284423828125, -0.03143310546875, -0.010040283203125, 0.0013761520385742188, -0.00966644287109375, -0.022491455078125, -0.0428466796875, 0.03521728515625, -0.032958984375, -0.0654296875, -0.060150146484375, -0.0372314453125, 0.01393890380859375, 0.021728515625, -0.021331787109375, 0.035003662109375, -0.007236480712890625, 0.0328369140625, -0.013671875, -0.0100250244140625, 0.0171356201171875, -0.02117919921875, -0.01023101806640625, -0.00168609619140625, 0.001575469970703125, -0.007801055908203125, -0.0230865478515625, 0.041748046875, 0.0013132095336914062, 0.0268402099609375, -0.003299713134765625, -0.007579803466796875, 0.045257568359375, -0.03778076171875, 0.0174407958984375, -0.014434814453125, -0.00246429443359375, -0.009185791015625, -0.0223388671875, -0.002384185791015625, -0.0192718505859375, 0.0031871795654296875 ]
0c1c79aaab07cfe0d81bc17ec2eb5eed62612742
Wordpress Stackexchange Q: How to get all taxonomies of a post type? How can i get taxonomies of a post type? If I have a post type event and i need to find out the list of taxonomies that are attached to that post type. How do I find them? A: get_categories will do the job. get_categories('taxonomy=taxonomy_name&type=custom_post_type');
Q: How to get all taxonomies of a post type? How can i get taxonomies of a post type? If I have a post type event and i need to find out the list of taxonomies that are attached to that post type. How do I find them? A: get_categories will do the job. get_categories('taxonomy=taxonomy_name&type=custom_post_type'); A: I think I've got it! After looking at couple of functions in the taxonomy.php file in WordPress I have found the function get_object_taxonomies(); which did the trick :) A: Apologies for raising an old post, but I came across this problem while looking for an answer for my use case. I wanted to retrieve all available taxonomies for a post type, and also retrieve all available terms per taxonomy. Thank you to Nick B for setting me in the right direction with his answer: https://wordpress.stackexchange.com/a/357448/198353 // get a list of available taxonomies for a post type $taxonomies = get_taxonomies(['object_type' => ['your_post_type']]); $taxonomyTerms = []; // loop over your taxonomies foreach ($taxonomies as $taxonomy) { // retrieve all available terms, including those not yet used $terms = get_terms(['taxonomy' => $taxonomy, 'hide_empty' => false]); // make sure $terms is an array, as it can be an int (count) or a WP_Error $hasTerms = is_array($terms) && $terms; if($hasTerms) { $taxonomyTerms[$taxonomy] = $terms; } } A: Have you tried anything? something like this? <?php $args=array( 'object_type' => array('event') ); $output = 'names'; // or objects $operator = 'and'; // 'and' or 'or' $taxonomies=get_taxonomies($args,$output,$operator); if ($taxonomies) { foreach ($taxonomies as $taxonomy ) { echo '<p>'. $taxonomy. '</p>'; } } ?> A: $taxonomies = get_taxonomies( [ 'object_type' => [ 'custom_post_type' ] ] ); A: Use get_object_taxonomies (https://developer.wordpress.org/reference/functions/get_object_taxonomies/), which takes either the name of your custom post type or a post object as the parameter: $taxonomies = get_object_taxonomies('custom_post_type'); $taxonomies = get_object_taxonomies($custom_post_object); get_taxonomies() won't return any taxonomies that are used by multiple post types (https://core.trac.wordpress.org/ticket/27918). A: get_post_taxonomies() https://developer.wordpress.org/reference/functions/get_post_taxonomies/ This worked for me.
wordpress
{ "language": "en", "length": 320, "provenance": "stackexchange_00019.jsonl.gz:410514", "question_score": "58", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20574" }
[ 0.03515625, -0.0039005279541015625, -0.0031032562255859375, -0.007328033447265625, 0.01207733154296875, -0.029815673828125, 0.057037353515625, 0.005596160888671875, -0.01143646240234375, 0.01088714599609375, -0.007755279541015625, -0.006893157958984375, -0.0254058837890625, -0.0291900634765625, -0.007472991943359375, -0.0247039794921875, 0.038055419921875, -0.023193359375, 0.0367431640625, -0.008056640625, 0.022003173828125, 0.023040771484375, 0.03826904296875, 0.01528167724609375, 0.038055419921875, -0.0009050369262695312, 0.049102783203125, -0.033843994140625, 0.0293121337890625, -0.0224761962890625, 0.0345458984375, -0.0041656494140625, 0.01226806640625, 0.00400543212890625, 0.00800323486328125, 0.007137298583984375, -0.00518035888671875, 0.0133514404296875, 0.036865234375, -0.0105133056640625, 0.048065185546875, -0.0287933349609375, 0.01099395751953125, 0.0261383056640625, -0.00382232666015625, -0.021575927734375, 0.00817108154296875, -0.05340576171875, -0.000415802001953125, -0.060638427734375, 0.032470703125, -0.00896453857421875, 0.054412841796875, -0.03765869140625, -0.02752685546875, -0.00208282470703125, 0.0263824462890625, -0.033416748046875, 0.05316162109375, -0.07867431640625, -0.04315185546875, -0.03875732421875, 0.06805419921875, 0.01416015625, -0.01369476318359375, 0.033416748046875, 0.027099609375, 0.001522064208984375, -0.02032470703125, -0.027587890625, 0.0012912750244140625, -0.027984619140625, 0.014984130859375, 0.03033447265625, 0.0244140625, -0.093994140625, 0.0253448486328125, -0.0200347900390625, 0.00225830078125, 0.050933837890625, 0.0413818359375, -0.01861572265625, -0.032196044921875, 0.003612518310546875, -0.001499176025390625, 0.0119171142578125, 0.003467559814453125, -0.0196533203125, -0.0178070068359375, -0.0562744140625, -0.0119171142578125, -0.006256103515625, -0.07867431640625, 0.024871826171875, 0.0016222000122070312, -0.0256500244140625, 0.0279541015625, 0.051849365234375, -0.042755126953125, -0.007610321044921875, -0.02386474609375, -0.01558685302734375, -0.0073394775390625, -0.0311431884765625, 0.044036865234375, -0.0006451606750488281, -0.0088653564453125, -0.0246734619140625, 0.05712890625, 0.02532958984375, -0.00679779052734375, 0.059417724609375, 0.013214111328125, -0.007137298583984375, 0.0033512115478515625, 0.0206146240234375, -0.001186370849609375, 0.0287017822265625, -0.0095672607421875, 0.0145416259765625, 0.0384521484375, 0.057586669921875, 0.01166534423828125, -0.00989532470703125, -0.0228424072265625, 0.00015819072723388672, -0.014007568359375, -0.06964111328125, 0.043060302734375, 0.034515380859375, -0.040985107421875, -0.0029621124267578125, -0.0203704833984375, -0.0067596435546875, -0.008697509765625, -0.022064208984375, 0.004108428955078125, -0.0226898193359375, 0.00038504600524902344, 0.0046844482421875, 0.0263671875, -0.0268707275390625, 0.0037174224853515625, 0.015869140625, -0.00006270408630371094, -0.004940032958984375, 0.031463623046875, 0.03314208984375, -0.0247344970703125, -0.00374603271484375, -0.015899658203125, 0.040374755859375, 0.0278778076171875, 0.006496429443359375, -0.0238800048828125, -0.0252685546875, 0.0364990234375, -0.035064697265625, -0.020538330078125, -0.07244873046875, 0.0204315185546875, 0.01371002197265625, 0.03167724609375, 0.023956298828125, 0.0017957687377929688, -0.00319671630859375, -0.0321044921875, -0.016387939453125, 0.0190277099609375, -0.01143646240234375, 0.0194244384765625, -0.005168914794921875, 0.0068359375, 0.019073486328125, 0.010223388671875, 0.017852783203125, -0.033355712890625, -0.0533447265625, 0.051544189453125, 0.0322265625, -0.019866943359375, -0.0177154541015625, -0.00934600830078125, 0.007610321044921875, -0.0465087890625, -0.00562286376953125, 0.02587890625, 0.056793212890625, 0.01207733154296875, 0.0186004638671875, 0.028228759765625, -0.0166473388671875, -0.06964111328125, -0.01079559326171875, 0.002349853515625, 0.032196044921875, -0.034820556640625, 0.0045166015625, -0.0059356689453125, -0.0005812644958496094, -0.057891845703125, -0.0073089599609375, -0.0156707763671875, 0.028900146484375, 0.003078460693359375, -0.00868988037109375, 0.0039520263671875, 0.0198211669921875, 0.0267181396484375, 0.016265869140625, 0.0007662773132324219, 0.006732940673828125, -0.0115966796875, -0.06927490234375, -0.05841064453125, 0.032440185546875, 0.0011053085327148438, -0.033599853515625, -0.0308990478515625, -0.01343536376953125, -0.052581787109375, -0.0182952880859375, -0.060333251953125, 0.046661376953125, 0.02752685546875, 0.032318115234375, -0.0255279541015625, 0.0089111328125, 0.02301025390625, 0.04833984375, -0.072021484375, -0.016632080078125, -0.007785797119140625, -0.01079559326171875, -0.0205535888671875, -0.0049896240234375, 0.03143310546875, -0.03924560546875, 0.01043701171875, 0.026458740234375, 0.032745361328125, 0.040740966796875, -0.0024471282958984375, 0.0005650520324707031, 0.08538818359375, -0.0121612548828125, -0.005855560302734375, -0.00652313232421875, 0.02587890625, 0.06689453125, 0.024932861328125, 0.0439453125, 0.0079498291015625, 0.041748046875, 0.040557861328125, 0.040252685546875, 0.0274505615234375, 0.01239776611328125, -0.0056610107421875, 0.0236968994140625, -0.00940704345703125, -0.016082763671875, -0.034698486328125, -0.0004901885986328125, 0.03912353515625, 0.044189453125, 0.0452880859375, 0.049652099609375, -0.02484130859375, 0.014373779296875, -0.00647735595703125, -0.0048065185546875, -0.0003192424774169922, 0.043182373046875, -0.00006121397018432617, 0.0223846435546875, -0.0362548828125, -0.00916290283203125, -0.004791259765625, 0.01898193359375, 0.006969451904296875, 0.043792724609375, -0.00012421607971191406, -0.00391387939453125, -0.01739501953125, -0.05572509765625, -0.004116058349609375, 0.02764892578125, -0.07891845703125, -0.027587890625, 0.005512237548828125, 0.02081298828125, 0.0016727447509765625, -0.0226593017578125, -0.015411376953125, 0.001415252685546875, -0.0196533203125, -0.039215087890625, 0.0303802490234375, -0.031494140625, 0.01107025146484375, 0.05401611328125, 0.004627227783203125, 0.0173492431640625, 0.01457977294921875, -0.032745361328125, 0.0291900634765625, -0.0030384063720703125, -0.0113525390625, -0.0074310302734375, -0.06658935546875, 0.0070953369140625, 0.017669677734375, 0.050689697265625, -0.010986328125, -0.049102783203125, -0.00481414794921875, 0.03106689453125, -0.051422119140625, -0.01503753662109375, 0.028961181640625, -0.0228729248046875, -0.0202789306640625, -0.06109619140625, -0.0205841064453125, 0.002658843994140625, -0.08172607421875, -0.00795745849609375, 0.032562255859375, -0.020751953125, -0.05621337890625, -0.034942626953125, -0.07330322265625, -0.05157470703125, -0.005420684814453125, 0.0011072158813476562, 0.016021728515625, 0.07611083984375, 0.00920867919921875, -0.06793212890625, 0.0085906982421875, 0.013031005859375, -0.035919189453125, 0.02154541015625, 0.007083892822265625, -0.008880615234375, 0.0312042236328125, 0.01271820068359375, -0.01517486572265625, 0.0196533203125, -0.01149749755859375, -0.0278167724609375, -0.01256561279296875, 0.007717132568359375, 0.0185699462890625, 0.0006327629089355469, -0.004772186279296875, 0.0310516357421875, 0.0263671875, -0.016510009765625, 0.009979248046875, 0.0004944801330566406, -0.0005450248718261719, 0.01169586181640625, -0.0014142990112304688, -0.0212249755859375, -0.01345062255859375, 0.02264404296875, 0.0072784423828125, 0.0178680419921875, -0.0189056396484375, -0.0231170654296875, 0.04107666015625, 0.0007929801940917969, 0.02191162109375, 0.005268096923828125, -0.032470703125, -0.04595947265625, 0.053466796875, -0.0180511474609375, -0.00687408447265625, -0.0247650146484375, 0.0245513916015625, -0.01611328125, -0.092529296875, 0.04949951171875, -0.0579833984375, -0.047607421875, -0.0178985595703125, -0.0116119384765625, 0.0188751220703125, 0.10369873046875, -0.005157470703125, -0.01544189453125, -0.032867431640625, -0.00909423828125, -0.0105438232421875, -0.0260162353515625, -0.017333984375, -0.0180511474609375, -0.09405517578125, 0.00370025634765625, -0.006175994873046875, -0.0347900390625, -0.0301513671875, 0.014984130859375, -0.07763671875, -0.0311279296875, 0.039306640625, -0.044891357421875, 0.00786590576171875, -0.02294921875, -0.0060882568359375, -0.03314208984375, -0.031951904296875, -0.0212860107421875, -0.05242919921875, -0.009185791015625, -0.0097808837890625, 0.03570556640625, -0.0016794204711914062, -0.005565643310546875, 0.0010843276977539062, 0.03192138671875, 0.04522705078125, 0.005245208740234375, 0.0036983489990234375, -0.01338958740234375, -0.0242156982421875, -0.01166534423828125, -0.001220703125, -0.03314208984375, -0.0284576416015625, -0.01331329345703125, -0.014984130859375, 0.04425048828125, 0.00742340087890625, 0.01450347900390625, 0.019989013671875, -0.01270294189453125, -0.0303192138671875, -0.0194549560546875, -0.024383544921875, -0.015869140625, -0.03277587890625, 0.00850677490234375, -0.0125885009765625, -0.044830322265625, 0.048828125, 0.041778564453125, -0.01268768310546875, -0.003269195556640625, 0.05865478515625, -0.003978729248046875, -0.039459228515625, -0.065185546875, 0.025634765625, 0.0384521484375, 0.00554656982421875, 0.034088134765625, 0.002796173095703125, -0.029266357421875, 0.07501220703125, 0.005706787109375, 0.0008893013000488281, -0.030670166015625, 0.0528564453125, -0.002872467041015625, -0.005565643310546875, 0.006511688232421875, -0.038543701171875, 0.038177490234375, 0.00649261474609375, -0.0394287109375, -0.01751708984375, -0.023712158203125, 0.0635986328125, -0.0246734619140625, 0.061859130859375, -0.0474853515625, -0.019866943359375, 0.0282135009765625, 0.01275634765625, 0.00048160552978515625, 0.0142669677734375, -0.0113067626953125, -0.0191802978515625, -0.04144287109375, 0.005695343017578125, 0.0170745849609375, 0.007099151611328125, 0.030792236328125, 0.01509857177734375, 0.034454345703125, 0.01207733154296875, -0.018768310546875, 0.0142364501953125, -0.015899658203125, -0.04071044921875, -0.05322265625, -0.007427215576171875, -0.00232696533203125, -0.01245880126953125, 0.05694580078125, -0.031341552734375, 0.033416748046875, 0.05224609375, -0.013641357421875, -0.01352691650390625, -0.051544189453125, 0.0328369140625, -0.045806884765625, -0.009796142578125, -0.01311492919921875, -0.009368896484375, 0.0250701904296875, 0.026611328125, -0.048828125, 0.0280914306640625, -0.0030384063720703125, 0.050537109375, 0.035888671875, 0.041046142578125, 0.012298583984375, -0.03863525390625, -0.00598907470703125, 0.012664794921875, -0.0187225341796875, -0.055084228515625, -0.01229095458984375, 0.00649261474609375, 0.038848876953125, -0.00536346435546875, -0.029052734375, 0.0216827392578125, -0.00984954833984375, -0.01363372802734375, 0.00554656982421875, 0.01235198974609375, -0.0246429443359375, -0.025360107421875, 0.01470947265625, 0.02752685546875, 0.01209259033203125, -0.02752685546875, 0.056121826171875, -0.0298004150390625, 0.029388427734375, -0.009124755859375, -0.033843994140625, 0.00013267993927001953, 0.025299072265625, -0.08599853515625, -0.023681640625, 0.0106658935546875, -0.065185546875, -0.034149169921875, 0.0273590087890625, -0.0156402587890625, -0.005893707275390625, -0.0303802490234375, 0.035919189453125, -0.0034656524658203125, -0.0306854248046875, 0.001735687255859375, 0.0128936767578125, 0.050079345703125, 0.0244140625, -0.0222625732421875, 0.00707244873046875, -0.039642333984375, -0.0089569091796875, -0.005374908447265625, -0.054412841796875, -0.039520263671875, -0.03118896484375, 0.0099945068359375, 0.0131683349609375, 0.016815185546875, 0.0196075439453125, 0.0240478515625, 0.016754150390625, -0.0013580322265625, 0.0197296142578125, 0.01544189453125, 0.049896240234375, -0.00646209716796875, 0.03680419921875, 0.009429931640625, 0.0033054351806640625, -0.0469970703125, -0.01142120361328125, -0.01666259765625, -0.06646728515625, -0.0103302001953125, 0.0338134765625, -0.025360107421875, 0.00565338134765625, -0.0008358955383300781, 0.0152587890625, -0.0071868896484375, -0.0255279541015625, -0.0008368492126464844, -0.01428985595703125, 0.0196075439453125, -0.0270233154296875, -0.0159149169921875, 0.0223541259765625, -0.00262451171875, 0.01274871826171875, -0.00489044189453125, 0.00606536865234375, 0.0196533203125, -0.0235595703125, 0.0343017578125, 0.0169525146484375, 0.0251312255859375, 0.00824737548828125, 0.00463104248046875, 0.00672149658203125, 0.0183868408203125, 0.00426483154296875, 0.0305328369140625, -0.01111602783203125, 0.0198516845703125, -0.0195770263671875, -0.05767822265625, 0.0455322265625, 0.0176239013671875, -0.031890869140625, 0.03900146484375, -0.0386962890625, -0.007434844970703125, -0.014068603515625, 0.045989990234375, -0.0264129638671875, 0.0310211181640625, 0.060943603515625, 0.024627685546875, 0.006412506103515625, 0.01788330078125, -0.0272674560546875, -0.033721923828125, -0.01241302490234375, -0.030059814453125, -0.046051025390625, -0.034149169921875, 0.00470733642578125, -0.0115966796875, -0.00823974609375, 0.0278167724609375, 0.00798797607421875, 0.00464630126953125, -0.0207672119140625, -0.00909423828125, 0.0156097412109375, -0.01885986328125, 0.021331787109375, -0.0194244384765625, -0.00928497314453125, -0.040191650390625, 0.0193634033203125, -0.015045166015625, 0.00634765625, -0.00821685791015625, -0.02423095703125, -0.0107421875, 0.0328369140625, -0.030181884765625, 0.0174102783203125, 0.0065460205078125, -0.06146240234375, -0.0190582275390625, -0.0181732177734375, -0.0299530029296875, 0.0501708984375, 0.005359649658203125, 0.0191650390625, -0.0098724365234375, 0.000006496906280517578, -0.02679443359375, -0.04547119140625, 0.10101318359375, -0.07293701171875, 0.009613037109375, 0.0252685546875, 0.06158447265625, 0.0065460205078125, -0.0019388198852539062, 0.01410675048828125, -0.00258636474609375, 0.035064697265625, 0.0103759765625, 0.027313232421875, -0.027801513671875, -0.00540924072265625, -0.068115234375, 0.056640625, 0.0287933349609375, 0.013702392578125, 0.002490997314453125, 0.0219573974609375, -0.0216827392578125, 0.004024505615234375, -0.0465087890625, 0.07958984375, 0.01056671142578125, 0.034912109375, -0.06103515625, -0.0166168212890625, 0.0013780593872070312, 0.03253173828125, 0.047088623046875, -0.003849029541015625, -0.00922393798828125, -0.0008215904235839844, 0.057891845703125, 0.054412841796875, 0.0014944076538085938, -0.00485992431640625, 0.0270843505859375, 0.01361083984375, 0.058685302734375, -0.00433349609375, 0.04736328125, -0.0260009765625, 0.00853729248046875, 0.034942626953125, 0.007137298583984375, 0.004913330078125, 0.01531219482421875, -0.04400634765625, -0.01336669921875, 0.0107879638671875, -0.0012655258178710938, -0.004108428955078125, 0.004703521728515625, 0.049835205078125, 0.048065185546875, -0.007747650146484375, 0.022491455078125, -0.0248565673828125, 0.056182861328125, -0.00006115436553955078, 0.035186767578125, 0.005702972412109375, 0.0045623779296875, 0.048248291015625, -0.0196380615234375, 0.016357421875, 0.006130218505859375, -0.0022640228271484375, 0.042877197265625, 0.0077056884765625, 0.01430511474609375, -0.0797119140625, -0.030731201171875, 0.061187744140625, 0.061676025390625, -0.03912353515625, -0.057098388671875, 0.0287628173828125, 0.022979736328125, -0.0068359375, 0.037445068359375, 0.01245880126953125, 0.00417327880859375, 0.08209228515625, -0.045074462890625, -0.00893402099609375, -0.00046539306640625, 0.043121337890625, -0.006061553955078125, -0.02105712890625, -0.0384521484375, -0.0274810791015625, -0.05242919921875, 0.0193023681640625, 0.0276031494140625, 0.0484619140625, 0.0168914794921875, 0.0728759765625, 0.0004215240478515625, -0.016265869140625, 0.010589599609375, 0.0207977294921875, 0.0016374588012695312, -0.0239715576171875, 0.0244598388671875, -0.025177001953125, -0.015655517578125, 0.008148193359375, 0.05938720703125, -0.020660400390625, 0.03680419921875, 0.053802490234375, 0.0079803466796875, -0.00698089599609375, 0.056396484375, 0.019927978515625, 0.0210113525390625, -0.03900146484375, 0.002864837646484375, 0.01087188720703125, -0.02044677734375, 0.01483154296875, -0.0271148681640625, 0.056671142578125, -0.00020456314086914062, 0.0328369140625, 0.00656890869140625, -0.0075225830078125, 0.0704345703125, -0.0182647705078125, 0.056304931640625, 0.0121917724609375, -0.0931396484375, -0.029449462890625, -0.053192138671875, 0.01192474365234375, 0.06402587890625, 0.049102783203125, 0.0026340484619140625, -0.0051727294921875, -0.0106048583984375, -0.0220794677734375, 0.01116180419921875, 0.01275634765625, 0.0231475830078125, 0.0220489501953125, -0.00464630126953125, 0.006305694580078125, -0.047210693359375, -0.0257110595703125, -0.0185394287109375, 0.00428009033203125, 0.0134124755859375, 0.0025272369384765625, 0.022216796875, 0.019805908203125, -0.03558349609375, 0.053436279296875, -0.05487060546875, -0.02056884765625, 0.0287322998046875, 0.035400390625, 0.018035888671875, -0.0281982421875, -0.0224761962890625, 0.0416259765625, 0.04974365234375, -0.02520751953125, 0.017242431640625, 0.019073486328125, -0.0044403076171875, -0.0426025390625, 0.03704833984375, -0.00838470458984375, -0.00785064697265625, -0.022857666015625, -0.03338623046875, 0.035125732421875, 0.0268707275390625, 0.01549530029296875, 0.0013179779052734375, 0.0257568359375, -0.01001739501953125, 0.014739990234375, 0.0210418701171875, 0.032073974609375, 0.03961181640625, -0.01497650146484375, -0.0364990234375, 0.0167999267578125, -0.01261138916015625, 0.0249481201171875, -0.006298065185546875, 0.04937744140625, 0.0123748779296875, -0.02703857421875, -0.01739501953125, -0.0220947265625, 0.0345458984375, -0.0031147003173828125, 0.0035858154296875, -0.046875, 0.013641357421875, -0.004329681396484375, -0.0296173095703125, -0.041351318359375, -0.04815673828125, 0.00055694580078125, 0.0172882080078125, -0.010589599609375, -0.031097412109375, -0.029510498046875, -0.031829833984375, 0.039337158203125, -0.02459716796875, 0.032989501953125, -0.0246124267578125, -0.03631591796875, -0.01397705078125, 0.005916595458984375, -0.05474853515625, 0.0330810546875, 0.0633544921875, 0.0011234283447265625, 0.00385284423828125, -0.0167083740234375, -0.023406982421875, -0.00665283203125, 0.02197265625, 0.0176849365234375, -0.055572509765625, -0.010406494140625, 0.05352783203125, 0.05572509765625, 0.08929443359375, 0.047607421875, -0.0255126953125, 0.002361297607421875, 0.01476287841796875, -0.0338134765625, -0.031646728515625, 0.021759033203125, -0.029541015625, -0.0233917236328125, -0.014892578125, 0.0258941650390625, 0.054656982421875, -0.00748443603515625, -0.07098388671875, 0.08990478515625, -0.039581298828125, -0.0230560302734375, -0.10382080078125, 0.0308990478515625, 0.042755126953125, -0.04718017578125, -0.045806884765625, -0.013214111328125, -0.0576171875, 0.0255126953125, 0.0180816650390625, -0.00403594970703125, 0.02911376953125, -0.01355743408203125, -0.05206298828125, 0.004917144775390625, -0.002170562744140625, 0.010162353515625, 0.004669189453125, -0.02276611328125, 0.0015010833740234375, 0.0234375, -0.05743408203125, -0.051971435546875, -0.0184326171875, 0.0239410400390625, 0.00440216064453125, -0.035552978515625, -0.01800537109375, -0.03369140625, 0.0151214599609375, 0.00331878662109375, 0.0131072998046875, -0.0124053955078125, -0.01555633544921875, -0.01284027099609375, -0.0791015625, -0.0210418701171875, 0.042877197265625, -0.05059814453125, 0.007110595703125, -0.01488494873046875, 0.01107025146484375, 0.0201873779296875, -0.00933837890625, -0.00656890869140625, -0.016204833984375, -0.0204925537109375, -0.01239776611328125, -0.044219970703125, 0.054962158203125, -0.037750244140625, -0.01192474365234375, -0.02508544921875, -0.036865234375, -0.0102691650390625, -0.043212890625, -0.04412841796875, -0.00537109375, -0.0104522705078125, 0.009918212890625, 0.01058197021484375, 0.01824951171875, 0.007747650146484375, 0.0090789794921875, 0.01045989990234375, -0.01123046875, 0.01885986328125, 0.01035308837890625, 0.0233612060546875, -0.0299072265625, 0.056884765625, 0.0252227783203125, 0.034088134765625, 0.004665374755859375, 0.0455322265625, -0.01477813720703125, 0.07080078125, -0.0203857421875, -0.03033447265625, -0.01197052001953125, -0.0274200439453125, -0.005016326904296875, 0.00061798095703125, -0.037628173828125, -0.050811767578125, 0.0241241455078125, 0.014801025390625, -0.005161285400390625, 0.026611328125 ]
0f993e5c55340b5868824e01e1d02d38408fe519
Wordpress Stackexchange Q: Disable update notification for individual plugins Is there a way to disable update notifications for specific plugins? As a plugin developer, I have some plugins installed on my personal site using the svn trunk version for testing, but the same plugins are available from the plugin site. In these cases WP considers the latest version to be the most recently published version and constantly tries to warn me that updates are available. I still want to see notifications for updates on other plugins, but it's anoying to constantly ignore the Updates (2) notice in the header! A: For example if you don't want Wordpress to show update notifications for akismet, you will do it like: function filter_plugin_updates( $value ) { unset( $value->response['akismet/akismet.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
Q: Disable update notification for individual plugins Is there a way to disable update notifications for specific plugins? As a plugin developer, I have some plugins installed on my personal site using the svn trunk version for testing, but the same plugins are available from the plugin site. In these cases WP considers the latest version to be the most recently published version and constantly tries to warn me that updates are available. I still want to see notifications for updates on other plugins, but it's anoying to constantly ignore the Updates (2) notice in the header! A: For example if you don't want Wordpress to show update notifications for akismet, you will do it like: function filter_plugin_updates( $value ) { unset( $value->response['akismet/akismet.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); A: Disable All Update Notifications with Code function remove_core_updates(){ global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); } add_filter('pre_site_transient_update_core','remove_core_updates'); add_filter('pre_site_transient_update_plugins','remove_core_updates'); add_filter('pre_site_transient_update_themes','remove_core_updates'); Code will disable update notifications for the WordPress core, plugins, and themes. A: Hameedullah Khan's answer will throw a PHP warning. Include this if clause to check to make sure it's an object before unsetting the response for that plugin. 'Warning: Attempt to modify property of non-object' Try this to avoid the warnings (code for the plugin file itself): // remove update notice for forked plugins function remove_update_notifications($value) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response[ plugin_basename(__FILE__) ] ); } return $value; } add_filter( 'site_transient_update_plugins', 'remove_update_notifications' ); I like to put this in the actual plugin. Since I've only ever disabled updates on a plugin because I've edited or forked the code and don't want to lose my edits on an update, I've already edited the plugin and thus don't mind editing it more. It keeps my functions file a bit cleaner. But if you wish you can put it in the functions file and a benefit to that method is you can remove multiple plugins from updates by adding another unset line for that plugin like so (code for functions.php): // remove update notice for forked plugins function remove_update_notifications( $value ) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response[ 'hello.php' ] ); unset( $value->response[ 'akismet/akismet.php' ] ); } return $value; } add_filter( 'site_transient_update_plugins', 'remove_update_notifications' );
wordpress
{ "language": "en", "length": 377, "provenance": "stackexchange_00019.jsonl.gz:410516", "question_score": "64", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20580" }
[ 0.0859375, -0.01190948486328125, 0.018951416015625, -0.0276336669921875, 0.00676727294921875, -0.02789306640625, 0.039642333984375, -0.0214385986328125, 0.024627685546875, 0.023193359375, -0.00894927978515625, -0.027679443359375, 0.0017251968383789062, -0.03167724609375, -0.032958984375, -0.030059814453125, 0.03131103515625, 0.0036220550537109375, 0.00988006591796875, -0.0157928466796875, 0.00916290283203125, 0.01372528076171875, -0.01190185546875, 0.0565185546875, -0.01435089111328125, 0.0222320556640625, 0.10723876953125, -0.0104522705078125, 0.004360198974609375, -0.0176849365234375, 0.01161956787109375, -0.029754638671875, 0.0010242462158203125, 0.06854248046875, -0.07275390625, -0.03289794921875, -0.00925445556640625, 0.018341064453125, -0.009674072265625, 0.044097900390625, 0.02606201171875, -0.014923095703125, 0.052947998046875, 0.0074310302734375, 0.0229339599609375, -0.033905029296875, 0.02691650390625, -0.07373046875, 0.0197906494140625, -0.01183319091796875, 0.014617919921875, 0.028564453125, 0.0299224853515625, -0.0170440673828125, -0.01092529296875, 0.0011262893676757812, -0.07568359375, 0.09490966796875, 0.0230865478515625, 0.0285186767578125, -0.01381683349609375, 0.0014820098876953125, -0.00717926025390625, -0.045989990234375, 0.0024585723876953125, -0.0245513916015625, 0.0152587890625, 0.01265716552734375, -0.06494140625, 0.0016651153564453125, 0.0714111328125, -0.03399658203125, 0.00811767578125, -0.021270751953125, -0.0027942657470703125, -0.034393310546875, 0.0187225341796875, -0.0247802734375, 0.0152130126953125, -0.00890350341796875, 0.032073974609375, -0.010284423828125, -0.00940704345703125, -0.0104522705078125, 0.0159149169921875, 0.0245208740234375, -0.0004031658172607422, -0.015289306640625, -0.0443115234375, 0.029632568359375, -0.036102294921875, 0.033782958984375, -0.03558349609375, 0.0289306640625, -0.01025390625, 0.04058837890625, 0.0208587646484375, 0.050079345703125, -0.019012451171875, -0.0179290771484375, 0.003505706787109375, -0.0305023193359375, -0.0100250244140625, -0.035491943359375, -0.0211334228515625, 0.049407958984375, 0.04339599609375, 0.016357421875, 0.007175445556640625, -0.0011186599731445312, 0.003185272216796875, -0.0011339187622070312, -0.0215911865234375, 0.010223388671875, -0.01073455810546875, -0.011749267578125, -0.0828857421875, 0.04278564453125, -0.00858306884765625, 0.0374755859375, 0.03131103515625, 0.053253173828125, -0.037567138671875, -0.017364501953125, -0.016754150390625, -0.02655029296875, -0.01220703125, -0.004302978515625, -0.03857421875, -0.028961181640625, -0.042022705078125, 0.0208587646484375, 0.06878662109375, 0.06573486328125, 0.0338134765625, 0.003665924072265625, 0.0024871826171875, 0.022674560546875, -0.01739501953125, 0.01456451416015625, -0.0027828216552734375, 0.0177764892578125, 0.037689208984375, -0.03900146484375, -0.02960205078125, -0.039459228515625, -0.0210723876953125, 0.048187255859375, 0.040191650390625, 0.0289764404296875, -0.032745361328125, 0.0082244873046875, 0.032318115234375, -0.024322509765625, 0.0202484130859375, -0.04132080078125, 0.0621337890625, -0.038818359375, -0.022735595703125, -0.051910400390625, -0.0212860107421875, -0.03033447265625, 0.005184173583984375, -0.00727081298828125, -0.0382080078125, 0.047943115234375, 0.0079345703125, -0.002468109130859375, 0.0155181884765625, -0.015380859375, -0.015777587890625, -0.0176849365234375, 0.0166168212890625, 0.01454925537109375, 0.0035419464111328125, 0.047271728515625, 0.004322052001953125, -0.0264892578125, 0.055328369140625, -0.046600341796875, -0.076904296875, -0.03472900390625, 0.08489990234375, -0.04681396484375, -0.07080078125, 0.06005859375, -0.0196533203125, 0.0246124267578125, 0.034576416015625, -0.0260772705078125, 0.0682373046875, 0.02423095703125, 0.01348114013671875, 0.00848388671875, -0.004093170166015625, -0.0159912109375, 0.01282501220703125, 0.025146484375, 0.00020122528076171875, -0.04510498046875, -0.0214691162109375, 0.01189422607421875, -0.0035305023193359375, -0.03167724609375, -0.059326171875, -0.0031719207763671875, -0.0220947265625, 0.051788330078125, 0.00243377685546875, 0.036834716796875, 0.0065765380859375, 0.0017299652099609375, -0.024993896484375, -0.00576019287109375, -0.010467529296875, -0.007266998291015625, -0.018585205078125, 0.0205078125, 0.005046844482421875, 0.040618896484375, 0.0005526542663574219, 0.006969451904296875, 0.004150390625, -0.0278472900390625, 0.007503509521484375, -0.0237274169921875, -0.0028076171875, -0.004848480224609375, 0.0271148681640625, -0.00315093994140625, 0.01374053955078125, 0.01224517822265625, -0.0546875, -0.045928955078125, 0.0017566680908203125, 0.01837158203125, 0.038970947265625, -0.0860595703125, 0.0177154541015625, 0.039825439453125, 0.0274658203125, -0.02557373046875, -0.007480621337890625, 0.02142333984375, 0.020355224609375, -0.035308837890625, 0.0009899139404296875, 0.013336181640625, 0.032196044921875, 0.0053863525390625, 0.0199432373046875, -0.02838134765625, 0.04437255859375, -0.002109527587890625, 0.0261993408203125, 0.03363037109375, 0.0174713134765625, 0.0116119384765625, -0.00855255126953125, 0.0002522468566894531, -0.0026454925537109375, -0.0118560791015625, -0.0169830322265625, -0.007293701171875, 0.037445068359375, -0.005451202392578125, 0.038970947265625, 0.0384521484375, 0.01073455810546875, -0.019622802734375, -0.007785797119140625, -0.038543701171875, 0.003330230712890625, 0.032562255859375, 0.0217132568359375, -0.03289794921875, -0.01508331298828125, -0.00901031494140625, -0.005275726318359375, 0.0165252685546875, -0.04693603515625, -0.06561279296875, 0.01003265380859375, -0.0029239654541015625, 0.006885528564453125, -0.019500732421875, 0.069580078125, -0.0283050537109375, -0.09210205078125, -0.0123138427734375, 0.021209716796875, 0.01104736328125, -0.0219268798828125, -0.017730712890625, 0.011444091796875, 0.00966644287109375, -0.040008544921875, -0.04803466796875, 0.039276123046875, -0.044952392578125, 0.0203094482421875, 0.06341552734375, 0.0157470703125, -0.010284423828125, 0.017578125, -0.0264892578125, 0.024658203125, 0.01287078857421875, -0.01561737060546875, 0.03814697265625, -0.123779296875, -0.0243988037109375, -0.00008231401443481445, 0.0254974365234375, -0.0218353271484375, -0.04608154296875, -0.011505126953125, 0.0094757080078125, -0.05706787109375, -0.006092071533203125, 0.0089263916015625, -0.029998779296875, 0.0235443115234375, -0.0050201416015625, -0.00589752197265625, -0.0191192626953125, 0.0194091796875, 0.015350341796875, -0.055938720703125, 0.0034465789794921875, -0.036834716796875, -0.01041412353515625, -0.0226898193359375, 0.103759765625, -0.00868988037109375, 0.0338134765625, 0.003086090087890625, 0.09539794921875, 0.0125579833984375, -0.07049560546875, -0.0066986083984375, 0.00887298583984375, -0.0189666748046875, 0.0207366943359375, 0.0067291259765625, -0.019256591796875, 0.01177978515625, 0.00433349609375, -0.00445556640625, 0.03515625, -0.02130126953125, -0.0209808349609375, 0.00797271728515625, -0.00867462158203125, 0.0207366943359375, -0.01934814453125, -0.021514892578125, 0.012298583984375, -0.002086639404296875, -0.03607177734375, -0.0020923614501953125, -0.009307861328125, -0.03643798828125, -0.0016698837280273438, 0.00909423828125, -0.01078033447265625, -0.00955963134765625, -0.003360748291015625, -0.0053558349609375, -0.011810302734375, 0.04742431640625, -0.038909912109375, 0.011962890625, -0.0083770751953125, -0.00811767578125, -0.025421142578125, 0.01146697998046875, -0.017181396484375, 0.045166015625, -0.008880615234375, -0.00004106760025024414, -0.03729248046875, 0.043701171875, -0.056243896484375, 0.0095977783203125, -0.0016937255859375, -0.07183837890625, 0.00389862060546875, -0.01445770263671875, 0.027587890625, -0.0087890625, 0.02288818359375, -0.037109375, -0.015899658203125, -0.024017333984375, 0.0183258056640625, -0.0379638671875, -0.061614990234375, -0.024383544921875, -0.01751708984375, -0.05853271484375, 0.00019812583923339844, -0.001674652099609375, -0.0194244384765625, -0.018585205078125, 0.01351165771484375, -0.0304412841796875, -0.02349853515625, 0.0230255126953125, -0.030548095703125, 0.00832366943359375, 0.00677490234375, -0.0016527175903320312, -0.0223846435546875, -0.0129852294921875, -0.03082275390625, -0.06414794921875, -0.0004181861877441406, -0.034210205078125, 0.021209716796875, -0.0003948211669921875, 0.0038356781005859375, -0.0254058837890625, 0.012969970703125, -0.0127105712890625, 0.0178680419921875, -0.0081329345703125, 0.0157470703125, 0.01410675048828125, 0.0234527587890625, 0.021148681640625, 0.004077911376953125, -0.01041412353515625, -0.01210784912109375, -0.0278778076171875, 0.0258636474609375, -0.0084075927734375, -0.003429412841796875, 0.0112152099609375, -0.0382080078125, -0.04534912109375, -0.033782958984375, -0.04510498046875, -0.0018062591552734375, -0.0177459716796875, -0.0081329345703125, -0.034942626953125, -0.052459716796875, 0.041900634765625, -0.00011682510375976562, -0.011260986328125, -0.007312774658203125, 0.0482177734375, 0.002857208251953125, -0.032806396484375, -0.01168060302734375, 0.025543212890625, 0.0374755859375, 0.04119873046875, -0.0013074874877929688, 0.006500244140625, -0.02362060546875, -0.0011835098266601562, 0.0242919921875, -0.002773284912109375, -0.0141448974609375, 0.046142578125, -0.0097198486328125, -0.0401611328125, 0.0338134765625, -0.02923583984375, 0.01087188720703125, 0.00919342041015625, -0.0036678314208984375, -0.03253173828125, 0.01001739501953125, 0.0322265625, -0.00977325439453125, 0.02679443359375, -0.01068878173828125, -0.041778564453125, 0.0290069580078125, 0.0170135498046875, -0.01380157470703125, 0.0143585205078125, 0.0017910003662109375, 0.01360321044921875, 0.00504302978515625, -0.0277099609375, -0.005069732666015625, 0.0222015380859375, -0.0131683349609375, 0.019989013671875, 0.0006866455078125, -0.039031982421875, -0.028472900390625, -0.0090179443359375, 0.046173095703125, -0.01001739501953125, -0.04937744140625, -0.00016963481903076172, -0.023193359375, 0.03192138671875, 0.038818359375, 0.026214599609375, 0.0673828125, 0.04510498046875, -0.02081298828125, -0.03155517578125, -0.026580810546875, 0.025604248046875, -0.07830810546875, -0.02203369140625, -0.0011463165283203125, -0.019775390625, 0.0250701904296875, -0.017181396484375, -0.0039520263671875, -0.006343841552734375, 0.005825042724609375, 0.021331787109375, 0.0194549560546875, 0.002819061279296875, 0.0203704833984375, -0.007282257080078125, 0.0107879638671875, -0.038818359375, 0.0286865234375, -0.0364990234375, -0.0087890625, 0.006317138671875, 0.0036373138427734375, 0.01165008544921875, -0.0047149658203125, 0.038818359375, 0.02630615234375, -0.03485107421875, 0.059112548828125, 0.06451416015625, -0.011016845703125, -0.046356201171875, 0.001667022705078125, 0.04547119140625, 0.0249786376953125, -0.006885528564453125, -0.01174163818359375, -0.01861572265625, -0.054962158203125, 0.047027587890625, -0.10919189453125, -0.003604888916015625, 0.044158935546875, 0.01258087158203125, -0.02044677734375, 0.0018787384033203125, -0.08984375, -0.00669097900390625, -0.020477294921875, 0.0286865234375, 0.0270538330078125, -0.0227813720703125, 0.01837158203125, -0.0214385986328125, 0.00682830810546875, 0.00811004638671875, 0.0160675048828125, 0.032012939453125, 0.019256591796875, -0.061187744140625, 0.00528717041015625, -0.033599853515625, -0.0240478515625, -0.06561279296875, -0.048187255859375, -0.0645751953125, 0.00817108154296875, 0.0214080810546875, 0.019195556640625, -0.00606536865234375, -0.037200927734375, -0.01348876953125, 0.0022182464599609375, 0.010650634765625, 0.0284881591796875, -0.006725311279296875, 0.049224853515625, 0.0166015625, 0.059051513671875, 0.01454925537109375, 0.0132598876953125, -0.03857421875, -0.019622802734375, 0.0252685546875, -0.01451873779296875, -0.039703369140625, 0.00409698486328125, -0.01195526123046875, -0.03802490234375, -0.016021728515625, -0.018646240234375, -0.0150909423828125, -0.0187835693359375, 0.00794219970703125, -0.018707275390625, 0.055084228515625, -0.006427764892578125, -0.020721435546875, 0.03424072265625, -0.03326416015625, -0.028350830078125, 0.0016126632690429688, -0.01268768310546875, 0.012664794921875, 0.0030117034912109375, 0.00762176513671875, -0.0099334716796875, -0.0206451416015625, 0.03350830078125, 0.01788330078125, -0.003269195556640625, 0.0390625, -0.01074981689453125, 0.0293731689453125, 0.0263214111328125, -0.0013647079467773438, 0.039459228515625, -0.006591796875, 0.06488037109375, 0.0156402587890625, -0.005596160888671875, 0.0518798828125, -0.0308990478515625, 0.00705718994140625, 0.047271728515625, 0.071044921875, -0.05902099609375, -0.0010013580322265625, 0.024932861328125, 0.00485992431640625, 0.01189422607421875, -0.01323699951171875, -0.0328369140625, -0.1046142578125, 0.046539306640625, -0.0119171142578125, -0.0027179718017578125, -0.003173828125, -0.0207977294921875, -0.0193939208984375, 0.02069091796875, 0.035125732421875, 0.0250701904296875, 0.007724761962890625, -0.022796630859375, -0.0118408203125, 0.00659942626953125, 0.018524169921875, -0.0036449432373046875, 0.0293426513671875, -0.061187744140625, -0.07684326171875, -0.020355224609375, 0.006671905517578125, -0.06585693359375, 0.007007598876953125, -0.006458282470703125, 0.0003135204315185547, 0.0533447265625, -0.0257110595703125, 0.0018186569213867188, 0.039398193359375, -0.074462890625, 0.0123748779296875, -0.038726806640625, -0.0254669189453125, 0.055389404296875, -0.02850341796875, 0.0033016204833984375, 0.0175323486328125, 0.01157379150390625, -0.000576019287109375, 0.042236328125, 0.0865478515625, -0.0070343017578125, -0.042388916015625, 0.020355224609375, 0.0093536376953125, -0.00861358642578125, -0.0022144317626953125, 0.042266845703125, -0.0599365234375, -0.011962890625, 0.0198822021484375, -0.004337310791015625, -0.0242919921875, 0.01885986328125, -0.055450439453125, 0.0892333984375, 0.0020732879638671875, 0.0070343017578125, 0.007106781005859375, 0.035064697265625, -0.040924072265625, -0.0013837814331054688, -0.01611328125, 0.0273284912109375, -0.0240020751953125, 0.01160430908203125, -0.025909423828125, 0.007022857666015625, -0.01313018798828125, 0.01800537109375, 0.0711669921875, 0.0306549072265625, -0.0235443115234375, 0.004016876220703125, 0.0307769775390625, 0.0198516845703125, -0.0286865234375, 0.044158935546875, 0.0057830810546875, -0.0080108642578125, 0.00888824462890625, -0.0168609619140625, 0.021453857421875, -0.02996826171875, 0.004413604736328125, 0.025787353515625, 0.0010662078857421875, 0.004638671875, -0.0184326171875, 0.06884765625, 0.0280609130859375, -0.033416748046875, -0.0159454345703125, -0.0103759765625, 0.0306854248046875, -0.005077362060546875, 0.002056121826171875, -0.01105499267578125, 0.034271240234375, -0.0177459716796875, 0.04046630859375, 0.0005431175231933594, -0.0127410888671875, 0.02349853515625, 0.00603485107421875, -0.0136260986328125, 0.00420379638671875, 0.0013799667358398438, 0.020477294921875, -0.019622802734375, 0.00571441650390625, -0.018798828125, 0.01349639892578125, -0.045654296875, -0.01215362548828125, 0.00856781005859375, -0.0036602020263671875, -0.0200042724609375, -0.0313720703125, 0.0186920166015625, -0.0005660057067871094, 0.0014467239379882812, -0.0291900634765625, -0.013214111328125, -0.021759033203125, 0.00739288330078125, -0.0217437744140625, -0.006072998046875, 0.007205963134765625, 0.028778076171875, 0.0006127357482910156, 0.001613616943359375, -0.0153045654296875, -0.031219482421875, -0.028411865234375, 0.0295562744140625, 0.00152587890625, 0.0132904052734375, -0.023162841796875, 0.037506103515625, 0.01399993896484375, 0.01312255859375, -0.0140838623046875, 0.010772705078125, 0.0095672607421875, 0.0013275146484375, -0.046234130859375, -0.0433349609375, 0.0277252197265625, 0.05560302734375, 0.036224365234375, 0.0021533966064453125, 0.054779052734375, 0.05078125, -0.01386260986328125, 0.00664520263671875, 0.05126953125, 0.002857208251953125, -0.007450103759765625, -0.049896240234375, 0.00527191162109375, 0.01461029052734375, 0.0022640228271484375, 0.0008149147033691406, -0.02117919921875, 0.042022705078125, -0.0288848876953125, 0.0056915283203125, 0.004123687744140625, -0.044281005859375, 0.04132080078125, -0.004810333251953125, 0.025726318359375, -0.01194000244140625, -0.0105743408203125, -0.0016613006591796875, -0.032012939453125, 0.01384735107421875, 0.003498077392578125, 0.0189971923828125, -0.0184783935546875, 0.060943603515625, 0.0213623046875, 0.0212860107421875, -0.02081298828125, -0.052703857421875, 0.0236053466796875, -0.032135009765625, -0.00768280029296875, 0.00726318359375, -0.02752685546875, -0.01177215576171875, -0.0084381103515625, 0.02032470703125, 0.03131103515625, 0.076904296875, -0.01001739501953125, 0.0144805908203125, 0.014923095703125, -0.003162384033203125, -0.00362396240234375, -0.005218505859375, 0.007518768310546875, -0.0282135009765625, -0.0128326416015625, 0.0005984306335449219, -0.07708740234375, 0.039031982421875, 0.033660888671875, 0.0031337738037109375, 0.05706787109375, -0.00991058349609375, -0.004077911376953125, -0.030975341796875, 0.0163726806640625, -0.02239990234375, -0.0140228271484375, 0.0017499923706054688, -0.0105133056640625, 0.0146942138671875, 0.0135345458984375, 0.0112762451171875, -0.00949859619140625, 0.046905517578125, 0.00890350341796875, -0.017852783203125, 0.0565185546875, -0.04718017578125, 0.028778076171875, 0.02783203125, -0.006038665771484375, -0.0286865234375, -0.02374267578125, -0.002410888671875, -0.00527191162109375, 0.03277587890625, -0.040924072265625, 0.06622314453125, 0.002735137939453125, -0.005741119384765625, 0.007160186767578125, -0.0163116455078125, -0.00669097900390625, 0.006374359130859375, 0.00911712646484375, -0.03167724609375, -0.051910400390625, -0.020721435546875, -0.051666259765625, -0.006633758544921875, 0.030914306640625, -0.04315185546875, -0.0374755859375, -0.0305938720703125, 0.0225830078125, 0.03411865234375, -0.003643035888671875, -0.0650634765625, 0.0152587890625, -0.038360595703125, 0.08697509765625, -0.0308990478515625, 0.007297515869140625, -0.03076171875, -0.03070068359375, -0.00566864013671875, -0.04205322265625, -0.051239013671875, 0.08599853515625, -0.01424407958984375, -0.01464080810546875, 0.01496124267578125, -0.00891876220703125, -0.03533935546875, -0.0352783203125, 0.00547027587890625, 0.01348876953125, 0.008819580078125, 0.0031337738037109375, 0.022857666015625, -0.035980224609375, -0.026031494140625, -0.03753662109375, 0.0307769775390625, -0.08367919921875, -0.0615234375, -0.0169219970703125, -0.00894927978515625, -0.01213836669921875, -0.05194091796875, -0.0650634765625, 0.045928955078125, -0.0036525726318359375, -0.02520751953125, -0.04833984375, 0.00640869140625, -0.023040771484375, 0.0190887451171875, -0.00952911376953125, -0.0176239013671875, 0.00774383544921875, 0.06146240234375, 0.00461578369140625, 0.04644775390625, -0.0129241943359375, 0.0235137939453125, 0.0003743171691894531, 0.039306640625, 0.022186279296875, -0.01190948486328125, -0.051971435546875, 0.01092529296875, 0.017822265625, -0.00995635986328125, -0.0251007080078125, 0.052642822265625, 0.0643310546875, 0.0291748046875, -0.0213470458984375, -0.028167724609375, -0.06005859375, -0.018280029296875, 0.1263427734375, 0.0927734375, 0.039154052734375, -0.046112060546875, 0.025848388671875, -0.038848876953125, -0.0257568359375, -0.006359100341796875, 0.01201629638671875, -0.04827880859375, 0.0123138427734375, 0.0251617431640625, 0.034454345703125, -0.0270233154296875, 0.0241546630859375, 0.0178985595703125, -0.044158935546875, 0.034027099609375, 0.0016632080078125, -0.0017852783203125, -0.0202484130859375, -0.049407958984375, 0.0210418701171875, 0.01287841796875, -0.005950927734375, -0.0016527175903320312, -0.019378662109375, 0.0816650390625, 0.0028324127197265625, 0.02325439453125, -0.020751953125, 0.0212860107421875, 0.004119873046875, 0.029632568359375, -0.020355224609375, -0.00885009765625, -0.016265869140625, -0.0034847259521484375, 0.01788330078125, -0.01233673095703125, -0.053131103515625, 0.03021240234375, 0.0248260498046875, 0.031646728515625, 0.018646240234375, 0.010833740234375, -0.006145477294921875, 0.039398193359375, 0.0010557174682617188, -0.031005859375, 0.021026611328125, -0.023590087890625, 0.023712158203125, 0.0289154052734375, 0.052398681640625, 0.0120849609375, 0.035400390625, -0.0272216796875, 0.01113128662109375, 0.007038116455078125 ]
ad9d5dc102bcd2d0d4d970157652ff7cdd40dff3
Wordpress Stackexchange Q: How do I turn off wordpress comments ability to capture a users ip address? Going through the comments table on my wordpress site, I noticed that wordpress is storing the ip address of everyone who makes a comment on my site. How do I remove this functionality? I'm not just talking about the display of the ip in the template, I mean I don't want wordpress to capture it in the first place. A: Add this to your functions.php: add_filter('pre_comment_user_ip', 'no_ips'); function no_ips($comment_author_ip){ return ''; } You'll still have the comment_author_IP field in the db, but it will be empty... And to remove existing IP records from the db run this query: UPDATE `wp_comments` SET `comment_author_IP` = ''
Q: How do I turn off wordpress comments ability to capture a users ip address? Going through the comments table on my wordpress site, I noticed that wordpress is storing the ip address of everyone who makes a comment on my site. How do I remove this functionality? I'm not just talking about the display of the ip in the template, I mean I don't want wordpress to capture it in the first place. A: Add this to your functions.php: add_filter('pre_comment_user_ip', 'no_ips'); function no_ips($comment_author_ip){ return ''; } You'll still have the comment_author_IP field in the db, but it will be empty... And to remove existing IP records from the db run this query: UPDATE `wp_comments` SET `comment_author_IP` = ''
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:410545", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20679" }
[ 0.09173583984375, -0.00470733642578125, 0.0263671875, -0.0249786376953125, 0.024322509765625, -0.035247802734375, 0.09381103515625, -0.033599853515625, -0.00931549072265625, 0.018402099609375, -0.040771484375, -0.0050201416015625, -0.029266357421875, -0.0098876953125, -0.03216552734375, -0.05560302734375, 0.04302978515625, -0.0197601318359375, 0.010894775390625, -0.005588531494140625, 0.004299163818359375, 0.0167236328125, -0.00714111328125, 0.037750244140625, -0.0027408599853515625, -0.037139892578125, 0.1302490234375, -0.0193634033203125, 0.00884246826171875, -0.0277252197265625, 0.0248260498046875, 0.003589630126953125, 0.0114593505859375, 0.04986572265625, -0.0760498046875, -0.020721435546875, -0.039947509765625, 0.040557861328125, -0.03265380859375, 0.03271484375, -0.006755828857421875, 0.0057525634765625, -0.01450347900390625, -0.0423583984375, -0.031463623046875, -0.006626129150390625, -0.007556915283203125, -0.004047393798828125, 0.041290283203125, 0.007526397705078125, 0.0009860992431640625, 0.0285797119140625, 0.0204315185546875, 0.002468109130859375, -0.03485107421875, -0.014312744140625, -0.03094482421875, 0.019439697265625, 0.00732421875, 0.0157470703125, 0.012603759765625, 0.0155487060546875, -0.005039215087890625, -0.01038360595703125, -0.0004687309265136719, -0.00789642333984375, 0.05169677734375, 0.028411865234375, -0.06671142578125, -0.01502227783203125, 0.03472900390625, -0.02923583984375, -0.00748443603515625, -0.005863189697265625, -0.027130126953125, -0.019134521484375, 0.020111083984375, -0.0418701171875, 0.0018215179443359375, 0.01401519775390625, 0.0225067138671875, -0.02923583984375, -0.041656494140625, 0.033599853515625, -0.008270263671875, 0.028167724609375, 0.0035247802734375, -0.0258331298828125, -0.0171051025390625, -0.01212310791015625, -0.0222930908203125, -0.05584716796875, -0.0168304443359375, 0.0276947021484375, -0.003173828125, -0.0138397216796875, 0.0170135498046875, 0.005649566650390625, -0.034027099609375, -0.06317138671875, 0.001186370849609375, -0.01445770263671875, -0.051910400390625, 0.0094451904296875, 0.01560211181640625, 0.048858642578125, -0.006580352783203125, -0.0357666015625, 0.045074462890625, 0.01453399658203125, 0.0193939208984375, 0.006931304931640625, -0.0284271240234375, 0.0096282958984375, -0.036407470703125, 0.01397705078125, -0.056427001953125, -0.01386260986328125, -0.0386962890625, 0.006206512451171875, -0.01181793212890625, -0.0191497802734375, -0.0212554931640625, 0.0174407958984375, 0.0201568603515625, -0.01010894775390625, -0.0247039794921875, 0.03399658203125, -0.06890869140625, 0.022735595703125, -0.0096435546875, 0.0141448974609375, 0.05029296875, 0.04656982421875, 0.00536346435546875, -0.0191497802734375, 0.0241851806640625, 0.00946044921875, -0.0211639404296875, 0.0225372314453125, 0.035064697265625, -0.059051513671875, -0.0423583984375, 0.0213165283203125, -0.0084228515625, 0.00815582275390625, 0.0169219970703125, 0.03326416015625, 0.010009765625, -0.027069091796875, -0.01229095458984375, -0.00382232666015625, 0.00702667236328125, 0.0250244140625, 0.03826904296875, -0.00742340087890625, 0.04266357421875, -0.034332275390625, -0.004058837890625, -0.0220947265625, 0.041717529296875, -0.01050567626953125, -0.0213470458984375, 0.01262664794921875, -0.0256195068359375, -0.004878997802734375, -0.002979278564453125, 0.0015230178833007812, 0.0256500244140625, -0.0012750625610351562, 0.0083465576171875, -0.0462646484375, -0.016754150390625, 0.005664825439453125, 0.00182342529296875, 0.0294952392578125, -0.0021457672119140625, 0.003490447998046875, -0.008331298828125, 0.031982421875, -0.005908966064453125, -0.038726806640625, -0.0203094482421875, 0.0123443603515625, -0.035614013671875, 0.057708740234375, 0.0015497207641601562, 0.03472900390625, -0.003353118896484375, 0.0081024169921875, 0.0307464599609375, 0.050994873046875, -0.02581787109375, 0.0443115234375, 0.0073089599609375, -0.023529052734375, 0.001476287841796875, 0.005481719970703125, -0.004665374755859375, -0.0204925537109375, 0.024749755859375, -0.01496124267578125, 0.0205078125, -0.031280517578125, -0.0229949951171875, 0.00504302978515625, -0.028900146484375, 0.0296783447265625, 0.0136566162109375, 0.01282501220703125, -0.0022869110107421875, -0.0097503662109375, -0.0204620361328125, -0.01104736328125, -0.026519775390625, 0.0016794204711914062, -0.032012939453125, 0.0689697265625, 0.01363372802734375, 0.06683349609375, 0.0127716064453125, -0.039764404296875, 0.032012939453125, -0.03082275390625, 0.0214385986328125, -0.03411865234375, -0.00605010986328125, -0.036712646484375, 0.037689208984375, -0.031036376953125, 0.03436279296875, 0.03912353515625, -0.00804901123046875, 0.0119476318359375, 0.0054931640625, 0.0200042724609375, 0.01287841796875, -0.03839111328125, -0.013885498046875, 0.022125244140625, 0.05279541015625, 0.01123809814453125, 0.0239410400390625, -0.0009140968322753906, 0.002490997314453125, -0.06390380859375, 0.03741455078125, -0.0200042724609375, 0.0119781494140625, 0.021087646484375, -0.0131683349609375, -0.03253173828125, 0.0369873046875, -0.060211181640625, -0.0020809173583984375, 0.035675048828125, -0.01222991943359375, -0.0019330978393554688, 0.032012939453125, 0.0007529258728027344, -0.0071868896484375, 0.0166778564453125, 0.0308837890625, -0.0035953521728515625, -0.00453948974609375, -0.042572021484375, 0.0032825469970703125, 0.003429412841796875, 0.00669097900390625, -0.038818359375, 0.014984130859375, -0.0155181884765625, -0.00750732421875, 0.0156707763671875, -0.0020809173583984375, 0.0269775390625, -0.0097198486328125, 0.00830078125, -0.0215911865234375, -0.005840301513671875, -0.022796630859375, 0.024505615234375, -0.04541015625, -0.023834228515625, -0.0237274169921875, -0.033111572265625, -0.0171356201171875, -0.00945281982421875, -0.059051513671875, -0.022216796875, -0.0005908012390136719, 0.06365966796875, 0.01552581787109375, -0.011199951171875, 0.0279388427734375, 0.0191650390625, 0.0267486572265625, -0.0692138671875, 0.0355224609375, -0.01398468017578125, 0.08685302734375, 0.083251953125, 0.0145111083984375, 0.01517486572265625, -0.00029659271240234375, -0.0051422119140625, 0.006465911865234375, -0.0024051666259765625, -0.004360198974609375, 0.0092926025390625, -0.047515869140625, 0.02362060546875, 0.00557708740234375, -0.03271484375, -0.0029125213623046875, -0.0086822509765625, -0.0027484893798828125, -0.010589599609375, -0.00757598876953125, 0.0291748046875, 0.039337158203125, -0.01482391357421875, -0.03131103515625, -0.01163482666015625, -0.01264190673828125, 0.0004723072052001953, -0.0120697021484375, -0.0157318115234375, 0.0266876220703125, -0.030181884765625, -0.061279296875, -0.042999267578125, -0.05413818359375, -0.0207366943359375, -0.0019245147705078125, -0.00301361083984375, -0.00830078125, 0.12030029296875, 0.00643157958984375, -0.053314208984375, -0.02099609375, -0.042449951171875, -0.0080108642578125, 0.00905609130859375, -0.03778076171875, 0.0002818107604980469, 0.04388427734375, -0.006694793701171875, -0.0780029296875, -0.00522613525390625, 0.04290771484375, -0.040802001953125, 0.0211944580078125, 0.04345703125, 0.022552490234375, 0.0202789306640625, -0.0183258056640625, 0.0203704833984375, -0.00620269775390625, -0.0301513671875, -0.005580902099609375, 0.0325927734375, 0.0146942138671875, -0.01273345947265625, -0.0259246826171875, -0.0279998779296875, -0.0103759765625, 0.0394287109375, 0.0233306884765625, 0.01216888427734375, 0.0357666015625, -0.0179290771484375, -0.0216522216796875, 0.013824462890625, 0.01009368896484375, -0.02496337890625, -0.0052490234375, -0.036285400390625, 0.0396728515625, -0.0080718994140625, -0.00412750244140625, -0.02001953125, -0.00559234619140625, -0.038543701171875, -0.059356689453125, 0.061492919921875, -0.01515960693359375, -0.0249786376953125, -0.01256561279296875, -0.0216522216796875, 0.01215362548828125, 0.08538818359375, -0.0279693603515625, -0.020965576171875, 0.02813720703125, 0.0044097900390625, -0.037109375, 0.031890869140625, -0.07843017578125, -0.004497528076171875, -0.021636962890625, 0.0129852294921875, -0.01203155517578125, -0.0168609619140625, -0.0084991455078125, -0.033050537109375, 0.00901031494140625, -0.038238525390625, 0.00823211669921875, -0.0006632804870605469, 0.002227783203125, 0.0009150505065917969, -0.013427734375, 0.0010833740234375, -0.0004124641418457031, -0.035675048828125, -0.0178985595703125, -0.0163116455078125, 0.0274200439453125, -0.000823974609375, -0.0369873046875, 0.01898193359375, -0.025238037109375, 0.031097412109375, -0.03912353515625, -0.00923919677734375, 0.006862640380859375, 0.03924560546875, -0.032562255859375, 0.038909912109375, 0.0030231475830078125, -0.01220703125, 0.026123046875, 0.035186767578125, -0.037200927734375, 0.0269622802734375, -0.035003662109375, -0.0103607177734375, 0.026702880859375, -0.063232421875, -0.004047393798828125, -0.035858154296875, -0.036956787109375, 0.003246307373046875, -0.00890350341796875, -0.0255889892578125, -0.037811279296875, -0.00811004638671875, 0.01190185546875, -0.04095458984375, 0.0215606689453125, 0.0025577545166015625, 0.0626220703125, 0.01352691650390625, 0.0014934539794921875, 0.0548095703125, 0.01372528076171875, 0.041351318359375, -0.0160064697265625, 0.07501220703125, 0.07464599609375, -0.00621795654296875, 0.011993408203125, 0.026153564453125, -0.01554107666015625, -0.0196075439453125, 0.035369873046875, 0.003971099853515625, -0.006290435791015625, -0.00012731552124023438, -0.0200653076171875, 0.0260009765625, -0.0019588470458984375, 0.0089263916015625, -0.01422882080078125, 0.0004315376281738281, 0.040863037109375, 0.0012216567993164062, 0.005352020263671875, -0.0285491943359375, -0.071533203125, 0.0310516357421875, -0.11627197265625, 0.043792724609375, 0.0158538818359375, -0.0071868896484375, 0.045928955078125, 0.00325775146484375, -0.0085601806640625, -0.01319122314453125, -0.0369873046875, -0.024993896484375, 0.020782470703125, -0.00876617431640625, -0.02117919921875, 0.01409912109375, -0.0203857421875, 0.0692138671875, 0.006534576416015625, -0.060791015625, 0.0269927978515625, -0.00768280029296875, 0.00177764892578125, 0.03826904296875, 0.007358551025390625, 0.0281219482421875, -0.005748748779296875, 0.0020465850830078125, 0.0092926025390625, -0.0288543701171875, 0.00623321533203125, -0.02716064453125, 0.01085662841796875, -0.00008428096771240234, -0.0011014938354492188, 0.003910064697265625, 0.033050537109375, 0.04168701171875, -0.0003628730773925781, -0.032196044921875, 0.04486083984375, 0.00934600830078125, 0.025360107421875, -0.01007843017578125, 0.038665771484375, 0.0006690025329589844, 0.005146026611328125, 0.005523681640625, -0.0212860107421875, 0.0005283355712890625, 0.0361328125, 0.029754638671875, 0.0145416259765625, -0.019439697265625, -0.0206756591796875, -0.040557861328125, 0.007015228271484375, 0.0506591796875, 0.0469970703125, -0.0166168212890625, -0.0238189697265625, -0.021820068359375, 0.0076446533203125, -0.026641845703125, -0.01373291015625, -0.0183868408203125, -0.040374755859375, -0.04229736328125, 0.06573486328125, -0.06884765625, -0.00616455078125, 0.00882720947265625, -0.0286712646484375, -0.0291900634765625, 0.005123138427734375, 0.022430419921875, 0.0256500244140625, -0.01275634765625, -0.0236358642578125, 0.01629638671875, -0.0071258544921875, 0.01296234130859375, -0.019622802734375, 0.0004761219024658203, -0.03228759765625, 0.0093841552734375, 0.00743865966796875, -0.004825592041015625, -0.032196044921875, -0.00420379638671875, -0.047576904296875, -0.01160430908203125, -0.0167083740234375, -0.052642822265625, -0.0203094482421875, -0.0171051025390625, 0.0167999267578125, 0.0350341796875, 0.0013065338134765625, -0.00762176513671875, -0.01103973388671875, 0.01175689697265625, 0.002704620361328125, 0.064453125, -0.04107666015625, 0.037994384765625, 0.030029296875, 0.022216796875, 0.00267791748046875, 0.036865234375, 0.01293182373046875, -0.02496337890625, 0.05908203125, -0.0309600830078125, -0.0848388671875, -0.03851318359375, -0.047821044921875, -0.0146484375, 0.00786590576171875, -0.040313720703125, 0.0207366943359375, -0.002567291259765625, 0.02117919921875, -0.03155517578125, -0.01245880126953125, -0.03851318359375, 0.0419921875, -0.06610107421875, 0.0181884765625, 0.046630859375, -0.02899169921875, 0.0121002197265625, -0.005603790283203125, -0.004749298095703125, 0.01049041748046875, -0.0213775634765625, 0.0024623870849609375, 0.0009398460388183594, 0.0235748291015625, -0.00519561767578125, 0.0240936279296875, 0.0227203369140625, 0.0257720947265625, -0.0063018798828125, 0.04412841796875, -0.05755615234375, -0.054595947265625, 0.01678466796875, 0.016448974609375, -0.017669677734375, 0.005794525146484375, -0.005298614501953125, 0.041351318359375, 0.039031982421875, 0.08294677734375, -0.061492919921875, 0.034454345703125, 0.01318359375, -0.01751708984375, 0.037933349609375, -0.0098724365234375, -0.027740478515625, -0.08148193359375, 0.07464599609375, 0.0035457611083984375, -0.0198974609375, 0.00176239013671875, -0.0085296630859375, -0.01491546630859375, -0.0089263916015625, 0.032196044921875, 0.007213592529296875, -0.0255279541015625, -0.00225830078125, 0.0223236083984375, -0.01454925537109375, -0.0711669921875, -0.01885986328125, 0.04827880859375, -0.025360107421875, -0.11346435546875, 0.0082855224609375, -0.0050048828125, 0.001194000244140625, 0.0416259765625, -0.0234222412109375, 0.054718017578125, 0.050628662109375, -0.0058441162109375, -0.0020160675048828125, 0.034149169921875, -0.04302978515625, -0.04718017578125, -0.04718017578125, 0.033203125, 0.0297088623046875, -0.0288238525390625, 0.035186767578125, 0.0019474029541015625, -0.051910400390625, 0.006053924560546875, 0.019989013671875, 0.0565185546875, -0.035675048828125, -0.0238037109375, 0.044769287109375, -0.02520751953125, -0.019775390625, -0.01393890380859375, -0.006103515625, 0.0042724609375, 0.04840087890625, -0.0237274169921875, -0.00946044921875, 0.022674560546875, -0.01354217529296875, -0.06011962890625, 0.0809326171875, -0.0015974044799804688, 0.007228851318359375, -0.00836944580078125, 0.0294189453125, -0.008941650390625, 0.01904296875, -0.0182037353515625, 0.051605224609375, 0.0123138427734375, 0.048309326171875, -0.0311431884765625, -0.0262451171875, 0.024322509765625, 0.0469970703125, 0.089111328125, 0.0233612060546875, 0.00041604042053222656, -0.032318115234375, -0.0290069580078125, -0.01177978515625, -0.06060791015625, 0.0435791015625, -0.007843017578125, 0.037200927734375, 0.037811279296875, -0.08135986328125, 0.01020050048828125, -0.0244903564453125, 0.004222869873046875, 0.007083892822265625, 0.002170562744140625, 0.00030875205993652344, -0.00782012939453125, 0.04248046875, -0.0293731689453125, -0.01131439208984375, 0.0196685791015625, -0.029998779296875, -0.0196990966796875, 0.058929443359375, 0.05621337890625, -0.0287322998046875, -0.0028839111328125, -0.04559326171875, 0.07305908203125, 0.032501220703125, 0.0202789306640625, 0.039398193359375, 0.035186767578125, -0.0156402587890625, 0.038818359375, 0.0268402099609375, 0.037017822265625, -0.0258941650390625, 0.041168212890625, 0.012664794921875, 0.0477294921875, -0.01334381103515625, 0.003887176513671875, -0.007732391357421875, 0.035552978515625, -0.017913818359375, -0.005519866943359375, 0.0190582275390625, 0.0100555419921875, 0.0019779205322265625, -0.002376556396484375, 0.042205810546875, -0.007617950439453125, -0.00412750244140625, 0.0066375732421875, -0.004817962646484375, -0.01245880126953125, 0.01708984375, 0.01221466064453125, 0.06951904296875, -0.025909423828125, -0.01142120361328125, 0.00949859619140625, -0.051239013671875, -0.006839752197265625, -0.01088714599609375, 0.02978515625, -0.0013494491577148438, 0.031829833984375, 0.0037860870361328125, -0.0010309219360351562, 0.007427215576171875, 0.01458740234375, -0.0206298828125, -0.0160675048828125, -0.01413726806640625, 0.005916595458984375, 0.02777099609375, 0.00865936279296875, 0.0224151611328125, 0.03704833984375, -0.00811004638671875, -0.07171630859375, 0.00031638145446777344, 0.042633056640625, -0.053375244140625, 0.0178985595703125, -0.0526123046875, 0.01641845703125, 0.032623291015625, 0.00006824731826782227, -0.01314544677734375, -0.02813720703125, 0.0914306640625, 0.0013256072998046875, -0.017242431640625, 0.00899505615234375, -0.0260467529296875, 0.0215606689453125, 0.00372314453125, -0.023162841796875, 0.0160980224609375, -0.0261077880859375, -0.007022857666015625, -0.0026702880859375, -0.015838623046875, 0.006107330322265625, 0.02520751953125, -0.016815185546875, 0.0226287841796875, -0.0223846435546875, 0.005340576171875, 0.0210113525390625, -0.00942230224609375, -0.0251617431640625, -0.01019287109375, 0.035736083984375, -0.03228759765625, 0.007965087890625, -0.008819580078125, -0.005550384521484375, 0.053070068359375, 0.0260467529296875, 0.071533203125, -0.032196044921875, 0.0217132568359375, -0.00655364990234375, 0.03326416015625, -0.0321044921875, -0.013153076171875, -0.004146575927734375, 0.0079498291015625, 0.015594482421875, 0.00778961181640625, -0.0665283203125, 0.055511474609375, 0.0291748046875, 0.0037384033203125, 0.091064453125, -0.01399993896484375, -0.01511383056640625, -0.055511474609375, -0.024078369140625, -0.032501220703125, -0.0194549560546875, -0.00850677490234375, -0.002384185791015625, 0.007572174072265625, -0.0199432373046875, -0.0263671875, 0.06329345703125, 0.003093719482421875, 0.03936767578125, 0.0009446144104003906, -0.0188446044921875, -0.00731658935546875, 0.0171356201171875, -0.04766845703125, 0.03155517578125, -0.01323699951171875, -0.0236968994140625, 0.005321502685546875, -0.008392333984375, -0.00007474422454833984, -0.0157318115234375, -0.00927734375, -0.050201416015625, -0.058349609375, -0.0017862319946289062, -0.0065765380859375, -0.0201416015625, -0.058929443359375, 0.01111602783203125, -0.031890869140625, -0.027587890625, -0.0071563720703125, -0.031951904296875, 0.0050506591796875, 0.042572021484375, -0.0260009765625, 0.0125732421875, -0.0209808349609375, -0.01329803466796875, 0.0101165771484375, -0.0025882720947265625, -0.048828125, 0.0239105224609375, -0.00518035888671875, 0.02471923828125, -0.033721923828125, 0.0270843505859375, -0.0251312255859375, -0.0076446533203125, -0.0230712890625, -0.045135498046875, -0.047821044921875, 0.0692138671875, -0.035858154296875, 0.036163330078125, 0.036865234375, -0.01068878173828125, -0.00567626953125, 0.05841064453125, 0.0194549560546875, 0.112060546875, -0.05035400390625, -0.0179595947265625, 0.01346588134765625, 0.0006103515625, -0.020660400390625, -0.039306640625, 0.0032138824462890625, -0.041961669921875, -0.007671356201171875, -0.008331298828125, 0.01354217529296875, 0.0216217041015625, -0.0273284912109375, -0.058013916015625, 0.036163330078125, -0.0029048919677734375, -0.031402587890625, -0.0249481201171875, -0.022125244140625, -0.0164642333984375, 0.0278167724609375, -0.00704193115234375, -0.026123046875, -0.0262298583984375, 0.037933349609375, 0.027923583984375, -0.0006608963012695312, 0.0227203369140625, 0.0007338523864746094, -0.0157318115234375, 0.0186920166015625, 0.034027099609375, 0.005084991455078125, -0.01232147216796875, 0.0013189315795898438, 0.016998291015625, 0.0303955078125, -0.01678466796875, 0.02325439453125, 0.01593017578125, 0.002666473388671875, -0.046844482421875, 0.0203704833984375, -0.00337982177734375, 0.0266876220703125, 0.060150146484375, 0.10235595703125, 0.0016832351684570312, -0.04937744140625, -0.0438232421875, -0.0533447265625, -0.00238037109375, -0.033294677734375, 0.0150604248046875, -0.064697265625, -0.0021991729736328125, 0.00470733642578125, -0.0204010009765625, 0.0046539306640625, -0.04144287109375, -0.0445556640625, 0.00847625732421875, -0.0231475830078125, -0.0093536376953125, 0.00867462158203125, 0.005870819091796875, 0.035369873046875, -0.05560302734375, -0.051849365234375, 0.004276275634765625, 0.002132415771484375, -0.031890869140625, -0.050689697265625, -0.0254974365234375, -0.037994384765625, -0.0184173583984375, 0.0577392578125, -0.0223846435546875, 0.0667724609375, -0.06707763671875, -0.027435302734375, -0.01580810546875, 0.003818511962890625, 0.0174713134765625, 0.01873779296875, 0.017822265625, -0.040618896484375, 0.00821685791015625, -0.03497314453125, -0.0081024169921875, -0.00948333740234375, -0.0284576416015625, 0.03985595703125, -0.005420684814453125, -0.018768310546875, 0.0372314453125, -0.02166748046875, 0.0007448196411132812, 0.0030384063720703125, 0.030731201171875, -0.056182861328125, 0.0546875, 0.032989501953125, 0.0252838134765625, 0.04022216796875 ]
45b52c1f0bbe5a8371d7d11406f5d2bdaafcb473
Wordpress Stackexchange Q: 4 single sites VS multisite wordpress We're currently running a multisite wordpress install for 4 sites. Running into problems with pretty much every plugin ever made (mostly issues with user account creation etc), I'd really like to switch over to 4 single installs. However, I'm wondering if the server resource usage will be significantly affected. As far as I see it, the overhead of running the multisite management on top of these blogs outweighs any losses we would see from running them separately, especially when we're only talking about 4 sites. Can anyone offer some more insight here? Thanks in advance A: You can use one installation for four (or more) singular sites without multi-site. Just point all domains to the same directory with your WordPress installation. In your wp-config.php set the necessary variables and constants depending on the currently requested host: switch ( $_SERVER['HTTP_HOST'] ) { case 'example.com': $table_prefix = 'ecom_'; $table_name = 'ecom'; break; case 'example.net': $table_prefix = 'enet_'; $table_name = 'enet'; break; default: $table_prefix = 'wp_'; $table_name = 'wp'; } You can change any constant or variable in the switch of course. To make plugin updates easier let all installations share one plugin directory.
Q: 4 single sites VS multisite wordpress We're currently running a multisite wordpress install for 4 sites. Running into problems with pretty much every plugin ever made (mostly issues with user account creation etc), I'd really like to switch over to 4 single installs. However, I'm wondering if the server resource usage will be significantly affected. As far as I see it, the overhead of running the multisite management on top of these blogs outweighs any losses we would see from running them separately, especially when we're only talking about 4 sites. Can anyone offer some more insight here? Thanks in advance A: You can use one installation for four (or more) singular sites without multi-site. Just point all domains to the same directory with your WordPress installation. In your wp-config.php set the necessary variables and constants depending on the currently requested host: switch ( $_SERVER['HTTP_HOST'] ) { case 'example.com': $table_prefix = 'ecom_'; $table_name = 'ecom'; break; case 'example.net': $table_prefix = 'enet_'; $table_name = 'enet'; break; default: $table_prefix = 'wp_'; $table_name = 'wp'; } You can change any constant or variable in the switch of course. To make plugin updates easier let all installations share one plugin directory.
wordpress
{ "language": "en", "length": 198, "provenance": "stackexchange_00019.jsonl.gz:410549", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20688" }
[ 0.04052734375, -0.0219573974609375, -0.0021648406982421875, -0.029815673828125, -0.00878143310546875, -0.0218353271484375, 0.0087127685546875, 0.003963470458984375, 0.004352569580078125, -0.0096282958984375, 0.0185089111328125, 0.0014400482177734375, -0.04656982421875, -0.057891845703125, 0.00859832763671875, -0.029998779296875, 0.0252838134765625, -0.010467529296875, -0.0218505859375, -0.0207977294921875, -0.0094757080078125, 0.004947662353515625, -0.03582763671875, 0.0687255859375, 0.023529052734375, -0.03863525390625, 0.03790283203125, -0.042938232421875, 0.01233673095703125, -0.037872314453125, 0.00905609130859375, 0.039337158203125, 0.0266876220703125, 0.0128173828125, -0.0180816650390625, 0.002552032470703125, 0.0207061767578125, -0.0107269287109375, -0.006801605224609375, 0.037200927734375, 0.0135040283203125, -0.003604888916015625, 0.078857421875, 0.02081298828125, 0.03912353515625, -0.043701171875, 0.042144775390625, -0.07012939453125, 0.01318359375, -0.046295166015625, -0.01560211181640625, -0.01453399658203125, 0.00347137451171875, -0.02593994140625, -0.02484130859375, 0.00045943260192871094, 0.0447998046875, -0.00705718994140625, 0.01525115966796875, -0.01678466796875, -0.03277587890625, 0.037353515625, 0.0210723876953125, 0.00957489013671875, 0.00006240606307983398, -0.002674102783203125, -0.005268096923828125, 0.008636474609375, -0.0217437744140625, -0.0015735626220703125, 0.031463623046875, -0.0190582275390625, 0.0009431838989257812, -0.01007843017578125, -0.0443115234375, 0.01372528076171875, 0.004047393798828125, -0.029937744140625, 0.023193359375, -0.0227813720703125, -0.03302001953125, -0.01535797119140625, -0.02142333984375, -0.06280517578125, 0.0180816650390625, -0.0136260986328125, -0.017333984375, 0.01232147216796875, -0.041961669921875, 0.01396942138671875, -0.030609130859375, -0.0262451171875, -0.0086517333984375, 0.01812744140625, -0.009368896484375, 0.002506256103515625, 0.031158447265625, 0.0098419189453125, 0.0031833648681640625, -0.0113525390625, -0.0249481201171875, -0.0209197998046875, -0.0295257568359375, 0.00927734375, -0.0002911090850830078, 0.02862548828125, 0.0201873779296875, 0.050567626953125, 0.053680419921875, 0.0224761962890625, 0.00385284423828125, 0.045562744140625, -0.0237274169921875, -0.01169586181640625, -0.0406494140625, 0.0025234222412109375, -0.04034423828125, -0.022430419921875, -0.0128631591796875, -0.0097503662109375, -0.0231170654296875, 0.02716064453125, -0.059051513671875, -0.023468017578125, -0.0292816162109375, -0.048736572265625, 0.026611328125, -0.005504608154296875, -0.10418701171875, 0.0384521484375, -0.008544921875, -0.0024929046630859375, 0.032928466796875, 0.07293701171875, -0.004688262939453125, -0.0174713134765625, 0.0014896392822265625, 0.0599365234375, -0.01171112060546875, 0.032684326171875, -0.0227508544921875, -0.07476806640625, -0.0221099853515625, -0.01519012451171875, 0.01523590087890625, 0.015106201171875, 0.041259765625, 0.0107879638671875, -0.0321044921875, 0.00331878662109375, -0.0198211669921875, 0.032684326171875, 0.0285797119140625, -0.0158538818359375, -0.0246124267578125, -0.03607177734375, -0.01861572265625, -0.01050567626953125, -0.0032501220703125, -0.016754150390625, -0.00019407272338867188, -0.006244659423828125, 0.0165252685546875, -0.006591796875, -0.0152587890625, 0.01486968994140625, -0.0236968994140625, -0.00371551513671875, 0.01049041748046875, -0.021697998046875, -0.048675537109375, -0.01001739501953125, 0.061370849609375, 0.0192718505859375, -0.00018799304962158203, 0.052490234375, -0.0193634033203125, -0.01042938232421875, 0.0455322265625, -0.0017681121826171875, -0.026519775390625, -0.025115966796875, 0.049468994140625, -0.01355743408203125, -0.0576171875, 0.024139404296875, -0.01442718505859375, 0.029510498046875, 0.034576416015625, -0.0033779144287109375, 0.02301025390625, -0.0122528076171875, 0.0015478134155273438, 0.0205230712890625, 0.0204315185546875, -0.0057830810546875, -0.00699615478515625, 0.0279388427734375, -0.00010186433792114258, -0.08673095703125, -0.0016908645629882812, -0.0259857177734375, 0.0452880859375, 0.00870513916015625, 0.0304107666015625, -0.01001739501953125, -0.0014657974243164062, -0.0019130706787109375, 0.00823211669921875, 0.0081024169921875, 0.003765106201171875, 0.0099029541015625, 0.00003635883331298828, -0.048614501953125, -0.035797119140625, 0.0280914306640625, -0.01422119140625, 0.0699462890625, 0.029693603515625, 0.02960205078125, 0.04241943359375, -0.03424072265625, 0.045166015625, -0.0153045654296875, 0.04345703125, -0.034942626953125, -0.0023708343505859375, -0.03143310546875, 0.0234527587890625, -0.00432586669921875, -0.0249176025390625, 0.04083251953125, 0.00687408447265625, 0.03125, 0.01143646240234375, 0.01311492919921875, 0.0611572265625, -0.051239013671875, 0.0215606689453125, 0.01509857177734375, 0.043426513671875, -0.01540374755859375, -0.03265380859375, -0.043243408203125, -0.0262298583984375, -0.09271240234375, 0.00853729248046875, -0.0249481201171875, 0.006824493408203125, 0.0577392578125, -0.0248870849609375, 0.0184783935546875, 0.01131439208984375, -0.036590576171875, -0.01007843017578125, 0.036529541015625, -0.0012197494506835938, -0.0261077880859375, 0.01277923583984375, -0.0219879150390625, 0.01248931884765625, -0.00469970703125, -0.035247802734375, 0.01242828369140625, -0.0030612945556640625, 0.006244659423828125, 0.0108184814453125, 0.004261016845703125, -0.01467132568359375, 0.01568603515625, 0.01253509521484375, -0.0457763671875, -0.0031566619873046875, -0.0038471221923828125, -0.00029778480529785156, -0.007785797119140625, -0.041259765625, 0.0154571533203125, 0.004299163818359375, -0.0294189453125, -0.02935791015625, -0.00652313232421875, -0.05718994140625, -0.0135040283203125, -0.0119476318359375, -0.0235137939453125, 0.006011962890625, 0.0060577392578125, -0.039276123046875, -0.06475830078125, -0.0012226104736328125, -0.03363037109375, -0.07281494140625, 0.01898193359375, 0.011566162109375, -0.06591796875, 0.06396484375, -0.046295166015625, 0.02301025390625, -0.035614013671875, 0.060791015625, 0.05047607421875, 0.00585174560546875, -0.0274200439453125, -0.006656646728515625, 0.034912109375, -0.00902557373046875, -0.0133209228515625, -0.033538818359375, 0.0146942138671875, -0.07073974609375, 0.0007224082946777344, 0.0084075927734375, 0.022430419921875, -0.0166778564453125, -0.047515869140625, -0.0187530517578125, 0.01139068603515625, -0.064208984375, -0.03338623046875, -0.0275115966796875, -0.03887939453125, 0.0287628173828125, -0.0159454345703125, -0.001262664794921875, -0.02423095703125, -0.006893157958984375, 0.01549530029296875, -0.00699615478515625, -0.0013942718505859375, -0.05865478515625, -0.05242919921875, -0.09027099609375, -0.0117340087890625, -0.0068511962890625, 0.03802490234375, 0.0005726814270019531, 0.0270843505859375, 0.0001710653305053711, -0.0305023193359375, -0.01190948486328125, 0.032379150390625, -0.025390625, -0.0537109375, 0.02337646484375, -0.037139892578125, 0.0085296630859375, 0.00811004638671875, -0.0025177001953125, 0.04315185546875, -0.0225067138671875, -0.023529052734375, 0.028106689453125, -0.0015735626220703125, 0.048736572265625, -0.0548095703125, -0.05401611328125, 0.02996826171875, 0.0034542083740234375, -0.040679931640625, -0.00531005859375, -0.0140380859375, -0.03424072265625, -0.005695343017578125, 0.0302734375, -0.022857666015625, -0.0216827392578125, -0.0035800933837890625, -0.0023899078369140625, -0.0174102783203125, 0.003448486328125, -0.032806396484375, 0.037200927734375, -0.007144927978515625, 0.0077972412109375, -0.023956298828125, -0.01122283935546875, -0.05517578125, -0.01983642578125, -0.024871826171875, -0.039703369140625, -0.031585693359375, -0.024200439453125, -0.02203369140625, -0.0394287109375, 0.037200927734375, -0.040130615234375, 0.0007014274597167969, -0.040191650390625, -0.0218048095703125, -0.0220947265625, 0.08013916015625, -0.06488037109375, -0.00179290771484375, 0.0084228515625, 0.02447509765625, -0.020660400390625, -0.0577392578125, -0.045135498046875, -0.02227783203125, -0.036041259765625, -0.0196990966796875, -0.0137176513671875, -0.0276641845703125, 0.024078369140625, -0.001708984375, 0.004611968994140625, -0.0330810546875, 0.030609130859375, -0.03778076171875, 0.0265960693359375, -0.025482177734375, 0.0265960693359375, -0.05859375, -0.0003437995910644531, -0.03948974609375, -0.05413818359375, -0.0249176025390625, 0.01453399658203125, 0.056915283203125, -0.004009246826171875, 0.0015153884887695312, -0.0235595703125, 0.048065185546875, -0.03851318359375, 0.021942138671875, -0.02587890625, 0.0263519287109375, -0.0184783935546875, -0.0005779266357421875, -0.00543975830078125, -0.01482391357421875, -0.01479339599609375, -0.051666259765625, -0.039459228515625, -0.0277099609375, -0.00782012939453125, 0.0183563232421875, 0.0037479400634765625, -0.01837158203125, -0.0462646484375, -0.01202392578125, -0.017486572265625, -0.01425933837890625, -0.0151214599609375, -0.0223541259765625, -0.00844573974609375, -0.0310821533203125, 0.037628173828125, -0.0201416015625, -0.00992584228515625, 0.0151824951171875, 0.045623779296875, 0.007274627685546875, -0.0222930908203125, -0.061126708984375, 0.0086517333984375, 0.023590087890625, 0.0271148681640625, 0.0243988037109375, 0.011566162109375, -0.00470733642578125, 0.0186920166015625, 0.00800323486328125, 0.0174102783203125, 0.00632476806640625, -0.0231170654296875, 0.0162353515625, -0.03857421875, 0.01389312744140625, 0.0233001708984375, -0.00843048095703125, 0.061065673828125, 0.00443267822265625, -0.029876708984375, -0.0401611328125, 0.02606201171875, 0.02813720703125, -0.044952392578125, -0.061370849609375, -0.03619384765625, 0.001499176025390625, -0.024688720703125, 0.0174407958984375, 0.03814697265625, -0.0147705078125, 0.040435791015625, 0.025177001953125, -0.0152740478515625, 0.0498046875, 0.05682373046875, 0.0269927978515625, 0.012969970703125, 0.065673828125, -0.02008056640625, -0.035888671875, -0.003902435302734375, 0.046539306640625, 0.0049896240234375, -0.049468994140625, -0.0011348724365234375, 0.0096435546875, 0.0285797119140625, -0.0008287429809570312, -0.01236724853515625, 0.05340576171875, -0.004550933837890625, -0.047637939453125, -0.020416259765625, -0.05938720703125, -0.02056884765625, -0.07415771484375, -0.02838134765625, -0.0195770263671875, -0.01910400390625, 0.034149169921875, -0.010162353515625, -0.0284271240234375, 0.01415252685546875, -0.00951385498046875, 0.0218963623046875, 0.076171875, -0.007633209228515625, 0.0032596588134765625, 0.002288818359375, -0.0218048095703125, 0.0007786750793457031, 0.0242767333984375, -0.026947021484375, -0.003208160400390625, 0.031768798828125, 0.037384033203125, 0.020843505859375, -0.0115814208984375, -0.00527191162109375, -0.019195556640625, -0.01666259765625, 0.06939697265625, -0.0159759521484375, -0.0892333984375, -0.027008056640625, 0.029632568359375, 0.0677490234375, -0.052093505859375, 0.007598876953125, -0.038970947265625, 0.0142669677734375, 0.005840301513671875, -0.04400634765625, -0.030487060546875, 0.027313232421875, 0.0452880859375, 0.00811004638671875, 0.01288604736328125, -0.0025043487548828125, -0.04248046875, -0.034912109375, 0.003955841064453125, -0.01087188720703125, 0.0167999267578125, -0.0203704833984375, 0.0205841064453125, -0.0136871337890625, -0.011444091796875, -0.006687164306640625, 0.019195556640625, 0.0263671875, 0.0081329345703125, -0.064453125, 0.0285186767578125, -0.0253143310546875, -0.0216827392578125, 0.0160064697265625, -0.01419830322265625, -0.05328369140625, -0.0299835205078125, 0.01497650146484375, 0.000972747802734375, 0.009002685546875, -0.018646240234375, -0.00951385498046875, -0.00066375732421875, -0.000032782554626464844, -0.03509521484375, 0.003940582275390625, -0.0027141571044921875, 0.0355224609375, -0.0006771087646484375, 0.040496826171875, 0.034820556640625, 0.031341552734375, -0.04534912109375, 0.0230255126953125, -0.0667724609375, -0.0244140625, -0.0208740234375, -0.01458740234375, 0.01013946533203125, -0.006195068359375, -0.0031337738037109375, 0.00431060791015625, 0.0008702278137207031, 0.0028533935546875, -0.02960205078125, -0.01293182373046875, 0.0006117820739746094, 0.026458740234375, -0.01358795166015625, -0.016082763671875, 0.024688720703125, -0.01314544677734375, -0.0213165283203125, 0.0262603759765625, -0.016326904296875, 0.0165557861328125, 0.045379638671875, -0.0638427734375, 0.061920166015625, 0.06884765625, -0.006855010986328125, 0.041534423828125, -0.006439208984375, -0.00485992431640625, 0.033721923828125, -0.0391845703125, -0.0145263671875, 0.0174407958984375, 0.01538848876953125, -0.01512908935546875, -0.00991058349609375, 0.0153350830078125, -0.0162353515625, 0.0243072509765625, 0.04107666015625, 0.0367431640625, -0.0687255859375, 0.021636962890625, 0.0028667449951171875, -0.02569580078125, -0.0012521743774414062, 0.006866455078125, -0.0005435943603515625, 0.006015777587890625, -0.01560211181640625, 0.01262664794921875, -0.023681640625, -0.0015268325805664062, 0.01398468017578125, -0.00937652587890625, -0.01181793212890625, 0.01091766357421875, 0.014617919921875, -0.01800537109375, 0.0126495361328125, -0.0061187744140625, 0.00969696044921875, 0.00916290283203125, -0.01314544677734375, 0.03497314453125, -0.058197021484375, -0.06658935546875, -0.00360870361328125, -0.018646240234375, -0.046905517578125, -0.0005269050598144531, -0.0019359588623046875, 0.006420135498046875, 0.047454833984375, -0.0184326171875, -0.00701904296875, 0.0225067138671875, 0.006191253662109375, -0.03936767578125, -0.01215362548828125, 0.0189056396484375, 0.0121307373046875, -0.04974365234375, 0.0288848876953125, -0.05389404296875, -0.007015228271484375, -0.006938934326171875, 0.005008697509765625, 0.051788330078125, 0.0062255859375, -0.0238037109375, 0.037628173828125, 0.0200653076171875, -0.01323699951171875, 0.00041937828063964844, 0.001399993896484375, -0.0821533203125, -0.12152099609375, -0.0012722015380859375, -0.1263427734375, 0.0092315673828125, -0.022979736328125, -0.057830810546875, 0.126953125, -0.038482666015625, 0.04833984375, 0.03125, 0.0430908203125, -0.006275177001953125, 0.024932861328125, -0.00681304931640625, 0.0195159912109375, -0.02899169921875, 0.0080108642578125, -0.006664276123046875, 0.0234222412109375, -0.004795074462890625, 0.0034770965576171875, 0.047393798828125, 0.0203399658203125, -0.058807373046875, 0.0037212371826171875, 0.01861572265625, -0.0044708251953125, -0.0216217041015625, 0.06866455078125, -0.00011628866195678711, 0.03228759765625, 0.01409149169921875, -0.004058837890625, 0.040985107421875, -0.004543304443359375, -0.035980224609375, 0.024200439453125, 0.0024871826171875, -0.007633209228515625, -0.0240631103515625, 0.0293731689453125, -0.0216827392578125, -0.0092315673828125, 0.0015192031860351562, 0.03302001953125, 0.021484375, -0.00493621826171875, -0.02532958984375, 0.0309906005859375, 0.0748291015625, -0.0197296142578125, 0.037811279296875, -0.034515380859375, -0.01473236083984375, 0.0118408203125, 0.0164794921875, 0.007080078125, 0.009490966796875, -0.017669677734375, 0.032379150390625, 0.00278472900390625, 0.020782470703125, 0.039581298828125, 0.042083740234375, 0.0012073516845703125, 0.002513885498046875, 0.0240936279296875, 0.032806396484375, -0.01904296875, -0.049041748046875, 0.0025730133056640625, 0.0005106925964355469, -0.0030651092529296875, 0.0115203857421875, -0.0021648406982421875, -0.0126495361328125, 0.0211944580078125, -0.02703857421875, -0.004009246826171875, 0.0130462646484375, -0.0194854736328125, 0.005218505859375, 0.014556884765625, 0.01358795166015625, 0.0013761520385742188, -0.0350341796875, 0.0179595947265625, 0.01250457763671875, 0.04632568359375, 0.01108551025390625, 0.07366943359375, -0.01142120361328125, -0.0232086181640625, -0.03076171875, 0.0582275390625, -0.0047454833984375, 0.0215301513671875, -0.052215576171875, -0.05230712890625, 0.0032596588134765625, 0.047607421875, 0.055389404296875, 0.027587890625, 0.056304931640625, 0.058135986328125, 0.00009882450103759766, 0.00867462158203125, 0.049072265625, 0.00572967529296875, 0.0343017578125, -0.021453857421875, 0.0111541748046875, -0.023681640625, -0.0352783203125, -0.0196075439453125, 0.02783203125, 0.0044097900390625, -0.01386260986328125, 0.02862548828125, 0.013031005859375, -0.01953125, 0.0032901763916015625, 0.0278472900390625, 0.028289794921875, 0.0291748046875, -0.042694091796875, -0.012969970703125, -0.00322723388671875, 0.0033817291259765625, -0.002346038818359375, 0.03826904296875, 0.0092620849609375, 0.01436614990234375, -0.040191650390625, 0.0054168701171875, -0.0037364959716796875, -0.0013227462768554688, -0.01177978515625, 0.039276123046875, 0.04571533203125, 0.004383087158203125, -0.024658203125, -0.0222930908203125, -0.01549530029296875, 0.0660400390625, 0.0023708343505859375, 0.09197998046875, -0.052459716796875, 0.0254974365234375, 0.053466796875, -0.004161834716796875, 0.03509521484375, 0.0307464599609375, -0.015228271484375, -0.0261383056640625, 0.032928466796875, -0.01493072509765625, -0.00730133056640625, 0.0266876220703125, 0.0192413330078125, -0.0460205078125, 0.0006518363952636719, 0.00603485107421875, 0.0095672607421875, -0.0004684925079345703, 0.05743408203125, -0.016357421875, -0.057830810546875, -0.06927490234375, 0.0003292560577392578, 0.03399658203125, 0.038177490234375, -0.0281982421875, 0.020721435546875, 0.048095703125, 0.01059722900390625, -0.0035343170166015625, 0.0350341796875, -0.006153106689453125, 0.04351806640625, 0.0180206298828125, -0.06024169921875, 0.0272979736328125, -0.01381683349609375, -0.0278167724609375, 0.0228729248046875, 0.07061767578125, -0.0079345703125, -0.01995849609375, 0.0311737060546875, 0.04718017578125, 0.03814697265625, -0.0202178955078125, 0.0186920166015625, 0.06439208984375, -0.003997802734375, -0.0280609130859375, -0.004302978515625, -0.0197601318359375, -0.03302001953125, -0.013092041015625, -0.005496978759765625, -0.0174713134765625, -0.03863525390625, -0.01849365234375, -0.0134429931640625, 0.052642822265625, -0.011016845703125, -0.03363037109375, 0.0239105224609375, -0.055023193359375, 0.017822265625, -0.01248931884765625, -0.033660888671875, -0.009307861328125, 0.0028018951416015625, -0.02679443359375, -0.032928466796875, -0.059783935546875, 0.00786590576171875, -0.044219970703125, -0.00804901123046875, 0.00803375244140625, -0.00499725341796875, -0.01035308837890625, -0.00789642333984375, -0.0251922607421875, 0.03900146484375, -0.0007777214050292969, -0.0087738037109375, 0.0006399154663085938, -0.021759033203125, -0.016265869140625, -0.07476806640625, 0.0265960693359375, -0.11004638671875, -0.037689208984375, -0.0192108154296875, -0.003940582275390625, -0.00414276123046875, -0.044769287109375, -0.060455322265625, 0.0765380859375, -0.0175323486328125, -0.0189666748046875, -0.06671142578125, -0.041839599609375, -0.0174560546875, 0.08306884765625, -0.019378662109375, -0.0176239013671875, -0.048309326171875, 0.06768798828125, -0.0011386871337890625, 0.006351470947265625, -0.01136016845703125, 0.005245208740234375, -0.029388427734375, 0.0093536376953125, 0.013336181640625, -0.032073974609375, 0.01511383056640625, -0.0155029296875, 0.04449462890625, 0.06024169921875, -0.00389862060546875, 0.0205841064453125, 0.02105712890625, -0.06292724609375, -0.0162353515625, -0.032989501953125, -0.04119873046875, -0.0174560546875, 0.07623291015625, 0.07818603515625, 0.03021240234375, -0.051971435546875, 0.0027141571044921875, -0.04730224609375, -0.019134521484375, -0.0027313232421875, 0.014984130859375, -0.0740966796875, -0.00913238525390625, 0.046112060546875, -0.0228729248046875, 0.0014467239379882812, 0.0162811279296875, -0.0355224609375, 0.0111236572265625, 0.01983642578125, 0.00301361083984375, -0.041717529296875, 0.0181732177734375, 0.0150146484375, -0.00811004638671875, 0.007236480712890625, -0.0095367431640625, -0.006038665771484375, -0.00133514404296875, 0.0107269287109375, 0.0051116943359375, 0.00583648681640625, -0.036712646484375, 0.00299072265625, 0.009368896484375, 0.055938720703125, -0.0177154541015625, -0.031219482421875, -0.005115509033203125, 0.011993408203125, 0.005275726318359375, 0.007061004638671875, -0.00994873046875, -0.0271453857421875, -0.007965087890625, 0.0185546875, -0.0011186599731445312, -0.004627227783203125, -0.00811767578125, 0.01212310791015625, -0.0272216796875, -0.003337860107421875, -0.0014276504516601562, -0.036773681640625, -0.002246856689453125, 0.0150299072265625, 0.020111083984375, -0.0279083251953125, 0.02337646484375, -0.030609130859375, 0.0267333984375, 0.0173492431640625 ]
3e69bd3e24055a1bbc7973826b9b2774176785e3
Wordpress Stackexchange Q: Easiest way to make post private by default I don't know how to make a plugin so I can't do what's suggested here How can I make it so the Add New Post page has Visibility set to Private by default? so what's alternative ? A: Found this on WordPress forums: You can just add this to functions.php. I've tested once and seemed to work fine. function default_post_visibility(){ global $post; if ( 'publish' == $post->post_status ) { $visibility = 'public'; $visibility_trans = __('Public'); } elseif ( !empty( $post->post_password ) ) { $visibility = 'password'; $visibility_trans = __('Password protected'); } elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { $visibility = 'public'; $visibility_trans = __('Public, Sticky'); } else { $post->post_password = ''; $visibility = 'private'; $visibility_trans = __('Private'); } ?> <script type="text/javascript"> (function($){ try { $('#post-visibility-display').text('<?php echo $visibility_trans; ?>'); $('#hidden-post-visibility').val('<?php echo $visibility; ?>'); $('#visibility-radio-<?php echo $visibility; ?>').attr('checked', true); } catch(err){} }) (jQuery); </script> <?php } add_action( 'post_submitbox_misc_actions' , 'default_post_visibility' );
Q: Easiest way to make post private by default I don't know how to make a plugin so I can't do what's suggested here How can I make it so the Add New Post page has Visibility set to Private by default? so what's alternative ? A: Found this on WordPress forums: You can just add this to functions.php. I've tested once and seemed to work fine. function default_post_visibility(){ global $post; if ( 'publish' == $post->post_status ) { $visibility = 'public'; $visibility_trans = __('Public'); } elseif ( !empty( $post->post_password ) ) { $visibility = 'password'; $visibility_trans = __('Password protected'); } elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { $visibility = 'public'; $visibility_trans = __('Public, Sticky'); } else { $post->post_password = ''; $visibility = 'private'; $visibility_trans = __('Private'); } ?> <script type="text/javascript"> (function($){ try { $('#post-visibility-display').text('<?php echo $visibility_trans; ?>'); $('#hidden-post-visibility').val('<?php echo $visibility; ?>'); $('#visibility-radio-<?php echo $visibility; ?>').attr('checked', true); } catch(err){} }) (jQuery); </script> <?php } add_action( 'post_submitbox_misc_actions' , 'default_post_visibility' ); A: Accepted solution is not the correct answer to change the visibility of any post type to any status. Below code is the right way to change the post status. function set_post_type_status_private( $status, $post_id ) { $status = 'private'; return $status; } add_filter( 'status_edit_pre', 'set_post_type_status_private', 10, 2 ); Updated: The above filter will change the post status to Private when user will hit Save Draft or Publish button. So on edit page load if you see Status Public then don't worry. There is one more filter available to change the status before saving into database. The filter is status_save_pre but I didn't find any documentation on this page so I wrote below code to test it. function save_post_type_status_private( $status ) { $status = 'private'; return $status; } add_filter( 'status_save_pre', 'save_post_type_status_private', 10, 1 ); The above filter saves the post as Private post type as soon as edit page load so one may want to use this filter over status_edit_pre but if I use status_save_pre filter I run into an issue, I can't delete any post. So I prefer 'status_edit_pre' over 'status_save_pre' until WordPress team fix this bug. A: The alternative would be to find someone else to make a plugin. If you're using WordPress.com (meaning you can't install arbitrary plugins on your site), then you're out of luck. But for a self-hosted WordPress installation, you'll need to write a plugin and install it on your site. There are no alternatives when it comes to adding custom functionality. A: The accepted answer doesn't work for me. Here's a simple solution. It will only run the first time you publish any post. function tse_make_post_private( $new_status, $old_status, $post ) { // check if is published and the post type is "post" if ( 'publish' === $new_status && $post->post_type === 'post' ) { // check if the post status is not private if ( $post->post_status != 'private' ) { // change the post status to private $post->post_status = 'private'; // update the post wp_update_post( $post ); } } } add_action('transition_post_status', 'tse_make_post_private', 10, 3);
wordpress
{ "language": "en", "length": 501, "provenance": "stackexchange_00019.jsonl.gz:410566", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20729" }
[ 0.06622314453125, -0.01490020751953125, 0.01213836669921875, -0.0408935546875, 0.0159759521484375, -0.0244293212890625, 0.035369873046875, -0.0234832763671875, 0.002899169921875, -0.00803375244140625, -0.041900634765625, -0.00910186767578125, -0.06390380859375, -0.02288818359375, -0.013275146484375, -0.06011962890625, 0.0184478759765625, 0.0232696533203125, 0.06982421875, -0.00983428955078125, 0.017242431640625, -0.01464080810546875, 0.0849609375, -0.0012350082397460938, 0.031158447265625, 0.020355224609375, 0.07257080078125, -0.041748046875, 0.03912353515625, -0.01561737060546875, 0.026580810546875, -0.03857421875, 0.0003731250762939453, 0.0198211669921875, 0.00554656982421875, -0.00841522216796875, -0.0242156982421875, 0.02783203125, 0.0232696533203125, -0.003017425537109375, 0.0275115966796875, -0.007568359375, -0.01432037353515625, 0.0106201171875, -0.033233642578125, -0.030029296875, 0.0318603515625, -0.0019512176513671875, 0.0242156982421875, -0.00846099853515625, 0.01313018798828125, 0.042236328125, 0.01512908935546875, -0.0194549560546875, 0.0016613006591796875, 0.0162506103515625, 0.01300048828125, -0.003932952880859375, 0.049468994140625, 0.007808685302734375, -0.0511474609375, -0.036529541015625, 0.0261688232421875, -0.06402587890625, 0.00440216064453125, -0.01153564453125, -0.02294921875, 0.015472412109375, -0.055419921875, 0.02471923828125, 0.05670166015625, -0.050567626953125, -0.00026798248291015625, -0.005908966064453125, -0.01248931884765625, 0.00746917724609375, 0.0161895751953125, 0.005573272705078125, 0.00894927978515625, 0.0037174224853515625, 0.019989013671875, 0.007602691650390625, 0.020782470703125, 0.0030994415283203125, -0.003902435302734375, 0.0232391357421875, -0.01239776611328125, -0.0278167724609375, -0.0228424072265625, 0.0043182373046875, -0.0193023681640625, 0.00675201416015625, -0.00936126708984375, 0.0164031982421875, -0.0260772705078125, -0.01348114013671875, 0.0161895751953125, 0.0325927734375, -0.0243682861328125, -0.00336456298828125, 0.00560760498046875, -0.037933349609375, 0.0177001953125, -0.0233612060546875, -0.01178741455078125, 0.03082275390625, -0.0006213188171386719, -0.00360870361328125, 0.0025653839111328125, 0.0301361083984375, 0.00431060791015625, -0.03363037109375, -0.006656646728515625, 0.034912109375, -0.0225677490234375, -0.00559234619140625, -0.041168212890625, 0.01264190673828125, -0.045989990234375, 0.0445556640625, -0.00072479248046875, 0.00849151611328125, -0.031280517578125, -0.0284881591796875, 0.0202484130859375, -0.02044677734375, -0.037353515625, 0.021148681640625, 0.0015430450439453125, -0.00737762451171875, -0.04254150390625, 0.0309906005859375, 0.11737060546875, 0.0124359130859375, 0.01025390625, -0.0157928466796875, -0.0095977783203125, -0.025360107421875, 0.004657745361328125, 0.0138092041015625, -0.006916046142578125, -0.036102294921875, 0.036834716796875, -0.001781463623046875, -0.0260772705078125, 0.04327392578125, 0.033660888671875, -0.01141357421875, -0.048736572265625, -0.06622314453125, -0.0089263916015625, -0.022308349609375, 0.0122833251953125, 0.0219268798828125, -0.0005903244018554688, 0.032684326171875, 0.056732177734375, -0.0137786865234375, -0.04339599609375, -0.0382080078125, 0.056121826171875, 0.0219573974609375, -0.0021190643310546875, 0.0306243896484375, 0.0089874267578125, -0.034576416015625, -0.0222625732421875, -0.00577545166015625, 0.0201873779296875, 0.01934814453125, 0.01013946533203125, -0.029296875, -0.020294189453125, -0.004993438720703125, -0.00977325439453125, 0.015899658203125, -0.0090484619140625, 0.004009246826171875, 0.054901123046875, -0.037139892578125, -0.033660888671875, -0.03546142578125, 0.06549072265625, -0.0014801025390625, -0.042144775390625, 0.058074951171875, 0.00966644287109375, 0.0279541015625, -0.006988525390625, 0.01160430908203125, 0.05657958984375, 0.04766845703125, -0.017669677734375, 0.0042572021484375, 0.004642486572265625, -0.0171051025390625, -0.01367950439453125, 0.007663726806640625, -0.01336669921875, 0.00701141357421875, -0.0123291015625, 0.00864410400390625, -0.01270294189453125, 0.0302734375, -0.0038814544677734375, -0.00966644287109375, -0.00782012939453125, 0.00366973876953125, -0.046142578125, -0.0396728515625, 0.0252227783203125, -0.039825439453125, 0.0037021636962890625, -0.0245208740234375, -0.031402587890625, -0.0008111000061035156, -0.0352783203125, 0.04119873046875, -0.00984954833984375, 0.06378173828125, -0.0125732421875, -0.050048828125, -0.00882720947265625, -0.0158233642578125, 0.0750732421875, -0.014007568359375, -0.0038433074951171875, -0.0289764404296875, 0.056915283203125, -0.0209503173828125, 0.004459381103515625, 0.03369140625, -0.0070953369140625, -0.01666259765625, -0.034210205078125, -0.0004172325134277344, -0.01522064208984375, -0.058929443359375, 0.0084381103515625, 0.05364990234375, 0.02313232421875, 0.027069091796875, -0.0280914306640625, 0.0112152099609375, 0.05194091796875, -0.031494140625, -0.00795745849609375, 0.009857177734375, 0.00665283203125, -0.0180511474609375, -0.0263671875, -0.01226806640625, 0.05908203125, -0.0281219482421875, 0.0251007080078125, 0.037811279296875, -0.0040435791015625, 0.021270751953125, -0.0266265869140625, -0.0207672119140625, 0.006561279296875, -0.03790283203125, -0.00677490234375, -0.0119476318359375, 0.044281005859375, -0.03070068359375, 0.0277099609375, 0.01116943359375, -0.00749969482421875, -0.00679779052734375, -0.0004334449768066406, -0.05181884765625, -0.0094146728515625, 0.026031494140625, 0.042755126953125, -0.005382537841796875, -0.029571533203125, -0.021026611328125, 0.022857666015625, 0.0153961181640625, -0.00696563720703125, 0.0255584716796875, -0.04718017578125, -0.0119171142578125, 0.00920867919921875, -0.0111541748046875, -0.0177154541015625, 0.0012531280517578125, -0.00262451171875, -0.0235595703125, 0.005584716796875, 0.02093505859375, -0.038909912109375, 0.0628662109375, 0.024749755859375, -0.03656005859375, -0.02490234375, -0.10198974609375, 0.0643310546875, -0.0789794921875, 0.064697265625, 0.0794677734375, 0.0001621246337890625, 0.037933349609375, 0.0003380775451660156, 0.032196044921875, -0.0014944076538085938, 0.005832672119140625, -0.021942138671875, -0.0135650634765625, -0.03436279296875, 0.003231048583984375, -0.00905609130859375, -0.01383209228515625, -0.020965576171875, -0.057891845703125, -0.0172271728515625, -0.0167999267578125, -0.0595703125, 0.0333251953125, -0.043609619140625, -0.1075439453125, -0.00374603271484375, -0.00955963134765625, -0.055206298828125, 0.0164031982421875, 0.0234527587890625, 0.0143585205078125, -0.06378173828125, -0.005359649658203125, -0.027099609375, -0.042724609375, -0.0286712646484375, 0.03790283203125, 0.00307464599609375, 0.0213775634765625, 0.0035419464111328125, 0.07025146484375, 0.027069091796875, -0.024200439453125, 0.01073455810546875, -0.037322998046875, -0.0301666259765625, 0.012847900390625, -0.005466461181640625, -0.02178955078125, -0.015869140625, 0.0002567768096923828, -0.037506103515625, -0.0092926025390625, 0.01477813720703125, -0.0113983154296875, -0.0220184326171875, -0.04156494140625, -0.0008134841918945312, 0.056610107421875, 0.0009436607360839844, -0.038543701171875, 0.0221099853515625, -0.05633544921875, 0.0030841827392578125, -0.016326904296875, -0.0477294921875, -0.0523681640625, 0.0231475830078125, -0.0076751708984375, -0.0265045166015625, -0.0243377685546875, 0.00878143310546875, 0.0026988983154296875, 0.033447265625, -0.01515960693359375, -0.03607177734375, -0.004180908203125, -0.0101318359375, -0.012298583984375, -0.01062774658203125, -0.0256805419921875, -0.0004267692565917969, -0.0216827392578125, 0.005611419677734375, 0.006259918212890625, -0.002994537353515625, -0.0005884170532226562, -0.045166015625, 0.01497650146484375, -0.0210418701171875, 0.007221221923828125, -0.0254058837890625, -0.0023212432861328125, -0.0237274169921875, 0.033172607421875, -0.03314208984375, -0.0007100105285644531, 0.01203155517578125, 0.00853729248046875, -0.0285491943359375, -0.031097412109375, -0.059906005859375, -0.00848388671875, -0.09423828125, 0.03265380859375, 0.0173187255859375, -0.044921875, -0.0193328857421875, -0.049346923828125, -0.078369140625, -0.03485107421875, 0.031219482421875, -0.0049896240234375, 0.03485107421875, 0.0052642822265625, 0.034027099609375, -0.01108551025390625, -0.0019025802612304688, -0.031768798828125, -0.069091796875, -0.0134735107421875, -0.007808685302734375, 0.048583984375, 0.0088653564453125, 0.007415771484375, -0.01386260986328125, 0.037445068359375, 0.0019588470458984375, 0.040802001953125, -0.021636962890625, -0.01059722900390625, -0.0068359375, 0.00250244140625, 0.013519287109375, -0.0038661956787109375, 0.02655029296875, 0.01061248779296875, -0.0640869140625, -0.04364013671875, -0.040924072265625, -0.0258941650390625, 0.026641845703125, -0.06414794921875, -0.0305633544921875, -0.041046142578125, -0.004791259765625, 0.01104736328125, -0.031219482421875, -0.0014524459838867188, -0.03924560546875, -0.0249481201171875, 0.0036468505859375, -0.0224456787109375, -0.0247650146484375, 0.0099029541015625, 0.027099609375, 0.0224609375, 0.00463104248046875, -0.0290069580078125, -0.0033111572265625, 0.0169219970703125, 0.0462646484375, 0.024505615234375, 0.0164794921875, 0.0029659271240234375, 0.0223236083984375, 0.01178741455078125, 0.0010633468627929688, -0.0406494140625, 0.0709228515625, -0.01971435546875, -0.046356201171875, 0.0472412109375, -0.03582763671875, 0.0201873779296875, -0.00640106201171875, -0.0205230712890625, 0.026611328125, -0.0243988037109375, 0.010162353515625, -0.0108489990234375, 0.0258636474609375, -0.0282745361328125, 0.0187530517578125, -0.013458251953125, -0.0251617431640625, 0.06585693359375, 0.038970947265625, 0.0011081695556640625, -0.0035686492919921875, 0.0224609375, -0.016387939453125, -0.0206146240234375, 0.0217437744140625, 0.0024623870849609375, -0.010467529296875, 0.045074462890625, -0.0302581787109375, -0.041748046875, -0.006587982177734375, 0.0179595947265625, 0.0026721954345703125, -0.059600830078125, -0.01068878173828125, -0.0011281967163085938, 0.0704345703125, -0.0086517333984375, 0.014678955078125, 0.03192138671875, 0.01654052734375, -0.019317626953125, -0.0022716522216796875, 0.02447509765625, -0.0018768310546875, -0.0282745361328125, 0.023834228515625, 0.007503509521484375, 0.019439697265625, 0.01334381103515625, 0.06878662109375, 0.0207061767578125, 0.03411865234375, -0.036285400390625, 0.032745361328125, 0.006000518798828125, 0.01343536376953125, -0.003383636474609375, 0.0181121826171875, 0.01153564453125, -0.0173187255859375, 0.021026611328125, -0.0278167724609375, -0.0230865478515625, 0.0300140380859375, 0.00862884521484375, -0.02392578125, -0.007785797119140625, 0.03521728515625, 0.01922607421875, -0.03887939453125, 0.0033321380615234375, 0.033538818359375, -0.018096923828125, -0.01114654541015625, 0.0166015625, 0.02001953125, 0.026397705078125, 0.018280029296875, -0.017303466796875, -0.0196990966796875, 0.01468658447265625, -0.0289764404296875, 0.0018320083618164062, -0.01849365234375, -0.012969970703125, -0.01290130615234375, -0.0190277099609375, -0.010009765625, -0.00919342041015625, 0.0087738037109375, -0.0180206298828125, -0.0115203857421875, 0.0221405029296875, -0.0010738372802734375, 0.025634765625, 0.0008463859558105469, -0.0433349609375, 0.05548095703125, 0.00638580322265625, 0.0244293212890625, -0.01216888427734375, 0.04400634765625, -0.0268707275390625, -0.0221405029296875, -0.0460205078125, 0.018218994140625, 0.00844573974609375, -0.01335906982421875, -0.001811981201171875, 0.0301361083984375, 0.005168914794921875, -0.0127105712890625, -0.065185546875, -0.03338623046875, 0.0221099853515625, 0.0570068359375, 0.02764892578125, -0.0027751922607421875, 0.0660400390625, -0.0190582275390625, 0.0201568603515625, 0.00787353515625, 0.042633056640625, -0.013946533203125, -0.0162200927734375, 0.0239715576171875, -0.03741455078125, -0.03631591796875, -0.0129547119140625, -0.03668212890625, 0.005107879638671875, 0.035919189453125, -0.0203704833984375, 0.02880859375, 0.026611328125, -0.0009284019470214844, -0.00806427001953125, -0.01174163818359375, 0.0205078125, 0.0372314453125, 0.0193634033203125, 0.01180267333984375, 0.025665283203125, -0.018524169921875, -0.037933349609375, 0.0289459228515625, -0.0007519721984863281, 0.036346435546875, -0.0178375244140625, -0.08709716796875, 0.05023193359375, 0.09173583984375, 0.019744873046875, 0.059844970703125, -0.01279449462890625, 0.018310546875, 0.060302734375, -0.0119171142578125, -0.04010009765625, 0.00884246826171875, 0.07379150390625, 0.0113372802734375, -0.032501220703125, 0.061004638671875, -0.034423828125, 0.01490020751953125, 0.032257080078125, 0.0426025390625, -0.068115234375, 0.01103973388671875, 0.004962921142578125, -0.03399658203125, 0.00885772705078125, 0.020660400390625, -0.01043701171875, -0.006866455078125, 0.01080322265625, -0.039703369140625, -0.0195465087890625, 0.01425933837890625, 0.01000213623046875, -0.011749267578125, -0.01032257080078125, 0.016326904296875, 0.0198516845703125, -0.024078369140625, 0.022979736328125, 0.0158233642578125, 0.026824951171875, -0.01445770263671875, -0.0203857421875, 0.002437591552734375, -0.05865478515625, -0.10565185546875, -0.038818359375, -0.009368896484375, -0.02386474609375, 0.07257080078125, -0.036224365234375, -0.0210113525390625, 0.055084228515625, -0.04669189453125, 0.0609130859375, 0.0008640289306640625, -0.02972412109375, 0.0175323486328125, -0.01450347900390625, 0.0302581787109375, 0.0218963623046875, -0.06475830078125, 0.005168914794921875, -0.014373779296875, -0.004428863525390625, -0.0222015380859375, -0.056793212890625, 0.09881591796875, -0.0628662109375, -0.005199432373046875, -0.02008056640625, 0.044769287109375, 0.01580810546875, -0.0006947517395019531, -0.002712249755859375, -0.049774169921875, 0.003078460693359375, -0.020416259765625, -0.0217742919921875, -0.0109710693359375, -0.0296783447265625, -0.0712890625, 0.09765625, -0.022369384765625, 0.0277557373046875, -0.01013946533203125, 0.03265380859375, -0.0190277099609375, 0.0006613731384277344, -0.01169586181640625, 0.0160980224609375, -0.0004115104675292969, 0.03948974609375, -0.001079559326171875, -0.0093536376953125, 0.0243682861328125, 0.033935546875, 0.05291748046875, 0.01367950439453125, -0.0108642578125, -0.032806396484375, 0.035247802734375, 0.043212890625, -0.014190673828125, 0.01568603515625, 0.006641387939453125, 0.01168060302734375, 0.0267181396484375, -0.041839599609375, 0.01258087158203125, -0.011688232421875, 0.0160064697265625, 0.02349853515625, 0.0033588409423828125, -0.023101806640625, -0.0057220458984375, 0.037322998046875, -0.052886962890625, 0.00901031494140625, 0.021820068359375, 0.039520263671875, -0.0191497802734375, 0.0219573974609375, 0.027740478515625, -0.033172607421875, -0.02093505859375, -0.017547607421875, 0.035980224609375, 0.0281524658203125, 0.005970001220703125, 0.039825439453125, 0.0177459716796875, -0.0255279541015625, 0.0006389617919921875, 0.0125885009765625, -0.0135040283203125, -0.014373779296875, 0.0513916015625, 0.0364990234375, 0.01116943359375, -0.06378173828125, -0.012237548828125, 0.07476806640625, 0.08892822265625, -0.03643798828125, -0.00897216796875, 0.005771636962890625, 0.021087646484375, 0.0010395050048828125, -0.0389404296875, 0.020904541015625, 0.00206756591796875, 0.0262908935546875, -0.027008056640625, 0.01300048828125, 0.02734375, 0.011077880859375, -0.002880096435546875, -0.0145721435546875, -0.032257080078125, 0.00919342041015625, -0.025970458984375, -0.057861328125, 0.00669097900390625, 0.054290771484375, 0.048583984375, 0.0146484375, 0.023773193359375, -0.0311279296875, -0.0161895751953125, -0.0239410400390625, 0.0287322998046875, 0.00959014892578125, -0.0255279541015625, 0.02545166015625, 0.020904541015625, 0.033935546875, 0.02435302734375, 0.07830810546875, 0.067626953125, 0.00299835205078125, -0.043212890625, 0.0167388916015625, -0.00455474853515625, -0.049285888671875, 0.01534271240234375, -0.0020160675048828125, 0.02447509765625, -0.001964569091796875, -0.014190673828125, -0.01349639892578125, 0.057373046875, 0.0069427490234375, -0.01358795166015625, 0.01009368896484375, 0.0037708282470703125, -0.035064697265625, 0.070068359375, -0.0086822509765625, 0.1112060546875, 0.0018672943115234375, -0.0255584716796875, 0.011505126953125, -0.03192138671875, -0.047119140625, -0.00731658935546875, 0.01552581787109375, -0.0256195068359375, 0.0418701171875, 0.025482177734375, 0.008209228515625, -0.01312255859375, -0.0248870849609375, 0.035614013671875, 0.0146331787109375, 0.01141357421875, 0.02227783203125, -0.042572021484375, -0.04132080078125, -0.07080078125, 0.06640625, 0.0217742919921875, 0.04522705078125, -0.019500732421875, 0.060333251953125, -0.048309326171875, 0.0114288330078125, -0.046661376953125, -0.0416259765625, 0.0134124755859375, -0.0034809112548828125, -0.0103759765625, 0.01451873779296875, -0.00870513916015625, 0.0120391845703125, 0.00395965576171875, -0.02410888671875, -0.00986480712890625, -0.039764404296875, 0.0290069580078125, 0.01085662841796875, 0.01580810546875, -0.0290679931640625, -0.03753662109375, -0.064697265625, 0.0029087066650390625, 0.0186309814453125, -0.006893157958984375, -0.05963134765625, 0.03509521484375, -0.045257568359375, -0.0269012451171875, 0.008636474609375, -0.041839599609375, 0.0031890869140625, 0.033782958984375, -0.051666259765625, -0.0173187255859375, -0.01122283935546875, -0.01654052734375, -0.01143646240234375, 0.0268402099609375, -0.0180816650390625, -0.00582122802734375, -0.01934814453125, -0.0135345458984375, 0.008392333984375, 0.0220489501953125, -0.035430908203125, 0.0002684593200683594, 0.005764007568359375, -0.0136871337890625, 0.003627777099609375, 0.05194091796875, -0.01441192626953125, 0.004871368408203125, -0.03363037109375, -0.0197601318359375, 0.0106201171875, -0.08123779296875, -0.0233154296875, 0.00966644287109375, 0.00237274169921875, -0.015625, -0.042510986328125, -0.022064208984375, -0.0035228729248046875, 0.09130859375, -0.04107666015625, 0.028350830078125, -0.0159454345703125, -0.0232086181640625, -0.037689208984375, 0.0138702392578125, -0.01751708984375, 0.002681732177734375, 0.02105712890625, 0.026092529296875, 0.052215576171875, -0.0254974365234375, 0.0175933837890625, -0.016387939453125, 0.006679534912109375, 0.02532958984375, -0.001987457275390625, -0.03680419921875, -0.016082763671875, 0.005107879638671875, 0.01477813720703125, -0.049957275390625, 0.00617218017578125, -0.0833740234375, -0.0271148681640625, 0.00254058837890625, -0.021697998046875, -0.00859832763671875, -0.0411376953125, -0.052734375, 0.086669921875, -0.0029201507568359375, -0.0247344970703125, -0.028106689453125, -0.003299713134765625, -0.018157958984375, 0.0731201171875, 0.00507354736328125, -0.0243682861328125, -0.02459716796875, 0.0224761962890625, -0.007266998291015625, 0.00402069091796875, 0.037445068359375, -0.00955963134765625, -0.00885772705078125, -0.0056915283203125, 0.0057525634765625, -0.05010986328125, -0.03387451171875, 0.041351318359375, -0.037078857421875, 0.018341064453125, -0.023712158203125, -0.01546478271484375, -0.006103515625, 0.023162841796875, -0.006542205810546875, -0.05322265625, -0.0234527587890625, -0.0150299072265625, 0.044647216796875, 0.017578125, 0.01180267333984375, -0.0262451171875, 0.0021266937255859375, -0.06365966796875, -0.025054931640625, -0.0166473388671875, 0.016998291015625, -0.07440185546875, 0.00792694091796875, 0.042938232421875, 0.0174713134765625, -0.00815582275390625, -0.042266845703125, -0.003993988037109375, -0.044921875, -0.01363372802734375, 0.00299835205078125, -0.00839996337890625, 0.003383636474609375, 0.02508544921875, -0.0184478759765625, -0.00014472007751464844, 0.016204833984375, -0.00731658935546875, 0.01812744140625, 0.05322265625, -0.007701873779296875, -0.01293182373046875, -0.03082275390625, 0.01256561279296875, -0.007480621337890625, 0.0283203125, -0.036529541015625, -0.01551055908203125, -0.031951904296875, 0.01152801513671875, 0.00733184814453125, 0.00609588623046875, -0.03424072265625, 0.0290069580078125, 0.0303955078125, 0.005054473876953125, -0.07257080078125, 0.0031261444091796875, -0.0198974609375, 0.0014705657958984375, -0.0004930496215820312, 0.0325927734375, 0.0819091796875, -0.0226593017578125, 0.00311279296875, -0.01096343994140625, 0.00592803955078125, -0.0104217529296875, 0.026275634765625, -0.0347900390625, -0.0251007080078125, 0.01346588134765625 ]
9b8f218d41cdf2667026d664bdb0702d6d8891d5
Wordpress Stackexchange Q: what's different between _x() and _() What's different between _x() and _(). For example: if a1 can translate as: * *a1 has meaning x1; *a1 has meaning x2; How _x() function to get value x1 or x2? A: _x() let's you add a context to your strings. This is useful when you are using the same string in different places. This string may need different translations depending on the language. Your example would be : echo 'a1 in context 1 ' . _x('a1', 'context1', 'mydomain'); echo 'a1 in context 2 ' . _x('a1', 'context2', 'mydomain'); There are more examples in this article.
Q: what's different between _x() and _() What's different between _x() and _(). For example: if a1 can translate as: * *a1 has meaning x1; *a1 has meaning x2; How _x() function to get value x1 or x2? A: _x() let's you add a context to your strings. This is useful when you are using the same string in different places. This string may need different translations depending on the language. Your example would be : echo 'a1 in context 1 ' . _x('a1', 'context1', 'mydomain'); echo 'a1 in context 2 ' . _x('a1', 'context2', 'mydomain'); There are more examples in this article.
wordpress
{ "language": "en", "length": 103, "provenance": "stackexchange_00019.jsonl.gz:410583", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20779" }
[ -0.01044464111328125, -0.0267181396484375, -0.031982421875, -0.01099395751953125, -0.0201416015625, -0.00803375244140625, -0.01381683349609375, 0.00888824462890625, -0.0187225341796875, 0.047821044921875, -0.01515960693359375, 0.02703857421875, -0.0032634735107421875, -0.0172271728515625, -0.0222930908203125, -0.013519287109375, 0.0301055908203125, -0.0205078125, -0.011749267578125, -0.0288543701171875, -0.0239105224609375, -0.0139007568359375, 0.01593017578125, 0.0927734375, 0.048736572265625, -0.0689697265625, 0.04156494140625, -0.0164031982421875, 0.0237579345703125, -0.003948211669921875, 0.0308685302734375, -0.01364898681640625, 0.00959014892578125, 0.04583740234375, -0.03228759765625, -0.0191497802734375, -0.023834228515625, 0.023040771484375, 0.002040863037109375, -0.0096282958984375, 0.01593017578125, -0.00920867919921875, 0.018402099609375, 0.0097503662109375, 0.0208740234375, -0.03436279296875, 0.0303802490234375, -0.053863525390625, 0.0023670196533203125, -0.038116455078125, 0.03668212890625, -0.00324249267578125, 0.054595947265625, -0.00865936279296875, -0.0303497314453125, -0.00852203369140625, -0.04827880859375, 0.047821044921875, 0.022064208984375, 0.0138702392578125, -0.0237579345703125, 0.00020611286163330078, 0.007404327392578125, -0.0303955078125, -0.02203369140625, 0.025421142578125, 0.01806640625, 0.0009665489196777344, -0.0202789306640625, -0.048492431640625, -0.01088714599609375, -0.0172119140625, 0.01386260986328125, -0.040557861328125, -0.0112457275390625, 0.037811279296875, -0.00033545494079589844, -0.00948333740234375, 0.00907135009765625, -0.012969970703125, 0.033721923828125, -0.021240234375, -0.06683349609375, 0.07330322265625, -0.03466796875, 0.07305908203125, 0.0022907257080078125, -0.053253173828125, -0.004177093505859375, 0.0009813308715820312, -0.0161590576171875, -0.0270233154296875, -0.0220794677734375, 0.0445556640625, 0.027923583984375, -0.01551055908203125, 0.002811431884765625, 0.006755828857421875, -0.046234130859375, -0.0236663818359375, 0.034423828125, -0.0275421142578125, 0.0090179443359375, -0.0012178421020507812, 0.01378631591796875, 0.022613525390625, -0.004238128662109375, -0.006565093994140625, 0.044403076171875, 0.021697998046875, -0.0063018798828125, 0.031707763671875, 0.0024318695068359375, -0.04168701171875, 0.023956298828125, 0.004802703857421875, -0.0232391357421875, 0.05035400390625, 0.0231781005859375, 0.004180908203125, -0.005329132080078125, -0.003520965576171875, 0.077880859375, -0.0067596435546875, 0.015350341796875, 0.0308685302734375, -0.005615234375, -0.0889892578125, 0.01287841796875, 0.054046630859375, -0.02423095703125, -0.01384735107421875, -0.0030460357666015625, 0.005565643310546875, -0.0209808349609375, -0.0262908935546875, -0.0004284381866455078, 0.029266357421875, -0.026763916015625, 0.01300811767578125, 0.01001739501953125, -0.031494140625, -0.0145111083984375, 0.008026123046875, -0.03289794921875, -0.00740814208984375, 0.02679443359375, 0.0477294921875, -0.020599365234375, -0.0782470703125, 0.059722900390625, -0.0191192626953125, 0.00824737548828125, -0.005695343017578125, -0.034759521484375, 0.00396728515625, -0.05029296875, 0.0012674331665039062, 0.01110076904296875, 0.0093231201171875, -0.0265045166015625, -0.03778076171875, 0.0081787109375, -0.06878662109375, -0.0880126953125, 0.07440185546875, -0.026275634765625, -0.0186309814453125, 0.0098419189453125, -0.0369873046875, 0.001544952392578125, 0.0297393798828125, -0.0021114349365234375, 0.0009646415710449219, 0.03729248046875, 0.0085296630859375, -0.037261962890625, -0.002269744873046875, -0.0017614364624023438, 0.0229949951171875, -0.00534820556640625, -0.052337646484375, -0.050872802734375, 0.0303955078125, -0.044677734375, 0.01332855224609375, 0.0011014938354492188, 0.0208892822265625, 0.029571533203125, 0.00539398193359375, 0.0237274169921875, 0.0187225341796875, -0.0445556640625, 0.04461669921875, 0.01416778564453125, 0.00238037109375, -0.0273284912109375, 0.0273590087890625, -0.0008077621459960938, -0.05657958984375, 0.045074462890625, -0.0360107421875, 0.01910400390625, -0.0026702880859375, -0.0616455078125, -0.013824462890625, -0.035614013671875, 0.02203369140625, -0.007843017578125, 0.031982421875, 0.01617431640625, 0.029388427734375, -0.016937255859375, -0.06695556640625, -0.0183868408203125, 0.0052490234375, -0.006839752197265625, -0.03912353515625, 0.006885528564453125, -0.00817108154296875, -0.032318115234375, 0.0648193359375, -0.043914794921875, -0.006591796875, 0.01226043701171875, -0.0086212158203125, -0.018157958984375, -0.01068878173828125, 0.008026123046875, -0.00714111328125, 0.0411376953125, 0.053253173828125, 0.0269622802734375, -0.0051422119140625, -0.01097869873046875, 0.02093505859375, 0.0303955078125, -0.09375, -0.007450103759765625, 0.047943115234375, 0.0231475830078125, 0.019439697265625, -0.0445556640625, -0.0237579345703125, 0.072021484375, 0.034271240234375, 0.004695892333984375, 0.00572967529296875, -0.003925323486328125, 0.03472900390625, -0.00421905517578125, 0.00879669189453125, 0.01482391357421875, -0.052642822265625, -0.00812530517578125, 0.0489501953125, -0.0075531005859375, -0.01345062255859375, 0.00022017955780029297, 0.03533935546875, -0.0156097412109375, 0.0167236328125, 0.00832366943359375, 0.0009627342224121094, -0.0452880859375, -0.01512908935546875, -0.0213470458984375, -0.005779266357421875, -0.0225372314453125, -0.008453369140625, 0.048583984375, 0.0278167724609375, 0.01593017578125, 0.0157928466796875, -0.049713134765625, 0.020294189453125, 0.00009125471115112305, -0.0004878044128417969, -0.0245208740234375, -0.01229095458984375, -0.004604339599609375, 0.0380859375, -0.0305328369140625, -0.01087188720703125, -0.01064300537109375, -0.00765228271484375, -0.006534576416015625, 0.00550079345703125, -0.016571044921875, -0.01401519775390625, 0.0165557861328125, 0.048980712890625, 0.0017824172973632812, 0.0123138427734375, -0.0264129638671875, 0.00015997886657714844, -0.0186309814453125, -0.004352569580078125, -0.022705078125, -0.026458740234375, -0.0196990966796875, 0.0194091796875, 0.041839599609375, -0.06976318359375, 0.024017333984375, -0.01265716552734375, 0.039794921875, 0.0239105224609375, 0.0197296142578125, 0.0117645263671875, -0.06707763671875, -0.03326416015625, -0.0008287429809570312, 0.0272674560546875, -0.048736572265625, -0.05810546875, -0.030364990234375, -0.013580322265625, -0.10052490234375, -0.030303955078125, 0.10174560546875, -0.01593017578125, 0.00921630859375, -0.0031986236572265625, -0.01488494873046875, -0.048126220703125, 0.0151824951171875, -0.014892578125, 0.0223236083984375, -0.0114288330078125, -0.007640838623046875, -0.01369476318359375, -0.0245513916015625, -0.00632476806640625, 0.00485992431640625, -0.00327301025390625, 0.01497650146484375, -0.059539794921875, -0.0141143798828125, 0.01067352294921875, 0.0181732177734375, 0.046844482421875, 0.004535675048828125, -0.0199737548828125, 0.038055419921875, -0.03460693359375, 0.0242767333984375, -0.0028820037841796875, 0.0262298583984375, 0.0297698974609375, -0.017333984375, -0.0176849365234375, 0.017974853515625, 0.042724609375, 0.050323486328125, -0.0201873779296875, -0.026580810546875, 0.06280517578125, 0.0200653076171875, -0.017730712890625, -0.0325927734375, 0.0070953369140625, -0.059051513671875, 0.059173583984375, 0.0447998046875, -0.0160064697265625, 0.02239990234375, 0.00577545166015625, -0.0615234375, -0.034942626953125, 0.0235443115234375, -0.053558349609375, -0.001613616943359375, -0.015869140625, -0.0265350341796875, 0.0113983154296875, 0.0082855224609375, -0.0310211181640625, -0.019012451171875, -0.01496124267578125, 0.0135345458984375, 0.041473388671875, -0.0428466796875, 0.06427001953125, 0.02166748046875, 0.0249786376953125, 0.009124755859375, -0.01558685302734375, 0.0304412841796875, -0.0218963623046875, 0.0191650390625, 0.01068878173828125, -0.01453399658203125, -0.0121917724609375, 0.0207366943359375, 0.01482391357421875, -0.04107666015625, -0.037567138671875, -0.049346923828125, -0.006740570068359375, -0.0072021484375, 0.0034961700439453125, 0.0022640228271484375, 0.01145172119140625, -0.056854248046875, 0.068359375, -0.03619384765625, -0.00453948974609375, 0.01175689697265625, 0.004390716552734375, 0.02545166015625, -0.0279083251953125, 0.015106201171875, -0.031951904296875, 0.0145721435546875, -0.03216552734375, -0.027984619140625, -0.036712646484375, 0.031585693359375, 0.04022216796875, 0.00876617431640625, -0.0259246826171875, -0.003978729248046875, 0.029510498046875, -0.0095977783203125, 0.0174407958984375, -0.0079193115234375, 0.0223236083984375, 0.02685546875, -0.031524658203125, -0.0216217041015625, -0.0177154541015625, 0.0131378173828125, -0.01959228515625, -0.0462646484375, 0.0246734619140625, -0.007671356201171875, 0.062042236328125, 0.00838470458984375, -0.041595458984375, -0.042449951171875, -0.005107879638671875, 0.01580810546875, 0.00878143310546875, 0.0080718994140625, -0.0036468505859375, 0.006275177001953125, -0.03369140625, 0.0291748046875, 0.034454345703125, -0.0241241455078125, -0.0016012191772460938, -0.02398681640625, 0.01222991943359375, -0.0604248046875, -0.01305389404296875, -0.04034423828125, 0.0184783935546875, -0.0181732177734375, -0.005218505859375, -0.02001953125, -0.045501708984375, 0.05755615234375, -0.0259857177734375, 0.032257080078125, 0.036376953125, 0.031341552734375, 0.02423095703125, -0.0011730194091796875, 0.00965118408203125, 0.053009033203125, -0.0819091796875, 0.0006766319274902344, -0.0185394287109375, -0.01079559326171875, 0.0024585723876953125, 0.031951904296875, -0.0177154541015625, 0.0271453857421875, -0.038055419921875, -0.00907135009765625, 0.005626678466796875, 0.01483917236328125, -0.05615234375, 0.01041412353515625, 0.007488250732421875, -0.0711669921875, -0.04522705078125, -0.01479339599609375, 0.0246734619140625, 0.0011920928955078125, 0.01108551025390625, -0.00042557716369628906, 0.020782470703125, -0.0286407470703125, -0.007099151611328125, 0.0009279251098632812, 0.049224853515625, -0.01678466796875, -0.04345703125, -0.041107177734375, -0.031402587890625, 0.004245758056640625, 0.017791748046875, -0.0141448974609375, -0.0203094482421875, -0.0240325927734375, -0.0158843994140625, 0.016876220703125, 0.01641845703125, -0.0246124267578125, -0.01555633544921875, 0.0477294921875, -0.041748046875, 0.018768310546875, 0.0157012939453125, 0.044403076171875, -0.0789794921875, 0.056243896484375, 0.01358795166015625, -0.0195770263671875, -0.0282135009765625, 0.0224456787109375, 0.0108795166015625, 0.00628662109375, 0.0032958984375, 0.01351165771484375, 0.0298309326171875, -0.01438140869140625, 0.0138702392578125, 0.0250396728515625, 0.0227508544921875, 0.0211639404296875, 0.0068359375, -0.010589599609375, -0.0244903564453125, -0.024932861328125, 0.07940673828125, 0.049896240234375, -0.0245361328125, -0.05755615234375, -0.054931640625, 0.047119140625, 0.0016155242919921875, -0.007343292236328125, 0.0384521484375, 0.01690673828125, 0.041473388671875, 0.00141143798828125, 0.01010894775390625, -0.019134521484375, -0.005260467529296875, -0.0224609375, -0.01435089111328125, 0.0101318359375, -0.0079193115234375, -0.0207977294921875, 0.004856109619140625, 0.005329132080078125, -0.00014269351959228516, 0.002777099609375, 0.031768798828125, -0.0282745361328125, -0.0230712890625, 0.0270233154296875, -0.00962066650390625, 0.0440673828125, 0.0005731582641601562, -0.0174713134765625, -0.034698486328125, -0.034149169921875, -0.0094757080078125, -0.0252532958984375, -0.061737060546875, 0.006378173828125, 0.006175994873046875, -0.0215911865234375, 0.03680419921875, 0.0179595947265625, 0.08905029296875, -0.01425933837890625, 0.01200103759765625, -0.05682373046875, 0.0665283203125, -0.00921630859375, 0.0341796875, 0.0135040283203125, 0.0230865478515625, 0.0022525787353515625, 0.0283203125, -0.0031185150146484375, -0.0205535888671875, 0.03057861328125, -0.071533203125, -0.01837158203125, -0.046722412109375, 0.0266876220703125, -0.0114898681640625, -0.0316162109375, -0.0095062255859375, 0.00760650634765625, 0.0235595703125, -0.006725311279296875, -0.031585693359375, -0.003307342529296875, -0.000324249267578125, 0.042449951171875, -0.03118896484375, -0.050537109375, 0.0194244384765625, 0.00823211669921875, 0.0033550262451171875, 0.041595458984375, -0.05462646484375, 0.03814697265625, 0.045074462890625, -0.00836944580078125, 0.00759124755859375, 0.03228759765625, 0.018035888671875, 0.0266571044921875, 0.00476837158203125, 0.01375579833984375, -0.0294342041015625, 0.0217742919921875, -0.005466461181640625, 0.014495849609375, 0.052276611328125, 0.0008645057678222656, -0.00792694091796875, 0.003047943115234375, -0.01334381103515625, 0.037445068359375, 0.10540771484375, 0.0877685546875, -0.11041259765625, 0.00038623809814453125, 0.03704833984375, -0.04217529296875, 0.01514434814453125, 0.042694091796875, -0.031494140625, -0.03924560546875, 0.0007257461547851562, -0.0169677734375, -0.00392913818359375, 0.0222625732421875, 0.0141754150390625, -0.006824493408203125, -0.053497314453125, 0.000008940696716308594, 0.0322265625, 0.0204925537109375, 0.046234130859375, -0.011749267578125, 0.04290771484375, -0.0020160675048828125, 0.01287841796875, -0.046966552734375, -0.02313232421875, -0.04248046875, -0.0291900634765625, -0.04681396484375, -0.012420654296875, 0.0156707763671875, 0.046630859375, 0.033966064453125, 0.054168701171875, -0.0029392242431640625, -0.00860595703125, 0.032806396484375, 0.0146026611328125, 0.006168365478515625, -0.006591796875, -0.01317596435546875, 0.036407470703125, -0.03802490234375, 0.01065826416015625, -0.045196533203125, 0.037994384765625, 0.0099334716796875, -0.0144500732421875, 0.04998779296875, -0.016998291015625, -0.012725830078125, 0.03887939453125, -0.042572021484375, -0.0249481201171875, 0.033447265625, -0.034332275390625, -0.04095458984375, -0.026397705078125, -0.0127410888671875, -0.07061767578125, 0.04864501953125, 0.0169219970703125, -0.074462890625, 0.039825439453125, 0.0038051605224609375, 0.053863525390625, -0.0029144287109375, -0.00722503662109375, 0.0010499954223632812, -0.01309967041015625, -0.03558349609375, 0.01381683349609375, -0.0087890625, 0.038604736328125, -0.0217132568359375, -0.0007381439208984375, 0.00411224365234375, 0.032379150390625, 0.02069091796875, -0.0025730133056640625, 0.004878997802734375, 0.004596710205078125, 0.06732177734375, 0.043670654296875, 0.012298583984375, -0.01220703125, 0.0238494873046875, 0.07098388671875, 0.038116455078125, -0.03216552734375, 0.033203125, -0.0185699462890625, -0.0130767822265625, 0.031768798828125, 0.010498046875, 0.00621795654296875, 0.015655517578125, 0.01334381103515625, -0.00894927978515625, -0.00829315185546875, -0.01470947265625, 0.00846099853515625, 0.01471710205078125, -0.02728271484375, -0.0283050537109375, -0.014739990234375, 0.0133514404296875, -0.0184326171875, 0.029571533203125, -0.0033092498779296875, 0.0467529296875, 0.053497314453125, 0.010284423828125, 0.053253173828125, 0.0259857177734375, 0.030120849609375, 0.01456451416015625, 0.00894927978515625, 0.0123138427734375, 0.039276123046875, 0.031524658203125, 0.0101470947265625, -0.00862884521484375, 0.0218353271484375, 0.02032470703125, -0.0185394287109375, 0.01383209228515625, 0.00501251220703125, 0.0144195556640625, 0.017913818359375, -0.01104736328125, 0.08038330078125, 0.026580810546875, -0.0094757080078125, 0.00292205810546875, -0.00783538818359375, 0.0205230712890625, -0.01568603515625, 0.0028324127197265625, -0.00189208984375, 0.004589080810546875, 0.031494140625, -0.0625, 0.033538818359375, 0.01345062255859375, 0.02227783203125, 0.0189971923828125, 0.035797119140625, 0.0281219482421875, -0.01493072509765625, -0.0092926025390625, 0.038330078125, -0.033538818359375, 0.0132293701171875, -0.07977294921875, -0.0924072265625, 0.034271240234375, 0.059478759765625, 0.00962066650390625, -0.0112762451171875, 0.0247802734375, 0.020050048828125, -0.03070068359375, -0.01026153564453125, 0.026458740234375, -0.019989013671875, 0.0073394775390625, -0.00011551380157470703, -0.007419586181640625, 0.01067352294921875, -0.0243988037109375, -0.0131683349609375, -0.0029163360595703125, 0.04669189453125, -0.0372314453125, 0.06689453125, -0.01065826416015625, -0.026092529296875, 0.0328369140625, -0.0183563232421875, 0.09600830078125, -0.01207733154296875, 0.040771484375, -0.001667022705078125, -0.01953125, -0.01241302490234375, 0.0270538330078125, 0.033233642578125, 0.02978515625, -0.0013589859008789062, 0.0257415771484375, -0.04534912109375, 0.010589599609375, 0.035247802734375, -0.0010442733764648438, -0.041748046875, 0.00444793701171875, -0.0333251953125, -0.0239410400390625, -0.01435089111328125, 0.01123046875, 0.0361328125, -0.00250244140625, -0.0276641845703125, -0.0003654956817626953, 0.0173492431640625, 0.00928497314453125, -0.0167694091796875, -0.00557708740234375, -0.01081085205078125, 0.016937255859375, -0.006420135498046875, 0.01351165771484375, -0.010284423828125, -0.00914764404296875, 0.03863525390625, 0.033935546875, -0.0361328125, 0.026580810546875, 0.022674560546875, -0.0024814605712890625, -0.0260772705078125, 0.00879669189453125, -0.038330078125, -0.048431396484375, -0.043243408203125, -0.01158905029296875, 0.00461578369140625, -0.008575439453125, -0.01210784912109375, 0.0269622802734375, 0.0024967193603515625, -0.017669677734375, 0.01073455810546875, -0.011871337890625, -0.01020050048828125, 0.01366424560546875, 0.0108489990234375, -0.01033782958984375, -0.0262451171875, -0.03466796875, 0.0020389556884765625, -0.0228118896484375, 0.0330810546875, -0.0262603759765625, -0.054229736328125, -0.04241943359375, -0.016845703125, 0.01678466796875, -0.0286102294921875, 0.00785064697265625, -0.0193634033203125, -0.002178192138671875, 0.043731689453125, 0.00948333740234375, 0.01092529296875, -0.001384735107421875, -0.022705078125, -0.0032711029052734375, 0.00618743896484375, -0.0027103424072265625, 0.0244903564453125, 0.01332855224609375, 0.0046539306640625, -0.0172576904296875, 0.01387786865234375, -0.01039886474609375, -0.02337646484375, 0.0036773681640625, -0.0210418701171875, -0.03436279296875, 0.007686614990234375, 0.0229034423828125, -0.05169677734375, -0.03179931640625, -0.062042236328125, -0.03485107421875, -0.064453125, 0.041412353515625, 0.0352783203125, -0.0364990234375, -0.0200042724609375, 0.08447265625, 0.04571533203125, 0.12127685546875, 0.031036376953125, -0.032958984375, 0.002773284912109375, -0.020416259765625, -0.025909423828125, 0.019744873046875, 0.04461669921875, -0.04705810546875, -0.0672607421875, 0.04302978515625, -0.03778076171875, -0.005092620849609375, -0.0278778076171875, -0.062164306640625, 0.0751953125, 0.0152130126953125, -0.036651611328125, -0.0222625732421875, 0.003692626953125, 0.01189422607421875, 0.01258087158203125, -0.011627197265625, 0.00199127197265625, -0.04498291015625, -0.0133209228515625, -0.0010995864868164062, 0.022979736328125, 0.0300445556640625, -0.05859375, -0.0185699462890625, -0.0284271240234375, -0.005352020263671875, 0.004261016845703125, -0.0297088623046875, 0.01207733154296875, 0.0245819091796875, 0.0325927734375, -0.00977325439453125, 0.0355224609375, 0.02020263671875, -0.028533935546875, -0.0191650390625, -0.0255584716796875, 0.0041961669921875, -0.0095367431640625, 0.01300811767578125, 0.04351806640625, -0.0181427001953125, -0.039276123046875, 0.045623779296875, 0.0305633544921875, -0.00955963134765625, -0.014862060546875, 0.0035877227783203125, -0.0360107421875, -0.03802490234375, -0.0278472900390625, -0.007568359375, 0.033477783203125, 0.0289459228515625, -0.005828857421875, 0.0099945068359375, 0.019195556640625, -0.049224853515625, -0.058929443359375, -0.01119232177734375, 0.0535888671875, -0.038482666015625, 0.0088958740234375, 0.018096923828125, -0.002376556396484375, 0.025360107421875, 0.046417236328125, 0.03155517578125, -0.006870269775390625, -0.01715087890625, 0.0217132568359375, 0.010406494140625, -0.0173797607421875, -0.0089111328125, -0.038604736328125, -0.01535797119140625, 0.0281219482421875, -0.0158843994140625, 0.036102294921875, -0.0136260986328125, 0.09326171875, 0.02642822265625, 0.06939697265625, 0.00569915771484375, 0.0550537109375, -0.0290069580078125, 0.05523681640625, -0.0736083984375, -0.016937255859375, -0.0760498046875, 0.006427764892578125, 0.0212249755859375, -0.0023708343505859375, 0.01690673828125, -0.01047515869140625, 0.009674072265625, 0.00428009033203125, -0.009979248046875, 0.0150299072265625 ]
01bd65f774c71ad170cb183db23508f235f6af56
Wordpress Stackexchange Q: Images uploading to wrong folder Images keep uploading to /uploads/2010/07 instead of /uploads/2011/06. Permissions are set to 777 just to find out if 755 is an issue, and it's not. I don't have anything in Media to define a new path. It just keeps uploading to the oldest folder. This was an XML dump from another WP to the new WP, so I'm not sure if that had anything to do with it, or not. I can see the image files fine and they post in the post editor, they're just going to the oldest folder and it's not autocreating a new one. I'm running the latest wp 3.1.3. I do have a bunch of plug-ins, the image thumbnail regenerator is one, and I've got a bunch of plugins for sidebar widgets, but nothing out of the ordinary. A: Tony, are you creating a new post or editing an older post from 2010/07? I've found that the folder relates to when the post/page was created initially.
Q: Images uploading to wrong folder Images keep uploading to /uploads/2010/07 instead of /uploads/2011/06. Permissions are set to 777 just to find out if 755 is an issue, and it's not. I don't have anything in Media to define a new path. It just keeps uploading to the oldest folder. This was an XML dump from another WP to the new WP, so I'm not sure if that had anything to do with it, or not. I can see the image files fine and they post in the post editor, they're just going to the oldest folder and it's not autocreating a new one. I'm running the latest wp 3.1.3. I do have a bunch of plug-ins, the image thumbnail regenerator is one, and I've got a bunch of plugins for sidebar widgets, but nothing out of the ordinary. A: Tony, are you creating a new post or editing an older post from 2010/07? I've found that the folder relates to when the post/page was created initially.
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:410584", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20781" }
[ 0.036102294921875, -0.00777435302734375, 0.0085296630859375, 0.02838134765625, -0.012725830078125, -0.035125732421875, 0.044769287109375, -0.054168701171875, 0.07659912109375, 0.00164031982421875, -0.052276611328125, -0.01861572265625, -0.01519775390625, -0.0173492431640625, -0.04400634765625, -0.0229949951171875, 0.03765869140625, -0.036590576171875, 0.0165557861328125, 0.00014579296112060547, -0.0218963623046875, 0.0274200439453125, 0.036163330078125, -0.01110076904296875, -0.006244659423828125, 0.06158447265625, 0.0018777847290039062, -0.015655517578125, -0.00203704833984375, -0.0216827392578125, -0.005733489990234375, 0.004268646240234375, 0.04595947265625, -0.003986358642578125, -0.0214996337890625, 0.04180908203125, -0.01702880859375, -0.0025177001953125, 0.003437042236328125, 0.002288818359375, 0.03289794921875, -0.017578125, 0.0740966796875, -0.0274505615234375, 0.0270538330078125, 0.0031871795654296875, 0.03033447265625, -0.044921875, 0.027435302734375, -0.0084991455078125, 0.0102081298828125, 0.00757598876953125, 0.0224151611328125, 0.002689361572265625, -0.03570556640625, -0.033538818359375, -0.018707275390625, 0.06732177734375, 0.02911376953125, -0.038330078125, -0.032012939453125, 0.0172271728515625, 0.0225982666015625, 0.0256805419921875, -0.0187225341796875, -0.00292205810546875, 0.03997802734375, 0.01141357421875, -0.05352783203125, -0.045166015625, 0.03985595703125, -0.0147552490234375, 0.0082550048828125, -0.049560546875, 0.0213165283203125, 0.02557373046875, -0.037200927734375, -0.0374755859375, 0.023193359375, 0.0008945465087890625, -0.01322174072265625, -0.0157470703125, -0.027801513671875, -0.0191192626953125, 0.0132293701171875, 0.00688934326171875, -0.002758026123046875, -0.0034732818603515625, -0.012481689453125, 0.0174407958984375, -0.0287933349609375, -0.01128387451171875, 0.023193359375, 0.03607177734375, -0.0279693603515625, 0.0183868408203125, 0.0255126953125, 0.037689208984375, -0.01413726806640625, -0.00170135498046875, -0.0413818359375, 0.0007314682006835938, -0.034942626953125, -0.0052642822265625, 0.0186920166015625, -0.00789642333984375, -0.0203704833984375, -0.021728515625, 0.052642822265625, 0.0302581787109375, -0.0161895751953125, 0.0885009765625, 0.034698486328125, -0.050018310546875, 0.00676727294921875, 0.032501220703125, 0.031646728515625, 0.03497314453125, 0.037261962890625, 0.01380157470703125, -0.00507354736328125, 0.018035888671875, -0.023834228515625, -0.03045654296875, 0.030548095703125, -0.005062103271484375, -0.042633056640625, 0.0245819091796875, 0.01141357421875, 0.007076263427734375, -0.0299072265625, 0.0229949951171875, 0.0582275390625, -0.00888824462890625, -0.0087738037109375, -0.01174163818359375, 0.00391387939453125, -0.0179901123046875, -0.038726806640625, 0.07098388671875, -0.03424072265625, -0.05426025390625, 0.00960540771484375, -0.051483154296875, -0.038665771484375, 0.044769287109375, -0.00667572021484375, 0.01934814453125, -0.01079559326171875, -0.06488037109375, 0.00780487060546875, -0.047943115234375, 0.032379150390625, 0.0141143798828125, 0.0079345703125, -0.04736328125, 0.05047607421875, -0.0643310546875, 0.0183258056640625, -0.061370849609375, 0.0102996826171875, -0.0032100677490234375, 0.036224365234375, -0.03155517578125, -0.0333251953125, -0.0026073455810546875, -0.066650390625, -0.0150909423828125, 0.01322174072265625, -0.0218353271484375, -0.00814056396484375, -0.036834716796875, -0.0275726318359375, -0.03338623046875, -0.01296234130859375, 0.0149688720703125, 0.0191497802734375, -0.0210418701171875, 0.009368896484375, 0.0860595703125, 0.0260772705078125, -0.0164947509765625, 0.02325439453125, 0.00766754150390625, -0.0294342041015625, -0.03704833984375, 0.0094451904296875, -0.032745361328125, 0.0221099853515625, -0.00640106201171875, 0.06439208984375, 0.0069122314453125, -0.07965087890625, 0.04632568359375, -0.01047515869140625, 0.026702880859375, -0.03857421875, 0.021026611328125, -0.01189422607421875, -0.04425048828125, 0.009613037109375, 0.02215576171875, -0.047332763671875, 0.033355712890625, -0.03448486328125, -0.02777099609375, 0.0134735107421875, -0.0027561187744140625, -0.0052490234375, -0.01169586181640625, 0.0115509033203125, 0.000598907470703125, -0.0120849609375, -0.041656494140625, -0.0367431640625, 0.02301025390625, -0.049896240234375, 0.0065155029296875, -0.0192108154296875, 0.067138671875, -0.06036376953125, -0.01509857177734375, -0.0645751953125, -0.0298309326171875, 0.031646728515625, 0.024139404296875, -0.04541015625, 0.00507354736328125, -0.00634765625, 0.032867431640625, -0.058135986328125, 0.033538818359375, -0.0650634765625, 0.0235137939453125, -0.0206756591796875, -0.05242919921875, -0.048065185546875, -0.07635498046875, 0.053619384765625, 0.05987548828125, 0.03277587890625, 0.016510009765625, 0.0289459228515625, 0.050628662109375, 0.03045654296875, -0.02264404296875, 0.0186004638671875, 0.008453369140625, -0.0281829833984375, 0.000007450580596923828, 0.058929443359375, 0.01343536376953125, -0.0026092529296875, -0.043701171875, -0.009979248046875, 0.0272674560546875, -0.060394287109375, -0.062408447265625, 0.022125244140625, 0.00464630126953125, 0.022918701171875, -0.0119171142578125, -0.0129241943359375, -0.00496673583984375, 0.01457977294921875, -0.01424407958984375, 0.0325927734375, 0.01318359375, -0.01678466796875, -0.00274658203125, 0.0031909942626953125, -0.0322265625, 0.00839996337890625, 0.030731201171875, 0.031463623046875, 0.0106201171875, -0.03302001953125, -0.02288818359375, 0.03497314453125, 0.0275115966796875, -0.002880096435546875, 0.00653076171875, -0.02655029296875, -0.0014371871948242188, -0.0452880859375, -0.01934814453125, 0.04437255859375, 0.059356689453125, -0.00899505615234375, 0.0038318634033203125, 0.01611328125, 0.01456451416015625, -0.01528167724609375, 0.04693603515625, 0.0174102783203125, -0.0075225830078125, -0.0180511474609375, -0.01367950439453125, 0.03369140625, -0.040191650390625, -0.009368896484375, 0.038238525390625, -0.0178070068359375, -0.004852294921875, 0.005962371826171875, 0.007686614990234375, 0.01377105712890625, 0.037811279296875, 0.0245361328125, -0.0031147003173828125, -0.060638427734375, -0.039337158203125, 0.0205535888671875, 0.008941650390625, 0.0035400390625, -0.0308837890625, 0.0236053466796875, 0.00240325927734375, -0.06610107421875, -0.0888671875, -0.0254669189453125, -0.060455322265625, -0.006011962890625, -0.0088653564453125, -0.0263824462890625, 0.0076751708984375, 0.01480865478515625, 0.00982666015625, 0.0034923553466796875, -0.003643035888671875, 0.0009665489196777344, -0.00902557373046875, -0.03948974609375, -0.002056121826171875, 0.005268096923828125, 0.017181396484375, 0.0030651092529296875, 0.043487548828125, -0.01300811767578125, -0.0892333984375, -0.0208892822265625, 0.02685546875, 0.002239227294921875, 0.02655029296875, 0.0280914306640625, -0.00606536865234375, -0.0010051727294921875, 0.003475189208984375, 0.060272216796875, 0.04473876953125, -0.062286376953125, -0.007965087890625, -0.03173828125, -0.0256805419921875, -0.046600341796875, 0.045379638671875, 0.062347412109375, -0.02117919921875, -0.00860595703125, -0.0482177734375, -0.0132904052734375, -0.01529693603515625, -0.0372314453125, 0.0174560546875, -0.00235748291015625, 0.0008692741394042969, -0.00771331787109375, 0.0289459228515625, 0.004261016845703125, 0.03375244140625, 0.016448974609375, -0.04290771484375, 0.039154052734375, -0.00136566162109375, -0.0052032470703125, -0.02154541015625, 0.02435302734375, -0.022186279296875, 0.0133514404296875, 0.00365447998046875, 0.0074005126953125, -0.01322174072265625, 0.005977630615234375, -0.0289306640625, -0.03302001953125, 0.0106658935546875, -0.060821533203125, 0.034698486328125, -0.05364990234375, 0.00713348388671875, -0.030975341796875, 0.05731201171875, -0.043548583984375, -0.008148193359375, 0.01453399658203125, 0.0276641845703125, -0.03582763671875, -0.03851318359375, -0.056884765625, -0.003143310546875, -0.0143280029296875, -0.018280029296875, 0.00803375244140625, -0.036651611328125, 0.006439208984375, -0.057373046875, -0.00701904296875, -0.0259552001953125, 0.050262451171875, -0.046356201171875, 0.018524169921875, 0.0085601806640625, 0.022308349609375, -0.03515625, -0.0330810546875, -0.018402099609375, -0.1845703125, -0.0294036865234375, -0.0189971923828125, 0.12054443359375, -0.038330078125, 0.023712158203125, -0.07928466796875, 0.061248779296875, 0.007556915283203125, 0.01111602783203125, 0.0189971923828125, -0.0015554428100585938, 0.0023860931396484375, -0.00962066650390625, 0.01177215576171875, -0.036865234375, -0.00699615478515625, -0.07568359375, -0.03826904296875, -0.0650634765625, -0.053375244140625, -0.00732421875, -0.0457763671875, 0.004425048828125, -0.01544189453125, -0.0088653564453125, 0.005535125732421875, 0.03314208984375, 0.01554107666015625, -0.017669677734375, -0.0254058837890625, -0.0185394287109375, 0.01654052734375, -0.02288818359375, 0.0213623046875, 0.022125244140625, 0.0782470703125, -0.0020427703857421875, -0.0027370452880859375, -0.052520751953125, -0.018463134765625, 0.0256500244140625, 0.0030727386474609375, 0.0242919921875, 0.0166473388671875, -0.004425048828125, 0.01184844970703125, -0.00443267822265625, -0.00064849853515625, -0.01708984375, 0.0491943359375, -0.01239776611328125, -0.002803802490234375, -0.005054473876953125, -0.0083465576171875, 0.0176239013671875, -0.00890350341796875, -0.0252685546875, 0.023529052734375, -0.029541015625, 0.0308074951171875, 0.033111572265625, -0.0184783935546875, -0.06353759765625, -0.08270263671875, 0.0243377685546875, 0.0028820037841796875, 0.0304107666015625, -0.01611328125, 0.00835418701171875, 0.064697265625, 0.036773681640625, 0.00943756103515625, -0.017242431640625, 0.005176544189453125, -0.00836944580078125, 0.045013427734375, -0.01279449462890625, 0.0108642578125, -0.017974853515625, -0.00360107421875, 0.0048675537109375, 0.0152435302734375, -0.0278778076171875, -0.0169219970703125, 0.002452850341796875, 0.0027179718017578125, -0.00397491455078125, -0.0298309326171875, 0.0251312255859375, 0.0189208984375, -0.00334930419921875, 0.011627197265625, -0.05279541015625, 0.0179443359375, -0.031982421875, -0.00550079345703125, 0.0056304931640625, -0.020538330078125, 0.032562255859375, -0.050994873046875, 0.028717041015625, -0.0374755859375, -0.002788543701171875, -0.0352783203125, -0.017822265625, 0.0288543701171875, 0.043487548828125, -0.00423431396484375, -0.0174560546875, 0.0186004638671875, 0.049407958984375, -0.0438232421875, 0.01043701171875, 0.026214599609375, 0.064697265625, -0.00518035888671875, -0.03741455078125, 0.01068878173828125, -0.03594970703125, 0.01131439208984375, -0.006801605224609375, -0.0294647216796875, -0.030914306640625, -0.004100799560546875, 0.016021728515625, 0.033843994140625, -0.017791748046875, -0.019561767578125, 0.017578125, -0.040802001953125, -0.0167999267578125, 0.03460693359375, -0.04718017578125, -0.00579833984375, -0.0120849609375, -0.0016031265258789062, -0.0479736328125, -0.040252685546875, 0.0041046142578125, 0.01528167724609375, -0.02740478515625, -0.0023956298828125, 0.0298309326171875, -0.0096435546875, 0.004390716552734375, -0.00122833251953125, -0.0335693359375, 0.00927734375, 0.035491943359375, -0.007686614990234375, -0.033538818359375, -0.02349853515625, 0.020660400390625, -0.04254150390625, -0.028472900390625, 0.00589752197265625, -0.0155181884765625, -0.05035400390625, -0.03631591796875, -0.005645751953125, 0.04083251953125, -0.01434326171875, 0.01486968994140625, -0.0150299072265625, 0.0005040168762207031, -0.018218994140625, 0.03302001953125, 0.003543853759765625, -0.003070831298828125, -0.00852203369140625, 0.01983642578125, -0.00688934326171875, -0.01300048828125, -0.0027256011962890625, -0.0215606689453125, -0.02545166015625, -0.037078857421875, 0.023406982421875, 0.0203399658203125, 0.01027679443359375, 0.017547607421875, 0.03485107421875, 0.0225372314453125, 0.0229339599609375, -0.034423828125, -0.01103973388671875, -0.01049041748046875, 0.04388427734375, -0.03302001953125, 0.00626373291015625, 0.034393310546875, -0.01194000244140625, 0.030609130859375, 0.004573822021484375, -0.004184722900390625, -0.0015382766723632812, -0.027801513671875, -0.016571044921875, 0.0535888671875, 0.0190277099609375, -0.01064300537109375, 0.0177459716796875, -0.0053253173828125, 0.043304443359375, 0.0189666748046875, 0.047210693359375, 0.0518798828125, -0.01430511474609375, 0.036834716796875, -0.023590087890625, 0.06256103515625, 0.0078887939453125, 0.000629425048828125, 0.0654296875, -0.040771484375, 0.0247344970703125, 0.0175933837890625, 0.05316162109375, -0.01326751708984375, 0.006267547607421875, 0.01149749755859375, -0.031524658203125, 0.04290771484375, -0.0168609619140625, -0.0037288665771484375, -0.0204620361328125, 0.061248779296875, -0.05462646484375, -0.0175323486328125, -0.0024700164794921875, -0.0316162109375, -0.02191162109375, 0.0391845703125, 0.0034427642822265625, 0.01290130615234375, -0.017181396484375, -0.04339599609375, 0.04473876953125, -0.0263824462890625, 0.015655517578125, -0.0001704692840576172, -0.04522705078125, -0.004669189453125, -0.015716552734375, -0.0218658447265625, -0.0350341796875, 0.013702392578125, -0.037353515625, 0.00534820556640625, 0.062164306640625, 0.031646728515625, 0.005504608154296875, -0.0182647705078125, 0.018157958984375, -0.005878448486328125, 0.0458984375, -0.0228729248046875, 0.006336212158203125, 0.016021728515625, -0.041748046875, -0.0093841552734375, 0.004924774169921875, -0.0047149658203125, 0.00930023193359375, -0.0163726806640625, 0.02203369140625, -0.081787109375, 0.028167724609375, 0.03875732421875, 0.010711669921875, -0.00868988037109375, -0.0006089210510253906, 0.0015306472778320312, -0.047607421875, -0.0083465576171875, -0.00807952880859375, -0.007411956787109375, 0.027679443359375, 0.0281982421875, -0.03326416015625, 0.0257110595703125, -0.00873565673828125, 0.015960693359375, 0.022735595703125, -0.0028781890869140625, 0.000018596649169921875, -0.007434844970703125, -0.01016998291015625, -0.01052093505859375, -0.05548095703125, -0.0192413330078125, -0.0433349609375, 0.0234222412109375, -0.046356201171875, 0.007602691650390625, 0.09735107421875, 0.02520751953125, -0.04547119140625, -0.01971435546875, 0.06298828125, 0.0596923828125, 0.01641845703125, 0.037750244140625, 0.0330810546875, -0.03167724609375, 0.0438232421875, 0.04095458984375, 0.04638671875, 0.0076446533203125, -0.00249481201171875, 0.03955078125, -0.0035457611083984375, -0.0265655517578125, -0.00992584228515625, -0.00484466552734375, -0.042816162109375, -0.007598876953125, 0.027313232421875, -0.0426025390625, 0.0227508544921875, 0.0019550323486328125, 0.0105438232421875, -0.01556396484375, -0.0259552001953125, -0.0015783309936523438, 0.035369873046875, 0.0008835792541503906, 0.02630615234375, 0.03216552734375, 0.023223876953125, 0.022796630859375, -0.05145263671875, 0.01215362548828125, -0.01458740234375, -0.02783203125, 0.049224853515625, 0.016998291015625, 0.03240966796875, -0.039642333984375, 0.00623321533203125, 0.024444580078125, 0.056610107421875, -0.055389404296875, 0.0153961181640625, 0.01593017578125, -0.01220703125, -0.031768798828125, -0.054534912109375, -0.05120849609375, -0.04766845703125, -0.0380859375, -0.035797119140625, -0.00090789794921875, 0.044097900390625, 0.047210693359375, -0.00649261474609375, -0.00949859619140625, -0.0390625, -0.0252685546875, -0.0144805908203125, 0.031707763671875, -0.00905609130859375, -0.0081024169921875, -0.041412353515625, 0.046142578125, -0.02117919921875, 0.02581787109375, 0.0032558441162109375, 0.036285400390625, -0.02685546875, 0.005046844482421875, -0.061248779296875, -0.07855224609375, 0.018035888671875, 0.051177978515625, -0.021148681640625, 0.032928466796875, 0.057708740234375, 0.052490234375, -0.0455322265625, -0.022186279296875, -0.0125579833984375, -0.03765869140625, 0.00443267822265625, -0.0316162109375, 0.0167236328125, 0.044281005859375, -0.0068817138671875, 0.0208740234375, 0.004505157470703125, 0.0614013671875, -0.038055419921875, 0.0180511474609375, -0.00743865966796875, -0.043609619140625, 0.04132080078125, -0.0254974365234375, 0.07171630859375, -0.0117950439453125, -0.004604339599609375, -0.0009617805480957031, -0.007747650146484375, -0.00859832763671875, -0.01548004150390625, 0.0187225341796875, 0.0037555694580078125, 0.0186767578125, -0.0177459716796875, -0.0234832763671875, -0.01128387451171875, 0.0004527568817138672, 0.018646240234375, 0.011566162109375, 0.0023326873779296875, 0.0017080307006835938, -0.036376953125, -0.00472259521484375, -0.004177093505859375, 0.0199127197265625, 0.0222930908203125, 0.0631103515625, -0.0029926300048828125, 0.018707275390625, 0.034698486328125, 0.0169830322265625, -0.033905029296875, 0.03253173828125, 0.00974273681640625, -0.03594970703125, -0.00470733642578125, -0.01288604736328125, -0.026458740234375, 0.0022220611572265625, 0.0142822265625, -0.01641845703125, -0.037200927734375, -0.00641632080078125, 0.0299072265625, 0.055816650390625, 0.01025390625, -0.033599853515625, -0.0034332275390625, -0.046966552734375, -0.0236358642578125, 0.03131103515625, -0.01265716552734375, -0.030517578125, 0.019378662109375, 0.0180511474609375, -0.0145111083984375, 0.03521728515625, -0.027130126953125, 0.054840087890625, 0.0330810546875, -0.00646209716796875, -0.031829833984375, -0.031463623046875, -0.0131378173828125, -0.01178741455078125, -0.00691986083984375, 0.0257568359375, -0.013641357421875, -0.0157470703125, -0.00299072265625, -0.0005612373352050781, 0.015533447265625, -0.02081298828125, 0.00470733642578125, -0.0030841827392578125, 0.007755279541015625, -0.004535675048828125, -0.02008056640625, -0.0067291259765625, -0.052093505859375, -0.0014963150024414062, 0.022796630859375, -0.0167694091796875, 0.043853759765625, 0.006870269775390625, 0.01258087158203125, 0.0273284912109375, 0.040008544921875, -0.10162353515625, 0.07208251953125, -0.005420684814453125, 0.014892578125, 0.00537109375, -0.004314422607421875, 0.0082550048828125, 0.02703857421875, -0.0299835205078125, -0.05877685546875, -0.013458251953125, 0.0328369140625, -0.0134429931640625, 0.01947021484375, 0.022064208984375, -0.0134735107421875, 0.0029773712158203125, 0.0222625732421875, 0.0017490386962890625, 0.0733642578125, -0.021728515625, -0.0036182403564453125, 0.022369384765625, 0.001880645751953125, -0.035430908203125, -0.0213775634765625, 0.0093231201171875, -0.0016384124755859375, -0.022064208984375, -0.0260467529296875, -0.0092926025390625, -0.0086517333984375, -0.041778564453125, -0.051483154296875, 0.0008177757263183594, 0.00833892822265625, -0.040863037109375, -0.007030487060546875, -0.0004775524139404297, -0.0166778564453125, 0.02093505859375, 0.0038604736328125, -0.0347900390625, 0.01715087890625, 0.032623291015625, 0.0041046142578125, 0.0234832763671875, -0.0009207725524902344, 0.024261474609375, -0.01702880859375, 0.03424072265625, 0.01435089111328125, -0.0179901123046875, 0.0312347412109375, -0.01183319091796875, 0.024383544921875, 0.074462890625, -0.011962890625, 0.003963470458984375, -0.0205230712890625, -0.0582275390625, -0.01412200927734375, -0.03204345703125, -0.049285888671875, -0.0306854248046875, 0.07183837890625, 0.0726318359375, 0.029754638671875, -0.0122222900390625, 0.0166473388671875, -0.035064697265625, 0.00946044921875, 0.0145416259765625, -0.0174713134765625, -0.01195526123046875, 0.026641845703125, 0.01708984375, -0.01001739501953125, -0.0154571533203125, 0.0099639892578125, -0.032867431640625, -0.0048370361328125, -0.0021762847900390625, -0.021728515625, -0.020721435546875, -0.0206451416015625, 0.04937744140625, -0.01123809814453125, 0.04864501953125, -0.01812744140625, 0.0305633544921875, 0.041351318359375, 0.0085601806640625, 0.03765869140625, 0.038177490234375, -0.057159423828125, -0.002941131591796875, 0.0218353271484375, 0.006183624267578125, -0.03314208984375, -0.0284881591796875, 0.036376953125, -0.010406494140625, -0.034393310546875, -0.0196075439453125, 0.03363037109375, 0.0133056640625, -0.05706787109375, 0.0633544921875, -0.0167999267578125, -0.0291748046875, -0.0269012451171875, 0.027435302734375, -0.0400390625, -0.0065155029296875, 0.01276397705078125, -0.0382080078125, 0.011749267578125, -0.01361846923828125, -0.00463104248046875, -0.01458740234375, 0.00241851806640625, -0.007282257080078125, -0.0184783935546875, 0.005138397216796875 ]
79a8aeda7ae91f32d4b59b26da2ea850c9d3ed42
Wordpress Stackexchange Q: how to get original image using wp_get_attachment_image_src I want to get the original image with the same width and height as uploaded. My original image is 630*370. Using the following function call I get a thumbnail sized at 630*198. wp_get_attachment_image_src($PriImgId,array('630','370')); How can I get it at 630*370 A: Try this : wp_get_attachment_image_src( $PriImgId, 'full' ); Also, for more options see the Codex.
Q: how to get original image using wp_get_attachment_image_src I want to get the original image with the same width and height as uploaded. My original image is 630*370. Using the following function call I get a thumbnail sized at 630*198. wp_get_attachment_image_src($PriImgId,array('630','370')); How can I get it at 630*370 A: Try this : wp_get_attachment_image_src( $PriImgId, 'full' ); Also, for more options see the Codex. A: There's wp_get_attachment_image_url introduced in WordPress 4.4.0. It takes these arguments: * *int $attachment_id - Image attachment ID. *string|array $size - Optional. Image size to retrieve. Accepts any valid image size, or an array of width and height values in pixels (in that order). Default 'thumbnail'. *bool $icon - Optional. Whether the image should be treated as an icon. Default false. Returns string (full attachment URL including domain) or false if no image was found. Example uses: $thumbnail = wp_get_attachment_image_url( $attachmentId, 'my-custom-size' ); $original = wp_get_attachment_image_url( $attachmentId, 'full' ); $square = wp_get_attachment_image_url( $attachmentId, [600, 600] ); Image sizes are usually defined in functions.php of your theme. WordPress documentation covers this in depth: Post Thumbnails / Thumbnail Sizes If an array of two numbers (width and height) is passed into the function, it tries to find the closets matching size while preserving the aspect ratio. Under the hood it uses image_get_intermediate_size to find the preferred size. A: I think you need to remove the quotes on '630' and '370'. Try this: wp_get_attachment_image_src($PriImgId,array( 630, 370 ) );
wordpress
{ "language": "en", "length": 238, "provenance": "stackexchange_00019.jsonl.gz:410586", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20785" }
[ 0.033447265625, -0.0282745361328125, -0.004947662353515625, -0.0248870849609375, -0.01495361328125, -0.031585693359375, 0.029571533203125, 0.00405120849609375, 0.023468017578125, -0.004718780517578125, -0.03509521484375, 0.021484375, -0.048675537109375, -0.0136260986328125, -0.012176513671875, -0.02838134765625, 0.06365966796875, -0.0380859375, 0.042572021484375, 0.00896453857421875, 0.01517486572265625, 0.0723876953125, 0.017486572265625, 0.0819091796875, 0.03533935546875, -0.019195556640625, 0.046722412109375, -0.01258087158203125, 0.00472259521484375, -0.0201416015625, 0.012664794921875, 0.01528167724609375, 0.0256195068359375, -0.00760650634765625, -0.0067138671875, 0.005054473876953125, 0.034576416015625, -0.02117919921875, -0.00695037841796875, 0.0290069580078125, 0.0179901123046875, 0.0022068023681640625, 0.0169830322265625, -0.007793426513671875, -0.0142822265625, -0.017364501953125, 0.0175018310546875, -0.0280303955078125, -0.006072998046875, 0.022064208984375, 0.023345947265625, 0.006343841552734375, 0.033233642578125, 0.00970458984375, -0.0066986083984375, -0.004772186279296875, -0.0159454345703125, 0.0117950439453125, 0.0223541259765625, -0.037628173828125, -0.0289764404296875, -0.01922607421875, 0.044097900390625, 0.01186370849609375, -0.0176239013671875, -0.004024505615234375, 0.0073089599609375, -0.0144500732421875, 0.0038166046142578125, -0.01079559326171875, 0.0278778076171875, 0.0131378173828125, -0.0128326416015625, -0.0252838134765625, -0.0020389556884765625, 0.033355712890625, -0.0166473388671875, -0.0143890380859375, 0.0215301513671875, -0.012359619140625, 0.0400390625, -0.043548583984375, -0.020965576171875, 0.044952392578125, 0.01800537109375, 0.081787109375, 0.01378631591796875, -0.039825439453125, -0.01222991943359375, -0.03631591796875, -0.02197265625, -0.06304931640625, -0.01085662841796875, -0.00832366943359375, -0.025634765625, -0.042236328125, 0.0103912353515625, 0.00714874267578125, 0.005016326904296875, -0.0006871223449707031, 0.0290374755859375, -0.05224609375, 0.03106689453125, -0.0377197265625, 0.0014667510986328125, -0.01251220703125, 0.00024378299713134766, 0.0132598876953125, 0.0423583984375, 0.041961669921875, -0.014617919921875, 0.050689697265625, -0.030517578125, -0.019805908203125, -0.009002685546875, 0.054046630859375, -0.0274810791015625, 0.0258941650390625, -0.0157928466796875, 0.0269622802734375, -0.027099609375, -0.005401611328125, 0.033966064453125, 0.0026683807373046875, 0.048492431640625, 0.0445556640625, -0.0082550048828125, -0.032989501953125, 0.04473876953125, 0.0110015869140625, -0.0266571044921875, 0.00972747802734375, -0.007755279541015625, -0.03955078125, -0.0195465087890625, -0.0101318359375, -0.046966552734375, -0.032928466796875, -0.0176544189453125, 0.0233917236328125, -0.0279541015625, -0.016571044921875, 0.06103515625, -0.0249786376953125, -0.00939178466796875, -0.0004794597625732422, -0.01373291015625, 0.031982421875, 0.0251312255859375, -0.0271148681640625, 0.0206451416015625, -0.042724609375, 0.010894775390625, 0.017303466796875, -0.0272064208984375, 0.0103912353515625, 0.037841796875, -0.0128631591796875, -0.032257080078125, -0.05474853515625, 0.0123291015625, 0.0093994140625, 0.0207366943359375, 0.023590087890625, 0.006282806396484375, 0.00356292724609375, -0.044189453125, 0.0084381103515625, 0.029022216796875, 0.04327392578125, 0.0038852691650390625, -0.0163116455078125, 0.017852783203125, 0.01053619384765625, -0.0157928466796875, -0.004138946533203125, 0.010772705078125, -0.035186767578125, 0.01861572265625, 0.030426025390625, -0.00238800048828125, -0.0036144256591796875, 0.00839996337890625, -0.0013370513916015625, 0.0014896392822265625, -0.0418701171875, -0.01172637939453125, -0.01424407958984375, 0.03900146484375, 0.0236358642578125, -0.009307861328125, -0.01401519775390625, -0.0126190185546875, 0.0261688232421875, -0.030792236328125, 0.0171051025390625, -0.039520263671875, 0.0296173095703125, -0.03399658203125, -0.01751708984375, 0.06494140625, 0.0038547515869140625, 0.018524169921875, -0.01049041748046875, -0.043243408203125, 0.0117340087890625, -0.0183868408203125, 0.0145721435546875, -0.031494140625, 0.06036376953125, 0.02410888671875, 0.0286407470703125, -0.046539306640625, 0.01123809814453125, 0.024993896484375, -0.01061248779296875, -0.0188751220703125, 0.0188140869140625, -0.00725555419921875, 0.032501220703125, -0.047882080078125, -0.03076171875, -0.04119873046875, -0.0039825439453125, 0.00970458984375, 0.005130767822265625, -0.0137176513671875, -0.0036258697509765625, -0.0023441314697265625, 0.01160430908203125, -0.012481689453125, 0.02740478515625, -0.061614990234375, -0.01387786865234375, -0.01076507568359375, -0.0193634033203125, -0.0061492919921875, -0.0587158203125, 0.0361328125, 0.035003662109375, 0.043975830078125, 0.0589599609375, 0.0092620849609375, 0.022705078125, 0.130859375, 0.0213165283203125, 0.0123291015625, 0.0035228729248046875, -0.005649566650390625, -0.0113372802734375, 0.0016002655029296875, -0.029510498046875, 0.02978515625, -0.0645751953125, 0.00823211669921875, 0.045196533203125, -0.013702392578125, 0.029754638671875, -0.021026611328125, 0.06585693359375, -0.04644775390625, 0.06915283203125, 0.07666015625, -0.01291656494140625, -0.016143798828125, 0.0303497314453125, 0.00829315185546875, 0.0196380615234375, -0.038116455078125, 0.029876708984375, 0.024017333984375, 0.02655029296875, -0.0004444122314453125, 0.035491943359375, -0.004131317138671875, -0.003910064697265625, -0.0016632080078125, -0.00231170654296875, -0.011749267578125, -0.006038665771484375, 0.0034542083740234375, 0.017181396484375, -0.0280609130859375, -0.004119873046875, -0.0018215179443359375, -0.034698486328125, 0.0036296844482421875, 0.0218353271484375, 0.00405120849609375, 0.005527496337890625, 0.014923095703125, 0.035003662109375, -0.002410888671875, 0.034942626953125, 0.006656646728515625, 0.0019397735595703125, 0.01219940185546875, -0.04022216796875, 0.04266357421875, -0.022552490234375, 0.0799560546875, 0.0841064453125, -0.0205230712890625, 0.0501708984375, -0.0158233642578125, -0.04705810546875, -0.038238525390625, 0.0010395050048828125, -0.039306640625, -0.0205078125, -0.060089111328125, 0.0296630859375, -0.0169677734375, 0.0033740997314453125, -0.04437255859375, -0.056121826171875, -0.01160430908203125, -0.0190277099609375, -0.07281494140625, -0.0081787109375, -0.0174713134765625, -0.10504150390625, -0.02337646484375, -0.0164947509765625, -0.060546875, 0.0233306884765625, 0.0072479248046875, 0.000751495361328125, 0.0186920166015625, 0.0021648406982421875, -0.033447265625, -0.00463104248046875, -0.0538330078125, -0.0093994140625, 0.005031585693359375, 0.020477294921875, 0.00392913818359375, -0.036285400390625, -0.001186370849609375, -0.0187835693359375, 0.0118408203125, 0.080078125, 0.0011081695556640625, -0.033050537109375, -0.040130615234375, 0.015777587890625, -0.0051116943359375, -0.01007843017578125, -0.01425933837890625, 0.03118896484375, -0.00817108154296875, 0.01187896728515625, -0.040069580078125, -0.0789794921875, -0.0217132568359375, 0.0260162353515625, 0.0224151611328125, -0.03515625, 0.04150390625, -0.06488037109375, -0.034881591796875, 0.003055572509765625, -0.053131103515625, 0.0253143310546875, 0.0281219482421875, -0.011383056640625, 0.0171051025390625, 0.0031299591064453125, -0.001094818115234375, -0.00921630859375, 0.02252197265625, -0.028472900390625, 0.0718994140625, -0.01253509521484375, -0.00867462158203125, -0.0355224609375, -0.01410675048828125, -0.0241241455078125, 0.07318115234375, -0.0009584426879882812, 0.00949859619140625, -0.009552001953125, -0.006683349609375, -0.028533935546875, -0.04339599609375, 0.046051025390625, -0.0232391357421875, 0.01233673095703125, -0.0382080078125, -0.0259552001953125, -0.0132293701171875, 0.0799560546875, -0.019500732421875, -0.041412353515625, 0.0029888153076171875, 0.034637451171875, -0.0276336669921875, -0.047576904296875, 0.002960205078125, -0.01023101806640625, -0.07281494140625, -0.0117034912109375, 0.021453857421875, -0.064208984375, 0.004161834716796875, -0.0290679931640625, -0.0743408203125, -0.0252227783203125, 0.0226593017578125, 0.06365966796875, 0.0033111572265625, 0.017852783203125, -0.010894775390625, 0.057586669921875, -0.0227508544921875, 0.0019435882568359375, -0.0914306640625, -0.0178985595703125, -0.0007123947143554688, 0.0762939453125, -0.05364990234375, 0.091064453125, -0.031768798828125, 0.060272216796875, -0.047515869140625, 0.03887939453125, -0.025543212890625, 0.04827880859375, -0.02374267578125, -0.0077972412109375, -0.00249481201171875, -0.0201568603515625, -0.0204315185546875, -0.0675048828125, -0.04376220703125, -0.08502197265625, -0.042083740234375, -0.00022995471954345703, -0.0292816162109375, 0.0029354095458984375, -0.036407470703125, -0.0251312255859375, 0.0033550262451171875, 0.01334381103515625, -0.01369476318359375, 0.00467681884765625, -0.01073455810546875, -0.0286865234375, 0.048370361328125, 0.055328369140625, -0.0278472900390625, -0.0175018310546875, 0.03961181640625, 0.0106964111328125, -0.040069580078125, -0.056427001953125, -0.01160430908203125, 0.04412841796875, 0.01258087158203125, 0.0239105224609375, 0.044525146484375, -0.015869140625, -0.0033130645751953125, 0.03375244140625, 0.04693603515625, -0.0338134765625, 0.015655517578125, 0.0085296630859375, -0.0021724700927734375, 0.01497650146484375, 0.026336669921875, -0.010650634765625, 0.021942138671875, -0.01497650146484375, 0.01007080078125, 0.007381439208984375, -0.00043201446533203125, -0.03094482421875, 0.0175628662109375, -0.002750396728515625, -0.02691650390625, 0.01483917236328125, 0.006275177001953125, 0.03509521484375, 0.0340576171875, -0.0169830322265625, 0.0137481689453125, 0.0212860107421875, 0.0024776458740234375, 0.0013256072998046875, 0.032867431640625, 0.004405975341796875, 0.044036865234375, -0.01284027099609375, -0.01043701171875, -0.0292510986328125, 0.0207061767578125, -0.03033447265625, 0.0090484619140625, -0.01049041748046875, -0.07110595703125, -0.0009746551513671875, -0.033660888671875, -0.034576416015625, -0.03717041015625, 0.046630859375, 0.0291900634765625, -0.0254058837890625, -0.03125, -0.04541015625, -0.01727294921875, -0.059173583984375, 0.0230255126953125, 0.0090484619140625, -0.01488494873046875, 0.07049560546875, -0.0026531219482421875, -0.00160980224609375, 0.0321044921875, -0.0184783935546875, 0.00047469139099121094, 0.0068817138671875, 0.007595062255859375, -0.00007718801498413086, 0.03839111328125, -0.0230865478515625, 0.037506103515625, 0.04156494140625, -0.070068359375, -0.0182342529296875, 0.02838134765625, 0.08062744140625, -0.0220489501953125, -0.035491943359375, 0.01727294921875, -0.0095977783203125, 0.00992584228515625, 0.0328369140625, 0.005603790283203125, -0.0338134765625, -0.0124359130859375, 0.00901031494140625, 0.035491943359375, -0.034515380859375, -0.01555633544921875, 0.006443023681640625, -0.00960540771484375, -0.001983642578125, 0.0037670135498046875, -0.03558349609375, 0.0079345703125, 0.0226593017578125, 0.014678955078125, -0.0055694580078125, -0.047149658203125, 0.06103515625, -0.0015134811401367188, -0.015869140625, -0.0149383544921875, 0.0648193359375, -0.00608062744140625, 0.024261474609375, -0.02593994140625, -0.005657196044921875, -0.0426025390625, -0.003204345703125, 0.0269317626953125, 0.0006804466247558594, -0.022613525390625, -0.00865936279296875, 0.004589080810546875, -0.0024051666259765625, 0.09527587890625, 0.004474639892578125, -0.00431060791015625, -0.037872314453125, -0.0273590087890625, 0.021026611328125, 0.006580352783203125, 0.03515625, 0.0177459716796875, 0.0193634033203125, -0.031890869140625, 0.037261962890625, -0.0174713134765625, 0.0145721435546875, 0.0101318359375, 0.0115509033203125, -0.01605224609375, -0.005016326904296875, -0.00939178466796875, -0.004791259765625, -0.0175323486328125, -0.007724761962890625, 0.0034465789794921875, 0.027557373046875, 0.01190185546875, -0.02716064453125, -0.00496673583984375, 0.010589599609375, -0.034942626953125, -0.0214691162109375, -0.00855255126953125, -0.032623291015625, 0.1036376953125, -0.008392333984375, -0.01617431640625, 0.001834869384765625, -0.0330810546875, 0.038818359375, 0.01450347900390625, 0.034149169921875, -0.02020263671875, -0.06121826171875, -0.01512908935546875, 0.07537841796875, 0.059051513671875, -0.002552032470703125, 0.060760498046875, -0.034637451171875, 0.0218048095703125, 0.07781982421875, 0.01035308837890625, -0.004001617431640625, 0.0132904052734375, -0.058135986328125, -0.0176544189453125, 0.04400634765625, 0.025482177734375, -0.005168914794921875, 0.0419921875, -0.0013799667358398438, 0.038177490234375, -0.05499267578125, 0.045440673828125, 0.050628662109375, 0.0224761962890625, 0.0279998779296875, -0.05047607421875, 0.034515380859375, 0.0116424560546875, -0.001209259033203125, -0.043182373046875, 0.06304931640625, -0.043426513671875, -0.001674652099609375, 0.01076507568359375, -0.03814697265625, -0.02301025390625, -0.0169830322265625, 0.0015869140625, 0.00872802734375, -0.03363037109375, 0.02789306640625, 0.024139404296875, 0.01287078857421875, -0.031585693359375, 0.02386474609375, -0.0616455078125, 0.01873779296875, -0.0236663818359375, -0.0208892822265625, -0.0242156982421875, 0.036834716796875, -0.039337158203125, 0.005340576171875, 0.0311737060546875, 0.0211639404296875, -0.00992584228515625, -0.00533294677734375, -0.00034308433532714844, -0.03717041015625, 0.031829833984375, -0.024749755859375, 0.021484375, 0.025115966796875, -0.07208251953125, 0.00267791748046875, -0.02618408203125, 0.01126861572265625, 0.006053924560546875, 0.011932373046875, 0.040679931640625, -0.042144775390625, -0.000015676021575927734, 0.04290771484375, 0.0430908203125, -0.005954742431640625, 0.001312255859375, 0.0301055908203125, -0.04864501953125, -0.009307861328125, 0.0012531280517578125, -0.00868988037109375, 0.023040771484375, -0.0042724609375, -0.031585693359375, 0.03082275390625, 0.004108428955078125, 0.0126953125, 0.018585205078125, -0.0009851455688476562, -0.0019121170043945312, 0.0021038055419921875, -0.01226806640625, -0.01428985595703125, -0.0313720703125, -0.0219879150390625, -0.0396728515625, 0.01849365234375, -0.042327880859375, 0.003955841064453125, 0.044769287109375, 0.01085662841796875, -0.060821533203125, -0.00766754150390625, 0.05133056640625, 0.051849365234375, 0.03216552734375, 0.03802490234375, 0.01141357421875, -0.02777099609375, 0.04290771484375, -0.01275634765625, 0.0146636962890625, -0.0003540515899658203, 0.0123138427734375, 0.048095703125, 0.004482269287109375, -0.00768280029296875, -0.005764007568359375, 0.10040283203125, -0.066162109375, 0.00140380859375, 0.06842041015625, -0.0615234375, 0.0562744140625, 0.0198211669921875, 0.038970947265625, -0.0081787109375, -0.0303802490234375, 0.00830078125, 0.0335693359375, -0.0007805824279785156, 0.021331787109375, 0.01175689697265625, 0.016021728515625, 0.04107666015625, 0.018402099609375, 0.005237579345703125, 0.04449462890625, -0.00803375244140625, -0.004009246826171875, 0.0360107421875, 0.0235443115234375, -0.00272369384765625, 0.0169219970703125, 0.0712890625, 0.0244140625, -0.0263671875, -0.0169525146484375, 0.01824951171875, 0.01482391357421875, -0.005367279052734375, 0.0023288726806640625, 0.0123443603515625, -0.058685302734375, -0.011444091796875, -0.01454925537109375, 0.004032135009765625, 0.039276123046875, 0.038238525390625, 0.0216064453125, 0.0108184814453125, -0.04443359375, -0.016571044921875, -0.01324462890625, 0.00046539306640625, 0.0091094970703125, -0.0036792755126953125, -0.00363922119140625, 0.035400390625, 0.04150390625, 0.02349853515625, -0.0207672119140625, 0.02874755859375, -0.01010894775390625, 0.0238037109375, -0.016937255859375, -0.00920867919921875, -0.0133056640625, 0.037322998046875, -0.0221405029296875, -0.0254058837890625, 0.020172119140625, 0.01617431640625, -0.07879638671875, -0.0115814208984375, 0.0372314453125, -0.03582763671875, 0.0419921875, -0.0219879150390625, 0.02313232421875, 0.0207977294921875, -0.018463134765625, -0.02557373046875, -0.0289459228515625, 0.07598876953125, -0.0029926300048828125, 0.05035400390625, 0.0005297660827636719, 0.0176849365234375, 0.0025882720947265625, -0.0099029541015625, 0.012176513671875, 0.0189666748046875, -0.05255126953125, 0.006114959716796875, -0.043914794921875, -0.027801513671875, 0.0197906494140625, 0.0172882080078125, -0.022064208984375, 0.0276336669921875, 0.01560211181640625, 0.00029015541076660156, -0.01666259765625, -0.001033782958984375, 0.0260162353515625, -0.0240478515625, 0.01165771484375, 0.00939178466796875, -0.045654296875, -0.0298919677734375, -0.031494140625, 0.041046142578125, 0.024078369140625, 0.032806396484375, -0.001628875732421875, 0.03167724609375, 0.00896453857421875, 0.0003006458282470703, -0.003971099853515625, 0.0159454345703125, 0.00968170166015625, -0.00867462158203125, -0.01056671142578125, -0.02294921875, 0.007167816162109375, -0.006519317626953125, 0.0213775634765625, -0.04791259765625, -0.036468505859375, -0.0033130645751953125, 0.02838134765625, 0.01145172119140625, 0.01290130615234375, -0.0264739990234375, -0.01629638671875, 0.0027446746826171875, -0.0108642578125, 0.006694793701171875, 0.009857177734375, 0.044921875, 0.018707275390625, 0.065673828125, 0.0245513916015625, 0.042266845703125, 0.0160980224609375, 0.080322265625, 0.05340576171875, -0.0712890625, -0.029998779296875, -0.0123138427734375, -0.0143585205078125, 0.0174713134765625, -0.0095672607421875, 0.05615234375, -0.01406097412109375, 0.03887939453125, 0.046234130859375, -0.01230621337890625, 0.0316162109375, -0.0230712890625, -0.033355712890625, 0.0277557373046875, 0.020050048828125, -0.0190582275390625, -0.049530029296875, -0.0128173828125, -0.006931304931640625, -0.00809478759765625, 0.0211334228515625, 0.019439697265625, -0.0072479248046875, 0.0275726318359375, -0.038421630859375, 0.01788330078125, 0.0246429443359375, -0.028045654296875, 0.004894256591796875, 0.0284271240234375, -0.048248291015625, 0.01641845703125, -0.03717041015625, -0.0011138916015625, -0.01436614990234375, -0.035858154296875, -0.043060302734375, -0.040771484375, 0.021331787109375, -0.02166748046875, 0.02655029296875, 0.04766845703125, -0.01276397705078125, -0.0007076263427734375, 0.05206298828125, 0.00695037841796875, 0.1107177734375, -0.08843994140625, -0.026031494140625, -0.0271453857421875, 0.0292816162109375, -0.01335906982421875, -0.01528167724609375, 0.01381683349609375, -0.0265960693359375, -0.0068511962890625, -0.0457763671875, 0.0211944580078125, 0.0142669677734375, -0.0248870849609375, -0.0396728515625, -0.039886474609375, -0.00525665283203125, -0.037811279296875, -0.0008845329284667969, 0.0025768280029296875, 0.00626373291015625, 0.00408935546875, 0.00218963623046875, 0.0041046142578125, -0.0184783935546875, -0.00019276142120361328, 0.01540374755859375, -0.034912109375, 0.047515869140625, -0.042083740234375, -0.038970947265625, 0.007480621337890625, 0.0173797607421875, 0.01494598388671875, -0.0184783935546875, -0.02008056640625, 0.047271728515625, 0.037078857421875, -0.0084381103515625, -0.0026760101318359375, 0.030029296875, -0.0206756591796875, -0.031951904296875, -0.0202484130859375, 0.0117645263671875, 0.023040771484375, 0.058074951171875, 0.041046142578125, -0.0004780292510986328, -0.043121337890625, 0.0170135498046875, 0.0019435882568359375, -0.036590576171875, -0.0241241455078125, 0.00927734375, -0.055938720703125, -0.03338623046875, -0.00734710693359375, 0.01053619384765625, -0.0212860107421875, -0.008758544921875, -0.029449462890625, -0.0087432861328125, -0.005645751953125, 0.0215606689453125, -0.072998046875, 0.01065826416015625, 0.051116943359375, -0.03863525390625, -0.006999969482421875, -0.01125335693359375, -0.0031566619873046875, 0.01522064208984375, -0.006805419921875, -0.0219573974609375, 0.0584716796875, -0.0205841064453125, -0.03387451171875, 0.0216064453125, -0.0401611328125, 0.028839111328125, 0.0260772705078125, 0.0083770751953125, 0.0091552734375, -0.00559234619140625, 0.0285797119140625, 0.0228729248046875, -0.032470703125, -0.01445770263671875, -0.016082763671875, -0.01371002197265625, 0.009033203125, -0.01495361328125, 0.01537322998046875, 0.0187835693359375, -0.0203704833984375, 0.05169677734375, -0.007572174072265625, -0.00008165836334228516, -0.0144500732421875, -0.059844970703125, -0.0287628173828125, -0.007762908935546875, -0.03497314453125, -0.033905029296875, 0.0172882080078125 ]
903be11ee17cbd3eb38c2a1dd920864f2b2bfb78
Wordpress Stackexchange Q: Print Current Post Index number within Loop I'm working on WordPress where I have following code to get posts within loop. <?php $posts = $woo_options['woo_latest_entries']; query_posts('post_type=post&category_name=company'); if ( have_posts() ) : while ( have_posts() ) : the_post(); $count++; ?> /// Post Content Goes Here // <?php endwhile; endif; ?> Which Output posts inside Loops something like this... Post Goes Here .... Other Post Goes Here .... Another Post Goes Here .... ..... What I want is to print current posts index number within loop. Example 1. Post Goes Here .... 2. Other Post Goes Here .... 3. Another Post Goes Here .... ..... How Can I Achieve This ? Thanks. EDIT Ohh ! I can do it this way .. <?php echo $wp_query->current_post +1; ?> Is there any other / Better way ? A: If it's just an esthetic thing and you don't need to use the count variable for further coding, you can just wrap your posts in an ol tag : <?php if ( have_posts() ) : ?> <ol> <?php while ( have_posts() ) : the_post(); ?> <li> <!-- Post Content Goes Here --> </li> <?php endwhile; ?> </ol> <?php endif; ?>
Q: Print Current Post Index number within Loop I'm working on WordPress where I have following code to get posts within loop. <?php $posts = $woo_options['woo_latest_entries']; query_posts('post_type=post&category_name=company'); if ( have_posts() ) : while ( have_posts() ) : the_post(); $count++; ?> /// Post Content Goes Here // <?php endwhile; endif; ?> Which Output posts inside Loops something like this... Post Goes Here .... Other Post Goes Here .... Another Post Goes Here .... ..... What I want is to print current posts index number within loop. Example 1. Post Goes Here .... 2. Other Post Goes Here .... 3. Another Post Goes Here .... ..... How Can I Achieve This ? Thanks. EDIT Ohh ! I can do it this way .. <?php echo $wp_query->current_post +1; ?> Is there any other / Better way ? A: If it's just an esthetic thing and you don't need to use the count variable for further coding, you can just wrap your posts in an ol tag : <?php if ( have_posts() ) : ?> <ol> <?php while ( have_posts() ) : the_post(); ?> <li> <!-- Post Content Goes Here --> </li> <?php endwhile; ?> </ol> <?php endif; ?> A: for some reason, you already have a counter variable in the loop; if this is not used for other purposes, simply echo it: <?php echo $count.'.'; ?> /// Post Content Goes Here // A: Actually I want to assign ID's as per post index ! Here's your code that I modified. <?php global $wp_query; $posts = $woo_options['woo_latest_entries']; query_posts('post_type=post&category_name=company'); if ( have_posts() ) : while ( have_posts() ) : the_post(); $count++; $index = $wp_query->current_post + 1; ?> <div id="my_post_<?php echo $index; ?>"> <!-- Post Content Goes Here --> </div> <?php endwhile; endif; ?> A: Hi I bumped onto this thread, wondering how to do that too. Found out it's bloody easy. In the main template file, for example index.php, declare a variable $post_idx before the loop, and within the loop increment that var. Like this: <?php $post_idx = 0; while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); $post_idx++; ?> <?php endwhile; ?> Then in your content template (for example content.php) that is executed everytime within the loop, just make $post_idx global and then use it to your needs: global $post_idx; print "<p>{$post_idx}</p>"; That's it! A: Even if this question is old, I'll lay this here in case someone coming from a Google Search needs a more flexible answer. Over the time, I developped a solution to be WP_Query or global query agnostic. When you use a custom WP_Query, you are confined to use only include or require to be able to use the variables on your $custom_query, but in some cases (which are most cases for me!), the template parts I create are some times used in a global query (such as archive templates) or in a custom WP_Query (like querying a custom post type on the front page). That means that I need a counter to be globally accessible regardless of the kind of query. WordPress doesn't make this available, but here's how to make it happen thanks to some hooks. Place this in your functions.php /** * Create a globally accessible counter for all queries * Even custom new WP_Query! */ // Initialize your variables add_action('init', function(){ global $cqc; $cqc = -1; }); // At loop start, always make sure the counter is -1 // This is because WP_Query calls "next_post" for each post, // even for the first one, which increments by 1 // (meaning the first post is going to be 0 as expected) add_action('loop_start', function($q){ global $cqc; $cqc = -1; }, 100, 1); // At each iteration of a loop, this hook is called // We store the current instance's counter in our global variable add_action('the_post', function($p, $q){ global $cqc; $cqc = $q->current_post; }, 100, 2); // At each end of the query, we clean up by setting the counter to // the global query's counter. This allows the custom $cqc variable // to be set correctly in the main page, post or query, even after // having executed a custom WP_Query. add_action( 'loop_end', function($q){ global $wp_query, $cqc; $cqc = $wp_query->current_post; }, 100, 1); The beauty of this solution is that, as you enter in a custom query and come back in the general loop, it is going to be reset to the right counter either way. As long as you are inside a query (which is always the case in WordPress, little did you know), your counter is going to be correct. That is because the main query is executed with the same class! Example : global $cqc; while(have_posts()): the_post(); echo $cqc; // Will output 0 the_title(); $custom_query = new WP_Query(array('post_type' => 'portfolio')); while($custom_query->have_posts()): $custom_query->the_post(); echo $cqc; // Will output 0, 1, 2, 34 the_title(); endwhile; echo $cqc; // Will output 0 again endwhile; A: I was looking to do the same thing, but outside the loop. Basically I wanted to be able to find out the index of a post from its ID. Here's what I came up with: <?php function sleek_get_post_index ($post) { $allPosts = get_posts([ 'post_type' => $post->post_type, 'numberposts' => -1 ]); $index = 0; foreach ($allPosts as $p) { $index++; if ($p->ID == $post->ID) { break; } } return $index; } This was purely for design as the client wanted numbers next to the posts, even if the post was by itself in a "featured post" box. I also added a leading zero using: <?php echo str_pad(sleek_get_post_index($post), 2, '0', STR_PAD_LEFT) ?>.
wordpress
{ "language": "en", "length": 920, "provenance": "stackexchange_00019.jsonl.gz:410587", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20789" }
[ 0.05029296875, 0.0088043212890625, 0.01132965087890625, -0.0003180503845214844, 0.024261474609375, -0.040557861328125, 0.06195068359375, -0.03887939453125, 0.006603240966796875, 0.01177215576171875, -0.06396484375, 0.0088043212890625, -0.0550537109375, -0.0127410888671875, 0.005702972412109375, -0.05645751953125, 0.05194091796875, -0.06597900390625, 0.0305328369140625, 0.00894927978515625, -0.0254364013671875, 0.035003662109375, 0.07586669921875, 0.0266876220703125, 0.00479888916015625, -0.024658203125, 0.09234619140625, -0.01032257080078125, 0.0110321044921875, -0.03143310546875, 0.0205230712890625, -0.006000518798828125, 0.0240631103515625, -0.0128936767578125, 0.00266265869140625, 0.007476806640625, 0.00001519918441772461, -0.01329803466796875, 0.0107269287109375, 0.0154266357421875, 0.01393890380859375, -0.010284423828125, 0.043609619140625, -0.006702423095703125, -0.0036716461181640625, 0.00969696044921875, 0.00884246826171875, -0.03851318359375, 0.01154327392578125, -0.00911712646484375, 0.0117645263671875, 0.0248870849609375, 0.0218505859375, -0.005046844482421875, -0.01442718505859375, 0.0143585205078125, -0.003940582275390625, -0.032806396484375, 0.06024169921875, -0.044677734375, -0.044952392578125, -0.0653076171875, 0.055694580078125, -0.023773193359375, 0.001667022705078125, 0.0013294219970703125, 0.0231170654296875, 0.010040283203125, -0.04144287109375, -0.017333984375, 0.036224365234375, -0.01058197021484375, 0.0177459716796875, 0.0161895751953125, 0.01282501220703125, -0.07586669921875, 0.0064697265625, -0.053375244140625, 0.01203155517578125, 0.0236053466796875, -0.04351806640625, 0.01739501953125, -0.059814453125, 0.0030651092529296875, -0.0241546630859375, 0.005046844482421875, -0.0149993896484375, 0.00531005859375, 0.014739990234375, -0.039459228515625, -0.0185394287109375, 0.03619384765625, 0.01251220703125, -0.01029205322265625, -0.06219482421875, -0.0291748046875, 0.0035533905029296875, 0.0303802490234375, -0.01175689697265625, -0.0016393661499023438, -0.02398681640625, -0.0265960693359375, -0.01739501953125, -0.0176849365234375, 0.0204925537109375, 0.02392578125, -0.01270294189453125, 0.024200439453125, 0.07177734375, 0.0230712890625, 0.007076263427734375, 0.061798095703125, -0.031524658203125, -0.045989990234375, 0.00311279296875, 0.04400634765625, -0.033203125, 0.0247802734375, 0.005115509033203125, 0.0202789306640625, -0.002872467041015625, 0.02764892578125, -0.021087646484375, -0.034332275390625, 0.019439697265625, 0.02032470703125, 0.0025196075439453125, -0.024749755859375, 0.051116943359375, 0.0458984375, -0.015838623046875, -0.02020263671875, 0.0201416015625, 0.02642822265625, 0.0103912353515625, -0.0302276611328125, 0.010009765625, -0.0232086181640625, 0.0055694580078125, -0.0181884765625, -0.0090789794921875, -0.001300811767578125, 0.006412506103515625, -0.035491943359375, 0.0020160675048828125, 0.034881591796875, 0.0184326171875, 0.005832672119140625, -0.0270233154296875, -0.035614013671875, 0.0013151168823242188, -0.03363037109375, 0.0166015625, -0.025848388671875, 0.0207366943359375, -0.038116455078125, 0.002361297607421875, -0.0301055908203125, 0.025146484375, -0.0201263427734375, 0.03424072265625, 0.0123748779296875, 0.0175323486328125, -0.06695556640625, -0.07403564453125, -0.022491455078125, -0.08697509765625, -0.0181732177734375, 0.019073486328125, 0.029022216796875, 0.01544952392578125, 0.0034008026123046875, 0.0034351348876953125, -0.005840301513671875, -0.01338958740234375, -0.02410888671875, -0.0276947021484375, -0.0238800048828125, 0.0345458984375, 0.045867919921875, -0.01393890380859375, -0.0325927734375, 0.0106353759765625, -0.0029392242431640625, -0.057220458984375, 0.04144287109375, 0.01502227783203125, 0.04071044921875, 0.0087738037109375, 0.0089263916015625, 0.07037353515625, 0.01210784912109375, -0.06365966796875, 0.00904083251953125, -0.004383087158203125, 0.0019426345825195312, 0.005390167236328125, -0.0009074211120605469, 0.005252838134765625, -0.00797271728515625, 0.005523681640625, -0.005825042724609375, -0.0078277587890625, 0.0004565715789794922, -0.031463623046875, -0.0196380615234375, -0.0027942657470703125, 0.027008056640625, 0.0236053466796875, 0.01458740234375, 0.013336181640625, 0.0124969482421875, -0.0183563232421875, -0.0255889892578125, -0.060089111328125, 0.0022602081298828125, -0.0318603515625, -0.0217132568359375, -0.002223968505859375, 0.00860595703125, 0.0286865234375, 0.0182037353515625, 0.003726959228515625, 0.0177154541015625, 0.09942626953125, 0.0015993118286132812, -0.027557373046875, -0.032440185546875, 0.026092529296875, 0.0379638671875, -0.0955810546875, 0.01126861572265625, 0.0015878677368164062, -0.020751953125, -0.0482177734375, -0.0125579833984375, -0.003429412841796875, -0.0276336669921875, 0.007778167724609375, 0.05023193359375, 0.029693603515625, 0.037506103515625, 0.0029315948486328125, 0.005275726318359375, 0.061798095703125, -0.020111083984375, 0.01517486572265625, -0.026092529296875, 0.0190887451171875, 0.05389404296875, 0.0171661376953125, 0.0328369140625, 0.008758544921875, 0.02239990234375, 0.004192352294921875, 0.03973388671875, 0.0124969482421875, 0.0207977294921875, -0.045562744140625, 0.007282257080078125, 0.0014963150024414062, -0.0303497314453125, -0.0297393798828125, -0.0101470947265625, 0.03594970703125, -0.01387786865234375, 0.024169921875, 0.01349639892578125, -0.0306396484375, -0.00650787353515625, 0.0215911865234375, 0.01297760009765625, 0.0196380615234375, 0.0140838623046875, -0.0858154296875, 0.0191192626953125, -0.030181884765625, 0.0240325927734375, 0.0208282470703125, -0.0115203857421875, -0.0153656005859375, 0.0302276611328125, -0.032623291015625, -0.0105743408203125, -0.025909423828125, -0.01454925537109375, -0.0059661865234375, 0.01027679443359375, 0.0005712509155273438, -0.02813720703125, 0.0032520294189453125, 0.0333251953125, -0.060699462890625, 0.07904052734375, -0.0303497314453125, -0.0168609619140625, 0.019012451171875, -0.064697265625, 0.052703857421875, -0.050323486328125, 0.01776123046875, 0.04815673828125, -0.024444580078125, 0.0159454345703125, 0.010711669921875, -0.0017604827880859375, -0.0023212432861328125, 0.027557373046875, 0.00733184814453125, 0.0110626220703125, -0.050445556640625, 0.021942138671875, 0.0185699462890625, 0.07183837890625, 0.0188751220703125, -0.040557861328125, 0.0391845703125, 0.0328369140625, -0.08233642578125, -0.11785888671875, 0.0226593017578125, -0.0518798828125, -0.01898193359375, -0.0136260986328125, -0.032562255859375, -0.0098876953125, -0.0036411285400390625, -0.009185791015625, -0.0241241455078125, -0.01146697998046875, -0.050018310546875, -0.06365966796875, -0.06256103515625, 0.0176239013671875, -0.008148193359375, 0.0304718017578125, -0.0036411285400390625, 0.05047607421875, 0.002445220947265625, -0.075927734375, -0.0599365234375, 0.034912109375, -0.042877197265625, -0.046722412109375, -0.051361083984375, 0.0162506103515625, -0.01041412353515625, 0.00885009765625, 0.006542205810546875, -0.0290069580078125, 0.0257720947265625, -0.0010595321655273438, -0.0025196075439453125, 0.01061248779296875, 0.0328369140625, -0.0127716064453125, -0.0068817138671875, 0.050323486328125, 0.03472900390625, -0.008544921875, -0.003139495849609375, -0.01276397705078125, -0.037628173828125, -0.01348876953125, 0.0163726806640625, 0.0004191398620605469, 0.0026988983154296875, -0.0206451416015625, -0.0227203369140625, -0.002140045166015625, -0.01087188720703125, -0.043609619140625, 0.08551025390625, 0.017669677734375, 0.010650634765625, 0.0015735626220703125, -0.0156707763671875, -0.00769805908203125, 0.026611328125, -0.014801025390625, 0.04827880859375, -0.015350341796875, 0.05511474609375, -0.05511474609375, -0.0205535888671875, 0.0295562744140625, -0.005771636962890625, 0.0023193359375, -0.01364898681640625, -0.030609130859375, 0.0009016990661621094, 0.060302734375, -0.065185546875, -0.022705078125, 0.0079193115234375, 0.0189208984375, -0.00235748291015625, -0.048828125, -0.0197906494140625, -0.032379150390625, -0.0225372314453125, -0.0023746490478515625, -0.0152130126953125, 0.01171112060546875, -0.024322509765625, 0.044586181640625, -0.0311737060546875, -0.022918701171875, 0.017852783203125, -0.014892578125, 0.0015964508056640625, -0.0107574462890625, -0.0247344970703125, -0.023223876953125, -0.005527496337890625, -0.035491943359375, -0.068359375, -0.0113983154296875, 0.007518768310546875, 0.038543701171875, -0.0041961669921875, -0.0253448486328125, -0.001750946044921875, 0.0504150390625, 0.0062408447265625, -0.01174163818359375, 0.0228271484375, 0.0033111572265625, 0.0020580291748046875, -0.0034027099609375, -0.0029735565185546875, -0.0274505615234375, -0.0294952392578125, -0.036956787109375, 0.01146697998046875, 0.01922607421875, -0.041900634765625, -0.015045166015625, -0.043121337890625, 0.014556884765625, -0.0684814453125, -0.004314422607421875, 0.036163330078125, 0.010955810546875, -0.016754150390625, 0.0275726318359375, 0.01241302490234375, -0.049072265625, 0.031036376953125, 0.017974853515625, -0.045318603515625, 0.01029205322265625, 0.060943603515625, 0.0221099853515625, -0.0167388916015625, -0.05853271484375, -0.0234375, 0.0312347412109375, -0.019195556640625, 0.068359375, 0.051483154296875, -0.0107574462890625, 0.03778076171875, 0.020965576171875, -0.01529693603515625, 0.0172271728515625, 0.0082244873046875, 0.01093292236328125, 0.0027141571044921875, -0.006412506103515625, 0.0031070709228515625, 0.0292205810546875, 0.014251708984375, -0.032318115234375, -0.0250244140625, 0.00930023193359375, 0.046905517578125, -0.0289459228515625, 0.0596923828125, -0.0214996337890625, -0.041534423828125, 0.0015783309936523438, 0.00894927978515625, 0.0469970703125, 0.06597900390625, -0.017181396484375, 0.061737060546875, 0.032623291015625, 0.004138946533203125, 0.0299224853515625, 0.052093505859375, 0.0258331298828125, 0.057891845703125, 0.01461029052734375, 0.01507568359375, -0.0295867919921875, -0.0027866363525390625, 0.035858154296875, -0.02398681640625, -0.0589599609375, -0.0033855438232421875, -0.01174163818359375, 0.01311492919921875, 0.044281005859375, 0.004100799560546875, 0.0157623291015625, 0.041229248046875, 0.0099639892578125, 0.004131317138671875, 0.009124755859375, 0.0264129638671875, -0.0245361328125, -0.006168365478515625, -0.0064239501953125, 0.00606536865234375, -0.02099609375, 0.09454345703125, -0.0062255859375, 0.05267333984375, -0.0301361083984375, 0.01525115966796875, -0.0104217529296875, 0.040740966796875, 0.02215576171875, -0.040191650390625, 0.009002685546875, -0.0012874603271484375, 0.0157928466796875, -0.0207061767578125, 0.0159149169921875, 0.01409912109375, 0.0309906005859375, -0.0045013427734375, -0.01617431640625, 0.01885986328125, -0.01535797119140625, -0.017974853515625, 0.0213165283203125, 0.043548583984375, 0.001308441162109375, -0.0258636474609375, 0.00815582275390625, 0.0268707275390625, 0.0159454345703125, 0.0081024169921875, -0.027923583984375, -0.0187225341796875, 0.0032978057861328125, -0.01441192626953125, -0.004352569580078125, 0.0014352798461914062, -0.007686614990234375, -0.0219268798828125, 0.0029048919677734375, 0.015655517578125, -0.0312042236328125, -0.03948974609375, -0.00991058349609375, -0.0241851806640625, 0.049102783203125, 0.0019702911376953125, 0.05413818359375, -0.033935546875, -0.038909912109375, 0.0185394287109375, -0.01122283935546875, 0.08856201171875, 0.047271728515625, -0.04705810546875, 0.035888671875, -0.06549072265625, -0.001987457275390625, 0.0310211181640625, -0.036376953125, -0.05047607421875, -0.05316162109375, 0.01239776611328125, 0.0005841255187988281, 0.0070953369140625, -0.002132415771484375, -0.0718994140625, 0.0306396484375, 0.04315185546875, 0.052703857421875, 0.010406494140625, 0.050323486328125, 0.00902557373046875, 0.0301055908203125, 0.032440185546875, 0.019775390625, -0.0172576904296875, -0.0228271484375, 0.016082763671875, -0.052947998046875, -0.033294677734375, 0.0055999755859375, -0.0282745361328125, 0.01122283935546875, -0.0013704299926757812, -0.00998687744140625, -0.02813720703125, -0.0008263587951660156, -0.00469207763671875, -0.0095062255859375, 0.0216217041015625, 0.045623779296875, -0.03173828125, 0.04296875, 0.00023412704467773438, -0.019134521484375, 0.00968170166015625, -0.00510406494140625, -0.0262908935546875, 0.036346435546875, -0.060546875, 0.01531219482421875, -0.0543212890625, 0.0175933837890625, 0.077880859375, 0.042572021484375, 0.042236328125, 0.00943756103515625, 0.0099334716796875, 0.005985260009765625, -0.00850677490234375, 0.05877685546875, 0.00727081298828125, 0.08673095703125, -0.0000027418136596679688, -0.003387451171875, 0.059722900390625, -0.044952392578125, 0.01324462890625, 0.0275421142578125, 0.048126220703125, -0.04510498046875, -0.0193939208984375, -0.0103759765625, -0.04827880859375, 0.0015840530395507812, -0.0044097900390625, 0.00618743896484375, -0.005786895751953125, 0.049163818359375, 0.03466796875, -0.0186767578125, 0.022857666015625, 0.01152801513671875, -0.0021991729736328125, -0.027587890625, 0.0657958984375, 0.01041412353515625, -0.08905029296875, 0.0014400482177734375, 0.05743408203125, -0.051971435546875, -0.0305023193359375, 0.018402099609375, -0.0273895263671875, -0.002544403076171875, -0.0592041015625, 0.00359344482421875, -0.01474761962890625, -0.0036487579345703125, 0.0211334228515625, 0.02398681640625, -0.0126495361328125, 0.05780029296875, -0.006195068359375, 0.027313232421875, 0.02764892578125, -0.020111083984375, -0.03790283203125, 0.01849365234375, 0.0186309814453125, 0.036285400390625, -0.047027587890625, 0.022125244140625, -0.06640625, 0.044219970703125, -0.01898193359375, -0.022430419921875, 0.078125, -0.041748046875, -0.01526641845703125, 0.00872802734375, 0.06427001953125, 0.00920867919921875, -0.0027637481689453125, 0.01422882080078125, -0.0379638671875, -0.01398468017578125, -0.015655517578125, -0.0193939208984375, 0.0112457275390625, -0.0269927978515625, -0.050323486328125, 0.0855712890625, -0.046844482421875, 0.0225830078125, 0.020355224609375, 0.03668212890625, -0.0015268325805664062, 0.012847900390625, -0.056060791015625, 0.054412841796875, -0.00858306884765625, 0.0601806640625, -0.08935546875, -0.0242156982421875, 0.00015401840209960938, 0.058441162109375, 0.061309814453125, 0.00408172607421875, -0.0005297660827636719, -0.019439697265625, 0.056304931640625, 0.053131103515625, -0.0030975341796875, 0.00138092041015625, 0.033416748046875, 0.08489990234375, 0.05303955078125, -0.06243896484375, 0.0231170654296875, 0.0017099380493164062, 0.002593994140625, 0.07049560546875, -0.00022530555725097656, -0.0219268798828125, -0.006000518798828125, 0.0245513916015625, -0.046112060546875, -0.008209228515625, 0.0284881591796875, 0.005222320556640625, -0.001987457275390625, 0.0684814453125, 0.03875732421875, -0.051025390625, -0.01239776611328125, -0.035980224609375, 0.03533935546875, -0.01139068603515625, 0.046630859375, 0.0298614501953125, 0.0175018310546875, 0.07952880859375, -0.0240325927734375, 0.0242919921875, 0.004894256591796875, -0.0150909423828125, 0.043792724609375, 0.04156494140625, 0.007724761962890625, -0.0231781005859375, 0.0161895751953125, 0.037872314453125, 0.0538330078125, -0.03070068359375, -0.0220184326171875, 0.01544952392578125, 0.0077362060546875, 0.0182037353515625, -0.022979736328125, -0.0015478134155273438, 0.014373779296875, 0.033966064453125, -0.02984619140625, -0.03790283203125, -0.01219940185546875, 0.0247344970703125, 0.00260162353515625, 0.0120391845703125, 0.004817962646484375, -0.057952880859375, -0.007137298583984375, 0.018798828125, 0.03271484375, 0.04351806640625, -0.029693603515625, 0.036895751953125, -0.0712890625, -0.005046844482421875, -0.00920867919921875, 0.01337432861328125, 0.00037550926208496094, 0.00862884521484375, -0.0364990234375, -0.0214691162109375, 0.00405120849609375, 0.04156494140625, 0.036865234375, 0.01099395751953125, 0.0284881591796875, 0.0294036865234375, -0.01078033447265625, 0.0114593505859375, 0.06280517578125, -0.007598876953125, -0.046875, -0.01275634765625, -0.020751953125, 0.0323486328125, -0.01180267333984375, 0.0367431640625, 0.01262664794921875, 0.028106689453125, -0.01441192626953125, 0.01763916015625, -0.0039520263671875, -0.0303497314453125, 0.001560211181640625, 0.0018863677978515625, 0.033203125, 0.0084991455078125, -0.059326171875, -0.00615692138671875, -0.006378173828125, -0.0173797607421875, -0.01462554931640625, 0.0178985595703125, -0.02032470703125, 0.0178070068359375, 0.0270233154296875, -0.0131683349609375, 0.0225067138671875, 0.005504608154296875, 0.0025081634521484375, 0.036651611328125, 0.0299072265625, 0.0248870849609375, -0.018218994140625, -0.00811767578125, -0.0028667449951171875, 0.02667236328125, 0.0159759521484375, 0.004192352294921875, 0.0282135009765625, 0.0261077880859375, 0.00027298927307128906, -0.0305938720703125, 0.005634307861328125, -0.01910400390625, 0.03448486328125, -0.0037059783935546875, -0.0012874603271484375, -0.0097808837890625, -0.01464080810546875, -0.017608642578125, 0.050811767578125, -0.027099609375, -0.016571044921875, -0.0079803466796875, 0.036102294921875, -0.01253509521484375, 0.01308441162109375, -0.0186920166015625, 0.0198822021484375, 0.0084075927734375, -0.0181121826171875, 0.0450439453125, 0.01593017578125, 0.007904052734375, 0.007251739501953125, 0.0244140625, -0.02850341796875, 0.0223236083984375, 0.004436492919921875, 0.032073974609375, 0.0345458984375, -0.001308441162109375, 0.0182952880859375, -0.035888671875, -0.01203155517578125, 0.006011962890625, 0.01430511474609375, -0.0193939208984375, -0.00873565673828125, 0.04034423828125, 0.03228759765625, 0.02764892578125, 0.04095458984375, -0.019134521484375, 0.0176544189453125, 0.031280517578125, -0.0159149169921875, 0.015655517578125, 0.0222625732421875, -0.01337432861328125, -0.052825927734375, 0.00218963623046875, -0.0152130126953125, -0.01169586181640625, -0.02056884765625, -0.0085906982421875, -0.043426513671875, 0.032196044921875, 0.0015106201171875, -0.004894256591796875, -0.029998779296875, 0.016204833984375, -0.013458251953125, -0.01038360595703125, 0.02587890625, 0.0013675689697265625, 0.032501220703125, -0.038909912109375, -0.011077880859375, -0.0263214111328125, 0.006900787353515625, -0.0240478515625, -0.005397796630859375, -0.00980377197265625, -0.00800323486328125, -0.01220703125, -0.00954437255859375, -0.020721435546875, 0.031707763671875, 0.05718994140625, -0.007274627685546875, 0.0285491943359375, 0.01209259033203125, -0.05560302734375, -0.056732177734375, 0.054290771484375, -0.052001953125, -0.0287933349609375, 0.044342041015625, -0.02410888671875, 0.01751708984375, -0.0250091552734375, -0.0537109375, 0.018829345703125, 0.003787994384765625, -0.0369873046875, -0.0062103271484375, 0.0029926300048828125, 0.005329132080078125, -0.024261474609375, 0.00409698486328125, -0.034820556640625, -0.040435791015625, -0.009735107421875, 0.0191192626953125, 0.0155792236328125, 0.0328369140625, -0.0079803466796875, -0.055084228515625, 0.0090484619140625, -0.0208892822265625, 0.01544189453125, -0.003772735595703125, 0.01947021484375, -0.00830078125, 0.031829833984375, -0.0283660888671875, 0.01500701904296875, -0.025848388671875, -0.001373291015625, 0.0026073455810546875, -0.0283050537109375, -0.0308990478515625, -0.01678466796875, 0.06884765625, 0.031982421875, 0.0240936279296875, -0.0202484130859375, -0.005916595458984375, -0.00980377197265625, -0.0322265625, -0.03375244140625, 0.0254974365234375, -0.07354736328125, -0.02508544921875, -0.0038604736328125, -0.0012483596801757812, -0.01357269287109375, -0.01001739501953125, -0.038665771484375, -0.0294952392578125, -0.05908203125, 0.0007634162902832031, -0.0367431640625, 0.03460693359375, 0.0146331787109375, -0.023895263671875, 0.004932403564453125, -0.02154541015625, -0.0148468017578125, 0.00995635986328125, -0.012847900390625, -0.01348876953125, -0.0263214111328125, 0.0269622802734375, 0.0031414031982421875, 0.020050048828125, 0.015106201171875, 0.03936767578125, -0.0022525787353515625, 0.005802154541015625, 0.00797271728515625, 0.004425048828125, -0.023834228515625, -0.01611328125, 0.053314208984375, -0.00817108154296875, 0.057464599609375, -0.001064300537109375, 0.057769775390625, 0.0011415481567382812, 0.023956298828125, -0.0130767822265625, -0.0182037353515625, 0.006618499755859375, -0.035125732421875, 0.0001615285873413086, -0.01078033447265625, -0.0197296142578125, -0.036346435546875, 0.01108551025390625, 0.0421142578125, -0.01009368896484375, 0.0216217041015625 ]
6b733fab521126935015576a74b29899a8020c94
Wordpress Stackexchange Q: custom post types don't appear in RSS I created custom post-types in my site but these posts are not shown in the RSS. Only the regular posts appear there. What could be preventing them from showing up there A: They don't normally show there That is how they are supposed to work. Each CPT has a feed of it's own by default Everything in WP has a feed it seems! But if you want them in your main feed this can go in your functions.php // ADDS POST TYPES TO RSS FEED function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) $qv['post_type'] = array('ve_products', 'post'); return $qv; } add_filter('request', 'myfeed_request'); You see this line: $qv['post_type'] = array('ve_products', 'post'); That includes normal posts and my CPT of ve_products in my main feed You would swap out that for your CPT, if you have more CPTs, add them into that array
Q: custom post types don't appear in RSS I created custom post-types in my site but these posts are not shown in the RSS. Only the regular posts appear there. What could be preventing them from showing up there A: They don't normally show there That is how they are supposed to work. Each CPT has a feed of it's own by default Everything in WP has a feed it seems! But if you want them in your main feed this can go in your functions.php // ADDS POST TYPES TO RSS FEED function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) $qv['post_type'] = array('ve_products', 'post'); return $qv; } add_filter('request', 'myfeed_request'); You see this line: $qv['post_type'] = array('ve_products', 'post'); That includes normal posts and my CPT of ve_products in my main feed You would swap out that for your CPT, if you have more CPTs, add them into that array
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:410600", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20829" }
[ 0.069580078125, 0.01715087890625, 0.0017538070678710938, 0.0282440185546875, 0.02996826171875, -0.04052734375, 0.0941162109375, -0.054473876953125, -0.03314208984375, 0.0250396728515625, -0.02911376953125, -0.0006499290466308594, -0.06280517578125, -0.005584716796875, -0.036407470703125, -0.06787109375, 0.03765869140625, 0.00934600830078125, 0.050567626953125, -0.010223388671875, 0.020355224609375, 0.0051116943359375, 0.03955078125, 0.0179901123046875, 0.0161895751953125, 0.020904541015625, 0.054718017578125, -0.0298919677734375, 0.01910400390625, 0.007434844970703125, 0.0233612060546875, -0.03045654296875, 0.0191192626953125, 0.015960693359375, -0.0225982666015625, -0.0212554931640625, -0.00010716915130615234, -0.004055023193359375, -0.00443267822265625, 0.0208740234375, -0.01134490966796875, -0.0004563331604003906, 0.09405517578125, -0.040496826171875, 0.0267333984375, -0.00833892822265625, 0.004150390625, -0.052398681640625, 0.01297760009765625, -0.037628173828125, -0.006412506103515625, -0.006839752197265625, 0.0244598388671875, -0.0299835205078125, -0.031494140625, -0.03436279296875, -0.01273345947265625, 0.004894256591796875, 0.03851318359375, -0.02313232421875, -0.01300811767578125, -0.0284881591796875, 0.0275421142578125, 0.0074462890625, -0.01346588134765625, 0.0203094482421875, 0.06884765625, -0.014739990234375, -0.03143310546875, -0.025390625, 0.0255584716796875, -0.00018084049224853516, 0.0263519287109375, -0.00789642333984375, -0.0076904296875, -0.036712646484375, 0.0241241455078125, -0.0361328125, 0.0002570152282714844, 0.01003265380859375, -0.01251220703125, 0.00031447410583496094, -0.01505279541015625, -0.03070068359375, -0.012481689453125, -0.021392822265625, -0.0200653076171875, 0.0014286041259765625, 0.00865936279296875, -0.0147705078125, -0.01351165771484375, -0.044158935546875, -0.0158233642578125, 0.049346923828125, 0.011566162109375, -0.031768798828125, 0.0364990234375, 0.0548095703125, -0.01328277587890625, 0.0218505859375, -0.0277862548828125, -0.029449462890625, 0.042205810546875, -0.0511474609375, 0.02044677734375, 0.002338409423828125, -0.031158447265625, 0.050262451171875, 0.089599609375, 0.05706787109375, 0.0182952880859375, 0.05084228515625, 0.0003647804260253906, -0.0160064697265625, -0.0161895751953125, -0.0181884765625, -0.03045654296875, 0.006191253662109375, -0.0030460357666015625, -0.015045166015625, 0.02313232421875, 0.058197021484375, -0.00933074951171875, -0.04437255859375, -0.00020992755889892578, -0.0122222900390625, -0.01458740234375, -0.037445068359375, -0.02093505859375, 0.0391845703125, -0.0089111328125, -0.01103973388671875, 0.0289154052734375, 0.06488037109375, 0.00939178466796875, -0.0236053466796875, 0.03875732421875, -0.03131103515625, -0.0276641845703125, 0.0289154052734375, 0.02630615234375, -0.0248260498046875, -0.0159149169921875, -0.014434814453125, 0.0273284912109375, 0.03692626953125, 0.0130767822265625, 0.006336212158203125, 0.00704193115234375, -0.005718231201171875, -0.0265960693359375, -0.01317596435546875, 0.032135009765625, 0.033416748046875, -0.0171966552734375, -0.0197296142578125, 0.038116455078125, -0.04364013671875, 0.003566741943359375, -0.045318603515625, -0.0006899833679199219, -0.02520751953125, -0.0122528076171875, -0.047882080078125, -0.069091796875, 0.0487060546875, -0.03497314453125, -0.005710601806640625, 0.0251007080078125, 0.022216796875, -0.011077880859375, -0.01535797119140625, 0.017852783203125, 0.0189666748046875, -0.005054473876953125, 0.02032470703125, 0.011474609375, 0.0100555419921875, 0.039215087890625, 0.0242462158203125, -0.016448974609375, -0.03277587890625, 0.07073974609375, -0.0374755859375, -0.060882568359375, 0.044189453125, 0.0208892822265625, 0.08099365234375, 0.0036144256591796875, 0.0265045166015625, 0.024200439453125, 0.0304412841796875, 0.02142333984375, -0.001277923583984375, -0.0215911865234375, -0.04058837890625, -0.018341064453125, -0.007503509521484375, -0.03594970703125, 0.053436279296875, -0.05987548828125, 0.00690460205078125, -0.01322174072265625, 0.0208740234375, -0.0601806640625, 0.0357666015625, -0.03814697265625, 0.055908203125, 0.00664520263671875, -0.0162811279296875, 0.01467132568359375, -0.01552581787109375, 0.003246307373046875, -0.06231689453125, -0.032318115234375, 0.036224365234375, 0.0107421875, 0.036285400390625, -0.00933837890625, 0.0195770263671875, -0.0095672607421875, -0.043121337890625, -0.021636962890625, 0.049285888671875, 0.053131103515625, 0.0219573974609375, -0.0263671875, 0.0018796920776367188, 0.03448486328125, 0.059234619140625, -0.06854248046875, -0.0217742919921875, -0.0038585662841796875, -0.0262603759765625, -0.050933837890625, -0.0017080307006835938, 0.0091094970703125, 0.006931304931640625, 0.0033206939697265625, 0.031829833984375, 0.0177459716796875, 0.01261138916015625, -0.0007719993591308594, 0.02410888671875, 0.058197021484375, 0.01751708984375, 0.02783203125, -0.0053253173828125, 0.02093505859375, 0.06549072265625, 0.0119476318359375, 0.0014781951904296875, 0.006748199462890625, -0.03509521484375, 0.01033782958984375, 0.02520751953125, 0.010833740234375, 0.0092926025390625, 0.01416778564453125, 0.002399444580078125, -0.00782012939453125, 0.05645751953125, -0.004184722900390625, 0.026519775390625, 0.0498046875, 0.0112762451171875, 0.07757568359375, 0.05767822265625, -0.0256195068359375, -0.006237030029296875, -0.00624847412109375, 0.038665771484375, -0.0010967254638671875, 0.026580810546875, 0.058349609375, 0.0184783935546875, -0.019866943359375, -0.0298919677734375, 0.034759521484375, 0.01560211181640625, 0.00457000732421875, 0.02728271484375, -0.045013427734375, -0.012725830078125, -0.0005278587341308594, -0.029449462890625, -0.01070404052734375, 0.0277099609375, 0.0030269622802734375, -0.0011510848999023438, 0.00850677490234375, 0.041900634765625, 0.005077362060546875, 0.0130462646484375, 0.027618408203125, -0.00986480712890625, -0.0007524490356445312, -0.0634765625, 0.055389404296875, -0.049407958984375, 0.053497314453125, 0.07403564453125, -0.0136260986328125, 0.018157958984375, 0.0158538818359375, 0.0193023681640625, 0.00397491455078125, 0.04840087890625, 0.0182342529296875, -0.0147247314453125, -0.03851318359375, -0.0207061767578125, 0.0176239013671875, 0.052001953125, 0.00345611572265625, -0.0237274169921875, 0.01708984375, 0.051666259765625, 0.004787445068359375, -0.006328582763671875, 0.0263519287109375, -0.0478515625, -0.01165771484375, -0.037628173828125, -0.0237884521484375, -0.002826690673828125, -0.03668212890625, -0.00417327880859375, -0.044097900390625, -0.0218658447265625, -0.0277557373046875, -0.06573486328125, -0.04833984375, -0.0006928443908691406, 0.00885009765625, 0.0195465087890625, 0.0060577392578125, 0.034149169921875, 0.0196990966796875, -0.0252532958984375, 0.03448486328125, 0.030548095703125, -0.002124786376953125, 0.013702392578125, 0.03741455078125, -0.043670654296875, 0.0655517578125, -0.00848388671875, 0.057647705078125, 0.065185546875, -0.04296875, -0.0117645263671875, -0.01056671142578125, -0.034149169921875, -0.00655364990234375, 0.05706787109375, 0.028076171875, 0.0089874267578125, 0.046142578125, -0.028564453125, -0.0318603515625, -0.0232391357421875, -0.036834716796875, 0.009033203125, 0.01491546630859375, 0.0087738037109375, -0.06707763671875, 0.064208984375, -0.0186767578125, 0.0012254714965820312, 0.046661376953125, -0.03173828125, -0.007038116455078125, -0.00656890869140625, -0.0196990966796875, -0.022186279296875, -0.01157379150390625, -0.0253753662109375, 0.062286376953125, -0.006397247314453125, 0.00978851318359375, -0.039764404296875, 0.04827880859375, -0.0753173828125, -0.0504150390625, 0.040985107421875, -0.05126953125, -0.003360748291015625, -0.0180206298828125, -0.01496124267578125, 0.0321044921875, 0.08837890625, -0.021240234375, -0.016387939453125, -0.0276031494140625, 0.02410888671875, -0.0138397216796875, -0.10797119140625, 0.02001953125, -0.0177154541015625, -0.035797119140625, 0.0268096923828125, 0.004482269287109375, -0.016448974609375, -0.0022258758544921875, 0.00814056396484375, -0.025115966796875, -0.0283203125, 0.038177490234375, -0.0179290771484375, 0.0262298583984375, -0.00843048095703125, 0.00952911376953125, -0.01873779296875, -0.03240966796875, -0.01490020751953125, -0.05682373046875, -0.01898193359375, 0.00331878662109375, 0.01027679443359375, 0.0065155029296875, -0.0312347412109375, -0.00579071044921875, 0.020660400390625, 0.01824951171875, -0.0180511474609375, 0.01100921630859375, -0.025848388671875, -0.0038394927978515625, 0.0230865478515625, -0.00439453125, -0.0141754150390625, -0.02032470703125, 0.0036792755126953125, -0.00679779052734375, 0.045440673828125, -0.0010690689086914062, -0.0306396484375, 0.017059326171875, -0.03863525390625, -0.032867431640625, -0.04046630859375, -0.020050048828125, 0.017120361328125, 0.004848480224609375, -0.000614166259765625, -0.04547119140625, -0.0411376953125, 0.0002396106719970703, -0.0252532958984375, -0.008209228515625, 0.0276031494140625, 0.027313232421875, 0.011566162109375, -0.0029144287109375, -0.02642822265625, -0.0128326416015625, 0.021331787109375, -0.001445770263671875, 0.033905029296875, -0.0012760162353515625, -0.0029277801513671875, 0.040252685546875, -0.034332275390625, -0.0010967254638671875, -0.03497314453125, 0.09375, -0.00002872943878173828, 0.0164947509765625, 0.00445556640625, -0.0132904052734375, 0.0034160614013671875, 0.0008592605590820312, -0.001262664794921875, -0.03936767578125, 0.045440673828125, 0.05548095703125, -0.045318603515625, 0.040985107421875, -0.007106781005859375, -0.004573822021484375, 0.02850341796875, -0.020294189453125, 0.0263214111328125, 0.00945281982421875, 0.0038280487060546875, -0.028289794921875, -0.0599365234375, 0.025360107421875, 0.001499176025390625, -0.043365478515625, 0.016021728515625, 0.00847625732421875, 0.048980712890625, 0.021087646484375, 0.02020263671875, 0.01323699951171875, -0.04248046875, -0.018463134765625, -0.043487548828125, -0.03289794921875, 0.0050048828125, 0.0190277099609375, 0.027374267578125, 0.031707763671875, 0.03997802734375, 0.056396484375, 0.004268646240234375, -0.0008769035339355469, 0.015838623046875, 0.05450439453125, -0.035552978515625, 0.0199432373046875, 0.01384735107421875, -0.003910064697265625, -0.0064239501953125, 0.0926513671875, -0.0241241455078125, 0.05255126953125, -0.00829315185546875, 0.02532958984375, 0.029632568359375, 0.02032470703125, 0.0166778564453125, 0.01406097412109375, -0.033447265625, 0.0234222412109375, -0.0214385986328125, -0.00550079345703125, -0.049957275390625, -0.0023250579833984375, 0.0105133056640625, -0.01114654541015625, 0.0262908935546875, 0.0197601318359375, 0.01340484619140625, -0.01462554931640625, 0.01349639892578125, 0.01113128662109375, -0.022003173828125, -0.0133819580078125, -0.01241302490234375, 0.0127105712890625, 0.0167236328125, -0.041412353515625, 0.033203125, -0.04449462890625, 0.0105743408203125, 0.01824951171875, -0.0300140380859375, 0.0203094482421875, 0.024688720703125, -0.0435791015625, -0.02618408203125, 0.0015392303466796875, -0.03289794921875, -0.0201263427734375, 0.0079193115234375, -0.0205230712890625, -0.0010251998901367188, -0.01541900634765625, 0.00452423095703125, -0.0086822509765625, 0.0017242431640625, -0.0009326934814453125, 0.004215240478515625, 0.064453125, 0.0246734619140625, -0.04925537109375, -0.004238128662109375, -0.037628173828125, -0.0289764404296875, -0.016845703125, -0.006679534912109375, -0.050628662109375, -0.0007724761962890625, 0.0028934478759765625, 0.00791168212890625, -0.0015153884887695312, -0.0211944580078125, -0.02178955078125, 0.02984619140625, 0.0241851806640625, 0.02984619140625, 0.01406097412109375, 0.03057861328125, -0.019073486328125, 0.074462890625, -0.00174713134765625, 0.016632080078125, -0.026214599609375, -0.034576416015625, 0.0030918121337890625, -0.050048828125, -0.026092529296875, -0.01123809814453125, -0.00870513916015625, 0.070068359375, 0.07122802734375, 0.00882720947265625, 0.0161895751953125, -0.01398468017578125, 0.016448974609375, -0.01959228515625, 0.016082763671875, -0.00555419921875, -0.0019350051879882812, 0.033721923828125, -0.0238037109375, -0.0197906494140625, 0.03436279296875, -0.002655029296875, -0.0028533935546875, 0.01110076904296875, 0.0037631988525390625, -0.019683837890625, -0.044586181640625, 0.052581787109375, 0.0672607421875, 0.01070404052734375, 0.03594970703125, -0.0076141357421875, 0.0009322166442871094, -0.01236724853515625, -0.00850677490234375, -0.01335906982421875, -0.01325225830078125, 0.0297698974609375, -0.01092529296875, -0.0269775390625, 0.0221405029296875, -0.016754150390625, -0.0299835205078125, 0.04486083984375, 0.0193023681640625, -0.07012939453125, -0.010498046875, -0.004291534423828125, -0.00556182861328125, -0.00708770751953125, 0.00968170166015625, -0.005786895751953125, -0.0200653076171875, -0.0157318115234375, 0.0088043212890625, -0.0245819091796875, -0.0058746337890625, 0.00426483154296875, 0.022552490234375, -0.0037078857421875, 0.039825439453125, -0.01505279541015625, -0.0257110595703125, -0.051116943359375, -0.007740020751953125, -0.0218048095703125, -0.00634002685546875, 0.0013837814331054688, -0.002910614013671875, -0.01434326171875, -0.0491943359375, 0.0194091796875, -0.0377197265625, 0.0081024169921875, 0.03729248046875, -0.020751953125, 0.0269317626953125, 0.031707763671875, -0.0211181640625, 0.0169219970703125, -0.01678466796875, -0.01377105712890625, -0.0181732177734375, -0.06707763671875, -0.010955810546875, 0.06964111328125, -0.06268310546875, 0.0291748046875, 0.00806427001953125, -0.01629638671875, -0.007381439208984375, -0.02886962890625, 0.06365966796875, -0.03973388671875, -0.005748748779296875, 0.009490966796875, 0.015228271484375, 0.01311492919921875, 0.014617919921875, 0.00032019615173339844, -0.04266357421875, -0.0068817138671875, 0.01104736328125, -0.0216522216796875, -0.01432037353515625, 0.0250244140625, -0.04833984375, 0.07269287109375, 0.00278472900390625, 0.0138397216796875, 0.038543701171875, 0.0207366943359375, -0.032012939453125, -0.003948211669921875, -0.0260162353515625, 0.03369140625, -0.025970458984375, 0.0240631103515625, -0.06866455078125, -0.0146942138671875, -0.0141143798828125, 0.045928955078125, 0.035491943359375, 0.0003345012664794922, -0.00910186767578125, 0.01543426513671875, 0.08001708984375, 0.05560302734375, 0.00860595703125, 0.003326416015625, -0.0285186767578125, 0.02459716796875, 0.0130462646484375, -0.005184173583984375, 0.0301513671875, 0.040802001953125, -0.061248779296875, 0.00365447998046875, -0.0027618408203125, -0.0173187255859375, 0.007801055908203125, -0.041961669921875, -0.00811004638671875, 0.007030487060546875, -0.0163116455078125, -0.006622314453125, 0.01352691650390625, 0.05181884765625, 0.049713134765625, -0.03192138671875, -0.020263671875, -0.0260772705078125, 0.055206298828125, 0.007335662841796875, 0.0513916015625, 0.01512908935546875, 0.01132965087890625, 0.05853271484375, -0.016815185546875, 0.0199737548828125, 0.01096343994140625, -0.01873779296875, 0.01340484619140625, 0.006488800048828125, -0.0058135986328125, -0.0511474609375, 0.030517578125, 0.04046630859375, 0.0194244384765625, -0.059051513671875, -0.056488037109375, 0.01238250732421875, 0.0225372314453125, 0.008880615234375, 0.0121307373046875, 0.0086822509765625, -0.02813720703125, 0.0268096923828125, -0.030670166015625, -0.01102447509765625, -0.0017490386962890625, 0.06158447265625, -0.002593994140625, -0.01328277587890625, -0.04083251953125, -0.048309326171875, -0.0489501953125, 0.0036945343017578125, 0.018768310546875, 0.088134765625, 0.0267333984375, 0.0640869140625, -0.03173828125, -0.039306640625, 0.0189056396484375, 0.0270233154296875, -0.02032470703125, -0.0279388427734375, -0.0156402587890625, -0.04730224609375, 0.00510406494140625, 0.021514892578125, 0.0021800994873046875, -0.01085662841796875, 0.0166778564453125, -0.005390167236328125, -0.0205230712890625, -0.0186767578125, 0.0010509490966796875, -0.0166168212890625, -0.08575439453125, -0.0289306640625, -0.0199127197265625, 0.044036865234375, 0.01050567626953125, 0.054931640625, 0.007232666015625, 0.0281524658203125, 0.01174163818359375, 0.013397216796875, 0.008880615234375, -0.018707275390625, 0.004730224609375, 0.00875091552734375, 0.045196533203125, 0.0330810546875, -0.041229248046875, 0.00119781494140625, -0.03924560546875, -0.0751953125, 0.018524169921875, 0.051055908203125, 0.01136016845703125, -0.0257568359375, 0.050933837890625, -0.01227569580078125, -0.0258941650390625, 0.0007233619689941406, 0.041015625, -0.018524169921875, 0.0035800933837890625, 0.0201416015625, -0.041473388671875, -0.030120849609375, -0.01763916015625, 0.035064697265625, 0.002094268798828125, 0.05322265625, -0.002899169921875, 0.0295562744140625, -0.01055908203125, 0.024139404296875, -0.033935546875, -0.019256591796875, 0.027557373046875, -0.0026226043701171875, -0.004543304443359375, -0.004886627197265625, -0.032684326171875, -0.0225067138671875, 0.054656982421875, -0.04541015625, -0.023162841796875, -0.0181732177734375, 0.0389404296875, -0.012054443359375, -0.001125335693359375, -0.0321044921875, -0.00428009033203125, -0.027313232421875, -0.028594970703125, 0.033203125, 0.015869140625, 0.002704620361328125, 0.049713134765625, 0.01471710205078125, -0.058135986328125, 0.036590576171875, -0.08441162109375, 0.055206298828125, 0.038909912109375, 0.064453125, -0.027252197265625, 0.011932373046875, -0.00855255126953125, 0.015533447265625, 0.0132904052734375, 0.0697021484375, 0.00322723388671875, 0.01035308837890625, 0.029571533203125, -0.00748443603515625, 0.01763916015625, -0.0340576171875, -0.018310546875, 0.03668212890625, -0.01471710205078125, 0.0007772445678710938, 0.004306793212890625, -0.0250244140625, -0.015899658203125, -0.0010347366333007812, 0.016448974609375, 0.005298614501953125, -0.020538330078125, -0.05902099609375, 0.01129913330078125, 0.0428466796875, -0.0169830322265625, -0.025970458984375, 0.0262298583984375, -0.06781005859375, 0.03497314453125, -0.01220703125, -0.03997802734375, 0.042236328125, 0.08837890625, 0.00525665283203125, 0.0338134765625, 0.0076904296875, -0.0474853515625, 0.01702880859375, 0.005741119384765625, -0.007343292236328125, -0.016448974609375, 0.0100250244140625, -0.005100250244140625, -0.00507354736328125, 0.039031982421875, 0.054901123046875, -0.038970947265625, -0.01251220703125, -0.0000059604644775390625, -0.01058197021484375, -0.0169525146484375, 0.037841796875, -0.09521484375, -0.044586181640625, -0.0266876220703125, 0.0234222412109375, 0.0328369140625, -0.0167388916015625, -0.0523681640625, 0.059844970703125, -0.0137786865234375, -0.01788330078125, -0.05694580078125, 0.004772186279296875, 0.0088043212890625, -0.025115966796875, -0.0293426513671875, -0.0167999267578125, -0.04266357421875, 0.032684326171875, -0.020233154296875, 0.04083251953125, 0.0209197998046875, -0.0262603759765625, 0.0011854171752929688, -0.0080413818359375, 0.00945281982421875, -0.01934814453125, -0.008880615234375, 0.006526947021484375, -0.004070281982421875, 0.0092315673828125, -0.058502197265625, -0.0261688232421875, -0.0126495361328125, 0.06591796875, 0.0173797607421875, -0.057098388671875, -0.060638427734375, -0.050994873046875, 0.027740478515625, 0.029449462890625, 0.0105743408203125, -0.00861358642578125, 0.025726318359375, -0.035125732421875, -0.060211181640625, -0.019866943359375, 0.0171966552734375, -0.058197021484375, -0.0149688720703125, 0.0182037353515625, -0.0157012939453125, 0.0182952880859375, -0.047454833984375, -0.0306549072265625, -0.0014123916625976562, -0.0325927734375, -0.0080108642578125, -0.0267333984375, 0.05389404296875, -0.0218963623046875, 0.0083770751953125, 0.03387451171875, -0.034942626953125, -0.0188751220703125, 0.01654052734375, -0.00588226318359375, -0.025634765625, -0.06585693359375, 0.0195770263671875, 0.0438232421875, -0.0223388671875, 0.050994873046875, -0.0149383544921875, -0.024505615234375, -0.0021648406982421875, 0.00124359130859375, -0.01210784912109375, -0.0135650634765625, -0.00446319580078125, 0.021484375, -0.00749969482421875, 0.03594970703125, 0.00951385498046875, -0.034515380859375, -0.01271820068359375, 0.00881195068359375, -0.032867431640625, 0.004230499267578125, -0.0294342041015625, 0.003719329833984375, 0.004852294921875, -0.010711669921875, -0.036285400390625, -0.0159454345703125, -0.0194854736328125, -0.00872039794921875, -0.03277587890625, 0.0117950439453125 ]
49084eff9964eebcf3360d60f680b4179b39a787
Wordpress Stackexchange Q: What is the most secure way to store post meta data in WP? Sony's recent security "holes" showed how unsafe it can be to store data unencrypted. As some of you may know, I 'm working on re-releasing the free CRM theme Driftwood. What is the most secure way to store sensitive (ie non-public information) post meta in the database? A: Use bcrypt. http://codahale.com/how-to-safely-store-a-password/
Q: What is the most secure way to store post meta data in WP? Sony's recent security "holes" showed how unsafe it can be to store data unencrypted. As some of you may know, I 'm working on re-releasing the free CRM theme Driftwood. What is the most secure way to store sensitive (ie non-public information) post meta in the database? A: Use bcrypt. http://codahale.com/how-to-safely-store-a-password/
wordpress
{ "language": "en", "length": 65, "provenance": "stackexchange_00019.jsonl.gz:410607", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20858" }
[ 0.011962890625, -0.01084136962890625, -0.001125335693359375, 0.003803253173828125, -0.01457977294921875, -0.01373291015625, 0.0197601318359375, -0.0262908935546875, 0.0264434814453125, 0.01776123046875, 0.01244354248046875, -0.0238037109375, -0.005443572998046875, -0.037750244140625, -0.0272674560546875, -0.02423095703125, 0.0081634521484375, 0.005016326904296875, 0.0309600830078125, -0.0029544830322265625, 0.0028133392333984375, 0.00049591064453125, 0.04071044921875, -0.05804443359375, 0.0350341796875, -0.01490020751953125, 0.0207061767578125, -0.0101776123046875, 0.03094482421875, -0.005840301513671875, 0.027984619140625, -0.0294342041015625, 0.0122833251953125, 0.0088043212890625, 0.00299072265625, -0.0009775161743164062, -0.006282806396484375, 0.0085296630859375, 0.029815673828125, -0.01342010498046875, -0.0014390945434570312, 0.01513671875, 0.01308441162109375, 0.045013427734375, -0.021820068359375, -0.0352783203125, -0.0236053466796875, -0.054290771484375, 0.0034637451171875, -0.0107879638671875, 0.0234375, 0.03521728515625, 0.037445068359375, -0.0210418701171875, -0.0050811767578125, -0.0008363723754882812, -0.0194244384765625, -0.0087738037109375, 0.036712646484375, 0.0281524658203125, 0.0005021095275878906, -0.025665283203125, 0.007732391357421875, -0.044189453125, 0.038116455078125, -0.0228424072265625, 0.006439208984375, 0.034912109375, -0.0714111328125, 0.045501708984375, 0.06854248046875, -0.047760009765625, 0.00786590576171875, -0.06103515625, -0.0281219482421875, 0.049224853515625, -0.00945281982421875, 0.000701904296875, 0.01279449462890625, -0.0416259765625, -0.0496826171875, 0.00435638427734375, -0.034332275390625, -0.0753173828125, -0.0010318756103515625, -0.053619384765625, -0.0285186767578125, 0.020233154296875, -0.0031452178955078125, -0.0026702880859375, -0.0126495361328125, -0.01026153564453125, 0.0143890380859375, 0.0138092041015625, -0.025787353515625, -0.0038318634033203125, 0.00023686885833740234, -0.0028285980224609375, -0.0284576416015625, -0.01326751708984375, -0.0228118896484375, -0.01441192626953125, 0.0019025802612304688, 0.0020427703857421875, -0.0009326934814453125, 0.017913818359375, -0.000591278076171875, -0.02630615234375, 0.008026123046875, 0.0292510986328125, -0.034088134765625, -0.0252685546875, 0.0142669677734375, -0.0455322265625, 0.01727294921875, 0.0516357421875, 0.0308990478515625, 0.0452880859375, 0.0256195068359375, 0.004924774169921875, 0.0009584426879882812, 0.01076507568359375, 0.00919342041015625, -0.05572509765625, -0.00592041015625, -0.03912353515625, -0.047393798828125, 0.004215240478515625, -0.06390380859375, 0.0875244140625, -0.0204010009765625, -0.0168914794921875, 0.047149658203125, 0.0193023681640625, -0.0200653076171875, -0.039642333984375, 0.035858154296875, -0.03289794921875, 0.01233673095703125, 0.012420654296875, -0.04296875, -0.0625, -0.0086517333984375, -0.0201568603515625, 0.006526947021484375, 0.04345703125, 0.0126953125, -0.01253509521484375, -0.0005745887756347656, -0.007083892822265625, -0.058929443359375, -0.0138397216796875, -0.004871368408203125, 0.0284881591796875, 0.0297393798828125, 0.0199432373046875, 0.031158447265625, -0.001338958740234375, -0.0004057884216308594, -0.00145721435546875, 0.0281829833984375, -0.004180908203125, 0.030242919921875, 0.065673828125, 0.00710296630859375, 0.0163726806640625, -0.03271484375, -0.0101165771484375, 0.016265869140625, 0.0306854248046875, 0.002201080322265625, -0.0246124267578125, -0.03839111328125, -0.007282257080078125, -0.01042938232421875, 0.00525665283203125, -0.0172882080078125, 0.0003142356872558594, 0.02447509765625, 0.01509857177734375, -0.007633209228515625, -0.03656005859375, 0.0161590576171875, 0.004482269287109375, -0.01168060302734375, 0.0122528076171875, 0.03570556640625, 0.09027099609375, -0.0197296142578125, 0.049560546875, 0.005588531494140625, -0.0062103271484375, -0.059173583984375, 0.0257720947265625, -0.00601959228515625, -0.015838623046875, 0.0080108642578125, -0.00820159912109375, 0.01136016845703125, -0.0019092559814453125, 0.0036296844482421875, 0.032806396484375, -0.015777587890625, -0.0193634033203125, 0.0031299591064453125, -0.0234375, 0.01800537109375, 0.02667236328125, -0.040618896484375, 0.007373809814453125, 0.024017333984375, -0.03631591796875, -0.00687408447265625, 0.00171661376953125, -0.00887298583984375, -0.042755126953125, -0.032623291015625, 0.01312255859375, -0.0196075439453125, 0.038055419921875, -0.029052734375, 0.0027027130126953125, -0.048095703125, -0.0276031494140625, 0.0162506103515625, 0.0174102783203125, -0.0224456787109375, -0.00608062744140625, 0.0323486328125, 0.01226043701171875, 0.00896453857421875, -0.0001531839370727539, -0.03179931640625, -0.04180908203125, -0.0092620849609375, -0.0018053054809570312, 0.0178375244140625, -0.09832763671875, 0.007526397705078125, 0.0506591796875, 0.0253448486328125, 0.0034046173095703125, -0.02239990234375, 0.01412200927734375, 0.0159912109375, -0.06500244140625, -0.026336669921875, 0.0291900634765625, 0.004932403564453125, 0.04071044921875, -0.0015735626220703125, 0.0029087066650390625, -0.0018825531005859375, -0.01678466796875, -0.0165252685546875, 0.046142578125, -0.034942626953125, 0.032989501953125, -0.01543426513671875, -0.000354766845703125, -0.024078369140625, -0.0056610107421875, 0.032196044921875, -0.0247344970703125, 0.053558349609375, -0.0401611328125, 0.050628662109375, 0.03948974609375, 0.01078033447265625, -0.0297393798828125, 0.00615692138671875, 0.0089111328125, 0.0004954338073730469, 0.035919189453125, 0.05657958984375, 0.0360107421875, -0.06536865234375, -0.020751953125, 0.035247802734375, 0.061065673828125, -0.0060577392578125, 0.046417236328125, -0.037506103515625, -0.0226287841796875, -0.0245208740234375, -0.01134490966796875, -0.0160980224609375, 0.0230712890625, 0.00746917724609375, 0.01152801513671875, 0.051239013671875, 0.0181121826171875, -0.01181793212890625, 0.041290283203125, -0.045867919921875, -0.0128936767578125, -0.044830322265625, -0.0177001953125, 0.0183563232421875, -0.02471923828125, 0.031982421875, 0.059814453125, -0.01074981689453125, 0.007228851318359375, -0.0266876220703125, 0.01837158203125, -0.03485107421875, 0.03009033203125, -0.0145111083984375, -0.0748291015625, -0.03350830078125, -0.03692626953125, 0.02978515625, 0.002758026123046875, 0.0189208984375, -0.0157012939453125, 0.0100860595703125, 0.019683837890625, -0.041595458984375, -0.035736083984375, -0.06787109375, -0.06085205078125, -0.0114593505859375, -0.01157379150390625, -0.037017822265625, 0.031585693359375, 0.003765106201171875, 0.017669677734375, -0.011260986328125, 0.01080322265625, -0.0296173095703125, -0.006633758544921875, -0.038330078125, 0.00994873046875, -0.007244110107421875, 0.006725311279296875, 0.0010557174682617188, 0.06610107421875, 0.005535125732421875, -0.042572021484375, -0.00992584228515625, -0.0159759521484375, -0.00830078125, 0.01349639892578125, -0.01042938232421875, 0.0003857612609863281, 0.00974273681640625, 0.010650634765625, -0.01953125, -0.0207366943359375, 0.0206756591796875, -0.04071044921875, 0.004360198974609375, -0.004283905029296875, 0.013916015625, -0.011383056640625, -0.0257415771484375, 0.0168914794921875, 0.004543304443359375, -0.039154052734375, -0.0086212158203125, -0.001636505126953125, -0.022796630859375, -0.005855560302734375, -0.012725830078125, -0.00220489501953125, -0.03131103515625, 0.02972412109375, 0.023193359375, 0.03302001953125, 0.0016012191772460938, 0.0235137939453125, -0.01364898681640625, -0.01436614990234375, 0.0004787445068359375, -0.0010690689086914062, 0.0021514892578125, -0.03546142578125, -0.006374359130859375, -0.0182647705078125, -0.00815582275390625, -0.00513458251953125, -0.0196380615234375, -0.01296234130859375, -0.049957275390625, 0.047119140625, -0.0006403923034667969, 0.06689453125, -0.08428955078125, -0.039703369140625, -0.07489013671875, 0.09881591796875, -0.04754638671875, -0.017730712890625, -0.002361297607421875, 0.00408172607421875, -0.01374053955078125, -0.0157928466796875, -0.036651611328125, -0.0161895751953125, -0.01363372802734375, -0.01526641845703125, -0.0233001708984375, -0.011260986328125, -0.006969451904296875, -0.0302886962890625, 0.0022716522216796875, -0.030914306640625, 0.0196533203125, -0.07611083984375, 0.0280303955078125, -0.0264129638671875, 0.03143310546875, -0.07476806640625, 0.014892578125, -0.050994873046875, -0.06719970703125, -0.021759033203125, -0.00507354736328125, 0.049224853515625, -0.0018787384033203125, -0.03369140625, -0.0075225830078125, 0.042877197265625, -0.0225372314453125, 0.0848388671875, -0.0372314453125, 0.018096923828125, 0.0205841064453125, -0.0226898193359375, -0.01338958740234375, -0.0091552734375, -0.00800323486328125, -0.00830078125, 0.001800537109375, -0.046417236328125, -0.054840087890625, -0.08026123046875, -0.0233917236328125, -0.0160980224609375, -0.04345703125, -0.04150390625, -0.0158233642578125, 0.0232086181640625, -0.03814697265625, 0.021881103515625, -0.0307464599609375, -0.041412353515625, 0.07177734375, 0.022491455078125, 0.006298065185546875, 0.00522613525390625, 0.09326171875, -0.00640869140625, -0.034637451171875, -0.134521484375, 0.0007343292236328125, 0.045318603515625, -0.02337646484375, 0.05157470703125, 0.036773681640625, -0.028106689453125, 0.060302734375, 0.0107269287109375, 0.01873779296875, -0.03472900390625, 0.080322265625, -0.0194854736328125, -0.003875732421875, 0.0229034423828125, -0.0328369140625, 0.01904296875, 0.034698486328125, -0.0029010772705078125, -0.032379150390625, -0.032318115234375, 0.0283660888671875, 0.0089569091796875, -0.0007977485656738281, -0.041778564453125, -0.0226593017578125, 0.0079498291015625, -0.051971435546875, 0.03704833984375, 0.017303466796875, -0.0096282958984375, 0.00763702392578125, 0.00823211669921875, 0.025909423828125, -0.04931640625, -0.02154541015625, -0.01494598388671875, 0.03363037109375, -0.004375457763671875, 0.030364990234375, -0.038726806640625, 0.002292633056640625, 0.0240936279296875, -0.0491943359375, -0.0804443359375, -0.0268096923828125, -0.0080108642578125, 0.00623321533203125, 0.07196044921875, 0.0122222900390625, 0.047393798828125, -0.0176544189453125, -0.002445220947265625, -0.0016937255859375, -0.043426513671875, -0.0225677490234375, -0.042694091796875, 0.029205322265625, -0.00205230712890625, -0.00030231475830078125, 0.007457733154296875, 0.04217529296875, -0.0294647216796875, 0.0277099609375, -0.000023603439331054688, 0.054351806640625, 0.051910400390625, -0.01323699951171875, 0.023773193359375, -0.00855255126953125, 0.0264129638671875, -0.04083251953125, 0.0033473968505859375, -0.0270538330078125, -0.01204681396484375, 0.002590179443359375, 0.025726318359375, -0.00222015380859375, -0.00308990478515625, 0.02960205078125, -0.007701873779296875, 0.002643585205078125, -0.008392333984375, -0.0307769775390625, -0.057952880859375, 0.01238250732421875, 0.027740478515625, -0.005828857421875, -0.037567138671875, 0.025360107421875, -0.0294342041015625, -0.01364898681640625, 0.0380859375, -0.02874755859375, 0.055084228515625, -0.037872314453125, -0.059844970703125, 0.011932373046875, -0.004878997802734375, -0.0105743408203125, 0.0109405517578125, -0.0168609619140625, -0.01244354248046875, -0.007755279541015625, 0.0325927734375, -0.032501220703125, 0.017822265625, 0.01020050048828125, -0.008697509765625, 0.025115966796875, 0.023468017578125, 0.011566162109375, -0.00897979736328125, -0.0094146728515625, -0.0333251953125, -0.0140533447265625, -0.0125732421875, 0.0467529296875, 0.0120391845703125, -0.0140838623046875, -0.0177764892578125, 0.00971221923828125, 0.03228759765625, -0.0243377685546875, -0.0267181396484375, 0.005680084228515625, 0.0175018310546875, 0.0111236572265625, 0.0645751953125, -0.00965118408203125, 0.05670166015625, -0.006954193115234375, 0.07470703125, 0.01497650146484375, 0.0261993408203125, -0.0298614501953125, -0.02783203125, 0.01172637939453125, -0.03302001953125, -0.027191162109375, -0.02056884765625, 0.001617431640625, 0.0036716461181640625, 0.0232696533203125, -0.004154205322265625, 0.022003173828125, -0.0184173583984375, 0.0107269287109375, -0.0027923583984375, 0.033447265625, -0.0269775390625, -0.03778076171875, 0.09844970703125, 0.029632568359375, 0.09423828125, -0.015899658203125, 0.0170135498046875, -0.01629638671875, -0.00930023193359375, 0.042022705078125, -0.0230712890625, -0.038665771484375, 0.028656005859375, 0.07427978515625, 0.036529541015625, 0.05548095703125, 0.0048980712890625, 0.03118896484375, 0.00415802001953125, -0.0010576248168945312, -0.048431396484375, -0.00021266937255859375, 0.060943603515625, 0.023895263671875, -0.030059814453125, 0.0501708984375, -0.028289794921875, 0.041015625, 0.038360595703125, 0.08013916015625, -0.05877685546875, 0.0279998779296875, 0.0182952880859375, -0.042083740234375, 0.0117645263671875, 0.020721435546875, -0.0030002593994140625, -0.0089263916015625, 0.002635955810546875, -0.016571044921875, -0.007266998291015625, 0.016143798828125, 0.0007104873657226562, -0.0224609375, -0.04779052734375, 0.0207977294921875, 0.00690460205078125, 0.013702392578125, -0.01102447509765625, 0.012542724609375, -0.012359619140625, -0.035919189453125, -0.005283355712890625, -0.023590087890625, -0.032135009765625, -0.07177734375, -0.0244293212890625, -0.00823211669921875, -0.0089263916015625, -0.0140533447265625, 0.036529541015625, 0.060638427734375, 0.024658203125, 0.0306854248046875, -0.0316162109375, -0.0105438232421875, 0.036712646484375, -0.037017822265625, -0.0196533203125, 0.00384521484375, 0.002750396728515625, -0.011810302734375, 0.015533447265625, -0.0318603515625, -0.0286865234375, -0.0251922607421875, -0.044830322265625, 0.0706787109375, -0.0171966552734375, -0.0159149169921875, 0.013458251953125, -0.00811004638671875, -0.017547607421875, 0.005725860595703125, 0.0072479248046875, 0.017547607421875, 0.070556640625, -0.00527191162109375, 0.0286102294921875, -0.0137786865234375, -0.00988006591796875, -0.0265350341796875, 0.0325927734375, -0.017120361328125, -0.00992584228515625, 0.01227569580078125, 0.0220184326171875, -0.00794219970703125, -0.0003514289855957031, -0.059906005859375, 0.08148193359375, -0.020355224609375, 0.039642333984375, -0.05169677734375, 0.0228729248046875, 0.0021915435791015625, -0.0252685546875, 0.077880859375, 0.0197296142578125, -0.036285400390625, -0.016632080078125, 0.053558349609375, 0.029815673828125, -0.00577545166015625, 0.05450439453125, 0.0205535888671875, 0.0205841064453125, 0.048309326171875, -0.049224853515625, 0.0237579345703125, -0.0003139972686767578, 0.032623291015625, 0.030059814453125, 0.004093170166015625, -0.0235443115234375, -0.00726318359375, 0.022216796875, -0.0194244384765625, 0.00455474853515625, 0.00318145751953125, 0.00644683837890625, 0.0292205810546875, 0.021484375, 0.030792236328125, -0.04034423828125, -0.026641845703125, -0.01018524169921875, 0.04376220703125, -0.0039520263671875, 0.038116455078125, 0.05804443359375, 0.027862548828125, 0.024871826171875, 0.006439208984375, 0.025909423828125, -0.0189666748046875, -0.0213470458984375, 0.0328369140625, -0.0065765380859375, 0.0047149658203125, -0.06494140625, -0.023834228515625, 0.0638427734375, 0.056549072265625, -0.03118896484375, -0.03387451171875, 0.014251708984375, -0.00855255126953125, -0.0231170654296875, -0.0157470703125, -0.0248565673828125, 0.055816650390625, 0.057373046875, 0.000202178955078125, -0.016326904296875, 0.00799560546875, 0.0279083251953125, 0.00836181640625, 0.0234832763671875, -0.01375579833984375, -0.02252197265625, -0.018585205078125, -0.054046630859375, 0.029998779296875, 0.035797119140625, 0.03887939453125, 0.0141143798828125, 0.049163818359375, -0.003459930419921875, -0.019073486328125, 0.0255126953125, 0.0243682861328125, 0.026580810546875, -0.04254150390625, -0.034423828125, 0.060577392578125, 0.05181884765625, 0.0092315673828125, 0.035980224609375, 0.06951904296875, 0.06976318359375, -0.0175628662109375, -0.023834228515625, 0.040130615234375, -0.00849151611328125, 0.03448486328125, -0.0259552001953125, 0.01039886474609375, 0.004558563232421875, -0.0131072998046875, -0.03173828125, 0.0291748046875, 0.041351318359375, 0.02294921875, 0.0222625732421875, 0.0267181396484375, 0.0364990234375, 0.03131103515625, 0.01464080810546875, -0.02587890625, 0.048736572265625, 0.01100921630859375, -0.00009918212890625, 0.00954437255859375, -0.039947509765625, 0.003414154052734375, 0.030029296875, -0.02984619140625, 0.031280517578125, -0.00545501708984375, -0.017333984375, 0.047576904296875, 0.005405426025390625, -0.03961181640625, 0.005542755126953125, 0.04296875, -0.025787353515625, -0.06866455078125, -0.036865234375, -0.01222991943359375, 0.035980224609375, -0.017578125, 0.0462646484375, 0.00937652587890625, 0.0119781494140625, -0.0198822021484375, 0.01031494140625, 0.0025806427001953125, -0.011016845703125, -0.0057830810546875, 0.039031982421875, 0.024383544921875, -0.01132965087890625, -0.0011358261108398438, 0.0157318115234375, 0.01174163818359375, -0.038177490234375, 0.0124359130859375, -0.038330078125, 0.0105438232421875, -0.0198822021484375, -0.017822265625, -0.0333251953125, -0.0098419189453125, -0.01340484619140625, -0.006378173828125, 0.0211181640625, -0.0081787109375, -0.018035888671875, 0.02880859375, -0.0222930908203125, -0.016204833984375, 0.0123291015625, -0.051239013671875, 0.00888824462890625, 0.028289794921875, -0.0175323486328125, -0.00025773048400878906, -0.0013828277587890625, -0.0282745361328125, -0.0006012916564941406, 0.0017118453979492188, 0.01143646240234375, 0.001575469970703125, -0.07708740234375, 0.004711151123046875, 0.0819091796875, 0.07623291015625, 0.037353515625, 0.034149169921875, 0.00681304931640625, -0.045654296875, 0.0140533447265625, 0.01010894775390625, -0.02020263671875, -0.0377197265625, -0.0198211669921875, 0.0024166107177734375, -0.03594970703125, -0.038543701171875, -0.047119140625, -0.0038623809814453125, 0.034820556640625, -0.022491455078125, 0.0175018310546875, -0.0311737060546875, -0.04302978515625, 0.0227813720703125, -0.0006270408630371094, -0.002162933349609375, 0.0176849365234375, 0.05938720703125, -0.007389068603515625, -0.0191650390625, -0.0160675048828125, 0.0132293701171875, -0.00403594970703125, 0.0199737548828125, 0.0042266845703125, -0.0123291015625, 0.01458740234375, 0.0205535888671875, 0.01184844970703125, 0.0631103515625, 0.036529541015625, -0.012939453125, 0.01385498046875, 0.005329132080078125, 0.01229095458984375, -0.054229736328125, -0.00745391845703125, -0.060455322265625, 0.02069091796875, -0.03961181640625, 0.033599853515625, 0.0361328125, -0.0211029052734375, -0.0218505859375, 0.1007080078125, -0.021759033203125, -0.00196075439453125, -0.026580810546875, 0.02020263671875, -0.004520416259765625, 0.035400390625, 0.0093994140625, -0.03607177734375, -0.0211181640625, -0.00472259521484375, 0.01910400390625, -0.0036182403564453125, 0.035797119140625, 0.005558013916015625, -0.0273284912109375, 0.0310821533203125, 0.006587982177734375, 0.002086639404296875, 0.019775390625, -0.0028324127197265625, 0.046478271484375, 0.044342041015625, -0.036712646484375, 0.059967041015625, -0.002529144287109375, 0.0034580230712890625, -0.01812744140625, -0.011016845703125, 0.003997802734375, 0.025909423828125, 0.053802490234375, 0.04296875, 0.00742340087890625, -0.0609130859375, -0.014801025390625, -0.045867919921875, 0.0118255615234375, -0.0021114349365234375, -0.0031223297119140625, -0.045318603515625, -0.0006647109985351562, 0.018768310546875, 0.012115478515625, -0.03582763671875, -0.0004696846008300781, 0.00936126708984375, -0.0355224609375, 0.02899169921875, -0.00634765625, 0.005611419677734375, -0.0212249755859375, 0.07745361328125, -0.02960205078125, 0.0267181396484375, 0.023223876953125, 0.00048065185546875, 0.05572509765625, 0.045257568359375, 0.0294952392578125, -0.0171051025390625, -0.0213775634765625, 0.04638671875, 0.001605987548828125, 0.033172607421875, -0.047454833984375, -0.043487548828125, -0.0167999267578125, 0.015472412109375, 0.007843017578125, 0.0274658203125, -0.0105438232421875, 0.0136260986328125, 0.0159912109375, 0.034515380859375, -0.04193115234375, -0.05145263671875, -0.041717529296875, 0.0243988037109375, -0.0004432201385498047, 0.01125335693359375, 0.0694580078125, -0.015655517578125, 0.0158538818359375, -0.0292816162109375, 0.033782958984375, 0.007282257080078125, -0.004909515380859375, -0.044525146484375, -0.0118255615234375, 0.0038394927978515625 ]
a897d8d8f2bb3e3d04415ec802a1d42fd82fa74c
Wordpress Stackexchange Q: Allow guests to save favourite pages? We're creating a site where we want guest users to add pages to a favourites list (post IDs), so they can print or email their selection if they want. What would the best way be to do this in WordPress? I think ajax but I'm not too sure how to save it in the WordPress framework. A: Cookies, or even HTML5 local storage, seem like a good way to implement this. Here's some basic code that could serve as a starting point. Post IDs are stored as CSV in the cookie. // Load current favourite posts from cookie $favposts = (isset($_COOKIE['favposts'])) ? explode(',', (string) $_COOKIE['favposts']) : array(); $favposts = array_map('absint', $favposts); // Clean cookie input, it's user input! // Add (or remove) favourite post IDs $favposts[] = $post->ID; // Update cookie with new favourite posts $time_to_live = 3600 * 24 * 30; // 30 days setcookie('favposts', implode(',', array_unique($favposts)), time() + $time_to_live);
Q: Allow guests to save favourite pages? We're creating a site where we want guest users to add pages to a favourites list (post IDs), so they can print or email their selection if they want. What would the best way be to do this in WordPress? I think ajax but I'm not too sure how to save it in the WordPress framework. A: Cookies, or even HTML5 local storage, seem like a good way to implement this. Here's some basic code that could serve as a starting point. Post IDs are stored as CSV in the cookie. // Load current favourite posts from cookie $favposts = (isset($_COOKIE['favposts'])) ? explode(',', (string) $_COOKIE['favposts']) : array(); $favposts = array_map('absint', $favposts); // Clean cookie input, it's user input! // Add (or remove) favourite post IDs $favposts[] = $post->ID; // Update cookie with new favourite posts $time_to_live = 3600 * 24 * 30; // 30 days setcookie('favposts', implode(',', array_unique($favposts)), time() + $time_to_live); A: You can save the information directly to a database table, so you'd have a table of userIDs associated with postIDs, and to get the list of posts that user has favorited, you can run a query on the database. See: Class Reference/wpdb
wordpress
{ "language": "en", "length": 201, "provenance": "stackexchange_00019.jsonl.gz:410608", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20865" }
[ 0.07928466796875, 0.0005726814270019531, -0.00494384765625, -0.01088714599609375, 0.03265380859375, -0.058868408203125, 0.0787353515625, -0.03204345703125, -0.0012454986572265625, 0.0019683837890625, -0.037261962890625, -0.01529693603515625, -0.01216888427734375, -0.0245513916015625, -0.004734039306640625, -0.039306640625, 0.05499267578125, -0.03564453125, 0.0404052734375, 0.006103515625, -0.020751953125, 0.036285400390625, 0.067138671875, 0.01385498046875, 0.05450439453125, -0.01483154296875, 0.0055389404296875, 0.0109405517578125, 0.03155517578125, 0.0100250244140625, 0.030670166015625, -0.044281005859375, 0.007427215576171875, 0.0024738311767578125, -0.0027675628662109375, -0.0218048095703125, 0.012725830078125, -0.00917816162109375, -0.01007843017578125, 0.03167724609375, 0.00260162353515625, 0.01194000244140625, -0.02374267578125, 0.01239776611328125, -0.0457763671875, -0.034942626953125, 0.031768798828125, 0.016143798828125, 0.0250244140625, 0.0390625, 0.0225677490234375, 0.0037059783935546875, 0.007061004638671875, 0.0194854736328125, -0.00972747802734375, 0.00696563720703125, 0.01398468017578125, -0.0009717941284179688, 0.05401611328125, -0.05780029296875, -0.060516357421875, -0.03375244140625, 0.0306854248046875, 0.00478363037109375, -0.01165008544921875, 0.00939178466796875, 0.0546875, 0.0272369384765625, -0.03936767578125, -0.03472900390625, 0.007053375244140625, -0.0190887451171875, 0.005535125732421875, -0.018310546875, -0.0274200439453125, 0.01296234130859375, -0.00786590576171875, -0.01544189453125, 0.0101165771484375, -0.005146026611328125, -0.0204620361328125, 0.0218048095703125, -0.01432037353515625, -0.05145263671875, -0.0201873779296875, -0.0269775390625, -0.031494140625, 0.006023406982421875, -0.0199127197265625, -0.01971435546875, -0.0217742919921875, -0.0114288330078125, -0.007091522216796875, 0.01171875, -0.0291748046875, -0.01136016845703125, 0.006969451904296875, 0.039703369140625, -0.038665771484375, 0.007671356201171875, -0.0379638671875, 0.0059814453125, -0.005359649658203125, -0.0236968994140625, -0.0101776123046875, 0.044921875, 0.027130126953125, 0.02301025390625, 0.0243682861328125, 0.01258087158203125, 0.002071380615234375, -0.002452850341796875, 0.054229736328125, -0.01163482666015625, -0.0144805908203125, 0.0032482147216796875, 0.0170745849609375, 0.041748046875, 0.01171875, 0.021240234375, -0.0361328125, -0.006160736083984375, -0.0064697265625, -0.015380859375, 0.041259765625, 0.0252838134765625, -0.0177459716796875, 0.011932373046875, -0.0249481201171875, 0.060028076171875, -0.0232086181640625, -0.01520538330078125, 0.050567626953125, 0.0182037353515625, 0.0013189315795898438, -0.0416259765625, 0.036590576171875, -0.02703857421875, -0.034088134765625, 0.0300750732421875, 0.018890380859375, -0.035797119140625, -0.00814056396484375, -0.033966064453125, 0.029083251953125, 0.005641937255859375, 0.00870513916015625, 0.029022216796875, 0.010406494140625, -0.03228759765625, 0.052337646484375, -0.038116455078125, 0.0372314453125, -0.016693115234375, -0.026153564453125, -0.035919189453125, -0.0236053466796875, -0.01776123046875, 0.0276641845703125, -0.00852203369140625, -0.01263427734375, -0.0251312255859375, 0.01151275634765625, -0.057098388671875, -0.059051513671875, 0.01284027099609375, -0.027984619140625, -0.001068115234375, 0.019134521484375, 0.03765869140625, 0.0211334228515625, -0.04730224609375, -0.01168060302734375, -0.0110626220703125, -0.0227203369140625, 0.0190277099609375, 0.0100860595703125, 0.0274200439453125, 0.0211181640625, 0.0599365234375, 0.01522064208984375, -0.030548095703125, 0.06903076171875, -0.022125244140625, 0.00838470458984375, 0.0318603515625, 0.0031757354736328125, 0.034912109375, -0.017181396484375, 0.0162353515625, -0.039764404296875, 0.028411865234375, -0.0278167724609375, 0.041351318359375, -0.006824493408203125, -0.031280517578125, -0.007373809814453125, 0.007904052734375, -0.021759033203125, -0.015594482421875, 0.024627685546875, 0.016387939453125, 0.00022423267364501953, -0.04364013671875, -0.0709228515625, 0.01105499267578125, -0.032135009765625, 0.049835205078125, 0.00335693359375, -0.00902557373046875, 0.0126495361328125, 0.0088653564453125, -0.01367950439453125, -0.021728515625, -0.03765869140625, 0.0290985107421875, -0.05316162109375, 0.032257080078125, 0.01343536376953125, 0.028839111328125, 0.0025882720947265625, -0.01074981689453125, 0.010894775390625, -0.0220184326171875, 0.039642333984375, -0.007354736328125, -0.02154541015625, -0.022705078125, -0.01690673828125, 0.006633758544921875, -0.049652099609375, 0.056427001953125, 0.0034027099609375, 0.031707763671875, -0.01947021484375, -0.01093292236328125, -0.030853271484375, -0.059661865234375, -0.0008006095886230469, 0.05029296875, 0.034210205078125, 0.020843505859375, 0.039642333984375, 0.0504150390625, 0.01904296875, -0.00618743896484375, 0.038330078125, -0.0005702972412109375, -0.008636474609375, 0.054718017578125, -0.00508880615234375, 0.041229248046875, -0.006961822509765625, -0.057373046875, 0.00615692138671875, 0.03948974609375, -0.01641845703125, 0.027099609375, 0.01151275634765625, -0.01175689697265625, -0.006137847900390625, 0.0118865966796875, 0.018951416015625, -0.0083770751953125, 0.007572174072265625, -0.014404296875, 0.0240631103515625, 1.7881393432617188e-7, -0.004673004150390625, -0.00699615478515625, 0.01085662841796875, -0.044647216796875, -0.01222991943359375, -0.004364013671875, -0.0039043426513671875, 0.04681396484375, -0.0665283203125, 0.0275115966796875, 0.01235198974609375, 0.01120758056640625, -0.01788330078125, 0.0587158203125, 0.0154266357421875, -0.0255889892578125, -0.034881591796875, -0.04229736328125, -0.005741119384765625, -0.015411376953125, 0.0389404296875, 0.01806640625, 0.0251007080078125, 0.03375244140625, -0.005748748779296875, 0.03643798828125, 0.038177490234375, -0.01354217529296875, 0.0018157958984375, -0.0638427734375, 0.027191162109375, -0.027313232421875, 0.06719970703125, 0.0684814453125, 0.031585693359375, 0.0009407997131347656, -0.01079559326171875, 0.0518798828125, 0.01052093505859375, 0.0052032470703125, 0.003662109375, -0.0153961181640625, 0.039154052734375, 0.033050537109375, 0.0284423828125, 0.05731201171875, 0.0030975341796875, -0.0333251953125, 0.0003571510314941406, 0.0296173095703125, -0.07904052734375, -0.1025390625, 0.00370025634765625, -0.079345703125, -0.0166473388671875, -0.0191802978515625, -0.041656494140625, 0.00936126708984375, 0.0179443359375, -0.004608154296875, -0.0802001953125, -0.00537872314453125, 0.034088134765625, -0.0193634033203125, 0.0261077880859375, -0.025360107421875, 0.01110076904296875, -0.01432037353515625, -0.004680633544921875, 0.0257110595703125, -0.01290130615234375, -0.035003662109375, -0.0286865234375, -0.00542449951171875, -0.0094757080078125, -0.03375244140625, -0.0240478515625, 0.041229248046875, -0.0088348388671875, 0.00753021240234375, 0.02838134765625, 0.0166778564453125, -0.0307464599609375, -0.00862884521484375, -0.0264129638671875, 0.031463623046875, 0.0135345458984375, -0.00803375244140625, 0.0251312255859375, 0.095947265625, 0.065673828125, 0.027099609375, 0.0194854736328125, -0.0263214111328125, -0.0296783447265625, -0.0345458984375, 0.010650634765625, 0.01436614990234375, -0.021484375, -0.0229034423828125, -0.0098114013671875, -0.00716400146484375, 0.0284271240234375, -0.020904541015625, 0.018524169921875, -0.0254974365234375, -0.04339599609375, -0.03533935546875, 0.053802490234375, 0.0108642578125, -0.0306549072265625, 0.01152801513671875, 0.0194549560546875, -0.005542755126953125, 0.005306243896484375, -0.05218505859375, -0.064697265625, 0.0318603515625, -0.00931549072265625, 0.0474853515625, -0.0291748046875, -0.01459503173828125, -0.003978729248046875, 0.09637451171875, -0.08251953125, -0.0207977294921875, -0.0014925003051757812, 0.0237884521484375, -0.0029296875, -0.041656494140625, -0.014068603515625, -0.0102691650390625, -0.01274871826171875, 0.02691650390625, -0.01363372802734375, 0.00913238525390625, -0.030426025390625, 0.01277923583984375, 0.01343536376953125, -0.017120361328125, 0.0267333984375, 0.004669189453125, 0.009735107421875, -0.0347900390625, -0.0150146484375, -0.035247802734375, 0.004314422607421875, -0.0264892578125, -0.06365966796875, -0.01318359375, -0.0163116455078125, 0.037689208984375, 0.0189666748046875, -0.0249481201171875, 0.01186370849609375, 0.036285400390625, 0.032318115234375, 0.0208282470703125, -0.0158233642578125, -0.02978515625, -0.0012159347534179688, -0.05230712890625, -0.01064300537109375, -0.057525634765625, 0.004428863525390625, -0.0150146484375, 0.00556182861328125, -0.0028533935546875, -0.04742431640625, -0.0299072265625, -0.004764556884765625, -0.005130767822265625, -0.07415771484375, -0.047454833984375, -0.0176849365234375, 0.00675201416015625, -0.00835418701171875, -0.008331298828125, -0.050445556640625, -0.07745361328125, 0.0465087890625, -0.0157623291015625, 0.0146942138671875, 0.001285552978515625, 0.09674072265625, -0.002330780029296875, -0.018218994140625, -0.041259765625, 0.0024318695068359375, 0.055816650390625, -0.005584716796875, 0.035919189453125, 0.0467529296875, -0.029296875, 0.05438232421875, 0.0297393798828125, -0.024169921875, -0.04339599609375, 0.07421875, 0.0103759765625, 0.025848388671875, -0.043182373046875, -0.0313720703125, 0.04779052734375, 0.01019287109375, -0.0196990966796875, 0.019927978515625, -0.012115478515625, 0.02191162109375, -0.00042724609375, -0.016448974609375, -0.04071044921875, -0.0114593505859375, 0.007488250732421875, -0.04632568359375, 0.03179931640625, 0.0188140869140625, -0.00656890869140625, 0.01812744140625, 0.0122222900390625, -0.02117919921875, 0.01210784912109375, -0.006168365478515625, 0.04193115234375, -0.00772857666015625, 0.0379638671875, -0.00630950927734375, -0.0118560791015625, 0.018310546875, -0.0340576171875, -0.019561767578125, -0.057098388671875, -0.0589599609375, 0.0286865234375, 0.0237274169921875, 0.033660888671875, 0.005710601806640625, 0.04644775390625, 0.0582275390625, 0.0175018310546875, -0.02325439453125, -0.01215362548828125, 0.04779052734375, -0.04864501953125, -0.013519287109375, 0.0142364501953125, -0.00799560546875, 0.037872314453125, 0.05609130859375, -0.0287017822265625, 0.055877685546875, -0.023895263671875, 0.0966796875, 0.07037353515625, -0.003101348876953125, 0.0039520263671875, 0.0239105224609375, -0.005767822265625, -0.022003173828125, -0.03778076171875, 0.005580902099609375, -0.00928497314453125, -0.0169525146484375, 0.00804901123046875, -0.0072021484375, 0.017791748046875, 0.02020263671875, -0.0129852294921875, -0.00009107589721679688, 0.0006957054138183594, -0.0020465850830078125, -0.00344085693359375, 0.0003941059112548828, -0.01154327392578125, -0.0189971923828125, 0.007564544677734375, 0.02325439453125, -0.037994384765625, -0.00714874267578125, -0.040435791015625, 0.0284423828125, -0.0229339599609375, -0.0498046875, -0.046112060546875, -0.0305328369140625, -0.057769775390625, 0.0005545616149902344, -0.037017822265625, 0.02557373046875, -0.0308990478515625, -0.015716552734375, 0.025665283203125, 0.01047515869140625, 0.0457763671875, -0.036376953125, -0.026824951171875, 0.062408447265625, 0.0029773712158203125, 0.0275726318359375, -0.021087646484375, 0.0110015869140625, -0.005767822265625, -0.0595703125, -0.0401611328125, 0.007282257080078125, 0.0005044937133789062, -0.0243682861328125, -0.01404571533203125, 0.0155181884765625, 0.04461669921875, -0.0163421630859375, -0.034027099609375, -0.00467681884765625, -0.0263824462890625, 0.003398895263671875, 0.05010986328125, 0.0237274169921875, 0.01284027099609375, -0.02557373046875, 0.048004150390625, 0.0166473388671875, -0.0168609619140625, -0.04107666015625, -0.031646728515625, -0.006198883056640625, 0.0121612548828125, 0.0129852294921875, -0.0233612060546875, 0.030914306640625, 0.00921630859375, 0.06964111328125, -0.0077667236328125, -0.0163421630859375, -0.0137481689453125, 0.002346038818359375, -0.02935791015625, 0.004154205322265625, 0.0028533935546875, -0.041595458984375, 0.0027790069580078125, -0.0382080078125, -0.00745391845703125, 0.017791748046875, 0.034271240234375, -0.0038356781005859375, -0.0270538330078125, -0.0005421638488769531, 0.01143646240234375, -0.01435089111328125, -0.011322021484375, 0.052490234375, 0.0258026123046875, 0.037200927734375, 0.0009746551513671875, 0.0379638671875, 0.0204315185546875, 0.05780029296875, -0.036834716796875, -0.06793212890625, 0.0232391357421875, 0.00452423095703125, -0.02484130859375, -0.001476287841796875, -0.0217437744140625, -0.007480621337890625, 0.042144775390625, 0.00969696044921875, -0.05963134765625, -0.001483917236328125, -0.021575927734375, -0.01491546630859375, 0.01141357421875, 0.0053558349609375, 0.0002282857894897461, -0.023651123046875, 0.030029296875, -0.00864410400390625, -0.0077972412109375, 0.00264739990234375, -0.01160430908203125, 0.01264190673828125, -0.01503753662109375, 0.01507568359375, -0.0244293212890625, -0.033477783203125, -0.062042236328125, 0.02593994140625, -0.031585693359375, -0.01152801513671875, 0.01468658447265625, 0.0165252685546875, -0.029052734375, -0.061614990234375, 0.0013780593872070312, -0.0040740966796875, -0.009307861328125, 0.013763427734375, -0.01474761962890625, 0.0299224853515625, 0.046539306640625, -0.0175933837890625, 0.00949859619140625, 0.01128387451171875, -0.001861572265625, -0.0232696533203125, -0.01885986328125, 0.021759033203125, 0.0121307373046875, -0.04864501953125, 0.020538330078125, -0.01727294921875, -0.0283203125, -0.03179931640625, -0.005466461181640625, 0.08160400390625, 0.00902557373046875, -0.051788330078125, 0.021636962890625, 0.0313720703125, -0.039031982421875, -0.017333984375, -0.0121307373046875, -0.064697265625, -0.03997802734375, -0.00800323486328125, -0.055877685546875, 0.016265869140625, -0.0243988037109375, -0.07037353515625, 0.09765625, -0.004840850830078125, 0.0211029052734375, -0.018585205078125, 0.056182861328125, -0.028289794921875, 0.032684326171875, -0.0257568359375, 0.04803466796875, -0.0229949951171875, 0.029022216796875, -0.042938232421875, 0.013946533203125, -0.0226593017578125, -0.01171112060546875, 0.05963134765625, 0.0158538818359375, -0.01000213623046875, -0.027679443359375, 0.022430419921875, 0.0152435302734375, -0.0240936279296875, 0.028289794921875, -0.046966552734375, 0.040313720703125, 0.0155487060546875, -0.072021484375, -0.00540924072265625, 0.0293731689453125, -0.06353759765625, -0.0137481689453125, 0.0115203857421875, 0.0145263671875, 0.007171630859375, -0.0210113525390625, -0.06365966796875, 0.021575927734375, 0.037261962890625, -0.0014123916625976562, 0.004016876220703125, 0.005916595458984375, 0.022918701171875, -0.0245361328125, -0.041107177734375, -0.008697509765625, 0.0297393798828125, 0.0306549072265625, 0.003551483154296875, 0.033355712890625, 0.017608642578125, -0.001697540283203125, 0.034942626953125, -0.01177978515625, 0.008758544921875, 0.00649261474609375, 0.058441162109375, 0.0498046875, 0.023468017578125, -0.06085205078125, -0.01233673095703125, 0.06903076171875, 0.0966796875, -0.0587158203125, -0.0269927978515625, 0.012908935546875, 0.00893402099609375, 0.01165771484375, 0.0133514404296875, 0.047271728515625, -0.01537322998046875, -0.0014209747314453125, -0.01073455810546875, -0.019073486328125, 0.03472900390625, 0.0247650146484375, 0.006256103515625, 0.0266571044921875, -0.0242156982421875, -0.0177459716796875, -0.01885986328125, -0.036102294921875, -0.0106048583984375, -0.00928497314453125, 0.04864501953125, -0.035400390625, 0.0694580078125, 0.0273895263671875, 0.0066986083984375, 0.01384735107421875, 0.042083740234375, -0.03717041015625, -0.0212249755859375, -0.04248046875, 0.045867919921875, 0.024658203125, -0.020172119140625, 0.048919677734375, 0.07501220703125, 0.046142578125, -0.04833984375, -0.01363372802734375, 0.072998046875, -0.044677734375, 0.00028777122497558594, -0.0279083251953125, 0.0020580291748046875, 0.02044677734375, -0.0114593505859375, 0.00043392181396484375, -0.0088958740234375, 0.04705810546875, -0.024566650390625, 0.0482177734375, -0.0018558502197265625, 0.0206298828125, 0.026641845703125, 0.0173797607421875, 0.00222015380859375, 0.01763916015625, -0.08074951171875, -0.002788543701171875, -0.04364013671875, -0.03466796875, 0.0121002197265625, 0.0255584716796875, -0.00833892822265625, 0.0240325927734375, 0.0247955322265625, 0.005977630615234375, 0.0272674560546875, -0.032379150390625, 0.0164642333984375, 0.01486968994140625, 0.01207733154296875, 0.01128387451171875, -0.06512451171875, -0.0228271484375, -0.00261688232421875, 0.02386474609375, -0.0211944580078125, 0.059051513671875, 0.0109405517578125, -0.006076812744140625, -0.036102294921875, 0.0189361572265625, -0.0281982421875, -0.039703369140625, 0.03564453125, 0.01073455810546875, -0.007762908935546875, 0.0032138824462890625, -0.0167388916015625, 0.0126800537109375, 0.01424407958984375, -0.0029964447021484375, -0.0036067962646484375, -0.012847900390625, 0.0211334228515625, 0.0290985107421875, -0.004306793212890625, -0.032928466796875, -0.0266876220703125, -0.004749298095703125, 0.00890350341796875, 0.0082855224609375, -0.009796142578125, -0.031280517578125, 0.024017333984375, -0.01415252685546875, -0.01678466796875, 0.0310821533203125, -0.0394287109375, 0.016632080078125, 0.01509857177734375, 0.00197601318359375, -0.00998687744140625, -0.0013294219970703125, -0.0155181884765625, -0.006435394287109375, -0.0029201507568359375, 0.02105712890625, 0.0101470947265625, -0.039093017578125, 0.035858154296875, 0.021759033203125, 0.028839111328125, -0.044158935546875, -0.01114654541015625, 0.05615234375, -0.0182037353515625, 0.019317626953125, -0.0021209716796875, -0.034393310546875, -0.0411376953125, 0.0111083984375, 0.04852294921875, -0.040069580078125, -0.0136260986328125, -0.12457275390625, 0.01323699951171875, -0.0017747879028320312, -0.01047515869140625, -0.04345703125, 0.032470703125, -0.0017681121826171875, 0.042938232421875, -0.0452880859375, 0.0102081298828125, -0.023284912109375, -0.0299224853515625, -0.0180816650390625, 0.006275177001953125, -0.046905517578125, 0.03643798828125, -0.00774383544921875, -0.02801513671875, 0.008056640625, 0.02642822265625, -0.03607177734375, -0.0221099853515625, -0.03289794921875, 0.01398468017578125, -0.04058837890625, -0.03173828125, 0.0261993408203125, 0.0079803466796875, -0.0240936279296875, -0.06695556640625, 0.00262451171875, -0.0665283203125, 0.041748046875, -0.010162353515625, -0.00843048095703125, 0.0032291412353515625, -0.02825927734375, -0.04107666015625, 0.11444091796875, -0.0086822509765625, -0.00774383544921875, -0.04010009765625, -0.0301513671875, -0.029632568359375, 0.036285400390625, -0.01348114013671875, -0.035430908203125, -0.022186279296875, 0.0672607421875, 0.0099334716796875, -0.0008215904235839844, 0.053680419921875, -0.0181732177734375, -0.04083251953125, -0.0162353515625, -0.0227813720703125, -0.0004532337188720703, 0.030303955078125, -0.0163116455078125, 0.04217529296875, 0.050384521484375, -0.037200927734375, -0.01245880126953125, -0.02105712890625, -0.0233001708984375, -0.01433563232421875, -0.0177154541015625, -0.03204345703125, -0.005817413330078125, 0.046722412109375, 0.059417724609375, 0.021240234375, -0.027099609375, 0.0239105224609375, -0.04547119140625, -0.0090179443359375, 0.00726318359375, -0.0164031982421875, -0.032379150390625, -0.0042724609375, -0.0011310577392578125, -0.006031036376953125, 0.00913238525390625, 0.0244903564453125, 0.006107330322265625, 0.005367279052734375, 0.053985595703125, -0.0268707275390625, -0.02398681640625, 0.02801513671875, 0.033111572265625, -0.0291900634765625, -0.0116729736328125, -0.0048065185546875, -0.0028972625732421875, 0.01477813720703125, -0.0027103424072265625, 0.04241943359375, 0.0301971435546875, -0.045166015625, -0.008453369140625, 0.0220947265625, 0.0189208984375, -0.040435791015625, -0.0325927734375, 0.0224151611328125, 0.019683837890625, -0.0074462890625, 0.021240234375, 0.035919189453125, -0.0171356201171875, -0.0504150390625, 0.0089569091796875, -0.0036678314208984375, -0.03607177734375, 0.011962890625, 0.012969970703125, 0.00237274169921875, -0.0311431884765625, 0.054840087890625, -0.0635986328125, 0.00875091552734375, -0.022247314453125, 0.00031113624572753906, -0.01464080810546875, -0.005126953125, -0.033782958984375, -0.0273895263671875, 0.0169677734375 ]
2594d17200734ceff27b9f93a5d76c472899e030
Wordpress Stackexchange Q: wp_enqueue_script adding conditional statement not working This is the code im using in my functions file: add_action('init', 'sort_out_jquery_pngfix_frontend'); function sort_out_jquery_pngfix_frontend() { global $wp_scripts; if(!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', array(), NULL, true); wp_register_script('dd_belatedpng', get_stylesheet_directory_uri() . '/js/dd_belatedpng.js', array(), NULL, true); $wp_scripts->add_data('dd_belatedpng', 'conditional', 'lt IE 7'); } } add_action('wp_print_scripts', 'register_theme_scripts'); function register_theme_scripts() { if(!is_admin()) { wp_enqueue_script('modernizr', get_stylesheet_directory_uri() . '/js/modernizr-1.7.min.js', array(), NULL, false); wp_enqueue_script('googlemaps', 'http://maps.google.com/maps/api/js?sensor=false', array(), NULL, true); wp_enqueue_script('jquery'); wp_enqueue_script('dd_belatedpng'); wp_enqueue_script('sc_wc_js', get_stylesheet_directory_uri() . '/js/function.js', array('jquery', 'dd_belatedpng'), '1.0', true); } } I'm using $wp_scripts->add_data('dd_belatedpng', 'conditional', 'lt IE 7'); to add a conditional statement to this script as per the documentation I can find on-line but its not working. The conditional code is not shown but the js file is. Why is this not working? A: From quick look at code this conditional only seems to be processed for styles and not scripts.
Q: wp_enqueue_script adding conditional statement not working This is the code im using in my functions file: add_action('init', 'sort_out_jquery_pngfix_frontend'); function sort_out_jquery_pngfix_frontend() { global $wp_scripts; if(!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', array(), NULL, true); wp_register_script('dd_belatedpng', get_stylesheet_directory_uri() . '/js/dd_belatedpng.js', array(), NULL, true); $wp_scripts->add_data('dd_belatedpng', 'conditional', 'lt IE 7'); } } add_action('wp_print_scripts', 'register_theme_scripts'); function register_theme_scripts() { if(!is_admin()) { wp_enqueue_script('modernizr', get_stylesheet_directory_uri() . '/js/modernizr-1.7.min.js', array(), NULL, false); wp_enqueue_script('googlemaps', 'http://maps.google.com/maps/api/js?sensor=false', array(), NULL, true); wp_enqueue_script('jquery'); wp_enqueue_script('dd_belatedpng'); wp_enqueue_script('sc_wc_js', get_stylesheet_directory_uri() . '/js/function.js', array('jquery', 'dd_belatedpng'), '1.0', true); } } I'm using $wp_scripts->add_data('dd_belatedpng', 'conditional', 'lt IE 7'); to add a conditional statement to this script as per the documentation I can find on-line but its not working. The conditional code is not shown but the js file is. Why is this not working? A: From quick look at code this conditional only seems to be processed for styles and not scripts. A: It is a long shot, but you might try registering the script, then adding in the conditional, and then enqueueing the script: // Register the script wp_register_script( 'dd_belatedpng', get_stylesheet_directory_uri() . '/js/dd_belatedpng.js', array(), NULL, true ); // Attempt to add in the IE conditional tags $wp_scripts->add_data('dd_belatedpng', 'conditional', 'lt IE 7'); // Enqueue the script wp_enqueue_script( 'dd_belatedpng' ); I don't know that it will work, though EDIT Based on the related Trac ticket, it appears $wp_scripts doesn't support this method. You may just need to pull the script out of the wp_enqueue_script() system, and echo the IE conditional-enclosed script call inside of a pluggable function hooked into wp_print_scripts or wp_head. It's certainly not ideal, but if this is a single-use client Theme, then you don't have to worry about someone else needing to deregister the script. A: This is the work around I had to put in place since WP doesnt support what I was trying to do functions.php add_action('init', 'sort_out_jquery_pngfix_frontend'); function sort_out_jquery_pngfix_frontend() { if(!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', array(), NULL, true); wp_register_script('dd_belatedpng', get_stylesheet_directory_uri() . '/js/dd_belatedpng.js', array(), NULL, true); } } add_action('wp_print_scripts', 'register_theme_scripts'); function register_theme_scripts() { if(!is_admin()) { wp_enqueue_script('modernizr', get_stylesheet_directory_uri() . '/js/modernizr-1.7.min.js', array(), NULL, false); wp_enqueue_script('googlemaps', 'http://maps.google.com/maps/api/js?sensor=false', array(), NULL, true); wp_enqueue_script('jquery'); wp_enqueue_script('sc_wc_js', get_stylesheet_directory_uri() . '/js/function.js', array('jquery'), '1.0', true); } } footer.php <?php wp_footer(); ?> <!--[if lt IE 7]> <?php wp_print_scripts(array('dd_belatedpng')); ?> <script>DD_belatedPNG.fix("img, .png_bg");</script> <![endif]--> A: Just found a partial solution for this via $is_IE in wp-includes/vars.php! function emporium_enqueue_scripts() { global $is_IE; if( $is_IE ) { wp_register_script( 'emporium-focus' , get_template_directory_uri() . '/library/focus.js', '', '', true ); wp_enqueue_script( 'emporium-focus' ); } } add_action('init', 'emporium_enqueue_scripts'); That seems to load library/focus.js on an if IE basis but there's nothing in core to do any IE version conditionals for scripts. Looks like a Trac ticket on the subject has been shelved for the time being. A: It looks like you are putting it in the footer. Did you look at the end of the page for the JS file? A: This works for scripts too. But only in one situation: If the script was registered first. You can't go straight for enqueue. You'll have to do: register -> add_data -> enqueue. This is both for scripts as for styles the same rule. A: Here is a working example for Wordpress 4.2 and above. This first example was previously answered here. wp_register_script("ie_jshandle", get_template_directory_uri() . "/js/jsSpecificIE.js", array(), '1.0', false ); wp_enqueue_script("ie_jshandle"); wp_script_add_data("ie_jshandle", "conditional", "lt IE 9"); You can also use $wp_scripts variable like this: function wpse_20873_enq_scripts() { global $wp_scripts; wp_register_script("ie_jshandle", get_template_directory_uri() . "/js/jsSpecificIE.js", array(), '1.0', false ); wp_enqueue_script("ie_jshandle"); $wp_scripts->add_data("ie_jshandle", "conditional", "lt IE 9"); } add_action("wp_enqueue_scripts", "wpse_20873_enq_scripts"); wp_script_add_data reference
wordpress
{ "language": "en", "length": 568, "provenance": "stackexchange_00019.jsonl.gz:410611", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20873" }
[ -0.006256103515625, 0.005176544189453125, -0.0699462890625, -0.03070068359375, 0.0205230712890625, -0.0294189453125, 0.00785064697265625, 0.022552490234375, -0.0027828216552734375, -0.005401611328125, -0.06842041015625, 0.0234222412109375, -0.0270233154296875, -0.0124664306640625, 0.0215606689453125, -0.053619384765625, 0.06878662109375, -0.05657958984375, -0.0014019012451171875, -0.0105133056640625, -0.00006449222564697266, 0.0265655517578125, -0.006748199462890625, 0.1129150390625, -0.01361083984375, -0.004741668701171875, 0.06634521484375, 0.0265045166015625, -0.0352783203125, -0.0246429443359375, 0.019195556640625, 0.0287017822265625, 0.01190948486328125, 0.0157623291015625, 0.01319122314453125, 0.0180816650390625, 0.0814208984375, -0.01470947265625, 0.0203399658203125, 0.041656494140625, 0.00865936279296875, -0.007549285888671875, -0.042510986328125, 0.0293121337890625, -0.03179931640625, -0.07177734375, 0.017303466796875, -0.017333984375, 0.009735107421875, 0.049224853515625, 0.0215911865234375, -0.0023250579833984375, 0.0245361328125, 0.0104217529296875, 0.00368499755859375, 0.037445068359375, -0.036346435546875, 0.027374267578125, 0.0234832763671875, 0.069091796875, 0.007152557373046875, 0.0108795166015625, -0.0206298828125, -0.065673828125, -0.02191162109375, -0.0018482208251953125, -0.06549072265625, -0.002044677734375, -0.04217529296875, -0.03533935546875, 0.016815185546875, -0.0428466796875, 0.00678253173828125, -0.0265960693359375, -0.0193023681640625, 0.008514404296875, -0.0181427001953125, -0.032073974609375, 0.025146484375, -0.02813720703125, 0.035400390625, 0.01137542724609375, -0.007129669189453125, 0.006458282470703125, 0.01232147216796875, 0.027587890625, -0.00254058837890625, -0.039398193359375, -0.041046142578125, -0.0144805908203125, -0.0260772705078125, -0.030487060546875, -0.045684814453125, -0.0181884765625, -0.004428863525390625, -0.04742431640625, 0.08203125, 0.07012939453125, 0.0216064453125, 0.01174163818359375, -0.0090484619140625, -0.053070068359375, 0.0141143798828125, -0.05157470703125, -0.0103302001953125, 0.050018310546875, 0.00962066650390625, 0.01523590087890625, 0.0254058837890625, 0.005611419677734375, 0.0208740234375, 0.01171875, -0.0084228515625, 0.00762939453125, -0.0286712646484375, -0.0157928466796875, -0.037994384765625, -0.004730224609375, -0.00016033649444580078, 0.0164794921875, -0.0221405029296875, 0.021728515625, 0.020263671875, -0.053955078125, -0.004947662353515625, -0.02874755859375, -0.01190948486328125, -0.031005859375, 0.039947509765625, 0.04962158203125, -0.02874755859375, -0.01019287109375, 0.02191162109375, -0.00818634033203125, -0.01500701904296875, -0.03912353515625, 0.050689697265625, 0.01511383056640625, -0.0223388671875, -0.01248931884765625, 0.025299072265625, -0.00403594970703125, 0.004398345947265625, -0.00972747802734375, -0.0083160400390625, -0.01216888427734375, 0.022247314453125, 0.0443115234375, -0.032012939453125, -0.041748046875, 0.056671142578125, -0.016204833984375, 0.02728271484375, -0.0167236328125, -0.0092315673828125, -0.02960205078125, 0.0273284912109375, -0.037811279296875, -0.00615692138671875, -0.0272064208984375, -0.00017142295837402344, 0.018096923828125, 0.03173828125, -0.018524169921875, -0.0206756591796875, -0.054779052734375, -0.0255584716796875, -0.006992340087890625, 0.0182952880859375, 0.07635498046875, -0.040191650390625, -0.03497314453125, 0.005825042724609375, -0.01403045654296875, -0.039337158203125, 0.0212249755859375, -0.0008955001831054688, 0.00905609130859375, 0.04156494140625, 0.0016298294067382812, -0.0252838134765625, -0.0408935546875, 0.07708740234375, -0.044464111328125, -0.0589599609375, 0.053314208984375, 0.00647735595703125, 0.06500244140625, 0.00814056396484375, 0.007781982421875, 0.07147216796875, 0.024383544921875, -0.01360321044921875, -0.0089569091796875, 0.0028591156005859375, -0.023193359375, 0.0207672119140625, 0.012664794921875, -0.0009198188781738281, -0.0236968994140625, 0.01861572265625, 0.00464630126953125, 0.0262451171875, -0.03790283203125, -0.02606201171875, 0.0087127685546875, -0.02056884765625, 0.057891845703125, -0.009490966796875, 0.01043701171875, 0.00689697265625, 0.002838134765625, -0.01343536376953125, -0.00438690185546875, -0.0037174224853515625, 0.01287078857421875, -0.022918701171875, 0.060546875, -0.0266876220703125, 0.0232391357421875, -0.0006747245788574219, -0.0391845703125, 0.01462554931640625, 0.0264739990234375, 0.009033203125, -0.017730712890625, -0.0245819091796875, -0.00937652587890625, 0.004405975341796875, 0.01351165771484375, -0.00971221923828125, 0.037078857421875, 0.0267791748046875, 0.01467132568359375, -0.034912109375, -0.0092620849609375, -0.0272674560546875, -0.0167999267578125, -0.00354766845703125, 0.035003662109375, 0.045684814453125, 0.01824951171875, -0.01059722900390625, -0.00653839111328125, 0.08160400390625, -0.00146484375, 0.013275146484375, -0.009979248046875, -0.0217132568359375, 0.0021457672119140625, -0.005390167236328125, 0.0042877197265625, 0.025299072265625, -0.0182952880859375, -0.034393310546875, 0.06768798828125, -0.0186309814453125, 0.0030727386474609375, -0.0008153915405273438, -0.00856781005859375, 0.01265716552734375, 0.04083251953125, 0.003963470458984375, 0.020782470703125, 0.033447265625, -0.01329803466796875, 0.033599853515625, 0.005344390869140625, -0.0102996826171875, -0.0172882080078125, 0.0193939208984375, -0.0030345916748046875, -0.00620269775390625, 0.0233612060546875, 0.027130126953125, 0.00954437255859375, -0.039276123046875, 0.0013408660888671875, 0.0220184326171875, 0.0229949951171875, 0.0261383056640625, 0.0256805419921875, -0.0037250518798828125, 0.002338409423828125, 0.0025882720947265625, -0.038116455078125, 0.0019969940185546875, 0.04351806640625, 0.032440185546875, 0.01320648193359375, 0.03973388671875, 0.01467132568359375, 0.0169830322265625, 0.0259246826171875, -0.00850677490234375, -0.02777099609375, 0.09832763671875, 0.01401519775390625, 0.004032135009765625, 0.0110321044921875, 0.044036865234375, 0.039794921875, -0.00835418701171875, 0.01195526123046875, 0.002628326416015625, -0.00922393798828125, 0.04486083984375, -0.0096435546875, 0.0013828277587890625, -0.0035724639892578125, -0.02532958984375, 0.037750244140625, 0.0233612060546875, -0.0270538330078125, 0.028076171875, -0.0126495361328125, 0.01433563232421875, -0.01535797119140625, -0.11383056640625, -0.099609375, -0.03466796875, -0.04022216796875, 0.03131103515625, 0.0037670135498046875, 0.00027179718017578125, -0.0106658935546875, 0.034454345703125, 0.0251312255859375, -0.03515625, -0.01413726806640625, -0.05230712890625, -0.06201171875, -0.061798095703125, 0.003391265869140625, -0.01007843017578125, 0.025360107421875, 0.0111846923828125, -0.0117645263671875, 0.0178680419921875, 0.00031304359436035156, 0.048858642578125, 0.0212249755859375, 0.001964569091796875, 0.0170745849609375, 0.0042877197265625, -0.006450653076171875, -0.024078369140625, 0.00865936279296875, -0.0121002197265625, 0.006832122802734375, -0.0207061767578125, -0.002536773681640625, 0.0016355514526367188, -0.0298614501953125, 0.00592803955078125, 0.0304107666015625, 0.0005784034729003906, -0.0146636962890625, 0.0180816650390625, -0.05328369140625, -0.030120849609375, 0.028717041015625, -0.0185394287109375, 0.04345703125, -0.01049041748046875, -0.0214996337890625, 0.02716064453125, 0.035430908203125, 0.05462646484375, 0.006824493408203125, 0.0144805908203125, 0.004650115966796875, 0.04571533203125, -0.007083892822265625, 0.023040771484375, -0.052398681640625, 0.037139892578125, -0.01508331298828125, 0.031280517578125, 0.0170135498046875, 0.0276031494140625, 0.0228118896484375, -0.024749755859375, -0.0275726318359375, 0.041656494140625, -0.0029773712158203125, -0.03851318359375, 0.042816162109375, 0.003566741943359375, 0.008453369140625, -0.005115509033203125, 0.0193634033203125, -0.06036376953125, -0.0479736328125, 0.01531219482421875, 0.052001953125, -0.05255126953125, -0.05133056640625, 0.0184783935546875, -0.013946533203125, -0.07586669921875, 0.0089874267578125, -0.00716400146484375, -0.03167724609375, 0.0017137527465820312, -0.054779052734375, -0.048583984375, -0.04925537109375, 0.054595947265625, -0.034423828125, 0.00386810302734375, 0.053955078125, -0.0207366943359375, 0.034942626953125, -0.03839111328125, -0.0238800048828125, -0.1083984375, -0.01175689697265625, -0.03521728515625, 0.07373046875, -0.004184722900390625, 0.018341064453125, 0.00150299072265625, 0.0787353515625, -0.006061553955078125, -0.020843505859375, 0.03106689453125, 0.0194549560546875, -0.00319671630859375, 0.0074615478515625, 0.0022296905517578125, -0.02423095703125, 0.001804351806640625, 0.00951385498046875, -0.0401611328125, -0.006397247314453125, -0.0028362274169921875, -0.02349853515625, 0.046722412109375, -0.041107177734375, -0.0289306640625, -0.00661468505859375, 0.01088714599609375, -0.01145172119140625, -0.0016841888427734375, -0.031768798828125, 0.01413726806640625, -0.017578125, 0.006946563720703125, -0.0275726318359375, -0.02239990234375, 0.006023406982421875, 0.018280029296875, 0.0172882080078125, -0.004016876220703125, 0.0145416259765625, 0.044342041015625, 0.03717041015625, 0.01129150390625, 0.040679931640625, 0.0295257568359375, -0.0015039443969726562, 0.0180816650390625, 0.0290069580078125, 0.018798828125, -0.00039124488830566406, 0.059539794921875, 0.01312255859375, 0.0277557373046875, -0.01377105712890625, 0.0313720703125, -0.05523681640625, -0.01507568359375, -0.0124359130859375, -0.00789642333984375, -0.0237884521484375, 0.0328369140625, 0.03521728515625, -0.01172637939453125, -0.044952392578125, -0.0186614990234375, -0.00920867919921875, -0.016998291015625, 0.08709716796875, 0.04144287109375, 0.002918243408203125, 0.0416259765625, 0.0806884765625, -0.00942230224609375, 0.025390625, 0.07257080078125, 0.0108184814453125, 0.033599853515625, 0.049713134765625, 0.00267791748046875, -0.04156494140625, -0.003093719482421875, 0.046234130859375, -0.003925323486328125, -0.042633056640625, -0.061614990234375, 0.00148773193359375, 0.037811279296875, -0.00308990478515625, 0.0189666748046875, 0.035919189453125, 0.0249176025390625, -0.032958984375, -0.02752685546875, 0.024261474609375, -0.0204925537109375, -0.045623779296875, -0.0010051727294921875, 0.0079345703125, -0.03607177734375, -0.063720703125, 0.0198822021484375, 0.0247039794921875, -0.041748046875, 0.010101318359375, 0.0157318115234375, -0.038116455078125, 0.052825927734375, -0.0033092498779296875, -0.0000033974647521972656, 0.0222625732421875, 0.03546142578125, 0.036773681640625, -0.028839111328125, -0.0247650146484375, 0.0241241455078125, 0.017059326171875, -0.0026340484619140625, -0.005741119384765625, 0.0163116455078125, 0.0295257568359375, -0.0250701904296875, 0.035491943359375, 0.02496337890625, -0.022735595703125, -0.0218658447265625, 0.01480865478515625, 0.045623779296875, 0.0208282470703125, 0.0020275115966796875, 0.00495147705078125, 0.01511383056640625, 0.023193359375, 0.03826904296875, 0.00235748291015625, 0.0101165771484375, 0.0028076171875, -0.044219970703125, -0.023956298828125, -0.0242156982421875, -0.005672454833984375, -0.033935546875, 0.00669097900390625, -0.0108184814453125, -0.00623321533203125, -0.0233001708984375, -0.02655029296875, -0.0090789794921875, 0.016082763671875, 0.005931854248046875, 0.0172271728515625, 0.041748046875, 0.0177154541015625, 0.0147247314453125, -0.01004791259765625, -0.0806884765625, -0.0341796875, -0.031036376953125, -0.017578125, -0.00243377685546875, 0.00981903076171875, -0.0071258544921875, 0.00942230224609375, -0.05377197265625, -0.03533935546875, 0.0036754608154296875, 0.047393798828125, 0.03375244140625, 0.08978271484375, -0.0362548828125, 0.04443359375, 0.038238525390625, 0.0025787353515625, -0.00913238525390625, -0.0016765594482421875, -0.0116424560546875, 0.006134033203125, -0.0024890899658203125, -0.08758544921875, -0.005466461181640625, 0.0167999267578125, -0.0139923095703125, 0.0491943359375, 0.0057373046875, 0.014556884765625, 0.05804443359375, 0.023681640625, 0.019927978515625, -0.0168914794921875, -0.05096435546875, 0.0007872581481933594, 0.009490966796875, 0.05914306640625, -0.027984619140625, 0.049346923828125, 0.0042877197265625, -0.03338623046875, 0.04730224609375, -0.0379638671875, 0.052093505859375, 0.0111846923828125, -0.05078125, 0.028778076171875, 0.060760498046875, 0.03839111328125, 0.047760009765625, -0.00809478759765625, 0.031707763671875, 0.0219573974609375, -0.00609588623046875, -0.00337982177734375, -0.01593017578125, 0.0221099853515625, -0.032196044921875, -0.01264190673828125, -0.0038089752197265625, -0.0167083740234375, 0.01061248779296875, 0.01332855224609375, 0.039398193359375, -0.05450439453125, 0.027252197265625, 0.0225372314453125, 0.00719451904296875, -0.009918212890625, -0.0101776123046875, 0.01119232177734375, 0.01959228515625, 0.039093017578125, 0.01209259033203125, -0.00965118408203125, 0.017242431640625, 0.017791748046875, -0.03204345703125, -0.0253448486328125, -0.042205810546875, -0.007061004638671875, -0.04022216796875, 0.0283966064453125, 0.0291595458984375, -0.02313232421875, 0.00141143798828125, -0.0034427642822265625, -0.0007061958312988281, -0.04095458984375, -0.056060791015625, -0.01824951171875, -0.0012788772583007812, -0.0443115234375, -0.03668212890625, -0.0016870498657226562, 0.0687255859375, 0.025054931640625, 0.0081024169921875, -0.038726806640625, 0.003711700439453125, 0.0318603515625, 0.03692626953125, -0.0253448486328125, 0.0426025390625, 0.03424072265625, -0.06512451171875, 0.0248565673828125, 0.001483917236328125, -0.026214599609375, -0.00007176399230957031, 0.01355743408203125, 0.042999267578125, -0.003955841064453125, -0.033843994140625, 0.0101165771484375, 0.009521484375, 0.004932403564453125, -0.0021038055419921875, 0.031829833984375, -0.0849609375, -0.07763671875, 0.0203399658203125, -0.08721923828125, -0.04974365234375, -0.0286407470703125, -0.03314208984375, 0.040313720703125, -0.0286865234375, -0.00257110595703125, -0.00994110107421875, 0.020965576171875, -0.0094757080078125, 0.00251007080078125, 0.01416778564453125, 0.01025390625, -0.0391845703125, 0.016326904296875, 0.00533294677734375, 0.004611968994140625, 0.020416259765625, 0.03277587890625, 0.0054168701171875, -0.0020084381103515625, 0.006805419921875, -0.028656005859375, -0.0160369873046875, 0.032684326171875, 0.0022830963134765625, -0.0266265869140625, -0.01378631591796875, -0.0206298828125, 0.0033969879150390625, -0.0142364501953125, 0.03680419921875, -0.049835205078125, -0.031280517578125, 0.0085906982421875, 0.00377655029296875, -0.004154205322265625, 0.0163421630859375, 0.0158843994140625, -0.032196044921875, 0.0221405029296875, 0.00661468505859375, 0.043853759765625, -0.028045654296875, 0.050994873046875, -0.01715087890625, 0.027923583984375, -0.0291748046875, -0.01861572265625, 0.009368896484375, -0.014892578125, -0.024261474609375, 0.025421142578125, 0.0163116455078125, -0.026519775390625, 0.00872039794921875, -0.0131378173828125, 0.0131072998046875, -0.00408172607421875, -0.00286102294921875, 0.03680419921875, 0.02215576171875, 0.00547027587890625, -0.0255889892578125, 0.02630615234375, -0.0015811920166015625, -0.00063323974609375, 0.0113983154296875, 0.01010894775390625, 0.017822265625, -0.01448822021484375, -0.018463134765625, 0.01320648193359375, -0.0166015625, -0.00954437255859375, -0.033111572265625, 0.01486968994140625, -0.006557464599609375, 0.021087646484375, -0.0208740234375, -0.00153350830078125, -0.00757598876953125, 0.0202789306640625, -0.07122802734375, 0.030914306640625, 0.00843048095703125, 0.0826416015625, 0.01910400390625, 0.05511474609375, -0.0196685791015625, -0.04693603515625, -0.01739501953125, -0.007640838623046875, 0.0088043212890625, 0.020965576171875, -0.00876617431640625, 0.03265380859375, -0.0090484619140625, 0.034423828125, 0.0341796875, 0.0155029296875, 0.043365478515625, 0.01392364501953125, -0.0201568603515625, 0.00928497314453125, 0.06085205078125, -0.01035308837890625, 0.0008301734924316406, -0.0028820037841796875, 0.00992584228515625, 0.043914794921875, 0.00726318359375, 0.004299163818359375, 0.026947021484375, 0.05743408203125, -0.08062744140625, 0.0296173095703125, -0.006725311279296875, -0.0021686553955078125, 0.058441162109375, 0.05780029296875, 0.0221099853515625, -0.0200042724609375, -0.0272979736328125, -0.01410675048828125, 0.031585693359375, -0.004352569580078125, -0.0037689208984375, 0.032745361328125, -0.01300048828125, 0.03741455078125, 0.04693603515625, -0.00676727294921875, 0.03497314453125, 0.0017690658569335938, -0.0090789794921875, 0.00830841064453125, 0.058380126953125, 0.01080322265625, -0.0631103515625, -0.022857666015625, -0.044708251953125, 0.0001685619354248047, 0.0125274658203125, 0.03936767578125, 0.015869140625, 0.037353515625, 0.058013916015625, -0.031646728515625, 0.040252685546875, 0.0032501220703125, 0.042724609375, -0.04632568359375, -0.00019037723541259766, 0.00018584728240966797, 0.0098114013671875, 0.0168609619140625, 0.0294189453125, -0.022216796875, -0.00751495361328125, 0.00995635986328125, 0.01076507568359375, -0.0037364959716796875, -0.007350921630859375, -0.044219970703125, -0.041595458984375, -0.04852294921875, 0.00434112548828125, 0.006290435791015625, -0.00542449951171875, 0.0014524459838867188, 0.02093505859375, 0.031524658203125, -0.0131683349609375, 0.025299072265625, -0.0263214111328125, 0.05352783203125, 0.028594970703125, 0.0046539306640625, 0.0535888671875, -0.0009241104125976562, -0.0221710205078125, 0.041015625, -0.00386810302734375, -0.0168304443359375, 0.0037975311279296875, 0.0015964508056640625, -0.00823211669921875, 0.0292510986328125, 0.0298919677734375, -0.01849365234375, 0.0203094482421875, 0.0140228271484375, -0.014678955078125, 0.0001285076141357422, -0.01549530029296875, -0.0116119384765625, -0.0457763671875, -0.0129241943359375, 0.00022602081298828125, -0.02032470703125, -0.01537322998046875, 0.00745391845703125, 0.029632568359375, 0.017822265625, -0.0030536651611328125, -0.07855224609375, 0.043121337890625, -0.032012939453125, 0.08978271484375, -0.0418701171875, 0.03192138671875, -0.038330078125, -0.052154541015625, -0.027496337890625, -0.0182647705078125, -0.03375244140625, 0.06658935546875, -0.00007098913192749023, -0.00733184814453125, 0.033233642578125, 0.01751708984375, -0.04193115234375, -0.0196380615234375, -0.03289794921875, 0.054931640625, -0.05157470703125, -0.01473236083984375, 0.008758544921875, 0.0011816024780273438, -0.00926971435546875, -0.053070068359375, -0.0140533447265625, -0.06170654296875, -0.01361846923828125, -0.01018524169921875, 0.0032634735107421875, 0.0283660888671875, -0.028472900390625, -0.1016845703125, 0.03460693359375, -0.01293182373046875, -0.03399658203125, -0.033721923828125, 0.022369384765625, 0.01280975341796875, 0.0028285980224609375, -0.01641845703125, -0.035919189453125, -0.041168212890625, -0.004367828369140625, 0.02838134765625, 0.0190582275390625, 0.043792724609375, -0.01873779296875, -0.0423583984375, -0.005878448486328125, -0.00756072998046875, 0.02923583984375, -0.02020263671875, 0.0055694580078125, 0.013031005859375, 0.0221405029296875, 0.0023517608642578125, 0.002193450927734375, 0.01015472412109375, -0.047027587890625, -0.004047393798828125, -0.003978729248046875, -0.038818359375, 0.0032958984375, 0.117919921875, 0.021636962890625, 0.0265655517578125, -0.03759765625, -0.017822265625, -0.0169525146484375, 0.023773193359375, 0.01117706298828125, 0.00418853759765625, -0.033599853515625, 0.0183868408203125, 0.01508331298828125, -0.007038116455078125, 0.00807952880859375, -0.0211029052734375, -0.0283050537109375, -0.003108978271484375, 0.0070648193359375, -0.004154205322265625, -0.027313232421875, -0.03948974609375, 0.09674072265625, -0.032470703125, 0.0216064453125, 0.0079803466796875, 0.023223876953125, 0.06817626953125, 0.035552978515625, -0.03717041015625, 0.057159423828125, 0.0010204315185546875, -0.013092041015625, 0.007312774658203125, -0.0256195068359375, 0.0140380859375, 0.051788330078125, 0.007106781005859375, 0.0009069442749023438, -0.01424407958984375, -0.0220947265625, -0.0325927734375, 0.027252197265625, -0.03033447265625, 0.061798095703125, -0.022735595703125, 0.06695556640625, -0.0021038055419921875, 0.0211181640625, 0.004108428955078125, -0.00251007080078125, 0.04888916015625, -0.01021575927734375, 0.0041961669921875, 0.0170745849609375, -0.01476287841796875, -0.0389404296875, 0.029693603515625, -0.0341796875, 0.00022101402282714844, 0.009735107421875 ]
3a33a0a53929e7cc330b532abdb294f5a21cf4fb
Wordpress Stackexchange Q: LESS CSS enqueue_style with add_filter to change rel attribute What I'm trying to do is use less css with Wordpress. You're supposed to link to your .less files with the rel attribute set to 'stylesheet/less'. But I can't figure out how to alter the code that enqueue_style outputs. Is there a way to apply a filter and affect the output? EDIT: If anyone is curious as to how I ended up getting this to work, here is the code snippet: function enqueue_less_styles($tag, $handle) { global $wp_styles; $match_pattern = '/\.less$/U'; if ( preg_match( $match_pattern, $wp_styles->registered[$handle]->src ) ) { $handle = $wp_styles->registered[$handle]->handle; $media = $wp_styles->registered[$handle]->args; $href = $wp_styles->registered[$handle]->src . '?ver=' . $wp_styles->registered[$handle]->ver; $rel = isset($wp_styles->registered[$handle]->extra['alt']) && $wp_styles->registered[$handle]->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; $title = isset($wp_styles->registered[$handle]->extra['title']) ? "title='" . esc_attr( $wp_styles->registered[$handle]->extra['title'] ) . "'" : ''; $tag = "<link rel='stylesheet' id='$handle' $title href='$href' type='text/less' media='$media' />"; } return $tag; } add_filter( 'style_loader_tag', 'enqueue_less_styles', 5, 2); A: Yep, final style link output is passed through style_loader_tag filter.
Q: LESS CSS enqueue_style with add_filter to change rel attribute What I'm trying to do is use less css with Wordpress. You're supposed to link to your .less files with the rel attribute set to 'stylesheet/less'. But I can't figure out how to alter the code that enqueue_style outputs. Is there a way to apply a filter and affect the output? EDIT: If anyone is curious as to how I ended up getting this to work, here is the code snippet: function enqueue_less_styles($tag, $handle) { global $wp_styles; $match_pattern = '/\.less$/U'; if ( preg_match( $match_pattern, $wp_styles->registered[$handle]->src ) ) { $handle = $wp_styles->registered[$handle]->handle; $media = $wp_styles->registered[$handle]->args; $href = $wp_styles->registered[$handle]->src . '?ver=' . $wp_styles->registered[$handle]->ver; $rel = isset($wp_styles->registered[$handle]->extra['alt']) && $wp_styles->registered[$handle]->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; $title = isset($wp_styles->registered[$handle]->extra['title']) ? "title='" . esc_attr( $wp_styles->registered[$handle]->extra['title'] ) . "'" : ''; $tag = "<link rel='stylesheet' id='$handle' $title href='$href' type='text/less' media='$media' />"; } return $tag; } add_filter( 'style_loader_tag', 'enqueue_less_styles', 5, 2); A: Yep, final style link output is passed through style_loader_tag filter. A: I made a function that uses the query() method of the WP_Dependancies class. Furthermore it does not regenerate the output, but instead just rewrites the necessary parts. The function accesses the global $wp_styles object and performs a query to get the stylesheet object. With the regex the src is checked if it contains a .less file, and if that is true, the rel attribute is modified accordingly. In my function I furthermore replaced the -css suffix in the ID with a -less suffix, just remove this line if you don't like it. function allow_less_stylesheets( $style_tag, $handle ) { global $wp_styles; $obj = $wp_styles->query( $handle ); if( $obj === false ) { return $style_tag; } if( !preg_match( '/\.less$/U', $obj->src ) ) { return $style_tag; } // the current stylesheet is a LESS stylesheet, so make according changes $rel = isset( $obj->extra['alt'] ) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; $style_tag = str_replace( "rel='" . $rel . "'", "rel='stylesheet/less'", $style_tag ); $style_tag = str_replace( "id='" . $handle . "-css'", "id='" . $handle . "-less'", $style_tag ); return $style_tag; } A: change rel=stylesheet to rel=stylesheet/less in $tag definition.. also rel=alternate stylesheet/less, doesn't work.. A: Thanks for your answer. It didn't work for me until I put echo in place of return though : function enqueue_less_styles($tag, $handle) { global $wp_styles; $match_pattern = '/\.less$/U'; if ( preg_match( $match_pattern, $wp_styles->registered[$handle]->src ) ) { $handle = $wp_styles->registered[$handle]->handle; $media = $wp_styles->registered[$handle]->args; $href = $wp_styles->registered[$handle]->src . '?ver=' . $wp_styles->registered[$handle]->ver; $rel = isset($wp_styles->registered[$handle]->extra['alt']) && $wp_styles->registered[$handle]->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; $title = isset($wp_styles->registered[$handle]->extra['title']) ? "title='" . esc_attr( $wp_styles->registered[$handle]->extra['title'] ) . "'" : ''; $tag = "<link rel='stylesheet' id='$handle' $title href='$href' type='text/less' media='$media' />"; } echo $tag; } add_filter( 'style_loader_tag', 'enqueue_less_styles', 5, 2);
wordpress
{ "language": "en", "length": 447, "provenance": "stackexchange_00019.jsonl.gz:410612", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20876" }
[ -0.00699615478515625, -0.01468658447265625, -0.0260009765625, 0.01174163818359375, -0.0210723876953125, -0.039459228515625, 0.0304107666015625, -0.00677490234375, -0.0173187255859375, 0.00080108642578125, -0.032928466796875, 0.0146636962890625, 0.0037441253662109375, -0.0120086669921875, 0.04412841796875, -0.0251617431640625, 0.0306549072265625, -0.01351165771484375, 0.0287322998046875, 0.00231170654296875, -0.00380706787109375, -0.004215240478515625, 0.03570556640625, 0.029205322265625, 0.026580810546875, -0.0689697265625, 0.09747314453125, -0.037933349609375, 0.04638671875, -0.024383544921875, 0.025970458984375, -0.018524169921875, 0.046600341796875, 0.0084075927734375, -0.0304412841796875, 0.0303802490234375, 0.0298309326171875, -0.00955963134765625, -0.011199951171875, 0.052947998046875, 0.0391845703125, -0.0143890380859375, -0.0037860870361328125, 0.02532958984375, -0.0162506103515625, -0.03900146484375, 0.0316162109375, -0.0270843505859375, 0.0017299652099609375, 0.0142059326171875, 0.035247802734375, 0.002384185791015625, 0.042633056640625, -0.0379638671875, -0.016021728515625, 0.0251312255859375, -0.006900787353515625, -0.01497650146484375, 0.021759033203125, -0.011810302734375, 0.0048370361328125, -0.0106048583984375, 0.0213775634765625, -0.0122528076171875, -0.0001220703125, 0.0115814208984375, 0.0014657974243164062, 0.005603790283203125, -0.0226898193359375, -0.002956390380859375, 0.0217132568359375, -0.031219482421875, -0.002895355224609375, -0.042236328125, -0.02435302734375, 0.033782958984375, -0.00977325439453125, -0.0139923095703125, 0.02740478515625, -0.0220947265625, 0.018096923828125, -0.029266357421875, -0.027069091796875, -0.0258026123046875, 0.0244598388671875, -0.00397491455078125, -0.004062652587890625, -0.0095367431640625, -0.0193939208984375, -0.00769805908203125, -0.0155029296875, -0.012237548828125, 0.006458282470703125, -0.024658203125, 0.002864837646484375, -0.05078125, 0.038177490234375, 0.0215911865234375, 0.0233154296875, 0.005977630615234375, 0.0194091796875, -0.0570068359375, 0.0201416015625, -0.016387939453125, 0.0220947265625, 0.0304718017578125, -0.0276031494140625, 0.006256103515625, 0.0501708984375, 0.0189208984375, 0.008575439453125, 0.0269012451171875, 0.00473785400390625, 0.041259765625, -0.0439453125, 0.01007080078125, -0.0112762451171875, -0.0139007568359375, -0.042510986328125, 0.036102294921875, 0.01959228515625, 0.033050537109375, 0.0194091796875, -0.0169219970703125, 0.00004583597183227539, -0.004787445068359375, -0.0006394386291503906, -0.0848388671875, 0.024932861328125, 0.022003173828125, -0.00927734375, 0.0236663818359375, 0.0251007080078125, -0.0093841552734375, -0.029205322265625, -0.00579071044921875, 0.03521728515625, -0.0046844482421875, -0.02740478515625, 0.0183563232421875, 0.004184722900390625, -0.0284881591796875, -0.0003657341003417969, 0.0022029876708984375, 0.0182647705078125, 0.03936767578125, 0.033447265625, -0.01203155517578125, -0.034820556640625, -0.06695556640625, 0.06597900390625, -0.076416015625, 0.027496337890625, 0.01418304443359375, -0.046600341796875, -0.00655364990234375, 0.0157318115234375, -0.0134429931640625, -0.0200653076171875, -0.0596923828125, -0.0328369140625, -0.000885009765625, 0.01953125, -0.05767822265625, -0.037353515625, -0.005535125732421875, -0.00926971435546875, 0.011260986328125, 0.02294921875, 0.035064697265625, 0.018585205078125, -0.035308837890625, -0.01137542724609375, -0.00044846534729003906, -0.01316070556640625, 0.01212310791015625, 0.000005185604095458984, 0.0173797607421875, 0.0263824462890625, 0.01026153564453125, -0.01406097412109375, -0.0244140625, 0.086669921875, -0.04058837890625, -0.03131103515625, -0.039337158203125, 0.0114898681640625, 0.0312042236328125, 0.042510986328125, 0.02667236328125, 0.0199432373046875, -0.042022705078125, 0.005542755126953125, -0.025054931640625, 0.002071380615234375, -0.01409149169921875, 0.0018672943115234375, 0.006866455078125, -0.002506256103515625, 0.018890380859375, 0.015411376953125, 0.0291595458984375, 0.03350830078125, -0.00661468505859375, -0.038299560546875, 0.03839111328125, -0.032440185546875, 0.056793212890625, -0.029388427734375, 0.016326904296875, 0.0189361572265625, -0.00623321533203125, -0.018829345703125, -0.01241302490234375, 0.004611968994140625, 0.00109100341796875, 0.0032367706298828125, 0.0131988525390625, -0.0034008026123046875, 0.00957489013671875, 0.0338134765625, -0.01372528076171875, 0.0174560546875, 0.04388427734375, 0.011962890625, -0.01104736328125, -0.007633209228515625, -0.022186279296875, -0.0017805099487304688, 0.004688262939453125, -0.0066070556640625, 0.02789306640625, 0.0751953125, 0.08453369140625, -0.005374908447265625, -0.0017004013061523438, -0.0206146240234375, -0.054534912109375, -0.0007767677307128906, 0.047027587890625, 0.0477294921875, 0.07476806640625, 0.029327392578125, 0.01129150390625, 0.08026123046875, 0.02166748046875, 0.0535888671875, -0.048492431640625, -0.01018524169921875, -0.0211944580078125, -0.004543304443359375, -0.0118255615234375, 0.03704833984375, -0.0250091552734375, 0.01415252685546875, 0.02423095703125, -0.020263671875, 0.00040650367736816406, -0.02166748046875, 0.020751953125, 0.005229949951171875, 0.004352569580078125, -0.0113372802734375, -0.0003237724304199219, 0.0257415771484375, 0.0266265869140625, 0.0118865966796875, 0.002300262451171875, -0.01910400390625, 0.046112060546875, 0.0208282470703125, -0.0615234375, -0.01117706298828125, -0.00855255126953125, -0.02392578125, 0.012603759765625, -0.0182342529296875, 0.03143310546875, -0.0179290771484375, -0.022735595703125, -0.029815673828125, -0.001300811767578125, -0.0231170654296875, -0.011322021484375, -0.0024242401123046875, -0.070556640625, 0.01251983642578125, 0.0010728836059570312, 0.01284027099609375, -0.0005707740783691406, 0.0230712890625, 0.04180908203125, -0.004604339599609375, 0.01052093505859375, 0.020965576171875, -0.00412750244140625, 0.04534912109375, -0.0276641845703125, 0.0323486328125, -0.0272979736328125, 0.038604736328125, 0.049224853515625, -0.01139068603515625, -0.0106964111328125, -0.01253509521484375, 0.0377197265625, -0.00579833984375, -0.0179290771484375, -0.0247039794921875, -0.006195068359375, -0.0703125, -0.02197265625, 0.02655029296875, -0.006072998046875, 0.00891876220703125, -0.03094482421875, -0.032989501953125, 0.0153045654296875, -0.06903076171875, -0.05072021484375, -0.01114654541015625, -0.07647705078125, -0.017730712890625, 0.0254974365234375, -0.04913330078125, -0.0002332925796508789, 0.0675048828125, 0.0067901611328125, -0.0066680908203125, -0.034027099609375, -0.0313720703125, -0.0634765625, -0.06512451171875, -0.00926971435546875, 0.012603759765625, 0.00724029541015625, 0.013427734375, 0.02520751953125, 0.01114654541015625, -0.0142059326171875, 0.034423828125, -0.00015354156494140625, -0.0168304443359375, -0.0016622543334960938, 0.0261383056640625, -0.054046630859375, -0.04730224609375, -0.00975799560546875, 0.0218353271484375, 0.0235748291015625, -0.0204010009765625, 0.021148681640625, -0.0308074951171875, -0.0136566162109375, -0.003780364990234375, 0.0234375, 0.023529052734375, -0.004901885986328125, 0.018341064453125, -0.0362548828125, -0.053985595703125, -0.0189056396484375, -0.057861328125, 0.096435546875, 0.060638427734375, -0.01496124267578125, 0.006870269775390625, 0.033477783203125, 0.0227203369140625, -0.0103302001953125, 0.044891357421875, -0.035186767578125, 0.040557861328125, 0.0020008087158203125, 0.01373291015625, -0.050628662109375, 0.00774383544921875, -0.01220703125, -0.0174407958984375, -0.0018768310546875, 0.01505279541015625, -0.004680633544921875, 0.00014150142669677734, -0.0276947021484375, -0.04241943359375, 0.05718994140625, 0.01885986328125, 0.04290771484375, -0.0458984375, -0.0430908203125, -0.036102294921875, 0.087158203125, -0.036285400390625, -0.052642822265625, 0.0246124267578125, 0.037322998046875, -0.0052642822265625, -0.046966552734375, 0.045654296875, -0.031982421875, -0.0994873046875, 0.044342041015625, 0.00431060791015625, -0.027191162109375, -0.01708984375, -0.00220489501953125, -0.0687255859375, -0.0465087890625, 0.0341796875, 0.04010009765625, -0.0191192626953125, 0.03961181640625, -0.0145263671875, 0.0203094482421875, -0.028839111328125, 0.02734375, -0.082275390625, -0.035614013671875, -0.018310546875, 0.0975341796875, 0.0117340087890625, 0.0178070068359375, -0.01763916015625, 0.06298828125, 0.01560211181640625, 0.01763916015625, 0.011474609375, -0.006191253662109375, 0.005992889404296875, -0.00226593017578125, 0.00403594970703125, -0.0245513916015625, 0.01519775390625, 0.0217437744140625, -0.0794677734375, 0.047393798828125, 0.0006990432739257812, 0.020660400390625, 0.060760498046875, -0.06494140625, -0.05535888671875, -0.0165252685546875, 0.045074462890625, -0.011260986328125, 0.0031681060791015625, -0.01434326171875, -0.00583648681640625, -0.01062774658203125, 0.01441192626953125, 0.01641845703125, 0.00846099853515625, 0.0008482933044433594, 0.0533447265625, 0.03973388671875, -0.01511383056640625, -0.01300048828125, 0.00980377197265625, 0.024932861328125, -0.0115509033203125, 0.0160675048828125, -0.010162353515625, -0.0218353271484375, 0.0543212890625, -0.0243988037109375, 0.03045654296875, -0.006893157958984375, 0.0404052734375, -0.01505279541015625, -0.050445556640625, 0.062225341796875, 0.0005640983581542969, -0.04498291015625, 0.007427215576171875, 0.0006084442138671875, -0.00272369384765625, 0.0360107421875, 0.018096923828125, 0.0005364418029785156, -0.0186004638671875, -0.02020263671875, -0.0079193115234375, -0.0162506103515625, 0.0036869049072265625, 0.08880615234375, 0.026336669921875, 0.0037212371826171875, 0.0181884765625, 0.06427001953125, 0.021331787109375, -0.01332855224609375, 0.001125335693359375, -0.043426513671875, 0.0325927734375, 0.010894775390625, -0.0032482147216796875, -0.006046295166015625, -0.0030231475830078125, 0.01068878173828125, 0.00722503662109375, -0.039154052734375, -0.0254974365234375, 0.0172271728515625, 0.000031113624572753906, 0.00023412704467773438, 0.0252685546875, 0.0413818359375, -0.0144805908203125, 0.0016546249389648438, -0.00438690185546875, -0.0362548828125, 0.005970001220703125, -0.034210205078125, 0.021392822265625, -0.00856781005859375, -0.0024547576904296875, 0.01213836669921875, 0.049072265625, -0.00031065940856933594, 0.022979736328125, -0.00969696044921875, 0.0027751922607421875, -0.0031719207763671875, 0.035247802734375, 0.019012451171875, -0.033477783203125, 0.024993896484375, 0.0044403076171875, 0.044647216796875, -0.044219970703125, -0.025909423828125, 0.0294189453125, 0.06402587890625, -0.0010480880737304688, 0.006683349609375, 0.00550079345703125, 0.005199432373046875, -0.040679931640625, 0.009124755859375, -0.0255584716796875, -0.035675048828125, -0.034515380859375, -0.01090240478515625, 0.03765869140625, 0.0119476318359375, 0.01488494873046875, -0.0340576171875, 0.0384521484375, -0.005863189697265625, 0.0261993408203125, -0.06427001953125, 0.0257110595703125, 0.03717041015625, -0.004032135009765625, 0.01134490966796875, -0.0083160400390625, -0.054931640625, -0.05010986328125, -0.0177001953125, -0.0099029541015625, 0.07958984375, -0.048309326171875, 0.06842041015625, -0.0012874603271484375, -0.03369140625, -0.06280517578125, 0.021026611328125, 0.037628173828125, 0.052947998046875, -0.005382537841796875, 0.0117340087890625, -0.038818359375, -0.0182952880859375, -0.006732940673828125, -0.04132080078125, -0.01416015625, -0.0190887451171875, -0.002506256103515625, 0.0284271240234375, -0.0138397216796875, -0.032501220703125, -0.050323486328125, -0.00244903564453125, 0.043365478515625, 0.038787841796875, -0.0167694091796875, 0.0594482421875, 0.0241241455078125, 0.00408935546875, 0.0207672119140625, 0.0266876220703125, -0.03472900390625, 0.01323699951171875, -0.0235137939453125, -0.067626953125, 0.0015859603881835938, 0.02288818359375, -0.0217132568359375, 0.0716552734375, 0.0693359375, 0.020172119140625, 0.040252685546875, 0.001201629638671875, -0.006927490234375, -0.0181121826171875, -0.032135009765625, -0.0120697021484375, 0.03521728515625, -0.003021240234375, 0.02154541015625, 0.051300048828125, -0.0328369140625, 0.002338409423828125, -0.0001291036605834961, -0.01265716552734375, 0.031280517578125, -0.0163116455078125, -0.06976318359375, 0.03021240234375, 0.04718017578125, 0.005779266357421875, 0.0242919921875, -0.017059326171875, -0.0023937225341796875, 0.0382080078125, -0.01233673095703125, 0.0450439453125, 0.03802490234375, 0.05126953125, -0.0269012451171875, 0.02044677734375, 0.0216064453125, -0.017547607421875, -0.0031280517578125, 0.049163818359375, 0.0328369140625, -0.048126220703125, -0.014556884765625, -0.0019016265869140625, -0.01800537109375, -0.00824737548828125, -0.003284454345703125, -0.00798797607421875, -0.01371002197265625, 0.033050537109375, -0.01947021484375, -0.0207366943359375, 0.0017871856689453125, -0.0168304443359375, 0.0166473388671875, -0.033538818359375, 0.006317138671875, -0.0138397216796875, -0.0245819091796875, -0.01537322998046875, 0.007415771484375, 0.005588531494140625, 0.00615692138671875, 0.01229095458984375, 0.002838134765625, -0.0293426513671875, -0.034393310546875, 0.0133819580078125, -0.019073486328125, -0.029449462890625, 0.006404876708984375, 0.00274658203125, 0.045623779296875, -0.006130218505859375, 0.0198974609375, -0.00994873046875, -0.048583984375, 0.02996826171875, -0.0008044242858886719, -0.0179595947265625, 0.015777587890625, 0.0055999755859375, 0.006908416748046875, 0.0282745361328125, -0.0020351409912109375, -0.033477783203125, -0.0175628662109375, 0.00878143310546875, 0.10205078125, -0.0175933837890625, -0.022857666015625, 0.0297088623046875, 0.02899169921875, -0.0177764892578125, -0.02386474609375, 0.01751708984375, -0.0921630859375, -0.07965087890625, 0.0038433074951171875, -0.0689697265625, -0.02337646484375, -0.040618896484375, -0.04949951171875, 0.07861328125, -0.01483917236328125, 0.0400390625, 0.042572021484375, 0.01983642578125, -0.037139892578125, 0.003299713134765625, -0.0159149169921875, 0.02801513671875, 0.014984130859375, -0.028717041015625, -0.0015115737915039062, -0.0093536376953125, 0.0006704330444335938, 0.035675048828125, 0.0374755859375, 0.0040130615234375, -0.03582763671875, -0.016143798828125, 0.053192138671875, 0.03436279296875, 0.019073486328125, 0.031463623046875, -0.0308074951171875, 0.01473236083984375, 0.0013484954833984375, -0.07562255859375, 0.00437164306640625, -0.0221099853515625, -0.0222625732421875, -0.0008988380432128906, 0.00313568115234375, 0.0035686492919921875, 0.0350341796875, 0.01419830322265625, -0.0537109375, 0.0274505615234375, 0.04266357421875, -0.00896453857421875, 0.0208587646484375, 0.0178375244140625, 0.01255035400390625, -0.045684814453125, -0.0293426513671875, -0.019287109375, 0.02618408203125, -0.0175628662109375, -0.03082275390625, -0.00860595703125, -0.025726318359375, 0.095703125, -0.0246429443359375, -0.046051025390625, 0.0097808837890625, 0.061676025390625, 0.0198974609375, 0.01363372802734375, 0.03369140625, -0.013946533203125, 0.01120758056640625, 0.0081939697265625, 0.01666259765625, -0.023529052734375, 0.0015249252319335938, 0.02386474609375, 0.01983642578125, -0.0181884765625, -0.0241241455078125, 0.007354736328125, -0.09893798828125, -0.055389404296875, -0.0169677734375, 0.0084228515625, 0.031097412109375, 0.01934814453125, -0.0116729736328125, -0.00922393798828125, -0.035003662109375, 0.039093017578125, -0.0266571044921875, 0.01129150390625, 0.0195770263671875, 0.050323486328125, 0.0011348724365234375, 0.035491943359375, -0.0258636474609375, -0.003841400146484375, -0.0178680419921875, 0.0039215087890625, -0.004711151123046875, 0.027252197265625, -0.0290069580078125, 0.0111541748046875, -0.0185546875, 0.043121337890625, 0.0430908203125, -0.005859375, 0.047119140625, 0.0012302398681640625, -0.042022705078125, 0.00040912628173828125, -0.0135498046875, -0.0262451171875, 0.04034423828125, -0.02630615234375, 0.058197021484375, 0.01136016845703125, -0.0113677978515625, -0.020294189453125, 0.0214996337890625, 0.045684814453125, -0.07391357421875, 0.03857421875, -0.0140380859375, -0.0157012939453125, 0.00972747802734375, -0.0193634033203125, -0.00708770751953125, -0.0391845703125, -0.0458984375, 0.0027942657470703125, -0.017333984375, -0.0174560546875, -0.0090484619140625, 0.01641845703125, -0.029144287109375, 0.040924072265625, 0.01177215576171875, -0.0217437744140625, 0.0247344970703125, -0.0182342529296875, 0.007144927978515625, 0.036590576171875, 0.019561767578125, 0.0164794921875, -0.059844970703125, -0.041778564453125, -0.05194091796875, 0.06793212890625, 0.01294708251953125, 0.040069580078125, -0.0164031982421875, 0.054168701171875, 0.020172119140625, -0.0196685791015625, 0.02117919921875, -0.01078033447265625, 0.0162811279296875, -0.01171112060546875, 0.00421905517578125, -0.00725555419921875, -0.0232391357421875, 0.01727294921875, 0.019683837890625, -0.0186920166015625, 0.027191162109375, -0.035430908203125, 0.009521484375, -0.0252685546875, 0.0032825469970703125, -0.037872314453125, -0.045166015625, -0.0797119140625, -0.0106658935546875, 0.0072021484375, -0.004665374755859375, -0.0157470703125, 0.0196685791015625, 0.020904541015625, -0.02099609375, 0.049224853515625, -0.0262908935546875, 0.04986572265625, 0.0259857177734375, 0.00020515918731689453, -0.025543212890625, 0.0157012939453125, -0.006732940673828125, 0.01055145263671875, 0.027740478515625, 0.02606201171875, 0.01505279541015625, -0.03070068359375, -0.0155487060546875, 0.053314208984375, 0.058624267578125, 0.004314422607421875, 0.035919189453125, 0.023193359375, -0.026123046875, -0.023712158203125, -0.0276031494140625, -0.0158233642578125, -0.039886474609375, -0.0185546875, 0.0022716522216796875, -0.013427734375, -0.052398681640625, -0.01212310791015625, 0.002956390380859375, 0.0302886962890625, 0.01531982421875, -0.060791015625, -0.00402069091796875, -0.007232666015625, 0.07830810546875, 0.002811431884765625, -0.029266357421875, -0.0009751319885253906, 0.01442718505859375, -0.016448974609375, -0.050262451171875, -0.050384521484375, 0.039947509765625, -0.06793212890625, -0.0235443115234375, 0.0206298828125, -0.004520416259765625, 0.0195770263671875, -0.03985595703125, 0.00399017333984375, 0.0184478759765625, -0.036346435546875, -0.0026702880859375, -0.0014467239379882812, 0.010772705078125, -0.0238037109375, -0.10137939453125, 0.00786590576171875, -0.07025146484375, -0.007633209228515625, 0.033843994140625, -0.050384521484375, -0.0238189697265625, -0.042510986328125, -0.0704345703125, 0.031494140625, 0.014892578125, -0.0355224609375, -0.0333251953125, 0.0215301513671875, 0.004283905029296875, -0.037750244140625, -0.00336456298828125, -0.03619384765625, -0.01531219482421875, -0.00524139404296875, 0.01398468017578125, 0.01087188720703125, 0.0203094482421875, -0.00235748291015625, -0.07000732421875, 0.006649017333984375, 0.007228851318359375, 0.00534820556640625, -0.03436279296875, 0.01436614990234375, 0.01178741455078125, 0.002346038818359375, -0.00922393798828125, 0.00878143310546875, 0.04254150390625, -0.0048065185546875, 0.0078277587890625, -0.03448486328125, -0.036865234375, -0.036346435546875, 0.084228515625, 0.00981903076171875, 0.0202789306640625, 0.01268768310546875, 0.0012807846069335938, -0.0010709762573242188, -0.033355712890625, -0.006870269775390625, 0.0179290771484375, -0.05078125, -0.028076171875, -0.02398681640625, -0.01009368896484375, -0.0239410400390625, -0.035400390625, -0.0347900390625, -0.023040771484375, -0.03216552734375, 0.0266571044921875, -0.02215576171875, -0.0195465087890625, 0.0694580078125, -0.025238037109375, 0.042022705078125, -0.01342010498046875, 0.038299560546875, 0.05218505859375, -0.01308441162109375, -0.052886962890625, -0.00978851318359375, -0.0003781318664550781, 0.017822265625, -0.006183624267578125, -0.0110015869140625, 0.00439453125, 0.028717041015625, -0.0266571044921875, -0.00936126708984375, -0.00853729248046875, -0.0306549072265625, 0.0086212158203125, -0.02410888671875, -0.0156707763671875, 0.06903076171875, -0.0170745849609375, 0.0276947021484375, 0.0267181396484375, -0.0017347335815429688, -0.0303802490234375, 0.0162811279296875, 0.007030487060546875, -0.04168701171875, 0.02105712890625, -0.007175445556640625, 0.028076171875, -0.0219573974609375, 0.01097869873046875, 0.028594970703125, 0.007419586181640625, 0.01447296142578125 ]
07cd4ed89cca8c31aa287c70fa42f23975a6a55a
Wordpress Stackexchange Q: wp_localize_script $handle Can anyone tell me what the "$handle" ( first parameter ) of wp_localize_script is normally used for. Thanks. P.s.: I have no idea why but stackexchange is telling me this question dosen't meet quality standards. Edit: When i put in my ps it accepted it so i suppose it's the length of the quesion.... if you feel like this is an unacceptable question then apologies A: It's basically a unique id of the script you registered or enqueued before. Let's say we enqueued a two scripts with wp_enqueue_script(): wp_enqueue_script( 'my_script_1','/js/some_script.js' ); wp_enqueue_script( 'my_script_2','/js/some_other_script.js' ); Now you want to pass your $data to the script #2 with wp_localize_script(): wp_localize_script( 'my_script_2', 'my_script_2_local', $data ); After this - when WordPress prints out your my_script_2 it will print out your $data variables along with it so you can use them in your script. As you can see my_script_2 is our handle here - it makes the link between our script functions.
Q: wp_localize_script $handle Can anyone tell me what the "$handle" ( first parameter ) of wp_localize_script is normally used for. Thanks. P.s.: I have no idea why but stackexchange is telling me this question dosen't meet quality standards. Edit: When i put in my ps it accepted it so i suppose it's the length of the quesion.... if you feel like this is an unacceptable question then apologies A: It's basically a unique id of the script you registered or enqueued before. Let's say we enqueued a two scripts with wp_enqueue_script(): wp_enqueue_script( 'my_script_1','/js/some_script.js' ); wp_enqueue_script( 'my_script_2','/js/some_other_script.js' ); Now you want to pass your $data to the script #2 with wp_localize_script(): wp_localize_script( 'my_script_2', 'my_script_2_local', $data ); After this - when WordPress prints out your my_script_2 it will print out your $data variables along with it so you can use them in your script. As you can see my_script_2 is our handle here - it makes the link between our script functions. A: The handle is arbitrary (as in not technically meaningful) name of script that is used for human convenience when declaring it with wp_register_script()/wp_enqueue_script(). So first you declare script (or look up handle of already declared one) and then you can use handle to assign localization object to it with wp_localize_script() A: $handle is for all the script and style functions the given name. // @example: wp_register_style( 'my-example-script', '/path/to/scripts/script.js', 'etc.' ); Then you can use it like this: wp_enqueue_style( 'my-example-script' ); // or wp_localize_script( 'my-example-script' );
wordpress
{ "language": "en", "length": 246, "provenance": "stackexchange_00019.jsonl.gz:410613", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20882" }
[ 0.00885009765625, -0.0273284912109375, -0.019317626953125, -0.049346923828125, -0.01404571533203125, -0.0165252685546875, -0.018707275390625, 0.028350830078125, -0.0382080078125, 0.0282135009765625, 0.0222015380859375, 0.0224456787109375, -0.029266357421875, -0.0231475830078125, -0.0020198822021484375, -0.021331787109375, 0.061798095703125, -0.04925537109375, 0.0045623779296875, -0.0012140274047851562, 0.00433349609375, 0.0279998779296875, 0.04217529296875, 0.07940673828125, 0.014617919921875, -0.0418701171875, 0.01493072509765625, 0.00838470458984375, -0.00023996829986572266, -0.00751495361328125, 0.01090240478515625, 0.004985809326171875, -0.005367279052734375, 0.0382080078125, -0.00458526611328125, 0.0020236968994140625, 0.0733642578125, 0.016265869140625, 0.050445556640625, 0.00844573974609375, 0.0224151611328125, -0.0204315185546875, -0.0161590576171875, 0.0000883340835571289, -0.006008148193359375, -0.025543212890625, 0.0276641845703125, -0.00202178955078125, -0.001636505126953125, 0.05645751953125, -0.01068115234375, 0.0248870849609375, -0.01561737060546875, 0.04974365234375, 0.01666259765625, 0.01507568359375, 0.0210723876953125, -0.050384521484375, 0.01021575927734375, 0.07598876953125, -0.004505157470703125, 0.018341064453125, -0.006549835205078125, -0.06866455078125, -0.044464111328125, 0.00988006591796875, -0.01197052001953125, -0.0015859603881835938, -0.011627197265625, -0.0391845703125, 0.020294189453125, -0.01129150390625, -0.00229644775390625, -0.0400390625, 0.0208892822265625, 0.0179443359375, -0.01544952392578125, 0.0024967193603515625, 0.0029449462890625, 0.01227569580078125, -0.037200927734375, -0.05938720703125, -0.0304107666015625, 0.0052490234375, -0.0161895751953125, 0.0238494873046875, -0.0185546875, 0.0029544830322265625, -0.012481689453125, -0.0004260540008544922, -0.03192138671875, -0.041717529296875, 0.0340576171875, 0.017303466796875, -0.02044677734375, -0.0025157928466796875, 0.036224365234375, 0.0204010009765625, -0.00705718994140625, 0.007266998291015625, -0.00153350830078125, -0.03509521484375, 0.005645751953125, -0.017822265625, 0.0181732177734375, 0.051666259765625, 0.01045989990234375, -0.04345703125, 0.0131072998046875, -0.004688262939453125, 0.003139495849609375, 0.03973388671875, 0.00713348388671875, 0.004669189453125, -0.0089111328125, -0.00928497314453125, -0.038909912109375, 0.00046539306640625, -0.02386474609375, -0.01849365234375, -0.0027904510498046875, 0.0168609619140625, -0.0206756591796875, 0.0208587646484375, 0.00016069412231445312, -0.0239715576171875, 0.0013551712036132812, 0.01165771484375, -0.0112762451171875, 0.039794921875, -0.0095062255859375, 0.006317138671875, 0.0445556640625, -0.0087432861328125, -0.020233154296875, -0.03802490234375, 0.0626220703125, -0.012664794921875, 0.018310546875, 0.01258087158203125, -0.0298309326171875, -0.0313720703125, 0.0033664703369140625, 0.00307464599609375, -0.05841064453125, 0.0081787109375, 0.0160980224609375, -0.0010824203491210938, -0.0179595947265625, -0.05596923828125, -0.01189422607421875, -0.00970458984375, 0.0162353515625, 0.0188446044921875, -0.0190887451171875, 0.026824951171875, 0.0017881393432617188, -0.003559112548828125, -0.03460693359375, 0.000972747802734375, -0.0206451416015625, -0.008148193359375, -0.0152130126953125, -0.04412841796875, -0.027099609375, -0.01287841796875, 0.0235443115234375, 0.009796142578125, 0.00811004638671875, 0.0452880859375, -0.042327880859375, -0.005340576171875, -0.03314208984375, -0.0165252685546875, -0.01293182373046875, -0.0012350082397460938, -0.040924072265625, 0.0185089111328125, 0.032073974609375, -0.0027828216552734375, 0.006587982177734375, -0.0408935546875, 0.034912109375, 0.010223388671875, -0.01322174072265625, 0.006267547607421875, 0.02618408203125, 0.0015401840209960938, -0.005985260009765625, 0.0038433074951171875, 0.05914306640625, 0.0255126953125, -0.05828857421875, 0.042572021484375, -0.042236328125, -0.0106201171875, 0.029693603515625, 0.04400634765625, -0.0149688720703125, -0.01047515869140625, 0.0537109375, -0.004962921142578125, 0.041046142578125, -0.0186309814453125, -0.055908203125, 0.0241241455078125, -0.02777099609375, 0.037811279296875, 0.00907135009765625, -0.002262115478515625, 0.01751708984375, 0.01352691650390625, -0.031463623046875, -0.01082611083984375, -0.0305023193359375, 0.015869140625, -0.0297698974609375, 0.06951904296875, 0.002376556396484375, 0.049774169921875, 0.007328033447265625, -0.062744140625, 0.0233154296875, -0.0198822021484375, -0.00395965576171875, -0.00039076805114746094, -0.005779266357421875, 0.00399017333984375, 0.04364013671875, -0.01029205322265625, 0.08477783203125, 0.01483917236328125, 0.0157012939453125, 0.04278564453125, 0.0092010498046875, 0.00347137451171875, 0.029327392578125, -0.04010009765625, 0.01024627685546875, 0.0156402587890625, 0.02972412109375, 0.0340576171875, -0.01255035400390625, -0.0032291412353515625, -0.01100921630859375, -0.0260772705078125, 0.0284423828125, -0.02459716796875, 0.026336669921875, 0.037872314453125, -0.04095458984375, -0.03533935546875, 0.0280303955078125, -0.084716796875, -0.02374267578125, 0.052642822265625, -0.041290283203125, -0.04754638671875, 0.00896453857421875, 0.0171661376953125, -0.0008306503295898438, -0.01107025146484375, 0.0228424072265625, -0.01383209228515625, 0.030364990234375, -0.01256561279296875, 0.0010957717895507812, -0.00396728515625, -0.0214691162109375, 0.0203399658203125, 0.02972412109375, -0.06549072265625, 0.0006933212280273438, -0.0164642333984375, 0.0021114349365234375, -0.051055908203125, -0.01263427734375, 0.012969970703125, -0.01209259033203125, -0.0225372314453125, -0.0008955001831054688, 0.040985107421875, -0.051788330078125, -0.01311492919921875, -0.005645751953125, -0.02630615234375, -0.0293731689453125, -0.004024505615234375, 0.041900634765625, -0.00664520263671875, 0.0242462158203125, 0.0011949539184570312, -0.018280029296875, 0.0421142578125, 0.0186920166015625, -0.0465087890625, 0.07196044921875, -0.004791259765625, 0.01107025146484375, 0.002811431884765625, 0.0189361572265625, 0.042266845703125, 0.0279083251953125, -0.03900146484375, -0.0093536376953125, 0.03759765625, 0.0313720703125, -0.01401519775390625, -0.0034656524658203125, -0.037353515625, -0.0117340087890625, -0.023162841796875, 0.006465911865234375, 0.0626220703125, -0.03399658203125, -0.046722412109375, -0.0224609375, 0.00615692138671875, -0.1060791015625, -0.1256103515625, 0.019012451171875, -0.0384521484375, 0.006183624267578125, -0.00910186767578125, -0.0247802734375, -0.022216796875, 0.00290679931640625, -0.006420135498046875, -0.03887939453125, -0.0128021240234375, -0.03094482421875, -0.074462890625, -0.05279541015625, -0.0026092529296875, -0.003765106201171875, 0.0106201171875, 0.01117706298828125, -0.02874755859375, 0.005092620849609375, 0.017303466796875, 0.045440673828125, 0.0087890625, -0.0053558349609375, -0.0113372802734375, -0.01174163818359375, -0.0237579345703125, 0.01165008544921875, -0.00994110107421875, -0.00290679931640625, -0.006198883056640625, 0.0244598388671875, -0.005619049072265625, 0.005401611328125, 0.00330352783203125, 0.0289154052734375, 0.0052337646484375, -0.016265869140625, -0.00678253173828125, 0.01120758056640625, -0.040496826171875, -0.00446319580078125, -0.0107269287109375, -0.040496826171875, -0.066162109375, 0.049163818359375, -0.016265869140625, -0.039459228515625, -0.01947021484375, 0.005268096923828125, -0.0165863037109375, -0.0227813720703125, -0.0430908203125, 0.03778076171875, 0.02545166015625, 0.0535888671875, 0.015045166015625, 0.03558349609375, -0.01451873779296875, -0.0007729530334472656, 0.0015153884887695312, 0.005260467529296875, -0.0183563232421875, -0.00885772705078125, -0.058197021484375, 0.015716552734375, 0.05078125, 0.05023193359375, 0.0153045654296875, 0.006076812744140625, -0.0279693603515625, 0.0001093745231628418, 0.0275115966796875, -0.0008559226989746094, -0.016937255859375, -0.004589080810546875, 0.0217742919921875, -0.0662841796875, -0.063720703125, -0.018829345703125, -0.0011167526245117188, -0.042449951171875, 0.01317596435546875, -0.0171356201171875, 0.00939178466796875, -0.03619384765625, 0.0277862548828125, -0.0110321044921875, -0.0271453857421875, 0.049713134765625, -0.04876708984375, 0.0224151611328125, 0.031463623046875, 0.03338623046875, -0.0087738037109375, -0.024993896484375, -0.019622802734375, -0.00977325439453125, -0.01290130615234375, 0.0008883476257324219, 0.03704833984375, 0.0477294921875, -0.087158203125, 0.0034427642822265625, 0.019775390625, -0.0262451171875, 0.00850677490234375, -0.008453369140625, 0.01554107666015625, -0.01256561279296875, 0.035186767578125, -0.0078125, -0.006412506103515625, 0.03253173828125, 0.01346588134765625, -0.071533203125, -0.00624847412109375, -0.0251007080078125, 0.0018291473388671875, 0.037139892578125, -0.05816650390625, -0.09600830078125, -0.0227203369140625, 0.013458251953125, -0.002109527587890625, 0.017333984375, -0.0009150505065917969, -0.016326904296875, -0.073486328125, 0.011962890625, 0.01849365234375, -0.011077880859375, 0.001708984375, 0.037200927734375, 0.0199737548828125, -0.0306854248046875, -0.0299072265625, -0.004486083984375, -0.01451873779296875, -0.00006026029586791992, 0.0760498046875, 0.007411956787109375, 0.03424072265625, -0.00627899169921875, -0.03521728515625, 0.002391815185546875, 0.035003662109375, 0.042022705078125, 0.00817108154296875, -0.01324462890625, 0.00865936279296875, 0.0013704299926757812, -0.0753173828125, 0.0169677734375, 0.009368896484375, -0.0250701904296875, 0.00679779052734375, 0.035003662109375, -0.01690673828125, 0.01190948486328125, -0.01934814453125, -0.04034423828125, 0.006549835205078125, -0.0111846923828125, 0.0151824951171875, 0.002166748046875, 0.018096923828125, 0.0010967254638671875, 0.0306549072265625, -0.00684356689453125, 0.035675048828125, 0.0031185150146484375, 0.0206451416015625, 0.03173828125, 0.01000213623046875, 0.001102447509765625, -0.004177093505859375, 0.005702972412109375, -0.01302337646484375, -0.0202178955078125, -0.0235748291015625, -0.06658935546875, 0.0235595703125, 0.041595458984375, -0.0107421875, 0.060028076171875, -0.01372528076171875, 0.0020465850830078125, 0.0135498046875, 0.005771636962890625, 0.08953857421875, 0.005229949951171875, 0.017059326171875, 0.02362060546875, -0.0009260177612304688, 0.0016489028930664062, -0.048248291015625, 0.08416748046875, 0.0023193359375, -0.002109527587890625, -0.00927734375, 0.006011962890625, -0.01287841796875, 0.042694091796875, 0.0302276611328125, -0.026641845703125, 0.0177764892578125, 0.018890380859375, 0.0068206787109375, -0.01137542724609375, 0.0293731689453125, 0.042510986328125, -0.0023555755615234375, 0.030120849609375, -0.00788116455078125, -0.01385498046875, 0.00107574462890625, -0.0233612060546875, 0.0269317626953125, 0.0183258056640625, -0.026336669921875, -0.0045928955078125, -0.009613037109375, 0.013336181640625, 0.007381439208984375, 0.03472900390625, -0.00872039794921875, -0.0160064697265625, -0.017578125, -0.006500244140625, 0.009857177734375, -0.06512451171875, -0.048126220703125, 0.0252838134765625, 0.017242431640625, -0.0205078125, -0.06475830078125, -0.052734375, 0.0183868408203125, 0.027313232421875, 0.0240478515625, 0.01200103759765625, 0.024322509765625, -0.038116455078125, -0.022064208984375, -0.0533447265625, -0.0153961181640625, 0.061126708984375, 0.032318115234375, -0.0179901123046875, -0.015655517578125, -0.04931640625, -0.011138916015625, -0.022674560546875, -0.068603515625, -0.0264434814453125, -0.0083770751953125, -0.0276336669921875, 0.01001739501953125, -0.017913818359375, 0.004360198974609375, 0.019317626953125, 0.0238494873046875, -0.0229034423828125, 0.01056671142578125, -0.0672607421875, 0.09564208984375, 0.01513671875, -0.0174560546875, -0.0166473388671875, 0.0621337890625, 0.042144775390625, 0.01229095458984375, 0.013763427734375, -0.03564453125, -0.007419586181640625, -0.0306854248046875, 0.00695037841796875, 0.00437164306640625, 0.0246124267578125, -0.00475311279296875, 0.04241943359375, 0.0167694091796875, 0.01251983642578125, 0.0041351318359375, -0.035614013671875, 0.00885009765625, 0.00047588348388671875, 0.09185791015625, -0.028961181640625, -0.01678466796875, 0.00440216064453125, 0.0113983154296875, -0.00632476806640625, -0.0036773681640625, -0.033172607421875, 0.01059722900390625, -0.04425048828125, 0.028839111328125, 0.0736083984375, 0.025604248046875, 0.041656494140625, -0.00879669189453125, -0.00083160400390625, -0.0034542083740234375, -0.006256103515625, 0.005565643310546875, 0.006832122802734375, -0.033050537109375, -0.053863525390625, 0.0302581787109375, -0.06561279296875, 0.016204833984375, 0.0174560546875, 0.0195465087890625, 0.08544921875, -0.02691650390625, 0.015380859375, 0.045928955078125, -0.0596923828125, -0.046295166015625, -0.0178680419921875, 0.0207366943359375, -0.0135650634765625, 0.033782958984375, 0.035888671875, -0.0114898681640625, 0.0209808349609375, 0.00675201416015625, -0.0169219970703125, -0.0146636962890625, -0.0125274658203125, 0.0032634735107421875, 0.005859375, 0.0230865478515625, -0.0154571533203125, 0.0281829833984375, -0.013702392578125, -0.006275177001953125, 0.0154266357421875, -0.058807373046875, -0.049591064453125, -0.01251220703125, -0.01537322998046875, -0.0220489501953125, -0.034576416015625, 0.005096435546875, 0.06793212890625, 0.01361083984375, 0.0211181640625, -0.049468994140625, -0.0267181396484375, 0.0736083984375, -0.0250701904296875, -0.029693603515625, 0.03302001953125, 0.061767578125, -0.07391357421875, 0.0289764404296875, -0.0172271728515625, -0.00048732757568359375, -0.0039215087890625, -0.0294189453125, 0.01666259765625, -0.031219482421875, -0.00489044189453125, 0.0169677734375, 0.032928466796875, 0.0110321044921875, -0.0298919677734375, 0.01898193359375, -0.0953369140625, -0.08843994140625, -0.01093292236328125, -0.10980224609375, -0.0235595703125, -0.06768798828125, -0.0517578125, 0.06793212890625, -0.016204833984375, 0.038421630859375, 0.03961181640625, 0.00799560546875, -0.01372528076171875, -0.0093536376953125, -0.0175018310546875, 0.04791259765625, -0.0035610198974609375, 0.042022705078125, 0.0036029815673828125, 0.00970458984375, 0.047271728515625, 0.029937744140625, 0.0279998779296875, -0.0058746337890625, 0.0489501953125, -0.01273345947265625, -0.007518768310546875, 0.0207366943359375, -0.0404052734375, -0.0274505615234375, -0.006893157958984375, 0.01543426513671875, 0.0020427703857421875, -0.051483154296875, -0.0023975372314453125, -0.0291900634765625, -0.01485443115234375, 0.02020263671875, 0.005916595458984375, -0.0074005126953125, -0.0099639892578125, 0.0235595703125, -0.0297698974609375, -0.00231170654296875, 0.01031494140625, 0.030670166015625, -0.0255584716796875, 0.04656982421875, 0.00030231475830078125, 0.0102386474609375, -0.047943115234375, -0.0103759765625, 0.01273345947265625, -0.0021648406982421875, 0.014923095703125, 0.0241546630859375, 0.0170135498046875, 0.02081298828125, 0.038970947265625, 0.00970458984375, 0.0499267578125, -0.00984954833984375, 0.02557373046875, 0.0273895263671875, 0.0257568359375, -0.015838623046875, 0.007038116455078125, 0.033905029296875, 0.04156494140625, -0.035369873046875, 0.0018320083618164062, 0.0159454345703125, 0.031768798828125, -0.01149749755859375, -0.01282501220703125, 0.028228759765625, -0.0027141571044921875, 0.0236358642578125, 0.0142059326171875, 0.004131317138671875, 0.01204681396484375, -0.0097808837890625, 0.012786865234375, 0.0474853515625, -0.0285186767578125, 0.033935546875, -0.0714111328125, 0.04803466796875, -0.0041351318359375, 0.0916748046875, 0.015350341796875, 0.07476806640625, -0.0416259765625, -0.048736572265625, -0.0110321044921875, 0.00853729248046875, 0.039215087890625, 0.004253387451171875, -0.048797607421875, -0.016510009765625, 0.04217529296875, 0.051239013671875, 0.0382080078125, -0.00659942626953125, 0.0229644775390625, 0.0017490386962890625, -0.041046142578125, 0.00839996337890625, 0.035125732421875, -0.017913818359375, 0.06317138671875, -0.03656005859375, -0.00015282630920410156, -0.06427001953125, -0.04486083984375, -0.003856658935546875, 0.0224761962890625, -0.031585693359375, -0.01448822021484375, 0.040557861328125, 0.00873565673828125, -0.041015625, 0.013702392578125, 0.01483917236328125, 0.12445068359375, 0.0208587646484375, -0.01145172119140625, 0.003753662109375, -0.03265380859375, -0.038421630859375, 0.0362548828125, 0.038299560546875, 0.01052093505859375, 0.01401519775390625, 0.060760498046875, -0.044921875, 0.0015773773193359375, 0.05426025390625, 0.01239776611328125, -0.0214996337890625, 0.0248870849609375, 0.004047393798828125, -0.0204010009765625, -0.0206756591796875, 0.005764007568359375, 0.0325927734375, -0.00091552734375, -0.02484130859375, 0.01070404052734375, 0.0110015869140625, 0.0216064453125, 0.0303802490234375, -0.0072174072265625, 0.035186767578125, -0.043853759765625, 0.02313232421875, 0.052734375, -0.0213165283203125, -0.0384521484375, 0.01971435546875, 0.01299285888671875, -0.0156402587890625, 0.017333984375, -0.00850677490234375, 0.00876617431640625, -0.0064697265625, 0.03326416015625, -0.0224609375, -0.03302001953125, -0.035308837890625, -0.0037097930908203125, 0.037078857421875, 0.036041259765625, 0.00682830810546875, -0.0129547119140625, -0.0117950439453125, -0.03424072265625, 0.0210113525390625, -0.01042938232421875, 0.006908416748046875, 0.0174407958984375, -0.010009765625, 0.024017333984375, -0.0104827880859375, -0.021881103515625, 0.0211334228515625, -0.00012731552124023438, 0.005008697509765625, -0.01218414306640625, 0.023468017578125, -0.041229248046875, -0.0008435249328613281, 0.023284912109375, 0.0286102294921875, -0.002529144287109375, -0.0204010009765625, -0.0182647705078125, -0.03192138671875, -0.036773681640625, -0.0055084228515625, -0.0257568359375, 0.0015420913696289062, 0.0352783203125, 0.01018524169921875, 0.0127105712890625, 0.003910064697265625, -0.003360748291015625, 0.0310211181640625, -0.0229339599609375, 0.00684356689453125, -0.004749298095703125, -0.05712890625, -0.00885772705078125, 0.0005393028259277344, 0.00444793701171875, -0.016510009765625, 0.01279449462890625, -0.04400634765625, -0.04345703125, -0.042327880859375, 0.0445556640625, -0.0258331298828125, 0.03619384765625, 0.029937744140625, -0.01806640625, 0.0211334228515625, 0.09173583984375, 0.042572021484375, 0.14794921875, -0.0423583984375, -0.058013916015625, 0.00899505615234375, -0.00806427001953125, 0.034210205078125, -0.01226806640625, -0.01207733154296875, -0.052886962890625, 0.0175018310546875, -0.042694091796875, 0.01139068603515625, 0.00366973876953125, -0.038726806640625, -0.058685302734375, 0.06396484375, -0.0170135498046875, -0.025665283203125, -0.04156494140625, 0.005840301513671875, 0.0196380615234375, 0.01548004150390625, -0.0169219970703125, -0.0301361083984375, -0.061279296875, -0.01543426513671875, -0.011505126953125, 0.0341796875, 0.01357269287109375, -0.06072998046875, -0.01358795166015625, 0.001163482666015625, 0.0271759033203125, 0.007904052734375, 0.0321044921875, -0.0137481689453125, 0.03814697265625, 0.0498046875, -0.0272979736328125, 0.007442474365234375, -0.0305938720703125, -0.0523681640625, -0.0174102783203125, -0.006565093994140625, -0.03826904296875, -0.007625579833984375, 0.1044921875, 0.02105712890625, 0.033294677734375, -0.0364990234375, -0.0181427001953125, -0.046356201171875, 0.0126800537109375, -0.006481170654296875, 0.003963470458984375, -0.05413818359375, 0.01226043701171875, 0.02886962890625, -0.00356292724609375, -0.00449371337890625, -0.0300750732421875, -0.0233306884765625, -0.0194244384765625, 0.0038738250732421875, 0.0015659332275390625, -0.0151519775390625, -0.02972412109375, 0.07379150390625, -0.02874755859375, 0.03607177734375, 0.0147247314453125, 0.03509521484375, 0.057830810546875, 0.037689208984375, -0.0229034423828125, 0.0186309814453125, -0.01244354248046875, 0.00310516357421875, -0.0008420944213867188, 0.0231170654296875, 0.0052947998046875, -0.0006051063537597656, -0.02056884765625, -0.0003840923309326172, 0.01336669921875, 0.0035572052001953125, -0.0049896240234375, 0.01500701904296875, 0.010406494140625, -0.0134124755859375, -0.0268707275390625, -0.02337646484375, -0.01441192626953125, 0.007110595703125, -0.041259765625, 0.00888824462890625, 0.00101470947265625, -0.042449951171875, 0.00357818603515625, 0.00018537044525146484, -0.016357421875, -0.0272979736328125, -0.0156402587890625, 0.005504608154296875, -0.0048828125, 0.0032196044921875 ]
45d1cdb81e1850973687695fae9027e3936ce6e1
Wordpress Stackexchange Q: How can I make add_image_size() crop from the top? I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to also know how to position that point myself. At present, the add_image_size() function is taking its crop from the centre of the image. Not always pretty!! A: I have developed a solution to this problem that does not require hacking the core: http://bradt.ca/archives/image-crop-position-in-wordpress/ I have also submitted a patch to core: http://core.trac.wordpress.org/ticket/19393 Add yourself as a Cc on the ticket to show your support for it to be added to core.
Q: How can I make add_image_size() crop from the top? I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to also know how to position that point myself. At present, the add_image_size() function is taking its crop from the centre of the image. Not always pretty!! A: I have developed a solution to this problem that does not require hacking the core: http://bradt.ca/archives/image-crop-position-in-wordpress/ I have also submitted a patch to core: http://core.trac.wordpress.org/ticket/19393 Add yourself as a Cc on the ticket to show your support for it to be added to core. A: You can use the plugin Thumbnail Crop Position to select the crop position of your thumbnails. A: Wordpress codex has the answer, its below. Set the image size by cropping the image and defining a crop position: add_image_size( 'custom-size', 220, 220, array( 'left', 'top' ) ); // Hard crop left top When setting a crop position, the first value in the array is the x axis crop position, the second is the y axis crop position. x_crop_position accepts 'left' 'center', or 'right'. y_crop_position accepts 'top', 'center', or 'bottom'. By default, these values default to 'center' when using hard crop mode. And also codex references a page which shows how crop positions acts. http://havecamerawilltravel.com/photographer/wordpress-thumbnail-crop A: Intermediate image generation is extremely rigid. image_resize() keeps it close to code and completely lacks hooks. Pretty much only option for this is to hook into wp_generate_attachment_metadata and overwrite WP-generated image with your own (which will need bit of a image_resize() fork). I need this for work so I might be able to share some code later. Ok, here is rough, but working example. Note that setting up crop in this way requires understanding of imagecopyresampled(). add_filter('wp_generate_attachment_metadata', 'custom_crop'); function custom_crop($metadata) { $uploads = wp_upload_dir(); $file = path_join( $uploads['basedir'], $metadata['file'] ); // original image file list( $year, $month ) = explode( '/', $metadata['file'] ); $target = path_join( $uploads['basedir'], "{$year}/{$month}/".$metadata['sizes']['medium']['file'] ); // intermediate size file $image = imagecreatefromjpeg($file); // original image resource $image_target = wp_imagecreatetruecolor( 44, 44 ); // blank image to fill imagecopyresampled($image_target, $image, 0, 0, 25, 15, 44, 44, 170, 170); // crop original imagejpeg($image_target, $target, apply_filters( 'jpeg_quality', 90, 'image_resize' )); // write cropped to file return $metadata; } A: Alternative solution here: http://pixert.com/blog/cropping-post-featured-thumbnails-from-top-instead-of-center-in-wordpress-with-native-cropping-tool/ Just add this code to functions.php, then use "Regenerate Thumbnails" plugin (https://wordpress.org/plugins/regenerate-thumbnails/): function px_image_resize_dimensions( $payload, $orig_w, $orig_h, $dest_w, $dest_h, $crop ){ // Change this to a conditional that decides whether you want to override the defaults for this image or not. if( false ) return $payload; if ( $crop ) { // crop the largest possible portion of the original image that we can size to $dest_w x $dest_h $aspect_ratio = $orig_w / $orig_h; $new_w = min($dest_w, $orig_w); $new_h = min($dest_h, $orig_h); if ( !$new_w ) { $new_w = intval($new_h * $aspect_ratio); } if ( !$new_h ) { $new_h = intval($new_w / $aspect_ratio); } $size_ratio = max($new_w / $orig_w, $new_h / $orig_h); $crop_w = round($new_w / $size_ratio); $crop_h = round($new_h / $size_ratio); $s_x = 0; // [[ formerly ]] ==> floor( ($orig_w - $crop_w) / 2 ); $s_y = 0; // [[ formerly ]] ==> floor( ($orig_h - $crop_h) / 2 ); } else { // don't crop, just resize using $dest_w x $dest_h as a maximum bounding box $crop_w = $orig_w; $crop_h = $orig_h; $s_x = 0; $s_y = 0; list( $new_w, $new_h ) = wp_constrain_dimensions( $orig_w, $orig_h, $dest_w, $dest_h ); } // if the resulting image would be the same size or larger we don't want to resize it if ( $new_w >= $orig_w && $new_h >= $orig_h ) return false; // the return array matches the parameters to imagecopyresampled() // int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h ); } add_filter( 'image_resize_dimensions', 'px_image_resize_dimensions', 10, 6 );
wordpress
{ "language": "en", "length": 674, "provenance": "stackexchange_00019.jsonl.gz:410625", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20923" }
[ 0.042633056640625, -0.0188446044921875, 0.036865234375, -0.000018596649169921875, -0.006336212158203125, -0.0257720947265625, 0.05963134765625, -0.053802490234375, 0.043426513671875, 0.01517486572265625, -0.031005859375, -0.0023326873779296875, -0.035186767578125, -0.00342559814453125, -0.07525634765625, -0.0252838134765625, 0.05059814453125, -0.0556640625, 0.0284881591796875, -0.0092010498046875, 0.01253509521484375, 0.0210418701171875, 0.03192138671875, 0.09912109375, -0.030548095703125, 0.03765869140625, 0.0626220703125, -0.054718017578125, -0.0194854736328125, -0.02874755859375, -0.0143585205078125, 0.03131103515625, 0.00305938720703125, 0.0240020751953125, 0.0029544830322265625, -0.01094818115234375, 0.0197906494140625, -0.007770538330078125, 0.0099029541015625, 0.0102081298828125, 0.03173828125, 0.0014085769653320312, -0.004192352294921875, 0.0257415771484375, -0.050506591796875, -0.015411376953125, 0.0051422119140625, 0.008056640625, -0.00396728515625, 0.008880615234375, -0.0127105712890625, -0.0185699462890625, 0.0078582763671875, 0.01001739501953125, -0.004192352294921875, -0.00893402099609375, -0.01496124267578125, 0.046142578125, 0.0159912109375, -0.0214996337890625, -0.024810791015625, 0.046539306640625, 0.0180206298828125, 0.00803375244140625, -0.006977081298828125, -0.02557373046875, 0.00460052490234375, -0.000759124755859375, -0.0191802978515625, -0.01113128662109375, 0.024871826171875, 0.0060577392578125, -0.007328033447265625, -0.00809478759765625, -0.01611328125, 0.0157318115234375, -0.025115966796875, -0.0174713134765625, 0.02923583984375, -0.00028824806213378906, -0.025482177734375, 0.00705718994140625, -0.045806884765625, -0.0132293701171875, 0.0186004638671875, 0.006168365478515625, -0.0218048095703125, -0.0002887248992919922, -0.038177490234375, -0.0010585784912109375, -0.0168609619140625, -0.044158935546875, -0.0232391357421875, 0.0242767333984375, -0.014923095703125, -0.0008311271667480469, 0.0278778076171875, -0.021453857421875, -0.0113372802734375, -0.0165863037109375, 0.01427459716796875, -0.049774169921875, 0.0295562744140625, -0.02008056640625, 0.01361083984375, 0.01534271240234375, 0.006587982177734375, -0.03271484375, 0.02593994140625, 0.01788330078125, -0.0188446044921875, 0.034576416015625, -0.0124664306640625, -0.023681640625, -0.0184326171875, 0.01091766357421875, -0.04150390625, 0.0428466796875, 0.00988006591796875, 0.029052734375, -0.0038928985595703125, -0.0029659271240234375, 0.01227569580078125, -0.00771331787109375, 0.033782958984375, 0.012420654296875, -0.036773681640625, -0.01371002197265625, -0.04443359375, 0.034454345703125, -0.022491455078125, 0.044036865234375, 0.0653076171875, -0.01007843017578125, -0.0274810791015625, -0.0120086669921875, 0.006580352783203125, -0.05859375, -0.01071929931640625, 0.012542724609375, -0.0189056396484375, -0.010955810546875, 0.044281005859375, -0.0182952880859375, 0.02471923828125, 0.01082611083984375, -0.00905609130859375, 0.028717041015625, 0.03680419921875, -0.062286376953125, 0.055328369140625, -0.04425048828125, -0.00502777099609375, -0.00011259317398071289, 0.024932861328125, -0.0196533203125, 0.03485107421875, -0.0428466796875, 0.0233612060546875, -0.0283660888671875, 0.032257080078125, 0.00539398193359375, -0.015777587890625, -0.01013946533203125, -0.0221405029296875, -0.0086517333984375, -0.047271728515625, 0.00030493736267089844, 0.0270843505859375, -0.03143310546875, 0.017333984375, 0.01013946533203125, 0.041290283203125, -0.006198883056640625, -0.00887298583984375, 0.0209503173828125, 0.0438232421875, 0.0068206787109375, -0.012115478515625, 0.07244873046875, 0.0139923095703125, -0.033477783203125, 0.01654052734375, -0.0242156982421875, 0.0093994140625, -0.0545654296875, 0.004711151123046875, -0.01178741455078125, 0.007129669189453125, 0.0264892578125, -0.002040863037109375, 0.01013946533203125, -0.050506591796875, 0.01003265380859375, -0.02447509765625, -0.0011053085327148438, -0.027435302734375, -0.0164031982421875, -0.0197296142578125, 0.03466796875, -0.0170440673828125, 0.0191650390625, 0.00479888916015625, -0.020965576171875, 0.005130767822265625, -0.0086517333984375, -0.005374908447265625, 0.03424072265625, -0.006134033203125, -0.0180206298828125, 0.014862060546875, -0.02215576171875, 0.01348114013671875, -0.0692138671875, -0.04083251953125, 0.01194000244140625, 0.031890869140625, 0.012359619140625, -0.004619598388671875, 0.05401611328125, -0.052093505859375, -0.01129150390625, -0.047332763671875, 0.006618499755859375, 0.05364990234375, -0.005413055419921875, -0.0240325927734375, -0.0233612060546875, 0.0008025169372558594, 0.00916290283203125, -0.06787109375, 0.0521240234375, -0.005706787109375, 0.014190673828125, -0.005245208740234375, 0.0012426376342773438, -0.004474639892578125, -0.041900634765625, 0.007488250732421875, 0.0284271240234375, 0.023284912109375, 0.0447998046875, 0.015838623046875, 0.04644775390625, 0.056121826171875, 0.01513671875, 0.0182952880859375, 0.00311279296875, 0.01354217529296875, 0.0162353515625, 0.000614166259765625, -0.043701171875, 0.010040283203125, -0.095458984375, 0.0145111083984375, 0.0155029296875, -0.0316162109375, -0.0036773681640625, -0.047454833984375, 0.036865234375, 0.011322021484375, -0.00762176513671875, 0.0035247802734375, -0.017974853515625, -0.00722503662109375, 0.004344940185546875, 0.01427459716796875, -0.0021305084228515625, -0.027008056640625, -0.00824737548828125, 0.04010009765625, 0.039031982421875, 0.0016460418701171875, 0.0009517669677734375, -0.05224609375, -0.0175628662109375, -0.0121307373046875, 0.0428466796875, -0.017059326171875, -0.031494140625, -0.0090789794921875, 0.0218048095703125, -0.0274200439453125, -0.0234375, -0.0020351409912109375, -0.058868408203125, -0.00937652587890625, -0.015960693359375, 0.01099395751953125, -0.020233154296875, -0.0042724609375, 0.043548583984375, 0.018585205078125, 0.0097808837890625, 0.049591064453125, -0.0167999267578125, 0.0007834434509277344, -0.04058837890625, 0.041534423828125, -0.048248291015625, 0.0587158203125, 0.07183837890625, -0.035430908203125, 0.00946044921875, -0.0103912353515625, 0.00640106201171875, -0.029449462890625, 0.00814056396484375, -0.00678253173828125, -0.0137481689453125, -0.02587890625, 0.0206756591796875, 0.030426025390625, 0.0633544921875, -0.02447509765625, -0.020416259765625, -0.005092620849609375, 0.037353515625, -0.0034809112548828125, -0.005237579345703125, 0.034820556640625, -0.080810546875, -0.0604248046875, -0.00922393798828125, -0.05169677734375, 0.016082763671875, 0.00543975830078125, -0.026275634765625, 0.0027313232421875, 0.007579803466796875, 0.035125732421875, -0.00457763671875, -0.002399444580078125, -0.033447265625, -0.0025653839111328125, -0.0174713134765625, 0.00044035911560058594, 0.020721435546875, 0.00322723388671875, -0.013092041015625, -0.0089874267578125, 0.061737060546875, 0.012176513671875, -0.030303955078125, 0.040313720703125, 0.00670623779296875, -0.0233917236328125, 0.01025390625, -0.046173095703125, 0.037017822265625, -0.0494384765625, -0.00899505615234375, -0.053619384765625, -0.07757568359375, -0.057708740234375, 0.06365966796875, 0.06976318359375, -0.0858154296875, 0.02496337890625, -0.07952880859375, 0.00959014892578125, -0.0289459228515625, -0.03216552734375, -0.0196990966796875, 0.007495880126953125, 0.0119781494140625, -0.01922607421875, -0.005214691162109375, 0.05548095703125, 0.035308837890625, -0.00231170654296875, 0.038909912109375, -0.014556884765625, 0.0020503997802734375, 0.0274658203125, -0.043426513671875, -0.001338958740234375, -0.0163421630859375, 0.0384521484375, 0.00235748291015625, 0.027740478515625, 0.00281524658203125, 0.0262451171875, -0.0263671875, -0.042510986328125, 0.046783447265625, 0.040618896484375, 0.0182342529296875, 0.0012950897216796875, -0.050811767578125, 0.0035648345947265625, 0.0880126953125, -0.034149169921875, -0.0322265625, -0.02923583984375, 0.00807952880859375, -0.00658416748046875, -0.004581451416015625, -0.00946807861328125, -0.01395416259765625, -0.095458984375, 0.004322052001953125, -0.0024623870849609375, -0.0308380126953125, -0.021728515625, 0.036865234375, -0.068115234375, -0.03765869140625, 0.01641845703125, -0.05474853515625, 0.005523681640625, 0.03570556640625, -0.030364990234375, 0.054107666015625, -0.0067901611328125, -0.0631103515625, -0.0731201171875, -0.00875091552734375, 0.01290130615234375, 0.047760009765625, -0.05670166015625, 0.0716552734375, -0.037017822265625, 0.040435791015625, -0.0020732879638671875, -0.01947021484375, -0.006244659423828125, 0.03179931640625, -0.0311279296875, -0.03802490234375, -0.0250244140625, -0.0565185546875, -0.016937255859375, -0.04754638671875, -0.071533203125, -0.052154541015625, -0.01325225830078125, 0.00034046173095703125, 0.021270751953125, -0.0245819091796875, -0.0291900634765625, -0.042266845703125, -0.01067352294921875, 0.015625, -0.038787841796875, 0.01227569580078125, -0.0616455078125, -0.028533935546875, 0.046783447265625, -0.019378662109375, -0.007534027099609375, 0.00408935546875, 0.06591796875, 0.0179901123046875, -0.0209503173828125, -0.030609130859375, 0.00998687744140625, 0.056549072265625, 0.031402587890625, 0.0103302001953125, 0.0084228515625, -0.03546142578125, 0.0233612060546875, 0.0484619140625, -0.006046295166015625, -0.03338623046875, 0.055389404296875, -0.01055908203125, -0.0193023681640625, 0.0174713134765625, -0.038970947265625, 0.0291748046875, 0.030670166015625, -0.04437255859375, 0.01264190673828125, -0.032196044921875, 0.020843505859375, -0.0280609130859375, 0.03033447265625, -0.0204620361328125, -0.00893402099609375, -0.002590179443359375, 0.0013599395751953125, 0.008026123046875, 0.01120758056640625, -0.0029659271240234375, -0.01629638671875, 0.015594482421875, 0.0132598876953125, -0.02215576171875, -0.017669677734375, -0.0121612548828125, 0.050811767578125, 0.0045928955078125, 0.03338623046875, -0.0207061767578125, -0.00003153085708618164, 0.009124755859375, 0.0133819580078125, -0.035919189453125, -0.02972412109375, -0.0130615234375, 0.0084991455078125, -0.04168701171875, -0.01120758056640625, 0.0201263427734375, 0.005970001220703125, -0.000274658203125, -0.003261566162109375, -0.05706787109375, 0.0225677490234375, -0.04937744140625, 0.0098114013671875, 0.0287628173828125, -0.02178955078125, 0.08392333984375, -0.0313720703125, 0.013458251953125, 0.01383209228515625, -0.01377105712890625, 0.0045928955078125, 0.043609619140625, 0.005279541015625, 0.0161285400390625, 0.0292205810546875, -0.0238037109375, -0.00244140625, 0.044464111328125, -0.0140380859375, 0.041656494140625, -0.00701141357421875, 0.036651611328125, -0.0186004638671875, -0.03582763671875, 0.0309600830078125, -0.041656494140625, -0.00980377197265625, 0.003719329833984375, -0.0282135009765625, -0.053802490234375, -0.01305389404296875, 0.01152801513671875, 0.01354217529296875, -0.0240325927734375, -0.020843505859375, 0.01041412353515625, -0.062469482421875, -0.01108551025390625, 0.05078125, -0.029754638671875, 0.0020389556884765625, -0.0009212493896484375, -0.052337646484375, -0.01311492919921875, -0.01715087890625, 0.019317626953125, -0.020904541015625, -0.00615692138671875, -0.031219482421875, 0.03387451171875, -0.0168914794921875, -0.004329681396484375, -0.0274200439453125, 0.002834320068359375, 0.00006121397018432617, -0.01013946533203125, 0.06195068359375, 0.0002084970474243164, -0.01229095458984375, -0.0399169921875, -0.052581787109375, -0.033660888671875, -0.008087158203125, 0.0067291259765625, -0.0165557861328125, 0.0170135498046875, 0.0193023681640625, 0.0284576416015625, -0.0221099853515625, -0.063232421875, -0.012939453125, 0.00234222412109375, 0.032196044921875, 0.0162811279296875, 0.00861358642578125, 0.00728607177734375, -0.005306243896484375, 0.04541015625, 0.021209716796875, 0.0150299072265625, -0.004474639892578125, -0.038909912109375, -0.0161895751953125, -0.0161285400390625, -0.005176544189453125, 0.0227813720703125, -0.00328826904296875, -0.00550079345703125, 0.02569580078125, 0.00371551513671875, 0.02362060546875, -0.0132293701171875, 0.0001971721649169922, -0.0239410400390625, 0.0139617919921875, -0.023834228515625, 0.0163116455078125, 0.01378631591796875, -0.02203369140625, 0.0654296875, -0.020172119140625, 0.0245819091796875, -0.0055084228515625, -0.056732177734375, 0.0172576904296875, 0.048492431640625, -0.0128631591796875, 0.01471710205078125, 0.07879638671875, -0.018646240234375, 0.0389404296875, 0.04644775390625, -0.01056671142578125, 0.036224365234375, 0.01396942138671875, -0.0217132568359375, -0.0180206298828125, 0.006793975830078125, -0.01214599609375, 0.0009069442749023438, -0.0184783935546875, -0.0082855224609375, 0.018951416015625, -0.00478363037109375, 0.030731201171875, -0.0177764892578125, 0.0247344970703125, 0.004199981689453125, -0.0221405029296875, 0.034393310546875, 0.01125335693359375, 0.0129852294921875, 0.00254058837890625, 0.016815185546875, -0.048004150390625, -0.005687713623046875, -0.0021190643310546875, -0.036834716796875, -0.01404571533203125, -0.0038604736328125, 0.01275634765625, 0.01305389404296875, -0.02691650390625, -0.018280029296875, 0.01824951171875, -0.01279449462890625, -0.013824462890625, 0.04833984375, -0.0216217041015625, 0.039031982421875, -0.01125335693359375, 0.039825439453125, -0.039825439453125, -0.0121002197265625, 0.01476287841796875, 0.0031681060791015625, 0.01904296875, 0.05706787109375, -0.00800323486328125, 0.00943756103515625, 0.03155517578125, -0.0592041015625, 0.0618896484375, -0.01149749755859375, 0.01375579833984375, -0.0194854736328125, -0.042083740234375, -0.022003173828125, -0.0293121337890625, 0.0211181640625, -0.007671356201171875, -0.0263671875, 0.042083740234375, -0.040496826171875, -0.0018873214721679688, 0.0260162353515625, 0.00836181640625, -0.0105438232421875, -0.0036792755126953125, 0.020751953125, -0.05841064453125, -0.014373779296875, 0.01438140869140625, 0.005268096923828125, 0.03582763671875, 0.0198974609375, -0.01526641845703125, 0.054351806640625, 0.0184783935546875, -0.01190948486328125, 0.004161834716796875, 0.0312042236328125, -0.0200958251953125, 0.0173187255859375, -0.01007080078125, 0.0009226799011230469, -0.049041748046875, 0.01343536376953125, -0.03509521484375, 0.0260772705078125, -0.0186614990234375, 0.0255584716796875, 0.03961181640625, 0.002407073974609375, -0.03985595703125, -0.015350341796875, 0.0709228515625, 0.08660888671875, 0.051788330078125, 0.006988525390625, -0.0157470703125, -0.00922393798828125, 0.00817108154296875, 0.004741668701171875, 0.025726318359375, -0.011627197265625, -0.0482177734375, 0.0285491943359375, -0.0034122467041015625, -0.00223541259765625, 0.00788116455078125, 0.020477294921875, -0.0706787109375, 0.013702392578125, 0.06268310546875, -0.050628662109375, 0.042327880859375, 0.0253143310546875, 0.0347900390625, 0.0313720703125, -0.038055419921875, 0.01107025146484375, 0.031951904296875, 0.01593017578125, 0.06903076171875, 0.00997161865234375, 0.0276031494140625, 0.0244903564453125, 0.00445556640625, 0.05023193359375, 0.04998779296875, -0.058349609375, -0.01377105712890625, 0.015869140625, 0.002902984619140625, -0.0123443603515625, 0.0265960693359375, 0.0188446044921875, -0.0018749237060546875, -0.0193023681640625, 0.0244903564453125, 0.0124664306640625, -0.004608154296875, 0.00131988525390625, -0.047210693359375, 0.007312774658203125, -0.05535888671875, -0.06201171875, -0.03985595703125, -0.0001710653305053711, 0.040863037109375, 0.05633544921875, 0.009490966796875, 0.00403594970703125, -0.0811767578125, -0.03448486328125, 0.0067596435546875, -0.05255126953125, -0.004241943359375, 0.01568603515625, 0.045013427734375, -0.00818634033203125, 0.0233154296875, 0.00452423095703125, -0.00395965576171875, 0.0193634033203125, -0.0010519027709960938, -0.00673675537109375, 0.0301513671875, 0.0136871337890625, -0.038818359375, 0.0009822845458984375, -0.002796173095703125, -0.0205841064453125, 0.041259765625, 0.000774383544921875, -0.1077880859375, -0.01342010498046875, 0.0411376953125, -0.058441162109375, 0.01279449462890625, -0.033538818359375, 0.032196044921875, 0.05450439453125, 0.0015363693237304688, -0.01074981689453125, -0.0164337158203125, 0.0919189453125, -0.0210418701171875, 0.01666259765625, -0.0042266845703125, -0.032379150390625, 0.0149383544921875, -0.014923095703125, 0.05078125, -0.01126861572265625, -0.07818603515625, -0.004520416259765625, -0.06268310546875, -0.06396484375, 0.058441162109375, 0.044158935546875, -0.01434326171875, 0.01702880859375, 0.01995849609375, -0.03533935546875, 0.040435791015625, -0.020538330078125, 0.0169219970703125, 0.0279541015625, 0.003322601318359375, 0.00592041015625, -0.0501708984375, -0.0167999267578125, -0.029144287109375, 0.0214996337890625, 0.01271820068359375, 0.057769775390625, 0.0021114349365234375, 0.02069091796875, 0.00907135009765625, 0.0254058837890625, -0.0006456375122070312, -0.019683837890625, 0.059417724609375, -0.004608154296875, 0.0024566650390625, -0.016357421875, -0.0254669189453125, -0.03912353515625, 0.043792724609375, -0.08331298828125, -0.025665283203125, 0.004444122314453125, 0.0130615234375, -0.0330810546875, 0.00772857666015625, -0.0295257568359375, -0.014801025390625, -0.0167388916015625, -0.0184783935546875, 0.017181396484375, -0.006320953369140625, 0.0015354156494140625, 0.0408935546875, 0.01708984375, 0.03533935546875, 0.0208587646484375, 0.002307891845703125, 0.0460205078125, 0.044219970703125, -0.08538818359375, -0.03521728515625, 0.011016845703125, -0.0027103424072265625, -0.0187835693359375, 0.023193359375, 0.0215301513671875, 0.0147247314453125, 0.014556884765625, 0.045501708984375, 0.0082244873046875, 0.0435791015625, -0.043121337890625, -0.016845703125, 0.0153961181640625, 0.0224151611328125, -0.00009840726852416992, 0.00850677490234375, -0.00007426738739013672, -0.00013768672943115234, -0.016998291015625, 0.00759124755859375, 0.03253173828125, 0.01270294189453125, 0.00592041015625, 0.025421142578125, 0.0008664131164550781, 0.0158233642578125, -0.068115234375, 0.046173095703125, -0.007152557373046875, 0.0307159423828125, -0.0255584716796875, -0.0479736328125, 0.004497528076171875, 0.0447998046875, 0.006465911865234375, -0.0367431640625, -0.0295257568359375, 0.022552490234375, -0.0301513671875, 0.0474853515625, 0.0628662109375, -0.03973388671875, 0.004375457763671875, 0.051055908203125, 0.044921875, 0.09222412109375, -0.0634765625, -0.040374755859375, 0.005809783935546875, -0.0133056640625, 0.01422882080078125, -0.02813720703125, 0.00446319580078125, -0.077880859375, 0.0007414817810058594, -0.0716552734375, 0.0345458984375, 0.01404571533203125, -0.0213775634765625, -0.02001953125, 0.0220489501953125, -0.00823974609375, -0.007678985595703125, 0.0013303756713867188, 0.006656646728515625, -0.04083251953125, 0.052398681640625, 0.0310211181640625, -0.0255126953125, 0.028045654296875, 0.0218963623046875, -0.00881195068359375, -0.02001953125, 0.036956787109375, -0.02459716796875, -0.00215911865234375, 0.01947021484375, 0.05584716796875, -0.03125, 0.0041961669921875, -0.029937744140625, 0.0465087890625, 0.0406494140625, -0.01983642578125, -0.0268707275390625, 0.0087432861328125, -0.0283203125, -0.0120391845703125, -0.032318115234375, -0.0177001953125, 0.0062713623046875, 0.07177734375, 0.038177490234375, 0.022186279296875, -0.052703857421875, -0.017730712890625, -0.02880859375, 0.004802703857421875, -0.022857666015625, 0.005474090576171875, -0.05035400390625, -0.00792694091796875, -0.00576019287109375, -0.0282745361328125, -0.01116943359375, -0.0178985595703125, -0.06829833984375, 0.005191802978515625, -0.036468505859375, 0.01513671875, -0.07684326171875, 0.0850830078125, 0.0219879150390625, -0.0230255126953125, -0.005157470703125, -0.04754638671875, -0.01357269287109375, 0.00627899169921875, -0.079833984375, -0.028106689453125, 0.028167724609375, -0.0255889892578125, 0.005336761474609375, -0.0150604248046875, 0.0236663818359375, -0.0076751708984375, -0.00067138671875, 0.003429412841796875, 0.02392578125, -0.0013523101806640625, 0.037506103515625, -0.01739501953125, 0.0343017578125, 0.01003265380859375, -0.02142333984375, 0.0103912353515625, 0.0293731689453125, -0.0003364086151123047, 0.045501708984375, 0.005828857421875, -0.018402099609375, 0.01215362548828125, -0.04644775390625, 0.0292510986328125, 0.028564453125, 0.019439697265625, 0.0380859375, -0.0124359130859375, 0.00591278076171875, -0.010833740234375, -0.0098724365234375 ]
b4c6fa86a215d20e7aa749358ce0674816842084
Wordpress Stackexchange Q: Show post tags in a widget I'm looking to show the tags of a post within a widget. I know this is hard because it's outside of the loop, but has it been done, is there one available? A: Tags can be shown outside the Post loop using the global functions. Step 1 : Get a PHP Code Widget (this solved many problems) Step 2 : Place the Code <?php the_tags(); ?> in widget and Save. Check Tags Documentation to tweak display order. All done just rock and roll.
Q: Show post tags in a widget I'm looking to show the tags of a post within a widget. I know this is hard because it's outside of the loop, but has it been done, is there one available? A: Tags can be shown outside the Post loop using the global functions. Step 1 : Get a PHP Code Widget (this solved many problems) Step 2 : Place the Code <?php the_tags(); ?> in widget and Save. Check Tags Documentation to tweak display order. All done just rock and roll. A: Its not very hard actually, WordPress supports multiple loops and query's. The best way to create a secondary (or more) loop is to make an instance of WP Query Using that you can make a simple query that gets the posts tags using wp_get_post_tags Then you would throw the code into a widget.
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:410640", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20971" }
[ 0.0792236328125, -0.02471923828125, 0.035919189453125, 0.01244354248046875, 0.00472259521484375, -0.04278564453125, 0.08111572265625, -0.03997802734375, 0.057891845703125, 0.0145263671875, -0.08685302734375, -0.0284423828125, -0.0235748291015625, 0.005863189697265625, -0.047149658203125, -0.053955078125, 0.042510986328125, -0.0025806427001953125, 0.045257568359375, -0.007709503173828125, 0.00424957275390625, 0.0147705078125, 0.03839111328125, 0.028106689453125, 0.013427734375, 0.006526947021484375, 0.0279998779296875, -0.0101318359375, -0.027252197265625, -0.029022216796875, 0.02557373046875, 0.0199432373046875, 0.032318115234375, -0.0008211135864257812, -0.0208892822265625, -0.0240631103515625, -0.03497314453125, 0.00800323486328125, 0.005840301513671875, -0.000919342041015625, 0.0168304443359375, -0.004154205322265625, 0.01435089111328125, 0.0224609375, -0.0020904541015625, -0.024871826171875, 0.0206756591796875, -0.0631103515625, 0.018646240234375, -0.0233306884765625, 0.031646728515625, -0.0026836395263671875, 0.02734375, -0.0277252197265625, -0.0272979736328125, 0.00760650634765625, 0.005504608154296875, -0.044769287109375, 0.06341552734375, -0.03387451171875, -0.053497314453125, -0.07196044921875, 0.0533447265625, -0.027130126953125, 0.003948211669921875, -0.000335693359375, 0.04290771484375, 0.000049233436584472656, -0.039154052734375, -0.002532958984375, 0.046905517578125, -0.0189666748046875, -0.0075836181640625, -0.006244659423828125, -0.01453399658203125, -0.0269927978515625, 0.026702880859375, -0.0282135009765625, -0.0173492431640625, 0.0211944580078125, 0.0258636474609375, 0.0312347412109375, -0.0159912109375, 0.0038928985595703125, -0.0157928466796875, -0.0013284683227539062, -0.0087890625, -0.0180816650390625, -0.0116119384765625, -0.01363372802734375, -0.0126495361328125, 0.0012454986572265625, -0.0101318359375, 0.01049041748046875, 0.00041937828063964844, -0.04473876953125, 0.003040313720703125, 0.0103607177734375, -0.022705078125, 0.028167724609375, 0.0014848709106445312, -0.0369873046875, 0.0645751953125, -0.044403076171875, 0.0020313262939453125, 0.0262451171875, -0.01448822021484375, 0.016082763671875, 0.037994384765625, 0.029754638671875, 0.00525665283203125, 0.01406097412109375, -0.0006089210510253906, -0.0194244384765625, -0.044677734375, 0.01151275634765625, -0.032318115234375, -0.0123443603515625, 0.0149688720703125, -0.01776123046875, -0.0005035400390625, 0.02557373046875, 0.0030231475830078125, 0.01374053955078125, 0.0196685791015625, 0.05072021484375, 0.019012451171875, -0.060394287109375, -0.00485992431640625, 0.0268096923828125, -0.004550933837890625, 0.00927734375, 0.005718231201171875, 0.012939453125, -0.02313232421875, -0.002216339111328125, -0.00665283203125, -0.01953125, -0.0167999267578125, 0.0386962890625, -0.040252685546875, -0.0599365234375, 0.00012791156768798828, -0.040679931640625, 0.03216552734375, 0.04443359375, 0.0160064697265625, -0.0180206298828125, 0.01151275634765625, -0.0377197265625, 0.0206451416015625, -0.0306243896484375, 0.00803375244140625, 0.01342010498046875, 0.052398681640625, -0.0299224853515625, 0.056060791015625, -0.038177490234375, 0.01490020751953125, -0.0252838134765625, 0.00020992755889892578, -0.0094146728515625, 0.02313232421875, -0.0275421142578125, -0.0258331298828125, 0.016571044921875, -0.040435791015625, 0.0012216567993164062, 0.037445068359375, 0.038543701171875, 0.0294342041015625, -0.01409149169921875, 0.04193115234375, 0.01837158203125, -0.021514892578125, 0.0034027099609375, -0.0229339599609375, -0.0081329345703125, 0.034759521484375, 0.01421356201171875, -0.01690673828125, -0.044281005859375, 0.0266876220703125, -0.00800323486328125, -0.06622314453125, 0.003520965576171875, 0.019989013671875, 0.08514404296875, 0.031951904296875, 0.037506103515625, 0.014007568359375, -0.036865234375, -0.0259552001953125, 0.0106353759765625, 0.01371002197265625, 0.0007739067077636719, -0.03155517578125, 0.005840301513671875, -0.00493621826171875, -0.036590576171875, -0.03619384765625, 0.01849365234375, -0.021148681640625, 0.017242431640625, -0.01849365234375, 0.005374908447265625, -0.00530242919921875, 0.031829833984375, 0.026397705078125, 0.0166015625, 0.00479888916015625, -0.00220489501953125, -0.0131378173828125, -0.0244293212890625, -0.03643798828125, 0.0273590087890625, 0.01360321044921875, 0.04888916015625, 0.032318115234375, 0.0190582275390625, 0.0177459716796875, -0.0004699230194091797, 0.00969696044921875, -0.0098724365234375, 0.060943603515625, -0.006988525390625, -0.0229339599609375, -0.03717041015625, 0.00711822509765625, 0.0250396728515625, -0.09002685546875, 0.02020263671875, -0.0167236328125, -0.00989532470703125, -0.038482666015625, -0.0218658447265625, -0.0178985595703125, -0.0301971435546875, 0.01751708984375, 0.047088623046875, 0.02178955078125, 0.0521240234375, -0.00305938720703125, 0.030975341796875, 0.06610107421875, -0.043182373046875, -0.0089263916015625, 0.01641845703125, 0.0244903564453125, 0.0211944580078125, -0.01045989990234375, 0.0005240440368652344, 0.0472412109375, -0.038848876953125, 0.0244598388671875, 0.034027099609375, 0.0098724365234375, 0.05181884765625, -0.0165557861328125, -0.0014963150024414062, -0.01253509521484375, -0.01535797119140625, -0.0239410400390625, -0.03076171875, 0.021087646484375, 0.023223876953125, 0.055023193359375, 0.03387451171875, -0.028167724609375, -0.015167236328125, 0.0128021240234375, 0.04449462890625, 0.01346588134765625, 0.0135650634765625, 0.0114288330078125, -0.00629425048828125, -0.03314208984375, -0.0224761962890625, 0.0229949951171875, -0.0065155029296875, 0.0040130615234375, 0.034698486328125, -0.001194000244140625, -0.000606536865234375, -0.0167694091796875, -0.022857666015625, 0.01325225830078125, 0.032562255859375, -0.01006317138671875, -0.00019860267639160156, -0.013092041015625, 0.0618896484375, -0.007457733154296875, 0.04681396484375, 0.00844573974609375, 0.0179443359375, -0.004428863525390625, -0.017974853515625, 0.0233306884765625, -0.0225067138671875, 0.059417724609375, 0.06317138671875, -0.0026836395263671875, 0.0028858184814453125, 0.0211181640625, 0.0014934539794921875, 0.03131103515625, 0.01543426513671875, 0.0171661376953125, 0.0124664306640625, -0.043914794921875, 0.00798797607421875, 0.0142974853515625, 0.021270751953125, -0.0308380126953125, -0.057159423828125, -0.0283203125, 0.01398468017578125, -0.0782470703125, -0.04791259765625, 0.0225372314453125, -0.0567626953125, -0.022674560546875, -0.0201568603515625, -0.04376220703125, 0.00701141357421875, 0.0041046142578125, -0.00665283203125, -0.05157470703125, -0.0249786376953125, -0.06158447265625, -0.0810546875, -0.056640625, 0.05322265625, -0.01068878173828125, 0.025909423828125, 0.004215240478515625, 0.04437255859375, 0.00846099853515625, -0.075927734375, -0.015655517578125, -0.003597259521484375, -0.0191497802734375, 0.01197052001953125, 0.002674102783203125, -0.0222930908203125, -0.002323150634765625, 0.016204833984375, -0.034637451171875, 0.00791168212890625, -0.0030364990234375, -0.0214691162109375, 0.019378662109375, -0.019927978515625, 0.0274810791015625, -0.02447509765625, -0.0204620361328125, 0.0009608268737792969, -0.01155853271484375, -0.03912353515625, -0.0010433197021484375, 0.0172119140625, -0.014129638671875, -0.06146240234375, -0.038360595703125, -0.0109710693359375, -0.005443572998046875, 0.006320953369140625, -0.0010652542114257812, -0.004791259765625, -0.029205322265625, -0.0220184326171875, 0.0772705078125, 0.0007476806640625, 0.0304107666015625, 0.013916015625, -0.03192138671875, -0.02471923828125, 0.018798828125, -0.02362060546875, 0.0048370361328125, -0.038726806640625, 0.07666015625, -0.027740478515625, -0.01654052734375, 0.0181121826171875, -0.0184173583984375, 0.003849029541015625, -0.007541656494140625, -0.019256591796875, 0.014404296875, 0.06561279296875, -0.037261962890625, -0.00106048583984375, -0.030303955078125, 0.00920867919921875, -0.0294189453125, -0.05352783203125, -0.0391845703125, -0.00432586669921875, -0.09173583984375, 0.03448486328125, -0.0038852691650390625, -0.00017082691192626953, -0.02099609375, 0.02679443359375, -0.04156494140625, -0.038726806640625, 0.0210418701171875, -0.01317596435546875, 0.0286102294921875, -0.047271728515625, 0.0198211669921875, -0.05670166015625, -0.01070404052734375, -0.01282501220703125, -0.06268310546875, 0.0032806396484375, -0.042236328125, 0.042327880859375, 0.02325439453125, -0.0111846923828125, 0.0025463104248046875, 0.034210205078125, 0.0066375732421875, -0.0005488395690917969, 0.0197601318359375, 0.0180511474609375, 0.0116119384765625, -0.0026988983154296875, 0.0017604827880859375, -0.0259857177734375, -0.039093017578125, -0.009979248046875, -0.0151519775390625, 0.054931640625, 0.00543975830078125, 0.004978179931640625, 0.0200042724609375, -0.01308441162109375, -0.002971649169921875, -0.0094451904296875, -0.0100860595703125, 0.0338134765625, -0.0278778076171875, 0.0261077880859375, -0.02337646484375, -0.03656005859375, 0.0223541259765625, 0.040313720703125, -0.02960205078125, 0.00647735595703125, 0.0501708984375, 0.01806640625, -0.0301055908203125, -0.0645751953125, -0.0234375, 0.045867919921875, -0.01222991943359375, 0.027313232421875, 0.033721923828125, -0.03521728515625, 0.03277587890625, 0.021881103515625, -0.0020351409912109375, 0.01218414306640625, 0.058929443359375, -0.00217437744140625, -0.0026798248291015625, 0.004451751708984375, -0.0213165283203125, -0.014495849609375, 0.01070404052734375, -0.01544189453125, -0.0143585205078125, 0.04705810546875, 0.055816650390625, -0.043701171875, 0.036529541015625, -0.037872314453125, -0.018707275390625, -0.0008192062377929688, 0.057891845703125, -0.0113525390625, -0.001590728759765625, 0.01447296142578125, -0.032867431640625, -0.0013828277587890625, 0.0166778564453125, 0.015289306640625, -0.01373291015625, -0.0158538818359375, 0.026763916015625, 0.0021686553955078125, -0.0037860870361328125, 0.0259857177734375, -0.00750732421875, 0.041229248046875, -0.00594329833984375, -0.036407470703125, -0.01471710205078125, -0.004425048828125, 0.0233001708984375, 0.03289794921875, 0.0159759521484375, -0.0245819091796875, 0.00965118408203125, -0.0270843505859375, 0.0069580078125, 0.051422119140625, 0.004680633544921875, -0.01152801513671875, -0.0225372314453125, -0.0098114013671875, -0.0039215087890625, 0.0019092559814453125, 0.06024169921875, -0.058929443359375, 0.03857421875, -0.002490997314453125, 0.029144287109375, 0.01029205322265625, 0.0100555419921875, 0.0262298583984375, -0.0107421875, 0.0211944580078125, -0.04241943359375, 0.00421142578125, -0.0104827880859375, 0.006267547607421875, -0.00475311279296875, 0.00963592529296875, 0.024444580078125, -0.000980377197265625, 0.02783203125, 0.0015230178833007812, -0.006893157958984375, 0.048583984375, 0.035858154296875, -0.028900146484375, -0.036041259765625, -0.0031642913818359375, 0.039703369140625, 0.0156707763671875, -0.0021686553955078125, 0.009185791015625, -0.00867462158203125, 0.0273590087890625, -0.0367431640625, 0.012847900390625, 0.0174407958984375, -0.007587432861328125, -0.042877197265625, -0.0268402099609375, -0.030853271484375, -0.026275634765625, -0.0350341796875, 0.0034656524658203125, -0.003444671630859375, 0.00366973876953125, -0.020721435546875, 0.0308380126953125, -0.0181427001953125, -0.0204315185546875, 0.006168365478515625, -0.0017099380493164062, 0.07135009765625, 0.039581298828125, -0.08062744140625, 0.005859375, -0.051116943359375, -0.01275634765625, -0.0169677734375, -0.0570068359375, -0.062469482421875, -0.026947021484375, 0.0511474609375, 0.03564453125, 0.018707275390625, -0.029937744140625, -0.0234222412109375, 0.0013275146484375, 0.02239990234375, 0.0546875, -0.004566192626953125, 0.036834716796875, -0.01511383056640625, 0.060089111328125, -0.006622314453125, -0.01153564453125, -0.027801513671875, -0.0157623291015625, 0.0217742919921875, -0.05474853515625, -0.0252685546875, -0.0017337799072265625, -0.0172882080078125, -0.02545166015625, -0.0243072509765625, -0.00820159912109375, 0.00835418701171875, -0.017608642578125, 0.0052947998046875, 0.004581451416015625, 0.03302001953125, 0.00180816650390625, -0.030181884765625, 0.0762939453125, 0.00513458251953125, -0.066162109375, 0.0234832763671875, 0.004299163818359375, -0.005344390869140625, 0.042327880859375, -0.0288543701171875, -0.0552978515625, -0.04193115234375, 0.060211181640625, 0.04364013671875, 0.0087890625, 0.0284881591796875, 0.0045013427734375, 0.0071258544921875, -0.0156097412109375, -0.01824951171875, -0.037384033203125, -0.0016164779663085938, 0.043212890625, 0.0019664764404296875, -0.0088653564453125, 0.050933837890625, -0.0268402099609375, -0.0262298583984375, -0.0004825592041015625, 0.0265655517578125, -0.0325927734375, 0.01308441162109375, 0.023956298828125, 0.01155853271484375, -0.0308685302734375, 0.029937744140625, -0.012176513671875, -0.004299163818359375, 0.046173095703125, 0.0005626678466796875, 0.015777587890625, 0.058197021484375, 0.022491455078125, 0.0246124267578125, -0.049591064453125, 0.0640869140625, 0.0191497802734375, -0.08251953125, 0.0197296142578125, 0.067138671875, 0.0104522705078125, -0.01305389404296875, 0.006267547607421875, -0.0097808837890625, -0.0170440673828125, -0.0390625, 0.0147705078125, -0.00464630126953125, -0.0091400146484375, 0.004993438720703125, -0.0297088623046875, 0.03973388671875, 0.042755126953125, -0.0112152099609375, 0.01018524169921875, -0.0012884140014648438, 0.006885528564453125, -0.024200439453125, 0.008453369140625, 0.0023517608642578125, 0.046905517578125, 0.0078125, 0.01197052001953125, -0.00775146484375, 0.004848480224609375, -0.0153656005859375, -0.0014801025390625, 0.0919189453125, 0.0013399124145507812, -0.040252685546875, 0.0195159912109375, 0.0178070068359375, -0.00821685791015625, -0.004756927490234375, 0.00714874267578125, -0.0341796875, 0.00865936279296875, -0.0011205673217773438, -0.0119781494140625, -0.01265716552734375, -0.02764892578125, -0.063720703125, 0.1025390625, 0.022857666015625, 0.01580810546875, 0.007053375244140625, 0.037872314453125, -0.0236053466796875, 0.0218353271484375, -0.05419921875, 0.031646728515625, -0.00004398822784423828, 0.043670654296875, -0.058258056640625, -0.00007051229476928711, 0.006595611572265625, 0.0187835693359375, 0.01385498046875, -0.0125885009765625, 0.0116119384765625, -0.036102294921875, 0.0125885009765625, 0.07989501953125, 0.0144195556640625, -0.0269317626953125, 0.0408935546875, 0.015869140625, 0.0258636474609375, 0.00689697265625, 0.055419921875, -0.047393798828125, 0.01183319091796875, 0.0589599609375, 0.034149169921875, 0.0271759033203125, -0.0148468017578125, -0.011871337890625, -0.00363922119140625, -0.009552001953125, -0.00014078617095947266, 0.0094757080078125, -0.019256591796875, 0.037567138671875, 0.023712158203125, -0.059722900390625, -0.0601806640625, -0.0284423828125, 0.026275634765625, 0.018310546875, 0.037750244140625, 0.0008955001831054688, 0.0188446044921875, 0.034759521484375, -0.02008056640625, 0.02044677734375, 0.01861572265625, -0.043121337890625, 0.0439453125, 0.0292816162109375, 0.0273284912109375, -0.03521728515625, 0.021331787109375, 0.031280517578125, 0.056304931640625, -0.039581298828125, -0.01036834716796875, 0.0199127197265625, 0.00746917724609375, -0.025665283203125, -0.0017833709716796875, -0.00311279296875, 0.008056640625, 0.0243072509765625, -0.006805419921875, -0.03717041015625, 0.007144927978515625, 0.0758056640625, 0.01519775390625, -0.0089263916015625, -0.051544189453125, -0.0771484375, -0.07623291015625, 0.031707763671875, 0.0189056396484375, 0.05987548828125, 0.01474761962890625, 0.05755615234375, 0.0160064697265625, -0.0242767333984375, -0.0031490325927734375, 0.01522064208984375, 0.0102386474609375, 0.002857208251953125, -0.025909423828125, -0.034393310546875, 0.0416259765625, 0.02978515625, 0.02056884765625, -0.0207061767578125, 0.0221099853515625, 0.03125, -0.0285797119140625, -0.021087646484375, 0.056549072265625, 0.00044918060302734375, -0.0022029876708984375, -0.04473876953125, 0.0005750656127929688, 0.01373291015625, -0.007190704345703125, 0.0149078369140625, -0.00392913818359375, 0.0281524658203125, -0.05859375, 0.0494384765625, -0.0184173583984375, -0.0008945465087890625, 0.05517578125, -0.047882080078125, 0.03802490234375, -0.035186767578125, -0.08087158203125, -0.0014629364013671875, -0.048095703125, -0.053802490234375, 0.0246734619140625, 0.0294952392578125, -0.0216217041015625, 0.015960693359375, 0.032562255859375, -0.0171356201171875, 0.0106048583984375, -0.01363372802734375, 0.0355224609375, 0.04803466796875, -0.00644683837890625, 0.0374755859375, -0.0859375, -0.054931640625, -0.025390625, 0.045013427734375, 0.0267333984375, 0.02020263671875, 0.03118896484375, 0.033843994140625, -0.0184326171875, 0.0227813720703125, -0.044403076171875, -0.042266845703125, 0.06207275390625, -0.01549530029296875, -0.0013275146484375, -0.006839752197265625, 0.01395416259765625, 0.0308074951171875, 0.0299530029296875, -0.040679931640625, 0.01531219482421875, -0.03363037109375, 0.0078582763671875, -0.01708984375, 0.0423583984375, -0.00830078125, -0.0018396377563476562, -0.0186309814453125, -0.006496429443359375, 0.0299072265625, 0.03826904296875, -0.00911712646484375, -0.011962890625, -0.00945281982421875, -0.007762908935546875, 0.001708984375, 0.041900634765625, -0.0266571044921875, 0.01277923583984375, -0.01192474365234375, -0.015899658203125, 0.00147247314453125, -0.025146484375, 0.013580322265625, 0.0105133056640625, 0.02093505859375, -0.007221221923828125, 0.005146026611328125, -0.026397705078125, 0.0244140625, 0.016082763671875, -0.036590576171875, 0.0276947021484375, 0.0191497802734375, -0.0261077880859375, 0.005550384521484375, -0.0037593841552734375, -0.03521728515625, -0.054901123046875, -0.006504058837890625, 0.01384735107421875, -0.038665771484375, -0.053619384765625, -0.11322021484375, -0.028656005859375, 0.040924072265625, 0.01145172119140625, -0.00978851318359375, -0.0372314453125, 0.004070281982421875, 0.0296783447265625, 0.01153564453125, 0.01091766357421875, 0.008331298828125, 0.0201263427734375, -0.0450439453125, 0.01444244384765625, -0.027862548828125, -0.013153076171875, 0.004852294921875, 0.0294647216796875, 0.0018739700317382812, -0.05633544921875, 0.0199127197265625, 0.06951904296875, 0.07281494140625, 0.1026611328125, 0.0987548828125, 0.0064544677734375, -0.01467132568359375, 0.046661376953125, -0.0369873046875, -0.06951904296875, 0.03759765625, -0.045867919921875, -0.0161285400390625, 0.0011224746704101562, -0.0064239501953125, 0.00020515918731689453, -0.05145263671875, -0.10662841796875, 0.08563232421875, -0.0211944580078125, -0.0440673828125, -0.01015472412109375, 0.0120391845703125, 0.00016891956329345703, -0.00647735595703125, 0.0046234130859375, -0.025634765625, -0.01910400390625, 0.0021991729736328125, 0.0362548828125, 0.004650115966796875, 0.050537109375, 0.007232666015625, -0.047637939453125, -0.00141143798828125, -0.032562255859375, 0.0325927734375, 0.0052947998046875, -0.01210784912109375, -0.0173187255859375, 0.0136566162109375, -0.07379150390625, -0.05224609375, -0.0250244140625, 0.05255126953125, 0.037811279296875, -0.041351318359375, -0.019805908203125, -0.04779052734375, -0.00839996337890625, -0.0250091552734375, 0.00725555419921875, 0.0134124755859375, 0.0147857666015625, 0.0167694091796875, -0.08209228515625, -0.0026836395263671875, 0.0390625, -0.0633544921875, -0.01277923583984375, -0.00020742416381835938, 0.0030517578125, 0.0162353515625, -0.00792694091796875, -0.026702880859375, -0.022430419921875, -0.01605224609375, 0.01009368896484375, -0.0753173828125, -0.007144927978515625, 0.031097412109375, -0.0187225341796875, 0.0100250244140625, -0.01294708251953125, 0.005588531494140625, 0.0185699462890625, 0.00717926025390625, -0.01073455810546875, -0.0384521484375, 0.0061798095703125, 0.025360107421875, 0.002315521240234375, 0.01448822021484375, -0.005474090576171875, -0.005176544189453125, -0.035858154296875, 0.0169219970703125, 0.0128021240234375, -0.0006585121154785156, -0.00487518310546875, 0.0195465087890625, 0.01338958740234375, 0.05889892578125, -0.0148468017578125, 0.04779052734375, -0.0030460357666015625, 0.0289459228515625, -0.03497314453125, 0.0096435546875, 0.003204345703125, -0.028839111328125, -0.003520965576171875, -0.005084991455078125, 0.01505279541015625, -0.0307464599609375, -0.0034961700439453125, -0.003986358642578125, 0.01580810546875, 0.0115966796875 ]
085a953cffd9c18d942f14b3aebc5147761afb3e
Wordpress Stackexchange Q: Count how many posts in category This is what I'm trying to do: if number of posts is greater than 20 -> display link to another page (which shows all posts) if number of posts is less than 20 -> don't display the link So far I've been able to return the number of posts using $count_posts = wp_count_posts('inventory'); $published_posts = $count_posts->publish; but I don't know where to go from here, any suggestions? A: If I remember right count of posts in category is stored persistently in category object. So use get_category() or variation of it and fetch the number out of object. Example code (not tested): $category = get_category($id); $count = $category->category_count; if( $count > $something ) { // stuff }
Q: Count how many posts in category This is what I'm trying to do: if number of posts is greater than 20 -> display link to another page (which shows all posts) if number of posts is less than 20 -> don't display the link So far I've been able to return the number of posts using $count_posts = wp_count_posts('inventory'); $published_posts = $count_posts->publish; but I don't know where to go from here, any suggestions? A: If I remember right count of posts in category is stored persistently in category object. So use get_category() or variation of it and fetch the number out of object. Example code (not tested): $category = get_category($id); $count = $category->category_count; if( $count > $something ) { // stuff } A: You can access that from the object itself: foreach ( get_the_terms( get_the_ID(), 'taxonomy' ) as $term ) { printf( '%s (%s)', $term->name, $term->count ); } A: another simple way to do this is using get_terms. I use this when I need to display a category list AND I need to ignore a category which has a set minimum number of posts. $cats = get_terms('category'); foreach($cats as $cat){ if($cat->count > 15){ //do something here eg. display category name //echo 'catname : ' .$cat->name; } }
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:410642", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20973" }
[ 0.0673828125, 0.0120849609375, 0.0026397705078125, -0.02093505859375, 0.04083251953125, -0.046417236328125, 0.07867431640625, -0.023773193359375, 0.01390838623046875, -0.0245513916015625, -0.034698486328125, -0.02850341796875, -0.0300750732421875, -0.041778564453125, 0.007648468017578125, -0.051422119140625, 0.028167724609375, -0.00998687744140625, 0.038604736328125, -0.00553131103515625, 0.00931549072265625, 0.02362060546875, 0.048553466796875, 0.0275115966796875, 0.03277587890625, -0.0225982666015625, 0.0528564453125, -0.0419921875, 0.0255279541015625, -0.041595458984375, 0.027679443359375, 0.0193634033203125, 0.02398681640625, 0.027496337890625, -0.041351318359375, 0.04083251953125, -0.00078582763671875, 0.0037555694580078125, -0.00399017333984375, 0.036834716796875, 0.034271240234375, -0.025665283203125, 0.07269287109375, -0.049591064453125, 0.05621337890625, -0.0180206298828125, 0.04217529296875, -0.075927734375, 0.0193023681640625, -0.0592041015625, -0.00013780593872070312, 0.032318115234375, 0.0259857177734375, -0.0804443359375, -0.0161895751953125, 0.0116119384765625, 0.00266265869140625, -0.005035400390625, 0.06683349609375, -0.04046630859375, -0.061798095703125, -0.0626220703125, 0.052581787109375, -0.042999267578125, -0.0075836181640625, 0.0055389404296875, 0.01300048828125, 0.0180816650390625, -0.019317626953125, -0.036712646484375, -0.0014390945434570312, -0.00873565673828125, -0.031829833984375, 0.0179443359375, -0.0113983154296875, -0.0190277099609375, 0.0024871826171875, -0.016082763671875, 0.0087738037109375, 0.048797607421875, -0.021636962890625, -0.016326904296875, -0.0303192138671875, 0.004756927490234375, -0.0161895751953125, 0.018157958984375, -0.03179931640625, -0.001506805419921875, -0.032135009765625, -0.0252227783203125, -0.017333984375, -0.01331329345703125, -0.043365478515625, 0.01065826416015625, 0.0189208984375, -0.033966064453125, 0.033843994140625, 0.048553466796875, -0.026214599609375, -0.032562255859375, -0.0355224609375, -0.0189666748046875, -0.0576171875, -0.0036792755126953125, 0.041107177734375, 0.03839111328125, -0.0120086669921875, 0.0259552001953125, 0.08245849609375, 0.023712158203125, 0.022369384765625, 0.0767822265625, -0.0113067626953125, -0.0106658935546875, -0.0148773193359375, 0.004161834716796875, -0.03350830078125, 0.007091522216796875, -0.0024700164794921875, -0.00972747802734375, -0.0223846435546875, -0.0113983154296875, 0.00890350341796875, -0.0210113525390625, 0.002376556396484375, -0.006683349609375, -0.02374267578125, -0.0059814453125, 0.055328369140625, 0.0411376953125, -0.044769287109375, 0.00762939453125, 0.0283660888671875, -0.030670166015625, -0.019012451171875, -0.0266265869140625, -0.0217437744140625, -0.0021762847900390625, -0.007663726806640625, 0.0118408203125, -0.031768798828125, -0.0311431884765625, 0.04766845703125, -0.0251617431640625, 0.04205322265625, 0.0289459228515625, 0.0217132568359375, 0.00667572021484375, 0.00292205810546875, -0.050384521484375, 0.05218505859375, -0.037200927734375, 0.03302001953125, -0.0024204254150390625, -0.0338134765625, -0.0020961761474609375, -0.0411376953125, -0.0084075927734375, -0.0205230712890625, -0.0029354095458984375, 0.043853759765625, 0.01416015625, -0.007068634033203125, -0.0180206298828125, -0.041259765625, -0.0080413818359375, -0.034698486328125, -0.01153564453125, 0.01519775390625, -0.0032806396484375, -0.0008864402770996094, 0.0204010009765625, 0.00862884521484375, -0.0037326812744140625, 0.0054779052734375, 0.0148773193359375, -0.0163116455078125, -0.0321044921875, 0.0518798828125, 0.03717041015625, -0.01454925537109375, -0.00896453857421875, 0.024627685546875, -0.0008449554443359375, -0.01157379150390625, 0.01419830322265625, 0.020782470703125, 0.004322052001953125, -0.019134521484375, 0.003192901611328125, 0.020416259765625, 0.0379638671875, -0.008331298828125, -0.01447296142578125, -0.005550384521484375, -0.01285552978515625, 0.012664794921875, 0.0092315673828125, -0.002471923828125, -0.003475189208984375, 0.0308685302734375, 0.0281982421875, -0.020050048828125, -0.00981903076171875, -0.033111572265625, 0.0080413818359375, -0.00850677490234375, 0.03314208984375, -0.048004150390625, 0.040618896484375, 0.03277587890625, -0.0023097991943359375, -0.0174560546875, -0.052703857421875, 0.00632476806640625, -0.0067291259765625, 0.0155181884765625, -0.03594970703125, -0.049407958984375, -0.025299072265625, -0.049560546875, 0.004306793212890625, -0.054473876953125, 0.07611083984375, 0.065673828125, -0.024139404296875, -0.016632080078125, -0.048736572265625, 0.01605224609375, 0.0081329345703125, -0.0740966796875, 0.0479736328125, 0.04571533203125, 0.004688262939453125, -0.041717529296875, 0.00357818603515625, 0.007755279541015625, -0.047607421875, 0.00116729736328125, 0.059661865234375, 0.049591064453125, -0.03033447265625, -0.0079345703125, -0.0307159423828125, 0.04071044921875, -0.04974365234375, -0.003185272216796875, -0.03216552734375, -0.01178741455078125, 0.0133056640625, 0.04473876953125, 0.0141143798828125, 0.016143798828125, 0.01213836669921875, 0.01433563232421875, 0.03558349609375, 0.039154052734375, -0.003192901611328125, -0.0210418701171875, 0.02557373046875, 0.0181427001953125, -0.0052490234375, -0.056793212890625, 0.007381439208984375, -0.00795745849609375, -0.0036144256591796875, 0.01021575927734375, 0.005096435546875, -0.0093994140625, -0.0122222900390625, 0.00936126708984375, -0.01438140869140625, 0.0029544830322265625, -0.026519775390625, -0.0679931640625, 0.01171875, -0.04107666015625, 0.0301361083984375, 0.02679443359375, -0.033660888671875, -0.03277587890625, 0.040008544921875, -0.0180816650390625, -0.0184326171875, -0.032073974609375, -0.07855224609375, -0.003162384033203125, 0.006439208984375, -0.0102996826171875, 0.004917144775390625, 0.0130157470703125, 0.049346923828125, 0.004268646240234375, 0.0237274169921875, 0.0047607421875, 0.01226043701171875, 0.01593017578125, -0.06781005859375, 0.05682373046875, -0.049896240234375, 0.0728759765625, 0.0675048828125, -0.0292816162109375, 0.03875732421875, 0.0094757080078125, 0.03497314453125, 0.0214996337890625, 0.0284881591796875, 0.006320953369140625, -0.01316070556640625, -0.03802490234375, -0.014190673828125, 0.0276641845703125, 0.04107666015625, 0.0115814208984375, -0.040313720703125, 0.01177978515625, 0.0153961181640625, -0.099365234375, -0.10382080078125, 0.00911712646484375, -0.060699462890625, 0.02081298828125, 0.01277923583984375, -0.03729248046875, -0.027099609375, 0.042755126953125, 0.0097808837890625, -0.0265350341796875, -0.01416778564453125, -0.0496826171875, -0.055389404296875, -0.0601806640625, 0.0072174072265625, 0.0012788772583007812, 0.01422119140625, -0.0030994415283203125, 0.08917236328125, -0.00989532470703125, -0.069091796875, -0.02032470703125, 0.0272369384765625, -0.0213623046875, 0.00095367431640625, 0.0007424354553222656, 0.0014858245849609375, -0.054168701171875, 0.01904296875, 0.0174713134765625, -0.01116180419921875, 0.0013284683227539062, -0.01192474365234375, 0.002971649169921875, 0.011810302734375, 0.027069091796875, 0.0025882720947265625, -0.01100921630859375, 0.0285491943359375, 0.014373779296875, -0.02392578125, -0.0248870849609375, -0.01097869873046875, -0.04888916015625, -0.032928466796875, 0.0233917236328125, 0.007282257080078125, -0.01837158203125, -0.01806640625, -0.0238189697265625, -0.013580322265625, -0.0024566650390625, -0.03643798828125, 0.05120849609375, 0.007221221923828125, 0.00946807861328125, 0.0002665519714355469, -0.041229248046875, -0.031402587890625, 0.01412200927734375, -0.0406494140625, 0.019927978515625, -0.0190277099609375, 0.044219970703125, -0.019256591796875, -0.06158447265625, 0.05218505859375, 0.01435089111328125, -0.007801055908203125, -0.006870269775390625, -0.035186767578125, 0.01617431640625, 0.07763671875, -0.0298614501953125, -0.047210693359375, -0.033111572265625, 0.0206146240234375, 0.0081787109375, -0.058837890625, 0.04400634765625, -0.02154541015625, -0.049713134765625, -0.00902557373046875, -0.0269927978515625, -0.01309967041015625, -0.03338623046875, 0.024505615234375, -0.0416259765625, -0.0157928466796875, 0.03460693359375, -0.017822265625, 0.0201416015625, -0.01197052001953125, 0.0054779052734375, -0.028594970703125, -0.0199432373046875, -0.02069091796875, -0.0083160400390625, -0.00860595703125, -0.003986358642578125, 0.01233673095703125, -0.007190704345703125, 0.01702880859375, 0.0135498046875, 0.0433349609375, 0.01898193359375, 0.03497314453125, 0.004848480224609375, 0.00112152099609375, -0.0018148422241210938, -0.0011692047119140625, 0.01666259765625, -0.0224151611328125, -0.024078369140625, -0.029815673828125, 0.0018215179443359375, 0.0228271484375, -0.046905517578125, -0.007720947265625, -0.046783447265625, 0.00687408447265625, -0.01457977294921875, -0.033355712890625, -0.0212249755859375, 0.00337982177734375, -0.0224609375, 0.0008087158203125, -0.02056884765625, -0.0031566619873046875, 0.0262908935546875, 0.0005316734313964844, -0.023193359375, 0.01479339599609375, 0.06927490234375, -0.00023162364959716797, -0.0215606689453125, -0.08154296875, -0.02105712890625, 0.04461669921875, 0.0214996337890625, 0.011749267578125, 0.021514892578125, -0.032012939453125, 0.016571044921875, 0.039947509765625, -0.0069732666015625, -0.0024242401123046875, 0.0275421142578125, 0.00844573974609375, 0.011932373046875, -0.022369384765625, -0.0047760009765625, 0.046539306640625, 0.0121917724609375, -0.0161590576171875, -0.0098114013671875, 0.017120361328125, 0.031158447265625, -0.0203399658203125, 0.01428985595703125, -0.017303466796875, 0.0023040771484375, 0.0026264190673828125, 0.0186614990234375, 0.0372314453125, 0.028594970703125, -0.0027675628662109375, 0.012786865234375, 0.026580810546875, -0.00021898746490478516, -0.0022754669189453125, 0.052764892578125, -0.027618408203125, 0.0242919921875, 0.0002129077911376953, -0.0287017822265625, -0.031524658203125, -0.0027942657470703125, -0.03338623046875, -0.0175018310546875, -0.054962158203125, 0.005695343017578125, -0.00399017333984375, 0.03961181640625, 0.0404052734375, -0.01132965087890625, 0.03521728515625, 0.0223236083984375, -0.0103302001953125, -0.01177978515625, -0.0279541015625, -0.02239990234375, -0.04241943359375, 0.0071563720703125, 0.0006041526794433594, -0.00458526611328125, 0.05426025390625, 0.0235137939453125, -0.004364013671875, 0.04669189453125, -0.0144195556640625, 0.041656494140625, 0.0186004638671875, 0.0280914306640625, 0.0355224609375, -0.03155517578125, -0.0179290771484375, 0.00045013427734375, -0.036224365234375, -0.0209503173828125, -0.0160675048828125, 0.0208587646484375, 0.01082611083984375, -0.0029506683349609375, 0.0032176971435546875, 0.0240020751953125, 0.0124969482421875, -0.035491943359375, -0.0036678314208984375, 0.00033664703369140625, -0.0189971923828125, -0.0198974609375, 0.0175933837890625, 0.00621795654296875, 0.01464080810546875, -0.0079193115234375, -0.0227203369140625, -0.00894927978515625, 0.02667236328125, -0.020599365234375, 0.004268646240234375, 0.0093994140625, 0.00652313232421875, -0.06390380859375, -0.0168304443359375, 0.0030956268310546875, 0.0238037109375, -0.01751708984375, 0.0032958984375, -0.046905517578125, 0.00415802001953125, -0.007457733154296875, 0.057708740234375, -0.0019969940185546875, -0.04571533203125, 0.00971221923828125, 0.006175994873046875, 0.048126220703125, 0.0307159423828125, -0.03955078125, -0.023345947265625, -0.038787841796875, -0.0275726318359375, 0.03936767578125, 0.0012998580932617188, -0.0256805419921875, 0.002811431884765625, 0.034820556640625, 0.01104736328125, 0.0178985595703125, -0.050628662109375, -0.064453125, 0.00439453125, 0.06890869140625, -0.0038909912109375, -0.0015859603881835938, 0.0457763671875, 0.01020050048828125, 0.0180206298828125, 0.012664794921875, 0.03509521484375, 0.0198516845703125, -0.03546142578125, 0.01213836669921875, -0.0267791748046875, -0.0069427490234375, 0.0231475830078125, -0.0174560546875, -0.0682373046875, -0.0235137939453125, -0.01279449462890625, 0.0005884170532226562, -0.0105133056640625, 0.00418853759765625, -0.0023651123046875, -0.0010776519775390625, 0.02301025390625, 0.01403045654296875, 0.02032470703125, 0.0086669921875, 0.01087188720703125, -0.0024280548095703125, 0.001201629638671875, -0.0119171142578125, 0.00946044921875, -0.0041656494140625, -0.00188446044921875, -0.045166015625, 0.050445556640625, 0.04425048828125, 0.03485107421875, 0.0290679931640625, 0.0089111328125, 0.0194549560546875, -0.031829833984375, -0.0035800933837890625, 0.0205535888671875, 0.030731201171875, 0.060028076171875, -0.01264190673828125, -0.0146636962890625, 0.016876220703125, -0.044677734375, -0.01522064208984375, 0.01090240478515625, -0.008270263671875, -0.01230621337890625, -0.00818634033203125, -0.025146484375, -0.0296630859375, 0.01325225830078125, -0.0177764892578125, 0.007198333740234375, -0.003955841064453125, 0.0455322265625, -0.01226806640625, -0.0304718017578125, 0.00656890869140625, -0.020172119140625, 0.0007538795471191406, -0.013946533203125, 0.03302001953125, 0.0200653076171875, -0.0494384765625, 0.003818511962890625, 0.037322998046875, -0.0188140869140625, -0.035919189453125, -0.00948333740234375, 0.0236053466796875, 0.0065460205078125, -0.0545654296875, 0.05303955078125, -0.045013427734375, 0.0258941650390625, -0.0030364990234375, 0.00014829635620117188, 0.013671875, 0.0458984375, -0.02630615234375, 0.024261474609375, 0.0181121826171875, -0.0090179443359375, -0.0343017578125, 0.02288818359375, 0.033782958984375, -0.0008287429809570312, -0.04638671875, 0.01068115234375, -0.0703125, 0.0243072509765625, -0.0161590576171875, -0.00621795654296875, 0.07391357421875, -0.0155792236328125, -0.0233001708984375, 0.029083251953125, 0.04278564453125, -0.0211639404296875, -0.003795623779296875, 0.05572509765625, -0.0213775634765625, 0.031890869140625, 0.012481689453125, 0.03900146484375, -0.004917144775390625, 0.0033359527587890625, -0.05078125, 0.0894775390625, -0.047607421875, 0.02655029296875, -0.00470733642578125, 0.04010009765625, 0.031890869140625, 0.039276123046875, -0.06768798828125, 0.07177734375, -0.006988525390625, 0.04974365234375, -0.072265625, 0.003406524658203125, -0.0045318603515625, 0.01548004150390625, 0.0718994140625, 0.01279449462890625, -0.0040283203125, -0.02154541015625, 0.0291290283203125, 0.045806884765625, -0.0112457275390625, 0.02532958984375, -0.00012755393981933594, 0.03765869140625, 0.040283203125, -0.039703369140625, 0.031402587890625, -0.002471923828125, -0.01397705078125, 0.0293731689453125, 0.0147247314453125, 0.01202392578125, -0.01557159423828125, 0.012969970703125, -0.0246429443359375, -0.0039520263671875, 0.019378662109375, 0.0216217041015625, 0.0230865478515625, 0.053955078125, 0.062164306640625, -0.06817626953125, -0.007717132568359375, -0.03265380859375, 0.0643310546875, -0.00537872314453125, 0.03594970703125, 0.01898193359375, 0.01045989990234375, 0.09954833984375, -0.03057861328125, 0.01068878173828125, 0.00022780895233154297, -0.025177001953125, 0.056915283203125, 0.0489501953125, 0.0229949951171875, -0.03143310546875, -0.04400634765625, 0.060791015625, 0.08197021484375, -0.040435791015625, -0.0389404296875, 0.0089874267578125, 0.01186370849609375, -0.0010633468627929688, 0.01155853271484375, 0.0137176513671875, 0.05755615234375, 0.08685302734375, -0.036590576171875, -0.033447265625, 0.016754150390625, 0.05810546875, 0.01435089111328125, -0.002300262451171875, -0.0291900634765625, -0.07257080078125, -0.0303497314453125, -0.028045654296875, 0.0270843505859375, 0.08392333984375, 0.01922607421875, 0.037384033203125, -0.0675048828125, -0.0267791748046875, 0.0318603515625, -0.0156402587890625, 0.0006604194641113281, -0.03466796875, -0.004669189453125, -0.0335693359375, 0.0171966552734375, 0.031646728515625, -0.004547119140625, -0.0391845703125, 0.0120391845703125, 0.06005859375, 0.01434326171875, -0.04290771484375, 0.0209808349609375, -0.0008993148803710938, -0.0217742919921875, -0.0265960693359375, 0.00453948974609375, -0.00853729248046875, -0.00536346435546875, 0.017486572265625, 0.040802001953125, 0.0032634735107421875, -0.0115203857421875, 0.01357269287109375, 0.0059967041015625, -0.045806884765625, 0.03155517578125, 0.0438232421875, 0.0704345703125, 0.028564453125, -0.056854248046875, -0.0001964569091796875, -0.025909423828125, -0.052032470703125, 0.0290069580078125, 0.02667236328125, -0.052490234375, 0.04791259765625, -0.026397705078125, -0.035003662109375, 0.036285400390625, -0.01009368896484375, 0.0149993896484375, -0.0035343170166015625, -0.006328582763671875, -0.0141754150390625, -0.0193023681640625, -0.022308349609375, 0.0029144287109375, 0.042022705078125, 0.027252197265625, 0.0025463104248046875, 0.00569915771484375, 0.024261474609375, -0.031280517578125, 0.05126953125, -0.057769775390625, -0.039337158203125, 0.048980712890625, 0.00861358642578125, 0.0047607421875, -0.0031795501708984375, -0.02911376953125, -0.0396728515625, 0.062347412109375, -0.056549072265625, -0.002742767333984375, -0.046173095703125, 0.0270233154296875, -0.03594970703125, -0.010040283203125, -0.04022216796875, 0.01238250732421875, -0.03411865234375, -0.052459716796875, 0.036163330078125, -0.0252685546875, 0.01195526123046875, 0.042877197265625, -0.037384033203125, -0.024658203125, 0.01068878173828125, -0.03436279296875, -0.00811767578125, 0.0253753662109375, -0.026031494140625, 0.0092315673828125, 0.029571533203125, -0.0093536376953125, -0.0035915374755859375, 0.0286865234375, -0.0103912353515625, 0.0282745361328125, -0.035186767578125, -0.031463623046875, 0.02288818359375, 0.0270538330078125, -0.028533935546875, 0.0252227783203125, -0.0025424957275390625, -0.0067596435546875, 0.02557373046875, 0.00605010986328125, -0.0259552001953125, -0.052459716796875, -0.0062713623046875, -0.01125335693359375, -0.01491546630859375, -0.0272216796875, 0.016143798828125, -0.0240631103515625, 0.0340576171875, -0.006381988525390625, -0.016448974609375, 0.020965576171875, -0.03546142578125, -0.004119873046875, -0.029388427734375, 0.01067352294921875, 0.0173492431640625, 0.033203125, -0.0592041015625, 0.031219482421875, -0.01708984375, -0.0457763671875, -0.004413604736328125, 0.0297393798828125, 0.0293731689453125, -0.052276611328125, -0.01433563232421875, 0.0055694580078125, 0.0311737060546875, 0.039154052734375, 0.052215576171875, 0.004039764404296875, -0.009552001953125, 0.030120849609375, -0.0233001708984375, -0.0718994140625, 0.0202484130859375, -0.03350830078125, -0.03106689453125, -0.028472900390625, 0.0190277099609375, 0.035400390625, -0.02496337890625, -0.07879638671875, 0.04754638671875, -0.036102294921875, -0.032073974609375, -0.0726318359375, -0.020751953125, -0.003238677978515625, 0.041961669921875, -0.01428985595703125, -0.025238037109375, -0.04608154296875, 0.04632568359375, 0.010955810546875, -0.0159759521484375, 0.0251922607421875, -0.01210784912109375, -0.07763671875, 0.00812530517578125, -0.007354736328125, 0.01538848876953125, 0.00030684471130371094, 0.007472991943359375, 0.0247650146484375, 0.038543701171875, -0.031768798828125, 0.042510986328125, 0.005771636962890625, 0.0166015625, 0.0147857666015625, -0.0426025390625, -0.0237274169921875, -0.046173095703125, 0.0084991455078125, 0.001422882080078125, 0.004398345947265625, -0.0033626556396484375, -0.03936767578125, -0.034515380859375, -0.0096282958984375, -0.004119873046875, 0.0023651123046875, -0.0465087890625, 0.01056671142578125, -0.017578125, -0.0050201416015625, -0.0258026123046875, -0.0270538330078125, -0.0445556640625, -0.0246734619140625, -0.039886474609375, 0.0279693603515625, -0.0307464599609375, 0.0007481575012207031, -0.021240234375, -0.006633758544921875, -0.0221710205078125, -0.010345458984375, -0.0018329620361328125, -0.041351318359375, 0.031280517578125, -0.026763916015625, -0.0070953369140625, -0.006061553955078125, 0.0419921875, -0.01104736328125, -0.0030193328857421875, -0.042694091796875, 0.02789306640625, 0.007762908935546875, 0.0293121337890625, -0.004730224609375, 0.028167724609375, 0.006801605224609375, 0.0257568359375, 0.001949310302734375, 0.053253173828125, -0.0080718994140625, 0.0127716064453125, 0.00313568115234375, 0.03564453125, -0.0196533203125, -0.0163726806640625, 0.03106689453125, -0.052886962890625, -0.00917816162109375, -0.002521514892578125, -0.01200103759765625, -0.036956787109375, 0.02392578125, 0.02545166015625, 0.00162506103515625, 0.021240234375 ]
6b9feba162b45e300116e2af62781d4e3542d75d
Wordpress Stackexchange Q: How to add SQL file with PHP to WordPress database I have SQL file with US zip codes (over 41000 lines of code). I want make a plugin that inserts this SQL file into WP database so user can do a search by zip codes. I want to insert SQL with PHP rather than PhpMyAdmin A: See the WordPress Codex on Creating Tables with Plugins.
Q: How to add SQL file with PHP to WordPress database I have SQL file with US zip codes (over 41000 lines of code). I want make a plugin that inserts this SQL file into WP database so user can do a search by zip codes. I want to insert SQL with PHP rather than PhpMyAdmin A: See the WordPress Codex on Creating Tables with Plugins. A: I have not created a plugin that does what you want, but I have been playing with a plugin that creates its own tables. The plugin in comes with an SQL.txt file in case your WordPress install does not have permissions to create tables (in which case you would have to manually run the SQL file) So it seems that a plugin that creates tables could potentially be problematical during install. Another thing that this same plugin does is use an array from another file to display things. This seems like it would be a better approach because you would not have to mess with people's DB, and you could easily update the file that holds your array of zip codes. Here is some of the code it uses for doing that: //Build new blog_type array item. $blog_type_item = array('name' => $name, 'nicename' => empty($nice_name) ? strtolower(str_replace(' ', '_', $name)) : $nice_name, 'description' => $description, 'signup_only' => $signup_only); //Append new blog_type array item to global array. $blog_types[] = $blog_type_item; return $blog_type_item; <?php foreach ($blog_types as $blog_type) { $selected = ''; foreach ($selected_blog_types as $selected_blog_type) { if ($selected_blog_type == $blog_type['nicename']){ $selected = ' selected="selected"'; $selected_blog_type_store = $blog_type['nicename']; } } echo '<option value="' . $blog_type['nicename'] . '" ' . $selected . '> ' . $blog_type['name'] . '</option>'; } ?>
wordpress
{ "language": "en", "length": 284, "provenance": "stackexchange_00019.jsonl.gz:410647", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/20987" }
[ 0.06884765625, 0.006778717041015625, 0.006679534912109375, -0.035858154296875, 0.030029296875, -0.0296173095703125, 0.056854248046875, 0.009796142578125, 0.00521087646484375, 0.0024318695068359375, -0.036712646484375, 0.01181793212890625, -0.05615234375, -0.0143280029296875, -0.009796142578125, -0.03240966796875, 0.0242462158203125, 0.0125885009765625, 0.033905029296875, -0.003345489501953125, 0.0007395744323730469, 0.0177459716796875, 0.01629638671875, 0.021209716796875, -0.0010175704956054688, 0.0301361083984375, 0.06103515625, -0.00940704345703125, 0.0070648193359375, -0.002361297607421875, 0.00644683837890625, -0.0294647216796875, 0.0264129638671875, 0.003326416015625, -0.003814697265625, 0.0173492431640625, 0.03826904296875, -0.0091705322265625, 0.01202392578125, 0.0146331787109375, 0.04534912109375, -0.0239410400390625, 0.0038814544677734375, 0.044281005859375, -0.01192474365234375, -0.047119140625, 0.06597900390625, -0.025299072265625, -0.0180206298828125, -0.052276611328125, 0.0182342529296875, 0.041534423828125, 0.048095703125, -0.06549072265625, 0.0014219284057617188, 0.033966064453125, -0.01024627685546875, 0.045806884765625, 0.027435302734375, -0.0172882080078125, -0.047821044921875, 0.0099639892578125, 0.02447509765625, -0.0012111663818359375, -0.03131103515625, -0.0028591156005859375, -0.039825439453125, 0.0063934326171875, -0.014312744140625, -0.0208282470703125, 0.01337432861328125, -0.025634765625, -0.00244903564453125, -0.0037136077880859375, -0.00009351968765258789, 0.0162353515625, 0.028564453125, 0.023651123046875, -0.00038361549377441406, 0.0131683349609375, 0.043609619140625, -0.0146942138671875, 0.0458984375, -0.03302001953125, 0.0023860931396484375, -0.03253173828125, 0.01055908203125, 0.0016345977783203125, -0.00215911865234375, -0.0303497314453125, -0.0103912353515625, -0.01091766357421875, -0.03173828125, 0.01800537109375, 0.002197265625, -0.041290283203125, -0.0083465576171875, 0.01522064208984375, -0.0031566619873046875, 0.04351806640625, 0.0161590576171875, -0.0294036865234375, 0.0474853515625, -0.0369873046875, 0.007808685302734375, 0.052642822265625, -0.0257720947265625, -0.03375244140625, 0.0067138671875, 0.01427459716796875, 0.01407623291015625, -0.034759521484375, -0.014984130859375, -0.05804443359375, -0.003387451171875, 0.063720703125, 0.01218414306640625, 0.00482940673828125, 0.01152801513671875, 0.0115203857421875, -0.032135009765625, -0.005542755126953125, -0.055450439453125, -0.027008056640625, -0.00249481201171875, -0.065185546875, -0.0233001708984375, 0.064208984375, -0.053802490234375, 0.0169219970703125, 0.01300048828125, 0.0229339599609375, 0.020751953125, 0.034942626953125, -0.0308837890625, 0.01445770263671875, -0.0022678375244140625, 0.002620697021484375, -0.01380157470703125, 0.0036907196044921875, 0.005306243896484375, -0.04107666015625, -0.018951416015625, -0.0050506591796875, 0.026947021484375, 0.01465606689453125, 0.0204010009765625, 0.005916595458984375, -0.0014476776123046875, -0.01654052734375, -0.0102996826171875, -0.0025997161865234375, 0.00012230873107910156, 0.0093994140625, -0.0095672607421875, 0.016693115234375, -0.036712646484375, 0.0095977783203125, -0.0039520263671875, 0.0169830322265625, -0.01238250732421875, -0.0197906494140625, -0.004978179931640625, -0.07037353515625, -0.0687255859375, 0.0214691162109375, -0.0258026123046875, 0.0010242462158203125, 0.0187225341796875, -0.029998779296875, -0.00015842914581298828, 0.0022106170654296875, 0.050537109375, 0.0158233642578125, 0.006008148193359375, 0.017974853515625, -0.0021648406982421875, -0.007228851318359375, 0.0477294921875, 0.04156494140625, 0.0140380859375, -0.0036907196044921875, 0.057586669921875, -0.0038967132568359375, -0.0286865234375, 0.0517578125, 0.01471710205078125, 0.056793212890625, -0.023773193359375, 0.02447509765625, 0.020751953125, 0.0594482421875, -0.0284576416015625, 0.007106781005859375, -0.016876220703125, -0.0306854248046875, 0.000827789306640625, -0.008026123046875, -0.01491546630859375, 0.03155517578125, -0.07159423828125, -0.0012798309326171875, 0.0102386474609375, 0.03826904296875, -0.0180206298828125, 0.0084228515625, -0.026824951171875, 0.035552978515625, 0.0085296630859375, 0.0182037353515625, -0.003246307373046875, 0.0236968994140625, -0.00574493408203125, -0.048858642578125, -0.034027099609375, 0.01136016845703125, 0.00016045570373535156, 0.048004150390625, 0.0003845691680908203, 0.0482177734375, -0.01450347900390625, -0.0216827392578125, -0.01270294189453125, -0.01401519775390625, -0.0002961158752441406, -0.022491455078125, -0.0276336669921875, -0.018585205078125, 0.005008697509765625, -0.04705810546875, 0.086181640625, 0.0731201171875, 0.034088134765625, 0.0285797119140625, -0.0086517333984375, -0.0153961181640625, -0.01531219482421875, -0.09771728515625, 0.006587982177734375, 0.0555419921875, 0.04986572265625, 0.021270751953125, 0.0078582763671875, 0.00872039794921875, 0.0012569427490234375, -0.068359375, 0.0174560546875, -0.0185546875, 0.032562255859375, 0.0732421875, -0.051605224609375, 0.007671356201171875, 0.0243072509765625, -0.00940704345703125, -0.006481170654296875, 0.046051025390625, 0.0100250244140625, 0.005584716796875, -0.0252532958984375, 0.0438232421875, -0.0207366943359375, 0.00942230224609375, 0.00982666015625, -0.017425537109375, 0.050872802734375, 0.0272674560546875, 0.06573486328125, 0.04852294921875, -0.036468505859375, 0.027008056640625, -0.00902557373046875, 0.01227569580078125, -0.0147857666015625, 0.0091552734375, -0.0272979736328125, 0.0081787109375, -0.0285491943359375, 0.01474761962890625, -0.01259613037109375, -0.0067596435546875, -0.0222625732421875, -0.0150299072265625, -0.00640106201171875, -0.0113677978515625, 0.003971099853515625, -0.017822265625, 0.0289764404296875, -0.003414154052734375, -0.0311279296875, -0.0175933837890625, 0.0107421875, 0.048980712890625, -0.023101806640625, 0.030181884765625, 0.0215606689453125, -0.004146575927734375, 0.072265625, 0.004047393798828125, 0.003108978271484375, 0.00893402099609375, 0.033843994140625, 0.039794921875, 0.00733184814453125, -0.0165863037109375, 0.00582122802734375, -0.044342041015625, -0.00498199462890625, 0.0284271240234375, 0.0035991668701171875, -0.0413818359375, -0.005245208740234375, 0.0298614501953125, 0.02685546875, 0.0206756591796875, 0.0193939208984375, -0.035430908203125, 0.00039315223693847656, 0.0416259765625, -0.064208984375, -0.0804443359375, -0.01000213623046875, -0.00788116455078125, -0.00502777099609375, -0.01070404052734375, 0.0009946823120117188, 0.00818634033203125, -0.0072479248046875, -0.0026035308837890625, 0.021331787109375, -0.033172607421875, -0.0182952880859375, -0.03875732421875, -0.05560302734375, -0.0197906494140625, 0.0162353515625, 0.013092041015625, -0.00829315185546875, 0.06854248046875, -0.0124359130859375, -0.06048583984375, -0.04736328125, -0.01342010498046875, -0.01401519775390625, 0.00366973876953125, 0.01031494140625, -0.042083740234375, 0.005462646484375, 0.0083770751953125, 0.00009989738464355469, 0.00891876220703125, -0.004909515380859375, -0.01088714599609375, 0.0165557861328125, 0.0198211669921875, 0.01806640625, -0.0035381317138671875, -0.017120361328125, 0.0195770263671875, -0.0165252685546875, -0.042236328125, 0.03948974609375, 0.04339599609375, 0.03302001953125, -0.03265380859375, -0.061492919921875, -0.038177490234375, -0.0039825439453125, 0.0209197998046875, 0.038543701171875, 0.0100860595703125, -0.0233917236328125, -0.0046539306640625, 0.0263671875, 0.017822265625, 0.0281982421875, -0.0115814208984375, 0.02581787109375, -0.010345458984375, -0.004489898681640625, -0.0028514862060546875, 0.0171966552734375, 0.00885772705078125, -0.0007424354553222656, -0.032684326171875, -0.0340576171875, 0.044769287109375, -0.003261566162109375, 0.02880859375, -0.05267333984375, -0.031158447265625, -0.021270751953125, 0.0867919921875, -0.05157470703125, -0.0006566047668457031, 0.0241241455078125, 0.0094451904296875, -0.041534423828125, -0.0093994140625, -0.08807373046875, -0.02166748046875, 0.042205810546875, -0.0194244384765625, -0.0243377685546875, 0.0022487640380859375, 0.0150299072265625, -0.0165863037109375, 0.040252685546875, -0.0208282470703125, 0.036041259765625, -0.05230712890625, 0.041748046875, 0.037933349609375, 0.0265350341796875, 0.0214080810546875, -0.0215606689453125, -0.046539306640625, -0.0963134765625, -0.01366424560546875, -0.02923583984375, 0.07781982421875, 0.0206298828125, -0.030517578125, -0.039703369140625, 0.025726318359375, -0.00904083251953125, 0.003509521484375, 0.00787353515625, 0.02532958984375, -0.006317138671875, -0.035400390625, -0.007965087890625, -0.038665771484375, -0.039825439453125, -0.064453125, 0.042022705078125, 0.0247802734375, -0.0229034423828125, 0.0261688232421875, -0.040924072265625, 0.0271453857421875, 0.004573822021484375, -0.0185699462890625, 0.0034465789794921875, 0.0161895751953125, -0.003780364990234375, 0.004852294921875, -0.0089111328125, 0.006549835205078125, 0.0623779296875, 0.008026123046875, -0.0018911361694335938, 0.00548553466796875, 0.0975341796875, 0.009033203125, -0.02294921875, -0.10650634765625, -0.0020351409912109375, 0.02557373046875, 0.0406494140625, 0.035186767578125, 0.0036334991455078125, -0.0186920166015625, 0.0439453125, 0.01129150390625, -0.002231597900390625, -0.059417724609375, 0.039520263671875, -0.0024394989013671875, -0.0157623291015625, 0.0206146240234375, -0.02264404296875, 0.04595947265625, 0.0284423828125, -0.00861358642578125, -0.023468017578125, -0.01523590087890625, 0.042572021484375, -0.001003265380859375, 0.0177459716796875, -0.03564453125, -0.046966552734375, 0.024871826171875, -0.05047607421875, 0.0019817352294921875, -0.01004791259765625, 0.003993988037109375, -0.005130767822265625, -0.0204315185546875, -0.0023632049560546875, 0.0430908203125, 0.041534423828125, 0.0089111328125, 0.0309600830078125, 0.048187255859375, 0.0004169940948486328, -0.02154541015625, -0.0089874267578125, 0.06939697265625, 0.004955291748046875, -0.031585693359375, -0.0190582275390625, -0.0091400146484375, 0.0113525390625, 0.007221221923828125, -0.002338409423828125, 0.01496124267578125, 0.0282135009765625, -0.0206298828125, -0.0056610107421875, 0.0006990432739257812, 0.004512786865234375, -0.0186004638671875, -0.02581787109375, -0.00634002685546875, -0.012725830078125, 0.0030193328857421875, 0.0108642578125, -0.032684326171875, 0.01145172119140625, -0.00063323974609375, 0.0355224609375, 0.0218048095703125, 0.015869140625, 0.0106201171875, -0.00560760498046875, 0.01373291015625, -0.0113983154296875, -0.00803375244140625, -0.0021381378173828125, 0.0179443359375, -0.028656005859375, -0.009979248046875, 0.01078033447265625, 0.005641937255859375, 0.044219970703125, 0.00206756591796875, 0.006683349609375, 0.0230255126953125, 0.0009713172912597656, -0.003932952880859375, -0.027618408203125, -0.019775390625, 0.03662109375, -0.02642822265625, 0.0262451171875, 0.01148223876953125, 0.007419586181640625, 0.0274810791015625, 0.0158233642578125, 0.034881591796875, -0.06781005859375, -0.06439208984375, 0.0172271728515625, -0.0275115966796875, -0.053192138671875, 0.010711669921875, 0.0294036865234375, -0.0328369140625, -0.0168914794921875, 0.037139892578125, -0.0183563232421875, 0.0316162109375, -0.0318603515625, -0.004184722900390625, 0.00508880615234375, -0.00800323486328125, 0.060302734375, 0.0301055908203125, -0.00572967529296875, -0.029022216796875, -0.01108551025390625, -0.01093292236328125, 0.06072998046875, 0.0197601318359375, -0.01372528076171875, -0.016326904296875, -0.01369476318359375, 0.01025390625, -0.0263824462890625, -0.027313232421875, 0.00971221923828125, 0.00818634033203125, -0.01035308837890625, 0.008941650390625, -0.0276031494140625, 0.061737060546875, 0.0038089752197265625, 0.0245208740234375, -0.00270843505859375, 0.033233642578125, 0.0032196044921875, 0.0027790069580078125, 0.0223846435546875, -0.0245361328125, -0.03802490234375, -0.0024814605712890625, -0.021087646484375, -0.0171661376953125, 0.003017425537109375, -0.0225372314453125, 0.01275634765625, -0.007534027099609375, 0.0079345703125, -0.00614166259765625, 0.039703369140625, 0.010040283203125, -0.00899505615234375, 0.054595947265625, -0.0180816650390625, 0.042205810546875, -0.024810791015625, -0.003936767578125, 0.02117919921875, -0.0341796875, 0.02655029296875, 0.0026836395263671875, -0.0309600830078125, 0.04302978515625, 0.042999267578125, 0.0096893310546875, 0.02294921875, 0.0205230712890625, 0.0147247314453125, -0.0290679931640625, -0.02655029296875, -0.036102294921875, 0.0243682861328125, 0.03564453125, -0.010345458984375, -0.032958984375, 0.018035888671875, -0.0281524658203125, 0.008209228515625, 0.05010986328125, 0.042572021484375, -0.0804443359375, 0.0038604736328125, -0.01381683349609375, -0.02874755859375, 0.017730712890625, 0.00679779052734375, -0.0189666748046875, -0.032318115234375, 0.035247802734375, 0.0280609130859375, -0.0041046142578125, 0.013824462890625, 0.0245361328125, -0.0103302001953125, 0.0236663818359375, -0.0325927734375, 0.00775909423828125, -0.0183868408203125, 0.02294921875, 0.020782470703125, 0.03240966796875, 0.01824951171875, 0.0291595458984375, 0.00142669677734375, 0.0020198822021484375, 0.0013446807861328125, 0.055267333984375, -0.02862548828125, -0.0027027130126953125, 0.032806396484375, 0.01580810546875, 0.07080078125, 0.042724609375, 0.014129638671875, -0.006038665771484375, 0.0098114013671875, 0.02239990234375, 0.0017004013061523438, -0.024261474609375, 0.0003345012664794922, 0.047821044921875, -0.048583984375, 0.01454925537109375, -0.01302337646484375, 0.0086822509765625, -0.0031528472900390625, -0.02178955078125, 0.021636962890625, -0.020660400390625, -0.0106048583984375, 0.0214080810546875, -0.037811279296875, 0.01085662841796875, -0.00624847412109375, 0.04644775390625, -0.05694580078125, -0.014678955078125, 0.0247344970703125, -0.0121307373046875, -0.00685882568359375, 0.01139068603515625, -0.03778076171875, 0.057708740234375, -0.02301025390625, -0.00592041015625, 0.00006759166717529297, 0.0283203125, 0.0032482147216796875, 0.0278167724609375, -0.0247344970703125, 0.042572021484375, 0.029022216796875, 0.0260772705078125, -0.0127105712890625, -0.0119171142578125, 0.02618408203125, 0.032867431640625, 0.037017822265625, 0.008270263671875, -0.03448486328125, -0.00615692138671875, 0.04656982421875, 0.019683837890625, -0.0017023086547851562, 0.032135009765625, -0.0088653564453125, -0.0093231201171875, 0.0850830078125, -0.019500732421875, 0.034393310546875, 0.0201873779296875, 0.028472900390625, 0.009429931640625, 0.000042498111724853516, -0.01568603515625, -0.0252838134765625, 0.0169677734375, 0.033538818359375, -0.023101806640625, -0.027130126953125, -0.007282257080078125, -0.01995849609375, 0.0252532958984375, 0.006229400634765625, -0.045013427734375, -0.037078857421875, -0.027191162109375, 0.027557373046875, -0.0034027099609375, 0.031341552734375, 0.009521484375, 0.006549835205078125, 0.05474853515625, -0.0258026123046875, 0.0021991729736328125, 0.01093292236328125, -0.015777587890625, 0.06817626953125, 0.050689697265625, 0.02508544921875, -0.0130157470703125, 0.026092529296875, 0.03131103515625, 0.0797119140625, -0.061737060546875, -0.01099395751953125, 0.0169525146484375, 0.03167724609375, 0.002288818359375, -0.00934600830078125, 0.01508331298828125, -0.002750396728515625, 0.05487060546875, -0.03887939453125, -0.00739288330078125, -0.00279998779296875, 0.00960540771484375, -0.01141357421875, 0.0086212158203125, 0.00737762451171875, -0.0218505859375, -0.026214599609375, 0.0322265625, 0.0013713836669921875, 0.046783447265625, -0.0092620849609375, 0.057159423828125, -0.0533447265625, -0.016754150390625, -0.01393890380859375, 0.0203094482421875, -0.0052642822265625, 0.0199737548828125, -0.031463623046875, -0.032806396484375, 0.018890380859375, 0.0345458984375, 0.005886077880859375, 0.05157470703125, 0.05902099609375, 0.050689697265625, -0.0084075927734375, 0.003528594970703125, 0.015716552734375, -0.022064208984375, -0.01197052001953125, -0.024261474609375, 0.0218048095703125, 0.0228729248046875, 0.003833770751953125, -0.0007605552673339844, 0.032684326171875, 0.0241546630859375, 0.0008969306945800781, 0.02630615234375, -0.0017642974853515625, -0.029296875, 0.0237274169921875, -0.0047760009765625, 0.05169677734375, 0.020843505859375, -0.0261383056640625, -0.018280029296875, -0.006683349609375, -0.0008883476257324219, -0.00020015239715576172, 0.0252532958984375, -0.0025787353515625, 0.0252227783203125, 0.029693603515625, -0.03289794921875, 0.00928497314453125, 0.035491943359375, 0.0035552978515625, 0.02593994140625, 0.03485107421875, 0.00371551513671875, -0.0699462890625, -0.040374755859375, -0.064697265625, 0.06280517578125, 0.0131378173828125, 0.090087890625, -0.04473876953125, 0.04345703125, 0.01490020751953125, -0.039459228515625, 0.034088134765625, 0.0185394287109375, -0.0007171630859375, 0.004199981689453125, -0.0070343017578125, -0.0213623046875, 0.0294647216796875, -0.01119232177734375, 0.039215087890625, -0.0640869140625, -0.034637451171875, -0.00518035888671875, 0.02978515625, -0.00986480712890625, 0.019683837890625, -0.02178955078125, 0.000885009765625, 0.009490966796875, -0.0149078369140625, 0.0276947021484375, 0.0081939697265625, 0.012298583984375, 0.0167083740234375, 0.0214691162109375, -0.0109710693359375, 0.02947998046875, -0.02752685546875, 0.06610107421875, 0.039154052734375, -0.033355712890625, 0.00995635986328125, 0.01255035400390625, -0.01904296875, 0.01335906982421875, 0.0101318359375, -0.02099609375, 0.0236358642578125, -0.046142578125, 0.014892578125, 0.060211181640625, 0.1014404296875, 0.0305938720703125, 0.0557861328125, -0.0231170654296875, -0.0008091926574707031, 0.03228759765625, 0.0287933349609375, -0.0230712890625, -0.017822265625, -0.0098876953125, 0.01360321044921875, -0.0299835205078125, -0.039947509765625, -0.091796875, 0.01080322265625, 0.02435302734375, -0.00615692138671875, -0.03662109375, -0.0231475830078125, -0.01259613037109375, 0.05816650390625, -0.01953125, -0.031982421875, -0.00763702392578125, 0.01471710205078125, -0.05487060546875, -0.0703125, -0.053314208984375, 0.03057861328125, -0.06573486328125, 0.044952392578125, 0.033782958984375, -0.053192138671875, 0.031585693359375, 0.06817626953125, 0.0665283203125, 0.1151123046875, 0.0025577545166015625, -0.03668212890625, 0.02496337890625, -0.020904541015625, -0.0226593017578125, -0.031463623046875, -0.0011224746704101562, -0.05450439453125, -0.0015001296997070312, -0.06231689453125, 0.0275421142578125, 0.006809234619140625, -0.06134033203125, -0.130126953125, 0.057525634765625, -0.055755615234375, -0.037628173828125, -0.050933837890625, -0.0063323974609375, 0.012237548828125, -0.05328369140625, -0.03900146484375, -0.01422119140625, -0.03363037109375, 0.03851318359375, -0.0012426376342773438, -0.0011510848999023438, 0.026824951171875, -0.036834716796875, -0.0168609619140625, 0.0176544189453125, 0.02508544921875, -0.00133514404296875, 0.031768798828125, -0.0186309814453125, 0.0418701171875, 0.0771484375, -0.014190673828125, 0.0128326416015625, -0.016754150390625, -0.049041748046875, -0.0155181884765625, -0.025360107421875, -0.03912353515625, 0.00008887052536010742, 0.09832763671875, 0.053955078125, 0.0284881591796875, -0.047393798828125, -0.02008056640625, -0.0665283203125, 0.005588531494140625, -0.0055389404296875, -0.0056304931640625, -0.0308685302734375, 0.02593994140625, 0.001506805419921875, 0.00470733642578125, 0.026123046875, 0.019073486328125, -0.0030078887939453125, -0.00919342041015625, 0.036224365234375, -0.026580810546875, -0.052276611328125, -0.045745849609375, 0.08538818359375, -0.039825439453125, -0.0163116455078125, 0.01141357421875, 0.0254364013671875, 0.016265869140625, 0.01287841796875, -0.0157623291015625, -0.0233612060546875, -0.0117340087890625, 0.04217529296875, -0.00905609130859375, 0.03521728515625, -0.01959228515625, -0.01161956787109375, -0.0080413818359375, 0.0194549560546875, -0.0146484375, 0.01433563232421875, -0.00811767578125, 0.041748046875, -0.0033111572265625, 0.08642578125, 0.014434814453125, -0.03228759765625, -0.0258941650390625, 0.051910400390625, -0.01349639892578125, -0.035247802734375, -0.0098876953125, -0.0183563232421875, -0.001117706298828125, 0.0196075439453125, -0.0146636962890625, -0.060028076171875, 0.0251922607421875, -0.0253753662109375, 0.0167236328125, 0.0308380126953125 ]
9378c1b7b9fea26889cb617806587dda27cdc048
Wordpress Stackexchange Q: Making $ globally accessible with jQuery.noConflict() The Codex promotes this method of using $ inside a plugin/theme JavaScript file: jQuery(document).ready(function($) { // $() will work as an alias for jQuery() inside of this function }); But if you do that you only have access to $ inside ready(). I think functions should be broken into small modules which are called from ready(), not all lumped together inside ready(), so if I use the Codex's method then I have to pass $ to each function, which is annoying and crude. Writing out jQuery all the time instead of just using $ is also annoying. I can just do $ = jQuery.noConflict(); at the start of my JavaScript file and then $ is available everywhere, but I suspect that that might cause problems with other plugins/themes in some situations. My searches haven't turned up any thorough explanations or definitive answers. Does anyone have any thoughts? A: You don't need $ = jQuery.noConflict(); Just wrap any functions outside document.ready() within: (function($){ // use $ here safely })(jQuery);
Q: Making $ globally accessible with jQuery.noConflict() The Codex promotes this method of using $ inside a plugin/theme JavaScript file: jQuery(document).ready(function($) { // $() will work as an alias for jQuery() inside of this function }); But if you do that you only have access to $ inside ready(). I think functions should be broken into small modules which are called from ready(), not all lumped together inside ready(), so if I use the Codex's method then I have to pass $ to each function, which is annoying and crude. Writing out jQuery all the time instead of just using $ is also annoying. I can just do $ = jQuery.noConflict(); at the start of my JavaScript file and then $ is available everywhere, but I suspect that that might cause problems with other plugins/themes in some situations. My searches haven't turned up any thorough explanations or definitive answers. Does anyone have any thoughts? A: You don't need $ = jQuery.noConflict(); Just wrap any functions outside document.ready() within: (function($){ // use $ here safely })(jQuery); A: hope this answer can help somebody put this code : $ = jQuery.noConflict(true); before : $(document).ready(function($){ ... });
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:410653", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21000" }
[ 0.06866455078125, -0.009033203125, -0.026275634765625, -0.05572509765625, 0.0174560546875, -0.0218658447265625, 0.0216217041015625, 0.0077972412109375, 0.00913238525390625, 0.035888671875, -0.0439453125, 0.0209808349609375, -0.0047760009765625, 0.008575439453125, -0.0123291015625, -0.01522064208984375, 0.045562744140625, -0.042877197265625, -0.0027179718017578125, -0.01416778564453125, 0.0024509429931640625, 0.0082550048828125, 0.038238525390625, 0.09075927734375, 0.057373046875, -0.016937255859375, 0.046295166015625, -0.021514892578125, 0.052459716796875, -0.011260986328125, 0.050994873046875, -0.0361328125, 0.024810791015625, -0.008392333984375, 0.005645751953125, -0.011688232421875, -0.00013947486877441406, 0.0091094970703125, 0.0087738037109375, 0.0038700103759765625, 0.035400390625, -0.0273590087890625, -0.003757476806640625, 0.03424072265625, -0.0105438232421875, -0.04339599609375, 0.042022705078125, -0.03582763671875, -0.00592803955078125, 0.0035152435302734375, 0.007678985595703125, 0.05401611328125, 0.020294189453125, -0.0372314453125, 0.0181884765625, 0.022430419921875, -0.020050048828125, -0.04937744140625, 0.0112457275390625, 0.08245849609375, 0.028900146484375, -0.01678466796875, -0.00756072998046875, -0.0540771484375, 0.025421142578125, -0.0185699462890625, -0.0275115966796875, 0.035186767578125, -0.0218353271484375, 0.0372314453125, 0.028045654296875, -0.0219879150390625, -0.01526641845703125, -0.01389312744140625, -0.01485443115234375, -0.0401611328125, 0.032989501953125, -0.051605224609375, -0.0032978057861328125, 0.01068115234375, 0.0059967041015625, 0.00865936279296875, -0.037841796875, 0.0240020751953125, -0.0214385986328125, 0.048797607421875, -0.020538330078125, -0.01349639892578125, -0.042388916015625, 0.006229400634765625, -0.0345458984375, 0.0048065185546875, -0.0259857177734375, -0.0006666183471679688, -0.01995849609375, 0.0168914794921875, 0.00571441650390625, 0.05853271484375, -0.01424407958984375, 0.02764892578125, -0.007568359375, -0.0140228271484375, 0.032623291015625, -0.04327392578125, -0.0133056640625, 0.0706787109375, 0.042816162109375, 0.0687255859375, -0.00434112548828125, -0.01558685302734375, -0.010345458984375, -0.0277252197265625, -0.004241943359375, -0.0232086181640625, -0.004398345947265625, -0.00707244873046875, -0.039794921875, 0.0182647705078125, 0.004253387451171875, 0.0092620849609375, 0.027740478515625, 0.0305633544921875, -0.037841796875, 0.0131072998046875, 0.001560211181640625, 0.00714874267578125, -0.003902435302734375, -0.027679443359375, -0.035736083984375, 0.0196380615234375, -0.031036376953125, 0.007198333740234375, 0.052459716796875, 0.0360107421875, -0.0025653839111328125, -0.0183258056640625, 0.037567138671875, 0.00597381591796875, 0.0252227783203125, -0.0127410888671875, -0.0110321044921875, 0.00769805908203125, 0.01262664794921875, -0.023101806640625, -0.054718017578125, -0.007366180419921875, 0.01486968994140625, 0.038818359375, -0.028961181640625, -0.060272216796875, 0.02716064453125, -0.031463623046875, 0.025482177734375, 0.0190277099609375, -0.0283355712890625, -0.0206298828125, 0.03643798828125, -0.035369873046875, -0.01413726806640625, -0.033935546875, 0.004940032958984375, 0.01274871826171875, -0.002105712890625, 0.01061248779296875, -0.01157379150390625, -0.021697998046875, 0.020660400390625, 0.019927978515625, 0.0177764892578125, 0.041839599609375, 0.0254974365234375, -0.0020599365234375, -0.032928466796875, 0.0118408203125, 0.018768310546875, -0.011962890625, -0.0311431884765625, 0.0015611648559570312, 0.0347900390625, -0.033477783203125, -0.01381683349609375, -0.0137939453125, 0.04364013671875, 0.013214111328125, -0.059051513671875, -0.0242462158203125, 0.016876220703125, 0.033294677734375, 0.03271484375, 0.01482391357421875, 0.07086181640625, -0.0201263427734375, -0.0550537109375, 0.00402069091796875, -0.0002856254577636719, 0.015960693359375, 0.0100860595703125, 0.0139007568359375, 0.006389617919921875, 0.004535675048828125, 0.044189453125, -0.0238037109375, -0.006763458251953125, -0.0245513916015625, -0.056182861328125, -0.0323486328125, -0.00975799560546875, 0.011322021484375, 0.00928497314453125, 0.008758544921875, 0.0016412734985351562, 0.004367828369140625, 0.0034389495849609375, -0.037322998046875, -0.03546142578125, -0.00887298583984375, -0.03448486328125, 0.08099365234375, 0.0159912109375, 0.06390380859375, 0.02740478515625, -0.053253173828125, 0.034454345703125, -0.0088653564453125, 0.0088043212890625, 0.03668212890625, -0.0341796875, 0.0004489421844482422, -0.0205078125, 0.011962890625, -0.0161285400390625, 0.034088134765625, 0.0309906005859375, 0.03662109375, -0.0179290771484375, -0.0054779052734375, -0.01320648193359375, -0.03399658203125, 0.00133514404296875, 0.0269012451171875, 0.043212890625, 0.0228118896484375, -0.0513916015625, -0.062469482421875, 0.047454833984375, -0.072509765625, -0.0163116455078125, -0.0230865478515625, -0.013671875, -0.0006256103515625, -0.0179443359375, 0.00177001953125, 0.042205810546875, -0.019195556640625, -0.02374267578125, 0.049957275390625, -0.0260162353515625, -0.0044403076171875, -0.001861572265625, 0.024017333984375, -0.0230560302734375, -0.0194091796875, 0.01406097412109375, -0.0218658447265625, 0.0489501953125, -0.0562744140625, 0.01142120361328125, 0.00846099853515625, 0.003009796142578125, -0.035919189453125, 0.0267181396484375, -0.019287109375, 0.0029449462890625, 0.0313720703125, 0.01175689697265625, 0.01160430908203125, -0.0638427734375, -0.00388336181640625, 0.0455322265625, 0.0240325927734375, -0.0164642333984375, -0.0343017578125, 0.01267242431640625, -0.0018939971923828125, 0.045989990234375, 0.017974853515625, 0.036956787109375, -0.018157958984375, 0.0229949951171875, 0.036285400390625, 0.03436279296875, 0.003704071044921875, -0.0250701904296875, 0.038818359375, 0.01251220703125, -0.0220794677734375, 0.0267486572265625, -0.011322021484375, -0.0011873245239257812, -0.0060882568359375, 0.05865478515625, 0.0479736328125, 0.0021305084228515625, 0.003875732421875, 0.00460052490234375, 0.024261474609375, 0.0102081298828125, -0.00859832763671875, 0.0016498565673828125, 0.0193634033203125, -0.046966552734375, 0.015045166015625, 0.01398468017578125, 0.039825439453125, -0.03778076171875, -0.062225341796875, -0.0399169921875, -0.0133209228515625, -0.140625, -0.1080322265625, -0.0298919677734375, -0.107666015625, 0.06805419921875, 0.006927490234375, -0.032470703125, -0.028533935546875, 0.06866455078125, 0.0333251953125, 0.0181121826171875, -0.01409149169921875, -0.0323486328125, -0.05120849609375, -0.058013916015625, -0.052398681640625, -0.002025604248046875, -0.0105133056640625, -0.01428985595703125, 0.034637451171875, -0.004375457763671875, -0.04742431640625, -0.01806640625, 0.03314208984375, 0.0150909423828125, 0.01348876953125, 0.0335693359375, -0.0498046875, -0.03753662109375, -0.00080108642578125, -0.03961181640625, 0.015472412109375, -0.001873016357421875, 0.0007381439208984375, 0.00524139404296875, 0.00670623779296875, 0.0207061767578125, 0.0850830078125, -0.00484466552734375, -0.018096923828125, 0.040374755859375, -0.047149658203125, -0.0231170654296875, -0.02215576171875, -0.05328369140625, -0.000827789306640625, 0.05712890625, -0.00794219970703125, -0.0025348663330078125, -0.0206146240234375, 0.00618743896484375, -0.00830841064453125, 0.00571441650390625, -0.03076171875, 0.0419921875, -0.00469970703125, 0.042083740234375, -0.019439697265625, 0.019927978515625, -0.040313720703125, 0.02789306640625, 0.0071563720703125, -0.00311279296875, 0.0276641845703125, -0.0189971923828125, 0.0263214111328125, 0.005413055419921875, 0.01045989990234375, 0.00527191162109375, 0.033172607421875, 0.00432586669921875, -0.01885986328125, -0.0019245147705078125, 0.034912109375, -0.0205230712890625, 0.004085540771484375, 0.036529541015625, 0.01496124267578125, -0.06280517578125, -0.03961181640625, -0.0986328125, -0.007419586181640625, -0.06634521484375, 0.016845703125, -0.006740570068359375, -0.01153564453125, -0.00624847412109375, 0.03802490234375, -0.0178985595703125, -0.042999267578125, 0.00267791748046875, -0.039215087890625, -0.022186279296875, -0.01212310791015625, -0.042724609375, -0.033111572265625, -0.01461029052734375, -0.03265380859375, -0.06854248046875, -0.009429931640625, -0.027069091796875, 0.07257080078125, 0.049713134765625, -0.058563232421875, 0.00506591796875, 0.039581298828125, 0.0190582275390625, 0.0303955078125, -0.01300811767578125, -0.026336669921875, -0.0104827880859375, -0.004955291748046875, 0.01561737060546875, -0.004024505615234375, 0.0208587646484375, 0.041778564453125, -0.06219482421875, -0.0460205078125, -0.019775390625, -0.080078125, 0.0570068359375, -0.08612060546875, -0.0626220703125, -0.0110931396484375, -0.0098876953125, -0.0085906982421875, -0.0216827392578125, 0.006511688232421875, 0.00705718994140625, -0.037200927734375, 0.013580322265625, 0.01511383056640625, -0.002590179443359375, -0.00508880615234375, 0.043792724609375, 0.03265380859375, -0.01163482666015625, -0.00974273681640625, 0.0111541748046875, 0.03485107421875, 0.01407623291015625, 0.018218994140625, -0.01198577880859375, -0.0176239013671875, 0.03533935546875, 0.0023708343505859375, 0.0191650390625, -0.048370361328125, 0.06353759765625, -0.0100555419921875, -0.00716400146484375, 0.009033203125, 0.0032901763916015625, -0.0008759498596191406, -0.011474609375, 0.0034923553466796875, 0.01006317138671875, 0.015777587890625, -0.010589599609375, -0.015411376953125, 0.0228424072265625, 0.014923095703125, -0.016265869140625, 0.00214385986328125, -0.03546142578125, 0.09783935546875, 0.0362548828125, -0.0049591064453125, 0.03765869140625, 0.02508544921875, -0.00366973876953125, 0.043243408203125, 0.033721923828125, -0.01198577880859375, 0.01617431640625, 0.05029296875, -0.00824737548828125, 0.002300262451171875, -0.0156097412109375, 0.054412841796875, 0.00701904296875, -0.016998291015625, -0.01605224609375, -0.0128173828125, 0.053436279296875, -0.0302734375, 0.02734375, 0.027923583984375, -0.0181427001953125, 0.00644683837890625, -0.026123046875, 0.01190948486328125, -0.017425537109375, -0.02130126953125, 0.07525634765625, 0.040435791015625, -0.01045989990234375, 0.0176544189453125, 0.037689208984375, 0.03070068359375, 0.006710052490234375, -0.0105133056640625, 0.031219482421875, -0.0085906982421875, 0.0390625, 0.0131683349609375, -0.0222625732421875, 0.0012159347534179688, 0.019500732421875, -0.01629638671875, -0.0257568359375, -0.0276031494140625, 0.015838623046875, 0.01459503173828125, 0.003177642822265625, 0.0166473388671875, 0.005512237548828125, 0.019561767578125, -0.029144287109375, 0.0257415771484375, -0.005947113037109375, -0.01541900634765625, -0.04656982421875, -0.026458740234375, 0.041839599609375, 0.0328369140625, 0.0094757080078125, 0.01666259765625, -0.012451171875, -0.0201263427734375, -0.025604248046875, -0.03253173828125, -0.0200042724609375, 0.0123443603515625, -0.0011796951293945312, 0.013214111328125, 0.01172637939453125, -0.07373046875, -0.02349853515625, -0.0239715576171875, -0.017120361328125, 0.035797119140625, -0.00148773193359375, 0.034210205078125, -0.04437255859375, -0.01654052734375, -0.047637939453125, -0.00033473968505859375, 0.048095703125, 0.02593994140625, -0.059783935546875, -0.004848480224609375, -0.042938232421875, -0.030487060546875, -0.041046142578125, -0.0147857666015625, -0.056427001953125, 0.02581787109375, 0.0037784576416015625, 0.00481414794921875, -0.0210113525390625, -0.044158935546875, -0.0003452301025390625, 0.01824951171875, 0.030059814453125, 0.0030994415283203125, -0.0132904052734375, -0.0020732879638671875, 0.033660888671875, -0.0249176025390625, 0.0124664306640625, 0.0005173683166503906, 0.0234375, -0.028167724609375, -0.0241546630859375, -0.08648681640625, 0.02630615234375, 0.0012798309326171875, -0.00388336181640625, 0.0421142578125, 0.025787353515625, 0.039215087890625, 0.0178680419921875, -0.0214996337890625, 0.0021915435791015625, -0.01654052734375, 0.03619384765625, -0.027313232421875, 0.0006341934204101562, 0.0243072509765625, -0.0212249755859375, -0.00446319580078125, -0.01323699951171875, -0.032379150390625, 0.031402587890625, -0.0164794921875, 0.0162353515625, 0.0261688232421875, -0.02484130859375, 0.047637939453125, 0.06292724609375, -0.01910400390625, 0.017822265625, 0.0008306503295898438, -0.01227569580078125, -0.007598876953125, 0.047454833984375, -0.0150146484375, -0.0355224609375, 0.030426025390625, 0.0020885467529296875, -0.041290283203125, -0.01617431640625, -0.0214691162109375, -0.007289886474609375, 0.02008056640625, 0.056121826171875, -0.0301971435546875, -0.00919342041015625, 0.0146026611328125, -0.0300140380859375, -0.01552581787109375, -0.00447845458984375, -0.006580352783203125, 0.00835418701171875, 0.01462554931640625, -0.012451171875, -0.0185546875, 0.0078887939453125, 0.0308990478515625, -0.027099609375, 0.00247955322265625, -0.041107177734375, 0.00589752197265625, -0.0053558349609375, 0.0271148681640625, 0.004344940185546875, 0.033843994140625, -0.0027980804443359375, 0.0290069580078125, -0.0049285888671875, -0.017547607421875, -0.0189208984375, 0.01371002197265625, 0.003345489501953125, -0.0330810546875, 0.0030498504638671875, 0.00125885009765625, -0.0018548965454101562, 0.057098388671875, -0.041290283203125, 0.045623779296875, -0.004047393798828125, 0.031524658203125, 0.02508544921875, -0.0213623046875, -0.0308990478515625, 0.0372314453125, 0.014495849609375, 0.01142120361328125, 0.0207366943359375, -0.01059722900390625, -0.010986328125, -0.01593017578125, 0.0623779296875, -0.005218505859375, -0.0218048095703125, 0.0233001708984375, 0.0308990478515625, -0.043609619140625, -0.0006747245788574219, -0.00904083251953125, -0.0157470703125, 0.035003662109375, -0.0029430389404296875, 0.0135955810546875, -0.001071929931640625, 0.005603790283203125, -0.0302734375, 0.0770263671875, -0.034210205078125, -0.00732421875, 0.031768798828125, 0.045166015625, -0.0186920166015625, 0.03228759765625, -0.01364898681640625, 0.005947113037109375, -0.0347900390625, 0.035858154296875, 0.009490966796875, 0.0295867919921875, 0.0192718505859375, -0.0185699462890625, -0.016082763671875, -0.01568603515625, 0.01042938232421875, -0.0239410400390625, 0.03271484375, 0.06298828125, 0.04022216796875, -0.008453369140625, 0.0234527587890625, -0.01255035400390625, 0.0099639892578125, 0.024383544921875, 0.0413818359375, -0.06842041015625, -0.01006317138671875, 0.0221710205078125, 0.00899505615234375, -0.01282501220703125, 0.0117340087890625, -0.0306243896484375, -0.074462890625, 0.0272979736328125, 0.0279388427734375, 0.0635986328125, -0.02392578125, 0.046539306640625, -0.026763916015625, -0.000946044921875, -0.05682373046875, -0.00830841064453125, 0.01361846923828125, -0.017974853515625, 0.0082244873046875, 0.0039825439453125, -0.00007867813110351562, -0.0294952392578125, 0.048553466796875, 0.0135955810546875, 0.0645751953125, -0.008148193359375, 0.033966064453125, 0.0204010009765625, 0.01739501953125, -0.050445556640625, 0.006992340087890625, 0.06231689453125, 0.0506591796875, -0.023773193359375, -0.04693603515625, -0.00400543212890625, -0.014434814453125, 0.01462554931640625, -0.020904541015625, -0.0159149169921875, 0.0188140869140625, 0.019927978515625, -0.00031828880310058594, -0.0021266937255859375, 0.01314544677734375, -0.018310546875, 0.0033130645751953125, 0.00533294677734375, 0.0164031982421875, 0.0283050537109375, -0.053192138671875, -0.01383209228515625, 0.007503509521484375, 0.06463623046875, 0.057708740234375, 0.050628662109375, 0.015045166015625, -0.039764404296875, 0.017120361328125, 0.00991058349609375, 0.0269317626953125, -0.042633056640625, -0.006404876708984375, -0.00930023193359375, 0.0162506103515625, 0.007549285888671875, -0.00074005126953125, 0.0005578994750976562, 0.0308380126953125, 0.043792724609375, -0.017303466796875, -0.0098114013671875, -0.00835418701171875, -0.00980377197265625, 0.0667724609375, 0.009246826171875, 0.05218505859375, -0.0311279296875, -0.03271484375, -0.08203125, 0.09912109375, -0.028594970703125, -0.00955963134765625, 0.01049041748046875, 0.005840301513671875, -0.0305023193359375, 0.00922393798828125, -0.0009050369262695312, 0.08221435546875, 0.01030731201171875, 0.017608642578125, 0.01020050048828125, -0.056671142578125, -0.04425048828125, 0.03857421875, 0.04168701171875, 0.0205841064453125, -0.01214599609375, 0.0791015625, -0.0338134765625, 0.0298614501953125, 0.00835418701171875, 0.021697998046875, -0.0200958251953125, 0.0177459716796875, 0.0162506103515625, 0.03265380859375, 0.004268646240234375, 0.0243377685546875, 0.0244293212890625, 0.004085540771484375, 0.0186004638671875, -0.031219482421875, 0.0318603515625, 0.046875, -0.00252532958984375, 0.025115966796875, 0.04632568359375, -0.047821044921875, -0.0140228271484375, 0.021514892578125, -0.0057220458984375, -0.04815673828125, 0.05853271484375, -0.01271820068359375, -0.0069580078125, 0.03778076171875, -0.02081298828125, 0.004222869873046875, 0.0184173583984375, 0.05157470703125, 0.00720977783203125, -0.031768798828125, -0.00846099853515625, 0.01568603515625, 0.048583984375, 0.06707763671875, -0.03607177734375, -0.0184173583984375, 0.0128173828125, -0.0115203857421875, 0.00391387939453125, 0.047271728515625, -0.046844482421875, 0.0178680419921875, 0.01288604736328125, -0.0018320083618164062, -0.0032196044921875, -0.02227783203125, -0.003322601318359375, 0.017181396484375, -0.00936126708984375, -0.024139404296875, -0.005977630615234375, -0.0176239013671875, 0.04425048828125, 0.044342041015625, 0.00737762451171875, 0.0301666259765625, -0.00884246826171875, -0.020843505859375, -0.007720947265625, -0.038177490234375, -0.023773193359375, -0.0161590576171875, -0.00785064697265625, 0.01369476318359375, 0.0107879638671875, -0.0217132568359375, -0.0137176513671875, -0.00789642333984375, 0.0240936279296875, -0.01190948486328125, -0.05206298828125, -0.01027679443359375, -0.01812744140625, 0.08441162109375, -0.05218505859375, 0.0235748291015625, -0.039459228515625, -0.0023403167724609375, -0.01442718505859375, -0.044036865234375, -0.04620361328125, 0.055908203125, -0.007534027099609375, 0.03521728515625, 0.021728515625, -0.038726806640625, 0.025146484375, 0.060089111328125, 0.057159423828125, 0.104248046875, 0.0013742446899414062, -0.007259368896484375, 0.02471923828125, 0.000873565673828125, -0.03314208984375, -0.0487060546875, 0.003383636474609375, -0.046661376953125, -0.004222869873046875, -0.045806884765625, 0.0038967132568359375, -0.01456451416015625, -0.055572509765625, -0.0777587890625, 0.041534423828125, -0.0121612548828125, -0.01861572265625, -0.0386962890625, -0.016693115234375, 0.008270263671875, 0.0108642578125, -0.0157470703125, -0.050689697265625, -0.05999755859375, 0.02435302734375, 0.0396728515625, -0.02630615234375, 0.03472900390625, 0.028900146484375, -0.062469482421875, 0.0270843505859375, 0.01270294189453125, 0.014129638671875, -0.0281524658203125, 0.0413818359375, 0.0006113052368164062, 0.0232696533203125, -0.0070037841796875, 0.00861358642578125, 0.0031490325927734375, -0.003570556640625, -0.0063934326171875, -0.0037097930908203125, -0.01555633544921875, -0.0016870498657226562, 0.048675537109375, 0.032470703125, 0.0161590576171875, -0.029144287109375, -0.0275421142578125, -0.006412506103515625, -0.0229339599609375, 0.0087432861328125, 0.0170135498046875, -0.036590576171875, 0.026763916015625, -0.0030651092529296875, -0.0200347900390625, -0.0086517333984375, -0.0066070556640625, -0.05322265625, 0.01131439208984375, -0.01232147216796875, -0.016204833984375, 0.006435394287109375, -0.03704833984375, 0.0577392578125, -0.0238189697265625, -0.00872802734375, 0.041961669921875, 0.01268768310546875, 0.030364990234375, 0.0631103515625, -0.00823974609375, 0.0258636474609375, -0.0223541259765625, 0.0171356201171875, -0.0066986083984375, 0.0162200927734375, -0.026824951171875, 0.0038471221923828125, -0.0017690658569335938, 0.036529541015625, -0.0208282470703125, 0.045074462890625, 0.022705078125, 0.027740478515625, 0.01103973388671875, -0.0025653839111328125, -0.0560302734375, 0.0291290283203125, -0.033172607421875, 0.0216217041015625, 0.015411376953125, 0.032501220703125, 0.0657958984375, -0.0196075439453125, 0.00943756103515625, 0.007228851318359375, -0.015472412109375, 0.003997802734375, -0.0051727294921875, -0.049530029296875, -0.0145263671875, -0.002605438232421875 ]
aea47db19b75e588fe8b910f1e795d698cf640cc
Wordpress Stackexchange Q: How to Use WordPress as Static CMS Without Blog Posts I am very new to wordpress. I want to edit a wordpress theme and remove the blogpost area from it so it can be converted into a website. I also want to make some other changes. How I am trying to do it is, " I viewed the HTML code of my page and pasted in Dreamweaver and edited it. Now I am stuck with how to upload it." Please help me out. If there is a better way to do it please suggest. Thanks A: Thats not really an ideal way to do it (and will bring all kinds of problems), what your real aim is, is to make wordpress into a CMS this way you can manage it as website from the wp-admin panel, add new pages etc, etc, the link i have added is just to give you an idea of whats involved, there are other Wordpress to CMS tutorials out there that will also help you.
Q: How to Use WordPress as Static CMS Without Blog Posts I am very new to wordpress. I want to edit a wordpress theme and remove the blogpost area from it so it can be converted into a website. I also want to make some other changes. How I am trying to do it is, " I viewed the HTML code of my page and pasted in Dreamweaver and edited it. Now I am stuck with how to upload it." Please help me out. If there is a better way to do it please suggest. Thanks A: Thats not really an ideal way to do it (and will bring all kinds of problems), what your real aim is, is to make wordpress into a CMS this way you can manage it as website from the wp-admin panel, add new pages etc, etc, the link i have added is just to give you an idea of whats involved, there are other Wordpress to CMS tutorials out there that will also help you. A: You don't need to do any of what you've done in order to use WordPress to manage static content. All you need to do: * *Choose whatever Theme you want to use *Create your content as static Pages; don't bother with Posts *Go to Dashboard -> Settings -> Reading, set the Front Page to display a static Page, and select whichever static Page you want to use as the Front Page Now, your WordPress installation is set to display only static Pages, with no Blog Posts.
wordpress
{ "language": "en", "length": 258, "provenance": "stackexchange_00019.jsonl.gz:410666", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21043" }
[ 0.032867431640625, 0.01067352294921875, 0.006069183349609375, 0.046600341796875, 0.0178985595703125, -0.046905517578125, 0.07513427734375, -0.08111572265625, 0.0013418197631835938, -0.0149688720703125, -0.002445220947265625, -0.0192108154296875, -0.029510498046875, -0.03302001953125, 0.011016845703125, -0.027587890625, 0.033843994140625, 0.00672149658203125, 0.04693603515625, -0.0032176971435546875, -0.01201629638671875, 0.00952911376953125, 0.047576904296875, 0.042388916015625, -0.0224609375, -0.0006151199340820312, 0.06475830078125, -0.033538818359375, -0.01158905029296875, -0.038787841796875, 0.0086517333984375, 0.025390625, 0.01702880859375, 0.01387786865234375, -0.004634857177734375, 0.01059722900390625, -0.009002685546875, 0.018646240234375, 0.036346435546875, -0.01495361328125, 0.005367279052734375, -0.00884246826171875, 0.01181793212890625, 0.0280914306640625, -0.0094146728515625, -0.041473388671875, 0.00839996337890625, -0.0584716796875, 0.01253509521484375, -0.034942626953125, -0.0080108642578125, -0.00823974609375, 0.0278472900390625, -0.0282440185546875, -0.033294677734375, -0.0265655517578125, 0.04998779296875, -0.03082275390625, 0.033477783203125, -0.034515380859375, -0.032196044921875, -0.00569915771484375, 0.0302276611328125, -0.00920867919921875, -0.0080413818359375, 0.0005540847778320312, -0.053955078125, 0.0139617919921875, -0.09405517578125, -0.0164642333984375, 0.05047607421875, -0.080322265625, -0.0028285980224609375, -0.038482666015625, 0.00647735595703125, 0.029571533203125, -0.0224609375, -0.0301513671875, 0.0295867919921875, -0.002033233642578125, 0.024261474609375, 0.0217742919921875, -0.009674072265625, -0.088134765625, 0.0506591796875, -0.04083251953125, -0.005237579345703125, -0.0108795166015625, -0.0241241455078125, -0.03704833984375, -0.01139068603515625, 0.0030078887939453125, -0.057373046875, 0.0094146728515625, -0.0086517333984375, -0.0184783935546875, 0.01995849609375, 0.01052093505859375, 0.0004611015319824219, 0.00308990478515625, 0.01739501953125, -0.04150390625, 0.035125732421875, -0.0162506103515625, -0.005390167236328125, 0.056243896484375, -0.003726959228515625, 0.0156707763671875, 0.0257415771484375, 0.014373779296875, 0.01129913330078125, -0.01690673828125, 0.0230712890625, -0.020477294921875, -0.0306396484375, 0.01160430908203125, 0.024658203125, -0.0074615478515625, -0.004726409912109375, -0.01050567626953125, -0.0244140625, 0.01030731201171875, -0.006572723388671875, -0.007022857666015625, 0.0112152099609375, 0.0174102783203125, 0.0013723373413085938, -0.0216522216796875, 0.015716552734375, 0.00768280029296875, -0.0362548828125, 0.008270263671875, 0.07122802734375, 0.0355224609375, 0.004871368408203125, -0.008697509765625, 0.01666259765625, -0.00933074951171875, 0.01776123046875, 0.0173187255859375, -0.0028820037841796875, -0.074951171875, -0.029205322265625, 0.01108551025390625, 0.0440673828125, 0.040771484375, 0.0277099609375, 0.00974273681640625, 0.01052093505859375, -0.0183258056640625, 0.009674072265625, 0.00937652587890625, -0.0044708251953125, 0.0231170654296875, 0.007083892822265625, -0.03729248046875, -0.006282806396484375, -0.032867431640625, 0.043548583984375, -0.0129241943359375, 0.01421356201171875, 0.00628662109375, 0.034271240234375, -0.018341064453125, -0.01806640625, -0.0214691162109375, -0.0526123046875, -0.00637054443359375, 0.0261077880859375, -0.05169677734375, 0.053070068359375, -0.0127716064453125, 0.06378173828125, 0.016632080078125, 0.0294952392578125, 0.027587890625, -0.0209197998046875, 0.003452301025390625, -0.0003688335418701172, 0.0438232421875, 0.033905029296875, -0.01129913330078125, 0.00014019012451171875, 0.0302734375, -0.053619384765625, 0.028228759765625, 0.01654052734375, 0.035430908203125, -0.01033782958984375, 0.016387939453125, 0.048858642578125, 0.0260162353515625, 0.034210205078125, -0.004520416259765625, 0.0211639404296875, -0.052520751953125, -0.0257568359375, -0.030181884765625, -0.003940582275390625, -0.01129913330078125, -0.0210418701171875, 0.0140838623046875, 0.0210418701171875, -0.005084991455078125, 0.02203369140625, -0.01146697998046875, 0.0054779052734375, 0.029632568359375, -0.003997802734375, 0.0299224853515625, 0.0147705078125, 0.006244659423828125, -0.00649261474609375, -0.058135986328125, -0.026458740234375, -0.0054931640625, -0.0174713134765625, 0.0149078369140625, -0.0025920867919921875, 0.0016345977783203125, 0.0254974365234375, -0.03607177734375, 0.012176513671875, 0.022216796875, 0.057281494140625, -0.0364990234375, -0.0018968582153320312, -0.05279541015625, -0.0014982223510742188, -0.005481719970703125, -0.06378173828125, 0.06011962890625, 0.0198974609375, 0.0214080810546875, -0.034759521484375, -0.01212310791015625, -0.0095977783203125, -0.02227783203125, 0.006984710693359375, 0.051666259765625, 0.027862548828125, -0.006557464599609375, -0.022186279296875, -0.0035400390625, 0.0228118896484375, -0.05523681640625, 0.0005660057067871094, 0.006866455078125, 0.01416778564453125, 0.038970947265625, 0.0251007080078125, -0.0157012939453125, 0.008575439453125, -0.044342041015625, 0.013031005859375, -0.0004093647003173828, 0.0232086181640625, -0.0138092041015625, 0.01067352294921875, 0.01116943359375, 0.01293182373046875, 0.011627197265625, -0.06182861328125, 0.0227813720703125, 0.046142578125, 0.0210723876953125, 0.05218505859375, 0.04425048828125, -0.042144775390625, 0.01212310791015625, 0.02178955078125, 0.024749755859375, 0.00846099853515625, 0.0302581787109375, 0.016632080078125, 0.049713134765625, -0.0210723876953125, -0.03460693359375, 0.01247406005859375, 0.0199737548828125, -0.02984619140625, -0.0020809173583984375, 0.00144195556640625, -0.0196990966796875, 0.01210784912109375, -0.018829345703125, 0.017120361328125, -0.0218353271484375, -0.0298004150390625, 0.0172882080078125, 0.01708984375, 0.018798828125, -0.03436279296875, 0.034149169921875, 0.00731658935546875, -0.007427215576171875, 0.00798797607421875, -0.0219573974609375, 0.01316070556640625, 0.005298614501953125, 0.061309814453125, 0.0694580078125, 0.00749969482421875, 0.0199737548828125, 0.00730133056640625, 0.028533935546875, 0.01175689697265625, 0.0030269622802734375, 0.0009551048278808594, 0.023529052734375, -0.06475830078125, 0.0050811767578125, 0.0171356201171875, 0.004344940185546875, -0.0023708343505859375, -0.0189971923828125, -0.01593017578125, 0.0207366943359375, -0.041259765625, -0.00246429443359375, -0.0338134765625, -0.062286376953125, -0.0207061767578125, 0.022216796875, -0.0460205078125, 0.0164642333984375, 0.0413818359375, 0.0026378631591796875, 0.038787841796875, -0.004909515380859375, -0.03631591796875, -0.0242462158203125, -0.08447265625, -0.053863525390625, -0.002170562744140625, 0.0171661376953125, 0.0019330978393554688, 0.054229736328125, 0.0098419189453125, -0.02606201171875, 0.0255126953125, 0.0628662109375, -0.00991058349609375, -0.00016129016876220703, -0.0220184326171875, 0.0023288726806640625, 0.0083770751953125, 0.00594329833984375, 0.01898193359375, 0.005580902099609375, -0.00499725341796875, -0.0176544189453125, -0.047088623046875, -0.03607177734375, -0.044403076171875, -0.0274658203125, 0.06280517578125, -0.02178955078125, -0.04443359375, -0.05450439453125, -0.0225982666015625, 0.0135498046875, -0.040985107421875, -0.014251708984375, 0.00806427001953125, -0.004047393798828125, -0.0193634033203125, 0.01116943359375, 0.014068603515625, 0.0137786865234375, 0.00789642333984375, -0.00948333740234375, 0.0232696533203125, -0.0017137527465820312, 0.01450347900390625, -0.008453369140625, 0.0233306884765625, -0.03302001953125, 0.037811279296875, 0.01605224609375, -0.01090240478515625, -0.01232147216796875, 0.010406494140625, -0.0216217041015625, -0.0283355712890625, 0.06463623046875, -0.01251983642578125, 0.00475311279296875, -0.02313232421875, -0.0269317626953125, -0.0114593505859375, 0.07501220703125, -0.0697021484375, 0.005126953125, 0.005462646484375, -0.01226806640625, 0.0233612060546875, -0.042449951171875, -0.072509765625, -0.0228118896484375, -0.0760498046875, 0.0416259765625, -0.022705078125, 0.0093231201171875, -0.0191802978515625, 0.007450103759765625, -0.01806640625, -0.039215087890625, 0.026214599609375, -0.0258331298828125, 0.0093231201171875, -0.00024819374084472656, -0.0142059326171875, -0.01483154296875, -0.01129150390625, -0.0250244140625, -0.049072265625, -0.013458251953125, 0.0287628173828125, 0.018280029296875, -0.0204925537109375, 0.0171356201171875, -0.007099151611328125, 0.055450439453125, -0.03564453125, 0.056121826171875, -0.026031494140625, 0.040679931640625, -0.047760009765625, -0.043304443359375, -0.01367950439453125, -0.044342041015625, 0.0109405517578125, -0.042694091796875, -0.01425933837890625, 0.00559234619140625, -0.0576171875, 0.020294189453125, -0.0595703125, 0.004245758056640625, -0.0298919677734375, 0.002117156982421875, 0.0113067626953125, 0.0224761962890625, -0.017730712890625, 0.01079559326171875, 0.005931854248046875, -0.02313232421875, 0.03887939453125, 0.0125885009765625, 0.009979248046875, 0.017333984375, 0.09222412109375, 0.002719879150390625, -0.021392822265625, -0.075927734375, -0.0022029876708984375, 0.03778076171875, -0.004360198974609375, 0.037322998046875, 0.00887298583984375, -0.025482177734375, 0.074951171875, 0.002712249755859375, -0.023162841796875, -0.0027065277099609375, 0.031890869140625, -0.00687408447265625, -0.0167083740234375, 0.01381683349609375, -0.0162353515625, 0.03472900390625, 0.007137298583984375, -0.00395965576171875, 0.00478363037109375, 0.0143890380859375, 0.03155517578125, -0.000043392181396484375, -0.0176544189453125, -0.034210205078125, -0.023590087890625, 0.00191497802734375, -0.03717041015625, 0.0236358642578125, 0.017669677734375, 0.00652313232421875, 0.0021839141845703125, 0.012481689453125, -0.00800323486328125, -0.022003173828125, -0.0284423828125, -0.026123046875, 0.006481170654296875, 0.00707244873046875, -0.01526641845703125, -0.00635528564453125, -0.01136016845703125, 0.0313720703125, 0.00992584228515625, -0.054229736328125, 0.001056671142578125, 0.00577545166015625, 0.006359100341796875, 0.00925445556640625, -0.0032501220703125, 0.036376953125, -0.038543701171875, -0.0091552734375, -0.0063018798828125, -0.047088623046875, -0.062286376953125, -0.05670166015625, -0.0126800537109375, 0.005603790283203125, -0.006679534912109375, 0.06475830078125, 0.021453857421875, 0.00563812255859375, 0.031707763671875, -0.033477783203125, 0.0299835205078125, 0.018890380859375, 0.0171966552734375, 0.00789642333984375, 0.00787353515625, 0.0157623291015625, -0.042877197265625, 0.0098419189453125, -0.041259765625, -0.0191497802734375, 0.013641357421875, 0.04632568359375, 0.0106353759765625, -0.006015777587890625, 0.00772857666015625, -0.028106689453125, 0.0003871917724609375, -0.0001665353775024414, -0.020721435546875, -0.0272064208984375, -0.01116943359375, 0.0021533966064453125, 0.0173797607421875, -0.008209228515625, 0.0018987655639648438, 0.0300445556640625, 0.01258087158203125, 0.038787841796875, 0.01256561279296875, 0.003570556640625, -0.01092529296875, -0.0012969970703125, -0.018280029296875, -0.0083160400390625, 0.0010232925415039062, -0.033538818359375, -0.031829833984375, -0.00823211669921875, 0.0083770751953125, 0.03759765625, -0.00214385986328125, 0.004245758056640625, -0.0267486572265625, 0.005611419677734375, -0.01222991943359375, 0.0051116943359375, 0.035736083984375, -0.004802703857421875, -0.07891845703125, -0.00801849365234375, -0.0576171875, -0.01403045654296875, -0.0693359375, -0.04412841796875, -0.04736328125, 0.03662109375, 0.01160430908203125, 0.0240478515625, -0.0295562744140625, -0.061279296875, -0.0208587646484375, 0.0205230712890625, 0.030426025390625, 0.03619384765625, -0.0036411285400390625, 0.0271453857421875, 0.0026149749755859375, 0.042449951171875, 0.0204010009765625, 0.0081939697265625, -0.023345947265625, -0.033111572265625, 0.032135009765625, -0.042083740234375, -0.0528564453125, -0.004974365234375, -0.0584716796875, -0.007843017578125, 0.0094146728515625, -0.01276397705078125, 0.0025177001953125, -0.0203399658203125, -0.0002987384796142578, -0.0357666015625, 0.006320953369140625, -0.0187835693359375, 0.001956939697265625, -0.036163330078125, -0.01800537109375, 0.01342010498046875, -0.016448974609375, 0.0165557861328125, -0.01184844970703125, -0.01261138916015625, -0.01605224609375, 0.01139068603515625, -0.013153076171875, 0.0251312255859375, 0.0689697265625, -0.01151275634765625, 0.043060302734375, 0.0299530029296875, -0.000888824462890625, 0.00555419921875, 0.010986328125, -0.040252685546875, 0.01349639892578125, 0.033843994140625, 0.0142669677734375, -0.01983642578125, 0.01316070556640625, -0.0308685302734375, 0.0379638671875, 0.12060546875, 0.10174560546875, -0.129150390625, 0.0023441314697265625, 0.01450347900390625, -0.0404052734375, 0.0258941650390625, 0.015960693359375, -0.0181732177734375, -0.005130767822265625, 0.0288848876953125, -0.0092315673828125, -0.000020802021026611328, 0.0183868408203125, 0.014801025390625, -0.0029506683349609375, -0.02508544921875, 0.083740234375, 0.01546478271484375, -0.04864501953125, 0.0196075439453125, 0.0163726806640625, 0.01157379150390625, -0.040771484375, 0.004638671875, 0.0012912750244140625, -0.0098419189453125, -0.041748046875, 0.039154052734375, -0.0027790069580078125, 0.023101806640625, -0.00554656982421875, -0.00258636474609375, -0.0246124267578125, 0.0440673828125, -0.0426025390625, 0.0279541015625, 0.0037822723388671875, -0.00030112266540527344, -0.0364990234375, -0.024932861328125, 0.002262115478515625, 0.0218353271484375, -0.0338134765625, 0.0264129638671875, -0.0142822265625, -0.024078369140625, -0.0084075927734375, -0.0248565673828125, 0.0662841796875, -0.005435943603515625, -0.0221405029296875, 0.04876708984375, -0.0207977294921875, -0.04498291015625, -0.022186279296875, -0.005779266357421875, -0.054656982421875, 0.00891876220703125, -0.0222015380859375, -0.0021820068359375, 0.0014209747314453125, -0.0252227783203125, -0.049102783203125, 0.115478515625, -0.0227203369140625, 0.00756072998046875, 0.02532958984375, 0.050811767578125, -0.03668212890625, 0.029083251953125, -0.03515625, 0.04254150390625, -0.018951416015625, 0.0233154296875, -0.073974609375, -0.0008082389831542969, -0.0300750732421875, 0.0286865234375, 0.038818359375, 0.0162506103515625, -0.0307464599609375, -0.005062103271484375, 0.03216552734375, 0.034454345703125, -0.00010520219802856445, 0.0433349609375, -0.04058837890625, -0.00298309326171875, -0.031707763671875, -0.047882080078125, 0.01751708984375, -0.0209503173828125, -0.044830322265625, -0.01007843017578125, 0.03076171875, 0.02752685546875, 0.0191192626953125, 0.01264190673828125, -0.0140533447265625, 0.01558685302734375, 0.02130126953125, -0.0013589859008789062, -0.0218505859375, 0.0282745361328125, 0.0240478515625, -0.043365478515625, 0.02960205078125, -0.044219970703125, 0.048583984375, -0.004207611083984375, 0.0220489501953125, -0.01291656494140625, 0.01434326171875, 0.0207977294921875, -0.037872314453125, 0.00670623779296875, 0.0350341796875, -0.055145263671875, 0.033111572265625, 0.023529052734375, 0.04022216796875, -0.032135009765625, 0.01027679443359375, 0.0198822021484375, 0.032073974609375, -0.0283660888671875, -0.0116729736328125, -0.004589080810546875, -0.0004925727844238281, 0.0235748291015625, -0.031036376953125, 0.0179290771484375, -0.0008683204650878906, 0.004741668701171875, 0.00681304931640625, 0.02423095703125, 0.0227508544921875, -0.0159759521484375, 0.01323699951171875, 0.05755615234375, -0.02801513671875, 0.03485107421875, -0.0178680419921875, -0.014312744140625, 0.01323699951171875, 0.047119140625, 0.0170440673828125, 0.044647216796875, -0.00595855712890625, -0.0242767333984375, -0.008087158203125, 0.04107666015625, -0.0318603515625, 0.0198516845703125, -0.050079345703125, -0.055755615234375, -0.015899658203125, 0.04119873046875, -0.002826690673828125, -0.01372528076171875, 0.017822265625, 0.038299560546875, -0.0182952880859375, -0.0193023681640625, 0.0272216796875, -0.0121917724609375, 0.021697998046875, 0.00128936767578125, -0.0350341796875, -0.01346588134765625, -0.0361328125, -0.03466796875, 0.035308837890625, 0.023193359375, -0.02587890625, -0.0003943443298339844, -0.00571441650390625, -0.048980712890625, 0.0648193359375, -0.025054931640625, 0.06402587890625, -0.006999969482421875, -0.04339599609375, -0.00665283203125, -0.026153564453125, -0.002605438232421875, 0.0036163330078125, 0.023406982421875, -0.0167236328125, 0.038970947265625, -0.02783203125, 0.030426025390625, 0.0152740478515625, -0.04730224609375, -0.0128936767578125, 0.0235137939453125, 0.0308990478515625, 0.004734039306640625, -0.044036865234375, -0.05694580078125, -0.04547119140625, 0.1063232421875, 0.0139312744140625, 0.0870361328125, -0.05487060546875, 0.044830322265625, -0.03857421875, 0.00530242919921875, -0.0274200439453125, 0.0008459091186523438, -0.045318603515625, 0.01313018798828125, 0.01220703125, 0.00330352783203125, -0.0204620361328125, 0.00507354736328125, 0.029632568359375, -0.0435791015625, 0.01020050048828125, -0.029388427734375, 0.009918212890625, -0.02105712890625, -0.01094818115234375, -0.029083251953125, -0.0172271728515625, 0.0031795501708984375, 0.0180206298828125, 0.00821685791015625, -0.0236358642578125, -0.0347900390625, 0.03912353515625, -0.01073455810546875, -0.058380126953125, 0.033935546875, -0.06475830078125, 0.03643798828125, 0.035003662109375, 0.042236328125, -0.0361328125, 0.05767822265625, -0.01305389404296875, 0.021087646484375, 0.00850677490234375, 0.054290771484375, 0.0246124267578125, -0.10235595703125, -0.002925872802734375, 0.03033447265625, 0.046051025390625, -0.0137786865234375, 0.00852203369140625, 0.0013246536254882812, 0.00029659271240234375, -0.0155029296875, 0.0152435302734375, -0.0253448486328125, -0.00522613525390625, -0.01446533203125, 0.017974853515625, -0.027862548828125, -0.03704833984375, -0.103515625, -0.00818634033203125, 0.024261474609375, 0.0033168792724609375, -0.036102294921875, 0.0367431640625, -0.035980224609375, 0.0017557144165039062, -0.0277862548828125, -0.0119476318359375, -0.013580322265625, 0.0010499954223632812, 0.005645751953125, -0.04205322265625, -0.030517578125, 0.05609130859375, -0.0132598876953125, 0.050445556640625, 0.08099365234375, -0.03338623046875, 0.027740478515625, 0.03204345703125, 0.016448974609375, 0.0908203125, -0.05242919921875, 0.0282745361328125, 0.02825927734375, 0.0124359130859375, -0.052154541015625, -0.064208984375, 0.004665374755859375, -0.02081298828125, -0.0295257568359375, -0.0275115966796875, -0.01317596435546875, -0.022857666015625, -0.051788330078125, -0.0833740234375, 0.030670166015625, -0.015594482421875, -0.039764404296875, -0.025665283203125, -0.01934814453125, -0.018035888671875, -0.00592803955078125, -0.0146942138671875, -0.0249481201171875, -0.0235137939453125, 0.041900634765625, 0.009796142578125, -0.00020945072174072266, 0.0162200927734375, 0.00946044921875, -0.042144775390625, 0.0240478515625, 0.01500701904296875, 0.006683349609375, 0.006038665771484375, -0.0001659393310546875, 0.0014905929565429688, 0.033843994140625, -0.04412841796875, 0.00010102987289428711, -0.022216796875, 0.01214599609375, 0.0184783935546875, -0.039031982421875, -0.062469482421875, -0.051239013671875, 0.05426025390625, 0.05438232421875, 0.0249481201171875, 0.004940032958984375, -0.014923095703125, -0.00975799560546875, -0.05584716796875, -0.04168701171875, 0.0300140380859375, -0.09381103515625, -0.01561737060546875, -0.0072174072265625, -0.0252685546875, 0.0195159912109375, -0.0275726318359375, -0.02972412109375, 0.00238800048828125, -0.02630615234375, -0.0265655517578125, 0.0080718994140625, -0.04254150390625, 0.06689453125, -0.028656005859375, 0.0048828125, 0.0012912750244140625, 0.02606201171875, 0.0281524658203125, 0.035552978515625, 0.00963592529296875, -0.0164794921875, -0.032989501953125, 0.031524658203125, 0.0056304931640625, 0.021820068359375, -0.03656005859375, -0.0357666015625, -0.01739501953125, 0.022918701171875, 0.0014896392822265625, 0.0423583984375, 0.0189666748046875, -0.01448822021484375, 0.00933074951171875, 0.030792236328125, -0.0229034423828125, -0.006175994873046875, -0.022216796875, 0.031982421875, -0.03619384765625, -0.0007076263427734375, 0.0352783203125, -0.060760498046875, 0.00002586841583251953, -0.03936767578125, -0.00919342041015625, -0.0792236328125, 0.0085296630859375, -0.02349853515625, -0.0030841827392578125, 0.030731201171875 ]
e321e0a274c259f76d7853b5315b3e328d33f9dd
Wordpress Stackexchange Q: How can you limit the number of images / videos that can be uploaded to a WordPress post there will be lot of users on my site who will be author uploading their posts. right now, they can upload as many images / videos per post as they want. i want to restrict them to upload maximum 4 images / videos per post. can anybody help me please ? A: try this: add_filter('wp_handle_upload_prefilter', 'limit_wp_handle_upload_prefilter'); function yoursite_wp_handle_upload_prefilter($file) { // This bit is for the flash uploader if ($file['type']=='application/octet-stream' && isset($file['tmp_name'])) { $file_size = getimagesize($file['tmp_name']); if (isset($file_size['error']) && $file_size['error']!=0) { $file['error'] = "Unexpected Error: {$file_size['error']}"; return $file; } else { $file['type'] = $file_size['mime']; } } if ($post_id = (isset($_REQUEST['post_id']) ? $_REQUEST['post_id'] : false)) { if (count(get_posts("post_type=attachment&post_parent={$post_id}"))>3) $file['error'] = "Sorry, you cannot upload more than four (4) image."; } return $file; } after you paste this in your theme's functions.php the upload limit should be 4 files total per post.
Q: How can you limit the number of images / videos that can be uploaded to a WordPress post there will be lot of users on my site who will be author uploading their posts. right now, they can upload as many images / videos per post as they want. i want to restrict them to upload maximum 4 images / videos per post. can anybody help me please ? A: try this: add_filter('wp_handle_upload_prefilter', 'limit_wp_handle_upload_prefilter'); function yoursite_wp_handle_upload_prefilter($file) { // This bit is for the flash uploader if ($file['type']=='application/octet-stream' && isset($file['tmp_name'])) { $file_size = getimagesize($file['tmp_name']); if (isset($file_size['error']) && $file_size['error']!=0) { $file['error'] = "Unexpected Error: {$file_size['error']}"; return $file; } else { $file['type'] = $file_size['mime']; } } if ($post_id = (isset($_REQUEST['post_id']) ? $_REQUEST['post_id'] : false)) { if (count(get_posts("post_type=attachment&post_parent={$post_id}"))>3) $file['error'] = "Sorry, you cannot upload more than four (4) image."; } return $file; } after you paste this in your theme's functions.php the upload limit should be 4 files total per post. A: I have also on solution, use same idea and hooks, only more complex with more functionalities and structured in classes for easy reused. Was an customer project and now its free: https://github.com/bueltge/Limit-Upload A: Anyone wishing to use this code, be sure to include the 'posts_per_page' => -1 if you want to limit the number to more than 5 because the get_posts query on this page will only get a max of 5 because of the default paging. see https://stackoverflow.com/questions/2134500/why-does-get-posts-return-only-5-matching-posts-when-it-should-return-9 for more information. Cheers!
wordpress
{ "language": "en", "length": 242, "provenance": "stackexchange_00019.jsonl.gz:410681", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21084" }
[ 0.06329345703125, -0.0064849853515625, 0.03460693359375, -0.006023406982421875, 0.0210723876953125, -0.008209228515625, 0.0775146484375, -0.049591064453125, 0.005207061767578125, 0.0026149749755859375, -0.0159912109375, 0.00015985965728759766, -0.05743408203125, -0.0295867919921875, -0.01409912109375, -0.04766845703125, 0.05413818359375, -0.02630615234375, 0.02825927734375, 0.0001901388168334961, -0.0093841552734375, 0.03692626953125, 0.050933837890625, 0.035003662109375, -0.0238800048828125, 0.025238037109375, 0.031036376953125, -0.0226593017578125, -0.05255126953125, -0.048248291015625, -0.00989532470703125, 0.050811767578125, 0.0208587646484375, 0.027984619140625, -0.0394287109375, 0.013458251953125, 0.00722503662109375, 0.004154205322265625, 0.00901031494140625, 0.033172607421875, 0.015716552734375, 0.0006346702575683594, 0.053192138671875, 0.00658416748046875, 0.0089874267578125, -0.0101165771484375, 0.00867462158203125, -0.0439453125, 0.0223388671875, -0.0247039794921875, -0.0228729248046875, 0.027618408203125, -0.00014591217041015625, -0.006427764892578125, -0.00882720947265625, 0.00945281982421875, 0.0369873046875, 0.0160064697265625, 0.06304931640625, -0.034027099609375, -0.07928466796875, -0.031494140625, 0.022003173828125, -0.0562744140625, -0.01059722900390625, 0.0018482208251953125, -0.0272216796875, 0.0083770751953125, -0.00838470458984375, -0.0233001708984375, 0.001804351806640625, -0.01055145263671875, -0.00449371337890625, -0.0226593017578125, 0.01611328125, 0.004688262939453125, -0.0060272216796875, -0.038055419921875, 0.017425537109375, 0.0198516845703125, 0.0187225341796875, -0.01947021484375, -0.043304443359375, 0.0136871337890625, -0.0144500732421875, 0.0193939208984375, -0.00699615478515625, -0.0044097900390625, -0.00339508056640625, 0.004058837890625, -0.01268768310546875, -0.0304412841796875, 0.010986328125, 0.0254669189453125, -0.002506256103515625, -0.02008056640625, 0.0308990478515625, 0.00020575523376464844, 0.00249481201171875, -0.0281982421875, 0.01265716552734375, -0.046051025390625, -0.002040863037109375, 0.007045745849609375, 0.032379150390625, -0.0068359375, -0.01044464111328125, -0.0174713134765625, 0.053009033203125, 0.025421142578125, -0.01311492919921875, 0.0657958984375, -0.0010890960693359375, -0.01027679443359375, -0.037139892578125, -0.004405975341796875, -0.0269927978515625, 0.0002409219741821289, -0.006221771240234375, -0.007171630859375, -0.0183868408203125, 0.01486968994140625, -0.01375579833984375, -0.057769775390625, 0.00543975830078125, -0.0185394287109375, -0.0158538818359375, -0.0003921985626220703, 0.044769287109375, 0.07745361328125, -0.0267181396484375, -0.0239105224609375, -0.003086090087890625, -0.0162811279296875, -0.021697998046875, -0.030731201171875, -0.0020599365234375, -0.050628662109375, -0.02435302734375, 0.0413818359375, -0.029327392578125, -0.068359375, 0.005828857421875, -0.0246429443359375, 0.0246429443359375, 0.0248260498046875, 0.0105133056640625, 0.0114898681640625, 0.0153350830078125, -0.044342041015625, 0.00884246826171875, -0.031524658203125, 0.04168701171875, 0.00449371337890625, -0.05322265625, -0.0273590087890625, 0.0112762451171875, -0.025848388671875, -0.03070068359375, -0.06048583984375, 0.0484619140625, 0.0166015625, 0.0246429443359375, -0.01678466796875, -0.0211181640625, -0.0225830078125, -0.07611083984375, -0.01267242431640625, 0.0254058837890625, 0.038726806640625, 0.0005674362182617188, -0.0171356201171875, 0.03857421875, 0.00719451904296875, -0.0330810546875, 0.00684356689453125, 0.007175445556640625, -0.01503753662109375, 0.01320648193359375, 0.064453125, 0.0272064208984375, -0.00801849365234375, 0.049957275390625, -0.00609588623046875, -0.0406494140625, -0.0207366943359375, 0.00518035888671875, 0.01702880859375, 0.0208587646484375, 0.01409149169921875, 0.061767578125, 0.0019741058349609375, 0.00043272972106933594, -0.029571533203125, -0.004322052001953125, -0.034912109375, 0.0006961822509765625, -0.00824737548828125, -0.00870513916015625, 0.034912109375, 0.043060302734375, -0.031768798828125, 0.04290771484375, -0.016693115234375, -0.022979736328125, -0.00733184814453125, -0.0154571533203125, 0.007537841796875, -0.052581787109375, -0.00266265869140625, 0.04400634765625, -0.001209259033203125, -0.03363037109375, 0.0119171142578125, 0.019195556640625, 0.0226287841796875, -0.0247955322265625, 0.0299072265625, -0.01702880859375, 0.058837890625, -0.03564453125, -0.033294677734375, -0.0343017578125, -0.0210418701171875, 0.05889892578125, -0.01012420654296875, -0.0160980224609375, -0.020843505859375, 0.0257720947265625, 0.01959228515625, -0.0531005859375, 0.0175323486328125, 0.0137939453125, 0.0191802978515625, -0.00948333740234375, -0.0352783203125, -0.0233154296875, -0.11724853515625, 0.0223236083984375, 0.07305908203125, 0.0306243896484375, 0.012054443359375, -0.0178375244140625, -0.01418304443359375, 0.03277587890625, -0.02557373046875, 0.01380157470703125, -0.0257110595703125, 0.005344390869140625, 0.00954437255859375, 0.018096923828125, -0.0021381378173828125, 0.0361328125, -0.056243896484375, 0.0323486328125, 0.046783447265625, -0.002628326416015625, 0.01168060302734375, -0.02960205078125, 0.0201263427734375, 0.0004649162292480469, -0.00675201416015625, -0.01538848876953125, -0.005126953125, 0.03204345703125, 0.0135955810546875, 0.02923583984375, 0.017303466796875, -0.0311279296875, 0.0184326171875, 0.021240234375, -0.02880859375, 0.0022602081298828125, -0.033599853515625, -0.0222625732421875, -0.01216888427734375, -0.049957275390625, 0.03564453125, 0.0157012939453125, -0.0394287109375, -0.0198822021484375, -0.009307861328125, -0.00975799560546875, 0.0005650520324707031, 0.001438140869140625, -0.0458984375, 0.030914306640625, -0.0017805099487304688, -0.0102996826171875, -0.041015625, 0.01535797119140625, 0.01209259033203125, -0.0127105712890625, 0.0293121337890625, -0.001617431640625, -0.02685546875, -0.01392364501953125, -0.0784912109375, 0.071533203125, -0.05096435546875, 0.048614501953125, 0.07379150390625, -0.047210693359375, 0.06005859375, 0.0016260147094726562, 0.02667236328125, -0.02227783203125, 0.01513671875, -0.0193939208984375, -0.01447296142578125, -0.0537109375, 0.007171630859375, 0.005313873291015625, 0.01111602783203125, 0.000038743019104003906, -0.040863037109375, 0.006504058837890625, 0.01218414306640625, -0.0299530029296875, -0.0209808349609375, 0.01021575927734375, -0.08258056640625, 0.020843505859375, -0.004238128662109375, -0.038421630859375, -0.0262603759765625, 0.03326416015625, 0.00431060791015625, -0.06585693359375, 0.0284423828125, 0.02581787109375, 0.0048370361328125, 0.016387939453125, 0.0261688232421875, -0.0116424560546875, 0.003971099853515625, 0.0001404285430908203, 0.08489990234375, -0.0004260540008544922, -0.0709228515625, -0.03790283203125, 0.00994873046875, -0.0164642333984375, -0.00897216796875, 0.00817108154296875, 0.00537872314453125, 0.00279998779296875, 0.00557708740234375, -0.01480865478515625, 0.0185699462890625, -0.012420654296875, -0.022186279296875, -0.01221466064453125, -0.038543701171875, -0.01111602783203125, 0.052215576171875, 0.0137481689453125, -0.042694091796875, 0.0234832763671875, -0.0556640625, -0.0204010009765625, -0.021514892578125, -0.04974365234375, -0.00902557373046875, 0.040130615234375, -0.01277923583984375, -0.0300750732421875, 0.0015115737915039062, 0.01800537109375, 0.0148162841796875, -0.051361083984375, -0.00954437255859375, 0.07073974609375, 0.0220184326171875, 0.05877685546875, -0.01016998291015625, 0.006351470947265625, -0.01447296142578125, 0.0295562744140625, 0.000274658203125, 0.0208282470703125, -0.006366729736328125, 0.002384185791015625, -0.05810546875, -0.055419921875, 0.0487060546875, -0.00572967529296875, 0.0178680419921875, -0.044281005859375, -0.03814697265625, -0.019775390625, 0.0816650390625, -0.0118560791015625, -0.01256561279296875, -0.028717041015625, 0.0029659271240234375, -0.012237548828125, -0.054534912109375, -0.00493621826171875, 0.001758575439453125, 0.01178741455078125, -0.0268096923828125, -0.0137939453125, -0.0211334228515625, 0.0035953521728515625, -0.07354736328125, 0.01213836669921875, -0.0120849609375, 0.038055419921875, -0.0195159912109375, 0.0170745849609375, -0.007457733154296875, 0.019378662109375, -0.025390625, -0.023101806640625, -0.007053375244140625, -0.09783935546875, -0.0287628173828125, 0.0273895263671875, 0.060791015625, -0.0308990478515625, -0.0008821487426757812, -0.03570556640625, 0.0592041015625, 0.00797271728515625, 0.015716552734375, -0.00031757354736328125, -0.00658416748046875, -0.0089111328125, -0.01403045654296875, 0.0036258697509765625, -0.02545166015625, -0.024627685546875, -0.0653076171875, -0.0031585693359375, -0.01541900634765625, -0.047760009765625, -0.006866455078125, -0.053924560546875, 0.033355712890625, -0.06494140625, -0.0501708984375, -0.0171661376953125, 0.00948333740234375, -0.004489898681640625, -0.0269622802734375, -0.0595703125, -0.0596923828125, 0.0290679931640625, 0.001220703125, 0.00717926025390625, 0.01047515869140625, 0.08807373046875, 0.0003941059112548828, -0.018218994140625, -0.116943359375, 0.01435089111328125, 0.034454345703125, 0.00952911376953125, 0.01313018798828125, -0.012115478515625, -0.03875732421875, 0.0579833984375, 0.0018396377563476562, -0.0069427490234375, 0.0002589225769042969, 0.0196380615234375, 0.00262451171875, -0.0162506103515625, 0.00400543212890625, -0.01358795166015625, 0.039764404296875, -0.00914764404296875, -0.0256500244140625, -0.0133819580078125, -0.043609619140625, 0.040313720703125, 0.027008056640625, 0.0113067626953125, -0.042938232421875, -0.0682373046875, 0.0220489501953125, -0.0377197265625, 0.0277252197265625, 0.0012674331665039062, 0.006755828857421875, 0.042724609375, 0.031982421875, 0.01058197021484375, 0.0294342041015625, 0.0157470703125, 0.01267242431640625, 0.0460205078125, 0.042388916015625, 0.0159454345703125, -0.001728057861328125, 0.01031494140625, -0.0300140380859375, 0.01509857177734375, -0.0147552490234375, -0.07781982421875, 0.051025390625, 0.036590576171875, -0.0323486328125, -0.0230560302734375, 0.0241851806640625, 0.034759521484375, -0.0167999267578125, -0.0171661376953125, -0.04925537109375, 0.0268402099609375, -0.055023193359375, 0.039642333984375, 0.018798828125, -0.017669677734375, 0.0256195068359375, 0.0023193359375, -0.00844573974609375, -0.0011167526245117188, 0.0009541511535644531, 0.07232666015625, 0.099609375, 0.0096435546875, 0.014892578125, 0.00832366943359375, -0.04656982421875, 0.01593017578125, -0.0207977294921875, -0.0274505615234375, -0.027984619140625, 0.0020656585693359375, 0.022796630859375, -0.0318603515625, 0.0063629150390625, 0.0299072265625, -0.0001800060272216797, -0.000024139881134033203, -0.01512908935546875, -0.024749755859375, -0.0298004150390625, 0.01007080078125, 0.017791748046875, -0.0126495361328125, -0.01163482666015625, -0.0110321044921875, -0.0088958740234375, 0.0134735107421875, 0.0201263427734375, -0.005481719970703125, -0.039520263671875, 0.036529541015625, 0.05340576171875, -0.0264129638671875, -0.0026950836181640625, -0.0148773193359375, -0.048065185546875, -0.028106689453125, 0.0005521774291992188, -0.0254974365234375, 0.036529541015625, -0.01010894775390625, 0.00792694091796875, -0.01457977294921875, -0.00803375244140625, -0.0155029296875, 0.0294342041015625, -0.0175018310546875, -0.041900634765625, -0.0137176513671875, -0.0168304443359375, -0.018890380859375, -0.0213165283203125, 0.03094482421875, 0.020477294921875, -0.0271453857421875, -0.029144287109375, -0.0284423828125, 0.0018911361694335938, 0.008056640625, 0.0496826171875, -0.0127716064453125, 0.041473388671875, -0.0162200927734375, 0.02227783203125, -0.020965576171875, 0.007076263427734375, 0.04107666015625, -0.006313323974609375, 0.01494598388671875, 0.0126495361328125, 0.018646240234375, -0.01470947265625, 0.005615234375, -0.046905517578125, -0.033782958984375, 0.023895263671875, -0.04150390625, -0.005126953125, 0.0029735565185546875, -0.0160369873046875, 0.0139923095703125, -0.035980224609375, -0.0080108642578125, -0.026885986328125, 0.0484619140625, -0.0394287109375, -0.014495849609375, 0.00775146484375, 0.0086517333984375, 0.061279296875, -0.03253173828125, -0.0311431884765625, 0.0443115234375, -0.01296234130859375, 0.04144287109375, 0.01168060302734375, 0.01812744140625, -0.006740570068359375, 0.03350830078125, -0.01953125, 0.051666259765625, 0.0157012939453125, 0.0284881591796875, 0.06072998046875, 0.0131988525390625, 0.00494384765625, -0.007354736328125, 0.04931640625, 0.0037384033203125, -0.0130157470703125, 0.01432037353515625, -0.020904541015625, 0.00704193115234375, -0.029022216796875, 0.0303802490234375, 0.01221466064453125, 0.0149383544921875, -0.0036678314208984375, -0.01904296875, 0.0323486328125, -0.01461029052734375, 0.02593994140625, -0.0031528472900390625, 0.043731689453125, 0.00614166259765625, -0.01509857177734375, 0.0020046234130859375, -0.03668212890625, 0.0107879638671875, 0.0257568359375, 0.022918701171875, -0.002574920654296875, -0.05517578125, -0.04461669921875, 0.037567138671875, -0.033660888671875, 0.004611968994140625, 0.031890869140625, -0.031341552734375, -0.0135498046875, -0.0250701904296875, -0.00323486328125, -0.0179901123046875, -0.01016998291015625, 0.019439697265625, -0.01751708984375, 0.0222015380859375, 0.0548095703125, -0.023040771484375, 0.00388336181640625, 0.017486572265625, -0.02337646484375, -0.043914794921875, -0.007282257080078125, 0.027374267578125, 0.039459228515625, -0.041473388671875, 0.041534423828125, -0.0297698974609375, -0.00970458984375, 0.00739288330078125, -0.0263214111328125, 0.037384033203125, -0.021942138671875, -0.01480865478515625, 0.047210693359375, -0.010345458984375, -0.0177764892578125, 0.01275634765625, -0.00897979736328125, -0.06768798828125, -0.0472412109375, 0.0160064697265625, -0.04901123046875, 0.01042938232421875, 0.031982421875, -0.0672607421875, 0.11358642578125, -0.00799560546875, 0.034423828125, 0.0201568603515625, 0.04180908203125, -0.00835418701171875, 0.017333984375, -0.0240325927734375, 0.004299163818359375, -0.022064208984375, -0.0122222900390625, -0.033599853515625, -0.0007457733154296875, -0.0283660888671875, 0.029022216796875, 0.07489013671875, 0.00577545166015625, -0.0174102783203125, -0.0113983154296875, 0.07708740234375, 0.055633544921875, 0.004802703857421875, 0.0156707763671875, 0.0002319812774658203, -0.035064697265625, 0.03216552734375, 0.021575927734375, 0.0302886962890625, 0.01445770263671875, -0.005401611328125, 0.0288238525390625, 0.002338409423828125, -0.006877899169921875, -0.03900146484375, 0.018463134765625, -0.028228759765625, -0.0286407470703125, 0.0291748046875, -0.020904541015625, 0.01727294921875, 0.06005859375, 0.06085205078125, -0.058380126953125, 0.01166534423828125, -0.044464111328125, 0.0653076171875, -0.0098419189453125, 0.004253387451171875, 0.0516357421875, 0.017303466796875, 0.046966552734375, -0.0007839202880859375, 0.004886627197265625, 0.0009660720825195312, 0.0080413818359375, 0.029388427734375, 0.02581787109375, 0.01837158203125, -0.031005859375, 0.0034122467041015625, 0.024932861328125, 0.05230712890625, -0.039337158203125, -0.01318359375, 0.0265655517578125, 0.020355224609375, -0.0256500244140625, -0.0154266357421875, -0.0275421142578125, -0.0163421630859375, 0.0285186767578125, -0.03314208984375, 0.01568603515625, 0.043212890625, 0.03680419921875, 0.01154327392578125, 0.03167724609375, -0.08282470703125, -0.0174407958984375, -0.034576416015625, -0.0037860870361328125, 0.0087432861328125, 0.04364013671875, 0.018829345703125, 0.0286865234375, 0.0055694580078125, -0.0113525390625, 0.009063720703125, 0.0384521484375, -0.01525115966796875, -0.0038433074951171875, -0.02227783203125, -0.06939697265625, 0.004283905029296875, 0.023040771484375, -0.001331329345703125, -0.009490966796875, 0.0148468017578125, 0.046661376953125, -0.00585174560546875, -0.01497650146484375, 0.0268707275390625, -0.005870819091796875, -0.0302734375, -0.036865234375, -0.04119873046875, -0.01540374755859375, -0.0240325927734375, 0.0267181396484375, -0.0175628662109375, 0.0160980224609375, -0.0312042236328125, -0.0015172958374023438, 0.005908966064453125, -0.0299530029296875, 0.0138092041015625, 0.0211334228515625, 0.010101318359375, 0.005390167236328125, -0.06964111328125, 0.00971221923828125, -0.039886474609375, -0.055389404296875, 0.018829345703125, 0.02325439453125, -0.048004150390625, 0.035430908203125, -0.0054931640625, -0.06915283203125, 0.002185821533203125, 0.057464599609375, 0.00980377197265625, 0.032562255859375, -0.004547119140625, -0.00879669189453125, -0.054779052734375, -0.0232391357421875, -0.0247955322265625, 0.0264129638671875, 0.02740478515625, 0.043426513671875, 0.002719879150390625, 0.0212860107421875, 0.031219482421875, 0.0019550323486328125, 0.0089263916015625, 0.0175323486328125, 0.049713134765625, -0.00405120849609375, 0.0096588134765625, -0.034210205078125, 0.0051116943359375, 0.029144287109375, 0.007442474365234375, -0.01739501953125, 0.0186004638671875, -0.02764892578125, 0.0148773193359375, 0.024017333984375, 0.04443359375, -0.03131103515625, -0.024261474609375, -0.057037353515625, -0.032257080078125, 0.03802490234375, 0.0163726806640625, -0.01061248779296875, 0.0440673828125, -0.024993896484375, -0.01192474365234375, 0.020843505859375, -0.04437255859375, 0.01401519775390625, 0.0263519287109375, -0.04248046875, -0.053802490234375, -0.01210784912109375, -0.0238800048828125, -0.0189666748046875, -0.00749969482421875, 0.0291290283203125, -0.00713348388671875, -0.07440185546875, 0.0008525848388671875, 0.00762939453125, -0.0108489990234375, -0.042144775390625, -0.007419586181640625, 0.050445556640625, -0.0256195068359375, -0.01477813720703125, 0.005702972412109375, -0.0115203857421875, -0.051788330078125, -0.00078582763671875, 0.00308990478515625, -0.0208587646484375, -0.0255889892578125, -0.00975799560546875, 0.00934600830078125, 0.0281524658203125, 0.00930023193359375, -0.04541015625, 0.04351806640625, -0.03265380859375, -0.006534576416015625, 0.002834320068359375, 0.043853759765625, -0.0174102783203125, -0.00563812255859375, -0.036712646484375, -0.035675048828125, -0.0294647216796875, 0.0404052734375, -0.0234832763671875, 0.01277923583984375, 0.024383544921875, -0.034423828125, -0.01543426513671875, 0.04083251953125, 0.0266265869140625, 0.07244873046875, 0.0004088878631591797, -0.02252197265625, -0.0160369873046875, 0.028594970703125, -0.004375457763671875, -0.07135009765625, 0.002155303955078125, -0.061981201171875, -0.0143585205078125, -0.004055023193359375, -0.007537841796875, 0.0051727294921875, -0.055816650390625, -0.09808349609375, 0.07122802734375, -0.0274810791015625, -0.0298309326171875, -0.0200042724609375, -0.00734710693359375, -0.041717529296875, 0.05828857421875, 0.0261383056640625, -0.04608154296875, -0.004138946533203125, 0.03533935546875, 0.004852294921875, -0.03656005859375, 0.032867431640625, -0.0189666748046875, -0.05352783203125, -0.002880096435546875, 0.0173492431640625, -0.01399993896484375, 0.01922607421875, -0.001628875732421875, 0.0506591796875, 0.055572509765625, -0.002422332763671875, 0.045074462890625, -0.0038127899169921875, -0.060638427734375, -0.012298583984375, -0.03900146484375, -0.061370849609375, -0.025421142578125, 0.05902099609375, 0.10614013671875, 0.0278472900390625, -0.042755126953125, 0.0099029541015625, -0.0189056396484375, -0.02587890625, 0.002227783203125, 0.0017633438110351562, -0.0325927734375, -0.01131439208984375, -0.005558013916015625, 0.0011463165283203125, -0.02825927734375, 0.01470184326171875, -0.0291900634765625, -0.04827880859375, -0.015960693359375, 0.0023193359375, -0.033782958984375, 0.048248291015625, 0.040802001953125, -0.044769287109375, 0.01198577880859375, -0.017120361328125, -0.02020263671875, 0.0224609375, -0.00007963180541992188, -0.0171661376953125, -0.04901123046875, -0.006832122802734375, 0.0369873046875, -0.0118560791015625, 0.0692138671875, -0.023895263671875, -0.020782470703125, -0.00907135009765625, -0.00815582275390625, -0.0016813278198242188, -0.016998291015625, -0.00014531612396240234, 0.005001068115234375, -0.00754547119140625, 0.03411865234375, -0.026611328125, 0.0219268798828125, 0.01044464111328125, -0.0189208984375, -0.0247344970703125, 0.01491546630859375, 0.028228759765625, -0.038482666015625, 0.0188140869140625, 0.028076171875, 0.01275634765625, 0.004413604736328125, -0.00579071044921875, -0.0240325927734375, 0.005016326904296875, -0.0004622936248779297 ]
5e99c467db87d039107a3175c2542df9aacf7f63
Wordpress Stackexchange Q: Delete post with all files attached to it On my site I have multiple authors, who can add/edit/delete custom posts and upload (attach) images to those posts. The problem is - when they delete their posts, attachments stay on the server. So, I would like to get rid of all files attached to the post when it gets deleted. Can anyone share and example how it's done? A: WP does not do this by default since there is no guarantee that attachment isn't still being used by some other post. Basic logic would be to hook into delete_post, query for child attachments and run wp_delete_attachment() on each. I did quick search in plugin repository and came up with tiny plugin that does just that (seems unmaintained so test before use) - Post Data Delete Advanced.
Q: Delete post with all files attached to it On my site I have multiple authors, who can add/edit/delete custom posts and upload (attach) images to those posts. The problem is - when they delete their posts, attachments stay on the server. So, I would like to get rid of all files attached to the post when it gets deleted. Can anyone share and example how it's done? A: WP does not do this by default since there is no guarantee that attachment isn't still being used by some other post. Basic logic would be to hook into delete_post, query for child attachments and run wp_delete_attachment() on each. I did quick search in plugin repository and came up with tiny plugin that does just that (seems unmaintained so test before use) - Post Data Delete Advanced. A: Expanding on other answers here for use with only a specific post type. add_action( 'before_delete_post', 'delete_all_attached_media' ); function delete_all_attached_media( $post_id ) { if( get_post_type($post_id) == "post" ) { $attachments = get_attached_media( '', $post_id ); foreach ($attachments as $attachment) { wp_delete_attachment( $attachment->ID, 'true' ); } } } This will delete all attached media when a post is permanently deleted. A: I wrote the following function that uses the logic suggested by @rarst in his answer. add_action( 'before_delete_post', function( $id ) { $attachments = get_attached_media( '', $id ); foreach ($attachments as $attachment) { wp_delete_attachment( $attachment->ID, 'true' ); } } ); IMPORTANT: Keep in mind it will only be called when the posts are permanently deleted from the trash! If you want to change this behaviour, include the following line in your wp-config.php file: define('EMPTY_TRASH_DAYS', 0); If this constant is set to 0, the trash functionality will be disabled and the 'Delete Permanently' button will appear instead of 'Trash' button. If you click 'Delete Permanently' button, the item will immediately be deleted without any alert message. (From the Codex) A: Any one still looking for a simple solution then try the following plugin it works with normal post/page, and custom post types - Delete Post with Attachments
wordpress
{ "language": "en", "length": 341, "provenance": "stackexchange_00019.jsonl.gz:410688", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21107" }
[ 0.031280517578125, -0.0028133392333984375, -0.008026123046875, 0.0003311634063720703, 0.00849151611328125, -0.033782958984375, 0.060760498046875, -0.03192138671875, 0.0176544189453125, 0.0209197998046875, 0.00435638427734375, -0.01342010498046875, 0.0189056396484375, -0.03228759765625, -0.01142120361328125, -0.0019359588623046875, 0.05731201171875, -0.0019378662109375, 0.0819091796875, 0.0160369873046875, 0.0035190582275390625, 0.058197021484375, 0.0738525390625, 0.01116180419921875, -0.0189666748046875, 0.07305908203125, 0.03900146484375, -0.017486572265625, -0.02777099609375, -0.035980224609375, -0.003772735595703125, 0.031646728515625, 0.0102386474609375, 0.0273590087890625, -0.017242431640625, 0.015716552734375, -0.0200653076171875, 0.01335906982421875, 0.0076446533203125, 0.01025390625, 0.031982421875, -0.01497650146484375, 0.031341552734375, 0.018890380859375, 0.00811767578125, -0.024993896484375, 0.0311126708984375, -0.058135986328125, 0.0257110595703125, -0.0005393028259277344, -0.002162933349609375, 0.00998687744140625, 0.02642822265625, -0.0338134765625, -0.03582763671875, -0.0489501953125, -0.011749267578125, 0.0379638671875, 0.042572021484375, -0.03277587890625, -0.0595703125, -0.016021728515625, 0.0283355712890625, -0.0236358642578125, 0.007190704345703125, -0.00243377685546875, -0.00415802001953125, 0.01532745361328125, -0.071533203125, -0.01287841796875, 0.05364990234375, -0.05133056640625, -0.01067352294921875, -0.031768798828125, 0.027099609375, 0.0007357597351074219, -0.00052642822265625, -0.01172637939453125, -0.0007882118225097656, 0.0225067138671875, 0.015594482421875, -0.0233306884765625, -0.02679443359375, -0.01351165771484375, -0.00008487701416015625, 0.006900787353515625, -0.0005717277526855469, -0.0168914794921875, -0.0116729736328125, -0.0275421142578125, -0.0229339599609375, -0.015838623046875, -0.01412200927734375, -0.00359344482421875, -0.037628173828125, -0.0092010498046875, 0.02740478515625, 0.0178070068359375, 0.008758544921875, 0.0107421875, -0.01255035400390625, -0.0377197265625, 0.005229949951171875, -0.0192108154296875, 0.005229949951171875, -0.0017452239990234375, -0.00885772705078125, -0.047637939453125, 0.01457977294921875, 0.029876708984375, -0.0285797119140625, 0.027374267578125, 0.0301666259765625, 0.0008716583251953125, -0.0119476318359375, -0.0000705718994140625, -0.00847625732421875, 0.045989990234375, -0.001064300537109375, 0.045440673828125, -0.0274810791015625, -0.0160064697265625, -0.0443115234375, -0.0157318115234375, 0.0280609130859375, -0.026123046875, -0.036102294921875, 0.059783935546875, 0.0238037109375, 0.013458251953125, -0.03814697265625, 0.02508544921875, 0.03875732421875, -0.01470947265625, -0.004329681396484375, -0.00766754150390625, -0.0161285400390625, -0.005023956298828125, 0.0128173828125, -0.01398468017578125, 0.051361083984375, -0.0382080078125, -0.0299530029296875, 0.04864501953125, -0.005176544189453125, 0.031341552734375, 0.016357421875, 0.00567626953125, -0.004238128662109375, -0.05633544921875, 0.0045013427734375, -0.009765625, 0.043426513671875, -0.01488494873046875, 0.0208587646484375, -0.0767822265625, 0.07537841796875, -0.0704345703125, 0.022857666015625, -0.08111572265625, 0.0291748046875, 0.007843017578125, 0.00713348388671875, -0.0033283233642578125, -0.0294189453125, -0.01456451416015625, -0.046661376953125, -0.0194549560546875, 0.01739501953125, -0.006816864013671875, -0.00652313232421875, -0.0628662109375, -0.036590576171875, -0.0067596435546875, -0.00484466552734375, 0.05059814453125, -0.00872039794921875, -0.01898193359375, 0.01543426513671875, 0.0576171875, 0.01520538330078125, -0.01242828369140625, 0.01392364501953125, 0.005641937255859375, -0.058441162109375, -0.0151214599609375, 0.01006317138671875, 0.051361083984375, 0.03802490234375, 0.02667236328125, 0.038177490234375, -0.020477294921875, -0.01824951171875, 0.01282501220703125, 0.0072784423828125, -0.0128631591796875, -0.039520263671875, -0.00930023193359375, -0.009735107421875, 0.0009746551513671875, -0.01071929931640625, -0.004791259765625, 0.0200653076171875, -0.00945281982421875, -0.0323486328125, 0.0049591064453125, -0.0220184326171875, 0.036041259765625, -0.05316162109375, 0.0166473388671875, 0.054931640625, 0.0219573974609375, -0.056549072265625, -0.0277099609375, 0.003795623779296875, 0.0017938613891601562, -0.01029205322265625, 0.002910614013671875, -0.009033203125, 0.025146484375, -0.0183258056640625, -0.033477783203125, -0.04180908203125, -0.00913238525390625, 0.0372314453125, -0.004093170166015625, -0.01873779296875, -0.026763916015625, 0.029083251953125, -0.002338409423828125, -0.0301666259765625, 0.03863525390625, -0.0193634033203125, -0.0222930908203125, -0.035919189453125, -0.016357421875, -0.01111602783203125, -0.06573486328125, 0.01178741455078125, 0.06219482421875, 0.00908660888671875, 0.040985107421875, -0.02410888671875, 0.0213470458984375, 0.05987548828125, 0.0019817352294921875, 0.006069183349609375, 0.015655517578125, 0.027191162109375, 0.058990478515625, -0.01427459716796875, -0.0054168701171875, 0.004726409912109375, -0.083984375, 0.023101806640625, 0.035858154296875, 0.0206451416015625, -0.00946807861328125, -0.03350830078125, 0.040802001953125, 0.00568389892578125, 0.014068603515625, -0.0382080078125, 0.015838623046875, 0.036590576171875, -0.0007429122924804688, 0.04254150390625, 0.0299224853515625, -0.013427734375, 0.010345458984375, 0.01284027099609375, -0.03460693359375, 0.007080078125, 0.038787841796875, 0.0243988037109375, 0.017486572265625, -0.01314544677734375, -0.0272216796875, 0.0158233642578125, 0.0301361083984375, -0.01181793212890625, 0.00762176513671875, 0.044769287109375, -0.01110076904296875, 0.01006317138671875, -0.0261688232421875, 0.0360107421875, -0.0226287841796875, -0.033782958984375, -0.02947998046875, -0.0014438629150390625, 0.0489501953125, 0.014068603515625, -0.0023193359375, 0.0269622802734375, 0.0027370452880859375, 0.003437042236328125, -0.062347412109375, 0.057708740234375, -0.038848876953125, 0.01580810546875, 0.08612060546875, 0.01335906982421875, 0.01393890380859375, 0.00556182861328125, 0.03814697265625, 0.0406494140625, 0.0171356201171875, 0.00799560546875, -0.0214080810546875, -0.0181121826171875, -0.03875732421875, 0.01024627685546875, 0.0694580078125, -0.040924072265625, -0.05841064453125, -0.01427459716796875, 0.009002685546875, -0.0909423828125, -0.0595703125, 0.0197906494140625, -0.05908203125, 0.0069580078125, -0.02471923828125, -0.031341552734375, -0.01181793212890625, 0.00370025634765625, 0.004322052001953125, -0.01442718505859375, 0.0184326171875, 0.0160064697265625, 0.0187835693359375, -0.01465606689453125, -0.019195556640625, 0.00113677978515625, 0.00666046142578125, 0.009033203125, 0.06072998046875, 0.0006551742553710938, -0.059661865234375, -0.0119171142578125, 0.0017147064208984375, -0.0194091796875, 0.0036373138427734375, 0.0231781005859375, -0.002368927001953125, -0.013031005859375, 0.00551605224609375, 0.0325927734375, 0.04376220703125, -0.049468994140625, 0.00011795759201049805, -0.004901885986328125, -0.0020351409912109375, 0.0113983154296875, -0.027313232421875, -0.00977325439453125, 0.0023174285888671875, -0.02301025390625, -0.051666259765625, 0.0157012939453125, -0.026580810546875, -0.0141754150390625, 0.00690460205078125, 0.00449371337890625, -0.007755279541015625, -0.031280517578125, 0.0294952392578125, 0.040924072265625, 0.0185394287109375, 0.0031108856201171875, 0.01009368896484375, 0.0171966552734375, 0.0024394989013671875, 0.033355712890625, -0.028900146484375, 0.022552490234375, -0.0254364013671875, 0.01329803466796875, 0.001483917236328125, -0.0077362060546875, -0.01535797119140625, -0.01268768310546875, -0.04364013671875, -0.0322265625, 0.0579833984375, -0.00759124755859375, 0.0107879638671875, -0.03338623046875, -0.039276123046875, -0.0133514404296875, 0.08746337890625, -0.036163330078125, -0.031982421875, -0.033447265625, 0.01186370849609375, 0.0195465087890625, -0.0421142578125, 0.038116455078125, -0.032440185546875, -0.047882080078125, 0.015838623046875, -0.0021495819091796875, -0.00827789306640625, -0.039642333984375, 0.036285400390625, -0.033447265625, -0.0238037109375, 0.0274505615234375, -0.06866455078125, 0.041473388671875, -0.019012451171875, 0.019805908203125, -0.032684326171875, -0.0146942138671875, -0.06219482421875, -0.039459228515625, 0.0019779205322265625, -0.0186309814453125, 0.0232391357421875, -0.0013570785522460938, 0.026123046875, -0.01372528076171875, 0.034698486328125, 0.01270294189453125, 0.0235748291015625, -0.033538818359375, -0.02532958984375, -0.020538330078125, 0.0039005279541015625, -0.0030002593994140625, -0.00982666015625, -0.0017490386962890625, -0.0560302734375, -0.04852294921875, -0.077392578125, -0.041595458984375, 0.009307861328125, -0.014434814453125, -0.01544952392578125, -0.02130126953125, -0.00598907470703125, -0.0265350341796875, 0.018524169921875, -0.0200347900390625, -0.00458526611328125, -0.0243072509765625, -0.040008544921875, 0.004131317138671875, -0.001995086669921875, -0.0212554931640625, 0.0267486572265625, 0.0557861328125, 0.0155029296875, 0.0041961669921875, -0.0921630859375, -0.0002753734588623047, 0.023406982421875, -0.022430419921875, 0.080078125, 0.05145263671875, 0.003429412841796875, 0.0290679931640625, 0.008697509765625, 0.024810791015625, -0.07916259765625, 0.07537841796875, -0.0280914306640625, 0.00543975830078125, 0.01806640625, -0.032196044921875, 0.045501708984375, 0.00502777099609375, -0.004962921142578125, 0.004924774169921875, 0.0274810791015625, 0.01116180419921875, -0.0029582977294921875, -0.0223388671875, -0.0163726806640625, -0.0284423828125, 0.0074615478515625, -0.019073486328125, 0.042999267578125, 0.0245513916015625, -0.005222320556640625, 0.033843994140625, 0.0304718017578125, -0.00013744831085205078, -0.0408935546875, 0.007526397705078125, -0.01033782958984375, 0.03619384765625, -0.02911376953125, 0.0098724365234375, -0.0399169921875, -0.0127716064453125, 0.044189453125, 0.0167236328125, -0.0286712646484375, -0.01016998291015625, -0.0027561187744140625, 0.01904296875, -0.00789642333984375, -0.01224517822265625, 0.036102294921875, 0.0233306884765625, -0.0168914794921875, -0.01534271240234375, -0.0443115234375, 0.005374908447265625, -0.0606689453125, 0.027252197265625, 0.0093536376953125, -0.00916290283203125, 0.03759765625, 0.0035915374755859375, -0.0190277099609375, 0.0177154541015625, -0.0024242401123046875, 0.033416748046875, 0.0056915283203125, 0.0245513916015625, 0.005405426025390625, 0.01470184326171875, -0.005725860595703125, 0.004261016845703125, -0.004383087158203125, -0.06439208984375, 0.008819580078125, 0.0262603759765625, 0.09161376953125, -0.004817962646484375, -0.05694580078125, 0.01654052734375, -0.06353759765625, -0.01427459716796875, 0.040008544921875, 0.0426025390625, -0.04486083984375, 0.003711700439453125, 0.029541015625, 0.01045989990234375, -0.0091400146484375, -0.0029697418212890625, -0.015350341796875, -0.0160980224609375, -0.01091766357421875, 0.004337310791015625, -0.039642333984375, -0.018829345703125, -0.0084991455078125, -0.00742340087890625, -0.00616455078125, -0.0171356201171875, -0.0172882080078125, -0.027191162109375, -0.0179443359375, -0.013336181640625, 0.05810546875, -0.0019626617431640625, 0.00917816162109375, -0.001800537109375, -0.0274200439453125, 0.0328369140625, 0.004169464111328125, 0.056427001953125, 0.0140838623046875, -0.03631591796875, -0.00768280029296875, -0.041015625, -0.0218658447265625, 0.0231475830078125, -0.0284881591796875, -0.035186767578125, -0.0218048095703125, 0.0208282470703125, 0.029541015625, 0.00018537044525146484, -0.023284912109375, -0.010589599609375, 0.0013427734375, 0.0178070068359375, 0.0289306640625, 0.0170135498046875, 0.035552978515625, -0.017120361328125, 0.044342041015625, 0.0220184326171875, 0.012542724609375, -0.0279693603515625, -0.02685546875, 0.01226043701171875, -0.0667724609375, -0.0251922607421875, 0.0009775161743164062, -0.0201263427734375, 0.004669189453125, -0.023406982421875, 0.00952911376953125, -0.0191497802734375, -0.0355224609375, -0.0122528076171875, -0.03729248046875, 0.10675048828125, -0.0107879638671875, 0.035980224609375, -0.0400390625, -0.019195556640625, 0.0302276611328125, -0.01387786865234375, -0.004058837890625, 0.004817962646484375, -0.016754150390625, -0.0038890838623046875, 0.0211181640625, 0.00994873046875, 0.010223388671875, 0.0312042236328125, -0.0305023193359375, 0.00473785400390625, 0.0228424072265625, -0.005008697509765625, 0.006389617919921875, -0.000911712646484375, 0.0017538070678710938, -0.026947021484375, 0.03515625, -0.004795074462890625, -0.00856781005859375, 0.0181884765625, -0.021087646484375, 0.01016998291015625, -0.004180908203125, 0.028656005859375, -0.038604736328125, 0.03228759765625, -0.006191253662109375, 0.006313323974609375, 0.05224609375, -0.00030732154846191406, 0.00971221923828125, 0.0151214599609375, -0.01012420654296875, 0.018218994140625, -0.0209503173828125, -0.0078277587890625, 0.01338958740234375, 0.0126800537109375, -0.0109100341796875, 0.00974273681640625, -0.01132965087890625, -0.042816162109375, -0.01262664794921875, 0.048370361328125, -0.012420654296875, -0.024200439453125, 0.001056671142578125, 0.004627227783203125, -0.004039764404296875, -0.04876708984375, 0.02850341796875, -0.033111572265625, 0.01153564453125, 0.03216552734375, -0.02764892578125, 0.0205230712890625, 0.04766845703125, -0.0206756591796875, 0.0251922607421875, 0.0211181640625, -0.0260772705078125, -0.099365234375, -0.047210693359375, 0.0272369384765625, 0.050140380859375, -0.050872802734375, 0.053955078125, -0.0312042236328125, -0.0306243896484375, -0.0124664306640625, -0.0032672882080078125, 0.07958984375, -0.08880615234375, 0.0153045654296875, 0.03570556640625, 0.056365966796875, -0.007762908935546875, -0.0173187255859375, -0.00864410400390625, -0.0469970703125, -0.00847625732421875, -0.016754150390625, -0.0227203369140625, -0.0171661376953125, -0.0379638671875, -0.0728759765625, 0.10333251953125, -0.01383209228515625, 0.030364990234375, -0.012847900390625, 0.04388427734375, 0.00783538818359375, 0.0352783203125, -0.04583740234375, 0.076904296875, 0.03399658203125, 0.015899658203125, -0.06939697265625, -0.00823974609375, -0.0190582275390625, 0.029327392578125, 0.10528564453125, 0.0156402587890625, -0.0037326812744140625, -0.0219879150390625, 0.06195068359375, 0.041595458984375, -0.0103302001953125, 0.01509857177734375, 0.00788116455078125, 0.0009870529174804688, 0.01163482666015625, -0.006641387939453125, 0.0296630859375, -0.023712158203125, -0.0239715576171875, 0.0159759521484375, 0.0167236328125, 0.03240966796875, 0.0052490234375, 0.028045654296875, -0.0173187255859375, -0.00583648681640625, 0.0218505859375, -0.01861572265625, 0.0147552490234375, 0.02374267578125, 0.06048583984375, -0.0673828125, -0.03173828125, -0.010711669921875, 0.05877685546875, 0.019439697265625, 0.035797119140625, 0.032470703125, 0.0217132568359375, 0.002437591552734375, -0.0253143310546875, 0.0238037109375, 0.00704193115234375, -0.04742431640625, 0.0408935546875, 0.00872039794921875, 0.023681640625, -0.0421142578125, 0.002048492431640625, 0.020050048828125, 0.039764404296875, -0.0318603515625, -0.044464111328125, 0.0238800048828125, 0.01035308837890625, -0.008758544921875, -0.0034198760986328125, -0.006195068359375, -0.053466796875, 0.01497650146484375, -0.043121337890625, 0.01313018798828125, 0.00194549560546875, 0.049530029296875, -0.00955963134765625, 0.0004451274871826172, -0.045135498046875, -0.0207672119140625, -0.0175323486328125, 0.0101318359375, 0.004062652587890625, -0.0184783935546875, -0.007640838623046875, 0.0282135009765625, 0.053466796875, 0.018707275390625, 0.01219940185546875, 0.033599853515625, -0.010040283203125, -0.01561737060546875, -0.033966064453125, -0.09185791015625, 0.02557373046875, 0.037017822265625, 0.03851318359375, -0.004810333251953125, 0.0701904296875, 0.0266265869140625, -0.06689453125, -0.0169830322265625, -0.0257720947265625, -0.03857421875, 0.0139923095703125, -0.023712158203125, 0.00177764892578125, 0.01397705078125, -0.01666259765625, -0.0217132568359375, -0.0038661956787109375, 0.04931640625, -0.01142120361328125, 0.02301025390625, 0.0011548995971679688, -0.0139007568359375, 0.05621337890625, -0.013916015625, 0.04022216796875, 0.004451751708984375, -0.053619384765625, -0.0037078857421875, -0.0406494140625, -0.0093536376953125, 0.0080108642578125, 0.0266265869140625, -0.01039886474609375, 0.019622802734375, -0.012939453125, -0.033966064453125, 0.0203399658203125, -0.00000858306884765625, -0.0013952255249023438, 0.00007605552673339844, 0.0003986358642578125, -0.01959228515625, -0.0240325927734375, -0.006755828857421875, -0.0006155967712402344, 0.01529693603515625, 0.01515960693359375, 0.040679931640625, 0.0037212371826171875, 0.019744873046875, -0.0027141571044921875, 0.06390380859375, -0.039825439453125, 0.00751495361328125, -0.00226593017578125, 0.018218994140625, 0.0256195068359375, -0.026824951171875, -0.0110321044921875, 0.0175323486328125, 0.0280303955078125, -0.037750244140625, -0.007434844970703125, -0.0023097991943359375, 0.0105743408203125, -0.003643035888671875, 0.0006833076477050781, -0.0168304443359375, 0.01904296875, -0.00775146484375, -0.03070068359375, 0.042724609375, 0.01148223876953125, 0.0026798248291015625, 0.0243682861328125, 0.04461669921875, -0.00939178466796875, 0.039794921875, -0.019134521484375, 0.058868408203125, 0.045318603515625, -0.0012464523315429688, -0.07763671875, -0.00856781005859375, -0.0041351318359375, -0.0241241455078125, 0.007843017578125, 0.031494140625, 0.02716064453125, -0.041046142578125, -0.049560546875, -0.01513671875, 0.03460693359375, 0.0125885009765625, 0.01479339599609375, -0.0662841796875, 0.00498199462890625, 0.01194000244140625, -0.00125885009765625, -0.01242828369140625, -0.0302734375, -0.02496337890625, 0.0203094482421875, -0.045928955078125, -0.04290771484375, -0.07122802734375, -0.020233154296875, 0.0284881591796875, 0.0230255126953125, -0.06805419921875, 0.037933349609375, 0.0013284683227539062, -0.0204010009765625, 0.005840301513671875, -0.0022430419921875, -0.025482177734375, 0.024932861328125, 0.0069122314453125, -0.067138671875, -0.058929443359375, 0.08331298828125, -0.05120849609375, 0.0341796875, 0.018524169921875, -0.02862548828125, 0.0278472900390625, 0.04638671875, 0.063720703125, 0.09027099609375, 0.0243377685546875, -0.029876708984375, -0.023284912109375, 0.018829345703125, 0.019073486328125, -0.01541900634765625, 0.004108428955078125, 0.006191253662109375, -0.0255126953125, -0.00890350341796875, 0.0328369140625, 0.047515869140625, -0.0158843994140625, -0.0673828125, 0.07659912109375, -0.0271759033203125, -0.027587890625, -0.04876708984375, 0.028350830078125, 0.004932403564453125, 0.0005617141723632812, -0.01015472412109375, -0.0074462890625, -0.032501220703125, 0.002532958984375, -0.01198577880859375, 0.02850341796875, 0.00843048095703125, 0.0006237030029296875, -0.00118255615234375, 0.01029205322265625, 0.005191802978515625, -0.01396942138671875, 0.039947509765625, -0.04083251953125, 0.07537841796875, 0.07806396484375, -0.0013885498046875, 0.043182373046875, 0.00821685791015625, -0.08221435546875, -0.0128326416015625, 0.0027313232421875, -0.03118896484375, 0.01143646240234375, 0.05120849609375, 0.0865478515625, 0.0283660888671875, -0.039093017578125, 0.003448486328125, -0.019012451171875, -0.0018625259399414062, -0.004852294921875, -0.0074615478515625, -0.009735107421875, 0.00577545166015625, -0.0182952880859375, -0.0214691162109375, -0.031036376953125, -0.03167724609375, -0.050048828125, -0.00722503662109375, -0.032745361328125, 0.0217437744140625, -0.017730712890625, 0.030731201171875, 0.03289794921875, -0.00992584228515625, 0.039703369140625, -0.0249176025390625, 0.00299835205078125, 0.04931640625, 0.01262664794921875, 0.00923919677734375, 0.0111541748046875, -0.04949951171875, 0.018157958984375, 0.0028095245361328125, 0.0301361083984375, -0.03936767578125, -0.0204620361328125, -0.0202789306640625, 0.02392578125, 0.0078277587890625, 0.0261383056640625, -0.005115509033203125, 0.0379638671875, 0.0230712890625, 0.0172576904296875, -0.0011234283447265625, -0.004611968994140625, -0.0029239654541015625, 0.0113372802734375, -0.01171112060546875, -0.006397247314453125, 0.0369873046875, -0.05694580078125, -0.01351165771484375, 0.002902984619140625, -0.0168609619140625, -0.08416748046875, 0.050384521484375, 0.0277557373046875, 0.0291900634765625, 0.03570556640625 ]
bfcf52fc5e800f01b52d57601766f41f63b1349a
Wordpress Stackexchange Q: Completely disable editor How should I completely disable the visual and html editor from pages? I know I can disable the visual editor in my profile, but I am trying to lock down the content input areas so that my client doesn't muck things up. A: Why not use custom post types and don't add any support for the editor, that is afterall what they are for and the easiest way . The answer in this post covers how to do that, Hide content box with Custom Post Type? http://codex.wordpress.org/Function_Reference/register_post_type To remove that functionality for pages or posts (and custom types) you can try and use remove_post_type_support . For pages; add_action('init', 'my_remove_editor_from_post_type'); function my_remove_editor_from_post_type() { remove_post_type_support( 'page', 'editor' ); } Ref: http://codex.wordpress.org/Function_Reference/remove_post_type_support A hacky solution is to use CSS display:none; for the #editorcontainer or one of the sub id or classes. You can also then enqueue that style only for particular users.
Q: Completely disable editor How should I completely disable the visual and html editor from pages? I know I can disable the visual editor in my profile, but I am trying to lock down the content input areas so that my client doesn't muck things up. A: Why not use custom post types and don't add any support for the editor, that is afterall what they are for and the easiest way . The answer in this post covers how to do that, Hide content box with Custom Post Type? http://codex.wordpress.org/Function_Reference/register_post_type To remove that functionality for pages or posts (and custom types) you can try and use remove_post_type_support . For pages; add_action('init', 'my_remove_editor_from_post_type'); function my_remove_editor_from_post_type() { remove_post_type_support( 'page', 'editor' ); } Ref: http://codex.wordpress.org/Function_Reference/remove_post_type_support A hacky solution is to use CSS display:none; for the #editorcontainer or one of the sub id or classes. You can also then enqueue that style only for particular users. A: Think this might be what your looking for, code and more info from wpsnipp: add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') ); add_action( 'admin_head', 'disable_html_editor_wps' ); function disable_html_editor_wps() { global $current_user; get_currentuserinfo(); if ($current_user_can('manage_options') { echo '<style type="text/css">#editor-toolbar #edButtonHTML, #quicktags {display: none;}</style>'; } } i've altered it from using user levels to using if ($current_user_can('manage_options') { so this should remove it for everybody but admin, code needs to gi in your themes functions.php
wordpress
{ "language": "en", "length": 225, "provenance": "stackexchange_00019.jsonl.gz:410693", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21123" }
[ 0.059051513671875, -0.0172119140625, 0.0079803466796875, 0.0012149810791015625, 0.00251007080078125, -0.045257568359375, 0.06683349609375, -0.0253143310546875, 0.043304443359375, 0.034576416015625, 0.0267181396484375, -0.035369873046875, 0.0122222900390625, -0.047393798828125, -0.0301666259765625, -0.005279541015625, 0.007411956787109375, 0.0228729248046875, 0.035430908203125, -0.021697998046875, 0.03472900390625, -0.0187225341796875, 0.01690673828125, -0.0209197998046875, 0.00818634033203125, 0.0340576171875, 0.036285400390625, 0.005092620849609375, -0.0192413330078125, -0.019805908203125, 0.0161590576171875, -0.00135040283203125, -0.0004436969757080078, 0.034454345703125, -0.050140380859375, -0.004062652587890625, -0.035888671875, 0.03302001953125, 0.0179443359375, -0.0155487060546875, 0.0181427001953125, -0.006458282470703125, -0.01003265380859375, -0.019317626953125, -0.0292510986328125, -0.016815185546875, 0.0178070068359375, -0.0147247314453125, 0.0263214111328125, -0.039886474609375, -0.01016998291015625, 0.039703369140625, 0.031982421875, -0.054473876953125, -0.025482177734375, -0.021728515625, -0.00567626953125, -0.025970458984375, 0.00359344482421875, 0.050018310546875, 0.0246429443359375, 0.0178985595703125, -0.0120391845703125, -0.02862548828125, 0.00984954833984375, 0.0024852752685546875, 0.00821685791015625, 0.01995849609375, -0.062042236328125, 0.022613525390625, 0.046630859375, -0.061370849609375, 0.02593994140625, -0.0237884521484375, -0.00278472900390625, 0.002407073974609375, -0.0157012939453125, -0.00023162364959716797, 0.021331787109375, -0.0271148681640625, 0.009521484375, 0.0389404296875, -0.062347412109375, -0.01611328125, 0.004756927490234375, 0.00461578369140625, -0.00896453857421875, -0.0220489501953125, -0.0174102783203125, -0.01309967041015625, -0.013946533203125, 0.00075531005859375, -0.0263671875, 0.0269775390625, -0.01800537109375, -0.00461578369140625, 0.0266876220703125, 0.01528167724609375, 0.0097808837890625, -0.00824737548828125, 0.04119873046875, -0.07330322265625, 0.04925537109375, -0.03564453125, 0.0206298828125, 0.046966552734375, -0.03192138671875, -0.035064697265625, 0.046234130859375, 0.0226593017578125, 0.0187835693359375, 0.0017118453979492188, 0.004024505615234375, 0.00765228271484375, 0.01177215576171875, 0.00023221969604492188, -0.0299530029296875, 0.039886474609375, -0.01812744140625, 0.0299224853515625, -0.0008306503295898438, 0.025360107421875, -0.034423828125, -0.03997802734375, -0.0008263587951660156, -0.034698486328125, -0.0047149658203125, 0.007232666015625, 0.06536865234375, -0.0206298828125, -0.0760498046875, -0.005706787109375, 0.143310546875, 0.07623291015625, 0.0843505859375, -0.01457977294921875, -0.013763427734375, -0.03155517578125, 0.0012531280517578125, 0.01776123046875, -0.025421142578125, -0.0287933349609375, 0.047607421875, -0.01678466796875, -0.039703369140625, 0.0384521484375, 0.01366424560546875, 0.0010585784912109375, -0.024383544921875, -0.07147216796875, -0.007633209228515625, -0.035614013671875, 0.020111083984375, 0.0240936279296875, 0.00939178466796875, -0.040802001953125, 0.053466796875, -0.0361328125, -0.0008020401000976562, -0.054229736328125, 0.01093292236328125, 0.006481170654296875, 0.040374755859375, -0.0225067138671875, -0.0293121337890625, -0.01113128662109375, -0.050018310546875, -0.01364898681640625, 0.022003173828125, 0.01001739501953125, 0.0124053955078125, -0.053131103515625, 0.00832366943359375, -0.016571044921875, -0.0063934326171875, 0.037322998046875, 0.007068634033203125, 0.0010423660278320312, -0.00547027587890625, 0.0318603515625, -0.0130767822265625, -0.043731689453125, 0.00676727294921875, -0.018096923828125, -0.08197021484375, 0.0311737060546875, 0.005893707275390625, 0.038330078125, 0.02703857421875, -0.001026153564453125, 0.07281494140625, 0.026702880859375, -0.01087188720703125, -0.02001953125, 0.044097900390625, -0.0328369140625, -0.0364990234375, -0.053436279296875, 0.004070281982421875, 0.025909423828125, 0.04205322265625, -0.0220947265625, 0.0013828277587890625, -0.0596923828125, -0.10748291015625, -0.0242462158203125, -0.0213470458984375, 0.0469970703125, 0.00003254413604736328, 0.0026683807373046875, 0.01158905029296875, -0.036895751953125, -0.01788330078125, 0.03253173828125, -0.0234527587890625, -0.0251312255859375, 0.0016613006591796875, 0.055694580078125, 0.0018148422241210938, 0.02978515625, 0.0084991455078125, -0.050872802734375, 0.0231170654296875, 0.0233306884765625, 0.04248046875, 0.003833770751953125, -0.01129913330078125, 0.0006580352783203125, 0.0626220703125, 0.000667572021484375, 0.035675048828125, 0.0187225341796875, 0.027130126953125, -0.0018768310546875, -0.037200927734375, -0.0050048828125, -0.0121002197265625, -0.06549072265625, -0.01629638671875, 0.061370849609375, 0.032135009765625, 0.0291595458984375, -0.024993896484375, -0.0202484130859375, 0.039306640625, -0.0439453125, 0.0036029815673828125, -0.0091705322265625, 0.011260986328125, 0.04974365234375, -0.04248046875, 0.0240020751953125, 0.0214996337890625, -0.0038604736328125, 0.0197296142578125, 0.03326416015625, 0.005161285400390625, 0.0260009765625, 0.0384521484375, -0.02215576171875, 0.00476837158203125, 0.0278778076171875, -0.0078887939453125, -0.0130615234375, 0.026519775390625, -0.00396728515625, 0.036834716796875, 0.0289764404296875, -0.01959228515625, -0.002716064453125, 0.01245880126953125, 0.004421234130859375, -0.006061553955078125, 0.02099609375, 0.055450439453125, -0.0087890625, -0.0170745849609375, -0.02056884765625, -0.0013027191162109375, 0.0107879638671875, -0.028167724609375, -0.0014781951904296875, -0.0106353759765625, -0.00795745849609375, 0.0178680419921875, -0.03955078125, 0.0229644775390625, -0.01708984375, -0.031524658203125, -0.00537109375, 0.0018491744995117188, 0.0231475830078125, -0.0225982666015625, 0.0216827392578125, 0.0004374980926513672, -0.00804901123046875, 0.039642333984375, -0.047943115234375, 0.032012939453125, -0.006916046142578125, 0.0504150390625, 0.06475830078125, 0.01131439208984375, -0.0020465850830078125, 0.0272369384765625, -0.026702880859375, 0.034210205078125, 0.034423828125, 0.0295257568359375, 0.0206146240234375, -0.049468994140625, 0.005462646484375, 0.0119171142578125, -0.02032470703125, 0.0023040771484375, -0.0245208740234375, -0.021728515625, 0.009765625, -0.046966552734375, 0.00531005859375, 0.0205535888671875, -0.04046630859375, -0.037750244140625, 0.01910400390625, -0.0295562744140625, 0.005542755126953125, 0.0396728515625, -0.01018524169921875, -0.0269622802734375, 0.0001995563507080078, 0.01678466796875, -0.007228851318359375, -0.0013017654418945312, -0.0263519287109375, -0.0016994476318359375, -0.004955291748046875, 0.0143280029296875, 0.06378173828125, 0.006679534912109375, -0.051910400390625, 0.0242767333984375, -0.07080078125, -0.0248260498046875, 0.04638671875, -0.006256103515625, -0.0323486328125, 0.01155853271484375, -0.0036907196044921875, -0.055877685546875, -0.0190887451171875, 0.038116455078125, -0.022369384765625, 0.00821685791015625, 0.01320648193359375, 0.020751953125, 0.023529052734375, -0.002704620361328125, 0.00949859619140625, 0.016265869140625, -0.039642333984375, -0.0008897781372070312, -0.01163482666015625, -0.0197296142578125, -0.0199432373046875, -0.00876617431640625, -0.00551605224609375, -0.02825927734375, 0.033660888671875, 0.012298583984375, 0.029541015625, 0.042633056640625, -0.01136016845703125, 0.01258087158203125, 0.00481414794921875, 0.005092620849609375, -0.0239105224609375, 0.0146942138671875, -0.0280303955078125, 0.045318603515625, -0.0021266937255859375, -0.016510009765625, -0.01149749755859375, -0.0027332305908203125, -0.0124664306640625, -0.010986328125, 0.0501708984375, 0.00617218017578125, 0.0124359130859375, -0.002895355224609375, -0.03277587890625, 0.0157318115234375, 0.06280517578125, -0.035247802734375, -0.004703521728515625, -0.0277252197265625, -0.015716552734375, 0.0006036758422851562, -0.01953125, -0.03863525390625, 0.007205963134765625, -0.06707763671875, 0.041229248046875, 0.0031871795654296875, -0.0179443359375, -0.04803466796875, -0.006649017333984375, -0.06634521484375, -0.032958984375, 0.029083251953125, -0.01470947265625, -0.03240966796875, 0.041015625, -0.04364013671875, 0.00266265869140625, -0.030487060546875, 0.00029397010803222656, -0.08349609375, -0.01126861572265625, -0.01395416259765625, 0.046142578125, -0.01407623291015625, 0.0283660888671875, -0.03704833984375, 0.020843505859375, 0.0021820068359375, 0.01424407958984375, 0.00795745849609375, 0.00885772705078125, -0.0168304443359375, 0.016387939453125, 0.019439697265625, -0.023681640625, 0.004543304443359375, 0.00994873046875, -0.0111236572265625, 0.0014581680297851562, -0.04278564453125, -0.04931640625, 0.01071929931640625, -0.039459228515625, -0.020538330078125, -0.036895751953125, -0.090576171875, 0.005184173583984375, -0.0291900634765625, -0.0236358642578125, -0.038818359375, -0.06854248046875, 0.049530029296875, 0.0093536376953125, -0.024017333984375, -0.0035495758056640625, 0.05108642578125, 0.01739501953125, -0.0306854248046875, -0.0214996337890625, 0.01361083984375, 0.041900634765625, 0.006591796875, 0.0047149658203125, 0.01183319091796875, -0.034393310546875, 0.034912109375, 0.0227203369140625, -0.0076751708984375, -0.06756591796875, 0.050994873046875, -0.01332855224609375, -0.01216888427734375, 0.01325225830078125, -0.034576416015625, 0.07733154296875, 0.01318359375, 0.0009737014770507812, -0.004993438720703125, 0.0232696533203125, 0.0194854736328125, -0.00591278076171875, -0.01444244384765625, -0.0216522216796875, -0.006988525390625, -0.00933074951171875, 0.039642333984375, 0.038482666015625, 0.042510986328125, 0.007144927978515625, 0.0228729248046875, 0.04034423828125, -0.0157470703125, 0.0194091796875, 0.012298583984375, -0.005828857421875, 0.0206756591796875, -0.007476806640625, -0.0293731689453125, -0.002605438232421875, -0.00165557861328125, -0.009613037109375, -0.00783538818359375, -0.0352783203125, -0.047607421875, 0.0080718994140625, 0.04705810546875, 0.006977081298828125, -0.00040793418884277344, 0.043701171875, 0.0276031494140625, -0.003978729248046875, 0.0016117095947265625, 0.0064849853515625, -0.00399017333984375, -0.04833984375, -0.041229248046875, 0.0026493072509765625, -0.0279998779296875, 0.014373779296875, 0.025421142578125, -0.0231475830078125, 0.00783538818359375, -0.001422882080078125, 0.0455322265625, 0.0144500732421875, 0.0244140625, 0.014007568359375, 0.0133819580078125, 0.0038299560546875, -0.01396942138671875, -0.0166015625, -0.045989990234375, -0.055816650390625, 0.040435791015625, 0.057830810546875, -0.007480621337890625, -0.0013189315795898438, -0.01666259765625, -0.00237274169921875, -0.0099945068359375, 0.008453369140625, -0.01068878173828125, -0.0439453125, 0.003925323486328125, 0.01422119140625, -0.0084228515625, -0.0229034423828125, -0.0227508544921875, 0.0203094482421875, -0.0272979736328125, -0.010833740234375, 0.04241943359375, -0.0714111328125, 0.00867462158203125, 0.036102294921875, -0.0328369140625, -0.00846099853515625, 0.006374359130859375, -0.07049560546875, -0.0277862548828125, 0.003437042236328125, -0.002044677734375, 0.0239410400390625, -0.039154052734375, 0.027099609375, -0.032806396484375, 0.01453399658203125, -0.027740478515625, 0.01727294921875, 0.035797119140625, 0.0219573974609375, -0.0501708984375, -0.01015472412109375, -0.05755615234375, -0.01172637939453125, -0.051605224609375, -0.043365478515625, -0.052734375, -0.01059722900390625, -0.0016145706176757812, 0.0156402587890625, 0.0013933181762695312, 0.01110076904296875, -0.0038471221923828125, 0.056640625, -0.00415802001953125, 0.106689453125, -0.0128021240234375, 0.05328369140625, -0.0093536376953125, 0.074462890625, -0.002979278564453125, 0.01364898681640625, -0.01102447509765625, -0.021484375, 0.0251312255859375, -0.0174713134765625, -0.045867919921875, -0.04010009765625, -0.00754547119140625, 0.0208892822265625, 0.038726806640625, -0.01503753662109375, -0.01611328125, -0.0198974609375, 0.00011008977890014648, -0.040496826171875, 0.031402587890625, -0.0301666259765625, 0.0068359375, -0.050201416015625, -0.0264129638671875, 0.004627227783203125, -0.0022449493408203125, -0.031951904296875, 0.025970458984375, 0.002544403076171875, 0.016754150390625, 0.01418304443359375, 0.0145416259765625, 0.0019817352294921875, 0.0174102783203125, -0.011962890625, 0.033294677734375, -0.0010271072387695312, 0.01314544677734375, 0.0345458984375, 0.0162200927734375, -0.00937652587890625, -0.0174560546875, 0.052001953125, 0.023773193359375, -0.0017004013061523438, 0.047760009765625, -0.0156707763671875, 0.02728271484375, 0.0853271484375, 0.095947265625, -0.11505126953125, 0.006076812744140625, 0.0281982421875, -0.00673675537109375, 0.041534423828125, -0.055450439453125, -0.00397491455078125, -0.055877685546875, 0.06158447265625, 0.00881195068359375, -0.041412353515625, -0.00731658935546875, -0.036590576171875, -0.0176849365234375, -0.00954437255859375, 0.07586669921875, 0.0130462646484375, -0.02490234375, 0.006683349609375, 0.0193023681640625, 0.0104522705078125, -0.045013427734375, -0.00923919677734375, 0.004589080810546875, -0.03265380859375, -0.09619140625, -0.01512908935546875, 0.0023345947265625, -0.00942230224609375, 0.07000732421875, 0.004878997802734375, -0.01251220703125, 0.059326171875, -0.039031982421875, 0.05029296875, 0.0176544189453125, -0.056976318359375, -0.04522705078125, -0.0276947021484375, 0.007213592529296875, 0.012664794921875, -0.029449462890625, 0.0269622802734375, -0.0037021636962890625, -0.0310821533203125, -0.005340576171875, 0.0242767333984375, 0.05963134765625, 0.0159149169921875, -0.04931640625, 0.032012939453125, -0.0095062255859375, -0.031219482421875, -0.0496826171875, -0.04327392578125, -0.019866943359375, 0.020660400390625, -0.071533203125, -0.04620361328125, 0.0223236083984375, -0.081787109375, -0.0736083984375, 0.09808349609375, 0.004436492919921875, 0.0301971435546875, -0.01085662841796875, 0.032867431640625, -0.033294677734375, 0.00408172607421875, -0.005733489990234375, 0.0189361572265625, 0.00447845458984375, 0.0416259765625, 0.020172119140625, -0.0013427734375, 0.03509521484375, 0.039215087890625, 0.05224609375, -0.0000597834587097168, -0.0108642578125, -0.0175323486328125, 0.0556640625, 0.047576904296875, 0.0036373138427734375, 0.0244140625, -0.00930023193359375, 0.0157470703125, 0.0113525390625, -0.04180908203125, 0.02996826171875, -0.0506591796875, -0.0265655517578125, -0.0004220008850097656, 0.01226806640625, 0.0087738037109375, 0.0167388916015625, 0.00666046142578125, -0.006195068359375, 0.005374908447265625, 0.0002739429473876953, 0.0007171630859375, 0.00414276123046875, -0.00057220458984375, 0.03472900390625, -0.08233642578125, -0.00662994384765625, -0.031402587890625, 0.0513916015625, 0.025634765625, -0.0233306884765625, 0.0220489501953125, 0.0134429931640625, -0.05975341796875, 0.004734039306640625, 0.003673553466796875, 0.0159149169921875, -0.0131072998046875, 0.0009899139404296875, -0.006603240966796875, 0.005207061767578125, -0.045806884765625, 0.007289886474609375, 0.0312042236328125, -0.0127410888671875, -0.01171875, -0.02960205078125, 0.0147857666015625, 0.0037364959716796875, -0.004215240478515625, -0.0218353271484375, -0.0093841552734375, -0.005584716796875, 0.032012939453125, -0.0413818359375, 0.003986358642578125, 0.01177978515625, 0.0191650390625, -0.0140228271484375, 0.009552001953125, -0.016937255859375, -0.005275726318359375, -0.0285186767578125, -0.0239410400390625, 0.01849365234375, 0.0119781494140625, 0.035614013671875, 0.005157470703125, 0.0579833984375, 0.0033702850341796875, -0.049224853515625, 0.0229949951171875, -0.0021686553955078125, 0.0675048828125, -0.06048583984375, -0.005504608154296875, 0.000009417533874511719, 0.0435791015625, 0.01386260986328125, 0.012176513671875, 0.031402587890625, 0.02728271484375, -0.020233154296875, -0.008331298828125, -0.0018939971923828125, -0.018524169921875, -0.01529693603515625, -0.01131439208984375, -0.01284027099609375, 0.034393310546875, -0.004596710205078125, 0.01207733154296875, 0.0014600753784179688, 0.049957275390625, -0.0069580078125, 0.0010652542114257812, 0.006572723388671875, -0.0204925537109375, 0.02630615234375, 0.0015592575073242188, 0.010284423828125, 0.020751953125, -0.055511474609375, -0.006046295166015625, -0.033050537109375, -0.00853729248046875, 0.01197052001953125, 0.02227783203125, -0.04193115234375, 0.0516357421875, 0.045623779296875, -0.006992340087890625, -0.022674560546875, 0.01495361328125, 0.0147857666015625, 0.0236968994140625, 0.028411865234375, 0.02667236328125, -0.041717529296875, -0.0279083251953125, -0.004608154296875, 0.03070068359375, -0.013763427734375, 0.08258056640625, -0.02044677734375, 0.01125335693359375, -0.0020427703857421875, 0.045166015625, -0.0237579345703125, -0.0209197998046875, 0.0207977294921875, 0.00818634033203125, 0.0279541015625, -0.00843048095703125, -0.03094482421875, 0.05047607421875, -0.0035953521728515625, -0.0017499923706054688, 0.0168914794921875, -0.013092041015625, 0.002819061279296875, 0.018280029296875, -0.031097412109375, -0.025390625, -0.0147247314453125, -0.01253509521484375, -0.0157928466796875, 0.01067352294921875, -0.0138702392578125, -0.01165008544921875, 0.01201629638671875, 0.01554107666015625, -0.03509521484375, 0.0169830322265625, -0.0176544189453125, 0.01378631591796875, 0.0222930908203125, 0.0244293212890625, -0.048370361328125, 0.03326416015625, 0.005504608154296875, -0.0206451416015625, 0.04278564453125, -0.0023899078369140625, 0.031402587890625, -0.10614013671875, -0.01259613037109375, 0.0037136077880859375, 0.036651611328125, 0.018035888671875, -0.01099395751953125, -0.002429962158203125, -0.01605224609375, -0.056304931640625, -0.0253448486328125, -0.01512908935546875, -0.023040771484375, -0.00675201416015625, 0.034027099609375, -0.01959228515625, -0.046417236328125, -0.054901123046875, 0.0031032562255859375, 0.0282135009765625, 0.004100799560546875, -0.056488037109375, 0.0144805908203125, -0.024932861328125, 0.0634765625, -0.00833892822265625, 0.01291656494140625, -0.01250457763671875, 0.0100555419921875, -0.0225830078125, -0.01546478271484375, -0.02178955078125, 0.027099609375, -0.01540374755859375, 0.042083740234375, 0.07281494140625, -0.03021240234375, -0.037750244140625, 0.03125, 0.006343841552734375, 0.08642578125, -0.059600830078125, -0.009124755859375, -0.0254974365234375, 0.0146331787109375, -0.0015506744384765625, -0.03668212890625, -0.005390167236328125, -0.00489044189453125, -0.018463134765625, 0.0312042236328125, -0.0177154541015625, 0.0225677490234375, -0.039825439453125, -0.08721923828125, -0.030181884765625, 0.0307159423828125, -0.059051513671875, 0.018890380859375, -0.008331298828125, 0.0011224746704101562, -0.02166748046875, 0.004192352294921875, -0.0295562744140625, -0.0119171142578125, -0.003108978271484375, 0.00516510009765625, 0.04730224609375, 0.01207733154296875, -0.0014286041259765625, -0.00739288330078125, 0.0034885406494140625, -0.004123687744140625, 0.0001512765884399414, -0.0161590576171875, 0.015533447265625, 0.003490447998046875, 0.029571533203125, -0.029296875, -0.0200042724609375, 0.0008716583251953125, 0.00815582275390625, -0.0242919921875, -0.00843048095703125, -0.055023193359375, -0.0318603515625, 0.1004638671875, 0.0762939453125, 0.029541015625, -0.00875091552734375, 0.0303192138671875, -0.038482666015625, -0.00372314453125, 0.0029773712158203125, -0.0065460205078125, -0.0275421142578125, -0.004058837890625, 0.02081298828125, 0.01415252685546875, 0.01145172119140625, -0.050140380859375, -0.0189971923828125, -0.0269775390625, -0.0179595947265625, 0.0252838134765625, -0.03192138671875, 0.034912109375, 0.006366729736328125, -0.01544189453125, 0.011444091796875, -0.00812530517578125, -0.0136566162109375, 0.0144500732421875, 0.0299835205078125, -0.044586181640625, -0.03375244140625, -0.026397705078125, 0.06988525390625, -0.04962158203125, 0.05426025390625, -0.07489013671875, 0.0162200927734375, -0.00036644935607910156, 0.0230712890625, -0.0104827880859375, 0.02764892578125, -0.0265655517578125, 0.0372314453125, 0.0253753662109375, 0.0150909423828125, -0.034576416015625, -0.0123291015625, -0.01221466064453125, 0.0012683868408203125, 0.00008255243301391602, 0.00885772705078125, 0.052337646484375, -0.040283203125, 0.018157958984375, 0.0189971923828125, 0.0257720947265625, -0.022186279296875, 0.018646240234375, -0.00971221923828125, 0.0157318115234375, 0.0022563934326171875 ]
f6375f5772f8360c863a35c266fa5b4731e8582f
Wordpress Stackexchange Q: set_post_thumbnail_size in percent, not pixels? I've created a new custom post type and I need the post thumbnails or featured images generated by the get_the_post_thumbnail() function to be set in percent, rather than pixels, as I'm using a fluid grid. Ideally I would only set the width (to 100%). Is there a way to do this? Potentially using add_image_size()? A: have you tried, if(has_post_thumbnail()) { $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' ); echo '<img src="' . $image_src[0] . '" width="100%" />'; }
Q: set_post_thumbnail_size in percent, not pixels? I've created a new custom post type and I need the post thumbnails or featured images generated by the get_the_post_thumbnail() function to be set in percent, rather than pixels, as I'm using a fluid grid. Ideally I would only set the width (to 100%). Is there a way to do this? Potentially using add_image_size()? A: have you tried, if(has_post_thumbnail()) { $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' ); echo '<img src="' . $image_src[0] . '" width="100%" />'; } A: It's not possible to change the units of the default width and height output, but you can possibly override the output via css: /* these are the classes that get added per default */ img.wp-post-image img.attachment-thumbnail img.attachment-medium img.attachment-large img.attachment-full Then you can override it via something like body img.attachment-large { width: 50% !important; height: 50% !important; } A: I've solved that issue getting rid of all width and height attributes set by WP: //tidy up img tags. We don't want inline height and width added by WP. //we'd rather use media queries and fluid img. function remove_image_dim_attr($html) { $html=preg_replace( '/width=(["\'])(.*?)\1/', '', $html ); $html=preg_replace( '/height=(["\'])(.*?)\1/', '', $html ); return $html; } add_filter( 'get_image_tag','remove_image_dim_attr' ); add_filter( 'image_send_to_editor','remove_image_dim_attr' ); add_filter( 'post_thumbnail_html','remove_image_dim_attr' );
wordpress
{ "language": "en", "length": 202, "provenance": "stackexchange_00019.jsonl.gz:410698", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21136" }
[ 0.0184326171875, -0.0266571044921875, 0.0037708282470703125, 0.0170135498046875, -0.0167999267578125, -0.0215911865234375, 0.058807373046875, -0.028900146484375, 0.00685882568359375, -0.00408935546875, -0.04864501953125, 0.016876220703125, 0.003429412841796875, -0.0095672607421875, 0.01055145263671875, -0.0229034423828125, 0.058990478515625, -0.0577392578125, 0.0180206298828125, -0.018463134765625, 0.01494598388671875, 0.00665283203125, 0.0628662109375, 0.07183837890625, 0.016845703125, -0.002437591552734375, 0.0218505859375, -0.0024890899658203125, -0.007488250732421875, -0.0226593017578125, 0.020294189453125, 0.005641937255859375, 0.01557159423828125, 0.00014019012451171875, -0.00748443603515625, 0.00658416748046875, 0.037261962890625, -0.0259246826171875, -0.0021572113037109375, 0.04132080078125, 0.0007624626159667969, 0.01183319091796875, 0.0029926300048828125, 0.0230865478515625, -0.0193634033203125, -0.0244903564453125, 0.00605010986328125, -0.0251922607421875, -0.009613037109375, -0.035308837890625, 0.01116180419921875, 0.023040771484375, 0.038726806640625, -0.028564453125, -0.0256805419921875, -0.0106353759765625, -0.055084228515625, 0.057373046875, 0.058685302734375, -0.039215087890625, -0.051666259765625, -0.04302978515625, 0.029632568359375, -0.006290435791015625, 0.0012989044189453125, -0.017791748046875, -0.044677734375, 0.00202178955078125, -0.024169921875, 0.0024051666259765625, 0.044708251953125, -0.03204345703125, 0.007785797119140625, -0.026947021484375, -0.006160736083984375, 0.031585693359375, 0.00875091552734375, 0.005283355712890625, -0.00022876262664794922, -0.022918701171875, 0.018829345703125, -0.030670166015625, 0.033843994140625, 0.0059967041015625, 0.01090240478515625, 0.04278564453125, -0.006076812744140625, -0.0242919921875, -0.01175689697265625, -0.0231781005859375, -0.0129241943359375, -0.0294189453125, -0.052276611328125, 0.023712158203125, 0.019866943359375, -0.032440185546875, 0.04302978515625, 0.035064697265625, 0.00214385986328125, 0.01148223876953125, 0.0391845703125, -0.0679931640625, 0.08319091796875, -0.04254150390625, 0.017791748046875, 0.0183563232421875, -0.0418701171875, -0.02484130859375, 0.045684814453125, 0.043365478515625, 0.0128936767578125, 0.01416778564453125, 0.0011587142944335938, 0.018035888671875, -0.04241943359375, 0.0218353271484375, -0.01904296875, -0.026641845703125, -0.024505615234375, 0.0014743804931640625, 0.0082244873046875, 0.01010894775390625, 0.057708740234375, 0.0016002655029296875, -0.00031065940856933594, 0.023284912109375, -0.01470947265625, -0.074951171875, -0.022369384765625, 0.046142578125, -0.06109619140625, -0.0024890899658203125, 0.065673828125, 0.044647216796875, 0.0301055908203125, -0.02685546875, -0.0234375, -0.0831298828125, -0.055908203125, 0.0283050537109375, -0.0289306640625, -0.025848388671875, 0.054840087890625, -0.042236328125, 0.022857666015625, 0.006099700927734375, 0.0173187255859375, 0.039031982421875, 0.0021953582763671875, -0.03350830078125, 0.03558349609375, -0.0155181884765625, 0.00850677490234375, 0.02154541015625, -0.017486572265625, -0.0042266845703125, 0.034881591796875, -0.0117340087890625, -0.0170745849609375, -0.03472900390625, 0.038421630859375, 0.018951416015625, 0.0174713134765625, 0.04150390625, -0.0007724761962890625, -0.0003101825714111328, -0.0308380126953125, -0.00739288330078125, 0.01116943359375, 0.018157958984375, 0.012847900390625, 0.004909515380859375, -0.0223388671875, -0.0174713134765625, -0.016204833984375, -0.03460693359375, 0.0267333984375, 0.01953125, 0.001010894775390625, 0.052734375, -0.0005216598510742188, -0.0305633544921875, 0.0275115966796875, -0.03204345703125, 0.010986328125, -0.0323486328125, -0.003986358642578125, -0.02734375, 0.0421142578125, 0.0194549560546875, -0.0235595703125, -0.00048542022705078125, -0.054779052734375, 0.000606536865234375, 0.02178955078125, 0.0013532638549804688, -0.023590087890625, -0.0265350341796875, 0.00696563720703125, 0.0016145706176757812, 0.022857666015625, 0.015777587890625, -0.0192108154296875, 0.012481689453125, -0.051055908203125, 0.0021209716796875, -0.01424407958984375, 0.0302581787109375, -0.03619384765625, 0.0439453125, 0.01355743408203125, 0.00174713134765625, -0.0102081298828125, -0.00827789306640625, 0.0241546630859375, 0.009033203125, -0.0059967041015625, -0.0031585693359375, -0.0199127197265625, 0.039154052734375, -0.02020263671875, -0.01727294921875, -0.0274658203125, 0.03399658203125, 0.03271484375, -0.005931854248046875, -0.02642822265625, -0.0252838134765625, -0.01108551025390625, -0.005870819091796875, -0.047637939453125, 0.0657958984375, -0.0157623291015625, -0.0048675537109375, -0.00075531005859375, 0.00785064697265625, 0.0318603515625, -0.059844970703125, 0.03363037109375, 0.045440673828125, 0.034210205078125, 0.05078125, 0.00042891502380371094, 0.00006431341171264648, 0.10791015625, 0.056304931640625, 0.037841796875, -0.03582763671875, 0.0016078948974609375, -0.022735595703125, 0.007343292236328125, -0.04302978515625, 0.044647216796875, -0.0760498046875, 0.005519866943359375, 0.049713134765625, -0.021942138671875, 0.033660888671875, -0.0122222900390625, 0.032073974609375, -0.0254669189453125, 0.0673828125, 0.056427001953125, -0.01213836669921875, 0.0176849365234375, 0.0223846435546875, 0.0246124267578125, 0.0107421875, -0.033660888671875, 0.034698486328125, 0.0080718994140625, -0.017303466796875, 0.005023956298828125, 0.01995849609375, -0.0015802383422851562, -0.00794219970703125, -0.023284912109375, 0.0033245086669921875, 0.0220794677734375, -0.005428314208984375, -0.00519561767578125, 0.018798828125, -0.0307159423828125, -0.00040793418884277344, 0.00267791748046875, -0.072265625, 0.00685882568359375, 0.060333251953125, -0.0101470947265625, -0.016845703125, 0.02569580078125, 0.0018529891967773438, -0.0038280487060546875, 0.003002166748046875, 0.006580352783203125, -0.00380706787109375, -0.017791748046875, -0.0743408203125, 0.0645751953125, -0.043792724609375, 0.08367919921875, 0.0919189453125, -0.0194854736328125, 0.045654296875, 0.00641632080078125, 0.0004286766052246094, 0.00609588623046875, 0.0152435302734375, -0.002048492431640625, -0.0290374755859375, -0.0280609130859375, -0.004146575927734375, 0.0157470703125, 0.041168212890625, -0.0258636474609375, -0.034942626953125, -0.0008058547973632812, 0.0198822021484375, -0.041961669921875, -0.0235748291015625, 0.01983642578125, -0.066650390625, -0.022705078125, -0.0178070068359375, -0.042144775390625, 0.0042266845703125, 0.005748748779296875, -0.01029205322265625, -0.01502227783203125, -0.026947021484375, -0.01140594482421875, -0.0307464599609375, -0.04595947265625, 0.040863037109375, 0.0163116455078125, 0.027984619140625, 0.00469207763671875, 0.056854248046875, -0.00254058837890625, -0.05242919921875, -0.02081298828125, 0.0643310546875, -0.014373779296875, -0.01947021484375, -0.047393798828125, 0.006771087646484375, -0.037994384765625, -0.01165008544921875, 0.00417327880859375, -0.004505157470703125, 0.0142669677734375, 0.01751708984375, -0.0235443115234375, -0.030242919921875, -0.0264892578125, 0.07318115234375, 0.0311126708984375, -0.02093505859375, 0.0178375244140625, -0.055908203125, -0.023345947265625, -0.047882080078125, -0.0682373046875, 0.047027587890625, 0.04620361328125, 0.0228271484375, -0.026214599609375, 0.023040771484375, 0.03179931640625, 0.00844573974609375, 0.005374908447265625, -0.01454925537109375, 0.07012939453125, 0.01363372802734375, 0.037994384765625, -0.05426025390625, -0.042724609375, -0.038421630859375, 0.07763671875, -0.018157958984375, 0.00634765625, -0.0152435302734375, 0.0099334716796875, -0.05218505859375, -0.04510498046875, 0.024200439453125, -0.0261077880859375, 0.011749267578125, -0.03057861328125, -0.0195465087890625, -0.0010175704956054688, 0.08392333984375, -0.032928466796875, -0.02996826171875, -0.021636962890625, 0.009033203125, -0.035003662109375, -0.06817626953125, -0.0007648468017578125, -0.0003058910369873047, -0.06353759765625, 0.0300140380859375, 0.00981903076171875, -0.0247802734375, -0.0157012939453125, 0.035400390625, -0.04583740234375, -0.024383544921875, 0.01209259033203125, 0.0201416015625, -0.024932861328125, 0.0513916015625, -0.05029296875, 0.060150146484375, -0.014739990234375, -0.0192413330078125, -0.1092529296875, -0.02288818359375, 0.0008029937744140625, 0.06732177734375, -0.0283660888671875, 0.023284912109375, -0.046783447265625, 0.052490234375, -0.00608062744140625, -0.0382080078125, 0.0263824462890625, 0.021209716796875, -0.0533447265625, 0.049072265625, 0.0118865966796875, -0.0222625732421875, 0.0006513595581054688, -0.05316162109375, -0.035675048828125, -0.042144775390625, -0.037384033203125, 0.01560211181640625, -0.0110626220703125, -0.005390167236328125, -0.058807373046875, -0.04071044921875, 0.033050537109375, 0.052703857421875, 0.0090484619140625, 0.0197601318359375, -0.07818603515625, -0.03668212890625, 0.07098388671875, 0.026397705078125, -0.00432586669921875, -0.0198211669921875, 0.07574462890625, 0.005901336669921875, -0.040863037109375, -0.0595703125, -0.01763916015625, 0.0276336669921875, -0.0027980804443359375, 0.0076904296875, -0.0007762908935546875, -0.04541015625, 0.05035400390625, 0.01203155517578125, -0.015838623046875, -0.0168609619140625, 0.06689453125, 0.0023784637451171875, -0.0154571533203125, 0.0295257568359375, -0.022735595703125, 0.0034332275390625, 0.017822265625, -0.004974365234375, 0.01486968994140625, 0.02490234375, -0.0001900196075439453, -0.014556884765625, -0.0238037109375, -0.0176544189453125, -0.0106048583984375, 0.00550079345703125, 0.04840087890625, 0.037872314453125, 0.025054931640625, -0.0077056884765625, 0.0037517547607421875, -0.010528564453125, 0.00732421875, 0.025390625, -0.004039764404296875, 0.02789306640625, 0.04010009765625, 0.007965087890625, 0.01006317138671875, 0.01105499267578125, 0.0230560302734375, -0.038177490234375, -0.01381683349609375, -0.023223876953125, -0.0799560546875, 0.01702880859375, 0.0220489501953125, -0.006389617919921875, -0.019378662109375, 0.07470703125, 0.036346435546875, -0.006717681884765625, -0.03961181640625, -0.0289764404296875, -0.01514434814453125, -0.05950927734375, 0.00937652587890625, 0.041259765625, -0.0183868408203125, 0.045684814453125, 0.023284912109375, 0.05548095703125, 0.0129852294921875, -0.03375244140625, 0.031890869140625, 0.032073974609375, 0.01192474365234375, 0.034088134765625, 0.018463134765625, -0.027862548828125, -0.00133514404296875, -0.013427734375, -0.01006317138671875, 0.0159454345703125, -0.016815185546875, 0.023956298828125, -0.006072998046875, 0.00652313232421875, 0.037567138671875, -0.01153564453125, -0.006191253662109375, -0.005809783935546875, -0.034576416015625, -0.0565185546875, 0.003662109375, 0.038360595703125, 0.03521728515625, -0.02325439453125, -0.035614013671875, -0.01274871826171875, -0.0200958251953125, 0.0017108917236328125, -0.008087158203125, -0.045440673828125, 0.038299560546875, 0.03326416015625, -0.0128173828125, -0.0182647705078125, -0.033416748046875, 0.0206756591796875, 0.0202484130859375, -0.02520751953125, -0.024749755859375, 0.047119140625, -0.054290771484375, 0.0018520355224609375, -0.0104217529296875, 0.0132904052734375, -0.043701171875, 0.0311279296875, 0.016754150390625, 0.019866943359375, -0.042266845703125, -0.01102447509765625, -0.0389404296875, -0.01270294189453125, 0.010467529296875, -0.0206756591796875, -0.025115966796875, -0.01227569580078125, 0.0222320556640625, 0.0231170654296875, 0.0010766983032226562, -0.028289794921875, -0.0195770263671875, 0.0189971923828125, 0.03204345703125, 0.02923583984375, -0.007568359375, -0.0084228515625, 0.027984619140625, 0.025421142578125, -0.000514984130859375, -0.00910186767578125, 0.004322052001953125, -0.0242462158203125, -0.004550933837890625, -0.0171966552734375, -0.0013971328735351562, 0.003940582275390625, -0.0038890838623046875, -0.029144287109375, 0.0220794677734375, 0.00669097900390625, -0.00432586669921875, -0.0209808349609375, -0.0101165771484375, -0.033782958984375, 0.052490234375, -0.02276611328125, 0.0198974609375, -0.01448822021484375, -0.0263671875, 0.03350830078125, 0.0195465087890625, -0.0056915283203125, -0.0007901191711425781, -0.0183258056640625, 0.00446319580078125, 0.0322265625, -0.0091094970703125, 0.01142120361328125, 0.05810546875, -0.01036834716796875, 0.040863037109375, 0.0199127197265625, 0.003284454345703125, 0.017181396484375, -0.03057861328125, -0.0498046875, 0.01488494873046875, 0.0248260498046875, -0.00348663330078125, -0.00846099853515625, 0.0136260986328125, -0.0200042724609375, 0.041412353515625, 0.01261138916015625, 0.0673828125, -0.023956298828125, 0.0299224853515625, 0.015960693359375, -0.057586669921875, 0.057220458984375, -0.0257720947265625, 0.0035419464111328125, 0.007534027099609375, 0.0645751953125, -0.0194244384765625, -0.0188751220703125, 0.017822265625, -0.0200653076171875, -0.01384735107421875, -0.006534576416015625, -0.01486968994140625, 0.0256195068359375, -0.017974853515625, 0.0235443115234375, 0.02691650390625, 0.0223541259765625, -0.01038360595703125, 0.01715087890625, -0.049102783203125, 0.00531005859375, -0.043121337890625, -0.0230712890625, -0.0312042236328125, -0.00414276123046875, 0.057708740234375, 0.01345062255859375, 0.0089111328125, 0.038665771484375, -0.0012826919555664062, 0.0318603515625, 0.01226043701171875, -0.0657958984375, -0.01320648193359375, 0.0146484375, 0.051361083984375, 0.02685546875, -0.054779052734375, 0.0256195068359375, -0.04656982421875, 0.004039764404296875, 0.004779815673828125, 0.02960205078125, 0.0712890625, -0.038787841796875, -0.008544921875, 0.030181884765625, 0.037872314453125, -0.00998687744140625, 0.0003650188446044922, 0.00885772705078125, -0.0369873046875, 0.0005950927734375, 0.0030193328857421875, -0.01338958740234375, -0.021331787109375, -0.03302001953125, -0.06170654296875, 0.09503173828125, -0.03131103515625, 0.0184478759765625, 0.00982666015625, 0.034942626953125, -0.0141754150390625, 0.0141143798828125, -0.006847381591796875, 0.004711151123046875, -0.0540771484375, 0.0119476318359375, -0.0296630859375, 0.02154541015625, -0.006374359130859375, -0.010498046875, 0.033905029296875, 0.006587982177734375, -0.0276336669921875, -0.0032215118408203125, 0.08221435546875, 0.07086181640625, 0.0467529296875, 0.0128936767578125, -0.020660400390625, -0.006580352783203125, 0.04248046875, -0.027618408203125, 0.0214080810546875, 0.0222930908203125, -0.016571044921875, 0.005706787109375, -0.0079345703125, 0.004421234130859375, 0.0072021484375, -0.024322509765625, -0.035919189453125, 0.006603240966796875, 0.0312347412109375, -0.04949951171875, 0.0655517578125, 0.000640869140625, 0.064208984375, -0.0273284912109375, -0.0380859375, 0.0069732666015625, 0.0447998046875, 0.006000518798828125, 0.032745361328125, -0.023773193359375, 0.006649017333984375, 0.060272216796875, -0.0261383056640625, -0.0046539306640625, 0.0244598388671875, -0.017333984375, 0.00774383544921875, 0.01403045654296875, 0.0005826950073242188, -0.0372314453125, 0.041595458984375, 0.0177001953125, 0.01561737060546875, -0.056488037109375, 0.0005626678466796875, 0.0092620849609375, 0.0237579345703125, -0.006137847900390625, -0.0291595458984375, -0.012237548828125, -0.033111572265625, -0.0027828216552734375, -0.0215301513671875, 0.0166778564453125, 0.02545166015625, 0.0411376953125, 0.0087738037109375, 0.0061492919921875, -0.07916259765625, -0.00597381591796875, -0.00046896934509277344, 0.006221771240234375, -0.0041961669921875, 0.01256561279296875, 0.013275146484375, 0.0219879150390625, -0.015655517578125, 0.0179901123046875, -0.006099700927734375, 0.00286102294921875, -0.0149078369140625, 0.017486572265625, 0.015380859375, 0.0200653076171875, -0.00937652587890625, 0.0154876708984375, 0.0199432373046875, -0.06402587890625, 0.040679931640625, 0.027374267578125, -0.0784912109375, -0.0283966064453125, -0.01149749755859375, -0.0146484375, 0.00821685791015625, -0.0268402099609375, 0.0256805419921875, 0.0323486328125, -0.006801605224609375, -0.0167236328125, 0.006443023681640625, 0.048583984375, -0.026397705078125, 0.0308380126953125, 0.0005693435668945312, -0.035430908203125, 0.0106201171875, -0.0227203369140625, 0.06549072265625, -0.004749298095703125, -0.024932861328125, 0.00803375244140625, -0.006557464599609375, -0.039703369140625, 0.0078125, 0.0045318603515625, -0.037689208984375, 0.040985107421875, 0.0275115966796875, 0.00209808349609375, 0.0046539306640625, -0.005474090576171875, 0.012176513671875, -0.004032135009765625, 0.039154052734375, 0.0162811279296875, -0.033966064453125, -0.0215301513671875, -0.0217132568359375, 0.041656494140625, -0.0018091201782226562, 0.08758544921875, -0.049652099609375, 0.01160430908203125, 0.037933349609375, -0.01448822021484375, 0.0040740966796875, 0.01837158203125, 0.0396728515625, -0.0311431884765625, -0.007251739501953125, -0.02880859375, 0.01207733154296875, -0.01025390625, 0.034423828125, -0.04840087890625, -0.02911376953125, -0.0214080810546875, 0.0219268798828125, -0.0027217864990234375, -0.0234832763671875, -0.038299560546875, -0.032379150390625, -0.045745849609375, -0.00943756103515625, 0.0040130615234375, -0.0198822021484375, -0.0018215179443359375, 0.04541015625, 0.007244110107421875, 0.0084991455078125, 0.058013916015625, -0.042266845703125, 0.0828857421875, 0.04473876953125, -0.05511474609375, -0.06024169921875, 0.00664520263671875, -0.006916046142578125, -0.018524169921875, 0.01580810546875, 0.038055419921875, 0.011749267578125, -0.02569580078125, -0.0030155181884765625, 0.01462554931640625, 0.02423095703125, -0.029510498046875, 0.0012292861938476562, 0.020355224609375, -0.01399993896484375, -0.02337646484375, 0.0243988037109375, -0.007762908935546875, -0.0247039794921875, -0.01120758056640625, 0.0062408447265625, 0.006717681884765625, -0.00018548965454101562, 0.013580322265625, -0.006305694580078125, 0.04449462890625, 0.03424072265625, -0.078125, 0.0615234375, -0.004791259765625, -0.0036525726318359375, 0.0228271484375, -0.06829833984375, 0.0114288330078125, 0.0155029296875, -0.005645751953125, -0.041107177734375, -0.0472412109375, 0.01285552978515625, -0.030670166015625, 0.0372314453125, 0.07794189453125, -0.04913330078125, -0.063232421875, 0.052734375, 0.03619384765625, 0.0899658203125, -0.0236663818359375, -0.0228271484375, 0.0062255859375, 0.0183563232421875, -0.0191497802734375, -0.059051513671875, -0.009368896484375, -0.045318603515625, 0.01104736328125, -0.003635406494140625, -0.03643798828125, -0.03375244140625, -0.030731201171875, -0.02801513671875, 0.050994873046875, 0.00998687744140625, -0.01715087890625, -0.032806396484375, 0.0028209686279296875, 0.01413726806640625, -0.0155029296875, -0.0023975372314453125, 0.0025196075439453125, -0.036163330078125, -0.0057220458984375, 0.0211334228515625, -0.010101318359375, 0.051116943359375, -0.022613525390625, -0.01308441162109375, 0.0298614501953125, 0.038970947265625, 0.0221099853515625, -0.02880859375, 0.0168609619140625, 0.00406646728515625, 0.0297088623046875, -0.0058746337890625, -0.04058837890625, 0.0010766983032226562, -0.024932861328125, -0.01861572265625, -0.013641357421875, -0.003170013427734375, 0.0141448974609375, 0.036102294921875, 0.0310211181640625, 0.00586700439453125, -0.0232086181640625, -0.0097198486328125, 0.00028967857360839844, -0.029693603515625, -0.0038604736328125, 0.006862640380859375, -0.05364990234375, -0.0166473388671875, -0.000797271728515625, -0.0190582275390625, -0.035430908203125, 0.011566162109375, -0.0435791015625, -0.00708770751953125, -0.00824737548828125, 0.005985260009765625, -0.04461669921875, 0.02679443359375, 0.0223236083984375, -0.034881591796875, -0.019287109375, -0.002056121826171875, 0.0011720657348632812, -0.012969970703125, -0.016876220703125, 0.0013704299926757812, 0.0721435546875, -0.060333251953125, 0.0178375244140625, 0.0036411285400390625, 0.0038013458251953125, -0.05816650390625, 0.0225372314453125, -0.007843017578125, 0.0156402587890625, 0.005985260009765625, 0.026397705078125, 0.0272674560546875, -0.0323486328125, 0.0037364959716796875, -0.03515625, 0.00972747802734375, -0.034942626953125, -0.0174560546875, 0.0113372802734375, 0.00847625732421875, -0.0271453857421875, 0.019805908203125, -0.0011358261108398438, -0.004581451416015625, -0.0102386474609375, -0.04962158203125, -0.050384521484375, -0.01413726806640625, -0.0082244873046875, -0.01171875, -0.0015974044799804688 ]
9ff0b2a9568f007307a46fc3ba04c934c62f6dce
Wordpress Stackexchange Q: explode array within shortcode This functions at the moment but it only returns the first value from the array. I've been struggling to echo, print, explode, or whatever the multiple custom field values that share the same key (mp3). The shortcode is looking for comma-separated urls aka tracks="http://url1.mp3, http:/url2.mp3" I know i've created a bit of mess here. Wading into deeper waters... <div id="post_meta_player"> <? global $post; if(get_post_meta($post->ID, 'mp3', false)) { foreach(get_post_meta($post->ID, 'mp3', false) as $mp3) { $mytracks = print_r($mp3, ','); } } $shortcodes = '[mp3-jplayer tracks="'.$mytracks.'"]'; mp3j_put( $shortcodes); ?> </div> A: Kind of confusing question, but I think you want: [mp3-jplayer tracks="'.implode(', ', get_post_meta($post->ID, 'mp3', false)).'"] Assuming you get a array of meta key values this will join the into a comma-separated string
Q: explode array within shortcode This functions at the moment but it only returns the first value from the array. I've been struggling to echo, print, explode, or whatever the multiple custom field values that share the same key (mp3). The shortcode is looking for comma-separated urls aka tracks="http://url1.mp3, http:/url2.mp3" I know i've created a bit of mess here. Wading into deeper waters... <div id="post_meta_player"> <? global $post; if(get_post_meta($post->ID, 'mp3', false)) { foreach(get_post_meta($post->ID, 'mp3', false) as $mp3) { $mytracks = print_r($mp3, ','); } } $shortcodes = '[mp3-jplayer tracks="'.$mytracks.'"]'; mp3j_put( $shortcodes); ?> </div> A: Kind of confusing question, but I think you want: [mp3-jplayer tracks="'.implode(', ', get_post_meta($post->ID, 'mp3', false)).'"] Assuming you get a array of meta key values this will join the into a comma-separated string
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:410700", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21146" }
[ 0.01309967041015625, 0.00429534912109375, -0.0267181396484375, -0.039886474609375, 0.0164642333984375, -0.01031494140625, 0.00608062744140625, -0.003162384033203125, -0.0287933349609375, 0.031768798828125, 0.043975830078125, 0.00942230224609375, -0.05908203125, -0.037109375, -0.025665283203125, -0.0340576171875, 0.0245819091796875, -0.005401611328125, -0.018585205078125, -0.007312774658203125, -0.00624847412109375, 0.006679534912109375, -0.03375244140625, -0.02264404296875, 0.01108551025390625, 0.005764007568359375, 0.050048828125, -0.0134429931640625, -0.0088653564453125, -0.00859832763671875, 0.006389617919921875, -0.011260986328125, 0.04058837890625, 0.003093719482421875, -0.0290985107421875, 0.0159912109375, 0.0133514404296875, -0.00689697265625, -0.01407623291015625, 0.0191497802734375, 0.0237884521484375, -0.0166778564453125, 0.0094451904296875, 0.0174560546875, -0.004123687744140625, -0.0152435302734375, 0.0245513916015625, -0.034423828125, 0.0224761962890625, -0.000023543834686279297, 0.0159759521484375, 0.030609130859375, 0.01308441162109375, 0.00853729248046875, 0.0035533905029296875, 0.0247344970703125, -0.057342529296875, -0.0394287109375, 0.0010890960693359375, 0.035980224609375, 0.036590576171875, -0.00907135009765625, 0.0118408203125, 0.010345458984375, -0.005588531494140625, -0.0008463859558105469, 0.0176239013671875, 0.0287628173828125, -0.023956298828125, -0.0269622802734375, 0.00015997886657714844, -0.016387939453125, 0.0046844482421875, -0.032684326171875, -0.0007901191711425781, 0.0321044921875, -0.0166015625, -0.0225372314453125, 0.00188446044921875, -0.002017974853515625, 0.0312347412109375, 0.0081939697265625, -0.02777099609375, 0.0199127197265625, -0.016143798828125, 0.0208282470703125, -0.012939453125, -0.01849365234375, -0.003021240234375, -0.0157470703125, -0.013763427734375, -0.01480865478515625, -0.0134124755859375, 0.01898193359375, -0.01142120361328125, -0.00974273681640625, 0.00467681884765625, 0.035400390625, -0.01052093505859375, -0.0207366943359375, -0.009796142578125, -0.0242156982421875, -0.0261993408203125, -0.0192413330078125, 0.0137939453125, 0.0019550323486328125, -0.0126190185546875, -0.051483154296875, 0.0357666015625, 0.0278472900390625, -0.0243377685546875, 0.048858642578125, -0.01849365234375, -0.00994110107421875, -0.01137542724609375, 0.006839752197265625, -0.05902099609375, 0.0264129638671875, -0.01145172119140625, -0.006755828857421875, 0.0267791748046875, 0.0487060546875, 0.0209197998046875, -0.01458740234375, -0.0234527587890625, 0.0008106231689453125, -0.01514434814453125, -0.06878662109375, 0.009307861328125, 0.0330810546875, -0.013946533203125, 0.00875091552734375, -0.005222320556640625, -0.0079498291015625, -0.019012451171875, -0.00826263427734375, 0.03204345703125, -0.04730224609375, 0.00193023681640625, 0.00916290283203125, -0.012969970703125, -0.015655517578125, 0.01015472412109375, -0.025543212890625, 0.005367279052734375, 0.0028934478759765625, 0.0215911865234375, 0.0275421142578125, -0.0025691986083984375, -0.062225341796875, 0.0008459091186523438, 0.0250091552734375, 0.03314208984375, -0.0010166168212890625, -0.0268096923828125, 0.009429931640625, 0.06512451171875, -0.037689208984375, -0.05548095703125, -0.050018310546875, 0.0303497314453125, -0.004779815673828125, -0.0209197998046875, -0.0755615234375, -0.09326171875, -0.01511383056640625, -0.051544189453125, -0.00812530517578125, 0.0188751220703125, 0.052642822265625, 0.033966064453125, 0.049774169921875, 0.005954742431640625, 0.0242462158203125, 0.00928497314453125, -0.0391845703125, 0.040557861328125, -0.00528717041015625, -0.0181121826171875, 0.0164947509765625, -0.0170440673828125, -0.036346435546875, -0.0210113525390625, -0.012451171875, -0.08172607421875, 0.09228515625, -0.00995635986328125, 0.07958984375, 0.044586181640625, -0.00553131103515625, 0.038604736328125, 0.01312255859375, -0.0253448486328125, 0.033477783203125, 0.0094451904296875, -0.0206451416015625, -0.0377197265625, 0.001369476318359375, -0.0036258697509765625, -0.0185546875, -0.041351318359375, 0.0457763671875, -0.0182037353515625, 0.04827880859375, 0.01116943359375, 0.04052734375, -0.0015926361083984375, 0.036712646484375, -0.08673095703125, -0.0025615692138671875, 0.0265960693359375, -0.0313720703125, -0.036773681640625, 0.0731201171875, 0.052276611328125, 0.019744873046875, 0.001239776611328125, 0.049468994140625, -0.02117919921875, -0.0013723373413085938, -0.0140533447265625, -0.04779052734375, 0.0068206787109375, 0.038238525390625, 0.02459716796875, -0.0026988983154296875, -0.0101318359375, -0.0167999267578125, 0.0200958251953125, 0.01837158203125, -0.0282745361328125, 0.003963470458984375, -0.0019273757934570312, 0.00591278076171875, -0.0301055908203125, 0.01116180419921875, 0.01374053955078125, -0.0263824462890625, 0.0029144287109375, 0.033966064453125, 0.050140380859375, 0.035552978515625, -0.003997802734375, -0.03131103515625, 0.0755615234375, -0.002201080322265625, 0.0120086669921875, -0.030914306640625, 0.028839111328125, 0.058868408203125, -0.043182373046875, -0.01265716552734375, 0.00649261474609375, -0.040252685546875, 0.0149078369140625, 0.0262298583984375, -0.016510009765625, -0.00856781005859375, -0.00705718994140625, -0.00658416748046875, -0.006618499755859375, -0.0285797119140625, -0.003276824951171875, -0.0216217041015625, 0.03472900390625, 0.0295257568359375, 0.0289154052734375, 0.029327392578125, -0.034149169921875, 0.045806884765625, 0.006664276123046875, -0.0205841064453125, -0.005222320556640625, 0.01654052734375, -0.025146484375, 0.00899505615234375, -0.0157470703125, 0.01103973388671875, -0.006473541259765625, -0.0027408599853515625, 0.03515625, 0.049591064453125, -0.041107177734375, -0.0101470947265625, 0.020355224609375, -0.026519775390625, -0.032989501953125, 0.059783935546875, -0.0272369384765625, 0.0202484130859375, -0.00298309326171875, 0.11053466796875, 0.0296630859375, 0.0284271240234375, 0.0203704833984375, 0.046844482421875, 0.0477294921875, 0.00701141357421875, 0.00460052490234375, 0.00229644775390625, 0.034576416015625, 0.038299560546875, 0.0026493072509765625, -0.017181396484375, -0.023681640625, 0.035614013671875, -0.064453125, 0.0222930908203125, -0.004283905029296875, -0.0396728515625, -0.033111572265625, 0.00507354736328125, 0.0161285400390625, 0.043060302734375, 0.004764556884765625, -0.028228759765625, -0.004238128662109375, 0.0300140380859375, -0.08343505859375, -0.1058349609375, 0.049835205078125, -0.052276611328125, 0.01445770263671875, -0.0178375244140625, -0.026763916015625, -0.014404296875, 0.0117034912109375, 0.0010728836059570312, -0.0198211669921875, 0.004093170166015625, -0.032073974609375, -0.0279388427734375, -0.044769287109375, -0.0117034912109375, -0.004657745361328125, 0.0159149169921875, 0.01435089111328125, -0.0426025390625, -0.0064697265625, 0.003841400146484375, 0.0297088623046875, 0.02587890625, 0.01053619384765625, -0.01169586181640625, -0.0312042236328125, -0.005825042724609375, -0.01401519775390625, -0.014068603515625, 0.0765380859375, 0.018310546875, -0.016693115234375, 0.0171966552734375, 0.006793975830078125, 0.0416259765625, 0.05609130859375, -0.017364501953125, -0.015167236328125, 0.10321044921875, 0.0621337890625, 0.00811004638671875, 0.014862060546875, -0.016082763671875, -0.0162811279296875, -0.0181121826171875, 0.006256103515625, -0.0106048583984375, -0.022064208984375, 0.0102691650390625, 0.005290985107421875, -0.0156707763671875, 0.021636962890625, -0.0243682861328125, 0.026458740234375, 0.0084381103515625, 0.0391845703125, -0.01812744140625, 0.01337432861328125, -0.040863037109375, 0.015625, -0.0015516281127929688, -0.00820159912109375, 0.007137298583984375, -0.037567138671875, -0.01277923583984375, -0.0005249977111816406, 0.061767578125, 0.03985595703125, 0.07012939453125, -0.0452880859375, -0.06597900390625, -0.0750732421875, 0.073974609375, -0.07318115234375, -0.01116943359375, -0.0005831718444824219, 0.010345458984375, -0.014495849609375, -0.0128173828125, -0.0655517578125, 0.00214385986328125, -0.0262451171875, 0.005260467529296875, -0.0180816650390625, 0.0117950439453125, -0.0226593017578125, -0.003795623779296875, 0.0025730133056640625, -0.0181884765625, 0.0227203369140625, -0.005092620849609375, -0.005146026611328125, 0.00966644287109375, 0.0034961700439453125, -0.0243072509765625, -0.0048675537109375, -0.0021877288818359375, -0.0271148681640625, -0.021026611328125, 0.037872314453125, 0.0269775390625, -0.01898193359375, -0.01239776611328125, -0.00994873046875, 0.043914794921875, -0.0142059326171875, -0.023345947265625, -0.0246734619140625, 0.01377105712890625, -0.057647705078125, 0.01325225830078125, -0.0232391357421875, -0.0151519775390625, 0.004756927490234375, 0.00704193115234375, 0.020538330078125, 0.01256561279296875, -0.04931640625, -0.039215087890625, -0.018951416015625, -0.03179931640625, -0.051513671875, -0.0184478759765625, -0.019256591796875, 0.01020050048828125, -0.024810791015625, 0.004070281982421875, -0.028656005859375, -0.054840087890625, 0.00917816162109375, 0.0015401840209960938, -0.032379150390625, 0.0098876953125, 0.0202789306640625, 0.009063720703125, -0.022369384765625, -0.08563232421875, -0.017974853515625, 0.047027587890625, -0.0225830078125, 0.0258331298828125, 0.032989501953125, -0.043243408203125, 0.069580078125, 0.009521484375, -0.006633758544921875, -0.00556182861328125, 0.055938720703125, 0.003940582275390625, 0.0083465576171875, -0.005580902099609375, -0.0176544189453125, 0.007755279541015625, 0.02294921875, -0.00562286376953125, 0.01461029052734375, -0.019805908203125, -0.006504058837890625, 0.0038394927978515625, -0.0148162841796875, -0.0163726806640625, -0.08740234375, 0.0276031494140625, -0.035400390625, 0.04376220703125, 0.021942138671875, -0.01202392578125, 0.0841064453125, 0.048858642578125, 0.01238250732421875, 0.00864410400390625, 0.03228759765625, -0.0268096923828125, 0.045257568359375, -0.0212860107421875, -0.013031005859375, -0.016845703125, 0.0167999267578125, -0.01154327392578125, -0.028076171875, -0.061859130859375, -0.043914794921875, -0.008758544921875, 0.0032367706298828125, 0.0035648345947265625, 0.0283203125, 0.028564453125, 0.00820159912109375, 0.00099945068359375, 0.0059661865234375, -0.0229949951171875, 0.042236328125, -0.033599853515625, 0.021514892578125, -0.0011138916015625, -0.00518035888671875, -0.026092529296875, 0.07537841796875, -0.040618896484375, 0.0274658203125, 0.00879669189453125, 0.030364990234375, 0.033447265625, 0.04296875, 0.033538818359375, -0.0467529296875, -0.0296173095703125, 0.04388427734375, -0.044281005859375, -0.027313232421875, 0.0211029052734375, 0.047515869140625, 0.0364990234375, -0.002384185791015625, -0.039642333984375, -0.0003237724304199219, -0.037872314453125, -0.030670166015625, 0.0018711090087890625, -0.03656005859375, -0.013458251953125, -0.0181427001953125, -0.003997802734375, 0.01313018798828125, 0.0086212158203125, -0.008331298828125, 0.045562744140625, 0.0205841064453125, 0.0670166015625, -0.0264434814453125, 0.0041046142578125, 0.0160980224609375, 0.0189666748046875, 0.034027099609375, -0.000240325927734375, -0.0149993896484375, -0.03253173828125, -0.0193328857421875, -0.0224609375, -0.003986358642578125, 0.06756591796875, -0.0325927734375, -0.0251007080078125, -0.0235137939453125, 0.047576904296875, -0.028228759765625, -0.0005345344543457031, 0.03717041015625, 0.020294189453125, -0.03424072265625, 0.006900787353515625, -0.0093994140625, 0.020477294921875, 0.0712890625, -0.00665283203125, -0.006740570068359375, -0.032257080078125, -0.02392578125, 0.02349853515625, 0.02276611328125, 0.057525634765625, 0.02325439453125, -0.0054473876953125, -0.06365966796875, 0.016448974609375, -0.018646240234375, -0.018096923828125, 0.0149383544921875, 0.01580810546875, -0.0166473388671875, -0.0279083251953125, 0.0010528564453125, -0.0177154541015625, -0.00046944618225097656, -0.0177459716796875, -0.021240234375, 0.007701873779296875, 0.009033203125, -0.00855255126953125, 0.023651123046875, -0.0024871826171875, 0.007171630859375, -0.01480865478515625, 0.0026397705078125, -0.0202789306640625, 0.032745361328125, -0.006549835205078125, 0.0015411376953125, 0.01568603515625, -0.0347900390625, 0.0084686279296875, -0.01019287109375, 0.00469207763671875, 0.01251983642578125, -0.03131103515625, -0.0024623870849609375, 0.040435791015625, -0.036468505859375, 0.025421142578125, 0.055877685546875, 0.00775146484375, 0.00476837158203125, 0.022491455078125, -0.010650634765625, -0.0235443115234375, -0.0110015869140625, 0.060699462890625, 0.0173797607421875, 0.04974365234375, -0.0205841064453125, 0.00484466552734375, 0.019866943359375, -0.02239990234375, -0.006221771240234375, 0.0498046875, 0.054779052734375, -0.047210693359375, -0.0055999755859375, 0.01548004150390625, -0.0166778564453125, -0.01116180419921875, 0.00852203369140625, 0.006244659423828125, -0.0157318115234375, -0.021484375, 0.025238037109375, -0.0209808349609375, -0.01380157470703125, 0.023223876953125, 0.0164794921875, -0.0224456787109375, 0.0164031982421875, 0.0010995864868164062, -0.055999755859375, 0.0143585205078125, 0.0206756591796875, 0.006206512451171875, -0.01132965087890625, 0.0270233154296875, -0.01312255859375, -0.0166015625, -0.039306640625, -0.0041351318359375, -0.0082550048828125, -0.040191650390625, -0.024658203125, 0.018798828125, 0.05816650390625, 0.04840087890625, -0.01047515869140625, 0.00411224365234375, 0.020111083984375, 0.00896453857421875, -0.0117950439453125, -0.037628173828125, -0.0197601318359375, 0.0236358642578125, 0.006195068359375, 0.0177154541015625, 0.00835418701171875, -0.00860595703125, -0.0163726806640625, 0.055328369140625, 0.1055908203125, -0.0474853515625, -0.034759521484375, 0.0209808349609375, 0.057952880859375, -0.0105743408203125, 0.0034770965576171875, -0.0193023681640625, -0.052947998046875, -0.043060302734375, -0.01904296875, -0.068115234375, 0.005870819091796875, -0.026092529296875, -0.08447265625, 0.08978271484375, 0.02001953125, 0.01329803466796875, -0.020843505859375, 0.0239715576171875, -0.018646240234375, 0.01424407958984375, -0.024017333984375, 0.0704345703125, 0.039398193359375, 0.0096893310546875, -0.052215576171875, -0.022674560546875, 0.022003173828125, 0.049407958984375, 0.0237884521484375, 0.006015777587890625, -0.0251922607421875, 0.0085296630859375, 0.0236968994140625, -0.01611328125, -0.0323486328125, 0.048980712890625, 0.022186279296875, 0.053985595703125, 0.08282470703125, -0.01280975341796875, 0.046417236328125, -0.00716400146484375, -0.01036834716796875, 0.03509521484375, 0.01371002197265625, 0.0226898193359375, -0.033050537109375, -0.01544189453125, 0.00812530517578125, -0.0321044921875, -0.013671875, -0.01043701171875, -0.0012950897216796875, 0.029144287109375, 0.0161285400390625, -0.057220458984375, -0.07611083984375, -0.01248931884765625, 0.026763916015625, 0.002838134765625, 0.031768798828125, 0.023284912109375, 0.0109100341796875, 0.0587158203125, 0.000015974044799804688, 0.0249786376953125, 0.022064208984375, -0.01739501953125, 0.060333251953125, -0.0018815994262695312, 0.0019426345825195312, -0.0443115234375, 0.064697265625, 0.0171966552734375, 0.047119140625, -0.068603515625, -0.055999755859375, -0.0033092498779296875, 0.0022869110107421875, 0.0141448974609375, 0.0064697265625, 0.023040771484375, 0.03973388671875, 0.042572021484375, -0.02374267578125, 0.01399993896484375, 0.0228729248046875, 0.01837158203125, 0.0285491943359375, 0.0352783203125, -0.0621337890625, -0.022003173828125, -0.038330078125, -0.0072784423828125, -0.00010955333709716797, 0.046844482421875, 0.0562744140625, 0.033935546875, -0.01300048828125, -0.0293121337890625, 0.0015583038330078125, 0.031341552734375, 0.0009312629699707031, -0.00737762451171875, -0.045196533203125, -0.049285888671875, 0.005336761474609375, 0.0384521484375, 0.01445770263671875, 0.038787841796875, 0.052764892578125, 0.007965087890625, -0.05120849609375, 0.0083160400390625, 0.0487060546875, -0.036773681640625, -0.01192474365234375, -0.032745361328125, -0.004241943359375, 0.003009796142578125, 0.004970550537109375, 0.007213592529296875, 0.0087432861328125, 0.0260467529296875, -0.00743865966796875, 0.064208984375, 0.0005626678466796875, 0.03619384765625, -0.005153656005859375, -0.02252197265625, -0.0183258056640625, 0.00502777099609375, -0.0626220703125, 0.0298919677734375, -0.07086181640625, -0.0989990234375, 0.035308837890625, 0.0423583984375, -0.02264404296875, 0.0121612548828125, -0.0100250244140625, -0.032958984375, 0.00293731689453125, 0.0238037109375, -0.00063323974609375, -0.0153656005859375, 0.004154205322265625, -0.0306243896484375, -0.039154052734375, -0.013031005859375, -0.017303466796875, 0.0193328857421875, 0.02056884765625, 0.0275115966796875, 0.01052093505859375, 0.017852783203125, 0.004383087158203125, -0.0335693359375, 0.0232696533203125, 0.0205841064453125, -0.000728607177734375, -0.00859832763671875, 0.00466156005859375, -0.02069091796875, 0.07598876953125, 0.01390838623046875, 0.04443359375, -0.043609619140625, -0.03857421875, 0.0087890625, 0.02874755859375, -0.0102081298828125, 0.034454345703125, -0.02569580078125, -0.024658203125, -0.039031982421875, -0.004734039306640625, 0.03131103515625, 0.02777099609375, -0.00937652587890625, 0.0058135986328125, 0.08160400390625, -0.0205230712890625, 0.0302581787109375, -0.0097503662109375, 0.0831298828125, 0.050323486328125, 0.031707763671875, -0.0031147003173828125, -0.0211334228515625, -0.021820068359375, 0.00994873046875, 0.0033359527587890625, 0.0308685302734375, -0.0031986236572265625, 0.0290374755859375, 0.0242156982421875, 0.065673828125, 0.0438232421875, -0.0097808837890625, 0.006103515625, 0.059295654296875, -0.031890869140625, -0.0005736351013183594, -0.004070281982421875, -0.0182342529296875, -0.059600830078125, 0.002899169921875, 0.0078582763671875, -0.03253173828125, -0.039642333984375, -0.053558349609375, -0.064208984375, -0.0241241455078125, -0.005954742431640625, 0.00714111328125, -0.034576416015625, 0.03985595703125, -0.051513671875, -0.0252685546875, 0.0215911865234375, -0.037750244140625, -0.01033782958984375, -0.0201263427734375, -0.0731201171875, -0.052520751953125, 0.10321044921875, -0.045135498046875, -0.0196685791015625, -0.002696990966796875, 0.004276275634765625, -0.05987548828125, -0.00008654594421386719, -0.006183624267578125, 0.02691650390625, 0.02301025390625, -0.03033447265625, -0.005496978759765625, 0.000274658203125, -0.002460479736328125, -0.01348114013671875, 0.007068634033203125, -0.038116455078125, -0.00441741943359375, 0.0108489990234375, -0.0083770751953125, 0.0024318695068359375, -0.0357666015625, -0.07073974609375, 0.08380126953125, -0.0012273788452148438, -0.02459716796875, -0.031402587890625, -0.0206756591796875, 0.006450653076171875, 0.0183258056640625, -0.013824462890625, -0.0283050537109375, -0.03228759765625, 0.0231475830078125, 0.0180206298828125, 0.01004791259765625, 0.017364501953125, 0.0469970703125, -0.0175323486328125, 0.036956787109375, -0.00923919677734375, -0.0253753662109375, 0.01543426513671875, 0.00357818603515625, 0.01033782958984375, 0.00856781005859375, -0.03564453125, -0.0289764404296875, -0.025177001953125, -0.01128387451171875, 0.027862548828125, -0.016510009765625, -0.08258056640625, -0.023834228515625, 0.05059814453125, 0.0755615234375, 0.02825927734375, -0.02337646484375, -0.0249786376953125, -0.00023472309112548828, -0.0192108154296875, -0.0303497314453125, 0.0213470458984375, -0.07568359375, -0.02386474609375, -0.034515380859375, 0.002933502197265625, 0.00766754150390625, -0.056854248046875, -0.0204315185546875, -0.0207977294921875, -0.0021228790283203125, 0.017181396484375, 0.01541900634765625, 0.00804901123046875, 0.032318115234375, -0.03302001953125, -0.0113983154296875, 0.005329132080078125, 0.0085601806640625, 0.01297760009765625, 0.01007843017578125, -0.003665924072265625, 0.0002720355987548828, -0.004730224609375, -0.0206756591796875, 0.0164947509765625, 0.0230865478515625, 0.02947998046875, -0.00971221923828125, 0.01032257080078125, 0.020294189453125, -0.0163726806640625, 0.01215362548828125, -0.0251617431640625, 0.034393310546875, -0.0029811859130859375, 0.013427734375, -0.051055908203125, -0.005558013916015625, -0.0232086181640625, -0.004833221435546875, -0.006717681884765625, 0.0195770263671875, 0.06280517578125, -0.0170745849609375, -0.00508880615234375, 0.0022792816162109375, -0.036163330078125, -0.02752685546875, -0.03363037109375, -0.0452880859375, -0.0031337738037109375, -0.005390167236328125 ]
89aca9b9b27cfaf7ecca76f40d26154d92b5b587
Wordpress Stackexchange Q: display all posts in wordpress admin Is there any reason why Wordpress restricts the amount of posts you can administer at once to 20? Is there a way to display all posts? I want to change the category for about 1800 posts. I don't have the ability to change the post amount under screen options; see here: tinyurl.com/3npm5yz Using WP v3.1.3 A: It doesn't, in the top right under screen options it says, Show on screen, you can set this to a max of 999 ( I have never tried 999 just fyi) and you can select all, then bulk actions--->edit--->apply. Also I think there are plugins that do this that use direct wpdb functions, so you can effectively do it to more posts at once.
Q: display all posts in wordpress admin Is there any reason why Wordpress restricts the amount of posts you can administer at once to 20? Is there a way to display all posts? I want to change the category for about 1800 posts. I don't have the ability to change the post amount under screen options; see here: tinyurl.com/3npm5yz Using WP v3.1.3 A: It doesn't, in the top right under screen options it says, Show on screen, you can set this to a max of 999 ( I have never tried 999 just fyi) and you can select all, then bulk actions--->edit--->apply. Also I think there are plugins that do this that use direct wpdb functions, so you can effectively do it to more posts at once.
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:410703", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21152" }
[ 0.0750732421875, 0.0190277099609375, 0.01617431640625, -0.031524658203125, 0.01239776611328125, -0.03155517578125, 0.04107666015625, -0.039306640625, 0.0302886962890625, -0.002010345458984375, -0.0399169921875, -0.033966064453125, 0.004131317138671875, -0.033966064453125, 0.00921630859375, -0.040313720703125, 0.05072021484375, -0.032928466796875, 0.0198211669921875, -0.00460052490234375, -0.0110626220703125, 0.021453857421875, 0.037933349609375, 0.075927734375, 0.034515380859375, -0.0228729248046875, -0.01512908935546875, -0.031219482421875, -0.0005178451538085938, -0.027587890625, 0.01739501953125, 0.032806396484375, 0.00870513916015625, 0.04107666015625, -0.0275421142578125, 0.030181884765625, -0.0018987655639648438, 0.0181121826171875, 0.01293182373046875, 0.01383209228515625, 0.03765869140625, -0.024627685546875, 0.0731201171875, 0.011474609375, 0.022430419921875, -0.0087738037109375, 0.034332275390625, -0.0433349609375, 0.0322265625, -0.019439697265625, 0.0003108978271484375, 0.017852783203125, 0.0195465087890625, -0.04290771484375, -0.0198211669921875, -0.0029544830322265625, 0.0023899078369140625, -0.006565093994140625, 0.046112060546875, -0.039093017578125, -0.0282745361328125, -0.032440185546875, 0.030059814453125, -0.02032470703125, -0.007228851318359375, 0.0021305084228515625, 0.0003666877746582031, 0.007198333740234375, -0.0289306640625, -0.0217132568359375, 0.025482177734375, -0.0230560302734375, -0.01351165771484375, -0.004558563232421875, 0.00909423828125, -0.0033283233642578125, -0.02349853515625, 0.00037026405334472656, 0.033721923828125, 0.0230255126953125, 0.024017333984375, -0.0252838134765625, 0.0264434814453125, 0.01558685302734375, -0.034332275390625, 0.006866455078125, -0.0172576904296875, -0.004840850830078125, -0.005428314208984375, -0.036041259765625, -0.0123138427734375, -0.0308074951171875, -0.0535888671875, 0.0289459228515625, 0.0260009765625, -0.0513916015625, 0.013214111328125, 0.031524658203125, -0.002117156982421875, -3.5762786865234375e-7, -0.04058837890625, -0.005992889404296875, -0.0248870849609375, -0.01479339599609375, -0.0014200210571289062, -0.00951385498046875, -0.0120849609375, 0.020294189453125, 0.052947998046875, 0.055999755859375, 0.004390716552734375, 0.0526123046875, -0.0201263427734375, 0.0286102294921875, -0.027008056640625, -0.037841796875, -0.0963134765625, 0.0249176025390625, -0.0256805419921875, -0.0007061958312988281, 0.006134033203125, 0.036865234375, -0.03204345703125, -0.004543304443359375, -0.0174713134765625, -0.0194091796875, -0.00852203369140625, -0.02154541015625, 0.04345703125, -0.00527191162109375, -0.039642333984375, 0.0233001708984375, 0.01389312744140625, -0.00536346435546875, -0.01546478271484375, 0.006011962890625, -0.0047607421875, 0.007038116455078125, -0.009735107421875, 0.041168212890625, -0.07867431640625, -0.050994873046875, 0.025054931640625, -0.033355712890625, 0.0255279541015625, 0.0323486328125, 0.0283966064453125, 0.004505157470703125, -0.00431060791015625, -0.045745849609375, -0.01300811767578125, 0.0179901123046875, 0.03472900390625, 0.0099029541015625, -0.0107269287109375, -0.0007534027099609375, 0.00899505615234375, 0.00833892822265625, -0.0302581787109375, -0.0149688720703125, 0.035369873046875, 0.0182647705078125, 0.053253173828125, -0.000789642333984375, -0.01416015625, -0.025848388671875, -0.0743408203125, -0.0108795166015625, 0.036895751953125, -0.018646240234375, -0.0012445449829101562, 0.0159149169921875, 0.05072021484375, 0.01012420654296875, -0.0022678375244140625, 0.0308074951171875, -0.004199981689453125, -0.0254669189453125, 0.0343017578125, 0.002567291259765625, -0.0217437744140625, -0.0264892578125, 0.0202789306640625, -0.004741668701171875, -0.0193939208984375, -0.0323486328125, 0.0225830078125, 0.00021755695343017578, 0.007534027099609375, 0.0204620361328125, 0.043914794921875, 0.0006375312805175781, 0.0163726806640625, -0.020751953125, 0.004146575927734375, -0.02923583984375, -0.025238037109375, -0.00484466552734375, -0.0084075927734375, 0.0016298294067382812, -0.0004112720489501953, 0.005779266357421875, -0.0203857421875, 0.01142120361328125, 0.01169586181640625, -0.02203369140625, 0.01084136962890625, 0.0213165283203125, 0.0287933349609375, 0.0194091796875, -0.002613067626953125, -0.006351470947265625, -0.01311492919921875, -0.0165252685546875, -0.0217742919921875, 0.0214385986328125, -0.01549530029296875, 0.024383544921875, -0.0147705078125, 0.0007925033569335938, 0.006641387939453125, -0.053955078125, 0.0021038055419921875, 0.046783447265625, 0.0635986328125, -0.030303955078125, 0.00007933378219604492, -0.04254150390625, 0.050323486328125, 0.00012683868408203125, -0.037384033203125, 0.0193023681640625, 0.033538818359375, 0.03729248046875, -0.036224365234375, -0.0251007080078125, -0.019927978515625, -0.05865478515625, 0.01328277587890625, 0.059722900390625, 0.03741455078125, -0.0186920166015625, 0.00876617431640625, 0.02581787109375, 0.018768310546875, -0.05047607421875, 0.01253509521484375, -0.0102081298828125, -0.018798828125, 0.00799560546875, 0.0233917236328125, 0.0280914306640625, 0.0161590576171875, -0.030517578125, 0.034881591796875, 0.04864501953125, 0.01519012451171875, -0.0004467964172363281, -0.0308990478515625, 0.0156097412109375, 0.017547607421875, 0.019256591796875, -0.030364990234375, 0.0183563232421875, -0.0014162063598632812, 0.01611328125, 0.02642822265625, 0.01451873779296875, -0.039276123046875, 0.0016183853149414062, 0.0294189453125, 0.0259857177734375, 0.01253509521484375, -0.0218963623046875, -0.0718994140625, -0.0209197998046875, -0.04498291015625, 0.0408935546875, 0.01541900634765625, -0.0357666015625, -0.01495361328125, 0.01462554931640625, -0.0584716796875, -0.0186309814453125, 0.0263824462890625, -0.09405517578125, -0.039398193359375, -0.002216339111328125, -0.0237884521484375, -0.00656890869140625, 0.01434326171875, 0.0214385986328125, -0.01381683349609375, 0.031951904296875, -0.02374267578125, 0.0033512115478515625, 0.0333251953125, -0.08795166015625, 0.061859130859375, -0.04290771484375, 0.07464599609375, 0.076171875, -0.0078582763671875, 0.036865234375, -0.0040435791015625, 0.01189422607421875, -0.01027679443359375, 0.03363037109375, -0.0029277801513671875, -0.0227508544921875, -0.044036865234375, -0.00838470458984375, 0.0298614501953125, 0.04931640625, -0.005001068115234375, -0.047943115234375, -0.0004668235778808594, 0.0229339599609375, -0.09619140625, -0.0853271484375, -0.01806640625, -0.08441162109375, -0.03729248046875, -0.01293182373046875, -0.058807373046875, 0.0257415771484375, 0.017852783203125, 0.00864410400390625, 0.01580810546875, 0.0009722709655761719, -0.01027679443359375, 0.0047760009765625, -0.0084686279296875, -0.01715087890625, -0.000027179718017578125, -0.023773193359375, 0.005321502685546875, 0.10430908203125, 0.004657745361328125, -0.10394287109375, -0.0496826171875, 0.051971435546875, -0.033172607421875, 0.00887298583984375, 0.0199127197265625, -0.04010009765625, 0.0252227783203125, 0.0090484619140625, -0.016326904296875, 0.0205535888671875, 0.007381439208984375, -0.031494140625, -0.0222015380859375, -0.01410675048828125, 0.0002715587615966797, -0.0362548828125, 0.01013946533203125, 0.0006113052368164062, -0.01442718505859375, -0.039947509765625, -0.0035305023193359375, -0.002361297607421875, -0.044097900390625, -0.036651611328125, 0.031890869140625, -0.01220703125, -0.0064849853515625, -0.0418701171875, 0.00040912628173828125, 0.0009608268737792969, 0.041290283203125, -0.041015625, 0.0343017578125, -0.01267242431640625, -0.00920867919921875, -0.0526123046875, -0.0279998779296875, -0.018035888671875, 0.0428466796875, -0.0166168212890625, 0.005924224853515625, -0.0233306884765625, 0.067626953125, -0.0139923095703125, -0.0643310546875, 0.0264739990234375, -0.03741455078125, -0.0023593902587890625, -0.0333251953125, -0.0108489990234375, 0.009796142578125, 0.09014892578125, -0.03167724609375, -0.0040435791015625, -0.01248931884765625, 0.024810791015625, -0.0264129638671875, -0.09051513671875, -0.02392578125, -0.00907135009765625, -0.0546875, 0.0189056396484375, -0.018798828125, 0.0080718994140625, -0.02301025390625, 0.0323486328125, -0.027862548828125, -0.03973388671875, 0.039825439453125, -0.0036525726318359375, -0.007205963134765625, -0.036712646484375, -0.004852294921875, -0.05303955078125, -0.01467132568359375, 0.005168914794921875, -0.08807373046875, -0.0223388671875, -0.00057220458984375, 0.0645751953125, 0.00470733642578125, -0.0210113525390625, 0.01079559326171875, 0.0557861328125, 0.005657196044921875, 0.033447265625, 0.005817413330078125, 0.00836181640625, -0.000027358531951904297, -0.044952392578125, -0.002971649169921875, -0.049957275390625, -0.0469970703125, -0.06658935546875, 0.0438232421875, 0.0006561279296875, -0.0509033203125, -0.030670166015625, -0.07403564453125, 0.04119873046875, -0.041229248046875, -0.052398681640625, -0.047698974609375, 0.0119781494140625, -0.04095458984375, 0.006847381591796875, -0.07025146484375, -0.06036376953125, 0.00376129150390625, -0.01090240478515625, -0.0021610260009765625, 0.0284576416015625, 0.06500244140625, -0.0025463104248046875, -0.00502777099609375, -0.087158203125, -0.02142333984375, 0.0296783447265625, 0.02239990234375, 0.025665283203125, 0.0007414817810058594, -0.0268096923828125, 0.050628662109375, 0.0054168701171875, -0.0179443359375, 0.015777587890625, 0.0287628173828125, 0.00580596923828125, 0.0035305023193359375, -0.007534027099609375, -0.0029659271240234375, 0.0233306884765625, 0.02484130859375, 0.0080718994140625, -0.014892578125, 0.007297515869140625, 0.052734375, 0.0164642333984375, -0.037078857421875, -0.059478759765625, 0.0016002655029296875, 0.00833892822265625, 0.020660400390625, 0.0279083251953125, 0.001800537109375, 0.0262603759765625, -0.0011758804321289062, 0.0360107421875, -0.005268096923828125, 0.0205841064453125, 0.0482177734375, 0.00438690185546875, 0.03515625, 0.0061798095703125, -0.010528564453125, -0.0309600830078125, -0.0123748779296875, 0.007564544677734375, -0.0274810791015625, -0.07305908203125, 0.0052490234375, -0.01491546630859375, 0.07427978515625, 0.03521728515625, -0.0290069580078125, 0.015899658203125, 0.040740966796875, 0.01168060302734375, -0.00901031494140625, -0.0172576904296875, 0.0081939697265625, -0.02960205078125, 0.0411376953125, 0.01166534423828125, 0.0008673667907714844, 0.03582763671875, 0.012451171875, -0.0022487640380859375, 0.01910400390625, -0.0101165771484375, 0.049346923828125, 0.035430908203125, 0.00391387939453125, 0.01024627685546875, 0.034454345703125, -0.01494598388671875, -0.0213165283203125, -0.014373779296875, -0.0292205810546875, 0.0006117820739746094, 0.0175628662109375, 0.01531219482421875, 0.051910400390625, 0.006397247314453125, -0.00354766845703125, 0.005123138427734375, -0.0303192138671875, 0.04437255859375, -0.0018825531005859375, -0.06317138671875, -0.036773681640625, 0.0228424072265625, 0.036041259765625, -0.0014820098876953125, 0.0007886886596679688, -0.005306243896484375, -0.0149993896484375, 0.0162353515625, -0.004913330078125, -0.0008182525634765625, -0.00830078125, -0.01561737060546875, -0.07452392578125, -0.0217132568359375, -0.0095977783203125, -0.0210113525390625, -0.0408935546875, 0.01605224609375, -0.02398681640625, 0.02252197265625, -0.00392913818359375, 0.0364990234375, 0.0032749176025390625, -0.04400634765625, 0.0026874542236328125, 0.0257415771484375, 0.0239410400390625, 0.0031337738037109375, -0.05487060546875, 0.0029621124267578125, -0.037109375, -0.018768310546875, 0.0021724700927734375, -0.0281982421875, -0.04156494140625, -0.03448486328125, 0.029632568359375, -0.0020618438720703125, 0.01654052734375, -0.043670654296875, -0.052520751953125, 0.0168914794921875, 0.062347412109375, -0.0051116943359375, -0.02032470703125, 0.045318603515625, -0.0008053779602050781, 0.0156402587890625, -0.019500732421875, -0.00017368793487548828, 0.017120361328125, -0.00518035888671875, 0.0160675048828125, -0.053985595703125, -0.035980224609375, 0.042724609375, -0.072998046875, -0.01203155517578125, -0.01340484619140625, -0.006015777587890625, 0.0231170654296875, -0.0135498046875, -0.0024280548095703125, -0.01377105712890625, 0.0283660888671875, -0.021881103515625, 0.0103759765625, 0.042510986328125, 0.01288604736328125, 0.0259246826171875, -0.00998687744140625, -0.0174102783203125, 0.0241851806640625, 0.0065765380859375, 0.0293426513671875, -0.024322509765625, -0.01531219482421875, 0.0256805419921875, 0.047393798828125, 0.0096893310546875, 0.0204925537109375, -0.004840850830078125, 0.005893707275390625, -0.0171966552734375, -0.00943756103515625, -0.0206756591796875, 0.005950927734375, 0.0198822021484375, -0.0102691650390625, -0.0078887939453125, 0.01031494140625, -0.011993408203125, 0.0173492431640625, 0.0452880859375, 0.034210205078125, -0.08087158203125, 0.011566162109375, -0.00696563720703125, -0.019744873046875, 0.032012939453125, -0.00518035888671875, -0.004604339599609375, -0.037139892578125, 0.03387451171875, -0.0015172958374023438, -0.004817962646484375, -0.00102996826171875, -0.0252532958984375, 0.010162353515625, -0.007495880126953125, 0.04437255859375, 0.01456451416015625, -0.0270538330078125, 0.00034236907958984375, 0.01427459716796875, 0.0245819091796875, -0.0447998046875, -0.00296783447265625, 0.006092071533203125, -0.0219573974609375, -0.059051513671875, 0.024932861328125, -0.0038776397705078125, 0.019195556640625, 0.0249786376953125, 0.0292816162109375, -0.036163330078125, 0.0606689453125, -0.043701171875, 0.0672607421875, 0.0184326171875, -0.00505828857421875, -0.05950927734375, -0.00911712646484375, -0.0164947509765625, 0.0297393798828125, -0.020843505859375, 0.01611328125, -0.04278564453125, 0.012481689453125, -0.01102447509765625, -0.027557373046875, 0.06475830078125, -0.0023784637451171875, -0.0266571044921875, 0.0275726318359375, -0.0028228759765625, -0.033294677734375, -0.007251739501953125, 0.01087188720703125, -0.038665771484375, 0.01983642578125, 0.0015268325805664062, -0.0035552978515625, -0.026031494140625, -0.00994110107421875, -0.05389404296875, 0.11639404296875, -0.00928497314453125, 0.0173492431640625, -0.00011223554611206055, 0.06024169921875, -0.00665283203125, 0.047210693359375, -0.0301666259765625, 0.053070068359375, 0.00766754150390625, 0.005767822265625, -0.0455322265625, 0.00013947486877441406, -0.015380859375, 0.0238037109375, 0.059722900390625, 0.0111083984375, -0.0284881591796875, -0.00673675537109375, 0.04754638671875, 0.039398193359375, -0.0012187957763671875, 0.0258636474609375, 0.0079803466796875, 0.034942626953125, 0.0330810546875, -0.0195770263671875, 0.028289794921875, -0.0030517578125, -0.0204620361328125, 0.0296783447265625, 0.006282806396484375, 0.026214599609375, 0.0183868408203125, 0.0188751220703125, 0.0021190643310546875, 0.01071929931640625, 0.01267242431640625, -0.0229949951171875, 0.027099609375, 0.0364990234375, 0.06768798828125, -0.07000732421875, -0.0158233642578125, -0.03021240234375, 0.057952880859375, 0.0141448974609375, 0.01080322265625, 0.0380859375, 0.01453399658203125, 0.063232421875, -0.017730712890625, 0.0130767822265625, -0.0016002655029296875, -0.01322174072265625, 0.002918243408203125, 0.0276031494140625, 0.0177154541015625, -0.0185089111328125, -0.0087432861328125, 0.05804443359375, 0.021514892578125, -0.02215576171875, -0.040618896484375, 0.00927734375, 0.01541900634765625, 0.002681732177734375, 0.0158538818359375, 0.01032257080078125, 0.056793212890625, 0.08831787109375, -0.0186920166015625, -0.007740020751953125, 0.03216552734375, 0.059356689453125, -0.000028908252716064453, 0.00737762451171875, -0.055694580078125, -0.028533935546875, -0.049407958984375, -0.0256195068359375, 0.0301971435546875, 0.0579833984375, 0.0309295654296875, 0.02960205078125, 0.0181884765625, -0.022918701171875, -0.0021572113037109375, -0.01110076904296875, 0.00237274169921875, 0.0008993148803710938, -0.040496826171875, -0.015838623046875, 0.04248046875, 0.0275115966796875, -0.0255126953125, -0.0009074211120605469, 0.0290679931640625, 0.06427001953125, -0.0095367431640625, -0.04290771484375, 0.0113372802734375, -0.01065826416015625, 0.00261688232421875, -0.031982421875, -0.00536346435546875, 0.0021228790283203125, -0.0193634033203125, 0.0114288330078125, 0.0226898193359375, 0.0184326171875, 0.00887298583984375, -0.01161956787109375, 0.0121917724609375, -0.03955078125, 0.036529541015625, 0.0311126708984375, 0.0447998046875, 0.03546142578125, -0.09735107421875, -0.0066986083984375, -0.05120849609375, -0.0252685546875, 0.0282135009765625, 0.024749755859375, -0.034210205078125, 0.0369873046875, -0.037841796875, -0.0293731689453125, 0.01552581787109375, -0.00479888916015625, 0.0208587646484375, 0.0035305023193359375, -0.0202789306640625, -0.0186614990234375, -0.0631103515625, -0.038848876953125, -0.035888671875, 0.0458984375, 0.01873779296875, 0.07574462890625, -0.01004791259765625, 0.024993896484375, -0.028594970703125, 0.0069732666015625, -0.031646728515625, -0.036224365234375, 0.0264739990234375, -0.006572723388671875, 0.0012865066528320312, 0.0024013519287109375, -0.041473388671875, -0.024017333984375, 0.035003662109375, -0.060272216796875, 0.0294342041015625, -0.047454833984375, 0.01641845703125, -0.057525634765625, 0.00949859619140625, -0.021636962890625, -0.0107269287109375, -0.038818359375, 0.0030345916748046875, 0.024993896484375, 0.004344940185546875, -0.035919189453125, -0.00262451171875, 0.00962066650390625, -0.01322174072265625, -0.0078277587890625, 0.029876708984375, -0.0166168212890625, 0.031463623046875, -0.0053558349609375, 0.0157012939453125, 0.027496337890625, -0.01302337646484375, 0.013702392578125, 0.02606201171875, -0.01129913330078125, 0.033416748046875, -0.042327880859375, -0.025238037109375, 0.01430511474609375, 0.01032257080078125, -0.0177459716796875, 0.0029449462890625, -0.0017309188842773438, -0.0222930908203125, -0.00799560546875, 0.023101806640625, -0.032440185546875, -0.042022705078125, -0.0232086181640625, -0.0158233642578125, -0.03741455078125, -0.07763671875, -0.054046630859375, -0.0011777877807617188, 0.0162200927734375, -0.0008535385131835938, -0.04669189453125, 0.053619384765625, -0.031158447265625, 0.0030269622802734375, -0.0254974365234375, 0.0181427001953125, 0.007312774658203125, 0.053558349609375, -0.01788330078125, -0.00548553466796875, -0.00884246826171875, 0.003887176513671875, -0.027374267578125, 0.0112762451171875, 0.00884246826171875, -0.027801513671875, -0.00839996337890625, -0.006610870361328125, 0.0249481201171875, 0.0389404296875, 0.057098388671875, 0.016143798828125, 0.00829315185546875, 0.04522705078125, -0.0350341796875, -0.10968017578125, 0.00957489013671875, 0.0014810562133789062, 0.0014801025390625, -0.0230865478515625, 0.0272979736328125, 0.030181884765625, -0.0197296142578125, -0.037017822265625, 0.0400390625, -0.01161956787109375, -0.0177459716796875, -0.029754638671875, -0.0275726318359375, -0.0300140380859375, 0.0273895263671875, 0.001705169677734375, -0.015625, -0.0303955078125, 0.045135498046875, 0.019775390625, -0.007686614990234375, 0.0124664306640625, 0.00688934326171875, -0.041015625, 0.0220794677734375, 0.0254364013671875, 0.0114288330078125, 0.01123046875, -0.0194549560546875, 0.0296630859375, 0.04071044921875, -0.0291595458984375, 0.0013637542724609375, 0.002948760986328125, -0.0094757080078125, 0.00943756103515625, -0.0211944580078125, -0.077880859375, -0.05584716796875, 0.06341552734375, 0.043060302734375, 0.027069091796875, -0.00010824203491210938, -0.0205078125, -0.027923583984375, -0.0092620849609375, 0.006504058837890625, 0.0032482147216796875, -0.0252838134765625, 0.035919189453125, -0.0097503662109375, -0.026153564453125, 0.0016117095947265625, -0.01549530029296875, -0.05328369140625, 0.00919342041015625, 0.001071929931640625, 0.0163726806640625, -0.05987548828125, 0.0250396728515625, 0.01392364501953125, -0.0189361572265625, -0.035980224609375, -0.0011644363403320312, -0.00811767578125, -0.03314208984375, -0.022308349609375, -0.055419921875, -0.02838134765625, 0.0010967254638671875, 0.051361083984375, -0.031829833984375, 0.0517578125, -0.05450439453125, 0.0303802490234375, 0.0026454925537109375, 0.027435302734375, -0.003116607666015625, 0.024505615234375, 0.031158447265625, 0.0190277099609375, -0.004688262939453125, 0.06243896484375, -0.0120086669921875, 0.0640869140625, 0.01514434814453125, 0.026580810546875, -0.0167236328125, -0.0106201171875, 0.045501708984375, -0.055572509765625, -0.00974273681640625, 0.023223876953125, 0.00421905517578125, -0.0261383056640625, 0.0144500732421875, 0.00875091552734375, 0.0244140625, 0.008514404296875 ]
9260ec8ff974b6fef8c847339e8adcf663081350
Wordpress Stackexchange Q: is it possible to get next_post_link I have come across a problem whilst using the next_post_link() function. It seems that this function automatically echo's, for position reasons I need this to just return the link. Is there any available function or workaround that I can use to achieve this result? A: try to work with http://codex.wordpress.org/Function_Reference/get_adjacent_post; example: $next_post_link_url = get_permalink( get_adjacent_post(false,'',false)->ID ); $prev_post_link_url = get_permalink( get_adjacent_post(false,'',true)->ID );
Q: is it possible to get next_post_link I have come across a problem whilst using the next_post_link() function. It seems that this function automatically echo's, for position reasons I need this to just return the link. Is there any available function or workaround that I can use to achieve this result? A: try to work with http://codex.wordpress.org/Function_Reference/get_adjacent_post; example: $next_post_link_url = get_permalink( get_adjacent_post(false,'',false)->ID ); $prev_post_link_url = get_permalink( get_adjacent_post(false,'',true)->ID ); A: If you take a look at the source, next_post_link is just a wrapper for adjacent_post_link. Unfortunately, this function doesn't take any form of 'echo' parameter, so you'll either need to replicate the code in your own function & return the value, or catch it in an output buffer; ob_start(); next_post_link(); $next_post_link = ob_get_clean(); A: Actually, yes: just use get_next_posts_link(), using the same arguments. The next_posts_lin() function simply echoes the returned value of get_next_posts_link(). EDIT Erm, nevermind. I mis-read the function name. You could use get_next_post(), which returns a post object; then you could get the permalink from the returned ID object parameter: $nextpost = `get_next_post( $args )`; $nextpostid = $nextpost->ID; $nextpostlink = get_permalink( $nextpostid );
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:410717", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21191" }
[ 0.10479736328125, -0.00673675537109375, 0.06365966796875, -0.02606201171875, 0.01375579833984375, -0.01215362548828125, 0.0545654296875, -0.0546875, -0.016815185546875, 0.0355224609375, -0.0333251953125, 0.0137939453125, -0.010009765625, -0.01029205322265625, -0.0180816650390625, -0.041717529296875, 0.038848876953125, -0.0257415771484375, 0.032867431640625, 0.003986358642578125, 0.01065826416015625, 0.0207672119140625, 0.037506103515625, 0.041351318359375, 0.04034423828125, 0.039215087890625, 0.04339599609375, -0.0276947021484375, 0.042724609375, 0.0008788108825683594, 0.0369873046875, -0.06109619140625, 0.0081939697265625, 0.02044677734375, -0.01029205322265625, -0.08270263671875, 0.00585174560546875, -0.004848480224609375, -0.0150299072265625, 0.03765869140625, 0.0104522705078125, 0.00522613525390625, -0.0116119384765625, -0.0239715576171875, -0.023681640625, -0.002483367919921875, -0.01296234130859375, -0.039642333984375, 0.00933837890625, 0.017974853515625, 0.0276947021484375, 0.0037288665771484375, 0.0248260498046875, 0.0535888671875, -0.0177154541015625, -0.0237274169921875, -0.01702880859375, -0.005352020263671875, 0.035675048828125, -0.04827880859375, -0.038238525390625, -0.024993896484375, 0.03521728515625, 0.0011043548583984375, -0.03240966796875, 0.00811004638671875, -0.008056640625, 0.01552581787109375, -0.0188751220703125, -0.036041259765625, 0.0236663818359375, -0.006805419921875, -0.0021076202392578125, 0.00806427001953125, -0.00823974609375, -0.02850341796875, 0.003566741943359375, -0.0305328369140625, 0.01204681396484375, 0.0163726806640625, -0.05035400390625, 0.02117919921875, -0.03436279296875, -0.019744873046875, -0.0164337158203125, -0.0163726806640625, -0.0267333984375, 0.0022220611572265625, -0.03399658203125, -0.0535888671875, -0.033355712890625, -0.029510498046875, -0.0099945068359375, -0.0343017578125, -0.042877197265625, -0.0243377685546875, 0.039764404296875, 0.02728271484375, 0.0027942657470703125, 0.006793975830078125, 0.005702972412109375, -0.044647216796875, 0.0321044921875, -0.027191162109375, -0.01189422607421875, 0.01751708984375, 0.003154754638671875, 0.00563812255859375, 0.0266265869140625, 0.031341552734375, -0.0015201568603515625, 0.01074981689453125, 0.00560760498046875, -0.0111846923828125, -0.031463623046875, 0.03314208984375, -0.0201263427734375, 0.0025959014892578125, 0.0031375885009765625, 0.031646728515625, -0.01476287841796875, 0.011566162109375, -0.0070343017578125, 0.00916290283203125, 0.038604736328125, 0.03680419921875, 0.0068511962890625, -0.0221405029296875, 0.05712890625, 0.032745361328125, -0.041168212890625, -0.010589599609375, 0.0235595703125, -0.004901885986328125, 0.0022792816162109375, -0.032989501953125, -0.01012420654296875, -0.045654296875, 0.00212860107421875, 0.021331787109375, -0.004772186279296875, -0.0516357421875, -0.0164642333984375, 0.005462646484375, 0.016693115234375, 0.035858154296875, 0.00789642333984375, -0.002788543701171875, -0.0116424560546875, -0.005550384521484375, -0.00997161865234375, -0.03216552734375, 0.01377105712890625, -0.007663726806640625, 0.0078125, -0.061920166015625, -0.0007309913635253906, -0.038360595703125, 0.057098388671875, -0.0418701171875, 0.04217529296875, 0.01383209228515625, 0.0211334228515625, -0.006381988525390625, -0.054656982421875, -0.01128387451171875, -0.08831787109375, -0.0242462158203125, 0.0265045166015625, 0.0750732421875, 0.0274200439453125, -0.0247955322265625, -0.0203399658203125, 0.0034465789794921875, -0.00936126708984375, -0.027313232421875, 0.016204833984375, -0.0194549560546875, -0.005825042724609375, 0.07464599609375, 0.006725311279296875, -0.0264739990234375, 0.0006794929504394531, -0.0025634765625, -0.023773193359375, 0.068603515625, 0.020172119140625, 0.07421875, -0.0160980224609375, 0.0301361083984375, -0.006877899169921875, 0.0299530029296875, -0.036651611328125, 0.0142364501953125, -0.0268402099609375, -0.0267333984375, 0.050872802734375, 0.01029205322265625, -0.015777587890625, -0.00017333030700683594, -0.0194244384765625, 0.006256103515625, -0.02349853515625, 0.03411865234375, -0.037200927734375, 0.006153106689453125, -0.00432586669921875, 0.0263519287109375, 0.00579071044921875, 0.0253753662109375, 0.0065765380859375, 0.0007176399230957031, -0.011260986328125, -0.05401611328125, -0.0189361572265625, 0.04095458984375, -0.010589599609375, -0.0298309326171875, -0.0242462158203125, 0.01363372802734375, -0.03369140625, -0.0031795501708984375, -0.05181884765625, 0.022613525390625, 0.049530029296875, -0.006908416748046875, -0.02685546875, -0.03070068359375, -0.01953125, 0.01467132568359375, -0.09649658203125, 0.061492919921875, 0.0211181640625, 0.0007367134094238281, -0.01374053955078125, 0.0145721435546875, 0.023529052734375, -0.036834716796875, 0.00522613525390625, 0.03460693359375, 0.031951904296875, 0.03369140625, -0.0155792236328125, -0.017730712890625, 0.03338623046875, -0.032501220703125, 0.0242919921875, -0.029510498046875, -0.00597381591796875, 0.030181884765625, 0.0012445449829101562, 0.0235137939453125, 0.0201568603515625, 0.0203704833984375, -0.00991058349609375, 0.040802001953125, 0.01482391357421875, 0.0255889892578125, -0.0273895263671875, 0.004730224609375, -0.0017461776733398438, -0.026031494140625, -0.0238189697265625, -0.029205322265625, 0.005138397216796875, -0.020782470703125, 0.028411865234375, 0.0182037353515625, 0.0075225830078125, -0.03704833984375, 0.00576019287109375, 0.01160430908203125, 0.0068511962890625, 0.01470947265625, 0.0180816650390625, -0.054473876953125, 0.004913330078125, -0.01507568359375, -0.0099334716796875, -0.022735595703125, -0.01232147216796875, 0.034637451171875, 0.0237884521484375, -0.020111083984375, -0.01270294189453125, -0.0239410400390625, 0.01432037353515625, -0.0026397705078125, -0.034027099609375, 0.0018968582153320312, 0.026275634765625, 0.03662109375, -0.03045654296875, 0.038360595703125, -0.02447509765625, 0.01396942138671875, -0.039276123046875, -0.052032470703125, 0.043365478515625, -0.05474853515625, 0.019439697265625, 0.058868408203125, -0.0180206298828125, 0.019744873046875, -0.00963592529296875, 0.01311492919921875, -0.0020503997802734375, -0.0137939453125, -0.0380859375, -0.006439208984375, -0.0860595703125, -0.040374755859375, 0.017425537109375, 0.052642822265625, -0.01454925537109375, -0.049468994140625, -0.005367279052734375, 0.0207366943359375, -0.072509765625, -0.04156494140625, 0.00991058349609375, -0.039947509765625, -0.012237548828125, 0.047454833984375, -0.0208282470703125, -0.016876220703125, 0.0772705078125, -0.003643035888671875, 0.0253448486328125, -0.049102783203125, -0.0889892578125, -0.06329345703125, -0.095703125, 0.01496124267578125, -0.00241851806640625, 0.01442718505859375, 0.01146697998046875, 0.009552001953125, -0.0019683837890625, -0.0445556640625, -0.000008225440979003906, 0.0183258056640625, -0.018951416015625, -0.01953125, -0.0089874267578125, 0.0229644775390625, -0.02239990234375, 0.019927978515625, 0.0159454345703125, 0.00732421875, -0.01788330078125, -0.01280975341796875, -0.013336181640625, 0.0239410400390625, 0.05126953125, 0.01605224609375, -0.0039825439453125, 0.051849365234375, 0.06622314453125, 0.000009179115295410156, -0.0002796649932861328, -0.0408935546875, -0.053680419921875, 0.01983642578125, 0.02105712890625, 0.0037746429443359375, -0.031707763671875, 0.0245361328125, -0.01459503173828125, -0.00777435302734375, -0.02508544921875, -0.0240325927734375, 0.0386962890625, -0.0013990402221679688, 0.0213623046875, 0.0291748046875, -0.005828857421875, -0.0094146728515625, 0.013031005859375, -0.0153350830078125, 0.0325927734375, -0.0054931640625, 0.00257110595703125, -0.060882568359375, -0.043487548828125, 0.04766845703125, -0.01605224609375, 0.017059326171875, -0.0290374755859375, -0.038299560546875, -0.004741668701171875, 0.09039306640625, -0.040069580078125, -0.0294036865234375, -0.0024623870849609375, 0.0154571533203125, -0.005615234375, -0.05560302734375, -0.028900146484375, -0.0235137939453125, -0.06475830078125, -0.0157470703125, -0.032501220703125, -0.0203094482421875, -0.005889892578125, 0.069580078125, -0.0231475830078125, -0.0285491943359375, 0.01558685302734375, 0.0027713775634765625, -0.01509857177734375, 0.03973388671875, -0.030029296875, 0.00861358642578125, -0.0300750732421875, -0.002239227294921875, -0.0467529296875, -0.00910186767578125, -0.0016460418701171875, 0.02545166015625, 0.016326904296875, -0.0180511474609375, -0.00905609130859375, 0.0237579345703125, 0.017120361328125, -0.00659942626953125, 0.0273895263671875, -0.0026531219482421875, 0.034149169921875, 0.0011920928955078125, 0.01064300537109375, -0.0282135009765625, 0.005168914794921875, -0.02294921875, -0.01885986328125, 0.02215576171875, -0.04400634765625, 0.015838623046875, -0.030975341796875, -0.00701141357421875, -0.016998291015625, 0.01654052734375, 0.0143280029296875, 0.06298828125, -0.01776123046875, 0.013427734375, -0.0205078125, -0.058990478515625, 0.031036376953125, 0.010498046875, -0.031829833984375, -0.0094146728515625, 0.0184326171875, 0.0215911865234375, -0.0272216796875, 0.02362060546875, 0.01438140869140625, 0.02276611328125, 0.007343292236328125, 0.006763458251953125, -0.01320648193359375, -0.026763916015625, 0.040802001953125, 0.0010538101196289062, -0.008758544921875, -0.0038814544677734375, 0.032379150390625, 0.029083251953125, 0.0025310516357421875, -0.0010223388671875, 0.00388336181640625, 0.00689697265625, 0.0224761962890625, -0.03192138671875, -0.0249481201171875, -0.01373291015625, 0.056854248046875, -0.0271759033203125, 0.06146240234375, -0.047088623046875, -0.01454925537109375, 0.00568389892578125, 0.0489501953125, 0.04791259765625, 0.0477294921875, -0.0114593505859375, 0.03607177734375, 0.007587432861328125, 0.0028285980224609375, -0.0053558349609375, 0.0021305084228515625, 0.033416748046875, 0.044647216796875, -0.0291595458984375, 0.012115478515625, -0.015716552734375, 0.005115509033203125, 0.037506103515625, 0.01326751708984375, -0.007427215576171875, -0.014068603515625, -0.01800537109375, -0.0193634033203125, -0.0081787109375, -0.028533935546875, 0.038421630859375, 0.04766845703125, -0.025909423828125, 0.005828857421875, -0.015655517578125, -0.0039215087890625, -0.041961669921875, 0.0215301513671875, -0.0087890625, 0.0218963623046875, 0.0096435546875, 0.11224365234375, -0.0089111328125, 0.0814208984375, -0.03802490234375, -0.002140045166015625, 0.00740814208984375, 0.0181732177734375, 0.0268707275390625, -0.01386260986328125, 0.00443267822265625, -0.0159759521484375, 0.034027099609375, -0.0302734375, -0.017608642578125, 0.008026123046875, 0.04974365234375, 0.033050537109375, 0.0119476318359375, 0.00782012939453125, -0.00861358642578125, -0.038055419921875, 0.06756591796875, 0.111083984375, -0.030670166015625, -0.0032024383544921875, 0.0338134765625, 0.0094146728515625, 0.016021728515625, -0.027557373046875, 0.031951904296875, -0.0117645263671875, 0.0169219970703125, -0.030792236328125, -0.0267486572265625, 0.02105712890625, 0.024078369140625, 0.0020294189453125, 0.0079345703125, -0.0084228515625, 0.0242919921875, -0.01010894775390625, -0.0188140869140625, -0.0382080078125, 0.035980224609375, 0.006862640380859375, 0.0439453125, -0.05657958984375, -0.009735107421875, -0.0604248046875, -0.01287841796875, 0.06634521484375, 0.0246429443359375, -0.06781005859375, 0.0307769775390625, -0.04766845703125, 0.00469207763671875, -0.023681640625, -0.043914794921875, -0.034393310546875, -0.0189361572265625, 0.041961669921875, 0.03375244140625, 0.0008111000061035156, -0.01241302490234375, 0.01416015625, 0.007740020751953125, -0.0022869110107421875, 0.04022216796875, -0.00894927978515625, 0.0482177734375, 0.0413818359375, 0.061492919921875, 0.01082611083984375, 0.0007281303405761719, -0.055908203125, -0.01508331298828125, 0.004039764404296875, -0.046966552734375, -0.040863037109375, -0.006046295166015625, -0.0032634735107421875, 0.010650634765625, -0.004283905029296875, -0.01065826416015625, -0.01023101806640625, 0.0013885498046875, 0.0156707763671875, -0.00550079345703125, -0.0308685302734375, 0.0255584716796875, -0.042724609375, 0.0265655517578125, 0.0025653839111328125, -0.002140045166015625, 0.00699615478515625, -0.01390838623046875, -0.01922607421875, 0.0303802490234375, -0.031097412109375, -0.0033283233642578125, -0.03399658203125, 0.033721923828125, 0.0623779296875, 0.0229644775390625, 0.05804443359375, 0.00926971435546875, 0.027130126953125, 0.037384033203125, 0.0159454345703125, 0.0289306640625, 0.002101898193359375, 0.043060302734375, -0.00826263427734375, -0.0109405517578125, -0.01035308837890625, -0.03228759765625, -0.0010089874267578125, -0.0309295654296875, 0.028533935546875, 0.00977325439453125, 0.01076507568359375, 0.02117919921875, -0.003452301025390625, 0.0220489501953125, 0.0233001708984375, 0.0095367431640625, -0.003177642822265625, 0.0263824462890625, -0.032806396484375, 0.017822265625, 0.00925445556640625, -0.041229248046875, -0.01056671142578125, -0.04364013671875, 0.022308349609375, 0.00922393798828125, -0.031280517578125, 0.00543212890625, 0.01666259765625, -0.0288543701171875, -0.035003662109375, -0.017578125, -0.0134429931640625, -0.026031494140625, -0.05023193359375, 0.01250457763671875, -0.01061248779296875, 0.03460693359375, -0.011444091796875, -0.0236968994140625, 0.0211639404296875, 0.0214385986328125, -0.005828857421875, 0.0019521713256835938, -0.0111541748046875, -0.03204345703125, 0.022491455078125, -0.028564453125, 0.0188751220703125, 0.03173828125, -0.01715087890625, 0.0231781005859375, 0.0079193115234375, -0.05621337890625, -0.01074981689453125, 0.0211944580078125, 0.133544921875, -0.0241851806640625, -0.0304412841796875, 0.04327392578125, 0.0088958740234375, -0.04205322265625, -0.008331298828125, 0.02264404296875, -0.0328369140625, 0.0162200927734375, -0.0190582275390625, 0.0045013427734375, 0.01422882080078125, -0.04022216796875, -0.052734375, 0.07598876953125, -0.0077056884765625, 0.03387451171875, 0.0169525146484375, 0.0157928466796875, 0.0067901611328125, 0.0240631103515625, -0.041839599609375, 0.07177734375, 0.0253753662109375, 0.042572021484375, -0.07403564453125, -0.0268402099609375, -0.005191802978515625, 0.0576171875, 0.030364990234375, 0.00635528564453125, -0.0213623046875, -0.023834228515625, 0.040740966796875, 0.048370361328125, 0.0081024169921875, 0.0162811279296875, 0.0291290283203125, 0.0906982421875, 0.0885009765625, -0.05975341796875, 0.0394287109375, -0.005268096923828125, 0.0163726806640625, 0.037017822265625, 0.01055145263671875, 0.003597259521484375, -0.02569580078125, -0.0172119140625, -0.037200927734375, -0.0084228515625, 0.0161285400390625, -0.0413818359375, 0.0226898193359375, 0.046234130859375, 0.040496826171875, -0.0230712890625, 0.0130615234375, -0.033111572265625, 0.043609619140625, -0.010711669921875, -0.01084136962890625, 0.0210113525390625, 0.0013904571533203125, 0.051513671875, -0.02667236328125, -0.01502227783203125, -0.008697509765625, 0.040191650390625, 0.0977783203125, 0.023529052734375, 0.025726318359375, -0.0809326171875, -0.030975341796875, 0.06683349609375, 0.118408203125, -0.05718994140625, -0.01512908935546875, 0.00684356689453125, -0.024078369140625, -0.00106048583984375, -0.0263671875, 0.0057830810546875, 0.008087158203125, -0.004268646240234375, -0.041839599609375, -0.023193359375, 0.04595947265625, 0.0389404296875, 0.00959014892578125, -0.01204681396484375, -0.045684814453125, -0.053955078125, -0.0269775390625, -0.015777587890625, 0.02313232421875, 0.0254669189453125, 0.0121612548828125, 0.03955078125, 0.0200653076171875, 0.017608642578125, 0.0364990234375, 0.0291290283203125, -0.043975830078125, -0.02984619140625, 0.006763458251953125, -0.072998046875, -0.048248291015625, 0.0238189697265625, 0.00885009765625, -0.01227569580078125, 0.0006928443908691406, 0.0014514923095703125, 0.01447296142578125, -0.0151824951171875, 0.00624847412109375, -0.0159149169921875, 0.02301025390625, -0.051788330078125, 0.036376953125, 0.03021240234375, -0.007442474365234375, 0.0005507469177246094, -0.036376953125, 0.06402587890625, -0.0138702392578125, 0.04669189453125, 0.00013065338134765625, 0.01396942138671875, 0.019805908203125, -0.0176544189453125, -0.0015735626220703125, 0.0038604736328125, -0.0694580078125, 0.00016045570373535156, -0.0472412109375, -0.02545166015625, 0.0010747909545898438, 0.0187835693359375, -0.00437164306640625, 0.01148223876953125, 0.0207366943359375, -0.005706787109375, 0.0159454345703125, -0.01091766357421875, 0.010650634765625, 0.00225830078125, 0.01364898681640625, 0.01439666748046875, -0.0169830322265625, -0.0208892822265625, -0.0243072509765625, 0.044677734375, 0.045318603515625, 0.024261474609375, -0.01459503173828125, 0.03497314453125, 0.0007810592651367188, 0.0237274169921875, -0.0254669189453125, -0.007152557373046875, 0.033966064453125, -0.003078460693359375, 0.00927734375, -0.0218505859375, -0.0268707275390625, 0.00634002685546875, 0.041046142578125, -0.0280303955078125, 0.021240234375, -0.04901123046875, 0.01355743408203125, -0.0298309326171875, 0.042083740234375, -0.0173187255859375, -0.0169677734375, -0.0335693359375, -0.0201263427734375, 0.03277587890625, 0.020355224609375, -0.00954437255859375, 0.033050537109375, 0.02081298828125, -0.01739501953125, 0.01450347900390625, -0.02301025390625, 0.035675048828125, 0.0347900390625, -0.0232086181640625, 0.0221710205078125, -0.02008056640625, -0.024261474609375, 0.030853271484375, 0.0025463104248046875, -0.0171661376953125, -0.0011529922485351562, -0.02783203125, -0.0194854736328125, 0.02471923828125, 0.06463623046875, -0.0003490447998046875, 0.030487060546875, 0.0014066696166992188, 0.00711822509765625, -0.00264739990234375, -0.0090179443359375, -0.005107879638671875, -0.0103912353515625, -0.0266571044921875, 0.012542724609375, 0.00907135009765625, -0.011505126953125, 0.00647735595703125, -0.0095977783203125, 0.017059326171875, 0.0081329345703125, -0.037384033203125, 0.0167083740234375, 0.0003535747528076172, 0.0245208740234375, -0.02734375, -0.01666259765625, 0.01409149169921875, 0.04388427734375, -0.0102386474609375, -0.0199737548828125, -0.0227508544921875, 0.0179290771484375, -0.029998779296875, 0.029571533203125, 0.0008392333984375, -0.03790283203125, 0.0131378173828125, 0.044189453125, 0.038665771484375, 0.08740234375, 0.0335693359375, -0.0022125244140625, 0.0152435302734375, 0.009979248046875, -0.016571044921875, -0.043121337890625, 0.0230712890625, -0.0423583984375, -0.035552978515625, 0.011688232421875, -0.008697509765625, 0.01165008544921875, -0.03131103515625, -0.08819580078125, 0.036956787109375, -0.01371002197265625, -0.044525146484375, -0.047607421875, 0.018798828125, 0.019500732421875, -0.0236968994140625, -0.00910186767578125, -0.0220794677734375, -0.060089111328125, -0.001617431640625, 0.0126495361328125, 0.0528564453125, -0.010345458984375, 0.027862548828125, -0.0207061767578125, 0.04327392578125, 0.0257568359375, 0.0181121826171875, -0.0099029541015625, 0.0265350341796875, -0.0133209228515625, 0.021881103515625, -0.0307159423828125, -0.002216339111328125, -0.0270538330078125, 0.0164337158203125, -0.0105743408203125, -0.0255279541015625, -0.00296783447265625, 0.00146484375, 0.044342041015625, 0.054931640625, 0.016082763671875, -0.047454833984375, 0.01396942138671875, 0.001377105712890625, -0.07354736328125, -0.01336669921875, 0.036407470703125, -0.06561279296875, -0.0234375, 0.00836944580078125, 0.004978179931640625, -0.01861572265625, -0.03900146484375, -0.034515380859375, -0.02825927734375, -0.0421142578125, 0.0401611328125, -0.061309814453125, 0.056610107421875, 0.06451416015625, -0.047119140625, 0.0180511474609375, 0.0111541748046875, -0.023284912109375, 0.038055419921875, -0.0181121826171875, 0.02874755859375, 0.03619384765625, -0.048675537109375, -0.0229034423828125, 0.0277099609375, 0.0302276611328125, -0.0008158683776855469, -0.043731689453125, -0.0176544189453125, 0.02252197265625, 0.003139495849609375, 0.0064849853515625, -0.0224456787109375, 0.037628173828125, 0.01522064208984375, 0.05450439453125, 0.01004791259765625, 0.057373046875, 0.042327880859375, 0.031280517578125, -0.04278564453125, -0.0171051025390625, -0.01493072509765625, -0.074462890625, -0.003021240234375, 0.033966064453125, 0.003932952880859375, -0.003719329833984375, 0.01507568359375, 0.041748046875, 0.0098876953125, 0.0026702880859375 ]
e48c9cf60bbd7ace5b140379de3b0ca0de2ba8a9
Wordpress Stackexchange Q: Is there a is_user_logged_in() for multisite? Is there a is_user_logged_in() function for Wordpress MU / Multisite (3.0+) where I can add in the network site ID like is_user_logged_in(2) where 2 would be the site_id? Update: After a little digging I came up with the code below. Unfortunately it does not work. //don't use this. does not work. function mu_logged_in($blog_id){ switch_to_blog($blog_id); $status = is_user_logged_in(); restore_current_blog(); return $status; } anu's answer and comments are good. also, make sure you have the cookie domain set correctly in the wp-config.php file :) A: Yes, and no! The way users work in a multisite scenario is that there is a single pool of users, who are then associated with blogs. So, logged in status is common across all the blogs, but you can use is_blog_user($blog_id) to determine whether the current logged in user is a member of that blog. An example: if (is_user_logged_in()) { if (is_blog_user(4)) echo "Current user is a member of blog 4"; } Codex page for is_blog_user()
Q: Is there a is_user_logged_in() for multisite? Is there a is_user_logged_in() function for Wordpress MU / Multisite (3.0+) where I can add in the network site ID like is_user_logged_in(2) where 2 would be the site_id? Update: After a little digging I came up with the code below. Unfortunately it does not work. //don't use this. does not work. function mu_logged_in($blog_id){ switch_to_blog($blog_id); $status = is_user_logged_in(); restore_current_blog(); return $status; } anu's answer and comments are good. also, make sure you have the cookie domain set correctly in the wp-config.php file :) A: Yes, and no! The way users work in a multisite scenario is that there is a single pool of users, who are then associated with blogs. So, logged in status is common across all the blogs, but you can use is_blog_user($blog_id) to determine whether the current logged in user is a member of that blog. An example: if (is_user_logged_in()) { if (is_blog_user(4)) echo "Current user is a member of blog 4"; } Codex page for is_blog_user()
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:410718", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21192" }
[ 0.040679931640625, -0.001972198486328125, 0.004039764404296875, -0.005428314208984375, 0.025360107421875, -0.0288238525390625, 0.049072265625, -0.01385498046875, 0.0169677734375, 0.016876220703125, -0.00800323486328125, 0.011505126953125, -0.027923583984375, -0.0176239013671875, -0.01287841796875, -0.01398468017578125, 0.04327392578125, -0.0243988037109375, 0.032501220703125, -0.003971099853515625, -0.003047943115234375, 0.0266265869140625, 0.04095458984375, -0.01366424560546875, 0.0256195068359375, -0.0252838134765625, 0.05010986328125, -0.01486968994140625, 0.045867919921875, -0.00008356571197509766, 0.0293731689453125, -0.04071044921875, 0.012908935546875, 0.0209503173828125, -0.008941650390625, -0.05401611328125, 0.0021686553955078125, 0.002346038818359375, 0.023468017578125, 0.012176513671875, 0.028564453125, -0.023101806640625, -0.026153564453125, 0.0117034912109375, -0.02655029296875, -0.039031982421875, 0.0323486328125, 0.004108428955078125, 0.034149169921875, 0.0019550323486328125, 0.0049285888671875, -0.01415252685546875, 0.00872802734375, 0.01242828369140625, -0.052642822265625, -0.0259246826171875, 0.01194000244140625, 0.004184722900390625, 0.035797119140625, -0.006134033203125, -0.030426025390625, -0.0135498046875, 0.0302886962890625, -0.0287322998046875, -0.00817108154296875, -0.0003657341003417969, -0.001918792724609375, 0.0166778564453125, -0.0269622802734375, -0.04986572265625, -0.003925323486328125, -0.01290130615234375, 0.0167388916015625, 0.0487060546875, -0.06280517578125, -0.04241943359375, 0.0298919677734375, -0.0184173583984375, 0.0296478271484375, -0.0006604194641113281, -0.039276123046875, 0.0169525146484375, -0.0716552734375, 0.00545501708984375, -0.0121917724609375, 0.04425048828125, -0.0261688232421875, -0.0114288330078125, -0.038665771484375, 0.01715087890625, -0.02935791015625, -0.03948974609375, 0.00823211669921875, 0.01506805419921875, -0.0155792236328125, -0.0102996826171875, 0.036651611328125, 0.0948486328125, -0.051177978515625, -0.045806884765625, -0.02911376953125, -0.0023651123046875, -0.07855224609375, -0.0139617919921875, 0.007045745849609375, 0.06951904296875, 0.0162200927734375, 0.0163421630859375, 0.01032257080078125, -0.0023708343505859375, 0.018280029296875, -0.03656005859375, -0.03363037109375, -0.056793212890625, -0.022369384765625, 0.060516357421875, -0.005512237548828125, -0.036407470703125, -0.00390625, -0.0229034423828125, -0.014251708984375, 0.0211944580078125, -0.017486572265625, 0.005962371826171875, 0.00792694091796875, 0.00748443603515625, 0.0239105224609375, -0.02142333984375, -0.058013916015625, 0.02984619140625, -0.0166778564453125, 0.0153656005859375, 0.022369384765625, -0.00025963783264160156, -0.033935546875, -0.026702880859375, 0.037109375, -0.005046844482421875, -0.01210784912109375, 0.025970458984375, 0.006511688232421875, -0.07208251953125, -0.04156494140625, -0.004669189453125, 0.0014934539794921875, 0.044647216796875, 0.04144287109375, -0.003490447998046875, -0.043853759765625, -0.0673828125, 0.022430419921875, -0.018585205078125, -0.0108489990234375, 0.00374603271484375, 0.04388427734375, -0.01177978515625, 0.0246124267578125, -0.0296173095703125, 0.0210418701171875, 0.014068603515625, 0.04266357421875, 0.0005497932434082031, 0.01137542724609375, -0.0005955696105957031, -0.0258941650390625, -0.0201263427734375, -0.052459716796875, -0.00406646728515625, 0.0243988037109375, -0.0169219970703125, -0.031402587890625, 0.01258087158203125, 0.0963134765625, 0.0142059326171875, -0.0245513916015625, 0.0225372314453125, -0.03350830078125, 0.07818603515625, 0.0181427001953125, 0.013519287109375, 0.01904296875, -0.02862548828125, 0.0672607421875, -0.00345611572265625, -0.029571533203125, 0.02374267578125, -0.003665924072265625, 0.037689208984375, 0.01558685302734375, 0.004161834716796875, 0.011688232421875, 0.00461578369140625, -0.041717529296875, 0.009765625, -0.00675201416015625, -0.0206756591796875, 0.0037288665771484375, -0.00473785400390625, -0.01483917236328125, 0.01418304443359375, 0.047576904296875, 0.0035247802734375, -0.0216064453125, -0.015655517578125, -0.06732177734375, -0.020538330078125, -0.0051727294921875, 0.01119232177734375, -0.00839996337890625, -0.006343841552734375, 0.01171112060546875, -0.00001800060272216797, 0.00910186767578125, -0.05670166015625, -0.026275634765625, 0.019744873046875, -0.0179443359375, 0.053436279296875, 0.00954437255859375, 0.0450439453125, -0.03167724609375, 0.0196380615234375, -0.0169677734375, -0.050506591796875, 0.058197021484375, -0.038665771484375, -0.01160430908203125, -0.038970947265625, 0.0273590087890625, -0.000008344650268554688, -0.04010009765625, 0.0350341796875, 0.0011768341064453125, 0.05072021484375, -0.00853729248046875, -0.026214599609375, 0.006641387939453125, -0.0406494140625, 0.034027099609375, 0.0280303955078125, 0.038299560546875, 0.01143646240234375, 0.0108795166015625, 0.0152130126953125, 0.006378173828125, -0.0308990478515625, 0.025726318359375, -0.0189666748046875, -0.01041412353515625, 0.057342529296875, -0.028564453125, 0.0426025390625, 0.0081939697265625, 0.0223541259765625, 0.001644134521484375, 0.044189453125, -0.0038471221923828125, -0.01206207275390625, -0.01617431640625, 0.005893707275390625, 0.007843017578125, -0.0137939453125, -0.017669677734375, 0.00418853759765625, 0.007434844970703125, 0.00446319580078125, 0.021087646484375, -0.0022678375244140625, -0.01029205322265625, -0.007030487060546875, 0.01016998291015625, -0.0283660888671875, 0.005100250244140625, 0.058746337890625, 0.05047607421875, 0.018463134765625, -0.02294921875, -0.034423828125, 0.01403045654296875, 0.032745361328125, -0.051544189453125, -0.009857177734375, -0.052459716796875, -0.0210113525390625, 0.004489898681640625, 0.002811431884765625, -0.0001251697540283203, -0.040802001953125, -0.0139617919921875, -0.04388427734375, 0.0016317367553710938, -0.0006036758422851562, -0.035614013671875, 0.045867919921875, -0.01654052734375, -0.043212890625, -0.009521484375, -0.05169677734375, 0.044921875, -0.034423828125, 0.0364990234375, 0.07098388671875, 0.007110595703125, 0.0142822265625, -0.0189666748046875, -0.03765869140625, -0.03973388671875, 0.0161895751953125, 0.0003619194030761719, -0.04559326171875, 0.032135009765625, 0.10321044921875, 0.01068878173828125, 0.0217437744140625, -0.005489349365234375, -0.03533935546875, -0.001102447509765625, -0.0113067626953125, -0.057769775390625, -0.058624267578125, -0.047393798828125, -0.095947265625, 0.00656890869140625, -0.04541015625, -0.031280517578125, 0.029266357421875, -0.0240478515625, 0.01123046875, -0.0303802490234375, -0.0014619827270507812, -0.03564453125, -0.051116943359375, -0.06927490234375, 0.031890869140625, -0.007415771484375, 0.0213470458984375, -0.0030059814453125, -0.003971099853515625, -0.01520538330078125, -0.0340576171875, -0.0246124267578125, -0.00859832763671875, -0.010345458984375, -0.048248291015625, -0.06036376953125, 0.038482666015625, -0.0031566619873046875, 0.00824737548828125, -0.0163116455078125, -0.007801055908203125, 0.01154327392578125, -0.0160369873046875, -0.005702972412109375, -0.0235748291015625, 0.03564453125, -0.034912109375, -0.0166015625, 0.024749755859375, 0.0361328125, -0.0304412841796875, -0.01151275634765625, -0.0163421630859375, -0.044403076171875, 0.0194854736328125, 0.026641845703125, -0.019317626953125, 0.0155181884765625, -0.0279693603515625, 0.0005993843078613281, -0.01216888427734375, -0.0071563720703125, -0.003414154052734375, 0.017730712890625, 0.003231048583984375, 0.00033855438232421875, -0.0020694732666015625, 0.038909912109375, -0.007541656494140625, -0.04656982421875, -0.0271148681640625, 0.01258087158203125, -0.0244598388671875, -0.006488800048828125, -0.0784912109375, -0.00598907470703125, 0.0165252685546875, -0.01538848876953125, 0.053985595703125, -0.035980224609375, -0.0143585205078125, -0.0286712646484375, 0.08319091796875, -0.034759521484375, -0.0136871337890625, 0.005588531494140625, 0.008636474609375, -0.0231170654296875, -0.003391265869140625, -0.059417724609375, 0.0016422271728515625, -0.015411376953125, -0.00751495361328125, 0.007671356201171875, -0.02532958984375, -0.0192413330078125, 0.03173828125, -0.017486572265625, -0.0065155029296875, -0.00583648681640625, 0.04425048828125, 0.00495147705078125, 0.006748199462890625, 0.00789642333984375, 0.00678253173828125, 0.04290771484375, -0.035308837890625, -0.03558349609375, -0.0052947998046875, -0.057159423828125, 0.057647705078125, 0.04608154296875, -0.011138916015625, -0.003833770751953125, 0.021148681640625, -0.031494140625, -0.03460693359375, -0.00345611572265625, 0.01030731201171875, 0.0187225341796875, 0.0288238525390625, -0.036407470703125, -0.0008120536804199219, 0.0038623809814453125, -0.00955963134765625, -0.0322265625, -0.03607177734375, -0.0345458984375, -0.050262451171875, 0.023345947265625, -0.039703369140625, -0.02020263671875, -0.038055419921875, 0.00299835205078125, -0.00019681453704833984, -0.042327880859375, 0.02740478515625, -0.004619598388671875, 0.0007920265197753906, 0.0097198486328125, 0.00875091552734375, -0.0206146240234375, 0.0081787109375, 0.040863037109375, 0.0288543701171875, -0.016754150390625, -0.00855255126953125, 0.0067901611328125, 0.018890380859375, -0.0517578125, 0.07562255859375, 0.04803466796875, -0.01291656494140625, 0.037109375, -0.00934600830078125, -0.00415802001953125, 0.004375457763671875, 0.032806396484375, 0.0027561187744140625, -0.037353515625, 0.0208587646484375, -0.01898193359375, -0.00748443603515625, -0.0012845993041992188, 0.0128173828125, -0.042205810546875, 0.013458251953125, 0.05694580078125, 0.00780487060546875, -0.01202392578125, -0.033477783203125, -0.0740966796875, 0.0215606689453125, -0.0755615234375, 0.032135009765625, 0.0046234130859375, 0.004314422607421875, 0.0540771484375, 0.02850341796875, -0.043365478515625, 0.00445556640625, -0.0469970703125, 0.0181121826171875, -0.00649261474609375, -0.01074981689453125, -0.045654296875, 0.025543212890625, -0.0218963623046875, 0.08819580078125, 0.0015087127685546875, -0.057586669921875, 0.038726806640625, -0.030853271484375, 0.05218505859375, 0.024993896484375, 0.016143798828125, 0.067626953125, -0.015350341796875, -0.06591796875, -0.0304107666015625, -0.0251922607421875, -0.051788330078125, -0.07879638671875, -0.0013608932495117188, -0.035186767578125, 0.0191650390625, 0.0104217529296875, 0.07318115234375, -0.0154571533203125, 0.063720703125, -0.028350830078125, 0.0275115966796875, 0.04876708984375, 0.0307464599609375, 0.020172119140625, -0.015625, -0.045562744140625, 0.0556640625, -0.01128387451171875, -0.024261474609375, -0.01172637939453125, 0.0168304443359375, 0.0214385986328125, 0.033111572265625, 0.01555633544921875, -0.0003249645233154297, 0.00099945068359375, -0.0111236572265625, 0.0426025390625, -0.0236053466796875, -0.07891845703125, -0.015045166015625, 0.01000213623046875, 0.017120361328125, -0.04931640625, 0.0145721435546875, -0.0711669921875, -0.038177490234375, -0.038330078125, -0.041748046875, -0.0098419189453125, -0.030364990234375, -0.0265350341796875, -0.06903076171875, -0.0257415771484375, 0.02838134765625, -0.0379638671875, -0.0086669921875, -0.007293701171875, -0.055328369140625, 0.0185394287109375, -0.0072479248046875, 0.00830078125, -0.047271728515625, 0.006923675537109375, -0.004146575927734375, 0.002124786376953125, 0.03948974609375, 0.0102081298828125, -0.01042938232421875, -0.004413604736328125, -0.039337158203125, -0.020782470703125, -0.00910186767578125, -0.04315185546875, -0.010528564453125, -0.017974853515625, 0.0125732421875, 0.032867431640625, -0.00229644775390625, -0.0266265869140625, 0.01224517822265625, -0.002613067626953125, -0.005237579345703125, 0.046966552734375, -0.005218505859375, 0.046844482421875, 0.028778076171875, 0.043792724609375, 0.046478271484375, 0.07550048828125, -0.004573822021484375, -0.044586181640625, 0.0169219970703125, -0.007007598876953125, -0.0229339599609375, -0.021697998046875, -0.01114654541015625, -0.006000518798828125, 0.06402587890625, -0.0121002197265625, -0.00662994384765625, 0.0107879638671875, 0.0027713775634765625, -0.00977325439453125, -0.04742431640625, 0.049102783203125, 0.008697509765625, 0.01056671142578125, -0.0203704833984375, 0.00783538818359375, 0.00293731689453125, 0.0167999267578125, -0.01285552978515625, 0.0016374588012695312, -0.00982666015625, 0.00312042236328125, -0.0697021484375, 0.04827880859375, 0.060211181640625, 0.013702392578125, 0.0297698974609375, -0.00881195068359375, 0.003505706787109375, 0.002223968505859375, -0.03192138671875, -0.0196380615234375, 0.01654052734375, -0.0045623779296875, -0.0269927978515625, -0.01535797119140625, -0.0166015625, -0.0201416015625, 0.02679443359375, 0.03204345703125, 0.050140380859375, -0.061309814453125, 0.0218505859375, 0.0022830963134765625, -0.01067352294921875, 0.06732177734375, -0.01727294921875, -0.00292205810546875, -0.00036978721618652344, 0.06622314453125, -0.017974853515625, -0.0254058837890625, 0.0247802734375, -0.0038814544677734375, -0.02197265625, -0.0272979736328125, 0.0019273757934570312, 0.01922607421875, 0.033294677734375, 0.00830841064453125, -0.02606201171875, 0.0179595947265625, -0.01445770263671875, 0.002140045166015625, 0.0289154052734375, -0.024566650390625, -0.07781982421875, 0.00997161865234375, -0.0157470703125, -0.0230712890625, 0.0038166046142578125, -0.0152587890625, 0.0195770263671875, 0.0294647216796875, -0.010467529296875, -0.0208587646484375, 0.0276641845703125, -0.03643798828125, -0.038177490234375, 0.00696563720703125, 0.01512908935546875, 0.0484619140625, -0.01291656494140625, 0.0257110595703125, -0.0178985595703125, 0.0037326812744140625, -0.0064239501953125, -0.0537109375, 0.0399169921875, -0.0216064453125, 0.0006232261657714844, 0.0266265869140625, -0.008697509765625, -0.016204833984375, -0.00748443603515625, 0.04412841796875, -0.09149169921875, -0.0845947265625, 0.0249176025390625, -0.04010009765625, -0.003780364990234375, 0.01605224609375, -0.072509765625, 0.06622314453125, 0.0164031982421875, 0.053558349609375, -0.007068634033203125, 0.012786865234375, -0.005840301513671875, -0.01250457763671875, -0.031097412109375, 0.029998779296875, 0.0004973411560058594, 0.06683349609375, -0.0209503173828125, -0.0108489990234375, 0.0413818359375, 0.0384521484375, 0.0256500244140625, 0.0207366943359375, -0.06591796875, -0.046722412109375, -0.0531005859375, 0.02301025390625, 0.0037212371826171875, 0.060546875, -0.00647735595703125, 0.01346588134765625, 0.026031494140625, -0.020233154296875, 0.0260772705078125, 0.03594970703125, -0.04229736328125, 0.021942138671875, -0.0248565673828125, -0.0418701171875, -0.0546875, 0.048248291015625, -0.042144775390625, -0.0263824462890625, 0.005420684814453125, 0.00830078125, 0.02398681640625, 0.006969451904296875, -0.0031681060791015625, -0.01464080810546875, 0.0518798828125, -0.02899169921875, 0.045806884765625, -0.032135009765625, 0.009765625, 0.019866943359375, 0.01629638671875, 0.0184326171875, 0.006378173828125, -0.002170562744140625, 0.0244903564453125, -0.00852203369140625, 0.0528564453125, 0.036956787109375, 0.0260772705078125, -0.01136016845703125, 0.0159759521484375, 0.052459716796875, 0.06707763671875, -0.034881591796875, -0.030792236328125, 0.004673004150390625, 0.0039215087890625, 0.03302001953125, 0.0247955322265625, 0.0537109375, 0.00476837158203125, 0.0269012451171875, -0.014739990234375, -0.0204010009765625, 0.01305389404296875, 0.01953125, 0.0225677490234375, -0.00768280029296875, -0.0158233642578125, -0.0274200439453125, -0.01132965087890625, 0.0078887939453125, -0.00795745849609375, -0.002635955810546875, 0.013031005859375, 0.039031982421875, 0.01395416259765625, -0.0038700103759765625, -0.0030517578125, 0.01071929931640625, 0.018585205078125, -0.0102386474609375, -0.0281219482421875, -0.04022216796875, 0.045928955078125, 0.0361328125, 0.034820556640625, -0.0010309219360351562, 0.0301513671875, 0.01531219482421875, -0.035369873046875, 0.0058441162109375, 0.0256195068359375, -0.00870513916015625, 0.01561737060546875, -0.0209808349609375, 0.007457733154296875, 0.0014772415161132812, -0.0085906982421875, -0.0245819091796875, 0.0225372314453125, 0.039886474609375, -0.0206146240234375, 0.050201416015625, 0.0006346702575683594, -0.0084228515625, 0.00196075439453125, 0.0269622802734375, 0.051605224609375, 0.0241851806640625, -0.04827880859375, 0.00847625732421875, -0.040557861328125, -0.031982421875, -0.0048828125, 0.0304107666015625, -0.0018472671508789062, -0.008056640625, 0.0191802978515625, 0.0017099380493164062, 0.0150299072265625, -0.0094146728515625, -0.01177215576171875, 0.00014889240264892578, 0.03936767578125, 0.0035419464111328125, -0.0635986328125, -0.017578125, -0.015869140625, 0.0074920654296875, -0.008575439453125, 0.046966552734375, 0.0005598068237304688, 0.015380859375, 0.01458740234375, 0.009765625, -0.0209503173828125, -0.01212310791015625, -0.010162353515625, -0.032470703125, 0.0014219284057617188, 0.0213470458984375, -0.06719970703125, 0.058197021484375, 0.007781982421875, 0.044769287109375, 0.056396484375, -0.0194854736328125, -0.003826141357421875, 0.005046844482421875, -0.0035877227783203125, -0.0209503173828125, -0.0252838134765625, -0.021759033203125, -0.006649017333984375, 0.04498291015625, 0.0087127685546875, -0.03472900390625, 0.043914794921875, -0.0303497314453125, -0.04052734375, -0.007549285888671875, -0.035552978515625, -0.033599853515625, 0.0164947509765625, 0.0255889892578125, 0.0286712646484375, -0.007770538330078125, -0.0165252685546875, 0.0205078125, -0.006473541259765625, -0.003337860107421875, -0.009521484375, -0.02630615234375, 0.059783935546875, 0.0748291015625, 0.062042236328125, -0.026702880859375, 0.0226287841796875, 0.0635986328125, -0.015838623046875, 0.025848388671875, -0.036712646484375, -0.03704833984375, -0.052093505859375, -0.01374053955078125, -0.0019207000732421875, -0.0276031494140625, -0.06610107421875, -0.00786590576171875, -0.0176544189453125, 0.0291290283203125, -0.0200958251953125, 0.015228271484375, 0.007091522216796875, -0.0479736328125, -0.017425537109375, -0.0019817352294921875, -0.06756591796875, 0.019744873046875, 0.02154541015625, -0.0118560791015625, 0.0384521484375, -0.036590576171875, -0.0517578125, 0.0252532958984375, 0.01371002197265625, 0.0263671875, -0.0019445419311523438, -0.0269012451171875, 0.016326904296875, -0.027191162109375, 0.04498291015625, -0.05230712890625, -0.028289794921875, 0.0255279541015625, -0.0211334228515625, 0.00797271728515625, -0.025665283203125, -0.00974273681640625, -0.04931640625, 0.003887176513671875, 0.0000712275505065918, -0.0070343017578125, 0.01287841796875, -0.028594970703125, -0.049560546875, 0.07135009765625, -0.005390167236328125, -0.0256805419921875, -0.0789794921875, 0.0161590576171875, 0.006793975830078125, 0.0020961761474609375, -0.037750244140625, 0.003040313720703125, -0.033111572265625, 0.0416259765625, 0.00846099853515625, -0.03594970703125, 0.04388427734375, -0.0028591156005859375, -0.061187744140625, -0.00286865234375, -0.007518768310546875, -0.017974853515625, 0.01096343994140625, 0.004581451416015625, 0.02496337890625, 0.0304412841796875, -0.0258026123046875, 0.040496826171875, 0.00347137451171875, 0.007511138916015625, -0.0017948150634765625, -0.01532745361328125, -0.0182952880859375, -0.0005855560302734375, 0.05419921875, 0.02642822265625, 0.008758544921875, -0.0292816162109375, -0.054901123046875, -0.026702880859375, -0.065185546875, -0.0034999847412109375, 0.051025390625, -0.08984375, 0.01263427734375, 0.0165863037109375, -0.026763916015625, -0.0194244384765625, 0.0204315185546875, -0.060333251953125, 0.00634765625, 0.01513671875, -0.0052032470703125, -0.0198974609375, 0.01421356201171875, 0.0027141571044921875, -0.0259246826171875, -0.0396728515625, 0.0159454345703125, -0.01206207275390625, -0.028778076171875, 0.0153045654296875, 0.03302001953125, -0.0008635520935058594, -0.02325439453125, -0.0125885009765625, 0.0201568603515625, 0.031280517578125, 0.025115966796875, -0.0440673828125, -0.0175933837890625, -0.0005598068237304688, -0.020050048828125, -0.0019931793212890625, 0.027252197265625, -0.0345458984375, -0.0172119140625, 0.0496826171875, -0.0204925537109375, 0.00910186767578125, -0.0226898193359375, 0.033966064453125, 0.015411376953125, -0.008514404296875, 0.044219970703125, -0.01953125, -0.01447296142578125, -0.0113677978515625, 0.0212554931640625, -0.0992431640625, 0.063720703125, -0.0273895263671875, 0.034454345703125, 0.045135498046875 ]
2e285017ed5b305997ac8fb8dd8f08acd0ec99ec
Wordpress Stackexchange Q: Is Wordpress fast enough for a heavy traffic project? I was always a WP guy, built many small sites with it. I will create a new community with a big fanbase and I was wondering if 3.1.3 is fast enough? I didnt have the opportunity to work with it since 3.0. How does it react with heavy traffic web sites? Is it something that will make me worry enough to search for a lighter CMS or should I rely on it even with hundreds of visitors per day? I know about the tricks/tips to make it feels faster but is it by default ? A: I don't think there is any considerably advanced CMS that you can throw high traffic at and expect it to handle it without any configuration effort. Can WP be used for high-traffic site? Of course and it is being used as such by many sites. But it should be WP on decent hosting and well-configured software stack, rather than WP on cheap shared hosting with Apache defaults and no caching whatsoever.
Q: Is Wordpress fast enough for a heavy traffic project? I was always a WP guy, built many small sites with it. I will create a new community with a big fanbase and I was wondering if 3.1.3 is fast enough? I didnt have the opportunity to work with it since 3.0. How does it react with heavy traffic web sites? Is it something that will make me worry enough to search for a lighter CMS or should I rely on it even with hundreds of visitors per day? I know about the tricks/tips to make it feels faster but is it by default ? A: I don't think there is any considerably advanced CMS that you can throw high traffic at and expect it to handle it without any configuration effort. Can WP be used for high-traffic site? Of course and it is being used as such by many sites. But it should be WP on decent hosting and well-configured software stack, rather than WP on cheap shared hosting with Apache defaults and no caching whatsoever. A: Yes, WordPress is "fast" enough, out of the box, to handle hundreds of unique visitors per day. WordPress, properly configured, can handle hundreds of thousands of unique visitors per day.
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:410728", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21221" }
[ 0.0194549560546875, -0.0116119384765625, 0.00565338134765625, 0.0020198822021484375, -0.004528045654296875, -0.0341796875, 0.038818359375, -0.0218505859375, 0.0263214111328125, -0.01038360595703125, -0.059722900390625, -0.004398345947265625, -0.004741668701171875, -0.0158233642578125, 0.0098876953125, -0.0305633544921875, 0.035980224609375, -0.02880859375, 0.01238250732421875, -0.0005936622619628906, 0.022308349609375, 0.01503753662109375, 0.027435302734375, 0.048126220703125, 0.049163818359375, -0.004497528076171875, 0.0010938644409179688, -0.01837158203125, 0.034942626953125, 0.00014472007751464844, 0.02398681640625, -0.0235137939453125, 0.0205535888671875, 0.0270843505859375, -0.035369873046875, -0.004154205322265625, -0.0133209228515625, 0.011444091796875, -0.0016641616821289062, 0.0205535888671875, -0.004283905029296875, -0.01390838623046875, 0.04779052734375, 0.003681182861328125, 0.01141357421875, -0.01378631591796875, 0.0157928466796875, -0.0643310546875, 0.051055908203125, -0.07666015625, -0.01036834716796875, 0.03411865234375, -0.001758575439453125, -0.0278167724609375, -0.032623291015625, 0.016937255859375, 0.017486572265625, 0.036468505859375, 0.0223388671875, -0.06268310546875, -0.06622314453125, 0.0096282958984375, 0.0297698974609375, 0.0204925537109375, -0.035430908203125, 0.0041351318359375, -0.043670654296875, -0.004177093505859375, 0.025848388671875, -0.02801513671875, -0.00925445556640625, -0.006481170654296875, 0.002269744873046875, 0.006694793701171875, -0.0267181396484375, -0.00405120849609375, -0.0027313232421875, -0.021148681640625, 0.039276123046875, 0.0036334991455078125, -0.04510498046875, 0.0011205673217773438, -0.0132904052734375, -0.058074951171875, 0.01226043701171875, -0.035308837890625, -0.0311126708984375, 0.01727294921875, 0.0017309188842773438, -0.038604736328125, -0.0144195556640625, -0.048553466796875, -0.0126495361328125, 0.01308441162109375, -0.019134521484375, -0.0283050537109375, -0.011932373046875, -0.0201568603515625, -0.0024776458740234375, 0.0202789306640625, 0.0186614990234375, -0.0308990478515625, 0.038543701171875, -0.0111541748046875, -0.00069427490234375, 0.00807952880859375, -0.036590576171875, 0.014007568359375, 0.0479736328125, 0.052093505859375, 0.0008668899536132812, -0.018951416015625, 0.01517486572265625, 0.00762939453125, -0.0196685791015625, -0.01611328125, -0.01328277587890625, 0.00890350341796875, -0.019378662109375, -0.01497650146484375, 0.002796173095703125, 0.0244140625, 0.00479888916015625, -0.01445770263671875, -0.0018663406372070312, -0.010223388671875, 0.002681732177734375, -0.049957275390625, -0.001697540283203125, -0.0104522705078125, -0.0196075439453125, 0.029541015625, -0.020233154296875, 0.0185394287109375, -0.029754638671875, 0.0036945343017578125, 0.016357421875, -0.01236724853515625, -0.013092041015625, 0.004962921142578125, 0.0206451416015625, -0.0280303955078125, -0.01494598388671875, 0.00780487060546875, 0.05194091796875, 0.02716064453125, 0.02142333984375, 0.0006680488586425781, 0.00800323486328125, -0.014678955078125, 0.02825927734375, -0.0308685302734375, 0.033203125, 0.00217437744140625, -0.005237579345703125, -0.05242919921875, 0.00136566162109375, -0.035491943359375, 0.022552490234375, -0.02410888671875, 0.0013341903686523438, -0.00658416748046875, 0.0399169921875, -0.01476287841796875, -0.03192138671875, 0.0007805824279785156, -0.043487548828125, -0.01153564453125, 0.00823211669921875, -0.06427001953125, 0.024261474609375, -0.0229339599609375, -0.0251922607421875, -0.027496337890625, 0.00797271728515625, 0.01548004150390625, 0.0296173095703125, 0.04022216796875, 0.006526947021484375, 0.05145263671875, 0.017791748046875, -0.03173828125, 0.09686279296875, -0.036224365234375, -0.034088134765625, -0.00870513916015625, 0.0183868408203125, 0.0242156982421875, 0.019439697265625, 0.00673675537109375, 0.048126220703125, -0.0003228187561035156, -0.00037860870361328125, 0.02459716796875, 0.0196075439453125, -0.052001953125, 0.0013189315795898438, -0.0006079673767089844, -0.0006961822509765625, -0.034912109375, -0.003726959228515625, -0.001468658447265625, -0.0009627342224121094, 0.0026187896728515625, -0.0249786376953125, 0.01184844970703125, -0.018280029296875, 0.0269927978515625, 0.0626220703125, 0.01531982421875, -0.01485443115234375, 0.0150604248046875, -0.0164031982421875, -0.0294952392578125, -0.0531005859375, -0.004161834716796875, -0.018218994140625, -0.004856109619140625, -0.0030994415283203125, -0.003814697265625, 0.00681304931640625, -0.0132293701171875, 0.0007066726684570312, -0.0083160400390625, 0.00756072998046875, 0.019805908203125, -0.0199127197265625, 0.017120361328125, 0.0018453598022460938, 0.037322998046875, -0.018402099609375, -0.00811767578125, 0.06500244140625, 0.055145263671875, -0.002819061279296875, -0.00029730796813964844, 0.005615234375, -0.059234619140625, -0.0106048583984375, 0.031463623046875, 0.038818359375, 0.0033588409423828125, -0.00397491455078125, 0.01143646240234375, 0.006221771240234375, -0.0631103515625, -0.0011911392211914062, -0.001956939697265625, 0.0195465087890625, -0.0171356201171875, -0.001682281494140625, -0.05615234375, 0.028350830078125, -0.0838623046875, 0.038665771484375, 0.01103973388671875, 0.01148223876953125, 0.00942230224609375, -0.01195526123046875, 0.03875732421875, -0.0015354156494140625, 0.06396484375, 0.004787445068359375, 0.023895263671875, -0.0033416748046875, 0.006866455078125, 0.01357269287109375, -0.01043701171875, 0.00011408329010009766, 0.007110595703125, 0.005016326904296875, -0.05316162109375, 0.01617431640625, 0.02813720703125, 0.01227569580078125, -0.006023406982421875, -0.0034694671630859375, -0.0198211669921875, 0.01534271240234375, 0.00009053945541381836, -0.026824951171875, -0.00882720947265625, -0.0233154296875, -0.0059051513671875, -0.00742340087890625, -0.0222015380859375, 0.0268096923828125, 0.00576019287109375, 0.018402099609375, -0.0167694091796875, 0.0225982666015625, -0.0093994140625, -0.035430908203125, 0.0408935546875, 0.00360107421875, -0.043914794921875, 0.0300140380859375, -0.06268310546875, 0.05694580078125, -0.033233642578125, 0.0621337890625, 0.08294677734375, -0.05078125, 0.070068359375, -0.01377105712890625, 0.050628662109375, 0.0265350341796875, -0.0097503662109375, -0.0185699462890625, 0.020751953125, -0.09112548828125, -0.031585693359375, 0.0217742919921875, 0.07037353515625, -0.034271240234375, -0.043853759765625, 0.0022430419921875, 0.0325927734375, -0.0474853515625, -0.0595703125, -0.040252685546875, -0.044342041015625, -0.0338134765625, -0.0124359130859375, -0.0278167724609375, 0.022613525390625, 0.018646240234375, 0.006633758544921875, -0.0177459716796875, -0.0214385986328125, -0.039794921875, -0.061004638671875, -0.078369140625, -0.035400390625, -0.0057830810546875, 0.0174560546875, 0.004344940185546875, 0.04840087890625, -0.01081085205078125, -0.0860595703125, -0.040985107421875, -0.03948974609375, -0.0212860107421875, 0.0164794921875, 0.0113983154296875, -0.022003173828125, 0.0164642333984375, 0.0005741119384765625, -0.012664794921875, 0.0243988037109375, -0.01122283935546875, -0.0262603759765625, -0.04046630859375, -0.0167236328125, -0.0227203369140625, -0.025299072265625, 0.037139892578125, -0.05133056640625, -0.05133056640625, -0.07171630859375, 0.01514434814453125, 0.006317138671875, -0.015777587890625, -0.023773193359375, 0.0186920166015625, -0.034576416015625, 0.0016803741455078125, -0.03436279296875, -0.005382537841796875, -0.0002570152282714844, -0.052490234375, -0.017578125, 0.040802001953125, 0.01108551025390625, 0.03594970703125, 0.022674560546875, -0.029541015625, -0.051483154296875, 0.04742431640625, -0.01256561279296875, 0.00774383544921875, -0.0281219482421875, 0.0423583984375, -0.03753662109375, -0.03466796875, 0.0181121826171875, -0.0209808349609375, 0.03887939453125, -0.029815673828125, -0.0260467529296875, -0.002887725830078125, 0.093505859375, -0.023681640625, 0.000484466552734375, -0.0011758804321289062, 0.0172119140625, -0.02471923828125, -0.055908203125, -0.0394287109375, -0.007144927978515625, 0.020111083984375, -0.003597259521484375, -0.0014019012451171875, -0.0018243789672851562, -0.03729248046875, 0.05029296875, 0.002750396728515625, -0.00647735595703125, 0.0294189453125, -0.049835205078125, 0.0161285400390625, 0.0013866424560546875, 0.006801605224609375, -0.04876708984375, -0.0153045654296875, -0.0290069580078125, -0.07293701171875, -0.0165557861328125, -0.02288818359375, 0.044219970703125, 0.01739501953125, -0.038787841796875, -0.009796142578125, 0.0283050537109375, 0.01105499267578125, 0.0595703125, -0.0072174072265625, -0.019439697265625, 0.0007023811340332031, -0.0082550048828125, 0.0110931396484375, -0.0173187255859375, -0.0186309814453125, -0.028350830078125, -0.0180511474609375, -0.040069580078125, -0.0163421630859375, -0.01325225830078125, -0.00009340047836303711, -0.01045989990234375, -0.036529541015625, -0.0430908203125, -0.037139892578125, -0.0022487640380859375, -0.0269775390625, -0.0007877349853515625, -0.04229736328125, -0.038726806640625, 0.05633544921875, 0.0269622802734375, 0.0043487548828125, -0.0137481689453125, 0.07147216796875, 0.0095672607421875, -0.04412841796875, -0.01279449462890625, -0.0380859375, 0.0308837890625, 0.00714111328125, 0.034271240234375, -0.001476287841796875, -0.041839599609375, 0.07318115234375, 0.0094757080078125, -0.0095977783203125, 0.061370849609375, -0.03692626953125, 0.02020263671875, -0.03558349609375, 0.0037937164306640625, 0.0261993408203125, -0.0262603759765625, 0.05535888671875, 0.003231048583984375, -0.04498291015625, -0.035308837890625, 0.0882568359375, -0.00008684396743774414, 0.000530242919921875, -0.09271240234375, -0.035247802734375, 0.0079345703125, 0.02471923828125, 0.028411865234375, -0.0026645660400390625, 0.0235443115234375, 0.0264892578125, 0.0272979736328125, -0.04376220703125, 0.0224609375, -0.00038695335388183594, 0.02374267578125, 0.004383087158203125, 0.0003273487091064453, -0.0302734375, -0.0066375732421875, -0.010498046875, 0.07659912109375, 0.0016641616821289062, -0.042938232421875, 0.004261016845703125, -0.01788330078125, 0.01146697998046875, 0.019073486328125, -0.0160369873046875, 0.06829833984375, 0.025054931640625, 0.00044274330139160156, -0.035552978515625, -0.07318115234375, 0.00804901123046875, -0.06781005859375, -0.041107177734375, -0.020233154296875, -0.0096435546875, 0.059478759765625, -0.036468505859375, -0.0126190185546875, 0.0012903213500976562, -0.0015344619750976562, 0.0458984375, 0.0380859375, -0.0212554931640625, 0.0017757415771484375, 0.0772705078125, -0.019317626953125, -0.035369873046875, 0.0221099853515625, -0.0286865234375, 0.02386474609375, 0.007228851318359375, 0.0294952392578125, 0.0621337890625, -0.0021533966064453125, 0.00010138750076293945, -0.0258331298828125, -0.018951416015625, -0.017303466796875, -0.006877899169921875, -0.02587890625, -0.005054473876953125, 0.0267486572265625, 0.0299224853515625, 0.026031494140625, -0.022125244140625, 0.046112060546875, -0.005283355712890625, 0.055328369140625, -0.015625, 0.0229949951171875, -0.0107879638671875, -0.01018524169921875, 0.0286712646484375, -0.037445068359375, -0.019866943359375, -0.0281829833984375, 0.038330078125, -0.028533935546875, -0.01007843017578125, 0.041748046875, 0.0007863044738769531, 0.031646728515625, -0.012481689453125, -0.037261962890625, 0.0018682479858398438, 0.02935791015625, -0.03253173828125, -0.031646728515625, -0.0103759765625, -0.0307464599609375, -0.046295166015625, -0.032073974609375, -0.043548583984375, -0.023651123046875, -0.04949951171875, 0.028167724609375, -0.0004165172576904297, -0.00467681884765625, -0.02398681640625, -0.052978515625, -0.0182342529296875, 0.0010194778442382812, 0.0272674560546875, -0.05133056640625, -0.0248260498046875, 0.00830078125, 0.0087127685546875, -0.01479339599609375, -0.0203094482421875, -0.0044708251953125, 0.026947021484375, -0.01149749755859375, 0.024139404296875, -0.049163818359375, -0.02386474609375, -0.01346588134765625, -0.04315185546875, -0.00701904296875, 0.0061798095703125, -0.0120849609375, 0.0384521484375, -0.036712646484375, -0.0023441314697265625, -0.0275726318359375, 0.025787353515625, -0.06298828125, 0.030487060546875, -0.01194000244140625, 0.01727294921875, 0.03265380859375, -0.000896453857421875, 0.0015935897827148438, -0.037017822265625, 0.0157470703125, -0.02996826171875, -0.0072174072265625, -0.0010128021240234375, 0.0203857421875, 0.05450439453125, 0.0188446044921875, 0.07171630859375, 0.0051422119140625, 0.043670654296875, 0.0577392578125, 0.019775390625, -0.0269012451171875, -0.01459503173828125, -0.007671356201171875, -0.009033203125, -0.0008726119995117188, -0.037261962890625, -0.0103607177734375, 0.0241241455078125, 0.042327880859375, 0.061370849609375, -0.055816650390625, 0.01047515869140625, 0.0151519775390625, -0.05047607421875, 0.0141448974609375, 0.011932373046875, -0.0060577392578125, -0.033935546875, 0.040069580078125, -0.01456451416015625, -0.0074615478515625, 0.015472412109375, -0.00394439697265625, 0.0129241943359375, -0.0123291015625, 0.09307861328125, 0.0008039474487304688, -0.048675537109375, -0.041168212890625, 0.036163330078125, -0.0278778076171875, -0.0321044921875, 0.0016078948974609375, 0.007671356201171875, -0.0011987686157226562, -0.03271484375, 0.0257110595703125, -0.0250091552734375, 0.0218505859375, 0.064697265625, -0.031036376953125, 0.0101318359375, 0.049407958984375, -0.0281982421875, 0.0498046875, -0.01551055908203125, 0.045684814453125, 0.03515625, -0.002475738525390625, 0.02984619140625, -0.0141448974609375, -0.030792236328125, 0.006389617919921875, -0.0013675689697265625, -0.035369873046875, -0.0170440673828125, 0.019805908203125, 0.09710693359375, -0.015899658203125, -0.03009033203125, 0.02203369140625, 0.038238525390625, -0.0161590576171875, 0.0104522705078125, -0.00952911376953125, -0.001987457275390625, 0.016632080078125, 0.0014677047729492188, 0.0008130073547363281, -0.0078887939453125, -0.0008091926574707031, -0.0311279296875, 0.06793212890625, 0.02972412109375, -0.01904296875, 0.00433349609375, 0.052490234375, -0.046478271484375, 0.026275634765625, -0.0207672119140625, 0.033935546875, -0.02142333984375, 0.0201263427734375, -0.019287109375, 0.00223541259765625, 0.004711151123046875, 0.016387939453125, -0.0275115966796875, -0.0093536376953125, -0.06268310546875, -0.01508331298828125, 0.0276031494140625, 0.056610107421875, 0.05706787109375, 0.0255126953125, -0.02099609375, 0.0028095245361328125, 0.01149749755859375, -0.035400390625, 0.0157012939453125, -0.0018339157104492188, -0.0247650146484375, -0.01259613037109375, 0.0113983154296875, 0.01513671875, -0.0296630859375, 0.07684326171875, -0.058807373046875, -0.004619598388671875, 0.0557861328125, 0.003803253173828125, -0.002109527587890625, 0.015625, 0.0162353515625, -0.004199981689453125, -0.0196533203125, -0.01116180419921875, 0.0360107421875, 0.0264739990234375, 0.002048492431640625, 0.0153350830078125, 0.02972412109375, -0.0254058837890625, -0.01654052734375, -0.004299163818359375, 0.03009033203125, -0.053924560546875, 0.06463623046875, 0.0200042724609375, 0.025482177734375, -0.05084228515625, -0.08306884765625, -0.0036830902099609375, 0.08319091796875, -0.019927978515625, -0.0287933349609375, 0.0059356689453125, 0.003284454345703125, 0.0264739990234375, -0.0263671875, 0.0267486572265625, -0.012054443359375, 0.00269317626953125, -0.0195465087890625, 0.00986480712890625, 0.036163330078125, -0.026336669921875, -0.00038933753967285156, 0.0247955322265625, -0.006500244140625, 0.041290283203125, -0.00955963134765625, -0.0202178955078125, 0.013763427734375, 0.04730224609375, 0.0182037353515625, 0.04718017578125, -0.035308837890625, -0.0199432373046875, 0.0302734375, -0.0144805908203125, -0.02667236328125, -0.0406494140625, -0.029510498046875, -0.0772705078125, 0.0163421630859375, 0.055694580078125, -0.0084686279296875, 0.010162353515625, 0.062255859375, 0.06988525390625, -0.01279449462890625, -0.03436279296875, 0.038238525390625, -0.01371002197265625, 0.003658294677734375, -0.0168304443359375, -0.035125732421875, -0.0113677978515625, -0.042724609375, 0.00774383544921875, -0.002796173095703125, 0.01708984375, 0.004730224609375, -0.03240966796875, 0.0239410400390625, -0.06695556640625, 0.01522064208984375, 0.0141448974609375, 0.028656005859375, 0.024688720703125, -0.059539794921875, -0.03790283203125, 0.05657958984375, 0.039337158203125, -0.027862548828125, 0.00557708740234375, -0.020538330078125, 0.0518798828125, -0.03826904296875, -0.01055145263671875, 0.0018939971923828125, 0.00461578369140625, -0.0341796875, -0.01493072509765625, 0.0265045166015625, -0.03643798828125, 0.003795623779296875, 0.00992584228515625, 0.01287078857421875, 0.01181793212890625, 0.0126800537109375, 0.1070556640625, -0.0252532958984375, 0.004070281982421875, 0.060089111328125, -0.048492431640625, 0.08087158203125, 0.08099365234375, -0.058685302734375, 0.0357666015625, 0.0161895751953125, -0.04522705078125, -0.017852783203125, 0.02276611328125, 0.0210723876953125, -0.018829345703125, 0.005329132080078125, -0.01230621337890625, 0.0146636962890625, 0.01299285888671875, 0.00015676021575927734, -0.053741455078125, -0.0521240234375, -0.06494140625, -0.0101318359375, -0.003917694091796875, -0.051361083984375, -0.03302001953125, 0.022735595703125, 0.0014772415161132812, -0.04010009765625, 0.0364990234375, -0.0435791015625, 0.03076171875, 0.0260772705078125, 0.0269775390625, -0.06280517578125, 0.0161285400390625, -0.005069732666015625, -0.035247802734375, 0.01727294921875, 0.039337158203125, -0.00090789794921875, -0.0264129638671875, -0.007965087890625, -0.0189361572265625, 0.004482269287109375, -0.043182373046875, -0.0002340078353881836, -0.003223419189453125, 0.01355743408203125, 0.022125244140625, 0.0286102294921875, 0.00010979175567626953, 0.0121002197265625, -0.03961181640625, 0.0024700164794921875, -0.020172119140625, -0.046173095703125, -0.08245849609375, -0.033233642578125, 0.0192108154296875, -0.019927978515625, 0.003658294677734375, -0.00830841064453125, -0.036956787109375, 0.0127105712890625, -0.049530029296875, 0.01250457763671875, -0.0166015625, -0.0120391845703125, 0.0172271728515625, -0.019500732421875, -0.0433349609375, 0.052276611328125, -0.00537109375, 0.0159912109375, 0.05377197265625, 0.003017425537109375, -0.044036865234375, -0.022552490234375, -0.00838470458984375, 0.034393310546875, -0.050537109375, -0.0121917724609375, 0.028350830078125, -0.0133514404296875, -0.024688720703125, -0.037445068359375, 0.00864410400390625, -0.022735595703125, -0.018646240234375, -0.02587890625, 0.0112457275390625, 0.0275726318359375, -0.030975341796875, -0.08819580078125, 0.0560302734375, -0.0238800048828125, -0.0302581787109375, -0.06414794921875, -0.0306243896484375, -0.0153350830078125, -0.004184722900390625, -0.032867431640625, -0.01183319091796875, -0.02496337890625, 0.0753173828125, 0.023651123046875, 0.022552490234375, 0.00455474853515625, 0.022308349609375, -0.02508544921875, 0.02728271484375, 0.0166473388671875, 0.01387786865234375, -0.04266357421875, 0.047515869140625, -0.0027675628662109375, 0.043212890625, 0.0000997781753540039, 0.044403076171875, 0.007633209228515625, -0.00937652587890625, 0.01251983642578125, -0.0240325927734375, -0.028167724609375, -0.005016326904296875, 0.0418701171875, 0.042144775390625, 0.01181793212890625, -0.028594970703125, 0.009490966796875, 0.038421630859375, -0.044891357421875, -0.003673553466796875, 0.036376953125, -0.0478515625, -0.02008056640625, -0.0256500244140625, -0.022369384765625, 0.0000985264778137207, -0.0008258819580078125, -0.00531768798828125, 0.027099609375, 0.07257080078125, -0.01117706298828125, 0.01123046875, 0.0032062530517578125, 0.031646728515625, -0.0287322998046875, -0.015167236328125, -0.01177215576171875, 0.01953125, -0.004398345947265625, -0.021636962890625, 0.01898193359375, 0.012786865234375, -0.03515625, -0.0024280548095703125, 0.02313232421875, 0.0292205810546875, -0.022216796875, -0.0308837890625, 0.0252685546875, 0.0308380126953125, -0.0105438232421875, 0.054443359375, 0.01142120361328125, -0.01311492919921875, -0.0369873046875, -0.01459503173828125, 0.00969696044921875, -0.01275634765625, 0.0084228515625, 0.020111083984375, -0.02752685546875, -0.015716552734375, -0.01117706298828125, -0.03759765625, 0.01302337646484375, -0.00893402099609375, 0.01055145263671875, -0.012115478515625, 0.0037174224853515625, -0.055389404296875, -0.0081787109375, 0.00665283203125 ]
935b56ac7fbe6baa5f389dba8c58cfedc0774b00
Wordpress Stackexchange Q: Filter pictures in the media library I have some issues with duplicated pictures in my media library and I would like to know if there is any option to show or automatically filter only certain images in the library. For instance, let's say that I have 20 pictures in the library: A.jpg (original), B.jpg (original), C.jpg (original), A1.jpg (duplicate), A2.jpg (duplicate), B1.jpg (duplicate), C1.jpg (duplicate), etc. I would like to see or to let see to other users only the first three pictures in the media library. Any idea how to do it with a plugin or modifying some files? Thank you
Q: Filter pictures in the media library I have some issues with duplicated pictures in my media library and I would like to know if there is any option to show or automatically filter only certain images in the library. For instance, let's say that I have 20 pictures in the library: A.jpg (original), B.jpg (original), C.jpg (original), A1.jpg (duplicate), A2.jpg (duplicate), B1.jpg (duplicate), C1.jpg (duplicate), etc. I would like to see or to let see to other users only the first three pictures in the media library. Any idea how to do it with a plugin or modifying some files? Thank you
wordpress
{ "language": "en", "length": 103, "provenance": "stackexchange_00019.jsonl.gz:410729", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21226" }
[ 0.056915283203125, 0.0200958251953125, 0.031158447265625, 0.028045654296875, 0.0161285400390625, -0.0210418701171875, 0.0953369140625, -0.066650390625, 0.039306640625, 0.009307861328125, -0.01235198974609375, -0.007266998291015625, 0.0017976760864257812, -0.0193939208984375, -0.031890869140625, -0.03326416015625, 0.0105743408203125, -0.0156402587890625, 0.0017147064208984375, -0.0190887451171875, 0.00704193115234375, -0.0290374755859375, 0.0259552001953125, 0.0259552001953125, -0.00682830810546875, -0.00988006591796875, 0.055877685546875, -0.004344940185546875, -0.001117706298828125, -0.015625, 0.003650665283203125, 0.0079803466796875, -0.0017385482788085938, -0.0023365020751953125, 0.0265350341796875, -0.0124664306640625, 0.03350830078125, -0.0025806427001953125, 0.0313720703125, -0.00925445556640625, 0.0021343231201171875, 0.01093292236328125, 0.0164794921875, 0.00714111328125, 0.005771636962890625, -0.0355224609375, 0.00812530517578125, -0.04510498046875, 0.019622802734375, 0.0506591796875, 0.01377105712890625, -0.01363372802734375, 0.0122833251953125, 0.00931549072265625, -0.01218414306640625, -0.0231781005859375, 0.007293701171875, 0.01021575927734375, 0.03826904296875, -0.047149658203125, -0.04412841796875, -0.0018787384033203125, 0.033782958984375, 0.0071868896484375, -0.0173797607421875, -0.00910186767578125, -0.036590576171875, 0.01763916015625, -0.052520751953125, -0.055084228515625, 0.0295562744140625, -0.028350830078125, -0.0157623291015625, -0.06292724609375, -0.0269317626953125, 0.10455322265625, -0.047821044921875, 0.007015228271484375, 0.035858154296875, -0.0298919677734375, -0.0205078125, -0.0203704833984375, -0.05126953125, 0.0237884521484375, -0.026580810546875, 0.035675048828125, -0.014129638671875, -0.0142364501953125, 0.022247314453125, 0.042877197265625, -0.0020961761474609375, -0.039703369140625, 0.0277252197265625, 0.06634521484375, 0.01459503173828125, -0.0023670196533203125, 0.031097412109375, 0.09027099609375, -0.0228271484375, 0.01425933837890625, -0.04046630859375, -0.005519866943359375, -0.0245819091796875, -0.05126953125, 0.0047454833984375, -0.037322998046875, -0.0177764892578125, -0.033172607421875, 0.024505615234375, 0.06561279296875, -0.03680419921875, 0.044158935546875, 0.0210418701171875, -0.02581787109375, -0.020111083984375, -0.000919342041015625, -0.0001208186149597168, 0.013885498046875, 0.01177978515625, -0.014312744140625, -0.021514892578125, 0.0144500732421875, -0.0178070068359375, -0.0269775390625, 0.032073974609375, 0.0006585121154785156, -0.015716552734375, 0.0168914794921875, 0.00677490234375, 0.007083892822265625, -0.026702880859375, 0.0089569091796875, 0.01093292236328125, -0.005542755126953125, -0.0152435302734375, -0.014129638671875, -0.0196380615234375, 0.0037899017333984375, 0.0182342529296875, -0.002933502197265625, 0.0311126708984375, -0.021697998046875, 0.024169921875, 0.04461669921875, -0.0059051513671875, 0.0276947021484375, 0.00530242919921875, -0.006618499755859375, -0.00044226646423339844, -0.0213775634765625, -0.02496337890625, -0.033782958984375, 0.018096923828125, -0.0096435546875, -0.00547027587890625, -0.041473388671875, 0.007045745849609375, -0.03692626953125, 0.029510498046875, -0.033294677734375, 0.030059814453125, 0.01287841796875, -0.0060272216796875, 0.01177978515625, -0.0004837512969970703, -0.0283050537109375, 0.0033016204833984375, 0.0047149658203125, 0.02532958984375, 0.0167694091796875, -0.0259552001953125, -0.0225372314453125, 0.0091705322265625, 0.02471923828125, 0.00420379638671875, 0.039093017578125, 0.03375244140625, 0.04022216796875, -0.01462554931640625, 0.076416015625, 0.035064697265625, -0.0245513916015625, 0.054962158203125, -0.01020050048828125, -0.036407470703125, -0.041748046875, 0.0164337158203125, 0.029449462890625, 0.0254669189453125, 0.0240936279296875, 0.04608154296875, -0.0236663818359375, 0.0007753372192382812, -0.0303497314453125, -0.046783447265625, -0.033935546875, 0.044677734375, 0.00400543212890625, -0.015838623046875, 0.0618896484375, 0.062103271484375, 0.022552490234375, -0.005588531494140625, 0.0016107559204101562, -0.05584716796875, -0.003665924072265625, -0.0199432373046875, 0.02130126953125, -0.03759765625, 0.03668212890625, 0.0303192138671875, -0.004482269287109375, -0.038055419921875, 0.037353515625, 0.021453857421875, -0.026702880859375, 0.0027828216552734375, -0.00299072265625, -0.0102081298828125, 0.0258941650390625, -0.0462646484375, -0.0028324127197265625, -0.049407958984375, 0.01418304443359375, 0.0210723876953125, -0.007038116455078125, -0.038787841796875, -0.0196990966796875, -0.034149169921875, 0.0195770263671875, -0.07568359375, 0.0645751953125, 0.00897979736328125, 0.0119171142578125, -0.0140838623046875, 0.00920867919921875, 0.00020754337310791016, -0.048370361328125, -0.0077362060546875, 0.049285888671875, 0.040924072265625, 0.0177459716796875, 0.03680419921875, 0.046539306640625, 0.08953857421875, -0.005733489990234375, 0.016632080078125, -0.005680084228515625, 0.0243072509765625, 0.028839111328125, -0.020660400390625, -0.034515380859375, 0.024688720703125, -0.049896240234375, 0.005615234375, 0.036651611328125, 0.00428009033203125, -0.01190948486328125, -0.024932861328125, 0.030548095703125, -0.0009984970092773438, 0.02374267578125, -0.019012451171875, 0.0162353515625, 0.0264129638671875, 0.0010213851928710938, 0.0208892822265625, 0.006175994873046875, -0.032928466796875, 0.02117919921875, 0.029083251953125, -0.01114654541015625, 0.0016984939575195312, 0.022430419921875, -0.0567626953125, 0.0235748291015625, -0.0158233642578125, 0.0197296142578125, -0.035125732421875, 0.0013647079467773438, -0.001781463623046875, 0.0162353515625, -0.03131103515625, -0.01556396484375, 0.0026683807373046875, -0.03167724609375, -0.007740020751953125, -0.0054168701171875, -0.048187255859375, -0.050262451171875, -0.0164794921875, 0.061187744140625, 0.010345458984375, -0.017059326171875, -0.0015478134155273438, 0.006134033203125, 0.0005540847778320312, -0.0552978515625, 0.0634765625, -0.0748291015625, 0.06622314453125, 0.0604248046875, -0.07806396484375, 0.059112548828125, -0.01557159423828125, 0.0226287841796875, -0.0053558349609375, -0.01445770263671875, -0.033111572265625, -0.0037670135498046875, -0.0611572265625, -0.0283966064453125, 0.009796142578125, 0.017913818359375, -0.0206146240234375, -0.027313232421875, -0.023223876953125, -0.005870819091796875, -0.056976318359375, -0.034271240234375, -0.036407470703125, -0.027679443359375, 0.0174560546875, 0.03790283203125, -0.007083892822265625, -0.0312347412109375, 0.0677490234375, 0.014068603515625, 0.00701141357421875, 0.005908966064453125, -0.0194549560546875, -0.0031299591064453125, -0.034820556640625, 0.0157012939453125, -0.004695892333984375, 0.0045318603515625, 0.00707244873046875, 0.037353515625, 0.00991058349609375, -0.031951904296875, 0.038482666015625, 0.028167724609375, 0.01141357421875, 0.036834716796875, 0.052825927734375, -0.007663726806640625, -0.0445556640625, 0.017242431640625, 0.0205230712890625, 0.056549072265625, -0.0697021484375, -0.00801849365234375, 0.00830078125, -0.01320648193359375, 0.01123046875, -0.0210418701171875, -0.01169586181640625, 0.01593017578125, -0.0005364418029785156, -0.0183868408203125, -0.0097198486328125, -0.0108184814453125, -0.034698486328125, 0.032470703125, 0.0135040283203125, -0.0171051025390625, -0.012603759765625, 0.0288848876953125, -0.0002949237823486328, -0.00402069091796875, -0.042877197265625, -0.0447998046875, 0.0728759765625, 0.0216064453125, 0.035003662109375, 0.007396697998046875, 0.019561767578125, -0.0071868896484375, -0.0024814605712890625, -0.00289154052734375, 0.0306396484375, 0.005352020263671875, 0.00838470458984375, -0.0258026123046875, 0.0196685791015625, 0.017486572265625, -0.016937255859375, 0.040313720703125, -0.0218963623046875, -0.00922393798828125, -0.0261383056640625, 0.059417724609375, -0.07513427734375, -0.034759521484375, -0.0090789794921875, 0.0169219970703125, 0.043914794921875, -0.006786346435546875, 0.01239013671875, -0.047454833984375, -0.052154541015625, -0.01300048828125, -0.0164947509765625, -0.028717041015625, 0.01317596435546875, -0.062255859375, -0.017425537109375, -0.04339599609375, 0.0193939208984375, -0.0119781494140625, 0.01568603515625, -0.0125274658203125, 0.023956298828125, -0.0274200439453125, 0.00313568115234375, -0.055023193359375, -0.065673828125, -0.016143798828125, -0.02264404296875, 0.0738525390625, -0.005138397216796875, 0.0269012451171875, -0.0232086181640625, 0.0401611328125, 0.009307861328125, 0.03887939453125, -0.005878448486328125, -0.00705718994140625, 0.038330078125, -0.02288818359375, 0.00334930419921875, -0.0167083740234375, -0.0293426513671875, -0.0799560546875, -0.02972412109375, -0.02630615234375, -0.0224761962890625, 0.044036865234375, -0.039398193359375, 0.021392822265625, -0.015716552734375, -0.03033447265625, -0.0313720703125, -0.00771331787109375, -0.0201568603515625, -0.00417327880859375, -0.0252227783203125, 0.003437042236328125, -0.031829833984375, 0.0161285400390625, -0.027313232421875, 0.044464111328125, 0.0028972625732421875, 0.0008893013000488281, -0.0008616447448730469, -0.09344482421875, -0.00865936279296875, 0.027496337890625, -0.00540924072265625, 0.0195465087890625, 0.005374908447265625, -0.022064208984375, 0.0305938720703125, -0.0153656005859375, 0.00699615478515625, -0.0035610198974609375, 0.031768798828125, -0.01354217529296875, -0.024658203125, 0.0254364013671875, -0.006153106689453125, -0.0012865066528320312, 0.0249786376953125, -0.00933837890625, 0.01428985595703125, -0.022552490234375, 0.01806640625, 0.009552001953125, -0.020233154296875, -0.04052734375, -0.028533935546875, -0.0010986328125, -0.03155517578125, 0.05047607421875, -0.0131072998046875, 0.01418304443359375, 0.0149383544921875, 0.053924560546875, 0.0213165283203125, 0.030242919921875, 0.0892333984375, -0.03509521484375, 0.06292724609375, 0.0177001953125, -0.004894256591796875, -0.03411865234375, -0.0026683807373046875, -0.00455474853515625, -0.016571044921875, -0.053436279296875, 0.0047454833984375, -0.01464080810546875, 0.01142120361328125, 0.05279541015625, -0.007015228271484375, 0.0115966796875, 0.0091705322265625, -0.0302581787109375, -0.00928497314453125, -0.03570556640625, 0.0265655517578125, -0.052825927734375, 0.03997802734375, -0.00887298583984375, -0.00701141357421875, 0.07366943359375, -0.02618408203125, -0.042694091796875, 0.041168212890625, 0.01161956787109375, 0.03167724609375, 0.025787353515625, -0.004520416259765625, 0.00867462158203125, 0.05010986328125, -0.048309326171875, 0.0274505615234375, 0.01132965087890625, -0.03399658203125, -0.014923095703125, 0.0167083740234375, 0.0302276611328125, -0.01287078857421875, -0.007297515869140625, -0.005474090576171875, -0.01468658447265625, -0.00933074951171875, 0.0199127197265625, -0.03399658203125, -0.0291595458984375, -0.04339599609375, -0.01381683349609375, 0.0579833984375, -0.006153106689453125, -0.037353515625, -0.04888916015625, -0.0189666748046875, 0.004535675048828125, 0.01241302490234375, -0.06561279296875, 0.061492919921875, 0.05828857421875, 0.01465606689453125, -0.043487548828125, -0.05670166015625, -0.0037670135498046875, -0.0016918182373046875, -0.0068817138671875, 0.0237274169921875, 0.031402587890625, -0.0209503173828125, 0.036468505859375, 0.0205078125, -0.03533935546875, 0.0216064453125, 0.04449462890625, -0.0181427001953125, -0.01654052734375, 0.033050537109375, -0.02581787109375, -0.01959228515625, -0.03515625, 0.00870513916015625, -0.015960693359375, 0.01207733154296875, -0.002285003662109375, -0.020843505859375, 0.026702880859375, -0.0223541259765625, 0.013763427734375, 0.0116119384765625, 0.0073699951171875, -0.019622802734375, 0.0164947509765625, -0.0182952880859375, -0.0023746490478515625, 0.0120391845703125, -0.00331878662109375, -0.027252197265625, -0.0289154052734375, -0.0101165771484375, 0.0016765594482421875, -0.039306640625, -0.05474853515625, 0.0217437744140625, 0.056396484375, -0.0452880859375, 0.037628173828125, 0.056060791015625, 0.02001953125, 0.01204681396484375, -0.02349853515625, -0.00927734375, -0.02105712890625, 0.0224609375, -0.0261688232421875, 0.006378173828125, 0.01129150390625, -0.0011949539184570312, 0.010955810546875, -0.0249481201171875, -0.036651611328125, 0.01389312744140625, 0.0010528564453125, 0.005466461181640625, 0.02081298828125, 0.02630615234375, -0.01154327392578125, 0.0137786865234375, -0.015289306640625, 0.0244140625, 0.03472900390625, 0.01491546630859375, 0.02520751953125, -0.022796630859375, 0.046661376953125, -0.0236358642578125, 0.04083251953125, -0.01297760009765625, -0.005588531494140625, 0.043182373046875, -0.031646728515625, -0.0181427001953125, -0.01302337646484375, -0.00002205371856689453, 0.034088134765625, -0.025787353515625, -0.0097198486328125, -0.021453857421875, -0.00998687744140625, 0.01386260986328125, -0.022735595703125, -0.057220458984375, 0.04718017578125, -0.0323486328125, -0.0196685791015625, 0.003265380859375, -0.024688720703125, 0.004604339599609375, 0.007671356201171875, 0.0125274658203125, 0.0009098052978515625, 0.01053619384765625, -0.0858154296875, 0.0295867919921875, -0.04803466796875, 0.01428985595703125, 0.028533935546875, -0.041412353515625, -0.0174560546875, -0.027099609375, -0.0258636474609375, -0.0022487640380859375, -0.0310516357421875, -0.02301025390625, -0.003742218017578125, -0.00279998779296875, 0.0287628173828125, -0.0352783203125, 0.0015888214111328125, 0.01318359375, -0.0684814453125, 0.005523681640625, -0.0126190185546875, -0.00353240966796875, 0.01035308837890625, -0.053741455078125, 0.00809478759765625, -0.0447998046875, 0.024322509765625, -0.0162353515625, -0.0350341796875, 0.048797607421875, -0.01392364501953125, 0.006740570068359375, 0.046966552734375, 0.0479736328125, -0.036468505859375, -0.00412750244140625, 0.05859375, -0.08013916015625, -0.04986572265625, 0.0252838134765625, -0.0139923095703125, -0.0157012939453125, 0.01351165771484375, -0.083740234375, 0.018890380859375, -0.030731201171875, 0.07513427734375, -0.01194000244140625, -0.012359619140625, 0.046661376953125, -0.01898193359375, -0.021392822265625, 0.03851318359375, -0.040191650390625, 0.042236328125, -0.08709716796875, 0.0022907257080078125, -0.00759124755859375, 0.04571533203125, 0.035400390625, 0.00955963134765625, -0.03131103515625, -0.042694091796875, 0.006633758544921875, 0.05126953125, 0.0276947021484375, 0.0224761962890625, -0.0139007568359375, 0.050323486328125, 0.033660888671875, -0.0799560546875, 0.01861572265625, -0.0191802978515625, -0.01168060302734375, 0.014190673828125, 0.0009646415710449219, 0.01279449462890625, 0.0211181640625, 0.076416015625, -0.004673004150390625, -0.006633758544921875, 0.03424072265625, -0.0731201171875, 0.04644775390625, 0.0239105224609375, 0.0293731689453125, 0.01035308837890625, -0.00997161865234375, 0.01280975341796875, 0.0380859375, 0.01222991943359375, 0.017303466796875, 0.058990478515625, 0.0238800048828125, 0.034149169921875, 0.0087432861328125, 0.011383056640625, -0.003330230712890625, 0.01019287109375, -0.00007802248001098633, -0.0022602081298828125, 0.023223876953125, -0.045166015625, -0.031829833984375, 0.02069091796875, 0.02471923828125, -0.01332855224609375, -0.041015625, 0.0137176513671875, -0.0005106925964355469, -0.0004887580871582031, 0.0196990966796875, 0.0014505386352539062, -0.04547119140625, -0.0012063980102539062, -0.051422119140625, 0.0038127899169921875, 0.006435394287109375, 0.04327392578125, -0.01473236083984375, -0.011749267578125, -0.0064544677734375, -0.0196990966796875, -0.033111572265625, 0.0036411285400390625, 0.0170440673828125, 0.0335693359375, 0.007167816162109375, 0.0147552490234375, -0.0132293701171875, -0.01470947265625, -0.0242919921875, 0.035430908203125, -0.01824951171875, 0.041473388671875, -0.0712890625, -0.03692626953125, 0.00875091552734375, 0.04815673828125, 0.01352691650390625, -0.036529541015625, 0.0199432373046875, 0.01369476318359375, -0.04962158203125, -0.0180511474609375, 0.0173797607421875, -0.0296630859375, 0.05059814453125, -0.032012939453125, 0.028778076171875, 0.00016963481903076172, -0.025390625, 0.01038360595703125, 0.0014467239379882812, 0.0399169921875, -0.03411865234375, 0.0399169921875, -0.0153656005859375, -0.058349609375, -0.031494140625, -0.0027904510498046875, 0.0723876953125, -0.01523590087890625, -0.12060546875, -0.008880615234375, -0.044036865234375, -0.0809326171875, 0.044708251953125, 0.046600341796875, -0.048736572265625, 0.01171875, -0.00262451171875, -0.0099639892578125, -0.037200927734375, -0.0235443115234375, 0.051422119140625, -0.059295654296875, -0.031280517578125, 0.0016651153564453125, -0.0177154541015625, -0.004169464111328125, -0.0169830322265625, 0.030120849609375, 0.0254974365234375, 0.06396484375, -0.01132965087890625, 0.0435791015625, 0.015106201171875, 0.0203857421875, -0.033477783203125, 0.00785064697265625, -0.006717681884765625, -0.01512908935546875, 0.00879669189453125, -0.00009316205978393555, 0.0267181396484375, 0.0157012939453125, 0.02850341796875, -0.037200927734375, 0.0196990966796875, -0.06182861328125, 0.003948211669921875, -0.00702667236328125, 0.0567626953125, -0.0090484619140625, -0.011566162109375, -0.0455322265625, -0.00714111328125, 0.06585693359375, 0.050750732421875, -0.016448974609375, 0.0031070709228515625, 0.0260772705078125, -0.005992889404296875, 0.01271820068359375, 0.01369476318359375, 0.03997802734375, 0.03765869140625, -0.0296478271484375, -0.024444580078125, -0.01201629638671875, -0.02154541015625, -0.047576904296875, 0.0034847259521484375, 0.0301666259765625, -0.029632568359375, -0.01531219482421875, 0.0009169578552246094, 0.003345489501953125, -0.007266998291015625, -0.056304931640625, -0.01971435546875, 0.053070068359375, -0.01213836669921875, -0.00606536865234375, 0.03680419921875, -0.0120849609375, 0.00229644775390625, -0.02923583984375, -0.0051422119140625, 0.00905609130859375, -0.04351806640625, -0.0190582275390625, -0.0188751220703125, 0.023223876953125, 0.031219482421875, -0.09033203125, 0.0677490234375, 0.00040531158447265625, -0.0009207725524902344, -0.0090789794921875, 0.0012350082397460938, -0.00720977783203125, 0.008453369140625, -0.0390625, -0.05999755859375, -0.019439697265625, 0.0465087890625, -0.010101318359375, -0.0101776123046875, 0.01306915283203125, -0.01763916015625, 0.0079345703125, -0.0004551410675048828, 0.0118255615234375, 0.042388916015625, -0.006053924560546875, -0.042510986328125, -0.0287322998046875, 0.0029773712158203125, 0.005542755126953125, 0.041839599609375, 0.038818359375, -0.0301666259765625, -0.057647705078125, 0.01551055908203125, -0.01053619384765625, -0.0004467964172363281, -0.04461669921875, -0.0897216796875, 0.0439453125, -0.005619049072265625, -0.0418701171875, -0.004093170166015625, 0.03912353515625, -0.01142120361328125, 0.00743865966796875, 0.00826263427734375, -0.033721923828125, 0.01328277587890625, -0.00731658935546875, -0.00872802734375, 0.0296783447265625, -0.0100250244140625, -0.0026149749755859375, -0.044952392578125, 0.00997161865234375, -0.00012481212615966797, -0.004482269287109375, -0.00392913818359375, 0.0008425712585449219, 0.0156707763671875, 0.0304412841796875, -0.032073974609375, -0.0234375, -0.01221466064453125, -0.01384735107421875, -0.004833221435546875, 0.01296234130859375, -0.06878662109375, -0.043670654296875, 0.09228515625, 0.085693359375, 0.026611328125, -0.01708984375, 0.0572509765625, 0.039154052734375, -0.0161895751953125, 0.0218353271484375, 0.01056671142578125, -0.034423828125, -0.032257080078125, 0.00804901123046875, -0.01165771484375, -0.0298919677734375, -0.041046142578125, -0.061004638671875, -0.0086517333984375, -0.06390380859375, 0.0232696533203125, -0.021942138671875, 0.04071044921875, 0.021331787109375, -0.03289794921875, -0.00843048095703125, -0.019012451171875, -0.00914764404296875, -0.006847381591796875, -0.031585693359375, -0.0107269287109375, -0.0258636474609375, 0.0290374755859375, 0.033843994140625, 0.02093505859375, -0.0245361328125, 0.0151519775390625, 0.005451202392578125, -0.0128936767578125, 0.009735107421875, 0.037200927734375, 0.006809234619140625, -0.007793426513671875, 0.0162353515625, -0.00014066696166992188, 0.0362548828125, -0.017974853515625, 0.0244293212890625, -0.008148193359375, 0.006023406982421875, -0.018524169921875, 0.00307464599609375, 0.026885986328125, -0.03936767578125, -0.0006804466247558594, 0.0246429443359375, -0.0701904296875, -0.032562255859375, 0.0118408203125, 0.001140594482421875, -0.013427734375, 0.021697998046875 ]
6eef19e6fb9d8877a42c0cf273773cf5f0ad9384
Wordpress Stackexchange Q: What are some examples of well-written plugins that exemplify wordpress plugin best practices? I've searched through the stack exchange for wordpress and was unable to come up with an answer to this question. All of the wordpress codex's examples and external resources come from 2004-2006. I'd love an example of a popular Wordpress plugin that is also well-written. As I'm fairly new to programming (less than 1 year in), this would be immensely helpful. A: You can buy the Professional WordPress Plugin Development book from Amazon: http://www.amazon.com/Professional-WordPress-Plugin-Development-Williams/dp/0470916222 I'm learning tons from it and it's packed full of good information about best practices. It will walk you through building your own plugin with lots of code samples. I cannot recommend it enough. If you're serious about learning to write plugins then this is one book you absolutely must buy.
Q: What are some examples of well-written plugins that exemplify wordpress plugin best practices? I've searched through the stack exchange for wordpress and was unable to come up with an answer to this question. All of the wordpress codex's examples and external resources come from 2004-2006. I'd love an example of a popular Wordpress plugin that is also well-written. As I'm fairly new to programming (less than 1 year in), this would be immensely helpful. A: You can buy the Professional WordPress Plugin Development book from Amazon: http://www.amazon.com/Professional-WordPress-Plugin-Development-Williams/dp/0470916222 I'm learning tons from it and it's packed full of good information about best practices. It will walk you through building your own plugin with lots of code samples. I cannot recommend it enough. If you're serious about learning to write plugins then this is one book you absolutely must buy. A: Take a look at the highest voted Qs on WPSE A: Download some plugins from well respected developers to see how they code their stuff.
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:410736", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21246" }
[ 0.019287109375, 0.0015850067138671875, 0.042694091796875, 0.044525146484375, -0.037628173828125, -0.00662994384765625, 0.01342010498046875, -0.07598876953125, -0.0060577392578125, -0.01474761962890625, 0.01216888427734375, -0.006839752197265625, -0.0311431884765625, -0.044921875, 0.0204315185546875, -0.03094482421875, 0.0244598388671875, 0.0330810546875, 0.0552978515625, 0.00891876220703125, 0.0118255615234375, 0.031585693359375, 0.0148773193359375, 0.035247802734375, 0.03173828125, -0.0472412109375, 0.0673828125, -0.00827789306640625, 0.05108642578125, 0.00856781005859375, 0.036468505859375, -0.049224853515625, -0.0016450881958007812, 0.041107177734375, -0.01230621337890625, -0.040069580078125, -0.0209808349609375, 0.01654052734375, 0.01342010498046875, 0.0031681060791015625, 0.0275115966796875, -0.03668212890625, 0.0182647705078125, 0.019744873046875, 0.01904296875, -0.04461669921875, 0.05059814453125, -0.040313720703125, 0.004619598388671875, -0.035247802734375, 0.0254364013671875, 0.00637054443359375, 0.044342041015625, -0.0298309326171875, -0.00949859619140625, 0.028167724609375, 0.0196380615234375, -0.010162353515625, 0.032318115234375, 0.000004410743713378906, -0.031890869140625, 0.0017910003662109375, 0.01568603515625, -0.011749267578125, -0.0202484130859375, -0.02642822265625, -0.0650634765625, 0.01290130615234375, -0.032073974609375, -0.0169525146484375, 0.03692626953125, -0.036865234375, -0.015869140625, -0.01849365234375, -0.033538818359375, 0.007015228271484375, 0.0435791015625, -0.0168914794921875, -0.005283355712890625, 0.0019931793212890625, -0.00024318695068359375, 0.0048065185546875, 0.006153106689453125, -0.07427978515625, 0.0168304443359375, -0.047637939453125, 0.0018472671508789062, 0.030975341796875, -0.005817413330078125, -0.004665374755859375, -0.0157318115234375, 0.022796630859375, -0.0321044921875, 0.0183868408203125, 0.006072998046875, -0.0169525146484375, 0.021942138671875, -0.0151214599609375, 0.0017099380493164062, 0.003936767578125, 0.045166015625, -0.056182861328125, 0.0582275390625, -0.0136260986328125, -0.019134521484375, 0.0665283203125, 0.021453857421875, -0.0150299072265625, -0.01316070556640625, -0.004039764404296875, -0.004032135009765625, -0.0284271240234375, 0.00908660888671875, -0.06207275390625, 0.0225067138671875, 0.004947662353515625, -0.0250701904296875, 0.02899169921875, 0.035186767578125, -0.0163726806640625, 0.02105712890625, 0.01520538330078125, 0.02325439453125, 0.0257415771484375, -0.0286712646484375, 0.0037975311279296875, -0.0033779144287109375, -0.0416259765625, 0.04150390625, 0.01393890380859375, -0.0145111083984375, -0.0023040771484375, 0.0367431640625, 0.0299530029296875, 0.0037994384765625, -0.0190277099609375, 0.06329345703125, 0.0020389556884765625, -0.0003058910369873047, 0.003086090087890625, -0.0140533447265625, 0.005615234375, 0.021759033203125, -0.0357666015625, 0.06500244140625, 0.0182647705078125, 0.01239776611328125, 0.0189971923828125, 0.0169219970703125, -0.018463134765625, 0.048736572265625, -0.018463134765625, 0.002521514892578125, 0.0194091796875, 0.00879669189453125, -0.0191497802734375, -0.0120391845703125, -0.0030040740966796875, 0.0426025390625, -0.0007786750793457031, 0.0203704833984375, 0.01221466064453125, 0.0128326416015625, -0.0175933837890625, -0.011566162109375, -0.0281829833984375, -0.032073974609375, 0.0041961669921875, 0.006519317626953125, -0.0159149169921875, 0.0280609130859375, -0.0177764892578125, -0.00229644775390625, -0.01904296875, -0.0033664703369140625, 0.00013780593872070312, -0.0229034423828125, -0.0060577392578125, 0.03759765625, 0.0208740234375, -0.019287109375, -0.02203369140625, 0.061431884765625, -0.021209716796875, -0.0159149169921875, -0.0075531005859375, 0.0184173583984375, 0.040435791015625, 0.004199981689453125, 0.0163726806640625, -0.0110931396484375, 0.006679534912109375, -0.005462646484375, 0.041168212890625, -0.0183258056640625, -0.0301513671875, -0.0338134765625, 0.0201416015625, -0.032867431640625, -0.0180511474609375, -0.061798095703125, 0.03662109375, -0.03094482421875, 0.033660888671875, -0.042572021484375, 0.01100921630859375, -0.00537872314453125, 0.045257568359375, 0.04254150390625, 0.0190277099609375, -0.01824951171875, 0.0087738037109375, 0.0301361083984375, -0.0731201171875, -0.042449951171875, 0.0455322265625, -0.0264129638671875, 0.00823974609375, -0.0017404556274414062, -0.00885772705078125, 0.020904541015625, -0.0141448974609375, 0.01361846923828125, 0.0191650390625, -0.01261138916015625, 0.032562255859375, -0.043548583984375, 0.0214080810546875, -0.025848388671875, 0.0093841552734375, 0.0386962890625, 0.0205078125, 0.045166015625, 0.0445556640625, -0.03997802734375, -0.031280517578125, -0.0235595703125, -0.03826904296875, 0.0021800994873046875, 0.056884765625, 0.021575927734375, 0.0162811279296875, -0.020721435546875, 0.016357421875, 0.025360107421875, -0.055145263671875, -0.0197601318359375, 0.007781982421875, -0.00075531005859375, 0.0173797607421875, -0.0177459716796875, -0.0052490234375, 0.04779052734375, -0.07489013671875, -0.019989013671875, 0.07879638671875, -0.027374267578125, -0.0012073516845703125, -0.041839599609375, 0.0177764892578125, -0.00949859619140625, -0.00732421875, 0.0186767578125, -0.017303466796875, 0.0438232421875, -0.0028209686279296875, 0.022003173828125, 0.00804901123046875, -0.018463134765625, 0.011138916015625, 0.004058837890625, -0.033966064453125, -0.0020580291748046875, 0.03924560546875, 0.042022705078125, 0.006961822509765625, -0.05194091796875, -0.0213165283203125, 0.048095703125, 0.027496337890625, -0.024932861328125, -0.00174713134765625, 0.0007753372192382812, -0.00988006591796875, 0.007137298583984375, -0.002071380615234375, 0.0088958740234375, -0.029693603515625, 0.0021610260009765625, -0.01690673828125, -0.0003998279571533203, -0.0005550384521484375, -0.0360107421875, 0.06103515625, 0.019561767578125, -0.03424072265625, 0.0129241943359375, -0.03009033203125, 0.044677734375, -0.01080322265625, 0.007068634033203125, 0.054107666015625, -0.006435394287109375, 0.01151275634765625, 0.0001798868179321289, 0.017059326171875, 0.03594970703125, -0.0212860107421875, -0.02276611328125, 0.003406524658203125, -0.048004150390625, 0.00017344951629638672, 0.03607177734375, 0.131591796875, -0.035430908203125, -0.07330322265625, 0.0018281936645507812, 0.057830810546875, -0.038726806640625, -0.033355712890625, -0.030426025390625, -0.020172119140625, 0.0295562744140625, -0.01617431640625, -0.00049591064453125, -0.01317596435546875, 0.001373291015625, 0.015045166015625, -0.016204833984375, -0.0634765625, -0.06787109375, -0.1031494140625, -0.09320068359375, -0.03564453125, -0.005535125732421875, 0.014007568359375, 0.01336669921875, 0.047576904296875, 0.0023860931396484375, -0.07666015625, -0.0228729248046875, -0.01165771484375, -0.01229095458984375, 0.00942230224609375, -0.00452423095703125, 0.00760650634765625, -0.051116943359375, 0.01291656494140625, 0.038543701171875, 0.006053924560546875, -0.034942626953125, 0.015625, -0.01189422607421875, -0.0245208740234375, 0.0018415451049804688, 0.00737762451171875, -0.0055999755859375, -0.01861572265625, -0.0037822723388671875, -0.053985595703125, 0.02685546875, 0.03594970703125, 0.01009368896484375, 0.015289306640625, -0.0347900390625, -0.032318115234375, 0.03802490234375, 0.0026702880859375, -0.0000635981559753418, 0.0059967041015625, -0.01959228515625, -0.021087646484375, 0.03155517578125, 0.00867462158203125, 0.0282135009765625, 0.01165008544921875, 0.05059814453125, -0.0256500244140625, -0.01239013671875, 0.01557159423828125, 0.0022430419921875, 0.0204010009765625, -0.00885009765625, 0.0050506591796875, -0.021087646484375, 0.036041259765625, 0.0019741058349609375, 0.00319671630859375, -0.00856781005859375, -0.0205841064453125, -0.002147674560546875, 0.054656982421875, -0.0289459228515625, 0.0097808837890625, 0.004695892333984375, -0.0232086181640625, 0.00525665283203125, -0.0028972625732421875, -0.0841064453125, -0.0111541748046875, -0.0487060546875, -0.01453399658203125, 0.018798828125, -0.042205810546875, -0.023681640625, 0.039581298828125, -0.06109619140625, -0.00850677490234375, 0.03204345703125, -0.0308074951171875, 0.0286102294921875, -0.0050506591796875, 0.01236724853515625, -0.0204315185546875, -0.02490234375, -0.0227813720703125, -0.062286376953125, -0.0015478134155273438, -0.08856201171875, 0.08258056640625, 0.0751953125, -0.02490234375, -0.0162353515625, 0.01861572265625, -0.031402587890625, 0.01331329345703125, 0.0303802490234375, 0.05670166015625, -0.0159759521484375, 0.0004968643188476562, 0.01544189453125, -0.0286407470703125, -0.01119232177734375, -0.040771484375, -0.052642822265625, -0.0096588134765625, -0.007549285888671875, 0.0117340087890625, 0.0087738037109375, -0.0248260498046875, -0.009429931640625, -0.0252532958984375, -0.04473876953125, -0.0169830322265625, -0.03387451171875, -0.0022335052490234375, -0.0019702911376953125, -0.0017251968383789062, 0.020721435546875, 0.02581787109375, -0.0211181640625, 0.0265350341796875, 0.0357666015625, 0.01181793212890625, -0.0207061767578125, -0.06805419921875, -0.0235137939453125, 0.0204925537109375, 0.0157012939453125, -0.0172119140625, -0.05322265625, -0.05047607421875, 0.078125, -0.02545166015625, -0.02508544921875, 0.01244354248046875, 0.01396942138671875, 0.0205535888671875, -0.0139617919921875, -0.023956298828125, -0.00406646728515625, 0.015899658203125, 0.0016498565673828125, -0.0140380859375, -0.0487060546875, -0.01806640625, 0.07025146484375, -0.032379150390625, 0.080078125, -0.032684326171875, -0.011138916015625, -0.020172119140625, 0.031524658203125, 0.039398193359375, 0.054779052734375, -0.0169830322265625, 0.033172607421875, 0.01166534423828125, -0.026947021484375, 0.03533935546875, 0.036285400390625, -0.005016326904296875, 0.017608642578125, 0.0220489501953125, -0.037689208984375, -0.010162353515625, -0.0184783935546875, 0.09051513671875, 0.0208282470703125, -0.058197021484375, 0.033355712890625, -0.0185394287109375, 0.0194091796875, 0.005344390869140625, -0.0161285400390625, 0.023162841796875, 0.0285491943359375, 0.0033283233642578125, 0.025177001953125, -0.04010009765625, 0.0145721435546875, -0.02362060546875, -0.0243072509765625, -0.01026153564453125, -0.0154266357421875, 0.0261077880859375, 0.03350830078125, -0.051025390625, 0.039398193359375, -0.00325775146484375, 0.044158935546875, 0.0272216796875, 0.03643798828125, 0.0216827392578125, -0.00662994384765625, -0.00682830810546875, 0.005279541015625, -0.0217437744140625, -0.03277587890625, -0.0211944580078125, -0.03594970703125, 0.002349853515625, -0.01678466796875, -0.0069580078125, 0.06298828125, -0.00014197826385498047, -0.023101806640625, -0.00574493408203125, 0.00890350341796875, -0.0058441162109375, -0.006084442138671875, 0.0189056396484375, 0.029449462890625, 0.022491455078125, 0.009124755859375, 0.0044708251953125, 0.00047707557678222656, 0.0306396484375, -0.049835205078125, 0.01092529296875, -0.0273895263671875, -0.0190277099609375, -0.00284576416015625, 0.005542755126953125, -0.00400543212890625, -0.0433349609375, -0.045745849609375, -0.00818634033203125, 0.00699615478515625, 0.068603515625, 0.0227203369140625, 0.0168914794921875, -0.037109375, -0.01306915283203125, -0.024505615234375, -0.021514892578125, 0.05902099609375, 0.00896453857421875, -0.0606689453125, -0.03173828125, -0.0217742919921875, -0.0187835693359375, 0.004909515380859375, -0.003383636474609375, -0.046905517578125, 0.0194091796875, -0.0237274169921875, 0.0019664764404296875, -0.031982421875, 0.01058197021484375, -0.0095367431640625, 0.046234130859375, -0.01177978515625, 0.004909515380859375, 0.01898193359375, 0.01629638671875, 0.0008568763732910156, 0.05767822265625, 0.01277923583984375, -0.01010894775390625, -0.031341552734375, -0.040740966796875, 0.0103759765625, -0.03173828125, 0.0060882568359375, -0.0229034423828125, -0.02203369140625, 0.002582550048828125, 0.057220458984375, 0.0152740478515625, -0.0024890899658203125, -0.02276611328125, 0.00362396240234375, -0.00012063980102539062, 0.061492919921875, -0.019378662109375, -0.0221405029296875, 0.020751953125, -0.023101806640625, 0.0046234130859375, 0.00986480712890625, 0.01016998291015625, -0.00023663043975830078, -0.019561767578125, 0.00431060791015625, 0.0005879402160644531, -0.01187896728515625, 0.02923583984375, 0.02850341796875, 0.002742767333984375, 0.0394287109375, 0.03338623046875, 0.033843994140625, 0.027313232421875, -0.01385498046875, 0.0450439453125, -0.0298309326171875, 0.074951171875, 0.005054473876953125, -0.034881591796875, 0.06390380859375, -0.05517578125, -0.0016107559204101562, 0.0213623046875, 0.0200347900390625, -0.06463623046875, 0.028167724609375, -0.0012140274047851562, 0.01090240478515625, 0.052734375, -0.020416259765625, -0.007080078125, -0.025482177734375, 0.02362060546875, 0.0355224609375, -0.0191497802734375, 0.0003502368927001953, 0.014007568359375, -0.014892578125, -0.0004076957702636719, 0.0151519775390625, 0.01468658447265625, -0.10064697265625, 0.04705810546875, 0.060150146484375, 0.0077056884765625, -0.01061248779296875, -0.00904083251953125, -0.00949859619140625, -0.01221466064453125, 0.00540924072265625, 0.043365478515625, -0.045989990234375, 0.0195465087890625, 0.01538848876953125, -0.0028858184814453125, 0.0013990402221679688, 0.029754638671875, -0.01214599609375, -0.004566192626953125, 0.0110931396484375, -0.01934814453125, -0.01340484619140625, -0.0135345458984375, 0.01546478271484375, 0.04705810546875, -0.0467529296875, 0.01361846923828125, -0.035003662109375, 0.002216339111328125, -0.01261138916015625, -0.0005483627319335938, 0.075439453125, -0.038787841796875, -0.01166534423828125, 0.01282501220703125, 0.023773193359375, -0.0022373199462890625, -0.021881103515625, 0.0251312255859375, -0.0718994140625, -0.0233612060546875, -0.0004413127899169922, 0.009124755859375, 0.03582763671875, 0.0088043212890625, -0.05535888671875, 0.03948974609375, 0.0037250518798828125, 0.02667236328125, 0.024688720703125, -0.0038967132568359375, -0.035247802734375, -0.0269622802734375, -0.0270843505859375, 0.0287017822265625, -0.039031982421875, 0.0017032623291015625, 0.01064300537109375, 0.026641845703125, 0.0012493133544921875, -0.033203125, 0.0860595703125, 0.02606201171875, -0.055206298828125, -0.012420654296875, 0.0277252197265625, 0.002651214599609375, -0.0181732177734375, 0.07452392578125, -0.00803375244140625, -0.017303466796875, 0.0213623046875, -0.01020050048828125, 0.0435791015625, -0.06011962890625, -0.005207061767578125, -0.0215911865234375, 0.000005543231964111328, -0.0355224609375, -0.00559234619140625, -0.0195465087890625, -0.002933502197265625, -0.0015516281127929688, -0.021484375, 0.04638671875, 0.0162811279296875, 0.03759765625, 0.005901336669921875, -0.0156707763671875, -0.01995849609375, -0.01025390625, 0.031524658203125, -0.0267791748046875, 0.037017822265625, 0.030426025390625, 0.0297393798828125, 0.0242156982421875, -0.013519287109375, 0.038299560546875, 0.0308685302734375, -0.056182861328125, 0.041351318359375, -0.03692626953125, 0.0011196136474609375, -0.09759521484375, -0.03253173828125, 0.031707763671875, 0.059417724609375, -0.02386474609375, -0.05029296875, 0.01690673828125, -0.017120361328125, -0.0087890625, 0.0137786865234375, -0.006824493408203125, -0.034149169921875, 0.0025959014892578125, -0.041412353515625, -0.020111083984375, -0.006076812744140625, 0.0185699462890625, -0.033599853515625, -0.06494140625, 0.0245208740234375, -0.0140533447265625, -0.0027923583984375, -0.0185546875, 0.00534820556640625, 0.0173492431640625, 0.01085662841796875, 0.03515625, 0.0113372802734375, -0.008270263671875, 0.01812744140625, -0.00759124755859375, 0.0060577392578125, -0.01360321044921875, -0.0062103271484375, -0.021942138671875, 0.017181396484375, 0.0240020751953125, -0.0026721954345703125, 0.0293426513671875, 0.035125732421875, 0.0216827392578125, -0.03167724609375, -0.0033721923828125, 0.053314208984375, -0.0195770263671875, -0.04119873046875, -0.0292205810546875, -0.0035400390625, 0.03466796875, -0.00408935546875, 0.04327392578125, -0.0111541748046875, 0.052398681640625, -0.0037288665771484375, -0.0086212158203125, 0.01410675048828125, -0.04034423828125, 0.0408935546875, -0.0310516357421875, 0.0167999267578125, -0.0137176513671875, -0.07891845703125, -0.0184478759765625, -0.0269775390625, -0.01453399658203125, 0.0162353515625, 0.0204010009765625, -0.0217742919921875, 0.0390625, 0.003467559814453125, 0.02044677734375, 0.034332275390625, -0.03399658203125, -0.01088714599609375, -0.043365478515625, 0.032867431640625, -0.0282440185546875, -0.03759765625, -0.0251922607421875, -0.0089263916015625, 0.036651611328125, 0.037445068359375, 0.04412841796875, -0.005931854248046875, 0.0224609375, 0.015777587890625, -0.038604736328125, 0.0286865234375, -0.00699615478515625, -0.0027980804443359375, -0.0184478759765625, -0.0103302001953125, -0.0019044876098632812, -0.007228851318359375, 0.007110595703125, 0.04144287109375, -0.034423828125, -0.01053619384765625, 0.0033397674560546875, 0.02166748046875, -0.0237884521484375, 0.0066986083984375, -0.031036376953125, -0.0300750732421875, -0.0033969879150390625, 0.00539398193359375, -0.00531768798828125, -0.00791168212890625, -0.00957489013671875, -0.033935546875, 0.01323699951171875, -0.031585693359375, 0.00830078125, 0.0287628173828125, -0.01032257080078125, 0.0278778076171875, 0.0190582275390625, -0.03277587890625, 0.0302886962890625, -0.008331298828125, -0.00449371337890625, 0.0196685791015625, 0.0284576416015625, 0.01309967041015625, -0.0694580078125, 0.0408935546875, -0.01558685302734375, 0.02569580078125, -0.03961181640625, -0.007266998291015625, 0.00769805908203125, 0.028961181640625, 0.004734039306640625, 0.002071380615234375, -0.0323486328125, -0.0439453125, 0.00026702880859375, 0.021331787109375, -0.01904296875, -0.0335693359375, -0.0648193359375, 0.00823211669921875, -0.0297393798828125, -0.0267181396484375, -0.007190704345703125, -0.0012664794921875, -0.01334381103515625, 0.036529541015625, -0.07098388671875, 0.044586181640625, -0.0111541748046875, 0.0100250244140625, -0.046234130859375, -0.0215301513671875, -0.01654052734375, 0.0307769775390625, -0.006603240966796875, 0.070556640625, 0.07391357421875, -0.06549072265625, 0.0184326171875, 0.07830810546875, 0.07659912109375, 0.1328125, 0.020355224609375, 0.01282501220703125, 0.06439208984375, -0.00899505615234375, -0.06182861328125, -0.07574462890625, -0.0009207725524902344, -0.025360107421875, -0.0118255615234375, -0.0157318115234375, -0.01428985595703125, -0.01336669921875, -0.052459716796875, -0.088623046875, 0.10296630859375, -0.0275421142578125, -0.018157958984375, -0.0355224609375, 0.00018346309661865234, -0.0003895759582519531, 0.028900146484375, -0.0098876953125, -0.00522613525390625, -0.029571533203125, 0.01343536376953125, 0.001155853271484375, 0.0168914794921875, -0.0004260540008544922, -0.02435302734375, 0.002979278564453125, 0.0184173583984375, 0.0455322265625, -0.0119171142578125, -0.0041046142578125, 0.0298919677734375, -0.0077972412109375, 0.044036865234375, -0.0175018310546875, 0.004241943359375, -0.0272979736328125, -0.0274658203125, 0.015655517578125, 0.01739501953125, -0.026824951171875, 0.0250396728515625, 0.017425537109375, 0.048797607421875, 0.0093536376953125, -0.0521240234375, 0.00780487060546875, 0.0081024169921875, 0.003406524658203125, 0.00305938720703125, -0.0126953125, -0.0246734619140625, -0.009918212890625, -0.02099609375, 0.0166015625, -0.01358795166015625, -0.01519012451171875, -0.0079803466796875, -0.0190277099609375, 0.020111083984375, 0.0095062255859375, 0.0223236083984375, -0.050872802734375, 0.08038330078125, -0.019927978515625, 0.035552978515625, 0.0149688720703125, 0.025146484375, 0.0670166015625, 0.07269287109375, 0.0343017578125, 0.032318115234375, -0.04547119140625, 0.0214691162109375, 0.0208282470703125, 0.0305938720703125, -0.0260009765625, -0.0218963623046875, -0.0280914306640625, 0.030853271484375, 0.0142669677734375, 0.026641845703125, -0.0145721435546875, 0.057708740234375, 0.041534423828125, 0.0242767333984375, 0.0020923614501953125, -0.0672607421875, -0.053192138671875, 0.060546875, 0.001819610595703125, -0.036468505859375, 0.01947021484375, -0.037322998046875, 0.00958251953125, -0.012054443359375, 0.01326751708984375, -0.023529052734375, 0.01201629638671875, 0.01617431640625, -0.0139617919921875, 0.022003173828125 ]
5fc50b82b32e0c0e4fe99139bca03e487e82617d
Wordpress Stackexchange Q: How can HTML be allowed in Author Bio? Is there a way to prevent WP from stripping the HTML from the author bio? I need it to keep my paragraphs. Thanks in advance! :) Edit - Although this question has been answered, I will clarify that I was referring to the Bio textarea when editing individual users. A: remove the filter that formats the description. put this in your theme's functions.php: remove_filter('pre_user_description', 'wp_filter_kses'); EDIT - I should mention, if you allow random people to register and add their own bio for display on the site, not filtering that text could enable bad things.
Q: How can HTML be allowed in Author Bio? Is there a way to prevent WP from stripping the HTML from the author bio? I need it to keep my paragraphs. Thanks in advance! :) Edit - Although this question has been answered, I will clarify that I was referring to the Bio textarea when editing individual users. A: remove the filter that formats the description. put this in your theme's functions.php: remove_filter('pre_user_description', 'wp_filter_kses'); EDIT - I should mention, if you allow random people to register and add their own bio for display on the site, not filtering that text could enable bad things.
wordpress
{ "language": "en", "length": 104, "provenance": "stackexchange_00019.jsonl.gz:410757", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21326" }
[ 0.036285400390625, -0.00389862060546875, -0.01062774658203125, -0.013763427734375, 0.00934600830078125, -0.033355712890625, 0.0113372802734375, -0.034332275390625, -0.036102294921875, 0.07073974609375, 0.01812744140625, 0.0318603515625, 0.0199737548828125, -0.00579071044921875, -0.0196075439453125, -0.007526397705078125, -0.0025348663330078125, 0.005588531494140625, 0.0225372314453125, 0.003131866455078125, -0.00555419921875, 0.0025844573974609375, 0.005706787109375, -0.0838623046875, 0.01007843017578125, -0.010894775390625, 0.09344482421875, -0.005031585693359375, 0.0211181640625, -0.005462646484375, 0.0193939208984375, -0.044647216796875, 0.0019397735595703125, 0.06634521484375, -0.07928466796875, 0.046783447265625, -0.025299072265625, 0.03741455078125, 0.00901031494140625, 0.0221099853515625, 0.0310821533203125, -0.0189208984375, -0.035369873046875, 0.00394439697265625, -0.0313720703125, -0.049774169921875, 0.060943603515625, -0.00958251953125, 0.007122039794921875, -0.005924224853515625, 0.0177001953125, -0.0004413127899169922, 0.045257568359375, -0.047760009765625, -0.036163330078125, -0.030517578125, 0.00394439697265625, 0.000774383544921875, 0.0233001708984375, -0.009521484375, -0.017486572265625, 0.0005407333374023438, 0.01274871826171875, 0.01338958740234375, 0.030181884765625, -0.033966064453125, -0.0006847381591796875, 0.05792236328125, -0.043304443359375, 0.010711669921875, 0.030853271484375, -0.0227813720703125, 0.01385498046875, -0.046417236328125, -0.01544952392578125, 0.02471923828125, -0.04547119140625, -0.048095703125, 0.0469970703125, -0.022979736328125, 0.01418304443359375, -0.0245361328125, 0.002727508544921875, -0.01291656494140625, 0.003055572509765625, -0.003765106201171875, 0.0009469985961914062, 0.0036640167236328125, -0.030426025390625, 0.0484619140625, -0.0181121826171875, -0.01131439208984375, -0.0078277587890625, 0.05535888671875, 0.005107879638671875, 0.01959228515625, 0.038238525390625, 0.026458740234375, -0.00652313232421875, 0.00606536865234375, 0.0196533203125, -0.055145263671875, 0.05426025390625, -0.0278778076171875, 0.001708984375, 0.06884765625, -0.006481170654296875, 0.036895751953125, 0.04730224609375, 0.022125244140625, 0.0275115966796875, -0.025909423828125, -0.0017299652099609375, -0.035675048828125, -0.0161285400390625, 0.0340576171875, 0.0130157470703125, 0.001983642578125, 0.0219879150390625, 0.0062713623046875, 0.00283050537109375, 0.01198577880859375, 0.005474090576171875, -0.0362548828125, -0.012969970703125, -0.040924072265625, -0.025543212890625, 0.006977081298828125, -0.01050567626953125, -0.0007457733154296875, -0.006305694580078125, 0.0224151611328125, 0.0011920928955078125, 0.0205841064453125, -0.0171356201171875, -0.003692626953125, 0.01323699951171875, -0.023681640625, -0.0194549560546875, 0.04522705078125, -0.02716064453125, -0.03948974609375, -0.0211181640625, -0.04022216796875, -0.03271484375, 0.031951904296875, 0.002414703369140625, 0.010955810546875, -0.006542205810546875, -0.0545654296875, -0.000820159912109375, -0.0411376953125, 0.031707763671875, 0.00505828857421875, 0.041778564453125, -0.0565185546875, 0.054901123046875, -0.049468994140625, 0.0177154541015625, -0.040679931640625, 0.019989013671875, 0.00428009033203125, 0.030792236328125, -0.0158843994140625, -0.04229736328125, -0.009490966796875, -0.0406494140625, -0.01318359375, 0.01364898681640625, -0.0196990966796875, 0.007114410400390625, -0.021453857421875, -0.00478363037109375, 0.00772857666015625, -0.000021755695343017578, 0.028533935546875, 0.01104736328125, -0.0230712890625, -0.006122589111328125, 0.08880615234375, 0.01483917236328125, -0.0238189697265625, -0.0096588134765625, -0.00811767578125, -0.0699462890625, 0.03338623046875, 0.0130767822265625, 0.10009765625, 0.05908203125, 0.007175445556640625, 0.029052734375, -0.045135498046875, 0.0067138671875, -0.0264739990234375, 0.016693115234375, -0.043731689453125, -0.004119873046875, -0.049285888671875, 0.0016202926635742188, 0.040740966796875, 0.05670166015625, -0.040496826171875, 0.051971435546875, -0.0496826171875, -0.0355224609375, -0.005352020263671875, -0.012237548828125, 0.023529052734375, 0.03582763671875, 0.01442718505859375, 0.00608062744140625, 0.005733489990234375, -0.007579803466796875, -0.04180908203125, -0.036163330078125, -0.003814697265625, -0.0207977294921875, 0.0238800048828125, 0.025238037109375, -0.00293731689453125, 0.047515869140625, -0.017303466796875, 0.0450439453125, 0.0076751708984375, 0.01641845703125, -0.04766845703125, -0.0228271484375, -0.04376220703125, 0.00023055076599121094, -0.041412353515625, 0.018402099609375, 0.06903076171875, 0.038909912109375, 0.0242919921875, -0.0258026123046875, 0.0097808837890625, 0.00231170654296875, -0.048492431640625, 0.0043487548828125, 0.047332763671875, 0.04144287109375, 0.01107025146484375, -0.0188446044921875, -0.027679443359375, 0.046356201171875, -0.03204345703125, 0.0250396728515625, -0.0325927734375, -0.0008111000061035156, 0.01076507568359375, -0.008514404296875, -0.0175323486328125, 0.02850341796875, -0.1170654296875, -0.01055145263671875, 0.051788330078125, 0.020660400390625, -0.00341033935546875, -0.01519775390625, 0.0149688720703125, 0.023223876953125, 0.0440673828125, -0.03472900390625, 0.0228118896484375, 0.0060882568359375, -0.0205230712890625, 0.01473236083984375, 0.00669097900390625, -0.016693115234375, -0.0299224853515625, 0.023345947265625, 0.0196533203125, -0.0049285888671875, 0.03729248046875, 0.0270843505859375, 0.02166748046875, -0.033477783203125, -0.003177642822265625, -0.00678253173828125, 0.03057861328125, -0.00791168212890625, 0.005390167236328125, 0.01505279541015625, -0.00022733211517333984, -0.016754150390625, -0.07861328125, 0.040496826171875, 0.032989501953125, -0.00479888916015625, -0.0184783935546875, 0.007564544677734375, 0.02496337890625, -0.0091094970703125, 0.0206146240234375, 0.0208892822265625, -0.0211029052734375, -0.027557373046875, -0.0673828125, 0.060699462890625, -0.0494384765625, 0.043548583984375, 0.0771484375, 0.004261016845703125, 0.0108184814453125, -0.0087738037109375, -0.040740966796875, -0.0290985107421875, 0.0305633544921875, 0.002216339111328125, -0.016815185546875, -0.0284423828125, 0.044342041015625, 0.032867431640625, -0.027740478515625, 0.054962158203125, 0.0172882080078125, -0.007648468017578125, 0.0298919677734375, 0.00873565673828125, 0.024871826171875, 0.016082763671875, -0.0117645263671875, -0.0281829833984375, 0.00890350341796875, -0.004669189453125, -0.00786590576171875, 0.01837158203125, -0.01947021484375, 0.012054443359375, -0.07684326171875, -0.06689453125, -0.08892822265625, -0.0865478515625, 0.020111083984375, 0.01849365234375, 0.0186920166015625, 0.00864410400390625, 0.067626953125, 0.0157318115234375, -0.08056640625, 0.0084228515625, 0.01253509521484375, -0.00021851062774658203, 0.0673828125, 0.0282745361328125, -0.020782470703125, -0.002208709716796875, 0.00801849365234375, 0.00273895263671875, 0.0124664306640625, -0.0184783935546875, -0.021148681640625, 0.01267242431640625, 0.0182647705078125, 0.0305633544921875, -0.0009870529174804688, -0.022796630859375, -0.0012617111206054688, 0.0118408203125, -0.043853759765625, -0.00897979736328125, 0.03228759765625, 0.005626678466796875, 0.017242431640625, -0.0267791748046875, -0.0277557373046875, 0.007244110107421875, 0.031402587890625, 0.003948211669921875, 0.016082763671875, -0.013519287109375, -0.003765106201171875, -0.0193939208984375, 0.0054931640625, 0.00455474853515625, 0.019073486328125, -0.01125335693359375, -0.04119873046875, 0.0091094970703125, -0.0173187255859375, -0.0036716461181640625, -0.01947021484375, 0.01197052001953125, -0.0258941650390625, -0.00736236572265625, 0.0565185546875, -0.02545166015625, -0.01241302490234375, -0.040252685546875, -0.02728271484375, -0.0244293212890625, 0.045684814453125, 0.032196044921875, -0.0168609619140625, 0.0236663818359375, 0.005401611328125, -0.051605224609375, -0.015594482421875, -0.0323486328125, -0.0028324127197265625, -0.0040740966796875, 0.031463623046875, -0.006427764892578125, 0.00804901123046875, -0.052398681640625, 0.0168914794921875, -0.0019025802612304688, -0.0235443115234375, 0.01201629638671875, 0.04217529296875, -0.0107879638671875, -0.0017614364624023438, -0.01293182373046875, -0.007724761962890625, -0.01145172119140625, 0.0013027191162109375, -0.032806396484375, -0.0025177001953125, -0.0142364501953125, -0.01132965087890625, -0.0347900390625, 0.04931640625, -0.026611328125, 0.0247802734375, 0.0277099609375, 0.04302978515625, 0.027496337890625, -0.01107025146484375, 0.005344390869140625, -0.00801849365234375, 0.044647216796875, -0.038970947265625, -0.0177764892578125, -0.01959228515625, 0.0008974075317382812, 0.030609130859375, -0.033935546875, -0.053436279296875, -0.030487060546875, -0.01004791259765625, -0.036773681640625, -0.0474853515625, -0.0095977783203125, 0.028656005859375, -0.0010633468627929688, 0.0034503936767578125, -0.061798095703125, -0.042816162109375, 0.0687255859375, 0.0184478759765625, 0.0003502368927001953, -0.01739501953125, 0.07550048828125, 0.0123138427734375, -0.034637451171875, 0.0311126708984375, 0.02166748046875, 0.04779052734375, -0.01522064208984375, 0.024139404296875, 0.0105743408203125, -0.049072265625, 0.0672607421875, 0.004489898681640625, -0.0073699951171875, -0.024810791015625, 0.0289306640625, 0.00826263427734375, 0.011749267578125, -0.009033203125, 0.0025882720947265625, 0.047515869140625, -0.007282257080078125, 0.025787353515625, 0.02020263671875, 0.0418701171875, -0.0013074874877929688, 0.0236053466796875, -0.060028076171875, -0.00200653076171875, 0.0025310516357421875, 0.00159454345703125, -0.02691650390625, 0.046783447265625, 0.015869140625, 0.0168609619140625, -0.019134521484375, -0.0039215087890625, 0.0066986083984375, -0.08001708984375, -0.08514404296875, -0.051055908203125, 0.0204925537109375, -0.09747314453125, -0.0128021240234375, 0.0088043212890625, -0.02001953125, 0.06707763671875, 0.022003173828125, -0.024993896484375, 0.004497528076171875, -0.0158843994140625, 0.02679443359375, -0.001331329345703125, 0.0253143310546875, 0.032440185546875, 0.004833221435546875, -0.00022137165069580078, 0.0081024169921875, 0.00908660888671875, -0.007568359375, -0.0271453857421875, -0.0213165283203125, -0.01373291015625, -0.00952911376953125, 0.053436279296875, -0.0001456737518310547, -0.02984619140625, 0.01282501220703125, -0.007755279541015625, 0.0789794921875, 0.052154541015625, 0.0075836181640625, 0.0032501220703125, 0.042724609375, -0.005214691162109375, -0.02569580078125, -0.0208740234375, -0.041229248046875, -0.0208282470703125, 0.01258087158203125, 0.041839599609375, 0.018280029296875, -0.00745391845703125, 0.006328582763671875, -0.0234222412109375, 0.00377655029296875, 0.0146331787109375, -0.040130615234375, -0.044891357421875, 0.00009208917617797852, 0.04541015625, 0.0099334716796875, -0.034576416015625, -0.002140045166015625, -0.0195465087890625, -0.02496337890625, -0.017578125, 0.031646728515625, -0.049591064453125, -0.00931549072265625, 0.009185791015625, -0.00377655029296875, -0.005054473876953125, -0.020599365234375, -0.0236053466796875, -0.0222320556640625, -0.016143798828125, 0.0068511962890625, 0.0682373046875, -0.038787841796875, -0.005496978759765625, -0.031951904296875, 0.045166015625, 0.007709503173828125, -0.0017137527465820312, 0.0771484375, 0.04693603515625, -0.036956787109375, -0.0035686492919921875, -0.044464111328125, -0.00698089599609375, -0.02777099609375, -0.035186767578125, -0.0246734619140625, 0.0004477500915527344, -0.0082244873046875, 0.0079498291015625, -0.01149749755859375, 0.0044708251953125, -0.00925445556640625, 0.04595947265625, 0.006443023681640625, 0.03912353515625, -0.0404052734375, 0.048614501953125, 0.01432037353515625, 0.0285797119140625, -0.0264892578125, 0.0063934326171875, 0.0150146484375, -0.007434844970703125, 0.0192413330078125, -0.04510498046875, -0.03985595703125, -0.02825927734375, -0.0216827392578125, 0.025054931640625, 0.033294677734375, -0.008331298828125, -0.004863739013671875, -0.0218963623046875, -0.001194000244140625, -0.018707275390625, 0.0478515625, -0.0280303955078125, -0.019287109375, -0.00571441650390625, -0.0274505615234375, -0.00530242919921875, 0.00518798828125, 0.0491943359375, -0.017486572265625, -0.0017528533935546875, -0.0310211181640625, -0.0126800537109375, 0.01166534423828125, -0.0146636962890625, -0.0012416839599609375, 0.01020050048828125, 0.032196044921875, 0.0176239013671875, 0.04693603515625, 0.007808685302734375, 0.028961181640625, -0.01378631591796875, -0.02972412109375, 0.004058837890625, -0.0059967041015625, 0.011199951171875, 0.00986480712890625, -0.004779815673828125, 0.0141143798828125, 0.0771484375, 0.06549072265625, -0.087890625, -0.00017344951629638672, 0.0221099853515625, 0.004192352294921875, 0.031494140625, -0.031494140625, -0.0175323486328125, -0.06524658203125, 0.0693359375, -0.00687408447265625, -0.00969696044921875, 0.010467529296875, -0.01386260986328125, 0.00650787353515625, -0.034393310546875, 0.076904296875, 0.0169830322265625, -0.046478271484375, -0.01500701904296875, 0.03643798828125, -0.039398193359375, -0.03350830078125, 0.019622802734375, 0.04730224609375, -0.011962890625, -0.044708251953125, 0.06195068359375, -0.00899505615234375, -0.00955963134765625, 0.018157958984375, 0.0251312255859375, 0.0212554931640625, 0.0268096923828125, 0.002307891845703125, -0.0021762847900390625, 0.006992340087890625, -0.0394287109375, 0.007648468017578125, -0.04833984375, -0.0153961181640625, 0.061492919921875, -0.041229248046875, 0.022674560546875, 0.0130462646484375, -0.00875091552734375, -0.016845703125, -0.0264129638671875, 0.0631103515625, -0.006206512451171875, -0.028106689453125, 0.0263824462890625, 0.003246307373046875, -0.0283660888671875, -0.0011072158813476562, -0.0277557373046875, -0.037841796875, 0.00583648681640625, -0.01275634765625, -0.039398193359375, 0.026580810546875, 0.01314544677734375, -0.08447265625, 0.0267486572265625, 0.0333251953125, 0.036163330078125, -0.033477783203125, -0.000583648681640625, -0.00384521484375, -0.020172119140625, -0.0086212158203125, 0.023712158203125, 0.02740478515625, 0.006378173828125, -0.0089569091796875, -0.0266265869140625, -0.0032405853271484375, 0.044525146484375, 0.000827789306640625, -0.01947021484375, 0.03192138671875, -0.0005331039428710938, 0.034423828125, 0.0151519775390625, -0.013336181640625, -0.00705718994140625, 0.00015807151794433594, 0.04132080078125, 0.0213775634765625, -0.023406982421875, 0.04608154296875, -0.06182861328125, -0.037353515625, 0.014007568359375, 0.01413726806640625, 0.0032062530517578125, -0.01316070556640625, -0.0027313232421875, -0.036590576171875, -0.0114288330078125, 0.0080718994140625, 0.026458740234375, -0.01523590087890625, 0.07098388671875, 0.0804443359375, -0.073486328125, -0.0293731689453125, -0.03729248046875, 0.0614013671875, 0.04132080078125, 0.041168212890625, 0.056549072265625, 0.01849365234375, 0.027587890625, 0.0435791015625, 0.0433349609375, 0.02716064453125, 0.004222869873046875, 0.0025005340576171875, -0.037506103515625, 0.01076507568359375, -0.07989501953125, -0.033355712890625, 0.046051025390625, 0.0268096923828125, -0.007793426513671875, -0.01215362548828125, 0.0011501312255859375, 0.0182952880859375, -0.006916046142578125, -0.020294189453125, 0.01178741455078125, -0.0088348388671875, 0.028289794921875, -0.0126953125, -0.022003173828125, 0.004852294921875, 0.037933349609375, 0.010986328125, 0.0360107421875, -0.01605224609375, -0.056793212890625, -0.039947509765625, -0.035980224609375, -0.006183624267578125, 0.0051422119140625, 0.05413818359375, 0.00832366943359375, 0.09625244140625, -0.0062255859375, -0.01849365234375, 0.04766845703125, -0.0151214599609375, 0.0301513671875, -0.054107666015625, -0.03143310546875, 0.0107574462890625, 0.0379638671875, 0.0074615478515625, -0.03857421875, -0.004856109619140625, 0.0008697509765625, -0.037139892578125, -0.0169830322265625, 0.041778564453125, -0.0238189697265625, -0.031890869140625, -0.042022705078125, 0.0006766319274902344, 0.028411865234375, 0.0027523040771484375, 0.017578125, -0.0038280487060546875, 0.0487060546875, -0.0221710205078125, -0.00327301025390625, 0.00652313232421875, -0.03143310546875, 0.02618408203125, 0.0149688720703125, 0.0025234222412109375, 0.003932952880859375, -0.07318115234375, 0.00439453125, -0.0245819091796875, -0.043212890625, 0.0164031982421875, 0.0361328125, -0.0322265625, 0.0273284912109375, 0.035186767578125, 0.01049041748046875, 0.00243377685546875, -0.0101470947265625, 0.004375457763671875, 0.0157623291015625, 0.0275726318359375, 0.01666259765625, -0.047607421875, -0.00823974609375, 0.001544952392578125, 0.0168609619140625, 0.004673004150390625, 0.07989501953125, -0.008758544921875, 0.0068359375, -0.012969970703125, 0.0203857421875, -0.0274810791015625, -0.0312042236328125, 0.06878662109375, 0.0002846717834472656, -0.01247406005859375, -0.0065460205078125, -0.0823974609375, 0.1134033203125, -0.00469970703125, 0.056060791015625, 0.107421875, -0.004150390625, -0.0216522216796875, -0.0167236328125, 0.00896453857421875, -0.032012939453125, -0.023223876953125, -0.01364898681640625, -0.0130157470703125, 0.006103515625, -0.005825042724609375, 0.01285552978515625, 0.022705078125, 0.020660400390625, -0.06573486328125, 0.0240478515625, -0.05133056640625, 0.00653076171875, 0.0296630859375, 0.07598876953125, -0.05084228515625, 0.033538818359375, -0.0124664306640625, 0.010162353515625, 0.0009245872497558594, 0.055023193359375, 0.0258026123046875, -0.0584716796875, -0.021575927734375, 0.01861572265625, 0.0426025390625, 0.0191192626953125, 0.0169525146484375, -0.040313720703125, -0.01552581787109375, -0.0011568069458007812, 0.0426025390625, -0.001190185546875, 0.0110015869140625, -0.0010585784912109375, 0.008026123046875, 0.01105499267578125, -0.034332275390625, -0.060516357421875, -0.00812530517578125, 0.0367431640625, 0.0034580230712890625, -0.033355712890625, -0.00354766845703125, -0.0101470947265625, 0.05084228515625, -0.00691986083984375, -0.0082550048828125, -0.0016641616821289062, -0.007080078125, -0.034515380859375, -0.03240966796875, -0.0377197265625, 0.03973388671875, -0.0114288330078125, -0.0018529891967773438, 0.0214996337890625, 0.00757598876953125, 0.0038280487060546875, 0.02130126953125, -0.002147674560546875, 0.07940673828125, -0.047637939453125, -0.0169219970703125, 0.0027484893798828125, 0.008392333984375, -0.0157012939453125, -0.07843017578125, -0.005008697509765625, -0.051513671875, -0.003643035888671875, 0.0048828125, -0.0069580078125, 0.003726959228515625, -0.04132080078125, -0.060150146484375, 0.04339599609375, -0.00438690185546875, -0.035491943359375, 0.04083251953125, -0.017822265625, -0.0318603515625, -0.0016632080078125, 0.02587890625, -0.03021240234375, -0.0000584721565246582, -0.0012416839599609375, 0.018798828125, 0.0197601318359375, 0.00009495019912719727, -0.0205841064453125, -0.03631591796875, 0.031951904296875, 0.0219573974609375, 0.032135009765625, -0.0179595947265625, 0.01308441162109375, 0.0012559890747070312, 0.022247314453125, -0.0225372314453125, 0.03948974609375, 0.0030117034912109375, 0.0258331298828125, -0.006420135498046875, -0.06158447265625, -0.0107269287109375, -0.026641845703125, -0.003192901611328125, 0.032440185546875, -0.012115478515625, -0.01316070556640625, 0.037200927734375, -0.0163421630859375, -0.01029205322265625, 0.0032958984375, -0.01206207275390625, -0.021331787109375, 0.0017604827880859375, 0.004070281982421875, -0.0030918121337890625, 0.036224365234375, -0.044769287109375, -0.031707763671875, -0.01126861572265625, -0.031524658203125, 0.019775390625, -0.0298309326171875, 0.01395416259765625, 0.0146484375, -0.033477783203125, -0.023651123046875, -0.003692626953125, -0.00418853759765625, -0.01544189453125, -0.0260467529296875, -0.0225677490234375, -0.01473236083984375, -0.004474639892578125, 0.007080078125, -0.01255035400390625, 0.0289154052734375, -0.01407623291015625, 0.0007624626159667969, -0.0017099380493164062, 0.0255126953125, 0.013092041015625, 0.0386962890625, -0.0196685791015625, 0.002544403076171875, 0.0016508102416992188, 0.002277374267578125, -0.03515625, -0.01690673828125, -0.021636962890625, 0.001361846923828125, -0.0178985595703125, 0.021209716796875, 0.0210113525390625, -0.003124237060546875, 0.00595855712890625, 0.00572967529296875, 0.049835205078125, -0.045623779296875, 0.0311279296875, -0.051177978515625, 0.03961181640625, 0.0272064208984375 ]
125cc6e5c55bedf3430641c1f14633eb415455b2
Wordpress Stackexchange Q: How to retrieve sticky post in raw sql? How I could made a sql query who retrieve all the sticky post in a wordpress database? This is because we use a new app over the old wordpress website database, and I don't know where Wordpress "store" the sticky attribute. Thanks in advance A: In raw SQL it would look like this: SELECT option_value FROM `wp_options` where option_name = 'sticky_posts' It will return string similar to: a:2:{i:0;i:27935;i:1;i:33322;} Which means that posts with IDs: 27935 and 33322 are "sticky". If there are no sticky posts the returned string will look as follows: a:0:{} For more details about Wordpress serialized data structure view https://codex.wordpress.org/Function_Reference/maybe_serialize Anyway if you are developing custom theme or plugin it's much better to use snippet provided by @Rarst than writing custom queries.
Q: How to retrieve sticky post in raw sql? How I could made a sql query who retrieve all the sticky post in a wordpress database? This is because we use a new app over the old wordpress website database, and I don't know where Wordpress "store" the sticky attribute. Thanks in advance A: In raw SQL it would look like this: SELECT option_value FROM `wp_options` where option_name = 'sticky_posts' It will return string similar to: a:2:{i:0;i:27935;i:1;i:33322;} Which means that posts with IDs: 27935 and 33322 are "sticky". If there are no sticky posts the returned string will look as follows: a:0:{} For more details about Wordpress serialized data structure view https://codex.wordpress.org/Function_Reference/maybe_serialize Anyway if you are developing custom theme or plugin it's much better to use snippet provided by @Rarst than writing custom queries. A: It's not stored as attribute, but as list of all stickies. Snippet from core: $sticky_posts = get_option('sticky_posts'); So look for the option and then use IDs to retrieve posts.
wordpress
{ "language": "en", "length": 164, "provenance": "stackexchange_00019.jsonl.gz:410766", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21353" }
[ 0.0309295654296875, -0.00156402587890625, -0.0004093647003173828, 0.005817413330078125, 0.0281829833984375, -0.033477783203125, 0.0924072265625, -0.021820068359375, 0.053192138671875, 0.035980224609375, -0.024383544921875, -0.030517578125, 0.0232391357421875, -0.013275146484375, -0.0517578125, -0.0266265869140625, 0.061492919921875, -0.031829833984375, 0.06024169921875, 0.00225830078125, 0.021575927734375, 0.04168701171875, 0.0689697265625, 0.03582763671875, 0.033447265625, 0.004077911376953125, 0.08209228515625, -0.0250396728515625, 0.04498291015625, 0.0011730194091796875, 0.037567138671875, -0.0582275390625, 0.028656005859375, -0.008758544921875, 0.00887298583984375, 0.002262115478515625, 0.03070068359375, -0.0253143310546875, -0.005245208740234375, 0.0173797607421875, 0.0183868408203125, -0.00148773193359375, -0.0176544189453125, 0.05059814453125, -0.039794921875, -0.010040283203125, -0.01293182373046875, -0.033843994140625, 0.026885986328125, -0.0246124267578125, 0.0204315185546875, 0.046112060546875, 0.041412353515625, -0.0153961181640625, -0.025299072265625, -0.0210418701171875, 0.00290679931640625, 0.01171112060546875, 0.0377197265625, -0.033294677734375, -0.03973388671875, -0.022857666015625, 0.0307159423828125, -0.00882720947265625, 0.0025768280029296875, -0.01495361328125, 0.03076171875, 0.0171051025390625, 0.0089263916015625, 0.01233673095703125, 0.031585693359375, 0.015472412109375, -0.015045166015625, 0.0136260986328125, 0.00614166259765625, -0.03521728515625, 0.00868988037109375, -0.027984619140625, 0.0006070137023925781, 0.036834716796875, 0.027618408203125, 0.01377105712890625, -0.042449951171875, 0.015869140625, -0.01293182373046875, 0.0084991455078125, -0.0133514404296875, -0.025115966796875, 0.01305389404296875, 0.0026035308837890625, -0.00421142578125, 0.01666259765625, -0.0007772445678710938, 0.045989990234375, -0.0252838134765625, -0.00882720947265625, 0.0190887451171875, -0.0195159912109375, -0.0112152099609375, 0.00005561113357543945, -0.01119232177734375, -0.032562255859375, 0.0249786376953125, 0.0026950836181640625, 0.0011720657348632812, -0.0217437744140625, 0.0008358955383300781, -0.030364990234375, 0.01305389404296875, 0.043975830078125, -0.031280517578125, 0.016693115234375, -0.0140380859375, 0.00954437255859375, -0.0244140625, 0.007602691650390625, -0.039794921875, 0.0026607513427734375, -0.022308349609375, -0.0173797607421875, -0.0007696151733398438, 0.0194854736328125, -0.06341552734375, -0.0231781005859375, -0.0177459716796875, -0.061279296875, -0.01032257080078125, 0.0379638671875, -0.041473388671875, 0.026123046875, -0.00507354736328125, 0.030517578125, 0.0195465087890625, 0.025390625, -0.027862548828125, -0.0151519775390625, -0.019317626953125, -0.00955963134765625, 0.0152130126953125, 0.034149169921875, -0.03955078125, -0.08673095703125, 0.00644683837890625, 0.0119171142578125, 0.0017805099487304688, -0.0009469985961914062, 0.0400390625, 0.026947021484375, -0.050994873046875, -0.0362548828125, 0.0030975341796875, 0.05706787109375, 0.01319122314453125, 0.021942138671875, -0.053558349609375, -0.00473785400390625, -0.01226806640625, -0.0158233642578125, -0.00447845458984375, -0.049530029296875, 0.00766754150390625, -0.0130767822265625, 0.004718780517578125, 0.036590576171875, -0.00024580955505371094, 0.031494140625, -0.01849365234375, -0.014892578125, 0.01074981689453125, 0.04571533203125, -0.0176849365234375, 0.00981903076171875, 0.0109405517578125, -0.0180511474609375, -0.023162841796875, -0.0280914306640625, -0.0400390625, -0.0230865478515625, 0.045654296875, -0.004032135009765625, -0.01078033447265625, -0.01226043701171875, 0.03802490234375, 0.017791748046875, -0.03265380859375, 0.0170440673828125, 0.0081329345703125, 0.063232421875, 0.01512908935546875, 0.032470703125, -0.01529693603515625, 0.0087738037109375, -0.022308349609375, 0.034210205078125, -0.0148468017578125, -0.019805908203125, -0.0533447265625, -0.0037975311279296875, -0.0205535888671875, 0.00823974609375, -0.006622314453125, 0.01526641845703125, 0.0229644775390625, 0.01390838623046875, -0.0175628662109375, 0.02349853515625, -0.01174163818359375, 0.0237884521484375, 0.0214996337890625, 0.02734375, 0.0219879150390625, 0.038787841796875, -0.06756591796875, 0.0325927734375, -0.0330810546875, 0.0148468017578125, -0.005756378173828125, 0.0290069580078125, -0.0236968994140625, 0.0198822021484375, -0.0254669189453125, -0.054229736328125, -0.0379638671875, 0.02996826171875, 0.049224853515625, -0.0033321380615234375, 0.01031494140625, -0.01215362548828125, 0.049072265625, 0.01372528076171875, -0.01739501953125, -0.01409149169921875, -0.00665283203125, 0.02166748046875, -0.0235137939453125, -0.0020198822021484375, -0.00753021240234375, -0.02740478515625, 0.00394439697265625, 0.03680419921875, 0.04132080078125, 0.037506103515625, -0.007190704345703125, -0.0089874267578125, 0.01053619384765625, -0.09246826171875, -0.001529693603515625, -0.0003800392150878906, 0.00885009765625, 0.045623779296875, 0.0269012451171875, 0.0006160736083984375, -0.0007190704345703125, -0.015655517578125, 0.029693603515625, 0.00923919677734375, 0.0178375244140625, 0.052703857421875, -0.0297393798828125, 0.04852294921875, -0.041656494140625, 0.04547119140625, 0.049957275390625, -0.00933837890625, 0.039398193359375, 0.0215911865234375, 0.0235443115234375, 0.02642822265625, -0.030426025390625, 0.0377197265625, 0.01120758056640625, -0.0204315185546875, 0.0164337158203125, 0.0247344970703125, 0.0401611328125, -0.0039825439453125, -0.016448974609375, -0.026519775390625, 0.049041748046875, 0.0132904052734375, 0.005672454833984375, 0.053741455078125, 0.01139068603515625, -0.017364501953125, -0.02569580078125, -0.0118560791015625, 0.009674072265625, 0.0014162063598632812, 0.0164031982421875, 0.0469970703125, 0.021759033203125, 0.078369140625, 0.02166748046875, 0.0268096923828125, 0.031158447265625, 0.0288238525390625, 0.0109100341796875, -0.033477783203125, 0.03106689453125, -0.0009732246398925781, 0.0364990234375, 0.06494140625, 0.02728271484375, -0.01085662841796875, -0.0080413818359375, 0.006641387939453125, 0.0282745361328125, -0.0104827880859375, -0.01558685302734375, -0.00928497314453125, -0.03643798828125, 0.03070068359375, 0.02471923828125, 0.046630859375, -0.011688232421875, -0.035430908203125, -0.01305389404296875, 0.033599853515625, -0.093994140625, -0.09539794921875, 0.02215576171875, -0.05731201171875, -0.017822265625, -0.02374267578125, -0.040496826171875, -0.003459930419921875, -0.0139923095703125, 0.004634857177734375, 0.00974273681640625, -0.00199127197265625, -0.0758056640625, -0.008544921875, -0.065673828125, -0.00035881996154785156, -0.008270263671875, 0.024444580078125, 0.01174163818359375, 0.035186767578125, -0.00463104248046875, -0.051849365234375, -0.040771484375, -0.006099700927734375, -0.02899169921875, -0.026092529296875, -0.042572021484375, 0.0250091552734375, 0.034881591796875, -0.005889892578125, -0.055908203125, 0.007354736328125, 0.0254364013671875, -0.021209716796875, 0.01418304443359375, -0.006694793701171875, 0.038299560546875, -0.019195556640625, -0.044219970703125, 0.04791259765625, 0.0374755859375, -0.02044677734375, -0.0202178955078125, -0.00855255126953125, -0.0276641845703125, -0.01364898681640625, 0.0266265869140625, -0.00208282470703125, -0.04779052734375, 0.016357421875, 0.058990478515625, 0.0033512115478515625, 0.0003330707550048828, 0.005771636962890625, 0.0224151611328125, 0.0154876708984375, 0.05450439453125, -0.032623291015625, 0.0068511962890625, -0.01727294921875, 0.0305938720703125, 0.01385498046875, 0.013885498046875, -0.00360870361328125, -0.002513885498046875, -0.018829345703125, -0.046295166015625, 0.048828125, 0.0209503173828125, 0.044921875, -0.035736083984375, -0.037506103515625, -0.0264739990234375, 0.09173583984375, -0.04241943359375, -0.0126495361328125, -0.0276031494140625, 0.0124664306640625, -0.0193023681640625, -0.04730224609375, -0.030364990234375, -0.0080108642578125, -0.052642822265625, -0.016632080078125, -0.01251983642578125, -0.029571533203125, -0.0145263671875, 0.0116119384765625, -0.044342041015625, -0.03131103515625, 0.00040078163146972656, -0.01457977294921875, 0.006603240966796875, -0.0173187255859375, -0.0010433197021484375, -0.0140838623046875, 0.0242919921875, -0.0477294921875, -0.05059814453125, -0.0081024169921875, 0.0185546875, 0.0268707275390625, -0.0002884864807128906, -0.0210723876953125, -0.008209228515625, 0.0293426513671875, -0.020904541015625, -0.00698089599609375, 0.006847381591796875, 0.03985595703125, -0.00988006591796875, -0.06573486328125, -0.025054931640625, -0.048583984375, -0.02239990234375, -0.06005859375, 0.00004398822784423828, -0.02716064453125, -0.05706787109375, 0.01324462890625, -0.056396484375, 0.0167999267578125, -0.01554107666015625, -0.0173797607421875, 0.01425933837890625, 0.052459716796875, 0.01044464111328125, 0.00974273681640625, -0.0305328369140625, -0.03204345703125, 0.05889892578125, 0.040374755859375, -0.006748199462890625, -0.00719451904296875, 0.060272216796875, 0.0198516845703125, -0.052642822265625, -0.06884765625, -0.01541900634765625, 0.0277099609375, -0.010345458984375, 0.044097900390625, 0.029327392578125, -0.01447296142578125, 0.01806640625, 0.01027679443359375, -0.004016876220703125, -0.0521240234375, 0.044921875, -0.01837158203125, 0.00839996337890625, -0.00595855712890625, -0.036224365234375, 0.07257080078125, 0.0221405029296875, -0.037994384765625, -0.006137847900390625, -0.0576171875, 0.03582763671875, 0.0029621124267578125, 0.0187835693359375, -0.047027587890625, -0.08514404296875, 0.03460693359375, -0.0516357421875, 0.0174560546875, 0.00583648681640625, -0.00856781005859375, 0.043792724609375, 0.014984130859375, -0.005611419677734375, 0.035003662109375, 0.02838134765625, -0.017730712890625, 0.033203125, -0.0033130645751953125, -0.0268402099609375, 0.0053558349609375, -0.004947662353515625, 0.003894805908203125, 0.0015621185302734375, -0.05511474609375, -0.007030487060546875, -0.0173797607421875, 0.0186614990234375, 0.00923919677734375, -0.0161895751953125, 0.02960205078125, 0.035858154296875, -0.02117919921875, 0.000024437904357910156, -0.00556182861328125, 0.0033092498779296875, -0.039154052734375, 0.041046142578125, 0.006847381591796875, -0.00335693359375, 0.03436279296875, 0.044097900390625, 0.0004029273986816406, 0.0304718017578125, -0.006107330322265625, 0.01016998291015625, -0.027252197265625, 0.060699462890625, 0.00438690185546875, -0.007411956787109375, 0.021270751953125, 0.027496337890625, 0.01132965087890625, -0.04132080078125, 0.05810546875, -0.01157379150390625, 0.0205841064453125, -0.0017004013061523438, -0.06658935546875, 0.06378173828125, -0.048309326171875, -0.0057373046875, 0.04925537109375, 0.038604736328125, -0.04083251953125, -0.00440216064453125, 0.03204345703125, 0.045989990234375, -0.01922607421875, 0.00847625732421875, 0.0202484130859375, -0.049102783203125, 0.0198822021484375, -0.00859832763671875, 0.0260009765625, -0.038848876953125, -0.046356201171875, -0.0303497314453125, -0.03204345703125, -0.0302581787109375, -0.01366424560546875, 0.005428314208984375, 0.0030040740966796875, -0.0203857421875, 0.0097198486328125, 0.0061187744140625, 0.041229248046875, -0.0214385986328125, -0.017059326171875, -0.01300048828125, -0.0140838623046875, 0.07489013671875, 0.033966064453125, 0.01654052734375, -0.040252685546875, -0.00850677490234375, -0.02606201171875, 0.048797607421875, 0.00545501708984375, -0.0191497802734375, -0.00554656982421875, 0.021759033203125, 0.035186767578125, -0.002323150634765625, -0.046661376953125, 0.0024242401123046875, -0.017120361328125, 0.008331298828125, 0.0129241943359375, -0.023284912109375, 0.08709716796875, -0.01027679443359375, 0.050933837890625, 0.00550079345703125, 0.03631591796875, -0.03485107421875, -0.0037326812744140625, -0.0114593505859375, -0.050323486328125, 0.0009579658508300781, 0.02117919921875, -0.004459381103515625, -0.0024013519287109375, -0.0152587890625, 0.00908660888671875, 0.04864501953125, -0.0290374755859375, 0.0029697418212890625, -0.00823974609375, 0.004863739013671875, -0.03741455078125, 0.0187225341796875, 0.050689697265625, -0.0081329345703125, 0.007259368896484375, 0.013702392578125, -0.0010004043579101562, -0.03125, 0.0126800537109375, -0.01263427734375, -0.0037784576416015625, -0.0033206939697265625, 0.0306396484375, 0.08795166015625, 0.006389617919921875, 0.040863037109375, 0.0186614990234375, -0.0027637481689453125, 0.0287017822265625, 0.010955810546875, -0.0098114013671875, -0.021820068359375, 0.06024169921875, 0.00711822509765625, -0.031402587890625, 0.04290771484375, -0.03521728515625, -0.00272369384765625, 0.0224761962890625, 0.045501708984375, -0.045440673828125, 0.01641845703125, 0.040283203125, 0.0236968994140625, -0.018280029296875, 0.011993408203125, -0.03277587890625, -0.07440185546875, -0.00946044921875, 0.023834228515625, -0.0228424072265625, -0.032684326171875, 0.0038166046142578125, -0.0028743743896484375, -0.021575927734375, 0.022064208984375, -0.00806427001953125, -0.018707275390625, -0.0038242340087890625, -0.0006465911865234375, 0.01031494140625, -0.01959228515625, 0.0055694580078125, -0.01073455810546875, -0.00469207763671875, -0.058563232421875, 0.01215362548828125, -0.0265960693359375, -0.00897216796875, -0.034515380859375, -0.0009984970092773438, 0.0234832763671875, 0.049774169921875, -0.0235748291015625, -0.0208282470703125, 0.0204620361328125, -0.0220489501953125, -0.039031982421875, -0.0028247833251953125, 0.041046142578125, 0.0166778564453125, -0.05377197265625, 0.01910400390625, -0.050628662109375, 0.0018224716186523438, -0.0280609130859375, -0.06622314453125, 0.052032470703125, -0.04022216796875, 0.0167388916015625, 0.0158843994140625, 0.0413818359375, 0.004726409912109375, -0.0300445556640625, 0.04168701171875, -0.01342010498046875, 0.02105712890625, -0.006481170654296875, 0.00232696533203125, -0.039337158203125, -0.056060791015625, -0.05865478515625, 0.0225067138671875, -0.0079193115234375, 0.004657745361328125, -0.003650665283203125, 0.0018224716186523438, -0.00978851318359375, -0.0203094482421875, -0.056427001953125, 0.05023193359375, 0.031402587890625, 0.071533203125, -0.0433349609375, -0.0169525146484375, 0.0181121826171875, 0.04736328125, 0.06439208984375, -0.002391815185546875, -0.043212890625, 0.0100555419921875, 0.06878662109375, 0.03936767578125, 0.0089111328125, 0.04168701171875, 0.012451171875, 0.059661865234375, 0.0916748046875, -0.04949951171875, 0.006221771240234375, 0.03155517578125, 0.00608062744140625, 0.03985595703125, 0.0184478759765625, 0.0201263427734375, 0.007137298583984375, -0.0050811767578125, -0.024658203125, 0.00814056396484375, 0.0203399658203125, -0.01503753662109375, -0.0019426345825195312, 0.048614501953125, 0.06317138671875, -0.0863037109375, -0.04217529296875, -0.0253753662109375, 0.04656982421875, 0.02191162109375, 0.01067352294921875, 0.03497314453125, 0.003910064697265625, 0.020477294921875, 0.0260162353515625, 0.01290130615234375, 0.0255279541015625, -0.0196380615234375, 0.06451416015625, 0.061614990234375, 0.03619384765625, -0.0147705078125, -0.055419921875, 0.04840087890625, 0.08404541015625, -0.0291900634765625, -0.034942626953125, 0.007598876953125, -0.0188751220703125, -0.0244903564453125, -0.025177001953125, -0.034210205078125, 0.035308837890625, 0.03973388671875, -0.018035888671875, 0.017242431640625, -0.00611114501953125, 0.051361083984375, -0.00545501708984375, 0.032501220703125, -0.0704345703125, -0.0153045654296875, -0.01313018798828125, -0.006717681884765625, -0.010650634765625, 0.0162811279296875, 0.022857666015625, 0.005496978759765625, 0.00742340087890625, -0.00650787353515625, -0.007808685302734375, 0.02264404296875, -0.0191497802734375, 0.02288818359375, -0.01525115966796875, -0.044952392578125, -0.00864410400390625, 0.0347900390625, 0.04656982421875, 0.0105743408203125, 0.049163818359375, 0.033172607421875, -0.0125579833984375, -0.0018892288208007812, -0.009552001953125, -0.007389068603515625, -0.04376220703125, -0.02471923828125, -0.0213775634765625, 0.0275726318359375, 0.00600433349609375, 0.015594482421875, 0.040008544921875, -0.0008053779602050781, -0.0296478271484375, 0.0638427734375, 0.00040650367736816406, 0.0229644775390625, 0.05157470703125, -0.005279541015625, -0.026611328125, -0.006084442138671875, -0.0166473388671875, -0.00604248046875, -0.0271453857421875, 0.0006513595581054688, -0.01085662841796875, 0.0263214111328125, 0.026214599609375, 0.0031032562255859375, -0.03533935546875, -0.0137939453125, -0.00872039794921875, 0.0181427001953125, 0.00849151611328125, 0.017181396484375, 0.01016998291015625, -0.0114593505859375, -0.0689697265625, -0.037200927734375, -0.0136566162109375, 0.01302337646484375, -0.01369476318359375, 0.032318115234375, 0.0123748779296875, 0.0030670166015625, -0.0124664306640625, -0.01158905029296875, -0.0147857666015625, 0.00357818603515625, -0.034515380859375, 0.0002732276916503906, -0.004970550537109375, -0.0026912689208984375, -0.01470184326171875, 0.028045654296875, 0.04644775390625, -0.042388916015625, 0.0027523040771484375, 0.014862060546875, -0.00039577484130859375, -0.04718017578125, 0.0006084442138671875, -0.02740478515625, -0.00649261474609375, -0.01214599609375, -0.020721435546875, 0.0159454345703125, -0.0160980224609375, -0.001911163330078125, 0.0248260498046875, 0.01690673828125, 0.020050048828125, 0.016021728515625, 0.0010328292846679688, 0.0455322265625, 0.045166015625, -0.03472900390625, -0.0084228515625, -0.0037746429443359375, -0.0191497802734375, 0.01189422607421875, 0.015777587890625, 0.005611419677734375, 0.017425537109375, -0.0022125244140625, 0.01261138916015625, 0.0308685302734375, 0.05841064453125, 0.003429412841796875, 0.020599365234375, -0.025634765625, -0.007965087890625, 0.04498291015625, -0.005859375, -0.031463623046875, -0.035858154296875, -0.025634765625, 0.00183868408203125, -0.0309906005859375, -0.05780029296875, -0.043975830078125, -0.04351806640625, 0.0068817138671875, -0.00101470947265625, -0.005611419677734375, -0.029449462890625, 0.0007481575012207031, 0.0010080337524414062, -0.01525115966796875, -0.0152587890625, 0.0165863037109375, 0.033111572265625, -0.002956390380859375, -0.032379150390625, -0.0010967254638671875, 0.036285400390625, 0.0077056884765625, 0.026397705078125, 0.02862548828125, -0.03424072265625, 0.00510406494140625, 0.033935546875, 0.038543701171875, 0.07904052734375, -0.00203704833984375, -0.018310546875, 0.045623779296875, -0.01027679443359375, -0.03387451171875, -0.07720947265625, 0.0009665489196777344, -0.071533203125, 0.053924560546875, -0.07049560546875, 0.0288848876953125, -0.0014247894287109375, -0.043731689453125, -0.050933837890625, 0.05633544921875, -0.02374267578125, -0.0109100341796875, -0.050811767578125, 0.0290679931640625, 0.0128021240234375, -0.04339599609375, -0.0217132568359375, 0.0054473876953125, -0.0190582275390625, 0.0249481201171875, 0.01320648193359375, -0.0203704833984375, 0.04046630859375, -0.008758544921875, -0.08294677734375, -0.01090240478515625, -0.034149169921875, 0.0096893310546875, 0.00554656982421875, 0.0028553009033203125, 0.04754638671875, 0.065185546875, -0.00818634033203125, 0.036407470703125, -0.01525115966796875, -0.05853271484375, -0.00006115436553955078, 0.0270843505859375, -0.052215576171875, -0.011871337890625, 0.04913330078125, 0.07537841796875, 0.0204620361328125, -0.02972412109375, -0.0474853515625, -0.049224853515625, -0.0236663818359375, -0.016693115234375, 0.033447265625, -0.0758056640625, 0.01432037353515625, -0.0002789497375488281, -0.02911376953125, 0.01708984375, 0.029693603515625, -0.0310516357421875, 0.017059326171875, 0.0244140625, -0.038970947265625, -0.050567626953125, -0.0165557861328125, 0.0003654956817626953, -0.0169219970703125, -0.03204345703125, -0.007137298583984375, 0.023162841796875, -0.029144287109375, 0.02960205078125, 0.01290130615234375, -0.052490234375, 0.041778564453125, 0.043792724609375, 0.01372528076171875, -0.02392578125, 0.01219940185546875, -0.03155517578125, -0.018096923828125, 0.0103302001953125, -0.00165557861328125, -0.003448486328125, -0.01012420654296875, 0.027862548828125, 0.017578125, 0.06561279296875, 0.0250091552734375, -0.0009860992431640625, -0.0156707763671875, 0.07684326171875, -0.0186767578125, -0.051971435546875, -0.020172119140625, -0.04925537109375, 0.01010894775390625, -0.008209228515625, 0.023406982421875, -0.0289459228515625, 0.0312042236328125, 0.048004150390625, -0.026702880859375, 0.0259857177734375 ]
0d99107ef8878198c4a47c09da222c77df805867
Wordpress Stackexchange Q: Filter out built-in wp_nav_menu classes but keep custom class Im trying to remove / filter our all the classes from the wp_nav_menu, EXCEPT the custom ones that i insert (in the "CSS Classes (optional)" field) when creating the menu in the admin. I found a function that removes EVERYTHING, but thats no good anybody got any ideas? thanks! A: One of the darker corners of the code. :) Here is my take: add_filter('nav_menu_css_class', 'discard_menu_classes', 10, 2); function discard_menu_classes($classes, $item) { return (array)get_post_meta( $item->ID, '_menu_item_classes', true ); }
Q: Filter out built-in wp_nav_menu classes but keep custom class Im trying to remove / filter our all the classes from the wp_nav_menu, EXCEPT the custom ones that i insert (in the "CSS Classes (optional)" field) when creating the menu in the admin. I found a function that removes EVERYTHING, but thats no good anybody got any ideas? thanks! A: One of the darker corners of the code. :) Here is my take: add_filter('nav_menu_css_class', 'discard_menu_classes', 10, 2); function discard_menu_classes($classes, $item) { return (array)get_post_meta( $item->ID, '_menu_item_classes', true ); } A: I'm trying to answer. The function that responsible to generate classes for menu items is _wp_menu_item_classes_by_context in the file wp-includes/nav-menu-template.php. You can dig there to see what classes it generate, so you can strip it out in nav_menu_css_class filter. I found that every classes that automatically generated started with menu-item class. So, in the filter I loop the classes array until found that class. This is my code: function my_nav_menu_css_class($classes) { $custom_classes = array(); foreach($classes as $class) { if($class=='menu-item') return $custom_classes; $custom_classes[] = $class; } } add_filter('nav_menu_css_class', 'my_nav_menu_css_class');
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:410767", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21355" }
[ 0.043243408203125, -0.01523590087890625, 0.046478271484375, 0.038330078125, 0.006931304931640625, -0.04473876953125, 0.10369873046875, -0.05609130859375, -0.0150146484375, -0.016387939453125, -0.030181884765625, -0.0033893585205078125, -0.0712890625, -0.0287628173828125, 0.00267791748046875, -0.0732421875, 0.01070404052734375, 0.01146697998046875, 0.005428314208984375, -0.018463134765625, -0.0029087066650390625, -0.0273895263671875, 0.01158905029296875, 0.047882080078125, 0.0209808349609375, -0.0275115966796875, 0.0003910064697265625, -0.0135955810546875, 0.0133209228515625, -0.0160064697265625, 0.0092620849609375, 0.01202392578125, -0.017822265625, 0.043853759765625, 0.007228851318359375, 0.01268768310546875, -0.0267181396484375, 0.029266357421875, 0.037841796875, -0.01546478271484375, 0.0242156982421875, -0.0275726318359375, -0.0162811279296875, 0.004055023193359375, -0.0300140380859375, -0.0391845703125, 0.0196075439453125, -0.008270263671875, 0.0294036865234375, -0.044097900390625, 0.01934814453125, -0.006618499755859375, 0.042022705078125, -0.0662841796875, -0.040985107421875, -0.025970458984375, 0.0009946823120117188, 0.0045623779296875, 0.034820556640625, 0.031463623046875, -0.02056884765625, -0.00402069091796875, 0.01329803466796875, -0.059051513671875, -0.01062774658203125, 0.0185546875, 0.0160980224609375, 0.00458526611328125, -0.0574951171875, -0.00655364990234375, 0.027313232421875, -0.03436279296875, -0.033416748046875, -0.0169830322265625, -0.04425048828125, 0.01432037353515625, 0.0247039794921875, -0.0229034423828125, -0.0002505779266357422, 0.0219268798828125, 0.032318115234375, 0.02081298828125, -0.0716552734375, 0.005710601806640625, -0.0015230178833007812, 0.00257110595703125, -0.0032787322998046875, -0.0263519287109375, 0.01074981689453125, -0.00850677490234375, -0.00569915771484375, -0.01001739501953125, -0.00616455078125, 0.01922607421875, -0.01189422607421875, -0.0264892578125, 0.010833740234375, 0.08380126953125, -0.0338134765625, 0.0244903564453125, -0.01178741455078125, -0.0222320556640625, 0.041229248046875, -0.072265625, 0.0110931396484375, 0.044189453125, 0.0039215087890625, 0.061004638671875, 0.0540771484375, 0.0295562744140625, 0.0225677490234375, 0.01250457763671875, -0.0225372314453125, -0.03680419921875, -0.0267791748046875, 0.007904052734375, -0.0254669189453125, -0.0171966552734375, 0.01154327392578125, -0.055511474609375, 0.0148773193359375, 0.0166168212890625, 0.0037174224853515625, 0.0034923553466796875, -0.00218963623046875, 0.0147552490234375, -0.0168609619140625, -0.0264129638671875, -0.00403594970703125, -0.0110626220703125, -0.035247802734375, 0.0195159912109375, 0.046295166015625, 0.0364990234375, 0.01702880859375, -0.00760650634765625, 0.0309600830078125, -0.01544189453125, 0.00803375244140625, -0.0020771026611328125, 0.03692626953125, -0.0127410888671875, -0.033294677734375, 0.0165252685546875, 0.012054443359375, 0.0013494491577148438, 0.01090240478515625, 0.0267333984375, -0.0032901763916015625, -0.0294647216796875, 0.0237884521484375, -0.0239410400390625, 0.06158447265625, 0.009490966796875, -0.0181121826171875, -0.01488494873046875, 0.055419921875, -0.039764404296875, -0.04876708984375, -0.06610107421875, -0.0233154296875, -0.00405120849609375, -0.0058135986328125, -0.0450439453125, -0.035400390625, 0.002635955810546875, -0.0066070556640625, -0.004550933837890625, 0.0204315185546875, -0.043426513671875, 0.00539398193359375, -0.019989013671875, 0.018646240234375, 0.0233612060546875, 0.01113128662109375, 0.054412841796875, 0.034149169921875, 0.01446533203125, 0.00659942626953125, 0.049835205078125, -0.006626129150390625, -0.060333251953125, 0.017181396484375, -0.029754638671875, -0.0550537109375, -0.024261474609375, 0.01313018798828125, 0.040252685546875, 0.036651611328125, 0.01236724853515625, 0.0736083984375, -0.0321044921875, -0.01041412353515625, -0.020477294921875, -0.00811004638671875, -0.01123809814453125, 0.0038776397705078125, 0.01206207275390625, -0.006866455078125, 0.0297393798828125, 0.01299285888671875, 0.0137939453125, -0.00701141357421875, -0.0276947021484375, -0.09320068359375, 0.003986358642578125, -0.0290069580078125, 0.048309326171875, -0.027252197265625, 0.0078125, 0.01248931884765625, -0.01229095458984375, -0.004749298095703125, -0.03564453125, -0.0108795166015625, 0.0007119178771972656, -0.0213470458984375, -0.00601959228515625, -0.017913818359375, -0.0012140274047851562, -0.01293182373046875, -0.0026798248291015625, -0.0163116455078125, 0.02496337890625, 0.03863525390625, -0.01497650146484375, -0.01306915283203125, -0.0145721435546875, 0.038665771484375, -0.009521484375, -0.0080108642578125, 0.0243682861328125, 0.053253173828125, 0.049041748046875, -0.02813720703125, -0.012176513671875, -0.00559234619140625, -0.06402587890625, -0.012115478515625, 0.05389404296875, 0.036163330078125, 0.0113677978515625, -0.018341064453125, -0.03717041015625, 0.035736083984375, -0.050628662109375, -0.005100250244140625, -0.0130767822265625, -0.0295562744140625, -0.0008764266967773438, 0.03955078125, 0.01556396484375, 0.031829833984375, 0.048187255859375, 0.0252532958984375, 0.039154052734375, -0.0009708404541015625, -0.03338623046875, 0.016937255859375, 0.015625, 0.005146026611328125, 0.01708984375, -0.0238800048828125, 0.02056884765625, 0.0241851806640625, -0.01480865478515625, -0.003265380859375, -0.013763427734375, -0.022705078125, -0.01131439208984375, 0.03741455078125, 0.002147674560546875, -0.0019092559814453125, 0.02215576171875, 0.00836944580078125, 0.036712646484375, -0.043304443359375, -0.00555419921875, 0.034912109375, 0.0239715576171875, -0.01180267333984375, 0.023345947265625, 0.06707763671875, -0.0115814208984375, 0.006366729736328125, -0.04949951171875, 0.040191650390625, -0.039642333984375, -0.0132293701171875, -0.0260467529296875, -0.00954437255859375, 0.018035888671875, -0.0142822265625, 0.0240020751953125, 0.0219268798828125, -0.016387939453125, 0.0283966064453125, 0.044647216796875, -0.01346588134765625, 0.0136871337890625, 0.0011377334594726562, 0.022918701171875, 0.00704193115234375, -0.0142669677734375, 0.00969696044921875, -0.006031036376953125, 0.0137939453125, 0.00742340087890625, 0.00774383544921875, 0.0234832763671875, -0.0240936279296875, 0.0633544921875, 0.01629638671875, 0.0171051025390625, 0.0003981590270996094, -0.033538818359375, -0.015838623046875, -0.0020542144775390625, -0.04022216796875, -0.00452423095703125, 0.00882720947265625, 0.0027446746826171875, 0.01479339599609375, 0.018798828125, 0.012481689453125, -0.01690673828125, 0.038330078125, 0.0139312744140625, 0.0178680419921875, -0.0179901123046875, -0.0312042236328125, -0.0087738037109375, -0.0382080078125, 0.01605224609375, -0.006046295166015625, -0.0014400482177734375, 0.00865936279296875, 0.06451416015625, 0.0130767822265625, -0.04425048828125, 0.0533447265625, -0.02032470703125, -0.0146026611328125, 0.05035400390625, 0.0279083251953125, -0.0206756591796875, 0.00807952880859375, 0.0011358261108398438, 0.002605438232421875, 0.038543701171875, -0.038726806640625, -0.0202484130859375, -0.0179290771484375, 0.012420654296875, 0.004863739013671875, 0.01861572265625, 0.025177001953125, 0.048553466796875, 0.031524658203125, -0.0068359375, -0.0082244873046875, -0.01922607421875, -0.007633209228515625, 0.0645751953125, -0.01788330078125, -0.0034999847412109375, -0.00377655029296875, 0.050811767578125, 0.0101165771484375, 0.017120361328125, 0.0050201416015625, -0.002384185791015625, 0.03662109375, 0.0033721923828125, 0.0168914794921875, -0.0207366943359375, 0.055145263671875, -0.01104736328125, 0.0172119140625, 0.0240325927734375, -0.004817962646484375, -0.004451751708984375, -0.0262603759765625, -0.059906005859375, -0.061737060546875, 0.06414794921875, -0.029815673828125, 0.018829345703125, -0.037994384765625, -0.0288543701171875, 0.0045928955078125, 0.1324462890625, -0.045318603515625, -0.033233642578125, -0.0204010009765625, 0.0026397705078125, 0.0301666259765625, -0.047943115234375, 0.0193939208984375, -0.039154052734375, -0.1307373046875, 0.0211029052734375, -0.0146636962890625, -0.0386962890625, -0.0256805419921875, -0.0291748046875, -0.07733154296875, -0.0594482421875, 0.025146484375, -0.0283660888671875, 0.03118896484375, 0.0075531005859375, 0.0266876220703125, -0.02923583984375, -0.00347137451171875, -0.02838134765625, -0.0843505859375, 0.0020599365234375, -0.052642822265625, 0.05694580078125, 0.01195526123046875, 0.027374267578125, -0.0210723876953125, 0.031280517578125, 0.0341796875, 0.0171661376953125, 0.0031452178955078125, -0.023651123046875, 0.030426025390625, 0.02032470703125, 0.01354217529296875, -0.0031070709228515625, -0.0014677047729492188, 0.0000559687614440918, -0.0247344970703125, -0.008026123046875, -0.0184478759765625, -0.01568603515625, 0.0287017822265625, -0.04217529296875, -0.017120361328125, -0.049041748046875, -0.03497314453125, 0.0018825531005859375, -0.0030689239501953125, -0.0103302001953125, -0.022796630859375, -0.034423828125, 0.02642822265625, -0.0254058837890625, -0.01617431640625, 0.017242431640625, 0.04718017578125, 0.0179595947265625, -0.0187225341796875, 0.000873565673828125, 0.0157012939453125, 0.01500701904296875, -0.044952392578125, 0.0819091796875, 0.00634765625, 0.0005469322204589844, 0.07464599609375, -0.0435791015625, 0.0234832763671875, -0.0338134765625, 0.050506591796875, 0.00377655029296875, 0.00508880615234375, -0.0011997222900390625, -0.00870513916015625, 0.006504058837890625, -0.004840850830078125, 0.0211029052734375, -0.038116455078125, 0.0650634765625, 0.059661865234375, 0.00247955322265625, -0.038665771484375, -0.043060302734375, -0.0340576171875, 0.0158538818359375, -0.036468505859375, 0.070068359375, 0.034423828125, -0.01274871826171875, 0.045318603515625, 0.012115478515625, 0.00800323486328125, -0.00994110107421875, 0.0227203369140625, -0.050811767578125, 0.0504150390625, -0.03851318359375, -0.0213165283203125, -0.002834320068359375, -0.01031494140625, 0.060150146484375, 0.01727294921875, -0.03094482421875, -0.018218994140625, -0.0016088485717773438, 0.002777099609375, -0.0013027191162109375, -0.03253173828125, 0.037628173828125, 0.0260009765625, 0.0003333091735839844, -0.003185272216796875, -0.05572509765625, -0.011016845703125, -0.036224365234375, 0.0308990478515625, 0.00957489013671875, -0.00926971435546875, 0.00926971435546875, 0.002002716064453125, -0.0006594657897949219, 0.0086212158203125, -0.003940582275390625, -0.009613037109375, -0.04486083984375, 0.038970947265625, 0.009490966796875, 0.001689910888671875, 0.01123046875, 0.01141357421875, 0.0261383056640625, -0.015838623046875, -0.047210693359375, 0.02752685546875, 0.018524169921875, -0.002635955810546875, 0.02386474609375, -0.01094818115234375, 0.006175994873046875, -0.014495849609375, 0.0204315185546875, -0.01593017578125, -0.02459716796875, -0.034820556640625, -0.008331298828125, 0.020904541015625, -0.01032257080078125, -0.0129241943359375, -0.010986328125, 0.0029621124267578125, -0.02362060546875, 0.0199737548828125, -0.0816650390625, 0.0275115966796875, 0.049835205078125, -0.0447998046875, -0.023895263671875, 0.034332275390625, -0.1351318359375, -0.0294952392578125, -0.0188751220703125, -0.0038776397705078125, 0.0312042236328125, -0.034149169921875, 0.033782958984375, 0.00547027587890625, -0.01334381103515625, -0.008087158203125, 0.0237884521484375, 0.01329803466796875, 0.006282806396484375, -0.005062103271484375, -0.0178680419921875, -0.04510498046875, -0.0116424560546875, -0.0408935546875, -0.05474853515625, -0.0183258056640625, 0.006649017333984375, -0.00867462158203125, -0.01068878173828125, 0.0263671875, 0.0184326171875, -0.04168701171875, 0.01397705078125, 0.019500732421875, -0.04168701171875, -0.034210205078125, 0.096923828125, 0.01500701904296875, 0.01029205322265625, 0.0115509033203125, 0.039825439453125, -0.02783203125, 0.005855560302734375, 0.01470947265625, -0.01739501953125, -0.0176544189453125, -0.03143310546875, -0.044158935546875, -0.00399017333984375, 0.06591796875, -0.01132965087890625, 0.02423095703125, -0.041259765625, -0.005054473876953125, -0.0394287109375, -0.00220489501953125, -0.05023193359375, 0.0166473388671875, -0.0238189697265625, 0.023223876953125, 0.0711669921875, -0.016754150390625, 0.005245208740234375, -0.015594482421875, -0.004486083984375, 0.0276031494140625, -0.035064697265625, -0.01129913330078125, 0.038604736328125, 0.0305938720703125, -0.020660400390625, 0.0308380126953125, 0.024017333984375, 0.02215576171875, 0.0282135009765625, -0.04339599609375, -0.00909423828125, 0.051788330078125, 0.0567626953125, -0.0037670135498046875, 0.01523590087890625, 0.052001953125, -0.0162506103515625, 0.01198577880859375, 0.046661376953125, 0.057952880859375, -0.07830810546875, 0.01206207275390625, 0.0248260498046875, 0.003009796142578125, 0.060638427734375, 0.0281982421875, -0.01020050048828125, -0.01113128662109375, -0.05572509765625, -0.035186767578125, -0.0550537109375, -0.03656005859375, 0.0233917236328125, 0.00033164024353027344, -0.00036144256591796875, -0.004428863525390625, -0.0153961181640625, 0.0012941360473632812, -0.048126220703125, -0.002288818359375, -0.016754150390625, -0.0202789306640625, 0.0024051666259765625, 0.03216552734375, -0.027740478515625, -0.062164306640625, 0.025238037109375, -0.028472900390625, 0.0004954338073730469, 0.0245819091796875, -0.0019178390502929688, 0.0160675048828125, 0.034271240234375, -0.030792236328125, 0.04559326171875, -0.007110595703125, -0.005321502685546875, -0.017913818359375, -0.027618408203125, 0.0196685791015625, 0.0164794921875, -0.05322265625, 0.0214996337890625, -0.006824493408203125, -0.04425048828125, -0.0061187744140625, -0.0012311935424804688, 0.09136962890625, -0.0390625, -0.029815673828125, 0.0017938613891601562, -0.017852783203125, 0.004741668701171875, -0.01024627685546875, 0.031951904296875, -0.028045654296875, 0.0235443115234375, 0.0020847320556640625, 0.03997802734375, -0.004108428955078125, -0.000720977783203125, -0.0257110595703125, 0.067626953125, 0.0136260986328125, -0.022369384765625, 0.003971099853515625, 0.049468994140625, -0.030853271484375, 0.03228759765625, -0.016204833984375, 0.0472412109375, 0.0167999267578125, 0.006649017333984375, 0.0025310516357421875, 0.0103302001953125, -0.0005154609680175781, 0.00469207763671875, -0.030975341796875, -0.01213836669921875, 0.001255035400390625, 0.00266265869140625, 0.0556640625, 0.0723876953125, 0.056060791015625, -0.0186614990234375, -0.021636962890625, -0.01446533203125, 0.00472259521484375, -0.032958984375, 0.0209197998046875, -0.03857421875, -0.024505615234375, -0.01458740234375, 0.004116058349609375, 0.00826263427734375, 0.018310546875, 0.014984130859375, -0.004741668701171875, 0.006328582763671875, -0.0078582763671875, -0.0083770751953125, -0.0018177032470703125, 0.0313720703125, -0.0007462501525878906, -0.0154876708984375, -0.0631103515625, -0.0177764892578125, 0.022491455078125, 0.00939178466796875, 0.0165252685546875, 0.013275146484375, 0.0149688720703125, 0.0035552978515625, -0.01445770263671875, 0.008819580078125, 0.018310546875, -0.036102294921875, 0.03985595703125, 0.005615234375, 0.039306640625, -0.04046630859375, -0.043304443359375, 0.03338623046875, 0.045806884765625, -0.0161590576171875, -0.035125732421875, 0.0228729248046875, 0.0081939697265625, 0.0212249755859375, 0.01094818115234375, 0.041259765625, -0.057098388671875, 0.0003712177276611328, -0.00751495361328125, -0.0015935897827148438, 0.030364990234375, 0.0207672119140625, 0.010467529296875, 0.00046896934509277344, -0.03057861328125, 0.006168365478515625, -0.057403564453125, 0.0118560791015625, 0.00409698486328125, 0.052337646484375, 0.03704833984375, 0.035308837890625, -0.003765106201171875, -0.0292205810546875, -0.0061798095703125, 0.021240234375, -0.038726806640625, 0.0227813720703125, -0.02557373046875, -0.03204345703125, -0.01206207275390625, 0.0208282470703125, -0.0028133392333984375, 0.024200439453125, 0.060028076171875, 0.0064697265625, -0.054351806640625, -0.01129913330078125, 0.013275146484375, -0.045379638671875, -0.06903076171875, -0.020721435546875, -0.03515625, 0.01922607421875, -0.0017452239990234375, 0.045989990234375, -0.00815582275390625, 0.0171051025390625, -0.004070281982421875, 0.00350189208984375, 0.006134033203125, -0.020294189453125, -0.0023517608642578125, 0.02276611328125, -0.004909515380859375, 0.03143310546875, -0.09515380859375, -0.00565338134765625, -0.054962158203125, -0.0198516845703125, 0.02685546875, 0.034637451171875, -0.006011962890625, 0.0167388916015625, 0.0706787109375, -0.0283660888671875, -0.01165771484375, 0.012786865234375, 0.027252197265625, -0.017059326171875, 0.0074615478515625, 0.01438140869140625, -0.07086181640625, -0.0322265625, -0.027435302734375, 0.022796630859375, 0.055755615234375, 0.002758026123046875, 0.037384033203125, 0.0269775390625, 0.0012655258178710938, -0.0162200927734375, -0.00701904296875, -0.01256561279296875, 0.00838470458984375, -0.028839111328125, -0.0128326416015625, 0.00365447998046875, -0.042999267578125, 0.0032253265380859375, 0.08160400390625, -0.0482177734375, 0.0260467529296875, 0.01244354248046875, 0.0015401840209960938, -0.08697509765625, 0.01178741455078125, -0.021148681640625, 0.0183258056640625, -0.0104217529296875, -0.047698974609375, 0.04998779296875, 0.0312347412109375, 0.039154052734375, 0.01364898681640625, 0.0254364013671875, -0.020721435546875, 0.033538818359375, 0.00531005859375, 0.050506591796875, 0.036376953125, -0.01030731201171875, 0.0012836456298828125, 0.01155853271484375, -0.0010480880737304688, -0.00769805908203125, 0.025238037109375, -0.0158843994140625, 0.022216796875, -0.066650390625, 0.021392822265625, 0.04296875, 0.06207275390625, -0.01210784912109375, 0.03289794921875, 0.0120849609375, 0.00341796875, 0.0089111328125, -0.0262908935546875, -0.0294952392578125, -0.040618896484375, -0.0276947021484375, 0.031646728515625, -0.04547119140625, -0.053009033203125, -0.095458984375, 0.01519775390625, 0.038238525390625, 0.0160369873046875, -0.07574462890625, 0.058013916015625, -0.03509521484375, 0.060302734375, -0.0208587646484375, -0.004680633544921875, -0.007061004638671875, -0.01190185546875, -0.01251983642578125, -0.0361328125, -0.02288818359375, 0.07476806640625, -0.012908935546875, -0.00461578369140625, 0.0252227783203125, -0.016754150390625, -0.0265350341796875, -0.004764556884765625, 0.007083892822265625, 0.044891357421875, -0.0302276611328125, -0.04693603515625, -0.0209197998046875, -0.01088714599609375, 0.0250091552734375, -0.007343292236328125, 0.006389617919921875, -0.033477783203125, -0.035064697265625, 0.022003173828125, -0.01104736328125, 0.0002951622009277344, -0.039306640625, -0.0789794921875, 0.059661865234375, 0.00409698486328125, -0.032989501953125, 0.00902557373046875, 0.0146636962890625, -0.01043701171875, -0.0093841552734375, 0.002788543701171875, -0.020782470703125, 0.01617431640625, 0.01091766357421875, 0.01073455810546875, 0.05426025390625, 0.007701873779296875, -0.0112152099609375, -0.01873779296875, 0.01364898681640625, 0.0020580291748046875, 0.037109375, -0.027252197265625, -0.00553131103515625, 0.023040771484375, 0.04052734375, -0.0122833251953125, -0.0214996337890625, 0.035888671875, -0.0217132568359375, 0.01161956787109375, -0.01422882080078125, -0.017425537109375, -0.035369873046875, 0.04168701171875, -0.03057861328125, 0.015228271484375, 0.0215911865234375, -0.035552978515625, -0.0178680419921875, 0.0068206787109375, 0.0008044242858886719, 0.006816864013671875, -0.046142578125, 0.0076904296875, 0.0034961700439453125, -0.0170135498046875, -0.0054931640625, 0.00395965576171875, -0.0274505615234375, -0.0033702850341796875, 0.0287933349609375, 0.01206207275390625, -0.054290771484375, -0.00847625732421875, -0.017303466796875, -0.0089569091796875, 0.003932952880859375, -0.01192474365234375, 0.01158905029296875, -0.0158538818359375, 0.03814697265625, -0.0194549560546875, -0.049407958984375, -0.02490234375, 0.03240966796875, -0.0250091552734375, 0.014617919921875, -0.032379150390625, -0.02520751953125, -0.00514984130859375, 0.01100921630859375, 0.031524658203125, 0.0096588134765625, -0.06500244140625, 0.0225830078125, 0.013153076171875, -0.019805908203125, 0.00330352783203125, 0.018524169921875, -0.016387939453125, 0.061431884765625, 0.03668212890625, -0.055206298828125, 0.06707763671875, -0.035980224609375, -0.02410888671875, -0.005710601806640625, -0.041412353515625, -0.10357666015625, 0.050994873046875, 0.01457977294921875, 0.012969970703125, 0.049346923828125 ]
7d8998eef86a84e75d27ecde753be5e2bb90711f
Wordpress Stackexchange Q: Load template for specific subdomain I'd like to be able to set a wordpress theme for certain subdomains, but still load the same content for all installations. For example, I have www.domain.com that loads the default template with default content. I'd also like to have mobile.domain.com, that too loads the same content but a separate template. What would be the best way to go about this? A: Without more detail about the kind of template you'd be serving up, the best I can advise is that you can use the 'template_redirect' hook to override the entire Template Hierarchy. A more delicate way to do this would be by using on of the more specific filters. Each of the conditional get_*_template() functions in template-loader.php has a filter of its own which you can use to return your own template name. Look in includes/themes.php to see those filters. Most of them end up using get_query_template(), which dynamically creates the filter name in a consistant way, but some of the others like author and category are separate - look around to find which if any suits you best under different circumstances.
Q: Load template for specific subdomain I'd like to be able to set a wordpress theme for certain subdomains, but still load the same content for all installations. For example, I have www.domain.com that loads the default template with default content. I'd also like to have mobile.domain.com, that too loads the same content but a separate template. What would be the best way to go about this? A: Without more detail about the kind of template you'd be serving up, the best I can advise is that you can use the 'template_redirect' hook to override the entire Template Hierarchy. A more delicate way to do this would be by using on of the more specific filters. Each of the conditional get_*_template() functions in template-loader.php has a filter of its own which you can use to return your own template name. Look in includes/themes.php to see those filters. Most of them end up using get_query_template(), which dynamically creates the filter name in a consistant way, but some of the others like author and category are separate - look around to find which if any suits you best under different circumstances.
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:410769", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21360" }
[ 0.014404296875, -0.0008196830749511719, 0.0026950836181640625, -0.039520263671875, -0.006855010986328125, -0.01262664794921875, -0.00390625, -0.02093505859375, -0.0355224609375, 0.02215576171875, -0.0095977783203125, 0.01788330078125, -0.01531219482421875, -0.01910400390625, 0.005764007568359375, -0.04193115234375, 0.01123809814453125, -0.038604736328125, -0.0126190185546875, -0.031402587890625, 0.01194000244140625, -0.0137481689453125, -0.01078033447265625, 0.048004150390625, 0.01226806640625, -0.04412841796875, 0.078857421875, 0.0026454925537109375, -0.0034084320068359375, -0.0223236083984375, 0.021942138671875, -0.002613067626953125, 0.005023956298828125, 0.021575927734375, 0.0002849102020263672, -0.020538330078125, 0.01230621337890625, 0.0080108642578125, 0.0189208984375, 0.0194549560546875, 0.01399993896484375, -0.01026153564453125, 0.0225830078125, 0.0538330078125, 0.01953125, -0.055908203125, 0.038360595703125, -0.07501220703125, 0.020538330078125, 0.01904296875, 0.0206451416015625, -0.028839111328125, 0.033721923828125, -0.0009870529174804688, -0.020965576171875, -0.0192108154296875, -0.0157318115234375, 0.0193328857421875, 0.0360107421875, -0.0296173095703125, -0.027862548828125, -0.019287109375, 0.0323486328125, 0.0156707763671875, -0.0008540153503417969, -0.013671875, -0.019134521484375, 0.0178985595703125, -0.05108642578125, -0.00039386749267578125, 0.04071044921875, -0.040557861328125, 0.0160980224609375, -0.0222015380859375, -0.0132293701171875, -0.00531768798828125, 0.0274505615234375, 0.008026123046875, 0.0189056396484375, -0.037322998046875, 0.0206146240234375, -0.01428985595703125, -0.027923583984375, -0.0162506103515625, 0.039154052734375, 0.0300750732421875, -0.00015103816986083984, -0.0263671875, -0.0528564453125, -0.0135498046875, -0.032135009765625, -0.0177001953125, -0.0155487060546875, -0.0013685226440429688, -0.037567138671875, 0.0102996826171875, -0.0156402587890625, 0.0379638671875, -0.01186370849609375, 0.0190277099609375, -0.046966552734375, 0.01202392578125, -0.00902557373046875, -0.0303497314453125, -0.015625, 0.0694580078125, 0.026702880859375, 0.0294342041015625, 0.0103302001953125, 0.015380859375, 0.01519775390625, -0.00029540061950683594, 0.005466461181640625, 0.0231170654296875, -0.06671142578125, -0.0297698974609375, -0.0416259765625, -0.019256591796875, -0.0152130126953125, -0.0103302001953125, 0.029144287109375, 0.0638427734375, 0.03460693359375, -0.03277587890625, -0.0276641845703125, 0.00054168701171875, -0.00020003318786621094, -0.1185302734375, -0.00977325439453125, -0.01959228515625, -0.005947113037109375, 0.02685546875, 0.01398468017578125, 0.021942138671875, -0.00540924072265625, 0.0016412734985351562, -0.005268096923828125, 0.0215606689453125, -0.01349639892578125, -0.0272674560546875, 0.034912109375, 0.004932403564453125, -0.013580322265625, -0.0039215087890625, -0.0073394775390625, 0.01102447509765625, 0.0161590576171875, 0.0254364013671875, -0.00433349609375, -0.030853271484375, 0.00231170654296875, -0.024566650390625, 0.04156494140625, -0.005706787109375, 0.00952911376953125, -0.046356201171875, 0.03765869140625, -0.038543701171875, -0.0186614990234375, -0.058563232421875, -0.031982421875, -0.0084381103515625, 0.0301361083984375, -0.03131103515625, -0.029998779296875, 0.006801605224609375, 0.01267242431640625, 0.0009093284606933594, 0.0203094482421875, -0.0269927978515625, 0.0252685546875, -0.00801849365234375, 0.0341796875, 0.01073455810546875, 0.00225067138671875, 0.0274658203125, 0.019989013671875, 0.0430908203125, -0.0178375244140625, 0.031097412109375, -0.0008587837219238281, -0.045440673828125, 0.029266357421875, -0.0178375244140625, -0.04364013671875, -0.00984954833984375, -0.0041046142578125, 0.02734375, 0.01251983642578125, 0.0180206298828125, 0.018402099609375, 0.007568359375, -0.09027099609375, 0.051727294921875, -0.00896453857421875, 0.00267791748046875, -0.0267791748046875, 0.023956298828125, -0.004856109619140625, -0.035430908203125, -0.00804901123046875, -0.031158447265625, 0.02105712890625, 0.0117950439453125, 0.0202178955078125, -0.03277587890625, 0.007503509521484375, -0.00130462646484375, 0.037811279296875, 0.0277862548828125, -0.01131439208984375, -0.00847625732421875, 0.0003230571746826172, -0.0258941650390625, -0.0482177734375, 0.01279449462890625, 0.0069580078125, 0.01555633544921875, 0.0159454345703125, -0.0028438568115234375, 0.026702880859375, -0.0055389404296875, 0.0087127685546875, 0.0077667236328125, 0.0250701904296875, 0.0011625289916992188, -0.028076171875, -0.01471710205078125, -0.00200653076171875, 0.0207366943359375, -0.053924560546875, 0.04632568359375, 0.006511688232421875, 0.02532958984375, -0.037811279296875, 0.0239715576171875, -0.0245208740234375, 0.0226593017578125, -0.02325439453125, 0.024871826171875, 0.0142974853515625, 0.00823974609375, -0.016387939453125, 0.017364501953125, 0.0413818359375, -0.0127410888671875, -0.0041046142578125, 0.01273345947265625, 0.015350341796875, 0.03240966796875, -0.0280609130859375, -0.009002685546875, 0.0159759521484375, -0.06689453125, -0.0011262893676757812, 0.0391845703125, 0.0013322830200195312, -0.0084228515625, 0.0033111572265625, 0.030059814453125, -0.001117706298828125, 0.049835205078125, 0.0009794235229492188, 0.0114898681640625, 0.013763427734375, 0.0126495361328125, -0.009033203125, -0.016571044921875, -0.0418701171875, 0.0268096923828125, 0.034149169921875, -0.05322265625, 0.00008177757263183594, 0.04669189453125, 0.008636474609375, 0.039154052734375, -0.03436279296875, -0.00806427001953125, 0.01495361328125, 0.0248565673828125, -0.022857666015625, 0.023468017578125, -0.06982421875, -0.00658416748046875, -0.03192138671875, -0.09735107421875, 0.00397491455078125, 0.0428466796875, 0.041015625, 0.0295867919921875, 0.025970458984375, 0.04736328125, 0.00293731689453125, 0.0540771484375, -0.01110076904296875, -0.002101898193359375, 0.017303466796875, -0.04400634765625, 0.040740966796875, -0.04144287109375, 0.016937255859375, 0.058135986328125, -0.0022335052490234375, -0.004398345947265625, 0.0028018951416015625, 0.00019812583923339844, 0.04986572265625, -0.00774383544921875, -0.013702392578125, -0.0173797607421875, -0.045257568359375, -0.01552581787109375, 0.017486572265625, 0.041534423828125, -0.01715087890625, -0.031768798828125, -0.016082763671875, 0.017364501953125, -0.01629638671875, -0.006481170654296875, 0.03875732421875, -0.006786346435546875, 0.018035888671875, -0.0208587646484375, -0.0030231475830078125, -0.031494140625, -0.0212249755859375, -0.0012531280517578125, 0.0298919677734375, -0.06988525390625, -0.08843994140625, -0.07696533203125, -0.083740234375, -0.0565185546875, -0.007373809814453125, -0.021942138671875, 0.0012598037719726562, 0.042572021484375, -0.00804901123046875, -0.038299560546875, -0.0024776458740234375, 0.046417236328125, -0.00243377685546875, -0.0178070068359375, 0.01197052001953125, -0.031341552734375, -0.006732940673828125, 0.006450653076171875, -0.0307159423828125, 0.0106048583984375, 0.0004935264587402344, -0.0191497802734375, -0.01678466796875, -0.04486083984375, -0.01499176025390625, 0.0087432861328125, 0.0205841064453125, -0.029693603515625, 0.01318359375, -0.0631103515625, -0.03704833984375, -0.02471923828125, -0.059326171875, 0.07879638671875, 0.04742431640625, -0.025299072265625, -0.006946563720703125, 0.0296173095703125, 0.01457977294921875, 0.00482940673828125, 0.00392913818359375, -0.028961181640625, 0.00861358642578125, 0.008331298828125, 0.039794921875, 0.007572174072265625, 0.0215606689453125, -0.0219573974609375, -0.02203369140625, -0.0019741058349609375, -0.0027713775634765625, -0.036834716796875, 0.0181121826171875, -0.06646728515625, -0.08282470703125, 0.065185546875, -0.01502227783203125, 0.025238037109375, -0.07598876953125, -0.03741455078125, -0.036224365234375, 0.1131591796875, -0.019195556640625, 0.00013184547424316406, 0.013671875, -0.0013580322265625, 0.009613037109375, -0.00907135009765625, -0.0648193359375, -0.0081634521484375, -0.06756591796875, 0.0026645660400390625, -0.0174407958984375, -0.0236358642578125, -0.0164947509765625, -0.0242767333984375, -0.025177001953125, -0.04541015625, 0.020233154296875, -0.0127410888671875, -0.002902984619140625, 0.0005507469177246094, -0.0205841064453125, -0.01189422607421875, -0.01448822021484375, -0.0220947265625, -0.04840087890625, -0.0177764892578125, 0.008575439453125, 0.023651123046875, 0.028167724609375, -0.04669189453125, 0.01206207275390625, 0.0347900390625, -0.0202178955078125, 0.031951904296875, -0.0281829833984375, 0.0024776458740234375, 0.0155029296875, 0.0091400146484375, -0.0226593017578125, 0.000043392181396484375, -0.0167236328125, -0.0282745361328125, -0.0292510986328125, 0.0295867919921875, -0.01178741455078125, 0.03826904296875, -0.00246429443359375, -0.0082244873046875, -0.0418701171875, -0.0131988525390625, 0.01568603515625, 0.00733184814453125, 0.004302978515625, -0.0096435546875, 0.006214141845703125, -0.036834716796875, 0.076171875, 0.0231781005859375, -0.0261383056640625, -0.00913238525390625, 0.069091796875, 0.0155487060546875, -0.05181884765625, -0.0231170654296875, 0.0225830078125, 0.034423828125, -0.01462554931640625, 0.03692626953125, 0.0211334228515625, -0.03204345703125, 0.055389404296875, 0.0073394775390625, 0.027313232421875, -0.006103515625, 0.01837158203125, -0.00913238525390625, -0.05340576171875, 0.053619384765625, 0.01541900634765625, -0.0309906005859375, 0.040252685546875, -0.00782012939453125, -0.031646728515625, -0.036407470703125, 0.044036865234375, 0.0251922607421875, -0.0091552734375, -0.06707763671875, -0.004596710205078125, -0.0061187744140625, 0.00397491455078125, 0.0290985107421875, 0.004207611083984375, 0.0031585693359375, -0.00812530517578125, 0.0283966064453125, 0.001987457275390625, 0.0218963623046875, 0.055938720703125, 0.018585205078125, 0.037353515625, 0.0577392578125, 0.025054931640625, -0.040313720703125, -0.0145263671875, 0.057891845703125, -0.0099334716796875, -0.0465087890625, -0.01438140869140625, 0.0006251335144042969, 0.0074005126953125, 0.034637451171875, -0.0350341796875, 0.040924072265625, 0.020843505859375, 0.0008192062377929688, 0.005809783935546875, -0.0224151611328125, -0.031280517578125, -0.04461669921875, 0.0031833648681640625, 0.00720977783203125, -0.00733184814453125, 0.01485443115234375, 0.03289794921875, -0.002086639404296875, 0.006649017333984375, -0.003173828125, 0.0175323486328125, 0.051177978515625, 0.0034542083740234375, 0.0281219482421875, 0.004878997802734375, -0.04693603515625, 0.0181121826171875, -0.0006003379821777344, -0.01904296875, 0.02093505859375, 0.0087738037109375, 0.05230712890625, -0.0201568603515625, -0.0261383056640625, 0.0178375244140625, -0.06561279296875, 0.016326904296875, 0.025115966796875, -0.05169677734375, -0.0513916015625, -0.03680419921875, 0.018646240234375, 0.055877685546875, -0.044464111328125, -0.007038116455078125, -0.00949859619140625, -0.00994110107421875, 0.01041412353515625, 0.024169921875, -0.0528564453125, 0.025177001953125, 0.01229095458984375, -0.0482177734375, 0.00261688232421875, 0.0106964111328125, -0.0706787109375, -0.0631103515625, -0.004428863525390625, -0.013763427734375, 0.059326171875, -0.0222320556640625, 0.022186279296875, -0.0080108642578125, -0.014434814453125, -0.01300048828125, 0.0201568603515625, 0.00775146484375, -0.0101318359375, -0.06707763671875, 0.034698486328125, -0.05255126953125, -0.01537322998046875, -0.046234130859375, -0.07305908203125, -0.05926513671875, -0.0215301513671875, 0.006053924560546875, 0.004222869873046875, -0.004940032958984375, -0.03936767578125, -0.020843505859375, 0.004558563232421875, 0.023223876953125, -0.01210784912109375, -0.0205841064453125, 0.09228515625, -0.0266571044921875, 0.01410675048828125, -0.007526397705078125, 0.0513916015625, 0.0084228515625, -0.006168365478515625, -0.0197906494140625, -0.08087158203125, 0.00351715087890625, 0.0228424072265625, -0.031341552734375, 0.052978515625, 0.040283203125, 0.028228759765625, 0.03076171875, -0.04852294921875, -0.006092071533203125, -0.030731201171875, 0.05029296875, -0.07220458984375, 0.006298065185546875, -0.00884246826171875, -0.01136016845703125, 0.01556396484375, -0.0025348663330078125, -0.0321044921875, 0.0265655517578125, -0.008331298828125, -0.0018291473388671875, 0.03717041015625, -0.043212890625, 0.050048828125, 0.042999267578125, 0.01428985595703125, 0.03814697265625, 0.0192413330078125, 0.0221710205078125, 0.0095977783203125, 0.02325439453125, -0.010711669921875, -0.046417236328125, 0.016998291015625, 0.0004277229309082031, -0.00553131103515625, 0.01194000244140625, -0.0240478515625, 0.0105438232421875, 0.068603515625, 0.043487548828125, -0.1094970703125, -0.0062713623046875, 0.0250091552734375, -0.00019788742065429688, -0.0290985107421875, -0.01447296142578125, -0.0019483566284179688, -0.006183624267578125, 0.05670166015625, 0.01052093505859375, -0.0058441162109375, 0.029632568359375, 0.0207672119140625, -0.021514892578125, -0.0005855560302734375, 0.043975830078125, 0.0224761962890625, 0.0291748046875, -0.0001977682113647461, -0.0312347412109375, 0.0302276611328125, -0.0154266357421875, 0.0155487060546875, 0.0027294158935546875, 0.00025010108947753906, -0.04022216796875, 0.0273895263671875, -0.04248046875, -0.005680084228515625, -0.041900634765625, -0.00012409687042236328, 0.01181793212890625, 0.0660400390625, -0.047088623046875, 0.00927734375, 0.059417724609375, 0.00142669677734375, 0.045745849609375, -0.01544952392578125, -0.0091552734375, 0.000028789043426513672, -0.0350341796875, -0.003826141357421875, -0.0115966796875, -0.006866455078125, -0.006877899169921875, -0.03326416015625, 0.05194091796875, -0.0246429443359375, -0.01409912109375, 0.03485107421875, 0.0296783447265625, -0.020843505859375, 0.0010013580322265625, 0.019866943359375, -0.027099609375, -0.00530242919921875, 0.01207733154296875, 0.0016803741455078125, -0.0196075439453125, -0.00024580955505371094, -0.0703125, 0.08380126953125, 0.036712646484375, 0.061767578125, 0.01296234130859375, 0.0189361572265625, -0.041900634765625, -0.007457733154296875, -0.0010280609130859375, 0.029144287109375, 0.04913330078125, 0.01026153564453125, 0.024993896484375, 0.00030493736267089844, 0.02203369140625, 0.017791748046875, 0.01467132568359375, 0.01016998291015625, -0.03125, 0.007686614990234375, 0.04376220703125, 0.0187530517578125, 0.002124786376953125, 0.041656494140625, -0.03155517578125, -0.011444091796875, -0.03533935546875, -0.039337158203125, -0.00028228759765625, -0.02880859375, -0.0419921875, 0.00318145751953125, 0.0196533203125, 0.0302276611328125, 0.0184783935546875, -0.005680084228515625, -0.054534912109375, 0.013427734375, 0.0633544921875, -0.02789306640625, 0.02313232421875, -0.00302886962890625, 0.0221710205078125, -0.041534423828125, 0.023284912109375, -0.037872314453125, 0.055023193359375, 0.0025424957275390625, -0.029876708984375, 0.0116424560546875, -0.005710601806640625, 0.019927978515625, -0.035247802734375, -0.035614013671875, -0.0041046142578125, 0.00847625732421875, 0.033111572265625, -0.0208587646484375, 0.0019741058349609375, -0.08349609375, -0.005420684814453125, 0.032958984375, 0.04290771484375, -0.0291290283203125, -0.049468994140625, 0.00882720947265625, -0.0018749237060546875, 0.018402099609375, -0.003093719482421875, 0.01042938232421875, -0.058258056640625, -0.01253509521484375, -0.00753021240234375, -0.0200042724609375, 0.0305938720703125, -0.0130157470703125, 0.01346588134765625, 0.036346435546875, 0.0197296142578125, 0.00882720947265625, -0.024444580078125, 0.0218963623046875, 0.044403076171875, 0.048797607421875, -0.0290985107421875, 0.061248779296875, -0.0570068359375, -0.0172119140625, -0.0112457275390625, 0.033203125, -0.016754150390625, 0.0220947265625, -0.0231475830078125, -0.032379150390625, -0.018829345703125, 0.03289794921875, 0.0200347900390625, 0.0081024169921875, 0.0728759765625, 0.04888916015625, -0.05352783203125, 0.0006823539733886719, 0.03173828125, -0.021881103515625, 0.049163818359375, -0.0447998046875, 0.00037407875061035156, -0.0161285400390625, -0.03192138671875, -0.01253509521484375, -0.04302978515625, 0.05841064453125, -0.022674560546875, 0.004974365234375, -0.003887176513671875, -0.011962890625, 0.0458984375, -0.0156402587890625, 0.0163726806640625, 0.0158843994140625, -0.049530029296875, -0.00009036064147949219, -0.04425048828125, -0.047943115234375, 0.041290283203125, 0.050384521484375, -0.0219573974609375, 0.026885986328125, 0.0206451416015625, 0.0006456375122070312, 0.01153564453125, -0.021392822265625, 0.0217132568359375, -0.016571044921875, 0.0153656005859375, 0.01287078857421875, -0.048248291015625, -0.0125274658203125, -0.009368896484375, 0.01390838623046875, 0.0028400421142578125, 0.08941650390625, -0.0190277099609375, -0.003936767578125, 0.029754638671875, -0.0003807544708251953, 0.01485443115234375, -0.00502777099609375, 0.050567626953125, -0.0004146099090576172, -0.004863739013671875, -0.0260772705078125, -0.039093017578125, 0.02642822265625, 0.016265869140625, -0.02655029296875, 0.043853759765625, -0.0226593017578125, 0.006519317626953125, -0.0233306884765625, 0.0462646484375, -0.017852783203125, -0.06744384765625, -0.0482177734375, 0.027313232421875, 0.0095977783203125, 0.0677490234375, 0.001773834228515625, 0.034515380859375, -0.04150390625, -0.0384521484375, 0.0017862319946289062, -0.035675048828125, -0.004302978515625, 0.01464080810546875, -0.0196685791015625, -0.06695556640625, 0.023681640625, -0.007415771484375, 0.0179595947265625, -0.021697998046875, 0.074951171875, 0.00835418701171875, -0.05914306640625, 0.024993896484375, -0.0182342529296875, 0.0276641845703125, -0.052001953125, 0.007587432861328125, 0.0188446044921875, 0.0255584716796875, 0.024017333984375, -0.039459228515625, -0.0225830078125, -0.0174560546875, -0.00817108154296875, 0.007114410400390625, -0.005252838134765625, -0.0543212890625, -0.0156097412109375, -0.01038360595703125, 0.03753662109375, 0.00455474853515625, -0.038299560546875, 0.0178985595703125, -0.0206451416015625, 0.037445068359375, -0.00719451904296875, -0.012481689453125, -0.007595062255859375, 0.0307769775390625, -0.0014848709106445312, 0.01093292236328125, -0.0433349609375, -0.0131988525390625, -0.0201873779296875, 0.0135955810546875, 0.069091796875, -0.01325225830078125, -0.007434844970703125, 0.0208282470703125, -0.0201263427734375, 0.08013916015625, -0.06866455078125, 0.00806427001953125, 0.04058837890625, -0.0104827880859375, -0.0477294921875, -0.03302001953125, 0.01374053955078125, -0.032867431640625, 0.00047206878662109375, -0.0188446044921875, -0.0160064697265625, -0.0089569091796875, -0.05535888671875, -0.05419921875, 0.0631103515625, 0.0005464553833007812, -0.033782958984375, -0.03350830078125, 0.0195159912109375, -0.0013666152954101562, 0.00844573974609375, -0.01024627685546875, -0.01276397705078125, -0.00592803955078125, 0.0192413330078125, 0.0056304931640625, 0.0020809173583984375, 0.04150390625, 0.0013332366943359375, 0.004852294921875, 0.01284027099609375, 0.01422119140625, -0.030792236328125, 0.00960540771484375, -0.044219970703125, 0.0379638671875, 0.040985107421875, -0.048065185546875, -0.043212890625, 0.012969970703125, 0.020751953125, -0.01861572265625, -0.034698486328125, -0.01666259765625, -0.0099029541015625, 0.07965087890625, 0.03472900390625, 0.01428985595703125, -0.028564453125, -0.034881591796875, -0.03271484375, -0.0175933837890625, -0.01424407958984375, 0.0269317626953125, -0.09442138671875, -0.007343292236328125, 0.042999267578125, -0.04119873046875, 0.0202789306640625, -0.01390838623046875, -0.055908203125, 0.0362548828125, -0.0037384033203125, 0.0031223297119140625, -0.0501708984375, 0.0200042724609375, 0.0394287109375, -0.0187530517578125, 0.0189208984375, -0.0227508544921875, 0.026458740234375, 0.0078125, -0.0361328125, 0.024688720703125, 0.050140380859375, -0.0777587890625, -0.0193939208984375, 0.01155853271484375, -0.0009908676147460938, -0.0186767578125, -0.0176239013671875, -0.0238800048828125, 0.02581787109375, 0.007305145263671875, 0.0338134765625, -0.00047087669372558594, 0.03515625, 0.02587890625, 0.0455322265625, -0.0181732177734375, 0.03466796875, -0.034515380859375, 0.0579833984375, -0.024200439453125, -0.0092926025390625, -0.00763702392578125, 0.01355743408203125, 0.0010786056518554688, 0.011810302734375, 0.00606536865234375, -0.0289306640625, 0.040191650390625, -0.05889892578125, -0.0007696151733398438, 0.01493072509765625 ]
7cbf4532359b63ca1ae1ce159faa107f55e0deb2
Wordpress Stackexchange Q: how to show posts that are missing a meta_value How can I build a query to find posts that DO NOT contain a certain meta key or meta value? for example: query_posts( array( 'meta_query' => array( array( 'key' => 'feature', 'value' => '_wp_zero_value', 'compare' => '!=' ) ) ) ); A: Getting posts without a certain meta key is a little tricky, namely due to the database design and the nature of SQL joins. AFAIK, the most efficient way would be to actually grab the post IDs that do have the meta key, and then exclude them from your query. // get all post IDs that *have* 'meta_key' with a non-empty value $posts = $wpdb->get_col( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'my_key' AND meta_value != ''" ); // get all posts *excluding* the ones we just found query_posts( array( 'post__not_in' => $posts ) );
Q: how to show posts that are missing a meta_value How can I build a query to find posts that DO NOT contain a certain meta key or meta value? for example: query_posts( array( 'meta_query' => array( array( 'key' => 'feature', 'value' => '_wp_zero_value', 'compare' => '!=' ) ) ) ); A: Getting posts without a certain meta key is a little tricky, namely due to the database design and the nature of SQL joins. AFAIK, the most efficient way would be to actually grab the post IDs that do have the meta key, and then exclude them from your query. // get all post IDs that *have* 'meta_key' with a non-empty value $posts = $wpdb->get_col( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'my_key' AND meta_value != ''" ); // get all posts *excluding* the ones we just found query_posts( array( 'post__not_in' => $posts ) ); A: $args = array( 'meta_query' => array( 'relation' => 'OR', //default AND array( 'key' => 'feature', 'compare' => 'NOT EXISTS' ), array( 'key' => 'feature', 'value' => '_wp_zero_value', 'compare' => '=' ) )); $the_query = new WP_Query($args); var_dump($the_query); Read further : Wordpress Doc NB: before the wordpress 3.9 there is a bug So this is the work around array( 'key' => 'feature', 'compare' => 'NOT EXISTS', 'value' => '' //add this empty value check for check NOT EXISTS ),
wordpress
{ "language": "en", "length": 225, "provenance": "stackexchange_00019.jsonl.gz:410770", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21366" }
[ 0.00963592529296875, -0.005947113037109375, 0.0433349609375, 0.056671142578125, -0.01025390625, -0.013946533203125, 0.055633544921875, -0.0732421875, 0.0430908203125, 0.0179901123046875, -0.049285888671875, -0.01727294921875, -0.01337432861328125, -0.01453399658203125, -0.03497314453125, -0.0494384765625, 0.02947998046875, 0.00789642333984375, 0.035308837890625, -0.0022830963134765625, 0.028839111328125, 0.004779815673828125, 0.018585205078125, 0.01171112060546875, 0.034820556640625, -0.03802490234375, 0.05755615234375, -0.036834716796875, 0.0253448486328125, -0.0221099853515625, 0.032562255859375, 0.00730133056640625, 0.0123748779296875, -0.0269622802734375, 0.04058837890625, -0.01387786865234375, 0.016815185546875, -0.01026153564453125, 0.01155853271484375, -0.007843017578125, -0.004833221435546875, 0.0025920867919921875, -0.0264739990234375, 0.019561767578125, -0.0162811279296875, -0.04132080078125, 0.01416015625, -0.03955078125, 0.03466796875, -0.0190277099609375, -0.026702880859375, 0.036895751953125, -0.0149993896484375, 0.0026073455810546875, -0.018951416015625, -0.004119873046875, -0.0246429443359375, -0.01424407958984375, 0.044921875, 0.00958251953125, -0.01154327392578125, -0.0333251953125, 0.01180267333984375, -0.0223846435546875, -0.00843048095703125, 0.006938934326171875, -0.003139495849609375, 0.0065765380859375, -0.044647216796875, -0.005542755126953125, 0.0269622802734375, -0.0367431640625, 0.007038116455078125, -0.013916015625, -0.011505126953125, -0.0185699462890625, 0.0245208740234375, -0.0262603759765625, -0.0082550048828125, 0.0204620361328125, 0.01454925537109375, -0.005176544189453125, -0.0298614501953125, -0.0100250244140625, 0.0022792816162109375, -0.00580596923828125, -0.00174713134765625, -0.00714111328125, -0.049407958984375, -0.040679931640625, -0.01453399658203125, -0.049041748046875, -0.11663818359375, 0.017547607421875, 0.0203857421875, -0.033538818359375, 0.0022258758544921875, 0.040252685546875, -0.0279998779296875, -0.005401611328125, 0.0005936622619628906, -0.027740478515625, -0.002750396728515625, -0.0182342529296875, 0.02020263671875, 0.0302886962890625, -0.0236358642578125, -0.0231781005859375, 0.035552978515625, 0.0479736328125, 0.0282745361328125, -0.00943756103515625, -0.0244598388671875, -0.003665924072265625, -0.049652099609375, 0.04705810546875, -0.004642486572265625, -0.03570556640625, -0.01490020751953125, -0.007534027099609375, 0.002197265625, 0.0281982421875, 0.005275726318359375, -0.04705810546875, 0.04132080078125, 0.01499176025390625, -0.036468505859375, -0.01255035400390625, -0.0138092041015625, 0.04205322265625, -0.048309326171875, -0.0152130126953125, 0.08648681640625, 0.035125732421875, 0.0184478759765625, -0.043243408203125, -0.027496337890625, -0.042755126953125, -0.03326416015625, 0.01250457763671875, -0.004791259765625, -0.034027099609375, 0.02685546875, -0.0234527587890625, -0.005084991455078125, 0.0211639404296875, 0.02911376953125, 0.0196075439453125, -0.027984619140625, -0.03692626953125, -0.00795745849609375, -0.0028324127197265625, 0.0340576171875, 0.0029087066650390625, -0.0178985595703125, -0.005321502685546875, 0.0567626953125, -0.0494384765625, -0.037261962890625, -0.062744140625, 0.01282501220703125, 0.0059661865234375, -0.0013427734375, -0.0015039443969726562, -0.04083251953125, -0.0059661865234375, -0.0015811920166015625, -0.0017948150634765625, 0.02410888671875, 0.03558349609375, 0.056243896484375, -0.00919342041015625, 0.0298004150390625, -0.0023651123046875, -0.0195770263671875, -0.0202178955078125, 0.032684326171875, 0.024810791015625, -0.011444091796875, 0.0183258056640625, -0.010223388671875, -0.0272674560546875, 0.03375244140625, 0.004383087158203125, -0.06341552734375, 0.0635986328125, 0.01142120361328125, 0.07696533203125, -0.005340576171875, 0.0188446044921875, 0.06488037109375, 0.0168609619140625, -0.031494140625, 0.0019369125366210938, 0.0014743804931640625, -0.0183258056640625, -0.020782470703125, -0.0118865966796875, 0.0008320808410644531, 0.005367279052734375, 0.005207061767578125, 0.035186767578125, -0.035247802734375, 0.005596160888671875, -0.096923828125, -0.007701873779296875, -0.027801513671875, 0.05340576171875, -0.07415771484375, 0.015869140625, 0.05450439453125, -0.00498199462890625, -0.04217529296875, 0.0262298583984375, 0.032440185546875, -0.00708770751953125, -0.0193023681640625, -0.007171630859375, -0.01435089111328125, -0.014617919921875, -0.01448822021484375, -0.0306549072265625, -0.04815673828125, 0.007755279541015625, 0.037353515625, 0.005550384521484375, 0.0005831718444824219, -0.00730133056640625, 0.057586669921875, 0.01494598388671875, -0.0172119140625, -0.0215606689453125, 0.0082550048828125, -0.0271148681640625, -0.049224853515625, 0.024810791015625, -0.01012420654296875, -0.01064300537109375, -0.01348876953125, 0.04669189453125, 0.0283203125, 0.04217529296875, -0.0201416015625, -0.00617218017578125, 0.05340576171875, -0.049163818359375, -0.010345458984375, 0.00629425048828125, 0.0026798248291015625, 0.03314208984375, -0.0106201171875, 0.005092620849609375, 0.032012939453125, -0.0014019012451171875, -0.0213165283203125, 0.037445068359375, -0.01702880859375, 0.043426513671875, -0.019134521484375, 0.0126800537109375, -0.0310516357421875, 0.00966644287109375, 0.03118896484375, -0.013580322265625, 0.04681396484375, 0.01003265380859375, 0.0443115234375, 0.0306243896484375, -0.0205535888671875, 0.00788116455078125, 0.0016527175903320312, -0.016082763671875, 0.011566162109375, 0.034423828125, -0.0215301513671875, 0.052825927734375, -0.01898193359375, -0.01715087890625, 0.0439453125, 0.028228759765625, -0.0098724365234375, 0.01873779296875, -0.0263519287109375, -0.0099334716796875, -0.00778961181640625, -0.0225830078125, 0.0079345703125, 0.0125274658203125, -0.01316070556640625, 0.0051116943359375, 0.0308990478515625, 0.02984619140625, 0.0001233816146850586, -0.00611114501953125, 0.013031005859375, 0.0029048919677734375, -0.047698974609375, -0.05169677734375, 0.038482666015625, -0.048614501953125, 0.032958984375, 0.06329345703125, -0.0205230712890625, 0.0223236083984375, -0.0188140869140625, 0.0075225830078125, -0.0306396484375, 0.0259857177734375, -0.00330352783203125, -0.036865234375, -0.044464111328125, 0.0015087127685546875, 0.03472900390625, 0.052642822265625, 0.0030059814453125, -0.01544189453125, 0.0031528472900390625, 0.0272979736328125, -0.07177734375, -0.10980224609375, 0.008056640625, -0.01275634765625, -0.011932373046875, -0.01983642578125, -0.01244354248046875, -0.00913238525390625, -0.019134521484375, -0.00466156005859375, -0.01458740234375, -0.0234832763671875, -0.097412109375, -0.06695556640625, -0.05987548828125, 0.018218994140625, -0.004650115966796875, 0.00749969482421875, -0.00432586669921875, 0.083740234375, 0.01143646240234375, -0.061798095703125, -0.01131439208984375, 0.0487060546875, -0.0262908935546875, 0.006626129150390625, 0.0046539306640625, 0.01003265380859375, -0.0287017822265625, 0.0124664306640625, 0.020751953125, 0.01551055908203125, -0.0290374755859375, -0.008453369140625, 0.00997161865234375, -0.00164031982421875, 0.034942626953125, -0.01317596435546875, -0.031219482421875, 0.04840087890625, 0.0477294921875, -0.01073455810546875, -0.04351806640625, -0.0274200439453125, -0.06390380859375, 0.036773681640625, 0.0343017578125, 0.019927978515625, -0.003963470458984375, 0.02447509765625, 0.0260162353515625, -0.018829345703125, 0.004634857177734375, -0.0114898681640625, 0.0002970695495605469, 0.00910186767578125, 0.049774169921875, -0.01268768310546875, -0.010162353515625, -0.038787841796875, 0.0131378173828125, -0.0228271484375, 0.01751708984375, 0.005584716796875, -0.02044677734375, -0.0169677734375, 0.0213165283203125, 0.03759765625, 0.052642822265625, 0.08660888671875, -0.03192138671875, -0.058197021484375, -0.07647705078125, 0.06256103515625, 0.019683837890625, -0.043426513671875, -0.0199127197265625, 0.0098419189453125, -0.0227508544921875, -0.0233154296875, 0.03240966796875, 0.00543212890625, -0.08404541015625, 0.01068115234375, -0.0017061233520507812, -0.033447265625, -0.005535125732421875, -0.0145111083984375, -0.037017822265625, -0.043701171875, 0.030792236328125, -0.01505279541015625, 0.02679443359375, 0.0162353515625, 0.010009765625, 0.003376007080078125, -0.012542724609375, -0.03204345703125, -0.036956787109375, -0.002750396728515625, -0.0222625732421875, 0.01227569580078125, 0.00675201416015625, 0.01128387451171875, -0.0030727386474609375, 0.007232666015625, -0.0164794921875, 0.0034885406494140625, -0.00244903564453125, 0.02947998046875, -0.032501220703125, 0.0005559921264648438, 0.00304412841796875, -0.0421142578125, -0.01445770263671875, -0.0308990478515625, -0.018707275390625, -0.0031528472900390625, -0.03338623046875, -0.01030731201171875, -0.006927490234375, -0.0121917724609375, -0.00022113323211669922, 0.0080718994140625, -0.0011119842529296875, 0.03692626953125, -0.0118255615234375, 0.006641387939453125, -0.01611328125, -0.0044708251953125, 0.05340576171875, 0.038543701171875, -0.01236724853515625, -0.0128631591796875, 0.0433349609375, 0.005207061767578125, -0.060882568359375, -0.0286102294921875, -0.0077056884765625, 0.0104217529296875, 0.0242462158203125, -0.01128387451171875, -0.05157470703125, -0.0196990966796875, 0.043304443359375, -0.021728515625, 0.00653839111328125, -0.006439208984375, 0.02740478515625, -0.00930023193359375, -0.022979736328125, 0.0143280029296875, -0.0259246826171875, 0.004795074462890625, 0.0211334228515625, 0.01371002197265625, -0.0345458984375, 0.03863525390625, 0.0390625, -0.006839752197265625, -0.0010099411010742188, -0.024688720703125, 0.0278778076171875, -0.01488494873046875, 0.00959014892578125, 0.01995849609375, 0.040313720703125, -0.0099029541015625, -0.03271484375, 0.00492095947265625, -0.025848388671875, -0.0091552734375, 0.00940704345703125, -0.0228118896484375, -0.0025577545166015625, -0.005126953125, -0.04681396484375, -0.017669677734375, 0.0050201416015625, 0.0364990234375, -0.0158233642578125, -0.074462890625, 0.023651123046875, -0.01727294921875, 0.0352783203125, 0.057342529296875, -0.0129547119140625, 0.031494140625, 0.0377197265625, -0.037322998046875, -0.0149383544921875, -0.000576019287109375, -0.003627777099609375, -0.055023193359375, 0.0126495361328125, -0.01200103759765625, 0.018585205078125, -0.03082275390625, 0.118896484375, -0.06866455078125, 0.07012939453125, -0.007965087890625, 0.028350830078125, -0.0034275054931640625, 0.052215576171875, 0.0230712890625, -0.041717529296875, -0.0003418922424316406, 0.045318603515625, -0.005268096923828125, -0.0191802978515625, -0.01654052734375, -0.0001285076141357422, -0.0098114013671875, -0.0212249755859375, 0.00690460205078125, 0.0377197265625, 0.017791748046875, -0.00860595703125, 0.01568603515625, -0.006542205810546875, -0.0177001953125, -0.03765869140625, -0.0199737548828125, 0.03765869140625, 0.0016145706176757812, 0.0128631591796875, 0.00379180908203125, -0.011444091796875, 0.0288543701171875, -0.028411865234375, -0.00640869140625, -0.0088348388671875, -0.00274658203125, 0.01346588134765625, -0.0215301513671875, -0.0213470458984375, 0.0167388916015625, -0.01165771484375, -0.017059326171875, -0.01052093505859375, 0.0611572265625, -0.0184173583984375, 0.018585205078125, -0.0280914306640625, 0.0097808837890625, -0.0028362274169921875, 0.0214691162109375, 0.011474609375, -0.00609588623046875, -0.01064300537109375, -0.01302337646484375, -0.017669677734375, -0.0178680419921875, 0.04571533203125, -0.018280029296875, -0.01438140869140625, -0.01593017578125, 0.00872802734375, 0.041259765625, -0.01611328125, -0.0343017578125, -0.0012006759643554688, -0.0029010772705078125, 0.008056640625, 0.038665771484375, -0.01367950439453125, 0.04095458984375, -0.01340484619140625, 0.0215911865234375, 0.020263671875, 0.03411865234375, 0.000370025634765625, -0.0236663818359375, -0.01335906982421875, -0.035400390625, 0.00397491455078125, 0.0141448974609375, 0.0101776123046875, -0.0179901123046875, 0.002105712890625, -0.00827789306640625, -0.00592803955078125, -0.0013217926025390625, 0.002803802490234375, -0.028289794921875, 0.0266265869140625, 0.01271820068359375, 0.0208892822265625, 0.004856109619140625, -0.04327392578125, -0.0401611328125, 0.007648468017578125, -0.0039005279541015625, 0.00720977783203125, 0.0074310302734375, -0.02667236328125, 0.03521728515625, -0.0106353759765625, 0.059326171875, 0.0814208984375, 0.0111846923828125, 0.043182373046875, 0.0087432861328125, 0.0030765533447265625, -0.0172271728515625, -0.0009036064147949219, -0.0254974365234375, 0.0006260871887207031, 0.10302734375, 0.03802490234375, -0.01007080078125, 0.10498046875, -0.033843994140625, 0.004169464111328125, 0.0165557861328125, 0.02777099609375, -0.057281494140625, 0.021575927734375, 0.0225982666015625, 0.0182037353515625, 0.006999969482421875, 0.0182647705078125, -0.01019287109375, -0.02325439453125, -0.00670623779296875, 0.0056915283203125, -0.0203094482421875, -0.00141143798828125, 0.0244293212890625, -0.02386474609375, -0.0181121826171875, -0.0165252685546875, 0.00910186767578125, -0.006916046142578125, 0.045867919921875, 0.0300140380859375, 0.01690673828125, -0.00797271728515625, 0.00872039794921875, 0.0003612041473388672, -0.050750732421875, -0.10211181640625, -0.047088623046875, 0.0200347900390625, -0.06378173828125, -0.0013704299926757812, 0.0631103515625, 0.0189208984375, 0.0311126708984375, 0.0159454345703125, -0.01776123046875, -0.003696441650390625, -0.006412506103515625, -0.0318603515625, -0.055389404296875, -0.022247314453125, 0.03460693359375, 0.0234375, 0.0294189453125, 0.04583740234375, -0.07733154296875, 0.0022754669189453125, 0.01035308837890625, 0.0711669921875, -0.0594482421875, -0.0175933837890625, 0.0246734619140625, 0.0015916824340820312, -0.0065765380859375, 0.0258331298828125, 0.0222320556640625, 0.025115966796875, 0.048858642578125, 0.00571441650390625, 0.0152587890625, -0.035980224609375, 0.01250457763671875, -0.059539794921875, 0.042266845703125, -0.0010709762573242188, 0.019683837890625, -0.00331878662109375, 0.01000213623046875, 0.003566741943359375, 0.00392913818359375, -0.05242919921875, 0.10076904296875, -0.0190582275390625, 0.05462646484375, -0.078857421875, -0.004428863525390625, 0.0023517608642578125, 0.0250091552734375, 0.0794677734375, 0.006107330322265625, -0.036956787109375, -0.01641845703125, 0.0567626953125, 0.055023193359375, 0.0053253173828125, 0.0272064208984375, 0.00016021728515625, 0.05950927734375, 0.0802001953125, -0.0594482421875, 0.039093017578125, -0.0004146099090576172, -0.016143798828125, 0.01136016845703125, -0.005992889404296875, -0.024169921875, 0.012420654296875, -0.01154327392578125, 0.03759765625, -0.00348663330078125, -0.032470703125, -0.01125335693359375, 0.059417724609375, -0.00939178466796875, 0.035919189453125, -0.06866455078125, -0.0196685791015625, -0.01079559326171875, 0.033782958984375, -0.002490997314453125, 0.0313720703125, 0.037994384765625, 0.0230255126953125, 0.0699462890625, -0.0259246826171875, 0.005985260009765625, -0.0009074211120605469, -0.006256103515625, 0.05126953125, 0.033233642578125, 0.006748199462890625, -0.027435302734375, 0.0401611328125, 0.0254058837890625, 0.045318603515625, -0.051025390625, -0.0151824951171875, 0.007659912109375, -0.007396697998046875, -0.022918701171875, -0.0244140625, -0.036376953125, 0.049224853515625, 0.05682373046875, -0.05938720703125, -0.003780364990234375, 0.006801605224609375, 0.03546142578125, -0.020477294921875, -0.032073974609375, -0.01186370849609375, -0.024810791015625, -0.04168701171875, 0.0106201171875, 0.054351806640625, 0.054443359375, 0.01351165771484375, 0.022308349609375, 0.0199432373046875, -0.0218505859375, -0.0224151611328125, 0.015716552734375, -0.0125579833984375, 0.012908935546875, -0.026519775390625, -0.0240936279296875, -0.012725830078125, 0.0390625, 0.03778076171875, 0.0257415771484375, 0.0677490234375, 0.039154052734375, -0.03460693359375, 0.01395416259765625, 0.018035888671875, -0.030975341796875, -0.0638427734375, -0.02215576171875, 0.005809783935546875, 0.033294677734375, 0.01727294921875, 0.0225372314453125, 0.049163818359375, 0.007476806640625, 0.007526397705078125, 0.0345458984375, 0.012420654296875, 0.01180267333984375, 0.0302581787109375, -0.011627197265625, 0.022430419921875, 0.015625, -0.04248046875, -0.0014982223510742188, 0.00258636474609375, -0.0159149169921875, -0.00627899169921875, 0.0250091552734375, -0.0175628662109375, 0.033782958984375, 0.0163116455078125, 0.00118255615234375, 0.002796173095703125, 0.0126190185546875, 0.0165252685546875, 0.02398681640625, 0.025909423828125, 0.0175933837890625, -0.04913330078125, -0.023193359375, 0.006511688232421875, 0.00768280029296875, -0.004711151123046875, 0.0263671875, 0.0206146240234375, 0.005474090576171875, -0.0176544189453125, 0.019622802734375, -0.0179901123046875, 0.0021648406982421875, -0.017303466796875, -0.0027103424072265625, 0.020599365234375, 0.0006871223449707031, 0.0276031494140625, 0.018707275390625, 0.048187255859375, -0.0269775390625, 0.006458282470703125, 0.001392364501953125, 0.006450653076171875, -0.033721923828125, -0.01302337646484375, -0.04010009765625, -0.01971435546875, -0.04925537109375, -0.040283203125, 0.040496826171875, 0.008819580078125, 0.01291656494140625, -0.00865936279296875, 0.021484375, -0.04931640625, 0.036865234375, 0.0005230903625488281, 0.052825927734375, 0.042694091796875, -0.000762939453125, 0.046539306640625, -0.005794525146484375, -0.0235443115234375, 0.046173095703125, -0.0006537437438964844, -0.0217742919921875, -0.0017023086547851562, -0.01020050048828125, 0.00572967529296875, 0.0178985595703125, 0.045166015625, -0.009552001953125, 0.00861358642578125, 0.01485443115234375, -0.004817962646484375, -0.0007481575012207031, 0.056671142578125, -0.0244293212890625, -0.041229248046875, -0.0198974609375, -0.0197906494140625, -0.035888671875, -0.0517578125, -0.007152557373046875, 0.0008296966552734375, 0.0199127197265625, 0.005489349365234375, -0.062103271484375, 0.049346923828125, -0.0198516845703125, -0.00868988037109375, -0.017608642578125, -0.00461578369140625, 0.0020732879638671875, 0.05224609375, 0.0005707740783691406, 0.002071380615234375, -0.0211639404296875, -0.006023406982421875, -0.0005288124084472656, 0.027679443359375, 0.04510498046875, -0.035614013671875, -0.0408935546875, 0.01410675048828125, 0.0341796875, 0.03192138671875, 0.037689208984375, -0.0251007080078125, 0.0041656494140625, 0.0020618438720703125, -0.0181732177734375, -0.0374755859375, 0.035797119140625, -0.08905029296875, -0.034454345703125, -0.005588531494140625, -0.004947662353515625, 0.01554107666015625, -0.040008544921875, -0.1312255859375, 0.07537841796875, -0.04052734375, -0.0419921875, -0.01284027099609375, -0.062103271484375, 0.0017547607421875, 0.04449462890625, 0.0034027099609375, -0.007843017578125, -0.07733154296875, 0.017181396484375, 0.052490234375, -0.06976318359375, 0.0736083984375, 0.01284027099609375, -0.09246826171875, 0.0031585693359375, -0.0155181884765625, 0.0122528076171875, -0.021942138671875, 0.013671875, 0.014739990234375, 0.0244293212890625, -0.03790283203125, -0.0183563232421875, -0.001438140869140625, 0.012237548828125, 0.01050567626953125, -0.0223388671875, -0.047607421875, -0.0186614990234375, 0.0894775390625, 0.0279541015625, 0.038848876953125, -0.04376220703125, 0.0089111328125, -0.03173828125, -0.025238037109375, -0.03851318359375, 0.00676727294921875, -0.063720703125, -0.0330810546875, -0.0007281303405761719, -0.032745361328125, 0.01525115966796875, -0.034271240234375, -0.025390625, 0.0191650390625, 0.00395965576171875, -0.0052337646484375, -0.00780487060546875, 0.003345489501953125, 0.0095062255859375, -0.01788330078125, 0.00933837890625, -0.007511138916015625, 0.00909423828125, 0.01042938232421875, 0.0169677734375, 0.0149383544921875, -0.0246124267578125, 0.01727294921875, 0.0305328369140625, 0.01702880859375, -0.0230560302734375, 0.011016845703125, -0.043670654296875, -0.0204315185546875, 0.01727294921875, 0.023712158203125, 0.0197906494140625, -0.0088958740234375, -0.006195068359375, 0.0176239013671875, -0.0195465087890625, -0.005306243896484375, 0.03009033203125, -0.011383056640625, 0.038421630859375, 0.00690460205078125, -0.02264404296875, 0.036773681640625, -0.0013666152954101562, -0.0064849853515625, -0.006801605224609375, -0.0009188652038574219, -0.06512451171875, 0.024749755859375, 0.0249176025390625, -0.0013151168823242188, 0.0307769775390625 ]
13c3fb4f557ab990597b13b8c3c28890b34a0308
Wordpress Stackexchange Q: Custom fields are not restored to previous revisions I have built several Wordpress websites and noticed that custom fields are not restored to previous revisions. This might cause a problem when using custom fields to store content. Anybody knows how to add the custom fields to the revision history? A: Post revisions are for the fields in the posts database table and not the postmeta database table. So if you want to create your own postmeta revision you could save the meta when the revision is made using _wp_put_post_revision and you can restore the meta using wp_restore_post_revision.
Q: Custom fields are not restored to previous revisions I have built several Wordpress websites and noticed that custom fields are not restored to previous revisions. This might cause a problem when using custom fields to store content. Anybody knows how to add the custom fields to the revision history? A: Post revisions are for the fields in the posts database table and not the postmeta database table. So if you want to create your own postmeta revision you could save the meta when the revision is made using _wp_put_post_revision and you can restore the meta using wp_restore_post_revision.
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:410784", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21400" }
[ 0.0294647216796875, -0.023101806640625, 0.0034999847412109375, -0.031829833984375, -0.01087188720703125, 0.006595611572265625, -0.0179901123046875, -0.021759033203125, 0.0006957054138183594, 0.0216064453125, -0.033782958984375, -0.026824951171875, 0.03173828125, -0.025177001953125, -0.0091705322265625, -0.0296783447265625, 0.020050048828125, 0.00043272972106933594, 0.0235748291015625, -0.00838470458984375, 0.01177978515625, -0.017059326171875, 0.0249176025390625, -0.008636474609375, 0.02960205078125, 0.0233001708984375, 0.0144500732421875, -0.02093505859375, 0.01715087890625, 0.0022869110107421875, 0.0290679931640625, -0.0298919677734375, 0.0157012939453125, -0.00862884521484375, 0.021697998046875, -0.0400390625, 0.018218994140625, -0.00400543212890625, -0.001739501953125, 0.001125335693359375, 0.0259552001953125, -0.016571044921875, -0.0034313201904296875, -0.0165863037109375, -0.0179443359375, -0.0241241455078125, 0.036376953125, -0.0261077880859375, 0.0122222900390625, 0.0258636474609375, -0.035980224609375, -0.049224853515625, -0.0291900634765625, -0.001323699951171875, -0.0202178955078125, -0.06878662109375, -0.03094482421875, 0.004985809326171875, 0.018798828125, 0.0012073516845703125, 0.0002586841583251953, -0.001636505126953125, 0.0121307373046875, 0.00524139404296875, -0.01558685302734375, 0.005645751953125, 0.044189453125, 0.008270263671875, -0.08367919921875, -0.0361328125, 0.053009033203125, -0.046142578125, 0.0227508544921875, 0.0027980804443359375, 0.019866943359375, -0.031768798828125, 0.0036602020263671875, -0.01311492919921875, 0.01222991943359375, 0.031951904296875, 0.0138397216796875, -0.003887176513671875, 0.019866943359375, -0.0400390625, -0.00848388671875, -0.0310211181640625, -0.017608642578125, 0.0031757354736328125, -0.0207366943359375, -0.04168701171875, -0.018035888671875, -0.08099365234375, -0.060638427734375, 0.03155517578125, 0.022064208984375, -0.033203125, 0.045654296875, 0.049896240234375, -0.0092926025390625, -0.02191162109375, 0.0279541015625, -0.0380859375, -0.00823211669921875, -0.0236358642578125, 0.023101806640625, 0.0170745849609375, -0.05340576171875, -0.047607421875, 0.04498291015625, 0.048980712890625, 0.00949859619140625, 0.0010938644409179688, 0.0189971923828125, -0.0595703125, 0.004329681396484375, 0.0219573974609375, 0.009307861328125, 0.0093841552734375, 0.02978515625, -0.0303802490234375, 0.00958251953125, 0.0079498291015625, -0.021392822265625, -0.035675048828125, 0.0188751220703125, -0.01922607421875, -0.04168701171875, 0.0299072265625, -0.0251312255859375, 0.047698974609375, -0.0303497314453125, 0.002262115478515625, 0.0496826171875, 0.019500732421875, -0.00855255126953125, -0.0199127197265625, 0.0131378173828125, -0.0548095703125, -0.04815673828125, 0.062103271484375, -0.07794189453125, -0.015472412109375, 0.0501708984375, -0.08740234375, -0.0233612060546875, 0.00011962652206420898, -0.0005388259887695312, 0.02911376953125, -0.00809478759765625, -0.04217529296875, 0.004978179931640625, -0.011688232421875, 0.024078369140625, 0.000033736228942871094, 0.0162200927734375, -0.04193115234375, 0.033905029296875, -0.044952392578125, 0.0247802734375, -0.039886474609375, 0.040618896484375, -0.019622802734375, -0.0217437744140625, -0.036346435546875, -0.08001708984375, 0.0357666015625, -0.0494384765625, -0.016693115234375, 0.03277587890625, 0.00925445556640625, 0.0262451171875, -0.024139404296875, 0.00809478759765625, 0.00699615478515625, 0.00252532958984375, 0.0272216796875, -0.0110321044921875, -0.004390716552734375, 0.0089874267578125, 0.038726806640625, 0.01561737060546875, -0.0242462158203125, 0.00217437744140625, 0.01145172119140625, -0.042022705078125, 0.019134521484375, -0.0030384063720703125, 0.057708740234375, 0.052581787109375, 0.01473236083984375, -0.019744873046875, -0.034912109375, -0.01180267333984375, -0.01201629638671875, 0.01800537109375, 0.01004791259765625, -0.01242828369140625, 0.0123291015625, 0.0026912689208984375, -0.00600433349609375, -0.0494384765625, -0.01456451416015625, 0.007122039794921875, 0.0196990966796875, -0.029083251953125, 0.009368896484375, -0.028656005859375, 0.03155517578125, 0.004802703857421875, 0.0214996337890625, 0.0144195556640625, 0.0008378028869628906, -0.036773681640625, 0.03759765625, -0.0206451416015625, -0.0259552001953125, -0.0032176971435546875, 0.0154876708984375, -0.002124786376953125, 0.006931304931640625, -0.007965087890625, -0.0256805419921875, -0.03570556640625, -0.00040912628173828125, 0.0011396408081054688, -0.013580322265625, -0.0168609619140625, -0.007171630859375, 0.031951904296875, -0.008270263671875, 0.0272064208984375, 0.038909912109375, 0.004154205322265625, -0.005218505859375, -0.0137481689453125, -0.0087432861328125, -0.0333251953125, -0.11407470703125, 0.01153564453125, 0.07879638671875, 0.0176849365234375, 0.0009508132934570312, -0.0352783203125, 0.0194549560546875, -0.00534820556640625, 0.00577545166015625, 0.031646728515625, 0.0036830902099609375, 0.01959228515625, 0.06329345703125, -0.007549285888671875, 0.0041046142578125, 0.00791168212890625, -0.03314208984375, 0.00832366943359375, 0.034088134765625, -0.0400390625, 0.000017464160919189453, 0.032470703125, -0.037200927734375, 0.0092010498046875, -0.023895263671875, -0.01473236083984375, -0.012359619140625, 0.052154541015625, 0.04779052734375, 0.08099365234375, 0.06732177734375, -0.01491546630859375, 0.02435302734375, -0.0083465576171875, -0.005126953125, 0.00543975830078125, -0.021575927734375, 0.0233306884765625, 0.04644775390625, -0.042205810546875, -0.01482391357421875, 0.06805419921875, 0.007633209228515625, -0.000003039836883544922, 0.0145111083984375, -0.0232086181640625, -0.0095367431640625, -0.00009459257125854492, -0.0557861328125, -0.00371551513671875, 0.0172576904296875, 0.0082244873046875, -0.00995635986328125, 0.0322265625, -0.0024585723876953125, -0.0104522705078125, 0.01560211181640625, 0.005298614501953125, -0.038055419921875, -0.04638671875, -0.0411376953125, 0.037139892578125, -0.044647216796875, 0.00006157159805297852, 0.07098388671875, 0.002727508544921875, 0.011993408203125, -0.00875091552734375, 0.002410888671875, -0.0182647705078125, 0.01068878173828125, -0.0200347900390625, -0.044830322265625, -0.040740966796875, -0.01611328125, 0.0478515625, 0.049346923828125, 0.037445068359375, -0.0186614990234375, 0.0240478515625, 0.044830322265625, -0.026519775390625, -0.058441162109375, -0.004108428955078125, -0.03656005859375, -0.0267791748046875, -0.0271759033203125, -0.0211639404296875, 0.01256561279296875, -0.0253143310546875, 0.01203155517578125, 0.076171875, -0.05218505859375, -0.040679931640625, -0.037109375, -0.095703125, -0.0794677734375, 0.019989013671875, 0.0017719268798828125, -0.0023212432861328125, 0.07470703125, -0.016876220703125, -0.035675048828125, -0.012786865234375, -0.054595947265625, -0.01326751708984375, -0.0009217262268066406, -0.004726409912109375, 0.0059967041015625, 0.00591278076171875, 0.02099609375, 0.01971435546875, 0.0273284912109375, -0.039306640625, -0.036773681640625, -0.01275634765625, -0.016204833984375, -0.007537841796875, 0.0291748046875, 0.01352691650390625, 0.00946807861328125, 0.037841796875, -0.0214691162109375, -0.03131103515625, 0.00969696044921875, -0.01873779296875, -0.004230499267578125, -0.0113067626953125, 0.01222991943359375, -0.03668212890625, 0.0699462890625, 0.044189453125, 0.043243408203125, 0.006443023681640625, 0.022552490234375, -0.05206298828125, -0.0021991729736328125, 0.022430419921875, -0.011260986328125, 0.0281982421875, -0.0211181640625, 0.0280609130859375, 0.0157623291015625, 0.005001068115234375, -0.0208892822265625, 0.0157928466796875, -0.060211181640625, -0.05035400390625, -0.00023162364959716797, -0.1065673828125, 0.055572509765625, -0.0699462890625, 0.010009765625, -0.043975830078125, 0.07843017578125, -0.0447998046875, -0.021087646484375, 0.0128326416015625, 0.018890380859375, -0.020599365234375, -0.005184173583984375, -0.0433349609375, -0.020172119140625, -0.09014892578125, 0.0160064697265625, 0.0205078125, -0.05322265625, -0.0163421630859375, 0.027313232421875, -0.073974609375, -0.0251007080078125, 0.016998291015625, -0.01111602783203125, 0.037841796875, 0.004268646240234375, 0.042205810546875, -0.0191802978515625, 0.02105712890625, -0.04296875, -0.116455078125, -0.0194549560546875, -0.025299072265625, 0.0693359375, 0.018310546875, -0.02587890625, -0.005615234375, 0.0699462890625, 0.029510498046875, -0.004276275634765625, 0.0246124267578125, -0.0017385482788085938, -0.0030231475830078125, -0.0162506103515625, 0.014434814453125, -0.035430908203125, -0.004638671875, -0.0189666748046875, 0.01458740234375, 0.01032257080078125, -0.050933837890625, -0.034271240234375, -0.033477783203125, -0.018524169921875, 0.0201568603515625, 0.0189971923828125, -0.0176239013671875, 0.0190887451171875, -0.0175323486328125, -0.00360870361328125, 0.0173797607421875, -0.0008330345153808594, -0.040191650390625, 0.0005850791931152344, -0.0014829635620117188, 0.04180908203125, 0.020050048828125, 0.0215911865234375, 0.005596160888671875, -0.052276611328125, 0.005130767822265625, 0.0177459716796875, -0.0176239013671875, 0.0303192138671875, 0.005428314208984375, -0.005710601806640625, 0.048370361328125, -0.0273590087890625, -0.01015472412109375, -0.034698486328125, 0.033477783203125, -0.0017557144165039062, 0.0155792236328125, -0.0159454345703125, -0.032684326171875, 0.047821044921875, 0.0164794921875, 0.00859832763671875, -0.020782470703125, 0.0169830322265625, 0.034027099609375, -0.02093505859375, 0.004459381103515625, -0.024383544921875, -0.04107666015625, 0.01166534423828125, -0.053070068359375, 0.04425048828125, 0.040496826171875, -0.01212310791015625, 0.034698486328125, -0.01055145263671875, 0.0269622802734375, -0.00701141357421875, -0.02642822265625, -0.0167999267578125, 0.033599853515625, 0.0291900634765625, 0.023345947265625, 0.007144927978515625, -0.005596160888671875, 0.0321044921875, -0.011199951171875, -0.061004638671875, 0.0143280029296875, -0.0167236328125, 0.00798797607421875, 0.0175323486328125, 0.015838623046875, 0.0166168212890625, 0.024322509765625, 0.0026607513427734375, 0.0186004638671875, 0.01064300537109375, 0.04058837890625, -0.0167236328125, 0.0421142578125, 0.01544189453125, -0.0022296905517578125, -0.018096923828125, 0.07611083984375, 0.00884246826171875, 0.0213470458984375, -0.0169830322265625, 0.064697265625, 0.04986572265625, 0.0310821533203125, 0.0018281936645507812, -0.016693115234375, 0.008636474609375, -0.01448822021484375, -0.0170745849609375, -0.025115966796875, 0.005985260009765625, 0.01009368896484375, 0.036895751953125, 0.00576019287109375, -0.01300811767578125, 0.0268096923828125, -0.0271759033203125, 0.027374267578125, 0.005443572998046875, -0.03485107421875, -0.06195068359375, 0.0250701904296875, 0.032562255859375, 0.00594329833984375, -0.0484619140625, 0.00980377197265625, -0.0193023681640625, -0.054229736328125, 0.0023517608642578125, -0.0489501953125, 0.0298614501953125, -0.045074462890625, -0.05029296875, -0.009918212890625, -0.031890869140625, -0.01387786865234375, 0.035400390625, -0.0037670135498046875, -0.00013136863708496094, -0.015625, 0.015106201171875, -0.00919342041015625, 0.0212554931640625, -0.03887939453125, 0.0088348388671875, -0.0193328857421875, 0.0034923553466796875, 0.02447509765625, -0.00977325439453125, -0.0290679931640625, -0.0035877227783203125, -0.02471923828125, -0.01125335693359375, -0.0014715194702148438, -0.0386962890625, -0.0126190185546875, -0.00994110107421875, 0.018096923828125, 0.025634765625, -0.006237030029296875, -0.01441192626953125, -0.0270843505859375, 0.00992584228515625, 0.0225372314453125, 0.055145263671875, 0.0107574462890625, 0.039794921875, -0.0007834434509277344, 0.072265625, 0.030303955078125, 0.04400634765625, -0.006977081298828125, -0.0498046875, -0.004749298095703125, -0.050628662109375, -0.030426025390625, -0.004505157470703125, 0.01003265380859375, 0.04705810546875, 0.031280517578125, -0.0021648406982421875, 0.0033416748046875, -0.0311126708984375, 0.0032215118408203125, -0.01708984375, 0.0626220703125, -0.031463623046875, -0.03173828125, 0.04107666015625, -0.0073699951171875, 0.018402099609375, 0.00243377685546875, -0.01409912109375, 0.0232086181640625, 0.00034117698669433594, 0.033416748046875, -0.0029277801513671875, -0.036468505859375, -0.0057525634765625, 0.0192718505859375, 0.0302886962890625, 0.06427001953125, -0.01517486572265625, 0.045135498046875, 0.0433349609375, 0.0183258056640625, -0.05413818359375, -0.01776123046875, 0.043701171875, 0.005382537841796875, -0.0318603515625, 0.0283660888671875, -0.013702392578125, 0.00991058349609375, 0.03338623046875, 0.0400390625, -0.09075927734375, 0.03265380859375, 0.008056640625, 0.0165252685546875, 0.028472900390625, 0.030731201171875, 0.0132293701171875, 0.034576416015625, -0.033843994140625, -0.019439697265625, -0.0237274169921875, -0.001708984375, 0.0157623291015625, -0.03631591796875, -0.016448974609375, -0.042938232421875, 0.0076904296875, 0.04736328125, -0.014862060546875, -0.033538818359375, -0.00299072265625, -0.02752685546875, 0.0200347900390625, 0.00395965576171875, -0.01427459716796875, -0.0408935546875, 0.024658203125, 0.005084991455078125, -0.0010862350463867188, 0.0203399658203125, 0.0198822021484375, 0.038482666015625, 0.0309295654296875, 0.00601959228515625, 0.010711669921875, -0.01776123046875, 0.0304107666015625, -0.02410888671875, -0.042449951171875, -0.0000979304313659668, 0.003322601318359375, -0.0102996826171875, 0.0204315185546875, 0.00981903076171875, -0.0552978515625, -0.0191802978515625, 0.005496978759765625, 0.084228515625, -0.029327392578125, -0.0294952392578125, 0.01898193359375, 0.0152130126953125, -0.00875091552734375, -0.032470703125, 0.0006580352783203125, -0.051483154296875, 0.00890350341796875, -0.044525146484375, -0.01465606689453125, 0.0142974853515625, -0.0355224609375, -0.074462890625, 0.1251220703125, 0.024749755859375, 0.0285186767578125, -0.0007433891296386719, 0.050018310546875, -0.042083740234375, 0.00933837890625, -0.02972412109375, 0.0631103515625, -0.006114959716796875, 0.0308380126953125, -0.100830078125, -0.0240020751953125, -0.01336669921875, 0.05657958984375, 0.0655517578125, 0.0166015625, -0.03533935546875, -0.016357421875, 0.034637451171875, 0.01507568359375, -0.017791748046875, 0.04779052734375, -0.0102691650390625, 0.016845703125, 0.058868408203125, -0.0259552001953125, 0.02130126953125, 0.0426025390625, -0.021240234375, 0.00617218017578125, -0.006557464599609375, -0.0229644775390625, -0.017303466796875, 0.01010894775390625, -0.0129241943359375, -0.0170440673828125, -0.003124237060546875, 0.004184722900390625, 0.0132293701171875, 0.01140594482421875, 0.0367431640625, 0.01320648193359375, -0.0120086669921875, -0.0026950836181640625, 0.03656005859375, 0.0236968994140625, 0.04571533203125, 0.031982421875, 0.0293426513671875, 0.011627197265625, -0.006984710693359375, 0.03485107421875, 0.0134124755859375, -0.0268707275390625, 0.057891845703125, 0.0235748291015625, 0.0024547576904296875, -0.00801849365234375, 0.055694580078125, 0.0006632804870605469, 0.04705810546875, -0.0660400390625, -0.03125, 0.01131439208984375, 0.00846099853515625, -0.006046295166015625, -0.010650634765625, -0.0197296142578125, -0.017913818359375, 0.01462554931640625, -0.0275726318359375, 0.003925323486328125, 0.033599853515625, -0.00440216064453125, 0.0030956268310546875, 0.01111602783203125, -0.0241546630859375, 0.0155181884765625, -0.05133056640625, -0.0017766952514648438, -0.0035266876220703125, 0.031890869140625, 0.065673828125, 0.0200958251953125, 0.0855712890625, -0.02374267578125, -0.01226806640625, 0.02783203125, 0.01381683349609375, 0.011322021484375, -0.037689208984375, -0.048065185546875, 0.031982421875, 0.040618896484375, 0.024017333984375, 0.0123748779296875, 0.08026123046875, 0.0533447265625, -0.0538330078125, -0.0142822265625, 0.018768310546875, -0.0222930908203125, 0.0081939697265625, -0.01425933837890625, -0.00537872314453125, 0.00937652587890625, -0.0036163330078125, -0.0137939453125, -0.0096435546875, 0.02911376953125, 0.00548553466796875, 0.041748046875, 0.005138397216796875, -0.01068878173828125, 0.034149169921875, 0.012542724609375, 0.060455322265625, 0.0369873046875, -0.00460052490234375, 0.00804901123046875, -0.0361328125, -0.0325927734375, -0.00528717041015625, 0.03179931640625, -0.0010461807250976562, 0.03076171875, -0.0130615234375, -0.0472412109375, -0.005340576171875, 0.01433563232421875, 0.0301666259765625, 0.0305328369140625, -0.0226898193359375, 0.0009665489196777344, -0.06207275390625, -0.028167724609375, -0.0184478759765625, 0.01409912109375, -0.0055999755859375, 0.07513427734375, 0.0006580352783203125, 0.019622802734375, -0.023834228515625, 0.0290679931640625, -0.035858154296875, -0.0235748291015625, 0.0245361328125, -0.00359344482421875, 0.003955841064453125, -0.012481689453125, -0.01090240478515625, 0.007160186767578125, 0.046356201171875, -0.03564453125, -0.0017070770263671875, 0.00998687744140625, 0.01313018798828125, -0.04119873046875, -0.056884765625, -0.047821044921875, -0.01136016845703125, 0.005184173583984375, -0.0157012939453125, -0.00800323486328125, -0.051910400390625, 0.009490966796875, -0.0014095306396484375, 0.0364990234375, -0.0482177734375, 0.02386474609375, -0.019775390625, 0.03558349609375, 0.0408935546875, 0.040374755859375, 0.01885986328125, 0.05963134765625, -0.011566162109375, 0.0294342041015625, 0.022308349609375, 0.029296875, 0.046295166015625, -0.053680419921875, 0.005496978759765625, 0.006977081298828125, 0.03466796875, -0.00762939453125, 0.01152801513671875, -0.024566650390625, 0.0163116455078125, 0.0038852691650390625, -0.0024166107177734375, -0.021209716796875, -0.0269927978515625, -0.01776123046875, 0.00959014892578125, -0.031097412109375, -0.041259765625, -0.059600830078125, 0.020965576171875, 0.031524658203125, 0.0283203125, -0.061798095703125, 0.059661865234375, -0.024169921875, -0.002105712890625, 0.02227783203125, -0.048370361328125, 0.020263671875, 0.054168701171875, 0.003086090087890625, -0.0012083053588867188, -0.02001953125, -0.010040283203125, -0.00518798828125, 0.026336669921875, 0.0139617919921875, -0.01335906982421875, -0.01424407958984375, 0.027740478515625, 0.0157470703125, 0.050262451171875, 0.02679443359375, -0.0259552001953125, 0.02325439453125, 0.00531005859375, -0.01300811767578125, -0.055389404296875, 0.0012359619140625, -0.049530029296875, 0.016448974609375, -0.048919677734375, 0.03497314453125, 0.043121337890625, -0.0127105712890625, -0.05584716796875, -0.0004119873046875, -0.020294189453125, -0.023406982421875, -0.0684814453125, -0.0158843994140625, -0.01541900634765625, 0.06634521484375, -0.00800323486328125, -0.040191650390625, -0.0274505615234375, 0.059173583984375, 0.00136566162109375, 0.037567138671875, 0.004131317138671875, 0.03497314453125, -0.0219268798828125, 0.004543304443359375, -0.0142974853515625, -0.020050048828125, 0.016510009765625, -0.0095672607421875, 0.006839752197265625, 0.025421142578125, -0.061309814453125, -0.07440185546875, -0.03472900390625, 0.02459716796875, -0.025177001953125, -0.041412353515625, -0.01313018798828125, -0.03643798828125, 0.044921875, 0.0293121337890625, -0.0089263916015625, -0.017791748046875, 0.0209503173828125, 0.00036835670471191406, -0.0310516357421875, -0.0269927978515625, 0.01071929931640625, -0.047515869140625, -0.03271484375, -0.020233154296875, 0.01263427734375, 0.0084686279296875, -0.0313720703125, 0.0090484619140625, -0.007320404052734375, 0.02337646484375, 0.0135498046875, -0.044281005859375, 0.0379638671875, 0.01279449462890625, -0.02435302734375, -0.016387939453125, 0.0059661865234375, -0.0163421630859375, 0.004657745361328125, 0.013031005859375, 0.03265380859375, -0.040191650390625, -0.00397491455078125, 0.008941650390625, 0.013885498046875, 0.0244903564453125, -0.0007953643798828125, -0.0716552734375, -0.0028743743896484375, 0.007694244384765625, -0.0181427001953125, -0.0178070068359375, 0.01015472412109375, 0.016571044921875, -0.01265716552734375, 0.07305908203125, -0.0128021240234375, -0.006862640380859375, -0.012115478515625, 0.025146484375, -0.0506591796875, 0.004268646240234375, -0.0201568603515625, -0.014251708984375, -0.01311492919921875, -0.004062652587890625, -0.03448486328125, -0.056854248046875, 0.031524658203125, 0.000025093555450439453, -0.007526397705078125, 0.0183868408203125 ]
4400012cbf1d5404b63a9cce3f254ac5f72d9884
Wordpress Stackexchange Q: Why isn't is_page working when I put it in the functions.php file? I have page called "Apple", the page's ID id 2533. In page.php file I have line: echo $bannerimg And this function in functions.php: if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } The point is the $bannerimg echoes "home.jpg" on every page, including Apple, test and admissions. I've even checked all the IDs using the_ID & $page->ID. Nothing. So I guess there's something wrong with the code above? A: get_header should work if you want to leave it in functions.php add_action('get_header', function() { if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } });
Q: Why isn't is_page working when I put it in the functions.php file? I have page called "Apple", the page's ID id 2533. In page.php file I have line: echo $bannerimg And this function in functions.php: if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } The point is the $bannerimg echoes "home.jpg" on every page, including Apple, test and admissions. I've even checked all the IDs using the_ID & $page->ID. Nothing. So I guess there's something wrong with the code above? A: get_header should work if you want to leave it in functions.php add_action('get_header', function() { if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } }); A: Extending what @Rarst posted and you commented , a more elegant solution would be to create your own filter inside page.php and hook to it from a function inside the functions.php, for example: in you page.php $bannerimg = apply_filters('my_bannerimg','defualt_img.jpg'); and in your functions.php add_filter('my_bannerimg','what_page_is_it'); function what_page_is_it($img){ if ( is_page( '2533' ) ) { return 'apple.jpg'; } elseif ( is_page( 'test' ) ) { return 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { return 'admissions.jpg'; } else { return 'home.jpg'; } } A: functions.php is processed way before you can know which page is being loaded. Instead of assigning value to variable put your code into function and use that function in page.php template. A: Add this to your functions.php, change name of script someCode and name of page: add_action('wp_enqueue_scripts', 'wpt_theme_js'); function wpt_theme_js() { if ( is_page('somePage') ) { wp_enqueue_script('someCode_js', get_template_directory_uri() . '/js/someCode.js', '', '', true); } } A: In functions.php is_page() with the add_action('wp', 'your_function_name'); works fine. A: Have you correctly declared wp_head(); etc in your theme? Also, is_page accepts an ID without quotes. The problem may also be the fact you are already on the page template so it is a page, you may be better of querying the $post->ID or set up page-apple.php A: You need to call your function at a point in the WordPress process after the Query is set up. In functions.php: function mytheme_get_banner_img() { if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } return $bannerimg; } Then, in your page.php template file, wherever you need to return/output $bannerimg: <?php $bannerimg = mytheme_get_banner_img(); ?> Then, you can do whatever you need to with $bannerimg: drop it in an <img> tag, etc. A: if( is_page('Vehicle') ) { // code here } this will definitely work on page.php file please move there and check. [NB]: // replace your page id | slug | array with Vehicle A: You need to hook the wp function. Important note: Note that if you hook to the init function, is_page will not work add_filter('wp', 'pre_fix_function_is_page'); function pre_fix_function_is_page() { if ( is_page( '2533' ) ) { // also tested with 'Apple' $bannerimg = 'apple.jpg'; } elseif ( is_page( 'test' ) ) { $bannerimg = 'test.jpg'; } elseif ( is_page( 'admissions' ) ) { $bannerimg = 'admissions.jpg'; } else { $bannerimg = 'home.jpg'; } }
wordpress
{ "language": "en", "length": 595, "provenance": "stackexchange_00019.jsonl.gz:410788", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21418" }
[ 0.06402587890625, 0.0281829833984375, -0.0218048095703125, -0.0283050537109375, 0.042388916015625, -0.041015625, 0.0185394287109375, -0.037933349609375, -0.0105133056640625, -0.0028324127197265625, -0.0692138671875, 0.019287109375, -0.06488037109375, 0.0004558563232421875, -0.007526397705078125, -0.061431884765625, 0.0311126708984375, -0.0251007080078125, 0.0151519775390625, -0.0138702392578125, 0.00850677490234375, -0.0012292861938476562, 0.00634002685546875, -0.01287841796875, 0.055145263671875, -0.044891357421875, 0.00467681884765625, -0.0039005279541015625, 0.0200347900390625, -0.02252197265625, 0.0322265625, 0.03643798828125, 0.0142822265625, 0.0224456787109375, 0.0039215087890625, 0.044158935546875, 0.025787353515625, 0.024932861328125, 0.0209503173828125, 0.03155517578125, 0.04107666015625, -0.0246429443359375, 0.009674072265625, 0.0171661376953125, 0.0033321380615234375, -0.004993438720703125, 0.0132904052734375, -0.04425048828125, 0.00021564960479736328, 0.036590576171875, 0.0203857421875, 0.0167694091796875, 0.00907135009765625, 0.0706787109375, -0.00279998779296875, 0.0070953369140625, -0.056488037109375, 0.045867919921875, 0.03271484375, 0.0037555694580078125, -0.023712158203125, -0.025421142578125, 0.007404327392578125, -0.0233917236328125, -0.01117706298828125, -0.00832366943359375, -0.0615234375, 0.0205841064453125, -0.055816650390625, -0.02716064453125, 0.033294677734375, -0.0433349609375, 0.0002899169921875, -0.01331329345703125, -0.0301666259765625, -0.01245880126953125, 0.01849365234375, -0.02099609375, -0.0128021240234375, 0.006893157958984375, -0.0164031982421875, -0.0195465087890625, -0.0239105224609375, 0.043853759765625, -0.02197265625, 0.06427001953125, -0.01001739501953125, -0.032562255859375, -0.006336212158203125, 0.01044464111328125, -0.0280914306640625, 0.00693511962890625, 0.03411865234375, -0.034576416015625, -0.035736083984375, -0.0154571533203125, 0.03656005859375, 0.05181884765625, -0.0249176025390625, -0.03204345703125, 0.0216064453125, -0.044464111328125, 0.0214996337890625, -0.039306640625, 0.016998291015625, 0.0865478515625, 0.0072174072265625, -0.00548553466796875, 0.0229644775390625, -0.00860595703125, 0.011260986328125, -0.0347900390625, -0.01197052001953125, -0.0266876220703125, -0.020233154296875, 0.01849365234375, -0.0391845703125, -0.0102996826171875, 0.0017709732055664062, 0.007289886474609375, -0.00257110595703125, 0.01464080810546875, 0.0428466796875, -0.015960693359375, 0.0204010009765625, 0.03009033203125, -0.01441192626953125, -0.040740966796875, 0.0546875, -0.0043487548828125, -0.038848876953125, -0.0030517578125, 0.043609619140625, 0.006076812744140625, 0.00806427001953125, -0.01107025146484375, 0.0113677978515625, -0.030609130859375, -0.016998291015625, 0.037994384765625, -0.005207061767578125, -0.06689453125, 0.0014743804931640625, 0.00951385498046875, -0.043426513671875, 0.03192138671875, 0.0302886962890625, 0.0001646280288696289, -0.037506103515625, -0.0799560546875, 0.036895751953125, -0.07159423828125, 0.006565093994140625, 0.021087646484375, -0.036376953125, 0.0130767822265625, -0.0308380126953125, 0.021820068359375, -0.0002696514129638672, -0.0035190582275390625, 0.0323486328125, -0.001903533935546875, 0.0172271728515625, -0.0230865478515625, -0.027587890625, -0.0176239013671875, -0.0625, -0.0005779266357421875, 0.0222320556640625, 0.016876220703125, -0.0150299072265625, 0.0343017578125, 0.040557861328125, 0.022552490234375, 0.01036834716796875, 0.00301361083984375, 0.00492095947265625, -0.0169219970703125, 0.045867919921875, 0.027557373046875, -0.0345458984375, -0.0252227783203125, 0.041900634765625, -0.03240966796875, -0.05517578125, 0.053314208984375, -0.0284271240234375, 0.004459381103515625, 0.034423828125, -0.006381988525390625, 0.032928466796875, 0.0199737548828125, -0.054656982421875, 0.0095062255859375, 0.003204345703125, -0.0145416259765625, 0.009735107421875, -0.00969696044921875, 0.0015420913696289062, 0.0090179443359375, -0.01470184326171875, -0.01250457763671875, -0.01163482666015625, 0.0283966064453125, -0.0035266876220703125, -0.033416748046875, 0.003276824951171875, 0.0202484130859375, -0.00389862060546875, 0.0293121337890625, 0.01611328125, 0.01593017578125, -0.025146484375, 0.00501251220703125, 0.006877899169921875, 0.01306915283203125, -0.0195159912109375, 0.0146484375, -0.03375244140625, -0.00170135498046875, -0.046600341796875, -0.044403076171875, -0.04559326171875, 0.0302734375, 0.018157958984375, 0.03887939453125, -0.0394287109375, 0.01255035400390625, -0.03216552734375, 0.0289459228515625, -0.041290283203125, 0.024444580078125, 0.0104522705078125, -0.0147705078125, -0.052337646484375, -0.021575927734375, -0.038787841796875, -0.06427001953125, 0.0222625732421875, 0.07330322265625, 0.041839599609375, 0.00917816162109375, 0.007221221923828125, 0.01421356201171875, 0.046600341796875, -0.0184173583984375, -0.00812530517578125, -0.00934600830078125, -0.028167724609375, -0.006839752197265625, -0.010711669921875, 0.0285797119140625, 0.038848876953125, -0.0072479248046875, -0.0227813720703125, 0.0609130859375, -0.043243408203125, -0.018585205078125, -0.04132080078125, 0.00658416748046875, 0.00275421142578125, -0.0239715576171875, 0.006145477294921875, -0.0218505859375, 0.01531219482421875, -0.0191650390625, 0.00783538818359375, -0.0120849609375, -0.01320648193359375, -0.00395965576171875, 0.01129913330078125, -0.01557159423828125, -0.0007410049438476562, 0.0194091796875, 0.045440673828125, -0.01306915283203125, -0.0248260498046875, -0.01043701171875, 0.0016422271728515625, -0.004116058349609375, -0.02093505859375, 0.0186614990234375, -0.0150146484375, -0.01470184326171875, -0.01244354248046875, -0.06927490234375, 0.00199127197265625, 0.0095367431640625, 0.005725860595703125, 0.036865234375, 0.045867919921875, 0.0638427734375, 0.0142974853515625, 0.0452880859375, -0.0455322265625, 0.0182647705078125, -0.0038547515869140625, -0.01739501953125, 0.0099029541015625, -0.0026264190673828125, 0.033905029296875, 0.05474853515625, 0.010833740234375, 0.0031147003173828125, -0.0123443603515625, -0.002521514892578125, 0.0020389556884765625, -0.0118255615234375, -0.036651611328125, -0.056793212890625, 0.036102294921875, 0.03192138671875, 0.0144195556640625, 0.0853271484375, -0.02880859375, -0.081298828125, 0.0036296844482421875, 0.0029888153076171875, -0.112548828125, -0.13623046875, -0.0306854248046875, -0.01496124267578125, 0.00004673004150390625, 0.01245880126953125, 0.0009179115295410156, 0.01275634765625, -0.00922393798828125, -0.006683349609375, -0.0219573974609375, 0.01526641845703125, -0.013092041015625, -0.042572021484375, -0.043701171875, -0.048919677734375, 0.00606536865234375, 0.01131439208984375, -0.006053924560546875, -0.006092071533203125, -0.0065765380859375, -0.024932861328125, -0.002689361572265625, 0.0711669921875, 0.01387786865234375, -0.00921630859375, -0.0048370361328125, -0.046600341796875, 0.0000034570693969726562, -0.00955963134765625, 0.0400390625, -0.009368896484375, 0.0026226043701171875, 0.0005936622619628906, -0.057159423828125, -0.0165557861328125, -0.031982421875, 0.0095062255859375, 0.08148193359375, -0.032989501953125, -0.03692626953125, -0.051605224609375, -0.07525634765625, 0.002902984619140625, -0.0728759765625, 0.06768798828125, 0.0810546875, -0.0171966552734375, 0.0362548828125, -0.014892578125, -0.015472412109375, -0.00702667236328125, -0.0029277801513671875, -0.021484375, 0.03155517578125, -0.01617431640625, -0.0072784423828125, 0.006748199462890625, -0.015411376953125, -0.0297698974609375, 0.0270538330078125, -0.01287078857421875, 0.01139068603515625, 0.006633758544921875, 0.0011396408081054688, -0.0408935546875, 0.01532745361328125, -0.0126495361328125, -0.040740966796875, 0.01861572265625, -0.01200103759765625, 0.01580810546875, -0.01068878173828125, 0.026885986328125, -0.0465087890625, -0.0288848876953125, 0.007404327392578125, 0.0258941650390625, -0.055206298828125, -0.0141143798828125, -0.031768798828125, 0.0178680419921875, 0.0129547119140625, 0.0011539459228515625, -0.01245880126953125, 0.004680633544921875, -0.0140228271484375, 0.01258087158203125, 0.0155487060546875, -0.0149993896484375, 0.018157958984375, -0.00519561767578125, -0.016265869140625, 0.06341552734375, -0.00946044921875, 0.04144287109375, 0.0170135498046875, -0.035888671875, -0.07061767578125, -0.01496124267578125, 0.02423095703125, 0.0176544189453125, -0.0189971923828125, 0.011260986328125, -0.0299224853515625, 0.0400390625, -0.0011129379272460938, 0.03460693359375, 0.0214385986328125, 0.031097412109375, 0.030303955078125, -0.048370361328125, 0.006786346435546875, -0.0252838134765625, 0.0124359130859375, 0.0166778564453125, -0.033660888671875, 0.004535675048828125, -0.013916015625, -0.0340576171875, 0.041015625, -0.04095458984375, -0.034454345703125, -0.000885009765625, 0.031890869140625, 0.0226287841796875, 0.01294708251953125, -0.00015842914581298828, -0.00667572021484375, -0.004421234130859375, 0.0293121337890625, -0.029296875, -0.01207733154296875, -0.00787353515625, 0.052734375, 0.01861572265625, -0.0100250244140625, 0.01418304443359375, 0.047454833984375, 0.026519775390625, -0.0531005859375, 0.07501220703125, 0.02734375, -0.0235595703125, 0.07843017578125, -0.01230621337890625, -0.007732391357421875, 0.00943756103515625, 0.060333251953125, 0.01439666748046875, -0.0102386474609375, 0.01335906982421875, 0.031158447265625, -0.0192108154296875, 0.034576416015625, -0.00899505615234375, 0.0081787109375, -0.01129913330078125, 0.0190582275390625, -0.013946533203125, -0.006061553955078125, -0.049346923828125, 0.007320404052734375, -0.00531005859375, -0.00041031837463378906, 0.054290771484375, 0.0035572052001953125, 0.017791748046875, 0.006206512451171875, 0.03875732421875, -0.0011138916015625, 0.02935791015625, 0.0174713134765625, -0.050750732421875, 0.024627685546875, 0.0004901885986328125, -0.03900146484375, 0.0256195068359375, 0.0159759521484375, -0.0052032470703125, 0.006816864013671875, -0.0079193115234375, -0.056060791015625, 0.00861358642578125, -0.020111083984375, -0.02203369140625, 0.045867919921875, 0.0185394287109375, -0.021331787109375, 0.01013946533203125, -0.003719329833984375, 0.0167388916015625, 0.00519561767578125, -0.0111846923828125, -0.035064697265625, 0.00867462158203125, -0.03350830078125, -0.0096893310546875, 0.01287841796875, 0.023040771484375, -0.011260986328125, -0.0266876220703125, 0.006641387939453125, 0.0325927734375, 0.0214996337890625, 0.0162353515625, -0.0077362060546875, 0.004833221435546875, -0.0028781890869140625, 0.0260162353515625, -0.0234375, 0.0254669189453125, -0.00039005279541015625, 0.041778564453125, -0.021209716796875, -0.041229248046875, 0.01209259033203125, -0.0435791015625, -0.01934814453125, 0.05853271484375, 0.041748046875, -0.024261474609375, -0.04168701171875, -0.019256591796875, 0.035858154296875, 0.0166473388671875, -0.007534027099609375, -0.0244293212890625, -0.02532958984375, 0.00927734375, -0.0110626220703125, -0.0308837890625, 0.0258026123046875, 0.0167999267578125, 0.0175933837890625, -0.0390625, -0.021759033203125, 0.02911376953125, 0.057464599609375, -0.045928955078125, -0.029876708984375, 0.029296875, 0.0017957687377929688, 0.048553466796875, -0.038848876953125, -0.03863525390625, -0.03253173828125, -0.010467529296875, 0.05596923828125, 0.036285400390625, -0.06158447265625, 0.014984130859375, -0.03228759765625, -0.00922393798828125, -0.0200347900390625, -0.0267333984375, -0.039031982421875, -0.01210784912109375, -0.000682830810546875, 0.031341552734375, -0.0240631103515625, -0.0198211669921875, -0.005237579345703125, 0.0241241455078125, 0.01849365234375, 0.07086181640625, -0.0025844573974609375, 0.05810546875, 0.0218963623046875, 0.01471710205078125, 0.03887939453125, 0.040802001953125, -0.019775390625, -0.033447265625, -0.0130157470703125, -0.0272064208984375, 0.0273590087890625, -0.0073394775390625, 0.033538818359375, -0.00159454345703125, 0.03839111328125, 0.01430511474609375, 0.01288604736328125, -0.0015172958374023438, 0.006137847900390625, -0.022674560546875, -0.019927978515625, -0.048858642578125, -0.03790283203125, 0.0124053955078125, -0.0266876220703125, -0.052154541015625, 0.03955078125, 0.00850677490234375, 0.012908935546875, 0.0106048583984375, -0.002948760986328125, -0.01324462890625, -0.03741455078125, 0.05548095703125, 0.06317138671875, -0.0167083740234375, 0.045928955078125, -0.0008993148803710938, 0.0125885009765625, 0.052215576171875, 0.033935546875, 0.032928466796875, -0.040435791015625, 0.050201416015625, -0.01104736328125, -0.00667572021484375, 0.01190948486328125, -0.032379150390625, -0.0005221366882324219, 0.0135040283203125, 0.026611328125, -0.0158538818359375, -0.00754547119140625, -0.01325225830078125, -0.02471923828125, 0.04779052734375, -0.0184783935546875, 0.0416259765625, 0.035919189453125, 0.042266845703125, -0.0214080810546875, -0.0174102783203125, 0.0252685546875, -0.043548583984375, 0.0161895751953125, 0.0027370452880859375, 0.03497314453125, -0.002559661865234375, -0.048126220703125, -0.035064697265625, 0.054595947265625, -0.038360595703125, -0.01290130615234375, 0.0177764892578125, -0.0081329345703125, -0.02276611328125, -0.0653076171875, -0.0108642578125, 0.01556396484375, -0.05438232421875, 0.0236053466796875, 0.0163421630859375, 0.0215911865234375, -0.007190704345703125, 0.0225830078125, -0.030487060546875, -0.035430908203125, -0.0108642578125, -0.041656494140625, 0.00960540771484375, 0.036865234375, 0.0297088623046875, -0.05078125, 0.0291900634765625, -0.04132080078125, 0.01611328125, -0.023284912109375, -0.0589599609375, 0.0770263671875, -0.026947021484375, -0.003326416015625, 0.00360107421875, 0.0197296142578125, -0.0146026611328125, -0.0033397674560546875, 0.0223846435546875, -0.052154541015625, -0.042510986328125, 0.005168914794921875, -0.0484619140625, -0.015716552734375, -0.038177490234375, -0.0572509765625, 0.07025146484375, -0.01413726806640625, 0.060302734375, -0.00128936767578125, 0.00984954833984375, 0.0106658935546875, 0.018890380859375, -0.044891357421875, -0.00006628036499023438, -0.0157928466796875, 0.06298828125, -0.03253173828125, 0.00505828857421875, 0.0098724365234375, 0.037139892578125, 0.004550933837890625, -0.006252288818359375, 0.01511383056640625, 0.0411376953125, 0.072509765625, 0.050628662109375, 0.017425537109375, -0.006587982177734375, -0.0244903564453125, -0.029754638671875, 0.0118865966796875, -0.037689208984375, 0.031768798828125, -0.072998046875, 0.0182952880859375, -0.00908660888671875, 0.0098876953125, -0.006443023681640625, -0.040496826171875, 0.007476806640625, -0.07391357421875, -0.0018367767333984375, 0.05023193359375, -0.0162200927734375, -0.03131103515625, 0.035919189453125, 0.01253509521484375, -0.0033321380615234375, -0.007251739501953125, -0.022918701171875, 0.033935546875, 0.0175628662109375, 0.018798828125, 0.0225830078125, 0.0111541748046875, 0.00991058349609375, 0.01593017578125, 0.0155181884765625, 0.019927978515625, 0.01238250732421875, 0.0225830078125, 0.061981201171875, 0.035064697265625, 0.010345458984375, 0.00994110107421875, 0.057647705078125, 0.050506591796875, -0.0180511474609375, -0.002689361572265625, -0.00351715087890625, -0.00798797607421875, 0.0181732177734375, 0.0018148422241210938, 0.03656005859375, 0.006053924560546875, -0.00762939453125, -0.034820556640625, 0.0166168212890625, 0.0318603515625, 0.0104217529296875, 0.01016998291015625, 0.0098114013671875, -0.051177978515625, 0.0099334716796875, -0.058074951171875, 0.0294952392578125, 0.013031005859375, 0.039154052734375, -0.01050567626953125, 0.08245849609375, 0.018707275390625, -0.004978179931640625, -0.06072998046875, 0.040252685546875, -0.029083251953125, 0.0831298828125, -0.10675048828125, -0.040740966796875, 0.0301361083984375, 0.07476806640625, 0.02008056640625, -0.00485992431640625, 0.0269622802734375, 0.018829345703125, -0.035736083984375, 0.0008654594421386719, 0.06292724609375, -0.02294921875, 0.042144775390625, -0.0189208984375, -0.00865936279296875, -0.0171661376953125, -0.040771484375, -0.031982421875, 0.0176544189453125, 0.0222625732421875, 0.003131866455078125, 0.00925445556640625, 0.0250244140625, -0.03411865234375, 0.007770538330078125, 0.03692626953125, 0.0300140380859375, 0.040283203125, -0.0843505859375, -0.053131103515625, 0.025726318359375, -0.005218505859375, 0.007289886474609375, 0.03216552734375, -0.0020198822021484375, 0.006816864013671875, 0.0307159423828125, -0.0029697418212890625, 0.002948760986328125, 0.00896453857421875, -0.00981903076171875, -0.005283355712890625, 0.04754638671875, 0.00873565673828125, 0.053131103515625, 0.02777099609375, 0.05694580078125, 0.004535675048828125, 0.03076171875, -0.01393890380859375, 0.0024509429931640625, 0.0137786865234375, 0.0174560546875, 0.021881103515625, -0.018310546875, -0.0258941650390625, 0.08575439453125, -0.031524658203125, -0.01416778564453125, -0.006046295166015625, -0.043853759765625, 0.02874755859375, -0.0014495849609375, 0.0008988380432128906, 0.02630615234375, -0.0237274169921875, 0.01242828369140625, 0.023162841796875, 0.036956787109375, -0.01505279541015625, -0.0428466796875, -0.043609619140625, 0.01611328125, 0.0298614501953125, 0.054901123046875, -0.01080322265625, 0.0657958984375, 0.01084136962890625, -0.00139617919921875, 0.007373809814453125, -0.0430908203125, 0.0120849609375, 0.0248870849609375, 0.0215911865234375, -0.0211181640625, -0.0106353759765625, 0.0084991455078125, -0.0031070709228515625, 0.02886962890625, -0.0121917724609375, 0.028167724609375, -0.01554107666015625, 0.02947998046875, 0.0172882080078125, -0.0082244873046875, -0.0712890625, -0.039031982421875, 0.0909423828125, -0.0173187255859375, 0.020172119140625, -0.0310821533203125, -0.0234527587890625, -0.04046630859375, 0.00014460086822509766, 0.01561737060546875, -0.0161285400390625, -0.0119476318359375, -0.0192108154296875, -0.0260467529296875, 0.0002872943878173828, -0.0203094482421875, -0.00969696044921875, 0.012176513671875, -0.0277862548828125, 0.003910064697265625, -0.0203399658203125, 0.023468017578125, -0.038055419921875, -0.038116455078125, -0.082275390625, -0.0189666748046875, -0.05291748046875, 0.013641357421875, -0.035186767578125, 0.0228424072265625, 0.058807373046875, -0.0227508544921875, -0.036285400390625, -0.0184173583984375, 0.006183624267578125, 0.032989501953125, -0.0244140625, -0.0298919677734375, 0.00020265579223632812, -0.01425933837890625, -0.00392913818359375, 0.012725830078125, 0.0020465850830078125, 0.0197906494140625, -0.05291748046875, -0.01727294921875, 0.0269317626953125, 0.0269775390625, -0.036468505859375, -0.0655517578125, -0.0213775634765625, 0.004985809326171875, -0.0498046875, 0.0149993896484375, 0.016754150390625, -0.027496337890625, 0.0274658203125, 0.0091400146484375, -0.0306396484375, 0.004314422607421875, 0.018157958984375, 0.0151824951171875, -0.0244293212890625, 0.037811279296875, -0.005352020263671875, -0.048736572265625, 0.020416259765625, -0.00039696693420410156, -0.0034809112548828125, -0.0043182373046875, -0.0147705078125, 0.0088043212890625, 0.0098114013671875, -0.0234222412109375, -0.060333251953125, 0.0089569091796875, -0.015777587890625, 0.010650634765625, 0.00423431396484375, -0.033203125, -0.004085540771484375, 0.06512451171875, 0.032623291015625, 0.0167388916015625, -0.0175628662109375, 0.0013647079467773438, -0.00420379638671875, -0.01187896728515625, 0.00507354736328125, 0.01629638671875, -0.045654296875, -0.0029010772705078125, 0.00896453857421875, -0.02838134765625, -0.01230621337890625, 0.037506103515625, -0.06500244140625, 0.0167999267578125, 0.0104217529296875, -0.04229736328125, -0.0196685791015625, -0.062164306640625, 0.07501220703125, -0.043487548828125, -0.024658203125, -0.0009288787841796875, 0.04864501953125, 0.00818634033203125, -0.00611114501953125, 0.033203125, 0.0258331298828125, -0.053924560546875, -0.0008945465087890625, 0.01065826416015625, 0.05438232421875, -0.032135009765625, -0.048858642578125, 0.007366180419921875, 0.0032253265380859375, -0.0238189697265625, -0.01123809814453125, 0.0061187744140625, 0.02197265625, -0.02813720703125, 0.061737060546875, -0.02984619140625, 0.07354736328125, 0.01381683349609375, 0.01145172119140625, 0.0021800994873046875, 0.0037689208984375, 0.038543701171875, -0.024658203125, -0.004795074462890625, -0.003971099853515625, 0.0209808349609375, -0.040283203125, 0.031707763671875, -0.044830322265625, 0.01177978515625, 0.0256500244140625 ]
164b0fe8f974bae7f35447d58d2609a0a613a58f
Wordpress Stackexchange Q: Open Source replacement for WPML? Since WPML is not free anymore and still one of the most used Wordpress Translation Plugins, is there an open source project that keeps development going? Or something similar that replaces it? I know there are other alternatives out there, but most have different approaches or features. I for example like the fact, that every translation is in it's own post. A: Try qtranslate...I use it religiously. Has some issues like with dates and times, but I always find a solution.
Q: Open Source replacement for WPML? Since WPML is not free anymore and still one of the most used Wordpress Translation Plugins, is there an open source project that keeps development going? Or something similar that replaces it? I know there are other alternatives out there, but most have different approaches or features. I for example like the fact, that every translation is in it's own post. A: Try qtranslate...I use it religiously. Has some issues like with dates and times, but I always find a solution. A: Polylang seems to be a direct alternative to WPML. From the plugin description: Polylang allows you to create a bilingual or multilingual WordPress site. You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation of a post, whether it is in the default language or not, is optional. It even can import WPML settings with the WPML to Polylang plugin A: There is another solution being developed at the moment: http://wordpress.org/extend/plugins/multilingual-press/ Looks pretty good, but haven't tried it out yet.
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:410797", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21454" }
[ -0.0155181884765625, 0.0183868408203125, -0.0179901123046875, 0.022186279296875, -0.0024471282958984375, -0.0182037353515625, 0.010528564453125, -0.041656494140625, 0.002300262451171875, 0.0265045166015625, 0.01381683349609375, -0.031982421875, 0.0204620361328125, -0.035308837890625, -0.01165008544921875, -0.005496978759765625, 0.033172607421875, -0.023681640625, 0.0096435546875, -0.01354217529296875, -0.00514984130859375, 0.0021610260009765625, 0.01140594482421875, -0.0124664306640625, 0.02520751953125, -0.01174163818359375, 0.01239776611328125, -0.01209259033203125, -0.01593017578125, -0.0201416015625, 0.01219940185546875, 0.00952911376953125, 0.0181121826171875, 0.009521484375, -0.02154541015625, -0.067138671875, -0.039337158203125, 0.00333404541015625, -0.011138916015625, -0.0139007568359375, 0.030487060546875, -0.0254058837890625, -0.0369873046875, 0.005603790283203125, -0.015716552734375, -0.0380859375, 0.043365478515625, -0.037811279296875, 0.0093841552734375, 0.01435089111328125, 0.011871337890625, 0.01194000244140625, 0.0160369873046875, 0.014801025390625, -0.005634307861328125, -0.003986358642578125, 0.033477783203125, 0.0280914306640625, 0.020111083984375, -0.055267333984375, -0.0419921875, 0.040496826171875, 0.035980224609375, 0.053680419921875, 0.01165008544921875, -0.0011701583862304688, -0.01525115966796875, 0.0240478515625, -0.006526947021484375, -0.0027923583984375, 0.0018167495727539062, -0.0221710205078125, 0.01468658447265625, 0.0020122528076171875, -0.034088134765625, -0.00337982177734375, 0.005702972412109375, -0.0234222412109375, 0.0369873046875, -0.00453948974609375, 0.033905029296875, 0.012298583984375, 0.0250396728515625, -0.0301513671875, -0.00968170166015625, -0.041900634765625, 0.0005474090576171875, -0.0014801025390625, -0.07330322265625, -0.0296630859375, -0.028076171875, -0.01320648193359375, -0.1260986328125, 0.0066680908203125, 0.037872314453125, -0.022064208984375, 0.0018434524536132812, 0.0200042724609375, -0.02069091796875, -0.01248931884765625, -0.0018777847290039062, -0.020263671875, -0.0231781005859375, -0.01187896728515625, 0.0113067626953125, 0.0220794677734375, -0.0259552001953125, -0.042327880859375, 0.017913818359375, 0.038177490234375, -0.0155029296875, -0.00977325439453125, 0.01067352294921875, -0.033660888671875, 0.01236724853515625, 0.007232666015625, -0.030181884765625, 0.043426513671875, 0.00579071044921875, 0.0120849609375, -0.005527496337890625, -0.0112152099609375, 0.045806884765625, -0.01141357421875, 0.01233673095703125, -0.0124359130859375, -0.03167724609375, -0.002742767333984375, -0.03466796875, 0.00576019287109375, 0.00583648681640625, 0.0010766983032226562, 0.0166778564453125, 0.048736572265625, 0.00128173828125, -0.0200042724609375, 0.0345458984375, 0.03173828125, 0.035552978515625, -0.0029850006103515625, 0.01520538330078125, -0.04193115234375, -0.029998779296875, 0.048187255859375, 0.057037353515625, -0.017608642578125, 0.0305023193359375, 0.028076171875, 0.017486572265625, 0.01474761962890625, 0.026397705078125, 0.0265045166015625, 0.0196990966796875, 0.0146026611328125, 0.02166748046875, -0.0251922607421875, 0.035186767578125, -0.031219482421875, 0.0197601318359375, -0.022857666015625, -0.03692626953125, -0.02252197265625, 0.006397247314453125, -0.0211944580078125, -0.0426025390625, 0.02752685546875, 0.01678466796875, 0.00737762451171875, 0.0175628662109375, 0.006534576416015625, -0.0029850006103515625, 0.0103759765625, 0.0474853515625, -0.013214111328125, -0.019775390625, 0.00458526611328125, -0.0321044921875, 0.0275421142578125, 0.037200927734375, -0.017059326171875, 0.006526947021484375, -0.012420654296875, 0.080078125, -0.00200653076171875, -0.028594970703125, -0.0242767333984375, -0.0010013580322265625, 0.03057861328125, 0.05535888671875, 0.0234527587890625, -0.003086090087890625, -0.043365478515625, 0.005168914794921875, 0.057464599609375, -0.0018453598022460938, -0.0225830078125, -0.003765106201171875, 0.0543212890625, -0.0116424560546875, -0.08917236328125, 0.00894927978515625, 0.0220184326171875, -0.035888671875, 0.02081298828125, -0.0806884765625, 0.006809234619140625, -0.0214385986328125, 0.021148681640625, -0.01375579833984375, 0.006885528564453125, 0.0165557861328125, -0.00817108154296875, -0.024688720703125, 0.01361846923828125, -0.015472412109375, 0.0006046295166015625, -0.0114288330078125, 0.0253448486328125, 0.0362548828125, 0.018798828125, 0.043731689453125, -0.00493621826171875, 0.029205322265625, -0.01439666748046875, -0.007549285888671875, 0.01390838623046875, -0.0226593017578125, 0.002330780029296875, 0.0150604248046875, -0.0186309814453125, 0.05865478515625, 0.03790283203125, -0.0308685302734375, -0.01488494873046875, -0.00696563720703125, 0.0024967193603515625, -0.01239013671875, -0.0469970703125, 0.00988006591796875, 0.0484619140625, 0.032257080078125, -0.000048160552978515625, -0.010009765625, -0.0198822021484375, 0.09326171875, 0.047637939453125, 0.03192138671875, -0.022216796875, -0.017181396484375, 0.029815673828125, 0.006816864013671875, -0.022979736328125, -0.0006914138793945312, -0.054473876953125, -0.0215606689453125, 0.0283660888671875, -0.0223236083984375, -0.00894927978515625, 0.0237579345703125, -0.044586181640625, 0.0130157470703125, -0.0223236083984375, -0.039459228515625, 0.00902557373046875, 0.0285186767578125, -0.024078369140625, 0.042877197265625, 0.032257080078125, -0.01198577880859375, -0.03814697265625, 0.01558685302734375, 0.0184173583984375, 0.0098419189453125, 0.01702880859375, 0.03302001953125, 0.0147857666015625, 0.007843017578125, -0.0290374755859375, 0.004817962646484375, 0.00968170166015625, 0.002834320068359375, 0.048553466796875, -0.0411376953125, -0.0308990478515625, 0.017242431640625, 0.0069580078125, -0.040130615234375, -0.0174102783203125, 0.0014162063598632812, -0.036712646484375, 0.02685546875, -0.016082763671875, -0.0214385986328125, 0.03668212890625, -0.00334930419921875, -0.055755615234375, 0.025604248046875, -0.0216217041015625, 0.038543701171875, -0.025421142578125, 0.0214080810546875, 0.05596923828125, 0.005222320556640625, 0.004535675048828125, 0.0015697479248046875, 0.0255126953125, 0.0283355712890625, -0.021728515625, -0.027984619140625, 0.049407958984375, -0.11309814453125, -0.022979736328125, -0.001739501953125, 0.043182373046875, -0.061431884765625, -0.05157470703125, -0.0533447265625, -0.0084991455078125, -0.09576416015625, -0.045654296875, -0.047821044921875, -0.042266845703125, 0.01861572265625, 0.021697998046875, 0.0029087066650390625, -0.0115814208984375, 0.06060791015625, 0.0105438232421875, 0.06109619140625, -0.037994384765625, -0.06463623046875, -0.06640625, -0.0877685546875, -0.056549072265625, 0.00551605224609375, 0.0166473388671875, 0.01058197021484375, -0.0058441162109375, 0.0008602142333984375, -0.0121002197265625, 0.02606201171875, 0.0273590087890625, 0.0007386207580566406, 0.0173492431640625, 0.03057861328125, -0.035614013671875, -0.006572723388671875, -0.003643035888671875, 0.042205810546875, 0.0291290283203125, -0.0343017578125, 0.01081085205078125, 0.00569915771484375, -0.005771636962890625, 0.0120849609375, -0.05352783203125, -0.005405426025390625, 0.0112152099609375, -0.01154327392578125, -0.03997802734375, 0.01403045654296875, -0.01190948486328125, 0.00995635986328125, 0.061492919921875, -0.040130615234375, -0.01580810546875, 0.0224151611328125, 0.039581298828125, 0.047607421875, 0.0333251953125, 0.0038204193115234375, 0.018096923828125, 0.04931640625, -0.0023040771484375, 0.0232696533203125, -0.059173583984375, -0.0152587890625, -0.056060791015625, 0.0013589859008789062, -0.02734375, -0.00628662109375, 0.019439697265625, -0.038238525390625, 0.0204315185546875, -0.031829833984375, 0.07525634765625, 0.034027099609375, 0.021514892578125, -0.0161590576171875, -0.06573486328125, -0.0129852294921875, 0.10272216796875, 0.00833892822265625, -0.01177978515625, 0.0015993118286132812, -0.007572174072265625, -0.0287322998046875, 0.0037631988525390625, -0.05426025390625, 0.003986358642578125, -0.0030422210693359375, -0.024383544921875, -0.0188446044921875, -0.00185394287109375, 0.0045928955078125, 0.02593994140625, 0.0175323486328125, -0.03143310546875, 0.029571533203125, -0.034759521484375, 0.022918701171875, -0.001544952392578125, 0.006069183349609375, -0.0243988037109375, -0.01351165771484375, -0.035675048828125, -0.08416748046875, 0.0038299560546875, -0.09417724609375, 0.06951904296875, 0.0601806640625, -0.06378173828125, -0.0196990966796875, 0.009765625, -0.0021076202392578125, 0.0733642578125, -0.019439697265625, -0.0096893310546875, 0.0455322265625, 0.0013074874877929688, 0.01490020751953125, 0.00812530517578125, -0.016815185546875, -0.006008148193359375, -0.00995635986328125, 0.041351318359375, 0.0072174072265625, 0.007274627685546875, 0.02838134765625, -0.020599365234375, 0.0168914794921875, -0.025360107421875, -0.0256195068359375, 0.0190887451171875, -0.016815185546875, 0.00370025634765625, -0.0283355712890625, 0.006381988525390625, 0.03533935546875, 0.0755615234375, -0.015625, 0.0097808837890625, 0.007411956787109375, 0.003993988037109375, -0.05322265625, -0.06719970703125, -0.047149658203125, 0.03179931640625, 0.03424072265625, 0.0132598876953125, 0.0082855224609375, -0.0341796875, 0.0350341796875, 0.0219268798828125, 0.026641845703125, 0.03387451171875, -0.051239013671875, 0.0236968994140625, -0.01375579833984375, -0.000156402587890625, 0.035919189453125, -0.043670654296875, 0.0240020751953125, 0.023193359375, 0.0163116455078125, 0.014190673828125, -0.0128021240234375, 0.0228118896484375, -0.059844970703125, -0.0094451904296875, -0.041412353515625, 0.01464080810546875, -0.05242919921875, 0.00632476806640625, -0.0111236572265625, 0.00566864013671875, -0.016754150390625, -0.01015472412109375, -0.01262664794921875, 0.005970001220703125, -0.01389312744140625, 0.028656005859375, 0.029510498046875, 0.0015153884887695312, 0.0088653564453125, -0.0217437744140625, -0.00865936279296875, 0.0305023193359375, -0.00159454345703125, -0.053985595703125, 0.01593017578125, -0.0226593017578125, -0.05523681640625, 0.0134124755859375, 0.00232696533203125, 0.023101806640625, 0.049591064453125, -0.013275146484375, 0.01483154296875, 0.007808685302734375, 0.0305328369140625, -0.034332275390625, -0.026092529296875, 0.0013456344604492188, -0.0159759521484375, 0.0025119781494140625, 0.0556640625, -0.0211029052734375, 0.0231475830078125, -0.028228759765625, -0.0189666748046875, 0.006305694580078125, 0.0150909423828125, 0.01551055908203125, -0.020233154296875, 0.02197265625, -0.006343841552734375, 0.043365478515625, 0.0023822784423828125, 0.0020542144775390625, -0.0099639892578125, 0.0017423629760742188, -0.0219879150390625, -0.00032806396484375, 0.031494140625, -0.000453948974609375, -0.0285186767578125, 0.01216888427734375, 0.0509033203125, 0.004734039306640625, -0.0272216796875, -0.0131378173828125, 0.0164031982421875, 0.052154541015625, -0.01328277587890625, -0.03643798828125, -0.041839599609375, -0.03369140625, 0.04071044921875, -0.053741455078125, -0.0056610107421875, 0.0005326271057128906, 0.0197601318359375, -0.0219268798828125, -0.0287017822265625, -0.0352783203125, -0.0084991455078125, -0.01386260986328125, 0.0188751220703125, 0.040618896484375, -0.036285400390625, -0.00875091552734375, 0.00899505615234375, -0.00438690185546875, 0.013153076171875, 0.032470703125, 0.03570556640625, 0.022918701171875, -0.0386962890625, -0.047882080078125, -0.048797607421875, -0.0179443359375, -0.054534912109375, -0.024200439453125, -0.0484619140625, 0.039520263671875, 0.0291900634765625, 0.0219573974609375, 0.0162200927734375, 0.02105712890625, -0.0038509368896484375, 0.03753662109375, 0.01959228515625, 0.07489013671875, -0.0210418701171875, 0.040008544921875, 0.03143310546875, 0.0210113525390625, 0.00539398193359375, 0.037078857421875, 0.00975799560546875, -0.021514892578125, 0.048431396484375, 0.0267486572265625, -0.0472412109375, -0.056396484375, -0.0002765655517578125, -0.0295257568359375, 0.020843505859375, -0.0224456787109375, 0.01416015625, -0.00555419921875, 0.0154876708984375, -0.007663726806640625, 0.010711669921875, -0.01520538330078125, -0.02630615234375, 0.0723876953125, -0.035064697265625, 0.0462646484375, 0.0165863037109375, 0.019439697265625, 0.01141357421875, -0.040924072265625, 0.01175689697265625, 0.034149169921875, 0.016387939453125, -0.01523590087890625, 0.0287322998046875, -0.0122222900390625, 0.028564453125, 0.0092315673828125, 0.0233306884765625, 0.02740478515625, -0.002071380615234375, -0.0184783935546875, -0.0117950439453125, 0.0042266845703125, -0.017059326171875, 0.01457977294921875, -0.0018949508666992188, -0.00909423828125, -0.0007915496826171875, 0.06103515625, 0.044708251953125, -0.07177734375, -0.0009312629699707031, 0.0145111083984375, -0.0083770751953125, -0.022369384765625, 0.01178741455078125, -0.033966064453125, -0.09326171875, 0.0450439453125, -0.0147552490234375, -0.004116058349609375, -0.00011456012725830078, -0.00751495361328125, -0.003841400146484375, -0.035400390625, 0.08544921875, 0.0309600830078125, -0.031463623046875, 0.037353515625, 0.01678466796875, 0.0447998046875, -0.0606689453125, 0.0207366943359375, 0.01934814453125, 0.01473236083984375, -0.056915283203125, 0.0667724609375, -0.00965118408203125, 0.027557373046875, 0.043426513671875, 0.0268707275390625, -0.01032257080078125, 0.0205841064453125, -0.01227569580078125, 0.033935546875, -0.0305023193359375, 0.04241943359375, 0.026885986328125, -0.0263214111328125, 0.00799560546875, 0.02978515625, 0.006439208984375, 0.010833740234375, 0.003925323486328125, -0.025054931640625, -0.00513458251953125, 0.0028228759765625, 0.1015625, -0.034820556640625, -0.0232086181640625, 0.03240966796875, -0.0188751220703125, -0.02520751953125, 0.00298309326171875, -0.0075836181640625, -0.03271484375, -0.042694091796875, -0.0106048583984375, -0.07513427734375, 0.0305023193359375, -0.005321502685546875, -0.033203125, 0.06219482421875, 0.050872802734375, -0.035797119140625, 0.00598907470703125, 0.05255126953125, -0.06695556640625, 0.01447296142578125, 0.01146697998046875, 0.011444091796875, -0.057952880859375, -0.01110076904296875, 0.0173797607421875, 0.033050537109375, 0.0017938613891601562, 0.002460479736328125, 0.003894805908203125, 0.0034885406494140625, -0.01468658447265625, 0.0027008056640625, 0.0161590576171875, -0.0158538818359375, -0.01412200927734375, 0.04095458984375, -0.0027179718017578125, 0.00490570068359375, -0.0006341934204101562, -0.03033447265625, 0.0295867919921875, -0.048919677734375, -0.009674072265625, 0.006114959716796875, 0.0233917236328125, 0.0152740478515625, 0.0083160400390625, 0.0105438232421875, -0.04736328125, 0.0197296142578125, 0.027252197265625, 0.0124359130859375, 0.032470703125, -0.028564453125, -0.019683837890625, -0.01198577880859375, 0.026275634765625, -0.00848388671875, 0.0226898193359375, -0.0232391357421875, -0.0007195472717285156, -0.0199737548828125, 0.00865936279296875, 0.06256103515625, -0.07867431640625, -0.034088134765625, 0.004886627197265625, -0.02435302734375, 0.0389404296875, 0.005054473876953125, 0.038116455078125, -0.01064300537109375, 0.016693115234375, 0.045501708984375, 0.058380126953125, -0.03131103515625, -0.046112060546875, 0.007526397705078125, 0.004302978515625, 0.015716552734375, 0.0076446533203125, 0.0247650146484375, -0.04437255859375, -0.0014190673828125, 0.0206756591796875, -0.007343292236328125, 0.01140594482421875, 0.01374053955078125, -0.0006241798400878906, 0.0189361572265625, 0.00811004638671875, -0.00870513916015625, -0.0193939208984375, 0.028350830078125, 0.0306396484375, 0.04803466796875, -0.006988525390625, 0.04498291015625, -0.0283660888671875, -0.02197265625, -0.0018310546875, 0.016204833984375, -0.01166534423828125, 0.0210418701171875, -0.01739501953125, -0.033599853515625, -0.0008273124694824219, 0.033538818359375, 0.034942626953125, 0.0273895263671875, 0.00553131103515625, 0.01239013671875, 0.036895751953125, 0.01258087158203125, 0.04693603515625, -0.01055908203125, 0.01212310791015625, 0.0016727447509765625, -0.0192108154296875, 0.0111083984375, -0.038848876953125, -0.0079803466796875, 0.0143280029296875, 0.026885986328125, 0.00933074951171875, 0.031585693359375, -0.0005731582641601562, -0.01222991943359375, 0.0231475830078125, -0.0209808349609375, 0.05474853515625, 0.022247314453125, -0.041351318359375, -0.036102294921875, 0.00033164024353027344, 0.035308837890625, 0.007526397705078125, 0.0232391357421875, 0.00078582763671875, 0.0262908935546875, 0.0205230712890625, -0.0038585662841796875, 0.00949859619140625, -0.0419921875, 0.0253143310546875, -0.02056884765625, -0.0132598876953125, -0.011016845703125, 0.00991058349609375, -0.0218505859375, 0.0159149169921875, 0.074951171875, -0.0099334716796875, 0.029754638671875, -0.033660888671875, 0.036956787109375, -0.03759765625, -0.02947998046875, -0.0011463165283203125, -0.007598876953125, -0.0523681640625, 0.014373779296875, 0.0145416259765625, -0.005481719970703125, 0.005645751953125, -0.007556915283203125, 0.027313232421875, -0.01451873779296875, 0.005954742431640625, -0.0384521484375, 0.02008056640625, 0.0081329345703125, -0.019744873046875, -0.054168701171875, -0.03619384765625, -0.006526947021484375, -0.005863189697265625, -0.0131378173828125, -0.06982421875, 0.0156402587890625, 0.01715087890625, -0.040985107421875, -0.032928466796875, 0.0208892822265625, -0.042755126953125, -0.006175994873046875, 0.0290069580078125, -0.0243988037109375, -0.00797271728515625, -0.004306793212890625, -0.017242431640625, -0.006893157958984375, 0.007965087890625, 0.009765625, 0.019195556640625, -0.0171661376953125, 0.0034313201904296875, -0.040618896484375, 0.006862640380859375, -0.034698486328125, -0.00457763671875, -0.01500701904296875, 0.02935791015625, -0.0059814453125, 0.0296783447265625, -0.014129638671875, -0.006237030029296875, -0.010284423828125, 0.00131988525390625, -0.01378631591796875, -0.045684814453125, -0.068603515625, -0.0263214111328125, 0.0004982948303222656, -0.0144195556640625, 0.026611328125, -0.033782958984375, 0.0023174285888671875, -0.03790283203125, -0.01534271240234375, -0.034027099609375, 0.021942138671875, 0.0537109375, -0.033233642578125, -0.05078125, -0.0281829833984375, 0.00013053417205810547, -0.056640625, 0.033538818359375, 0.0699462890625, -0.0184173583984375, -0.01910400390625, 0.00595855712890625, 0.02496337890625, 0.0418701171875, -0.02923583984375, -0.0247039794921875, -0.022674560546875, 0.008941650390625, -0.01451873779296875, -0.056060791015625, 0.036285400390625, -0.10833740234375, -0.034149169921875, -0.036163330078125, -0.00855255126953125, -0.028076171875, -0.05059814453125, -0.07513427734375, 0.08441162109375, -0.010894775390625, -0.01340484619140625, -0.01540374755859375, -0.03985595703125, -0.0299072265625, 0.050689697265625, 0.0021839141845703125, -0.016265869140625, -0.03045654296875, 0.040618896484375, -0.00604248046875, 0.0919189453125, -0.03326416015625, 0.00969696044921875, 0.039337158203125, 0.0148468017578125, 0.0134124755859375, 0.016082763671875, -0.0124359130859375, 0.0109100341796875, -0.014373779296875, -0.0029449462890625, -0.04052734375, -0.044586181640625, -0.006717681884765625, 0.018402099609375, -0.0160675048828125, -0.00467681884765625, -0.0214691162109375, 0.00534820556640625, 0.045379638671875, 0.056121826171875, 0.007659912109375, -0.02532958984375, 0.0220184326171875, 0.0188751220703125, -0.059112548828125, -0.001453399658203125, 0.006633758544921875, -0.0232391357421875, -0.0172576904296875, -0.0154571533203125, -0.040863037109375, -0.01493072509765625, 0.003902435302734375, -0.041473388671875, 0.016510009765625, -0.00958251953125, -0.047332763671875, 0.02789306640625, 0.00507354736328125, 0.115966796875, -0.05615234375, 0.03228759765625, 0.032257080078125, 0.01080322265625, 0.08404541015625, 0.01016998291015625, 0.006420135498046875, -0.004299163818359375, 0.02569580078125, 0.0127716064453125, 0.044189453125, -0.017974853515625, 0.03692626953125, -0.0233612060546875, -0.035858154296875, 0.049957275390625, 0.04376220703125, 0.07598876953125, -0.056427001953125, 0.05157470703125, 0.056182861328125, -0.058990478515625, 0.0009212493896484375, -0.0880126953125, -0.034210205078125, 0.027191162109375, -0.04071044921875, 0.00795745849609375, -0.033721923828125, -0.00958251953125, 0.0224456787109375, 0.01325225830078125, -0.03057861328125, 0.00693511962890625, -0.01171112060546875, -0.0027675628662109375, -0.0307769775390625, -0.00873565673828125 ]
3d84717001c4df28e3a3c5c6362a0b8f28233796
Wordpress Stackexchange Q: Find out which moderator approved comment? Is there any way to find out what moderators have approved a comment, and then display that information on the front-end? e.g. John says: "This is a great article" - Approved by Admin1 A: To record the moderator that approves the comment: function wpse_comment_moderator_log( $comment ) { global $current_user; get_currentuserinfo(); update_comment_meta( $comment->comment_ID, 'approved_by', $current_user->user_login ); } add_action( 'comment_unapproved_to_approved', 'wpse_comment_moderator_log' ); To display it after the comment text: function wpse_display_moderator( $comment_text, $comment ) { $approved_by = get_comment_meta( $comment->comment_ID, 'approved_by', true ); if ( $approved_by ) { $comment_text .= " - Approved by $approved_by"; } return $comment_text; } add_filter( 'comment_text', 'wpse_display_moderator', 99, 2 );
Q: Find out which moderator approved comment? Is there any way to find out what moderators have approved a comment, and then display that information on the front-end? e.g. John says: "This is a great article" - Approved by Admin1 A: To record the moderator that approves the comment: function wpse_comment_moderator_log( $comment ) { global $current_user; get_currentuserinfo(); update_comment_meta( $comment->comment_ID, 'approved_by', $current_user->user_login ); } add_action( 'comment_unapproved_to_approved', 'wpse_comment_moderator_log' ); To display it after the comment text: function wpse_display_moderator( $comment_text, $comment ) { $approved_by = get_comment_meta( $comment->comment_ID, 'approved_by', true ); if ( $approved_by ) { $comment_text .= " - Approved by $approved_by"; } return $comment_text; } add_filter( 'comment_text', 'wpse_display_moderator', 99, 2 );
wordpress
{ "language": "en", "length": 109, "provenance": "stackexchange_00019.jsonl.gz:410811", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21497" }
[ 0.00940704345703125, -0.00545501708984375, -0.03826904296875, -0.0224761962890625, 0.00572967529296875, -0.0275115966796875, 0.006320953369140625, -0.007297515869140625, 0.02154541015625, 0.032379150390625, -0.0269317626953125, -0.0203704833984375, -0.0057525634765625, -0.015045166015625, -0.0266876220703125, -0.04913330078125, 0.00958251953125, 0.04925537109375, 0.061676025390625, 0.000354766845703125, 0.005405426025390625, 0.0183868408203125, -0.006778717041015625, -0.00719451904296875, 0.00786590576171875, -0.037384033203125, 0.146484375, 0.004673004150390625, 0.0408935546875, 0.00945281982421875, 0.0316162109375, -0.072021484375, -0.014923095703125, 0.0124969482421875, 0.024688720703125, -0.02288818359375, -0.0013027191162109375, 0.01197052001953125, 0.004566192626953125, 0.02294921875, 0.036529541015625, -0.0144805908203125, -0.00391387939453125, -0.006195068359375, -0.0032215118408203125, -0.03045654296875, 0.037139892578125, -0.0203704833984375, 0.0233612060546875, 0.03826904296875, 0.03375244140625, 0.0190277099609375, 0.02154541015625, -0.02728271484375, -0.0086822509765625, 0.0175323486328125, -0.03912353515625, 0.06158447265625, 0.023590087890625, -0.00267791748046875, -0.01387786865234375, 0.014068603515625, 0.0097808837890625, -0.0012111663818359375, 0.0021209716796875, 0.01071929931640625, 0.0421142578125, 0.0215301513671875, 0.040863037109375, -0.00704193115234375, -0.035858154296875, 0.01397705078125, -0.00588226318359375, 0.033721923828125, -0.04132080078125, -0.047760009765625, 0.02587890625, -0.0286102294921875, 0.0132293701171875, 0.0260772705078125, 0.021484375, -0.002460479736328125, -0.04931640625, 0.0030803680419921875, 0.01453399658203125, 0.036773681640625, -0.0079803466796875, -0.0377197265625, -0.026763916015625, -0.01377105712890625, -0.011749267578125, -0.071533203125, -0.0229034423828125, 0.0245361328125, 0.00498199462890625, -0.026702880859375, 0.0272216796875, 0.0628662109375, -0.0518798828125, -0.0584716796875, -0.01285552978515625, 0.0009589195251464844, -0.06427001953125, -0.01227569580078125, -0.019012451171875, 0.035308837890625, 0.01500701904296875, -0.0280914306640625, 0.0064239501953125, 0.009033203125, 0.0005321502685546875, -0.00815582275390625, -0.050933837890625, -0.0472412109375, -0.0145111083984375, 0.07208251953125, -0.0298919677734375, -0.0169525146484375, 0.01050567626953125, 0.0170745849609375, 0.001495361328125, 0.01885986328125, 0.042388916015625, -0.0234222412109375, 0.002773284912109375, 0.0041046142578125, -0.016876220703125, -0.0545654296875, -0.023193359375, 0.046722412109375, -0.03704833984375, 0.00775909423828125, 0.05401611328125, 0.006984710693359375, -0.0137481689453125, -0.02215576171875, -0.006916046142578125, 0.0149993896484375, -0.00846099853515625, 0.013763427734375, -0.007843017578125, 0.0021514892578125, 0.0266876220703125, -0.0360107421875, 0.0001647472381591797, 0.01959228515625, 0.021820068359375, -0.00647735595703125, 0.00434112548828125, -0.040740966796875, -0.032135009765625, 0.0169677734375, 0.01013946533203125, 0.00557708740234375, 0.04534912109375, -0.0091094970703125, 0.042999267578125, -0.0100250244140625, 0.0026912689208984375, -0.01441192626953125, 0.0230255126953125, 0.0193634033203125, 0.03173828125, 0.01641845703125, -0.01421356201171875, -0.0194091796875, -0.040374755859375, -0.019012451171875, 0.017486572265625, 0.00308990478515625, 0.0231475830078125, -0.0177764892578125, 0.00476837158203125, -0.007297515869140625, -0.00408172607421875, -0.0009946823120117188, -0.007457733154296875, 0.003116607666015625, -0.0004019737243652344, 0.0302886962890625, 0.007534027099609375, -0.0308837890625, -0.0242462158203125, 0.0286865234375, 0.00196075439453125, 0.000009715557098388672, 0.044281005859375, 0.0548095703125, -0.019439697265625, 0.04107666015625, -0.0220489501953125, 0.0231170654296875, 0.00006449222564697266, -0.0202484130859375, -0.01371002197265625, -0.030364990234375, -0.016326904296875, -0.01065826416015625, -0.014129638671875, 0.0172271728515625, 0.0582275390625, -0.007244110107421875, 0.01169586181640625, -0.01116180419921875, -0.0643310546875, 0.0163726806640625, -0.0234527587890625, 0.034332275390625, 0.035186767578125, 0.0287017822265625, -0.001129150390625, -0.0241241455078125, 0.004795074462890625, -0.04901123046875, -0.033905029296875, -0.016693115234375, -0.032470703125, 0.0089874267578125, -0.005825042724609375, 0.01317596435546875, 0.00450897216796875, -0.0015058517456054688, 0.006366729736328125, 0.0174407958984375, 0.0201416015625, 0.00724029541015625, -0.0141448974609375, 0.00041604042053222656, 0.036102294921875, 0.000056743621826171875, 0.01336669921875, 0.024688720703125, -0.0012426376342773438, 0.03399658203125, 0.02392578125, 0.0003237724304199219, 0.023193359375, -0.120361328125, 0.029083251953125, 0.04498291015625, 0.03076171875, 0.0222015380859375, 0.00902557373046875, 0.033477783203125, 0.0968017578125, -0.006237030029296875, 0.0054931640625, 0.00726318359375, 0.0258026123046875, 0.04180908203125, -0.044189453125, 0.0031108856201171875, 0.031982421875, -0.033233642578125, 0.0085601806640625, 0.0474853515625, -0.009063720703125, 0.0214385986328125, -0.019317626953125, 0.0335693359375, -0.026397705078125, -0.0120391845703125, 0.0289459228515625, -0.044097900390625, 0.0086669921875, -0.01085662841796875, -0.001800537109375, 0.00672149658203125, -0.041351318359375, 0.004726409912109375, 0.04034423828125, 0.0223236083984375, -0.01241302490234375, 0.040924072265625, -0.006359100341796875, -0.0020809173583984375, -0.0614013671875, 0.0154876708984375, -0.01214599609375, -0.0020008087158203125, -0.0023593902587890625, 0.05242919921875, 0.0250701904296875, -0.0124359130859375, -0.018218994140625, -0.0277252197265625, 0.016357421875, -0.0014486312866210938, -0.01641845703125, -0.03704833984375, -0.002521514892578125, 0.045806884765625, 0.01351165771484375, -0.005771636962890625, 0.0089263916015625, -0.00878143310546875, 0.00867462158203125, -0.033447265625, 0.050537109375, -0.0318603515625, 0.0458984375, 0.0699462890625, -0.0108184814453125, 0.0206298828125, -0.005359649658203125, -0.0205078125, -0.00972747802734375, -0.01556396484375, -0.01338958740234375, 0.0001512765884399414, -0.040435791015625, 0.051513671875, 0.01044464111328125, 0.039093017578125, -0.015625, -0.04278564453125, -0.0213623046875, 0.002925872802734375, -0.02191162109375, 0.0181732177734375, -0.02911376953125, -0.082275390625, -0.01519775390625, -0.03619384765625, -0.05615234375, 0.0240936279296875, -0.017486572265625, -0.0032596588134765625, -0.00218963623046875, -0.040008544921875, -0.0179901123046875, -0.03631591796875, -0.04046630859375, -0.013885498046875, -0.0006222724914550781, 0.00868988037109375, 0.01450347900390625, 0.03460693359375, -0.017181396484375, -0.0634765625, -0.036468505859375, -0.00592803955078125, -0.0086822509765625, -0.0289306640625, -0.04864501953125, 0.041961669921875, -0.030975341796875, 0.0095977783203125, 0.007083892822265625, -0.006549835205078125, -0.007183074951171875, -0.01093292236328125, 0.00522613525390625, -0.01220703125, 0.045654296875, -0.0200653076171875, -0.043487548828125, 0.0560302734375, 0.03802490234375, -0.0282745361328125, 0.0142822265625, -0.007617950439453125, -0.03289794921875, -0.07879638671875, 0.0075836181640625, -0.00464630126953125, -0.0214080810546875, -0.03656005859375, 0.051605224609375, 0.0154266357421875, 0.0237579345703125, -0.007091522216796875, 0.00336456298828125, 0.0151519775390625, 0.03997802734375, -0.033935546875, -0.0135650634765625, -0.02008056640625, 0.03759765625, -0.006008148193359375, 0.0130462646484375, -0.0300750732421875, 0.03466796875, -0.0190887451171875, -0.05584716796875, 0.06512451171875, -0.0160369873046875, 0.00475311279296875, -0.06005859375, -0.038177490234375, -0.020599365234375, 0.085205078125, -0.0253448486328125, -0.01392364501953125, -0.022918701171875, -0.0006875991821289062, -0.0172119140625, -0.023834228515625, -0.0308990478515625, -0.0064239501953125, -0.127197265625, 0.0296783447265625, -0.00862884521484375, -0.035919189453125, -0.036041259765625, 0.01149749755859375, -0.08245849609375, -0.05108642578125, 0.03167724609375, -0.03662109375, 0.0166168212890625, 0.04840087890625, -0.0221405029296875, 0.05084228515625, -0.01971435546875, -0.045745849609375, -0.0272979736328125, 0.00870513916015625, -0.08172607421875, 0.03271484375, 0.0251007080078125, 0.041046142578125, -0.015960693359375, 0.004901885986328125, 0.039306640625, -0.0006651878356933594, -0.01219940185546875, -0.0202484130859375, -0.025909423828125, -0.0154571533203125, -0.00965118408203125, -0.03753662109375, -0.007511138916015625, 0.01152801513671875, 0.01136016845703125, 0.036590576171875, -0.039031982421875, -0.018951416015625, -0.005290985107421875, -0.0210418701171875, -0.0008883476257324219, -0.0225677490234375, -0.018157958984375, 0.038604736328125, -0.025726318359375, 0.033843994140625, -0.021331787109375, -0.041534423828125, -0.006809234619140625, -0.049102783203125, -0.0068511962890625, 0.020355224609375, 0.033355712890625, 0.0284271240234375, 0.017547607421875, -0.0175933837890625, -0.0199737548828125, 0.03912353515625, 0.0169219970703125, 0.045501708984375, 0.04888916015625, -0.0181121826171875, 0.029876708984375, 0.0221405029296875, 0.004581451416015625, -0.007389068603515625, 0.0136566162109375, -0.003398895263671875, -0.02716064453125, 0.020477294921875, -0.0084075927734375, 0.009674072265625, -0.033294677734375, -0.034912109375, 0.0190582275390625, -0.0070343017578125, 0.031829833984375, -0.00354766845703125, 0.037689208984375, -0.0212249755859375, -0.0780029296875, 0.0144805908203125, -0.06292724609375, 0.05389404296875, 0.007640838623046875, 0.0048370361328125, 0.059356689453125, 0.04559326171875, -0.008544921875, -0.02032470703125, -0.0059356689453125, 0.01324462890625, 0.030731201171875, -0.032379150390625, -0.0146636962890625, -0.015960693359375, -0.00445556640625, 0.0335693359375, 0.0306549072265625, -0.037841796875, 0.00284576416015625, -0.0025768280029296875, -0.0299835205078125, 0.0004038810729980469, -0.01727294921875, 0.052886962890625, 0.04766845703125, -0.029205322265625, 0.0016450881958007812, -0.0166168212890625, -0.0196075439453125, -0.058868408203125, -0.00513458251953125, -0.0242767333984375, 0.0079498291015625, 0.0174102783203125, 0.056488037109375, -0.04376220703125, 0.055511474609375, -0.0053253173828125, 0.031524658203125, 0.0253448486328125, 0.00482177734375, 0.0279388427734375, 0.02984619140625, -0.008941650390625, -0.0211334228515625, -0.0168609619140625, -0.0010623931884765625, 0.0281524658203125, 0.03662109375, -0.0038547515869140625, 0.0740966796875, 0.0166168212890625, -0.02838134765625, -0.00537872314453125, -0.01019287109375, 0.019500732421875, 0.06463623046875, -0.0017261505126953125, 0.01012420654296875, 0.0203399658203125, 0.0003178119659423828, 0.02166748046875, 0.004573822021484375, -0.00957489013671875, -0.01526641845703125, -0.02825927734375, 0.058624267578125, -0.058807373046875, 0.001300811767578125, 0.02093505859375, -0.018524169921875, -0.0019121170043945312, -0.003543853759765625, -0.07421875, -0.03515625, 0.0080718994140625, 0.00801849365234375, 0.05511474609375, -0.003681182861328125, 0.00890350341796875, 0.005947113037109375, -0.013214111328125, 0.03387451171875, -0.00171661376953125, 0.0709228515625, 0.01311492919921875, -0.01280975341796875, -0.006755828857421875, -0.058929443359375, -0.03350830078125, -0.0176849365234375, -0.0243988037109375, -0.02459716796875, 0.00920867919921875, -0.018035888671875, -0.0034122467041015625, 0.0024261474609375, 0.01146697998046875, -0.00330352783203125, 0.04315185546875, -0.0054473876953125, 0.01593017578125, -0.01285552978515625, 0.103515625, 0.0060882568359375, 0.052703857421875, 0.03021240234375, 0.072265625, -0.037139892578125, -0.0190277099609375, 0.005725860595703125, 0.0235443115234375, -0.01428985595703125, -0.0187835693359375, 0.00409698486328125, -0.049591064453125, 0.0374755859375, -0.00975799560546875, 0.02490234375, -0.006908416748046875, -0.0008683204650878906, -0.00974273681640625, -0.01788330078125, 0.0023899078369140625, 0.0013971328735351562, 0.03558349609375, -0.015838623046875, 0.0010728836059570312, -0.023284912109375, -0.0106658935546875, 0.0087890625, -0.0017271041870117188, 0.004505157470703125, 0.0018568038940429688, -0.031341552734375, 0.0257110595703125, 0.1063232421875, -0.0012035369873046875, 0.07470703125, 0.06329345703125, 0.029693603515625, 0.07916259765625, 0.01214599609375, -0.0269927978515625, 0.013946533203125, 0.038055419921875, 0.0051422119140625, -0.01557159423828125, 0.0225372314453125, -0.01381683349609375, 0.01535797119140625, 0.005306243896484375, 0.03192138671875, -0.0582275390625, 0.034088134765625, 0.004169464111328125, 0.02716064453125, 0.06756591796875, -0.0202178955078125, -0.00791168212890625, -0.0677490234375, 0.0712890625, -0.006195068359375, 0.00982666015625, 0.0211181640625, -0.0391845703125, -0.0038242340087890625, -0.032135009765625, 0.0033168792724609375, -0.021148681640625, 0.0111541748046875, -0.045379638671875, -0.015106201171875, -0.031951904296875, -0.0311431884765625, 0.01265716552734375, 0.0034656524658203125, -0.0173797607421875, -0.0499267578125, 0.0166015625, -0.0273590087890625, -0.005733489990234375, 0.030548095703125, 0.0275726318359375, 0.01227569580078125, 0.07305908203125, -0.0044403076171875, 0.0250396728515625, 0.037750244140625, -0.042633056640625, -0.036865234375, -0.00948333740234375, 0.0238037109375, 0.0556640625, 0.04107666015625, 0.043670654296875, 0.00714874267578125, -0.047393798828125, -0.0154266357421875, -0.04779052734375, 0.0687255859375, -0.041473388671875, 0.01458740234375, 0.041595458984375, 0.02978515625, -0.03253173828125, 0.01230621337890625, -0.0234375, 0.0015554428100585938, 0.010772705078125, -0.01219940185546875, -0.038726806640625, 0.045074462890625, 0.0042266845703125, -0.0633544921875, 0.04034423828125, 0.029876708984375, 0.005687713623046875, -0.023345947265625, 0.010955810546875, -0.005672454833984375, -0.00298309326171875, -0.055267333984375, 0.07318115234375, -0.018707275390625, 0.07080078125, -0.05108642578125, -0.0004553794860839844, 0.0292816162109375, 0.0052032470703125, 0.057037353515625, 0.01959228515625, -0.025238037109375, 0.00815582275390625, 0.0276336669921875, 0.003856658935546875, -0.01947021484375, 0.0606689453125, 0.01317596435546875, 0.0268707275390625, 0.0323486328125, -0.02191162109375, 0.028533935546875, -0.046875, -0.00020897388458251953, 0.02667236328125, 0.0045928955078125, 0.02362060546875, 0.0113677978515625, 0.043212890625, -0.0008263587951660156, -0.00795745849609375, 0.0200042724609375, -0.06671142578125, 0.024383544921875, 0.03466796875, 0.034942626953125, -0.00795745849609375, 0.03472900390625, -0.01357269287109375, 0.05975341796875, -0.007598876953125, 0.01739501953125, 0.05120849609375, 0.0404052734375, -0.0117034912109375, 0.005931854248046875, 0.0156707763671875, 0.004207611083984375, -0.0237579345703125, -0.0017232894897460938, 0.01251983642578125, 0.01296234130859375, -0.04107666015625, -0.0301666259765625, 0.0273590087890625, 0.0234527587890625, -0.004756927490234375, -0.00675201416015625, 0.02874755859375, 0.0282440185546875, 0.003314971923828125, -0.0160064697265625, 0.004123687744140625, 0.028594970703125, 0.051300048828125, -0.04541015625, -0.0286865234375, 0.006793975830078125, 0.065185546875, 0.002948760986328125, -0.0237884521484375, -0.0223236083984375, -0.0633544921875, -0.03216552734375, -0.02008056640625, 0.0161285400390625, 0.004913330078125, 0.0156097412109375, 0.035308837890625, 0.0753173828125, 0.006099700927734375, 0.0009908676147460938, 0.027984619140625, -0.006683349609375, -0.0076904296875, -0.0084381103515625, -0.03656005859375, -0.017181396484375, 0.0279998779296875, 0.01166534423828125, 0.0214996337890625, 0.02825927734375, 0.00044727325439453125, -0.0308074951171875, -0.00774383544921875, 0.01221466064453125, -0.03546142578125, -0.0140380859375, -0.0662841796875, 0.047637939453125, 0.035308837890625, 0.027801513671875, 0.03759765625, -0.034881591796875, 0.06317138671875, -0.0288543701171875, 0.0191497802734375, 0.012847900390625, -0.041534423828125, -0.0234527587890625, 0.031646728515625, 0.01244354248046875, -0.0010585784912109375, -0.048431396484375, -0.0151824951171875, 0.00151824951171875, -0.019500732421875, 0.015899658203125, 0.0308990478515625, -0.028472900390625, 0.031280517578125, -0.034423828125, 0.009765625, -0.0075531005859375, 0.0019969940185546875, 0.007305145263671875, 0.056671142578125, 0.0117950439453125, 0.01336669921875, -0.06390380859375, -0.02520751953125, -0.046600341796875, 0.022186279296875, 0.03814697265625, 0.042083740234375, 0.0146331787109375, 0.04547119140625, -0.055511474609375, 0.0230865478515625, -0.05426025390625, -0.057464599609375, 0.041748046875, -0.019805908203125, -0.0233306884765625, 0.0236358642578125, -0.0382080078125, 0.05615234375, 0.017120361328125, 0.01446533203125, 0.045196533203125, 0.01081085205078125, -0.01105499267578125, -0.0269317626953125, -0.0248260498046875, -0.04119873046875, -0.0294189453125, 0.0180816650390625, 0.005733489990234375, -0.00490570068359375, 0.0014171600341796875, 0.007701873779296875, 0.04888916015625, -0.0207366943359375, 0.06231689453125, -0.031646728515625, 0.0252532958984375, -0.05218505859375, 0.02496337890625, -0.08642578125, 0.026824951171875, 0.037872314453125, -0.005168914794921875, 0.031890869140625, 0.024932861328125, -0.0162200927734375, 0.046356201171875, -0.00991058349609375, 0.005702972412109375, -0.017059326171875, 0.0482177734375, 0.0081634521484375, 0.007442474365234375, -0.039794921875, 0.0241241455078125, -0.0183563232421875, -0.0220947265625, -0.0223541259765625, -0.05712890625, 0.00746917724609375, 0.021026611328125, -0.0161590576171875, -0.006977081298828125, -0.0411376953125, -0.0303497314453125, 0.00495147705078125, -0.019378662109375, 0.0054168701171875, -0.015869140625, -0.016754150390625, -0.0039215087890625, -0.0266265869140625, 0.03912353515625, 0.00777435302734375, 0.0167999267578125, -0.03753662109375, -0.0028553009033203125, -0.002040863037109375, 0.0233917236328125, 0.01043701171875, 0.0343017578125, 0.0291748046875, -0.0201416015625, 0.0010814666748046875, 0.059661865234375, 0.005634307861328125, 0.10687255859375, 0.007595062255859375, -0.0055694580078125, 0.046966552734375, 0.003215789794921875, -0.018585205078125, -0.05615234375, -0.004077911376953125, -0.00850677490234375, 0.00380706787109375, -0.0621337890625, 0.04144287109375, 0.03948974609375, -0.02593994140625, -0.0158233642578125, 0.05792236328125, -0.033538818359375, -0.0008325576782226562, -0.060272216796875, -0.01290130615234375, 0.003009796142578125, -0.0243988037109375, -0.0250701904296875, 0.0014848709106445312, -0.0232391357421875, 0.0380859375, 0.0167083740234375, 0.0217132568359375, 0.017578125, 0.023956298828125, -0.03839111328125, 0.01396942138671875, -0.00372314453125, 0.0038318634033203125, 0.0006241798400878906, -0.0300750732421875, 0.03564453125, 0.04107666015625, -0.0300750732421875, -0.009979248046875, 0.0016183853149414062, 0.00359344482421875, -0.01531982421875, -0.016265869140625, -0.02655029296875, -0.01194000244140625, 0.035430908203125, 0.05889892578125, 0.00959014892578125, -0.0325927734375, 0.016754150390625, 0.007110595703125, -0.037261962890625, -0.013092041015625, 0.0220947265625, -0.06585693359375, -0.0312347412109375, 0.01153564453125, 0.0018453598022460938, -0.0220947265625, 0.0108489990234375, -0.024749755859375, -0.01328277587890625, 0.00705718994140625, -0.0023860931396484375, -0.01340484619140625, -0.01763916015625, 0.048675537109375, -0.0452880859375, -0.0275421142578125, -0.006641387939453125, 0.02117919921875, -0.00476837158203125, -0.06451416015625, -0.00940704345703125, 0.010589599609375, -0.00601959228515625, 0.01229095458984375, 0.01324462890625, 0.034454345703125, -0.0145416259765625, -0.0025386810302734375, 0.0019216537475585938, 0.00524139404296875, -0.01898193359375, 0.0022258758544921875, -0.002918243408203125, 0.03387451171875, -0.012451171875, 0.0225067138671875, -0.0018663406372070312, -0.00848388671875, -0.041595458984375, 0.078125, 0.00537872314453125, -0.04241943359375, 0.03948974609375, -0.053314208984375, -0.005767822265625, 0.0009946823120117188, 0.016693115234375, -0.0631103515625, 0.03582763671875, 0.0276336669921875, 0.031829833984375, 0.038177490234375 ]
ac591e43ecf51911631aac2dbbba2ac9864fa276
Wordpress Stackexchange Q: Add custom fields within meta box class "on the fly" I'm one of the contributors for the Meta Box Class here on Github (link) and before I get too deep, I wanted to ask if anyone knew of a straight forward way to allow users to add additional fields "on the fly", having an "add" button with a text field to add additional fields (i.e. list items). I've seen this done a few ways in the past, but I'm all for not reinventing the wheel. A: Agreed, I've seen it too, but I don't think there's any readily available API or method. For me, I use a lick of jQuery; <input type="text" class="list-item" name="list_items[]" /> <input type="button" class="button-secondary" id="add-list" /> <script type="text/javascript"> ( function( $ ) { $( '#add-list' ).click( function() { var $item = $( '.list-item:last' ), $new = $item.clone(); $item.after( $new.val( '' ) ); } })( jQuery ); </script> Note that you might wanna tweak those selectors if you plan on having multiple 'instances' of these.
Q: Add custom fields within meta box class "on the fly" I'm one of the contributors for the Meta Box Class here on Github (link) and before I get too deep, I wanted to ask if anyone knew of a straight forward way to allow users to add additional fields "on the fly", having an "add" button with a text field to add additional fields (i.e. list items). I've seen this done a few ways in the past, but I'm all for not reinventing the wheel. A: Agreed, I've seen it too, but I don't think there's any readily available API or method. For me, I use a lick of jQuery; <input type="text" class="list-item" name="list_items[]" /> <input type="button" class="button-secondary" id="add-list" /> <script type="text/javascript"> ( function( $ ) { $( '#add-list' ).click( function() { var $item = $( '.list-item:last' ), $new = $item.clone(); $item.after( $new.val( '' ) ); } })( jQuery ); </script> Note that you might wanna tweak those selectors if you plan on having multiple 'instances' of these. A: take a look at the WP alchemy metabox class. Dimas has already sorted that out w/ his have_fields_and_multi setup farinspace.com/wpalchemy-metabox/
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:410816", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21507" }
[ 0.0560302734375, 0.0019664764404296875, 0.01058197021484375, -0.04986572265625, 0.0149383544921875, -0.0012493133544921875, 0.017486572265625, -0.021484375, -0.01413726806640625, 0.00939178466796875, -0.0263214111328125, 0.016510009765625, -0.040496826171875, -0.0236358642578125, -0.0092315673828125, -0.052734375, 0.0251922607421875, -0.01015472412109375, 0.0079345703125, -0.01158905029296875, 0.0145721435546875, 0.005481719970703125, 0.004512786865234375, 0.03802490234375, 0.0158538818359375, 0.004634857177734375, 0.009063720703125, -0.002685546875, 0.016998291015625, 0.01209259033203125, 0.0190582275390625, -0.0269622802734375, 0.0196533203125, 0.011505126953125, -0.01215362548828125, -0.004634857177734375, 0.0307159423828125, 0.00005352497100830078, -0.01378631591796875, 0.0455322265625, 0.046600341796875, -0.036407470703125, -0.05322265625, 0.02874755859375, -0.03448486328125, -0.048980712890625, 0.06488037109375, -0.0022029876708984375, 0.032745361328125, 0.0010881423950195312, -0.00974273681640625, 0.003864288330078125, -0.00566864013671875, -0.0181427001953125, -0.00832366943359375, 0.0038909912109375, -0.036956787109375, -0.03973388671875, 0.017547607421875, 0.060394287109375, 0.0380859375, -0.01270294189453125, -0.0152740478515625, -0.033935546875, -0.012786865234375, -0.01126861572265625, -0.037841796875, -0.001873016357421875, -0.01263427734375, -0.0001659393310546875, 0.03436279296875, -0.0323486328125, -0.000035822391510009766, -0.0165557861328125, 0.01035308837890625, -0.005443572998046875, -0.006267547607421875, -0.0167999267578125, 0.01140594482421875, 0.01386260986328125, 0.005191802978515625, 0.0283660888671875, 0.0222625732421875, -0.023468017578125, 0.0118865966796875, 0.0009489059448242188, -0.023834228515625, -0.0064239501953125, -0.01103973388671875, -0.0411376953125, -0.0124053955078125, -0.1170654296875, -0.009918212890625, 0.021514892578125, 0.0148468017578125, -0.04168701171875, 0.018096923828125, 0.0151824951171875, 0.040863037109375, 0.0131988525390625, -0.002086639404296875, -0.04412841796875, 0.0260162353515625, -0.0232391357421875, 0.003753662109375, 0.0205841064453125, -0.00728607177734375, 0.004184722900390625, 0.02581787109375, 0.0340576171875, -0.01122283935546875, -0.01482391357421875, 0.035186767578125, 0.006000518798828125, -0.0281982421875, -0.02703857421875, -0.0008764266967773438, -0.00972747802734375, -0.017242431640625, -0.03143310546875, -0.00998687744140625, -0.00489044189453125, -0.01204681396484375, -0.0018510818481445312, 0.031646728515625, 0.0080718994140625, -0.01526641845703125, 0.00231170654296875, 0.0009870529174804688, -0.0309295654296875, -0.0218658447265625, 0.031646728515625, 0.0439453125, 0.04815673828125, 0.01513671875, 0.01006317138671875, 0.039215087890625, -0.0205841064453125, 0.0249786376953125, 0.004302978515625, -0.02093505859375, -0.038909912109375, -0.004436492919921875, 0.002628326416015625, -0.0164947509765625, 0.0308990478515625, 0.007904052734375, -0.0042724609375, 0.0008211135864257812, -0.048828125, -0.004337310791015625, -0.055908203125, 0.042327880859375, 0.0238037109375, -0.03533935546875, -0.011077880859375, 0.03240966796875, -0.02386474609375, -0.0305328369140625, -0.049224853515625, 0.0018939971923828125, -0.007015228271484375, 0.0196380615234375, -0.0667724609375, -0.0662841796875, -0.007312774658203125, -0.047393798828125, -0.0008273124694824219, 0.0290374755859375, 0.0031414031982421875, 0.0274200439453125, -0.00958251953125, 0.039886474609375, 0.01366424560546875, -0.0068511962890625, 0.00384521484375, 0.0379638671875, 0.07244873046875, -0.0186004638671875, -0.0259552001953125, -0.019012451171875, -0.053070068359375, 0.07940673828125, -0.0552978515625, -0.0811767578125, 0.07025146484375, -0.04364013671875, 0.057220458984375, 0.0679931640625, -0.0195465087890625, 0.0191650390625, -0.016448974609375, -0.043487548828125, -0.0158843994140625, -0.00689697265625, 0.0071563720703125, -0.01324462890625, 0.00020432472229003906, -0.01529693603515625, 0.021820068359375, -0.0078125, -0.0064849853515625, -0.005115509033203125, 0.034912109375, 0.0288543701171875, 0.00689697265625, 0.00298309326171875, 0.01548004150390625, -0.00986480712890625, -0.007740020751953125, 0.00345611572265625, -0.0496826171875, 0.0168609619140625, -0.0194854736328125, -0.01168060302734375, 0.0020809173583984375, 0.0176849365234375, 0.031829833984375, 0.0269317626953125, -0.01152801513671875, 0.056610107421875, -0.03729248046875, 0.0308685302734375, 0.0140533447265625, 0.0223846435546875, 0.0006532669067382812, -0.020965576171875, -0.0116424560546875, 0.0159454345703125, 0.01320648193359375, 0.0097198486328125, 0.0195465087890625, -0.01097869873046875, -0.00849151611328125, -0.0172576904296875, -0.00170135498046875, -0.00846099853515625, -0.0963134765625, 0.003971099853515625, 0.058929443359375, 0.0010433197021484375, 0.040283203125, 0.005657196044921875, 0.0574951171875, 0.04071044921875, 0.028594970703125, 0.026458740234375, 0.0093231201171875, -0.0013647079467773438, 0.059783935546875, -0.05169677734375, 0.038726806640625, 0.0299835205078125, 0.006023406982421875, 0.0095062255859375, 0.041748046875, -0.041290283203125, -0.024871826171875, -0.002285003662109375, -0.028167724609375, 0.011383056640625, -0.0304718017578125, -0.02117919921875, -0.0113372802734375, 0.06689453125, 0.00925445556640625, 0.06866455078125, 0.044830322265625, -0.00545501708984375, -0.0015687942504882812, -0.01117706298828125, -0.028778076171875, 0.003757476806640625, -0.003162384033203125, -0.03448486328125, 0.042205810546875, -0.022125244140625, 0.004222869873046875, 0.01206207275390625, 0.0033435821533203125, 0.005130767822265625, 0.0192108154296875, 0.010406494140625, -0.01209259033203125, 0.0186920166015625, -0.031005859375, 0.01226806640625, -0.0035552978515625, 0.01476287841796875, 0.0010728836059570312, 0.036712646484375, -0.0006761550903320312, -0.0038623809814453125, 0.01537322998046875, -0.0241546630859375, -0.0421142578125, 0.07318115234375, 0.006103515625, 0.01953125, -0.025543212890625, 0.0106048583984375, 0.0192108154296875, -0.043975830078125, 0.01198577880859375, -0.01129150390625, -0.0113067626953125, -0.043487548828125, 0.018768310546875, -0.00852203369140625, -0.034881591796875, -0.0318603515625, 0.033111572265625, 0.030609130859375, 0.041717529296875, 0.0131683349609375, -0.040863037109375, -0.0026416778564453125, 0.0240325927734375, -0.072509765625, -0.09210205078125, 0.0516357421875, -0.0482177734375, -0.0168914794921875, -0.0006875991821289062, -0.046356201171875, -0.0030651092529296875, 0.044189453125, -0.006626129150390625, -0.01435089111328125, -0.04254150390625, -0.00925445556640625, -0.061187744140625, -0.041961669921875, -0.036224365234375, 0.01349639892578125, -0.00586700439453125, 0.01020050048828125, 0.06781005859375, 0.007537841796875, -0.034515380859375, 0.002048492431640625, 0.01358795166015625, 0.003940582275390625, 0.01486968994140625, 0.045989990234375, -0.06182861328125, 0.00677490234375, -0.00637054443359375, 0.013519287109375, 0.0163116455078125, -0.0087432861328125, -0.006244659423828125, -0.0251312255859375, 0.0224609375, -0.0100250244140625, 0.0013551712036132812, 0.0303802490234375, 0.0238800048828125, 0.01146697998046875, -0.0225982666015625, 0.02178955078125, 0.0273895263671875, 0.0196533203125, -0.03509521484375, -0.0780029296875, 0.00537872314453125, -0.00022602081298828125, 0.0421142578125, 0.00839996337890625, 0.0129241943359375, 0.0260772705078125, 0.0273590087890625, -0.036163330078125, -0.0293731689453125, -0.039581298828125, -0.01806640625, 0.0082855224609375, -0.0274810791015625, 0.0195465087890625, -0.012939453125, 0.002223968505859375, -0.010589599609375, 0.0005068778991699219, -0.035491943359375, -0.07037353515625, 0.039581298828125, -0.0164794921875, 0.016204833984375, -0.0428466796875, -0.0269775390625, 0.0008044242858886719, 0.08648681640625, -0.07696533203125, -0.0202178955078125, 0.008636474609375, 0.04595947265625, -0.03466796875, -0.03662109375, -0.02984619140625, -0.0198516845703125, -0.0404052734375, 0.007656097412109375, -0.008880615234375, -0.00850677490234375, -0.0251007080078125, 0.042816162109375, -0.016632080078125, -0.0207061767578125, 0.031890869140625, -0.055877685546875, 0.006526947021484375, 0.005680084228515625, 0.02777099609375, -0.035491943359375, 0.021881103515625, -0.0599365234375, -0.059722900390625, -0.02447509765625, -0.00830841064453125, 0.0576171875, 0.01189422607421875, -0.033050537109375, 0.004940032958984375, 0.06719970703125, 0.00872039794921875, 0.0135650634765625, 0.033905029296875, 0.031707763671875, -0.0020618438720703125, -0.0196533203125, 0.0250091552734375, -0.043731689453125, 0.01151275634765625, -0.0083465576171875, -0.031890869140625, 0.006389617919921875, -0.02703857421875, -0.0173492431640625, 0.005886077880859375, -0.0404052734375, 0.0113067626953125, -0.049224853515625, -0.06927490234375, -0.005443572998046875, -0.038421630859375, -0.002410888671875, -0.043426513671875, -0.0145263671875, -0.0289154052734375, -0.05743408203125, -0.00754547119140625, 0.030609130859375, 0.0589599609375, 0.026947021484375, 0.0265960693359375, -0.0041961669921875, 0.017333984375, 0.027923583984375, -0.0017948150634765625, -0.0023593902587890625, 0.0011892318725585938, -0.006313323974609375, -0.0135650634765625, -0.01129913330078125, 0.0281982421875, -0.036651611328125, 0.07415771484375, 0.0022029876708984375, -0.002376556396484375, 0.0225372314453125, 0.01004791259765625, -0.0401611328125, 0.0032901763916015625, -0.0003612041473388672, -0.0006742477416992188, 0.0124359130859375, 0.01032257080078125, 0.0015411376953125, -0.00818634033203125, -0.0164947509765625, -0.018890380859375, 0.0019626617431640625, -0.039886474609375, 0.0249176025390625, 0.035888671875, -0.0018663406372070312, -0.0006656646728515625, -0.0124053955078125, -0.005523681640625, -0.0330810546875, -0.055633544921875, -0.0003693103790283203, -0.00780487060546875, -0.004703521728515625, 0.0009555816650390625, -0.015472412109375, -0.0115814208984375, 0.050537109375, 0.002170562744140625, -0.041046142578125, 0.0011968612670898438, 0.0018472671508789062, 0.034881591796875, 0.00823974609375, 0.03143310546875, 0.0055084228515625, 0.04193115234375, 0.0194091796875, 0.025726318359375, 0.0653076171875, 0.0169830322265625, -0.00576019287109375, 0.007354736328125, 0.030792236328125, -0.00917816162109375, 0.005970001220703125, 0.04266357421875, -0.00774383544921875, 0.01396942138671875, -0.01018524169921875, 0.05853271484375, 0.028076171875, 0.021636962890625, 0.0270233154296875, -0.0303802490234375, -0.0023956298828125, -0.00679779052734375, -0.05712890625, 0.0051422119140625, 0.0238037109375, 0.037872314453125, 0.034912109375, 0.0237579345703125, -0.0002987384796142578, -0.0440673828125, -0.05584716796875, -0.0274810791015625, -0.02484130859375, -0.0158233642578125, -0.00844573974609375, 0.00516510009765625, -0.0265350341796875, -0.031982421875, 0.007167816162109375, 0.02667236328125, 0.0328369140625, 0.03814697265625, 0.034698486328125, -0.0650634765625, 0.0208587646484375, -0.032928466796875, -0.01049041748046875, -0.033447265625, 0.01934814453125, 0.0218048095703125, -0.059783935546875, -0.050933837890625, 0.0052490234375, -0.0226287841796875, 0.00632476806640625, -0.01541900634765625, 0.03497314453125, -0.041839599609375, 0.0236053466796875, -0.057403564453125, 0.0015964508056640625, 0.0027008056640625, -0.004611968994140625, 0.012664794921875, -0.039337158203125, -0.040771484375, -0.026885986328125, -0.021820068359375, -0.03753662109375, -0.0009493827819824219, 0.0166473388671875, 0.0304107666015625, 0.042022705078125, -0.00531768798828125, -0.056396484375, 0.025634765625, -0.018341064453125, -0.0051422119140625, 0.01456451416015625, -0.0032444000244140625, 0.004180908203125, 0.01158905029296875, 0.0290679931640625, 0.007045745849609375, -0.0207366943359375, -0.0161285400390625, -0.025054931640625, 0.01070404052734375, -0.06475830078125, -0.03759765625, -0.0211944580078125, -0.0269927978515625, 0.0556640625, 0.033447265625, -0.0013275146484375, 0.011505126953125, -0.025848388671875, -0.0009560585021972656, -0.00533294677734375, 0.037933349609375, -0.0166168212890625, -0.01192474365234375, 0.056365966796875, -0.007778167724609375, 0.0016326904296875, -0.01131439208984375, -0.0259552001953125, 0.0328369140625, 0.0032062530517578125, 0.01129913330078125, 0.01947021484375, -0.0762939453125, 0.0562744140625, 0.0225982666015625, 0.0150299072265625, 0.0290069580078125, -0.0267486572265625, 0.00472259521484375, -0.0087127685546875, -0.0001195073127746582, -0.0207977294921875, 0.0018253326416015625, 0.039764404296875, -0.00020837783813476562, -0.026214599609375, 0.0192413330078125, -0.02581787109375, 0.022003173828125, 0.028076171875, 0.0538330078125, -0.061370849609375, 0.024627685546875, -0.01357269287109375, -0.0017976760864257812, 0.05902099609375, -0.01526641845703125, 0.0106201171875, 0.001873016357421875, 0.0203704833984375, 0.037811279296875, -0.0201416015625, 0.0174560546875, 0.0029296875, -0.021636962890625, -0.0218048095703125, -0.037567138671875, -0.006252288818359375, 0.040985107421875, -0.0032196044921875, -0.016143798828125, 0.0061798095703125, 0.0030670166015625, -0.00566864013671875, 0.0064697265625, -0.047332763671875, -0.041961669921875, -0.00835418701171875, -0.0016021728515625, -0.0170440673828125, 0.0161285400390625, 0.049530029296875, 0.049530029296875, 0.036865234375, 0.0210113525390625, -0.01206207275390625, -0.006946563720703125, 0.033294677734375, -0.03497314453125, -0.0271453857421875, -0.0250091552734375, -0.0256805419921875, 0.007244110107421875, 0.01065826416015625, -0.00904083251953125, -0.03564453125, 0.0009021759033203125, 0.001842498779296875, 0.05804443359375, 0.002197265625, -0.042022705078125, 0.0257415771484375, -0.0026569366455078125, -0.0165863037109375, 0.0166473388671875, -0.0418701171875, -0.059478759765625, -0.028564453125, -0.020355224609375, -0.07708740234375, 0.041473388671875, 0.0095062255859375, -0.063720703125, 0.09490966796875, 0.0281219482421875, -0.00914764404296875, -0.0213775634765625, 0.044586181640625, -0.0300750732421875, 0.02313232421875, -0.0289154052734375, 0.029754638671875, -0.0026092529296875, 0.00910186767578125, -0.05078125, -0.0206756591796875, -0.024017333984375, 0.041473388671875, 0.01433563232421875, -0.0014772415161132812, -0.0168914794921875, 0.0022563934326171875, 0.031646728515625, 0.070068359375, 0.0247650146484375, -0.0036525726318359375, 0.01264190673828125, 0.0249481201171875, 0.042144775390625, 0.0008454322814941406, 0.023712158203125, 0.0031757354736328125, -0.0160369873046875, 0.016357421875, -0.0041046142578125, -0.00559234619140625, -0.007198333740234375, 0.030670166015625, -0.016265869140625, -0.01058197021484375, -0.005199432373046875, 0.0115966796875, 0.004123687744140625, 0.033905029296875, 0.00844573974609375, 0.039093017578125, -0.01561737060546875, -0.008453369140625, 0.0244903564453125, 0.004650115966796875, 0.052001953125, 0.018951416015625, 0.01412200927734375, 0.040008544921875, 0.0160064697265625, 0.02642822265625, 0.03656005859375, -0.02325439453125, 0.039886474609375, -0.005237579345703125, -0.00962066650390625, -0.08026123046875, 0.01207733154296875, 0.0697021484375, 0.059783935546875, -0.05743408203125, -0.04638671875, 0.0137481689453125, 0.00682830810546875, 0.0199432373046875, 0.02001953125, 0.039093017578125, -0.01509857177734375, 0.014862060546875, -0.039764404296875, 0.01397705078125, 0.0039043426513671875, 0.00276947021484375, -0.00782012939453125, 0.0447998046875, -0.03558349609375, 0.01012420654296875, -0.0282135009765625, -0.00891876220703125, -0.0186614990234375, 0.051055908203125, 0.059051513671875, 0.0294342041015625, 0.0017385482788085938, -0.0266876220703125, -0.0171051025390625, 0.0090789794921875, 0.0584716796875, 0.00429534912109375, 0.016632080078125, 0.04534912109375, 0.03265380859375, -0.013427734375, 0.0133819580078125, 0.0810546875, 0.07122802734375, 0.03802490234375, -0.0083770751953125, 0.018280029296875, 0.04388427734375, -0.028228759765625, -0.0308685302734375, -0.039215087890625, -0.00027298927307128906, 0.045562744140625, 0.0096435546875, 0.0103607177734375, -0.006366729736328125, 0.06060791015625, -0.034942626953125, 0.017547607421875, 0.002094268798828125, -0.041351318359375, 0.0478515625, -0.0059051513671875, 0.0863037109375, -0.0007996559143066406, -0.08837890625, -0.005222320556640625, -0.019866943359375, -0.072021484375, 0.049224853515625, 0.051055908203125, -0.053680419921875, 0.0237274169921875, 0.021484375, -0.013153076171875, 0.0076904296875, -0.021453857421875, 0.0259552001953125, 0.0111236572265625, -0.0052337646484375, 0.00726318359375, -0.0498046875, -0.0011110305786132812, 0.006420135498046875, -0.01044464111328125, -0.01483917236328125, 0.01763916015625, 0.02325439453125, 0.006992340087890625, -0.0226898193359375, -0.0015306472778320312, 0.0264434814453125, -0.0251617431640625, 0.0147552490234375, 0.040496826171875, 0.01515960693359375, -0.0297393798828125, 0.014739990234375, 0.0303955078125, 0.03955078125, -0.03399658203125, 0.0001837015151977539, 0.0142822265625, 0.0143280029296875, -0.01751708984375, 0.0194091796875, -0.0263671875, -0.0036945343017578125, -0.012359619140625, -0.016937255859375, 0.0325927734375, 0.004375457763671875, 0.00019431114196777344, -0.025543212890625, 0.00601959228515625, -0.01297760009765625, 0.02032470703125, 0.0286102294921875, 0.03826904296875, 0.0288543701171875, -0.041290283203125, -0.021728515625, 0.01061248779296875, 0.0016345977783203125, 0.01540374755859375, 0.0070648193359375, 0.03155517578125, 0.03289794921875, -0.0242462158203125, 0.01126861572265625, 0.06341552734375, 0.053436279296875, -0.01224517822265625, 0.0145721435546875, 0.062103271484375, -0.0246734619140625, -0.0181732177734375, -0.0012807846069335938, -0.026763916015625, -0.039306640625, 0.00559234619140625, 0.0234832763671875, -0.007221221923828125, -0.006969451904296875, -0.03289794921875, -0.004596710205078125, -0.0007205009460449219, 0.017181396484375, -0.07769775390625, 0.059417724609375, 0.017333984375, 0.005245208740234375, -0.03302001953125, -0.007598876953125, 0.00460052490234375, 0.037017822265625, -0.0066680908203125, -0.00445556640625, -0.019744873046875, 0.0230560302734375, -0.0196075439453125, 0.033935546875, 0.0267486572265625, -0.0308685302734375, 0.002582550048828125, -0.006221771240234375, 0.025421142578125, 0.036895751953125, 0.06256103515625, -0.017486572265625, 0.034088134765625, -0.0055694580078125, -0.0012311935424804688, -0.082275390625, -0.017669677734375, -0.03692626953125, 0.024749755859375, -0.0011453628540039062, 0.0200958251953125, 0.0526123046875, -0.01331329345703125, -0.07586669921875, 0.03228759765625, 0.0008220672607421875, -0.035247802734375, -0.03814697265625, 0.0243682861328125, -0.00777435302734375, 0.0220794677734375, -0.01248931884765625, -0.01122283935546875, 0.0077667236328125, 0.01206207275390625, 0.01702880859375, -0.002422332763671875, 0.04620361328125, -0.0012922286987304688, -0.07598876953125, -0.035614013671875, -0.05670166015625, 0.0037364959716796875, 0.02728271484375, -0.0103302001953125, 0.0118255615234375, 0.007781982421875, -0.059051513671875, -0.0157012939453125, -0.0144805908203125, 0.046722412109375, 0.002658843994140625, -0.04937744140625, -0.0640869140625, -0.037567138671875, 0.08062744140625, 0.033782958984375, 0.032501220703125, -0.0330810546875, 0.027679443359375, -0.0075836181640625, 0.006565093994140625, -0.012420654296875, -0.01519775390625, -0.02716064453125, -0.030487060546875, -0.007175445556640625, -0.0241851806640625, -0.0029735565185546875, 0.04302978515625, -0.029327392578125, 0.01953125, 0.07257080078125, -0.0009465217590332031, -0.0670166015625, 0.01546478271484375, 0.10528564453125, -0.0733642578125, -0.00902557373046875, 0.0276336669921875, -0.006866455078125, 0.051300048828125, 0.005573272705078125, -0.0306854248046875, -0.054107666015625, -0.02496337890625, 0.06396484375, -0.058990478515625, 0.08740234375, -0.0867919921875, 0.0004887580871582031, -0.01274871826171875, 0.041717529296875, -0.01438140869140625, 0.0430908203125, 0.00820159912109375, 0.046630859375, 0.002994537353515625, 0.06182861328125, -0.030548095703125, -0.0115814208984375, -0.027679443359375, 0.0114288330078125, 0.01070404052734375, 0.00661468505859375, 0.072509765625, -0.0345458984375, -0.00870513916015625, -0.0233612060546875, -0.05029296875, -0.05877685546875, 0.02435302734375, 0.04730224609375, -0.033050537109375, 0.0400390625 ]
484358cec44dcf418accbe17adbb7e77ecd43422
Wordpress Stackexchange Q: What is the best book to learn how to make themes for wordpress? Do you any good book or video tutorials that easily explain how can I make my own theme for Wordpress? and how to change the structure of the content? Cheers. A: I would start with the Codex: * *WordPress Codex: Theme Development These two books are still current enough to remain great resources: * *Smashing WordPress Themes, Thord Daniel Hedengren *Build Your Own Wicked WordPress Themes, Alan Cole, Jeffrey Way, et al These also have Theme applicability: * *Digging Into WordPress, Chris Coyier, Jeff Starr *Professional WordPress Plugin Development, Brad Williams et al *Professional WordPress, Brad Williams et al *WordPress Bible, Aaron Brazell Most of the rest are either too general, or too outdated. EDIT Forgot to add Digging Into WordPress!
Q: What is the best book to learn how to make themes for wordpress? Do you any good book or video tutorials that easily explain how can I make my own theme for Wordpress? and how to change the structure of the content? Cheers. A: I would start with the Codex: * *WordPress Codex: Theme Development These two books are still current enough to remain great resources: * *Smashing WordPress Themes, Thord Daniel Hedengren *Build Your Own Wicked WordPress Themes, Alan Cole, Jeffrey Way, et al These also have Theme applicability: * *Digging Into WordPress, Chris Coyier, Jeff Starr *Professional WordPress Plugin Development, Brad Williams et al *Professional WordPress, Brad Williams et al *WordPress Bible, Aaron Brazell Most of the rest are either too general, or too outdated. EDIT Forgot to add Digging Into WordPress!
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:410827", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21536" }
[ -0.02764892578125, -0.0300140380859375, 0.0235595703125, 0.01873779296875, -0.052734375, 0.010406494140625, -0.019866943359375, -0.033447265625, -0.044830322265625, -0.006191253662109375, -0.0030460357666015625, 0.0144805908203125, -0.037078857421875, -0.0323486328125, 0.033111572265625, -0.0472412109375, 0.048583984375, -0.031524658203125, 0.033599853515625, 0.01123046875, 0.004535675048828125, 0.0287017822265625, 0.04278564453125, 0.035980224609375, 0.0489501953125, -0.05731201171875, 0.087890625, -0.012542724609375, 0.0428466796875, -0.007022857666015625, 0.042083740234375, -0.0253448486328125, 0.021575927734375, 0.0117034912109375, -0.00382232666015625, 0.0201873779296875, -0.0029430389404296875, -0.001445770263671875, 0.0199432373046875, 0.0094757080078125, 0.02398681640625, -0.015716552734375, -0.021240234375, 0.043182373046875, 0.0011510848999023438, -0.06201171875, 0.0157928466796875, -0.06146240234375, -0.013031005859375, -0.0271453857421875, 0.0401611328125, 0.014617919921875, 0.0579833984375, -0.0187530517578125, -0.0120849609375, 0.001827239990234375, 0.03668212890625, -0.010040283203125, 0.053680419921875, -0.06170654296875, -0.060272216796875, -0.0289764404296875, 0.0633544921875, 0.0305328369140625, -0.0200653076171875, -0.01309967041015625, -0.027679443359375, 0.0175933837890625, -0.0237884521484375, -0.0006008148193359375, 0.0217742919921875, -0.027099609375, -0.0265350341796875, -0.01502227783203125, -0.0185394287109375, 0.022491455078125, 0.00342559814453125, -0.01506805419921875, 0.01025390625, 0.0198974609375, 0.0034885406494140625, 0.0110015869140625, -0.01708984375, -0.08880615234375, 0.057464599609375, -0.04058837890625, 0.006946563720703125, 0.0026607513427734375, -0.014129638671875, -0.0296173095703125, -0.01427459716796875, 0.0194549560546875, -0.07330322265625, 0.040802001953125, 0.01042938232421875, -0.0122528076171875, 0.006954193115234375, -0.017608642578125, 0.0033740997314453125, 0.024383544921875, 0.025421142578125, -0.03680419921875, 0.06427001953125, -0.01551055908203125, -0.0207672119140625, 0.006145477294921875, 0.024658203125, 0.061004638671875, 0.01045989990234375, 0.0274810791015625, -0.01739501953125, -0.00835418701171875, 0.021087646484375, -0.02587890625, 0.02569580078125, -0.00008046627044677734, -0.0286865234375, 0.05389404296875, -0.00004756450653076172, 0.01068878173828125, 0.00007522106170654297, 0.0087890625, 0.054443359375, -0.0035457611083984375, -0.00792694091796875, 0.0013647079467773438, -0.0212860107421875, -0.058258056640625, 0.045989990234375, 0.002841949462890625, -0.033355712890625, 0.0001697540283203125, 0.048309326171875, 0.018218994140625, 0.025390625, -0.01502227783203125, 0.00543212890625, -0.0233917236328125, -0.01910400390625, 0.01346588134765625, -0.01947021484375, 0.007602691650390625, 0.05029296875, -0.04132080078125, 0.044525146484375, 0.013641357421875, 0.00557708740234375, 0.0173797607421875, 0.0078887939453125, 0.009124755859375, 0.0086669921875, -0.0017719268798828125, -0.0060882568359375, 0.028717041015625, 0.0248565673828125, -0.0245513916015625, 0.0008192062377929688, -0.025665283203125, 0.057647705078125, -0.02301025390625, 0.038970947265625, 0.0211181640625, 0.040008544921875, 0.05804443359375, 0.0166778564453125, -0.01361083984375, -0.03009033203125, -0.0165557861328125, 0.017578125, -0.027191162109375, 0.040557861328125, 0.006702423095703125, -0.007518768310546875, -0.01363372802734375, 0.019500732421875, -0.00434112548828125, 0.03173828125, -0.02117919921875, 0.0137176513671875, 0.10150146484375, 0.0200347900390625, -0.0086212158203125, 0.018157958984375, -0.00881195068359375, -0.0233154296875, 0.0081634521484375, 0.01113128662109375, 0.044830322265625, -0.003101348876953125, 0.0188446044921875, -0.0017642974853515625, 0.0088043212890625, -0.03955078125, -0.0070648193359375, -0.001987457275390625, 0.0007815361022949219, -0.0186767578125, 0.00417327880859375, -0.00897979736328125, 0.0018053054809570312, -0.037261962890625, 0.041015625, -0.0229034423828125, 0.0300140380859375, -0.01155853271484375, -0.0067901611328125, 0.0011949539184570312, 0.0341796875, 0.041351318359375, 0.00980377197265625, -0.00640106201171875, -0.00275421142578125, 0.01715087890625, -0.0628662109375, -0.057037353515625, 0.034393310546875, -0.01256561279296875, -0.0164642333984375, 0.0004165172576904297, -0.0113677978515625, 0.0247650146484375, -0.0102081298828125, 0.01059722900390625, 0.046722412109375, 0.025390625, -0.0265350341796875, -0.01300048828125, -0.02081298828125, -0.0008826255798339844, 0.00775146484375, -0.036163330078125, 0.037506103515625, 0.039398193359375, 0.0194244384765625, -0.0384521484375, 0.00116729736328125, -0.0108184814453125, -0.01486968994140625, -0.0122528076171875, 0.041015625, 0.01512908935546875, 0.0103302001953125, -0.0202484130859375, 0.0193939208984375, 0.0305938720703125, -0.0182342529296875, -0.01270294189453125, 0.025299072265625, 0.03173828125, 0.0238037109375, 0.0301513671875, -0.020111083984375, 0.01898193359375, -0.04248046875, 0.01248931884765625, 0.0296173095703125, -0.039337158203125, -0.002986907958984375, -0.033966064453125, 0.0147857666015625, -0.00888824462890625, -0.045257568359375, -0.004604339599609375, -0.050537109375, 0.034149169921875, 0.0235595703125, 0.0230255126953125, 0.0308990478515625, -0.03350830078125, 0.0240325927734375, 0.0046844482421875, -0.0254058837890625, 0.004146575927734375, -0.0015211105346679688, -0.0136566162109375, 0.0386962890625, -0.021636962890625, -0.0145721435546875, 0.03753662109375, 0.00508880615234375, -0.006137847900390625, -0.004302978515625, -0.021728515625, -0.00860595703125, 0.031707763671875, -0.0433349609375, -0.0020427703857421875, 0.0038509368896484375, 0.01287841796875, -0.006458282470703125, 0.0023040771484375, 0.0130157470703125, -0.044921875, 0.061676025390625, 0.0199432373046875, -0.009246826171875, 0.0186614990234375, -0.0120391845703125, 0.061279296875, -0.0198822021484375, -0.003971099853515625, 0.05633544921875, -0.0182342529296875, 0.01111602783203125, 0.02301025390625, 0.02044677734375, 0.0506591796875, -0.00547027587890625, -0.014404296875, 0.024261474609375, -0.0921630859375, -0.03790283203125, 0.0261688232421875, 0.07061767578125, 0.00939178466796875, -0.03912353515625, 0.0137786865234375, 0.061676025390625, -0.000652313232421875, -0.0239410400390625, -0.0227203369140625, -0.04681396484375, 0.016937255859375, -0.003192901611328125, -0.00739288330078125, -0.019805908203125, 0.0025310516357421875, 0.0129547119140625, 0.010009765625, -0.05938720703125, -0.0787353515625, -0.072265625, -0.09820556640625, -0.033782958984375, 0.0002532005310058594, 0.0166778564453125, -0.007442474365234375, 0.00395965576171875, -0.0128173828125, -0.034332275390625, -0.0213470458984375, 0.032958984375, 0.0198974609375, -0.0213623046875, -0.00485992431640625, 0.0019664764404296875, -0.0335693359375, 0.0209197998046875, 0.033294677734375, 0.0086822509765625, -0.02447509765625, -0.004154205322265625, -0.038238525390625, -0.03314208984375, -0.032928466796875, 0.03558349609375, 0.04443359375, -0.07159423828125, -0.0175933837890625, -0.0760498046875, -0.038787841796875, 0.041290283203125, -0.0167999267578125, 0.0135498046875, -0.01157379150390625, -0.026885986328125, 0.005146026611328125, 0.029449462890625, 0.0017242431640625, -0.0171966552734375, -0.0214080810546875, -0.03076171875, 0.071533203125, 0.0189666748046875, 0.02667236328125, -0.0022487640380859375, 0.0301513671875, -0.025604248046875, -0.007602691650390625, 0.004085540771484375, -0.01236724853515625, -0.021392822265625, -0.006519317626953125, -0.041656494140625, -0.0792236328125, 0.05706787109375, 0.006072998046875, -0.0038700103759765625, -0.0182342529296875, -0.038787841796875, 0.029296875, 0.11553955078125, -0.01934814453125, -0.0126800537109375, 0.0220947265625, 0.01004791259765625, -0.0157623291015625, -0.02850341796875, -0.05743408203125, -0.0189971923828125, -0.11395263671875, 0.032806396484375, 0.0002644062042236328, -0.030120849609375, -0.031005859375, -0.0196990966796875, -0.07183837890625, -0.041595458984375, 0.0128936767578125, 0.009002685546875, 0.0008339881896972656, 0.020721435546875, -0.019683837890625, 0.019378662109375, -0.020111083984375, -0.01702880859375, -0.07366943359375, -0.015167236328125, -0.01467132568359375, 0.0654296875, 0.01143646240234375, -0.039764404296875, -0.01114654541015625, 0.0305328369140625, 0.00910186767578125, -0.001392364501953125, 0.028533935546875, 0.0189666748046875, -0.0052642822265625, -0.02313232421875, 0.00582122802734375, -0.03466796875, -0.026275634765625, -0.04644775390625, -0.00882720947265625, 0.01152801513671875, 0.007350921630859375, 0.0247039794921875, 0.01192474365234375, -0.0006222724914550781, -0.0150909423828125, -0.015716552734375, -0.02313232421875, 0.018951416015625, -0.038330078125, 0.01517486572265625, -0.01010894775390625, -0.042633056640625, 0.046417236328125, 0.018218994140625, -0.0190887451171875, 0.00328826904296875, 0.08892822265625, 0.0222320556640625, -0.0239105224609375, -0.10345458984375, -0.0133056640625, 0.05084228515625, 0.006832122802734375, 0.01065826416015625, -0.01522064208984375, -0.051544189453125, 0.08575439453125, 0.0013265609741210938, -0.049896240234375, 0.0111083984375, 0.046295166015625, 0.00315093994140625, -0.017181396484375, -0.01129913330078125, -0.03466796875, 0.0540771484375, -0.0190277099609375, -0.01226043701171875, 0.005596160888671875, -0.01206207275390625, 0.0213470458984375, -0.007137298583984375, 0.0178375244140625, -0.0179443359375, 0.009552001953125, -0.0270233154296875, 0.0280609130859375, 0.054901123046875, 0.017730712890625, 0.0078887939453125, 0.004180908203125, 0.0318603515625, 0.006153106689453125, 0.0283203125, 0.017974853515625, -0.00696563720703125, 0.010833740234375, 0.04571533203125, -0.0102386474609375, -0.004913330078125, -0.015167236328125, 0.09686279296875, -0.004734039306640625, -0.06304931640625, 0.0167388916015625, -0.05438232421875, 0.00983428955078125, 0.04547119140625, -0.00365447998046875, 0.0474853515625, 0.022430419921875, -0.00644683837890625, -0.0015859603881835938, -0.042694091796875, -0.0062255859375, -0.05401611328125, -0.00948333740234375, 0.010650634765625, -0.00405120849609375, 0.017364501953125, 0.039031982421875, -0.0269775390625, 0.029541015625, 0.002353668212890625, 0.00888824462890625, 0.0057373046875, 0.0338134765625, 0.006076812744140625, -0.00240325927734375, 0.017486572265625, -0.009002685546875, 0.039642333984375, -0.046722412109375, -0.01032257080078125, 0.03460693359375, 0.07000732421875, -0.002696990966796875, -0.01470184326171875, -0.00231170654296875, -0.05511474609375, -0.0132598876953125, -0.050933837890625, -0.042633056640625, 0.0012197494506835938, -0.00243377685546875, 0.035552978515625, 0.01399993896484375, 0.031402587890625, -0.0205078125, 0.006343841552734375, -0.039398193359375, -0.010101318359375, 0.0186767578125, -0.0231781005859375, -0.01512908935546875, -0.00856781005859375, -0.04461669921875, 0.006683349609375, 0.018890380859375, -0.06787109375, -0.058013916015625, 0.0031566619873046875, -0.013916015625, 0.00785064697265625, -0.00865936279296875, -0.009674072265625, -0.0166015625, -0.0008869171142578125, -0.03009033203125, 0.023773193359375, -0.0005331039428710938, -0.0272216796875, -0.043121337890625, 0.0193328857421875, -0.05816650390625, -0.01422882080078125, -0.036468505859375, -0.0309906005859375, -0.07177734375, -0.005374908447265625, -0.0196990966796875, -0.0068511962890625, 0.00634765625, 0.0230255126953125, -0.0228729248046875, 0.057647705078125, 0.01065826416015625, 0.01085662841796875, 0.0021381378173828125, -0.00021696090698242188, 0.00113677978515625, 0.059478759765625, 0.007068634033203125, -0.0032138824462890625, -0.015869140625, -0.06097412109375, 0.006977081298828125, -0.0211944580078125, -0.00579071044921875, -0.00798797607421875, -0.037994384765625, -0.00543975830078125, 0.050262451171875, -0.0013275146484375, 0.0158233642578125, -0.044708251953125, -0.011627197265625, -0.0004181861877441406, 0.0426025390625, -0.06317138671875, -0.01708984375, 0.01532745361328125, -0.003917694091796875, 0.0657958984375, -0.01541900634765625, -0.022186279296875, 0.01042938232421875, -0.026397705078125, 0.0198211669921875, 0.0447998046875, -0.034698486328125, 0.059539794921875, 0.0236358642578125, -0.00969696044921875, 0.0240020751953125, 0.0112152099609375, 0.0167999267578125, -0.002613067626953125, 0.01490020751953125, -0.0576171875, -0.01332855224609375, 0.05194091796875, 0.03802490234375, -0.034423828125, 0.06402587890625, -0.0303192138671875, -0.00927734375, 0.036712646484375, 0.046356201171875, -0.07568359375, 0.0182952880859375, -0.005931854248046875, 0.0179901123046875, 0.0260467529296875, 0.004940032958984375, -0.0252532958984375, -0.04815673828125, 0.045684814453125, -0.0309906005859375, -0.00424957275390625, 0.0089111328125, -0.0011949539184570312, -0.00821685791015625, -0.019073486328125, 0.074462890625, 0.0224609375, -0.0906982421875, 0.055419921875, 0.032135009765625, 0.0308990478515625, -0.021759033203125, 0.01873779296875, -0.0014905929565429688, -0.007793426513671875, -0.01849365234375, 0.045562744140625, -0.00872802734375, 0.0063934326171875, -0.028076171875, -0.002468109130859375, -0.0242462158203125, 0.05242919921875, -0.050140380859375, 0.0272979736328125, 0.026123046875, -0.022003173828125, 0.00800323486328125, 0.005680084228515625, 0.0306243896484375, 0.0179595947265625, -0.05914306640625, 0.01462554931640625, -0.049713134765625, 0.01849365234375, -0.029022216796875, -0.0435791015625, 0.0606689453125, -0.0123443603515625, -0.0026073455810546875, 0.03338623046875, 0.0244140625, -0.00925445556640625, -0.02056884765625, -0.0022735595703125, -0.05474853515625, 0.032562255859375, -0.0225067138671875, 0.029998779296875, 0.0146484375, -0.0158843994140625, -0.026031494140625, 0.046844482421875, -0.00450897216796875, -0.0160980224609375, 0.03216552734375, 0.022003173828125, -0.0386962890625, -0.00522613525390625, -0.0303802490234375, 0.044158935546875, -0.02099609375, 0.0240936279296875, -0.032745361328125, 0.01195526123046875, 0.002910614013671875, 0.00450897216796875, 0.053680419921875, 0.0029048919677734375, -0.01544952392578125, -0.0140228271484375, 0.0760498046875, 0.049591064453125, 0.01386260986328125, 0.02264404296875, -0.031585693359375, -0.016082763671875, -0.003173828125, -0.024505615234375, 0.01800537109375, 0.006603240966796875, -0.041961669921875, 0.0060577392578125, 0.004405975341796875, -0.0284423828125, 0.0204315185546875, -0.0251007080078125, -0.051025390625, 0.0281982421875, 0.0224151611328125, 0.047210693359375, -0.032073974609375, 0.04376220703125, -0.0012559890747070312, -0.00371551513671875, 0.0457763671875, -0.035186767578125, 0.049346923828125, -0.0288543701171875, 0.0390625, 0.013641357421875, 0.01708984375, -0.00690460205078125, 0.0028514862060546875, 0.026214599609375, 0.041839599609375, -0.04217529296875, 0.027679443359375, -0.031982421875, 0.00675201416015625, -0.08416748046875, -0.019012451171875, 0.025360107421875, 0.05120849609375, -0.027618408203125, -0.0372314453125, 0.00992584228515625, 0.0010290145874023438, -0.00628662109375, -0.0241241455078125, -0.00972747802734375, -0.00572967529296875, 0.031005859375, 0.0012798309326171875, -0.0006351470947265625, 0.0125579833984375, 0.02911376953125, -0.0145721435546875, -0.051055908203125, 0.00450897216796875, 0.01934814453125, 0.0118865966796875, -0.017242431640625, 0.007137298583984375, -0.01554107666015625, -0.01079559326171875, 0.04107666015625, 0.0125274658203125, 0.008636474609375, 0.005565643310546875, 0.0289764404296875, 0.0002808570861816406, -0.01268768310546875, -0.0033130645751953125, -0.03216552734375, -0.0006580352783203125, 0.023284912109375, 0.036529541015625, 0.01325225830078125, 0.03131103515625, 0.0217437744140625, -0.0118560791015625, 0.00818634033203125, 0.024383544921875, -0.00720977783203125, -0.0263671875, -0.04595947265625, -0.00716400146484375, -0.0064849853515625, -0.004909515380859375, 0.03411865234375, 0.00862884521484375, 0.0168609619140625, -0.0094146728515625, 0.01313018798828125, -0.002323150634765625, -0.01885986328125, 0.004261016845703125, -0.0186767578125, 0.01132965087890625, 0.00019252300262451172, -0.053314208984375, -0.01104736328125, -0.0295562744140625, -0.011474609375, 0.0230560302734375, 0.034393310546875, 0.0004978179931640625, 0.0125579833984375, -0.022308349609375, 0.0158538818359375, 0.0083465576171875, -0.02777099609375, 0.005615234375, -0.005035400390625, 0.03778076171875, 0.00356292724609375, -0.06494140625, -0.045440673828125, -0.0304412841796875, 0.034515380859375, 0.01078033447265625, 0.0537109375, -0.0105438232421875, 0.032989501953125, 0.0009655952453613281, -0.0038967132568359375, -0.02923583984375, 0.0035076141357421875, 0.006927490234375, -0.02294921875, -0.00743865966796875, -0.0019502639770507812, -0.033294677734375, 0.03155517578125, 0.01947021484375, -0.0192108154296875, -0.0016021728515625, -0.0004589557647705078, 0.0186614990234375, -0.007518768310546875, -0.0257568359375, -0.0272216796875, -0.024566650390625, 0.00001049041748046875, 0.00930023193359375, -0.0095672607421875, -0.03167724609375, -0.01067352294921875, 0.01480865478515625, -0.01446533203125, -0.0014638900756835938, -0.01544189453125, 0.01290130615234375, -0.0247039794921875, 0.0333251953125, -0.03271484375, -0.0718994140625, 0.05517578125, -0.00821685791015625, 0.0118255615234375, 0.003452301025390625, 0.0894775390625, 0.02435302734375, -0.10394287109375, 0.0528564453125, -0.0109405517578125, 0.030242919921875, -0.029815673828125, -0.0017499923706054688, 0.00624847412109375, 0.0222625732421875, 0.018707275390625, 0.04010009765625, 0.0021343231201171875, -0.01288604736328125, -0.0260162353515625, 0.01346588134765625, -0.01387786865234375, -0.0018901824951171875, -0.0367431640625, 0.0129547119140625, 0.0117950439453125, -0.01210784912109375, -0.0231475830078125, 0.0202789306640625, -0.0263214111328125, 0.0150146484375, -0.018341064453125, -0.0024166107177734375, -0.00027370452880859375, 0.0078887939453125, -0.031341552734375, -0.034088134765625, -0.03045654296875, 0.0123291015625, -0.0293426513671875, 0.05194091796875, 0.0625, -0.061737060546875, 0.0263824462890625, 0.049072265625, 0.0645751953125, 0.11224365234375, -0.0206146240234375, -0.026519775390625, 0.0374755859375, -0.0044403076171875, 0.019561767578125, -0.064697265625, -0.0384521484375, -0.037322998046875, 0.0252838134765625, -0.042877197265625, 0.0068359375, 0.01059722900390625, -0.045318603515625, -0.05316162109375, 0.0855712890625, -0.025299072265625, -0.01422119140625, -0.03460693359375, 0.01509857177734375, -0.002773284912109375, -0.004177093505859375, -0.0100555419921875, -0.0171966552734375, 0.0122222900390625, 0.0240020751953125, -0.002765655517578125, 0.059326171875, -0.0276336669921875, -0.00433349609375, 0.0161285400390625, 0.0286712646484375, 0.03167724609375, 0.0015354156494140625, 0.0113677978515625, -0.025970458984375, 0.00716400146484375, 0.0169525146484375, -0.05401611328125, -0.033966064453125, -0.035858154296875, 0.0232391357421875, 0.0024127960205078125, -0.004913330078125, -0.0235748291015625, -0.0136871337890625, 0.04949951171875, 0.0088348388671875, 0.01125335693359375, -0.0003466606140136719, -0.0045013427734375, 0.032073974609375, 0.0199432373046875, -0.0038967132568359375, 0.0013055801391601562, -0.039031982421875, -0.012481689453125, -0.0037059783935546875, -0.0306549072265625, -0.0194854736328125, 0.01016998291015625, -0.05828857421875, 0.01192474365234375, -0.0213775634765625, -0.031768798828125, -0.0210113525390625, -0.04583740234375, 0.0615234375, -0.0108184814453125, 0.0482177734375, -0.002185821533203125, 0.0279998779296875, 0.060302734375, 0.038055419921875, 0.00862884521484375, 0.0115966796875, -0.02191162109375, 0.0259552001953125, 0.00013506412506103516, 0.0179290771484375, -0.03076171875, -0.007526397705078125, 0.01136016845703125, 0.06573486328125, 0.00373077392578125, 0.061370849609375, -0.0201568603515625, 0.053314208984375, 0.0085296630859375, 0.0657958984375, 0.0035343170166015625, 0.003063201904296875, -0.0308837890625, 0.05816650390625, -0.00606536865234375, -0.0222625732421875, 0.0032100677490234375, -0.0472412109375, 0.0163421630859375, -0.00946807861328125, 0.03924560546875, -0.0204620361328125, 0.037567138671875, -0.04034423828125, 0.00739288330078125, 0.0277862548828125 ]
dcfa2ea835eecfd4ac745d36c94975269d859a11
Wordpress Stackexchange Q: How to add category exclusion to rss feed I'm trying to exclude certain categories from the mydomain.com/feed Researching online I came across this code: <a href="<?php bloginfo('url'); ?>/feed?cat=-3&cat=-12">Entries (RSS)</a> Now the question is should I create a function (if yes what function to create) so I can exclude categories without having anyone to redirect to custom feed URLs A: In your functions.php add: function excludeFeedCats($query) { if ($query->is_feed) { $query->set('cat','-3, -12'); } return $query; } add_filter('pre_get_posts','excludeFeedCats'); Or use Simply Exclude for more flexibility.
Q: How to add category exclusion to rss feed I'm trying to exclude certain categories from the mydomain.com/feed Researching online I came across this code: <a href="<?php bloginfo('url'); ?>/feed?cat=-3&cat=-12">Entries (RSS)</a> Now the question is should I create a function (if yes what function to create) so I can exclude categories without having anyone to redirect to custom feed URLs A: In your functions.php add: function excludeFeedCats($query) { if ($query->is_feed) { $query->set('cat','-3, -12'); } return $query; } add_filter('pre_get_posts','excludeFeedCats'); Or use Simply Exclude for more flexibility. A: Take a look on this plugin too Ultimate Category Excluder.i hope it'll helps you:)
wordpress
{ "language": "en", "length": 99, "provenance": "stackexchange_00019.jsonl.gz:410850", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21606" }
[ 0.0831298828125, 0.014739990234375, 0.004192352294921875, -0.0093994140625, 0.0528564453125, -0.04058837890625, 0.0833740234375, -0.03814697265625, -0.01361083984375, 0.01522064208984375, -0.021270751953125, -0.018829345703125, -0.026397705078125, -0.0255584716796875, -0.0252685546875, -0.047119140625, 0.0292510986328125, -0.0022144317626953125, 0.038543701171875, -0.00457763671875, 0.01036834716796875, -0.0015506744384765625, 0.04803466796875, -0.00409698486328125, 0.01465606689453125, -0.02044677734375, 0.05377197265625, -0.0305938720703125, 0.01459503173828125, -0.0277862548828125, 0.0132598876953125, 0.0027294158935546875, -0.00536346435546875, 0.04339599609375, -0.0276947021484375, 0.0122833251953125, -0.0175323486328125, 0.0335693359375, 0.0215301513671875, 0.0274658203125, 0.0163726806640625, -0.01251220703125, 0.01490020751953125, -0.01406097412109375, 0.0111083984375, -0.02301025390625, 0.01462554931640625, -0.06353759765625, 0.00543975830078125, -0.042724609375, 0.02716064453125, 0.002166748046875, 0.03631591796875, -0.027435302734375, -0.017608642578125, 0.0125274658203125, -0.0034618377685546875, 0.03668212890625, 0.037353515625, -0.0038928985595703125, -0.048736572265625, 0.009796142578125, 0.010101318359375, -0.0218353271484375, -0.0195159912109375, -0.0107421875, 0.047576904296875, 0.02154541015625, -0.05426025390625, -0.036468505859375, 0.040496826171875, -0.00389862060546875, -0.006061553955078125, -0.0087432861328125, -0.03863525390625, 0.01386260986328125, 0.03912353515625, -0.0029468536376953125, -0.0011205673217773438, -0.014190673828125, -0.01218414306640625, -0.014404296875, -0.0328369140625, -0.01251220703125, 0.0139312744140625, 0.0247650146484375, -0.00966644287109375, -0.016998291015625, -0.041595458984375, 0.0002276897430419922, -0.016204833984375, -0.01117706298828125, -0.07550048828125, 0.0220184326171875, 0.01517486572265625, 0.00020563602447509766, 0.0272979736328125, 0.0406494140625, -0.0192718505859375, -0.0222625732421875, -0.018829345703125, -0.0158233642578125, -0.03997802734375, -0.015899658203125, 0.01544189453125, 0.0343017578125, -0.0270843505859375, 0.033843994140625, 0.0709228515625, 0.041351318359375, 0.0227508544921875, 0.0186004638671875, -0.001293182373046875, -0.00567626953125, -0.0419921875, 0.013885498046875, -0.01270294189453125, -0.0016355514526367188, -0.01491546630859375, 0.0198974609375, 0.0204620361328125, 0.06842041015625, -0.0535888671875, -0.0301361083984375, -0.00959014892578125, -0.026123046875, 0.0025424957275390625, -0.0031261444091796875, -0.0094451904296875, -0.006526947021484375, -0.045501708984375, 0.0301666259765625, 0.080322265625, 0.0298919677734375, 0.01036834716796875, -0.01505279541015625, 0.04998779296875, -0.042388916015625, -0.0079803466796875, 0.0116119384765625, 0.0193939208984375, -0.0126495361328125, 0.0007481575012207031, -0.0127410888671875, -0.0015697479248046875, 0.0196990966796875, 0.004467010498046875, 0.007373809814453125, 0.0153350830078125, -0.0133209228515625, -0.00861358642578125, -0.031646728515625, 0.0572509765625, 0.007686614990234375, -0.04693603515625, 0.0009212493896484375, 0.035430908203125, -0.04571533203125, -0.05029296875, -0.052825927734375, 0.011199951171875, 0.0006022453308105469, 0.020294189453125, -0.0389404296875, -0.062103271484375, -0.0011310577392578125, -0.03570556640625, -0.018524169921875, 0.0185546875, 0.0127716064453125, -0.00379180908203125, -0.0179595947265625, 0.0018711090087890625, 0.0152130126953125, 0.01012420654296875, 0.01155853271484375, -0.00829315185546875, 0.00258636474609375, 0.0135955810546875, 0.0224761962890625, 0.00946044921875, -0.0237579345703125, 0.00852203369140625, 0.031707763671875, -0.083740234375, 0.05389404296875, 0.021942138671875, 0.079345703125, -0.0015172958374023438, 0.01641845703125, 0.0740966796875, 0.0321044921875, 0.0013790130615234375, -0.0003426074981689453, -0.01023101806640625, -0.052520751953125, 0.00263214111328125, -0.02252197265625, -0.0145263671875, 0.0386962890625, 0.007293701171875, 0.01800537109375, -0.01947021484375, 0.0311279296875, -0.056304931640625, 0.0237274169921875, -0.0216064453125, 0.02197265625, -0.01763916015625, 0.01654052734375, 0.0157470703125, -0.01273345947265625, -0.0070953369140625, -0.0323486328125, -0.0133209228515625, -0.0005083084106445312, 0.00507354736328125, 0.01500701904296875, -0.0003063678741455078, 0.006572723388671875, -0.00298309326171875, 0.0042266845703125, -0.01036834716796875, 0.01416015625, 0.055145263671875, -0.03472900390625, -0.0101165771484375, -0.03961181640625, 0.004253387451171875, 0.01119232177734375, -0.1044921875, 0.03912353515625, 0.025848388671875, 0.037109375, -0.0276031494140625, 0.02325439453125, 0.042938232421875, 0.0241851806640625, -0.0156402587890625, -0.0020198822021484375, 0.04168701171875, 0.0098114013671875, -0.0240631103515625, -0.035675048828125, 0.03704833984375, -0.05322265625, 0.002727508544921875, -0.0238189697265625, 0.020751953125, 0.0836181640625, 0.0118865966796875, 0.009521484375, -0.004535675048828125, 0.01415252685546875, -0.004299163818359375, 0.0245361328125, 0.00490570068359375, -0.01763916015625, 0.01267242431640625, -0.0052032470703125, 0.0135650634765625, 0.0399169921875, -0.04156494140625, 0.036224365234375, 0.0665283203125, -0.027740478515625, 0.038421630859375, 0.0423583984375, -0.007709503173828125, -0.019378662109375, 0.007328033447265625, 0.004718780517578125, -0.0024852752685546875, 0.0267791748046875, 0.015350341796875, -0.009979248046875, -0.01363372802734375, 0.0006690025329589844, 0.0008940696716308594, 0.0009579658508300781, -0.0097808837890625, 0.08050537109375, -0.006381988525390625, -0.0193023681640625, -0.053436279296875, -0.0794677734375, -0.01326751708984375, -0.0108795166015625, -0.01004791259765625, 0.01259613037109375, 0.030487060546875, 0.024871826171875, 0.004802703857421875, -0.0079345703125, 0.01010894775390625, -0.0033092498779296875, 0.0222015380859375, -0.045989990234375, 0.034637451171875, -0.02032470703125, 0.0440673828125, 0.06793212890625, 0.006015777587890625, 0.007503509521484375, 0.0286865234375, -0.01305389404296875, 0.0124053955078125, 0.007747650146484375, 0.005168914794921875, 0.0241851806640625, -0.07415771484375, 0.0180511474609375, 0.0134124755859375, -0.026702880859375, 0.026763916015625, 0.00655364990234375, -0.001384735107421875, 0.00774383544921875, 0.01401519775390625, 0.018951416015625, 0.0286712646484375, -0.00879669189453125, 0.006683349609375, 0.0206146240234375, -0.004131317138671875, -0.0298614501953125, 0.0259857177734375, -0.00555419921875, 0.011688232421875, -0.03802490234375, -0.041412353515625, -0.046875, -0.05535888671875, 0.0173492431640625, 0.012969970703125, 0.00130462646484375, 0.01021575927734375, 0.0858154296875, 0.0157470703125, -0.070068359375, 0.01558685302734375, -0.01432037353515625, -0.004436492919921875, 0.045928955078125, -0.005054473876953125, -0.00437164306640625, 0.0007429122924804688, -0.0055694580078125, 0.09820556640625, 0.036468505859375, -0.041534423828125, 0.0199432373046875, -0.037567138671875, -0.0100555419921875, -0.016021728515625, -0.007350921630859375, 0.054107666015625, -0.01322174072265625, -0.004474639892578125, -0.0416259765625, -0.0081634521484375, -0.0177764892578125, -0.0236358642578125, -0.01375579833984375, 0.0218505859375, -0.01343536376953125, -0.049346923828125, 0.0206451416015625, -0.0256195068359375, -0.00443267822265625, 0.04248046875, -0.03997802734375, -0.01031494140625, -0.0194091796875, -0.035003662109375, -0.00301361083984375, 0.01453399658203125, -0.02496337890625, 0.0110015869140625, -0.0110015869140625, -0.005451202392578125, -0.0252838134765625, 0.0162200927734375, -0.051544189453125, 0.0004000663757324219, 0.01076507568359375, -0.0303955078125, -0.0179595947265625, 0.0010862350463867188, 0.005352020263671875, -0.00560760498046875, 0.0188446044921875, 0.00502777099609375, -0.046722412109375, -0.053466796875, 0.0157928466796875, -0.00121307373046875, -0.05963134765625, 0.0577392578125, -0.0279083251953125, -0.04718017578125, 0.016326904296875, -0.0089569091796875, -0.007579803466796875, -0.020721435546875, -0.0218505859375, -0.023712158203125, -0.02996826171875, 0.0487060546875, -0.0243072509765625, 0.0211334228515625, -0.030548095703125, 0.03460693359375, -0.060882568359375, -0.027740478515625, 0.005279541015625, -0.0281219482421875, 0.007205963134765625, -0.036346435546875, -0.01517486572265625, 0.01488494873046875, 0.01641845703125, -0.0178070068359375, -0.0009636878967285156, -0.0030879974365234375, -0.04071044921875, 0.0084991455078125, 0.0063018798828125, -0.01806640625, 0.0357666015625, 0.0009813308715820312, -0.019073486328125, -0.019866943359375, -0.0037078857421875, -0.006267547607421875, 0.0369873046875, -0.00021505355834960938, -0.005741119384765625, 0.020599365234375, -0.03125, -0.0653076171875, -0.07110595703125, -0.023895263671875, -0.0149078369140625, -0.0102386474609375, -0.0087127685546875, -0.060546875, -0.045684814453125, 0.0301971435546875, 0.00850677490234375, -0.01275634765625, 0.00745391845703125, 0.03985595703125, 0.0101776123046875, -0.027099609375, -0.039581298828125, 0.01238250732421875, 0.034454345703125, -0.04168701171875, 0.056060791015625, 0.0114288330078125, -0.037322998046875, 0.10845947265625, -0.0256195068359375, 0.029754638671875, -0.0733642578125, 0.05755615234375, -0.01116180419921875, -0.00597381591796875, 0.02325439453125, -0.0210418701171875, 0.0401611328125, -0.0279693603515625, -0.0147705078125, -0.0241241455078125, 0.025604248046875, 0.0229034423828125, -0.01209259033203125, 0.049652099609375, 0.0021152496337890625, 0.0151824951171875, -0.0014066696166992188, 0.01678466796875, 0.01224517822265625, 0.047149658203125, -0.022796630859375, -0.03436279296875, -0.03387451171875, 0.0069427490234375, -0.04351806640625, -0.0088653564453125, -0.052703857421875, 0.0138397216796875, -0.03363037109375, -0.0231781005859375, -0.004119873046875, 0.01557159423828125, -0.048736572265625, -0.0093231201171875, -0.0257110595703125, -0.028076171875, 0.027801513671875, 0.032684326171875, 0.0205230712890625, 0.003261566162109375, 0.040802001953125, 0.009246826171875, 0.01080322265625, 0.007335662841796875, -0.0484619140625, 0.00948333740234375, -0.04266357421875, -0.01517486572265625, -0.00524139404296875, -0.01435089111328125, 0.042938232421875, 0.0263824462890625, -0.004116058349609375, 0.044830322265625, -0.0167388916015625, 0.036407470703125, 0.0221710205078125, 0.005451202392578125, 0.010986328125, 0.0283203125, -0.026519775390625, -0.005786895751953125, -0.0208282470703125, -0.00927734375, -0.04345703125, -0.016937255859375, 0.003948211669921875, -0.011138916015625, 0.0108184814453125, 0.03192138671875, 0.00833892822265625, -0.0226287841796875, 0.043243408203125, 0.0296783447265625, -0.0118865966796875, -0.037445068359375, -0.04974365234375, 0.0124053955078125, 0.0146484375, -0.01555633544921875, 0.023681640625, -0.03643798828125, -0.0092315673828125, 0.06634521484375, -0.03192138671875, -0.0193634033203125, -0.0182342529296875, -0.060516357421875, -0.0215606689453125, -0.022064208984375, -0.002490997314453125, -0.0181732177734375, 0.012176513671875, -0.023101806640625, -0.00830841064453125, -0.005523681640625, 0.04425048828125, -0.0278778076171875, -0.034820556640625, -0.0027065277099609375, -0.006927490234375, 0.06573486328125, 0.032958984375, -0.04437255859375, -0.01111602783203125, -0.04107666015625, -0.03204345703125, -0.036346435546875, -0.0273284912109375, -0.03839111328125, 0.01727294921875, -0.012939453125, 0.0005102157592773438, -0.0174713134765625, -0.012176513671875, 0.01264190673828125, 0.0216522216796875, -0.00959014892578125, -0.0182342529296875, -0.004840850830078125, -0.00957489013671875, 0.0116729736328125, 0.0261688232421875, 0.00429534912109375, 0.0036106109619140625, 0.019866943359375, -0.047454833984375, -0.01515960693359375, -0.07196044921875, -0.011962890625, 0.032867431640625, -0.0556640625, 0.037567138671875, 0.048919677734375, 0.00891876220703125, -0.01152801513671875, -0.0004031658172607422, 0.01180267333984375, -0.033416748046875, -0.02557373046875, -0.012542724609375, -0.0137176513671875, -0.0194244384765625, -0.00970458984375, -0.00531768798828125, -0.0238189697265625, -0.01386260986328125, 0.0176544189453125, 0.001079559326171875, 0.0081329345703125, 0.004955291748046875, -0.048065185546875, 0.07720947265625, 0.061676025390625, 0.009490966796875, 0.047027587890625, 0.024749755859375, 0.01493072509765625, -0.017364501953125, -0.0190887451171875, 0.02496337890625, 0.010284423828125, 0.036224365234375, -0.00939178466796875, 0.01543426513671875, 0.037750244140625, -0.0180206298828125, -0.0273284912109375, 0.0255126953125, 0.0112152099609375, -0.048309326171875, -0.0030422210693359375, -0.0052032470703125, 0.00876617431640625, 0.021240234375, -0.0017595291137695312, -0.002101898193359375, -0.0207366943359375, 0.0145416259765625, -0.025390625, -0.0372314453125, -0.0081634521484375, 0.00046372413635253906, -0.01476287841796875, 0.01041412353515625, 0.0008788108825683594, 0.0007042884826660156, -0.001407623291015625, -0.052154541015625, 0.010650634765625, -0.037445068359375, -0.00948333740234375, 0.000005304813385009766, 0.045074462890625, -0.03497314453125, -0.06439208984375, 0.042449951171875, 0.007579803466796875, -0.021087646484375, 0.035675048828125, -0.030853271484375, 0.026397705078125, 0.03155517578125, -0.00910186767578125, -0.00838470458984375, -0.0022106170654296875, -0.050537109375, 0.0287628173828125, -0.033355712890625, 0.0161590576171875, -0.0035724639892578125, -0.04022216796875, 0.0026226043701171875, 0.0028400421142578125, -0.04327392578125, -0.0039215087890625, -0.056854248046875, 0.05450439453125, -0.030853271484375, -0.01140594482421875, -0.0013370513916015625, -0.01788330078125, 0.0192413330078125, -0.01641845703125, 0.0360107421875, -0.0750732421875, -0.037261962890625, 0.00769805908203125, -0.00909423828125, 0.008941650390625, -0.017333984375, -0.0836181640625, 0.09466552734375, -0.0589599609375, 0.087890625, 0.0174560546875, 0.0156707763671875, 0.02642822265625, 0.01122283935546875, -0.05328369140625, 0.04766845703125, 0.03826904296875, 0.04510498046875, -0.05706787109375, -0.026702880859375, 0.0190887451171875, 0.04583740234375, 0.046112060546875, 0.0023212432861328125, 0.01163482666015625, -0.030426025390625, 0.0118560791015625, 0.07769775390625, -0.000041961669921875, -0.0275421142578125, -0.0160980224609375, -0.031097412109375, 0.008636474609375, -0.005901336669921875, 0.0254364013671875, -0.007808685302734375, -0.02520751953125, -0.0019378662109375, -0.00836181640625, -0.02337646484375, 0.0033016204833984375, 0.014251708984375, -0.007549285888671875, 0.003612518310546875, -0.0185394287109375, 0.01153564453125, -0.006557464599609375, 0.061920166015625, 0.0273284912109375, -0.06292724609375, 0.00667572021484375, -0.055908203125, 0.052825927734375, -0.007480621337890625, 0.084716796875, 0.06488037109375, 0.020538330078125, 0.09503173828125, 0.00757598876953125, 0.055084228515625, -0.007061004638671875, -0.0124359130859375, 0.039306640625, 0.017913818359375, 0.0152587890625, -0.046722412109375, 0.0013551712036132812, 0.0574951171875, 0.052490234375, -0.0273895263671875, -0.031829833984375, 0.004650115966796875, 0.0186004638671875, 0.029571533203125, 0.01132965087890625, 0.04833984375, -0.007221221923828125, 0.0263519287109375, -0.0699462890625, -0.00030517578125, 0.059844970703125, 0.0205841064453125, 0.0025730133056640625, -0.01352691650390625, -0.0416259765625, -0.0145263671875, -0.031707763671875, -0.0026226043701171875, -0.0085906982421875, 0.057159423828125, 0.04644775390625, 0.039764404296875, -0.01332855224609375, -0.041290283203125, -0.0021152496337890625, 0.044677734375, 0.00440216064453125, -0.0238800048828125, 0.0006103515625, -0.049102783203125, 0.0286712646484375, 0.017120361328125, -0.01244354248046875, -0.0211334228515625, 0.0162200927734375, 0.02886962890625, -0.03009033203125, -0.0211944580078125, 0.01390838623046875, -0.0273284912109375, -0.058349609375, -0.033905029296875, 0.02996826171875, 0.06982421875, 0.0279083251953125, 0.018280029296875, 0.0250244140625, 0.04986572265625, 0.00841522216796875, -0.025054931640625, 0.01222991943359375, -0.035491943359375, -0.0027217864990234375, 0.004489898681640625, 0.009429931640625, 0.031005859375, -0.1009521484375, -0.030029296875, -0.028656005859375, -0.034942626953125, 0.049652099609375, 0.042449951171875, -0.042205810546875, 0.0352783203125, 0.031829833984375, -0.00792694091796875, 0.00678253173828125, -0.0162811279296875, 0.02081298828125, -0.01345062255859375, 0.00868988037109375, 0.004970550537109375, 0.002655029296875, 0.0023555755615234375, 0.00978851318359375, 0.0289154052734375, 0.03851318359375, 0.039764404296875, -0.001567840576171875, 0.0158843994140625, 0.004711151123046875, 0.0182952880859375, -0.0181121826171875, -0.00931549072265625, 0.01390838623046875, -0.0271453857421875, 0.00675201416015625, 0.0014600753784179688, 0.00566864013671875, -0.010101318359375, 0.0450439453125, -0.05352783203125, 0.0006809234619140625, -0.0386962890625, 0.01165008544921875, -0.0355224609375, 0.04632568359375, -0.0313720703125, -0.016815185546875, -0.05908203125, -0.044677734375, 0.04376220703125, 0.036376953125, 0.01071929931640625, 0.0413818359375, 0.007045745849609375, 0.0269012451171875, -0.00434112548828125, -0.0003142356872558594, -0.01273345947265625, 0.03912353515625, -0.0241546630859375, 0.008575439453125, 0.0164337158203125, -0.01294708251953125, 0.0277099609375, 0.004405975341796875, 0.0126190185546875, 0.024871826171875, -0.01488494873046875, 0.019378662109375, 0.0168914794921875, 0.0235137939453125, -0.0287628173828125, 0.0018157958984375, 0.0202789306640625, -0.01154327392578125, 0.0028095245361328125, -0.0036830902099609375, -0.038818359375, -0.00275421142578125, -0.01409912109375, 0.00601959228515625, 0.007778167724609375, -0.07440185546875, -0.05499267578125, 0.03228759765625, -0.002986907958984375, -0.0236663818359375, -0.053009033203125, 0.04559326171875, -0.047454833984375, 0.08074951171875, -0.07354736328125, -0.0214996337890625, 0.00998687744140625, 0.061553955078125, -0.012115478515625, -0.022552490234375, -0.01055908203125, 0.00334930419921875, -0.024139404296875, -0.0124359130859375, -0.004764556884765625, -0.0081329345703125, -0.004451751708984375, -0.012847900390625, -0.00896453857421875, 0.024322509765625, 0.0160675048828125, 0.0022678375244140625, 0.0109100341796875, 0.0012311935424804688, -0.04364013671875, -0.0182647705078125, 0.04718017578125, -0.043426513671875, -0.06329345703125, 0.04937744140625, -0.047943115234375, 0.003582000732421875, -0.0296173095703125, -0.06640625, 0.06500244140625, 0.0196533203125, -0.03717041015625, -0.01543426513671875, 0.01358795166015625, 0.0081024169921875, -0.02642822265625, -0.005664825439453125, -0.0001894235610961914, -0.01513671875, -0.013641357421875, 0.032470703125, 0.013275146484375, 0.038665771484375, 0.0184326171875, -0.0478515625, 0.020599365234375, -0.00955963134765625, 0.0217437744140625, -0.02984619140625, 0.012237548828125, 0.00821685791015625, 0.0226287841796875, -0.034637451171875, 0.03363037109375, 0.01122283935546875, 0.034881591796875, 0.005767822265625, -0.04193115234375, -0.09185791015625, -0.058502197265625, 0.09271240234375, 0.0540771484375, 0.04620361328125, -0.01519012451171875, -0.061676025390625, -0.04742431640625, 0.0210113525390625, -0.02301025390625, 0.0163421630859375, -0.084716796875, 0.0004858970642089844, 0.0189971923828125, 0.00563812255859375, 0.024444580078125, -0.0211181640625, -0.0136871337890625, -0.00856781005859375, -0.01506805419921875, 0.000039458274841308594, -0.0401611328125, 0.0288543701171875, -0.0291748046875, -0.0106048583984375, -0.022796630859375, -0.035186767578125, 0.00856781005859375, -0.04302978515625, -0.049072265625, -0.0164337158203125, -0.060272216796875, 0.01345062255859375, 0.055267333984375, -0.019744873046875, 0.042388916015625, -0.020172119140625, -0.030731201171875, -0.031890869140625, -0.01091766357421875, 0.03753662109375, -0.01111602783203125, -0.04010009765625, -0.0171356201171875, 0.02691650390625, -0.021453857421875, 0.0157012939453125, -0.00685882568359375, -0.023101806640625, 0.04168701171875, -0.005832672119140625, -0.0161285400390625, -0.00041604042053222656, -0.0166168212890625, -0.00841522216796875, -0.0082550048828125, -0.01299285888671875, -0.044525146484375, 0.0237579345703125, -0.06121826171875, 0.006969451904296875, 0.020111083984375 ]
0edf794c67d6b62d0a71145953431727ae516f20
Wordpress Stackexchange Q: What is your take: TimThumb vs. WordPress Thumbnails? The great debate When it comes to excerpts, do you believe TimThumb or WordPress thumbnails is the way to go? And why? Answers will not be graded (but may be criticized). A: WordPress image handling, without question. The only thing that TimThumb has that is currently not possible with core image handling is zoom crop. Everything else can be accomplished using core image handling, including on-the-fly resizing. I see absolutely no advantage to using TimThumb, and only disadvantages. It was a great tool prior to WordPress 2.9, but has been essentially unnecessary since then. EDIT Advantages to using core system: * *Familiar UI (Media Manager, "Featured Image" metabox), rather than custom fields *Implement in template using core WordPress functions *Less overhead *Cross-Theme support *Thumbnail image handling remains extensible via Plugin *Thumbnail image handling maintains forward-compatibility with WordPress core
Q: What is your take: TimThumb vs. WordPress Thumbnails? The great debate When it comes to excerpts, do you believe TimThumb or WordPress thumbnails is the way to go? And why? Answers will not be graded (but may be criticized). A: WordPress image handling, without question. The only thing that TimThumb has that is currently not possible with core image handling is zoom crop. Everything else can be accomplished using core image handling, including on-the-fly resizing. I see absolutely no advantage to using TimThumb, and only disadvantages. It was a great tool prior to WordPress 2.9, but has been essentially unnecessary since then. EDIT Advantages to using core system: * *Familiar UI (Media Manager, "Featured Image" metabox), rather than custom fields *Implement in template using core WordPress functions *Less overhead *Cross-Theme support *Thumbnail image handling remains extensible via Plugin *Thumbnail image handling maintains forward-compatibility with WordPress core A: Timthumb's ONLY advantage is in reducing the quantity of files stored on the server. By default Wordpress creates 3 images from each upload. If you add additional sizes it will create a new image file for each of those as well. Basic Usage: 1000 Posts with an average of 5 images per post will produce a minimum of 15,000 images. Using 5 custom sizes for the crop value used in post listings, etc... 1000 Posts with an average of 5 images per post will produce a minimum of 40,000 images. Shared hosting environments can limit the number of files on a server to 50,000 or less... thus the helpful use of timthumb which would keep the files stored lower. That's my 2 cents.... A: I choose the third option: http://wordpress.org/extend/plugins/custom-image-sizes/ It generates custom thumbnail sizes on the fly, while still being integrated into WordPress. Really, with that plugin around, you should never need to use TimThumb again. A: In my opinion the built in <?php add_image_size( $name, $width, $height, $crop ); ?> function is much more flexible, easy and with less overhead. It does resize-crop, so I don't see a reason to go back to TimThumb (which I used extensively in the past).
wordpress
{ "language": "en", "length": 351, "provenance": "stackexchange_00019.jsonl.gz:410860", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21634" }
[ 0.10150146484375, -0.0333251953125, 0.07135009765625, -0.00872039794921875, -0.0248565673828125, -0.0128936767578125, 0.068603515625, -0.045745849609375, 0.056884765625, 0.02099609375, -0.032928466796875, 0.0169677734375, 0.020904541015625, -0.008514404296875, -0.0304718017578125, 0.00396728515625, 0.06683349609375, -0.06622314453125, 0.01178741455078125, -0.007602691650390625, -0.0019073486328125, 0.01334381103515625, 0.049346923828125, 0.05059814453125, 0.0295257568359375, -0.00685882568359375, 0.0101776123046875, 0.0219268798828125, -0.01485443115234375, -0.0053558349609375, 0.014892578125, 0.0101776123046875, -0.007076263427734375, 0.044677734375, -0.00611114501953125, 0.0204315185546875, 0.018524169921875, 0.03778076171875, 0.035247802734375, 0.01445770263671875, -0.00336456298828125, 0.01454925537109375, 0.03564453125, 0.0016126632690429688, -0.003185272216796875, -0.011260986328125, -0.0104827880859375, -0.041473388671875, -0.0186004638671875, -0.0292816162109375, 0.0269927978515625, 0.038177490234375, 0.053497314453125, -0.0140228271484375, -0.00939178466796875, -0.00428009033203125, -0.0088348388671875, 0.00272369384765625, 0.02764892578125, -0.0182952880859375, -0.022003173828125, 0.00852203369140625, 0.0169677734375, 0.0186614990234375, 0.0254974365234375, -0.0142059326171875, -0.025238037109375, 0.0311279296875, 0.0020999908447265625, 0.0251617431640625, 0.0032958984375, -0.020111083984375, -0.003406524658203125, -0.020843505859375, 0.004955291748046875, 0.07562255859375, -0.061920166015625, 0.0210418701171875, 0.048583984375, -0.003978729248046875, -0.046875, -0.05694580078125, -0.01751708984375, -0.0021724700927734375, 0.004077911376953125, 0.047821044921875, -0.01541900634765625, 0.007030487060546875, -0.0020122528076171875, 0.03216552734375, 0.00157928466796875, -0.037506103515625, -0.0301361083984375, 0.0914306640625, 0.045379638671875, -0.0004305839538574219, 0.005268096923828125, -0.01151275634765625, -0.032928466796875, -0.01922607421875, 0.03558349609375, -0.0450439453125, 0.028045654296875, -0.0029354095458984375, -0.00616455078125, 0.0211334228515625, 0.042236328125, 0.001483917236328125, 0.012451171875, 0.00853729248046875, -0.01313018798828125, 0.03607177734375, -0.006317138671875, -0.044647216796875, 0.00809478759765625, 0.0180816650390625, -0.019561767578125, 0.02191162109375, 0.0088043212890625, -0.026580810546875, -0.0026187896728515625, -0.01522064208984375, 0.047119140625, 0.023040771484375, 0.0096893310546875, 0.01163482666015625, -0.01556396484375, -0.0268402099609375, -0.03961181640625, 0.032440185546875, -0.03509521484375, -0.0032215118408203125, 0.01317596435546875, 0.018096923828125, -0.01110076904296875, -0.00921630859375, 0.0007414817810058594, -0.05645751953125, 0.01374053955078125, 0.006641387939453125, -0.0167236328125, -0.0113525390625, 0.04913330078125, -0.01068878173828125, 0.031707763671875, 0.0180206298828125, 0.00542449951171875, 0.0240631103515625, 0.046844482421875, -0.033172607421875, 0.03912353515625, -0.055755615234375, 0.003387451171875, -0.00897979736328125, 0.035003662109375, -0.050537109375, -0.0190887451171875, -0.0222015380859375, 0.02874755859375, 0.024505615234375, 0.0267486572265625, -0.00958251953125, -0.0111541748046875, -0.00785064697265625, -0.0251617431640625, 0.001861572265625, -0.0288543701171875, -0.0009322166442871094, 0.0196533203125, -0.0238800048828125, 0.013427734375, 0.039337158203125, 0.0325927734375, 0.022125244140625, 0.0129852294921875, -0.006679534912109375, 0.0228271484375, 0.01160430908203125, 0.0307464599609375, 0.016387939453125, -0.0160369873046875, -0.0374755859375, 0.0760498046875, -0.04595947265625, -0.0054473876953125, -0.02154541015625, 0.010223388671875, 0.040496826171875, 0.00977325439453125, 0.03497314453125, -0.0188446044921875, -0.023529052734375, -0.0570068359375, 0.10174560546875, 0.0018672943115234375, -0.050567626953125, -0.0246429443359375, -0.00551605224609375, -0.024383544921875, -0.035369873046875, 0.07403564453125, 0.040802001953125, -0.039306640625, -0.00894927978515625, -0.08258056640625, -0.00872039794921875, -0.01430511474609375, 0.03173828125, -0.0280609130859375, 0.0262298583984375, 0.038330078125, 0.0036163330078125, -0.0455322265625, 0.0306549072265625, 0.01202392578125, 0.00957489013671875, -0.01097869873046875, -0.004413604736328125, 0.005481719970703125, 0.047515869140625, -0.0175628662109375, -0.006256103515625, -0.02764892578125, 0.039581298828125, -0.02154541015625, 0.006443023681640625, -0.043212890625, 0.0007786750793457031, -0.0426025390625, 0.003826141357421875, -0.03680419921875, 0.058990478515625, -0.0260772705078125, 0.007617950439453125, 0.009124755859375, 0.0010385513305664062, -0.004116058349609375, -0.053863525390625, 0.0140838623046875, 0.026031494140625, 0.024322509765625, 0.053863525390625, 0.01444244384765625, 0.023040771484375, 0.062103271484375, 0.021728515625, 0.0364990234375, -0.0111541748046875, -0.0007333755493164062, -0.01284027099609375, 0.03662109375, -0.04083251953125, 0.0256805419921875, 0.01314544677734375, -0.00036907196044921875, 0.01611328125, -0.043243408203125, -0.0157623291015625, -0.0377197265625, 0.0224456787109375, 0.01221466064453125, -0.0026226043701171875, 0.005664825439453125, -0.010528564453125, 0.003627777099609375, 0.0009589195251464844, 0.034271240234375, 0.0287017822265625, 0.004573822021484375, -0.00888824462890625, -0.006687164306640625, -0.026947021484375, 0.0019588470458984375, 0.06280517578125, 0.05133056640625, 0.036773681640625, -0.016632080078125, -0.044342041015625, 0.0147247314453125, 0.051422119140625, -0.00958251953125, 0.00849151611328125, 0.01085662841796875, -0.01007080078125, -0.0191802978515625, -0.056060791015625, 0.0260009765625, 0.03460693359375, 0.0178985595703125, -0.01922607421875, 0.00800323486328125, 0.03607177734375, -0.00035834312438964844, 0.031890869140625, -0.0038394927978515625, -0.00684356689453125, 0.012237548828125, -0.0406494140625, 0.04888916015625, -0.04730224609375, 0.0408935546875, 0.05633544921875, -0.046142578125, 0.021270751953125, 0.0158538818359375, 0.00466156005859375, 0.001911163330078125, 0.021026611328125, 0.01416015625, 0.0232696533203125, -0.041290283203125, 0.0149688720703125, 0.004810333251953125, 0.095947265625, -0.06634521484375, -0.0780029296875, -0.015289306640625, 0.01541900634765625, -0.03564453125, -0.0265655517578125, -0.05523681640625, -0.07635498046875, 0.040374755859375, 0.0243988037109375, -0.0250244140625, -0.020111083984375, 0.0751953125, 0.033294677734375, -0.04937744140625, -0.00200653076171875, -0.029449462890625, -0.04931640625, -0.0712890625, -0.03314208984375, -0.01236724853515625, 0.04522705078125, 0.00788116455078125, 0.0206146240234375, 0.012542724609375, -0.03704833984375, 0.018402099609375, 0.048583984375, -0.003139495849609375, 0.00508880615234375, 0.0032405853271484375, -0.00917816162109375, -0.01024627685546875, 0.0150604248046875, 0.00687408447265625, 0.012847900390625, -0.0186767578125, -0.0175323486328125, -0.018829345703125, -0.00954437255859375, -0.035125732421875, 0.0489501953125, 0.04010009765625, -0.030670166015625, -0.006725311279296875, -0.0528564453125, -0.019805908203125, -0.003124237060546875, -0.032318115234375, -0.002655029296875, 0.02020263671875, 0.002696990966796875, -0.017730712890625, 0.0015935897827148438, 0.010040283203125, 0.00554656982421875, -0.00884246826171875, -0.0238037109375, 0.04290771484375, 0.01174163818359375, 0.035736083984375, -0.018341064453125, -0.0257415771484375, -0.031951904296875, 0.0081939697265625, -0.027069091796875, 0.030670166015625, -0.026275634765625, 0.06732177734375, -0.0306854248046875, 0.0197906494140625, 0.0238037109375, 0.0249481201171875, 0.0357666015625, 0.0135345458984375, -0.03045654296875, 0.0139923095703125, 0.061981201171875, -0.017333984375, -0.0184478759765625, 0.0166473388671875, 0.007099151611328125, -0.032257080078125, -0.0032253265380859375, -0.05584716796875, -0.01239776611328125, -0.079833984375, 0.0562744140625, 0.0111083984375, -0.0017185211181640625, -0.032012939453125, 0.0278778076171875, -0.034027099609375, -0.035430908203125, 0.0145721435546875, 0.0157012939453125, -0.0285491943359375, 0.0229339599609375, -0.0179595947265625, 0.0102081298828125, -0.0010499954223632812, -0.00823211669921875, -0.0911865234375, -0.01666259765625, 0.010162353515625, 0.05120849609375, -0.0140228271484375, -0.0183563232421875, -0.052947998046875, 0.01424407958984375, -0.0313720703125, 0.005100250244140625, -0.006038665771484375, 0.044708251953125, -0.0016469955444335938, -0.01197052001953125, -0.0198822021484375, -0.0202789306640625, 0.0118255615234375, -0.0596923828125, -0.04730224609375, -0.064208984375, -0.03436279296875, 0.002288818359375, -0.0243072509765625, -0.0098419189453125, -0.042572021484375, -0.0119171142578125, -0.0182342529296875, 0.0303497314453125, -0.01532745361328125, -0.00830078125, -0.043060302734375, -0.052520751953125, 0.0582275390625, 0.051971435546875, 0.01454925537109375, -0.0121002197265625, 0.052947998046875, 0.00022733211517333984, -0.051666259765625, -0.05938720703125, -0.00359344482421875, 0.0302581787109375, 0.019744873046875, -0.00637054443359375, -0.0222015380859375, -0.035552978515625, 0.01503753662109375, 0.016845703125, 0.0247344970703125, -0.0091094970703125, 0.004058837890625, 0.01629638671875, 0.01039886474609375, -0.006801605224609375, 0.0206451416015625, -0.00878143310546875, 0.056854248046875, -0.00836944580078125, -0.0155487060546875, -0.0046539306640625, 0.037811279296875, -0.01490020751953125, -0.0239410400390625, -0.055633544921875, -0.0445556640625, 0.023895263671875, -0.007781982421875, 0.06671142578125, 0.0271453857421875, -0.0013370513916015625, 0.036651611328125, 0.00595855712890625, -0.01372528076171875, 0.007656097412109375, -0.059173583984375, 0.03668212890625, -0.00698089599609375, 0.045074462890625, 0.02447509765625, 0.001461029052734375, 0.00421142578125, 0.0570068359375, -0.007762908935546875, -0.022430419921875, -0.054718017578125, 0.00273895263671875, 0.0208892822265625, 0.0031108856201171875, -0.00545501708984375, 0.032012939453125, 0.0248870849609375, 0.00594329833984375, 0.0027103424072265625, -0.0577392578125, 0.0172119140625, -0.040740966796875, -0.02728271484375, -0.0192413330078125, -0.009246826171875, 0.00931549072265625, 0.003887176513671875, -0.0201263427734375, -0.00759124755859375, -0.00024390220642089844, 0.02032470703125, 0.045166015625, -0.00217437744140625, 0.0175323486328125, 0.0277862548828125, -0.0129547119140625, -0.0237884521484375, 0.01092529296875, -0.027374267578125, 0.00838470458984375, 0.00930023193359375, 0.0307159423828125, -0.001224517822265625, -0.01068115234375, -0.004764556884765625, -0.021453857421875, 0.010345458984375, -0.0186309814453125, -0.0313720703125, -0.0184478759765625, 0.01910400390625, 0.0203857421875, 0.0029735565185546875, -0.0167388916015625, 0.0012264251708984375, -0.01506805419921875, 0.0218048095703125, -0.0185089111328125, -0.005107879638671875, -0.08367919921875, 0.0396728515625, 0.07025146484375, 0.01282501220703125, -0.004695892333984375, 0.00820159912109375, -0.040374755859375, -0.00955963134765625, -0.02484130859375, -0.01372528076171875, 0.040924072265625, -0.037872314453125, 0.0127105712890625, -0.0163116455078125, 0.000009059906005859375, -0.06072998046875, 0.0201263427734375, 0.04608154296875, 0.043853759765625, -0.029144287109375, 0.0167236328125, -0.06463623046875, -0.01261138916015625, -0.06964111328125, -0.039642333984375, -0.05340576171875, 0.0049591064453125, 0.0033054351806640625, -0.0026264190673828125, 0.02362060546875, 0.0128021240234375, 0.00424957275390625, 0.044952392578125, 0.002227783203125, -0.008544921875, -0.0167999267578125, 0.0003476142883300781, 0.0443115234375, 0.02374267578125, 0.026275634765625, 0.0018815994262695312, 0.0027790069580078125, -0.034515380859375, 0.01335906982421875, -0.09991455078125, -0.0218048095703125, 0.00914764404296875, -0.06756591796875, -0.0078125, -0.0201416015625, -0.0014123916625976562, 0.0191497802734375, -0.01149749755859375, 0.0071258544921875, -0.0199127197265625, 0.0256195068359375, -0.036773681640625, -0.0118255615234375, 0.018829345703125, -0.0011653900146484375, 0.060546875, 0.00135040283203125, -0.037872314453125, 0.01019287109375, -0.00927734375, 0.01361846923828125, 0.037994384765625, 0.05023193359375, 0.0164794921875, 0.0718994140625, -0.0255584716796875, 0.0312042236328125, 0.08013916015625, -0.0122528076171875, -0.007328033447265625, 0.038818359375, -0.03350830078125, 0.026153564453125, 0.040374755859375, 0.01250457763671875, -0.029449462890625, -0.0163726806640625, -0.0294952392578125, -0.000023543834686279297, 0.0203704833984375, 0.0654296875, -0.03094482421875, 0.0053558349609375, 0.017120361328125, -0.0333251953125, -0.0192718505859375, 0.02056884765625, -0.014434814453125, 0.007617950439453125, 0.00848388671875, -0.02655029296875, -0.00662994384765625, 0.01206207275390625, 0.02557373046875, -8.344650268554688e-7, -0.00421905517578125, 0.00013756752014160156, 0.0117645263671875, -0.053253173828125, 0.0081634521484375, 0.03997802734375, 0.0029621124267578125, -0.006069183349609375, 0.0123748779296875, -0.0753173828125, -0.0021419525146484375, 0.0041656494140625, -0.0218048095703125, -0.047149658203125, 0.02801513671875, 0.045562744140625, 0.039215087890625, -0.022613525390625, 0.03277587890625, -0.007701873779296875, 0.036956787109375, 0.0198211669921875, -0.055450439453125, 0.014739990234375, -0.00803375244140625, 0.03314208984375, 0.00434112548828125, -0.04840087890625, 0.0273895263671875, -0.0245513916015625, -0.0003261566162109375, -0.00940704345703125, -0.04339599609375, 0.05224609375, -0.025482177734375, 0.0038166046142578125, 0.01922607421875, -0.0009160041809082031, -0.005306243896484375, -0.004871368408203125, -0.00984954833984375, -0.07733154296875, -0.06781005859375, 0.0133056640625, -0.06341552734375, 0.0027523040771484375, -0.00521087646484375, -0.047332763671875, 0.04656982421875, -0.004146575927734375, 0.0231170654296875, 0.0235443115234375, 0.00574493408203125, -0.00539398193359375, -0.006500244140625, -0.0101776123046875, 0.069580078125, -0.006649017333984375, 0.00765228271484375, 0.021484375, 0.03643798828125, 0.0161895751953125, -0.05303955078125, 0.05706787109375, -0.006561279296875, -0.039794921875, -0.007205963134765625, 0.08868408203125, 0.044219970703125, 0.010711669921875, 0.029327392578125, -0.0275726318359375, -0.056884765625, 0.003398895263671875, 0.01207733154296875, 0.01250457763671875, 0.007720947265625, -0.025909423828125, -0.005443572998046875, 0.0189666748046875, 0.050140380859375, 0.032958984375, 0.08343505859375, 0.005985260009765625, -0.0087127685546875, 0.039093017578125, -0.06890869140625, -0.01480865478515625, 0.048797607421875, 0.0124359130859375, 0.0261993408203125, -0.0732421875, 0.0027332305908203125, 0.0210418701171875, 0.005031585693359375, 0.06475830078125, 0.0256500244140625, 0.022308349609375, 0.04949951171875, -0.006206512451171875, 0.0309906005859375, 0.038330078125, -0.040191650390625, -0.024444580078125, -0.0291748046875, -0.00469970703125, -0.05755615234375, -0.02203369140625, 0.022674560546875, 0.0025844573974609375, -0.0160980224609375, -0.052978515625, -0.007633209228515625, -0.02655029296875, 0.019317626953125, -0.01385498046875, -0.0166015625, -0.045745849609375, -0.00939178466796875, -0.0009737014770507812, 0.0022869110107421875, 0.0093841552734375, 0.00537872314453125, 0.002796173095703125, 0.01535797119140625, -0.0270233154296875, 0.02520751953125, -0.00986480712890625, -0.0037441253662109375, -0.0018367767333984375, 0.0224456787109375, 0.012176513671875, 0.03155517578125, -0.0259857177734375, -0.0064544677734375, -0.0159759521484375, 0.04425048828125, -0.00768280029296875, 0.0153656005859375, -0.0198211669921875, -0.043212890625, 0.01035308837890625, 0.01091766357421875, 0.0148162841796875, 0.017364501953125, 0.04827880859375, 0.033203125, -0.044158935546875, -0.00983428955078125, 0.03466796875, -0.0243072509765625, 0.01157379150390625, -0.0171661376953125, 0.0213775634765625, 0.00994873046875, -0.00972747802734375, -0.03240966796875, 0.00958251953125, 0.0540771484375, -0.0124359130859375, -0.01421356201171875, 0.01079559326171875, -0.036163330078125, 0.028778076171875, 0.00788116455078125, 0.02734375, 0.01372528076171875, -0.02801513671875, -0.00539398193359375, -0.0008153915405273438, -0.0384521484375, 0.001499176025390625, 0.02166748046875, -0.01424407958984375, 0.01007080078125, -0.0110626220703125, -0.01329803466796875, -0.037139892578125, -0.0008287429809570312, 0.0340576171875, -0.0299530029296875, -0.01018524169921875, 0.0016298294067382812, 0.018524169921875, 0.0200958251953125, -0.0094451904296875, 0.0194549560546875, 0.0163421630859375, 0.08770751953125, -0.06085205078125, 0.01806640625, 0.039154052734375, 0.007694244384765625, 0.00827789306640625, 0.0265960693359375, 0.032135009765625, 0.003314971923828125, -0.0018749237060546875, -0.02130126953125, -0.01995849609375, -0.0178680419921875, 0.0241241455078125, -0.03515625, -0.073974609375, 0.0236968994140625, 0.032073974609375, 0.06103515625, -0.022247314453125, -0.044891357421875, -0.04132080078125, -0.0135345458984375, -0.026092529296875, -0.0132904052734375, -0.035125732421875, 0.032928466796875, 0.001987457275390625, 0.04400634765625, -0.0031414031982421875, 0.00234222412109375, 0.0167999267578125, 0.054229736328125, 0.048980712890625, -0.024688720703125, -0.029632568359375, 0.0300140380859375, -0.01073455810546875, -0.032958984375, 0.01549530029296875, 0.019134521484375, 0.0288238525390625, -0.0733642578125, 0.003017425537109375, -0.0114288330078125, 0.039581298828125, -0.0192108154296875, 0.00470733642578125, -0.0258026123046875, 0.01043701171875, 0.0230255126953125, -0.03985595703125, 0.007625579833984375, -0.05426025390625, -0.023345947265625, 0.00959014892578125, -0.04681396484375, 0.004589080810546875, 0.015472412109375, -0.0303802490234375, 0.029205322265625, 0.007732391357421875, -0.04150390625, 0.033355712890625, -0.0269775390625, -0.01325225830078125, -0.0107421875, 0.00365447998046875, -0.01568603515625, 0.012603759765625, -0.02294921875, -0.06500244140625, -0.053436279296875, 0.04736328125, -0.056396484375, 0.06146240234375, 0.06024169921875, -0.057952880859375, -0.0185699462890625, 0.056060791015625, 0.0751953125, 0.08746337890625, -0.00438690185546875, -0.035858154296875, -0.0157470703125, 0.004547119140625, -0.01201629638671875, -0.004940032958984375, 0.02197265625, -0.058685302734375, -0.0396728515625, -0.0232696533203125, 0.0013580322265625, -0.01308441162109375, -0.045623779296875, -0.041107177734375, 0.036346435546875, -0.006969451904296875, -0.0181732177734375, -0.0213165283203125, -0.00986480712890625, -0.0146636962890625, 0.046142578125, 0.004734039306640625, -0.0016498565673828125, -0.00971221923828125, 0.0187225341796875, 0.032684326171875, 0.0121307373046875, 0.02032470703125, 0.002780914306640625, 0.001964569091796875, 0.0479736328125, 0.024383544921875, 0.0256500244140625, -0.00909423828125, 0.006381988525390625, 0.0168914794921875, 0.0221710205078125, -0.0280303955078125, -0.002826690673828125, -0.004978179931640625, 0.016082763671875, -0.0404052734375, -0.0014295578002929688, -0.01385498046875, 0.0352783203125, 0.08154296875, 0.09375, 0.00909423828125, -0.08013916015625, 0.00914764404296875, -0.0133819580078125, -0.06256103515625, 0.0030460357666015625, 0.052825927734375, -0.0823974609375, -0.0048675537109375, 0.03997802734375, -0.005401611328125, 0.0218353271484375, 0.010528564453125, -0.017547607421875, 0.0021572113037109375, -0.002166748046875, -0.041900634765625, -0.0245819091796875, 0.017303466796875, 0.043792724609375, -0.0294342041015625, 0.0145416259765625, -0.0181884765625, 0.0017261505126953125, 0.011016845703125, -0.03326416015625, 0.01043701171875, 0.0180511474609375, -0.024932861328125, 0.03509521484375, 0.00311279296875, -0.004840850830078125, -0.0234832763671875, 0.00036144256591796875, 0.01552581787109375, 0.005558013916015625, 0.0017948150634765625, 0.023651123046875, 0.011383056640625, -0.027618408203125, -0.0179595947265625, -0.0168914794921875, -0.0037975311279296875, -0.0028839111328125, -0.00560760498046875, 0.0268096923828125, -0.00780487060546875, -0.0016641616821289062, 0.028106689453125, -0.0272979736328125, 0.0025577545166015625, -0.0031757354736328125, -0.01204681396484375, -0.0552978515625, 0.033355712890625, 0.00641632080078125, -0.01806640625, 0.0294647216796875 ]
75285c7acc3100fd94b4df26635740f72eaf6572
Wordpress Stackexchange Q: WPML : how to determine manually the language in which a given page is displayed Somewhere in my code I need to know what is the current language and display a certain custom field or another one based on this knowledge. How can I know this information ? A: WPML defines constants that you can use go get the current language: * *ICL_LANGUAGE_CODE - current language code (eg: en,fr,sp). *ICL_LANGUAGE_NAME_EN - Name of the current language in English (eg: English, French. Spanish). *ICL_LANGUAGE_NAME - Name of current language, in the current language (eg: English, Français, Español).
Q: WPML : how to determine manually the language in which a given page is displayed Somewhere in my code I need to know what is the current language and display a certain custom field or another one based on this knowledge. How can I know this information ? A: WPML defines constants that you can use go get the current language: * *ICL_LANGUAGE_CODE - current language code (eg: en,fr,sp). *ICL_LANGUAGE_NAME_EN - Name of the current language in English (eg: English, French. Spanish). *ICL_LANGUAGE_NAME - Name of current language, in the current language (eg: English, Français, Español).
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:410866", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21649" }
[ -0.015533447265625, -0.0028705596923828125, -0.04779052734375, -0.0399169921875, -0.01081085205078125, -0.00860595703125, -0.0228271484375, 0.037200927734375, 0.029327392578125, -0.0244293212890625, -0.00621795654296875, -0.032501220703125, -0.039459228515625, -0.053497314453125, 0.0035381317138671875, -0.042633056640625, 0.03668212890625, -0.0052947998046875, 0.046356201171875, 0.00041103363037109375, -0.0102691650390625, 0.00251007080078125, 0.055267333984375, -0.0193023681640625, 0.05078125, -0.07147216796875, 0.0182037353515625, 0.00907135009765625, 0.006931304931640625, -0.0225372314453125, 0.0303955078125, 0.0203094482421875, 0.01424407958984375, -0.0002562999725341797, 0.0163421630859375, -0.0086517333984375, 0.031463623046875, -0.0263214111328125, 0.0036640167236328125, 0.0364990234375, 0.0173492431640625, -0.0164947509765625, -0.048126220703125, 0.0247650146484375, -0.04742431640625, -0.0305633544921875, 0.01291656494140625, -0.007320404052734375, 0.006519317626953125, 0.041717529296875, 0.04156494140625, 0.016937255859375, 0.031097412109375, 0.00766754150390625, -0.0164642333984375, -0.025787353515625, -0.00414276123046875, -0.0096893310546875, 0.0222015380859375, -0.037994384765625, -0.0302886962890625, 0.0003733634948730469, 0.03839111328125, 0.01340484619140625, -0.022308349609375, 0.01226043701171875, 0.035888671875, 0.0261383056640625, -0.0164642333984375, -0.058013916015625, -0.007572174072265625, 0.00653076171875, 0.00748443603515625, -0.02081298828125, -0.023223876953125, 0.01290130615234375, 0.0041046142578125, 0.0014095306396484375, 0.0132293701171875, -0.0037078857421875, 0.0130157470703125, 0.01462554931640625, -0.04925537109375, -0.00201416015625, -0.0010251998901367188, 0.007427215576171875, -0.0203094482421875, -0.0179443359375, -0.05078125, -0.06170654296875, -0.037078857421875, -0.00408172607421875, -0.0797119140625, -0.0340576171875, -0.01380157470703125, -0.0545654296875, 0.022552490234375, 0.09613037109375, -0.0447998046875, -0.0214080810546875, -0.0306854248046875, -0.005687713623046875, -0.049041748046875, -0.0350341796875, 0.0308685302734375, 0.01161956787109375, -0.048614501953125, -0.046905517578125, 0.0499267578125, 0.0216217041015625, 0.014617919921875, 0.0159759521484375, -0.017578125, -0.01319122314453125, -0.0175933837890625, 0.01500701904296875, -0.0298614501953125, -0.0075836181640625, -0.0105438232421875, -0.01250457763671875, 0.0021839141845703125, 0.035675048828125, 0.005950927734375, -0.03350830078125, 0.0216522216796875, 0.006317138671875, -0.01885986328125, -0.01406097412109375, -0.0038089752197265625, 0.007476806640625, -0.0295867919921875, 0.01186370849609375, 0.03619384765625, 0.0203094482421875, -0.0211334228515625, -0.004177093505859375, 0.0040283203125, 0.0065155029296875, 0.0222625732421875, -0.0009360313415527344, -0.0119781494140625, -0.019805908203125, 0.01340484619140625, -0.0034694671630859375, -0.01531219482421875, 0.01337432861328125, 0.006500244140625, 0.01788330078125, -0.005218505859375, -0.046844482421875, 0.039703369140625, -0.035919189453125, 0.0236968994140625, -0.0037441253662109375, -0.0223846435546875, -0.02862548828125, -0.00989532470703125, -0.0258941650390625, 0.00905609130859375, -0.0308074951171875, 0.00251007080078125, -0.03173828125, -0.0104217529296875, -0.057586669921875, -0.04693603515625, 0.0206451416015625, -0.046722412109375, 0.010589599609375, 0.020904541015625, -0.0113677978515625, 0.0037021636962890625, 0.0203399658203125, 0.04595947265625, 0.005458831787109375, -0.00513458251953125, -0.006931304931640625, -0.0321044921875, 0.007129669189453125, 0.0382080078125, 0.033172607421875, 0.018768310546875, -0.01495361328125, 0.034271240234375, 0.009307861328125, -0.059722900390625, -0.0024547576904296875, 0.005390167236328125, 0.050994873046875, 0.05401611328125, 0.0017452239990234375, 0.03662109375, -0.0423583984375, -0.0546875, 0.019805908203125, -0.012237548828125, 0.008544921875, -0.0273284912109375, 0.0226287841796875, -0.0251922607421875, -0.0196685791015625, 0.017303466796875, 0.0142822265625, -0.00131988525390625, 0.0203094482421875, -0.048095703125, 0.0271148681640625, -0.0192108154296875, 0.03558349609375, 0.04620361328125, 0.0019063949584960938, -0.007843017578125, -0.0136871337890625, -0.00026035308837890625, -0.04296875, -0.052093505859375, 0.01471710205078125, -0.0202484130859375, 0.01031494140625, 0.004093170166015625, 0.0184326171875, 0.0140533447265625, -0.012451171875, -0.0012502670288085938, 0.0034999847412109375, -0.026275634765625, -0.00103759765625, -0.007755279541015625, 0.00653076171875, 0.039398193359375, -0.01812744140625, 0.0953369140625, 0.008331298828125, -0.0682373046875, -0.0160675048828125, 0.0008745193481445312, -0.0218963623046875, -0.004673004150390625, -0.08538818359375, 0.054473876953125, 0.05303955078125, 0.03173828125, 0.02337646484375, 0.0014276504516601562, 0.00852203369140625, 0.0828857421875, 0.012115478515625, 0.014312744140625, -0.00719451904296875, 0.01971435546875, 0.0579833984375, 0.0045623779296875, -0.0093994140625, -0.0044708251953125, -0.050079345703125, 0.00907135009765625, 0.023712158203125, -0.0494384765625, -0.016082763671875, 0.0160675048828125, -0.0272216796875, -0.0038509368896484375, -0.01262664794921875, -0.005466461181640625, -0.0023822784423828125, 0.00501251220703125, 0.0197601318359375, 0.036529541015625, 0.034393310546875, 0.0036716461181640625, -0.001880645751953125, 0.0012493133544921875, 0.00125885009765625, 0.00435638427734375, -0.005664825439453125, -0.026611328125, -0.006336212158203125, 0.01085662841796875, -0.0019159317016601562, -0.00015544891357421875, -0.022705078125, -0.00923919677734375, 0.04302978515625, -0.0665283203125, -0.02386474609375, -0.033905029296875, -0.08905029296875, -0.04766845703125, 0.0158538818359375, 0.01554107666015625, 0.01849365234375, 0.046478271484375, 0.006023406982421875, -0.0214996337890625, 0.040557861328125, -0.0293121337890625, -0.0189361572265625, 0.013580322265625, -0.0030918121337890625, 0.028411865234375, -0.034820556640625, 0.0021724700927734375, 0.041748046875, -0.0188751220703125, -0.00286865234375, -0.01441192626953125, -0.04522705078125, -0.014251708984375, -0.0052490234375, -0.0224761962890625, 0.008636474609375, -0.062347412109375, 0.048095703125, 0.0083465576171875, -0.00415802001953125, -0.020904541015625, -0.046539306640625, -0.03643798828125, -0.026275634765625, -0.1123046875, -0.08282470703125, 0.007732391357421875, -0.029998779296875, 0.024810791015625, 0.01727294921875, 0.013702392578125, -0.0413818359375, 0.033111572265625, 0.0154876708984375, 0.02117919921875, -0.048187255859375, -0.054840087890625, -0.059814453125, -0.0667724609375, -0.0018463134765625, -0.00048828125, -0.003284454345703125, -0.006317138671875, 0.034423828125, -0.0183258056640625, -0.04736328125, -0.052947998046875, 0.0311737060546875, -0.00047898292541503906, -0.00745391845703125, -0.04864501953125, -0.006565093994140625, 0.04522705078125, -0.00036644935607910156, -0.0389404296875, 0.0009665489196777344, 0.038543701171875, -0.0176544189453125, 0.006168365478515625, 0.0008106231689453125, 0.0192718505859375, -0.059356689453125, -0.021392822265625, 0.04034423828125, -0.0164642333984375, -0.02130126953125, -0.05047607421875, 0.042144775390625, -0.02294921875, 0.0247344970703125, -0.01236724853515625, -0.032806396484375, 0.01995849609375, 0.0263671875, -0.0361328125, -0.0178680419921875, -0.01097869873046875, -0.060272216796875, 0.0648193359375, 0.007808685302734375, 0.0107879638671875, 0.0176849365234375, 0.06671142578125, -0.0070648193359375, 0.031646728515625, 0.04400634765625, 0.0282135009765625, 0.018402099609375, -0.015716552734375, -0.00228118896484375, -0.0209503173828125, 0.042449951171875, 0.003604888916015625, 0.01256561279296875, 0.007171630859375, -0.035675048828125, 0.012847900390625, 0.0697021484375, -0.035980224609375, -0.0020656585693359375, 0.00249481201171875, 0.030364990234375, -0.0273590087890625, -0.051483154296875, -0.05584716796875, -0.01641845703125, -0.0706787109375, -0.0009212493896484375, 0.0007724761962890625, -0.0227813720703125, -0.042694091796875, 0.08160400390625, -0.0687255859375, -0.0242156982421875, 0.048583984375, -0.019744873046875, 0.0025634765625, 0.008026123046875, -0.0175628662109375, -0.0035400390625, -0.0391845703125, -0.01332855224609375, -0.09027099609375, -0.01111602783203125, -0.044708251953125, 0.08221435546875, 0.0215606689453125, -0.056549072265625, -0.01505279541015625, 0.0487060546875, 0.0013456344604492188, 0.0254974365234375, -0.0079803466796875, -0.00809478759765625, 0.0821533203125, 0.0211181640625, -0.003589630126953125, 0.016693115234375, -0.003803253173828125, 0.012481689453125, -0.041046142578125, 0.039031982421875, -0.0155487060546875, 0.01044464111328125, 0.0192108154296875, -0.0469970703125, -0.00958251953125, 0.0011234283447265625, -0.0133056640625, 0.03302001953125, -0.0258941650390625, 0.023529052734375, 0.004779815673828125, -0.03350830078125, 0.0521240234375, 0.0037593841552734375, -0.0023097991943359375, 0.00994873046875, 0.0650634765625, -0.004711151123046875, -0.0252227783203125, -0.09783935546875, 0.01332855224609375, 0.05462646484375, 0.020538330078125, 0.0382080078125, 0.048126220703125, -0.051361083984375, 0.0762939453125, 0.05755615234375, -0.0237884521484375, 0.060394287109375, 0.01434326171875, 0.0249481201171875, -0.019561767578125, 0.0041046142578125, 0.0243377685546875, -0.058837890625, 0.0251922607421875, -0.0192718505859375, -0.0143280029296875, -0.00267791748046875, 0.0183258056640625, -0.0292205810546875, 0.0201263427734375, -0.0094146728515625, -0.07159423828125, 0.03997802734375, 0.00756072998046875, -0.044647216796875, -0.01922607421875, 0.0100555419921875, -0.01503753662109375, -0.0107574462890625, -0.00030684471130371094, 0.059722900390625, 0.05645751953125, 0.029052734375, 0.044891357421875, 0.010498046875, -0.001312255859375, -0.003910064697265625, -0.0183563232421875, 0.059967041015625, -0.0203094482421875, -0.06732177734375, 0.03131103515625, -0.03948974609375, -0.011077880859375, 0.044708251953125, 0.009002685546875, 0.03521728515625, 0.0206451416015625, -0.00588226318359375, 0.0111083984375, 0.02813720703125, -0.00923919677734375, -0.018829345703125, 0.01129913330078125, 0.01102447509765625, 0.0113372802734375, -0.018341064453125, 0.10174560546875, -0.00330352783203125, 0.05389404296875, -0.0222930908203125, -0.016204833984375, -0.0269012451171875, 0.03533935546875, 0.015167236328125, -0.010101318359375, 0.0230560302734375, -0.001918792724609375, 0.0300445556640625, -0.0033092498779296875, -0.00939178466796875, 0.019927978515625, 0.034698486328125, -0.044677734375, 0.000007331371307373047, 0.0250244140625, -0.008087158203125, -0.021484375, 0.04296875, 0.02783203125, -0.041412353515625, -0.02728271484375, 0.0027904510498046875, 0.01454925537109375, 0.00708770751953125, -0.036102294921875, 0.030303955078125, -0.038818359375, 0.038604736328125, 0.03057861328125, -0.0222930908203125, 0.0258026123046875, 0.0200042724609375, -0.047637939453125, -0.0200042724609375, 0.031341552734375, -0.0926513671875, -0.017333984375, -0.00980377197265625, 0.001125335693359375, 0.016448974609375, 0.0226287841796875, 0.022003173828125, -0.0006961822509765625, -0.055389404296875, 0.026885986328125, 0.004909515380859375, 0.033294677734375, -0.0236968994140625, -0.03753662109375, -0.021942138671875, -0.04296875, -0.02178955078125, -0.01306915283203125, -0.029022216796875, -0.027679443359375, -0.01082611083984375, 0.0003407001495361328, 0.0293426513671875, 0.008758544921875, 0.034271240234375, -0.005741119384765625, 0.0216064453125, -0.0112762451171875, 0.05963134765625, 0.0206298828125, 0.0723876953125, 0.01092529296875, 0.054229736328125, 0.042266845703125, 0.04052734375, -0.0576171875, -0.0164947509765625, 0.0174407958984375, 0.01110076904296875, -0.005218505859375, -0.025848388671875, -0.01180267333984375, -0.040252685546875, 0.02081298828125, 0.0005779266357421875, 0.01861572265625, 0.0012693405151367188, 0.019866943359375, -0.0306549072265625, -0.0086212158203125, -0.033233642578125, -0.003322601318359375, 0.006877899169921875, -0.02471923828125, 0.0128936767578125, 0.004947662353515625, -0.00470733642578125, 0.00616455078125, -0.00972747802734375, 0.003444671630859375, 0.032135009765625, -0.011566162109375, 0.039825439453125, 0.03948974609375, -0.0200042724609375, 0.0347900390625, 0.0310516357421875, 0.01141357421875, 0.0009794235229492188, 0.0125579833984375, -0.018310546875, -0.0012216567993164062, 0.018890380859375, -0.00789642333984375, -0.00958251953125, -0.006946563720703125, 0.005279541015625, 0.025115966796875, 0.07086181640625, 0.0706787109375, -0.10174560546875, 0.0018529891967773438, 0.03302001953125, -0.037811279296875, -0.03826904296875, 0.01526641845703125, -0.043609619140625, -0.08782958984375, 0.040008544921875, -0.056640625, -0.0257720947265625, -0.01427459716796875, -0.034454345703125, -0.0211334228515625, -0.01557159423828125, 0.051605224609375, 0.0216827392578125, 0.00988006591796875, -0.013031005859375, -0.015655517578125, -0.0019178390502929688, -0.043853759765625, -0.00037670135498046875, -0.005229949951171875, -0.01024627685546875, -0.06622314453125, 0.0178375244140625, -0.0193634033203125, 0.015625, 0.0163116455078125, 0.007213592529296875, -0.027130126953125, 0.05706787109375, -0.0516357421875, 0.0416259765625, 0.0165252685546875, -0.0238037109375, -0.028106689453125, -0.001720428466796875, 0.0394287109375, 0.01806640625, -0.039459228515625, 0.0127410888671875, -0.05902099609375, -0.00885009765625, 0.003658294677734375, 0.0008654594421386719, 0.0755615234375, -0.027740478515625, -0.00797271728515625, 0.02490234375, 0.0153961181640625, -0.005863189697265625, -0.0205841064453125, 0.006427764892578125, -0.0484619140625, -0.0185394287109375, -0.021759033203125, -0.0352783203125, -0.000385284423828125, -0.040008544921875, -0.0540771484375, 0.017242431640625, -0.0155029296875, 0.0426025390625, 0.0067291259765625, 0.0021724700927734375, 0.019683837890625, -0.0207061767578125, -0.0238494873046875, 0.0270233154296875, -0.00782012939453125, 0.00969696044921875, -0.0599365234375, 0.0026454925537109375, -0.023956298828125, 0.02008056640625, -0.004512786865234375, -0.00698089599609375, 0.031585693359375, -0.0066986083984375, 0.005519866943359375, 0.007053375244140625, -0.0220489501953125, -0.01473236083984375, -0.013336181640625, 0.0345458984375, 0.0372314453125, -0.05438232421875, 0.0201873779296875, -0.025970458984375, -0.01207733154296875, 0.0011053085327148438, 0.00836944580078125, -0.0084991455078125, 0.0017251968383789062, 0.004093170166015625, -0.0391845703125, -0.0006852149963378906, 0.01611328125, -0.010955810546875, 0.020263671875, 0.0352783203125, 0.023468017578125, -0.0362548828125, 0.0038166046142578125, -0.03045654296875, 0.044403076171875, -0.006710052490234375, 0.01995849609375, 0.052581787109375, 0.0201263427734375, 0.000010073184967041016, 0.038055419921875, 0.0211181640625, -0.0011997222900390625, 0.0108489990234375, 0.0198211669921875, 0.035247802734375, 0.022918701171875, 0.0235443115234375, 0.06390380859375, 0.0036640167236328125, 0.0017805099487304688, -0.051116943359375, -0.017120361328125, 0.0246124267578125, -0.004840850830078125, -0.0178070068359375, -0.0077972412109375, -0.01168060302734375, 0.034942626953125, 0.043060302734375, 0.03192138671875, -0.016510009765625, 0.010467529296875, 0.04052734375, 0.0131378173828125, -0.003559112548828125, -0.041778564453125, -0.025604248046875, -0.055084228515625, 0.0258941650390625, 0.038116455078125, 0.07806396484375, 0.011077880859375, 0.03961181640625, -0.0276031494140625, -0.02587890625, -0.031982421875, 0.0013952255249023438, 0.006809234619140625, 0.034332275390625, -0.0254669189453125, 0.014984130859375, -0.0018911361694335938, 0.03485107421875, 0.0294952392578125, -0.0546875, 0.0022335052490234375, -0.0014591217041015625, -0.030975341796875, -0.01280975341796875, -0.00799560546875, -0.0168304443359375, -0.0172119140625, -0.044769287109375, 0.041748046875, 0.005313873291015625, 0.002246856689453125, 0.013885498046875, 0.01812744140625, 0.01654052734375, -0.042144775390625, 0.0205841064453125, -0.0101318359375, -0.0159149169921875, 0.043487548828125, -0.0131988525390625, 0.04534912109375, -0.02142333984375, -0.0699462890625, -0.00585174560546875, -0.039398193359375, -0.0290069580078125, 0.05645751953125, 0.047882080078125, -0.0006213188171386719, 0.0019359588623046875, 0.01117706298828125, -0.0108795166015625, 0.0005846023559570312, 0.022552490234375, -0.01093292236328125, -0.02557373046875, 0.027069091796875, -0.0167694091796875, -0.0007724761962890625, -0.01374053955078125, -0.0092010498046875, 0.03033447265625, 0.052276611328125, 0.0011615753173828125, 0.0018596649169921875, 0.0511474609375, -0.024566650390625, -0.01486968994140625, 0.0092926025390625, -0.0193328857421875, 0.02239990234375, 0.042236328125, 0.007053375244140625, -0.0299530029296875, -0.0308380126953125, 0.006488800048828125, 0.024444580078125, -0.02130126953125, 0.00782012939453125, -0.02154541015625, 0.0157318115234375, 0.006534576416015625, 0.01029205322265625, -0.0384521484375, -0.027252197265625, -0.0216522216796875, -0.00969696044921875, 0.0195465087890625, 0.00940704345703125, 0.004329681396484375, -0.00838470458984375, -0.045928955078125, -0.06219482421875, 0.036865234375, -0.03204345703125, 0.006977081298828125, 0.0216827392578125, -0.0017910003662109375, -0.007328033447265625, -0.01959228515625, -0.0196533203125, -0.0157318115234375, 0.0143890380859375, 0.005741119384765625, -0.00159454345703125, 0.048004150390625, -0.01462554931640625, -0.0367431640625, -0.01416015625, -0.0447998046875, -0.01354217529296875, 0.004535675048828125, 0.00908660888671875, -0.0101776123046875, -0.050750732421875, -0.00975799560546875, -0.01358795166015625, 0.006122589111328125, 0.019317626953125, 0.0094146728515625, -0.013916015625, 0.006259918212890625, -0.0292510986328125, 0.0150299072265625, -0.0294647216796875, 0.028350830078125, -0.0243072509765625, -0.0226898193359375, -0.03192138671875, -0.0154266357421875, 0.0026454925537109375, 0.01479339599609375, 0.0377197265625, -0.05828857421875, -0.00026679039001464844, -0.00743865966796875, -0.03387451171875, 0.0008416175842285156, 0.006183624267578125, 0.01102447509765625, -0.01227569580078125, -0.03497314453125, 0.0184173583984375, 0.014129638671875, 0.0452880859375, 0.0037441253662109375, -0.006740570068359375, 0.057098388671875, -0.0179443359375, -0.036529541015625, -0.0777587890625, 0.020782470703125, -0.06976318359375, 0.007259368896484375, 0.00742340087890625, 0.001399993896484375, 0.038330078125, -0.029571533203125, -0.11669921875, 0.0166015625, -0.0106048583984375, -0.055389404296875, -0.0195159912109375, 0.05596923828125, 0.020111083984375, -0.07110595703125, -0.0178985595703125, -0.0352783203125, 0.0144195556640625, -0.00991058349609375, 0.035369873046875, 0.04266357421875, 0.01715087890625, -0.0007829666137695312, -0.031890869140625, 0.01403045654296875, 0.0170440673828125, 0.041656494140625, 0.027496337890625, -0.0190582275390625, -0.03472900390625, -0.0245208740234375, -0.0802001953125, -0.0953369140625, -0.042816162109375, 0.050994873046875, 0.0024127960205078125, -0.0718994140625, 0.0246429443359375, -0.042205810546875, 0.0198516845703125, -0.046600341796875, -0.00910186767578125, 0.0084686279296875, 0.035888671875, 0.0310211181640625, -0.042083740234375, 0.02783203125, 0.01230621337890625, -0.0014810562133789062, 0.0274810791015625, -0.019195556640625, 0.010223388671875, -0.043975830078125, 0.00347137451171875, -0.01824951171875, -0.0285186767578125, -0.026275634765625, 0.0128631591796875, -0.0244598388671875, 0.0187225341796875, 0.0740966796875, -0.044921875, 0.0179595947265625, 0.006984710693359375, -0.004421234130859375, 0.05364990234375, 0.00403594970703125, -0.0218658447265625, 0.005336761474609375, 0.007297515869140625, -0.0018157958984375, 0.019989013671875, 0.0036869049072265625, 0.0264434814453125, 0.0012264251708984375, -0.002918243408203125, 0.0232391357421875, 0.01403045654296875, 0.04443359375, -0.01509857177734375, 0.007396697998046875, 0.01800537109375, -0.05426025390625, 0.006252288818359375, 0.0025196075439453125, 0.00042057037353515625, 0.026641845703125, -0.0283355712890625, -0.0087127685546875, -0.011474609375, -0.049072265625, 0.0161285400390625, -0.0020084381103515625, -0.004596710205078125, -0.0477294921875, 0.029266357421875, -0.012939453125, 0.0038471221923828125, 0.0278778076171875 ]
d5de8f818d1f6d76ea49c8d3013345ccf0eb1a95
Wordpress Stackexchange Q: Simple rich text editor in Text widget? I've seen a few plugins that add rich text editing to the default "Text" Widget. However, all of the ones I've tested are either too complicated (or try to do too much) or don't work properly with the latest WP versions. I'm just looking for a simple rich text toolbar with a minimal feature set (basic formatting and lists), image upload and hyperlink tool. Ideally, I'd like to find one that does not require a separate window to handle rich text. Just a simple tab to switch between html and wysiwyg. Any suggestions or recommendations? A: I've never found one that was reliable and/or not a huge resource/memory drain. :( I ended up using the very handy "Page in Widget" plugin instead - it has the advantage of all the functionality of a regular editable page and your widget content won't accidentally get wiped, which has happened to me far too often. Sorry not to have the perfect solution. Will check back to see if others do! :) Michelle
Q: Simple rich text editor in Text widget? I've seen a few plugins that add rich text editing to the default "Text" Widget. However, all of the ones I've tested are either too complicated (or try to do too much) or don't work properly with the latest WP versions. I'm just looking for a simple rich text toolbar with a minimal feature set (basic formatting and lists), image upload and hyperlink tool. Ideally, I'd like to find one that does not require a separate window to handle rich text. Just a simple tab to switch between html and wysiwyg. Any suggestions or recommendations? A: I've never found one that was reliable and/or not a huge resource/memory drain. :( I ended up using the very handy "Page in Widget" plugin instead - it has the advantage of all the functionality of a regular editable page and your widget content won't accidentally get wiped, which has happened to me far too often. Sorry not to have the perfect solution. Will check back to see if others do! :) Michelle A: You may want to try the Black Studio TinyMCE Widget plugin, which adds a WYSIWYG text widget based on the standard TinyMCE WordPress editor. A: I've started to use this plugin: http://wordpress.org/extend/plugins/wysiwyg-widgets/ (WYSIWYG Widgets) and it seems to work pretty well. I ran into a few weird glitches with it initially - but clicking "save" on the widget each time before editing it again seems to get rid of the random glitches I was seeing. A: Use the Spots plugin, it gives you exactly what you want, adds post shortcodes, and allows you to reuse content You can find it here: http://wordpress.org/extend/plugins/spots/ A: You can do it easily with this line the_editor( 'Content to be in the editor', $field_name ); A: Just want to give some feedback on my experience trying to find a good, reliable WYSIWYG widget editor. I've tried 5 different ones in the past 2 hours, and 4 of them all have issues. The one that works best is the Black Studio TinyMCE editor mentioned above, so Marcochiesi, thanks for creating a nice simple editor! It works great! The others had strange glitches and just didn't do the job.
wordpress
{ "language": "en", "length": 370, "provenance": "stackexchange_00019.jsonl.gz:410867", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21650" }
[ -0.0181121826171875, -0.034271240234375, 0.01213836669921875, 0.025390625, -0.040435791015625, -0.0020160675048828125, 0.035919189453125, -0.0127105712890625, 0.0143280029296875, 0.04132080078125, -0.0159912109375, -0.01177978515625, 0.005146026611328125, -0.0160369873046875, -0.035369873046875, -0.0108642578125, 0.01934814453125, -0.016876220703125, 0.0036907196044921875, -0.01479339599609375, -0.0016927719116210938, -0.0263824462890625, 0.03741455078125, 0.0177001953125, 0.01528167724609375, 0.05572509765625, 0.07867431640625, -0.0159912109375, 0.018218994140625, 0.0002313852310180664, 0.022003173828125, -0.047576904296875, 0.048553466796875, -0.0009303092956542969, -0.043853759765625, 0.04925537109375, -0.0555419921875, 0.00222015380859375, 0.0003273487091064453, -0.0218353271484375, -0.004161834716796875, 0.00124359130859375, -0.0016355514526367188, 0.01180267333984375, -0.032379150390625, -0.028839111328125, 0.003093719482421875, -0.0200042724609375, 0.00815582275390625, -0.07147216796875, -0.002506256103515625, 0.047882080078125, 0.0282745361328125, -0.0574951171875, -0.006160736083984375, 0.027557373046875, -0.0007243156433105469, -0.0218505859375, 0.0267791748046875, 0.0027980804443359375, -0.00928497314453125, -0.028289794921875, 0.0340576171875, 0.019561767578125, -0.01352691650390625, -0.00884246826171875, -0.032379150390625, -0.0031871795654296875, 0.005359649658203125, 0.0013418197631835938, 0.0186004638671875, -0.0280914306640625, -0.008697509765625, -0.06658935546875, -0.0114898681640625, 0.05694580078125, -0.02899169921875, -0.0304107666015625, 0.01261138916015625, -0.023956298828125, 0.0206146240234375, 0.04290771484375, 0.01192474365234375, -0.00937652587890625, -0.0084075927734375, -0.01421356201171875, -0.0211944580078125, -0.022186279296875, -0.0389404296875, 0.007205963134765625, -0.00701904296875, -0.027374267578125, -0.033660888671875, 0.015533447265625, 0.006618499755859375, -0.0129852294921875, -0.0166778564453125, -0.0069580078125, 0.030914306640625, 0.07763671875, 0.035980224609375, -0.06915283203125, 0.12298583984375, -0.049835205078125, 0.0036640167236328125, 0.006229400634765625, 0.0009508132934570312, 0.04107666015625, 0.050201416015625, 0.0291290283203125, -0.00214385986328125, 0.04486083984375, 0.04541015625, -0.00839996337890625, -0.0030078887939453125, -0.033966064453125, 0.00506591796875, 0.043792724609375, 0.0084686279296875, 0.01506805419921875, -0.006221771240234375, 0.027557373046875, 0.0032138824462890625, 0.0157012939453125, -0.02642822265625, 0.0011625289916992188, 0.017822265625, -0.05078125, 0.0186004638671875, -0.027496337890625, -0.0462646484375, 0.03564453125, 0.050994873046875, 0.031768798828125, 0.0226593017578125, -0.006816864013671875, 0.0108642578125, -0.0038013458251953125, 0.0160064697265625, 0.000020563602447509766, -0.023681640625, -0.007049560546875, 0.0126495361328125, -0.006954193115234375, 0.0210113525390625, 0.041046142578125, 0.01953125, -0.006633758544921875, -0.0035533905029296875, -0.005962371826171875, -0.0251007080078125, -0.004581451416015625, 0.03369140625, 0.004718780517578125, 0.02398681640625, -0.06072998046875, 0.041351318359375, -0.059051513671875, 0.018096923828125, -0.05035400390625, 0.01355743408203125, -0.006805419921875, -0.0159759521484375, -0.03369140625, -0.0284423828125, -0.003147125244140625, -0.025726318359375, -0.0016050338745117188, 0.0217132568359375, -0.006801605224609375, 0.0249481201171875, -0.035186767578125, 0.010162353515625, 0.01116943359375, -0.002407073974609375, 0.0293121337890625, 0.01268768310546875, 0.0255889892578125, -0.0014886856079101562, 0.0261383056640625, -0.0007815361022949219, -0.046417236328125, 0.04364013671875, -0.010986328125, -0.049163818359375, 0.0066070556640625, -0.00666046142578125, 0.072998046875, 0.03839111328125, 0.027984619140625, -0.017242431640625, -0.032989501953125, 0.019317626953125, -0.041900634765625, -0.003612518310546875, 0.0062408447265625, 0.003627777099609375, 0.022308349609375, -0.01367950439453125, -0.025238037109375, 0.029754638671875, -0.006649017333984375, 0.0125579833984375, -0.0640869140625, -0.100830078125, -0.003971099853515625, -0.041168212890625, 0.058013916015625, 0.0222625732421875, -0.00714874267578125, -0.00589752197265625, -0.0313720703125, 0.00907135009765625, -0.0311126708984375, -0.0567626953125, 0.009857177734375, -0.0013256072998046875, 0.085205078125, 0.051605224609375, 0.00930023193359375, 0.06982421875, -0.031707763671875, 0.0802001953125, 0.01361083984375, -0.00004655122756958008, 0.005580902099609375, -0.0374755859375, -0.003063201904296875, 0.0015325546264648438, 0.003620147705078125, 0.01335906982421875, 0.0289764404296875, 0.0014142990112304688, 0.0293426513671875, -0.02032470703125, -0.0199737548828125, -0.01739501953125, -0.0211944580078125, 0.0210418701171875, 0.0299224853515625, 0.044464111328125, 0.041259765625, -0.0101470947265625, -0.01073455810546875, 0.03155517578125, -0.08697509765625, -0.00408935546875, -0.0191650390625, 0.0219879150390625, 0.054534912109375, 0.002834320068359375, -0.0125579833984375, -0.0013599395751953125, -0.051483154296875, 0.012359619140625, 0.01451873779296875, -0.002391815185546875, 0.0369873046875, -0.035125732421875, 0.004852294921875, -0.0007710456848144531, 0.01727294921875, -0.0028324127197265625, -0.00746917724609375, 0.042449951171875, 0.025177001953125, 0.058929443359375, 0.04718017578125, -0.031585693359375, 0.0150299072265625, 0.0030384063720703125, 0.02294921875, -0.0073699951171875, 0.022186279296875, 0.07830810546875, -0.03662109375, -0.028289794921875, -0.031158447265625, 0.01511383056640625, 0.012420654296875, -0.007568359375, 0.003742218017578125, 0.007457733154296875, -0.0080718994140625, -0.0204925537109375, -0.0293731689453125, 0.027191162109375, -0.00923919677734375, 0.03240966796875, -0.0054473876953125, 0.021575927734375, 0.0284576416015625, -0.00946044921875, 0.0479736328125, -0.01245880126953125, -0.0189666748046875, 0.100830078125, -0.024139404296875, 0.0390625, -0.012939453125, 0.06695556640625, 0.057464599609375, -0.0202178955078125, -0.01061248779296875, -0.0032405853271484375, -0.01212310791015625, -0.03765869140625, 0.019195556640625, 0.0007305145263671875, 0.01511383056640625, -0.086669921875, -0.00008022785186767578, 0.01468658447265625, 0.06427001953125, -0.02587890625, -0.03973388671875, -0.006496429443359375, 0.034942626953125, -0.056488037109375, -0.043121337890625, -0.0206146240234375, -0.06915283203125, -0.012237548828125, 0.033294677734375, -0.03631591796875, -0.0015554428100585938, 0.08587646484375, -0.0007653236389160156, -0.0249481201171875, -0.0016317367553710938, -0.00872802734375, -0.0323486328125, -0.057342529296875, -0.0229644775390625, -0.006183624267578125, 0.007747650146484375, 0.007965087890625, 0.0121612548828125, -0.01116180419921875, -0.063720703125, 0.008087158203125, -0.045745849609375, -0.00710296630859375, 0.023651123046875, 0.03118896484375, -0.0341796875, -0.018646240234375, 0.01409149169921875, -0.006504058837890625, 0.0263824462890625, -0.0271759033203125, -0.0041046142578125, -0.02398681640625, -0.0140380859375, -0.00395965576171875, -0.01366424560546875, 0.022247314453125, -0.0096282958984375, -0.006710052490234375, -0.06060791015625, 0.0288543701171875, 0.018157958984375, 0.007110595703125, -0.0121917724609375, -0.048858642578125, -0.00916290283203125, -0.004222869873046875, 0.02825927734375, -0.024169921875, 0.00801849365234375, 0.029876708984375, -0.00028443336486816406, -0.006557464599609375, -0.036376953125, -0.05255126953125, -0.0170440673828125, -0.043243408203125, -0.061187744140625, 0.0239715576171875, -0.0438232421875, -0.03851318359375, -0.04229736328125, 0.048675537109375, -0.005001068115234375, -0.031951904296875, 0.00749969482421875, -0.0428466796875, 0.016845703125, -0.01806640625, 0.003070831298828125, 0.0112152099609375, 0.04876708984375, -0.0163116455078125, -0.0022029876708984375, -0.0263519287109375, 0.01007080078125, -0.0214080810546875, -0.045135498046875, -0.021270751953125, -0.01016998291015625, -0.0687255859375, 0.045654296875, 0.01715087890625, -0.011383056640625, -0.026763916015625, 0.016632080078125, -0.05145263671875, -0.031982421875, 0.0255584716796875, -0.107421875, 0.0239410400390625, 0.031463623046875, -0.006816864013671875, -0.028167724609375, -0.00445556640625, -0.0906982421875, -0.074951171875, 0.0062408447265625, -0.09100341796875, 0.04803466796875, 0.0389404296875, 0.006313323974609375, -0.01522064208984375, 0.0208587646484375, -0.004791259765625, 0.01776123046875, 0.004764556884765625, 0.0135955810546875, -0.005764007568359375, -0.0033016204833984375, 0.0111846923828125, -0.0312042236328125, 0.0065765380859375, 0.0082855224609375, -0.0300140380859375, -0.001407623291015625, -0.035369873046875, -0.033538818359375, 0.001834869384765625, -0.0369873046875, -0.029449462890625, -0.01361846923828125, -0.049774169921875, 0.014434814453125, -0.0289764404296875, -0.003948211669921875, -0.0233306884765625, -0.053009033203125, -0.02740478515625, -0.00861358642578125, -0.004863739013671875, 0.04522705078125, 0.038482666015625, 0.0308837890625, 0.005741119384765625, -0.054901123046875, 0.0034999847412109375, 0.046142578125, 0.06695556640625, -0.010528564453125, -0.0194244384765625, -0.060211181640625, 0.06439208984375, 0.04522705078125, 0.060699462890625, -0.05511474609375, 0.043731689453125, 0.006526947021484375, 0.0027141571044921875, 0.02996826171875, 0.0322265625, -0.040008544921875, 0.05267333984375, -0.01441192626953125, 0.006542205810546875, -0.0132598876953125, 0.0250244140625, -0.00548553466796875, -0.01306915283203125, -0.045501708984375, -0.008544921875, -0.0222625732421875, 0.0482177734375, 0.0167236328125, 0.009185791015625, 0.018798828125, -0.032623291015625, 0.037994384765625, -0.0164794921875, 0.036285400390625, 0.025543212890625, 0.0193634033203125, 0.0199432373046875, 0.00861358642578125, -0.026947021484375, -0.006244659423828125, -0.0180511474609375, 0.031707763671875, 0.002063751220703125, -0.036865234375, 0.0097198486328125, -0.00849151611328125, 0.0199127197265625, 0.0170745849609375, 0.01910400390625, -0.0194091796875, 0.03839111328125, -0.0081024169921875, 0.01641845703125, 0.061065673828125, 0.0210113525390625, -0.006988525390625, -0.03582763671875, -0.0146331787109375, -0.01861572265625, 0.0306243896484375, 0.0015516281127929688, -0.031524658203125, 0.0036468505859375, -0.002429962158203125, 0.04034423828125, 0.0279693603515625, 0.00946044921875, -0.00882720947265625, 0.044403076171875, 0.004543304443359375, -0.0166473388671875, 0.01239013671875, -0.0268096923828125, -0.031036376953125, 0.00894927978515625, 0.044921875, -0.044525146484375, -0.020294189453125, 0.0258331298828125, -0.035552978515625, -0.0181732177734375, 0.015380859375, 0.0164947509765625, -0.022064208984375, 0.0019969940185546875, 0.01473236083984375, 0.0189666748046875, 0.005001068115234375, 0.0078887939453125, -0.03265380859375, -0.036102294921875, -0.00919342041015625, -0.0161285400390625, -0.0215301513671875, -0.0021820068359375, -0.0102996826171875, -0.00655364990234375, -0.0159912109375, 0.009033203125, -0.05792236328125, -0.0226287841796875, -0.01395416259765625, 0.0033321380615234375, 0.0287933349609375, -0.00522613525390625, 0.033721923828125, -0.0303497314453125, -0.00983428955078125, -0.052825927734375, 0.00589752197265625, 0.020843505859375, 0.01105499267578125, -0.0247955322265625, -0.01947021484375, -0.0692138671875, -0.0263214111328125, -0.035125732421875, -0.03240966796875, -0.036834716796875, 0.01213836669921875, 0.01255035400390625, 0.042144775390625, -0.0180206298828125, -0.031890869140625, 0.006153106689453125, 0.00817108154296875, -0.00618743896484375, 0.08013916015625, 0.016082763671875, 0.004802703857421875, -0.0249176025390625, 0.07867431640625, -0.01007080078125, -0.02764892578125, -0.03021240234375, -0.03509521484375, 0.037200927734375, -0.002590179443359375, -0.036865234375, -0.050445556640625, 0.01100921630859375, -0.0172119140625, 0.01274871826171875, -0.0186309814453125, 0.0174560546875, -0.0290374755859375, -0.0037021636962890625, -0.0117645263671875, 0.037506103515625, -0.0301055908203125, -0.016510009765625, 0.04827880859375, -0.0275726318359375, -0.00823211669921875, -0.005886077880859375, 0.0235595703125, -0.0029697418212890625, -0.0177459716796875, -0.0260162353515625, -0.0002944469451904297, -0.02459716796875, 0.07354736328125, 0.056488037109375, -0.028839111328125, 0.0265960693359375, 0.01363372802734375, -0.0022983551025390625, 0.00147247314453125, -0.01898193359375, -0.009307861328125, 0.0184173583984375, 0.02655029296875, -0.018951416015625, 0.004940032958984375, 0.01132965087890625, -0.0048370361328125, 0.01071929931640625, 0.0799560546875, 0.07220458984375, -0.09283447265625, 0.02252197265625, 0.03253173828125, -0.02362060546875, -0.02392578125, 0.004802703857421875, -0.0079803466796875, -0.0289306640625, 0.0328369140625, -0.023162841796875, -0.0146331787109375, 0.01154327392578125, -0.005512237548828125, -0.004871368408203125, -0.05517578125, 0.04736328125, 0.031005859375, -0.021942138671875, 0.0279388427734375, 0.0211029052734375, 0.0078582763671875, -0.0135345458984375, 0.0195159912109375, -0.002483367919921875, -0.01428985595703125, -0.0655517578125, 0.0004324913024902344, -0.00788116455078125, -0.004482269287109375, -0.00852203369140625, -0.033721923828125, 0.023590087890625, 0.06719970703125, -0.046142578125, 0.038848876953125, 0.037567138671875, 0.0158538818359375, 0.039276123046875, -0.0157470703125, 0.006908416748046875, -0.00007963180541992188, -0.06072998046875, 0.00608062744140625, -0.0283050537109375, 0.0009207725524902344, -0.0038051605224609375, 0.005771636962890625, 0.07135009765625, 0.003437042236328125, -0.044189453125, 0.00983428955078125, -0.00974273681640625, 0.00004184246063232422, -0.00859832763671875, -0.0269927978515625, -0.031341552734375, 0.0110321044921875, -0.032318115234375, -0.026275634765625, 0.03826904296875, -0.013763427734375, -0.062744140625, 0.12359619140625, 0.024810791015625, 0.01419830322265625, 0.024993896484375, 0.053131103515625, -0.06817626953125, 0.0095672607421875, 0.0026645660400390625, 0.013397216796875, 0.0019311904907226562, -0.0095367431640625, 0.0267333984375, 0.0291748046875, 0.004730224609375, -0.005218505859375, 0.06927490234375, 0.0126190185546875, -0.026947021484375, 0.00836944580078125, 0.045806884765625, 0.030975341796875, -0.0186767578125, 0.0467529296875, 0.0282745361328125, -0.0037670135498046875, 0.0037097930908203125, 0.036651611328125, 0.03997802734375, -0.01035308837890625, -0.0185089111328125, 0.053375244140625, 0.00417327880859375, 0.0014934539794921875, 0.0039215087890625, 0.04559326171875, -0.01386260986328125, -0.01064300537109375, 0.01482391357421875, -0.043182373046875, -0.024078369140625, 0.03143310546875, 0.0169830322265625, -0.052581787109375, -0.0259246826171875, -0.0239715576171875, 0.033172607421875, -0.0071258544921875, -0.0019073486328125, -0.00534820556640625, -0.0007381439208984375, 0.024688720703125, -0.0095367431640625, 0.0069427490234375, 0.051116943359375, -0.0281219482421875, 0.0117034912109375, -0.0287017822265625, -0.006534576416015625, -0.06976318359375, -0.004425048828125, 0.0535888671875, 0.0240631103515625, -0.022979736328125, -0.03131103515625, 0.01148223876953125, 0.009429931640625, 0.006404876708984375, 0.0136871337890625, 0.01702880859375, -0.0465087890625, 0.008056640625, -0.0027370452880859375, -0.041595458984375, -0.0157928466796875, 0.018096923828125, -0.0252685546875, -0.052215576171875, 0.0625, -0.0274505615234375, -0.00466156005859375, 0.0165252685546875, 0.005603790283203125, -0.004108428955078125, -0.023223876953125, 0.035980224609375, 0.005229949951171875, 0.027862548828125, -0.01251220703125, -0.0007634162902832031, 0.0010156631469726562, 0.020660400390625, -0.02191162109375, -0.028961181640625, 0.03106689453125, 0.0308990478515625, 0.0176544189453125, 0.044677734375, 0.04754638671875, 0.0013561248779296875, -0.035919189453125, -0.0020999908447265625, -0.0137786865234375, -0.031951904296875, -0.0322265625, -0.018524169921875, 0.016571044921875, 0.0380859375, 0.01476287841796875, -0.01081085205078125, 0.045013427734375, 0.0276947021484375, -0.0226898193359375, -0.00034332275390625, 0.0031261444091796875, -0.031494140625, -0.00080108642578125, -0.03411865234375, -0.03350830078125, -0.0203857421875, -0.07244873046875, -0.01959228515625, 0.007625579833984375, -0.05523681640625, 0.00948333740234375, 0.04571533203125, -0.032958984375, 0.0225982666015625, -0.0224761962890625, 0.0270538330078125, -0.006473541259765625, -0.046875, 0.0202789306640625, -0.0206756591796875, 0.00849151611328125, -0.0012035369873046875, 0.00872802734375, 0.0218048095703125, -0.003803253173828125, 0.0328369140625, 0.03436279296875, 0.0546875, -0.0266571044921875, 0.046173095703125, 0.01529693603515625, -0.003429412841796875, 0.007904052734375, -0.01277923583984375, 0.0161895751953125, 0.0159912109375, 0.01123046875, -0.0181732177734375, -0.010589599609375, 0.021026611328125, 0.022491455078125, -0.0255889892578125, -0.006862640380859375, -0.02886962890625, 0.00948333740234375, -0.00554656982421875, 0.0304718017578125, -0.0159149169921875, -0.0209197998046875, -0.036956787109375, -0.0167236328125, 0.0268707275390625, 0.0049285888671875, -0.029144287109375, 0.016937255859375, 0.0236358642578125, 0.005130767822265625, 0.006389617919921875, 0.00934600830078125, -0.007266998291015625, 0.023406982421875, 0.0243988037109375, -0.03656005859375, 0.0426025390625, -0.00756072998046875, -0.015869140625, 0.023040771484375, 0.031982421875, 0.01177215576171875, -0.058563232421875, 0.0126495361328125, 0.00565338134765625, 0.023223876953125, -0.0277099609375, -0.00862884521484375, 0.0185546875, 0.006633758544921875, -0.01222991943359375, -0.0287322998046875, -0.039703369140625, -0.061737060546875, -0.00803375244140625, 0.007160186767578125, -0.0294647216796875, -0.08642578125, -0.068603515625, 0.0201568603515625, -0.0239410400390625, 0.0037975311279296875, -0.06610107421875, 0.069580078125, -0.002410888671875, 0.01910400390625, -0.05560302734375, -0.00913238525390625, 0.001861572265625, 0.03814697265625, -0.0290679931640625, -0.044464111328125, -0.033111572265625, 0.024139404296875, -0.0467529296875, 0.037841796875, 0.05133056640625, -0.048675537109375, -0.0133056640625, 0.031341552734375, 0.043365478515625, 0.07244873046875, 0.040374755859375, -0.021881103515625, 0.01082611083984375, -0.0121002197265625, 0.002681732177734375, -0.0389404296875, 0.00016021728515625, -0.0243377685546875, 0.0029449462890625, -0.0079345703125, -0.030853271484375, -0.04266357421875, -0.0699462890625, -0.08038330078125, 0.057098388671875, -0.00951385498046875, -0.0253448486328125, -0.00914764404296875, -0.01430511474609375, -0.031005859375, 0.04345703125, 0.0162811279296875, -0.0411376953125, 0.01360321044921875, 0.039154052734375, 0.002788543701171875, -0.0014028549194335938, 0.01513671875, 0.00036454200744628906, -0.045654296875, -0.01021575927734375, -0.018890380859375, -0.0157470703125, 0.0212554931640625, 0.000560760498046875, -0.0178375244140625, 0.02655029296875, -0.061492919921875, -0.0290679931640625, -0.0526123046875, -0.00629425048828125, -0.005336761474609375, -0.00627899169921875, -0.060272216796875, -0.02764892578125, 0.0540771484375, 0.046417236328125, 0.0207672119140625, -0.002246856689453125, -0.0004200935363769531, 0.01068878173828125, 0.0005593299865722656, 0.01157379150390625, -0.007030487060546875, -0.0007395744323730469, 0.0217742919921875, -0.0286407470703125, -0.01288604736328125, 0.0231475830078125, 0.01528167724609375, -0.01312255859375, 0.0177001953125, 0.055999755859375, -0.0111846923828125, -0.060577392578125, 0.002964019775390625, 0.0965576171875, -0.027191162109375, 0.060760498046875, -0.01050567626953125, 0.0081024169921875, 0.07269287109375, 0.00785064697265625, -0.02447509765625, -0.025146484375, -0.0237579345703125, 0.039825439453125, -0.01520538330078125, 0.00262451171875, -0.0230255126953125, 0.00714111328125, -0.0210723876953125, 0.01168060302734375, -0.00044226646423339844, 0.00809478759765625, 0.00344085693359375, -0.004547119140625, 0.0038604736328125, 0.0121612548828125, -0.0165252685546875, -0.0301055908203125, -0.051971435546875, 0.03131103515625, -0.0273590087890625, 0.0196685791015625, -0.0095672607421875, -0.00667572021484375, 0.017333984375, 0.0284881591796875, 0.011138916015625, -0.015899658203125, -0.00449371337890625, 0.0003857612609863281, 0.0257110595703125, 0.0030689239501953125 ]
60a643aaf638cad221995ffc13b65dbb339b8324
Wordpress Stackexchange Q: Password protected post or page - error message by wrong password? Ok guys, I'm building a page, where a certain sub-page is password protected. Easy in wordpress. But there is a UX problem: when a user enters a wrong password, theres no error message or something to indicate, that the password is not correct. Is it posible to manually code it somehow to the template file? A: not really, but can try something like: add_action('wp', 'check_post_pass'); function check_post_pass(){ if(!is_single() || !post_password_required()) return; global $post; if(isset($_COOKIE['wp-postpass_'.COOKIEHASH]) && $_COOKIE['wp-postpass_'.COOKIEHASH] !== $post->post_password){ define('INVALID_POST_PASS', true); // tell the browser to remove the cookie so the message doesn't show up every time setcookie('wp-postpass_'.COOKIEHASH, NULL, -1, COOKIEPATH); } } in your template: if(defined('INVALID_POST_PASS')) _e('The password you entered is funky'); But a much better idea would be to create your own the_content()-like function and password form + check function, without cookies...
Q: Password protected post or page - error message by wrong password? Ok guys, I'm building a page, where a certain sub-page is password protected. Easy in wordpress. But there is a UX problem: when a user enters a wrong password, theres no error message or something to indicate, that the password is not correct. Is it posible to manually code it somehow to the template file? A: not really, but can try something like: add_action('wp', 'check_post_pass'); function check_post_pass(){ if(!is_single() || !post_password_required()) return; global $post; if(isset($_COOKIE['wp-postpass_'.COOKIEHASH]) && $_COOKIE['wp-postpass_'.COOKIEHASH] !== $post->post_password){ define('INVALID_POST_PASS', true); // tell the browser to remove the cookie so the message doesn't show up every time setcookie('wp-postpass_'.COOKIEHASH, NULL, -1, COOKIEPATH); } } in your template: if(defined('INVALID_POST_PASS')) _e('The password you entered is funky'); But a much better idea would be to create your own the_content()-like function and password form + check function, without cookies...
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:410881", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21697" }
[ 0.056427001953125, -0.01025390625, 0.0229339599609375, -0.0002868175506591797, 0.0009236335754394531, -0.043212890625, 0.062225341796875, -0.0570068359375, -0.0101318359375, -0.004596710205078125, -0.01568603515625, -0.027801513671875, -0.030426025390625, -0.04864501953125, 0.004344940185546875, -0.0623779296875, 0.022186279296875, -0.010528564453125, 0.0140380859375, -0.03045654296875, 0.006793975830078125, -0.01629638671875, 0.02386474609375, -0.01457977294921875, 0.027191162109375, 0.005863189697265625, 0.09002685546875, 0.02398681640625, 0.01165008544921875, -0.0142669677734375, 0.033966064453125, -0.06439208984375, 0.01120758056640625, 0.03717041015625, -0.05487060546875, -0.0122833251953125, -0.003631591796875, 0.01299285888671875, -0.0196380615234375, 0.051910400390625, 0.0019216537475585938, 0.006298065185546875, 0.045074462890625, 0.034759521484375, 0.006694793701171875, -0.0302886962890625, 0.03326416015625, -0.039825439453125, 0.0546875, 0.036285400390625, 0.01116943359375, 0.0096893310546875, 0.01270294189453125, 0.005466461181640625, -0.03369140625, -0.02020263671875, -0.0421142578125, 0.002437591552734375, 0.0445556640625, 0.0494384765625, -0.00548553466796875, -0.029144287109375, -0.0066680908203125, -0.061370849609375, -0.023345947265625, 0.0031642913818359375, 0.004344940185546875, 0.003917694091796875, -0.019378662109375, -0.0204315185546875, 0.017303466796875, 0.0009946823120117188, 0.00830841064453125, -0.034027099609375, -0.000043272972106933594, 0.0179595947265625, -0.020599365234375, 0.0086517333984375, 0.00789642333984375, -0.00978851318359375, -0.01690673828125, 0.0238494873046875, -0.043670654296875, -0.0312347412109375, 0.0135345458984375, 0.006134033203125, -0.01580810546875, -0.0108795166015625, -0.0244903564453125, -0.0140380859375, -0.02838134765625, -0.0147705078125, -0.0139312744140625, 0.004306793212890625, -0.020050048828125, -0.0076751708984375, 0.031280517578125, 0.062164306640625, -0.01456451416015625, 0.015869140625, -0.014617919921875, -0.03656005859375, 0.028656005859375, -0.035675048828125, -0.01407623291015625, 0.059051513671875, 0.0135040283203125, -0.0002161264419555664, 0.0007305145263671875, 0.01218414306640625, 0.00931549072265625, -0.0615234375, -0.021209716796875, -0.06292724609375, -0.03924560546875, 0.0648193359375, 0.01247406005859375, -0.0557861328125, 0.0247802734375, -0.0192108154296875, -0.03173828125, -0.036102294921875, 0.029815673828125, -0.0065460205078125, 0.03302001953125, -0.003360748291015625, -0.03759765625, 0.016845703125, 0.040740966796875, 0.026214599609375, -0.067626953125, -0.0150909423828125, 0.08734130859375, 0.01354217529296875, 0.03582763671875, -0.045318603515625, -0.002803802490234375, 0.00893402099609375, -0.0163726806640625, 0.01436614990234375, -0.01535797119140625, -0.021331787109375, 0.017242431640625, -0.01279449462890625, 0.00876617431640625, 0.0269622802734375, 0.0245513916015625, 0.0021610260009765625, -0.00788116455078125, -0.069091796875, 0.0191802978515625, -0.019287109375, -0.0237274169921875, 0.0266876220703125, 0.025177001953125, 0.01535797119140625, -0.00946807861328125, -0.00018870830535888672, 0.0226287841796875, 0.01378631591796875, 0.041229248046875, -0.0228424072265625, -0.041046142578125, -0.021240234375, -0.05462646484375, 0.0162353515625, -0.0275421142578125, 0.00011688470840454102, 0.0075836181640625, -0.0137786865234375, -0.0081024169921875, -0.03814697265625, -0.05303955078125, -0.038726806640625, -0.0158233642578125, 0.01486968994140625, -0.0112762451171875, 0.035888671875, 0.0081634521484375, 0.04071044921875, 0.0253753662109375, -0.0305328369140625, 0.063232421875, -0.00946807861328125, -0.046173095703125, 0.0046844482421875, 0.0261077880859375, 0.05224609375, 0.023284912109375, 0.031646728515625, 0.022125244140625, 0.00693511962890625, -0.01332855224609375, 0.04931640625, -0.0467529296875, -0.06732177734375, 0.0245361328125, 0.00848388671875, -0.031585693359375, 0.028045654296875, 0.016937255859375, 0.00862884521484375, -0.0220184326171875, 0.01192474365234375, -0.06597900390625, 0.00804901123046875, -0.016357421875, 0.0143280029296875, -0.06072998046875, 0.0154266357421875, 0.033203125, -0.01259613037109375, -0.03900146484375, 0.01105499267578125, -0.0036220550537109375, -0.05731201171875, -0.051055908203125, 0.04046630859375, -0.011627197265625, 0.0882568359375, -0.0247955322265625, -0.042694091796875, -0.0222625732421875, -0.06268310546875, 0.020172119140625, -0.00897216796875, -0.02655029296875, 0.0032787322998046875, -0.00428009033203125, 0.007450103759765625, -0.00835418701171875, 0.0311431884765625, -0.0031585693359375, -0.0009455680847167969, -0.053253173828125, -0.0177001953125, -0.0653076171875, -0.05108642578125, -0.013214111328125, 0.0699462890625, 0.0301361083984375, 0.06689453125, -0.01007843017578125, -0.005321502685546875, 0.08099365234375, -0.052215576171875, -0.006061553955078125, -0.00012350082397460938, -0.0269775390625, 0.01412200927734375, -0.00972747802734375, 0.016876220703125, 0.00972747802734375, -0.0670166015625, -0.0166168212890625, 0.032745361328125, -0.0311126708984375, 0.0178680419921875, -0.01519012451171875, -0.01544189453125, -0.00797271728515625, -0.02618408203125, 0.00988006591796875, -0.0303192138671875, 0.022796630859375, -0.051727294921875, 0.018157958984375, -0.012237548828125, 0.020843505859375, -0.041229248046875, 0.00757598876953125, -0.0498046875, 0.0004222393035888672, 0.046844482421875, 0.038848876953125, 0.0199737548828125, -0.039825439453125, -0.0276947021484375, 0.00131988525390625, 0.032867431640625, -0.0160369873046875, 0.00998687744140625, -0.07281494140625, -0.002593994140625, 0.006069183349609375, -0.03143310546875, -0.0171661376953125, 0.042510986328125, 0.04888916015625, -0.01396942138671875, 0.028778076171875, 0.0133514404296875, -0.0074615478515625, 0.040679931640625, 0.0184783935546875, -0.034332275390625, -0.027923583984375, -0.05670166015625, 0.04815673828125, -0.052398681640625, 0.0229034423828125, 0.05755615234375, -0.0189056396484375, 0.0220184326171875, 0.00213623046875, 0.034698486328125, 0.0119476318359375, 0.017181396484375, -0.006999969482421875, -0.031005859375, 0.0008139610290527344, -0.020263671875, 0.0252532958984375, 0.018402099609375, 0.02484130859375, -0.0217742919921875, 0.0153350830078125, 0.015380859375, -0.037078857421875, -0.06121826171875, -0.06085205078125, -0.07769775390625, -0.007648468017578125, -0.00893402099609375, -0.035186767578125, 0.018463134765625, 0.01541900634765625, 0.0166168212890625, -0.037841796875, -0.0266876220703125, -0.0263671875, -0.0303192138671875, -0.040252685546875, 0.057861328125, 0.01409912109375, 0.02325439453125, -0.00527191162109375, 0.07861328125, 0.005283355712890625, -0.092529296875, -0.03076171875, 0.0263671875, -0.01313018798828125, 0.0200347900390625, -0.046173095703125, -0.0144805908203125, 0.033203125, -0.00428009033203125, -0.069091796875, -0.033538818359375, 0.06317138671875, -0.037567138671875, -0.006366729736328125, -0.01708984375, 0.01413726806640625, 0.03704833984375, 0.0038013458251953125, -0.0263824462890625, 0.0234832763671875, -0.056488037109375, -0.036407470703125, -0.0013723373413085938, -0.046600341796875, 0.054229736328125, 0.0251617431640625, -0.0246734619140625, 0.0186309814453125, 0.02325439453125, -0.00803375244140625, 0.0200347900390625, 0.0108489990234375, -0.00865936279296875, 0.0221405029296875, -0.0228424072265625, -0.0279388427734375, -0.01169586181640625, 0.007083892822265625, -0.0121612548828125, -0.0164031982421875, -0.004299163818359375, 0.0260009765625, 0.030731201171875, -0.00896453857421875, 0.01556396484375, -0.07427978515625, 0.040069580078125, -0.032806396484375, 0.01434326171875, -0.064697265625, -0.02947998046875, -0.0180816650390625, 0.10089111328125, -0.0257110595703125, -0.0204620361328125, 0.0022754669189453125, 0.01398468017578125, -0.0024127960205078125, -0.01824951171875, 0.002826690673828125, -0.00390625, -0.0221405029296875, -0.012451171875, -0.0310211181640625, 0.0011911392211914062, 0.01271820068359375, -0.042327880859375, 0.0210723876953125, -0.037567138671875, 0.0238800048828125, -0.03424072265625, 0.017578125, 0.000015497207641601562, 0.0035648345947265625, -0.0287933349609375, 0.0132904052734375, -0.034637451171875, -0.06781005859375, -0.0164794921875, -0.01432037353515625, 0.04693603515625, 0.032073974609375, -0.036529541015625, -0.001560211181640625, 0.04534912109375, 0.00042629241943359375, 0.004467010498046875, -0.00574493408203125, -0.005542755126953125, 0.0286407470703125, -0.0154266357421875, -0.011016845703125, -0.01554107666015625, 0.0197601318359375, 0.024078369140625, -0.0281829833984375, 0.0164031982421875, -0.038360595703125, -0.0151824951171875, 0.0186767578125, -0.037933349609375, -0.03594970703125, -0.045318603515625, -0.007541656494140625, 0.0020503997802734375, -0.006549835205078125, 0.0025234222412109375, -0.03564453125, -0.020599365234375, 0.0426025390625, 0.01560211181640625, -0.0296478271484375, -0.006748199462890625, 0.01303863525390625, 0.0096588134765625, -0.039794921875, -0.00518798828125, 0.00414276123046875, 0.0223236083984375, -0.031463623046875, 0.0116119384765625, 0.0151519775390625, -0.002643585205078125, 0.00936126708984375, -0.0269927978515625, -0.0211334228515625, -0.01556396484375, 0.028564453125, 0.005340576171875, -0.02020263671875, 0.0018224716186523438, -0.030426025390625, 0.06072998046875, 0.00646209716796875, -0.007518768310546875, 0.01093292236328125, 0.00966644287109375, -0.01297760009765625, -0.0036182403564453125, -0.0037555694580078125, 0.0009655952453613281, -0.015869140625, 0.0207061767578125, 0.0009474754333496094, -0.034454345703125, -0.00830078125, 0.0230865478515625, -0.03387451171875, -0.03411865234375, 0.0012845993041992188, -0.00801849365234375, -0.0023403167724609375, 0.01416015625, 0.0272979736328125, 0.005908966064453125, 0.025390625, -0.03521728515625, -0.0175933837890625, 0.0618896484375, 0.0187835693359375, -0.058563232421875, 0.048248291015625, 0.0035762786865234375, 0.0204010009765625, 0.02178955078125, -0.0244140625, 0.02398681640625, -0.01239013671875, -0.014007568359375, 0.025177001953125, -0.002338409423828125, -0.05426025390625, -0.0169830322265625, 0.0288543701171875, 0.031463623046875, -0.0168304443359375, 0.0131378173828125, 0.042816162109375, 0.0009064674377441406, 0.028076171875, 0.0027980804443359375, 0.0117645263671875, 0.01360321044921875, 0.01013946533203125, 0.037353515625, -0.001987457275390625, -0.027069091796875, 0.01788330078125, 0.00036978721618652344, -0.03558349609375, -0.08062744140625, 0.0141754150390625, 0.04473876953125, -0.019378662109375, 0.043670654296875, -0.0017032623291015625, 0.026336669921875, 0.01149749755859375, 0.0185699462890625, -0.0214385986328125, -0.036468505859375, -0.0211029052734375, 0.006038665771484375, 0.0352783203125, -0.03509521484375, 0.006023406982421875, -0.00940704345703125, -0.002956390380859375, 0.0141448974609375, -0.006725311279296875, 0.0062713623046875, -0.0165557861328125, -0.02825927734375, -0.0023059844970703125, -0.0136871337890625, -0.0204315185546875, 0.030364990234375, -0.00982666015625, -0.01325225830078125, -0.00395965576171875, 0.044830322265625, -0.018890380859375, -0.0251617431640625, -0.0005021095275878906, 0.00907135009765625, 0.00609588623046875, 0.0253753662109375, 0.0029506683349609375, -0.037353515625, -0.0259246826171875, 0.01136016845703125, -0.01546478271484375, -0.0170135498046875, -0.0258331298828125, -0.038848876953125, -0.03802490234375, -0.0192718505859375, 0.0107421875, -0.0017271041870117188, 0.014312744140625, 0.00011849403381347656, -0.042938232421875, 0.017913818359375, 0.0224609375, 0.0164337158203125, -0.01314544677734375, 0.0467529296875, 0.02752685546875, -0.0031280517578125, 0.0309906005859375, 0.0411376953125, 0.0113983154296875, -0.0262603759765625, -0.010040283203125, -0.025970458984375, 0.005657196044921875, -0.009307861328125, 0.05426025390625, 0.033416748046875, 0.029388427734375, 0.0009169578552246094, -0.01499176025390625, -0.004344940185546875, 0.00981903076171875, -0.01169586181640625, 0.058746337890625, 0.0178070068359375, -0.03704833984375, 0.06939697265625, -0.0181884765625, 0.03741455078125, -0.020782470703125, -0.0098724365234375, 0.041839599609375, -0.03704833984375, 0.030029296875, 0.0301361083984375, -0.032470703125, 0.043212890625, 0.04583740234375, -0.00568389892578125, 0.0272979736328125, 0.003772735595703125, 0.005462646484375, 0.01287841796875, -0.03131103515625, -0.01898193359375, -0.0225830078125, 0.039642333984375, 0.004985809326171875, -0.01263427734375, 0.04693603515625, -0.0212249755859375, 0.024200439453125, 0.08197021484375, 0.0673828125, -0.09393310546875, 0.010498046875, 0.01297760009765625, -0.021942138671875, 0.00553131103515625, -0.0192718505859375, 0.006114959716796875, 0.009124755859375, 0.0689697265625, 0.0206756591796875, -0.01088714599609375, 0.039215087890625, -0.00485992431640625, -0.004833221435546875, 0.007007598876953125, 0.0845947265625, 0.0094757080078125, -0.033416748046875, -0.0027484893798828125, 0.0157012939453125, 0.0222015380859375, -0.0300750732421875, 0.00922393798828125, -0.048248291015625, -0.01302337646484375, -0.06353759765625, -0.05133056640625, -0.009521484375, -0.009735107421875, 0.0009737014770507812, 0.01424407958984375, 0.02691650390625, 0.05511474609375, -0.0091705322265625, 0.007080078125, 0.01548004150390625, 0.005321502685546875, 0.03472900390625, -0.003269195556640625, 0.02093505859375, 0.004241943359375, -0.039215087890625, 0.006961822509765625, -0.0156707763671875, -0.026336669921875, 0.000560760498046875, -0.008087158203125, 0.07171630859375, -0.0379638671875, -0.0172119140625, 0.03485107421875, -0.0035877227783203125, -0.0186767578125, 0.01406097412109375, 0.03143310546875, -0.0216217041015625, 0.019195556640625, 0.004322052001953125, -0.0177764892578125, -0.0257568359375, -0.0047760009765625, -0.056610107421875, 0.117919921875, 0.009796142578125, 0.00832366943359375, 0.0018749237060546875, 0.04901123046875, -0.03863525390625, 0.0229644775390625, -0.050628662109375, 0.08306884765625, -0.00553131103515625, 0.06097412109375, -0.051666259765625, -0.01190948486328125, 0.026031494140625, 0.03228759765625, 0.033843994140625, 0.0186004638671875, -0.0258636474609375, -0.029693603515625, -0.0204010009765625, -0.01027679443359375, -0.02490234375, 0.042724609375, 0.00803375244140625, 0.0499267578125, 0.035308837890625, -0.09686279296875, 0.0124359130859375, -0.05426025390625, 0.0237579345703125, 0.0191650390625, 0.0028247833251953125, -0.0238037109375, 0.0187835693359375, 0.0117950439453125, -0.1016845703125, 0.0247650146484375, 0.054412841796875, 0.0203094482421875, 0.039886474609375, 0.02069091796875, 0.06634521484375, -0.03643798828125, -0.0206298828125, -0.0195465087890625, 0.047821044921875, -0.004749298095703125, 0.0271453857421875, 0.033966064453125, 0.0269775390625, 0.0181732177734375, 0.0021381378173828125, 0.01393890380859375, 0.010467529296875, -0.0160675048828125, 0.0235137939453125, 0.0142364501953125, 0.0150146484375, -0.041473388671875, 0.0260467529296875, 0.045013427734375, 0.039215087890625, -0.039459228515625, -0.021026611328125, 0.00734710693359375, 0.0167083740234375, 0.0195159912109375, -0.01361083984375, 0.032073974609375, 0.01145172119140625, 0.01500701904296875, -0.01727294921875, -0.022552490234375, 0.005001068115234375, -0.01346588134765625, -0.00368499755859375, -0.00689697265625, 0.046661376953125, 0.01105499267578125, 0.01204681396484375, -0.0276031494140625, 0.040863037109375, 0.0367431640625, -0.026519775390625, 0.030242919921875, -0.0604248046875, 0.0010232925415039062, -0.01641845703125, 0.01082611083984375, -0.0019779205322265625, 0.01462554931640625, -0.0230560302734375, 0.00788116455078125, -0.0024509429931640625, 0.034759521484375, -0.014495849609375, -0.026275634765625, 0.0255126953125, 0.049896240234375, -0.0241851806640625, -0.03717041015625, 0.0042266845703125, -0.0195465087890625, 0.028045654296875, -0.01316070556640625, -0.01413726806640625, -0.004779815673828125, -0.030426025390625, -0.0195465087890625, 0.0102691650390625, 0.031951904296875, 0.027130126953125, 0.02435302734375, 0.01690673828125, 0.0239715576171875, 0.0232086181640625, 0.0207366943359375, -0.01552581787109375, 0.054840087890625, -0.07598876953125, 0.0107421875, -0.033203125, -0.10235595703125, 0.02716064453125, 0.044586181640625, -0.0285186767578125, 0.0003306865692138672, 0.046295166015625, -0.00478363037109375, 0.0153656005859375, -0.0088958740234375, 0.015777587890625, -0.0218963623046875, 0.0156707763671875, 0.0020542144775390625, -0.046966552734375, -0.023773193359375, -0.027862548828125, 0.02880859375, 0.008880615234375, 0.075927734375, -0.0093994140625, 0.01477813720703125, -0.0293731689453125, 0.028656005859375, -0.045074462890625, -0.0102081298828125, -0.00769805908203125, -0.0092315673828125, 0.005329132080078125, 0.00849151611328125, -0.0233612060546875, 0.07379150390625, -0.023956298828125, 0.0097503662109375, 0.051422119140625, -0.026763916015625, -0.0125732421875, 0.008758544921875, 0.03521728515625, -0.01458740234375, -0.0657958984375, -0.007358551025390625, 0.0596923828125, -0.0149383544921875, 0.0633544921875, -0.01020050048828125, 0.045135498046875, -0.0640869140625, -0.022308349609375, 0.004535675048828125, -0.0626220703125, -0.014617919921875, 0.0222930908203125, -0.04833984375, 0.015777587890625, -0.01080322265625, -0.0076446533203125, -0.00039839744567871094, 0.0264739990234375, -0.02899169921875, 0.022491455078125, -0.0031375885009765625, 0.01126861572265625, 0.0274505615234375, 0.06683349609375, 0.004184722900390625, 0.02032470703125, 0.01291656494140625, -0.008941650390625, 0.00266265869140625, 0.0223846435546875, -0.0181427001953125, -0.03533935546875, -0.01515960693359375, -0.02099609375, -0.017974853515625, -0.05828857421875, -0.0088348388671875, 0.0221099853515625, 0.028656005859375, -0.0172882080078125, -0.0289306640625, -0.017730712890625, -0.01395416259765625, 0.0916748046875, -0.0291748046875, 0.018157958984375, 0.00675201416015625, 0.027618408203125, -0.0430908203125, 0.0033245086669921875, -0.03826904296875, -0.01445770263671875, -0.039886474609375, -0.00986480712890625, 0.041351318359375, -0.01366424560546875, -0.044952392578125, -0.0200653076171875, -0.011077880859375, 0.021453857421875, -0.05908203125, -0.019744873046875, 0.03643798828125, 0.0013217926025390625, -0.01477813720703125, -0.07196044921875, 0.0015316009521484375, -0.08154296875, 0.0237884521484375, 0.0282440185546875, -0.01824951171875, 0.0007338523864746094, -0.041107177734375, -0.07061767578125, 0.01314544677734375, 0.00868988037109375, -0.033721923828125, -0.00940704345703125, -0.017364501953125, -0.01541900634765625, 0.0184783935546875, -0.0033054351806640625, 0.00933837890625, -0.016448974609375, 0.032470703125, -0.0006661415100097656, -0.0267333984375, 0.04071044921875, 0.0097808837890625, -0.044097900390625, 0.0118408203125, 0.024658203125, -0.034820556640625, 0.0060882568359375, -0.01258087158203125, -0.003551483154296875, 0.031402587890625, -0.049285888671875, -0.049163818359375, -0.017333984375, 0.00860595703125, -0.002471923828125, -0.01267242431640625, 0.006496429443359375, -0.019927978515625, 0.01971435546875, 0.01194000244140625, -0.007678985595703125, -0.0088348388671875, -0.0012989044189453125, -0.038299560546875, -0.032470703125, -0.005939483642578125, 0.0126800537109375, -0.049163818359375, -0.00621795654296875, 0.0074462890625, -0.0096893310546875, -0.023040771484375, -0.0290985107421875, -0.027008056640625, -0.00738525390625, -0.004184722900390625, 0.00013434886932373047, 0.026031494140625, -0.08453369140625, 0.06695556640625, -0.023468017578125, 0.00798797607421875, 0.01183319091796875, 0.0511474609375, 0.035003662109375, 0.057861328125, 0.0191650390625, 0.0386962890625, -0.06793212890625, -0.0029392242431640625, 0.00005459785461425781, 0.035125732421875, -0.038970947265625, -0.026458740234375, -0.00617218017578125, -0.0083160400390625, -0.0145416259765625, -0.0014591217041015625, 0.0286712646484375, 0.0254364013671875, -0.01047515869140625, 0.03338623046875, -0.01265716552734375, -0.0298004150390625, -0.0269012451171875, 0.01508331298828125, 0.03839111328125, -0.022796630859375, 0.060577392578125, -0.00997161865234375, 0.003948211669921875, -0.0139007568359375, 0.046295166015625, -0.0179595947265625, 0.0562744140625, -0.0125885009765625, 0.007297515869140625, 0.020172119140625 ]
912460bd60addbcf615eee626774a6a30e6f0a83
Wordpress Stackexchange Q: Settings API updated messages won't show if custom admin page not hooked into add_options_page() Been playing around with the Settings API and found that messages (for success or errors) are only displayed when a settings page is hooked into WordPress menu via add_options_page(). Anything else will not work e.g. add_dashboard_page(). Would like to know if this is true? Sample code I tried with is the answer containing the "RegisteredSettingsTest" class at Where to hook register_settings for Settings API when also want to update options outside of Settings API? A: Thanks Chip (excellent Settings API tutorial) and t31os (great snippet of code for quick testing) for both your suggestions. I did some further digging and found that the default messages can indeed be displayed if I hook into any menu but only if the function settings_errors() is called. For example, modifying t31os code as follows: <div class="wrap"> <h2>Test</h2> <?php settings_errors(); ?> <form action="options.php" method="post"> Custom error messages can also be added by calling the add_settings_error() function for displaying success or failure message by specifying the $type parameter as either 'error' or 'updated'.
Q: Settings API updated messages won't show if custom admin page not hooked into add_options_page() Been playing around with the Settings API and found that messages (for success or errors) are only displayed when a settings page is hooked into WordPress menu via add_options_page(). Anything else will not work e.g. add_dashboard_page(). Would like to know if this is true? Sample code I tried with is the answer containing the "RegisteredSettingsTest" class at Where to hook register_settings for Settings API when also want to update options outside of Settings API? A: Thanks Chip (excellent Settings API tutorial) and t31os (great snippet of code for quick testing) for both your suggestions. I did some further digging and found that the default messages can indeed be displayed if I hook into any menu but only if the function settings_errors() is called. For example, modifying t31os code as follows: <div class="wrap"> <h2>Test</h2> <?php settings_errors(); ?> <form action="options.php" method="post"> Custom error messages can also be added by calling the add_settings_error() function for displaying success or failure message by specifying the $type parameter as either 'error' or 'updated'. A: I use Settings API integration with my Theme,use add_theme_page(), and have no problem displaying admin notices. I suspect that it is a problem with your code rather than a Settings API limitation. Can you post your actual code, so we can help you resolve any code-related issues? EDIT You may need to output your admin notices explicitly. For example, here is what I use in my settings page markup function: <?php if ( isset( $_GET['settings-updated'] ) ) { echo "<div class='updated'><p>Theme settings updated successfully.</p></div>"; } ?> I assume you could do something similar for error notices, as well.
wordpress
{ "language": "en", "length": 281, "provenance": "stackexchange_00019.jsonl.gz:410884", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21702" }
[ 0.0516357421875, -0.024200439453125, 0.040679931640625, -0.02374267578125, -0.018798828125, -0.01502227783203125, 0.0220489501953125, -0.02044677734375, -0.00004470348358154297, 0.025604248046875, -0.0303955078125, -0.0164642333984375, 0.006256103515625, -0.0130615234375, -0.026947021484375, -0.054595947265625, 0.0247802734375, 0.01654052734375, 0.034210205078125, -0.01340484619140625, 0.0175323486328125, 0.0089263916015625, 0.0011119842529296875, 0.058929443359375, 0.0027713775634765625, -0.0374755859375, 0.0328369140625, -0.015228271484375, -0.0146942138671875, -0.0231781005859375, -0.007617950439453125, 0.037384033203125, 0.021240234375, 0.0382080078125, -0.031158447265625, 0.00380706787109375, 0.052490234375, -0.00920867919921875, -0.01404571533203125, 0.054840087890625, 0.01201629638671875, 0.00737762451171875, 0.09765625, 0.0240478515625, 0.032196044921875, -0.03057861328125, 0.035736083984375, -0.0615234375, -0.0003407001495361328, 0.0011682510375976562, 0.0236663818359375, -0.05889892578125, 0.0357666015625, 0.004314422607421875, -0.040771484375, -0.04620361328125, -0.03570556640625, 0.050933837890625, 0.0242919921875, 0.033111572265625, -0.0194244384765625, 0.0169830322265625, -0.023773193359375, -0.0465087890625, 0.026611328125, -0.022705078125, 0.016021728515625, 0.0350341796875, -0.0538330078125, -0.0098724365234375, 0.0293121337890625, -0.0263824462890625, 0.0002624988555908203, -0.002796173095703125, -0.0166168212890625, -0.01983642578125, 0.000118255615234375, -0.01556396484375, 0.007160186767578125, 0.00481414794921875, 0.0650634765625, 0.004474639892578125, 0.033172607421875, 0.01495361328125, 0.01061248779296875, 0.047698974609375, 0.00858306884765625, -0.040283203125, 0.003932952880859375, 0.01715087890625, -0.00617218017578125, -0.059234619140625, 0.01568603515625, 0.048858642578125, 0.01123046875, -0.0107421875, 0.01904296875, 0.0298004150390625, -0.0218963623046875, -0.01390838623046875, -0.001247406005859375, -0.0160369873046875, 0.00690460205078125, -0.01751708984375, 0.0238800048828125, 0.027557373046875, -0.024139404296875, -0.0716552734375, 0.028472900390625, 0.024017333984375, 0.0016155242919921875, 0.02301025390625, -0.0191650390625, -0.022491455078125, -0.00836944580078125, -0.005176544189453125, -0.0290985107421875, -0.01343536376953125, -0.010498046875, -0.03082275390625, -0.0050048828125, 0.03753662109375, -0.0281524658203125, -0.0108184814453125, 0.0193939208984375, 0.0015268325805664062, -0.0077056884765625, -0.004730224609375, 0.015350341796875, -0.0022029876708984375, -0.017242431640625, -0.0084381103515625, 0.028594970703125, 0.031890869140625, 0.01177215576171875, -0.01436614990234375, 0.0254974365234375, -0.032928466796875, -0.0229034423828125, 0.0291748046875, 0.01019287109375, -0.01537322998046875, -0.03277587890625, -0.0238800048828125, -0.01242828369140625, -0.006130218505859375, 0.01306915283203125, 0.03131103515625, -0.00463104248046875, -0.052459716796875, 0.01457977294921875, 0.02862548828125, 0.012786865234375, 0.02001953125, -0.02606201171875, 0.00970458984375, 0.00853729248046875, -0.005859375, -0.01291656494140625, -0.0120849609375, -0.014892578125, -0.041046142578125, -0.002590179443359375, -0.0211181640625, -0.030242919921875, 0.0634765625, -0.0362548828125, -0.0011930465698242188, 0.01467132568359375, 0.0229034423828125, 0.00954437255859375, 0.0017719268798828125, -0.021728515625, -0.0029201507568359375, 0.00577545166015625, -0.01238250732421875, 0.011016845703125, 0.0018548965454101562, 0.0279083251953125, -0.03277587890625, -0.042510986328125, -0.043701171875, 0.039764404296875, -0.0300140380859375, -0.060699462890625, 0.038909912109375, 0.019195556640625, 0.07720947265625, -0.002597808837890625, 0.01325225830078125, 0.034637451171875, 0.00957489013671875, 0.0207061767578125, 0.011810302734375, -0.027313232421875, -0.008056640625, -0.029205322265625, 0.0296630859375, -0.04180908203125, -0.00322723388671875, -0.0791015625, -0.001209259033203125, 0.009490966796875, 0.0242156982421875, -0.036773681640625, 0.0263214111328125, -0.041961669921875, 0.05291748046875, -0.0111541748046875, -0.0036182403564453125, -0.00690460205078125, -0.0391845703125, -0.014739990234375, -0.005565643310546875, -0.017059326171875, -0.01715087890625, -0.0145111083984375, 0.104736328125, -0.0131988525390625, 0.07379150390625, -0.00786590576171875, -0.07696533203125, 0.0035610198974609375, -0.006305694580078125, 0.00920867919921875, -0.0267333984375, -0.0038318634033203125, -0.011322021484375, 0.0419921875, -0.018035888671875, 0.072998046875, 0.025054931640625, -0.00342559814453125, 0.007656097412109375, -0.023834228515625, -0.029144287109375, -0.01361846923828125, -0.07122802734375, 0.0267791748046875, 0.047607421875, 0.0285491943359375, 0.035430908203125, 0.010528564453125, 0.0285491943359375, 0.004329681396484375, -0.06622314453125, 0.01557159423828125, -0.01514434814453125, 0.01251983642578125, -0.0267791748046875, 0.01111602783203125, -0.0699462890625, 0.040313720703125, -0.050445556640625, 0.031158447265625, -0.0021152496337890625, -0.02862548828125, -0.0181732177734375, 0.0160675048828125, -0.0143890380859375, 0.01169586181640625, -0.0169830322265625, -0.0019168853759765625, -0.01445770263671875, 0.039825439453125, -0.0059967041015625, 0.0219879150390625, 0.01218414306640625, -0.0234832763671875, 0.0028705596923828125, 0.0183258056640625, -0.0203857421875, -0.011260986328125, 0.020294189453125, 0.044647216796875, -0.01457977294921875, -0.01959228515625, -0.02166748046875, 0.00469970703125, 0.01493072509765625, -0.01287078857421875, -0.0033969879150390625, -0.0285186767578125, -0.00299072265625, 0.0181732177734375, -0.04998779296875, 0.0102081298828125, 0.0066680908203125, 0.0528564453125, 0.0230712890625, 0.03533935546875, 0.0335693359375, -0.00736236572265625, 0.041839599609375, 0.00481414794921875, -0.0237274169921875, -0.009063720703125, -0.041778564453125, 0.04486083984375, -0.03900146484375, 0.00975799560546875, 0.0662841796875, -0.01560211181640625, 0.027587890625, -0.002109527587890625, 0.01385498046875, -0.01788330078125, 0.047882080078125, 0.0269775390625, -0.043212890625, 0.049591064453125, 0.0655517578125, 0.019378662109375, 0.035369873046875, -0.0176544189453125, -0.032989501953125, -0.02215576171875, 0.0180816650390625, -0.05535888671875, -0.03936767578125, 0.0177764892578125, -0.043121337890625, -0.0029926300048828125, -0.0101165771484375, -0.026275634765625, -0.0080413818359375, -0.0005927085876464844, -0.0009365081787109375, -0.0033473968505859375, -0.0298004150390625, -0.01122283935546875, -0.0281982421875, -0.04840087890625, -0.009613037109375, 0.005035400390625, 0.0032558441162109375, 0.0005483627319335938, 0.068603515625, 0.014739990234375, -0.0830078125, 0.01175689697265625, 0.015960693359375, 0.0017986297607421875, 0.044952392578125, 0.0401611328125, -0.01580810546875, 0.0574951171875, 0.01216888427734375, -0.0226898193359375, 0.0645751953125, -0.0494384765625, -0.037841796875, -0.042449951171875, 0.005237579345703125, -0.02239990234375, -0.0249481201171875, 0.05865478515625, -0.00563812255859375, -0.0271148681640625, -0.03564453125, -0.05059814453125, 0.020599365234375, -0.042816162109375, 0.0009093284606933594, 0.0253448486328125, -0.0238189697265625, 0.020172119140625, 0.01004791259765625, -0.0251312255859375, -0.0102081298828125, 0.032806396484375, -0.03741455078125, 0.0162506103515625, -0.0226898193359375, -0.03143310546875, -0.0063323974609375, 0.00514984130859375, -0.020782470703125, -0.0045166015625, -0.0027313232421875, 0.0116729736328125, -0.00817108154296875, 0.01959228515625, -0.038055419921875, -0.049041748046875, 0.0159149169921875, -0.07794189453125, 0.022979736328125, -0.043304443359375, 0.0112152099609375, -0.00577545166015625, 0.07818603515625, -0.032623291015625, -0.02789306640625, 0.00482177734375, 0.0192413330078125, -0.0234527587890625, -0.0224761962890625, 0.006465911865234375, -0.0005574226379394531, -0.033935546875, 0.0156707763671875, -0.004016876220703125, -0.0137786865234375, -0.01474761962890625, 0.043670654296875, -0.01064300537109375, -0.0203857421875, 0.033233642578125, -0.034759521484375, 0.0207366943359375, 0.0140838623046875, 0.01538848876953125, -0.028717041015625, -0.004901885986328125, -0.0311126708984375, -0.1114501953125, -0.0192413330078125, -0.00533294677734375, 0.0595703125, 0.028228759765625, -0.06402587890625, -0.01349639892578125, 0.048583984375, 0.0213775634765625, -0.0261993408203125, 0.026947021484375, -0.0071868896484375, 0.0145263671875, -0.026763916015625, -0.0160369873046875, -0.046875, 0.0094451904296875, 0.0439453125, -0.07513427734375, 0.040374755859375, 0.01488494873046875, 0.00982666015625, 0.07244873046875, -0.06744384765625, -0.057769775390625, -0.02294921875, -0.0262298583984375, -0.006805419921875, -0.007518768310546875, -0.016571044921875, -0.010345458984375, -0.0499267578125, -0.00379180908203125, -0.04998779296875, -0.0107879638671875, 0.0246124267578125, 0.0257720947265625, 0.0214691162109375, 0.0108642578125, -0.0000845789909362793, -0.017791748046875, 0.037750244140625, -0.0244598388671875, -0.00482177734375, 0.00926971435546875, -0.03155517578125, 0.042327880859375, 0.00463104248046875, 0.003231048583984375, -0.0251007080078125, 0.051422119140625, 0.0177459716796875, 0.005596160888671875, -0.004405975341796875, 0.007007598876953125, 0.0038394927978515625, 0.0002963542938232422, -0.01027679443359375, -0.02447509765625, -0.001285552978515625, 0.0254974365234375, -0.038787841796875, 0.06585693359375, -0.015045166015625, 0.020111083984375, -0.00908660888671875, 0.007411956787109375, 0.0147705078125, 0.0217132568359375, 0.00756072998046875, -0.039764404296875, -0.0201568603515625, 0.0013141632080078125, 0.0137939453125, 0.0404052734375, -0.0011510848999023438, 0.026885986328125, 0.0208892822265625, -0.00968170166015625, -0.040771484375, -0.0217437744140625, 0.050323486328125, 0.0022792816162109375, -0.06500244140625, 0.01296234130859375, -0.0011577606201171875, 0.0606689453125, 0.01259613037109375, -0.0009174346923828125, 0.0560302734375, 0.0026073455810546875, -0.0242462158203125, -0.0165863037109375, -0.004322052001953125, -0.0283355712890625, -0.046356201171875, 0.0172271728515625, 0.045440673828125, -0.0264739990234375, -0.033843994140625, 0.050140380859375, -0.01494598388671875, 0.0034923553466796875, 0.01372528076171875, -0.014251708984375, -0.0240325927734375, 0.0219879150390625, 0.0108795166015625, 0.0181427001953125, 0.0178070068359375, 0.0029773712158203125, 0.031494140625, -0.0129241943359375, -0.0274200439453125, -0.0036411285400390625, 0.00292205810546875, 0.01195526123046875, 0.026275634765625, 0.0164947509765625, 0.01509857177734375, -0.026123046875, 0.057861328125, -0.0117645263671875, -0.07269287109375, -0.03924560546875, 0.01439666748046875, 0.047576904296875, -0.0257110595703125, -0.0208892822265625, 0.06341552734375, -0.0037860870361328125, 0.043609619140625, -0.034759521484375, 0.0002982616424560547, -0.0029125213623046875, 0.006336212158203125, -0.03472900390625, -0.0310211181640625, -0.005023956298828125, -0.0535888671875, -0.024383544921875, 0.0040130615234375, -0.007354736328125, 0.007465362548828125, -0.03851318359375, 0.00311279296875, -0.00736236572265625, 0.01488494873046875, 0.01091766357421875, 0.0171966552734375, 0.0292816162109375, 0.0135498046875, -0.060821533203125, 0.03204345703125, -0.028106689453125, -0.0097808837890625, -0.0090484619140625, -0.048797607421875, -0.05340576171875, -0.03497314453125, 0.051849365234375, 0.025543212890625, 0.0059967041015625, -0.059600830078125, -0.030120849609375, 0.029632568359375, 0.054656982421875, 0.0765380859375, 0.007534027099609375, 0.08892822265625, -0.0279693603515625, 0.0701904296875, 0.0282745361328125, 0.038848876953125, -0.05072021484375, -0.009552001953125, 0.0189056396484375, 0.004299163818359375, -0.0164337158203125, -0.03887939453125, 0.003910064697265625, -0.006381988525390625, 0.03289794921875, -0.0193023681640625, 0.000087738037109375, -0.01351165771484375, 0.004154205322265625, -0.0185394287109375, 0.0250396728515625, -0.01067352294921875, -0.041015625, 0.057281494140625, -0.04156494140625, -0.0301971435546875, 0.00566864013671875, 0.008026123046875, 0.01934814453125, -0.021392822265625, -0.00555419921875, 0.00962066650390625, -0.05206298828125, 0.07110595703125, 0.100830078125, 0.007518768310546875, 0.0384521484375, 0.0093231201171875, 0.0015668869018554688, 0.0189971923828125, 0.0236663818359375, -0.04998779296875, -0.032073974609375, 0.0223388671875, 0.0171356201171875, -0.03912353515625, 0.01422882080078125, -0.024444580078125, 0.018463134765625, 0.09210205078125, 0.079833984375, -0.125732421875, -0.007495880126953125, 0.0160980224609375, -0.00939178466796875, 0.0261383056640625, 0.01387786865234375, -0.0172882080078125, -0.0546875, 0.0232086181640625, -0.02789306640625, -0.0010051727294921875, 0.01300048828125, -0.0214080810546875, -0.0097198486328125, -0.028350830078125, 0.0323486328125, -0.006534576416015625, 0.038543701171875, -0.017486572265625, -0.0182342529296875, -0.012664794921875, 0.01446533203125, 0.00933837890625, -0.0139923095703125, -0.048126220703125, -0.08282470703125, -0.045562744140625, -0.029449462890625, -0.05126953125, -0.008148193359375, -0.01364898681640625, 0.01146697998046875, 0.0384521484375, -0.031982421875, 0.0234832763671875, 0.01314544677734375, -0.0012559890747070312, -0.00542449951171875, -0.0208282470703125, 0.0135955810546875, 0.04998779296875, -0.044647216796875, 0.02691650390625, 0.0040740966796875, -0.004802703857421875, -0.01153564453125, 0.00366973876953125, 0.113525390625, -0.0196685791015625, -0.037017822265625, 0.00838470458984375, 0.00673675537109375, 0.0025882720947265625, 0.001495361328125, 0.035614013671875, -0.046295166015625, -0.01061248779296875, 0.00038933753967285156, -0.0248260498046875, -0.045074462890625, -0.01983642578125, -0.02337646484375, 0.1280517578125, -0.02093505859375, -0.0333251953125, 0.0187835693359375, 0.06988525390625, -0.048126220703125, 0.04986572265625, -0.031585693359375, 0.0311279296875, 0.035614013671875, 0.0256805419921875, -0.057891845703125, -0.0233001708984375, -0.0211639404296875, 0.058685302734375, 0.029632568359375, 0.0132904052734375, -0.0084228515625, 0.0059967041015625, 0.00557708740234375, -0.02630615234375, -0.0264129638671875, 0.03839111328125, 0.00122833251953125, 0.0023651123046875, 0.0219268798828125, -0.017181396484375, 0.0380859375, -0.04290771484375, -0.01861572265625, 0.01165771484375, 0.00963592529296875, 0.01934814453125, -0.00006479024887084961, -0.0042572021484375, 0.0151214599609375, -0.01178741455078125, -0.00867462158203125, -0.033111572265625, -0.0030345916748046875, 0.007537841796875, 0.00606536865234375, -0.002635955810546875, 0.00322723388671875, -0.01259613037109375, 0.02105712890625, 0.006916046142578125, 0.006011962890625, 0.0068817138671875, 0.01108551025390625, -0.0170440673828125, -0.003665924072265625, -0.0032501220703125, 0.0286712646484375, -0.0177764892578125, 0.01383209228515625, 0.006252288818359375, 0.028076171875, -0.012847900390625, 0.00787353515625, 0.01021575927734375, 0.0101165771484375, -0.0163421630859375, -0.05804443359375, -0.0032806396484375, -0.0024967193603515625, 0.0167083740234375, 0.01320648193359375, 0.01090240478515625, 0.0064544677734375, 0.04913330078125, -0.0269622802734375, 0.008941650390625, 0.008331298828125, -0.0034656524658203125, -0.018280029296875, -0.0016717910766601562, -0.01751708984375, 0.0110321044921875, -0.0433349609375, 0.0032749176025390625, 0.02490234375, 0.07464599609375, 0.01036834716796875, 0.043060302734375, -0.050689697265625, -0.032196044921875, -0.039398193359375, -0.006549835205078125, 0.004299163818359375, 0.041290283203125, -0.06280517578125, 0.00685882568359375, 0.0082550048828125, 0.048431396484375, -0.00774383544921875, -0.002597808837890625, 0.0209503173828125, 0.0267333984375, 0.002307891845703125, -0.00621795654296875, 0.036163330078125, -0.00955963134765625, -0.039520263671875, -0.0207977294921875, -0.0277099609375, 0.0038890838623046875, -0.0124664306640625, 0.01983642578125, -0.002658843994140625, 0.01548004150390625, -0.0054168701171875, 0.043426513671875, 0.00353240966796875, -0.0126800537109375, -0.00203704833984375, -0.004718780517578125, 0.045867919921875, 0.0309600830078125, -0.07568359375, -0.025421142578125, -0.018524169921875, -0.03216552734375, 0.018768310546875, 0.042510986328125, 0.0106048583984375, 0.004482269287109375, -0.001911163330078125, 0.01300811767578125, -0.0157012939453125, -0.0213165283203125, 0.021881103515625, -0.042816162109375, -0.006191253662109375, -0.017303466796875, 0.000659942626953125, -0.01374053955078125, 0.0208587646484375, 0.04620361328125, 0.00494384765625, 0.0309906005859375, -0.0065765380859375, 0.01123809814453125, -0.041412353515625, 0.01806640625, -0.03460693359375, -0.053619384765625, 0.0254058837890625, 0.00521087646484375, 0.0003650188446044922, 0.00714874267578125, -0.038787841796875, 0.0758056640625, 0.0035400390625, -0.0227203369140625, 0.07122802734375, 0.01142120361328125, -0.018829345703125, -0.046142578125, 0.01568603515625, -0.01454925537109375, -0.053619384765625, 0.008270263671875, 0.046722412109375, -0.028533935546875, 0.0325927734375, 0.01374053955078125, 0.042633056640625, -0.0141754150390625, 0.018402099609375, -0.01129150390625, 0.0081024169921875, -0.0101776123046875, 0.0257415771484375, -0.03302001953125, 0.037506103515625, -0.041046142578125, -0.030181884765625, 0.0029811859130859375, 0.0007386207580566406, 0.00016498565673828125, -0.030242919921875, 0.0714111328125, 0.0175933837890625, -0.01947021484375, 0.00516510009765625, -0.0350341796875, -0.0234222412109375, 0.03424072265625, 0.003345489501953125, -0.00045490264892578125, 0.01300048828125, -0.005741119384765625, -0.0056610107421875, -0.00435638427734375, 0.0160064697265625, 0.00852203369140625, 0.003681182861328125, -0.042694091796875, 0.006195068359375, 0.0277099609375, -0.007694244384765625, -0.040252685546875, -0.0185394287109375, -0.0009737014770507812, 0.07830810546875, -0.01776123046875, -0.023040771484375, 0.00788116455078125, 0.0177154541015625, -0.0161590576171875, -0.003437042236328125, -0.0280609130859375, -0.008697509765625, -0.003971099853515625, -0.019439697265625, -0.00325775146484375, -0.00395965576171875, -0.0168304443359375, -0.0262298583984375, -0.011383056640625, 0.018310546875, -0.0138092041015625, -0.0281982421875, -0.0208282470703125, 0.0197601318359375, 0.00447845458984375, -0.0193328857421875, 0.002506256103515625, -0.01458740234375, 0.00783538818359375, -0.008880615234375, -0.0080108642578125, 0.00716400146484375, -0.035003662109375, -0.08135986328125, 0.041595458984375, -0.0117340087890625, -0.03521728515625, -0.03131103515625, -0.00826263427734375, -0.020843505859375, 0.0225372314453125, -0.0169219970703125, -0.033782958984375, 0.011932373046875, 0.05511474609375, 0.003917694091796875, -0.0114898681640625, 0.05047607421875, -0.0125885009765625, -0.06939697265625, -0.038665771484375, -0.035400390625, -0.019073486328125, 0.028717041015625, -0.032073974609375, 0.026763916015625, 0.033782958984375, -0.056304931640625, -0.060272216796875, -0.0232086181640625, 0.0079498291015625, -0.029205322265625, -0.0207672119140625, -0.004329681396484375, -0.0093536376953125, 0.068359375, 0.062408447265625, 0.0154876708984375, -0.0260162353515625, -0.0209808349609375, -0.0433349609375, 0.00971221923828125, -0.0260772705078125, -0.007587432861328125, -0.041717529296875, 0.0190887451171875, -0.01416778564453125, 0.0028514862060546875, 0.0044097900390625, -0.001445770263671875, 0.0004527568817138672, 0.003963470458984375, 0.07794189453125, 0.0016012191772460938, 0.0001837015151977539, -0.08148193359375, 0.054901123046875, -0.0220794677734375, 0.00423431396484375, -0.0014848709106445312, 0.0496826171875, 0.01593017578125, 0.03582763671875, 0.0023555755615234375, -0.005176544189453125, -0.04962158203125, 0.00870513916015625, -0.0102691650390625, 0.07476806640625, -0.039276123046875, -0.0307769775390625, -0.00347137451171875, 0.003116607666015625, -0.0157318115234375, -0.00891876220703125, -0.0106353759765625, 0.0163726806640625, -0.030487060546875, 0.06268310546875, -0.002101898193359375, 0.026763916015625, -0.035858154296875, 0.03790283203125, 0.0250396728515625, -0.014129638671875, 0.0198822021484375, -0.004589080810546875, 0.0015010833740234375, 0.006591796875, 0.029541015625, -0.0679931640625, 0.077392578125, 0.05450439453125, 0.0219573974609375, 0.06298828125 ]
90fefe6bd687e98c582f0790345afd4148056527
Wordpress Stackexchange Q: Define maximum number of revisions per post type? How can I define the maximum number of revisions on a per-post type basis? For example posts have 3 max revisions where as pages have a max of 10. A: I might be wrong, but my first guess would be that this is not easily possible, because number of revisions gets saved into constant and does not seem hook-able. From quick search relevant checks are in wp_save_post_revision() and it's very rigid.
Q: Define maximum number of revisions per post type? How can I define the maximum number of revisions on a per-post type basis? For example posts have 3 max revisions where as pages have a max of 10. A: I might be wrong, but my first guess would be that this is not easily possible, because number of revisions gets saved into constant and does not seem hook-able. From quick search relevant checks are in wp_save_post_revision() and it's very rigid.
wordpress
{ "language": "en", "length": 80, "provenance": "stackexchange_00019.jsonl.gz:410887", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21713" }
[ 0.00965118408203125, 0.0020923614501953125, -0.0253448486328125, -0.03466796875, -0.0014362335205078125, -0.0161285400390625, -0.00341796875, -0.00444793701171875, -0.016082763671875, -0.01511383056640625, -0.0189056396484375, 0.0002655982971191406, -0.0513916015625, -0.030853271484375, 0.008270263671875, -0.042724609375, 0.0430908203125, -0.00908660888671875, 0.0105743408203125, -0.0262603759765625, -0.0018472671508789062, 0.0003247261047363281, 0.0295562744140625, 0.10687255859375, 0.0287628173828125, 0.01349639892578125, 0.004058837890625, -0.04217529296875, -0.017486572265625, -0.0440673828125, 0.00731658935546875, 0.036651611328125, 0.040313720703125, -0.0189361572265625, 0.0008797645568847656, -0.0199127197265625, 0.007350921630859375, -0.00774383544921875, 0.0208587646484375, -0.0163726806640625, 0.005733489990234375, -0.006069183349609375, 0.02532958984375, -0.01514434814453125, -0.025970458984375, -0.001232147216796875, 0.0018396377563476562, -0.028411865234375, 0.018951416015625, -0.034912109375, -0.0159912109375, 0.0160675048828125, 0.0061492919921875, -0.052978515625, -0.038726806640625, -0.0255279541015625, 0.044189453125, -0.039031982421875, 0.0634765625, -0.0631103515625, -0.059844970703125, -0.04254150390625, 0.048187255859375, 0.006259918212890625, -0.045928955078125, -0.0092620849609375, -0.00644683837890625, 0.00522613525390625, -0.04095458984375, -0.0504150390625, 0.034454345703125, 0.0031604766845703125, 0.0163726806640625, -0.00847625732421875, 0.0224456787109375, -0.0287322998046875, 0.00626373291015625, 0.00981903076171875, 0.00537109375, 0.024505615234375, 0.03460693359375, -0.019744873046875, -0.006458282470703125, 0.005279541015625, 0.008636474609375, 0.0191802978515625, 0.00569915771484375, -0.0181427001953125, -0.031219482421875, -0.024810791015625, -0.0232086181640625, -0.0185699462890625, -0.0592041015625, 0.0119781494140625, 0.0129852294921875, -0.03314208984375, 0.0052032470703125, 0.0032806396484375, 0.0061187744140625, 0.007328033447265625, -0.00421142578125, -0.0208740234375, -0.0139312744140625, -0.01357269287109375, 0.01406097412109375, 0.0203094482421875, -0.0218353271484375, -0.0003120899200439453, 0.052978515625, 0.0321044921875, 0.012054443359375, 0.010406494140625, 0.01470947265625, -0.0300445556640625, -0.001953125, -0.01210784912109375, -0.029144287109375, 0.0379638671875, 0.0166778564453125, -0.0115509033203125, -0.0018377304077148438, 0.0252532958984375, 0.004150390625, -0.038421630859375, -0.01404571533203125, -0.0185546875, 0.0014657974243164062, -0.043853759765625, 0.0167694091796875, 0.0626220703125, -0.00970458984375, -0.0114898681640625, 0.0183563232421875, -0.0149688720703125, -0.030303955078125, -0.0204925537109375, 0.0233612060546875, -0.00942230224609375, -0.03265380859375, 0.06689453125, -0.097900390625, -0.031768798828125, 0.05364990234375, -0.08306884765625, -0.007328033447265625, 0.0201568603515625, 0.0290069580078125, 0.01515960693359375, -0.0019054412841796875, -0.047576904296875, 0.006809234619140625, -0.006103515625, 0.055450439453125, -0.051300048828125, -0.052947998046875, -0.0982666015625, -0.051055908203125, -0.048095703125, 0.02783203125, -0.05499267578125, 0.01428985595703125, -0.0028934478759765625, 0.0257415771484375, -0.0292510986328125, -0.057769775390625, 0.01541900634765625, -0.04620361328125, -0.0157928466796875, 0.02923583984375, -0.0026607513427734375, 0.0207672119140625, -0.0243072509765625, 0.03466796875, 0.0032596588134765625, -0.01617431640625, 0.010528564453125, -0.01251220703125, -0.04193115234375, 0.007724761962890625, 0.039031982421875, 0.01052093505859375, -0.0142059326171875, -0.037750244140625, 0.031402587890625, -0.02801513671875, 0.0038852691650390625, 0.004444122314453125, 0.056488037109375, 0.034210205078125, 0.0261993408203125, -0.0174407958984375, -0.023468017578125, 0.0035839080810546875, -0.037322998046875, -0.0301971435546875, -0.0107879638671875, 0.0021419525146484375, 0.0139923095703125, -0.026885986328125, 0.050811767578125, -0.015594482421875, -0.044342041015625, 0.0182342529296875, -0.00799560546875, -0.0504150390625, -0.006290435791015625, -0.02056884765625, 0.01739501953125, -0.0146636962890625, 0.0294036865234375, 0.035614013671875, 0.025970458984375, -0.0204925537109375, -0.039703369140625, -0.0157928466796875, 0.02301025390625, -0.031585693359375, -0.003971099853515625, -0.01177978515625, 0.0205230712890625, -0.032012939453125, -0.0237579345703125, -0.042633056640625, -0.0228424072265625, 0.06787109375, -0.013214111328125, -0.015106201171875, -0.038238525390625, 0.04425048828125, 0.0165252685546875, -0.06378173828125, 0.0283355712890625, 0.01534271240234375, 0.03948974609375, 0.00726318359375, -0.01104736328125, -0.0009832382202148438, -0.08331298828125, 0.0228729248046875, 0.054412841796875, 0.0243988037109375, 0.0170745849609375, -0.00507354736328125, 0.0180816650390625, 0.005615234375, -0.04052734375, 0.0025691986083984375, -0.00811004638671875, -0.00954437255859375, 0.012115478515625, 0.0197906494140625, 0.00740814208984375, 0.0146636962890625, -0.0509033203125, 0.0017385482788085938, 0.035797119140625, 0.01654052734375, 0.0350341796875, 0.005741119384765625, -0.016845703125, -0.0078582763671875, -0.033843994140625, -0.029052734375, -0.01538848876953125, 0.0149383544921875, 0.028900146484375, 0.042388916015625, 0.040496826171875, -0.025360107421875, 0.00856781005859375, 0.022186279296875, -0.00135040283203125, 0.0160369873046875, -0.0274200439453125, -0.0306396484375, 0.005809783935546875, -0.028045654296875, 0.01934814453125, 0.0316162109375, -0.0212249755859375, -0.032318115234375, -0.01215362548828125, 0.004482269287109375, -0.01490020751953125, 0.00861358642578125, -0.04132080078125, 0.005123138427734375, -0.0380859375, -0.0145263671875, -0.00629425048828125, 0.037139892578125, -0.004772186279296875, -0.0282440185546875, -0.0023860931396484375, -0.00992584228515625, -0.0299835205078125, 0.00007915496826171875, -0.08880615234375, 0.08062744140625, -0.06097412109375, 0.0634765625, 0.09521484375, -0.0196380615234375, 0.04656982421875, -0.00556182861328125, 0.0237579345703125, 0.00982666015625, -0.002346038818359375, -0.033966064453125, -0.05108642578125, -0.038909912109375, -0.0308837890625, -0.005420684814453125, -0.01357269287109375, -0.0018825531005859375, -0.0236358642578125, -0.004268646240234375, -0.00209808349609375, -0.0245208740234375, 0.005031585693359375, 0.0207672119140625, -0.036041259765625, -0.0084075927734375, -0.0186614990234375, -0.01044464111328125, -0.020172119140625, -0.01514434814453125, -0.0033111572265625, -0.00402069091796875, -0.005062103271484375, -0.0158233642578125, -0.0236663818359375, -0.050750732421875, -0.0258331298828125, 0.00643157958984375, 0.00705718994140625, -0.00260162353515625, 0.0972900390625, 0.0014553070068359375, -0.095703125, -0.06903076171875, -0.0190887451171875, -0.030242919921875, -0.0187225341796875, 0.01346588134765625, -0.0019378662109375, -0.0236053466796875, 0.00839996337890625, -0.057647705078125, 0.0196380615234375, -0.00848388671875, -0.0147552490234375, -0.0137786865234375, -0.029266357421875, 0.01397705078125, 0.0121612548828125, -0.003322601318359375, 0.00897216796875, 0.039337158203125, -0.0369873046875, -0.0311279296875, 0.019989013671875, -0.0310821533203125, -0.01282501220703125, -0.0081787109375, -0.012725830078125, -0.02374267578125, 0.031219482421875, -0.00907135009765625, 0.003322601318359375, 0.046905517578125, -0.0298614501953125, 0.0279541015625, -0.007568359375, -0.01364898681640625, -0.051177978515625, 0.0297088623046875, 0.0006728172302246094, 0.03424072265625, 0.0262298583984375, 0.01557159423828125, -0.006786346435546875, 0.044464111328125, -0.020294189453125, -0.0528564453125, 0.0210418701171875, -0.05474853515625, 0.024627685546875, -0.054351806640625, -0.0011014938354492188, -0.0382080078125, 0.07318115234375, -0.00119781494140625, -0.03070068359375, -0.060394287109375, 0.0245208740234375, -0.034423828125, -0.0943603515625, 0.036773681640625, -0.0017023086547851562, -0.03155517578125, 0.0072174072265625, -0.009429931640625, -0.01715087890625, -0.026824951171875, 0.028350830078125, -0.03070068359375, -0.0247955322265625, 0.044219970703125, -0.029144287109375, -0.00997161865234375, 0.007724761962890625, 0.009002685546875, -0.0306396484375, -0.03436279296875, -0.00695037841796875, -0.076416015625, -0.0121307373046875, -0.03924560546875, 0.074462890625, 0.0419921875, -0.0667724609375, -0.0092926025390625, 0.042083740234375, 0.044921875, 0.06524658203125, 0.0032062530517578125, -0.00933837890625, 0.0024242401123046875, -0.04571533203125, 0.029998779296875, -0.03863525390625, -0.037017822265625, -0.05181884765625, 0.0012025833129882812, -0.014984130859375, -0.040191650390625, -0.01070404052734375, -0.0391845703125, 0.00566864013671875, -0.07049560546875, -0.00891876220703125, 0.0254974365234375, 0.031585693359375, 0.004970550537109375, 0.01523590087890625, -0.0275115966796875, -0.0665283203125, 0.0274810791015625, 0.0435791015625, -0.0216217041015625, 0.01617431640625, 0.059722900390625, 0.01153564453125, -0.01898193359375, -0.1483154296875, -0.003726959228515625, 0.008087158203125, 0.0073089599609375, 0.0252838134765625, -0.0188140869140625, -0.003021240234375, 0.03662109375, -0.0257415771484375, -0.02203369140625, 0.0282440185546875, -0.02178955078125, 0.0157470703125, 0.0108642578125, -0.024017333984375, -0.0031375885009765625, 0.05291748046875, 0.0007033348083496094, -0.0012502670288085938, -0.0261383056640625, -0.0158538818359375, 0.06854248046875, -0.01425933837890625, 0.041168212890625, -0.019561767578125, 0.0021343231201171875, 0.002410888671875, -0.016082763671875, 0.02899169921875, 0.037933349609375, -0.0001245737075805664, 0.017425537109375, 0.003326416015625, 0.01374053955078125, 0.0051116943359375, 0.0239410400390625, -0.02166748046875, 0.047271728515625, 0.023345947265625, 0.0197906494140625, -0.0021724700927734375, -0.006061553955078125, -0.00936126708984375, -0.0264892578125, -0.07080078125, 0.01049041748046875, -0.01129150390625, 0.0026760101318359375, 0.034881591796875, -0.003948211669921875, 0.030517578125, -0.01221466064453125, -0.004978179931640625, -0.006793975830078125, -0.00893402099609375, -0.0287322998046875, -0.045806884765625, 0.0273895263671875, 0.0194549560546875, -0.02374267578125, 0.00665283203125, 0.029632568359375, 0.016021728515625, -0.01654052734375, 0.0028934478759765625, 0.062744140625, 0.0653076171875, -0.0046234130859375, 0.00196075439453125, 0.0479736328125, -0.0249481201171875, -0.0247039794921875, -0.0143585205078125, -0.01470947265625, -0.047760009765625, 0.031951904296875, 0.0196533203125, -0.0107421875, 0.034027099609375, 0.0012311935424804688, 0.002498626708984375, -0.007427215576171875, 0.000606536865234375, -0.025177001953125, -0.053863525390625, 0.01666259765625, 0.036285400390625, 0.0129241943359375, -0.0276947021484375, 0.01233673095703125, -0.01139068603515625, 0.006992340087890625, -0.0034694671630859375, -0.0286865234375, -0.0260467529296875, -0.014556884765625, 0.005084991455078125, -0.084716796875, -0.02093505859375, 0.0187530517578125, -0.034423828125, -0.0372314453125, 0.0110015869140625, -0.022125244140625, 0.0081787109375, -0.0159912109375, 0.015716552734375, 0.00920867919921875, -0.00821685791015625, 0.0239410400390625, 0.03729248046875, -0.0032501220703125, -0.0231170654296875, 0.03509521484375, -0.032501220703125, -0.0308685302734375, -0.0333251953125, 0.059295654296875, -0.0192413330078125, 0.00494384765625, -0.02703857421875, 0.0280609130859375, 0.018646240234375, 0.004100799560546875, -0.031982421875, -0.031768798828125, 0.0084075927734375, 0.0256500244140625, 0.035491943359375, -0.01210784912109375, 0.0117340087890625, 0.029205322265625, -0.003978729248046875, -0.002193450927734375, -0.017913818359375, -0.003719329833984375, -0.005474090576171875, 0.03131103515625, 0.0072479248046875, -0.045013427734375, -0.006031036376953125, -0.025665283203125, -0.049224853515625, 0.003711700439453125, -0.0218505859375, 0.002407073974609375, -0.034637451171875, 0.005626678466796875, -0.028533935546875, 0.043792724609375, -0.04681396484375, -0.03399658203125, 0.03271484375, 0.0132598876953125, 0.01035308837890625, -0.032379150390625, -0.02935791015625, 0.0211944580078125, 0.004924774169921875, 0.01265716552734375, -0.01200103759765625, 0.0084991455078125, -0.0302581787109375, -0.0121612548828125, 0.018890380859375, 0.039520263671875, -0.00873565673828125, 0.043182373046875, 0.0271759033203125, 0.0175018310546875, 0.0008096694946289062, -0.00933074951171875, 0.03436279296875, 0.0106201171875, -0.020355224609375, 0.01436614990234375, -0.0222625732421875, 0.005756378173828125, 0.0382080078125, 0.033905029296875, -0.0933837890625, 0.024749755859375, 0.0107879638671875, 0.0269775390625, 0.038665771484375, 0.0220184326171875, -0.00006663799285888672, -0.005931854248046875, 0.0172576904296875, -0.067138671875, -0.01629638671875, 0.0006656646728515625, -0.03533935546875, -0.0052642822265625, -0.0301666259765625, 0.0204315185546875, 0.00974273681640625, -0.00856781005859375, 0.0080718994140625, 0.01151275634765625, 0.0036792755126953125, -0.022979736328125, 0.03753662109375, 0.0189971923828125, -0.0095367431640625, -0.035003662109375, 0.06549072265625, 0.0033168792724609375, -0.00970458984375, -0.00270843505859375, -0.011260986328125, -0.000713348388671875, 0.06280517578125, -0.048248291015625, 0.032379150390625, 0.0279388427734375, -0.037109375, -0.07415771484375, -0.044891357421875, 0.038360595703125, -0.0150146484375, -0.042205810546875, 0.037994384765625, -0.043548583984375, -0.06671142578125, -0.0178070068359375, -0.02685546875, 0.08917236328125, -0.0196685791015625, -0.0166168212890625, 0.028594970703125, -0.004974365234375, -0.03265380859375, -0.0127105712890625, -0.0308837890625, -0.03802490234375, -0.024017333984375, -0.031402587890625, -0.054718017578125, 0.0196380615234375, -0.0423583984375, -0.0545654296875, 0.12445068359375, -0.008575439453125, 0.030181884765625, 0.0007758140563964844, 0.052337646484375, -0.019927978515625, 0.039581298828125, -0.025970458984375, 0.0460205078125, 0.00676727294921875, -0.0016317367553710938, -0.051788330078125, -0.004302978515625, -0.030426025390625, 0.019012451171875, 0.032958984375, 0.007183074951171875, 0.0029582977294921875, 0.0300750732421875, 0.07977294921875, 0.0017786026000976562, -0.01024627685546875, 0.035980224609375, 0.016998291015625, -0.024017333984375, 0.039825439453125, -0.00896453857421875, 0.027435302734375, -0.016632080078125, 0.02166748046875, 0.0253448486328125, -0.0011844635009765625, -0.01373291015625, 0.005428314208984375, 0.01053619384765625, -0.0400390625, 0.00685882568359375, 0.01500701904296875, 0.015533447265625, 0.003429412841796875, 0.028778076171875, 0.0322265625, 0.0029735565185546875, 0.024078369140625, -0.01922607421875, 0.048370361328125, 0.0177001953125, 0.01538848876953125, 0.0867919921875, 0.021087646484375, 0.039215087890625, 0.01522064208984375, 0.0149993896484375, -0.0321044921875, 0.049896240234375, 0.037994384765625, 0.0238037109375, 0.025421142578125, -0.0168609619140625, 0.03143310546875, 0.042083740234375, 0.04815673828125, -0.050262451171875, -0.06512451171875, 0.02484130859375, 0.03167724609375, -0.0013275146484375, 0.017425537109375, 0.0021724700927734375, -0.0201873779296875, 0.058013916015625, -0.018890380859375, -0.00965118408203125, 0.01143646240234375, 0.03485107421875, 0.0119171142578125, 0.002620697021484375, -0.0193939208984375, -0.01483917236328125, -0.0364990234375, -0.0233154296875, 0.015472412109375, 0.03814697265625, 0.060791015625, 0.0005345344543457031, 0.0276336669921875, -0.0189971923828125, 0.017242431640625, -0.005584716796875, 0.00817108154296875, -0.0295867919921875, -0.02362060546875, -0.03668212890625, 0.0220184326171875, 0.029632568359375, 0.052459716796875, -0.04254150390625, 0.04278564453125, 0.03131103515625, -0.042694091796875, -0.01222991943359375, 0.0033321380615234375, -0.004314422607421875, 0.0030994415283203125, -0.0151214599609375, -0.0106201171875, 0.001293182373046875, -0.0155792236328125, 0.004070281982421875, 0.0278167724609375, 0.0211029052734375, 0.03753662109375, -0.0068359375, 0.02435302734375, 0.0001844167709350586, 0.0134429931640625, 0.038970947265625, -0.025543212890625, 0.073974609375, -0.0472412109375, 0.0031261444091796875, -0.0264892578125, -0.0219879150390625, -0.001163482666015625, 0.01352691650390625, -0.031768798828125, 0.050994873046875, -0.01512908935546875, -0.018524169921875, 0.0257110595703125, -0.0148162841796875, 0.01049041748046875, 0.0118408203125, 0.00823211669921875, -0.005588531494140625, -0.0732421875, -0.03204345703125, -0.0159759521484375, 0.00046515464782714844, -0.0157470703125, 0.05364990234375, 0.01041412353515625, -0.00986480712890625, 0.017181396484375, 0.032196044921875, -0.0247650146484375, 0.00402069091796875, 0.01678466796875, -0.0157318115234375, 0.0156707763671875, -0.0015783309936523438, -0.01140594482421875, 0.01800537109375, 0.029876708984375, -0.03216552734375, 0.00569915771484375, -0.00839996337890625, 0.0139312744140625, -0.0270233154296875, 0.01139068603515625, -0.0269622802734375, 0.00582122802734375, 0.0041656494140625, -0.0238800048828125, 0.0184478759765625, -0.01690673828125, 0.0038318634033203125, 0.009490966796875, 0.045379638671875, -0.04302978515625, 0.0057373046875, -0.00919342041015625, 0.0090179443359375, 0.01641845703125, 0.07135009765625, -0.03729248046875, -0.007335662841796875, -0.01143646240234375, -0.0181884765625, 0.0196685791015625, 0.0133819580078125, 0.01213836669921875, -0.018829345703125, 0.0027370452880859375, 0.0198822021484375, 0.026519775390625, -0.0194091796875, -0.004009246826171875, 0.00939178466796875, -0.0082550048828125, -0.006618499755859375, 0.029876708984375, -0.0224609375, -0.02325439453125, -0.01374053955078125, -0.01107025146484375, -0.02154541015625, -0.041229248046875, -0.0271759033203125, -0.0167388916015625, -0.0044708251953125, -0.005649566650390625, -0.01165771484375, 0.029541015625, -0.029296875, 0.0026645660400390625, -0.035400390625, -0.031463623046875, 0.01132965087890625, 0.0171661376953125, -0.02630615234375, 0.0156707763671875, -0.0190582275390625, -0.022552490234375, 0.007595062255859375, 0.0186920166015625, 0.0474853515625, -0.031341552734375, -0.0182037353515625, 0.0041046142578125, 0.0205078125, 0.045379638671875, 0.004337310791015625, 0.0023784637451171875, 0.0399169921875, 0.02069091796875, -0.0309295654296875, -0.119384765625, -0.0321044921875, -0.03253173828125, 0.041473388671875, -0.01788330078125, 0.0170440673828125, 0.01465606689453125, -0.0279083251953125, -0.023162841796875, 0.0738525390625, -0.0099029541015625, -0.01151275634765625, -0.04754638671875, -0.038909912109375, -0.0147247314453125, 0.047271728515625, 0.00457763671875, -0.0221710205078125, -0.041778564453125, 0.046417236328125, 0.0190887451171875, -0.0057373046875, 0.016876220703125, 0.004589080810546875, -0.046478271484375, 0.036956787109375, 0.0274200439453125, 0.0088958740234375, 0.0223236083984375, 0.007686614990234375, 0.025146484375, 0.058807373046875, -0.0268402099609375, -0.0088958740234375, -0.021514892578125, -0.042510986328125, 0.00678253173828125, -0.020843505859375, -0.052642822265625, -0.025634765625, 0.07293701171875, 0.054351806640625, 0.0185089111328125, -0.0261993408203125, 0.101806640625, 0.028594970703125, -0.054290771484375, 0.0196380615234375, 0.004680633544921875, 0.008514404296875, -0.01105499267578125, -0.0033111572265625, -0.0018758773803710938, -0.00875091552734375, -0.035430908203125, -0.034088134765625, -0.017059326171875, -0.0201568603515625, 0.007671356201171875, -0.0246734619140625, 0.05615234375, -0.0288848876953125, -0.0042724609375, 0.0005941390991210938, -0.014068603515625, -0.01494598388671875, -0.02825927734375, -0.000263214111328125, 0.0224761962890625, 0.00010418891906738281, -0.04833984375, 0.0192413330078125, -0.0023441314697265625, 0.036956787109375, -0.0606689453125, -0.034820556640625, -0.005733489990234375, 0.0010356903076171875, -0.002628326416015625, -0.0138397216796875, 0.00787353515625, 0.013671875, -0.018951416015625, 0.05963134765625, -0.016998291015625, 0.08740234375, 0.0067291259765625, 0.0231170654296875, -0.0780029296875, 0.028839111328125, -0.05047607421875, -0.022796630859375, 0.01436614990234375, -0.0104522705078125, 0.0367431640625, -0.0286407470703125, 0.037445068359375, 0.035003662109375, -0.0018672943115234375, 0.024749755859375 ]
ff72489b6788104f284f879e9f13be335e69a03f
Wordpress Stackexchange Q: Setting custom cookies in Wordpress I am trying to set cookies to re-route returning users to my a specific page within my Wordpress site. I'd like some advice with these 2 things: * *Where in the Wordpress php files should cookies be checked before loading any content to handle a redirect? Is there a good file this should exist in over others? *How do I properly set a cookie within Wordpress? setcookie('cookie_name', 'cookie_value', time()+4000); doesn't seem to be saving any cookies to my system. A: Ah, realized I needed to hook this into the init(). SOLUTION: I created a function in functions.php that would set and check the cookie. for this to work properly, after defining the function, outside the function call this: add_action('init', 'function-name');
Q: Setting custom cookies in Wordpress I am trying to set cookies to re-route returning users to my a specific page within my Wordpress site. I'd like some advice with these 2 things: * *Where in the Wordpress php files should cookies be checked before loading any content to handle a redirect? Is there a good file this should exist in over others? *How do I properly set a cookie within Wordpress? setcookie('cookie_name', 'cookie_value', time()+4000); doesn't seem to be saving any cookies to my system. A: Ah, realized I needed to hook this into the init(). SOLUTION: I created a function in functions.php that would set and check the cookie. for this to work properly, after defining the function, outside the function call this: add_action('init', 'function-name'); A: 1 - You can check for cookies and do your redirect using hooks that are called before any output like the 'init' hook: <?php // Hook the function "redirect()" on to the "init" action add_action('init', 'redirect'); // redirect() may redirect the user depending on the cookies he has function redirect(){ /* CODE */ } ?> 2 - The best way to set cookies would be using the 'init' hook like this: <?php add_action('init', 'my_setcookie'); // my_setcookie() set the cookie on the domain and directory WP is installed on function my_setcookie(){ $path = parse_url(get_option('siteurl'), PHP_URL_PATH); $host = parse_url(get_option('siteurl'), PHP_URL_HOST); $expiry = strtotime('+1 month'); setcookie('my_cookie_name_1', 'my_cookie_value_1', $expiry, $path, $host); /* more cookies */ setcookie('my_cookie_name_2', 'my_cookie_value_2', $expiry, $path, $host); } ?> This is more consistent, if you have a blog at www.example.com/blog, the coockie(s) will not be available at * *www.example.com *www.example.com/store *example.com *www2.example.com *... Update you should also be able to use the COOKIE_PATH and COOKIEDOMAIN constants rather than figuring them out yourself, which I just noticed in Andre R Kohl's answer – drzaus A: You probably should use the constants COOIKEPATH and COOKIE_DOMAIN, existing since WP 3.0 setcookie("your_cookie", $your_value, time()+3600, COOKIEPATH, COOKIE_DOMAIN); A: This way worked : add_action( 'init', 'function-to-setcookie' ); function function-to-setcookie(){ //use condition here , in which page you eant to set cookie //choose a page where you want the cookie to be set $pageurl = get_option('siteurl').'/set-cookie-page'; // use a function to get current page url and use condition //to match it with the desired page where you want to set cookie if ( $pageurl === current_page_url() ) { setcookie( 'cookie_name', 'cookie_value', $expiryTime, $cookiepath, $siteurl ); } } A: You will want to delete your cookie before any content is written to the page (before headers are sent). To set the cookie, include the path, domain, and I also recommend setting the last 2 parameters to true ($secure and $httponly). You will also need to supply the same parameters to setcookie() when deleting, aside from the $expiry (which should be negative) and the $value (which should be empty ''). If you are passing json through the cookie, it seems like you need to base64_encode it as well, or it won't properly decode. All of this should be done in a class so you can access the value of the cookie later on in your code. The class can be added to a plugin or functions.php. Here is an example where we use a cookie to store an action response to then display it to the user after we redirect them: class my_custom_class { const MY_COOKIE_NAME_JSON = 'my_cookie_name_json'; const COOKIE_LIFETIME = 3600; private $cookie_value; function __construct() { // ensure you are deleting cookie before headers are sent add_action('init', [$this, 'process_cookie_json'], 10); // uses bootstrap alert to format return message add_filter('the_content', [$this, 'filter_the_content_in_the_main_loop'], 1); } static function some_action_that_sets_the_cookie($message, $response_type = 'success') { $responses = []; if (isset($_COOKIE[self::MY_COOKIE_NAME_JSON])) $responses = json_decode(base64_decode($_COOKIE[self::MY_COOKIE_NAME_JSON])); $responses[$response_type][] = $message; self::set_cookie_json($responses); } static function set_cookie_json(array $cookie_value) { setcookie(self::MY_COOKIE_NAME_JSON, base64_encode(json_encode($cookie_value)), time() + self::COOKIE_LIFETIME, "/", $_SERVER['HTTP_HOST'], true, true); } function process_cookie_json() { if (!isset($_COOKIE[self::MY_COOKIE_NAME_JSON])) return false; $this->cookie_value = json_decode(base64_decode($_COOKIE[self::MY_COOKIE_NAME_JSON]), true); setcookie(self::MY_COOKIE_NAME_JSON, '', -1, "/", $_SERVER['HTTP_HOST'], true, true); unset($_COOKIE[self::MY_COOKIE_NAME_JSON]); } function filter_the_content_in_the_main_loop($content) { if (!$this->cookie_value || !is_array($this->cookie_value)) return $content; $alerts = []; foreach ($this->cookie_value as $response_type => $messages) $alerts[] = '<div class="alert alert-' . $response_type . '" role="alert">' . implode(PHP_EOL, $messages) . '</div>'; return implode(null, $alerts) . $content; } } $my_custom_class = my_custom_class; You can then set the cookie via: my_custom_class::some_action_that_sets_the_cookie('the message');
wordpress
{ "language": "en", "length": 698, "provenance": "stackexchange_00019.jsonl.gz:410899", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21752" }
[ 0.07757568359375, 0.00493621826171875, 0.033935546875, 0.031646728515625, 0.0047607421875, -0.035430908203125, 0.08123779296875, -0.0634765625, -0.040283203125, -0.00577545166015625, -0.026947021484375, 0.033203125, -0.035919189453125, -0.02325439453125, 0.037841796875, -0.044036865234375, 0.024749755859375, -0.0269012451171875, 0.0188446044921875, -0.0333251953125, 0.0188446044921875, -0.0102386474609375, 0.04449462890625, 0.0090789794921875, 0.0511474609375, -0.0645751953125, 0.04510498046875, 0.005863189697265625, 0.03289794921875, -0.01178741455078125, 0.035491943359375, -0.0272216796875, 0.017852783203125, 0.039947509765625, -0.06585693359375, -0.0137481689453125, -0.0208587646484375, 0.0182647705078125, -0.0093841552734375, 0.04345703125, 0.0235137939453125, -0.0108489990234375, 0.040191650390625, 0.003124237060546875, -0.0008802413940429688, -0.0511474609375, 0.056854248046875, -0.0157318115234375, 0.023712158203125, 0.0501708984375, -0.01525115966796875, 0.0292205810546875, -0.020172119140625, 0.005718231201171875, 0.00534820556640625, 0.008148193359375, 0.04156494140625, 0.0116424560546875, 0.0295867919921875, -0.03857421875, -0.051788330078125, 0.022308349609375, 0.016082763671875, -0.007801055908203125, 0.01678466796875, -0.0021820068359375, 0.0031871795654296875, 0.03515625, -0.0751953125, 0.0012655258178710938, 0.04296875, -0.046600341796875, -0.021942138671875, -0.005115509033203125, -0.0201416015625, 0.0022182464599609375, 0.024932861328125, -0.005275726318359375, -0.01036834716796875, 0.028900146484375, -0.010345458984375, -0.022918701171875, -0.0167999267578125, -0.03448486328125, 0.029754638671875, 0.00876617431640625, -0.01169586181640625, -0.01189422607421875, -0.003814697265625, -0.02777099609375, -0.01971435546875, 0.01052093505859375, 0.00354766845703125, -0.0161590576171875, -0.04449462890625, -0.01003265380859375, -0.0025653839111328125, 0.0333251953125, 0.007625579833984375, -0.0020751953125, 0.01030731201171875, -0.027618408203125, 0.00864410400390625, -0.029510498046875, 0.01233673095703125, 0.0235748291015625, -0.0030517578125, 0.01280975341796875, 0.01702880859375, 0.01557159423828125, -0.012786865234375, -0.010467529296875, -0.01435089111328125, -0.0298614501953125, -0.040679931640625, 0.0038604736328125, -0.0309600830078125, -0.0122528076171875, 0.0177001953125, -0.0235748291015625, -0.01404571533203125, 0.00724029541015625, -0.00267791748046875, -0.0009374618530273438, 0.0227203369140625, -0.0096435546875, -0.0013151168823242188, -0.01294708251953125, -0.043609619140625, 0.09039306640625, -0.044342041015625, -0.0200347900390625, 0.04400634765625, 0.026580810546875, 0.006927490234375, -0.047637939453125, 0.038665771484375, -0.01074981689453125, -0.032989501953125, 0.0262298583984375, 0.0082244873046875, -0.037109375, -0.0390625, -0.01050567626953125, 0.02520751953125, 0.0225067138671875, 0.0298309326171875, 0.030487060546875, -0.0232696533203125, -0.0477294921875, 0.041107177734375, -0.017547607421875, 0.004192352294921875, 0.00015056133270263672, 0.00849151611328125, 0.0189056396484375, -0.009979248046875, -0.004718780517578125, -0.00803375244140625, 0.02117919921875, 0.00943756103515625, -0.0161285400390625, -0.01404571533203125, -0.02935791015625, -0.045196533203125, 0.0081634521484375, -0.0259857177734375, -0.0041656494140625, 0.030517578125, 0.04400634765625, 0.0303192138671875, -0.0085601806640625, -0.0007195472717285156, -0.004119873046875, -0.0185089111328125, -0.007221221923828125, -0.0102996826171875, 0.038818359375, 0.01479339599609375, 0.061309814453125, 0.03875732421875, -0.026702880859375, 0.057769775390625, -0.000667572021484375, -0.037933349609375, 0.031707763671875, 0.004520416259765625, 0.06634521484375, 0.0038852691650390625, 0.0309295654296875, -0.035125732421875, 0.0222930908203125, -0.0367431640625, 0.058074951171875, 0.00019156932830810547, -0.034515380859375, -0.0220489501953125, -0.01222991943359375, -0.012725830078125, -0.001987457275390625, 0.0123138427734375, -0.001026153564453125, 0.00675201416015625, -0.008148193359375, -0.037322998046875, 0.0177001953125, -0.0209197998046875, 0.023712158203125, 0.0300140380859375, 0.014739990234375, 0.0004127025604248047, 0.00838470458984375, -0.006755828857421875, -0.018341064453125, -0.028717041015625, 0.0014514923095703125, -0.00527191162109375, 0.062164306640625, -0.0038356781005859375, 0.04339599609375, -0.0146942138671875, -0.033111572265625, -0.0172576904296875, -0.0227813720703125, 0.01070404052734375, -0.03472900390625, -0.01873779296875, -0.0179290771484375, -0.0081939697265625, -0.0109405517578125, -0.0159912109375, 0.043548583984375, -0.00611114501953125, 0.0303955078125, -0.006702423095703125, -0.006092071533203125, -0.01538848876953125, -0.053985595703125, 0.01337432861328125, 0.034820556640625, 0.03521728515625, 0.05694580078125, -0.02423095703125, -0.0031642913818359375, 0.03302001953125, -0.033294677734375, 0.0107879638671875, -0.006999969482421875, 0.022247314453125, 0.038299560546875, 0.01531982421875, -0.02606201171875, 0.00249481201171875, -0.05023193359375, 0.0007252693176269531, 0.0174560546875, -0.055084228515625, -0.032745361328125, 0.0232696533203125, 0.005985260009765625, -0.005687713623046875, -0.0160064697265625, 0.0274810791015625, -0.0276031494140625, -0.0027713775634765625, -0.0277099609375, -0.0048370361328125, -0.0198822021484375, 0.0004968643188476562, -0.01953125, 0.01312255859375, -0.064453125, -0.003955841064453125, 0.00653839111328125, 0.06591796875, -0.042694091796875, -0.040191650390625, 0.0008931159973144531, 0.0110321044921875, 0.0024700164794921875, -0.0140380859375, 0.01311492919921875, -0.039337158203125, -0.00489044189453125, 0.0027923583984375, -0.036468505859375, -0.01003265380859375, 0.01450347900390625, 0.022979736328125, -0.0025119781494140625, 0.036407470703125, 0.0011854171752929688, -0.049530029296875, 0.048431396484375, -0.01474761962890625, -0.044830322265625, 0.007755279541015625, -0.042633056640625, 0.0279083251953125, -0.0263671875, 0.033233642578125, 0.07025146484375, -0.00203704833984375, 0.01324462890625, -0.0174102783203125, 0.0293426513671875, -0.00693511962890625, -0.007289886474609375, -0.0186004638671875, -0.0535888671875, 0.019073486328125, 0.00977325439453125, 0.0264434814453125, 0.04827880859375, -0.005283355712890625, -0.040283203125, -0.01251220703125, 0.029693603515625, -0.0596923828125, -0.06365966796875, -0.02886962890625, -0.0831298828125, 0.01031494140625, -0.017578125, -0.0245819091796875, -0.00519561767578125, 0.0125732421875, 0.0213165283203125, 0.001659393310546875, -0.014129638671875, -0.003856658935546875, -0.0237579345703125, -0.032501220703125, 0.003971099853515625, 0.01074981689453125, -0.0010280609130859375, -0.0141143798828125, 0.0531005859375, -0.0183868408203125, -0.0650634765625, -0.055206298828125, 0.01233673095703125, -0.000274658203125, -0.0322265625, -0.0439453125, -0.0000673532485961914, 0.03656005859375, -0.0163116455078125, -0.00875091552734375, -0.0074310302734375, 0.01739501953125, -0.01544952392578125, -0.0200958251953125, -0.02337646484375, -0.0211944580078125, 0.00847625732421875, 0.01690673828125, -0.033599853515625, -0.01300048828125, -0.058349609375, -0.01137542724609375, 0.0177459716796875, -0.0302276611328125, -0.0240325927734375, 0.04010009765625, -0.028594970703125, -0.036956787109375, 0.0084991455078125, 0.0227813720703125, 0.0150604248046875, 0.00472259521484375, -0.00888824462890625, 0.044464111328125, -0.0002703666687011719, 0.0170135498046875, -0.037017822265625, 0.0655517578125, 0.00917816162109375, -0.005100250244140625, 0.02978515625, 0.0153656005859375, -0.0247955322265625, 0.0263671875, -0.10321044921875, -0.08355712890625, 0.05682373046875, -0.039794921875, -0.01293182373046875, -0.03863525390625, -0.020599365234375, 0.0151214599609375, 0.1177978515625, -0.02447509765625, 0.0075836181640625, 0.0227203369140625, -0.003200531005859375, -0.006717681884765625, -0.0030078887939453125, -0.0736083984375, -0.0166778564453125, -0.08453369140625, 0.024444580078125, -0.0074005126953125, 0.002811431884765625, -0.01641845703125, 0.005401611328125, -0.038665771484375, -0.051513671875, 0.0189056396484375, -0.028228759765625, 0.01064300537109375, -0.0015974044799804688, 0.00226593017578125, -0.0179443359375, 0.01580810546875, -0.045989990234375, -0.061492919921875, -0.004970550537109375, -0.02142333984375, 0.03857421875, 0.044189453125, -0.05511474609375, 0.012969970703125, 0.04656982421875, -0.00536346435546875, 0.00055694580078125, 0.01800537109375, 0.0229339599609375, 0.0150299072265625, -0.001056671142578125, -0.007205963134765625, -0.019287109375, 0.0034236907958984375, -0.004913330078125, -0.019378662109375, 0.044097900390625, -0.02911376953125, 0.002170562744140625, 0.0012493133544921875, -0.0244293212890625, -0.055023193359375, -0.034515380859375, -0.00982666015625, 0.024658203125, -0.0063018798828125, -0.00870513916015625, -0.047821044921875, -0.06903076171875, 0.049163818359375, -0.0015859603881835938, -0.023284912109375, -0.0167694091796875, 0.061126708984375, 0.024169921875, -0.0296478271484375, 0.043548583984375, -0.0263824462890625, 0.00934600830078125, -0.0030689239501953125, 0.038116455078125, -0.0213165283203125, -0.0117950439453125, 0.0950927734375, -0.0267181396484375, -0.00547027587890625, -0.043243408203125, 0.08648681640625, -0.0260009765625, -0.00699615478515625, 0.0163116455078125, -0.05169677734375, 0.0281982421875, 0.0003066062927246094, 0.0030155181884765625, -0.0008955001831054688, 0.05584716796875, 0.031341552734375, -0.01280975341796875, -0.0225067138671875, -0.0124359130859375, -0.028167724609375, 0.005168914794921875, -0.0168609619140625, 0.053924560546875, 0.02191162109375, -0.0013055801391601562, 0.046356201171875, 0.04241943359375, -0.00164031982421875, 0.025604248046875, -0.0237274169921875, 0.0002560615539550781, 0.005462646484375, 0.0250701904296875, 0.0012111663818359375, 0.0088653564453125, -0.006328582763671875, 0.090087890625, 0.00669097900390625, -0.045867919921875, 0.005779266357421875, -0.0143890380859375, -0.0260467529296875, 0.01137542724609375, -0.022735595703125, 0.05029296875, 0.0374755859375, -0.0380859375, -0.005313873291015625, -0.0504150390625, 0.0255279541015625, -0.074462890625, 0.005451202392578125, -0.00003504753112792969, -0.0032367706298828125, 0.0345458984375, 0.06585693359375, 0.020843505859375, 0.036712646484375, -0.02362060546875, 0.04638671875, 0.04840087890625, 0.039093017578125, 0.016937255859375, -0.0177459716796875, -0.015625, 0.0195465087890625, -0.024627685546875, -0.0283660888671875, -0.0396728515625, 0.0129547119140625, 0.0308990478515625, -0.0343017578125, 0.007205963134765625, 0.035186767578125, 0.020965576171875, 0.0176544189453125, 0.0206756591796875, -0.0038166046142578125, -0.036163330078125, -0.0079345703125, 0.0034046173095703125, 0.0259857177734375, -0.0433349609375, -0.007251739501953125, 0.0211181640625, -0.036895751953125, 0.018341064453125, 0.028076171875, 0.007015228271484375, -0.0179290771484375, -0.031341552734375, -0.044708251953125, -0.00792694091796875, -0.002117156982421875, -0.048431396484375, -0.032135009765625, -0.0146942138671875, -0.0219268798828125, 0.0562744140625, -0.048828125, 0.005672454833984375, -0.02325439453125, 0.0283203125, -0.007656097412109375, 0.039276123046875, 0.01239776611328125, 0.0030803680419921875, -0.03424072265625, 0.00614166259765625, -0.0372314453125, -0.0033283233642578125, -0.0205535888671875, -0.0203399658203125, -0.027374267578125, 0.001094818115234375, -0.0087738037109375, 0.042388916015625, -0.01763916015625, -0.01708984375, -0.0260772705078125, -0.02008056640625, -0.0013360977172851562, 0.010009765625, -0.0018892288208007812, 0.03125, 0.01309967041015625, 0.052093505859375, 0.025115966796875, 0.0019359588623046875, -0.0307159423828125, -0.0247039794921875, 0.0150299072265625, 0.01702880859375, -0.049346923828125, -0.0165252685546875, -0.035491943359375, 0.0153045654296875, 0.10931396484375, -0.028900146484375, 0.005779266357421875, -0.01019287109375, 0.00835418701171875, -0.01543426513671875, 0.0205230712890625, 0.006526947021484375, -0.01074981689453125, 0.021331787109375, 0.010772705078125, 0.0196990966796875, -0.01361083984375, -0.01013946533203125, -0.0036487579345703125, 0.00995635986328125, 0.01247406005859375, -0.039642333984375, -0.0246429443359375, -0.0006089210510253906, 0.06512451171875, 0.016571044921875, 0.0679931640625, 0.023712158203125, 0.0269012451171875, 0.06561279296875, 0.0081634521484375, -0.014495849609375, -0.03521728515625, 0.026123046875, -0.01313018798828125, -0.005390167236328125, 0.00594329833984375, -0.01221466064453125, -0.00237274169921875, 0.08282470703125, 0.0694580078125, -0.129150390625, 0.015899658203125, 0.018890380859375, 0.016326904296875, -0.00688934326171875, 0.0029697418212890625, -0.02069091796875, -0.0220947265625, 0.06573486328125, -0.0357666015625, -0.01485443115234375, 0.028411865234375, 0.00876617431640625, -0.001026153564453125, -0.00463104248046875, 0.041656494140625, 0.00688934326171875, -0.002269744873046875, 0.0017271041870117188, 0.00536346435546875, 0.0223236083984375, -0.00342559814453125, 0.0241241455078125, 0.031585693359375, -0.024566650390625, -0.043212890625, 0.02215576171875, -0.012054443359375, -0.03948974609375, 0.0247955322265625, -0.01251983642578125, 0.05279541015625, 0.053985595703125, -0.000040590763092041016, -0.0034198760986328125, 0.028533935546875, -0.013916015625, -0.02349853515625, -0.033660888671875, 0.044342041015625, -0.037841796875, -0.081787109375, 0.0253143310546875, -0.045501708984375, -0.058380126953125, -0.0174102783203125, -0.01690673828125, 0.05194091796875, -0.00853729248046875, -0.01800537109375, 0.01053619384765625, 0.0191802978515625, 0.0022830963134765625, -0.0274200439453125, 0.01239013671875, -0.0521240234375, -0.0186767578125, -0.01226043701171875, -0.0300445556640625, -0.0196075439453125, -0.027252197265625, -0.078369140625, 0.1217041015625, -0.0037212371826171875, 0.026885986328125, -0.03192138671875, 0.058013916015625, 0.0068359375, 0.04693603515625, -0.0202789306640625, 0.04290771484375, 0.006984710693359375, 0.049774169921875, -0.061187744140625, -0.02972412109375, 0.0121612548828125, 0.0606689453125, 0.04998779296875, 0.024200439453125, -0.035064697265625, -0.0139312744140625, -0.00946807861328125, -0.0011539459228515625, -0.0233306884765625, 0.05181884765625, -0.01336669921875, 0.0086669921875, 0.03436279296875, -0.053802490234375, 0.009002685546875, 0.004428863525390625, -0.007038116455078125, 0.0013446807861328125, 0.01522064208984375, -0.010406494140625, -0.031005859375, 0.048065185546875, -0.086181640625, 0.0076141357421875, 0.052032470703125, 0.0241241455078125, 0.0081939697265625, 0.00006508827209472656, 0.0217742919921875, -0.050201416015625, -0.0440673828125, -0.010772705078125, 0.0257720947265625, -0.00176239013671875, 0.035797119140625, 0.040374755859375, 0.00836181640625, 0.028594970703125, 0.04595947265625, 0.0217742919921875, 0.04046630859375, -0.013702392578125, 0.0288543701171875, 0.027069091796875, 0.01323699951171875, 0.0026836395263671875, 0.010345458984375, 0.0199432373046875, 0.03961181640625, -0.034454345703125, 0.0029582977294921875, -0.007495880126953125, 0.0172576904296875, 0.044525146484375, -0.0272216796875, 0.06671142578125, 0.022247314453125, -0.003086090087890625, -0.0311126708984375, 0.0038967132568359375, 0.04425048828125, 0.03057861328125, 0.01401519775390625, 0.06982421875, -0.05615234375, -0.0301666259765625, -0.031494140625, 0.01393890380859375, 0.00733184814453125, -0.00514984130859375, -0.005496978759765625, 0.013580322265625, 0.043182373046875, 0.01477813720703125, 0.0192413330078125, 0.036376953125, -0.0035762786865234375, -0.022369384765625, -0.00988006591796875, -0.05950927734375, 0.0220947265625, 0.0251007080078125, 0.0258941650390625, -0.01001739501953125, 0.036163330078125, 0.0251312255859375, -0.018829345703125, -0.01007080078125, 0.032989501953125, -0.019378662109375, 0.03253173828125, -0.0241546630859375, 0.0177459716796875, 0.0035343170166015625, -0.01546478271484375, -0.021270751953125, 0.004772186279296875, 0.042388916015625, 0.00604248046875, 0.0516357421875, -0.002899169921875, -0.01436614990234375, 0.017730712890625, 0.004840850830078125, 0.0771484375, 0.0401611328125, -0.01557159423828125, 0.01294708251953125, -0.03369140625, -0.052032470703125, 0.022735595703125, 0.04156494140625, -0.00662994384765625, 0.01430511474609375, 0.0207366943359375, -0.01558685302734375, 0.0295867919921875, 0.001125335693359375, 0.01131439208984375, -0.01220703125, 0.0132598876953125, -0.00177001953125, -0.045745849609375, -0.0288543701171875, 0.01142120361328125, 0.02215576171875, 0.0030498504638671875, 0.0209503173828125, 0.0072021484375, 0.0043182373046875, 0.004627227783203125, -0.002895355224609375, 0.007511138916015625, -0.0201416015625, 0.034515380859375, -0.0023326873779296875, 0.00220489501953125, -0.005340576171875, -0.059539794921875, 0.0679931640625, -0.0132904052734375, 0.01450347900390625, 0.051422119140625, -0.01898193359375, 0.0031871795654296875, 0.033477783203125, -0.0126190185546875, -0.038360595703125, -0.07769775390625, -0.045135498046875, 0.050140380859375, -0.0166473388671875, 0.007167816162109375, -0.05438232421875, 0.04522705078125, -0.0061798095703125, -0.0227813720703125, -0.0015096664428710938, -0.0521240234375, 0.01464080810546875, 0.035858154296875, -0.0049896240234375, -0.0126953125, -0.0174560546875, -0.024871826171875, -0.02789306640625, 0.01113128662109375, -0.0207061767578125, -0.0166778564453125, -0.0215606689453125, 0.002895355224609375, 0.0249786376953125, 0.0245513916015625, -0.02630615234375, 0.0063934326171875, 0.02587890625, -0.016571044921875, 0.0174713134765625, -0.049591064453125, -0.029449462890625, -0.0411376953125, -0.00922393798828125, 0.0228118896484375, -0.01390838623046875, -0.0200958251953125, -0.033416748046875, 0.026519775390625, 0.0465087890625, -0.017120361328125, -0.037139892578125, -0.0018243789672851562, -0.06573486328125, 0.08770751953125, -0.02093505859375, -0.0285186767578125, 0.02166748046875, 0.0509033203125, -0.04205322265625, -0.006725311279296875, -0.03118896484375, -0.03350830078125, -0.051239013671875, -0.0059051513671875, 0.05712890625, -0.002239227294921875, -0.03546142578125, -0.0209197998046875, -0.010101318359375, 0.0183563232421875, -0.06561279296875, -0.00595855712890625, 0.043792724609375, -0.003711700439453125, -0.043487548828125, -0.08453369140625, -0.007595062255859375, -0.050872802734375, 0.021942138671875, -0.00623321533203125, -0.0104522705078125, 0.01007080078125, -0.038726806640625, -0.06561279296875, 0.052886962890625, -0.006443023681640625, -0.0304412841796875, -0.040435791015625, 0.0240020751953125, 0.00394439697265625, -0.019775390625, -0.0115509033203125, -0.008056640625, -0.008026123046875, 0.0162811279296875, 0.00937652587890625, 0.020843505859375, -0.005290985107421875, 0.059478759765625, -0.040191650390625, 0.0276336669921875, -0.012603759765625, -0.02947998046875, 0.0260162353515625, -0.0021381378173828125, 0.0166168212890625, 0.048980712890625, -0.037841796875, -0.02239990234375, -0.033111572265625, -0.0041351318359375, -0.0229644775390625, -0.0026874542236328125, 0.039154052734375, -0.005214691162109375, 0.0248870849609375, -0.02813720703125, -0.0066986083984375, -0.0004146099090576172, -0.041351318359375, -0.01448822021484375, -0.00865936279296875, 0.004199981689453125, 0.01306915283203125, -0.033355712890625, 0.01904296875, -0.00826263427734375, -0.0183868408203125, -0.00891876220703125, 0.002201080322265625, -0.0323486328125, 0.004184722900390625, 0.00931549072265625, -0.0171661376953125, -0.0130157470703125, -0.01456451416015625, 0.04754638671875, -0.025604248046875, -0.0019588470458984375, 0.0043792724609375, 0.0157470703125, 0.0028781890869140625, 0.00989532470703125, 0.05755615234375, 0.06988525390625, -0.071044921875, -0.0236358642578125, 0.0232391357421875, 0.01555633544921875, -0.0274505615234375, -0.033660888671875, -0.004528045654296875, 0.01398468017578125, -0.01462554931640625, 0.0125885009765625, 0.0277252197265625, 0.00826263427734375, -0.01934814453125, 0.023651123046875, -0.01363372802734375, -0.036529541015625, -0.03350830078125, 0.0445556640625, -0.007541656494140625, -0.008331298828125, 0.031982421875, -0.0325927734375, 0.0167999267578125, -0.003810882568359375, 0.057281494140625, -0.0176849365234375, 0.029205322265625, -0.034759521484375, 0.0038928985595703125, 0.01186370849609375 ]
6fb9b6701523ff150849bf072472d71430fa6736
Wordpress Stackexchange Q: Using the WordPress Media Library and returning the Attachment ID rather than URL? I'm currently using some JS to pop open the WordPress Media Library in a thickbox container and return the URL of a selected image, then display it. window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); jQuery('#upload_image-' + id_to_pass).val(imgurl); output_code = '<img class="media_display" src="' + imgurl + '" />'; jQuery(output_code).appendTo('#media_display-' + id_to_pass); tb_remove(); } I was wondering if it's possible to return the attachment ID instead? I would like to use the image's description and caption fields, which I won't be able to do (easily) if I can only access the image URL from the Media Library. A: Take a look at this http://sltaylor.co.uk/blog/hijacking-the-wordpress-media-library-overlay/
Q: Using the WordPress Media Library and returning the Attachment ID rather than URL? I'm currently using some JS to pop open the WordPress Media Library in a thickbox container and return the URL of a selected image, then display it. window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); jQuery('#upload_image-' + id_to_pass).val(imgurl); output_code = '<img class="media_display" src="' + imgurl + '" />'; jQuery(output_code).appendTo('#media_display-' + id_to_pass); tb_remove(); } I was wondering if it's possible to return the attachment ID instead? I would like to use the image's description and caption fields, which I won't be able to do (easily) if I can only access the image URL from the Media Library. A: Take a look at this http://sltaylor.co.uk/blog/hijacking-the-wordpress-media-library-overlay/ A: It's more a hack than a solution. You could use a regex to extract the attachment ID from the wp-image- class. Add the following snippet to your window.send_to_editor function. $classes = jQuery('img', html).attr('class'); $id = $classes.replace(/(.*?)wp-image-/, '');
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:410904", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21768" }
[ 0.038360595703125, -0.0117340087890625, 0.0294647216796875, 0.02392578125, -0.00946807861328125, -0.030029296875, 0.059539794921875, -0.04736328125, 0.0142974853515625, 0.005336761474609375, 0.03338623046875, -0.021728515625, -0.0299072265625, -0.051025390625, -0.0206146240234375, -0.023681640625, 0.034210205078125, -0.0343017578125, 0.019317626953125, -0.00785064697265625, -0.0018777847290039062, 0.006786346435546875, 0.05328369140625, 0.00868988037109375, 0.027374267578125, -0.0164031982421875, 0.048309326171875, -0.004291534423828125, -0.00843048095703125, -0.0207672119140625, 0.020111083984375, 0.0219268798828125, 0.02911376953125, 0.0036678314208984375, -0.0281219482421875, -0.0119476318359375, 0.0154266357421875, 0.00800323486328125, -0.0072174072265625, 0.004573822021484375, 0.004062652587890625, 0.00940704345703125, 0.00849151611328125, -0.006587982177734375, -0.0204620361328125, -0.0230560302734375, -0.009002685546875, -0.033599853515625, -0.0007314682006835938, 0.0552978515625, 0.039154052734375, 0.033447265625, 0.0247955322265625, 0.02923583984375, -0.00868988037109375, 0.00191497802734375, 0.00542449951171875, -0.00537872314453125, 0.015167236328125, 0.03326416015625, -0.02264404296875, 0.0226593017578125, -0.0015430450439453125, -0.050872802734375, 0.006237030029296875, -0.0189208984375, -0.01224517822265625, 0.033294677734375, -0.060394287109375, -0.0209503173828125, 0.0280609130859375, -0.047698974609375, -0.01192474365234375, -0.0413818359375, -0.035247802734375, 0.03570556640625, 0.017303466796875, -0.01419830322265625, -0.010650634765625, -0.0245208740234375, 0.010894775390625, 0.0204925537109375, -0.05694580078125, 0.032135009765625, 0.0158538818359375, 0.06005859375, -0.01331329345703125, -0.0460205078125, -0.005893707275390625, 0.010406494140625, -0.0218048095703125, -0.0098876953125, 0.047698974609375, 0.004638671875, -0.0428466796875, -0.005252838134765625, 0.0321044921875, 0.0242462158203125, 0.0233612060546875, 0.0206146240234375, 0.0006241798400878906, -0.04486083984375, 0.008514404296875, -0.0199737548828125, 0.000766754150390625, 0.01049041748046875, 0.000052869319915771484, -0.033050537109375, 0.023223876953125, 0.00839996337890625, -0.0325927734375, 0.0174560546875, 0.0124053955078125, 0.031280517578125, 0.0138397216796875, -0.04058837890625, -0.05218505859375, 0.03466796875, -0.038818359375, 0.003292083740234375, -0.01885986328125, -0.01294708251953125, -0.002429962158203125, 0.029541015625, 0.0213775634765625, 0.007904052734375, -0.007244110107421875, 0.006862640380859375, 0.0011911392211914062, -0.011474609375, -0.0323486328125, 0.0211029052734375, 0.04571533203125, 0.02618408203125, 0.0180206298828125, -0.000690460205078125, 0.0007343292236328125, -0.0063934326171875, 0.033416748046875, -0.007450103759765625, 0.0155181884765625, -0.0166015625, 0.0284423828125, 0.041473388671875, -0.022064208984375, 0.0352783203125, 0.0087738037109375, 0.0002579689025878906, -0.0158233642578125, -0.06048583984375, 0.0125274658203125, -0.048095703125, 0.03125, 0.0147857666015625, 0.0093536376953125, -0.043212890625, 0.07861328125, -0.0626220703125, 0.00433349609375, -0.07818603515625, 0.0244598388671875, 0.019744873046875, 0.032379150390625, -0.0091705322265625, 0.010589599609375, -0.038055419921875, -0.06298828125, -0.0011014938354492188, 0.021759033203125, 0.07916259765625, -0.0142974853515625, -0.036468505859375, -0.01544952392578125, 0.01531982421875, -0.014251708984375, 0.0184478759765625, 0.015533447265625, 0.0341796875, 0.0270233154296875, 0.0204010009765625, 0.003437042236328125, -0.030853271484375, 0.107421875, -0.04217529296875, -0.032562255859375, 0.03363037109375, 0.019683837890625, 0.05694580078125, 0.00010198354721069336, 0.0237274169921875, 0.036041259765625, 0.031707763671875, -0.015106201171875, 0.013671875, -0.0139617919921875, -0.0293121337890625, 0.00620269775390625, 0.0027446746826171875, -0.015777587890625, 0.005016326904296875, 0.055938720703125, 0.041534423828125, -0.01611328125, 0.033447265625, -0.005596160888671875, 0.0185546875, -0.01131439208984375, 0.0055694580078125, -0.047515869140625, 0.039642333984375, 0.04052734375, 0.023284912109375, -0.05718994140625, 0.014678955078125, 0.04473876953125, 0.00077056884765625, -0.014312744140625, 0.033233642578125, -0.023529052734375, 0.061279296875, -0.059906005859375, -0.0010690689086914062, -0.042144775390625, 0.0077056884765625, 0.0222625732421875, 0.0115814208984375, -0.00887298583984375, -0.01366424560546875, 0.01641845703125, 0.0202484130859375, -0.0274200439453125, 0.01113128662109375, 0.004421234130859375, -0.0040130615234375, -0.03314208984375, -0.0230712890625, -0.0290069580078125, -0.09625244140625, 0.017578125, 0.07366943359375, 0.0372314453125, 0.04803466796875, 0.01812744140625, 0.0015201568603515625, 0.1077880859375, 0.017974853515625, 0.03228759765625, -0.02935791015625, -0.0032100677490234375, 0.0006899833679199219, -0.0226898193359375, -0.01537322998046875, 0.023406982421875, -0.08270263671875, 0.00031828880310058594, 0.034820556640625, -0.0062408447265625, 0.006496429443359375, -0.01520538330078125, 0.024627685546875, -0.003589630126953125, 0.03131103515625, 0.00899505615234375, 0.0016021728515625, 0.00240325927734375, 0.03765869140625, 0.039642333984375, 0.0347900390625, -0.018646240234375, 0.0102996826171875, 0.00438690185546875, -0.002445220947265625, -0.00879669189453125, 0.050445556640625, 0.06689453125, -0.0227508544921875, 0.0035648345947265625, -0.040008544921875, -0.0140533447265625, 0.02886962890625, -0.006092071533203125, 0.010467529296875, -0.0521240234375, -0.016998291015625, 0.01186370849609375, -0.041107177734375, -0.024658203125, -0.00577545166015625, -0.0169677734375, 0.007602691650390625, 0.02630615234375, 0.041351318359375, 0.007110595703125, 0.0212554931640625, -0.039947509765625, 0.0030384063720703125, 0.056488037109375, -0.022125244140625, 0.034027099609375, -0.0238037109375, 0.1092529296875, 0.056854248046875, -0.050262451171875, 0.0540771484375, -0.01910400390625, 0.01067352294921875, -0.0209197998046875, 0.004505157470703125, -0.017425537109375, -0.0296478271484375, -0.023101806640625, -0.004764556884765625, 0.0060882568359375, 0.00811767578125, -0.0262908935546875, -0.048095703125, -0.0288543701171875, -0.0247039794921875, -0.095703125, -0.0421142578125, 0.004055023193359375, -0.0732421875, 0.01800537109375, 0.007228851318359375, -0.05010986328125, -0.020904541015625, 0.06475830078125, 0.006500244140625, -0.0009565353393554688, -0.004802703857421875, -0.036773681640625, -0.043975830078125, -0.06549072265625, -0.03485107421875, -0.0086212158203125, 0.0137176513671875, 0.005008697509765625, -0.021575927734375, -0.002315521240234375, -0.03265380859375, 0.02362060546875, 0.046234130859375, 0.016326904296875, -0.0081939697265625, 0.0006737709045410156, -0.032470703125, -0.0712890625, 0.00962066650390625, 0.044342041015625, -0.0098724365234375, -0.007320404052734375, 0.0127410888671875, -0.0225677490234375, -0.032501220703125, 0.00606536865234375, -0.01036834716796875, 0.01119232177734375, -0.01136016845703125, 0.005481719970703125, -0.04144287109375, 0.0399169921875, -0.03515625, -0.01177978515625, -0.0101318359375, 0.00008052587509155273, -0.00836181640625, -0.017364501953125, -0.007762908935546875, 0.012451171875, 0.00830841064453125, 0.00962066650390625, -0.0272064208984375, 0.029754638671875, -0.01372528076171875, 0.0238037109375, -0.0204620361328125, 0.059661865234375, -0.01000213623046875, -0.04949951171875, 0.00972747802734375, -0.005992889404296875, -0.0025653839111328125, -0.04022216796875, -0.0137481689453125, -0.048614501953125, 0.042449951171875, -0.03173828125, 0.0107574462890625, -0.0233612060546875, -0.0254058837890625, 0.0005164146423339844, 0.08270263671875, -0.03363037109375, 0.003749847412109375, -0.0206298828125, 0.0084075927734375, -0.01849365234375, -0.050079345703125, -0.04644775390625, 0.01084136962890625, -0.03350830078125, 0.000046193599700927734, -0.01258087158203125, -0.01104736328125, -0.0235595703125, 0.01806640625, -0.0092010498046875, -0.035736083984375, 0.0147552490234375, 0.0100250244140625, 0.00751495361328125, -0.005008697509765625, 0.008270263671875, -0.00884246826171875, -0.01534271240234375, -0.0201263427734375, -0.0863037109375, -0.026153564453125, 0.0213470458984375, 0.07073974609375, -0.0171661376953125, -0.0048828125, -0.03973388671875, 0.03955078125, -0.00664520263671875, 0.023956298828125, 0.00922393798828125, 0.01375579833984375, 0.01248931884765625, -0.03033447265625, 0.004322052001953125, -0.0295562744140625, -0.004489898681640625, -0.07159423828125, -0.0755615234375, -0.0638427734375, -0.01306915283203125, 0.041748046875, 0.01464080810546875, -0.002033233642578125, -0.0543212890625, -0.01207733154296875, -0.0276031494140625, 0.018829345703125, -0.0084381103515625, -0.00992584228515625, -0.0162200927734375, -0.0615234375, -0.01396942138671875, -0.0010585784912109375, -0.00989532470703125, 0.013916015625, 0.014404296875, 0.0244903564453125, 0.00438690185546875, 0.002410888671875, 0.0026302337646484375, 0.0576171875, -0.0177154541015625, 0.0276641845703125, 0.035064697265625, -0.042236328125, 0.04425048828125, 0.0266265869140625, 0.02166748046875, -0.0225677490234375, 0.03643798828125, -0.007526397705078125, 0.0010862350463867188, 0.01279449462890625, 0.0019073486328125, -0.0227508544921875, 0.001491546630859375, -0.0175933837890625, 0.0171051025390625, -0.03857421875, 0.0001170039176940918, 0.0100555419921875, 0.0236663818359375, -0.0006628036499023438, -0.0771484375, 0.0233612060546875, -0.033660888671875, 0.044036865234375, -0.01358795166015625, 0.00731658935546875, 0.03045654296875, 0.044189453125, 0.0172119140625, 0.028594970703125, -0.007427215576171875, -0.01079559326171875, 0.054718017578125, -0.01195526123046875, -0.01546478271484375, 0.031982421875, -0.0074920654296875, -0.0088043212890625, 0.0084686279296875, -0.0194244384765625, -0.009490966796875, -0.004535675048828125, -0.0024662017822265625, 0.0030517578125, -0.0066986083984375, 0.0230712890625, 0.0233154296875, -0.03125, -0.01493072509765625, -0.0269317626953125, 0.00450897216796875, -0.061004638671875, 0.033233642578125, 0.0013589859008789062, 0.006984710693359375, 0.00939178466796875, 0.052001953125, -0.015350341796875, 0.0279388427734375, 0.003574371337890625, 0.037139892578125, 0.0181884765625, 0.022613525390625, 0.026611328125, -0.0025348663330078125, -0.01446533203125, -0.0004801750183105469, -0.0219573974609375, -0.040191650390625, -0.00008547306060791016, 0.019195556640625, 0.03790283203125, -0.005878448486328125, -0.02301025390625, -0.002819061279296875, -0.0367431640625, -0.042205810546875, 0.036529541015625, -0.01267242431640625, -0.041534423828125, -0.0215301513671875, -0.01259613037109375, 0.0168914794921875, 0.01215362548828125, 0.0023288726806640625, -0.0285797119140625, 0.0108642578125, -0.0016546249389648438, 0.01061248779296875, -0.045989990234375, 0.0267791748046875, 0.041534423828125, 0.005615234375, -0.0216217041015625, -0.0286407470703125, -0.015777587890625, 0.0092926025390625, -0.027099609375, 0.005741119384765625, 0.0513916015625, -0.0161895751953125, 0.0188751220703125, -0.01031494140625, -0.022125244140625, -0.053802490234375, -0.00519561767578125, 0.0662841796875, 0.0487060546875, 0.008544921875, -0.01129150390625, -0.0260162353515625, -0.012054443359375, 0.037445068359375, -0.018402099609375, 0.0005726814270019531, -0.0307769775390625, -0.0159149169921875, 0.035614013671875, -0.022186279296875, 0.01384735107421875, 0.05230712890625, 0.018310546875, -0.03448486328125, 0.05810546875, 0.006500244140625, 0.021240234375, 0.02557373046875, 0.053802490234375, 0.0263671875, -0.0142364501953125, -0.060455322265625, -0.03369140625, -0.030609130859375, -0.042572021484375, 0.0272979736328125, 0.03070068359375, 0.007083892822265625, -0.01824951171875, -0.015869140625, 0.0280303955078125, 0.0223541259765625, 0.00033020973205566406, 0.0033416748046875, -0.02252197265625, 0.01116180419921875, -0.0221099853515625, 0.0038852691650390625, 0.0094146728515625, -0.029937744140625, 0.004131317138671875, 0.00328826904296875, 0.0216217041015625, 0.0027980804443359375, -0.024169921875, -0.00676727294921875, 0.0272674560546875, 0.011444091796875, 0.02886962890625, 0.09637451171875, -0.016357421875, 0.03448486328125, 0.038726806640625, -0.02557373046875, 0.045745849609375, 0.024658203125, -0.0158233642578125, -0.04486083984375, 0.0460205078125, 0.007724761962890625, -0.0262451171875, 0.032684326171875, -0.03125, 0.0268402099609375, -0.023681640625, 0.0330810546875, 0.0128631591796875, 0.004543304443359375, -0.0098876953125, -0.0523681640625, 0.0163116455078125, -0.02667236328125, 0.00970458984375, -0.02001953125, 0.04705810546875, -0.01015472412109375, -0.051116943359375, -0.02056884765625, -0.0244293212890625, 0.01088714599609375, -0.004779815673828125, 0.013031005859375, -0.0032634735107421875, -0.054290771484375, -0.0343017578125, 0.04205322265625, -0.00821685791015625, -0.0058135986328125, 0.01215362548828125, -0.00923919677734375, -0.0116119384765625, -0.0245361328125, 0.0016107559204101562, -0.0195465087890625, 0.001323699951171875, -0.026641845703125, -0.01067352294921875, 0.0232086181640625, 0.0208892822265625, -0.01398468017578125, -0.01293182373046875, 0.0066986083984375, -0.015716552734375, 0.03955078125, 0.0027294158935546875, 0.004730224609375, 0.020782470703125, -0.05853271484375, -0.0005383491516113281, -0.0372314453125, 0.03125, -0.00771331787109375, 0.014862060546875, 0.056671142578125, -0.033416748046875, -0.007755279541015625, 0.053070068359375, 0.035430908203125, -0.035125732421875, -0.0020809173583984375, 0.059783935546875, -0.07574462890625, -0.035552978515625, 0.01885986328125, -0.0309906005859375, -0.021942138671875, -0.003452301025390625, -0.07354736328125, 0.0830078125, 0.002017974853515625, 0.0496826171875, -0.003734588623046875, 0.0234222412109375, -0.0011882781982421875, 0.00423431396484375, -0.02301025390625, 0.0041351318359375, -0.002899169921875, -0.0206756591796875, -0.0364990234375, 0.00044798851013183594, -0.0389404296875, 0.0215911865234375, 0.058868408203125, 0.0234832763671875, -0.0416259765625, -0.039794921875, 0.0014705657958984375, 0.037933349609375, 0.003604888916015625, 0.037261962890625, 0.0193634033203125, 0.049652099609375, 0.06744384765625, -0.0556640625, 0.0210418701171875, -0.015625, 0.022369384765625, 0.05303955078125, 0.024627685546875, 0.0236358642578125, 0.022857666015625, 0.054412841796875, -0.06427001953125, 0.0103912353515625, 0.06304931640625, -0.03973388671875, 0.01390838623046875, 0.0286865234375, 0.035186767578125, -0.03009033203125, 0.033355712890625, -0.0275726318359375, 0.0634765625, -0.00736236572265625, 0.01146697998046875, 0.0234832763671875, 0.00870513916015625, 0.00865936279296875, 0.0257568359375, -0.00215911865234375, 0.0156707763671875, 0.0245361328125, 0.029083251953125, -0.009002685546875, 0.00992584228515625, -0.0767822265625, -0.0129547119140625, 0.109619140625, 0.06671142578125, -0.028350830078125, -0.0023479461669921875, 0.01454925537109375, 0.00992584228515625, 0.001861572265625, -0.02227783203125, 0.0269927978515625, -0.04205322265625, -0.0265045166015625, -0.0198974609375, 0.0046539306640625, 0.03021240234375, 0.036468505859375, 0.00853729248046875, 0.029815673828125, -0.0504150390625, -0.01299285888671875, -0.0208587646484375, 0.0242919921875, -0.0010194778442382812, 0.0289764404296875, -0.00809478759765625, 0.038116455078125, -0.02899169921875, -0.003246307373046875, -0.034088134765625, 0.029571533203125, 0.01088714599609375, 0.0469970703125, -0.0120391845703125, 0.0099334716796875, 0.038818359375, 0.00958251953125, 0.04132080078125, 0.0251617431640625, 0.043426513671875, 0.0159454345703125, -0.00799560546875, 0.005126953125, 0.032257080078125, -0.0178680419921875, 0.03314208984375, -0.039947509765625, 0.033538818359375, 0.019989013671875, -0.0197296142578125, -0.006809234619140625, -0.030181884765625, 0.08941650390625, -0.049774169921875, 0.09326171875, -0.0303192138671875, 0.0221099853515625, 0.0295867919921875, -0.0168914794921875, 0.037139892578125, -0.0175323486328125, -0.1162109375, -0.038177490234375, -0.00031948089599609375, -0.038604736328125, 0.0284881591796875, 0.033966064453125, -0.04852294921875, 0.040191650390625, -0.01454925537109375, -0.001964569091796875, 0.01371002197265625, -0.0224151611328125, 0.006237030029296875, -0.0219879150390625, 0.00962066650390625, -0.01666259765625, -0.0338134765625, -0.0165863037109375, 0.0010080337524414062, 0.013885498046875, 0.0084381103515625, 0.0386962890625, 0.003536224365234375, 0.010467529296875, 0.004825592041015625, 0.017974853515625, -0.00795745849609375, 0.007770538330078125, -0.025054931640625, 0.007312774658203125, 0.038665771484375, -0.0117645263671875, 0.0180206298828125, 0.06451416015625, -0.01971435546875, -0.0090179443359375, 0.01012420654296875, -0.04290771484375, 0.00122833251953125, 0.055877685546875, 0.0258636474609375, -0.00659942626953125, -0.004184722900390625, -0.0018072128295898438, -0.00621795654296875, 0.04345703125, 0.043548583984375, 0.006618499755859375, 0.0019512176513671875, 0.025482177734375, -0.00557708740234375, 0.018463134765625, 0.007106781005859375, 0.0369873046875, 0.03875732421875, -0.03619384765625, -0.023834228515625, 0.009979248046875, -0.004825592041015625, -0.025543212890625, 0.0265655517578125, 0.0192718505859375, 0.00649261474609375, -0.01171112060546875, 0.0269012451171875, -0.003948211669921875, 0.01727294921875, -0.0175628662109375, -0.0186309814453125, 0.0209808349609375, -0.0085296630859375, -0.0171356201171875, -0.033050537109375, -0.009490966796875, -0.0455322265625, -0.01351165771484375, 0.03936767578125, -0.0255584716796875, 0.0159912109375, -0.039947509765625, -0.01113128662109375, 0.0013036727905273438, 0.0155181884765625, -0.06121826171875, 0.0192108154296875, 0.01103973388671875, 0.040557861328125, -0.040618896484375, 0.044158935546875, -0.034423828125, 0.00495147705078125, -0.03369140625, -0.0843505859375, -0.045013427734375, 0.08843994140625, -0.049560546875, 0.0396728515625, 0.045806884765625, -0.044677734375, -0.0231781005859375, 0.03533935546875, 0.054595947265625, 0.0936279296875, 0.0032558441162109375, -0.035491943359375, -0.056976318359375, 0.0325927734375, 0.0003845691680908203, 0.01245880126953125, 0.02880859375, -0.01605224609375, -0.031524658203125, 0.01380157470703125, -0.0039520263671875, 0.01480865478515625, -0.0323486328125, -0.048980712890625, 0.0008482933044433594, 0.00373077392578125, -0.042816162109375, -0.01268768310546875, 0.03125, -0.0017185211181640625, -0.0175933837890625, -0.0113525390625, -0.0207366943359375, 0.00748443603515625, 0.01038360595703125, 0.019622802734375, -0.0022487640380859375, 0.00038433074951171875, 0.0130462646484375, -0.08551025390625, 0.01274871826171875, -0.003696441650390625, 0.0260162353515625, -0.00927734375, 0.0032444000244140625, 0.027618408203125, 0.0037021636962890625, -0.036895751953125, -0.00397491455078125, 0.0048370361328125, 0.031585693359375, -0.0124969482421875, -0.047760009765625, -0.0313720703125, 0.01076507568359375, 0.043121337890625, 0.09979248046875, 0.00788116455078125, -0.061676025390625, 0.0028781890869140625, 0.0145721435546875, -0.028228759765625, -0.02032470703125, 0.028167724609375, -0.06610107421875, -0.02581787109375, -0.00943756103515625, -0.01421356201171875, -0.004566192626953125, -0.0228729248046875, -0.049713134765625, 0.005096435546875, -0.020263671875, -0.005889892578125, -0.027740478515625, -0.00911712646484375, 0.1064453125, -0.05694580078125, 0.002918243408203125, 0.017303466796875, 0.0182647705078125, 0.06060791015625, -0.01142120361328125, -0.01160430908203125, 0.029754638671875, 0.00945281982421875, 0.00452423095703125, 0.035675048828125, 0.0001773834228515625, 0.010284423828125, 0.0160675048828125, -0.003780364990234375, 0.0260162353515625, -0.01126861572265625, 0.0268096923828125, 0.019378662109375, 0.027618408203125, 0.0026149749755859375, 0.0168914794921875, -0.047943115234375, 0.0109710693359375, -0.00388336181640625, -0.00518035888671875, -0.003902435302734375, 0.0272979736328125, 0.073486328125, -0.051116943359375, 0.01654052734375, -0.0084228515625, 0.005657196044921875, -0.0188446044921875, 0.0042877197265625, -0.0133209228515625, -0.0051727294921875, 0.00926971435546875 ]
9cc4219a8bff118b715426d1b68e02f7c883f99b
Wordpress Stackexchange Q: How does WP custom post types fare compared to Drupal's? In Drupal you have the GUI to create whatever type you want. How about in WP, do I still have to code to create one? A: Even though there are plugins to register Custom Post Types in WordPress, this is not the way it should be done. According to core developer Andrew Nacin, Custom Post Types should be implemented (in code) not registered (by clicks). This makes them more managable and easier to improve and further develop or hack. Also, code versioning is the way it goes.
Q: How does WP custom post types fare compared to Drupal's? In Drupal you have the GUI to create whatever type you want. How about in WP, do I still have to code to create one? A: Even though there are plugins to register Custom Post Types in WordPress, this is not the way it should be done. According to core developer Andrew Nacin, Custom Post Types should be implemented (in code) not registered (by clicks). This makes them more managable and easier to improve and further develop or hack. Also, code versioning is the way it goes. A: Not necessarily, you can use the Custom Post Type UI plugin to create one with a GUI. If it doesn't have to be an actual custom post type, you could also use PODS, which achieves a similar result using a custom object type.
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:410910", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21793" }
[ 0.049530029296875, 0.0095062255859375, -0.0146026611328125, -0.029296875, 0.01285552978515625, -0.033843994140625, 0.037841796875, -0.01474761962890625, -0.036773681640625, 0.0003921985626220703, -0.005123138427734375, -0.00531768798828125, -0.03082275390625, -0.037872314453125, 0.03472900390625, -0.048583984375, 0.02984619140625, -0.03155517578125, 0.0140533447265625, -0.048828125, 0.0281219482421875, -0.041351318359375, 0.061126708984375, 0.07965087890625, 0.034027099609375, -0.0182647705078125, 0.0129241943359375, -0.0209808349609375, 0.0197296142578125, 0.001468658447265625, 0.0247344970703125, -0.0167083740234375, 0.01080322265625, 0.045074462890625, -0.02398681640625, 0.005413055419921875, -0.015167236328125, 0.040618896484375, 0.032623291015625, -0.015167236328125, 0.0134124755859375, -0.002536773681640625, 0.0714111328125, -0.00384521484375, 0.01165771484375, -0.0206298828125, 0.0190277099609375, -0.033966064453125, 0.0123138427734375, -0.048675537109375, -0.003955841064453125, 0.0106658935546875, 0.0233306884765625, -0.067138671875, -0.0263519287109375, -0.0208740234375, 0.0015668869018554688, 0.0033817291259765625, 0.0219879150390625, -0.027862548828125, -0.025787353515625, -0.0220184326171875, 0.042938232421875, 0.031402587890625, 0.00772857666015625, 0.0127105712890625, 0.01297760009765625, 0.0179901123046875, -0.000029087066650390625, 0.002231597900390625, -0.005031585693359375, -0.0200347900390625, -0.0005578994750976562, -0.0068817138671875, 0.0109710693359375, -0.028778076171875, 0.02618408203125, -0.015869140625, -0.00928497314453125, 0.045501708984375, -0.021881103515625, 0.0184326171875, -0.01050567626953125, -0.03900146484375, -0.0225677490234375, -0.0406494140625, -0.0204315185546875, 0.0016765594482421875, -0.024383544921875, -0.01424407958984375, -0.0139007568359375, -0.0287017822265625, -0.0484619140625, 0.03497314453125, 0.016845703125, -0.0214080810546875, -0.00412750244140625, -0.024810791015625, -0.01494598388671875, 0.0132598876953125, 0.035888671875, -0.052764892578125, 0.07159423828125, -0.0169830322265625, 0.02392578125, 0.034271240234375, -0.022918701171875, -0.026702880859375, 0.033966064453125, 0.0148468017578125, 0.01094818115234375, 0.0237274169921875, 0.0458984375, -0.01287841796875, -0.0199127197265625, -0.0184173583984375, 0.01128387451171875, 0.033935546875, 0.0163116455078125, 0.03033447265625, 0.0254058837890625, 0.032196044921875, 0.0643310546875, -0.007598876953125, -0.0211334228515625, 0.00238800048828125, -0.028594970703125, -0.082763671875, -0.0221099853515625, 0.060272216796875, -0.0273284912109375, 0.004711151123046875, 0.06951904296875, 0.0190277099609375, -0.01226806640625, -0.0343017578125, 0.039520263671875, -0.04248046875, -0.0276336669921875, 0.0236358642578125, -0.01708984375, -0.01285552978515625, -0.013763427734375, -0.03759765625, 0.0736083984375, 0.04302978515625, 0.00772857666015625, -0.0077056884765625, 0.041290283203125, -0.00928497314453125, 0.0273895263671875, -0.047607421875, 0.01629638671875, -0.0011196136474609375, 0.0234527587890625, -0.024627685546875, 0.01080322265625, -0.01218414306640625, 0.0240936279296875, -0.00997161865234375, 0.03369140625, -0.0177459716796875, -0.008941650390625, -0.005146026611328125, -0.048370361328125, 0.04498291015625, -0.0246429443359375, -0.0073394775390625, 0.0242919921875, -0.005458831787109375, 0.03228759765625, -0.01279449462890625, 0.01146697998046875, 0.0189208984375, 0.00914764404296875, 0.0102386474609375, 0.004917144775390625, -0.0236663818359375, 0.046661376953125, 0.0221405029296875, -0.0038700103759765625, -0.00972747802734375, 0.0439453125, -0.005096435546875, -0.07965087890625, 0.059967041015625, 0.0251007080078125, 0.079833984375, 0.00469970703125, 0.01495361328125, 0.067626953125, 0.034423828125, -0.01171112060546875, 0.007293701171875, -0.0225830078125, -0.0333251953125, -0.005329132080078125, 0.0003764629364013672, -0.0193939208984375, 0.03607177734375, -0.03033447265625, -0.002574920654296875, 0.00914764404296875, 0.00464630126953125, -0.01369476318359375, 0.0198516845703125, -0.01995849609375, 0.0391845703125, -0.020233154296875, 0.0010528564453125, 0.03448486328125, 0.021240234375, -0.051788330078125, 0.01190185546875, -0.0221099853515625, -0.01407623291015625, -0.0218963623046875, 0.043487548828125, 0.00501251220703125, -0.01294708251953125, 0.015411376953125, -0.042510986328125, 0.0307464599609375, 0.0347900390625, 0.026214599609375, 0.034515380859375, -0.0248260498046875, 0.01241302490234375, 0.020904541015625, 0.042694091796875, -0.027435302734375, 0.005580902099609375, -0.003726959228515625, -0.02337646484375, -0.045135498046875, -0.022979736328125, -0.036956787109375, -0.0643310546875, 0.01139068603515625, 0.0689697265625, 0.0281524658203125, 0.0211334228515625, 0.001506805419921875, 0.03125, 0.0401611328125, 0.0198211669921875, 0.0274505615234375, -0.0102081298828125, 0.03668212890625, 0.045562744140625, 0.0040435791015625, -0.01270294189453125, 0.01497650146484375, -0.033050537109375, 0.049530029296875, 0.01200103759765625, -0.0117340087890625, -0.0023822784423828125, 0.00782012939453125, 0.0023975372314453125, -0.003475189208984375, -0.0293121337890625, -0.01126861572265625, -0.01361846923828125, 0.01666259765625, 0.00272369384765625, 0.033538818359375, 0.01763916015625, -0.031951904296875, 0.0007476806640625, 0.0185546875, 0.00890350341796875, -0.0010805130004882812, -0.0048065185546875, 0.05462646484375, 0.03179931640625, -0.0599365234375, -0.007404327392578125, 0.067138671875, 0.0100860595703125, -0.027496337890625, 0.004924774169921875, -0.0750732421875, -0.012176513671875, 0.01236724853515625, -0.08056640625, -0.018798828125, 0.0162506103515625, 0.01137542724609375, -0.066162109375, -0.016571044921875, 0.0012102127075195312, -0.048828125, 0.0413818359375, 0.04571533203125, -0.0650634765625, -0.007144927978515625, -0.05950927734375, 0.035369873046875, -0.035003662109375, 0.0335693359375, 0.0693359375, 0.00814056396484375, 0.0078277587890625, 0.0237579345703125, 0.0017862319946289062, 0.0206451416015625, 0.04315185546875, 0.01605224609375, -0.0290985107421875, -0.030670166015625, -0.0268402099609375, 0.0345458984375, 0.040679931640625, 0.025299072265625, -0.0253143310546875, 0.0006780624389648438, 0.054718017578125, -0.01220703125, -0.0394287109375, 0.01004791259765625, -0.0377197265625, 0.005657196044921875, -0.034393310546875, -0.015045166015625, -0.00933074951171875, -0.029876708984375, -0.004962921142578125, -0.020782470703125, -0.00878143310546875, -0.03082275390625, -0.0867919921875, -0.068115234375, -0.041290283203125, 0.005992889404296875, 0.004077911376953125, 0.010009765625, 0.0291900634765625, 0.0202789306640625, -0.028961181640625, 0.02581787109375, 0.01015472412109375, -0.01399993896484375, 0.0012502670288085938, -0.0028171539306640625, -0.004833221435546875, 0.053436279296875, -0.004238128662109375, -0.010467529296875, 0.041839599609375, -0.0220184326171875, -0.020599365234375, 0.0185699462890625, 0.006359100341796875, 0.0121307373046875, 0.01084136962890625, -0.0223846435546875, -0.0018491744995117188, 0.005786895751953125, -0.049163818359375, -0.01122283935546875, 0.0166778564453125, 0.01171112060546875, 0.033050537109375, -0.043426513671875, -0.033172607421875, -0.0294189453125, 0.07843017578125, -0.00824737548828125, -0.018218994140625, -0.0024585723876953125, -0.054412841796875, 0.04779052734375, 0.01007080078125, 0.0284881591796875, 0.0025691986083984375, -0.0252227783203125, -0.03729248046875, 0.007129669189453125, -0.0261077880859375, -0.01399993896484375, -0.035125732421875, 0.022918701171875, -0.051422119140625, -0.08990478515625, 0.047210693359375, -0.0692138671875, -0.0243377685546875, -0.038604736328125, -0.0005822181701660156, 0.0198211669921875, 0.102783203125, -0.0230712890625, 0.007137298583984375, 0.01032257080078125, 0.0210113525390625, -0.01885986328125, -0.06195068359375, -0.04437255859375, -0.01641845703125, -0.00795745849609375, 0.0052642822265625, 0.0289306640625, -0.021026611328125, -0.033843994140625, 0.05926513671875, -0.0474853515625, -0.0029582977294921875, 0.054351806640625, -0.034332275390625, 0.01277923583984375, 0.006473541259765625, 0.00009649991989135742, -0.03594970703125, -0.040130615234375, -0.00008255243301391602, -0.08465576171875, -0.0155029296875, -0.0080108642578125, 0.058746337890625, 0.005859375, -0.0079345703125, -0.0036449432373046875, 0.040863037109375, 0.031402587890625, 0.00460052490234375, 0.0291748046875, 0.0026912689208984375, -0.012451171875, -0.0034694671630859375, 0.02496337890625, -0.0321044921875, -0.034149169921875, -0.0418701171875, -0.04168701171875, -0.00908660888671875, 0.00970458984375, 0.011016845703125, 0.020477294921875, -0.0031414031982421875, 0.0036773681640625, -0.033935546875, -0.0714111328125, -0.02252197265625, -0.0255279541015625, -0.0172271728515625, -0.01763916015625, -0.020538330078125, 0.04266357421875, -0.026947021484375, 0.004489898681640625, -0.00478363037109375, 0.10064697265625, 0.009735107421875, 0.0008959770202636719, -0.038848876953125, -0.00547027587890625, 0.025421142578125, -0.010101318359375, -0.00992584228515625, -0.00732421875, -0.01425933837890625, 0.01015472412109375, -0.01629638671875, -0.0127410888671875, -0.0009737014770507812, 0.049346923828125, 0.00792694091796875, -0.000270843505859375, -0.0042724609375, -0.0122833251953125, 0.0243072509765625, 0.047821044921875, 0.0109710693359375, -0.06732177734375, 0.03662109375, 0.051788330078125, -0.04345703125, 0.0268402099609375, -0.017242431640625, -0.00867462158203125, 0.00457000732421875, 0.01763916015625, -0.00711822509765625, 0.00490570068359375, -0.0026607513427734375, -0.030975341796875, -0.04296875, 0.004497528076171875, 0.0243072509765625, -0.0164642333984375, 0.01322174072265625, 0.0151214599609375, 0.0186614990234375, 0.01270294189453125, 0.0219879150390625, -0.0125274658203125, 0.04583740234375, 0.0111083984375, -0.02777099609375, -0.0275421142578125, -0.0017242431640625, 0.041534423828125, -0.002468109130859375, -0.00298309326171875, 0.048828125, 0.036407470703125, -0.006103515625, 0.01528167724609375, -0.01358795166015625, 0.0160064697265625, -0.032806396484375, -0.043182373046875, -0.0207977294921875, -0.0191497802734375, 0.00612640380859375, 0.0040740966796875, -0.01715087890625, 0.01715087890625, -0.00411224365234375, 0.06988525390625, 0.06134033203125, 0.0228118896484375, 0.0188140869140625, -0.00749969482421875, -0.0187530517578125, -0.014617919921875, -0.055023193359375, -0.0283966064453125, -0.0477294921875, -0.0135955810546875, 0.04852294921875, 0.0090179443359375, 0.03228759765625, 0.0203857421875, 0.0087890625, -0.0098876953125, -0.01107025146484375, -0.00441741943359375, -0.03680419921875, 0.016937255859375, 0.0298614501953125, -0.003204345703125, -0.008514404296875, -0.0173797607421875, 0.013458251953125, -0.01094818115234375, 0.028533935546875, -0.004909515380859375, -0.018524169921875, 0.01776123046875, 0.00484466552734375, -0.020660400390625, -0.0202178955078125, 0.00435638427734375, -0.052703857421875, -0.00922393798828125, -0.01540374755859375, -0.007762908935546875, 0.0124359130859375, -0.0369873046875, 0.0004565715789794922, -0.0265350341796875, 0.0200347900390625, -0.03076171875, 0.0062713623046875, 0.06842041015625, 0.04095458984375, -0.014739990234375, -0.01629638671875, -0.03851318359375, -0.047821044921875, -0.054412841796875, -0.03155517578125, -0.0557861328125, 0.001079559326171875, -0.0069427490234375, 0.007534027099609375, -0.007434844970703125, -0.02166748046875, -0.04608154296875, 0.03582763671875, 0.042816162109375, 0.021484375, -0.01117706298828125, 0.026580810546875, 0.007335662841796875, 0.042022705078125, 0.0095367431640625, 0.01184844970703125, 0.0179443359375, -0.0330810546875, 0.0041961669921875, -0.05023193359375, -0.03399658203125, -0.0372314453125, 0.006679534912109375, 0.048797607421875, 0.03192138671875, -0.00371551513671875, 0.0268707275390625, -0.0034694671630859375, 0.016876220703125, -0.00910186767578125, -0.036102294921875, -0.0217742919921875, -0.005985260009765625, 0.0239715576171875, 0.01357269287109375, 0.0124053955078125, -0.01342010498046875, -0.0129852294921875, -0.005496978759765625, 0.025604248046875, -0.00423431396484375, -0.0273895263671875, -0.01178741455078125, 0.0042724609375, 0.02294921875, 0.019805908203125, 0.03338623046875, -0.00299072265625, 0.033905029296875, 0.0032596588134765625, -0.0115814208984375, -0.038360595703125, -0.0157470703125, 0.030609130859375, -0.0025043487548828125, -0.034088134765625, 0.02685546875, -0.0274505615234375, 0.0226898193359375, 0.09002685546875, 0.09796142578125, -0.099365234375, 0.0018205642700195312, 0.030517578125, -0.0228729248046875, 0.01074981689453125, -0.00021255016326904297, -0.04534912109375, -0.042633056640625, 0.0201873779296875, -0.0215301513671875, -0.03741455078125, -0.0008411407470703125, 0.0095672607421875, -0.0002593994140625, -0.0008859634399414062, 0.0465087890625, 0.028167724609375, -0.00107574462890625, 0.01445770263671875, -0.01114654541015625, 0.039581298828125, -0.0205230712890625, 0.0361328125, -0.0158233642578125, 0.0029697418212890625, -0.0216064453125, 0.0401611328125, -0.02197265625, 0.006061553955078125, 0.048370361328125, -0.00530242919921875, 0.00794219970703125, 0.0202789306640625, -0.013916015625, 0.0084381103515625, -0.0164031982421875, -0.0072021484375, -0.0413818359375, -0.03314208984375, 0.015228271484375, 0.0362548828125, -0.042388916015625, 0.02545166015625, -0.0184173583984375, -0.02587890625, -0.0072479248046875, -0.0110931396484375, 0.134033203125, -0.04278564453125, -0.0253448486328125, 0.0181121826171875, -0.035675048828125, -0.00733184814453125, -0.01445770263671875, 0.00801849365234375, -0.04742431640625, -0.01099395751953125, -0.0135040283203125, -0.03070068359375, 0.01525115966796875, -0.01904296875, -0.032196044921875, 0.07330322265625, 0.01983642578125, -0.0225677490234375, -0.0005369186401367188, 0.054473876953125, -0.034332275390625, 0.032379150390625, -0.03472900390625, 0.039031982421875, -0.01448822021484375, -0.0164947509765625, -0.03326416015625, 0.0183258056640625, -0.033355712890625, -0.023956298828125, 0.0828857421875, 0.01324462890625, 0.01824951171875, 0.00608062744140625, 0.0784912109375, 0.03094482421875, -0.0256195068359375, 0.0036945343017578125, 0.00927734375, 0.03826904296875, 0.057342529296875, -0.0279693603515625, 0.040557861328125, 0.00276947021484375, -0.01013946533203125, 0.01629638671875, 0.00438690185546875, -0.00878143310546875, -0.0008096694946289062, -0.022979736328125, -0.0306549072265625, 0.0019102096557617188, 0.0016155242919921875, 0.0675048828125, 0.0078887939453125, 0.0333251953125, 0.0129547119140625, -0.01381683349609375, -0.01401519775390625, -0.0214385986328125, 0.039520263671875, -0.0105743408203125, 0.0399169921875, 0.0229339599609375, 0.01450347900390625, 0.01534271240234375, -0.0271148681640625, 0.021270751953125, 0.00972747802734375, -0.034912109375, 0.0114898681640625, -0.0341796875, 0.00847625732421875, -0.06744384765625, 0.01309967041015625, 0.05340576171875, 0.039459228515625, -0.0248565673828125, -0.05474853515625, 0.0164031982421875, 0.036773681640625, 0.0164947509765625, 0.0298614501953125, 0.04132080078125, -0.032684326171875, 0.036529541015625, -0.0213470458984375, -0.00675201416015625, 0.004978179931640625, 0.00959014892578125, -0.0251007080078125, -0.0222930908203125, 0.023895263671875, -0.01369476318359375, -0.0347900390625, 0.00162506103515625, -0.00893402099609375, 0.06658935546875, 0.034942626953125, 0.04718017578125, -0.044219970703125, -0.0357666015625, -0.0139312744140625, 0.045379638671875, 0.0036792755126953125, 0.00881195068359375, -0.019561767578125, -0.04046630859375, 0.044921875, 0.018035888671875, 0.005504608154296875, 0.007160186767578125, 0.0226287841796875, 0.029754638671875, -0.0008230209350585938, -0.00786590576171875, 0.07568359375, -0.00556182861328125, -0.0268096923828125, -0.0501708984375, -0.007568359375, 0.004230499267578125, -0.00469207763671875, 0.03692626953125, -0.0203094482421875, 0.030548095703125, -0.01335906982421875, 0.02252197265625, 0.007480621337890625, -0.01568603515625, 0.0654296875, 0.00684356689453125, 0.050506591796875, 0.0252227783203125, -0.043365478515625, -0.020111083984375, -0.0058746337890625, -0.06585693359375, 0.03314208984375, 0.0556640625, 0.005306243896484375, -0.02313232421875, 0.055633544921875, -0.0186004638671875, 0.0220794677734375, -0.0018253326416015625, 0.02166748046875, -0.0053253173828125, 0.01555633544921875, 0.007381439208984375, -0.060455322265625, -0.0195465087890625, -0.041717529296875, 0.032958984375, 0.01390838623046875, 0.10552978515625, -0.0275421142578125, 0.02862548828125, -0.019317626953125, 0.02850341796875, -0.038116455078125, -0.02191162109375, 0.02398681640625, 0.01177215576171875, 0.00446319580078125, -0.0043792724609375, 0.00246429443359375, -0.022674560546875, 0.017913818359375, -0.07147216796875, -0.050994873046875, -0.01270294189453125, 0.03338623046875, 0.028839111328125, -0.0008940696716308594, -0.0274200439453125, -0.022216796875, -0.002208709716796875, -0.02093505859375, -0.00275421142578125, -0.01206207275390625, 0.01947021484375, 0.031890869140625, -0.032928466796875, -0.050262451171875, 0.0211944580078125, -0.0740966796875, 0.014556884765625, 0.0184783935546875, 0.0083160400390625, -0.02410888671875, 0.01177978515625, -0.0189208984375, -0.002796173095703125, 0.01094818115234375, 0.0158538818359375, 0.0180511474609375, -0.06207275390625, 0.0015087127685546875, 0.01262664794921875, 0.0280914306640625, -0.02545166015625, 0.00945281982421875, 0.016357421875, -0.00891876220703125, 0.0130157470703125, -0.00007611513137817383, -0.0250244140625, -0.0498046875, 0.01306915283203125, 0.00911712646484375, -0.0020542144775390625, -0.032562255859375, -0.020782470703125, -0.01239776611328125, 0.0477294921875, -0.0040283203125, -0.0078125, -0.0201568603515625, -0.0255584716796875, -0.004520416259765625, 0.0238800048828125, -0.053985595703125, 0.0253143310546875, 0.077880859375, 0.0028743743896484375, -0.0162200927734375, -0.004024505615234375, -0.008392333984375, -0.00042366981506347656, 0.042083740234375, 0.053436279296875, -0.060546875, -0.041351318359375, 0.038787841796875, 0.0574951171875, 0.07427978515625, 0.091064453125, -0.0217742919921875, 0.004787445068359375, -0.01519012451171875, -0.0185546875, -0.035888671875, 0.01306915283203125, -0.03204345703125, -0.043426513671875, -0.0589599609375, 0.05303955078125, 0.05474853515625, -0.0275421142578125, -0.0845947265625, 0.027435302734375, -0.03619384765625, -0.030242919921875, -0.07073974609375, 0.00826263427734375, 0.0164031982421875, 0.0099334716796875, -0.0248870849609375, -0.033721923828125, -0.05328369140625, 0.031951904296875, 0.0031604766845703125, 0.04742431640625, 0.014678955078125, 0.02679443359375, -0.01806640625, 0.01324462890625, -0.0026073455810546875, 0.004077911376953125, 0.0183258056640625, 0.001636505126953125, 0.0250396728515625, 0.03802490234375, -0.030120849609375, 0.03741455078125, -0.00653076171875, 0.007801055908203125, -0.0226593017578125, -0.05206298828125, 0.00426483154296875, 0.006191253662109375, 0.04583740234375, 0.048583984375, -0.00812530517578125, -0.03643798828125, 0.00878143310546875, -0.024200439453125, -0.0482177734375, -0.0168609619140625, 0.024200439453125, -0.0665283203125, -0.0157012939453125, 0.016265869140625, 0.0207366943359375, -0.005596160888671875, 0.0119781494140625, 0.009979248046875, -0.0238494873046875, 0.026092529296875, -0.0200042724609375, -0.0305023193359375, 0.0107421875, 0.033172607421875, -0.01428985595703125, 0.01190185546875, 0.0208892822265625, 0.0005402565002441406, 0.023223876953125, 0.064697265625, -0.0080108642578125, -0.0123748779296875, -0.0224456787109375, 0.032135009765625, -0.01097869873046875, 0.039642333984375, -0.0308380126953125, -0.00445556640625, -0.00652313232421875, 0.0296630859375, 0.0035419464111328125, 0.034515380859375, -0.0321044921875, 0.044677734375, 0.01244354248046875, 0.030303955078125, 0.038848876953125, -0.050689697265625, -0.01080322265625, 0.0272369384765625, -0.00751495361328125, -0.02984619140625, -0.0015211105346679688, -0.0276947021484375, 0.0225830078125, -0.0204620361328125, 0.01192474365234375, -0.0203399658203125, -0.00018024444580078125, 0.023956298828125, -0.0112152099609375, 0.0193939208984375 ]
2ad0da19027d08e11c3e9c777d78ce1a463e8f84
Wordpress Stackexchange Q: Sort Custom Taxonomy Terms in admin by custom order This question was discussed on here and I believe here as well, but I was wondering if anyone knew of any updates to this since then? To clarify, I currently have a custom taxonomy called 'Days of Week' so I only use seven terms (Monday, Tuesday, Wednesday etc.) but under hiearchical=>true, WordPress lists them in an alphabetical order instead. * *Friday *Monday *Saturday *Sunday *Thursday *Tuesday *Wednesday Normally this wouldn't be an issue, but given that some users of the site might find it confusing, I thought I'd ask to see if anyone had any ideas? Thanks in advance! A: I have a new answer for this, use my brand new plugin: http://wordpress.org/extend/plugins/custom-taxonomy-sort/. I hope this helps with this issue.
Q: Sort Custom Taxonomy Terms in admin by custom order This question was discussed on here and I believe here as well, but I was wondering if anyone knew of any updates to this since then? To clarify, I currently have a custom taxonomy called 'Days of Week' so I only use seven terms (Monday, Tuesday, Wednesday etc.) but under hiearchical=>true, WordPress lists them in an alphabetical order instead. * *Friday *Monday *Saturday *Sunday *Thursday *Tuesday *Wednesday Normally this wouldn't be an issue, but given that some users of the site might find it confusing, I thought I'd ask to see if anyone had any ideas? Thanks in advance! A: I have a new answer for this, use my brand new plugin: http://wordpress.org/extend/plugins/custom-taxonomy-sort/. I hope this helps with this issue. A: The Term Menu Order plugin seems like it would do the trick just fine here. I am also about to release a new plugin to handle this type of an issue (hopefully in the next week). I also wrote a blog post about it that will be up later next week. I'll keep you updated. In the meantime, I think the Term Menu Order should work just fine. Actually, if you contact me through http://www.zackdev.com/, I'll send you a "beta" of the plugin. It's working well right now, I'm just spending time improving the documentation, internationalization and otherwise making the plugin awesome. A: The Category Order and Taxonomy Terms Order allow you to define custom taxonomy terms within the admin through an drag and drop interface. Going to build the code will not be easy, you should check with this plugin code to see on how can be done
wordpress
{ "language": "en", "length": 280, "provenance": "stackexchange_00019.jsonl.gz:410914", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21798" }
[ 0.038482666015625, -0.005584716796875, -0.049346923828125, -0.0220794677734375, 0.01306915283203125, -0.053131103515625, 0.0269622802734375, 0.009765625, 0.01137542724609375, 0.007526397705078125, -0.016815185546875, -0.0268096923828125, -0.0272674560546875, -0.02593994140625, -0.02899169921875, -0.060546875, 0.032135009765625, -0.0189361572265625, 0.01386260986328125, -0.016937255859375, 0.0005645751953125, -0.003932952880859375, 0.0399169921875, 0.01561737060546875, 0.045806884765625, -0.056915283203125, 0.01259613037109375, -0.036773681640625, 0.041168212890625, 0.006267547607421875, 0.0282440185546875, -0.01473236083984375, 0.013427734375, -0.00925445556640625, 0.0138397216796875, -0.0400390625, 0.041351318359375, -0.0134735107421875, -0.00916290283203125, 0.0267181396484375, 0.0203704833984375, 0.004497528076171875, 0.0211944580078125, 0.06903076171875, -0.0020923614501953125, -0.056488037109375, 0.035400390625, -0.0286102294921875, 0.01245880126953125, -0.033660888671875, 0.0238800048828125, -0.0048675537109375, 0.046417236328125, -0.0298919677734375, -0.02471923828125, -0.018524169921875, 0.0084991455078125, 0.01371002197265625, 0.03131103515625, -0.051422119140625, -0.037872314453125, -0.0006422996520996094, 0.04302978515625, 0.037261962890625, -0.0107879638671875, 0.01119232177734375, -0.000053763389587402344, 0.0202484130859375, -0.059906005859375, -0.027618408203125, 0.0240020751953125, -0.032470703125, 0.035400390625, -0.0189361572265625, 0.00750732421875, -0.078369140625, -0.012969970703125, -0.054229736328125, 0.0251312255859375, 0.007106781005859375, 0.0238494873046875, -0.0287933349609375, 0.009002685546875, 0.01168060302734375, 0.01010894775390625, 0.0301055908203125, -0.01422119140625, -0.02362060546875, 0.00981903076171875, -0.04705810546875, 0.0034637451171875, -0.004161834716796875, -0.051483154296875, 0.0211944580078125, -0.0059356689453125, -0.04205322265625, 0.0061492919921875, 0.01143646240234375, -0.03387451171875, -0.035369873046875, -0.016021728515625, -0.005481719970703125, -0.041900634765625, -0.00530242919921875, 0.005550384521484375, -0.022216796875, 0.00727081298828125, 0.0182952880859375, 0.04742431640625, 0.035003662109375, -0.023773193359375, 0.05316162109375, 0.00934600830078125, -0.007534027099609375, -0.00370025634765625, -0.0191802978515625, -0.0200958251953125, 0.0219573974609375, 0.0017910003662109375, -0.0192718505859375, 0.0200347900390625, 0.0382080078125, -0.0123443603515625, -0.039398193359375, 0.0018186569213867188, -0.00850677490234375, -0.032806396484375, -0.019866943359375, 0.0034313201904296875, 0.024200439453125, -0.0333251953125, 0.020111083984375, 0.046844482421875, -0.013153076171875, -0.00559234619140625, -0.019317626953125, 0.03094482421875, -0.0029888153076171875, -0.007568359375, 0.0146636962890625, -0.003795623779296875, -0.011932373046875, 0.013916015625, -0.01171875, 0.01255035400390625, 0.0030918121337890625, 0.002349853515625, 0.014434814453125, 0.02276611328125, -0.0211029052734375, 0.0087127685546875, -0.0075531005859375, 0.0704345703125, -0.00479888916015625, -0.062408447265625, 0.01206207275390625, -0.009490966796875, -0.0105743408203125, -0.06671142578125, -0.0316162109375, -0.0006761550903320312, -0.0012912750244140625, -0.00495147705078125, 0.0006375312805175781, -0.004024505615234375, 0.01398468017578125, -0.00803375244140625, 0.0027179718017578125, 0.02203369140625, -0.064453125, 0.05731201171875, -0.037933349609375, 0.0214691162109375, -0.00014972686767578125, 0.00701904296875, 0.034912109375, 0.0130157470703125, -0.059967041015625, 0.00807952880859375, 0.0472412109375, -0.0203094482421875, -0.01806640625, -0.030792236328125, -0.002246856689453125, -0.04754638671875, 0.002025604248046875, -0.01325225830078125, 0.0228424072265625, 0.043487548828125, 0.010345458984375, 0.010345458984375, 0.0012140274047851562, -0.0357666015625, 0.07867431640625, 0.0112152099609375, -0.012725830078125, -0.051055908203125, 0.03546142578125, -0.01201629638671875, -0.08880615234375, -0.0277099609375, 0.0167694091796875, -0.01416778564453125, 0.01206207275390625, -0.03326416015625, 0.0277252197265625, -0.0193634033203125, 0.05010986328125, -0.0242767333984375, 0.017333984375, 0.01311492919921875, -0.00704193115234375, -0.00926971435546875, -0.0347900390625, 0.000091552734375, 0.0021762847900390625, 0.026458740234375, 0.0241546630859375, 0.011016845703125, 0.021148681640625, 0.002315521240234375, -0.01050567626953125, -0.0002474784851074219, 0.04534912109375, 0.0023040771484375, 0.030792236328125, -0.038330078125, 0.01023101806640625, -0.01342010498046875, 0.040069580078125, -0.028839111328125, 0.015869140625, 0.059814453125, 0.070556640625, -0.021881103515625, 0.002033233642578125, 0.01220703125, -0.039154052734375, -0.0045623779296875, 0.0295562744140625, 0.0135040283203125, 0.00191497802734375, -0.0245361328125, 0.007251739501953125, 0.038177490234375, -0.02398681640625, -0.00443267822265625, 0.006744384765625, -0.00894927978515625, 0.024444580078125, 0.005565643310546875, 0.0108795166015625, 0.01934814453125, 0.0003314018249511719, -0.0025424957275390625, 0.041046142578125, -0.022857666015625, -0.052825927734375, 0.0440673828125, -0.0172119140625, 0.03387451171875, -0.0257720947265625, -0.048919677734375, 0.0030727386474609375, 0.01904296875, 0.021392822265625, 0.048187255859375, 0.0496826171875, -0.0108795166015625, -0.01422882080078125, 0.005573272705078125, 0.012725830078125, -0.0037860870361328125, 0.0019197463989257812, 0.0066986083984375, -0.006603240966796875, -0.04327392578125, 0.029449462890625, 0.01256561279296875, 0.00469970703125, 0.0111083984375, 0.034271240234375, -0.00843048095703125, 0.0009531974792480469, -0.01148223876953125, -0.065185546875, 0.01422882080078125, 0.0633544921875, -0.06427001953125, -0.03759765625, -0.0106964111328125, 0.058074951171875, -0.025054931640625, 0.006633758544921875, -0.0184173583984375, 0.012115478515625, -0.055389404296875, -0.001445770263671875, 0.0278167724609375, -0.053680419921875, -0.0254669189453125, 0.0430908203125, -0.0019550323486328125, -0.0096435546875, 0.00304412841796875, 0.005443572998046875, 0.01739501953125, 0.01425933837890625, 0.00328826904296875, 0.005794525146484375, -0.066650390625, -0.01105499267578125, 0.028076171875, 0.062286376953125, -0.0243988037109375, -0.04327392578125, -0.001087188720703125, 0.021728515625, -0.06024169921875, -0.08380126953125, -0.0205535888671875, 0.0092926025390625, 0.0133056640625, 0.006916046142578125, 0.01971435546875, -0.0191802978515625, -0.0030460357666015625, 0.00914764404296875, 0.00069427490234375, -0.01190948486328125, -0.0210418701171875, -0.03228759765625, -0.0360107421875, 0.0118865966796875, 0.0145263671875, 0.0103912353515625, 0.0033855438232421875, 0.09912109375, 0.0147552490234375, -0.06878662109375, -0.0015010833740234375, -0.00548553466796875, 0.006015777587890625, 0.04180908203125, 0.043304443359375, -0.041839599609375, -0.002899169921875, -0.000820159912109375, 0.037811279296875, 0.048553466796875, -0.052764892578125, 0.00023996829986572266, -0.0252227783203125, 0.00798797607421875, 0.00904083251953125, -0.03460693359375, 0.014495849609375, 0.04949951171875, -0.001750946044921875, -0.0197906494140625, 0.032806396484375, 0.00972747802734375, 0.0275726318359375, 0.00449371337890625, -0.06683349609375, -0.01519775390625, 0.013916015625, 0.029327392578125, -0.031524658203125, -0.0226898193359375, -0.033935546875, -0.0340576171875, 0.0119476318359375, 0.0139617919921875, 0.01508331298828125, 0.039520263671875, -0.017852783203125, -0.037109375, 0.01355743408203125, -0.00856781005859375, 0.013397216796875, -0.01233673095703125, 0.035797119140625, -0.03839111328125, -0.042388916015625, 0.043121337890625, -0.035125732421875, 0.004169464111328125, -0.0283203125, -0.02716064453125, 0.0245361328125, 0.101806640625, -0.0400390625, -0.005191802978515625, 0.022003173828125, 0.013671875, -0.04156494140625, 0.0037097930908203125, -0.06719970703125, -0.013916015625, -0.11090087890625, 0.00356292724609375, 0.014373779296875, -0.046600341796875, -0.034271240234375, 0.04376220703125, -0.09185791015625, -0.03680419921875, 0.01558685302734375, -0.040008544921875, 0.0088653564453125, 0.0225677490234375, 0.0133514404296875, -0.00949859619140625, -0.0106201171875, -0.014434814453125, -0.0787353515625, -0.00839996337890625, -0.0142059326171875, 0.0391845703125, 0.0179595947265625, -0.0201416015625, -0.0004112720489501953, 0.058685302734375, -0.00722503662109375, 0.01372528076171875, 0.0301361083984375, 0.0176544189453125, 0.040802001953125, 0.00908660888671875, 0.021575927734375, -0.0283355712890625, 0.004154205322265625, -0.0236358642578125, -0.01314544677734375, -0.004512786865234375, -0.0272674560546875, 0.021392822265625, -0.0194854736328125, -0.0200653076171875, -0.006084442138671875, -0.004619598388671875, -0.053619384765625, 0.005687713623046875, -0.008758544921875, -0.03643798828125, -0.0090484619140625, -0.034423828125, 0.0165557861328125, -0.00595855712890625, -0.0294189453125, 0.0178070068359375, 0.06329345703125, 0.0236358642578125, -0.005413055419921875, -0.06597900390625, -0.0089874267578125, 0.056243896484375, 0.0179443359375, -0.0287017822265625, -0.01432037353515625, -0.064697265625, 0.0394287109375, 0.00688934326171875, -0.02191162109375, -0.0012769699096679688, 0.032196044921875, -0.01446533203125, -0.03704833984375, 0.0105438232421875, -0.043701171875, 0.052764892578125, -0.00534820556640625, -0.006381988525390625, -0.07330322265625, -0.0210113525390625, 0.1016845703125, -0.002475738525390625, 0.046539306640625, -0.07342529296875, -0.033599853515625, 0.023773193359375, -0.057861328125, -0.00939178466796875, 0.0196533203125, -0.0267791748046875, -0.01134490966796875, -0.05291748046875, 0.0179595947265625, 0.0286407470703125, 0.01715087890625, -0.01026153564453125, 0.0309906005859375, 0.044891357421875, 0.01445770263671875, 0.017852783203125, -0.016082763671875, 0.09478759765625, -0.007843017578125, -0.05615234375, -0.0006093978881835938, -0.0224609375, -0.048065185546875, 0.0242919921875, -0.04998779296875, 0.0013637542724609375, -0.00832366943359375, 0.01042938232421875, 0.04437255859375, -0.07135009765625, -0.003963470458984375, -0.0141143798828125, -0.008453369140625, 0.028289794921875, -0.03936767578125, 0.002277374267578125, 0.0321044921875, -0.00804901123046875, -0.00007545948028564453, -0.0113525390625, 0.02984619140625, 0.0235595703125, 0.0304412841796875, -0.00206756591796875, 0.0156707763671875, -0.01177215576171875, -0.0062255859375, 0.017669677734375, 0.00661468505859375, -0.00820159912109375, -0.028594970703125, -0.052215576171875, 0.00019741058349609375, 0.033294677734375, 0.047210693359375, 0.051788330078125, -0.022216796875, 0.01502227783203125, 0.033477783203125, -0.005825042724609375, -0.0204620361328125, -0.047454833984375, -0.01314544677734375, 0.025909423828125, -0.0189361572265625, 0.0068511962890625, -0.043426513671875, 0.00455474853515625, -0.038604736328125, 0.0106964111328125, -0.02764892578125, -0.039154052734375, -0.052703857421875, 0.0212554931640625, 0.035186767578125, -0.09649658203125, -0.112548828125, 0.0174102783203125, 0.01119232177734375, 0.039093017578125, -0.0279388427734375, 0.06976318359375, -0.007778167724609375, -0.033477783203125, 0.0034332275390625, 0.027069091796875, 0.0208282470703125, 0.0025501251220703125, -0.078125, 0.007389068603515625, -0.043548583984375, -0.0008807182312011719, -0.069580078125, -0.047332763671875, -0.0406494140625, 0.0172271728515625, 0.005401611328125, -0.00562286376953125, -0.00897979736328125, -0.040618896484375, 0.0211639404296875, 0.0065460205078125, 0.00328826904296875, -0.068603515625, -0.016387939453125, 0.021636962890625, 0.00791168212890625, 0.0228729248046875, -0.000005841255187988281, -0.012786865234375, -0.01824951171875, -0.0167388916015625, -0.01019287109375, -0.07293701171875, -0.036529541015625, 0.040985107421875, -0.0628662109375, 0.0269317626953125, -0.01154327392578125, -0.004192352294921875, 0.0217437744140625, -0.002532958984375, -0.005191802978515625, -0.007503509521484375, 0.0004425048828125, 0.0004284381866455078, 0.0238494873046875, -0.006744384765625, -0.01678466796875, 0.030242919921875, 0.01253509521484375, -0.0033111572265625, 0.031494140625, -0.018951416015625, 0.034393310546875, 0.004669189453125, 0.00498199462890625, 0.024871826171875, 0.016998291015625, 0.015777587890625, 0.045501708984375, 0.01338958740234375, 0.0450439453125, 0.0012159347534179688, 0.0114593505859375, 0.00991058349609375, -0.03314208984375, 0.02337646484375, -0.0222930908203125, -0.026458740234375, -0.0067138671875, -0.032989501953125, -0.0216217041015625, 0.0236663818359375, 0.0243072509765625, -0.06646728515625, 0.027252197265625, 0.0019311904907226562, 0.00885772705078125, 0.02099609375, 0.01715087890625, -0.013763427734375, -0.01509857177734375, 0.007099151611328125, -0.0277099609375, -0.0236968994140625, 0.0032825469970703125, 0.0006184577941894531, -0.0017290115356445312, -0.006145477294921875, 0.00432586669921875, 0.006191253662109375, -0.0220947265625, -0.0016117095947265625, -0.0016984939575195312, 0.01345062255859375, -0.02850341796875, 0.0419921875, 0.0062255859375, 0.03253173828125, -0.0294036865234375, 0.056427001953125, -0.027008056640625, 0.00041866302490234375, -0.0085296630859375, -0.01343536376953125, 0.021087646484375, 0.048309326171875, -0.0235137939453125, -0.00225067138671875, 0.01074981689453125, -0.0418701171875, -0.0087890625, -0.01739501953125, 0.00833892822265625, -0.019256591796875, 0.0077362060546875, 0.0122528076171875, -0.005321502685546875, -0.044189453125, -0.00463104248046875, -0.0298004150390625, 0.04705810546875, -0.0557861328125, 0.010345458984375, 0.01036834716796875, 0.02972412109375, 0.01306915283203125, 0.0247650146484375, 0.02423095703125, -0.05096435546875, -0.0341796875, 0.02569580078125, -0.021453857421875, 0.00630950927734375, 0.03436279296875, -0.05584716796875, 0.105712890625, 0.00637054443359375, 0.02008056640625, -0.0058746337890625, 0.047088623046875, -0.025604248046875, 0.036102294921875, -0.01366424560546875, -0.00507354736328125, 0.015228271484375, -0.0211334228515625, -0.039642333984375, -0.01506805419921875, -0.03955078125, 0.042144775390625, 0.0186309814453125, -0.0084228515625, -0.0718994140625, 0.03704833984375, 0.11114501953125, 0.059356689453125, 0.056060791015625, 0.03704833984375, -0.007762908935546875, 0.0100250244140625, 0.0141143798828125, 0.021514892578125, 0.043212890625, -0.005710601806640625, -0.0677490234375, 0.011749267578125, 0.0204620361328125, 0.03271484375, -0.028533935546875, -0.01047515869140625, -0.02850341796875, -0.0230560302734375, 0.037017822265625, -0.028472900390625, 0.0031490325927734375, 0.00988006591796875, -0.0170135498046875, -0.050262451171875, -0.0296478271484375, -0.00525665283203125, 0.02691650390625, -0.0282745361328125, 0.052154541015625, 0.04473876953125, 0.04052734375, 0.04852294921875, -0.07293701171875, 0.0256805419921875, -0.0213775634765625, -0.06640625, 0.040924072265625, -0.024505615234375, 0.01396942138671875, -0.080810546875, -0.0080108642578125, 0.0277557373046875, 0.0645751953125, -0.038665771484375, -0.01445770263671875, 0.01226043701171875, -0.01363372802734375, 0.0125732421875, -0.028533935546875, -0.006000518798828125, 0.0400390625, 0.0242919921875, -0.04595947265625, -0.0108184814453125, 0.015380859375, 0.043212890625, -0.01190185546875, -0.00540924072265625, -0.03118896484375, -0.0275421142578125, -0.032989501953125, 0.00617218017578125, 0.026336669921875, 0.056488037109375, 0.023468017578125, 0.04132080078125, -0.0231170654296875, -0.0208587646484375, 0.01180267333984375, 0.043304443359375, -0.01068115234375, -0.016448974609375, 0.00048041343688964844, -0.043212890625, -0.035888671875, 0.0189666748046875, -0.028717041015625, -0.01482391357421875, -0.018585205078125, 0.03607177734375, 0.0285491943359375, -0.0167388916015625, 0.05810546875, -0.0040740966796875, -0.04998779296875, -0.047332763671875, 0.03851318359375, 0.052886962890625, 0.03546142578125, 0.027069091796875, 0.0117340087890625, 0.060638427734375, -0.0167083740234375, 0.0284576416015625, 0.00820159912109375, -0.005435943603515625, 0.016143798828125, -0.01505279541015625, 0.01136016845703125, 0.01538848876953125, -0.0706787109375, 0.002231597900390625, -0.0433349609375, -0.0560302734375, 0.01538848876953125, 0.0278778076171875, -0.007114410400390625, 0.0018758773803710938, 0.032379150390625, -0.034942626953125, -0.0035800933837890625, 0.035552978515625, 0.0020351409912109375, -0.01195526123046875, 0.0218963623046875, -0.0141754150390625, -0.08160400390625, -0.0311126708984375, -0.03521728515625, 0.01690673828125, 0.0121612548828125, 0.06939697265625, 0.01404571533203125, 0.0183563232421875, -0.016265869140625, 0.02105712890625, -0.039764404296875, -0.0328369140625, 0.05975341796875, -0.01264190673828125, -0.017608642578125, -0.0037994384765625, -0.046478271484375, -0.0273284912109375, 0.050537109375, -0.0474853515625, -0.0055694580078125, -0.00818634033203125, 0.024444580078125, -0.03472900390625, 0.052093505859375, -0.0262908935546875, -0.04339599609375, -0.0443115234375, -0.03326416015625, 0.01206207275390625, 0.0238494873046875, 0.0037059783935546875, 0.003520965576171875, 0.01192474365234375, -0.0399169921875, 0.03033447265625, -0.0160064697265625, 0.051025390625, 0.037689208984375, 0.0080108642578125, -0.0300140380859375, 0.00984954833984375, -0.01485443115234375, 0.0232086181640625, 0.0029144287109375, 0.0235443115234375, 0.0278472900390625, -0.0252532958984375, 0.036224365234375, 0.03460693359375, 0.048858642578125, -0.01209259033203125, 0.0037479400634765625, 0.03515625, -0.01141357421875, -0.0174713134765625, -0.0257568359375, -0.003124237060546875, -0.039093017578125, 0.00047087669372558594, 0.011322021484375, 0.008636474609375, 0.02984619140625, 0.01322174072265625, -0.009552001953125, 0.0338134765625, 0.002712249755859375, -0.014678955078125, 0.004177093505859375, -0.032135009765625, -0.0143890380859375, 0.01357269287109375, -0.048248291015625, 0.0015802383422851562, 0.00762176513671875, 0.0209808349609375, 0.004535675048828125, -0.04168701171875, 0.006015777587890625, -0.000823974609375, 0.0011129379272460938, 0.00024187564849853516, -0.0126190185546875, 0.0024623870849609375, 0.00775909423828125, 0.007709503173828125, 0.046051025390625, 0.034454345703125, 0.0035762786865234375, 0.0191497802734375, 0.007659912109375, -0.064697265625, -0.04742431640625, 0.0458984375, -0.0192108154296875, -0.028106689453125, -0.03717041015625, 0.02117919921875, 0.0252532958984375, -0.045135498046875, -0.08795166015625, 0.01806640625, -0.017578125, -0.038665771484375, -0.02020263671875, 0.01525115966796875, -0.0205841064453125, 0.0025577545166015625, -0.003536224365234375, 0.007045745849609375, 0.01157379150390625, 0.023651123046875, 0.0201263427734375, 0.04913330078125, 0.01102447509765625, 0.04052734375, -0.0158233642578125, 0.0144195556640625, -0.0162811279296875, -0.017974853515625, -0.0035247802734375, 0.006687164306640625, -0.0029392242431640625, 0.030242919921875, -0.02874755859375, -0.045318603515625, -0.0172271728515625, 0.00345611572265625, -0.0010423660278320312, -0.06658935546875, -0.04241943359375, -0.054412841796875, 0.050018310546875, 0.0312347412109375, 0.011871337890625, -0.006420135498046875, -0.023773193359375, -0.0264434814453125, 0.00881195068359375, -0.006465911865234375, -0.000408172607421875, -0.039947509765625, 0.013336181640625, -0.007511138916015625, -0.004161834716796875, 0.01302337646484375, 0.01702880859375, -0.02978515625, -0.00614166259765625, 0.0289764404296875, 0.0009112358093261719, -0.0831298828125, 0.048553466796875, -0.0179290771484375, -0.0135345458984375, 0.01245880126953125, -0.038116455078125, -0.003337860107421875, -0.022216796875, -0.03619384765625, -0.052825927734375, -0.0259552001953125, 0.036590576171875, 0.01470184326171875, 0.01318359375, -0.002452850341796875, 0.03179931640625, 0.0360107421875, -0.006671905517578125, 0.02239990234375, -0.0018854141235351562, -0.0007176399230957031, -0.01543426513671875, 0.041595458984375, 0.0017156600952148438, 0.042510986328125, -0.000766754150390625, 0.02783203125, -0.01125335693359375, 0.0214385986328125, -0.03948974609375, 0.0006909370422363281, 0.0006742477416992188, -0.0428466796875, 0.0174407958984375, 0.018585205078125, 0.009674072265625, 0.0029392242431640625, -0.0263824462890625, -0.02020263671875, -0.0024394989013671875, -0.00623321533203125 ]
69a786ad84383a4b7a34e6ba350d1b5df63a5588
Wordpress Stackexchange Q: Sticky Posts & Posts Per Page I notice that sticky posts will disregard the posts_per_page param? Like I have a query like $q = new WP_Query(array( 'posts_per_page' => 4, ... )); If there are 3 sticky posts, I will get 6 posts? (its abit strange tho why 6 not 7 (4+3)) I dont want to ignore sticky posts. How can I force the posts per page limit? eg, I have 10 sticky, I still get only 4 posts. One way I can think of is a counter that counts to 4 and exit the loop. But there isnt a WP way? This appears to be more of a bug to me?
Q: Sticky Posts & Posts Per Page I notice that sticky posts will disregard the posts_per_page param? Like I have a query like $q = new WP_Query(array( 'posts_per_page' => 4, ... )); If there are 3 sticky posts, I will get 6 posts? (its abit strange tho why 6 not 7 (4+3)) I dont want to ignore sticky posts. How can I force the posts per page limit? eg, I have 10 sticky, I still get only 4 posts. One way I can think of is a counter that counts to 4 and exit the loop. But there isnt a WP way? This appears to be more of a bug to me?
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:410959", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/21928" }
[ 0.07958984375, 0.01293182373046875, 0.01415252685546875, -0.0005917549133300781, 0.03668212890625, -0.0478515625, 0.08209228515625, -0.05419921875, 0.025604248046875, 0.00489044189453125, -0.058990478515625, -0.01416015625, -0.0028400421142578125, -0.0110931396484375, -0.0102691650390625, -0.03509521484375, 0.055694580078125, -0.022369384765625, 0.052642822265625, -0.00844573974609375, 0.017059326171875, 0.02459716796875, 0.058837890625, 0.0733642578125, 0.01715087890625, 0.0100860595703125, 0.044830322265625, -0.03338623046875, 0.0108795166015625, -0.02447509765625, 0.01502227783203125, -0.0037212371826171875, 0.021697998046875, 0.02362060546875, -0.035125732421875, -0.0258941650390625, 0.0333251953125, -0.0208892822265625, 0.00079345703125, 0.0159759521484375, 0.0214691162109375, -0.006298065185546875, 0.01337432861328125, 0.05133056640625, -0.02020263671875, -0.008453369140625, 0.00034499168395996094, -0.051422119140625, 0.04559326171875, -0.0260009765625, 0.024200439453125, 0.04034423828125, 0.034912109375, -0.0273284912109375, -0.0299072265625, 0.01308441162109375, 0.063720703125, -0.00342559814453125, 0.060302734375, -0.08392333984375, -0.08819580078125, -0.0150604248046875, 0.04803466796875, -0.016326904296875, -0.004077911376953125, -0.02740478515625, 0.004550933837890625, 0.01477813720703125, -0.00634002685546875, -0.0084686279296875, 0.037445068359375, 0.0002536773681640625, -0.0200347900390625, 0.0021533966064453125, -0.00589752197265625, -0.04730224609375, 0.03533935546875, -0.046630859375, -0.0167236328125, 0.04248046875, -0.00531768798828125, 0.008087158203125, -0.082275390625, -0.0056610107421875, 0.01363372802734375, 0.02008056640625, -0.0185546875, -0.0181121826171875, -0.023040771484375, -0.02166748046875, -0.01849365234375, -0.022613525390625, -0.012939453125, -0.001007080078125, -0.008544921875, -0.0269317626953125, -0.0008687973022460938, -0.0012569427490234375, -0.0010509490966796875, -0.0302581787109375, -0.018707275390625, -0.019439697265625, -0.05694580078125, 0.0095062255859375, 0.01971435546875, 0.0053863525390625, -0.0100555419921875, 0.025421142578125, 0.0714111328125, 0.034332275390625, 0.00128936767578125, 0.0609130859375, 0.01316070556640625, 0.015625, -0.0338134765625, -0.0303192138671875, -0.0212249755859375, 0.019195556640625, -0.00835418701171875, -0.0066375732421875, -0.005802154541015625, 0.0311279296875, -0.0300445556640625, -0.042205810546875, 0.0234375, -0.006450653076171875, -0.0031642913818359375, -0.00939178466796875, 0.0301361083984375, 0.01291656494140625, -0.0019893646240234375, 0.00235748291015625, -0.00110626220703125, 0.00872802734375, -0.01012420654296875, -0.0158233642578125, 0.0090179443359375, -0.0479736328125, -0.0197296142578125, 0.06610107421875, -0.0460205078125, -0.1051025390625, -0.0109405517578125, -0.023223876953125, 0.0238800048828125, 0.021697998046875, 0.027008056640625, 0.01812744140625, -0.012664794921875, -0.0279541015625, 0.0276947021484375, -0.007320404052734375, 0.0234527587890625, -0.0066986083984375, -0.062744140625, -0.0301666259765625, -0.05963134765625, 0.0070037841796875, 0.00807952880859375, -0.020355224609375, 0.0236968994140625, 0.01554107666015625, 0.0226898193359375, -0.0188446044921875, -0.0426025390625, -0.0255126953125, -0.05535888671875, -0.0037899017333984375, 0.01275634765625, 0.043670654296875, 0.0015735626220703125, -0.00034427642822265625, -0.0108489990234375, 0.00015604496002197266, -0.01515960693359375, -0.00885009765625, 0.003345489501953125, -0.023284912109375, 0.0222930908203125, 0.0281219482421875, -0.00299072265625, -0.0049591064453125, 0.03167724609375, -0.00182342529296875, -0.0291900634765625, -0.0213165283203125, 0.0223236083984375, 0.03131103515625, 0.01019287109375, 0.0252532958984375, 0.038177490234375, 0.0107879638671875, 0.0093536376953125, 0.0231475830078125, -0.027008056640625, -0.0213470458984375, -0.0172576904296875, 0.037567138671875, -0.026153564453125, -0.0176849365234375, -0.017578125, 0.0075836181640625, -0.0033740997314453125, 0.0230865478515625, -0.004558563232421875, -0.0006442070007324219, -0.003612518310546875, 0.01873779296875, -0.00859832763671875, 0.033111572265625, 0.02618408203125, 0.0103302001953125, -0.05145263671875, 0.007293701171875, -0.02197265625, -0.0167999267578125, -0.006404876708984375, 0.0237274169921875, -0.01904296875, 0.002109527587890625, 0.01155853271484375, -0.04107666015625, 0.005767822265625, 0.029052734375, 0.077392578125, -0.031982421875, 0.0020751953125, -0.04046630859375, 0.0288848876953125, 0.00389862060546875, -0.07342529296875, 0.04559326171875, 0.00540924072265625, 0.050750732421875, -0.021759033203125, -0.0006117820739746094, 0.00113677978515625, -0.01369476318359375, 0.005031585693359375, 0.0265350341796875, 0.044036865234375, -0.001392364501953125, 0.0005078315734863281, -0.00615692138671875, 0.0134735107421875, -0.076171875, 0.0047607421875, -0.00380706787109375, 0.004207611083984375, 0.0282745361328125, 0.0187835693359375, -0.003528594970703125, 0.0004336833953857422, -0.062469482421875, 0.0090789794921875, 0.018524169921875, 0.043853759765625, 0.0240936279296875, -0.05450439453125, 0.0716552734375, -0.0171051025390625, 0.053680419921875, 0.0140533447265625, 0.01227569580078125, 0.0013065338134765625, -0.00682830810546875, 0.0141754150390625, 0.01332855224609375, 0.005397796630859375, -0.01320648193359375, 0.01001739501953125, -0.019775390625, 0.0181427001953125, -0.0211944580078125, -0.0001901388168334961, -0.03533935546875, -0.042633056640625, 0.01702880859375, 0.046844482421875, -0.0225982666015625, -0.01031494140625, 0.039215087890625, 0.00675201416015625, -0.01154327392578125, -0.032989501953125, 0.005161285400390625, 0.0216522216796875, 0.0093841552734375, -0.005168914794921875, -0.01953125, 0.0016632080078125, 0.0251312255859375, 0.0012922286987304688, 0.0037136077880859375, 0.049530029296875, -0.024505615234375, -0.0252227783203125, -0.05682373046875, 0.061676025390625, -0.07171630859375, 0.021575927734375, 0.06707763671875, -0.031463623046875, 0.038238525390625, -0.0006995201110839844, 0.016021728515625, 0.018951416015625, 0.005252838134765625, -0.0087738037109375, 0.0034732818603515625, -0.028717041015625, 0.027801513671875, 0.02410888671875, 0.037322998046875, 0.02008056640625, -0.040740966796875, 0.031951904296875, 0.031158447265625, -0.05755615234375, -0.0704345703125, 0.0299072265625, -0.0804443359375, 0.0035533905029296875, -0.01751708984375, -0.04473876953125, -0.0181884765625, -0.00372314453125, -0.004199981689453125, -0.0379638671875, -0.006916046142578125, -0.040130615234375, -0.030792236328125, -0.0292205810546875, 0.0352783203125, -0.00814056396484375, 0.0212554931640625, -0.0010213851928710938, 0.08599853515625, 0.00018358230590820312, -0.08587646484375, -0.060791015625, 0.0063018798828125, -0.030731201171875, -0.0164642333984375, -0.01335906982421875, 0.01947021484375, 0.01349639892578125, -0.00975799560546875, -0.04058837890625, 0.02752685546875, -0.00347900390625, -0.00868988037109375, 0.0195159912109375, -0.04339599609375, 0.032806396484375, -0.004978179931640625, -0.0279541015625, 0.044921875, 0.049224853515625, -0.01476287841796875, -0.03131103515625, -0.0029315948486328125, -0.0633544921875, -0.034820556640625, 0.046234130859375, -0.01009368896484375, -0.01953125, -0.031829833984375, 0.029388427734375, -0.0091705322265625, -0.00992584228515625, -0.02410888671875, 0.056121826171875, 0.035003662109375, 0.05926513671875, -0.02679443359375, -0.0275115966796875, -0.032562255859375, 0.05096435546875, -0.00897979736328125, -0.0012903213500976562, -0.01308441162109375, 0.0565185546875, 0.01580810546875, -0.040679931640625, 0.048553466796875, 0.0026874542236328125, 0.0379638671875, -0.045501708984375, -0.04010009765625, -0.0231781005859375, 0.09295654296875, -0.02679443359375, -0.0159759521484375, -0.059356689453125, 0.00618743896484375, 0.0003542900085449219, -0.07061767578125, 0.0271759033203125, -0.01445770263671875, 0.0057373046875, -0.0005960464477539062, -0.00368499755859375, -0.006317138671875, -0.021240234375, 0.051513671875, -0.010101318359375, -0.005809783935546875, 0.0250701904296875, -0.0248870849609375, -0.02593994140625, -0.01092529296875, -0.00824737548828125, -0.050750732421875, -0.0015382766723632812, -0.00972747802734375, -0.0760498046875, -0.00920867919921875, 0.02667236328125, 0.033050537109375, -0.0206146240234375, -0.0282745361328125, -0.007541656494140625, 0.04412841796875, 0.01317596435546875, 0.047119140625, -0.03033447265625, -0.006500244140625, -0.04656982421875, -0.0244293212890625, -0.003162384033203125, -0.01212310791015625, -0.0211639404296875, -0.039093017578125, 0.006053924560546875, -0.008575439453125, -0.03466796875, 0.00922393798828125, -0.021209716796875, 0.007808685302734375, -0.054351806640625, -0.004093170166015625, -0.01073455810546875, 0.040771484375, -0.0089263916015625, 0.01245880126953125, -0.044189453125, -0.066650390625, 0.0518798828125, 0.01910400390625, -0.0222320556640625, 0.00400543212890625, 0.06585693359375, 0.0024509429931640625, -0.03314208984375, -0.0980224609375, 0.002437591552734375, 0.01416015625, 0.002376556396484375, 0.034210205078125, -0.004673004150390625, -0.006092071533203125, 0.0330810546875, -0.0161285400390625, 0.0166015625, -0.0513916015625, 0.01214599609375, -0.032073974609375, -0.00885009765625, 0.017578125, -0.053314208984375, 0.07769775390625, 0.00998687744140625, -0.0153350830078125, -0.0230712890625, -0.038055419921875, 0.047271728515625, 0.003604888916015625, 0.033538818359375, -0.0418701171875, -0.035919189453125, 0.005702972412109375, 0.00844573974609375, 0.0167388916015625, 0.0006222724914550781, 0.004077911376953125, 0.0169525146484375, 0.016510009765625, 0.00988006591796875, 0.06365966796875, 0.0814208984375, -0.01470947265625, 0.0517578125, 0.0452880859375, -0.01371002197265625, -0.01076507568359375, -0.006107330322265625, 0.025360107421875, 0.02679443359375, -0.0146026611328125, -0.005706787109375, -0.0219573974609375, -0.017822265625, -0.0290374755859375, 0.02777099609375, 0.0170135498046875, -0.00904083251953125, -0.0298004150390625, -0.0205841064453125, 0.0204315185546875, -0.0272064208984375, -0.0477294921875, 0.0225830078125, 0.01232147216796875, -0.0094451904296875, 0.0555419921875, 0.0210113525390625, -0.0276641845703125, 0.0389404296875, -0.0023212432861328125, 0.006107330322265625, 0.0122833251953125, 0.0186004638671875, 0.01947021484375, 0.006134033203125, -0.01546478271484375, 0.014495849609375, 0.01042938232421875, -0.0484619140625, -0.0128021240234375, 0.050506591796875, 0.0404052734375, -0.0170745849609375, -0.0216522216796875, -0.0019626617431640625, 0.0018949508666992188, -0.0199432373046875, 0.037628173828125, 0.01557159423828125, -0.058746337890625, -0.006885528564453125, 0.037353515625, 0.021453857421875, -0.0261383056640625, 0.025909423828125, -0.017913818359375, 0.01244354248046875, 0.0295562744140625, -0.042755126953125, 0.031463623046875, -0.03057861328125, -0.02435302734375, 0.0025424957275390625, -0.002353668212890625, -0.031890869140625, -0.0672607421875, -0.044830322265625, 0.01117706298828125, 0.017303466796875, 0.003772735595703125, -0.0125579833984375, 0.049774169921875, -0.006298065185546875, -0.046630859375, 0.0019817352294921875, 0.034454345703125, 0.0186767578125, 0.01114654541015625, 0.009552001953125, -0.022064208984375, -0.054168701171875, -0.050384521484375, -0.0114593505859375, -0.0024776458740234375, -0.042572021484375, 0.01192474365234375, 0.04974365234375, 0.032440185546875, 0.0117645263671875, -0.07574462890625, -0.06988525390625, -0.0225372314453125, 0.065185546875, 0.0007147789001464844, -0.0193328857421875, 0.056884765625, 0.00202178955078125, -0.005435943603515625, 0.005405426025390625, 0.0309906005859375, 0.0114288330078125, -0.019561767578125, -0.0016193389892578125, -0.06500244140625, -0.00826263427734375, 0.05767822265625, -0.0814208984375, -0.0274810791015625, -0.029571533203125, -0.0021076202392578125, 0.01195526123046875, -0.045074462890625, -0.004650115966796875, -0.0211029052734375, 0.031768798828125, -0.02099609375, -0.0413818359375, 0.048248291015625, 0.0023517608642578125, -0.007526397705078125, -0.0296173095703125, -0.01258087158203125, 0.0097198486328125, 0.01488494873046875, 0.01800537109375, -0.0272216796875, -0.01363372802734375, 0.0079803466796875, 0.046905517578125, 0.018280029296875, 0.043304443359375, -0.005115509033203125, 0.0243988037109375, 0.039337158203125, 0.0257110595703125, 0.003780364990234375, 0.0007419586181640625, 0.07501220703125, 0.01061248779296875, -0.00630950927734375, 0.04327392578125, -0.02386474609375, 0.0002982616424560547, 0.036407470703125, 0.009552001953125, -0.0657958984375, 0.00872802734375, -0.01617431640625, 0.0220947265625, 0.0253143310546875, -0.0005159378051757812, 0.0080413818359375, -0.028839111328125, 0.02288818359375, 0.0094146728515625, -0.0018072128295898438, 0.00893402099609375, -0.021697998046875, -0.0021514892578125, -0.019927978515625, 0.010894775390625, -0.00839996337890625, -0.041748046875, -0.0009126663208007812, 0.0196533203125, -0.01364898681640625, -0.0012655258178710938, -0.006061553955078125, -0.00000947713851928711, -0.00896453857421875, -0.038055419921875, 0.00771331787109375, -0.053375244140625, -0.015838623046875, 0.024444580078125, 0.0047760009765625, -0.01611328125, 0.06414794921875, -0.034881591796875, 0.0189971923828125, 0.0386962890625, -0.061737060546875, -0.022735595703125, -0.0307464599609375, 0.06512451171875, 0.0210723876953125, -0.06427001953125, 0.023101806640625, -0.0194091796875, -0.0389404296875, -0.028228759765625, -0.0545654296875, 0.09991455078125, -0.030029296875, -0.0005412101745605469, 0.0296630859375, 0.035430908203125, -0.034027099609375, -0.026885986328125, -0.0233612060546875, -0.037506103515625, 0.00943756103515625, -0.024383544921875, 0.00965118408203125, 0.0172271728515625, -0.020965576171875, -0.07470703125, 0.075927734375, -0.007061004638671875, 0.048370361328125, -0.01506805419921875, 0.0184326171875, -0.0006718635559082031, 0.004138946533203125, -0.067626953125, 0.04583740234375, 0.0347900390625, 0.07049560546875, -0.061920166015625, -0.0195770263671875, 0.013763427734375, 0.038360595703125, 0.0394287109375, -0.0013971328735351562, -0.035736083984375, 0.0157928466796875, 0.0777587890625, 0.05084228515625, 0.029754638671875, 0.031280517578125, 0.01197052001953125, 0.03009033203125, 0.071044921875, -0.03717041015625, 0.0249786376953125, -0.0007915496826171875, 0.0086669921875, 0.041473388671875, 0.011199951171875, -0.00788116455078125, -0.0194854736328125, 0.0496826171875, -0.0391845703125, 0.0035305023193359375, 0.0247955322265625, 0.0038433074951171875, 0.00778961181640625, 0.016265869140625, 0.02642822265625, -0.042144775390625, 0.00321197509765625, -0.031097412109375, 0.042755126953125, 0.01140594482421875, 0.020111083984375, 0.033355712890625, 0.01439666748046875, 0.0614013671875, -0.0037860870361328125, 0.0232086181640625, 0.022369384765625, -0.0174407958984375, 0.0692138671875, 0.004871368408203125, 0.04168701171875, -0.05120849609375, -0.0189361572265625, 0.029754638671875, 0.07763671875, -0.039398193359375, -0.05340576171875, 0.01192474365234375, -0.00717926025390625, -0.0133514404296875, -0.0206756591796875, -0.026702880859375, -0.0227508544921875, 0.0193939208984375, -0.0275115966796875, 0.00844573974609375, -0.0027618408203125, 0.035491943359375, 0.0009307861328125, 0.04583740234375, -0.050872802734375, -0.022430419921875, -0.0223541259765625, -0.00998687744140625, 0.00948333740234375, 0.040863037109375, 0.0201416015625, 0.00946044921875, -0.0237579345703125, -0.016845703125, 0.01352691650390625, 0.0216827392578125, -0.0302581787109375, -0.006908416748046875, -0.02496337890625, -0.054412841796875, -0.0225067138671875, 0.0292205810546875, 0.06561279296875, 0.0038604736328125, 0.0457763671875, 0.04510498046875, 0.022125244140625, -0.005962371826171875, -0.020263671875, -0.0004744529724121094, -0.03155517578125, 0.0002963542938232422, -0.03875732421875, 0.0024204254150390625, -0.01849365234375, -0.00738525390625, 0.022735595703125, 0.0124053955078125, 0.0020294189453125, 0.0206298828125, 0.016571044921875, 0.000579833984375, 0.043975830078125, 0.0435791015625, 0.02178955078125, 0.06561279296875, -0.04193115234375, -0.0107879638671875, -0.007747650146484375, -0.0221710205078125, 0.00409698486328125, 0.03997802734375, -0.017852783203125, 0.0160980224609375, 0.0042724609375, -0.000056624412536621094, -0.010284423828125, -0.01934814453125, 0.040008544921875, 0.01910400390625, -0.005130767822265625, 0.027374267578125, -0.05975341796875, -0.041473388671875, -0.00521087646484375, 0.0374755859375, -0.007709503173828125, 0.09344482421875, -0.01401519775390625, -0.00033283233642578125, 0.05078125, 0.034149169921875, 0.02734375, 0.0201568603515625, 0.047607421875, 0.00981903076171875, 0.021636962890625, -0.045806884765625, -0.0521240234375, 0.048614501953125, 0.03546142578125, -0.0095672607421875, 0.0194854736328125, 0.01459503173828125, -0.00396728515625, -0.0253753662109375, 0.0202178955078125, -0.018402099609375, 0.02410888671875, -0.0160980224609375, -0.053558349609375, 0.047027587890625, -0.024383544921875, 0.0018033981323242188, 0.052764892578125, 0.0191192626953125, 0.0013456344604492188, 0.0213165283203125, -0.04217529296875, 0.03814697265625, 0.0275421142578125, -0.0144195556640625, -0.005504608154296875, -0.00687408447265625, -0.022552490234375, -0.002429962158203125, 0.0172119140625, -0.006061553955078125, 0.010955810546875, -0.0181884765625, -0.0103759765625, 0.00568389892578125, 0.04254150390625, -0.028472900390625, 0.0029010772705078125, -0.0128326416015625, 0.0219268798828125, 0.01544952392578125, 0.0308074951171875, -0.0302886962890625, -0.0184478759765625, -0.0130157470703125, 0.00008940696716308594, -0.007709503173828125, -0.03363037109375, -0.04315185546875, -0.0396728515625, 0.024322509765625, 0.01898193359375, -0.044281005859375, 0.037109375, -0.01212310791015625, -0.0214080810546875, -0.007568359375, 0.0279083251953125, -0.00620269775390625, -0.0037384033203125, -0.041656494140625, 0.0167083740234375, -0.01345062255859375, 0.004974365234375, 0.0281524658203125, 0.0209503173828125, 0.0546875, -0.042724609375, -0.0215911865234375, -0.015838623046875, 0.023345947265625, 0.0236663818359375, 0.0234527587890625, -0.0075531005859375, 0.054534912109375, -0.01556396484375, -0.01482391357421875, -0.06964111328125, -0.00911712646484375, -0.058013916015625, 0.040374755859375, -0.0143890380859375, 0.006992340087890625, 0.005985260009765625, -0.036590576171875, -0.05303955078125, 0.016693115234375, -0.00440216064453125, -0.027618408203125, -0.04498291015625, -0.0033473968505859375, -0.00936126708984375, 0.007030487060546875, -0.004058837890625, -0.03338623046875, -0.018402099609375, 0.050018310546875, 0.01190185546875, -0.003116607666015625, 0.038543701171875, -0.010284423828125, -0.02105712890625, 0.0185699462890625, 0.0126495361328125, 0.0007982254028320312, 0.006866455078125, 0.006641387939453125, 0.043548583984375, 0.0682373046875, -0.01392364501953125, 0.038818359375, -0.008453369140625, -0.04974365234375, 0.016448974609375, 0.00868988037109375, -0.0450439453125, -0.0004172325134277344, 0.0504150390625, 0.05535888671875, 0.01203155517578125, -0.036773681640625, 0.033477783203125, -0.007144927978515625, -0.041107177734375, -0.00397491455078125, 0.00243377685546875, -0.02166748046875, 0.008880615234375, -0.0267181396484375, -0.017242431640625, 0.01617431640625, -0.016357421875, -0.03485107421875, 0.005298614501953125, -0.006866455078125, -0.009185791015625, -0.0084991455078125, -0.033477783203125, -0.016845703125, 0.006641387939453125, -0.0037670135498046875, -0.018524169921875, 0.03271484375, -0.0239105224609375, 0.04229736328125, -0.0005373954772949219, 0.017791748046875, -0.0165863037109375, 0.01456451416015625, 0.003902435302734375, 0.006076812744140625, -0.01302337646484375, 0.00319671630859375, 0.006130218505859375, 0.014129638671875, -0.005695343017578125, 0.0162506103515625, -0.0045623779296875, 0.031524658203125, -0.0015268325805664062, 0.054962158203125, 0.00937652587890625, 0.0386962890625, 0.01019287109375, 0.03228759765625, -0.0301513671875, -0.0139312744140625, -0.01448822021484375, -0.046356201171875, 0.013275146484375, 0.020263671875, -0.0164031982421875, -0.00235748291015625, -0.002529144287109375, -0.0012273788452148438, -0.0298919677734375, -0.00313568115234375 ]
5de64d223f7f46b9a2e1ce630127e7737755c791
Wordpress Stackexchange Q: Post thumbnail outside the loop I'm trying to get the post thumbnail in the sidebar which is in essence outside the loop. For some reason it seems impossible!!! I have tried all kinds of ways. Here is the wirking code: (I have edited the code now that I found it) global $wp_query; $post_id = $wp_query->post->ID; if (has_post_thumbnail( $post_id ) ): $image_id = get_post_thumbnail_id($post_id); $imazz = wp_get_attachment_image_src($image_id,'medium',true); $image_url = $imazz[0]; $image_url = '<img src="'.$image_url.'" alt="'.the_title().'" />'; else : php $image_url = '<img src="'.get_template_directory_uri().'/images/logo-pic-inv.jpg" width="500" height="333" alt="'.__("Δημοσιεύσεις","44db").'" />'; endif; I have also tried using the following code: get_the_post_thumbnail($post->ID); // using the post id and that get_the_post_thumbnail($post_id); // using the fetched post id any help would be very much appreciated. Thanks A: try: global $post; if (has_post_thumbnail( $post->ID ) ){ // get_the_post_thumbnail($post->ID); // }
Q: Post thumbnail outside the loop I'm trying to get the post thumbnail in the sidebar which is in essence outside the loop. For some reason it seems impossible!!! I have tried all kinds of ways. Here is the wirking code: (I have edited the code now that I found it) global $wp_query; $post_id = $wp_query->post->ID; if (has_post_thumbnail( $post_id ) ): $image_id = get_post_thumbnail_id($post_id); $imazz = wp_get_attachment_image_src($image_id,'medium',true); $image_url = $imazz[0]; $image_url = '<img src="'.$image_url.'" alt="'.the_title().'" />'; else : php $image_url = '<img src="'.get_template_directory_uri().'/images/logo-pic-inv.jpg" width="500" height="333" alt="'.__("Δημοσιεύσεις","44db").'" />'; endif; I have also tried using the following code: get_the_post_thumbnail($post->ID); // using the post id and that get_the_post_thumbnail($post_id); // using the fetched post id any help would be very much appreciated. Thanks A: try: global $post; if (has_post_thumbnail( $post->ID ) ){ // get_the_post_thumbnail($post->ID); // } A: The problems is that you're not inside a loop when you're in the sidebar. By the time you hit the sidebar your loop has finished, so even getting $wp_query->post->ID won't work. Try doing: rewind_posts(); the_post(); to reset the loop and then get the first entry loaded up, before the code you included. If you wanted to be a bit better then you can do: rewind_posts(); if (have_posts()) : the_post(); Hope that helps
wordpress
{ "language": "en", "length": 205, "provenance": "stackexchange_00019.jsonl.gz:410986", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22013" }
[ 0.0751953125, -0.01329803466796875, 0.048431396484375, 0.00063323974609375, 0.031219482421875, -0.03839111328125, 0.1016845703125, -0.0540771484375, 0.023468017578125, 0.0269317626953125, -0.078369140625, 0.026336669921875, -0.0273895263671875, 0.02691650390625, -0.016326904296875, -0.0255279541015625, 0.06451416015625, -0.02679443359375, 0.052215576171875, -0.00017940998077392578, 0.0036373138427734375, 0.0458984375, 0.05902099609375, 0.0439453125, 0.0386962890625, 0.00714111328125, 0.04083251953125, -0.013458251953125, 0.0018253326416015625, -0.017547607421875, 0.035552978515625, -0.00661468505859375, 0.0232391357421875, -0.0264892578125, 0.03411865234375, 0.011962890625, -0.0018320083618164062, -0.00962066650390625, 0.01177978515625, 0.0168304443359375, 0.032470703125, -0.016265869140625, -0.0048370361328125, 0.015960693359375, -0.035064697265625, 0.0055389404296875, -0.01497650146484375, -0.035736083984375, 0.01155853271484375, -0.0121612548828125, 0.002620697021484375, 0.00795745849609375, 0.02777099609375, 0.0198516845703125, -0.014801025390625, -0.0014362335205078125, -0.0171356201171875, -0.02813720703125, 0.052490234375, -0.01873779296875, -0.054595947265625, -0.06085205078125, 0.04864501953125, -0.029754638671875, -0.00977325439453125, -0.005695343017578125, -0.005096435546875, 0.01189422607421875, -0.0201568603515625, -0.0245513916015625, 0.0157928466796875, -0.01788330078125, -0.00896453857421875, -0.045806884765625, -0.00482940673828125, 0.0117645263671875, 0.013397216796875, -0.0170135498046875, -0.026153564453125, -0.00019371509552001953, -0.030364990234375, -0.0267486572265625, -0.10400390625, 0.0268402099609375, 0.0118560791015625, 0.066162109375, -0.01007843017578125, -0.0283203125, -0.007965087890625, -0.00696563720703125, -0.00392913818359375, -0.007266998291015625, -0.0033416748046875, 0.002513885498046875, -0.01406097412109375, -0.041229248046875, 0.0533447265625, 0.0582275390625, -0.0145416259765625, 0.000010669231414794922, 0.00396728515625, -0.049713134765625, 0.0350341796875, -0.042236328125, 0.01050567626953125, 0.009674072265625, -0.00502777099609375, -0.01171112060546875, 0.033416748046875, 0.034515380859375, -0.0037384033203125, 0.0285797119140625, -0.0042572021484375, 0.006145477294921875, -0.048553466796875, 0.0160675048828125, -0.037994384765625, -0.0188751220703125, -0.0148468017578125, -0.0052490234375, 0.0080718994140625, 0.015045166015625, 0.0177001953125, 0.00823211669921875, 0.015228271484375, 0.02911376953125, -0.01605224609375, -0.046600341796875, -0.0074005126953125, 0.014801025390625, -0.048370361328125, 0.0020751953125, 0.0445556640625, 0.0267486572265625, 0.0169677734375, -0.0162353515625, -0.0199737548828125, 0.00439453125, -0.00403594970703125, 0.0079193115234375, -0.01230621337890625, -0.0005965232849121094, 0.048583984375, -0.0219573974609375, 0.003307342529296875, 0.03790283203125, 0.01617431640625, 0.006198883056640625, -0.018951416015625, -0.03216552734375, 0.00786590576171875, -0.0250244140625, 0.004024505615234375, 0.024139404296875, 0.040374755859375, -0.039703369140625, 0.079833984375, -0.044525146484375, 0.01203155517578125, -0.04241943359375, 0.038360595703125, 0.01561737060546875, -0.0039825439453125, 0.007633209228515625, -0.00269317626953125, -0.0033473968505859375, -0.00821685791015625, -0.002704620361328125, 0.0276641845703125, 0.06414794921875, 0.0113983154296875, -0.005420684814453125, 0.0154876708984375, 0.0276336669921875, -0.01139068603515625, -0.00777435302734375, 0.0024051666259765625, -0.039215087890625, 0.019073486328125, 0.040679931640625, -0.023529052734375, -0.0300445556640625, -0.0197601318359375, 0.0054473876953125, -0.0291748046875, 0.01422882080078125, -0.0009822845458984375, 0.026947021484375, 0.035614013671875, 0.00921630859375, 0.00618743896484375, 0.003078460693359375, -0.055084228515625, 0.06146240234375, 0.0004868507385253906, -0.0223236083984375, -0.038909912109375, -0.00238800048828125, -0.01421356201171875, -0.033416748046875, 0.02691650390625, 0.002506256103515625, 0.01345062255859375, 0.01396942138671875, -0.051177978515625, 0.02679443359375, -0.01458740234375, 0.0226898193359375, 0.0195159912109375, 0.03265380859375, -0.0002918243408203125, 0.00792694091796875, -0.01409149169921875, -0.00585174560546875, -0.0203399658203125, 0.057647705078125, -0.028564453125, -0.00762939453125, -0.022552490234375, 0.0330810546875, -0.06622314453125, -0.0158233642578125, -0.059478759765625, -0.0212554931640625, 0.069091796875, -0.002414703369140625, -0.0249786376953125, -0.0243988037109375, 0.01271820068359375, 0.02911376953125, -0.09954833984375, 0.0252227783203125, -0.0058746337890625, -0.01285552978515625, -0.03448486328125, -0.007312774658203125, 0.005611419677734375, -0.04498291015625, 0.0189056396484375, 0.0592041015625, 0.049713134765625, 0.062347412109375, 0.01617431640625, -0.007144927978515625, 0.093994140625, -0.00778961181640625, 0.0218658447265625, -0.05303955078125, -0.0098419189453125, -0.01151275634765625, 0.0166168212890625, -0.01280975341796875, 0.03662109375, -0.039581298828125, 0.01490020751953125, 0.03826904296875, -0.0010004043579101562, 0.0382080078125, -0.021759033203125, 0.0223388671875, -0.017669677734375, 0.01166534423828125, 0.01511383056640625, -0.0171356201171875, 0.011016845703125, 0.0193328857421875, 0.0238037109375, 0.0174407958984375, -0.0170440673828125, -0.013702392578125, 0.0003674030303955078, -0.005130767822265625, -0.0002837181091308594, 0.0197601318359375, 0.0216217041015625, -0.015228271484375, -0.0304718017578125, -0.022003173828125, 0.04144287109375, -0.004428863525390625, -0.0090789794921875, 0.014801025390625, 0.00217437744140625, 0.01328277587890625, -0.018402099609375, -0.046661376953125, 0.039215087890625, 0.045501708984375, -0.0098724365234375, 0.013824462890625, 0.01983642578125, 0.053863525390625, -0.004604339599609375, 0.04541015625, -0.03131103515625, 0.0257110595703125, 0.00594329833984375, -0.0301666259765625, 0.034332275390625, -0.0192108154296875, 0.045318603515625, 0.06292724609375, -0.0266876220703125, 0.04266357421875, 0.01036834716796875, -0.050323486328125, 0.00897216796875, 0.013275146484375, 0.0017938613891601562, 0.011322021484375, -0.0640869140625, 0.0244598388671875, 0.00933074951171875, 0.08355712890625, -0.031768798828125, -0.0787353515625, 0.018341064453125, 0.0269927978515625, -0.08209228515625, -0.0859375, -0.0124664306640625, -0.07275390625, -0.0023021697998046875, -0.037139892578125, -0.035369873046875, 0.0132598876953125, -0.023468017578125, 0.01322174072265625, -0.0128631591796875, -0.03900146484375, -0.06878662109375, -0.0657958984375, -0.0926513671875, -0.0092926025390625, -0.005275726318359375, 0.046661376953125, 0.021636962890625, 0.003246307373046875, 0.01727294921875, -0.05413818359375, 0.01654052734375, 0.04559326171875, -0.023712158203125, -0.0148773193359375, -0.0428466796875, 0.015625, -0.055023193359375, 0.00748443603515625, -0.016632080078125, -0.01226806640625, 0.0079498291015625, 0.0157928466796875, -0.0235443115234375, 0.0010328292846679688, 0.01146697998046875, 0.027984619140625, 0.02655029296875, 0.0280303955078125, 0.034912109375, -0.0207672119140625, -0.0298614501953125, -0.047454833984375, -0.074462890625, 0.052001953125, 0.06585693359375, 0.00809478759765625, -0.0064544677734375, 0.0246124267578125, 0.0040740966796875, -0.002445220947265625, -0.0260009765625, -0.0008358955383300781, 0.054473876953125, -0.0029010772705078125, 0.032562255859375, 0.0032825469970703125, -0.00624847412109375, -0.0230712890625, 0.01885986328125, -0.004730224609375, 0.024627685546875, -0.001678466796875, 0.028289794921875, -0.017913818359375, -0.020477294921875, 0.03741455078125, 0.029693603515625, 0.01593017578125, -0.00937652587890625, -0.04986572265625, 0.006748199462890625, 0.07769775390625, -0.03582763671875, -0.0277099609375, -0.02435302734375, 0.0153656005859375, -0.033905029296875, -0.03875732421875, -0.0173797607421875, -0.00431060791015625, -0.0831298828125, 0.0197906494140625, 0.004581451416015625, -0.0275421142578125, 0.0084381103515625, 0.0239410400390625, -0.0341796875, -0.0322265625, 0.0205841064453125, 0.0189971923828125, 0.005924224853515625, 0.034149169921875, -0.02972412109375, 0.0550537109375, -0.022918701171875, -0.0028476715087890625, -0.10882568359375, -0.01812744140625, -0.0021266937255859375, 0.0836181640625, -0.013397216796875, 0.018585205078125, -0.034332275390625, 0.060302734375, -0.01873779296875, 0.004001617431640625, -0.005588531494140625, 0.02056884765625, 0.002349853515625, 0.0305938720703125, 0.016754150390625, 0.00031685829162597656, -0.015655517578125, -0.03851318359375, -0.031982421875, -0.0031585693359375, -0.04107666015625, 0.013519287109375, -0.0272064208984375, -0.00647735595703125, -0.038909912109375, 0.01323699951171875, 0.0643310546875, 0.04376220703125, -0.0193939208984375, 0.0361328125, 0.002864837646484375, -0.01534271240234375, 0.07440185546875, 0.041900634765625, -0.022918701171875, -0.0099334716796875, 0.0802001953125, 0.00960540771484375, -0.04876708984375, -0.0855712890625, 0.0037517547607421875, 0.01436614990234375, -0.02825927734375, 0.04681396484375, 0.0239105224609375, -0.006809234619140625, 0.02947998046875, 0.00665283203125, -0.00630950927734375, -0.003116607666015625, 0.06475830078125, -0.00408172607421875, -0.008026123046875, 0.01438140869140625, -0.02508544921875, -0.0097198486328125, 0.021881103515625, -0.031982421875, -0.0019817352294921875, -0.0152740478515625, 0.029632568359375, -0.0269927978515625, 0.026031494140625, -0.049896240234375, -0.0193328857421875, 0.00801849365234375, -0.0288543701171875, 0.06573486328125, 0.037506103515625, -0.01343536376953125, 0.02032470703125, 0.0223236083984375, 0.0015621185302734375, 0.0082550048828125, -0.006679534912109375, 0.0416259765625, 0.048675537109375, -0.012451171875, 0.0311279296875, -0.0055389404296875, -0.0020751953125, 0.018218994140625, 0.03411865234375, 0.0003879070281982422, -0.0249481201171875, 0.0033931732177734375, -0.000629425048828125, -0.04864501953125, -0.008331298828125, 0.02685546875, 0.02703857421875, -0.033599853515625, -0.0167236328125, -0.01910400390625, -0.01336669921875, -0.053924560546875, 0.04412841796875, 0.004314422607421875, 0.000751495361328125, 0.01055145263671875, 0.076904296875, -0.020660400390625, 0.053955078125, -0.0124664306640625, 0.0236358642578125, 0.00548553466796875, 0.0278167724609375, 0.01277923583984375, 0.00814056396484375, 0.003368377685546875, 0.00945281982421875, 0.01397705078125, -0.03857421875, -0.0086822509765625, 0.0302886962890625, 0.046173095703125, 0.00637054443359375, -0.004779815673828125, -0.004520416259765625, -0.01555633544921875, -0.007114410400390625, 0.03338623046875, 0.025390625, -0.019561767578125, -0.03173828125, -0.0187530517578125, 0.0308380126953125, 0.008270263671875, -0.01605224609375, 0.0272064208984375, 0.00020301342010498047, 0.0014133453369140625, -0.03253173828125, -0.036468505859375, 0.01544189453125, 0.0275421142578125, -0.017486572265625, -0.015228271484375, -0.034515380859375, 0.0587158203125, -0.006160736083984375, -0.010101318359375, -0.017730712890625, 0.03887939453125, -0.0171966552734375, 0.038726806640625, -0.0234527587890625, -0.0145721435546875, -0.0223846435546875, -0.0016584396362304688, 0.070068359375, 0.047607421875, -0.024322509765625, -0.0031604766845703125, -0.023193359375, 0.0079803466796875, 0.042694091796875, -0.0292816162109375, -0.019805908203125, -0.047088623046875, 0.0055694580078125, 0.025909423828125, 0.007587432861328125, 0.032440185546875, 0.005268096923828125, 0.01560211181640625, -0.0234832763671875, 0.049072265625, -0.017333984375, 0.01387786865234375, 0.01268768310546875, 0.02130126953125, 0.0013437271118164062, -0.00042057037353515625, -0.0171356201171875, -0.01605224609375, -0.029998779296875, -0.0821533203125, 0.0209503173828125, 0.035400390625, 0.0139312744140625, 0.00620269775390625, -0.0272064208984375, 0.0175933837890625, -0.0023975372314453125, -0.0203857421875, -0.0160369873046875, -0.016021728515625, 0.046600341796875, -0.005397796630859375, -0.0229949951171875, 0.0277252197265625, -0.048614501953125, -0.04425048828125, 0.01412200927734375, -0.0037326812744140625, 0.02508544921875, -0.0318603515625, -0.00894927978515625, 0.05914306640625, 0.0017309188842773438, 0.03155517578125, 0.1097412109375, 0.018341064453125, 0.055450439453125, 0.0440673828125, 0.00989532470703125, 0.0017147064208984375, 0.039642333984375, -0.00421905517578125, 0.00838470458984375, 0.05242919921875, 0.00568389892578125, -0.039276123046875, -0.006008148193359375, -0.0447998046875, 0.0255584716796875, -0.01369476318359375, 0.06927490234375, 0.0233917236328125, 0.0217132568359375, 0.040740966796875, -0.05120849609375, 0.011077880859375, -0.005580902099609375, -0.01776123046875, 0.0102691650390625, 0.08612060546875, -0.05877685546875, -0.0304718017578125, 0.02667236328125, -0.0102691650390625, -0.013031005859375, -0.017181396484375, 0.00818634033203125, 0.00896453857421875, -0.07525634765625, 0.017822265625, 0.058258056640625, -0.0234222412109375, -0.00861358642578125, 0.021484375, -0.03277587890625, 0.004573822021484375, -0.03509521484375, 0.0166168212890625, 0.0017404556274414062, 0.01081085205078125, 0.0279998779296875, 0.00004184246063232422, 0.0228424072265625, 0.0214385986328125, 0.006114959716796875, 0.02227783203125, -0.01629638671875, -0.0248260498046875, 0.033721923828125, 0.026275634765625, -0.0109710693359375, 0.01319122314453125, -0.01552581787109375, -0.002979278564453125, -0.04010009765625, 0.0277862548828125, -0.01000213623046875, 0.007709503173828125, 0.08416748046875, -0.040374755859375, -0.01629638671875, 0.02374267578125, 0.042755126953125, -0.0041351318359375, -0.00772857666015625, 0.03387451171875, -0.06268310546875, -0.004444122314453125, 0.0077056884765625, 0.014617919921875, -0.0216522216796875, -0.0200347900390625, -0.0740966796875, 0.06402587890625, -0.0249786376953125, 0.044281005859375, 0.018310546875, 0.00818634033203125, -0.00799560546875, -0.023651123046875, -0.005413055419921875, 0.017578125, -0.03240966796875, 0.0199737548828125, -0.057891845703125, -0.020843505859375, 0.003253936767578125, 0.05279541015625, 0.08953857421875, 0.0191802978515625, -0.036590576171875, -0.039520263671875, 0.0312042236328125, 0.07745361328125, 0.021697998046875, 0.005657196044921875, 0.01132965087890625, 0.007568359375, 0.036376953125, -0.0169525146484375, 0.03985595703125, -0.034912109375, 0.0038623809814453125, 0.019378662109375, 0.01102447509765625, 0.004581451416015625, 0.0125885009765625, 0.0146484375, -0.0369873046875, 0.00499725341796875, 0.036468505859375, -0.054595947265625, 0.016326904296875, 0.031951904296875, 0.01314544677734375, -0.018096923828125, -0.05926513671875, -0.006069183349609375, 0.0394287109375, 0.005168914794921875, 0.00742340087890625, -0.0172119140625, 0.017364501953125, 0.03857421875, -0.016265869140625, -0.0023250579833984375, 0.035675048828125, -0.026275634765625, 0.043914794921875, 0.053131103515625, 0.02801513671875, -0.020782470703125, 0.0253143310546875, 0.044952392578125, 0.051361083984375, -0.05633544921875, -0.0131988525390625, 0.0157928466796875, 0.01690673828125, -0.017608642578125, -0.0207672119140625, -0.01039886474609375, -0.01059722900390625, 0.0262298583984375, -0.0474853515625, 0.014923095703125, 0.0494384765625, 0.05072021484375, 0.00360107421875, -0.038726806640625, -0.07855224609375, -0.0280609130859375, -0.0278167724609375, 0.0123138427734375, 0.0157928466796875, 0.046875, 0.01385498046875, 0.038330078125, -0.0291748046875, -0.0094146728515625, -0.004364013671875, 0.013427734375, -0.024261474609375, 0.012786865234375, -0.01202392578125, -0.04071044921875, -0.0055694580078125, 0.033416748046875, 0.023284912109375, -0.01605224609375, 0.02276611328125, 0.01605224609375, -0.057830810546875, -0.0139007568359375, 0.047760009765625, -0.0104217529296875, 0.01105499267578125, 0.0010976791381835938, 0.01117706298828125, 0.028350830078125, -0.00852203369140625, -0.0110626220703125, 0.01166534423828125, 0.048431396484375, -0.02490234375, 0.05352783203125, -0.004955291748046875, 0.01470184326171875, 0.0595703125, -0.0323486328125, 0.0394287109375, -0.017120361328125, -0.06011962890625, -0.006099700927734375, -0.01666259765625, -0.028900146484375, 0.0116729736328125, 0.01715087890625, -0.0162506103515625, 0.0290985107421875, 0.0290069580078125, -0.00806427001953125, 0.00572967529296875, -0.0155792236328125, 0.0335693359375, -0.002262115478515625, 0.01009368896484375, 0.0201416015625, -0.049957275390625, -0.054534912109375, -0.0256805419921875, 0.046875, 0.046600341796875, -0.0118408203125, 0.021636962890625, 0.055023193359375, 0.0028362274169921875, 0.0055694580078125, -0.0300445556640625, 0.0188140869140625, -0.04583740234375, -0.0088958740234375, 0.0242919921875, -0.008514404296875, 0.00408172607421875, 0.032806396484375, 0.04119873046875, -0.017486572265625, -0.0167388916015625, -0.007625579833984375, 0.0171966552734375, 0.0116729736328125, 0.00887298583984375, -0.0108642578125, -0.00139617919921875, 0.0005488395690917969, -0.013397216796875, 0.035797119140625, 0.020751953125, -0.006214141845703125, 0.006343841552734375, -0.00019729137420654297, -0.0258941650390625, 0.044708251953125, -0.01433563232421875, 0.07159423828125, 0.042327880859375, -0.058807373046875, -0.0167236328125, -0.03289794921875, -0.0165252685546875, -0.003269195556640625, 0.0175018310546875, -0.005542755126953125, -0.00418853759765625, 0.013519287109375, 0.0093231201171875, -0.0036106109619140625, 0.02740478515625, -0.0276031494140625, -0.0070343017578125, 0.0144500732421875, -0.0029296875, -0.043426513671875, 0.0015087127685546875, -0.0055999755859375, -0.040679931640625, -0.010772705078125, 0.001010894775390625, -0.01396942138671875, -0.0087738037109375, -0.0070648193359375, -0.035369873046875, 0.03912353515625, 0.016204833984375, -0.0277252197265625, -0.0111236572265625, 0.0208282470703125, 0.02734375, -0.004962921142578125, 0.02435302734375, -0.000010907649993896484, 0.007511138916015625, -0.04400634765625, -0.0012531280517578125, -0.01094818115234375, 0.0160675048828125, 0.00998687744140625, 0.0253448486328125, 0.039154052734375, -0.0491943359375, -0.0061187744140625, 0.07427978515625, 0.032989501953125, 0.1083984375, 0.0236358642578125, -0.0263519287109375, 0.0010251998901367188, 0.01384735107421875, -0.02325439453125, -0.029876708984375, 0.023193359375, -0.04248046875, -0.0066375732421875, -0.0113067626953125, 0.004329681396484375, 0.01428985595703125, -0.028564453125, -0.004894256591796875, 0.00617218017578125, 0.00606536865234375, -0.033660888671875, -0.035400390625, 0.01873779296875, 0.0168609619140625, -0.017822265625, -0.0009946823120117188, -0.02410888671875, -0.0443115234375, -0.0094451904296875, 0.04058837890625, -0.03570556640625, 0.06005859375, 0.007419586181640625, -0.05584716796875, 0.016632080078125, 0.006420135498046875, 0.028045654296875, -0.004825592041015625, -0.0081024169921875, 0.0008296966552734375, 0.005126953125, -0.031768798828125, -0.05133056640625, 0.0021915435791015625, 0.00043702125549316406, -0.018707275390625, -0.038360595703125, -0.02386474609375, 0.00630950927734375, 0.0595703125, 0.0570068359375, 0.0225830078125, -0.039886474609375, 0.002239227294921875, 0.006534576416015625, -0.06280517578125, 0.0101165771484375, 0.02874755859375, -0.051849365234375, -0.01058197021484375, 0.00421142578125, -0.01007843017578125, 0.005512237548828125, -0.00360107421875, -0.039154052734375, -0.003631591796875, -0.00798797607421875, -0.00397491455078125, -0.054473876953125, 0.0211181640625, 0.053985595703125, -0.051055908203125, -0.00801849365234375, -0.01904296875, 0.0126190185546875, 0.017974853515625, -0.056884765625, 0.00870513916015625, 0.029632568359375, -0.0377197265625, -0.00838470458984375, 0.0108489990234375, -0.0168914794921875, -0.0102081298828125, 0.0001436471939086914, -0.0176239013671875, 0.0184173583984375, 0.01210784912109375, 0.0195465087890625, 0.010009765625, -0.01129150390625, 0.00798797607421875, 0.0175018310546875, -0.001186370849609375, 0.03173828125, 0.007511138916015625, 0.031341552734375, -0.0217742919921875, -0.0017251968383789062, 0.00727081298828125, -0.042388916015625, -0.0189666748046875, 0.0243988037109375, -0.04742431640625, -0.0494384765625, 0.0150909423828125, -0.00024116039276123047, 0.00460052490234375, 0.00711822509765625 ]
999dd5d949ec1fac8ce07a795533cf7a0677507e
Wordpress Stackexchange Q: How to detect a user that is not logged in Is there an easy way to see if a user - someone how has logged in in the past but is not currently logged in - is visiting my site? I was thinking that checking if $COOKIE[TEST_COOKIE] is set, but I am uncertain. * *Is this a good method? *Is there a better cookie to check for? *What would you do? A: You could check for this cookie wp-settings-1 it lasts for 1 day and then also check if wordpress_test_cookie is available. Or you could just write a simple plugin that checks if the user is logged in and adds a longer term cookie to check against.
Q: How to detect a user that is not logged in Is there an easy way to see if a user - someone how has logged in in the past but is not currently logged in - is visiting my site? I was thinking that checking if $COOKIE[TEST_COOKIE] is set, but I am uncertain. * *Is this a good method? *Is there a better cookie to check for? *What would you do? A: You could check for this cookie wp-settings-1 it lasts for 1 day and then also check if wordpress_test_cookie is available. Or you could just write a simple plugin that checks if the user is logged in and adds a longer term cookie to check against.
wordpress
{ "language": "en", "length": 118, "provenance": "stackexchange_00019.jsonl.gz:410996", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22030" }
[ 0.06298828125, 0.025604248046875, 0.0100555419921875, 0.0014438629150390625, 0.03643798828125, -0.048095703125, 0.059967041015625, -0.04248046875, -0.0011749267578125, -0.0172882080078125, -0.06439208984375, 0.0258636474609375, -0.05267333984375, -0.0168914794921875, 0.01226806640625, -0.0640869140625, -0.002223968505859375, -0.005908966064453125, 0.006134033203125, -0.0312347412109375, 0.0147857666015625, -0.0380859375, 0.026214599609375, 0.0025177001953125, 0.0308380126953125, -0.0006060600280761719, 0.06634521484375, -0.0137786865234375, 0.060760498046875, 0.01378631591796875, 0.040924072265625, -0.0758056640625, -0.0164794921875, 0.04833984375, -0.00011831521987915039, 0.01259613037109375, -0.0357666015625, 0.056732177734375, 0.041351318359375, -0.0142822265625, 0.0047454833984375, 0.001430511474609375, -0.019622802734375, 0.0136260986328125, -0.0267486572265625, -0.0245513916015625, 0.020477294921875, -0.0016012191772460938, 0.032440185546875, 0.0277252197265625, 0.00885009765625, 0.01727294921875, 0.0115966796875, 0.0113067626953125, -0.0237579345703125, -0.019378662109375, 0.0408935546875, 0.0162200927734375, 0.05108642578125, -0.07965087890625, -0.0631103515625, -0.01424407958984375, 0.043212890625, 0.007457733154296875, 0.0128021240234375, -0.002559661865234375, -0.03912353515625, 0.032745361328125, -0.04241943359375, -0.0126800537109375, 0.006809234619140625, -0.039031982421875, -0.004627227783203125, 0.0085296630859375, -0.0386962890625, -0.05780029296875, 0.038726806640625, -0.05364990234375, 0.00028824806213378906, 0.0264739990234375, -0.05401611328125, -0.01323699951171875, -0.06610107421875, -0.046539306640625, 0.042877197265625, 0.0218963623046875, -0.0189971923828125, -0.0021762847900390625, -0.01477813720703125, -0.01248931884765625, -0.0168609619140625, 0.0343017578125, -0.0229949951171875, -0.00292205810546875, -0.0400390625, -0.01100921630859375, 0.0257568359375, 0.039154052734375, -0.0024318695068359375, -0.034210205078125, -0.02935791015625, 0.00342559814453125, -0.08544921875, 0.0162200927734375, 0.0203094482421875, 0.0509033203125, 0.0072479248046875, 0.0104827880859375, 0.0257568359375, 0.0015554428100585938, 0.006084442138671875, -0.0212249755859375, -0.004589080810546875, -0.0270233154296875, -0.0283355712890625, 0.03936767578125, -0.005588531494140625, -0.00510406494140625, -0.00756072998046875, 0.0077972412109375, -0.0231781005859375, -0.0021839141845703125, -0.003940582275390625, -0.0179290771484375, 0.02349853515625, -0.01611328125, -0.0156402587890625, 0.018463134765625, -0.038604736328125, 0.058807373046875, -0.0177459716796875, -0.002353668212890625, 0.01464080810546875, -0.004581451416015625, -0.027984619140625, -0.025634765625, 0.04705810546875, 0.0037212371826171875, 0.003597259521484375, 0.00927734375, 0.0006356239318847656, -0.0592041015625, -0.03619384765625, -0.003948211669921875, 0.0179290771484375, 0.01934814453125, 0.0311126708984375, 0.006343841552734375, -0.01519012451171875, -0.0439453125, 0.023956298828125, 0.0008554458618164062, -0.023712158203125, 0.030364990234375, 0.018585205078125, 0.0303497314453125, -0.00760650634765625, 0.0009031295776367188, 0.008056640625, 0.01287841796875, 0.032745361328125, 0.00896453857421875, 0.0033740997314453125, -0.027252197265625, -0.046051025390625, -0.03472900390625, -0.039520263671875, -0.0017938613891601562, 0.037872314453125, 0.0068511962890625, 0.0235595703125, -0.006732940673828125, 0.06414794921875, 0.0306396484375, 0.0014848709106445312, 0.0170745849609375, -0.0092315673828125, 0.08624267578125, 0.00011360645294189453, -0.010894775390625, 0.015869140625, -0.026824951171875, 0.0914306640625, -0.0100250244140625, -0.02264404296875, 0.019561767578125, 0.004364013671875, 0.039581298828125, -0.0038700103759765625, 0.01117706298828125, -0.0027942657470703125, 0.033905029296875, -0.0129241943359375, 0.01239013671875, 0.016387939453125, -0.04022216796875, -0.0106353759765625, -0.0196533203125, -0.00864410400390625, -0.012603759765625, 0.057891845703125, -0.0097808837890625, 0.0037994384765625, -0.047393798828125, -0.09625244140625, 0.003154754638671875, -0.0289306640625, 0.031890869140625, 0.007320404052734375, 0.0301513671875, 0.0025787353515625, 0.026702880859375, -0.00972747802734375, -0.045654296875, -0.026641845703125, -0.017425537109375, -0.0245208740234375, 0.019134521484375, -0.003520965576171875, 0.0221710205078125, -0.0134735107421875, -0.0200958251953125, -0.0189056396484375, -0.0260772705078125, -0.01346588134765625, 0.0156707763671875, -0.0243072509765625, 0.016265869140625, -0.0025196075439453125, 0.0225830078125, 0.013031005859375, 0.0009551048278808594, 0.00916290283203125, 0.0223541259765625, -0.01279449462890625, -0.00455474853515625, 0.01230621337890625, -0.06756591796875, 0.0224609375, 0.0511474609375, 0.043365478515625, 0.04949951171875, 0.0024089813232421875, -0.0142974853515625, 0.052154541015625, -0.05078125, 0.0009870529174804688, -0.007114410400390625, -0.006122589111328125, 0.0419921875, -0.0140228271484375, 0.005649566650390625, 0.00972747802734375, 0.0229339599609375, -0.0097503662109375, 0.034088134765625, 0.0004284381866455078, 0.0391845703125, -0.01470947265625, 0.01010894775390625, -0.0235443115234375, 0.007701873779296875, 0.0203704833984375, -0.012359619140625, -0.00311279296875, -0.0274658203125, -0.00568389892578125, -0.01934814453125, 0.0210113525390625, -0.0208587646484375, 0.00368499755859375, -0.08721923828125, 0.0015192031860351562, 0.046844482421875, 0.062744140625, 0.04345703125, -0.0251007080078125, -0.037322998046875, 0.0345458984375, 0.0406494140625, -0.039764404296875, -0.0014581680297851562, 0.00238037109375, -0.0204620361328125, -0.00555419921875, -0.00888824462890625, 0.01364898681640625, -0.043060302734375, 0.0239410400390625, 0.0013093948364257812, 0.0341796875, -0.0004086494445800781, -0.022796630859375, 0.04986572265625, -0.02978515625, -0.034271240234375, -0.03399658203125, -0.047760009765625, 0.03765869140625, -0.059539794921875, -0.00612640380859375, 0.05218505859375, 0.006412506103515625, -0.0082550048828125, -0.0231781005859375, 0.0189056396484375, -0.01015472412109375, -0.012786865234375, -0.03155517578125, -0.04229736328125, -0.01505279541015625, 0.0134735107421875, 0.0213470458984375, 0.0259857177734375, -0.01052093505859375, -0.037261962890625, -0.0203094482421875, -0.004695892333984375, -0.05450439453125, -0.053741455078125, -0.08819580078125, -0.09002685546875, -0.0130615234375, -0.0180816650390625, -0.027313232421875, 0.0404052734375, 0.00885009765625, 0.024078369140625, -0.03692626953125, -0.0177459716796875, -0.00701141357421875, -0.06561279296875, -0.045806884765625, -0.00727081298828125, 0.007015228271484375, 0.00756072998046875, -0.012115478515625, 0.009521484375, -0.0250396728515625, -0.0494384765625, -0.05084228515625, 0.019744873046875, 0.0066070556640625, -0.0318603515625, -0.0531005859375, 0.053192138671875, -0.0015058517456054688, 0.0236053466796875, -0.042572021484375, -0.027252197265625, 0.0164947509765625, -0.0426025390625, 0.00435638427734375, -0.04290771484375, 0.01096343994140625, -0.01406097412109375, -0.0323486328125, -0.009368896484375, 0.0135650634765625, -0.051727294921875, 0.06011962890625, 0.010162353515625, -0.0015935897827148438, -0.024322509765625, 0.003875732421875, -0.04437255859375, 0.00262451171875, -0.052093505859375, 0.02880859375, 0.0098876953125, -0.021240234375, -0.007114410400390625, -0.003719329833984375, 0.00716400146484375, 0.0181427001953125, 0.010650634765625, 0.00994110107421875, -0.0277252197265625, -0.006893157958984375, -0.0119476318359375, -0.0024852752685546875, -0.01081085205078125, -0.00885772705078125, -0.03704833984375, -0.0190887451171875, 0.053466796875, 0.024932861328125, 0.04730224609375, -0.053680419921875, -0.043914794921875, -0.037445068359375, 0.1102294921875, -0.0654296875, -0.0010528564453125, 0.039703369140625, 0.0098724365234375, -0.0362548828125, 0.007312774658203125, -0.11981201171875, -0.00411224365234375, -0.0618896484375, 0.0092010498046875, -0.0015115737915039062, -0.01515960693359375, -0.0164947509765625, -0.0193939208984375, -0.0304412841796875, -0.043670654296875, 0.01476287841796875, 0.019622802734375, 0.03985595703125, -0.01605224609375, 0.02508544921875, -0.00969696044921875, 0.026702880859375, -0.044158935546875, -0.01226043701171875, -0.006938934326171875, -0.045654296875, 0.03271484375, 0.041351318359375, -0.037139892578125, -0.003871917724609375, 0.003204345703125, 0.002544403076171875, -0.01122283935546875, 0.03125, -0.0111846923828125, 0.05426025390625, 0.058380126953125, 0.009185791015625, 0.00888824462890625, 0.0203704833984375, -0.021240234375, -0.04052734375, -0.0169830322265625, -0.037384033203125, 0.0091400146484375, 0.00008505582809448242, -0.0211334228515625, -0.01129150390625, -0.01204681396484375, 0.015716552734375, 0.03533935546875, -0.010467529296875, 0.018157958984375, -0.01300811767578125, -0.006134033203125, 0.053497314453125, 0.037567138671875, -0.01495361328125, -0.0108642578125, 0.0596923828125, 0.0200653076171875, -0.03497314453125, 0.00688934326171875, 0.00414276123046875, 0.0240325927734375, -0.00025963783264160156, 0.007236480712890625, -0.0033435821533203125, -0.0252532958984375, 0.034698486328125, -0.005001068115234375, 0.0006856918334960938, -0.0178070068359375, 0.050628662109375, -0.01279449462890625, -0.031982421875, 0.0275726318359375, -0.033599853515625, -0.005710601806640625, -0.00850677490234375, 0.00946807861328125, -0.005367279052734375, 0.039703369140625, 0.02276611328125, -0.0180206298828125, 0.005218505859375, -0.0026702880859375, -0.031585693359375, 0.0056304931640625, -0.0170745849609375, 0.0255126953125, 0.0179595947265625, 0.0012493133544921875, 0.0186767578125, 0.02105712890625, -0.01227569580078125, -0.01751708984375, -0.0218658447265625, 0.00246429443359375, 0.023284912109375, -0.0283966064453125, -0.0145721435546875, -0.005840301513671875, -0.018585205078125, 0.0902099609375, -0.0172271728515625, -0.07720947265625, 0.044158935546875, -0.029571533203125, 0.01800537109375, 0.04937744140625, -0.0232391357421875, 0.036865234375, -0.02301025390625, -0.0400390625, -0.009033203125, -0.037078857421875, -0.05853271484375, -0.052276611328125, 0.005611419677734375, -0.038360595703125, 0.027435302734375, 0.0401611328125, 0.06298828125, -0.0201873779296875, 0.0616455078125, -0.03106689453125, 0.01904296875, 0.0185546875, 0.04156494140625, 0.01451873779296875, -0.0276031494140625, -0.015899658203125, 0.037811279296875, 0.0081329345703125, -0.031402587890625, -0.047149658203125, 0.018157958984375, 0.00861358642578125, -0.0084991455078125, 0.0250701904296875, 0.01690673828125, 0.042572021484375, -0.0033512115478515625, 0.036834716796875, -0.0113067626953125, -0.033477783203125, -0.045684814453125, 0.01971435546875, 0.050994873046875, -0.01444244384765625, 0.0012216567993164062, -0.014434814453125, -0.035369873046875, -0.0175933837890625, 0.0237274169921875, -0.027587890625, -0.026397705078125, -0.02850341796875, -0.06854248046875, -0.028778076171875, 0.0162353515625, -0.0024356842041015625, 0.00518798828125, -0.0238189697265625, -0.04058837890625, 0.0283660888671875, -0.0165252685546875, -0.018646240234375, -0.01451873779296875, 0.007640838623046875, 0.023284912109375, 0.01059722900390625, 0.01515960693359375, -0.0290374755859375, -0.04052734375, -0.0019283294677734375, -0.045501708984375, -0.01282501220703125, -0.03277587890625, -0.055419921875, -0.0167388916015625, -0.0096435546875, 0.037261962890625, 0.0284576416015625, -0.0001766681671142578, -0.023223876953125, 0.017425537109375, 0.0174560546875, 0.001125335693359375, 0.038482666015625, 0.00286102294921875, 0.04052734375, 0.01236724853515625, 0.015533447265625, 0.012664794921875, 0.028472900390625, -0.0234527587890625, -0.0231781005859375, 0.021728515625, 0.054779052734375, -0.03125, -0.053802490234375, 0.04931640625, -0.0257415771484375, 0.07489013671875, -0.0240478515625, -0.0284271240234375, -0.005451202392578125, 0.0021610260009765625, -0.01568603515625, 0.052642822265625, 0.044921875, -0.0167694091796875, 0.0003883838653564453, 0.022979736328125, 0.005802154541015625, -0.006649017333984375, -0.015716552734375, -0.0190887451171875, 0.040374755859375, -0.01171112060546875, -0.046661376953125, -0.030426025390625, 0.03228759765625, 0.053253173828125, -0.007720947265625, 0.046905517578125, 0.035919189453125, 0.024139404296875, 0.032745361328125, -0.021148681640625, -0.023193359375, -0.01397705078125, 0.02777099609375, -0.0064849853515625, -0.00975799560546875, 0.0250701904296875, -0.01922607421875, 0.002338409423828125, 0.0478515625, 0.0462646484375, -0.087158203125, 0.0117034912109375, 0.003734588623046875, 0.006572723388671875, 0.004871368408203125, -0.0124053955078125, -0.03277587890625, -0.03271484375, 0.08966064453125, -0.041229248046875, -0.01258087158203125, 0.036346435546875, -0.01020050048828125, -0.0085601806640625, -0.034912109375, 0.0307464599609375, 0.012451171875, -0.009765625, 0.01404571533203125, 0.01380157470703125, -0.0031185150146484375, -0.020721435546875, 0.035125732421875, 0.0234527587890625, -0.0076751708984375, -0.051055908203125, 0.040985107421875, 0.01529693603515625, -0.027191162109375, 0.03253173828125, -0.00807952880859375, 0.060760498046875, 0.0288543701171875, 0.01507568359375, -0.01119232177734375, -0.0023059844970703125, 0.00992584228515625, 0.007190704345703125, 0.00274658203125, 0.025177001953125, 0.01035308837890625, -0.005931854248046875, 0.01052093505859375, -0.01221466064453125, -0.032867431640625, -0.00768280029296875, -0.0421142578125, 0.049346923828125, -0.02203369140625, -0.01030731201171875, 0.021514892578125, 0.01053619384765625, -0.00981903076171875, -0.00888824462890625, -0.002330780029296875, -0.0187530517578125, 0.01617431640625, -0.0166168212890625, -0.024139404296875, 0.005496978759765625, -0.0152587890625, -0.05120849609375, 0.0219879150390625, 0.0305633544921875, 0.025299072265625, -0.0277862548828125, 0.01202392578125, 0.01885986328125, -0.0004353523254394531, -0.06005859375, 0.06121826171875, 0.0015802383422851562, 0.07421875, -0.04400634765625, -0.0038299560546875, 0.0177459716796875, -0.0009703636169433594, 0.039276123046875, 0.020111083984375, -0.034423828125, -0.040130615234375, -0.047882080078125, 0.0018358230590820312, -0.028533935546875, 0.059661865234375, -0.0096893310546875, 0.0305328369140625, 0.041229248046875, -0.02728271484375, 0.03656005859375, 0.005748748779296875, -0.0367431640625, -0.0145263671875, 0.0001112222671508789, -0.0211944580078125, -0.028076171875, 0.064697265625, -0.0662841796875, -0.01103973388671875, 0.0301971435546875, 0.01123809814453125, 0.0123138427734375, 0.0198211669921875, 0.012969970703125, -0.038604736328125, -0.0224609375, -0.01377105712890625, 0.02789306640625, -0.00804901123046875, -0.00783538818359375, 0.029052734375, 0.019287109375, -0.03143310546875, 0.0025177001953125, -0.005146026611328125, 0.01861572265625, -0.022186279296875, 0.04248046875, 0.044952392578125, 0.0189971923828125, -0.0133819580078125, 0.0168304443359375, 0.037445068359375, 0.0582275390625, -0.03594970703125, -0.022796630859375, -0.0041046142578125, 0.0019016265869140625, 0.0279083251953125, 0.0096588134765625, 0.047698974609375, 0.039154052734375, 0.0303192138671875, -0.00888824462890625, -0.0020751953125, 0.0128326416015625, 0.0158233642578125, 0.02264404296875, 0.055694580078125, -0.036285400390625, -0.007373809814453125, 0.014129638671875, -0.0211029052734375, -0.004772186279296875, -0.01776123046875, 0.0094757080078125, -0.0118255615234375, 0.01004791259765625, 0.0121002197265625, 0.00876617431640625, -0.0243377685546875, -0.01213836669921875, -0.007656097412109375, -0.0009298324584960938, 0.004695892333984375, -0.02960205078125, 0.031707763671875, 0.01023101806640625, -0.0167388916015625, 0.00031685829162597656, 0.017059326171875, -0.01033782958984375, -0.003826141357421875, 0.025909423828125, -0.0166473388671875, 0.015655517578125, -0.0202178955078125, 0.022308349609375, 0.024169921875, 0.0015420913696289062, -0.0308837890625, 0.00836181640625, 0.05712890625, -0.04522705078125, 0.058135986328125, -0.002895355224609375, -0.016357421875, 0.01495361328125, 0.041473388671875, 0.07177734375, 0.02703857421875, -0.044281005859375, 0.0121002197265625, -0.02410888671875, -0.0223541259765625, 0.0086517333984375, 0.0219879150390625, -0.020782470703125, 0.03759765625, 0.06304931640625, -0.0013685226440429688, -0.00110626220703125, 0.006671905517578125, 0.0113983154296875, -0.03143310546875, 0.032196044921875, 0.006103515625, -0.0224151611328125, -0.00865936279296875, -0.011138916015625, 0.0088043212890625, 0.0291900634765625, -0.00732421875, 0.02886962890625, 0.034027099609375, -0.024810791015625, 0.00983428955078125, -0.0298004150390625, -0.023590087890625, 0.026611328125, -0.0208587646484375, -0.03350830078125, 0.0071258544921875, -0.06005859375, 0.072265625, -0.026885986328125, 0.05914306640625, 0.06158447265625, -0.049530029296875, 0.007495880126953125, 0.0458984375, -0.038482666015625, -0.042877197265625, -0.07427978515625, -0.035919189453125, 0.03900146484375, -0.01093292236328125, -0.00551605224609375, -0.0418701171875, 0.02227783203125, -0.023834228515625, -0.0300445556640625, -0.032562255859375, 0.0004401206970214844, -0.055755615234375, 0.0077362060546875, 0.0181427001953125, 0.05865478515625, -0.02655029296875, -0.02294921875, 0.0294189453125, -0.00278472900390625, -0.03741455078125, 0.0074310302734375, 0.035980224609375, 0.048858642578125, 0.01548004150390625, 0.04949951171875, -0.030029296875, -0.00565338134765625, 0.0164947509765625, 0.0271453857421875, 0.0007281303405761719, -0.052001953125, -0.0411376953125, -0.038970947265625, 0.02093505859375, 0.0119781494140625, 0.005611419677734375, -0.0235595703125, -0.00136566162109375, 0.01172637939453125, 0.01995849609375, -0.0233001708984375, -0.031829833984375, 0.0177459716796875, -0.041778564453125, 0.038177490234375, -0.043060302734375, -0.0073089599609375, 0.0196685791015625, 0.032257080078125, -0.046661376953125, 0.03143310546875, -0.01132965087890625, -0.03765869140625, 0.00475311279296875, 0.002902984619140625, 0.05010986328125, -0.012481689453125, -0.06396484375, -0.0204010009765625, -0.0301971435546875, 0.01543426513671875, -0.0312347412109375, -0.0126495361328125, 0.030792236328125, -0.00568389892578125, -0.03271484375, -0.0290679931640625, 0.004940032958984375, -0.01145172119140625, -0.028167724609375, -0.017333984375, -0.01015472412109375, 0.0095977783203125, -0.051483154296875, -0.10772705078125, 0.08331298828125, -0.0309295654296875, -0.035369873046875, -0.0804443359375, 0.022705078125, 0.01303863525390625, -0.036346435546875, -0.03955078125, 0.0008082389831542969, -0.010040283203125, 0.049713134765625, 0.0195770263671875, -0.028778076171875, 0.0396728515625, 0.0016202926635742188, -0.07659912109375, 0.00141143798828125, -0.00014138221740722656, -0.0019445419311523438, 0.0164337158203125, 0.0019321441650390625, 0.004016876220703125, 0.035003662109375, -0.03289794921875, -0.014556884765625, -0.0295257568359375, 0.0017004013061523438, -0.01505279541015625, -0.0275726318359375, 0.0264129638671875, 0.01000213623046875, 0.0288848876953125, 0.0276641845703125, 0.00025010108947753906, -0.0310211181640625, -0.042633056640625, -0.037506103515625, -0.03466796875, -0.00872039794921875, 0.01338958740234375, -0.0396728515625, 0.0279998779296875, -0.0206146240234375, -0.036407470703125, -0.04351806640625, 0.01776123046875, -0.0684814453125, 0.0125274658203125, 0.0338134765625, 0.0222320556640625, -0.03948974609375, -0.00004780292510986328, 0.032806396484375, -0.0204010009765625, 0.00001800060272216797, -0.00009417533874511719, 0.007328033447265625, 0.0185089111328125, 0.023956298828125, 0.051605224609375, 0.02886962890625, -0.044281005859375, -0.01287841796875, 0.0294189453125, -0.00980377197265625, -0.0258026123046875, -0.032257080078125, 0.0102691650390625, -0.00450897216796875, -0.0198516845703125, -0.007617950439453125, 0.04656982421875, -0.024444580078125, -0.0275726318359375, 0.02142333984375, 0.034423828125, -0.0197296142578125, -0.01415252685546875, 0.054168701171875, 0.01380157470703125, -0.0546875, -0.0013017654418945312, -0.0204010009765625, -0.0165863037109375, -0.02117919921875, 0.00891876220703125, -0.109375, 0.07196044921875, -0.0210418701171875, 0.0246734619140625, 0.053466796875 ]
d4649c2f20b59a269b43d519490d3faf84ca9a78
Wordpress Stackexchange Q: Where can I find documentation on what characters are allowed in user names and why? I would love to be able to use spaces in usernames, but this does not seem possible. Is there a writeup in the codex or somewhere that explains what characters are allowed and why it was restricted to that set or is it just alphas only and suck it up? If I want users to use something other than a username with no spaces, is my only real option a plugin that allows users to login with their email addresses instead, but still requires an alpha only username at account creation? Oh, and I am on a WPMU/network site. A: You can use spaces in usernames, no problem. Several users on wordpress.org have spaces in their usernames. Strict mode only allows these characters: a-z0-9<space>_.\-@ However WP doesn't default to strict mode. Now, multisite has different restrictions, and it may strip spaces there. This is because usernames are used to create independent blogs and such on multisite installs.
Q: Where can I find documentation on what characters are allowed in user names and why? I would love to be able to use spaces in usernames, but this does not seem possible. Is there a writeup in the codex or somewhere that explains what characters are allowed and why it was restricted to that set or is it just alphas only and suck it up? If I want users to use something other than a username with no spaces, is my only real option a plugin that allows users to login with their email addresses instead, but still requires an alpha only username at account creation? Oh, and I am on a WPMU/network site. A: You can use spaces in usernames, no problem. Several users on wordpress.org have spaces in their usernames. Strict mode only allows these characters: a-z0-9<space>_.\-@ However WP doesn't default to strict mode. Now, multisite has different restrictions, and it may strip spaces there. This is because usernames are used to create independent blogs and such on multisite installs. A: I don't think there's any official documentation about that, but you can have a look at the sanitize_user function in wp-includes/formatting.php : function sanitize_user( $username, $strict = false ) { $raw_username = $username; $username = wp_strip_all_tags( $username ); $username = remove_accents( $username ); // Kill octets $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username ); $username = preg_replace( '/&.+?;/', '', $username ); // Kill entities // If strict, reduce to ASCII for max portability. if ( $strict ) $username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username ); $username = trim( $username ); // Consolidate contiguous whitespace $username = preg_replace( '|\s+|', ' ', $username ); return apply_filters( 'sanitize_user', $username, $raw_username, $strict ); } You could hook into that function and override the default behavior with your own.
wordpress
{ "language": "en", "length": 297, "provenance": "stackexchange_00019.jsonl.gz:411005", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22056" }
[ -0.005306243896484375, -0.047607421875, -0.01296234130859375, 0.031707763671875, -0.06365966796875, -0.038421630859375, 0.02056884765625, -0.00278472900390625, -0.01099395751953125, 0.053375244140625, -0.0171051025390625, -0.005542755126953125, 0.055389404296875, -0.003238677978515625, -0.0235137939453125, -0.007427215576171875, -0.000004470348358154297, -0.0030422210693359375, -0.04046630859375, -0.0478515625, 0.0023288726806640625, -0.047393798828125, -0.034637451171875, 0.0291748046875, 0.0080108642578125, -0.043792724609375, 0.128662109375, -0.0213165283203125, 0.019287109375, -0.017669677734375, 0.036407470703125, -0.02490234375, 0.00696563720703125, -0.0019817352294921875, 0.02447509765625, 0.030853271484375, 0.01354217529296875, 0.0118560791015625, 0.046722412109375, -0.01245880126953125, 0.0186767578125, -0.0250244140625, 0.01290130615234375, 0.018035888671875, 0.00415802001953125, -0.0716552734375, 0.06622314453125, -0.0278167724609375, 0.0296783447265625, 0.001644134521484375, 0.0338134765625, 0.03448486328125, 0.048858642578125, -0.004222869873046875, -0.0132598876953125, 0.0131988525390625, 0.0038394927978515625, -0.02008056640625, 0.0257415771484375, 0.0225982666015625, -0.00969696044921875, 0.0020618438720703125, 0.019134521484375, -0.0285186767578125, 0.0257720947265625, -0.004718780517578125, 0.040496826171875, 0.019317626953125, -0.0225372314453125, 0.0191192626953125, 0.0186920166015625, -0.0145721435546875, -0.00333404541015625, -0.034423828125, 0.010284423828125, 0.01279449462890625, -0.031585693359375, -0.01776123046875, 0.028839111328125, 0.0157623291015625, -0.021148681640625, -0.027984619140625, -0.035308837890625, -0.00194549560546875, -0.01070404052734375, -0.0076446533203125, -0.01061248779296875, 0.006145477294921875, 0.0121002197265625, 0.005523681640625, 0.0084381103515625, 0.02105712890625, -0.0189666748046875, 0.051177978515625, 0.010711669921875, -0.01326751708984375, -0.0009655952453613281, 0.0295562744140625, 0.0003452301025390625, -0.005954742431640625, 0.0224609375, -0.0350341796875, 0.0063323974609375, -0.029266357421875, -0.00606536865234375, 0.030181884765625, 0.0207366943359375, 0.0352783203125, 0.01036834716796875, 0.01214599609375, -0.00623321533203125, -0.032562255859375, -0.0408935546875, -0.06488037109375, -0.00180816650390625, 0.06756591796875, -0.0211029052734375, 0.004878997802734375, 0.00937652587890625, 0.00772857666015625, 0.0116119384765625, 0.0282135009765625, -0.0121002197265625, 0.01560211181640625, -0.0249176025390625, -0.0123138427734375, -0.0022525787353515625, -0.03369140625, -0.052490234375, 0.089111328125, 0.004543304443359375, -0.0091552734375, -0.03094482421875, 0.003932952880859375, -0.05206298828125, -0.045196533203125, 0.004566192626953125, -0.035491943359375, -0.045501708984375, 0.047698974609375, -0.05322265625, -0.0201263427734375, 0.043914794921875, -0.07452392578125, 0.015655517578125, 0.036041259765625, 0.0301361083984375, -0.0061187744140625, -0.019287109375, -0.07025146484375, 0.01314544677734375, -0.032440185546875, 0.013031005859375, 0.03656005859375, -0.019775390625, -0.005390167236328125, 0.00954437255859375, -0.023590087890625, 0.005420684814453125, -0.027099609375, 0.01036834716796875, -0.0008864402770996094, 0.0236663818359375, -0.0028362274169921875, -0.024017333984375, 0.00698089599609375, -0.0213775634765625, 0.00396728515625, 0.00844573974609375, -0.03900146484375, -0.035125732421875, 0.04364013671875, 0.0203857421875, -0.0211181640625, -0.00012433528900146484, 0.0002493858337402344, -0.0191802978515625, 0.00917816162109375, 0.00621795654296875, 0.08734130859375, 0.0386962890625, -0.0188140869140625, 0.0282440185546875, 0.01155853271484375, 0.00258636474609375, -0.0198211669921875, 0.02789306640625, 0.0257568359375, -0.004192352294921875, 0.0207366943359375, -0.001148223876953125, 0.03790283203125, -0.0059356689453125, -0.0312042236328125, -0.0063018798828125, -0.0191192626953125, 0.0272064208984375, -0.0030727386474609375, 0.002269744873046875, 0.0104827880859375, 0.05938720703125, -0.030426025390625, 0.03509521484375, -0.03594970703125, -0.050628662109375, -0.013458251953125, -0.006587982177734375, -0.00010651350021362305, -0.04107666015625, -0.01273345947265625, 0.017822265625, -0.040191650390625, 0.0059051513671875, -0.01690673828125, 0.0044708251953125, 0.01702880859375, -0.0236968994140625, 0.039794921875, 0.02099609375, 0.035858154296875, 0.045501708984375, -0.0235748291015625, 0.04205322265625, -0.01837158203125, -0.0230712890625, -0.06390380859375, 0.004764556884765625, -0.03912353515625, -0.036773681640625, -0.0228424072265625, 0.03350830078125, 0.054107666015625, 0.0170135498046875, 0.08819580078125, 0.00789642333984375, -0.0228729248046875, 0.00751495361328125, -0.0104217529296875, 0.0306549072265625, 0.01511383056640625, 0.032257080078125, -0.0038623809814453125, -0.0234222412109375, -0.01824951171875, -0.006473541259765625, 0.0015020370483398438, 0.0306243896484375, -0.0224456787109375, -0.015045166015625, 0.0872802734375, -0.0017766952514648438, 0.034820556640625, -0.017425537109375, -0.034423828125, -0.04534912109375, 0.050445556640625, -0.046173095703125, -0.02484130859375, -0.028961181640625, 0.01378631591796875, 0.007289886474609375, -0.004329681396484375, 0.016143798828125, -0.01110076904296875, -0.0238037109375, 0.0099334716796875, -0.01544952392578125, -0.012298583984375, -0.0272674560546875, 0.0172271728515625, 0.0275115966796875, -0.027740478515625, -0.00244903564453125, 0.042938232421875, 0.0465087890625, 0.002681732177734375, -0.0094451904296875, -0.021209716796875, -0.0105743408203125, 0.012451171875, -0.003692626953125, 0.0281829833984375, 0.03265380859375, -0.01038360595703125, 0.0016880035400390625, -0.0482177734375, 0.0288238525390625, -0.0100250244140625, -0.0196075439453125, -0.004596710205078125, 0.012237548828125, 0.0345458984375, -0.0026721954345703125, 0.01137542724609375, 0.0311431884765625, -0.006763458251953125, -0.008087158203125, -0.01282501220703125, 0.0129547119140625, -0.0147857666015625, 0.019744873046875, 0.056182861328125, 0.01580810546875, -0.02490234375, 0.01515960693359375, -0.0194854736328125, 0.016387939453125, -0.006877899169921875, 0.01528167724609375, 0.0195770263671875, -0.029083251953125, 0.0914306640625, 0.017578125, 0.03717041015625, -0.0234222412109375, -0.020416259765625, -0.0221099853515625, 0.00687408447265625, -0.038970947265625, -0.024261474609375, -0.0254364013671875, -0.04833984375, -0.01959228515625, 0.01371002197265625, -0.01331329345703125, 0.0074310302734375, 0.044097900390625, -0.005748748779296875, -0.0066070556640625, -0.04730224609375, -0.038116455078125, -0.06414794921875, -0.062408447265625, 0.0002460479736328125, 0.00482940673828125, 0.0103759765625, -0.01314544677734375, 0.042449951171875, -0.0188140869140625, -0.004901885986328125, -0.032958984375, -0.0008912086486816406, 0.022979736328125, -0.049835205078125, -0.0489501953125, 0.00078582763671875, 0.025665283203125, -0.01910400390625, 0.05511474609375, 0.031005859375, -0.0119781494140625, 0.0234527587890625, 0.022186279296875, 0.00643157958984375, 0.035125732421875, 0.0341796875, -0.02960205078125, 0.0251922607421875, 0.044586181640625, -0.032318115234375, -0.01268768310546875, 0.0275726318359375, -0.004245758056640625, 0.0430908203125, -0.0034942626953125, -0.0260009765625, 0.017578125, 0.036102294921875, 0.0190582275390625, 0.0174713134765625, -0.0126190185546875, -0.01276397705078125, 0.0247650146484375, -0.0035266876220703125, 0.021392822265625, -0.00548553466796875, 0.0181732177734375, -0.024810791015625, 0.024444580078125, 0.0031566619873046875, -0.00827789306640625, -0.0102691650390625, 0.0236663818359375, 0.0187225341796875, -0.060516357421875, 0.045928955078125, -0.030120849609375, -0.00559234619140625, -0.024383544921875, -0.025390625, -0.00033545494079589844, 0.09100341796875, -0.029449462890625, -0.020721435546875, -0.0017271041870117188, 0.02001953125, -0.0576171875, -0.024688720703125, -0.03741455078125, -0.006664276123046875, -0.0455322265625, -0.0226898193359375, -0.040740966796875, -0.01427459716796875, 0.01052093505859375, -0.044708251953125, 0.0229644775390625, -0.054656982421875, -0.005481719970703125, 0.0211639404296875, 0.001728057861328125, -0.064208984375, 0.0281524658203125, -0.0831298828125, 0.057769775390625, -0.028228759765625, -0.03839111328125, -0.0052947998046875, -0.03399658203125, 0.044830322265625, 0.03094482421875, -0.0006747245788574219, 0.0008373260498046875, 0.041778564453125, -0.0162811279296875, 0.01079559326171875, 0.01557159423828125, 0.0306854248046875, 0.005481719970703125, 0.01267242431640625, 0.0073394775390625, -0.0274200439453125, -0.0154571533203125, 0.0277557373046875, -0.005207061767578125, 0.036041259765625, -0.0106658935546875, -0.0231170654296875, 0.02593994140625, -0.028961181640625, 0.01084136962890625, -0.0106658935546875, 0.0157928466796875, 0.035430908203125, -0.0007529258728027344, 0.00345611572265625, -0.035186767578125, -0.0021533966064453125, 0.03216552734375, 0.007228851318359375, 0.0169525146484375, 0.01812744140625, 0.038818359375, -0.01061248779296875, -0.034637451171875, -0.04913330078125, -0.0160369873046875, 0.0477294921875, 0.0144805908203125, 0.0086669921875, 0.0272369384765625, -0.03619384765625, 0.0196075439453125, 0.034912109375, -0.00940704345703125, 0.005840301513671875, -0.01934814453125, -0.0247650146484375, -0.06414794921875, 0.0138397216796875, -0.03045654296875, 0.04498291015625, 0.0280303955078125, 0.01143646240234375, -0.016387939453125, -0.01374053955078125, 0.0181427001953125, -0.0020503997802734375, -0.00547027587890625, -0.0277099609375, -0.007076263427734375, -0.0005536079406738281, -0.0472412109375, 0.025421142578125, 0.0235595703125, 0.003345489501953125, -0.0262451171875, -0.0164642333984375, -0.0236968994140625, -0.018402099609375, -0.06573486328125, 0.01557159423828125, 0.00800323486328125, -0.045562744140625, -0.0156097412109375, 0.031646728515625, -0.0379638671875, 0.12286376953125, 0.015411376953125, -0.023895263671875, 0.00888824462890625, -0.03521728515625, 0.03948974609375, -0.008209228515625, 0.08074951171875, -0.006290435791015625, 0.0172882080078125, 0.0013704299926757812, 0.01383209228515625, 0.09918212890625, 0.019317626953125, -0.003337860107421875, 0.0594482421875, -0.032440185546875, 0.01419830322265625, 0.02593994140625, 0.06268310546875, -0.0221099853515625, 0.06640625, -0.01129913330078125, 0.01329803466796875, 0.03558349609375, 0.0227203369140625, 0.0251007080078125, -0.0010013580322265625, -0.038055419921875, 0.0177154541015625, -0.005474090576171875, -0.00897979736328125, -0.016998291015625, 0.004547119140625, 0.0172576904296875, 0.0027790069580078125, 0.03173828125, 0.007534027099609375, -0.01507568359375, 0.0011835098266601562, 0.004795074462890625, -0.027252197265625, -0.00954437255859375, -0.01352691650390625, -0.00243377685546875, 0.0228118896484375, -0.0170440673828125, -0.005084991455078125, -0.034454345703125, -0.048614501953125, -0.0186309814453125, 0.019866943359375, -0.00981903076171875, -0.0294342041015625, -0.027099609375, 0.00673675537109375, -0.013580322265625, 0.00030684471130371094, 0.0010423660278320312, 0.01189422607421875, -0.029266357421875, -0.01430511474609375, 0.061676025390625, -0.01007080078125, 0.0041046142578125, -0.01776123046875, 0.0092926025390625, -0.0191497802734375, 0.010284423828125, 0.036651611328125, 0.006931304931640625, -0.0885009765625, -0.0052947998046875, -0.0181884765625, -0.003604888916015625, 0.021148681640625, 0.002666473388671875, -0.0654296875, -0.00348663330078125, 0.031982421875, 0.01248931884765625, 0.039703369140625, 0.00978851318359375, -0.0163726806640625, 0.0416259765625, 0.028228759765625, 0.0692138671875, -0.068603515625, 0.0355224609375, 0.038787841796875, 0.00975799560546875, -0.00982666015625, 0.033538818359375, 0.08807373046875, -0.026214599609375, 0.0265350341796875, -0.01039886474609375, -0.04229736328125, -0.03387451171875, 0.005329132080078125, 0.00044798851013183594, 0.05743408203125, -0.0141448974609375, -0.01422882080078125, -0.0091094970703125, 0.003787994384765625, -0.032989501953125, 0.0207977294921875, -0.0159912109375, -0.02203369140625, -0.0283355712890625, -0.0023975372314453125, 0.07684326171875, -0.028717041015625, -0.04461669921875, 0.05438232421875, -0.0186004638671875, 0.043792724609375, 0.03515625, -0.033050537109375, 0.033447265625, -0.004772186279296875, -0.0009813308715820312, 0.010406494140625, -0.0135650634765625, 0.00933074951171875, -0.0281524658203125, -0.0028591156005859375, -0.01043701171875, -0.0296783447265625, 0.028289794921875, 0.0016193389892578125, -0.006259918212890625, 0.04376220703125, -0.01898193359375, 0.0224609375, 0.11309814453125, 0.06951904296875, -0.1387939453125, 0.01053619384765625, -0.0126190185546875, 0.0005202293395996094, 0.07012939453125, 0.02081298828125, 0.0061798095703125, -0.015289306640625, 0.0160369873046875, -0.07806396484375, -0.0033111572265625, 0.0109710693359375, -0.034942626953125, 0.01035308837890625, -0.0279083251953125, 0.05560302734375, 0.01245880126953125, 0.03961181640625, -0.01241302490234375, -0.042083740234375, 0.049285888671875, -0.00371551513671875, -0.0198516845703125, 0.0196533203125, -0.05267333984375, -0.040435791015625, 0.00592041015625, -0.024383544921875, -0.0241241455078125, -0.0064697265625, 0.010986328125, 0.046234130859375, 0.045806884765625, 0.004108428955078125, -0.01508331298828125, 0.0279998779296875, 0.0019702911376953125, 0.0031261444091796875, -0.023712158203125, -0.0023365020751953125, 0.05157470703125, -0.0003619194030761719, 0.026824951171875, 0.0230712890625, -0.0186004638671875, -0.006740570068359375, -0.0193939208984375, 0.0517578125, 0.01551055908203125, -0.0312042236328125, 0.034088134765625, -0.013580322265625, -0.02032470703125, 0.041656494140625, -0.0221710205078125, -0.0380859375, -0.0567626953125, 0.0205230712890625, -0.09173583984375, 0.01009368896484375, 0.059844970703125, -0.05096435546875, -0.007354736328125, 0.0233612060546875, 0.0261077880859375, 0.00489044189453125, -0.02313232421875, -0.008575439453125, -0.035186767578125, -0.041168212890625, 0.0185089111328125, -0.03424072265625, 0.03887939453125, -0.043701171875, -0.003498077392578125, -0.00608062744140625, 0.038238525390625, 0.0186767578125, 0.012054443359375, -0.0296630859375, -0.01183319091796875, 0.00008112192153930664, 0.02508544921875, 0.01543426513671875, 0.0289459228515625, 0.0214385986328125, 0.021270751953125, 0.0401611328125, -0.003360748291015625, 0.04034423828125, -0.036407470703125, -0.01349639892578125, 0.040618896484375, 0.0018863677978515625, -0.005573272705078125, 0.01047515869140625, -0.034942626953125, -0.039581298828125, 0.0113067626953125, 0.01050567626953125, 0.0271759033203125, 0.006427764892578125, 0.04815673828125, 0.033599853515625, -0.0565185546875, 0.004528045654296875, -0.048492431640625, 0.051849365234375, -0.003086090087890625, 0.04443359375, 0.041595458984375, 0.03509521484375, -0.0005559921264648438, 0.01177978515625, 0.035736083984375, 0.01082611083984375, -0.042388916015625, 0.005855560302734375, 0.0013256072998046875, 0.0095672607421875, -0.06903076171875, -0.029815673828125, 0.07904052734375, 0.027313232421875, -0.0040130615234375, -0.0452880859375, -0.0087738037109375, -0.004062652587890625, 0.04241943359375, 0.00970458984375, 0.046630859375, 0.06329345703125, 0.03497314453125, -0.0640869140625, 0.033477783203125, 0.04119873046875, -0.0006895065307617188, -0.0080413818359375, 0.00266265869140625, -0.032073974609375, 0.040618896484375, -0.0237274169921875, -0.004566192626953125, 0.0135650634765625, 0.0191802978515625, 0.01374053955078125, 0.01560211181640625, -0.00958251953125, -0.01404571533203125, 0.015716552734375, 0.0234375, 0.005519866943359375, -0.03204345703125, 0.0271453857421875, -0.034942626953125, -0.0071258544921875, -0.0055389404296875, 0.00013589859008789062, -0.027587890625, 0.00438690185546875, -0.0202178955078125, -0.06494140625, -0.01251983642578125, 0.000621795654296875, -0.040252685546875, 0.0175628662109375, -0.04315185546875, 0.01364898681640625, 0.0048370361328125, -0.01259613037109375, -0.01800537109375, -0.01055908203125, 0.048248291015625, -0.0087890625, 0.0034122467041015625, -0.00878143310546875, -0.0182647705078125, 0.023468017578125, -0.03216552734375, -0.0006170272827148438, -0.011688232421875, -0.0859375, -0.0419921875, 0.0299072265625, 0.0141754150390625, -0.005809783935546875, 0.0265655517578125, 0.014617919921875, -0.0010671615600585938, 0.0283050537109375, -0.0208282470703125, 0.015167236328125, 0.0099029541015625, 0.0215606689453125, 0.02923583984375, 0.0161285400390625, 0.01247406005859375, -0.06329345703125, -0.0189666748046875, -0.0308380126953125, 0.010833740234375, -0.00760650634765625, 0.059356689453125, -0.0159759521484375, 0.0236358642578125, -0.039520263671875, 0.012939453125, -0.014923095703125, -0.042449951171875, 0.043975830078125, 0.0309906005859375, -0.00901031494140625, -0.004718780517578125, -0.046630859375, 0.1103515625, -0.0147247314453125, 0.02569580078125, 0.08746337890625, -0.0290679931640625, -0.035491943359375, -0.01441192626953125, 0.0228118896484375, -0.02587890625, -0.052734375, -0.020233154296875, 0.037017822265625, -0.0024242401123046875, 0.00858306884765625, -0.053619384765625, 0.036102294921875, -0.0433349609375, -0.05828857421875, 0.003978729248046875, -0.07904052734375, -0.0003974437713623047, 0.0191650390625, 0.02923583984375, 0.0194854736328125, -0.01403045654296875, -0.040008544921875, -0.00617218017578125, -0.00921630859375, -0.0130157470703125, -0.00719451904296875, -0.035125732421875, 0.020843505859375, 0.041168212890625, 0.03973388671875, -0.0124969482421875, -0.00284576416015625, 0.036712646484375, -0.0211639404296875, 0.01160430908203125, -0.0227203369140625, -0.01346588134765625, -0.012725830078125, -0.015167236328125, 0.027130126953125, -0.022430419921875, -0.0014543533325195312, -0.0438232421875, -0.039031982421875, 0.0258026123046875, 0.00499725341796875, -0.0345458984375, -0.00940704345703125, 0.0159912109375, 0.0026702880859375, -0.0144500732421875, 0.0025806427001953125, 0.005588531494140625, 0.01110076904296875, -0.063720703125, -0.038299560546875, -0.00563812255859375, 0.036041259765625, -0.01800537109375, 0.0212860107421875, 0.047119140625, -0.0130615234375, -0.05523681640625, 0.0308685302734375, -0.00769805908203125, 0.0557861328125, -0.006290435791015625, -0.024871826171875, 0.0182647705078125, 0.0003998279571533203, -0.00946044921875, -0.06243896484375, -0.017181396484375, -0.037994384765625, -0.007221221923828125, -0.0032672882080078125, -0.0021800994873046875, 0.00244140625, -0.035125732421875, -0.033233642578125, 0.056121826171875, 0.0036869049072265625, -0.0276641845703125, 0.00414276123046875, -0.04443359375, 0.0092010498046875, -0.024383544921875, -0.00942230224609375, 0.009246826171875, -0.06341552734375, 0.0207977294921875, 0.00792694091796875, 0.00209808349609375, 0.0145416259765625, 0.01096343994140625, 0.024200439453125, 0.058868408203125, 0.06591796875, -0.0164031982421875, 0.057464599609375, -0.0277252197265625, 0.04302978515625, 0.060760498046875, -0.0230712890625, 0.0266571044921875, -0.03546142578125, -0.05731201171875, -0.037353515625, -0.00650787353515625, -0.00093841552734375, -0.0204620361328125, 0.061279296875, 0.0278167724609375, -0.002960205078125, -0.0052032470703125, 0.005031585693359375, -0.028289794921875, -0.00482940673828125, -0.0182037353515625, 0.0094146728515625, -0.051239013671875, -0.01103973388671875, -0.01641845703125, -0.00577545166015625, 0.0267181396484375, -0.0341796875, -0.0092620849609375, 0.0017747879028320312, 0.0248565673828125, 0.00507354736328125, -0.01047515869140625, -0.0011796951293945312, 0.03411865234375, -0.044586181640625, -0.039093017578125, 0.00006592273712158203, 0.01050567626953125, -0.03448486328125, -0.04443359375, -0.025848388671875, -0.0206298828125, -0.0114288330078125, 0.0272216796875, -0.0270843505859375, 0.005527496337890625, -0.041717529296875, -0.00337982177734375, 0.0232391357421875, 0.044952392578125, -0.004001617431640625, 0.060882568359375, -0.00797271728515625, 0.0295257568359375, -0.0106048583984375, 0.01136016845703125, -0.033355712890625, -0.0723876953125, -0.04754638671875, 0.033233642578125, 0.0014467239379882812, -0.003459930419921875, 0.043792724609375, -0.026031494140625, 0.0005555152893066406, 0.006336212158203125, -0.00047659873962402344, -0.05615234375, 0.017181396484375, 0.0205230712890625, 0.00844573974609375, 0.0254669189453125 ]
facfa08f9405f4898c91b3982d0dc2e4e72679bb
Wordpress Stackexchange Q: Does wpdb add considerable overhead on queries with large result sets? I am working on backup-related plugin and from some research of existing plugins - they seem to favor using PHP's mysql_* functions, rather than $wpdb. Is $wpdb overhead considerable enough that it is unsuitable for such task as querying whole database tables? A: There is a significant amount of memory usage if you use the $wpdb for queries that return very large result sets. $wpdb loads the entire results from any given query into memory. So if you're, say, selecting all the posts, then it'll try to load the whole thing into memory immediately. So for something like a backup plugin, direct calls to mySQL with loops for retrieving the data make more sense.
Q: Does wpdb add considerable overhead on queries with large result sets? I am working on backup-related plugin and from some research of existing plugins - they seem to favor using PHP's mysql_* functions, rather than $wpdb. Is $wpdb overhead considerable enough that it is unsuitable for such task as querying whole database tables? A: There is a significant amount of memory usage if you use the $wpdb for queries that return very large result sets. $wpdb loads the entire results from any given query into memory. So if you're, say, selecting all the posts, then it'll try to load the whole thing into memory immediately. So for something like a backup plugin, direct calls to mySQL with loops for retrieving the data make more sense. A: Just in case someone reads the Q: Here you got a pastebin from the global $wpdb object and here you got a little memory useage tracing function. Any comment on the function is appreciated as it's not tested so far.
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:411006", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22060" }
[ 0.0419921875, 0.0106201171875, -0.0159454345703125, -0.026275634765625, 0.03887939453125, -0.029693603515625, 0.059326171875, 0.00743865966796875, 0.0233612060546875, 0.038482666015625, -0.0182342529296875, -0.031768798828125, 0.020172119140625, -0.0220794677734375, -0.04913330078125, -0.024810791015625, 0.056640625, -0.02471923828125, 0.042205810546875, 0.01288604736328125, 0.0118865966796875, 0.052459716796875, 0.01462554931640625, 0.0640869140625, 0.039031982421875, -0.055450439453125, 0.0205841064453125, -0.002185821533203125, 0.025238037109375, -0.010833740234375, 0.0261077880859375, -0.0022907257080078125, 0.017364501953125, 0.00408172607421875, 0.0175323486328125, 0.04913330078125, 0.07452392578125, -0.010772705078125, 0.0284423828125, 0.021453857421875, 0.003925323486328125, 0.00853729248046875, 0.0390625, -0.008087158203125, -0.003849029541015625, -0.0203704833984375, 0.01441192626953125, -0.04400634765625, 0.005321502685546875, -0.032073974609375, 0.0012025833129882812, 0.0042266845703125, 0.0171966552734375, -0.0188140869140625, -0.012908935546875, 0.01552581787109375, -0.002105712890625, 0.013214111328125, 0.0313720703125, -0.02734375, -0.043304443359375, -0.0067596435546875, 0.0191802978515625, -0.009735107421875, 0.006977081298828125, 0.02789306640625, 0.04071044921875, 0.00432586669921875, -0.0168609619140625, -0.006282806396484375, 0.0023555755615234375, -0.037872314453125, -0.0216064453125, 0.03564453125, -0.043212890625, -0.033660888671875, 0.065185546875, -0.01541900634765625, -0.006744384765625, 0.037933349609375, -0.046600341796875, 0.02069091796875, -0.06549072265625, -0.030487060546875, -0.0172271728515625, -0.027374267578125, -0.0279998779296875, 0.01532745361328125, -0.02545166015625, -0.047637939453125, -0.0225677490234375, -0.0511474609375, -0.048858642578125, -0.0217132568359375, 0.004772186279296875, -0.06005859375, -0.017913818359375, -0.0212554931640625, -0.0218048095703125, -0.0004260540008544922, 0.01168060302734375, -0.0202178955078125, -0.004077911376953125, 0.01087188720703125, 0.0110931396484375, 0.003200531005859375, -0.04150390625, -0.0709228515625, 0.033050537109375, 0.050506591796875, -0.005580902099609375, 0.01038360595703125, -0.01331329345703125, -0.02349853515625, -0.0003135204315185547, -0.0014667510986328125, -0.04644775390625, 0.035614013671875, 0.00814056396484375, 0.00382232666015625, -0.00067901611328125, 0.0279693603515625, -0.06134033203125, -0.03253173828125, -0.0357666015625, -0.049591064453125, -0.005828857421875, 0.02880859375, -0.045806884765625, 0.0178985595703125, 0.0004475116729736328, 0.0214691162109375, 0.010467529296875, 0.0017518997192382812, -0.034942626953125, -0.007720947265625, 0.037109375, -0.024749755859375, 0.0069580078125, 0.00016880035400390625, 0.03399658203125, -0.041107177734375, -0.06048583984375, 0.0106201171875, 0.036376953125, -0.020050048828125, 0.0247039794921875, 0.028594970703125, 0.005542755126953125, -0.003612518310546875, 0.029449462890625, 0.0404052734375, -0.0106048583984375, -0.0125579833984375, 0.0035266876220703125, -0.0028247833251953125, -0.05816650390625, 0.0215911865234375, 0.0164337158203125, 0.02545166015625, -0.001979827880859375, -0.0200653076171875, -0.0005860328674316406, -0.0413818359375, -0.0546875, -0.0009446144104003906, -0.0201416015625, -0.0017652511596679688, 0.0282135009765625, 0.00966644287109375, 0.021697998046875, -0.01253509521484375, 0.04022216796875, 0.0128326416015625, -0.0140228271484375, 0.015869140625, 0.0052337646484375, 0.0213775634765625, 0.040374755859375, -0.0250701904296875, -0.02490234375, -0.0230255126953125, 0.11102294921875, -0.0283966064453125, -0.03900146484375, 0.049835205078125, -0.0268402099609375, 0.04461669921875, 0.038177490234375, 0.01690673828125, -0.0230560302734375, -0.006946563720703125, -0.0064544677734375, 0.049285888671875, -0.0215911865234375, -0.05975341796875, -0.01381683349609375, 0.004611968994140625, -0.0203857421875, -0.0333251953125, 0.0322265625, 0.0170745849609375, -0.02435302734375, -0.0143280029296875, -0.0950927734375, 0.0088653564453125, -0.022064208984375, 0.036865234375, 0.00873565673828125, 0.048431396484375, 0.0296478271484375, 0.06536865234375, -0.06866455078125, 0.0245819091796875, -0.0184478759765625, -0.02398681640625, -0.0198974609375, 0.036895751953125, -0.00403594970703125, 0.0233306884765625, -0.01012420654296875, -0.02447509765625, -0.003543853759765625, 0.01385498046875, 0.01297760009765625, -0.0093231201171875, -0.01181793212890625, -0.009918212890625, 0.0042572021484375, -0.00452423095703125, -0.0005717277526855469, 0.03582763671875, 0.049041748046875, 0.081298828125, 0.0069580078125, -0.020660400390625, -0.0057373046875, -0.0819091796875, 0.0115966796875, 0.041778564453125, 0.03338623046875, 0.00695037841796875, -0.00208282470703125, -0.0014581680297851562, -0.02520751953125, -0.057098388671875, 0.027587890625, -0.0124053955078125, 0.034332275390625, 0.033966064453125, -0.0163421630859375, -0.056854248046875, 0.0216522216796875, -0.027313232421875, 0.0015668869018554688, 0.01163482666015625, -0.01971435546875, 0.02996826171875, 0.0238189697265625, -0.01525115966796875, 0.00036644935607910156, 0.0509033203125, 0.0333251953125, 0.0058135986328125, 0.005733489990234375, -0.022247314453125, 0.005832672119140625, 0.0026397705078125, 0.00962066650390625, -0.00949859619140625, 0.00832366943359375, -0.06854248046875, 0.00893402099609375, -0.0231170654296875, -0.01751708984375, 0.0002467632293701172, -0.0233306884765625, 0.00732421875, 0.0218048095703125, -0.0198822021484375, -0.0196533203125, 0.0283203125, -0.032989501953125, -0.02020263671875, -0.0285186767578125, -0.02374267578125, 0.010528564453125, 0.0123748779296875, -0.02880859375, -0.0012674331665039062, 0.0309600830078125, 0.05072021484375, -0.02740478515625, 0.056915283203125, -0.045745849609375, 0.007244110107421875, 0.1024169921875, -0.02874755859375, 0.0171966552734375, -0.007328033447265625, 0.09454345703125, 0.051910400390625, -0.0226593017578125, 0.0093841552734375, -0.002521514892578125, 0.03375244140625, 0.01340484619140625, -0.002239227294921875, -0.025604248046875, 0.00788116455078125, -0.10247802734375, -0.02545166015625, 0.040069580078125, 0.06976318359375, -0.0007877349853515625, -0.0487060546875, 0.01436614990234375, 0.042755126953125, -0.0625, -0.11962890625, -0.033233642578125, -0.048583984375, 0.001987457275390625, -0.02099609375, -0.01174163818359375, 0.01000213623046875, 0.0020999908447265625, 0.01453399658203125, 0.036285400390625, -0.03302001953125, -0.06732177734375, -0.059600830078125, -0.07958984375, -0.032440185546875, 0.0171661376953125, 0.0156402587890625, -0.00603485107421875, 0.059051513671875, -0.0120086669921875, -0.050689697265625, -0.04144287109375, -0.036468505859375, -0.0195770263671875, -0.01568603515625, 0.0247802734375, -0.005710601806640625, -0.0029811859130859375, 0.01119232177734375, -0.039215087890625, 0.01418304443359375, -0.00881195068359375, -0.0272064208984375, 0.0241241455078125, 0.0289306640625, 0.036590576171875, 0.00318145751953125, -0.03369140625, 0.01555633544921875, 0.01593017578125, -0.04638671875, 0.015838623046875, -0.017822265625, -0.022705078125, -0.053466796875, 0.01800537109375, -0.0076141357421875, -0.036529541015625, -0.01528167724609375, 0.07330322265625, 0.0201568603515625, -0.0126190185546875, -0.009368896484375, 0.04107666015625, 0.02374267578125, 0.071044921875, -0.031494140625, 0.0027599334716796875, -0.04437255859375, 0.0226593017578125, -0.0014171600341796875, -0.0255889892578125, -0.01128387451171875, -0.02252197265625, -0.0187225341796875, -0.03924560546875, 0.0518798828125, 0.006481170654296875, 0.0241546630859375, -0.05303955078125, -0.04022216796875, -0.029571533203125, 0.09136962890625, 0.0093994140625, -0.01151275634765625, -0.0279388427734375, -0.0024890899658203125, -0.033538818359375, -0.044830322265625, -0.0178375244140625, 0.004398345947265625, -0.007648468017578125, -0.00847625732421875, 0.0003311634063720703, -0.0201263427734375, 0.0013341903686523438, 0.03240966796875, -0.01247406005859375, -0.0186920166015625, 0.026336669921875, -0.025177001953125, 0.0108642578125, -0.00479888916015625, 0.0113067626953125, -0.0364990234375, 0.0030078887939453125, -0.044677734375, -0.09930419921875, -0.0207977294921875, -0.01166534423828125, 0.09271240234375, -0.0095672607421875, 0.017822265625, -0.04705810546875, 0.0309295654296875, -0.01395416259765625, 0.01654052734375, 0.0036182403564453125, 0.034576416015625, -0.03460693359375, -0.01319122314453125, 0.0100250244140625, -0.03582763671875, -0.003688812255859375, -0.042938232421875, -0.0134124755859375, -0.0238494873046875, -0.032928466796875, 0.01125335693359375, -0.0390625, 0.0076446533203125, 0.012481689453125, -0.0201263427734375, -0.0499267578125, 0.018707275390625, -0.043670654296875, 0.00536346435546875, -0.033416748046875, -0.00983428955078125, 0.041717529296875, 0.06396484375, -0.0006847381591796875, -0.0010013580322265625, 0.02813720703125, 0.00730133056640625, -0.052642822265625, -0.057403564453125, -0.025482177734375, 0.01343536376953125, -0.001956939697265625, 0.02337646484375, 0.0106048583984375, -0.0214691162109375, 0.05010986328125, -0.008056640625, 0.023193359375, -0.022491455078125, 0.0023593902587890625, 0.0084991455078125, -0.02734375, 0.032196044921875, 0.0195159912109375, -0.01056671142578125, 0.052093505859375, -0.005634307861328125, -0.00891876220703125, 0.01500701904296875, 0.027191162109375, -0.01363372802734375, -0.00032258033752441406, -0.03973388671875, -0.05328369140625, 0.02691650390625, -0.025482177734375, 0.0226287841796875, -0.0027923583984375, 0.006984710693359375, 0.0265350341796875, -0.00982666015625, -0.0226593017578125, 0.02752685546875, 0.044677734375, 0.03265380859375, 0.045379638671875, 0.0193328857421875, -0.00435638427734375, -0.052215576171875, 0.00017499923706054688, 0.00785064697265625, -0.03131103515625, -0.055755615234375, -0.017669677734375, -0.0188140869140625, 0.0244140625, 0.0270233154296875, 0.00981903076171875, 0.06939697265625, 0.0259552001953125, -0.0142059326171875, -0.0159454345703125, -0.0222625732421875, -0.01535797119140625, -0.0643310546875, 0.040374755859375, 0.024322509765625, 0.01184844970703125, 0.0265655517578125, 0.0305023193359375, -0.0019779205322265625, 0.027984619140625, -0.0028209686279296875, 0.0300140380859375, 0.007465362548828125, 0.035186767578125, 0.001956939697265625, -0.043182373046875, 0.0450439453125, -0.002819061279296875, 0.01486968994140625, -0.025390625, 0.000896453857421875, 0.0034694671630859375, 0.015380859375, -0.0240325927734375, -0.026519775390625, 0.0677490234375, 0.003353118896484375, -0.0254974365234375, 0.069580078125, 0.03912353515625, -0.039398193359375, -0.041534423828125, -0.01482391357421875, 0.056671142578125, -0.0095062255859375, -0.0002357959747314453, 0.032196044921875, -0.0017910003662109375, 0.0526123046875, -0.0057220458984375, 0.002033233642578125, 0.005687713623046875, 0.007610321044921875, 0.0215911865234375, -0.03741455078125, -0.03466796875, -0.007129669189453125, 0.0233612060546875, -0.0214996337890625, -0.0094146728515625, 0.034759521484375, -0.0145416259765625, 0.04339599609375, -0.03546142578125, -0.0061187744140625, 0.0008115768432617188, 0.00872039794921875, 0.03912353515625, 0.01531219482421875, 0.0182952880859375, -0.039581298828125, -0.03277587890625, -0.04217529296875, -0.0084991455078125, -0.006679534912109375, -0.028411865234375, 0.01119232177734375, 0.0294952392578125, -0.00498199462890625, 0.0160675048828125, -0.031036376953125, -0.0175323486328125, 0.003681182861328125, 0.019775390625, -0.051910400390625, -0.04962158203125, 0.0648193359375, -0.0041351318359375, 0.006809234619140625, -0.0262298583984375, 0.020355224609375, 0.0290985107421875, 0.0147247314453125, 0.0175018310546875, -0.078857421875, -0.035888671875, -0.0205230712890625, -0.025390625, 0.02093505859375, -0.025146484375, -0.005107879638671875, 0.042510986328125, -0.01702880859375, -0.00908660888671875, -0.00414276123046875, 0.014312744140625, -0.048980712890625, 0.0318603515625, -0.0042572021484375, -0.005126953125, -0.0292205810546875, -0.0083770751953125, -0.01751708984375, 0.01052093505859375, 0.0206298828125, -0.0191802978515625, -0.0276641845703125, -0.0110015869140625, 0.0462646484375, 0.03839111328125, -0.002079010009765625, 0.042449951171875, -0.0148468017578125, 0.00710296630859375, 0.0045013427734375, 0.0312042236328125, -0.03460693359375, -0.050872802734375, 0.03668212890625, 0.0011081695556640625, -0.046234130859375, 0.005046844482421875, -0.040283203125, 0.042266845703125, 0.0017499923706054688, 0.0625, -0.031158447265625, 0.031768798828125, 0.023345947265625, -0.0242767333984375, 0.01641845703125, 0.007183074951171875, -0.0051422119140625, -0.0218658447265625, -0.0045013427734375, 0.0222930908203125, -0.0125732421875, -0.0177459716796875, 0.0007548332214355469, 0.001499176025390625, -0.0042266845703125, 0.0200042724609375, 0.00800323486328125, -0.059722900390625, 0.03814697265625, 0.01363372802734375, 0.0197906494140625, 0.005023956298828125, 0.01468658447265625, 0.046661376953125, -0.0149078369140625, -0.02630615234375, 0.045623779296875, -0.007221221923828125, -0.028961181640625, 0.02734375, 0.00783538818359375, 0.0248870849609375, 0.038543701171875, 0.0074310302734375, 0.0040283203125, 0.00023174285888671875, 0.006397247314453125, -0.0161285400390625, -0.0088958740234375, -0.0004513263702392578, 0.0177764892578125, -0.0222930908203125, 0.008514404296875, -0.0215606689453125, -0.007465362548828125, -0.00765228271484375, 0.0010881423950195312, 0.040435791015625, 0.00714111328125, -0.0209197998046875, 0.053924560546875, 0.012420654296875, -0.0361328125, -0.028411865234375, 0.047088623046875, -0.065673828125, 0.003299713134765625, -0.0014047622680664062, 0.01372528076171875, -0.0270233154296875, -0.0214080810546875, -0.03143310546875, 0.07666015625, -0.013427734375, -0.0043487548828125, 0.02325439453125, 0.02587890625, -0.0288238525390625, 0.021392822265625, -0.034454345703125, 0.053497314453125, 0.00933074951171875, 0.0165557861328125, -0.00154876708984375, 0.0144805908203125, 0.00396728515625, -0.0247955322265625, 0.00628662109375, -0.0089569091796875, -0.0408935546875, -0.026763916015625, 0.006969451904296875, 0.01275634765625, 0.0126953125, 0.0308837890625, -0.0067291259765625, 0.044281005859375, 0.0755615234375, -0.059051513671875, 0.0251922607421875, 0.0203399658203125, 0.0159912109375, 0.02117919921875, 0.0026378631591796875, 0.0045166015625, -0.0150299072265625, 0.043792724609375, 0.035858154296875, -0.0163421630859375, -0.004505157470703125, -0.01258087158203125, 0.01467132568359375, 0.0230712890625, 0.03814697265625, -0.06634521484375, -0.032012939453125, -0.0252532958984375, 0.045135498046875, 0.0136871337890625, 0.013092041015625, 0.0284881591796875, 0.0007519721984863281, 0.0797119140625, -0.0235443115234375, -0.00614166259765625, -0.0181121826171875, 0.00725555419921875, 0.038604736328125, 0.01959228515625, 0.0290069580078125, -0.05133056640625, -0.047332763671875, 0.0440673828125, 0.07330322265625, -0.0305633544921875, -0.055938720703125, -0.0036029815673828125, -0.00008219480514526367, 0.01096343994140625, -0.0032482147216796875, -0.01490020751953125, 0.041839599609375, 0.0711669921875, -0.01360321044921875, -0.02734375, -0.007415771484375, -0.0115814208984375, -0.01708984375, -0.010650634765625, 0.06927490234375, -0.00864410400390625, 0.036712646484375, -0.0250396728515625, -0.005779266357421875, -0.0078125, 0.0081787109375, -0.023529052734375, -0.037445068359375, 0.018157958984375, -0.034027099609375, 0.06585693359375, 0.0008096694946289062, 0.04217529296875, -0.062286376953125, -0.048309326171875, 0.0165557861328125, 0.038726806640625, -0.0033245086669921875, 0.01300048828125, 0.0092620849609375, 0.020751953125, -0.0061492919921875, 0.004871368408203125, 0.04547119140625, -0.01561737060546875, -0.005397796630859375, -0.0484619140625, 0.006359100341796875, 0.0230560302734375, 0.0009284019470214844, -0.00032591819763183594, 0.0004203319549560547, 0.03521728515625, 0.007389068603515625, -0.004352569580078125, 0.01010894775390625, -0.01007080078125, 0.02471923828125, -0.00655364990234375, 0.003116607666015625, 0.01806640625, -0.064697265625, -0.0372314453125, 0.011810302734375, 0.0164794921875, 0.0005702972412109375, 0.027435302734375, -0.01194000244140625, 0.035552978515625, -0.02197265625, 0.0016565322875976562, 0.0120697021484375, -0.02484130859375, -0.00003814697265625, -0.0235137939453125, 0.01023101806640625, -0.023956298828125, -0.01342010498046875, 0.004787445068359375, -0.007610321044921875, 0.033538818359375, -0.0063629150390625, 0.04266357421875, -0.0125579833984375, 0.01192474365234375, 0.054718017578125, -0.0264739990234375, 0.045257568359375, 0.06591796875, -0.03631591796875, -0.026336669921875, -0.01219940185546875, -0.0245208740234375, -0.03692626953125, -0.0279693603515625, 0.036041259765625, -0.027587890625, -0.05975341796875, -0.0027141571044921875, 0.053802490234375, 0.03375244140625, 0.0382080078125, -0.022186279296875, 0.013153076171875, -0.0200653076171875, -0.047393798828125, 0.061737060546875, 0.0169525146484375, 0.01062774658203125, 0.037322998046875, 0.07568359375, 0.01287841796875, 0.01136016845703125, -0.0069427490234375, 0.047027587890625, 0.0311431884765625, 0.0220489501953125, 0.00975799560546875, 0.025421142578125, -0.02276611328125, -0.01971435546875, 0.016021728515625, 0.005542755126953125, 0.015869140625, -0.048858642578125, -0.006900787353515625, 0.008819580078125, 0.040679931640625, 0.02239990234375, 0.0208740234375, -0.0296783447265625, 0.004009246826171875, -0.04083251953125, 0.0005283355712890625, -0.01097869873046875, 0.00534820556640625, -0.02825927734375, 0.0005702972412109375, -0.025634765625, -0.061492919921875, -0.07440185546875, 0.00015103816986083984, 0.039520263671875, 0.0221099853515625, -0.0902099609375, 0.06268310546875, -0.0280303955078125, -0.0036773681640625, 0.00579071044921875, -0.041717529296875, -0.003574371337890625, 0.0160369873046875, 0.01275634765625, -0.08148193359375, -0.039520263671875, 0.0606689453125, -0.0396728515625, 0.0263824462890625, 0.03546142578125, -0.037994384765625, -0.00148773193359375, 0.004238128662109375, 0.019927978515625, 0.041656494140625, -0.007183074951171875, -0.0064239501953125, 0.0258026123046875, 0.0048675537109375, -0.018402099609375, -0.038238525390625, -0.007579803466796875, -0.003292083740234375, 0.0029544830322265625, -0.00479888916015625, -0.007633209228515625, 0.0020236968994140625, -0.03753662109375, -0.0477294921875, 0.052032470703125, 0.0059356689453125, -0.019805908203125, -0.0296173095703125, -0.00493621826171875, -0.0059814453125, 0.041656494140625, -0.00493621826171875, -0.004795074462890625, -0.04376220703125, 0.0156402587890625, 0.0197906494140625, -0.03399658203125, 0.0307159423828125, -0.0207061767578125, -0.0814208984375, 0.00562286376953125, 0.004390716552734375, 0.018707275390625, -0.035888671875, 0.035491943359375, 0.003238677978515625, 0.039703369140625, 0.0098114013671875, 0.0289764404296875, 0.0183258056640625, -0.0308074951171875, -0.00785064697265625, 0.018157958984375, -0.00707244873046875, 0.045318603515625, 0.07110595703125, 0.07501220703125, 0.025726318359375, -0.08062744140625, -0.0252532958984375, -0.0260009765625, 0.002300262451171875, -0.00618743896484375, 0.01189422607421875, -0.032440185546875, 0.024658203125, -0.014190673828125, -0.005565643310546875, 0.0174560546875, 0.031982421875, -0.003662109375, 0.0016279220581054688, 0.052825927734375, -0.01335906982421875, -0.061492919921875, -0.011627197265625, 0.0016870498657226562, -0.0196075439453125, -0.040496826171875, 0.010955810546875, 0.00792694091796875, -0.045928955078125, -0.003726959228515625, -0.040191650390625, -0.0179595947265625, 0.00984954833984375, 0.0232696533203125, -0.01861572265625, -0.006622314453125, -0.0006394386291503906, 0.0264892578125, -0.0152130126953125, 0.00936126708984375, 0.015411376953125, 0.02459716796875, 0.0027313232421875, 0.0173492431640625, 0.012969970703125, 0.0240631103515625, 0.0076751708984375, -0.01314544677734375, 0.006366729736328125, 0.0137939453125, 0.01171112060546875, -0.01788330078125, 0.0572509765625, -0.059722900390625, 0.0013055801391601562, 0.00983428955078125, -0.02386474609375, -0.036773681640625, 0.01611328125, -0.038970947265625, -0.0148468017578125, 0.0077056884765625 ]
e1003e00a1eb0dd250621bed2c6d7b890635763c
Wordpress Stackexchange Q: Is it possible to query specific Wordpress Attachment files (.ppt & .pdf) and output them in a list? The files are .ppt and .pdf files (not images). Will it be possible to query these types of attachments and output it in a unordered list? A: I don't think it's documented in Codex but quick search in code shows that you can query by mime type. For jpeg images that would be something like: $posts = get_posts( array( 'post_type' => 'attachment', 'post_status' => 'any', 'post_mime_type' => 'image/jpeg', ) ); Not sure what types WP uses for files you need, don't have such in test stack to check.
Q: Is it possible to query specific Wordpress Attachment files (.ppt & .pdf) and output them in a list? The files are .ppt and .pdf files (not images). Will it be possible to query these types of attachments and output it in a unordered list? A: I don't think it's documented in Codex but quick search in code shows that you can query by mime type. For jpeg images that would be something like: $posts = get_posts( array( 'post_type' => 'attachment', 'post_status' => 'any', 'post_mime_type' => 'image/jpeg', ) ); Not sure what types WP uses for files you need, don't have such in test stack to check.
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:411008", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22069" }
[ 0.07305908203125, -0.00635528564453125, 0.0211181640625, -0.01342010498046875, 0.0166778564453125, -0.03338623046875, 0.07659912109375, -0.03704833984375, 0.0175323486328125, 0.0546875, 0.006999969482421875, 0.005741119384765625, 0.02239990234375, -0.010833740234375, -0.032867431640625, 0.0029506683349609375, 0.046600341796875, -0.01285552978515625, 0.04437255859375, 0.01190185546875, 0.005397796630859375, 0.038238525390625, 0.05462646484375, -0.0025157928466796875, -0.0037994384765625, 0.039581298828125, 0.0587158203125, -0.0019140243530273438, -0.01224517822265625, -0.003246307373046875, 0.0179290771484375, -0.019378662109375, 0.01666259765625, 0.0267791748046875, -0.03192138671875, -0.0021610260009765625, 0.007579803466796875, -0.00003218650817871094, -0.01336669921875, 0.04443359375, 0.002429962158203125, 0.005550384521484375, 0.01142120361328125, -0.0165557861328125, -0.01352691650390625, -0.0126495361328125, 0.0088958740234375, -0.024658203125, 0.047607421875, 0.0142364501953125, -0.0260009765625, 0.038818359375, -0.0247650146484375, -0.0289154052734375, 0.00911712646484375, 0.01493072509765625, -0.0223846435546875, 0.036590576171875, 0.0195770263671875, -0.05755615234375, -0.0264739990234375, -0.0005364418029785156, 0.031402587890625, 0.038665771484375, -0.0196685791015625, -0.0050506591796875, -0.00733184814453125, 0.02374267578125, -0.000774383544921875, -0.027130126953125, 0.0002872943878173828, -0.0007476806640625, -0.01104736328125, -0.046417236328125, -0.020904541015625, 0.0411376953125, 0.01446533203125, -0.00962066650390625, -0.00524139404296875, -0.0261077880859375, 0.031707763671875, -0.01531219482421875, -0.064697265625, 0.017242431640625, 0.0035572052001953125, 0.0271148681640625, 0.0106964111328125, -0.0280303955078125, -0.026214599609375, -0.02593994140625, -0.0304412841796875, 0.007709503173828125, -0.0286712646484375, -0.005035400390625, -0.0229644775390625, -0.005489349365234375, 0.00737762451171875, -0.0015010833740234375, 0.0128936767578125, 0.017120361328125, -0.012939453125, -0.027252197265625, 0.015167236328125, -0.00991058349609375, 0.030975341796875, 0.0186920166015625, -0.00347900390625, -0.0234527587890625, 0.033355712890625, 0.0265045166015625, -0.01093292236328125, 0.037353515625, -0.0177154541015625, -0.037139892578125, 0.01337432861328125, 0.040740966796875, -0.0177764892578125, 0.03790283203125, 0.0091400146484375, 0.0245361328125, 0.01316070556640625, 0.0296783447265625, 0.045166015625, -0.03509521484375, -0.0149688720703125, -0.00745391845703125, -0.00666046142578125, -0.0673828125, 0.015228271484375, 0.0264892578125, -0.01058197021484375, 0.0179290771484375, -0.0253753662109375, -0.0155792236328125, -0.030487060546875, 0.0008749961853027344, -0.0107269287109375, -0.00969696044921875, 0.0059661865234375, 0.01207733154296875, 0.02874755859375, -0.03973388671875, -0.002269744873046875, 0.03076171875, -0.0179595947265625, 0.004058837890625, 0.033447265625, 0.035064697265625, -0.017730712890625, -0.037567138671875, 0.006847381591796875, 0.0010385513305664062, 0.043365478515625, -0.0169677734375, -0.0284271240234375, -0.04302978515625, 0.004764556884765625, -0.0309295654296875, 0.00469207763671875, -0.034698486328125, 0.00616455078125, -0.0037479400634765625, 0.01123046875, -0.0135345458984375, -0.0216522216796875, 0.0185394287109375, -0.0231475830078125, -0.00858306884765625, 0.0310516357421875, 0.027252197265625, -0.007503509521484375, -0.0682373046875, 0.054656982421875, 0.0161590576171875, -0.023468017578125, 0.055694580078125, 0.006633758544921875, -0.00943756103515625, 0.0103302001953125, 0.07733154296875, 0.01026153564453125, -0.0216522216796875, 0.06396484375, -0.029388427734375, -0.0523681640625, 0.001728057861328125, 0.0058135986328125, 0.0269622802734375, 0.04266357421875, 0.01153564453125, 0.031158447265625, 0.0011119842529296875, -0.00917816162109375, -0.005359649658203125, -0.01068115234375, -0.0236663818359375, -0.01276397705078125, -0.005859375, 0.0015087127685546875, 0.017425537109375, 0.00946807861328125, 0.0093994140625, 0.005207061767578125, 0.0037937164306640625, -0.0084381103515625, 0.00978851318359375, -0.00984954833984375, 0.035400390625, -0.052947998046875, 0.0234375, 0.02569580078125, 0.0092010498046875, -0.045623779296875, 0.0233612060546875, 0.0253448486328125, 0.045013427734375, 0.01004791259765625, 0.002582550048828125, 0.0008687973022460938, 0.022247314453125, -0.0209808349609375, 0.0006685256958007812, -0.034759521484375, 0.005084991455078125, 0.0189666748046875, 0.036163330078125, -0.0200042724609375, 0.016204833984375, 0.0657958984375, 0.034515380859375, 0.0251617431640625, -0.0301971435546875, -0.0115203857421875, -0.0006222724914550781, -0.034698486328125, -0.006534576416015625, 0.0031185150146484375, -0.0304412841796875, 0.010589599609375, 0.040283203125, 0.046966552734375, 0.03851318359375, -0.0023784637451171875, -0.0279693603515625, 0.09454345703125, 0.0209808349609375, 0.026031494140625, -0.042083740234375, -0.0184478759765625, -0.003173828125, 0.007568359375, 0.002292633056640625, 0.01629638671875, 0.0160980224609375, -0.0164337158203125, 0.0209503173828125, 0.02899169921875, 0.03424072265625, -0.035980224609375, 0.0367431640625, -0.0116424560546875, 0.07177734375, 0.01425933837890625, 0.03240966796875, 0.040679931640625, 0.023681640625, 0.05767822265625, 0.044464111328125, -0.01605224609375, 0.0115203857421875, -0.01800537109375, -0.005130767822265625, 0.01119232177734375, 0.08428955078125, 0.022430419921875, 0.02716064453125, -0.00766754150390625, -0.044158935546875, 0.0266876220703125, 0.05413818359375, 0.00597381591796875, 0.00225830078125, -0.027679443359375, -0.00399017333984375, 0.015045166015625, 0.00830841064453125, 0.00862884521484375, 0.0294647216796875, -0.058319091796875, 0.01654052734375, 0.0318603515625, 0.052459716796875, 0.02874755859375, -0.0173492431640625, -0.01904296875, 0.040679931640625, 0.039581298828125, -0.057159423828125, 0.048065185546875, -0.04559326171875, 0.056365966796875, 0.0653076171875, -0.023284912109375, 0.033355712890625, -0.00798797607421875, -0.019500732421875, -0.030426025390625, 0.01324462890625, -0.007770538330078125, -0.0312347412109375, -0.0227813720703125, 0.05584716796875, -0.0037403106689453125, 0.0294189453125, -0.0250244140625, -0.05267333984375, -0.0216064453125, -0.0045318603515625, -0.09600830078125, -0.05731201171875, 0.0200958251953125, -0.080078125, 0.031463623046875, 0.003108978271484375, -0.04461669921875, -0.0396728515625, 0.061431884765625, 0.0164947509765625, 0.023773193359375, 0.0238800048828125, -0.05035400390625, 0.02313232421875, -0.050018310546875, 0.026275634765625, -0.005596160888671875, 0.01861572265625, 0.005657196044921875, 0.073974609375, 0.0170135498046875, -0.04437255859375, -0.0071258544921875, 0.05126953125, -0.02130126953125, -0.0120391845703125, -0.004848480224609375, -0.007415771484375, -0.01739501953125, -0.00970458984375, 0.051849365234375, 0.020233154296875, -0.025299072265625, 0.01151275634765625, 0.00632476806640625, 0.01152801513671875, 0.00853729248046875, -0.0153656005859375, -0.02197265625, -0.0162506103515625, -0.042327880859375, -0.06982421875, 0.0114593505859375, 0.0030078887939453125, -0.00124359130859375, -0.01544952392578125, -0.02447509765625, -0.0103302001953125, -0.02783203125, 0.037994384765625, 0.0150299072265625, 0.00479888916015625, -0.015533447265625, -0.0161590576171875, 0.03717041015625, 0.01171875, 0.0411376953125, 0.0082855224609375, 0.03131103515625, -0.01544189453125, 0.0162811279296875, 0.006931304931640625, 0.0036773681640625, -0.0123443603515625, 0.01313018798828125, -0.0289764404296875, -0.0704345703125, 0.04412841796875, -0.032196044921875, -0.01044464111328125, -0.012237548828125, -0.015380859375, 0.0268096923828125, 0.0908203125, -0.0300750732421875, -0.030029296875, -0.0030651092529296875, 0.037261962890625, -0.0472412109375, -0.08612060546875, 0.0081024169921875, -0.007686614990234375, -0.057952880859375, -0.0026149749755859375, -0.0114898681640625, -0.033660888671875, 0.00372314453125, 0.0160369873046875, -0.01265716552734375, -0.03802490234375, 0.031829833984375, 0.0404052734375, 0.0188751220703125, 0.002498626708984375, 0.0243377685546875, -0.01056671142578125, -0.037933349609375, 0.004840850830078125, -0.07073974609375, -0.016143798828125, -0.0016927719116210938, 0.052886962890625, 0.005489349365234375, -0.0330810546875, -0.00791168212890625, 0.0428466796875, 0.006954193115234375, 0.0121612548828125, 0.00966644287109375, -0.0031452178955078125, 0.012176513671875, -0.0046234130859375, 0.0128936767578125, -0.02557373046875, -0.0233154296875, -0.0745849609375, -0.047088623046875, -0.049957275390625, -0.01015472412109375, 0.0048675537109375, -0.00019431114196777344, 0.01104736328125, -0.0284423828125, -0.005107879638671875, -0.0159454345703125, 0.026123046875, -0.01049041748046875, 0.01009368896484375, -0.010406494140625, -0.03717041015625, 0.017333984375, 0.01678466796875, -0.040313720703125, 0.005374908447265625, 0.0261383056640625, 0.017852783203125, -0.0294036865234375, -0.086669921875, 0.01111602783203125, 0.0523681640625, 0.01505279541015625, 0.022552490234375, 0.022216796875, -0.0323486328125, 0.0369873046875, 0.0340576171875, 0.022369384765625, -0.0362548828125, 0.08489990234375, 0.01380157470703125, 0.00962066650390625, 0.0264739990234375, 0.02392578125, -0.01428985595703125, 0.006191253662109375, 0.01303863525390625, -0.03466796875, 0.0190887451171875, 0.035614013671875, -0.00815582275390625, 0.015167236328125, -0.01312255859375, -0.0265655517578125, 0.00431060791015625, -0.02020263671875, 0.052032470703125, 0.03460693359375, -0.01206207275390625, 0.044952392578125, 0.052703857421875, -0.0020656585693359375, 0.042755126953125, 0.026123046875, 0.0070037841796875, 0.0250396728515625, 0.028411865234375, -0.01145172119140625, -0.0018930435180664062, -0.0009632110595703125, -0.02044677734375, -0.02960205078125, -0.04827880859375, -0.004150390625, 0.0008034706115722656, 0.006011962890625, 0.056732177734375, 0.011962890625, 0.0275421142578125, 0.0131072998046875, -0.01468658447265625, -0.013519287109375, -0.01995849609375, 0.0110626220703125, -0.0438232421875, 0.03759765625, -0.012237548828125, 0.0005183219909667969, 0.0298919677734375, 0.02081298828125, -0.064453125, 0.0465087890625, 0.0084075927734375, 0.00951385498046875, 0.039031982421875, -0.002872467041015625, 0.00736236572265625, 0.036590576171875, -0.03289794921875, 0.024017333984375, 0.0309600830078125, -0.0396728515625, 0.01459503173828125, 0.0010194778442382812, 0.0282440185546875, -0.01666259765625, -0.04400634765625, 0.04296875, -0.03741455078125, -0.014495849609375, -0.0038318634033203125, 0.006305694580078125, 0.0216522216796875, -0.033050537109375, -0.03582763671875, 0.01494598388671875, 0.02618408203125, -0.03631591796875, 0.005840301513671875, -0.0266265869140625, 0.001605987548828125, 0.0191802978515625, -0.0675048828125, 0.023834228515625, 0.037689208984375, -0.026885986328125, -0.0037136077880859375, -0.0191650390625, -0.024505615234375, -0.042388916015625, -0.00293731689453125, 0.0013322830200195312, 0.039703369140625, -0.0017118453979492188, 0.0025043487548828125, -0.033294677734375, 0.0176849365234375, 0.00970458984375, -0.005367279052734375, 0.0687255859375, 0.0225677490234375, -0.022674560546875, 0.0010347366333007812, -0.03436279296875, -0.01308441162109375, 0.055450439453125, 0.0013599395751953125, -0.036865234375, -0.0272674560546875, 0.01177215576171875, 0.025787353515625, -0.01007843017578125, -0.02789306640625, 0.005458831787109375, 0.01114654541015625, 0.0194244384765625, 0.051544189453125, -0.00614166259765625, 0.06390380859375, -0.01058197021484375, 0.03717041015625, -0.0010843276977539062, 0.0026836395263671875, -0.05157470703125, 0.002170562744140625, -0.0193939208984375, -0.08612060546875, 0.0164031982421875, 0.0167999267578125, 0.007022857666015625, -0.0013408660888671875, -0.038818359375, 0.0191650390625, -0.01480865478515625, -0.0259246826171875, -0.004718780517578125, -0.01331329345703125, 0.05511474609375, -0.0105743408203125, -0.00864410400390625, 0.013916015625, -0.0045623779296875, 0.0236358642578125, -0.007778167724609375, -0.0144195556640625, 0.01384735107421875, -0.00812530517578125, 0.0110321044921875, 0.0167694091796875, 0.004344940185546875, 0.0269622802734375, 0.04608154296875, -0.0202484130859375, -0.00396728515625, 0.0277099609375, -0.0167999267578125, -0.0238494873046875, 0.0251007080078125, -0.0096893310546875, -0.0099639892578125, 0.07196044921875, 0.00460052490234375, -0.047882080078125, 0.01427459716796875, -0.049163818359375, 0.0206298828125, 0.015655517578125, 0.049468994140625, -0.0307464599609375, 0.0002911090850830078, -0.00495147705078125, -0.02972412109375, 0.019195556640625, -0.0036792755126953125, -0.01531982421875, -0.055389404296875, 0.0275115966796875, 0.00812530517578125, -0.01309967041015625, -0.0135040283203125, 0.00220489501953125, 0.00696563720703125, -0.0002999305725097656, 0.00921630859375, -0.004817962646484375, -0.05267333984375, -0.0457763671875, 0.03997802734375, -0.05120849609375, -0.0313720703125, 0.01788330078125, -0.018463134765625, -0.002864837646484375, -0.057373046875, -0.019195556640625, -0.00014603137969970703, 0.007049560546875, -0.039337158203125, -0.0035533905029296875, 0.043487548828125, 0.0511474609375, -0.01287841796875, -0.00904083251953125, 0.040435791015625, -0.04144287109375, -0.0083465576171875, -0.005725860595703125, -0.0097808837890625, 0.032928466796875, -0.03448486328125, 0.0133056640625, -0.0374755859375, 0.0333251953125, -0.0032215118408203125, -0.0177154541015625, 0.01983642578125, -0.06378173828125, 0.0217742919921875, 0.047760009765625, 0.049072265625, -0.01328277587890625, 0.0179290771484375, 0.00321197509765625, -0.029815673828125, -0.0170745849609375, 0.0140838623046875, -0.036834716796875, -0.00235748291015625, 0.0157318115234375, -0.052154541015625, 0.0222625732421875, -0.0088958740234375, 0.046600341796875, 0.016876220703125, -0.001903533935546875, -0.00047016143798828125, -0.006999969482421875, -0.0182037353515625, 0.047088623046875, 0.0130615234375, 0.020050048828125, -0.047393798828125, -0.01275634765625, 0.0079193115234375, 0.039337158203125, 0.049285888671875, 0.00423431396484375, -0.069091796875, 0.0189056396484375, 0.11285400390625, 0.043670654296875, 0.03717041015625, 0.061126708984375, 0.01328277587890625, -0.002399444580078125, 0.02752685546875, -0.002315521240234375, 0.033233642578125, -0.039093017578125, 0.0019397735595703125, 0.03106689453125, 0.001922607421875, -0.0108642578125, -0.00508880615234375, 0.006198883056640625, -0.04486083984375, -0.01055145263671875, 0.0169525146484375, 0.0230712890625, 0.00457763671875, 0.05419921875, 0.07568359375, -0.06793212890625, -0.001434326171875, -0.0243072509765625, 0.066650390625, 0.0037441253662109375, 0.0177764892578125, 0.005741119384765625, -0.00586700439453125, 0.0728759765625, -0.0308685302734375, -0.01290130615234375, 0.0081024169921875, -0.00010418891906738281, 0.01296234130859375, -0.0255126953125, 0.00994110107421875, -0.052093505859375, 0.007289886474609375, 0.0379638671875, 0.020721435546875, -0.036224365234375, -0.03204345703125, 0.015625, -0.0042724609375, -0.00766754150390625, -0.00010085105895996094, 0.00495147705078125, 0.00547027587890625, 0.023712158203125, -0.015777587890625, -0.007411956787109375, -0.00273895263671875, 0.022064208984375, -0.00479888916015625, -0.0027637481689453125, -0.00946807861328125, -0.01390838623046875, -0.0178070068359375, 0.053863525390625, 0.018890380859375, -0.01544952392578125, -0.054290771484375, 0.040924072265625, 0.01485443115234375, 0.0282135009765625, -0.021575927734375, 0.04315185546875, -0.04974365234375, 0.04034423828125, -0.03509521484375, -0.060943603515625, -0.00991058349609375, 0.035888671875, 0.073486328125, 0.0206298828125, 0.01389312744140625, -0.0092620849609375, 0.02618408203125, 0.0369873046875, 0.01120758056640625, -0.010711669921875, -0.008758544921875, -0.0297088623046875, 0.01184844970703125, 0.0338134765625, -0.007843017578125, 0.01473236083984375, 0.00495147705078125, 0.060882568359375, -0.0330810546875, 0.046142578125, -0.01038360595703125, -0.005443572998046875, 0.048004150390625, -0.01436614990234375, 0.03448486328125, -0.0038013458251953125, -0.1243896484375, -0.0426025390625, -0.031158447265625, -0.0146026611328125, 0.046661376953125, 0.043182373046875, 0.0022125244140625, -0.018218994140625, 0.01605224609375, -0.028656005859375, 0.0143585205078125, -0.0113677978515625, 0.0204315185546875, 0.0086212158203125, -0.01428985595703125, 0.0070037841796875, -0.07586669921875, -0.03521728515625, -0.021148681640625, 0.0158538818359375, -0.00464630126953125, 0.077392578125, 0.003997802734375, 0.0179595947265625, -0.004505157470703125, 0.042236328125, -0.04132080078125, -0.0160369873046875, 0.033721923828125, 0.0006628036499023438, 0.0144500732421875, -0.00724029541015625, 0.01617431640625, 0.013153076171875, 0.0202789306640625, -0.059783935546875, -0.0269775390625, -0.005390167236328125, 0.0166168212890625, 0.01293182373046875, 0.03948974609375, -0.0138397216796875, 0.00811767578125, -0.0144805908203125, -0.034454345703125, 0.046051025390625, 0.033538818359375, 0.031494140625, 0.022857666015625, 0.042022705078125, -0.00775146484375, 0.05059814453125, -0.0196380615234375, 0.09686279296875, 0.047607421875, -0.031951904296875, -0.056304931640625, -0.041748046875, -0.02099609375, 0.0005040168762207031, -0.0223846435546875, 0.0635986328125, -0.02313232421875, 0.0034770965576171875, -0.0016231536865234375, -0.0167083740234375, 0.0169677734375, -0.0426025390625, -0.00943756103515625, 0.005794525146484375, 0.0052337646484375, 0.0162353515625, -0.0159912109375, -0.01403045654296875, -0.041900634765625, 0.0016622543334960938, 0.007061004638671875, -0.00927734375, -0.01067352294921875, -0.004791259765625, -0.052459716796875, 0.0085296630859375, 0.021575927734375, -0.034515380859375, 0.0301361083984375, 0.00759124755859375, -0.05938720703125, 0.0032482147216796875, 0.02105712890625, -0.0289459228515625, -0.007717132568359375, -0.0023097991943359375, -0.04364013671875, -0.04998779296875, 0.07342529296875, -0.02093505859375, 0.022918701171875, 0.048370361328125, -0.036956787109375, -0.0222930908203125, 0.043609619140625, 0.03961181640625, 0.0819091796875, 0.0028514862060546875, 0.00007897615432739258, 0.02191162109375, 0.01082611083984375, -0.0682373046875, -0.08380126953125, 0.024932861328125, -0.06597900390625, -0.004268646240234375, 0.01499176025390625, 0.00943756103515625, 0.0274810791015625, -0.02838134765625, -0.11151123046875, 0.064453125, -0.03521728515625, -0.036712646484375, -0.078369140625, 0.04913330078125, -0.005870819091796875, 0.0213470458984375, -0.032379150390625, 0.01174163818359375, 0.00891876220703125, 0.0355224609375, 0.0006351470947265625, -0.00901031494140625, 0.03466796875, 0.003215789794921875, -0.0187530517578125, 0.016632080078125, 0.01141357421875, -0.032562255859375, 0.005039215087890625, 0.0019702911376953125, 0.049560546875, 0.053955078125, -0.011688232421875, 0.03619384765625, 0.0179443359375, -0.0288238525390625, 0.0101776123046875, 0.0265960693359375, -0.05615234375, 0.0286712646484375, 0.0159912109375, 0.11798095703125, 0.0228729248046875, -0.054107666015625, 0.0137481689453125, 0.022857666015625, -0.043121337890625, -0.0152587890625, 0.017059326171875, -0.03411865234375, -0.0160369873046875, -0.032989501953125, -0.014373779296875, 0.00586700439453125, 0.019073486328125, -0.0367431640625, -0.004547119140625, -0.00333404541015625, -0.0193023681640625, -0.0208282470703125, -0.00505828857421875, 0.01129150390625, -0.0219268798828125, -0.0097503662109375, 0.0037555694580078125, 0.009368896484375, -0.0174713134765625, 0.0079498291015625, 0.01206207275390625, 0.0079498291015625, 0.042694091796875, -0.0009965896606445312, 0.052642822265625, -0.048736572265625, 0.041046142578125, 0.0030078887939453125, -0.03662109375, -0.00914764404296875, 0.0221710205078125, -0.02447509765625, -0.01971435546875, -0.0007572174072265625, 0.01120758056640625, 0.00689697265625, -0.0085296630859375, -0.00835418701171875, -0.021942138671875, 0.0252838134765625, 0.045318603515625, -0.03021240234375, 0.10009765625, -0.05133056640625, 0.00801849365234375, -0.01293182373046875, -0.047882080078125, -0.01201629638671875, -0.009063720703125, -0.03143310546875, -0.046661376953125, 0.0115203857421875 ]
52f4f19edf6099d4a3408789061661977c208079
Wordpress Stackexchange Q: Add Plugins to Wordpress Theme I'm creating a wordpress theme that I aim to sell at some point. Now, I've discovered that some of the wordpress.org plugins would be great for things that I want to do. They already hold much of the functionality I aim to achieve, so I thought of using them directly (they are under GPL I suppose). I would probably need to adjust stuff, but I was wondering. Is there any universal-like way to include wordpress plugins inside my theme and not in the separate plugins folder ? That would be ideal, because I do not really want customers to have to copy to different folders. At first glance of the plugins, it seems not possible, but I suppose it never hurts to ask :) A: This class was built with your question and idea in mind. It solves that problem by allowing theme authors to include pre-packaged plugins or plugins from the repo with ease. https://github.com/thomasgriffin/TGM-Plugin-Activation
Q: Add Plugins to Wordpress Theme I'm creating a wordpress theme that I aim to sell at some point. Now, I've discovered that some of the wordpress.org plugins would be great for things that I want to do. They already hold much of the functionality I aim to achieve, so I thought of using them directly (they are under GPL I suppose). I would probably need to adjust stuff, but I was wondering. Is there any universal-like way to include wordpress plugins inside my theme and not in the separate plugins folder ? That would be ideal, because I do not really want customers to have to copy to different folders. At first glance of the plugins, it seems not possible, but I suppose it never hurts to ask :) A: This class was built with your question and idea in mind. It solves that problem by allowing theme authors to include pre-packaged plugins or plugins from the repo with ease. https://github.com/thomasgriffin/TGM-Plugin-Activation A: I strongly believe that if you aim to sell at some point you should NOT include/use GPL plugins and only your own!!! Now after that being said simply include the plugin's main file you your theme's functions.php and edit all path's A: Let me make a recommendation: do not bundle plugins with your theme! On first glance, yes this is a very easy way to add default functionality with your theme, but there are a slew of reasons not to include the plugins this way: * *Updates: If the plugin is freely available from WordPress.org already, then so are automatic updates to the plugin. The original author can add features, fix bugs, and deploy them quickly. Your clients and customers then benefit from on-going development. If you were to package them in your theme, though, you are essentially freezing the code at that point in time - any further updates, bug fixes, etc. would have to come from you. This means you'll need to continuously release theme updates whenever the included plugins update. *Updates: When WordPress updates, some plugins will break. This is because the original authors didn't take the time to remove deprecated functionality or test with new versions of WP. Do you really want to commit to maintaining your theme + someone else's code? *Interoperability: As the great mfields once said, "If you're building a bathroom and you change the wallpaper, the toilet shouldn't disappear, too." Users should be able to swap out themes whenever they want without losing their content, their custom data, or the additional functionality they have on their site. Remember, themes are meant for presentation, plugins are meant for functionality. There have been plenty of other people who've talked about this in the past. The better way to do this would be to have your theme check for specific plugins and prompt the user for installation if they're missing.
wordpress
{ "language": "en", "length": 478, "provenance": "stackexchange_00019.jsonl.gz:411026", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22134" }
[ 0.0626220703125, 0.0197601318359375, 0.0205078125, -0.0218353271484375, 0.01268768310546875, -0.0021266937255859375, 0.023895263671875, -0.04290771484375, -0.028564453125, 0.0129852294921875, -0.023406982421875, 0.03173828125, -0.01165771484375, -0.017059326171875, 0.01139068603515625, -0.0244903564453125, 0.03680419921875, -0.02947998046875, 0.0240936279296875, -0.005558013916015625, 0.003124237060546875, 0.028289794921875, 0.0205841064453125, 0.0423583984375, 0.0487060546875, -0.00882720947265625, 0.06219482421875, -0.017730712890625, 0.05230712890625, 0.0008196830749511719, 0.051788330078125, -0.059967041015625, 0.033905029296875, 0.0007581710815429688, -0.0026874542236328125, -0.007389068603515625, 0.0275726318359375, -0.0209808349609375, 0.0023193359375, 0.0161285400390625, 0.039215087890625, -0.0245361328125, 0.036834716796875, 0.04400634765625, 0.03057861328125, -0.0750732421875, 0.0645751953125, -0.056671142578125, -0.02685546875, -0.08154296875, 0.0287933349609375, 0.0191650390625, 0.067138671875, -0.052398681640625, -0.0168914794921875, 0.006969451904296875, -0.01261138916015625, 0.01983642578125, 0.02490234375, 0.0033626556396484375, -0.0257415771484375, -0.0027370452880859375, 0.0157318115234375, -0.00997161865234375, 0.0226898193359375, -0.01220703125, -0.025482177734375, 0.0261383056640625, -0.0447998046875, 0.034912109375, 0.047576904296875, -0.04962158203125, -0.008514404296875, -0.00856781005859375, -0.010894775390625, -0.0149993896484375, 0.007038116455078125, -0.03387451171875, 0.016571044921875, 0.0160369873046875, 0.0195159912109375, 0.0014028549194335938, 0.0133819580078125, -0.038116455078125, 0.0204315185546875, -0.01447296142578125, 0.00012105703353881836, 0.0036334991455078125, -0.042236328125, 0.0166778564453125, -0.0256805419921875, -0.0023670196533203125, -0.04400634765625, 0.035003662109375, 0.00986480712890625, 0.043426513671875, 0.03289794921875, 0.057891845703125, 0.01081085205078125, 0.057159423828125, 0.0118560791015625, -0.060272216796875, 0.09521484375, -0.07196044921875, -0.005741119384765625, 0.042877197265625, -0.00893402099609375, 0.0118408203125, 0.0212554931640625, 0.0330810546875, 0.0021533966064453125, -0.0081787109375, 0.035308837890625, -0.0517578125, 0.0261993408203125, 0.01113128662109375, 0.0156402587890625, 0.04205322265625, 0.038116455078125, 0.00457000732421875, 0.01324462890625, 0.01360321044921875, -0.010894775390625, -0.01358795166015625, -0.036895751953125, -0.048370361328125, -0.032440185546875, -0.00598907470703125, -0.01009368896484375, 0.0198211669921875, -0.02001953125, 0.0195465087890625, 0.0283203125, 0.0166168212890625, -0.0126953125, -0.01531219482421875, 0.02069091796875, 0.0213775634765625, 0.0236053466796875, -0.007572174072265625, 0.0181884765625, -0.032989501953125, -0.00948333740234375, 0.00875091552734375, 0.017547607421875, 0.0035839080810546875, -0.0006318092346191406, 0.0279998779296875, 0.0076751708984375, -0.0164794921875, 0.0355224609375, -0.01885986328125, -0.003265380859375, 0.0114593505859375, 0.040924072265625, -0.0185699462890625, 0.025115966796875, -0.0310821533203125, 0.047607421875, -0.0042877197265625, -0.028961181640625, -0.029693603515625, -0.0042877197265625, -0.03167724609375, -0.0217742919921875, 0.02783203125, 0.00478363037109375, 0.0265045166015625, 0.0243682861328125, 0.00946807861328125, 0.009307861328125, -0.0189666748046875, 0.0675048828125, 0.0265045166015625, 0.005802154541015625, 0.0335693359375, 0.022979736328125, 0.037841796875, 0.02215576171875, 0.0204925537109375, 0.0031490325927734375, -0.0228118896484375, 0.1131591796875, -0.05474853515625, -0.06719970703125, -0.003093719482421875, 0.0120391845703125, 0.04986572265625, 0.032501220703125, 0.0127410888671875, 0.036590576171875, -0.0213165283203125, -0.005634307861328125, -0.00205230712890625, -0.031890869140625, -0.0430908203125, 0.02532958984375, 0.01139068603515625, -0.0248260498046875, 0.0263519287109375, 0.012054443359375, -0.00936126708984375, -0.00604248046875, -0.0166473388671875, -0.027374267578125, -0.036834716796875, 0.0118255615234375, 0.006809234619140625, -0.0077362060546875, -0.022552490234375, 0.004169464111328125, -0.045867919921875, 0.036163330078125, -0.055816650390625, -0.0281219482421875, 0.02838134765625, -0.0163421630859375, 0.020355224609375, 0.0311279296875, 0.005977630615234375, 0.05523681640625, 0.006351470947265625, 0.0377197265625, 0.01345062255859375, 0.0182647705078125, 0.00714874267578125, -0.0303955078125, -0.01227569580078125, -0.042816162109375, 0.009307861328125, -0.042449951171875, 0.0482177734375, -0.00550079345703125, 0.005962371826171875, -0.01189422607421875, -0.0159912109375, 0.0002084970474243164, -0.061492919921875, 0.0218505859375, 0.03900146484375, 0.0321044921875, 0.047454833984375, 0.010986328125, -0.005626678466796875, 0.0665283203125, -0.0232086181640625, 0.0155029296875, -0.01690673828125, 0.0251617431640625, 0.024322509765625, 0.0292816162109375, -0.01326751708984375, 0.0182037353515625, -0.0227203369140625, 0.0273895263671875, 0.02789306640625, -0.027130126953125, -0.042877197265625, -0.00911712646484375, -0.0003123283386230469, 0.031646728515625, -0.057464599609375, -0.057220458984375, -0.01544189453125, -0.005992889404296875, 0.00928497314453125, 0.022735595703125, 0.0189971923828125, -0.0081634521484375, -0.00922393798828125, 0.006500244140625, -0.01084136962890625, 0.000843048095703125, 0.0295257568359375, 0.0128173828125, -0.0008034706115722656, -0.029052734375, -0.0125732421875, 0.020416259765625, 0.01358795166015625, -0.04376220703125, -0.02783203125, 0.0012969970703125, -0.01088714599609375, -0.0149383544921875, -0.07342529296875, 0.041717529296875, 0.0013151168823242188, -0.03167724609375, -0.0124359130859375, 0.01554107666015625, -0.007232666015625, -0.04791259765625, 0.0197601318359375, -0.0013179779052734375, -0.026763916015625, 0.025634765625, -0.06353759765625, 0.041839599609375, -0.06195068359375, 0.019439697265625, 0.04339599609375, -0.0253753662109375, 0.004703521728515625, 0.00591278076171875, -0.023406982421875, 0.008514404296875, 0.0111846923828125, -0.000843048095703125, -0.006015777587890625, -0.05316162109375, 0.00923919677734375, 0.0202178955078125, 0.04022216796875, -0.025299072265625, -0.056793212890625, -0.02911376953125, 0.0026035308837890625, -0.048583984375, -0.026580810546875, 0.0035076141357421875, -0.06732177734375, 0.002780914306640625, -0.0129547119140625, -0.046417236328125, -0.00428009033203125, 0.0149078369140625, 0.005550384521484375, -0.033843994140625, -0.050201416015625, -0.026123046875, -0.08880615234375, -0.070556640625, -0.01477813720703125, 0.00846099853515625, 0.0148468017578125, 0.0002465248107910156, 0.039459228515625, 0.0013093948364257812, -0.04718017578125, 0.006923675537109375, 0.042510986328125, 0.01001739501953125, 0.01099395751953125, 0.011627197265625, -0.0042572021484375, -0.00354766845703125, 0.0026073455810546875, 0.051483154296875, 0.035614013671875, -0.052001953125, -0.0014314651489257812, -0.0160064697265625, -0.045745849609375, -0.01480865478515625, 0.004405975341796875, 0.00872039794921875, -0.0269012451171875, -0.00439453125, -0.060577392578125, 0.0245208740234375, 0.0289306640625, 0.004756927490234375, -0.02288818359375, -0.025909423828125, -0.028594970703125, 0.026123046875, -0.0273895263671875, 0.004467010498046875, 0.0323486328125, 0.003139495849609375, 0.011322021484375, 0.00262451171875, -0.0235595703125, -0.0092010498046875, -0.016693115234375, -0.0130462646484375, -0.045440673828125, 0.02728271484375, -0.02508544921875, 0.0005507469177246094, -0.03289794921875, 0.028564453125, -0.05133056640625, -0.0157012939453125, 0.038665771484375, 0.0128173828125, 0.040008544921875, -0.02581787109375, -0.0308074951171875, 0.0008482933044433594, 0.09332275390625, -0.04669189453125, -0.0003476142883300781, 0.004360198974609375, 0.0050506591796875, 0.0021152496337890625, -0.0172576904296875, -0.03887939453125, -0.038330078125, -0.0293121337890625, 0.00019276142120361328, -0.023040771484375, -0.004581451416015625, -0.00905609130859375, 0.004974365234375, -0.01385498046875, -0.038299560546875, 0.001483917236328125, -0.019989013671875, -0.00004285573959350586, 0.01462554931640625, -0.03143310546875, 0.00800323486328125, -0.001922607421875, -0.0394287109375, -0.085205078125, -0.006809234619140625, -0.040802001953125, 0.053802490234375, 0.0097198486328125, -0.0142669677734375, -0.0284423828125, 0.0176544189453125, -0.01641845703125, 0.0218963623046875, 0.02490234375, 0.046722412109375, -0.027679443359375, -0.01074981689453125, 0.0120697021484375, -0.035614013671875, 0.01110076904296875, 0.0173492431640625, -0.02899169921875, 0.03570556640625, -0.005588531494140625, -0.002788543701171875, 0.0304412841796875, -0.042022705078125, 0.017486572265625, -0.0025234222412109375, -0.0171661376953125, 0.0268402099609375, -0.01409912109375, -0.009735107421875, -0.0186614990234375, 0.028228759765625, 0.0121307373046875, -0.007228851318359375, 0.01274871826171875, 0.0203857421875, 0.061187744140625, 0.004787445068359375, -0.0114898681640625, -0.069091796875, 0.0160980224609375, 0.029937744140625, 0.01824951171875, 0.0164794921875, -0.009368896484375, -0.015472412109375, 0.0087890625, -0.0021209716796875, -0.007717132568359375, -0.047821044921875, 0.06103515625, 0.0009775161743164062, 0.00612640380859375, -0.00665283203125, -0.014495849609375, 0.056365966796875, 0.016632080078125, -0.019927978515625, -0.0159454345703125, 0.002777099609375, 0.03448486328125, -0.026214599609375, 0.05413818359375, -0.0146636962890625, -0.039825439453125, 0.00472259521484375, -0.01605224609375, 0.02978515625, 0.029388427734375, -0.0037288665771484375, 0.03607177734375, 0.017120361328125, -0.00246429443359375, 0.030670166015625, 0.0068511962890625, -0.0021762847900390625, 0.004688262939453125, 0.03277587890625, -0.0260162353515625, 0.012725830078125, -0.02801513671875, 0.10186767578125, 0.0163116455078125, -0.039154052734375, 0.00604248046875, -0.038818359375, 0.024688720703125, 0.0174560546875, -0.0011892318725585938, 0.0478515625, 0.02685546875, -0.002796173095703125, -0.0123138427734375, -0.052581787109375, 0.0257720947265625, -0.048980712890625, -0.048370361328125, -0.02471923828125, -0.0152740478515625, 0.04071044921875, 0.014892578125, -0.0228424072265625, 0.027679443359375, -0.0013866424560546875, 0.039886474609375, 0.047515869140625, 0.0117034912109375, 0.00988006591796875, -0.01401519775390625, 0.004680633544921875, -0.0176849365234375, -0.001560211181640625, 0.004512786865234375, 0.0283050537109375, -0.0302734375, 0.0213623046875, -0.00872802734375, -0.026214599609375, 0.053802490234375, -0.0477294921875, -0.00832366943359375, -0.006763458251953125, 0.001262664794921875, -0.0005583763122558594, -0.01071929931640625, -0.004131317138671875, 0.01702880859375, 0.013702392578125, 0.01497650146484375, 0.016021728515625, 0.022552490234375, -0.00005310773849487305, 0.006252288818359375, -0.04998779296875, -0.01251983642578125, 0.027313232421875, -0.034881591796875, -0.0211944580078125, -0.0071868896484375, -0.0775146484375, -0.01456451416015625, -0.006404876708984375, -0.0272216796875, 0.0169677734375, 0.004688262939453125, 0.02191162109375, -0.035125732421875, -0.006046295166015625, -0.034515380859375, -0.005672454833984375, 0.03338623046875, -0.005466461181640625, -0.07867431640625, -0.01788330078125, -0.03668212890625, -0.01013946533203125, -0.0291290283203125, -0.04327392578125, -0.046600341796875, 0.004467010498046875, 0.0084381103515625, 0.032501220703125, -0.0265045166015625, -0.03778076171875, 0.00396728515625, 0.01305389404296875, 0.004230499267578125, 0.0237579345703125, 0.02691650390625, 0.0126953125, 0.0205535888671875, 0.037139892578125, 0.04974365234375, 0.00678253173828125, -0.0298614501953125, -0.033721923828125, 0.0195770263671875, -0.0301361083984375, -0.029296875, -0.0185546875, -0.0294189453125, 0.006275177001953125, 0.038604736328125, -0.005535125732421875, -0.005401611328125, -0.025665283203125, -0.006801605224609375, -0.0031032562255859375, 0.06549072265625, -0.019134521484375, -0.03643798828125, 0.03582763671875, -0.0601806640625, -0.01253509521484375, 0.007671356201171875, 0.01485443115234375, 0.021881103515625, -0.0416259765625, 0.01087188720703125, 0.03778076171875, -0.020294189453125, 0.06732177734375, 0.0401611328125, -0.00795745849609375, 0.03216552734375, 0.022613525390625, 0.015655517578125, -0.0045318603515625, 0.01702880859375, 0.0242462158203125, -0.0271453857421875, 0.048370361328125, -0.0012674331665039062, -0.01348114013671875, 0.0233612060546875, -0.043212890625, 0.0223388671875, 0.01776123046875, 0.043304443359375, -0.06915283203125, 0.0311737060546875, 0.00045418739318847656, -0.00021147727966308594, 0.045654296875, 0.004848480224609375, 0.0006136894226074219, -0.0005412101745605469, 0.0231170654296875, -0.006687164306640625, 0.00740814208984375, 0.0239410400390625, 0.0002067089080810547, -0.031585693359375, -0.0145111083984375, -0.020477294921875, 0.01502227783203125, -0.033721923828125, 0.0201568603515625, 0.0143890380859375, 0.01198577880859375, -0.00537109375, 0.018096923828125, -0.0075836181640625, 0.00482940673828125, -0.02886962890625, 0.021881103515625, -0.042938232421875, 0.0029277801513671875, 0.00978851318359375, -0.0154571533203125, 0.01959228515625, 0.038330078125, -0.0222930908203125, 0.017669677734375, 0.0247344970703125, 0.017333984375, 0.042633056640625, -0.01690673828125, 0.0255889892578125, 0.00614166259765625, -0.054046630859375, 0.0003330707550048828, -0.01175689697265625, -0.0272369384765625, -0.001987457275390625, 0.024200439453125, 0.07708740234375, -0.036956787109375, -0.01006317138671875, 0.054534912109375, -0.01302337646484375, -0.038116455078125, -0.030120849609375, 0.023895263671875, -0.0248260498046875, 0.033721923828125, -0.006717681884765625, 0.05194091796875, 0.016387939453125, -0.0080108642578125, -0.06658935546875, 0.1171875, -0.042266845703125, 0.0274810791015625, 0.01253509521484375, 0.052490234375, -0.02496337890625, 0.0176544189453125, -0.0104522705078125, 0.0631103515625, -0.049468994140625, 0.0134124755859375, -0.01666259765625, 0.01526641845703125, 0.00036597251892089844, 0.007843017578125, 0.056549072265625, 0.00954437255859375, -0.03790283203125, -0.0158843994140625, 0.043975830078125, 0.033721923828125, 0.004795074462890625, 0.03857421875, -0.0029010772705078125, -0.0290374755859375, 0.035125732421875, 0.0364990234375, 0.0574951171875, -0.01277923583984375, -0.01259613037109375, -0.0026111602783203125, -0.00978851318359375, -0.034881591796875, 0.015411376953125, 0.00449371337890625, -0.0032196044921875, -0.002239227294921875, -0.01543426513671875, -0.007587432861328125, -0.00833892822265625, 0.00041747093200683594, -0.024688720703125, 0.037017822265625, -0.01308441162109375, -0.00374603271484375, 0.0120086669921875, -0.000606536865234375, 0.03582763671875, -0.0025844573974609375, 0.018310546875, 0.030120849609375, -0.019989013671875, 0.0225067138671875, 0.0655517578125, -0.05816650390625, 0.033599853515625, 0.006519317626953125, 0.0275115966796875, -0.04705810546875, -0.0090179443359375, 0.0257720947265625, 0.04034423828125, -0.0211181640625, -0.05035400390625, 0.003734588623046875, 0.0180511474609375, 0.0159454345703125, 0.009765625, 0.0109710693359375, -0.0264434814453125, 0.0277099609375, -0.0083465576171875, -0.0028362274169921875, -0.006134033203125, -0.00354766845703125, -0.0008993148803710938, 0.0173187255859375, -0.00232696533203125, 0.0191192626953125, -0.02471923828125, 0.024993896484375, -0.00847625732421875, 0.028778076171875, 0.0068817138671875, 0.04925537109375, 0.0007805824279785156, -0.0135345458984375, -0.0008325576782226562, 0.0560302734375, 0.029510498046875, -0.00125885009765625, -0.0200653076171875, -0.062408447265625, 0.0194091796875, 0.0118865966796875, -0.0042266845703125, 0.0301361083984375, 0.033416748046875, 0.054840087890625, -0.00962066650390625, -0.0091705322265625, 0.044281005859375, -0.016510009765625, 0.006923675537109375, -0.039581298828125, 0.046173095703125, 0.041717529296875, 0.00705718994140625, -0.0025806427001953125, 0.013336181640625, 0.06268310546875, -0.01513671875, 0.005947113037109375, -0.004486083984375, -0.040374755859375, 0.0255584716796875, -0.03155517578125, 0.06109619140625, -0.007083892822265625, -0.08282470703125, -0.02398681640625, -0.0242919921875, -0.0250701904296875, 0.031341552734375, 0.048431396484375, -0.0119781494140625, 0.024139404296875, 0.04974365234375, -0.0167388916015625, 0.01378631591796875, -0.003292083740234375, 0.0305938720703125, -0.0268707275390625, 0.014129638671875, 0.00514984130859375, -0.0185699462890625, -0.00882720947265625, -0.0223236083984375, 0.03497314453125, 0.035064697265625, 0.06280517578125, -0.0228271484375, 0.024810791015625, -0.0032405853271484375, -0.054840087890625, 0.041717529296875, -0.0184173583984375, 0.0122833251953125, 0.01354217529296875, -0.006046295166015625, -0.0146484375, -0.055145263671875, 0.003894805908203125, 0.02423095703125, -0.0146942138671875, -0.003307342529296875, -0.016876220703125, 0.032928466796875, -0.00189208984375, 0.047454833984375, -0.00940704345703125, -0.041839599609375, -0.0246734619140625, 0.0193939208984375, 0.004978179931640625, 0.01465606689453125, -0.0162200927734375, 0.0071563720703125, 0.0052642822265625, -0.0026302337646484375, -0.0162811279296875, 0.03948974609375, -0.05828857421875, 0.00957489013671875, 0.01335906982421875, -0.09234619140625, 0.0106353759765625, -0.0110931396484375, -0.01222991943359375, 0.00925445556640625, 0.09283447265625, 0.00809478759765625, -0.0601806640625, -0.009979248046875, 0.035797119140625, 0.046417236328125, -0.016448974609375, 0.0423583984375, 0.0230712890625, 0.00585174560546875, -0.0094146728515625, -0.005645751953125, -0.053009033203125, -0.07421875, 0.033966064453125, 0.019561767578125, -0.0231781005859375, -0.021697998046875, -0.08966064453125, 0.02423095703125, 0.03558349609375, 0.001598358154296875, -0.06640625, 0.02166748046875, -0.01568603515625, 0.0634765625, -0.0274505615234375, -0.003833770751953125, -0.01488494873046875, 0.019500732421875, -0.007038116455078125, -0.03369140625, -0.04736328125, 0.02520751953125, -0.0245819091796875, 0.0546875, 0.0694580078125, -0.04815673828125, 0.006328582763671875, 0.061798095703125, 0.0511474609375, 0.10980224609375, -0.0278472900390625, -0.01198577880859375, 0.01023101806640625, -0.01442718505859375, -0.013397216796875, -0.05975341796875, 0.01111602783203125, -0.07916259765625, -0.026031494140625, -0.032684326171875, 0.011810302734375, 0.027374267578125, -0.05181884765625, -0.08660888671875, 0.06134033203125, -0.02215576171875, -0.033355712890625, -0.06524658203125, 0.005588531494140625, -0.0191802978515625, 0.00860595703125, -0.00949859619140625, -0.0416259765625, -0.016632080078125, 0.053009033203125, 0.0116729736328125, 0.0279998779296875, -0.0032711029052734375, 0.00872802734375, 0.0164642333984375, 0.029815673828125, 0.0303497314453125, -0.014404296875, 0.017730712890625, -0.0193634033203125, 0.021209716796875, 0.04766845703125, -0.038909912109375, -0.04034423828125, -0.0283966064453125, -0.0005283355712890625, -0.01538848876953125, -0.07568359375, 0.0089874267578125, -0.006927490234375, 0.0501708984375, 0.0218658447265625, -0.00019168853759765625, -0.032257080078125, -0.00768280029296875, 0.0015802383422851562, -0.002727508544921875, 0.022705078125, 0.00634002685546875, -0.033782958984375, 0.0102996826171875, -0.0013475418090820312, -0.004726409912109375, -0.0261993408203125, 0.01177978515625, -0.0277252197265625, -0.003543853759765625, 0.004718780517578125, -0.007904052734375, -0.00923919677734375, -0.020050048828125, 0.06146240234375, -0.0249176025390625, 0.01392364501953125, -0.0040283203125, 0.01244354248046875, 0.037139892578125, 0.0130462646484375, 0.0279693603515625, 0.003662109375, -0.0460205078125, 0.0215911865234375, -0.0090789794921875, 0.0845947265625, -0.036712646484375, -0.0552978515625, -0.0259552001953125, 0.050140380859375, 0.0029296875, 0.049102783203125, -0.0237274169921875, 0.08056640625, 0.029266357421875, 0.1026611328125, 0.001369476318359375, -0.05389404296875, -0.0552978515625, 0.0634765625, 0.005451202392578125, -0.031768798828125, 0.0012426376342773438, -0.0301055908203125, 0.0030193328857421875, 0.034454345703125, 0.0032634735107421875, -0.018310546875, 0.0304718017578125, -0.024444580078125, 0.0139007568359375, 0.006855010986328125 ]
35a9ba353cc9b680c0cbb21335c5aa5112ca320c
Wordpress Stackexchange Q: Is sanitize_title enough to generate post slugs? I want to generate slug for some strings without going through WordPress slug generation flow. Therefore, I want to know which functions it calls to get a neat slug. I tried sanitize_title() but it leaves %c2 %a0 in result. A: sanitize_title() seems to be the only one you need. In wp-includes/default-filters.php line 211 you will find: add_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3); This means that calling sanitize_title() will first remove all the special characters, then apply the sanitize_title filter, thus calling sanitize_title_with_dashes() As @JHoffmann pointed out, simply calling sanitize_title_with_dashes() will not remove special characters.
Q: Is sanitize_title enough to generate post slugs? I want to generate slug for some strings without going through WordPress slug generation flow. Therefore, I want to know which functions it calls to get a neat slug. I tried sanitize_title() but it leaves %c2 %a0 in result. A: sanitize_title() seems to be the only one you need. In wp-includes/default-filters.php line 211 you will find: add_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3); This means that calling sanitize_title() will first remove all the special characters, then apply the sanitize_title filter, thus calling sanitize_title_with_dashes() As @JHoffmann pointed out, simply calling sanitize_title_with_dashes() will not remove special characters. A: Well, there is already an answer, but I wanted to expand it a bit, so here are my findings: If we have a look in wp_insert_post() we see, the $post_name is sanitized using wp_sanitize_title() ( see wp-includes/post.php) In the function sanitize_title() we have a filter sanitize_title. This is interesting, since in the default filters sanitize_title_with_dashes() is hooked into this filter (see wp-includes/default-filters.php). <?php echo sanitize_title( 'Â+ÄÖßáèäç' ) // aaeoessaeaec ?> I tried sanitize_title() but it leaves %c2 %a0 in result. This sounds strange. It would be great to know the input value, but following wp_insert_post() sanitize_title() seems to be enough. A: You are almost there. The function you need is sanitize_title_with_dashes( $title ) A: In addition to websupporter's great answer I found the below: Depending on your usage it will depend what you need. sanitize_title() as it says: accents are removed (accented characters are replaced with non-accented equivalents) ...and sanitize_title_with_dashes says: Note that it does not replace special accented characters So, with this example string: Â+Ä Ö %%% ßá %20 oo %pp + -_^^#@!**()=[]|\/\'"<>?``~ èäç sanitize_title() result: aa-o-sa-%20-oo-pp-_-eac As you can see it has replaced accented characters with their non-accented equivalents and it has removed all other non-alphanumeric characters apart from the % which is followed by a number, but you will see it was removed when it was followed by a letter; perhaps this is because it perceives it as already encoded. This is enforced when you try inserting %c3 into your string, it doesn't strip it as %c3 is a valid encoding sequence. sanitize_title_with_dashes result: %c3%a2%c3%a4-%c3%b6-%c3%9f%c3%a1-%20-oo-pp-_-%c3%a8%c3%a4%c3%a7 So as you can see it hasn't removed the accented characters, but encoded them. Now let's look at a string with no accented characters to see how they both behave... Example String: %%% building %20 oo %pp + -_^^#@!**()=[]|\/\'"<>?``~' sanitize_title() result: building-%20-oo-pp-_ sanitize_title_with_dashes result: building-%20-oo-pp-_ So as you can see they are exactly the same. So it appears the only difference in them is that one encodes accented charters whilst the other replaces them.
wordpress
{ "language": "en", "length": 434, "provenance": "stackexchange_00019.jsonl.gz:411035", "question_score": "28", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22172" }
[ 0.03997802734375, 0.0228118896484375, -0.0297393798828125, -0.04376220703125, 0.0269775390625, -0.0196685791015625, 0.00849151611328125, -0.0201568603515625, -0.034149169921875, 0.05078125, 0.046722412109375, -0.003139495849609375, 0.035430908203125, -0.03472900390625, 0.003025054931640625, 0.004547119140625, 0.0104522705078125, -0.02105712890625, -0.00191497802734375, -0.0379638671875, 0.00197601318359375, -0.039398193359375, 0.011474609375, 0.041290283203125, 0.0057373046875, -0.0765380859375, 0.1409912109375, -0.034393310546875, 0.0030651092529296875, -0.04718017578125, 0.0174560546875, 0.0200347900390625, 0.01081085205078125, -0.0010137557983398438, 0.0208740234375, 0.0682373046875, 0.0237884521484375, 0.0030727386474609375, 0.03265380859375, -0.00846099853515625, 0.022186279296875, -0.01036834716796875, 0.0465087890625, 0.0179443359375, 0.00257110595703125, -0.021087646484375, 0.02484130859375, -0.0187835693359375, 0.01491546630859375, -0.01546478271484375, 0.01324462890625, 0.006805419921875, 0.0305938720703125, -0.0172119140625, -0.01027679443359375, 0.0012159347534179688, -0.00966644287109375, 0.01226806640625, 0.00516510009765625, -0.0066986083984375, -0.00506591796875, 0.0190887451171875, 0.00266265869140625, 0.00647735595703125, 0.002544403076171875, 0.00542449951171875, -0.0182952880859375, -0.005245208740234375, -0.02569580078125, 0.01708984375, 0.032562255859375, -0.049102783203125, 0.004474639892578125, -0.01360321044921875, 0.00554656982421875, -0.01128387451171875, -0.03619384765625, -0.031768798828125, 0.038909912109375, 0.007091522216796875, 0.0011882781982421875, -0.080322265625, -0.0139007568359375, 0.0207061767578125, 0.006526947021484375, 0.0275726318359375, 0.0013456344604492188, -0.0074310302734375, 0.0002491474151611328, -0.02935791015625, -0.00832366943359375, -0.0175933837890625, 0.0033740997314453125, 0.017608642578125, -0.0200958251953125, -0.0178070068359375, 0.023712158203125, 0.0300445556640625, 0.006198883056640625, 0.0286102294921875, 0.05316162109375, -0.06805419921875, 0.06732177734375, -0.039306640625, -0.004604339599609375, -0.00594329833984375, -0.0061492919921875, 0.0169830322265625, 0.0223388671875, 0.0290069580078125, -0.010284423828125, -0.01041412353515625, -0.004302978515625, -0.06280517578125, -0.0232391357421875, 0.05169677734375, 0.01149749755859375, -0.0152740478515625, 0.0264892578125, -0.04193115234375, 0.010650634765625, 0.004245758056640625, 0.03424072265625, 0.0057830810546875, -0.001148223876953125, 0.00774383544921875, -0.022125244140625, -0.0352783203125, 0.04754638671875, 0.042633056640625, -0.041595458984375, 0.0001608133316040039, 0.060791015625, 0.0010232925415039062, 0.002361297607421875, -0.03643798828125, -0.0207061767578125, -0.0265960693359375, -0.0204315185546875, -0.01357269287109375, 0.004482269287109375, 0.0281524658203125, 0.057373046875, -0.0145111083984375, 0.05303955078125, -0.004119873046875, -0.011810302734375, 0.0211029052734375, 0.053955078125, 0.0157318115234375, -0.0014352798461914062, -0.0121612548828125, 0.017578125, -0.0018091201782226562, -0.0301971435546875, -0.0489501953125, -0.049468994140625, -0.0146026611328125, 0.044464111328125, -0.0176849365234375, 0.0016994476318359375, 0.005435943603515625, 0.00946044921875, -0.0105133056640625, -0.0250396728515625, 0.0034275054931640625, -0.00731658935546875, -0.0084075927734375, 0.00797271728515625, 0.00287628173828125, 0.01513671875, 0.0042877197265625, -0.04937744140625, -0.018402099609375, -0.0029125213623046875, -0.018402099609375, -0.02935791015625, 0.0178375244140625, 0.00492095947265625, 0.049957275390625, 0.0343017578125, -0.0355224609375, 0.01715087890625, 0.01003265380859375, -0.064697265625, -0.00254058837890625, 0.0009260177612304688, 0.044525146484375, 0.0552978515625, 0.004581451416015625, 0.052703857421875, -0.027862548828125, -0.032012939453125, -0.0016946792602539062, 0.0086822509765625, -0.0285491943359375, 0.036590576171875, -0.021148681640625, 0.0124664306640625, 0.01044464111328125, 0.015045166015625, 0.004425048828125, 0.01739501953125, 0.01041412353515625, 0.0027923583984375, -0.005367279052734375, -0.00936126708984375, 0.0222015380859375, 0.0026226043701171875, 0.0133209228515625, 0.0110931396484375, -0.02203369140625, -0.0391845703125, 0.047943115234375, -0.00843048095703125, -0.003574371337890625, 0.0026416778564453125, -0.0223541259765625, -0.02801513671875, -0.005374908447265625, -0.0165557861328125, 0.013885498046875, -0.029205322265625, 0.0286102294921875, 0.0728759765625, -0.04364013671875, 0.01430511474609375, -0.044952392578125, 0.041290283203125, -0.03179931640625, -0.026031494140625, 0.06317138671875, 0.10076904296875, 0.046600341796875, -0.0450439453125, -0.0008096694946289062, -0.019775390625, -0.025604248046875, -0.031646728515625, 0.06134033203125, 0.0252685546875, 0.03375244140625, -0.0281829833984375, -0.032073974609375, 0.00494384765625, -0.0294036865234375, 0.0179290771484375, -0.031036376953125, 0.042388916015625, 0.046905517578125, -0.00958251953125, -0.0209808349609375, 0.0236663818359375, -0.04986572265625, 0.007328033447265625, 0.0290069580078125, -0.0689697265625, -0.04400634765625, -0.005573272705078125, -0.005001068115234375, 0.020263671875, -0.04046630859375, 0.01073455810546875, -0.022674560546875, -0.0283355712890625, 0.00005227327346801758, -0.01546478271484375, 0.0009765625, -0.004505157470703125, 0.01245880126953125, 0.0193023681640625, -0.034210205078125, 0.0018224716186523438, 0.01045989990234375, 0.005428314208984375, -0.0255279541015625, -0.025604248046875, 0.0146026611328125, -0.0007319450378417969, -0.01287841796875, 0.020294189453125, 0.05596923828125, 0.05450439453125, -0.021331787109375, -0.0020236968994140625, -0.0784912109375, 0.00797271728515625, -0.0171356201171875, 0.0159759521484375, -0.00664520263671875, 0.00244903564453125, 0.027191162109375, -0.028076171875, 0.06988525390625, 0.01390838623046875, -0.0171966552734375, 0.047760009765625, -0.030487060546875, 0.0259552001953125, -0.0141754150390625, 0.057525634765625, 0.06365966796875, -0.0009722709655761719, -0.00579833984375, 0.00643157958984375, 0.013214111328125, 0.033843994140625, -0.027252197265625, -0.02716064453125, -0.008056640625, -0.065673828125, -0.0394287109375, 0.0063323974609375, 0.0281829833984375, -0.023468017578125, -0.045196533203125, 0.003742218017578125, 0.016510009765625, -0.06207275390625, -0.047698974609375, -0.0004911422729492188, 0.03289794921875, -0.01195526123046875, 0.01131439208984375, 0.019317626953125, -0.001255035400390625, -0.0017251968383789062, -0.00913238525390625, 0.003322601318359375, -0.0279693603515625, -0.058807373046875, -0.0202484130859375, -0.035675048828125, 0.022705078125, -0.005924224853515625, -0.01318359375, 0.014404296875, 0.01084136962890625, 0.0069580078125, -0.02752685546875, 0.046875, 0.0396728515625, -0.0064849853515625, 0.0170135498046875, -0.014007568359375, -0.00460052490234375, -0.00460052490234375, 0.0089569091796875, 0.00553131103515625, 0.0020389556884765625, 0.0066375732421875, -0.00618743896484375, -0.0017223358154296875, 0.031036376953125, 0.01873779296875, 0.017333984375, -0.0011968612670898438, 0.042236328125, 0.028533935546875, -0.00485992431640625, -0.01335906982421875, -0.009307861328125, -0.027557373046875, 0.049713134765625, 0.0006561279296875, 0.0017480850219726562, -0.02587890625, 0.052154541015625, 0.0011148452758789062, 0.00815582275390625, -0.01271820068359375, 0.005619049072265625, 0.002277374267578125, -0.006313323974609375, -0.005451202392578125, 0.002048492431640625, 0.01071929931640625, -0.0174713134765625, -0.0118408203125, -0.0142669677734375, 0.015533447265625, 0.005962371826171875, 0.0089569091796875, -0.0208740234375, -0.00788116455078125, 0.032684326171875, -0.0009713172912597656, 0.0550537109375, -0.01123046875, -0.0271148681640625, -0.0181884765625, 0.060272216796875, -0.041259765625, -0.032073974609375, 0.00005555152893066406, 0.0390625, -0.0024318695068359375, -0.03814697265625, -0.005649566650390625, -0.041656494140625, -0.101318359375, 0.017242431640625, -0.0095672607421875, -0.031768798828125, 0.00022101402282714844, -0.0209503173828125, -0.024200439453125, -0.041961669921875, 0.01538848876953125, -0.01103973388671875, 0.00705718994140625, -0.00940704345703125, -0.01666259765625, -0.0149993896484375, -0.0295257568359375, -0.023834228515625, -0.04644775390625, -0.0187530517578125, 0.0097808837890625, 0.05303955078125, -0.0008955001831054688, -0.0104827880859375, -0.003940582275390625, 0.0494384765625, -0.00818634033203125, 0.020660400390625, 0.014739990234375, 0.0097503662109375, 0.0030364990234375, 0.05572509765625, 0.02349853515625, 0.01180267333984375, -0.007213592529296875, -0.0088043212890625, -0.0294647216796875, -0.002567291259765625, -0.0280303955078125, 0.0078887939453125, -0.0024127960205078125, -0.02606201171875, -0.0309295654296875, -0.0238494873046875, -0.0027141571044921875, 0.0121307373046875, 0.0084686279296875, -0.0009679794311523438, -0.040130615234375, -0.0347900390625, 0.08514404296875, 0.044097900390625, 0.009124755859375, -0.0283660888671875, 0.06591796875, 0.00472259521484375, -0.07098388671875, 0.014312744140625, -0.033172607421875, -0.00655364990234375, -0.003932952880859375, 0.032470703125, -0.01038360595703125, -0.0068817138671875, 0.0322265625, -0.03729248046875, -0.04449462890625, -0.00809478759765625, 0.00995635986328125, -0.016326904296875, -0.0299530029296875, 0.007358551025390625, -0.050048828125, 0.099609375, 0.05535888671875, 0.0007729530334472656, 0.0124053955078125, -0.050262451171875, 0.0066375732421875, 0.03424072265625, -0.045318603515625, -0.041046142578125, -0.0721435546875, 0.031982421875, 0.0011386871337890625, 0.0171966552734375, -0.002864837646484375, 0.0012273788452148438, 0.0153045654296875, -0.0241241455078125, 0.0186920166015625, -0.0223388671875, -0.024017333984375, -0.0185546875, 0.03582763671875, -0.027587890625, 0.00905609130859375, 0.006160736083984375, -0.003879547119140625, 0.030975341796875, 0.0020313262939453125, -0.014984130859375, -0.03338623046875, -0.014678955078125, 0.02197265625, -0.01276397705078125, 0.037109375, 0.0051727294921875, 0.0238494873046875, -0.01216888427734375, -0.00951385498046875, 0.0046539306640625, 0.053802490234375, -0.0247650146484375, 0.00783538818359375, 0.011505126953125, -0.0193328857421875, 0.0121612548828125, 0.0302734375, 0.0158538818359375, 0.0089569091796875, -0.01273345947265625, 0.006931304931640625, 0.004154205322265625, 0.023956298828125, 0.016845703125, -0.0276336669921875, 0.00380706787109375, 0.00823211669921875, 0.007904052734375, -0.03594970703125, -0.0139007568359375, 0.01415252685546875, 0.0230865478515625, -0.03668212890625, -0.0227813720703125, 0.0380859375, -0.0016031265258789062, -0.039154052734375, -0.0016031265258789062, -0.0159912109375, -0.037628173828125, -0.027557373046875, -0.0160369873046875, 0.0172119140625, 0.0231475830078125, -0.0238189697265625, 0.027679443359375, -0.0382080078125, 0.030364990234375, -0.0010433197021484375, 0.0048675537109375, -0.00151824951171875, -0.0034084320068359375, 0.022796630859375, -0.031890869140625, -0.03564453125, 0.019256591796875, 0.0275726318359375, -0.0213165283203125, -0.027862548828125, 0.05816650390625, -0.0157318115234375, 0.06781005859375, -0.037750244140625, -0.0165557861328125, 0.037445068359375, 0.0151519775390625, 0.00724029541015625, -0.005054473876953125, -0.0194091796875, 0.007659912109375, -0.041351318359375, -0.005458831787109375, 0.0052947998046875, -0.031951904296875, -0.0219268798828125, -0.043426513671875, -0.01435089111328125, 0.047576904296875, -0.01837158203125, -0.00115966796875, -0.00002473592758178711, 0.0022735595703125, -0.0216217041015625, 0.059906005859375, -0.023681640625, -0.00946044921875, 0.025146484375, -0.0246124267578125, -0.0189361572265625, -0.01039886474609375, 0.0297698974609375, -0.0169677734375, -0.0176849365234375, -0.041900634765625, 0.0053863525390625, 0.0197296142578125, 0.0229339599609375, 0.028778076171875, 0.03375244140625, -0.0029144287109375, 0.05548095703125, -0.005954742431640625, 0.019012451171875, -0.004901885986328125, 0.007587432861328125, -0.038177490234375, 0.00746917724609375, 0.05560302734375, -0.0203704833984375, 0.003475189208984375, -0.0254974365234375, 0.0006546974182128906, 0.00853729248046875, -0.0277099609375, 0.00490570068359375, 0.02923583984375, -0.0140228271484375, 0.051239013671875, 0.0633544921875, 0.0046539306640625, 0.0296173095703125, 0.02777099609375, 0.00296783447265625, 0.02099609375, -0.054534912109375, 0.022125244140625, 0.0298614501953125, 0.041534423828125, -0.017547607421875, 0.0194854736328125, 0.029388427734375, -0.021942138671875, -0.001377105712890625, 0.0799560546875, 0.0540771484375, -0.0938720703125, -0.0208892822265625, 0.01107025146484375, 0.004238128662109375, 0.00658416748046875, -0.000499725341796875, 0.0242156982421875, -0.00569915771484375, 0.0499267578125, -0.038848876953125, -0.003589630126953125, 0.0287322998046875, -0.0285491943359375, 0.00499725341796875, 0.0019092559814453125, 0.09185791015625, 0.020599365234375, -0.0005364418029785156, -0.024505615234375, -0.0091400146484375, 0.0017251968383789062, -0.0258026123046875, 0.0005135536193847656, 0.01502227783203125, -0.0235137939453125, -0.03253173828125, 0.046844482421875, -0.030487060546875, 0.009246826171875, -0.02880859375, 0.0285491943359375, 0.01409149169921875, 0.033050537109375, -0.00933837890625, -0.044586181640625, 0.023529052734375, -0.050262451171875, 0.0206298828125, -0.031494140625, -0.01763916015625, 0.035369873046875, -0.01480865478515625, 0.0026111602783203125, 0.01148223876953125, 0.0026073455810546875, -0.02972412109375, -0.0377197265625, 0.08062744140625, -0.00101470947265625, -0.0192413330078125, -0.0077667236328125, 0.05841064453125, 0.012359619140625, -0.01096343994140625, 0.0216064453125, -0.04931640625, -0.0164031982421875, 0.0096893310546875, -0.04278564453125, -0.0216064453125, -0.00995635986328125, -0.0946044921875, 0.09130859375, 0.035888671875, 0.064453125, -0.02459716796875, 0.0135650634765625, -0.01367950439453125, -0.00211334228515625, -0.044769287109375, 0.0687255859375, -0.014434814453125, 0.06439208984375, -0.06085205078125, -0.010223388671875, 0.0295257568359375, 0.038818359375, 0.00556182861328125, 0.0008144378662109375, 0.01023101806640625, -0.005401611328125, 0.019805908203125, 0.0180816650390625, -0.019073486328125, 0.009979248046875, -0.0017871856689453125, 0.013031005859375, 0.034820556640625, 0.002643585205078125, 0.03778076171875, -0.033416748046875, -0.00872802734375, 0.018402099609375, 0.00858306884765625, -0.007740020751953125, 0.0266571044921875, -0.00727081298828125, -0.052001953125, 0.024169921875, 0.044158935546875, -0.004608154296875, -0.02215576171875, 0.05670166015625, 0.05230712890625, -0.06512451171875, -0.01263427734375, -0.04638671875, 0.06414794921875, 0.0118560791015625, 0.0289154052734375, 0.0316162109375, 0.01009368896484375, 0.0302276611328125, -0.005100250244140625, 0.0124359130859375, -0.0081634521484375, -0.001567840576171875, 0.05712890625, 0.01303863525390625, 0.0174407958984375, -0.0308685302734375, -0.00850677490234375, 0.05029296875, 0.06707763671875, -0.0418701171875, 0.01256561279296875, 0.0090484619140625, 0.0189056396484375, -0.0021228790283203125, -0.044189453125, -0.0007123947143554688, -0.02655029296875, -0.01236724853515625, -0.03521728515625, 0.01934814453125, 0.07080078125, 0.0279083251953125, -0.0008296966552734375, -0.01476287841796875, -0.056304931640625, 0.0294189453125, -0.04656982421875, -0.004268646240234375, -0.00191497802734375, 0.10992431640625, 0.04461669921875, 0.061187744140625, -0.06414794921875, -0.059173583984375, -0.001171112060546875, 0.0654296875, 0.0236663818359375, -0.0175933837890625, 0.0131683349609375, -0.02532958984375, 0.0230865478515625, -0.01227569580078125, 0.048736572265625, 0.01204681396484375, 0.08746337890625, 0.0269927978515625, -0.046417236328125, -0.00628662109375, 0.004756927490234375, -0.02655029296875, 0.0193634033203125, -0.0170440673828125, -0.005157470703125, 0.00858306884765625, -0.022491455078125, -0.0287933349609375, -0.01557159423828125, 0.02960205078125, -0.0156707763671875, 0.001110076904296875, 0.01258087158203125, -0.03192138671875, 0.034912109375, 0.01259613037109375, 0.00508880615234375, 0.026153564453125, -0.03070068359375, -0.0019426345825195312, 0.01434326171875, -0.07635498046875, 0.01230621337890625, 0.041290283203125, -0.03326416015625, 0.0171966552734375, 0.039093017578125, -0.0212860107421875, 0.0237274169921875, 0.032867431640625, 0.0078125, -0.0258331298828125, 0.018096923828125, -0.00913238525390625, -0.0199127197265625, -0.00940704345703125, 0.01380157470703125, 0.044891357421875, -0.02239990234375, 0.08392333984375, -0.049041748046875, 0.00460052490234375, -0.02374267578125, 0.00536346435546875, -0.041046142578125, 0.0007452964782714844, 0.0032806396484375, 0.003101348876953125, -0.00765228271484375, -0.006622314453125, -0.033599853515625, -0.0033168792724609375, 0.02777099609375, -0.006900787353515625, 0.020782470703125, -0.036865234375, 0.0166015625, -0.046478271484375, 0.0183258056640625, -0.0220489501953125, -0.06365966796875, -0.0538330078125, -0.005245208740234375, 0.0239105224609375, 0.06298828125, 0.0086212158203125, 0.0273895263671875, -0.01904296875, -0.027862548828125, 0.0193634033203125, -0.06878662109375, 0.019805908203125, 0.0279541015625, -0.0006084442138671875, 0.01221466064453125, 0.0256195068359375, -0.004398345947265625, -0.01117706298828125, 0.031524658203125, -0.008453369140625, -0.007965087890625, -0.0227203369140625, -0.047760009765625, -0.040679931640625, 0.01108551025390625, 0.0258636474609375, -0.0011758804321289062, -0.0775146484375, 0.004070281982421875, -0.02923583984375, -0.035400390625, -0.029296875, -0.032806396484375, -0.043792724609375, 0.033355712890625, -0.04974365234375, -0.0665283203125, -0.0660400390625, -0.006793975830078125, -0.033416748046875, -0.0298919677734375, 0.026702880859375, -0.01097869873046875, -0.01104736328125, 0.005092620849609375, -0.04022216796875, 0.04071044921875, -0.02789306640625, -0.0347900390625, -0.05682373046875, -0.0283660888671875, -0.038238525390625, 0.0562744140625, -0.020599365234375, 0.0166473388671875, 0.046417236328125, -0.02374267578125, -0.055206298828125, -0.0003688335418701172, 0.030426025390625, 0.029205322265625, 0.0212860107421875, -0.008758544921875, 0.036865234375, 0.0167388916015625, -0.027191162109375, -0.11993408203125, -0.015228271484375, -0.07135009765625, 0.033935546875, 0.01212310791015625, -0.032379150390625, -0.0207366943359375, -0.038116455078125, -0.043975830078125, 0.0643310546875, 0.01409912109375, -0.02191162109375, -0.039581298828125, 0.035614013671875, 0.028045654296875, -0.043548583984375, -0.01200103759765625, 0.007480621337890625, -0.030853271484375, -0.0009331703186035156, 0.01812744140625, 0.04327392578125, 0.011077880859375, 0.05682373046875, 0.035003662109375, 0.06951904296875, 0.039947509765625, -0.0205841064453125, 0.003017425537109375, -0.025634765625, 0.01514434814453125, 0.030242919921875, -0.049072265625, -0.02764892578125, -0.0165252685546875, 0.017303466796875, -0.0229339599609375, -0.020355224609375, -0.044769287109375, -0.019256591796875, 0.10308837890625, 0.043701171875, 0.03753662109375, -0.033721923828125, -0.01551055908203125, -0.033203125, 0.005218505859375, 0.01251220703125, 0.0022640228271484375, -0.031463623046875, 0.003978729248046875, 0.0235748291015625, 0.03369140625, -0.01100921630859375, -0.042694091796875, 0.036163330078125, -0.0374755859375, 0.006061553955078125, -0.0031833648681640625, 0.05718994140625, -0.04498291015625, 0.04388427734375, -0.0264739990234375, -0.01132965087890625, -0.01285552978515625, 0.06011962890625, -0.004108428955078125, -0.03204345703125, -0.021392822265625, 0.0033359527587890625, -0.007266998291015625, -0.005504608154296875, 0.002803802490234375, 0.050262451171875, -0.0005979537963867188, -0.011688232421875, 0.004711151123046875, 0.026947021484375, 0.008544921875, 0.035491943359375, -0.0011606216430664062, 0.048065185546875, 0.0159912109375, 0.003681182861328125, -0.0189208984375, -0.007659912109375, -0.004589080810546875, 0.043701171875, 0.005184173583984375, -0.01904296875, 0.041290283203125, -0.031585693359375, -0.0019588470458984375, -0.03729248046875, 0.0022106170654296875, -0.06072998046875, 0.036163330078125, -0.04840087890625, 0.002292633056640625, 0.044158935546875 ]
05b199c00f57253f684374ac9471c7d9bd22c45b
Wordpress Stackexchange Q: Stylesheet switching and caching I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to whichever stylesheet is appropriate. However, I just realised that this will lead to problems when I switch on caching (either using WP Supercache or W3 Total Cache) - as only one version of the page will be cached and thus displayed to the user. Any thoughts on possible solutions? A: I use W3TC, so these are approaches that I can come up with it for it: * *Fragment caching to exclude that part of page, will reduce cache effectiveness overall. *Identify page with switched stylesheet by query argument, disable caching of such pages. *Identify page with switched stylesheet by URL endpoint, disable caching of such by mask. *Implement stylesheet switch via JavaScript (not really W3TC-specific).
Q: Stylesheet switching and caching I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to whichever stylesheet is appropriate. However, I just realised that this will lead to problems when I switch on caching (either using WP Supercache or W3 Total Cache) - as only one version of the page will be cached and thus displayed to the user. Any thoughts on possible solutions? A: I use W3TC, so these are approaches that I can come up with it for it: * *Fragment caching to exclude that part of page, will reduce cache effectiveness overall. *Identify page with switched stylesheet by query argument, disable caching of such pages. *Identify page with switched stylesheet by URL endpoint, disable caching of such by mask. *Implement stylesheet switch via JavaScript (not really W3TC-specific). A: Idea: If you enqueue the styles, use filemtime() for the version. If it finds changes to your previous stylesheet, caching will be prevented and a new stylesheet gets loaded. A: Turns out the answer is fairly simple (at least for WP Supercache). * *Use either PHP or legacy caching (ie not mod_rewrite) *Turn on late init (either from the UI - recommended, or by setting $wp_super_cache_late_init = 1; in wp-content/wp-cache-config.php *Use the <!--dynamic-cached-content--> directive to wrap the content that should remain dynamic. An example: <!--dynamic-cached-content--><?php display_high_contrast_link(); ?><!-- display_high_contrast_link(); --><!--/dynamic-cached-content--> As you can see, the dynamic content has been added twice - from the WP Supercache FAQ The first code is executed when the page is cached, while the second chunk of code is executed when the cached page is served to the next visitor.
wordpress
{ "language": "en", "length": 284, "provenance": "stackexchange_00019.jsonl.gz:411042", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22185" }
[ 0.0158843994140625, 0.021514892578125, -0.045318603515625, 0.0138702392578125, 0.0242919921875, -0.059967041015625, 0.0248260498046875, -0.019500732421875, 0.0224761962890625, 0.02252197265625, -0.00888824462890625, -0.0091400146484375, -0.0177154541015625, -0.0301055908203125, -0.0174713134765625, -0.025909423828125, 0.049591064453125, -0.0078277587890625, 0.01177215576171875, 0.00597381591796875, -0.006061553955078125, 0.047943115234375, -0.0010137557983398438, 0.0677490234375, 0.047271728515625, -0.048553466796875, -0.020904541015625, -0.01345062255859375, 0.030364990234375, -0.0006451606750488281, 0.0202178955078125, 0.0016336441040039062, 0.040069580078125, 0.038970947265625, -0.0665283203125, 0.0012073516845703125, -0.01436614990234375, 0.0143280029296875, -0.03271484375, 0.04241943359375, 0.018341064453125, -0.0009889602661132812, 0.01160430908203125, -0.0247344970703125, -0.00566864013671875, -0.037139892578125, 0.0242767333984375, -0.02386474609375, -0.016754150390625, 0.0115509033203125, 0.01467132568359375, 0.0257415771484375, 0.0205078125, 0.006626129150390625, -0.0076446533203125, -0.0128631591796875, 0.01320648193359375, 0.0068511962890625, 0.0224151611328125, -0.026214599609375, -0.021514892578125, 0.00917816162109375, 0.029022216796875, 0.01444244384765625, -0.01189422607421875, -0.0196533203125, -0.0142364501953125, 0.0131683349609375, -0.038970947265625, -0.01256561279296875, 0.040313720703125, -0.0168914794921875, 0.023468017578125, -0.061187744140625, -0.0086517333984375, 0.053619384765625, -0.00018286705017089844, 0.0223541259765625, 0.0207061767578125, -0.03955078125, -0.0194244384765625, 0.01433563232421875, -0.03033447265625, -0.08172607421875, 0.043548583984375, -0.04266357421875, -0.0189361572265625, 0.004825592041015625, -0.05426025390625, -0.0460205078125, -0.0364990234375, -0.0168914794921875, -0.044830322265625, -0.0419921875, -0.029693603515625, -0.012176513671875, -0.0039520263671875, 0.03948974609375, -0.01824951171875, 0.00447845458984375, -0.047637939453125, 0.0176239013671875, -0.035675048828125, -0.021331787109375, 0.01210784912109375, 0.03607177734375, 0.0036067962646484375, 0.04022216796875, 0.049407958984375, 0.0170135498046875, -0.003932952880859375, 0.04486083984375, 0.0011529922485351562, -0.0029888153076171875, -0.0282440185546875, 0.004795074462890625, -0.007579803466796875, -0.0278778076171875, -0.0083160400390625, -0.03533935546875, -0.003814697265625, 0.0230712890625, -0.04302978515625, -0.0094757080078125, -0.0019464492797851562, -0.0222015380859375, 0.0089569091796875, 0.004909515380859375, -0.036529541015625, -0.00555419921875, -0.019683837890625, 0.0218963623046875, 0.0941162109375, 0.040924072265625, 0.01120758056640625, -0.006763458251953125, 0.039886474609375, -0.003734588623046875, -0.0159912109375, 0.00647735595703125, -0.00251007080078125, -0.06597900390625, -0.045684814453125, -0.01114654541015625, 0.017120361328125, 0.03277587890625, 0.032745361328125, 0.006099700927734375, -0.03131103515625, -0.07562255859375, 0.06939697265625, -0.056610107421875, 0.0308990478515625, -0.0146026611328125, -0.0263519287109375, -0.035736083984375, -0.0113677978515625, -0.01338958740234375, 0.000701904296875, -0.0186920166015625, -0.01158905029296875, -0.0199432373046875, 0.01357269287109375, 0.05438232421875, 0.04144287109375, 0.039337158203125, 0.0155792236328125, 0.01073455810546875, 0.0284271240234375, 0.0250244140625, 0.01029205322265625, -0.05511474609375, -0.0131988525390625, -0.0022525787353515625, -0.0072784423828125, 0.0355224609375, -0.0023860931396484375, 0.019256591796875, 0.0218353271484375, -0.004283905029296875, -0.01727294921875, -0.03424072265625, 0.055328369140625, -0.0176239013671875, -0.0316162109375, -0.0239715576171875, 0.0223541259765625, 0.0289459228515625, 0.01239776611328125, 0.0264892578125, 0.03143310546875, -0.00121307373046875, -0.00441741943359375, 0.055511474609375, 0.03375244140625, -0.0282745361328125, -0.017974853515625, 0.005878448486328125, 0.00844573974609375, -0.0859375, 0.05255126953125, 0.016876220703125, -0.02001953125, -0.01079559326171875, -0.0435791015625, -0.01398468017578125, -0.00554656982421875, 0.003269195556640625, -0.0225067138671875, 0.040283203125, 0.0059967041015625, -0.0210723876953125, -0.00598907470703125, 0.017913818359375, 0.0221405029296875, -0.014862060546875, 0.0198822021484375, 0.0186767578125, 0.02740478515625, 0.00441741943359375, 0.0257568359375, 0.02349853515625, 0.0250396728515625, 0.0133819580078125, 0.01555633544921875, -0.002353668212890625, -0.00905609130859375, -0.0021190643310546875, 0.0011425018310546875, 0.0209808349609375, -0.0272369384765625, 0.032958984375, 0.048858642578125, 0.04901123046875, -0.0004849433898925781, 0.0218658447265625, 0.0260772705078125, -0.062744140625, -0.00716400146484375, 0.031890869140625, 0.0189056396484375, 0.006015777587890625, -0.029327392578125, -0.0015935897827148438, 0.041656494140625, 0.0104217529296875, 0.0174102783203125, 0.005115509033203125, -0.0090484619140625, 0.009368896484375, 0.043487548828125, -0.0026264190673828125, 0.01509857177734375, -0.0310211181640625, -0.0018377304077148438, 0.0281829833984375, 0.009735107421875, 0.0201263427734375, -0.01287078857421875, -0.00021123886108398438, 0.007183074951171875, 0.039215087890625, -0.0249176025390625, 0.0167236328125, 0.04864501953125, -0.052154541015625, 0.018157958984375, -0.0195465087890625, 0.02325439453125, -0.01140594482421875, 0.000017344951629638672, -0.11334228515625, 0.0042724609375, 0.007099151611328125, 0.0498046875, 0.01363372802734375, -0.020721435546875, -0.021026611328125, 0.031982421875, 0.005374908447265625, -0.015655517578125, 0.0137786865234375, -0.0716552734375, -0.0154571533203125, 0.01140594482421875, -0.0205078125, -0.031829833984375, 0.00811004638671875, -0.01436614990234375, 0.0232391357421875, 0.03009033203125, 0.027557373046875, -0.0209197998046875, 0.012451171875, -0.01971435546875, -0.00641632080078125, 0.04547119140625, -0.0087738037109375, 0.00859832763671875, -0.006809234619140625, 0.0163421630859375, 0.040863037109375, -0.0019550323486328125, -0.01215362548828125, 0.01399993896484375, 0.0059661865234375, 0.021636962890625, -0.0099334716796875, -0.0018415451049804688, 0.03802490234375, -0.062469482421875, 0.01058197021484375, 0.037750244140625, 0.014007568359375, 0.0269927978515625, -0.0269775390625, -0.01010894775390625, 0.0316162109375, -0.059539794921875, -0.0478515625, -0.00994110107421875, -0.042144775390625, 0.0032367706298828125, 0.0285491943359375, -0.030609130859375, -0.018524169921875, 0.07403564453125, 0.005161285400390625, -0.01117706298828125, -0.0160369873046875, -0.04278564453125, -0.048187255859375, -0.06414794921875, -0.0128021240234375, -0.01218414306640625, 0.011566162109375, 0.006160736083984375, 0.0021839141845703125, -0.016754150390625, -0.09039306640625, -0.02081298828125, 0.0190582275390625, -0.0071563720703125, 0.019256591796875, 0.0306854248046875, -0.03509521484375, -0.01039886474609375, 0.01556396484375, 0.01522064208984375, 0.0163421630859375, -0.0266876220703125, -0.003559112548828125, 0.0035762786865234375, -0.012115478515625, 0.024261474609375, -0.0019235610961914062, -0.0267181396484375, 0.011566162109375, 0.024505615234375, -0.051239013671875, -0.009002685546875, 0.0002493858337402344, -0.032928466796875, -0.0089111328125, 0.016021728515625, -0.00980377197265625, -0.020050048828125, 0.0159149169921875, 0.0202789306640625, 0.00689697265625, 0.02032470703125, -0.034942626953125, 0.04473876953125, 0.0029239654541015625, 0.0194549560546875, -0.037933349609375, 0.0128326416015625, -0.0248260498046875, 0.0438232421875, 0.01849365234375, 0.0100555419921875, -0.005054473876953125, 0.0269775390625, -0.0013761520385742188, -0.071533203125, 0.0169525146484375, -0.036956787109375, 0.00673675537109375, -0.009368896484375, 0.0028820037841796875, 0.033477783203125, 0.09942626953125, -0.035797119140625, -0.0236663818359375, -0.0166168212890625, 0.01517486572265625, -0.04522705078125, -0.0323486328125, -0.00966644287109375, 0.01068878173828125, -0.09149169921875, 0.00942230224609375, 0.03289794921875, -0.053924560546875, -0.0153961181640625, -0.022430419921875, -0.07513427734375, -0.01751708984375, 0.03057861328125, -0.0035247802734375, -0.017059326171875, -0.000324249267578125, -0.01407623291015625, -0.02996826171875, -0.00568389892578125, -0.006496429443359375, -0.041778564453125, -0.016815185546875, -0.0213623046875, 0.03387451171875, 0.0305023193359375, -0.0296630859375, 0.01212310791015625, 0.0382080078125, 0.033477783203125, 0.055938720703125, -0.0102081298828125, -0.0265350341796875, 0.014923095703125, -0.029022216796875, 0.00814056396484375, -0.0259857177734375, -0.006252288818359375, 0.00991058349609375, -0.04736328125, -0.01904296875, -0.0197601318359375, -0.037506103515625, 0.055511474609375, -0.0526123046875, -0.0379638671875, -0.0212554931640625, -0.00839996337890625, -0.00147247314453125, 0.0127716064453125, -0.0175018310546875, -0.004177093505859375, -0.01090240478515625, 0.0151214599609375, 0.0338134765625, -0.0200653076171875, -0.003932952880859375, -0.024993896484375, 0.02618408203125, -0.043975830078125, 0.018463134765625, 0.0185394287109375, 0.014739990234375, 0.0298919677734375, -0.01421356201171875, -0.0535888671875, -0.023345947265625, 0.050506591796875, -0.0245361328125, 0.0106658935546875, -0.01548004150390625, 0.060150146484375, 0.006031036376953125, -0.01209259033203125, 0.0202178955078125, 0.0217437744140625, -0.022705078125, 0.039642333984375, 0.0018672943115234375, 0.01203155517578125, 0.01146697998046875, 0.01206207275390625, 0.0178985595703125, -0.08892822265625, -0.061309814453125, 0.005035400390625, -0.01708984375, 0.0046844482421875, 0.10162353515625, 0.05670166015625, -0.00751495361328125, 0.0382080078125, 0.0703125, -0.0078277587890625, -0.037872314453125, 0.030975341796875, -0.0262603759765625, 0.0364990234375, -0.042694091796875, -0.016571044921875, -0.046417236328125, -0.0037097930908203125, -0.005847930908203125, -0.0020313262939453125, -0.07379150390625, 0.00994110107421875, 0.01898193359375, -0.0017862319946289062, 0.0311126708984375, 0.019989013671875, 0.05950927734375, -0.0406494140625, -0.0172576904296875, -0.023590087890625, -0.033905029296875, -0.032501220703125, -0.068603515625, 0.00867462158203125, 0.007633209228515625, -0.0270233154296875, 0.048797607421875, -0.012298583984375, 0.0028553009033203125, 0.01248931884765625, -0.0087127685546875, 0.0279388427734375, 0.054107666015625, -0.025970458984375, -0.017608642578125, 0.05975341796875, 0.01209259033203125, -0.0394287109375, 0.053924560546875, -0.0232391357421875, -0.0307159423828125, 0.03570556640625, 0.025299072265625, -0.0014410018920898438, 0.008514404296875, 0.00890350341796875, 0.0091552734375, -0.005218505859375, 0.0121917724609375, -0.07220458984375, -0.067138671875, -0.0413818359375, -0.0166168212890625, 0.039306640625, -0.034423828125, -0.0252532958984375, -0.0227813720703125, -0.023834228515625, -0.0035400390625, 0.034820556640625, -0.0562744140625, 0.03009033203125, 0.033935546875, -0.02215576171875, -0.020233154296875, -0.0158233642578125, -0.047454833984375, -0.007781982421875, -0.0113677978515625, -0.010406494140625, 0.007404327392578125, -0.0350341796875, 0.00566864013671875, 0.00926971435546875, -0.013397216796875, -0.007289886474609375, 0.0261993408203125, 0.0380859375, 0.01806640625, -0.055938720703125, 0.02593994140625, -0.0673828125, -0.007965087890625, -0.054534912109375, -0.091796875, -0.045623779296875, -0.03363037109375, 0.00104522705078125, 0.0011472702026367188, -0.01554107666015625, -0.032073974609375, -0.0230865478515625, 0.033203125, 0.043365478515625, -0.0018644332885742188, -0.0218658447265625, 0.054901123046875, 0.0127410888671875, 0.032745361328125, 0.01041412353515625, 0.0189056396484375, -0.0035190582275390625, -0.0008802413940429688, -0.024444580078125, -0.06463623046875, -0.0032444000244140625, 0.004962921142578125, -0.0222015380859375, 0.07049560546875, 0.07232666015625, 0.02313232421875, 0.01520538330078125, -0.019989013671875, -0.0015192031860351562, -0.044281005859375, -0.00278472900390625, -0.043212890625, 0.0049896240234375, -0.05340576171875, 0.0311126708984375, 0.02301025390625, -0.029327392578125, -0.0457763671875, 0.0096435546875, 0.029052734375, 0.04571533203125, -0.042266845703125, -0.0022945404052734375, -0.004138946533203125, 0.025238037109375, 0.0183868408203125, 0.05157470703125, 0.003276824951171875, 0.05401611328125, 0.060333251953125, 0.0002999305725097656, 0.000013232231140136719, 0.007648468017578125, 0.022003173828125, -0.017425537109375, 0.01410675048828125, 0.016632080078125, -0.0008449554443359375, 0.01013946533203125, 0.06341552734375, 0.05853271484375, -0.07330322265625, -0.0060882568359375, -0.004055023193359375, -0.038726806640625, 0.01611328125, 0.0263824462890625, -0.019989013671875, -0.02740478515625, -0.004634857177734375, -0.039794921875, -0.003910064697265625, 0.0011749267578125, -0.007701873779296875, -0.0148162841796875, -0.01580810546875, 0.00481414794921875, -0.007183074951171875, -0.0655517578125, -0.0255889892578125, 0.0635986328125, -0.06951904296875, -0.021270751953125, 0.004398345947265625, 0.038482666015625, -0.0227813720703125, -0.046295166015625, 0.032806396484375, -0.01277923583984375, -0.02264404296875, -0.00382232666015625, 0.04937744140625, 0.031890869140625, 0.04315185546875, 0.0037403106689453125, -0.00946807861328125, -0.0006146430969238281, 0.062225341796875, 0.007213592529296875, -0.03759765625, -0.0020084381103515625, -0.019073486328125, -0.0248565673828125, 0.0132598876953125, -0.0169525146484375, -0.039459228515625, -0.0161590576171875, 0.049163818359375, 0.09417724609375, 0.023651123046875, -0.057159423828125, 0.034698486328125, 0.024932861328125, -0.016357421875, 0.00569915771484375, -0.03167724609375, -0.00528717041015625, -0.002552032470703125, -0.0272064208984375, -0.0509033203125, 0.0164794921875, -0.0191192626953125, -0.03179931640625, 0.0012149810791015625, -0.006748199462890625, 0.02587890625, 0.044342041015625, -0.01922607421875, -0.021087646484375, -0.034942626953125, -0.0372314453125, 0.059478759765625, -0.006885528564453125, 0.023406982421875, -0.0237579345703125, 0.0116729736328125, 0.017913818359375, -0.00888824462890625, 0.0109405517578125, 0.004680633544921875, -0.01983642578125, -0.005702972412109375, 0.0223541259765625, 0.0139923095703125, -0.0009245872497558594, 0.03558349609375, -0.041656494140625, 0.0032196044921875, -0.036834716796875, -0.01519012451171875, 0.034332275390625, -0.0579833984375, -0.083740234375, -0.02825927734375, 0.004421234130859375, -0.0010194778442382812, 0.0102386474609375, 0.08465576171875, -0.0987548828125, 0.0234375, 0.06927490234375, -0.0013360977172851562, -0.004886627197265625, 0.0205535888671875, 0.00003701448440551758, 0.0182037353515625, 0.01378631591796875, -0.01361083984375, 0.0294342041015625, 0.003986358642578125, -0.00688934326171875, 0.00005346536636352539, 0.007080078125, 0.0246429443359375, -0.01067352294921875, -0.01751708984375, 0.0196990966796875, 0.0022106170654296875, 0.01261138916015625, -0.01294708251953125, 0.04254150390625, -0.03790283203125, -0.053375244140625, -0.0296478271484375, 0.021453857421875, -0.0026416778564453125, -0.024200439453125, 0.01448822021484375, 0.013824462890625, 0.0063323974609375, -0.00852203369140625, 0.0244140625, -0.08233642578125, -0.02972412109375, 0.006900787353515625, 0.0005054473876953125, 0.0179443359375, -0.034515380859375, 0.01476287841796875, 0.06402587890625, -0.0009074211120605469, 0.04718017578125, -0.042144775390625, -0.0278472900390625, 0.0235443115234375, 0.05377197265625, 0.03466796875, 0.034210205078125, 0.03668212890625, -0.0295867919921875, -0.0191650390625, 0.00464630126953125, 0.043914794921875, 0.006927490234375, -0.0248870849609375, 0.0099029541015625, 0.0204620361328125, 0.027313232421875, -0.028167724609375, -0.0139617919921875, 0.0070037841796875, 0.018341064453125, -0.042022705078125, -0.0294342041015625, 0.0416259765625, -0.03302001953125, 0.06854248046875, -0.030181884765625, 0.031524658203125, -0.0064239501953125, -0.0244598388671875, -0.01995849609375, -0.0281829833984375, 0.07440185546875, -0.01544189453125, 0.037628173828125, 0.01256561279296875, 0.0005145072937011719, 0.0189666748046875, 0.01004791259765625, 0.00260162353515625, 0.0082855224609375, -0.0792236328125, -0.0259552001953125, -0.016021728515625, 0.0128173828125, 0.0087127685546875, 0.0305633544921875, -0.01551055908203125, 0.028594970703125, 0.0015888214111328125, 0.01015472412109375, 0.05828857421875, -0.056488037109375, -0.011474609375, 0.001018524169921875, 0.028594970703125, -0.0114288330078125, -0.0546875, -0.0447998046875, -0.00701904296875, 0.05548095703125, -0.0170440673828125, 0.0391845703125, -0.01398468017578125, 0.0185394287109375, 0.08404541015625, -0.0190277099609375, 0.052154541015625, 0.04534912109375, 0.0221099853515625, -0.0174102783203125, 0.0031070709228515625, -0.01824951171875, -0.0211334228515625, 0.046875, 0.02130126953125, 0.0133514404296875, 0.0166168212890625, 0.0001728534698486328, 0.0120391845703125, 0.00875091552734375, -0.052276611328125, -0.054443359375, -0.03515625, -0.042083740234375, 0.0048828125, -0.011749267578125, -0.03887939453125, -0.01088714599609375, 0.00632476806640625, 0.0194549560546875, -0.027099609375, 0.0272979736328125, -0.003509521484375, 0.037750244140625, 0.0295867919921875, 0.018768310546875, -0.047821044921875, 0.03857421875, -0.005947113037109375, 0.0023345947265625, 0.01491546630859375, 0.0595703125, 0.0240478515625, -0.0146331787109375, 0.01149749755859375, 0.0545654296875, 0.0302734375, -0.007534027099609375, 0.0013093948364257812, 0.07843017578125, -0.035125732421875, -0.031646728515625, 0.03582763671875, -0.0067901611328125, 0.019989013671875, -0.0124359130859375, -0.01116180419921875, 0.03802490234375, -0.0167694091796875, 0.0079803466796875, 0.025909423828125, 0.03558349609375, -0.01100921630859375, -0.0251007080078125, 0.004459381103515625, -0.050262451171875, 0.064697265625, 0.004352569580078125, -0.049591064453125, 0.005985260009765625, 0.016387939453125, -0.032196044921875, -0.0225982666015625, -0.057342529296875, 0.00482177734375, -0.039215087890625, 0.0039215087890625, 0.062469482421875, 0.004344940185546875, 0.0114593505859375, -0.0267333984375, -0.017852783203125, 0.031402587890625, -0.11492919921875, 0.01508331298828125, 0.00627899169921875, 0.0267181396484375, -0.038543701171875, -0.050994873046875, 0.0193634033203125, 0.00638580322265625, -0.0234832763671875, 0.0186614990234375, -0.0142669677734375, 0.00841522216796875, -0.0270843505859375, -0.01422119140625, 0.057952880859375, 0.0221099853515625, -0.021942138671875, -0.017974853515625, -0.0166168212890625, -0.01535797119140625, 0.0177001953125, 0.0027065277099609375, -0.037261962890625, -0.0196685791015625, 0.025726318359375, 0.0256500244140625, 0.04754638671875, 0.0316162109375, 0.019927978515625, -0.034942626953125, 0.005931854248046875, -0.0184478759765625, 0.032867431640625, -0.053375244140625, -0.0004093647003173828, -0.01025390625, 0.006603240966796875, -0.0124969482421875, -0.0347900390625, 0.053131103515625, 0.0318603515625, 0.0288543701171875, 0.007511138916015625, -0.027557373046875, -0.0150146484375, -0.01593017578125, 0.051605224609375, 0.00403594970703125, -0.0001062154769897461, 0.02886962890625, 0.005298614501953125, -0.05523681640625, 0.024169921875, 0.0066070556640625, 0.00775909423828125, 0.01904296875, -0.0224151611328125, -0.044097900390625, 0.002918243408203125, 0.01380157470703125, -0.06005859375, 0.0285491943359375, 0.01934814453125, 0.006114959716796875, -0.0836181640625, 0.00579071044921875, 0.0013065338134765625, -0.00937652587890625, 0.01221466064453125, -0.020599365234375, 0.0157623291015625, 0.0052490234375, 0.019256591796875, -0.0159759521484375, 0.034759521484375, -0.0157318115234375, 0.0230712890625, 0.0025081634521484375, -0.0222015380859375, -0.0306243896484375, 0.033416748046875, 0.01837158203125, 0.00798797607421875, 0.001308441162109375, 0.02203369140625, -0.008636474609375, 0.0057525634765625, -0.0198974609375, -0.030181884765625, 0.00582122802734375, 0.03680419921875, 0.00856781005859375, 0.01446533203125, -0.0188446044921875, -0.0036182403564453125, -0.0119171142578125, -0.02691650390625, 0.001804351806640625, -0.031585693359375, 0.0102386474609375, -0.036376953125, 0.0275726318359375, -0.060028076171875, -0.01059722900390625, 0.03082275390625 ]
45bc058e3ea91498d17cf16f90dfbbd8410092a3
Wordpress Stackexchange Q: How to configure WordPress to handle 75,000 pages? I have a large site that's using WordPress. We have 75,000 pages in the site so far, and it's performing well on the front-end. The issue is that if anyone on our team touches the page editor (wp-admin/edit.php?post_type=page), Apache eats up all the memory on the server. I've tried disabling all plugins, but that didn't work. I also tried debugging on our live server which a 4GB box... it still eats up all the memory and comes to a hault. On this install, we also have 20,000 posts. There's no issue loading those in wp-admin. Maybe we should move all pages to posts - that's going to cause an issue with permalink structure, though. Are there special settings or configurations I'm missing for a large WP site? A: The problem comes from the fact that, in order to display pages and their hierarchy, WP has to load all of them and then build the tree in memory. So, you are saved if you can convert most of those pages into one or several non-hierarchical custom post types. The permalink structure can be emulated.
Q: How to configure WordPress to handle 75,000 pages? I have a large site that's using WordPress. We have 75,000 pages in the site so far, and it's performing well on the front-end. The issue is that if anyone on our team touches the page editor (wp-admin/edit.php?post_type=page), Apache eats up all the memory on the server. I've tried disabling all plugins, but that didn't work. I also tried debugging on our live server which a 4GB box... it still eats up all the memory and comes to a hault. On this install, we also have 20,000 posts. There's no issue loading those in wp-admin. Maybe we should move all pages to posts - that's going to cause an issue with permalink structure, though. Are there special settings or configurations I'm missing for a large WP site? A: The problem comes from the fact that, in order to display pages and their hierarchy, WP has to load all of them and then build the tree in memory. So, you are saved if you can convert most of those pages into one or several non-hierarchical custom post types. The permalink structure can be emulated.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:411049", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22211" }
[ 0.049102783203125, -0.01605224609375, 0.0114898681640625, -0.0224609375, -0.0108489990234375, -0.022064208984375, 0.0241851806640625, -0.0225982666015625, -0.0102081298828125, -0.032562255859375, -0.019683837890625, -0.01050567626953125, -0.041473388671875, -0.04327392578125, 0.041534423828125, -0.03289794921875, 0.043914794921875, 0.00408172607421875, 0.06103515625, 0.0024166107177734375, 0.005573272705078125, 0.0273895263671875, 0.04071044921875, 0.04315185546875, 0.0289306640625, -0.01268768310546875, 0.0010213851928710938, -0.020355224609375, -0.0011653900146484375, -0.030975341796875, 0.0152130126953125, 0.034271240234375, 0.018096923828125, 0.00458526611328125, 0.007511138916015625, -0.0033740997314453125, 0.011749267578125, -0.0174713134765625, 0.0009436607360839844, 0.0126190185546875, 0.024444580078125, -0.0027294158935546875, 0.0880126953125, 0.02423095703125, 0.025787353515625, -0.00678253173828125, 0.016510009765625, -0.0770263671875, -0.0189971923828125, -0.08837890625, 0.0037670135498046875, 0.0377197265625, 0.041534423828125, -0.039276123046875, -0.01374053955078125, 0.0131378173828125, 0.01776123046875, -0.007843017578125, 0.0300750732421875, -0.03997802734375, -0.04302978515625, -0.005695343017578125, 0.0245819091796875, -0.0026493072509765625, -0.0467529296875, 0.009002685546875, -0.0187225341796875, 0.006572723388671875, -0.031890869140625, -0.043914794921875, 0.0006933212280273438, -0.0255584716796875, -0.0167999267578125, -0.032012939453125, 0.02484130859375, 0.019073486328125, 0.00751495361328125, 0.005146026611328125, -0.01898193359375, 0.039794921875, -0.01251220703125, -0.003253936767578125, -0.033905029296875, -0.0222625732421875, -0.0004353523254394531, -0.009735107421875, -0.0166778564453125, -0.001956939697265625, -0.034515380859375, -0.007686614990234375, -0.024200439453125, -0.046478271484375, 0.0012950897216796875, 0.010711669921875, -0.024505615234375, -0.0017881393432617188, 0.0267486572265625, 0.005764007568359375, 0.033538818359375, 0.0006399154663085938, 0.0250701904296875, -0.06292724609375, 0.045501708984375, -0.020111083984375, 0.0182342529296875, 0.017333984375, -0.01232147216796875, 0.0223541259765625, 0.0684814453125, 0.032928466796875, 0.00862884521484375, 0.041351318359375, 0.01288604736328125, -0.018951416015625, 0.0041351318359375, -0.0003552436828613281, -0.0285186767578125, 0.0595703125, 0.00400543212890625, 0.030364990234375, -0.02044677734375, 0.0079498291015625, -0.0245361328125, 0.01155853271484375, 0.0024127960205078125, 0.01232147216796875, -0.0008769035339355469, -0.0026340484619140625, 0.0152435302734375, 0.0044708251953125, -0.022064208984375, -0.0015621185302734375, 0.01044464111328125, 0.0367431640625, 0.01007843017578125, 0.00243377685546875, 0.042694091796875, -0.008270263671875, -0.0190277099609375, 0.028350830078125, -0.0208740234375, -0.057647705078125, -0.005702972412109375, -0.03533935546875, -0.00592041015625, 0.0181732177734375, 0.038848876953125, 0.0232696533203125, -0.016937255859375, -0.058349609375, 0.01290130615234375, 0.01971435546875, 0.0321044921875, -0.00411224365234375, -0.006511688232421875, -0.040924072265625, -0.004985809326171875, -0.0208740234375, 0.017333984375, -0.0216064453125, 0.0234527587890625, -0.003284454345703125, 0.0203094482421875, -0.032318115234375, -0.06317138671875, 0.01058197021484375, -0.053680419921875, -0.025909423828125, 0.026275634765625, -0.05218505859375, 0.059356689453125, -0.0178070068359375, 0.011962890625, -0.006839752197265625, 0.004581451416015625, 0.0122833251953125, -0.014068603515625, 0.0050048828125, 0.023773193359375, 0.04071044921875, 0.0180816650390625, -0.0190277099609375, 0.04443359375, 0.002655029296875, -0.042877197265625, -0.002285003662109375, 0.00899505615234375, 0.0228271484375, 0.005462646484375, 0.01708984375, 0.04901123046875, -0.01346588134765625, -0.055145263671875, 0.01904296875, -0.021759033203125, -0.01509857177734375, -0.01418304443359375, 0.011016845703125, -0.0247650146484375, 0.0218658447265625, 0.0197296142578125, -0.008148193359375, 0.01548004150390625, -0.01552581787109375, -0.005504608154296875, 0.00933074951171875, -0.01256561279296875, 0.0233306884765625, 0.038055419921875, 0.0404052734375, 0.0167999267578125, 0.044921875, -0.0574951171875, 0.0005788803100585938, -0.04351806640625, 0.0267181396484375, -0.0234222412109375, 0.017181396484375, -0.00588226318359375, 0.018646240234375, 0.006542205810546875, -0.023193359375, 0.0059356689453125, 0.00872802734375, 0.06390380859375, -0.0139007568359375, -0.01702880859375, -0.040985107421875, 0.0167388916015625, -0.00897216796875, -0.037078857421875, 0.06317138671875, 0.043365478515625, 0.035552978515625, -0.0264434814453125, -0.0061798095703125, -0.025390625, -0.04254150390625, -0.01096343994140625, 0.05010986328125, 0.028350830078125, 0.002712249755859375, -0.004756927490234375, 0.01227569580078125, -0.01374053955078125, -0.0653076171875, 0.006412506103515625, 0.00102996826171875, -0.0210418701171875, 0.01102447509765625, 0.02655029296875, 0.003910064697265625, -0.0107879638671875, -0.0941162109375, -0.0190887451171875, 0.0300140380859375, -0.0116729736328125, -0.0219268798828125, 0.0160369873046875, -0.00792694091796875, 0.030242919921875, 0.048980712890625, -0.0174102783203125, 0.0288238525390625, 0.01519775390625, 0.02398681640625, 0.023040771484375, 0.0156402587890625, -0.019317626953125, 0.0254974365234375, 0.01551055908203125, -0.03704833984375, 0.0028705596923828125, -0.04803466796875, 0.0274810791015625, -0.041107177734375, -0.033935546875, 0.02783203125, 0.012786865234375, -0.038482666015625, -0.02349853515625, 0.0312042236328125, -0.033172607421875, -0.01092529296875, -0.046112060546875, -0.0296783447265625, -0.002613067626953125, 0.024749755859375, -0.0006608963012695312, -0.01093292236328125, 0.003948211669921875, 0.04132080078125, -0.02117919921875, 0.05517578125, 0.0053253173828125, -0.0131988525390625, 0.0927734375, -0.0650634765625, 0.053863525390625, -0.041900634765625, 0.1114501953125, 0.048187255859375, -0.06817626953125, 0.054656982421875, 0.002590179443359375, 0.01256561279296875, 0.039337158203125, -0.0030727386474609375, -0.019561767578125, -0.002979278564453125, -0.06292724609375, -0.01154327392578125, 0.004150390625, 0.053009033203125, -0.007171630859375, -0.054412841796875, 0.013763427734375, 0.03314208984375, -0.05169677734375, -0.05718994140625, -0.0180206298828125, -0.05865478515625, -0.0111541748046875, -0.01062774658203125, -0.01161956787109375, 0.0015134811401367188, 0.01470184326171875, 0.0106048583984375, -0.032989501953125, -0.042266845703125, -0.0523681640625, -0.1009521484375, -0.058746337890625, -0.03704833984375, 0.0011043548583984375, -0.0014629364013671875, -0.00907135009765625, 0.047210693359375, -0.01317596435546875, -0.0626220703125, -0.04742431640625, 0.00803375244140625, -0.00756072998046875, -0.00833892822265625, 0.00963592529296875, -0.037628173828125, 0.0193939208984375, -0.00934600830078125, 0.0175933837890625, 0.0035114288330078125, 0.000009000301361083984, -0.018035888671875, -0.00457763671875, 0.000020503997802734375, -0.0029125213623046875, 0.00778961181640625, 0.00391387939453125, -0.03106689453125, -0.0195770263671875, -0.07379150390625, -0.019927978515625, 0.0003857612609863281, -0.042144775390625, -0.031463623046875, 0.030853271484375, -0.0098419189453125, -0.00226593017578125, -0.037567138671875, 0.0168304443359375, 0.00733184814453125, 0.0192718505859375, -0.027252197265625, 0.017425537109375, 0.0046844482421875, 0.007358551025390625, -0.01885986328125, 0.046234130859375, -0.031982421875, 0.0196685791015625, 0.020111083984375, -0.0296173095703125, -0.00955963134765625, 0.0001888275146484375, -0.01715087890625, -0.051361083984375, 0.06549072265625, 0.0293426513671875, 0.003124237060546875, -0.001949310302734375, -0.03631591796875, 0.02874755859375, 0.0985107421875, -0.0036487579345703125, -0.00847625732421875, -0.0100860595703125, 0.001369476318359375, -0.0180206298828125, -0.0479736328125, -0.042388916015625, -0.0198822021484375, -0.0179595947265625, 0.0020732879638671875, -0.000728607177734375, -0.0297088623046875, -0.0184783935546875, 0.01125335693359375, -0.0206756591796875, -0.0201568603515625, 0.036102294921875, -0.03851318359375, -0.018035888671875, -0.01049041748046875, -0.01519775390625, -0.058563232421875, -0.0279083251953125, -0.0022792816162109375, -0.133544921875, -0.0263519287109375, 0.011016845703125, 0.08428955078125, -0.0193328857421875, -0.0171051025390625, -0.078125, 0.00452423095703125, 0.003940582275390625, 0.04132080078125, 0.0157318115234375, 0.007701873779296875, 0.01340484619140625, -0.0015821456909179688, 0.0216827392578125, -0.01450347900390625, -0.01543426513671875, -0.01451873779296875, -0.00299072265625, -0.0096282958984375, -0.01331329345703125, -0.03936767578125, 0.014007568359375, -0.00881195068359375, -0.05963134765625, -0.0279998779296875, -0.0809326171875, -0.0253143310546875, 0.002262115478515625, -0.05322265625, -0.0225982666015625, -0.08404541015625, 0.050201416015625, -0.00484466552734375, 0.022308349609375, -0.0004544258117675781, 0.07342529296875, -0.005260467529296875, -0.02777099609375, -0.05023193359375, -0.026031494140625, 0.01165771484375, 0.0157012939453125, 0.01751708984375, -0.0113677978515625, -0.0006661415100097656, 0.0204315185546875, -0.01441192626953125, -0.0172882080078125, 0.0099029541015625, -0.01398468017578125, 0.004459381103515625, -0.026824951171875, -0.002166748046875, -0.026611328125, 0.044769287109375, 0.0252227783203125, -0.0187530517578125, 0.007617950439453125, -0.0195159912109375, 0.04705810546875, -0.0300445556640625, 0.0244903564453125, -0.05474853515625, -0.04296875, 0.0224609375, -0.0080108642578125, 0.037445068359375, -0.01433563232421875, 0.023284912109375, 0.047882080078125, 0.01049041748046875, -0.018096923828125, 0.060272216796875, 0.046966552734375, 0.0234832763671875, 0.043609619140625, 0.01285552978515625, -0.00994110107421875, -0.004436492919921875, -0.00452423095703125, 0.06744384765625, -0.028839111328125, -0.04638671875, -0.04901123046875, -0.0147705078125, -0.00811767578125, 0.03411865234375, -0.026153564453125, 0.036865234375, 0.0168304443359375, -0.0195770263671875, -0.0018053054809570312, -0.045623779296875, -0.0105438232421875, -0.052581787109375, -0.050750732421875, -0.005245208740234375, -0.017059326171875, 0.03704833984375, 0.006744384765625, 0.0023899078369140625, 0.003284454345703125, -0.0162811279296875, 0.0584716796875, 0.03302001953125, 0.038543701171875, -0.00013828277587890625, 0.015380859375, -0.0047454833984375, 0.0136871337890625, -0.01849365234375, -0.053497314453125, -0.036407470703125, 0.051025390625, 0.03533935546875, 0.0130462646484375, 0.0017442703247070312, -0.00983428955078125, 0.036865234375, -0.01953125, 0.06134033203125, -0.04998779296875, -0.10595703125, -0.0391845703125, 0.0065155029296875, 0.04046630859375, -0.07537841796875, -0.0015325546264648438, 0.026824951171875, -0.0026836395263671875, 0.00618743896484375, 0.0249786376953125, -0.039947509765625, 0.00608062744140625, 0.01120758056640625, 0.004421234130859375, -0.0246429443359375, 0.012603759765625, -0.08355712890625, -0.0081787109375, -0.0151519775390625, 0.005741119384765625, 0.022613525390625, 0.03240966796875, 0.03289794921875, -0.017852783203125, -0.027618408203125, 0.00616455078125, 0.010955810546875, -0.0128326416015625, -0.043853759765625, -0.028076171875, 0.0080718994140625, -0.043365478515625, -0.0272979736328125, -0.0202789306640625, 0.00048089027404785156, -0.07025146484375, -0.00011897087097167969, 0.015594482421875, -0.01049041748046875, 0.007503509521484375, -0.0109100341796875, -0.019317626953125, 0.035125732421875, 0.02581787109375, 0.0081787109375, -0.032958984375, 0.0509033203125, -0.005512237548828125, 0.0333251953125, 0.0009150505065917969, 0.033294677734375, 0.019012451171875, -0.0279998779296875, 0.00543975830078125, -0.048370361328125, -0.0261993408203125, 0.0162200927734375, -0.0352783203125, 0.0298309326171875, 0.027587890625, 0.0017852783203125, 0.0063629150390625, -0.039764404296875, 0.005126953125, -0.0418701171875, 0.01364898681640625, -0.07977294921875, -0.0240936279296875, -0.01396942138671875, 0.0082855224609375, 0.0440673828125, 0.00466156005859375, -0.0706787109375, 0.032470703125, 0.0271453857421875, 0.03607177734375, -0.00568389892578125, 0.00490570068359375, 0.0078277587890625, 0.0653076171875, 0.0141143798828125, 0.0406494140625, 0.03192138671875, 0.0085906982421875, 0.002605438232421875, 0.0310821533203125, 0.024688720703125, -0.036773681640625, 0.0298614501953125, -0.0023136138916015625, 0.01042938232421875, 0.001049041748046875, -0.021453857421875, 0.0108795166015625, 0.00392913818359375, 0.06060791015625, -0.0394287109375, 0.017791748046875, 0.0176849365234375, -0.01165771484375, 0.0241851806640625, 0.0142669677734375, -0.0108184814453125, -0.0194549560546875, -0.0159912109375, -0.01538848876953125, -0.0224151611328125, -0.0171356201171875, -0.003143310546875, -0.0029144287109375, -0.01763916015625, 0.033843994140625, 0.0012187957763671875, -0.0277099609375, -0.0085601806640625, -0.0021038055419921875, 0.005558013916015625, 0.00891876220703125, 0.01226806640625, -0.032318115234375, -0.015411376953125, -0.003627777099609375, -0.012603759765625, -0.05230712890625, 0.0037403106689453125, 0.040069580078125, 0.01338958740234375, -0.04156494140625, 0.032196044921875, -0.024627685546875, 0.0235443115234375, 0.006465911865234375, -0.07122802734375, 0.0207672119140625, -0.02496337890625, 0.01654052734375, -0.0181121826171875, -0.0211029052734375, -0.0007448196411132812, 0.0013074874877929688, -0.0579833984375, 0.0027027130126953125, 0.015869140625, 0.0748291015625, -0.0157470703125, -0.033416748046875, 0.0233612060546875, -0.00116729736328125, -0.024688720703125, 0.005321502685546875, 0.005462646484375, -0.010406494140625, -0.0022068023681640625, -0.0012645721435546875, -0.0270233154296875, 0.01076507568359375, -0.00015294551849365234, -0.0301666259765625, 0.08917236328125, -0.020751953125, 0.00457763671875, 0.036712646484375, 0.04388427734375, -0.040985107421875, 0.035400390625, -0.017547607421875, 0.0770263671875, 0.0161285400390625, 0.0240325927734375, -0.016357421875, -0.00356292724609375, 0.0321044921875, 0.016693115234375, 0.039215087890625, 0.0071258544921875, -0.059814453125, -0.01238250732421875, 0.050994873046875, 0.020172119140625, 0.01390838623046875, 0.057769775390625, -0.04425048828125, 0.018096923828125, 0.0211181640625, -0.05865478515625, 0.01364898681640625, -0.006298065185546875, -0.036102294921875, -0.00632476806640625, 0.00576019287109375, 0.006870269775390625, 0.04254150390625, -0.007091522216796875, -0.01430511474609375, 0.0196075439453125, 0.0277862548828125, -0.0411376953125, 0.0141143798828125, -0.0040130615234375, 0.04461669921875, -0.07733154296875, -0.031463623046875, -0.02337646484375, 0.0455322265625, 0.0156707763671875, 0.0012149810791015625, 0.0149993896484375, 0.01763916015625, 0.0259246826171875, -0.0284423828125, -0.00693511962890625, 0.0050506591796875, -0.0226898193359375, 0.045440673828125, 0.0259552001953125, 0.0259857177734375, -0.0452880859375, -0.034393310546875, 0.04718017578125, 0.0701904296875, -0.034759521484375, -0.060760498046875, 0.013031005859375, -0.00081634521484375, 0.015411376953125, 0.02105712890625, 0.01508331298828125, 0.0250244140625, 0.06048583984375, -0.01468658447265625, -0.031036376953125, 0.0010862350463867188, 0.013763427734375, -0.0230255126953125, -0.014495849609375, 0.018646240234375, -0.0009427070617675781, -0.0022792816162109375, -0.0014019012451171875, 0.0183563232421875, 0.01552581787109375, -0.00872802734375, 0.039031982421875, -0.005886077880859375, 0.0017099380493164062, 0.0233001708984375, -0.017364501953125, -0.017547607421875, -0.017364501953125, -0.02984619140625, -0.046142578125, 0.0252532958984375, 0.047027587890625, -0.00762939453125, 0.00963592529296875, -0.0006265640258789062, 0.0295562744140625, 0.0166015625, -0.01256561279296875, 0.0295562744140625, -0.01422119140625, 0.023773193359375, -0.019744873046875, 0.0148468017578125, -0.01128387451171875, -0.0335693359375, -0.0255584716796875, 0.050262451171875, -0.0108184814453125, 0.0218353271484375, -0.0318603515625, 0.029083251953125, -0.0220794677734375, 0.022918701171875, 0.033203125, -0.01373291015625, 0.048370361328125, -0.058319091796875, -0.01861572265625, -0.01654052734375, -0.009490966796875, 0.040435791015625, 0.04315185546875, -0.01629638671875, 0.0287322998046875, -0.00438690185546875, 0.01042938232421875, -0.00795745849609375, 0.02301025390625, -0.01302337646484375, 0.0167388916015625, 0.053955078125, 0.006580352783203125, -0.021942138671875, -0.0161285400390625, -0.021636962890625, 0.0262908935546875, 0.013427734375, 0.12353515625, -0.052215576171875, 0.018951416015625, 0.044525146484375, -0.0234832763671875, 0.0494384765625, 0.03350830078125, 0.0017614364624023438, 0.0312042236328125, 0.0155181884765625, -0.03729248046875, -0.0372314453125, 0.01971435546875, 0.0221405029296875, -0.019989013671875, 0.0186614990234375, -0.0233306884765625, 0.0175323486328125, -0.0105133056640625, 0.007511138916015625, -0.0168914794921875, -0.03253173828125, -0.0035305023193359375, 0.03125, 0.0025234222412109375, 0.020721435546875, -0.01491546630859375, 0.006072998046875, 0.037506103515625, -0.0212860107421875, 0.0123138427734375, -0.00783538818359375, 0.03204345703125, 0.03314208984375, 0.025146484375, -0.0355224609375, 0.00033020973205566406, -0.023529052734375, -0.025390625, 0.016876220703125, 0.00408172607421875, 0.016998291015625, -0.0614013671875, 0.01479339599609375, 0.007160186767578125, 0.0285186767578125, 0.00141143798828125, -0.00543975830078125, -0.007701873779296875, 0.01163482666015625, -0.010223388671875, 0.018829345703125, -0.01271820068359375, 0.0302276611328125, -0.0341796875, -0.00466156005859375, 0.01016998291015625, -0.04046630859375, -0.039031982421875, 0.0157928466796875, 0.01641845703125, 0.01824951171875, -0.0501708984375, 0.0556640625, -0.0269775390625, -0.0145721435546875, 0.00555419921875, -0.05792236328125, -0.003200531005859375, 0.0047454833984375, 0.0029468536376953125, -0.004611968994140625, -0.05718994140625, -0.0147705078125, -0.033966064453125, 0.0276641845703125, 0.06390380859375, -0.036834716796875, -0.0386962890625, -0.01146697998046875, 0.008514404296875, 0.046234130859375, -0.00537872314453125, 0.0162353515625, 0.03326416015625, 0.0361328125, -0.031768798828125, -0.07952880859375, -0.029083251953125, 0.0110626220703125, 0.0467529296875, -0.011444091796875, -0.0013952255249023438, 0.01082611083984375, -0.036956787109375, -0.040863037109375, 0.01148223876953125, 0.014617919921875, -0.018707275390625, -0.0283355712890625, -0.042572021484375, -0.0298309326171875, 0.0264434814453125, 0.00914764404296875, -0.05950927734375, -0.037384033203125, 0.052001953125, 0.01000213623046875, 0.041656494140625, -0.0195465087890625, 0.037322998046875, -0.0176239013671875, 0.060302734375, 0.044769287109375, 0.0137786865234375, 0.01055145263671875, 0.00652313232421875, 0.0278778076171875, 0.07342529296875, -0.0163726806640625, 0.0074615478515625, -0.005802154541015625, -0.051177978515625, -0.001300811767578125, -0.027862548828125, -0.057342529296875, -0.048309326171875, 0.07342529296875, 0.03875732421875, 0.0262298583984375, -0.0019216537475585938, 0.04876708984375, -0.04400634765625, -0.057769775390625, 0.0006861686706542969, 0.018035888671875, -0.0240478515625, 0.02484130859375, 0.0184478759765625, -0.004520416259765625, 0.007518768310546875, 0.0026645660400390625, -0.01052093505859375, 0.013671875, 0.04644775390625, 0.0151519775390625, -0.04827880859375, -0.0004115104675292969, 0.02044677734375, -0.01538848876953125, -0.006053924560546875, -0.0236053466796875, 0.0160064697265625, -0.01503753662109375, -0.030364990234375, -0.05902099609375, 0.0262451171875, -0.047454833984375, 0.0158843994140625, -0.0249176025390625, 0.038909912109375, -0.0318603515625, 0.03857421875, 0.00994873046875, 0.0103302001953125, -0.010040283203125, 0.0166778564453125, -0.004978179931640625, 0.014129638671875, -0.0305023193359375, 0.06317138671875, -0.01494598388671875, 0.0019969940185546875, 0.002559661865234375, 0.0095977783203125, -0.022003173828125, 0.003986358642578125, 0.052886962890625, -0.07403564453125, 0.0004036426544189453, -0.01021575927734375, -0.01512908935546875, -0.06103515625, 0.003192901611328125, -0.067626953125, 0.01331329345703125, 0.018096923828125 ]
48c962a402ec79b4f7c5897edfc80c8a08e94cba
Wordpress Stackexchange Q: wp_update_post() example... how to update the_content in a textarea? I am using the below function to update the post meta from the front end. How can I add add best a textarea that updates the_content() using wp_update_post()? if ( isset( $_POST['albums'] ) && wp_verify_nonce($_POST['albums'],'update_albums_postmeta') ) { //if nonce check succeeds. global $post; $postid = $post->ID; $data = $_POST['priceone']; update_post_meta($postid,'_releasedate',$data); $data = $_POST['pricetwo']; update_post_meta($postid,'_amazonlink',$data); } - Edit: So this snippet is posting changes to the database, however when the page refreshes on-submit the old the_content() is being shown. The post must manually be refreshed to see the changes. Is my snippet malformed? if ( isset( $_POST['drw_inventory'] ) && wp_verify_nonce($_POST['drw_inventory'],'update_drw_postmeta') ) { //if nonce check succeeds. global $post; $data_content = $_POST['description']; $my_post = array(); $my_post['ID'] = $post->ID; $my_post['post_content'] = $data_content; wp_update_post( $my_post ); } A: You can override the WP_Post properties and send it to wp_update_post: /** @var WP_Post $post */ $post = get_post( 123 ); $post->post_content = "Some other content"; wp_update_post( $post ); I find it easier than an array.
Q: wp_update_post() example... how to update the_content in a textarea? I am using the below function to update the post meta from the front end. How can I add add best a textarea that updates the_content() using wp_update_post()? if ( isset( $_POST['albums'] ) && wp_verify_nonce($_POST['albums'],'update_albums_postmeta') ) { //if nonce check succeeds. global $post; $postid = $post->ID; $data = $_POST['priceone']; update_post_meta($postid,'_releasedate',$data); $data = $_POST['pricetwo']; update_post_meta($postid,'_amazonlink',$data); } - Edit: So this snippet is posting changes to the database, however when the page refreshes on-submit the old the_content() is being shown. The post must manually be refreshed to see the changes. Is my snippet malformed? if ( isset( $_POST['drw_inventory'] ) && wp_verify_nonce($_POST['drw_inventory'],'update_drw_postmeta') ) { //if nonce check succeeds. global $post; $data_content = $_POST['description']; $my_post = array(); $my_post['ID'] = $post->ID; $my_post['post_content'] = $data_content; wp_update_post( $my_post ); } A: You can override the WP_Post properties and send it to wp_update_post: /** @var WP_Post $post */ $post = get_post( 123 ); $post->post_content = "Some other content"; wp_update_post( $post ); I find it easier than an array. A: I'm getting the same problem. My code is in the single.php file. I'm using the code from this article: Front end post editing using a form After clicking on submit, the code in single.php does run wp_update_post() with the post ID being returned. Since this is being run from a template file, the wp_query has already been populated so the page still renders with the old post data. If I refresh without submitting, the new data is populated. I'm not sure if this is the best solution for it, but it works. After wp_update_post() is run, I overwrite the global $wp_query variable using the same query that was run before this template file was called. global $wp_query; if ('POST' == $_SERVER['REQUEST_METHOD'] && !empty($_POST['post_id']) && !empty($_POST['post_title']) && isset($_POST['update_post_nonce']) && isset($_POST['post_content'])) { $post_id = $_POST['post_id']; $post_type = get_post_type($post_id); $capability = ('page' == $post_type) ? 'edit_page' : 'edit_post'; if (current_user_can($capability, $post_id) && wp_verify_nonce($_POST['update_post_nonce'], 'update_post_' . $post_id)) { $post = array( 'ID' => esc_sql($post_id), 'post_content' => wp_kses_post($_POST['post_content']), 'post_title' => wp_strip_all_tags($_POST['post_title']) ); $result = wp_update_post($post, true); if (is_wp_error($result)){ wp_die('Post not saved'); } $wp_query = new WP_Query($wp_query->query); //resets the global query so updated post data is available. } else { wp_die("You can't do that"); } } I've tried calling wp_reset_postdata() and wp_reset_query() instead but I'm guessing it is resetting to a cached copy because I still get the old post data. Another solution that worked was getting the current url using: global $wp; $current_url = home_url(add_query_arg(array(),$wp->request)); and then after wp_update_post(): wp_redirect($current_url); The code for the $current_url was found here. A: It depends on where you're using this. Is global $post giving you the specific post that you want to update? Your Wordpress update post code looks right to me, but is the if-statement valid, and is $post->ID yielding the correct int?
wordpress
{ "language": "en", "length": 466, "provenance": "stackexchange_00019.jsonl.gz:411056", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22237" }
[ 0.046051025390625, -0.029449462890625, -0.0440673828125, -0.028350830078125, 0.00791168212890625, -0.059356689453125, 0.040802001953125, 0.025360107421875, 0.033843994140625, 0.014373779296875, -0.02984619140625, -0.0250091552734375, -0.00121307373046875, -0.025238037109375, -0.0258331298828125, -0.0243377685546875, 0.035858154296875, -0.00899505615234375, 0.0312347412109375, 0.003055572509765625, -0.01300048828125, 0.035675048828125, 0.020538330078125, -0.03497314453125, 0.0079345703125, -0.0010995864868164062, 0.039642333984375, -0.031524658203125, -0.0008349418640136719, -0.0200958251953125, 0.00954437255859375, 0.0056610107421875, 0.03704833984375, 0.034027099609375, -0.0533447265625, 0.015625, 0.01263427734375, 0.003360748291015625, -0.0030727386474609375, 0.0501708984375, 0.02239990234375, -0.0019626617431640625, 0.038665771484375, 0.0195465087890625, 0.00787353515625, -0.05914306640625, 0.049041748046875, -0.051666259765625, 0.016876220703125, 0.003383636474609375, 0.0013628005981445312, 0.030029296875, 0.002780914306640625, 0.02435302734375, 0.01462554931640625, 0.014801025390625, -0.048858642578125, 0.0031757354736328125, 0.0230865478515625, 0.040283203125, -0.002132415771484375, -0.02557373046875, 0.0005502700805664062, -0.0194854736328125, 0.0008268356323242188, -0.0106201171875, -0.0038013458251953125, 0.0216217041015625, -0.11663818359375, -0.01041412353515625, 0.07373046875, -0.05816650390625, -0.00753021240234375, -0.022064208984375, 0.055084228515625, -0.0096435546875, 0.019195556640625, -0.00887298583984375, -0.0280303955078125, 0.06146240234375, -0.01522064208984375, 0.02069091796875, 0.005001068115234375, -0.038818359375, -0.004192352294921875, -0.00751495361328125, -0.0262603759765625, -0.0043792724609375, -0.033660888671875, -0.02301025390625, -0.01739501953125, -0.0205078125, -0.031463623046875, -0.004085540771484375, -0.0173797607421875, -0.0244903564453125, 0.00982666015625, 0.01161956787109375, -0.04095458984375, -0.01593017578125, 0.0306243896484375, -0.039703369140625, 0.04095458984375, -0.0127410888671875, -0.0050506591796875, 0.037139892578125, 0.025726318359375, -0.049102783203125, -0.0146484375, -0.01168060302734375, -0.03131103515625, 0.039825439453125, -0.01198577880859375, -0.0185089111328125, -0.0223236083984375, 0.0229034423828125, -0.021484375, 0.01049041748046875, 0.00348663330078125, 0.033905029296875, -0.0098114013671875, -0.0062408447265625, 0.0211334228515625, 0.0027141571044921875, 0.01293182373046875, -0.000484466552734375, -0.0241851806640625, -0.006374359130859375, -0.02435302734375, 0.0335693359375, -0.04425048828125, 0.0205230712890625, 0.09857177734375, 0.003490447998046875, -0.004364013671875, -0.0266265869140625, 0.0034580230712890625, -0.0156707763671875, -0.0187530517578125, 0.032745361328125, -0.0033588409423828125, -0.03759765625, 0.003574371337890625, -0.004024505615234375, 0.0244598388671875, 0.0211639404296875, 0.03350830078125, 0.0014753341674804688, -0.01461029052734375, -0.030731201171875, 0.01293182373046875, -0.01357269287109375, 0.0292816162109375, -0.01020050048828125, 0.000583648681640625, -0.008331298828125, 0.05792236328125, -0.028228759765625, -0.051177978515625, -0.04156494140625, 0.01343536376953125, -0.00988006591796875, 0.047637939453125, 0.006824493408203125, -0.004573822021484375, 0.009307861328125, -0.060882568359375, -0.0077362060546875, 0.02044677734375, 0.0628662109375, 0.0297698974609375, -0.0069732666015625, -0.0066070556640625, 0.0063629150390625, -0.0181427001953125, -0.01020050048828125, -0.031158447265625, 0.003261566162109375, 0.045867919921875, -0.002330780029296875, -0.02130126953125, -0.020660400390625, 0.0517578125, -0.010284423828125, -0.0298004150390625, 0.0288543701171875, 0.0169525146484375, 0.06219482421875, -0.003170013427734375, 0.0219573974609375, 0.032257080078125, -0.00785064697265625, -0.0277099609375, 0.0301361083984375, -0.0223541259765625, -0.028900146484375, -0.006305694580078125, 0.00910186767578125, -0.0273895263671875, 0.00225067138671875, 0.0178985595703125, 0.007678985595703125, 0.0160369873046875, 0.02166748046875, -0.0305938720703125, 0.01509857177734375, -0.0214996337890625, 0.0248565673828125, -0.0316162109375, 0.017303466796875, 0.034637451171875, 0.016815185546875, -0.04107666015625, 0.0132293701171875, -0.019073486328125, -0.0120849609375, -0.0195770263671875, 0.03204345703125, -0.00017023086547851562, 0.05413818359375, 0.017303466796875, -0.0341796875, -0.0087432861328125, -0.0111846923828125, 0.0389404296875, -0.01517486572265625, -0.01224517822265625, -0.0009341239929199219, 0.051300048828125, 0.0000833272933959961, 0.0208892822265625, 0.020416259765625, 0.033203125, -0.0063934326171875, -0.03955078125, -0.0224609375, -0.05615234375, -0.126708984375, -0.001708984375, 0.09539794921875, 0.043731689453125, 0.023101806640625, -0.01412200927734375, -0.01922607421875, 0.0572509765625, -0.0198516845703125, 0.000911712646484375, -0.0170135498046875, 0.023895263671875, 0.031707763671875, 0.01097869873046875, -0.0174102783203125, 0.038238525390625, -0.0770263671875, 0.01104736328125, 0.044464111328125, 0.005794525146484375, 0.026611328125, -0.0095367431640625, 0.0043182373046875, -0.0247344970703125, -0.0026950836181640625, 0.0163116455078125, -0.0068206787109375, 0.0662841796875, 0.013397216796875, 0.038299560546875, 0.01421356201171875, -0.03375244140625, 0.0192413330078125, 0.0089874267578125, -0.031829833984375, 0.021240234375, 0.037445068359375, -0.05010986328125, 0.059844970703125, -0.040771484375, -0.002330780029296875, 0.058013916015625, 0.023712158203125, -0.0159454345703125, 0.002056121826171875, -0.01276397705078125, 0.0014238357543945312, 0.018951416015625, -0.004283905029296875, 0.01198577880859375, -0.02545166015625, 0.01337432861328125, -0.0304107666015625, 0.0267791748046875, -0.00341033935546875, -0.04425048828125, 0.046875, 0.00566864013671875, -0.0518798828125, 0.00553131103515625, -0.00652313232421875, -0.000019788742065429688, 0.0000032186508178710938, 0.0192108154296875, 0.051116943359375, 0.0193023681640625, -0.0181884765625, 0.001171112060546875, -0.00408935546875, -0.0209503173828125, 0.032135009765625, -0.00543212890625, -0.036041259765625, -0.0267333984375, -0.0086212158203125, 0.017791748046875, 0.024139404296875, -0.01403045654296875, -0.050018310546875, -0.0221710205078125, 0.024505615234375, -0.11297607421875, -0.08770751953125, 0.0103302001953125, -0.0576171875, 0.0066375732421875, -0.01528167724609375, -0.035064697265625, -0.01287078857421875, 0.0170440673828125, -0.0018873214721679688, -0.03497314453125, 0.01380157470703125, -0.034576416015625, -0.0257720947265625, -0.03192138671875, 0.02984619140625, -0.0026035308837890625, 0.0240020751953125, -0.00687408447265625, 0.051544189453125, 0.004970550537109375, -0.06280517578125, -0.00838470458984375, 0.0662841796875, -0.0232696533203125, -0.016937255859375, 0.006656646728515625, -0.00922393798828125, 0.016693115234375, -0.00872802734375, 0.01422119140625, 0.04296875, -0.0256500244140625, 0.005535125732421875, 0.0218353271484375, -0.00615692138671875, 0.029510498046875, -0.0081787109375, -0.01082611083984375, 0.0236358642578125, 0.028289794921875, -0.0233001708984375, -0.006542205810546875, -0.0262603759765625, -0.045318603515625, -0.023284912109375, 0.01171112060546875, 0.0215606689453125, -0.01114654541015625, 0.0285491943359375, -0.036895751953125, 0.0225982666015625, 0.049957275390625, -0.0196990966796875, -0.00870513916015625, -0.03961181640625, -0.0667724609375, -0.006496429443359375, -0.020782470703125, -0.044708251953125, 0.01398468017578125, -0.02606201171875, 0.0032501220703125, -0.0185089111328125, 0.0240325927734375, -0.03607177734375, -0.01094818115234375, 0.036224365234375, -0.0213165283203125, 0.033935546875, -0.05078125, -0.0189666748046875, -0.03662109375, 0.06988525390625, 0.0159912109375, -0.0183563232421875, 0.015045166015625, 0.0129547119140625, -0.0253448486328125, -0.03826904296875, 0.002239227294921875, -0.0010843276977539062, 0.0065155029296875, -0.0254669189453125, -0.016204833984375, -0.007350921630859375, -0.0113983154296875, 0.0275421142578125, 0.001216888427734375, 0.0023174285888671875, 0.036407470703125, -0.02630615234375, 0.0124053955078125, 0.034454345703125, -0.01374053955078125, 0.0006136894226074219, -0.0297698974609375, -0.01143646240234375, -0.0638427734375, -0.0131072998046875, 0.026123046875, 0.03131103515625, 0.018341064453125, -0.03314208984375, 0.006992340087890625, 0.046051025390625, 0.0026187896728515625, 0.0504150390625, -0.0237579345703125, -0.006107330322265625, -0.0264892578125, 0.00063323974609375, 0.02093505859375, -0.01485443115234375, -0.01253509521484375, 0.01299285888671875, 0.01226043701171875, 0.0340576171875, -0.038482666015625, -0.05615234375, -0.0085906982421875, -0.01445770263671875, -0.085693359375, -0.032745361328125, 0.023223876953125, -0.0009331703186035156, -0.036102294921875, 0.03436279296875, -0.0031452178955078125, -0.06951904296875, 0.062164306640625, -0.0225982666015625, -0.0104217529296875, 0.005512237548828125, 0.07684326171875, 0.01105499267578125, -0.012786865234375, -0.057159423828125, 0.01319122314453125, 0.019317626953125, 0.007160186767578125, 0.00432586669921875, 0.016693115234375, -0.003246307373046875, -0.0020599365234375, 0.00722503662109375, 0.0082550048828125, 0.016204833984375, 0.0242919921875, 0.00891876220703125, -0.023834228515625, 0.00940704345703125, 0.00970458984375, -0.0282135009765625, 0.00710296630859375, -0.025604248046875, 0.0133209228515625, -0.0265655517578125, -0.0036983489990234375, -0.0079498291015625, 0.033050537109375, -0.0041046142578125, -0.0106353759765625, -0.00677490234375, 0.054656982421875, -0.01190185546875, 0.034027099609375, 0.0002689361572265625, -0.006557464599609375, -0.0074615478515625, 0.019866943359375, -0.0198516845703125, 0.0004949569702148438, -0.02294921875, 0.0267791748046875, 0.0179443359375, 0.0200653076171875, -0.01398468017578125, -0.0031070709228515625, 0.0131072998046875, -0.037994384765625, -0.07977294921875, -0.042205810546875, 0.01454925537109375, 0.06158447265625, 0.0546875, 0.047760009765625, 0.0426025390625, -0.02587890625, -0.00917816162109375, -0.0181884765625, 0.00768280029296875, -0.00885009765625, -0.02362060546875, -0.00792694091796875, 0.00818634033203125, 0.002742767333984375, -0.01493072509765625, 0.07305908203125, 0.029083251953125, 0.024658203125, -0.0361328125, 0.053314208984375, 0.05828857421875, 0.0121917724609375, 0.0189666748046875, -0.0030117034912109375, -0.0287017822265625, 0.0294647216796875, -0.036224365234375, -0.037078857421875, -0.035980224609375, 0.033843994140625, 0.0780029296875, 0.00888824462890625, 0.0214996337890625, -0.0279998779296875, -0.03765869140625, -0.0030651092529296875, -0.0032253265380859375, 0.004940032958984375, -0.052947998046875, 0.0238189697265625, 0.076171875, 0.0020160675048828125, -0.036895751953125, 0.0172119140625, -0.005069732666015625, -0.013671875, 0.045257568359375, -0.0374755859375, 0.04962158203125, -0.01739501953125, -0.04754638671875, 0.016387939453125, -0.0065155029296875, -0.035400390625, 0.01715087890625, -0.0206146240234375, -0.02783203125, -0.01739501953125, 0.09307861328125, -0.01267242431640625, 0.006038665771484375, -0.042755126953125, 0.0196380615234375, -0.058929443359375, -0.004924774169921875, 0.049224853515625, 0.01129913330078125, 0.025726318359375, -0.016448974609375, -0.0084075927734375, -0.04034423828125, 0.0005397796630859375, -0.010498046875, -0.0176544189453125, -0.01409912109375, -0.01093292236328125, 0.0323486328125, -0.0303192138671875, -0.046417236328125, -0.0098876953125, -0.00437164306640625, 0.00643157958984375, 0.0572509765625, -0.0147247314453125, 0.06683349609375, -0.042449951171875, 0.0570068359375, 0.007335662841796875, 0.02691650390625, -0.0074462890625, -0.021270751953125, -0.040283203125, -0.05377197265625, 0.039031982421875, 0.03460693359375, 0.04278564453125, 0.0084686279296875, -0.0019817352294921875, 0.0188446044921875, 0.00897216796875, -0.01404571533203125, -0.0071258544921875, -0.0123443603515625, 0.028045654296875, -0.029510498046875, -0.02301025390625, 0.044342041015625, -0.0087432861328125, -0.0157318115234375, -0.024322509765625, -0.003734588623046875, 0.01201629638671875, -0.00588226318359375, -0.00988006591796875, 0.0006742477416992188, -0.055206298828125, 0.04638671875, 0.07177734375, 0.0257110595703125, 0.053863525390625, -0.00960540771484375, 0.01325225830078125, 0.035064697265625, -0.0423583984375, -0.0026264190673828125, 0.060821533203125, 0.0621337890625, -0.0237274169921875, -0.0178680419921875, 0.03582763671875, -0.021575927734375, 0.03643798828125, 0.01229095458984375, 0.082275390625, -0.0199127197265625, 0.025970458984375, 0.0211334228515625, -0.0408935546875, 0.041351318359375, -0.0017976760864257812, -0.02667236328125, -0.011688232421875, 0.0570068359375, -0.03173828125, -0.005001068115234375, 0.0362548828125, 0.000014603137969970703, -0.02056884765625, -0.020599365234375, 0.04058837890625, 0.023773193359375, -0.044769287109375, 0.01160430908203125, 0.0447998046875, -0.030059814453125, -0.0255889892578125, 0.0313720703125, -0.01493072509765625, -0.01483917236328125, -0.04559326171875, 0.01068878173828125, 0.02801513671875, -0.0205230712890625, -0.00888824462890625, 0.0195159912109375, 0.032196044921875, 0.050811767578125, -0.0014696121215820312, -0.0241546630859375, 0.042572021484375, 0.00811004638671875, -0.0308990478515625, -0.024810791015625, 0.00010091066360473633, 0.0626220703125, -0.0157318115234375, 0.031280517578125, -0.0014791488647460938, -0.0176239013671875, -0.00971221923828125, -0.0199432373046875, 0.052001953125, -0.0255889892578125, -0.01296234130859375, 0.04083251953125, -0.0170440673828125, -0.0299835205078125, -0.01132965087890625, 0.0230712890625, -0.045318603515625, -0.0036373138427734375, -0.00363922119140625, -0.046661376953125, -0.03961181640625, -0.031494140625, -0.07867431640625, 0.13916015625, 0.04742431640625, -0.008087158203125, -0.0251007080078125, 0.0648193359375, -0.07025146484375, 0.017059326171875, -0.03314208984375, 0.0521240234375, -0.035491943359375, 0.020599365234375, -0.046234130859375, 0.0132904052734375, 0.0051116943359375, 0.0087127685546875, 0.03631591796875, 0.0251922607421875, -0.02386474609375, -0.0340576171875, -0.0182037353515625, 0.018829345703125, -0.0164031982421875, 0.0294647216796875, -0.016448974609375, 0.0219573974609375, 0.021820068359375, -0.034912109375, 0.026336669921875, -0.0277862548828125, -0.0204925537109375, 0.0226593017578125, 0.026214599609375, 0.013458251953125, 0.0060272216796875, 0.0848388671875, -0.03021240234375, 0.0025005340576171875, 0.046722412109375, -0.00814056396484375, -0.0120849609375, 0.02960205078125, 0.0049285888671875, -0.025177001953125, 0.01314544677734375, -0.03936767578125, 0.04095458984375, -0.0180816650390625, 0.03533935546875, 0.03680419921875, 0.01010894775390625, 0.04345703125, 0.035797119140625, 0.016510009765625, 0.0223236083984375, 0.026824951171875, 0.050079345703125, 0.0190887451171875, 0.0206451416015625, -0.021026611328125, 0.034698486328125, 0.044708251953125, 0.06256103515625, -0.055877685546875, 0.0092315673828125, 0.00618743896484375, 0.00936126708984375, -0.0273590087890625, -0.069091796875, -0.0160369873046875, -0.02587890625, -0.0193023681640625, -0.0124969482421875, 0.005401611328125, 0.029693603515625, -0.0104827880859375, 0.01416015625, 0.036102294921875, -0.028350830078125, -0.0051116943359375, -0.0638427734375, 0.0296630859375, 0.0233917236328125, 0.04644775390625, 0.00133514404296875, 0.08258056640625, 0.0294647216796875, -0.0015172958374023438, -0.01082611083984375, 0.01544952392578125, 0.00628662109375, 0.022064208984375, -0.032440185546875, -0.01070404052734375, 0.0044097900390625, 0.035552978515625, 0.01461029052734375, 0.05517578125, 0.0718994140625, 0.058074951171875, -0.036865234375, -0.0008192062377929688, 0.04656982421875, -0.01983642578125, 0.00553131103515625, -0.02032470703125, -0.004428863525390625, -0.00984954833984375, -0.00634765625, -0.00934600830078125, 0.0406494140625, -0.016265869140625, -0.00608062744140625, 0.05792236328125, -0.0038356781005859375, 0.01465606689453125, 0.03387451171875, 0.0281982421875, 0.06134033203125, 0.036163330078125, -0.01206207275390625, -0.0004076957702636719, -0.0189208984375, -0.029510498046875, 0.0032482147216796875, 0.0249786376953125, -0.014068603515625, 0.036102294921875, -0.0070953369140625, 0.00829315185546875, 0.04229736328125, -0.0201873779296875, -0.01078033447265625, 0.0579833984375, 0.047760009765625, 0.022125244140625, 0.011566162109375, -0.0079803466796875, 0.01396942138671875, 0.047088623046875, 0.005893707275390625, -0.006443023681640625, -0.0135650634765625, 0.03033447265625, -0.04315185546875, 0.042694091796875, -0.0489501953125, -0.01331329345703125, 0.0238037109375, 0.02777099609375, 0.0153961181640625, -0.02276611328125, 0.035308837890625, 0.0465087890625, 0.0214385986328125, -0.021820068359375, 0.00919342041015625, -0.024078369140625, 0.01511383056640625, -0.005580902099609375, -0.0166778564453125, -0.0290679931640625, 0.00716400146484375, -0.0032672882080078125, -0.00743865966796875, 0.03277587890625, -0.0006041526794433594, -0.0174713134765625, 0.022064208984375, 0.005130767822265625, -0.005828857421875, 0.032440185546875, -0.01617431640625, 0.037628173828125, 0.04266357421875, -0.036041259765625, 0.0210723876953125, -0.0034160614013671875, -0.0161895751953125, 0.007282257080078125, 0.025909423828125, -0.009185791015625, 0.009521484375, 0.016876220703125, 0.005161285400390625, 0.041412353515625, 0.05126953125, -0.001369476318359375, 0.027313232421875, 0.0096282958984375, -0.017608642578125, 0.01325225830078125, 0.0399169921875, 0.01024627685546875, -0.052398681640625, -0.0029392242431640625, -0.01486968994140625, -0.0257415771484375, 0.0215911865234375, 0.020294189453125, 0.0205230712890625, 0.043975830078125, -0.0013093948364257812, -0.05194091796875, -0.0269622802734375, -0.0133209228515625, 0.1202392578125, -0.00753021240234375, -0.03314208984375, -0.0108795166015625, 0.0044708251953125, -0.01557159423828125, -0.02679443359375, -0.05999755859375, 0.01395416259765625, -0.03985595703125, -0.00666046142578125, 0.0160980224609375, -0.01421356201171875, -0.02117919921875, -0.0233612060546875, -0.009246826171875, 0.0218353271484375, 0.031829833984375, -0.04638671875, 0.0159912109375, -0.0173187255859375, 0.045196533203125, -0.016143798828125, -0.0278472900390625, -0.05523681640625, 0.019927978515625, 0.0027942657470703125, 0.03448486328125, 0.060546875, -0.01256561279296875, -0.0595703125, 0.01044464111328125, -0.007434844970703125, -0.042266845703125, -0.01434326171875, -0.020721435546875, 0.0033473968505859375, 0.0263214111328125, 0.006526947021484375, -0.05548095703125, -0.0596923828125, 0.0084228515625, 0.01105499267578125, 0.0279693603515625, 0.026092529296875, -0.00791168212890625, -0.0369873046875, -0.010101318359375, -0.0258331298828125, 0.0142669677734375, -0.01195526123046875, 0.0022830963134765625, 0.0077972412109375, -0.003482818603515625, -0.040283203125, 0.003749847412109375, 0.00913238525390625, 0.0016880035400390625, -0.0040283203125, 0.0210113525390625, -0.040008544921875, 0.011260986328125, 0.09796142578125, 0.051116943359375, 0.02484130859375, -0.042083740234375, 0.049713134765625, 0.0037937164306640625, -0.03936767578125, -0.01503753662109375, 0.0139007568359375, -0.0298919677734375, -0.0419921875, -0.006229400634765625, -0.0016984939575195312, -0.039886474609375, 0.00732421875, -0.029052734375, -0.02264404296875, 0.02947998046875, 0.0016632080078125, 0.00885009765625, -0.0699462890625, 0.09210205078125, -0.04443359375, -0.015380859375, 0.0287628173828125, 0.0297393798828125, 0.0290374755859375, 0.029693603515625, -0.0010776519775390625, 0.012451171875, -0.040191650390625, 0.0145416259765625, -0.0035343170166015625, 0.00408935546875, -0.0276336669921875, -0.00928497314453125, -0.038330078125, 0.0028285980224609375, 0.014862060546875, -0.001617431640625, -0.011138916015625, 0.01056671142578125, -0.0061187744140625, 0.04193115234375, -0.03765869140625, -0.024566650390625, -0.007358551025390625, -0.013214111328125, 0.014678955078125, 0.0125732421875, 0.085205078125, -0.02203369140625, 0.024810791015625, 0.00531005859375, 0.0201263427734375, -0.01340484619140625, 0.0129852294921875, -0.00897979736328125, -0.01318359375, -0.0035190582275390625 ]
e8000f30e3ff2fad5b5af8239728358ccc97549e
Wordpress Stackexchange Q: Wordpress: How to get the current logged in author page URL? Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ? In fact, I would like to display, for every logged in user, a "My personnal page" link which links toward his author page. Thanks ! A: <?php global $current_user; get_currentuserinfo(); echo get_author_posts_url($current_user->ID); ?>
Q: Wordpress: How to get the current logged in author page URL? Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ? In fact, I would like to display, for every logged in user, a "My personnal page" link which links toward his author page. Thanks ! A: <?php global $current_user; get_currentuserinfo(); echo get_author_posts_url($current_user->ID); ?> A: Try this : <a href="<?php echo home_url() . '/author/' . get_the_author_meta( 'user_login', wp_get_current_user()->ID ); ?>" >My personal page</a>
wordpress
{ "language": "en", "length": 86, "provenance": "stackexchange_00019.jsonl.gz:411059", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22247" }
[ 0.058807373046875, 0.01061248779296875, 0.00649261474609375, -0.0282745361328125, 0.00774383544921875, -0.0179290771484375, 0.01390838623046875, -0.01502227783203125, -0.02801513671875, 0.04913330078125, 0.01387786865234375, 0.006290435791015625, -0.006740570068359375, -0.0277252197265625, -0.01038360595703125, -0.0135650634765625, 0.0243072509765625, -0.0177764892578125, 0.04168701171875, 0.003131866455078125, 0.00632476806640625, 0.0125274658203125, 0.04571533203125, 0.0118560791015625, 0.042572021484375, -0.02166748046875, 0.072509765625, -0.02142333984375, 0.03228759765625, -0.0131683349609375, 0.0271453857421875, -0.0491943359375, -0.010711669921875, 0.04833984375, -0.029022216796875, -0.027008056640625, -0.040771484375, 0.04229736328125, 0.008087158203125, 0.01212310791015625, 0.01849365234375, 0.002124786376953125, -0.07080078125, 0.0020732879638671875, -0.06842041015625, -0.047882080078125, 0.017486572265625, 0.023162841796875, 0.01418304443359375, 0.06707763671875, 0.017120361328125, 0.033599853515625, -0.002277374267578125, 0.032562255859375, -0.01435089111328125, -0.0208892822265625, 0.0235748291015625, -0.016998291015625, 0.034149169921875, -0.07354736328125, -0.031890869140625, -0.021148681640625, 0.046417236328125, 0.035675048828125, -0.0182952880859375, 0.0159912109375, 0.036590576171875, 0.0281829833984375, -0.00189208984375, -0.040496826171875, -0.0176544189453125, -0.004413604736328125, -0.015960693359375, 0.01349639892578125, -0.0194244384765625, -0.037628173828125, 0.006740570068359375, -0.050201416015625, -0.0030307769775390625, 0.03759765625, -0.052642822265625, -0.00811004638671875, -0.0750732421875, -0.01206207275390625, -0.0008907318115234375, 0.0219879150390625, -0.024932861328125, -0.0088958740234375, -0.033355712890625, -0.00643157958984375, -0.03729248046875, 0.019378662109375, -0.0262298583984375, -0.00875091552734375, -0.030975341796875, -0.0123138427734375, 0.0421142578125, 0.05267333984375, -0.0195159912109375, -0.041717529296875, 0.0022144317626953125, -0.0222930908203125, -0.040191650390625, -0.0187530517578125, -0.0091094970703125, 0.056549072265625, 0.020172119140625, 0.05328369140625, 0.0251312255859375, -0.004138946533203125, 0.01105499267578125, -0.034149169921875, -0.029144287109375, -0.0203704833984375, 0.006473541259765625, 0.0435791015625, -0.03271484375, 0.0186614990234375, -0.001361846923828125, 0.038909912109375, -0.014129638671875, 0.0203704833984375, 0.0008678436279296875, 0.007183074951171875, 0.0184173583984375, 0.0177764892578125, -0.0003986358642578125, -0.017730712890625, 0.020904541015625, 0.0285186767578125, -0.029571533203125, 0.0070953369140625, 0.04425048828125, -0.01276397705078125, -0.01319122314453125, -0.03277587890625, -0.0153961181640625, -0.058807373046875, -0.01145172119140625, 0.007022857666015625, -0.0283203125, -0.02691650390625, 0.0303192138671875, -0.038726806640625, -0.01364898681640625, 0.022613525390625, 0.012359619140625, 0.01212310791015625, -0.0218353271484375, -0.00864410400390625, -0.0245361328125, 0.0029468536376953125, -0.00048232078552246094, 0.004390716552734375, 0.06591796875, -0.01374053955078125, 0.0565185546875, -0.034332275390625, 0.02130126953125, 0.00885009765625, 0.055877685546875, 0.0180206298828125, -0.0157928466796875, 0.0037555694580078125, -0.00855255126953125, -0.0523681640625, -0.0261077880859375, 0.0080413818359375, 0.02459716796875, -0.005306243896484375, -0.00872802734375, -0.0163421630859375, 0.04718017578125, 0.030120849609375, -0.00742340087890625, 0.01026153564453125, -0.046051025390625, 0.03277587890625, 0.022064208984375, 0.056884765625, 0.03167724609375, -0.012664794921875, 0.0303192138671875, 0.01360321044921875, -0.0298004150390625, 0.03271484375, 0.005840301513671875, 0.050323486328125, 0.00525665283203125, 0.01629638671875, 0.0078582763671875, 0.01153564453125, -0.05950927734375, 0.018585205078125, -0.004589080810546875, 0.006191253662109375, 0.0156402587890625, 0.0150604248046875, -0.00594329833984375, -0.01140594482421875, 0.006435394287109375, 0.007568359375, 0.0025634765625, 0.00787353515625, -0.02349853515625, 0.01561737060546875, -0.006198883056640625, 0.028350830078125, 0.06597900390625, 0.0025806427001953125, -0.0163116455078125, 0.003780364990234375, 0.006465911865234375, -0.059417724609375, -0.05816650390625, 0.043121337890625, 0.00635528564453125, 0.025238037109375, 0.007503509521484375, 0.035858154296875, -0.01184844970703125, 0.01922607421875, -0.0186767578125, -0.0164031982421875, 0.042755126953125, -0.0255279541015625, -0.020050048828125, -0.048095703125, 0.00875091552734375, -0.0239105224609375, -0.043304443359375, 0.04034423828125, -0.01934814453125, 0.0215911865234375, -0.01248931884765625, -0.017242431640625, 0.0267333984375, -0.011383056640625, 0.031005859375, 0.0227203369140625, 0.03765869140625, 0.0101165771484375, 0.015838623046875, 0.0328369140625, 0.005901336669921875, -0.03314208984375, 0.01995849609375, -0.00255584716796875, 0.0439453125, 0.0738525390625, -0.01241302490234375, -0.00888824462890625, 0.017578125, -0.035400390625, 0.015899658203125, 0.049774169921875, 0.00042891502380371094, 0.00872802734375, -0.04510498046875, 0.044158935546875, -0.0239410400390625, -0.007450103759765625, 0.01214599609375, -0.0310211181640625, -0.04364013671875, 0.006343841552734375, -0.00896453857421875, 0.0035762786865234375, -0.0278167724609375, -0.0269012451171875, 0.025177001953125, 0.057098388671875, 0.0007476806640625, 0.0223541259765625, 0.00875091552734375, -0.0540771484375, 0.013580322265625, -0.01520538330078125, -0.02130126953125, -0.01218414306640625, -0.0189208984375, -0.02203369140625, -0.0261383056640625, -0.00476837158203125, -0.006305694580078125, -0.036468505859375, 0.0093994140625, 0.0172119140625, 0.0086212158203125, -0.006214141845703125, 0.0199127197265625, 0.0236663818359375, -0.024932861328125, 0.06549072265625, -0.0308685302734375, -0.0128936767578125, 0.01214599609375, -0.070068359375, 0.068115234375, -0.04364013671875, 0.04827880859375, 0.072998046875, 0.001178741455078125, 0.01898193359375, -0.007656097412109375, -0.0304412841796875, -0.026580810546875, 0.0265655517578125, 0.00759124755859375, -0.030242919921875, 0.03228759765625, 0.0670166015625, 0.01435089111328125, 0.041168212890625, -0.0231170654296875, -0.0301055908203125, -0.0233154296875, 0.01654052734375, -0.097900390625, -0.07159423828125, -0.0274505615234375, -0.09869384765625, -0.00975799560546875, -0.01806640625, -0.054901123046875, 0.0229644775390625, 0.03369140625, 0.00649261474609375, 0.0167388916015625, -0.02362060546875, -0.0877685546875, -0.0445556640625, -0.085205078125, 0.0168914794921875, -0.0228271484375, 0.00872039794921875, -0.00043463706970214844, 0.005634307861328125, -0.0182952880859375, -0.05908203125, -0.029571533203125, 0.040069580078125, 0.009124755859375, -0.023590087890625, -0.05322265625, 0.04443359375, 0.0238494873046875, 0.0055389404296875, 0.0146484375, 0.01397705078125, -0.0103302001953125, -0.00885772705078125, 0.0008864402770996094, -0.0015249252319335938, 0.03326416015625, 0.0071563720703125, -0.00943756103515625, 0.01934814453125, 0.045166015625, -0.034027099609375, 0.0115966796875, -0.021026611328125, -0.032135009765625, 0.03363037109375, 0.00897979736328125, -0.0218963623046875, -0.00333404541015625, -0.0176239013671875, 0.0310821533203125, 0.02484130859375, -0.0167083740234375, 0.011077880859375, 0.026153564453125, 0.01100921630859375, 0.038909912109375, 0.004314422607421875, 0.01434326171875, -0.01043701171875, -0.01666259765625, -0.01197052001953125, 0.019927978515625, -0.0135040283203125, -0.0192718505859375, -0.04144287109375, -0.0308685302734375, 0.04461669921875, -0.0077972412109375, 0.001140594482421875, -0.0148162841796875, -0.0232696533203125, -0.007450103759765625, 0.057830810546875, -0.0106048583984375, -0.017486572265625, 0.0357666015625, 0.0150909423828125, -0.0760498046875, -0.0214080810546875, -0.08734130859375, -0.00707244873046875, -0.0203857421875, -0.00037384033203125, -0.002567291259765625, -0.01336669921875, -0.0166778564453125, 0.05194091796875, -0.019744873046875, -0.003391265869140625, 0.0107421875, -0.003894805908203125, -0.004413604736328125, 0.037017822265625, -0.0285186767578125, 0.038360595703125, -0.00836944580078125, -0.014007568359375, -0.058441162109375, -0.01788330078125, -0.0122528076171875, 0.06719970703125, 0.007129669189453125, -0.008575439453125, -0.0194091796875, 0.04840087890625, -0.0176544189453125, -0.0017833709716796875, 0.0196075439453125, 0.010101318359375, 0.05181884765625, 0.0096893310546875, -0.003818511962890625, -0.00196075439453125, 0.0179443359375, -0.00229644775390625, -0.03466796875, -0.035980224609375, -0.05047607421875, -0.044921875, -0.00518035888671875, -0.034820556640625, -0.06585693359375, -0.037109375, 0.0261383056640625, 0.0628662109375, 0.028350830078125, 0.0120086669921875, -0.043426513671875, -0.08233642578125, 0.044952392578125, 0.0189971923828125, -0.01070404052734375, -0.007663726806640625, 0.049285888671875, 0.02374267578125, -0.0215606689453125, 0.016632080078125, 0.01230621337890625, 0.027587890625, -0.0186614990234375, 0.07244873046875, 0.047576904296875, -0.01126861572265625, 0.038116455078125, 0.0029277801513671875, 0.005157470703125, 0.004215240478515625, -0.0002608299255371094, -0.00626373291015625, -0.0121612548828125, 0.01316070556640625, -0.026611328125, 0.0338134765625, 0.0170440673828125, -0.017852783203125, 0.0105743408203125, 0.0034961700439453125, 0.01360321044921875, -0.037017822265625, 0.0302276611328125, -0.01094818115234375, -0.052642822265625, 0.02264404296875, -0.01261138916015625, 0.046051025390625, 0.0330810546875, -0.0003209114074707031, 0.04840087890625, 0.01171875, -0.01422119140625, 0.0016260147094726562, -0.034454345703125, 0.0267791748046875, 0.035430908203125, -0.04559326171875, -0.01275634765625, 0.0141448974609375, -0.0204925537109375, 0.0950927734375, 0.01275634765625, -0.05596923828125, 0.06854248046875, -0.04876708984375, -0.022430419921875, 0.0129547119140625, -0.02960205078125, 0.037384033203125, 0.01727294921875, -0.0258331298828125, 0.004383087158203125, -0.053955078125, -0.005397796630859375, -0.050567626953125, 0.01401519775390625, -0.021026611328125, 0.02557373046875, -0.0102386474609375, 0.1182861328125, 0.00756072998046875, 0.05877685546875, -0.0379638671875, 0.03570556640625, 0.0130615234375, 0.01461029052734375, 0.0251312255859375, 0.0011186599731445312, 0.0151519775390625, -0.028533935546875, -0.01102447509765625, -0.0097198486328125, 0.01071929931640625, -0.012939453125, 0.0230255126953125, 0.02508544921875, 0.003635406494140625, 0.010711669921875, -0.03656005859375, 0.011322021484375, 0.035247802734375, -0.0011682510375976562, -0.050506591796875, -0.0113677978515625, 0.01422882080078125, 0.019134521484375, -0.037261962890625, -0.01045989990234375, 0.00396728515625, -0.00943756103515625, 0.01529693603515625, -0.026275634765625, -0.01218414306640625, 0.00429534912109375, 0.0036373138427734375, -0.056304931640625, -0.04443359375, 0.014801025390625, -0.03857421875, 0.0102386474609375, -0.0355224609375, -0.02642822265625, 0.04852294921875, -0.0068359375, 0.0054473876953125, -0.033905029296875, -0.00518798828125, 0.01068878173828125, -0.027069091796875, 0.08251953125, 0.036346435546875, -0.054168701171875, 0.036224365234375, -0.032196044921875, 0.0242462158203125, 0.0687255859375, -0.04425048828125, -0.0235137939453125, -0.068115234375, 0.0172271728515625, 0.022674560546875, -0.002910614013671875, -0.019439697265625, -0.01482391357421875, -0.0019931793212890625, -0.0015573501586914062, 0.0416259765625, 0.0188751220703125, 0.084228515625, -0.005161285400390625, 0.05218505859375, 0.035980224609375, 0.059906005859375, -0.052703857421875, -0.0232086181640625, 0.01824951171875, -0.005802154541015625, -0.021484375, -0.0267791748046875, -0.01213836669921875, -0.0233612060546875, 0.026824951171875, 0.0018177032470703125, -0.030853271484375, -0.00006258487701416016, 0.00841522216796875, -0.0116119384765625, 0.013916015625, 0.06414794921875, -0.037689208984375, 0.0243988037109375, 0.0213470458984375, 0.00418853759765625, 0.00279998779296875, 0.0254974365234375, -0.047760009765625, 0.0369873046875, -0.041534423828125, -0.033172607421875, -0.04437255859375, 0.052978515625, 0.11474609375, 0.0018510818481445312, 0.061431884765625, 0.049346923828125, 0.0225067138671875, 0.03369140625, 0.0017108917236328125, -0.033660888671875, 0.008026123046875, 0.03521728515625, 0.0108795166015625, -0.0003268718719482422, 0.0288848876953125, -0.0030193328857421875, -0.01148223876953125, 0.036468505859375, 0.0265350341796875, -0.06524658203125, 0.0157928466796875, 0.01422119140625, 0.0186309814453125, 0.0223846435546875, 0.0325927734375, -0.0281524658203125, -0.0116119384765625, 0.025238037109375, -0.066650390625, 0.005077362060546875, 0.0242462158203125, -0.0016756057739257812, 0.013916015625, -0.042022705078125, 0.049713134765625, -0.004894256591796875, -0.041473388671875, -0.01474761962890625, 0.026092529296875, -0.0274505615234375, -0.029815673828125, -0.00908660888671875, 0.031829833984375, 0.0033817291259765625, -0.016754150390625, 0.07470703125, -0.053680419921875, 0.037353515625, -0.02618408203125, 0.014739990234375, 0.038543701171875, 0.034637451171875, 0.001888275146484375, -0.0049285888671875, 0.016387939453125, 0.0013628005981445312, 0.0309906005859375, -0.03009033203125, -0.00439453125, 0.07940673828125, -0.016143798828125, 0.0187225341796875, 0.03173828125, -0.001071929931640625, -0.01216888427734375, -0.024566650390625, 0.09918212890625, -0.03668212890625, -0.0218963623046875, 0.0274200439453125, -0.0017976760864257812, -0.031036376953125, 0.01163482666015625, -0.0012559890747070312, -0.0478515625, -0.0261077880859375, 0.01140594482421875, -0.0275115966796875, 0.025848388671875, 0.002857208251953125, -0.06121826171875, 0.0252227783203125, -0.00473785400390625, 0.0306396484375, -0.005741119384765625, 0.00392913818359375, 0.01374053955078125, -0.01514434814453125, -0.0290985107421875, 0.0501708984375, 0.038726806640625, 0.0264129638671875, -0.041900634765625, -0.024505615234375, 0.006378173828125, 0.033294677734375, 0.07830810546875, 0.00998687744140625, -0.0227813720703125, -0.0287933349609375, -0.0010194778442382812, -0.019256591796875, -0.04742431640625, 0.06317138671875, 0.0225677490234375, 0.0308380126953125, 0.051177978515625, -0.0166168212890625, 0.03814697265625, -0.01297760009765625, -0.006099700927734375, 0.04931640625, 0.0216064453125, -0.0016002655029296875, -0.0233154296875, -0.00994110107421875, -0.05108642578125, 0.0010995864868164062, 0.0372314453125, -0.01505279541015625, 0.002956390380859375, 0.0552978515625, 0.059051513671875, -0.0251922607421875, -0.00006943941116333008, -0.02972412109375, 0.05322265625, 0.0172882080078125, -0.0140533447265625, 0.0238037109375, 0.007503509521484375, -0.0231170654296875, -0.0248260498046875, -0.01251983642578125, 0.00684356689453125, 0.0076904296875, 0.072998046875, 0.03143310546875, 0.0224151611328125, -0.046478271484375, -0.0099945068359375, 0.05712890625, 0.0889892578125, -0.0416259765625, -0.034149169921875, 0.002979278564453125, -0.031524658203125, 0.023345947265625, 0.00612640380859375, 0.0260009765625, 0.04486083984375, 0.023193359375, -0.018951416015625, -0.0301666259765625, 0.011077880859375, 0.039764404296875, 0.007503509521484375, -0.0293121337890625, -0.046295166015625, -0.035400390625, -0.0227813720703125, -0.041046142578125, -0.01467132568359375, 0.0117645263671875, 0.05419921875, 0.007312774658203125, 0.019622802734375, 0.00006687641143798828, 0.002231597900390625, 0.02239990234375, -0.0014286041259765625, 0.00029540061950683594, -0.0227508544921875, -0.0204315185546875, -0.0168304443359375, 0.037017822265625, 0.00504302978515625, -0.0289306640625, -0.013763427734375, -0.01505279541015625, -0.032135009765625, -0.017730712890625, 0.01169586181640625, -0.0170135498046875, 0.0304718017578125, -0.043060302734375, 0.033416748046875, -0.00057220458984375, -0.00305938720703125, -0.01259613037109375, 0.0135040283203125, 0.031219482421875, -0.04107666015625, 0.042877197265625, 0.0002460479736328125, -0.00047397613525390625, 0.004169464111328125, -0.005123138427734375, 0.0011320114135742188, -0.00662994384765625, -0.0560302734375, 0.0241546630859375, -0.080810546875, -0.047088623046875, 0.028411865234375, 0.036834716796875, -0.006710052490234375, 0.01263427734375, -0.0030918121337890625, 0.0308380126953125, -0.00791168212890625, -0.034515380859375, 0.002956390380859375, 0.0295562744140625, 0.037994384765625, 0.0310821533203125, -0.05194091796875, -0.029510498046875, -0.033966064453125, 0.01666259765625, 0.038726806640625, 0.0093231201171875, 0.0262298583984375, 0.02886962890625, -0.018280029296875, 0.057464599609375, -0.0789794921875, -0.024261474609375, 0.055908203125, -0.048553466796875, -0.0192718505859375, 0.0132293701171875, -0.0941162109375, 0.08203125, -0.01338958740234375, 0.053253173828125, 0.06390380859375, -0.0100555419921875, -0.001918792724609375, 0.0164642333984375, -0.0256500244140625, -0.025115966796875, -0.025909423828125, -0.0108795166015625, -0.009674072265625, 0.01105499267578125, -0.00782012939453125, -0.00794219970703125, 0.023956298828125, 0.005161285400390625, -0.034820556640625, 0.011627197265625, -0.007564544677734375, -0.00933837890625, 0.01544189453125, 0.01873779296875, -0.005908966064453125, 0.01309967041015625, -0.0222930908203125, 0.0238189697265625, -0.004608154296875, 0.027099609375, 0.002140045166015625, -0.01369476318359375, 0.0236358642578125, -0.00594329833984375, 0.049041748046875, 0.006927490234375, 0.0097198486328125, -0.016204833984375, 0.0191497802734375, -0.005245208740234375, -0.01163482666015625, -0.021942138671875, -0.022247314453125, -0.01413726806640625, -0.0033206939697265625, -0.00377655029296875, -0.056884765625, -0.047332763671875, -0.0120849609375, -0.0186309814453125, -0.0167999267578125, -0.00847625732421875, 0.00047659873962402344, -0.01525115966796875, 0.0160064697265625, -0.053558349609375, -0.01493072509765625, 0.01605224609375, 0.04986572265625, -0.039886474609375, 0.039794921875, -0.0208740234375, -0.0657958984375, -0.0018367767333984375, 0.0128173828125, 0.019195556640625, -0.0026912689208984375, -0.004749298095703125, 0.01617431640625, -0.005817413330078125, 0.07415771484375, -0.05224609375, -0.0204315185546875, 0.006877899169921875, -0.005817413330078125, -0.00447845458984375, -0.006805419921875, 0.0271759033203125, -0.02825927734375, -0.025787353515625, 0.0109100341796875, -0.005733489990234375, 0.0239715576171875, -0.0162200927734375, -0.0276031494140625, 0.062744140625, 0.001476287841796875, -0.036773681640625, -0.041107177734375, 0.01392364501953125, 0.01059722900390625, -0.0193939208984375, -0.00405120849609375, -0.05670166015625, -0.025726318359375, 0.019378662109375, 0.02532958984375, -0.004547119140625, 0.04119873046875, 0.00026035308837890625, -0.0660400390625, 0.00464630126953125, -0.0099945068359375, 0.015960693359375, 0.0132904052734375, 0.003993988037109375, 0.02545166015625, 0.03778076171875, -0.04327392578125, 0.05023193359375, -0.018829345703125, 0.038909912109375, -0.03399658203125, -0.036956787109375, 0.0239715576171875, 0.005977630615234375, 0.0181732177734375, 0.0188751220703125, -0.01030731201171875, -0.016754150390625, -0.008819580078125, 0.01480865478515625, -0.02935791015625, 0.00815582275390625, 0.02813720703125, -0.058807373046875, -0.00707244873046875, 0.0012054443359375, -0.019134521484375, -0.027496337890625, 0.00957489013671875, -0.040283203125, -0.005283355712890625, 0.0024433135986328125, -0.0093231201171875, -0.00536346435546875, 0.00634765625, 0.01190948486328125, -0.01519012451171875, 0.01342010498046875, 0.004627227783203125, -0.0038299560546875, 0.016815185546875, 0.0152130126953125, 0.007587432861328125, 0.007755279541015625, -0.0212860107421875, -0.00018990039825439453, 0.0193328857421875, 0.0263671875, 0.007373809814453125, -0.0259246826171875, -0.0384521484375, 0.038330078125, -0.0157623291015625, 0.034637451171875, 0.02362060546875, 0.0035991668701171875, 0.02276611328125, 0.046478271484375, -0.005352020263671875, -0.005657196044921875, -0.0041351318359375, 0.034576416015625, -0.0182952880859375, -0.0263671875, 0.003875732421875, -0.0340576171875, 0.0017757415771484375, -0.0234832763671875, 0.005489349365234375, -0.043304443359375, 0.025543212890625, 0.043121337890625, -0.00057220458984375, 0.0301666259765625 ]
dbbdf266badeb86f36d937949cc1aa30f43a039b
Wordpress Stackexchange Q: dynamic_sidebar not rendering sidebar I have the following code // in functions.php register_sidebar(array( 'before_widget' => '<section>', 'after_widget' => '</section>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); // in sidebar.php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> // static sidebar here .. I find that the static sidebar is what renders even if I add widgets in the dashboard. I'm not sure if WP3.2 caused it as I never tried using dynamic sidebar before updating A: You should add the name and id parameters to your register_sidebar() argument array: 'name'=>'Sidebar Name', 'id'=>'sidebar-slug', Like such: register_sidebar(array( 'name'=>'Sidebar Name', 'id'=>'sidebar-slug', 'before_widget' => '<section>', 'after_widget' => '</section>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); Then call the id of the Sidebar in your dynamic_sidebar() call: if ( ! dynamic_sidebar( 'sidebar-slug' ) ) { } By the way: you don't need to include a function_exists( 'dynamic_sidebar' ) ) conditional; this functionality has been in WordPress since version 2.8.
Q: dynamic_sidebar not rendering sidebar I have the following code // in functions.php register_sidebar(array( 'before_widget' => '<section>', 'after_widget' => '</section>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); // in sidebar.php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> // static sidebar here .. I find that the static sidebar is what renders even if I add widgets in the dashboard. I'm not sure if WP3.2 caused it as I never tried using dynamic sidebar before updating A: You should add the name and id parameters to your register_sidebar() argument array: 'name'=>'Sidebar Name', 'id'=>'sidebar-slug', Like such: register_sidebar(array( 'name'=>'Sidebar Name', 'id'=>'sidebar-slug', 'before_widget' => '<section>', 'after_widget' => '</section>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); Then call the id of the Sidebar in your dynamic_sidebar() call: if ( ! dynamic_sidebar( 'sidebar-slug' ) ) { } By the way: you don't need to include a function_exists( 'dynamic_sidebar' ) ) conditional; this functionality has been in WordPress since version 2.8.
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:411076", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22299" }
[ 0.041717529296875, 0.0017576217651367188, -0.001934051513671875, -0.037261962890625, 0.0266265869140625, -0.01611328125, 0.0268096923828125, -0.02789306640625, -0.005603790283203125, 0.0220947265625, -0.05682373046875, 0.01568603515625, -0.0411376953125, -0.0031337738037109375, -0.008880615234375, -0.042144775390625, 0.04144287109375, 0.001773834228515625, 0.0428466796875, -0.00516510009765625, -0.01279449462890625, 0.0243072509765625, 0.0325927734375, 0.08905029296875, 0.032623291015625, -0.0892333984375, 0.056488037109375, -0.0238189697265625, 0.0135040283203125, -0.02496337890625, 0.036163330078125, 0.0164947509765625, 0.01094818115234375, -0.00489044189453125, 0.05572509765625, 0.09271240234375, 0.0273895263671875, 0.00896453857421875, 0.034393310546875, 0.005523681640625, 0.032806396484375, -0.03790283203125, 0.037384033203125, -0.006092071533203125, 0.004161834716796875, -0.005359649658203125, 0.03253173828125, -0.0361328125, 0.024749755859375, -0.0012311935424804688, -0.01256561279296875, -0.0209808349609375, -0.0029811859130859375, 0.019378662109375, -0.030609130859375, -0.0219573974609375, -0.01971435546875, -0.00814056396484375, 0.0258026123046875, 0.02838134765625, 0.0014667510986328125, -0.004459381103515625, 0.01151275634765625, -0.022003173828125, -0.028472900390625, -0.0284423828125, -0.0161590576171875, 0.01476287841796875, -0.0099639892578125, -0.01446533203125, 0.04638671875, -0.0081787109375, 0.001438140869140625, -0.03436279296875, 0.00698089599609375, 0.00629425048828125, -0.015838623046875, -0.005313873291015625, 0.002536773681640625, -0.00045371055603027344, -0.0183258056640625, -0.0034389495849609375, -0.0268707275390625, -0.00560760498046875, 0.00583648681640625, 0.0040130615234375, -0.015289306640625, -0.007801055908203125, -0.0265960693359375, -0.0223846435546875, -0.0136260986328125, -0.03509521484375, 0.0156402587890625, -0.034210205078125, -0.0136566162109375, -0.053924560546875, 0.0300140380859375, 0.08526611328125, -0.0211639404296875, 0.029815673828125, -0.0247039794921875, -0.03118896484375, 0.04339599609375, -0.0716552734375, 0.01151275634765625, 0.037628173828125, -0.0282135009765625, -0.0039825439453125, 0.028778076171875, 0.035186767578125, 0.0217437744140625, -0.023590087890625, -0.0055999755859375, -0.0145263671875, -0.0509033203125, 0.014739990234375, -0.032806396484375, -0.0226898193359375, 0.012481689453125, 0.00673675537109375, 0.005947113037109375, 0.0119476318359375, 0.0303497314453125, -0.003448486328125, 0.0377197265625, 0.04498291015625, -0.0188446044921875, -0.051055908203125, 0.01140594482421875, -0.0201263427734375, -0.04180908203125, 0.0150146484375, 0.07342529296875, 0.0499267578125, 0.034210205078125, -0.010772705078125, 0.052490234375, -0.0119781494140625, 0.0014257431030273438, 0.017913818359375, 0.00010377168655395508, -0.012451171875, -0.007015228271484375, -0.01067352294921875, 0.0232086181640625, 0.027374267578125, 0.01515960693359375, -0.015625, 0.0087890625, -0.0304107666015625, 0.00814056396484375, -0.049957275390625, 0.035675048828125, 0.018157958984375, 0.0082550048828125, 0.01122283935546875, 0.037994384765625, -0.029449462890625, -0.03265380859375, -0.01519775390625, 0.00528717041015625, -0.01082611083984375, -0.0258941650390625, -0.047332763671875, -0.0482177734375, 0.005466461181640625, 0.00804901123046875, 0.01360321044921875, 0.0187225341796875, 0.037750244140625, 0.005466461181640625, -0.03851318359375, -0.015228271484375, 0.0244598388671875, -0.0013332366943359375, 0.043792724609375, -0.045013427734375, 0.000972747802734375, 0.0236663818359375, -0.01116180419921875, -0.0233306884765625, -0.042572021484375, 0.00704193115234375, 0.0201416015625, -0.09039306640625, 0.024658203125, 0.020904541015625, 0.0841064453125, 0.048431396484375, 0.017578125, 0.033538818359375, -0.01611328125, -0.036468505859375, 0.0263519287109375, 0.01277923583984375, -0.005199432373046875, -0.00977325439453125, 0.00038552284240722656, -0.00914764404296875, -0.022430419921875, -0.03826904296875, -0.00827789306640625, 0.00974273681640625, 0.0223846435546875, -0.016571044921875, 0.0233306884765625, -0.022979736328125, 0.02752685546875, 0.059234619140625, 0.05731201171875, -0.0127716064453125, 0.0194549560546875, -0.033782958984375, 0.0165252685546875, -0.042327880859375, -0.0232086181640625, -0.0294189453125, 0.0065460205078125, -0.012298583984375, 0.016143798828125, -0.015838623046875, -0.01190948486328125, -0.016998291015625, 0.01067352294921875, 0.05987548828125, -0.0159912109375, -0.002471923828125, -0.038909912109375, 0.036895751953125, 0.026153564453125, -0.06854248046875, 0.017852783203125, 0.016387939453125, -0.007228851318359375, -0.0693359375, -0.007053375244140625, -0.03070068359375, -0.006992340087890625, -0.002292633056640625, 0.05560302734375, 0.0117340087890625, 0.04779052734375, -0.00968170166015625, -0.0031681060791015625, 0.0228729248046875, -0.03369140625, 0.00952911376953125, -0.0178680419921875, -0.03778076171875, -0.005764007568359375, 0.0197601318359375, 0.02374267578125, 0.01000213623046875, -0.0276031494140625, 0.002170562744140625, 0.032196044921875, -0.02294921875, -0.0244140625, -0.0017271041870117188, -0.01320648193359375, 0.0180511474609375, -0.0377197265625, -0.0228424072265625, -0.0159454345703125, 0.0193328857421875, 0.01020050048828125, 0.041656494140625, 0.033050537109375, -0.0020847320556640625, -0.0135650634765625, -0.0040435791015625, -0.003307342529296875, 0.0093231201171875, 0.03924560546875, 0.0367431640625, 0.02337646484375, -0.03533935546875, -0.024200439453125, 0.052093505859375, 0.0298004150390625, -0.016326904296875, 0.0166015625, -0.007762908935546875, -0.01061248779296875, -0.0009298324584960938, -0.077880859375, 0.0009775161743164062, 0.01377105712890625, 0.053253173828125, 0.01174163818359375, -0.00232696533203125, 0.06683349609375, 0.0089263916015625, 0.0606689453125, 0.0202789306640625, 0.0021514892578125, 0.03314208984375, -0.0364990234375, 0.0254364013671875, -0.0181121826171875, 0.08154296875, 0.06097412109375, -0.015228271484375, 0.01311492919921875, -0.007289886474609375, 0.0214996337890625, 0.01390838623046875, -0.0182647705078125, -0.022735595703125, 0.0037441253662109375, -0.05072021484375, 0.0025348663330078125, 0.018585205078125, 0.041229248046875, 0.0100250244140625, -0.03558349609375, 0.0213470458984375, 0.014862060546875, -0.025848388671875, -0.041412353515625, -0.003635406494140625, -0.0182037353515625, -0.03887939453125, 0.021820068359375, -0.018829345703125, 0.010284423828125, 0.00934600830078125, -0.0102996826171875, 0.017364501953125, -0.01522064208984375, -0.06524658203125, -0.04345703125, -0.07794189453125, -0.0107269287109375, -0.0150909423828125, 0.0054473876953125, 0.00354766845703125, 0.0288238525390625, 0.00738525390625, -0.0322265625, 0.039093017578125, -0.01226806640625, 0.00905609130859375, 0.055999755859375, -0.0049591064453125, -0.0017957687377929688, 0.0213165283203125, -0.0107269287109375, 0.0328369140625, 0.0379638671875, -0.0269012451171875, 0.0028171539306640625, -0.01116180419921875, -0.007904052734375, 0.016082763671875, 0.00788116455078125, 0.02703857421875, 0.0206756591796875, 0.037750244140625, -0.0248260498046875, -0.0516357421875, -0.01459503173828125, -0.060943603515625, 0.006740570068359375, 0.03009033203125, 0.007419586181640625, -0.01392364501953125, 0.0174407958984375, -0.0198516845703125, -0.00688934326171875, 0.0011930465698242188, -0.0325927734375, 0.0272979736328125, -0.0185699462890625, -0.01340484619140625, -0.0007085800170898438, -0.0235595703125, -0.0322265625, 0.0350341796875, -0.004199981689453125, 0.033447265625, -0.008026123046875, 0.045440673828125, -0.020660400390625, 0.0207977294921875, 0.0362548828125, 0.00787353515625, 0.04486083984375, 0.0004279613494873047, -0.0303192138671875, 0.007312774658203125, 0.0445556640625, -0.04925537109375, -0.0098724365234375, 0.0189208984375, 0.01320648193359375, -0.02679443359375, -0.0416259765625, -0.0626220703125, -0.00362396240234375, -0.05230712890625, 0.005496978759765625, 0.0157318115234375, -0.0279541015625, -0.011077880859375, 0.059326171875, -0.0262451171875, -0.008270263671875, 0.032623291015625, -0.02978515625, 0.02392578125, 0.0213775634765625, -0.0101776123046875, 0.0066375732421875, -0.0200653076171875, -0.031402587890625, -0.058624267578125, 0.0079345703125, -0.06768798828125, 0.053924560546875, 0.037445068359375, -0.0142059326171875, -0.0169677734375, 0.031494140625, 0.04718017578125, -0.00292205810546875, 0.050628662109375, -0.0172576904296875, 0.03515625, 0.0037784576416015625, 0.0282135009765625, -0.02410888671875, -0.01348114013671875, -0.01416015625, -0.054229736328125, -0.005100250244140625, -0.0305023193359375, -0.0289459228515625, 0.0181884765625, -0.03521728515625, -0.033599853515625, -0.0006566047668457031, 0.055633544921875, 0.01149749755859375, 0.019256591796875, 0.006694793701171875, -0.0079498291015625, 0.0031280517578125, 0.00897216796875, -0.06134033203125, -0.0115814208984375, 0.0272979736328125, 0.078857421875, 0.0184326171875, 0.01385498046875, -0.0262603759765625, -0.0016183853149414062, 0.0517578125, 0.0180511474609375, 0.0010404586791992188, 0.0208740234375, -0.04620361328125, 0.0257720947265625, 0.038970947265625, -0.025970458984375, 0.04205322265625, 0.0528564453125, 0.0029850006103515625, -0.01953125, 0.0002689361572265625, -0.003978729248046875, -0.035369873046875, 0.0257720947265625, -0.00247955322265625, -0.0005788803100585938, 0.0223846435546875, 0.037811279296875, -0.02117919921875, -0.0174560546875, -0.04620361328125, -0.00640106201171875, -0.003711700439453125, 0.0247039794921875, 0.0261383056640625, 0.01244354248046875, 0.01153564453125, -0.0276031494140625, -0.00969696044921875, -0.027099609375, 0.00940704345703125, -0.084228515625, 0.047637939453125, -0.00164794921875, -0.0025539398193359375, -0.0013256072998046875, 0.053619384765625, 0.00004690885543823242, 0.04095458984375, 0.03375244140625, -0.01031494140625, -0.0406494140625, 0.0173492431640625, 0.016571044921875, -0.034759521484375, 0.01995849609375, 0.01160430908203125, 0.0205535888671875, -0.018798828125, -0.007160186767578125, -0.006069183349609375, 0.0220794677734375, -0.02960205078125, 0.03167724609375, -0.005340576171875, 0.00550079345703125, -0.0205230712890625, 0.048370361328125, 0.01084136962890625, 0.004894256591796875, -0.01556396484375, 0.0523681640625, 0.0233306884765625, 0.025787353515625, 0.0026836395263671875, 0.01396942138671875, 0.0215606689453125, -0.0301513671875, -0.012603759765625, -0.0260772705078125, 0.0195770263671875, 0.02850341796875, 0.0411376953125, 0.02899169921875, -0.02252197265625, -0.004261016845703125, -0.0439453125, 0.0016946792602539062, 0.06353759765625, -0.01180267333984375, -0.062225341796875, -0.032562255859375, -0.0054168701171875, 0.048004150390625, -0.044464111328125, 0.003505706787109375, 0.0287628173828125, -0.0117950439453125, 0.0243072509765625, 0.0166778564453125, 0.0029315948486328125, -0.010986328125, -0.01300811767578125, 0.007572174072265625, -0.00771331787109375, -0.0229034423828125, 0.018646240234375, -0.0255279541015625, 0.0095367431640625, -0.00989532470703125, 0.01263427734375, -0.059326171875, 0.049224853515625, -0.03497314453125, 0.00568389892578125, -0.00023221969604492188, 0.024871826171875, 0.032440185546875, 0.04296875, -0.05859375, 0.01561737060546875, -0.0380859375, -0.0010223388671875, -0.02020263671875, -0.06524658203125, -0.035675048828125, -0.03680419921875, 0.0186767578125, 0.021392822265625, 0.00710296630859375, -0.01898193359375, -0.034088134765625, 0.00975799560546875, 0.04205322265625, 0.054962158203125, -0.004871368408203125, 0.01258087158203125, 0.010040283203125, 0.0164947509765625, 0.0079803466796875, -0.0141754150390625, -0.007061004638671875, -0.0262451171875, -0.009521484375, -0.01000213623046875, 0.002902984619140625, 0.0009822845458984375, -0.00421142578125, -0.0189666748046875, 0.042724609375, -0.0043487548828125, 0.04864501953125, -0.01047515869140625, -0.0177154541015625, 0.01393890380859375, -0.01165771484375, 0.00995635986328125, 0.018798828125, 0.089111328125, -0.05047607421875, -0.043365478515625, 0.0272979736328125, 0.02105712890625, 0.01490020751953125, -0.03668212890625, -0.00605010986328125, 0.0250244140625, -0.09423828125, 0.09228515625, 0.072021484375, 0.015777587890625, 0.044219970703125, -0.038909912109375, 0.01294708251953125, 0.033233642578125, 0.008636474609375, 0.035797119140625, 0.0132598876953125, 0.06085205078125, -0.0031795501708984375, -0.005756378173828125, 0.0234832763671875, -0.0292205810546875, 0.0111846923828125, 0.05535888671875, 0.05352783203125, -0.0633544921875, -0.0123443603515625, 0.001953125, -0.0284423828125, 0.035247802734375, -0.01312255859375, -0.00835418701171875, 0.00453948974609375, 0.06298828125, 0.01395416259765625, -0.01099395751953125, 0.0367431640625, 0.0183563232421875, 0.0171966552734375, -0.006786346435546875, 0.04632568359375, 0.02825927734375, 0.006458282470703125, 0.0014123916625976562, 0.007343292236328125, 0.037139892578125, -0.0265960693359375, -0.013580322265625, 0.0271148681640625, -0.025482177734375, -0.0660400390625, 0.01131439208984375, -0.0281829833984375, 0.0007600784301757812, 0.07305908203125, 0.01061248779296875, 0.02197265625, 0.0192718505859375, 0.0231475830078125, 0.017669677734375, -0.037750244140625, 0.00048661231994628906, 0.02215576171875, -0.0167694091796875, -0.00402069091796875, 0.0112152099609375, -0.033660888671875, 0.021759033203125, -0.00946044921875, -0.015777587890625, -0.01995849609375, -0.002574920654296875, 0.09906005859375, -0.02655029296875, -0.034942626953125, 0.01491546630859375, 0.04736328125, -0.004695892333984375, -0.035125732421875, 0.025054931640625, -0.117919921875, -0.061798095703125, -0.005031585693359375, -0.0360107421875, -0.0215606689453125, -0.045654296875, -0.05029296875, 0.0859375, -0.01491546630859375, 0.0237274169921875, 0.0247955322265625, 0.0261688232421875, -0.031982421875, 0.0017900466918945312, -0.02978515625, 0.0174407958984375, -0.05206298828125, 0.0263671875, -0.03179931640625, 0.0297393798828125, 0.00531768798828125, -0.01049041748046875, 0.00940704345703125, 0.0034427642822265625, 0.023040771484375, -0.010528564453125, -0.005161285400390625, 0.047515869140625, -0.022491455078125, -0.0135650634765625, -0.0167999267578125, -0.00635528564453125, -0.048126220703125, -0.027923583984375, 0.0290069580078125, -0.0751953125, -0.045257568359375, 0.0102996826171875, 0.029083251953125, 0.054962158203125, -0.00466156005859375, 0.0197906494140625, 0.04638671875, -0.020965576171875, -0.0183868408203125, -0.0226287841796875, -0.011505126953125, 0.0477294921875, 0.0180511474609375, 0.0008816719055175781, 0.0210723876953125, -0.037567138671875, 0.05657958984375, 0.004291534423828125, -0.0259857177734375, 0.00252532958984375, 0.00969696044921875, -0.03314208984375, -0.0133209228515625, -0.028289794921875, 0.0176239013671875, 0.0026264190673828125, 0.0491943359375, 0.0283050537109375, 0.050872802734375, -0.035400390625, -0.032135009765625, 0.0251007080078125, 0.06951904296875, -0.0248870849609375, -0.0289459228515625, 0.007106781005859375, -0.0036449432373046875, 0.0024089813232421875, -0.004535675048828125, 0.011505126953125, -0.0120086669921875, 0.0100250244140625, -0.037689208984375, -0.0208282470703125, 0.03460693359375, 0.028472900390625, 0.0017957687377929688, -0.00621795654296875, -0.00739288330078125, -0.0279998779296875, -0.06866455078125, 0.01494598388671875, 0.031646728515625, 0.09344482421875, 0.03338623046875, 0.0430908203125, -0.0318603515625, -0.053314208984375, -0.01387786865234375, 0.01837158203125, -0.0040435791015625, 0.0192413330078125, -0.062225341796875, -0.0474853515625, 0.007659912109375, 0.044830322265625, 0.020111083984375, 0.030029296875, 0.0283203125, 0.0279388427734375, 0.035491943359375, 0.00322723388671875, -0.01050567626953125, -0.005031585693359375, 0.008758544921875, -0.0234832763671875, 0.00420379638671875, -0.001007080078125, -0.002410888671875, -0.02386474609375, 0.01165008544921875, 0.022003173828125, 0.0034351348876953125, 0.0222320556640625, 0.008056640625, 0.00762176513671875, 0.07342529296875, 0.020904541015625, 0.059539794921875, 0.045623779296875, -0.08258056640625, -0.0078277587890625, 0.0148773193359375, -0.058563232421875, 0.0010557174682617188, 0.022918701171875, -0.041656494140625, 0.027496337890625, -0.0027751922607421875, 0.00608062744140625, 0.0087127685546875, -0.01593017578125, 0.0017604827880859375, 0.027435302734375, 0.038116455078125, 0.019561767578125, -0.057891845703125, -0.015899658203125, -0.011138916015625, -0.00363922119140625, 0.0179443359375, 0.07086181640625, 0.01018524169921875, 0.004787445068359375, -0.061248779296875, -0.0007576942443847656, -0.0186004638671875, -0.036895751953125, 0.00370025634765625, 0.01280975341796875, -0.005458831787109375, -0.00823211669921875, -0.06103515625, 0.026824951171875, 0.017608642578125, 0.00878143310546875, 0.034210205078125, -0.029449462890625, 0.0198516845703125, -0.0028209686279296875, -0.0029506683349609375, -0.023834228515625, -0.053192138671875, -0.00909423828125, 0.050689697265625, -0.00431060791015625, 0.0144195556640625, -0.044677734375, -0.01152801513671875, 0.01806640625, -0.024017333984375, 0.032135009765625, -0.0002110004425048828, 0.028228759765625, 0.0294189453125, 0.0035190582275390625, -0.0037441253662109375, 0.01523590087890625, -0.0234527587890625, 0.0299072265625, 0.007564544677734375, 0.055206298828125, -0.02288818359375, 0.020965576171875, 0.018280029296875, 0.0213623046875, 0.0204315185546875, -0.07391357421875, 0.0111236572265625, 0.0469970703125, 0.0018472671508789062, 0.0396728515625, 0.026458740234375, -0.03350830078125, -0.0606689453125, 0.005523681640625, 0.027099609375, -0.048187255859375, 0.0080413818359375, -0.09930419921875, -0.0204010009765625, 0.047576904296875, -0.0069580078125, -0.052764892578125, 0.0124664306640625, -0.0256500244140625, 0.05645751953125, -0.028076171875, 0.027984619140625, 0.01031494140625, 0.0195770263671875, -0.05242919921875, 0.0322265625, -0.004638671875, -0.021820068359375, 0.0263824462890625, 0.0004589557647705078, 0.018646240234375, -0.014404296875, -0.039031982421875, -0.0009183883666992188, -0.0022411346435546875, 0.031463623046875, 0.045867919921875, 0.018157958984375, 0.033447265625, 0.0109710693359375, -0.06982421875, -0.0975341796875, 0.01192474365234375, -0.022918701171875, -0.018890380859375, 0.0125579833984375, -0.0301055908203125, -0.0306243896484375, -0.033905029296875, -0.0160064697265625, 0.04400634765625, 0.018951416015625, -0.017852783203125, -0.02911376953125, 0.00829315185546875, -0.0214691162109375, -0.009246826171875, -0.00872039794921875, -0.0306854248046875, -0.00019085407257080078, 0.037872314453125, 0.03436279296875, 0.038818359375, 0.0445556640625, 0.015655517578125, -0.03729248046875, -0.0002130270004272461, -0.0225067138671875, 0.032562255859375, 0.0005540847778320312, -0.01580810546875, 0.00887298583984375, 0.026397705078125, -0.036590576171875, -0.05084228515625, -0.003025054931640625, 0.023040771484375, -0.0166015625, -0.0704345703125, -0.009979248046875, -0.004810333251953125, 0.07098388671875, 0.0310516357421875, 0.00936126708984375, -0.0404052734375, 0.0021514892578125, -0.015716552734375, -0.0582275390625, 0.0122528076171875, 0.031097412109375, -0.05841064453125, 0.00006586313247680664, 0.022125244140625, -0.0047607421875, -0.00441741943359375, -0.032135009765625, -0.02398681640625, 0.0010051727294921875, 0.008697509765625, 0.0225982666015625, -0.0176544189453125, -0.03594970703125, 0.059844970703125, -0.0255889892578125, 0.010498046875, -0.01708984375, 0.032440185546875, 0.021240234375, -0.0199127197265625, 0.0229339599609375, 0.0423583984375, -0.047149658203125, -0.01459503173828125, 0.020751953125, 0.04150390625, -0.02130126953125, -0.0294647216796875, -0.037109375, -0.0006480216979980469, 0.006011962890625, -0.01508331298828125, 0.020599365234375, -0.004192352294921875, 0.003253936767578125, 0.0816650390625, -0.0014581680297851562, 0.08587646484375, 0.0033168792724609375, 0.05316162109375, -0.007259368896484375, -0.0021076202392578125, 0.0111083984375, -0.01087188720703125, -0.0066680908203125, -0.027587890625, -0.01061248779296875, -0.06884765625, 0.0279998779296875, -0.005321502685546875, 0.0025482177734375, 0.033447265625 ]
eea1124b6aa414145328bc4073ed996eae7f1157
Wordpress Stackexchange Q: How do you remove hard coded thumbnail image dimensions? How can I remove the width and height attributes from the post_thumbnail when inserting with <?php the_post_thumbnail(); ?>? <img width="800" height="533" src="http://domain.com/wp-content/uploads/2011/02/image.jpg" class="attachment-post-thumbnail wp-post-image" /> A: you could just grab the url of the thumb and put it in an img tag yourself: <?php $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'your_thumb_handle' ); ?> <img src="<?php echo $thumbnail['0']; ?>" />
Q: How do you remove hard coded thumbnail image dimensions? How can I remove the width and height attributes from the post_thumbnail when inserting with <?php the_post_thumbnail(); ?>? <img width="800" height="533" src="http://domain.com/wp-content/uploads/2011/02/image.jpg" class="attachment-post-thumbnail wp-post-image" /> A: you could just grab the url of the thumb and put it in an img tag yourself: <?php $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'your_thumb_handle' ); ?> <img src="<?php echo $thumbnail['0']; ?>" /> A: Related: Filter to remove image dimension attributes? There's a filter on post_thumbnail_html which receives as its argument the full html element representing the post thumbnail image before it's echoed to the page. You can filter out the dimensions with a bit of regex: add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10, 3 ); function remove_thumbnail_dimensions( $html, $post_id, $post_image_id ) { $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); return $html; } A: add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 ); add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 ); add_filter( 'the_content', 'remove_thumbnail_dimensions', 10 ); function remove_thumbnail_dimensions( $html ) { $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); return $html; } this will do the job, "the_contnet" will remove all post content text image width and height. A: I prefer this solution below as I'm not doing a global replace with a function. This would be incorporated into your theme files. <?php echo preg_replace( '/(width|height)="\d*"/', '', get_the_post_thumbnail( get_the_ID(), 'large' ) ); ?> You can replace "large" with "thumbnail", "medium", "full", or your custom image size declared in your theme.
wordpress
{ "language": "en", "length": 235, "provenance": "stackexchange_00019.jsonl.gz:411078", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22302" }
[ 0.0153045654296875, -0.01520538330078125, 0.0030918121337890625, 0.0175323486328125, 0.0004456043243408203, -0.033111572265625, 0.053314208984375, -0.033172607421875, 0.003753662109375, 0.03070068359375, -0.0135955810546875, 0.0240020751953125, -0.0115814208984375, -0.01374053955078125, -0.0101165771484375, -0.0015506744384765625, 0.04498291015625, 0.004314422607421875, 0.06585693359375, 0.017669677734375, 0.0080413818359375, 0.046844482421875, 0.048736572265625, 0.06915283203125, -0.0005350112915039062, -0.0146331787109375, 0.0711669921875, -0.0307159423828125, -0.0023174285888671875, -0.037078857421875, 0.0141143798828125, 0.0210723876953125, 0.0241851806640625, 0.00437164306640625, -0.0067901611328125, 0.03173828125, 0.0110015869140625, -0.018280029296875, -0.003742218017578125, 0.0218658447265625, 0.0207977294921875, -0.013427734375, 0.025787353515625, -0.036102294921875, -0.0150146484375, 0.0191650390625, 0.01386260986328125, -0.01271820068359375, -0.004695892333984375, -0.039825439453125, 0.030029296875, 0.01502227783203125, 0.055908203125, -0.02960205078125, -0.034942626953125, 0.00644683837890625, -0.052276611328125, 0.0277557373046875, 0.03314208984375, 0.020751953125, -0.0252838134765625, -0.0140228271484375, 0.005401611328125, -0.04541015625, -0.0248870849609375, -0.0212860107421875, -0.0210418701171875, -0.01053619384765625, -0.041046142578125, -0.007488250732421875, 0.05523681640625, -0.0223388671875, -0.018463134765625, -0.043731689453125, 0.007450103759765625, 0.03924560546875, -0.0068359375, -0.0078582763671875, -0.0006012916564941406, -0.00537109375, 0.03350830078125, -0.0323486328125, 0.0006570816040039062, 0.0158843994140625, 0.030303955078125, 0.04962158203125, 0.004730224609375, -0.0278778076171875, 0.015625, -0.01407623291015625, -0.0021114349365234375, -0.018341064453125, -0.0205841064453125, 0.0307464599609375, -0.015838623046875, -0.0109100341796875, 0.021026611328125, 0.002681732177734375, -0.006084442138671875, -0.0176239013671875, 0.011322021484375, -0.040924072265625, 0.00902557373046875, -0.0208282470703125, 0.00560760498046875, 0.007648468017578125, -0.031158447265625, 0.0179443359375, 0.04180908203125, 0.04486083984375, 0.00493621826171875, -0.00295257568359375, -0.027740478515625, 0.03875732421875, -0.05072021484375, 0.027496337890625, -0.047119140625, -0.004528045654296875, -0.050201416015625, 0.05108642578125, -0.006587982177734375, -0.00357818603515625, 0.00580596923828125, -0.003749847412109375, 0.036346435546875, 0.0278167724609375, -0.0158233642578125, -0.02374267578125, 0.01351165771484375, 0.006282806396484375, -0.047943115234375, 0.006618499755859375, 0.0643310546875, 0.02880859375, 0.025909423828125, -0.010650634765625, -0.0083465576171875, -0.040130615234375, -0.020782470703125, 0.035919189453125, -0.04254150390625, -0.046539306640625, 0.0227813720703125, -0.0413818359375, 0.0116424560546875, 0.00893402099609375, 0.0007491111755371094, 0.02581787109375, 0.00046443939208984375, -0.037384033203125, 0.0367431640625, -0.05108642578125, 0.0171356201171875, 0.0382080078125, 0.03460693359375, 0.00804901123046875, 0.11700439453125, -0.045654296875, -0.04632568359375, -0.061553955078125, 0.0034656524658203125, 0.005702972412109375, 0.027435302734375, -0.0032291412353515625, -0.02587890625, 0.01526641845703125, -0.045684814453125, -0.01151275634765625, 0.0211029052734375, 0.039947509765625, 0.011077880859375, -0.0169525146484375, -0.0266876220703125, 0.0084228515625, -0.0026702880859375, 0.003631591796875, 0.0175933837890625, -0.01561737060546875, -0.00522613525390625, 0.043731689453125, 0.0018243789672851562, -0.023468017578125, 0.005207061767578125, -0.0036373138427734375, -0.0194244384765625, -0.0219879150390625, 0.00211334228515625, -0.016265869140625, 0.00957489013671875, 0.01374053955078125, 0.040924072265625, 0.021820068359375, -0.036041259765625, 0.036529541015625, 0.0275726318359375, 0.01503753662109375, -0.052734375, -0.0071563720703125, -0.0022907257080078125, -0.039337158203125, 0.042022705078125, 0.0278167724609375, -0.01222991943359375, 0.01467132568359375, -0.0318603515625, 0.0205078125, -0.0114288330078125, 0.024505615234375, -0.053466796875, 0.001964569091796875, 0.041229248046875, -0.0010585784912109375, -0.048553466796875, 0.02728271484375, -0.006984710693359375, -0.0034885406494140625, -0.0095367431640625, -0.01074981689453125, -0.01251220703125, 0.032867431640625, -0.021331787109375, -0.00470733642578125, -0.0308074951171875, 0.0024967193603515625, 0.04290771484375, 0.01064300537109375, -0.0178070068359375, -0.0178985595703125, 0.0167388916015625, -0.0014667510986328125, -0.045928955078125, 0.05426025390625, -0.019683837890625, -0.01377105712890625, -0.0162811279296875, 0.0005588531494140625, -0.00015306472778320312, -0.0902099609375, 0.019317626953125, 0.054718017578125, 0.050750732421875, 0.05389404296875, 0.0006499290466308594, -0.0191802978515625, 0.0853271484375, 0.0162200927734375, 0.025390625, -0.04486083984375, -0.002635955810546875, -0.01422882080078125, -0.01044464111328125, -0.03759765625, 0.0310821533203125, -0.05279541015625, 0.0244903564453125, 0.02850341796875, -0.01462554931640625, 0.006771087646484375, 0.0216064453125, 0.047943115234375, -0.034027099609375, 0.05072021484375, 0.06982421875, -0.02606201171875, 0.051788330078125, -0.004558563232421875, 0.00872039794921875, 0.00814056396484375, -0.03790283203125, 0.02532958984375, 0.033905029296875, 0.000682830810546875, -0.01372528076171875, 0.01302337646484375, 0.048919677734375, -0.023956298828125, -0.03338623046875, 0.006320953369140625, -0.0064239501953125, -0.002460479736328125, 0.0151824951171875, 0.025848388671875, 0.01161956787109375, 0.003936767578125, -0.02490234375, -0.06793212890625, 0.031036376953125, 0.054290771484375, 0.0011987686157226562, -0.0036411285400390625, -0.00264739990234375, 0.0576171875, 0.0097503662109375, 0.039306640625, -0.01480865478515625, 0.01812744140625, -0.0325927734375, -0.0609130859375, 0.055389404296875, -0.00913238525390625, 0.036712646484375, 0.097412109375, 0.020050048828125, 0.0252838134765625, -0.006076812744140625, -0.00978851318359375, -0.0266876220703125, 0.0048065185546875, -0.0079345703125, -0.006092071533203125, -0.0406494140625, 0.034393310546875, 0.007472991943359375, 0.01416015625, -0.0163726806640625, -0.02655029296875, -0.0014848709106445312, 0.01007080078125, -0.0400390625, -0.005413055419921875, 0.014556884765625, -0.0716552734375, -0.03790283203125, 0.00646209716796875, -0.063720703125, 0.00923919677734375, 0.040313720703125, -0.0092620849609375, -0.0088653564453125, -0.01477813720703125, -0.032196044921875, -0.033233642578125, -0.048248291015625, -0.0076751708984375, -0.00617218017578125, 0.02642822265625, 0.018280029296875, 0.032623291015625, -0.002384185791015625, -0.054931640625, -0.000576019287109375, 0.00982666015625, -0.017303466796875, 0.0036029815673828125, -0.0109710693359375, 0.01209259033203125, -0.034576416015625, 0.00481414794921875, -0.0030498504638671875, 0.017333984375, -0.01142120361328125, 0.01300048828125, -0.01904296875, -0.0248565673828125, -0.01137542724609375, 0.052032470703125, 0.0241851806640625, -0.039093017578125, 0.003986358642578125, -0.0726318359375, -0.038360595703125, -0.02398681640625, -0.05645751953125, 0.028533935546875, 0.0199432373046875, 0.00791168212890625, -0.0300140380859375, 0.045196533203125, 0.01953125, 0.0222320556640625, 0.041229248046875, -0.0229034423828125, 0.0265045166015625, -0.00817108154296875, -0.0077667236328125, -0.057891845703125, -0.0211334228515625, -0.03436279296875, 0.051361083984375, -0.00554656982421875, 0.01419830322265625, 0.0143585205078125, -0.016387939453125, 0.007110595703125, -0.0281219482421875, 0.047882080078125, 0.0043792724609375, 0.03729248046875, -0.0299835205078125, -0.042327880859375, -0.00849151611328125, 0.08758544921875, -0.0623779296875, -0.0188140869140625, -0.017852783203125, 0.026519775390625, -0.038909912109375, -0.07257080078125, -0.0290985107421875, -0.01262664794921875, -0.09906005859375, 0.000820159912109375, 0.006938934326171875, -0.042999267578125, -0.0306549072265625, 0.0692138671875, -0.067138671875, -0.0168914794921875, 0.02227783203125, 0.064453125, -0.018646240234375, 0.0258941650390625, -0.0289306640625, 0.05706787109375, -0.012939453125, -0.0020580291748046875, -0.078125, -0.019134521484375, -0.0237274169921875, 0.093505859375, -0.0212860107421875, 0.0389404296875, -0.06903076171875, 0.032470703125, -0.0406494140625, -0.0252838134765625, -0.0155029296875, 0.04150390625, -0.036224365234375, 0.027557373046875, -0.01788330078125, -0.01496124267578125, 0.004810333251953125, -0.050201416015625, -0.00774383544921875, -0.013397216796875, -0.046844482421875, 0.00417327880859375, -0.032257080078125, 0.006168365478515625, -0.035430908203125, -0.019439697265625, 0.0260467529296875, 0.04156494140625, -0.00467681884765625, 0.036895751953125, -0.046417236328125, -0.0323486328125, 0.069091796875, 0.075927734375, 0.01019287109375, -0.0084686279296875, 0.0545654296875, -0.00437164306640625, -0.059967041015625, -0.085205078125, -0.0088348388671875, 0.03607177734375, -0.00824737548828125, 0.050628662109375, 0.037841796875, -0.017364501953125, 0.0221405029296875, 0.0156707763671875, 0.018829345703125, -0.0379638671875, 0.06915283203125, -0.0014324188232421875, -0.00472259521484375, 0.03485107421875, -0.00478363037109375, -0.01143646240234375, 0.0026531219482421875, -0.00722503662109375, -0.006000518798828125, 0.03485107421875, 0.0039043426513671875, -0.001392364501953125, -0.01837158203125, -0.0013294219970703125, -0.01515960693359375, 0.016937255859375, -0.00948333740234375, 0.00485992431640625, 0.0202484130859375, -0.01178741455078125, -0.038238525390625, -0.03765869140625, 0.0214385986328125, -0.0088958740234375, -0.0190582275390625, 0.0088043212890625, 0.052001953125, -0.0245513916015625, 0.0259246826171875, 0.000591278076171875, 0.01197052001953125, -0.0162811279296875, 0.0117340087890625, -0.00662994384765625, -0.05743408203125, 0.01302337646484375, 0.01165771484375, -0.037933349609375, -0.0113372802734375, 0.048492431640625, 0.029632568359375, -0.0007953643798828125, -0.011077880859375, -0.03961181640625, 0.007114410400390625, -0.0389404296875, 0.023529052734375, -0.009063720703125, 0.0010852813720703125, 0.059234619140625, 0.003841400146484375, -0.002017974853515625, 0.03662109375, -0.00557708740234375, 0.0169525146484375, 0.00585174560546875, 0.01904296875, -0.0115509033203125, 0.04290771484375, -0.021636962890625, 0.03448486328125, 0.02490234375, -0.044464111328125, -0.0029125213623046875, 0.0191802978515625, 0.053863525390625, -0.00958251953125, -0.0310211181640625, 0.01540374755859375, -0.0277252197265625, -0.010223388671875, 0.0017719268798828125, -0.0281524658203125, -0.068603515625, 0.000698089599609375, 0.042205810546875, 0.02252197265625, -0.0399169921875, -0.0305023193359375, -0.003704071044921875, -0.0367431640625, -0.0103302001953125, 0.02667236328125, -0.036346435546875, 0.007297515869140625, -0.0012445449829101562, -0.0102386474609375, -0.00760650634765625, -0.055206298828125, 0.021331787109375, -0.0162200927734375, -0.006755828857421875, -0.01042938232421875, 0.038543701171875, -0.015869140625, -0.01104736328125, 0.002964019775390625, 0.00255584716796875, -0.0031719207763671875, 0.00946044921875, 0.041290283203125, -0.0006213188171386719, -0.03466796875, -0.024078369140625, -0.0301513671875, -0.0007228851318359375, 0.02728271484375, -0.015838623046875, -0.0164794921875, -0.01102447509765625, -0.0274658203125, -0.00859832763671875, -0.00321197509765625, 0.043853759765625, 0.005878448486328125, 0.0452880859375, -0.024444580078125, 0.01428985595703125, -0.031402587890625, 0.01433563232421875, 0.01148223876953125, 0.042510986328125, -0.018463134765625, -0.0067291259765625, 0.0157470703125, -0.024749755859375, 0.015777587890625, -0.026611328125, -0.01363372802734375, -0.00030994415283203125, -0.025787353515625, -0.04974365234375, -0.00441741943359375, -0.00675201416015625, -0.02239990234375, -0.0174407958984375, -0.009246826171875, -0.037933349609375, 0.08831787109375, -0.0210113525390625, 0.01113128662109375, -0.0241546630859375, -0.0208892822265625, 0.053497314453125, 0.0184326171875, 0.025909423828125, -0.0164947509765625, -0.045928955078125, -0.0029621124267578125, 0.0662841796875, 0.03759765625, -0.01033782958984375, 0.08526611328125, 0.00823211669921875, 0.059051513671875, 0.07232666015625, 0.030120849609375, 0.024932861328125, -0.0031147003173828125, -0.03399658203125, 0.027099609375, 0.047821044921875, 0.017333984375, 0.004611968994140625, 0.046112060546875, -0.0202178955078125, 0.0423583984375, -0.00908660888671875, 0.057830810546875, 0.00220489501953125, 0.040557861328125, 0.02239990234375, -0.037261962890625, 0.0662841796875, -0.0042572021484375, 0.017852783203125, -0.0004949569702148438, -0.0005331039428710938, 0.0283050537109375, -0.017181396484375, -0.0161590576171875, 0.014434814453125, -0.0249176025390625, 0.00812530517578125, -0.01535797119140625, 0.0191192626953125, -0.0782470703125, 0.046905517578125, 0.0465087890625, -0.00167083740234375, -0.0216217041015625, 0.01462554931640625, -0.01506805419921875, -0.0291900634765625, -0.07135009765625, -0.037994384765625, 0.004119873046875, -0.018524169921875, 0.0083465576171875, 0.00736236572265625, 0.044647216796875, 0.02716064453125, 0.00026607513427734375, 0.0019311904907226562, -0.0007314682006835938, -0.010955810546875, 0.0230560302734375, 0.00360107421875, 0.00447845458984375, 0.006923675537109375, -0.05657958984375, 0.0027751922607421875, -0.05548095703125, 0.031005859375, 0.00811767578125, 0.0211334228515625, 0.08221435546875, -0.05389404296875, -0.0241851806640625, 0.0263824462890625, -0.0026874542236328125, 0.0029659271240234375, -0.0182647705078125, 0.033782958984375, -0.03125, 0.002399444580078125, -0.01229095458984375, -0.00496673583984375, -0.008453369140625, -0.056915283203125, -0.08642578125, 0.080078125, -0.0161590576171875, 0.034942626953125, -0.0042877197265625, 0.016815185546875, 0.001873016357421875, 0.0002377033233642578, 0.0021495819091796875, 0.0163421630859375, -0.00949859619140625, -0.0086517333984375, 0.00872802734375, 0.01274871826171875, 0.0034999847412109375, 0.0010042190551757812, 0.045440673828125, 0.005950927734375, -0.0211334228515625, 0.0004706382751464844, 0.08233642578125, 0.057647705078125, 0.0265350341796875, 0.002559661865234375, -0.0244293212890625, 0.01050567626953125, -0.011322021484375, -0.054718017578125, 0.00823974609375, -0.00980377197265625, -0.038116455078125, 0.021514892578125, 0.0191802978515625, 0.0287933349609375, -0.017578125, 0.0280914306640625, -0.026092529296875, -0.0032939910888671875, 0.0433349609375, -0.06024169921875, 0.04193115234375, 0.0236358642578125, 0.02398681640625, -0.0014772415161132812, -0.050567626953125, 0.00508880615234375, 0.038177490234375, 0.02105712890625, 0.0304412841796875, 0.0079345703125, 0.00897979736328125, 0.035888671875, -0.017181396484375, 0.00731658935546875, 0.03619384765625, -0.03466796875, 0.009185791015625, 0.0215911865234375, 0.002593994140625, -0.03216552734375, 0.0207061767578125, 0.039703369140625, 0.01763916015625, -0.04412841796875, -0.0096588134765625, 0.020050048828125, 0.0305328369140625, -0.00897216796875, -0.03204345703125, -0.004589080810546875, -0.07745361328125, -0.0026035308837890625, -0.040374755859375, 0.004009246826171875, 0.03656005859375, 0.043792724609375, -0.00414276123046875, 0.00469207763671875, -0.0638427734375, -0.02606201171875, -0.0003104209899902344, -0.03765869140625, 0.0055694580078125, 0.0290679931640625, 0.03094482421875, 0.0198516845703125, 0.0010423660278320312, 0.00023293495178222656, -0.028656005859375, 0.011871337890625, -0.041900634765625, 0.045257568359375, -0.03515625, -0.02093505859375, -0.01336669921875, 0.040557861328125, -0.0262298583984375, 0.026123046875, 0.052154541015625, 0.028045654296875, -0.080078125, -0.0274658203125, -0.0086212158203125, -0.044891357421875, -0.00022876262664794922, -0.0004010200500488281, 0.023651123046875, 0.048126220703125, -0.00505828857421875, -0.023590087890625, 0.0008525848388671875, 0.0689697265625, -0.034820556640625, 0.06597900390625, -0.01174163818359375, -0.0066375732421875, 0.0091094970703125, -0.029937744140625, 0.040740966796875, -0.0174560546875, -0.04315185546875, 0.0005393028259277344, -0.01378631591796875, -0.0186004638671875, 0.01336669921875, 0.00856781005859375, -0.037353515625, 0.04705810546875, 0.0231170654296875, -0.01788330078125, 0.003173828125, -0.006427764892578125, 0.033233642578125, -0.02813720703125, -0.002620697021484375, 0.0034198760986328125, -0.048553466796875, -0.014678955078125, -0.0280303955078125, 0.0125579833984375, 0.02484130859375, 0.04937744140625, -0.006694793701171875, 0.020355224609375, -0.0214691162109375, -0.022430419921875, -0.00667572021484375, 0.002475738525390625, -0.0207061767578125, -0.004611968994140625, -0.006328582763671875, -0.00460052490234375, -0.006168365478515625, 0.025360107421875, 0.0189971923828125, -0.0129852294921875, -0.0121612548828125, 0.0094757080078125, 0.01413726806640625, 0.0166168212890625, 0.0241241455078125, -0.01800537109375, 0.00128173828125, -0.01030731201171875, -0.0067291259765625, 0.020782470703125, -0.02313232421875, -0.00995635986328125, 0.00933074951171875, 0.035888671875, -0.0185394287109375, 0.0521240234375, -0.01346588134765625, 0.0875244140625, 0.04815673828125, -0.033660888671875, -0.036376953125, 0.027618408203125, -0.0046234130859375, -0.0013799667358398438, 0.021728515625, 0.04620361328125, 0.0289764404296875, -0.0078887939453125, -0.003002166748046875, -0.0028553009033203125, 0.0301666259765625, -0.0035762786865234375, -0.00701904296875, -0.0179901123046875, 0.00012302398681640625, -0.05279541015625, 0.046600341796875, -0.01885986328125, -0.03448486328125, -0.0034198760986328125, 0.0166015625, -0.0175323486328125, 0.00009262561798095703, -0.0302886962890625, -0.036376953125, 0.04541015625, 0.032623291015625, -0.06640625, 0.0221405029296875, 0.02020263671875, -0.0035419464111328125, 0.01349639892578125, 0.005146026611328125, -0.01544952392578125, 0.0196533203125, -0.0152435302734375, -0.0418701171875, -0.04571533203125, 0.048828125, -0.03631591796875, 0.05609130859375, 0.05731201171875, -0.049072265625, 0.002719879150390625, 0.05450439453125, 0.052459716796875, 0.10089111328125, -0.0182952880859375, -0.026519775390625, -0.0046539306640625, 0.025482177734375, 0.00737762451171875, -0.061431884765625, -0.0134429931640625, -0.0260009765625, 0.01561737060546875, -0.0311279296875, -0.01507568359375, -0.0132904052734375, -0.0292205810546875, -0.042144775390625, 0.031158447265625, -0.00567626953125, -0.036529541015625, 0.011871337890625, 0.007549285888671875, 0.005451202392578125, 0.0103912353515625, 0.0167236328125, 0.01192474365234375, -0.0037841796875, -0.015960693359375, 0.012542724609375, -0.006847381591796875, 0.0293121337890625, -0.036407470703125, -0.0219268798828125, 0.0234832763671875, 0.027313232421875, 0.006420135498046875, 0.0114593505859375, 0.00012421607971191406, 0.04412841796875, 0.041900634765625, -0.00844573974609375, 0.0237884521484375, 0.004741668701171875, -0.05169677734375, -0.01360321044921875, 0.01226806640625, -0.0232391357421875, -0.00821685791015625, 0.068603515625, 0.05523681640625, 0.0253143310546875, -0.0211334228515625, 0.001705169677734375, 0.01690673828125, -0.0152130126953125, -0.0155792236328125, 0.007080078125, -0.05523681640625, -0.054473876953125, -0.00572967529296875, -0.007602691650390625, 0.00872802734375, -0.031219482421875, -0.0379638671875, 0.0134429931640625, 0.01145172119140625, 0.04351806640625, -0.08184814453125, 0.0706787109375, 0.00548553466796875, -0.0338134765625, 0.0073394775390625, -0.05267333984375, -0.00324249267578125, 0.000007450580596923828, -0.07159423828125, -0.0276641845703125, 0.0321044921875, -0.0279541015625, 0.019622802734375, -0.00806427001953125, 0.01511383056640625, -0.045806884765625, 0.03350830078125, -0.006618499755859375, -0.006992340087890625, 0.005954742431640625, 0.02239990234375, 0.023040771484375, -0.0302276611328125, 0.0027942657470703125, -0.037017822265625, -0.0023860931396484375, -0.03265380859375, -0.037017822265625, 0.017822265625, 0.006137847900390625, -0.0157470703125, 0.035675048828125, 0.0001729726791381836, -0.00780487060546875, -0.007022857666015625, -0.05572509765625, -0.072998046875, 0.01111602783203125, 0.0078125, -0.01523590087890625, 0.0267791748046875 ]
934cf52ad2ce5f5eb00e611bbdc05354e0d0ebc1
Wordpress Stackexchange Q: Multiple Comment Moderators and Notifications I am looking for a way to make it so multiple authors/moderators within wordpress get notified when there is a new comment waiting approval. I'm thinking of switching over to Disqus for this type of thing, but was wondering if it's possible without swapping out the commenting interface. A: I have used the plugin Comment Notifier. http://wordpress.org/extend/plugins/comments-notifier/ And it works adequately.
Q: Multiple Comment Moderators and Notifications I am looking for a way to make it so multiple authors/moderators within wordpress get notified when there is a new comment waiting approval. I'm thinking of switching over to Disqus for this type of thing, but was wondering if it's possible without swapping out the commenting interface. A: I have used the plugin Comment Notifier. http://wordpress.org/extend/plugins/comments-notifier/ And it works adequately.
wordpress
{ "language": "en", "length": 67, "provenance": "stackexchange_00019.jsonl.gz:411095", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22347" }
[ 0.01261138916015625, -0.01337432861328125, -0.0311737060546875, -0.043060302734375, 0.007350921630859375, -0.0200653076171875, 0.0025501251220703125, 0.00696563720703125, 0.00809478759765625, 0.0229339599609375, -0.03582763671875, -0.01142120361328125, -0.01275634765625, -0.0086822509765625, -0.0298614501953125, -0.045684814453125, 0.01490020751953125, 0.033172607421875, 0.03924560546875, -0.004238128662109375, 0.01383209228515625, -0.005096435546875, -0.00905609130859375, 0.04052734375, 0.003055572509765625, 0.0146942138671875, 0.123779296875, -0.027099609375, 0.03369140625, -0.005901336669921875, 0.016510009765625, -0.0537109375, 0.01381683349609375, 0.0250396728515625, -0.026123046875, 0.01148223876953125, 0.0003063678741455078, 0.015838623046875, 0.0059661865234375, 0.020721435546875, 0.02947998046875, -0.007778167724609375, 0.0274505615234375, 0.0015516281127929688, 0.00812530517578125, -0.03228759765625, 0.031097412109375, -0.058807373046875, 0.016571044921875, -0.0071868896484375, -0.00792694091796875, 0.0214691162109375, 0.0025005340576171875, -0.00920867919921875, -0.00128173828125, 0.006317138671875, -0.06024169921875, 0.0645751953125, 0.0248260498046875, -0.020355224609375, -0.002899169921875, -0.0007991790771484375, 0.0147857666015625, 0.0215911865234375, -0.007175445556640625, 0.01132965087890625, -0.0080413818359375, 0.0166015625, 0.0105133056640625, -0.0052947998046875, -0.015380859375, -0.01230621337890625, 0.0010766983032226562, -0.0236968994140625, -0.005451202392578125, -0.039093017578125, -0.017730712890625, -0.07440185546875, 0.0325927734375, 0.012451171875, -0.029083251953125, -0.0228118896484375, 0.0005373954772949219, -0.044097900390625, 0.007694244384765625, -0.0006570816040039062, -0.009490966796875, 0.0032558441162109375, -0.06561279296875, -0.011016845703125, -0.034393310546875, -0.08880615234375, -0.056365966796875, 0.035888671875, 0.00505828857421875, -0.00414276123046875, 0.023223876953125, 0.049835205078125, -0.049713134765625, -0.0232086181640625, -0.036651611328125, 0.000025153160095214844, -0.0340576171875, -0.01800537109375, -0.0010175704956054688, 0.0133209228515625, -0.007572174072265625, -0.0201568603515625, 0.0232391357421875, 0.03045654296875, -0.00833892822265625, 0.0041656494140625, 0.00815582275390625, -0.0113372802734375, -0.01197052001953125, -0.04052734375, -0.0416259765625, 0.0092315673828125, 0.00849151611328125, -0.031524658203125, 0.0289764404296875, 0.04962158203125, -0.01348876953125, -0.022125244140625, -0.0134124755859375, -0.02508544921875, -0.00766754150390625, -0.034637451171875, -0.0308380126953125, -0.000644683837890625, -0.008270263671875, 0.0278778076171875, 0.0119781494140625, 0.0127716064453125, -0.0133056640625, -0.00010919570922851562, 0.04461669921875, -0.0010766983032226562, 0.0027256011962890625, 0.0114898681640625, 0.018402099609375, 0.006412506103515625, -0.0183258056640625, -0.0103302001953125, -0.035491943359375, 0.006591796875, 0.0261688232421875, 0.00138092041015625, -0.00949859619140625, -0.010986328125, -0.059173583984375, 0.03765869140625, 0.024169921875, -0.024200439453125, 0.0298614501953125, -0.06060791015625, -0.00916290283203125, -0.0198822021484375, 0.037628173828125, -0.0144195556640625, 0.01078033447265625, 0.00429534912109375, 0.03778076171875, -0.0011053085327148438, -0.01104736328125, -0.01080322265625, -0.047088623046875, -0.004573822021484375, 0.01190185546875, -0.01971435546875, -0.033233642578125, -0.002147674560546875, 0.01446533203125, 0.00878143310546875, -0.0017833709716796875, 0.037353515625, -0.0267791748046875, -0.0132598876953125, 0.032867431640625, -0.03125, -0.037078857421875, -0.0350341796875, 0.02655029296875, -0.01070404052734375, -0.034393310546875, 0.048858642578125, 0.0052642822265625, 0.0831298828125, 0.0122528076171875, 0.027618408203125, -0.0106658935546875, 0.00286102294921875, 0.0055389404296875, 0.00460052490234375, -0.037994384765625, -0.01494598388671875, -0.00603485107421875, 0.035797119140625, -0.029571533203125, -0.00933074951171875, 0.0022869110107421875, -0.005828857421875, -0.0094757080078125, -0.01088714599609375, -0.062225341796875, 0.01446533203125, -0.028717041015625, 0.0367431640625, 0.0540771484375, 0.032623291015625, -0.0193328857421875, 0.0013179779052734375, -0.00772857666015625, -0.0286865234375, -0.040802001953125, -0.02081298828125, -0.050323486328125, 0.005218505859375, 0.00543975830078125, 0.029541015625, -0.0051422119140625, 0.041595458984375, -0.0031223297119140625, -0.0208892822265625, -0.00909423828125, -0.0293121337890625, -0.0049591064453125, -0.01087188720703125, -0.00138092041015625, 0.0071258544921875, -0.012542724609375, 0.0230560302734375, -0.0173187255859375, 0.0167083740234375, 0.02294921875, -0.0033111572265625, 0.02960205078125, -0.11053466796875, 0.024749755859375, 0.0438232421875, 0.02056884765625, -0.041748046875, 0.010040283203125, 0.0650634765625, 0.040283203125, -0.00440216064453125, 0.01511383056640625, 0.0295257568359375, 0.027984619140625, 0.030792236328125, -0.0193634033203125, -0.02423095703125, 0.0306243896484375, -0.0655517578125, 0.01502227783203125, 0.03985595703125, 0.0120391845703125, -0.0169219970703125, -0.0102386474609375, 0.040985107421875, -0.0022602081298828125, -0.025665283203125, -0.01641845703125, -0.006534576416015625, 0.0034503936767578125, -0.04278564453125, -0.012725830078125, -0.016815185546875, -0.00391387939453125, -0.00887298583984375, 0.0167999267578125, -0.0426025390625, 0.0085601806640625, 0.017669677734375, -0.01654052734375, 0.0276947021484375, -0.00001627206802368164, -0.01032257080078125, -0.007518768310546875, 0.01419830322265625, -0.0390625, 0.0035152435302734375, -0.0224761962890625, -0.0172576904296875, -0.00045037269592285156, -0.0032958984375, 0.0007982254028320312, -0.052520751953125, -0.05950927734375, -0.058746337890625, -0.0196380615234375, 0.03466796875, -0.01227569580078125, -0.0019254684448242188, 0.050140380859375, -0.0211944580078125, 0.0048065185546875, -0.03216552734375, 0.0291595458984375, -0.035064697265625, 0.0014362335205078125, 0.055389404296875, 0.0223541259765625, -0.0302581787109375, 0.0024127960205078125, 0.013031005859375, 0.0274810791015625, -0.0012187957763671875, -0.011688232421875, 0.00736236572265625, -0.040283203125, 0.0158843994140625, -0.00489044189453125, 0.02752685546875, -0.0311279296875, -0.04412841796875, -0.0164031982421875, 0.005260467529296875, -0.0226898193359375, 0.0182342529296875, -0.01220703125, -0.0276641845703125, -0.01361846923828125, -0.01495361328125, -0.0044708251953125, 0.01024627685546875, -0.0196075439453125, 0.001277923583984375, -0.05438232421875, 0.0000025033950805664062, -0.0474853515625, -0.03656005859375, -0.039703369140625, 0.07855224609375, -0.00461578369140625, 0.038604736328125, -0.004909515380859375, 0.06671142578125, -0.00614166259765625, -0.035125732421875, -0.026641845703125, -0.036651611328125, 0.01285552978515625, -0.01313018798828125, 0.0002353191375732422, 0.0254058837890625, 0.0012254714965820312, -0.0015773773193359375, 0.006664276123046875, 0.048065185546875, -0.056182861328125, -0.01058197021484375, -0.0017557144165039062, 0.02618408203125, 0.044464111328125, -0.03997802734375, -0.0197296142578125, 0.06121826171875, 0.028411865234375, -0.012298583984375, 0.019256591796875, -0.0006556510925292969, -0.02923583984375, -0.08221435546875, -0.01319122314453125, 0.0008120536804199219, -0.0088958740234375, -0.0155792236328125, 0.019439697265625, 0.0115509033203125, 0.039215087890625, -0.0379638671875, 0.023651123046875, 0.005107879638671875, -0.00502777099609375, -0.042388916015625, -0.0615234375, -0.057098388671875, 0.056671142578125, -0.05096435546875, -0.0097503662109375, -0.043975830078125, 0.06243896484375, -0.025238037109375, -0.0234375, 0.035491943359375, -0.034393310546875, -0.0005540847778320312, -0.049468994140625, -0.01404571533203125, -0.0281524658203125, 0.068603515625, -0.0760498046875, -0.001560211181640625, 0.033843994140625, 0.025634765625, -0.0078582763671875, -0.04833984375, -0.050628662109375, -0.04534912109375, 0.004180908203125, 0.0190582275390625, 0.0019235610961914062, 0.0141754150390625, -0.053497314453125, 0.073974609375, -0.0186920166015625, -0.0004642009735107422, 0.0280303955078125, -0.06805419921875, 0.026885986328125, -0.00420379638671875, -0.00798797607421875, -0.007350921630859375, -0.00641632080078125, -0.06280517578125, -0.020416259765625, -0.00493621826171875, -0.030853271484375, 0.0310821533203125, 0.0121917724609375, 0.026397705078125, -0.025909423828125, 0.020263671875, -0.00789642333984375, 0.03570556640625, -0.054901123046875, -0.013946533203125, -0.007297515869140625, 0.018707275390625, -0.02606201171875, 0.010009765625, -0.0163421630859375, -0.00994110107421875, 0.00377655029296875, 0.00466156005859375, -0.04571533203125, -0.049896240234375, -0.041900634765625, -0.00560760498046875, -0.027435302734375, -0.01605224609375, 0.028717041015625, 0.04620361328125, 0.025238037109375, 0.0196380615234375, -0.019439697265625, -0.03387451171875, -0.02813720703125, -0.0694580078125, -0.0306243896484375, 0.02392578125, 0.042877197265625, 0.033050537109375, 0.03228759765625, -0.00803375244140625, -0.0223388671875, 0.04132080078125, 0.0625, 0.0194244384765625, 0.049346923828125, -0.023101806640625, 0.005092620849609375, 0.0614013671875, -0.01335906982421875, 0.0055084228515625, -0.00656890869140625, -0.006855010986328125, -0.039093017578125, 0.033111572265625, -0.031524658203125, 0.04132080078125, 0.0075836181640625, -0.0195159912109375, 0.0294647216796875, -0.04754638671875, 0.01325225830078125, 0.01910400390625, -0.039031982421875, -0.049560546875, -0.06640625, 0.0289154052734375, -0.08526611328125, 0.02337646484375, 0.0169219970703125, -0.005847930908203125, 0.03314208984375, -0.009124755859375, -0.01084136962890625, -0.017730712890625, -0.0161895751953125, 0.011322021484375, 0.032989501953125, -0.0054779052734375, 0.016082763671875, -0.0234527587890625, -0.01453399658203125, 0.07391357421875, 0.04864501953125, -0.026397705078125, 0.0063018798828125, 0.001979827880859375, 0.0293121337890625, -0.0182037353515625, -0.01421356201171875, 0.0295257568359375, 0.01442718505859375, -0.03265380859375, 0.01288604736328125, 0.0005397796630859375, -0.033355712890625, -0.03765869140625, 0.0034198760986328125, -0.0128936767578125, 0.0036373138427734375, 0.01409912109375, 0.047637939453125, -0.038299560546875, 0.041534423828125, -0.0093994140625, 0.052154541015625, 0.037750244140625, -0.006038665771484375, 0.022216796875, 0.0114288330078125, -0.0005240440368652344, -0.030609130859375, -0.018035888671875, -0.010162353515625, -0.031219482421875, 0.0304107666015625, 0.0079193115234375, 0.0662841796875, 0.05419921875, -0.04046630859375, 0.031036376953125, -0.02587890625, 0.037506103515625, 0.0909423828125, -0.010040283203125, 0.010009765625, 0.017913818359375, -0.005321502685546875, 0.01456451416015625, -0.00600433349609375, -0.01128387451171875, -0.00832366943359375, 0.00247955322265625, -0.00859832763671875, -0.035308837890625, 0.01065826416015625, 0.0249786376953125, 0.006519317626953125, 0.0247802734375, 0.01438140869140625, -0.08160400390625, -0.057464599609375, -0.0012750625610351562, 0.0148773193359375, 0.052276611328125, -0.008514404296875, -0.033599853515625, 0.004787445068359375, 0.0114288330078125, -0.00946044921875, 0.0027103424072265625, 0.06817626953125, 0.02081298828125, 0.0081939697265625, -0.025604248046875, -0.06964111328125, -0.045379638671875, -0.08599853515625, -0.02703857421875, -0.02777099609375, 0.045135498046875, 0.01873779296875, 0.0179595947265625, 0.00324249267578125, -0.038604736328125, -0.0037364959716796875, -0.013397216796875, 0.01552581787109375, -0.007343292236328125, -0.00534820556640625, 0.00390625, 0.0538330078125, 0.0288238525390625, 0.031280517578125, 0.007049560546875, -0.0306549072265625, -0.026123046875, 0.016387939453125, -0.0340576171875, -0.01136016845703125, -0.004268646240234375, -0.00803375244140625, -0.0372314453125, -0.0205535888671875, 0.00001049041748046875, 0.06103515625, -0.0080108642578125, 0.00991058349609375, -0.01139068603515625, -0.040863037109375, -0.042327880859375, 0.0087738037109375, 0.0294342041015625, -0.03436279296875, -0.00632476806640625, 0.00621795654296875, -0.0090789794921875, 0.0274810791015625, -0.016815185546875, 0.0174407958984375, 0.015716552734375, -0.0038204193115234375, -0.0005612373352050781, 0.048095703125, -0.00794219970703125, 0.043853759765625, 0.004398345947265625, 0.0223388671875, 0.047393798828125, -0.0006995201110839844, 0.01922607421875, -0.01226043701171875, 0.0294189453125, -0.01385498046875, -0.00811004638671875, 0.0202789306640625, -0.0211181640625, 0.0236358642578125, 0.01248931884765625, 0.046112060546875, -0.048126220703125, 0.0194091796875, -0.007904052734375, -0.0015707015991210938, 0.050384521484375, -0.0164642333984375, -0.006580352783203125, -0.08587646484375, 0.0858154296875, 0.0242767333984375, 0.00955963134765625, 0.027618408203125, -0.0335693359375, 0.00008779764175415039, -0.0275726318359375, 0.0234527587890625, -0.012176513671875, 0.0023059844970703125, -0.01885986328125, 0.01641845703125, -0.0156402587890625, -0.0193328857421875, 0.0170745849609375, 0.042510986328125, -0.0262603759765625, -0.034088134765625, 0.057373046875, 0.0039215087890625, -0.0148468017578125, 0.00400543212890625, 0.00836944580078125, -0.0221710205078125, 0.0369873046875, -0.0157623291015625, -0.01290130615234375, 0.03741455078125, -0.1029052734375, -0.06439208984375, -0.0290985107421875, 0.002956390380859375, 0.044219970703125, 0.01861572265625, 0.035369873046875, -0.0035839080810546875, -0.0239715576171875, -0.0003905296325683594, -0.0012350082397460938, 0.0601806640625, -0.042633056640625, -0.009429931640625, 0.048614501953125, -0.001995086669921875, -0.02899169921875, 0.0288543701171875, -0.0286407470703125, -0.03662109375, -0.0262451171875, 0.018310546875, -0.07220458984375, -0.003326416015625, 0.0268402099609375, -0.06854248046875, 0.052520751953125, 0.0655517578125, -0.005764007568359375, -0.01468658447265625, 0.0305633544921875, -0.05499267578125, -0.00794219970703125, -0.032623291015625, 0.063720703125, -0.058197021484375, 0.07537841796875, -0.06597900390625, -0.01425933837890625, 0.0248565673828125, 0.037384033203125, 0.07537841796875, 0.0202178955078125, -0.00246429443359375, 0.00643157958984375, 0.0435791015625, -0.01253509521484375, -0.050994873046875, 0.050506591796875, 0.0208282470703125, -0.0279998779296875, 0.0350341796875, 0.00353240966796875, 0.045166015625, -0.053253173828125, 0.0289764404296875, 0.01654052734375, -0.00949859619140625, -0.0244903564453125, -0.0114593505859375, 0.050445556640625, -0.0283050537109375, -0.01210784912109375, 0.01064300537109375, -0.001964569091796875, 0.0049591064453125, 0.02459716796875, 0.0289154052734375, 0.02081298828125, 0.063232421875, -0.0208282470703125, 0.05926513671875, 0.004322052001953125, -0.0029888153076171875, 0.0247955322265625, 0.006816864013671875, -0.0137939453125, 0.0221710205078125, -0.00879669189453125, 0.0223236083984375, 0.0015077590942382812, 0.004550933837890625, -0.01910400390625, 0.02734375, -0.0572509765625, -0.040313720703125, 0.0190277099609375, 0.03814697265625, -0.0018568038940429688, -0.01033782958984375, 0.01387786865234375, 0.01360321044921875, 0.0298309326171875, -0.029449462890625, 0.0513916015625, -0.0020999908447265625, 0.023468017578125, -0.0149078369140625, -0.02911376953125, -0.0211181640625, 0.046234130859375, -0.007171630859375, 0.0005335807800292969, 0.0153656005859375, -0.051361083984375, -0.0199432373046875, 0.007068634033203125, 0.0179290771484375, 0.0161895751953125, -0.0276641845703125, 0.07415771484375, 0.00749969482421875, 0.011322021484375, 0.01708984375, -0.015350341796875, -0.0099334716796875, -0.02752685546875, -0.017303466796875, -0.02777099609375, 0.012786865234375, 0.033416748046875, 0.010955810546875, 0.046875, 0.0137176513671875, 0.0293121337890625, 0.021209716796875, 0.0022830963134765625, 0.031707763671875, -0.0147705078125, 0.00817108154296875, -0.04949951171875, 0.020355224609375, 0.0220794677734375, -0.01139068603515625, 0.01165008544921875, -0.032257080078125, 0.061614990234375, -0.024871826171875, -0.0225982666015625, 0.0161895751953125, -0.02374267578125, 0.030914306640625, 0.02764892578125, -0.009857177734375, 0.004245758056640625, -0.0799560546875, -0.03155517578125, 0.0213165283203125, -0.0030384063720703125, 0.00945281982421875, 0.032073974609375, -0.037261962890625, 0.032073974609375, 0.0194549560546875, 0.0097198486328125, -0.019195556640625, -0.02020263671875, 0.032806396484375, 0.0003495216369628906, 0.002429962158203125, 0.0144195556640625, -0.086181640625, -0.0321044921875, -0.030487060546875, -0.003368377685546875, 0.0287628173828125, 0.040374755859375, 0.032257080078125, 0.0242767333984375, -0.031402587890625, 0.0127716064453125, -0.0264892578125, -0.03125, 0.03533935546875, 0.005298614501953125, -0.025054931640625, 0.00540924072265625, -0.0361328125, 0.05523681640625, 0.01702880859375, 0.004932403564453125, 0.05224609375, -0.015228271484375, -0.00634002685546875, -0.029388427734375, -0.0248565673828125, -0.04290771484375, -0.041351318359375, -0.031097412109375, -0.00847625732421875, 0.004306793212890625, 0.00777435302734375, -0.0007309913635253906, 0.054901123046875, -0.0061798095703125, 0.06634521484375, -0.041229248046875, 0.04095458984375, -0.1077880859375, 0.01352691650390625, -0.019989013671875, 0.0204315185546875, -0.021636962890625, -0.02435302734375, 0.01531219482421875, 0.00675201416015625, -0.0182037353515625, 0.00908660888671875, 0.0269012451171875, 0.0284423828125, 0.0094451904296875, 0.05938720703125, 0.0070648193359375, 0.0019931793212890625, -0.005657196044921875, 0.0031909942626953125, -0.0206146240234375, -0.0105743408203125, -0.01210784912109375, -0.048919677734375, -0.00933074951171875, -0.003681182861328125, -0.043365478515625, -0.002605438232421875, -0.0117950439453125, -0.0234832763671875, -0.00007873773574829102, 0.004169464111328125, -0.04449462890625, 0.01395416259765625, 0.007648468017578125, 0.00597381591796875, -0.03289794921875, 0.0118560791015625, -0.006999969482421875, 0.005825042724609375, -0.0297393798828125, -0.04718017578125, -0.0165557861328125, 0.0640869140625, -0.0269012451171875, 0.02117919921875, 0.0204620361328125, -0.03240966796875, -0.0106353759765625, 0.033203125, 0.042755126953125, 0.0743408203125, 0.03546142578125, -0.00286102294921875, 0.015167236328125, -0.0036220550537109375, -0.043853759765625, -0.031524658203125, 0.039794921875, -0.040069580078125, -0.04052734375, -0.034088134765625, 0.0262298583984375, 0.0390625, -0.037017822265625, -0.09991455078125, 0.08892822265625, -0.04864501953125, -0.028961181640625, -0.07647705078125, -0.0114593505859375, -0.00844573974609375, 0.03594970703125, -0.007137298583984375, -0.0087432861328125, -0.037139892578125, 0.05523681640625, 0.018157958984375, -0.0118255615234375, 0.038299560546875, 0.00868988037109375, -0.036346435546875, 0.01499176025390625, 0.023773193359375, -0.01444244384765625, -0.0180511474609375, -0.01390838623046875, 0.0018901824951171875, 0.023651123046875, -0.0369873046875, -0.07965087890625, 0.0111236572265625, 0.0206451416015625, -0.024139404296875, -0.016387939453125, -0.0052947998046875, 0.009674072265625, 0.031036376953125, 0.0538330078125, 0.001972198486328125, -0.0309906005859375, 0.049285888671875, -0.0341796875, -0.051544189453125, -0.043182373046875, 0.0160064697265625, -0.044281005859375, -0.0205078125, 0.0020503997802734375, 0.00804901123046875, -0.052276611328125, 0.0020313262939453125, -0.026519775390625, -0.034027099609375, -0.00860595703125, -0.01406097412109375, 0.0170440673828125, -0.0295867919921875, 0.03802490234375, -0.0257720947265625, -0.005130767822265625, 0.0089111328125, 0.016082763671875, 0.0006661415100097656, 0.0218353271484375, -0.0003418922424316406, -0.0251312255859375, -0.022186279296875, 0.03851318359375, -0.002384185791015625, 0.037384033203125, -0.03369140625, -0.032501220703125, 0.0004146099090576172, 0.0272216796875, 0.0034847259521484375, 0.053009033203125, -0.0015211105346679688, 0.016937255859375, 0.006649017333984375, 0.007205963134765625, -0.005855560302734375, 0.004039764404296875, -0.0176239013671875, 0.035552978515625, -0.0011959075927734375, -0.0119781494140625, 0.0311431884765625, -0.037811279296875, -0.0004563331604003906, 0.016021728515625, 0.01837158203125, -0.06268310546875, 0.06243896484375, 0.05108642578125, 0.025360107421875, 0.038116455078125 ]
9501976119a00b1b3754c0f08da1860008d014a2
Wordpress Stackexchange Q: How to Load Scripts and CSS for Admins Only When Editing or Adding Posts I have a plugin that will allow administrators to perform certain actions when adding or editing a post. I use a stylesheet and a javascript for this plugin that I want to include only when a post is being added or edited. Am I right to use the following action hooks? add_action('load-post.php', 'call_my_function'); add_action('load-post-new.php', 'call_my_function'); Inside of the function call_my_function I have: function call_my_function() { $plugin_directory = "/wp-content/plugins/".dirname(plugin_basename(__FILE__)); $jssrc = $plugin_directory.'/js/my_plugin.js'; wp_enqueue_script("my_plugin_js", $jssrc); $csssrc = $plugin_directory.'/css/my_plugin.css'; wp_enqueue_style("my_plugin_css", $csssrc); } The code above successfully loads the CSS and Javascript files when not called from the add_action hook. It does not work successfully when called from these hooks. A: you want to use admin_print_scripts-(page_hook) and admin_print_styles-(page_hook), so in your case: add_action('admin_print_scripts-post.php', 'call_my_function'); add_action('admin_print_scripts-post-new.php', 'call_my_function'); add_action('admin_print_styles-post.php', 'call_my_styles_function'); add_action('admin_print_styles-post-new.php', 'call_my_styles_function');
Q: How to Load Scripts and CSS for Admins Only When Editing or Adding Posts I have a plugin that will allow administrators to perform certain actions when adding or editing a post. I use a stylesheet and a javascript for this plugin that I want to include only when a post is being added or edited. Am I right to use the following action hooks? add_action('load-post.php', 'call_my_function'); add_action('load-post-new.php', 'call_my_function'); Inside of the function call_my_function I have: function call_my_function() { $plugin_directory = "/wp-content/plugins/".dirname(plugin_basename(__FILE__)); $jssrc = $plugin_directory.'/js/my_plugin.js'; wp_enqueue_script("my_plugin_js", $jssrc); $csssrc = $plugin_directory.'/css/my_plugin.css'; wp_enqueue_style("my_plugin_css", $csssrc); } The code above successfully loads the CSS and Javascript files when not called from the add_action hook. It does not work successfully when called from these hooks. A: you want to use admin_print_scripts-(page_hook) and admin_print_styles-(page_hook), so in your case: add_action('admin_print_scripts-post.php', 'call_my_function'); add_action('admin_print_scripts-post-new.php', 'call_my_function'); add_action('admin_print_styles-post.php', 'call_my_styles_function'); add_action('admin_print_styles-post-new.php', 'call_my_styles_function'); A: It does not work successfully when called from these hooks. I suggest you check the source of the page, those hooks work just fine for enqueues. I copied your code to check anyway, and i see both the stylesheet and script enqueued when using the hooks.. The way you're loading the enqueues looks wrong though, i'd suggest the following.. function call_my_function() { wp_enqueue_script("my_plugin_js", plugins_url( '/js/my_plugin.js', __FILE__ ) ); wp_enqueue_style("my_plugin_css", plugins_url( '/css/my_plugin.css', __FILE__ ) ); } A: this one works for me, including the scripts on a customsubmenu page anyway: add_action('admin_menu', 'register_my_custom_submenu_pages'); function register_my_custom_submenu_pages() { $email_menu = add_submenu_page( 'edit.php?post_type=events', 'Email Users', 'Email Users', 'edit_others_posts', 'email', 'email_callback' ); add_action( 'admin_print_styles-' . $email_menu, 'email_custom_css' ); add_action( 'admin_print_scripts-' . $email_menu, 'email_custom_js' ); } function email_callback() { echo '<div class="wrap">'; echo '<h2>'.get_admin_page_title().'</h2>'; include get_stylesheet_directory() . '/admin/email.php'; echo '</div>'; } function email_custom_css() { wp_enqueue_style( 'chosen',get_stylesheet_directory_uri().'/js/chosen/chosen.min.css' ); }; function email_custom_js() { wp_enqueue_script( 'chosen', get_stylesheet_directory_uri().'/js/chosen/chosen.jquery.min.js', array('jquery')); }; shorthand this could translate for you to: add_action( 'admin_print_styles-post.php', 'custom_css_load' ); add_action( 'admin_print_styles-post-new.php', 'custom_css_load' ); add_action( 'admin_print_scripts-post.php', 'custom_js_load' ); add_action( 'admin_print_scripts-post-new.php', 'custom_js_load' ); function custom_css_load() { wp_enqueue_style( 'my_styles', plugins_url( '/css/my_plugin.css', __FILE__ ) ); }; function custom_js_load() { wp_enqueue_script( 'my_scripts', plugins_url( '/js/my_plugin.js', __FILE__ ), array('jquery')); }; Don't forget to load after jQuery if your js code depents on it. I dit not test this, so do with it as you please :)
wordpress
{ "language": "en", "length": 362, "provenance": "stackexchange_00019.jsonl.gz:411099", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22354" }
[ 0.051025390625, 0.005931854248046875, -0.016387939453125, -0.04541015625, 0.00490570068359375, -0.036529541015625, 0.0035648345947265625, -0.01146697998046875, -0.06689453125, 0.0031795501708984375, -0.02069091796875, 0.040557861328125, -0.0648193359375, -0.020904541015625, 0.02752685546875, -0.059417724609375, 0.05682373046875, -0.04742431640625, 0.006999969482421875, -0.00551605224609375, 0.00820159912109375, 0.0302886962890625, 0.0113525390625, 0.08135986328125, -0.014678955078125, 0.00650787353515625, 0.07916259765625, -0.01556396484375, 0.007293701171875, -0.0251007080078125, 0.003826141357421875, -0.036651611328125, 0.01296234130859375, 0.036651611328125, -0.015716552734375, -0.01209259033203125, 0.057098388671875, 0.0005173683166503906, -0.00015974044799804688, 0.041778564453125, 0.0238037109375, -0.0011167526245117188, -0.0009198188781738281, 0.03607177734375, -0.0199737548828125, -0.031829833984375, 0.019927978515625, -0.033721923828125, -0.00261688232421875, -0.01003265380859375, -0.004665374755859375, -0.0066680908203125, 0.00246429443359375, 0.0189361572265625, 0.001068115234375, 0.025146484375, -0.036102294921875, 0.0242156982421875, 0.02606201171875, 0.03125, -0.0158843994140625, -0.01320648193359375, -0.002323150634765625, -0.048797607421875, 0.005687713623046875, 0.007038116455078125, 0.01361083984375, 0.0053253173828125, -0.042022705078125, 0.02301025390625, 0.0250396728515625, -0.051849365234375, 0.00418853759765625, -0.02740478515625, -0.0121612548828125, -0.0160064697265625, 0.0221710205078125, -0.0305938720703125, 0.0030231475830078125, -0.00502777099609375, 0.00814056396484375, 0.0045013427734375, -0.0142974853515625, 0.0091705322265625, -0.024566650390625, 0.017333984375, -0.021392822265625, -0.00962066650390625, -0.033721923828125, -0.02783203125, -0.03155517578125, -0.0198822021484375, -0.0102081298828125, -0.056427001953125, -0.0213165283203125, -0.0399169921875, 0.006381988525390625, 0.052459716796875, -0.001758575439453125, 0.02471923828125, -0.04010009765625, -0.01406097412109375, 0.00772857666015625, -0.038848876953125, -0.003284454345703125, 0.085205078125, 0.016326904296875, 0.0162811279296875, 0.01180267333984375, 0.006465911865234375, 0.02294921875, -0.03680419921875, -0.0007200241088867188, 0.0067291259765625, -0.0191192626953125, -0.015716552734375, -0.049468994140625, 0.02203369140625, -0.01435089111328125, 0.020477294921875, -0.008087158203125, -0.0025768280029296875, 0.01104736328125, -0.0176544189453125, 0.0142669677734375, -0.014862060546875, -0.03228759765625, -0.005279541015625, 0.02850341796875, -0.0174102783203125, -0.0096588134765625, 0.034027099609375, 0.039337158203125, 0.004913330078125, -0.01552581787109375, 0.004482269287109375, -0.0013875961303710938, 0.005588531494140625, -0.0209503173828125, -0.028350830078125, 0.01065826416015625, -0.0209197998046875, -0.01457977294921875, -0.029998779296875, -0.01788330078125, -0.021392822265625, -0.003513336181640625, 0.0204010009765625, 0.006839752197265625, 0.00041413307189941406, 0.00390625, -0.0264739990234375, 0.03546142578125, -0.00623321533203125, 0.01715087890625, -0.037384033203125, 0.048980712890625, -0.0270233154296875, -0.004413604736328125, -0.0308685302734375, 0.00928497314453125, 0.0225372314453125, 0.026519775390625, -0.0428466796875, -0.03436279296875, -0.04541015625, -0.0279541015625, -0.0081024169921875, 0.0246734619140625, -0.036346435546875, 0.0166015625, -0.0294342041015625, 0.0239410400390625, 0.0036945343017578125, -0.006984710693359375, 0.0301361083984375, -0.0164337158203125, 0.042510986328125, 0.04046630859375, -0.0406494140625, -0.034454345703125, -0.03656005859375, 0.0887451171875, -0.032928466796875, -0.04345703125, -0.014251708984375, 0.02447509765625, 0.06243896484375, 0.0247039794921875, 0.033172607421875, 0.03076171875, -0.01378631591796875, 0.016021728515625, -0.0286102294921875, -0.0115203857421875, -0.0014591217041015625, -0.0019502639770507812, 0.020721435546875, -0.015350341796875, 0.0032958984375, 0.0217742919921875, -0.01129150390625, 0.02178955078125, -0.007801055908203125, -0.01995849609375, -0.007564544677734375, -0.0262298583984375, 0.0209808349609375, 0.006191253662109375, 0.005840301513671875, -0.009796142578125, -0.01459503173828125, 0.006664276123046875, -0.020477294921875, -0.01441192626953125, 0.037353515625, -0.0267181396484375, 0.051177978515625, 0.01457977294921875, 0.041595458984375, 0.021881103515625, -0.048828125, 0.0288848876953125, -0.028656005859375, 0.00496673583984375, 0.00170135498046875, -0.0191497802734375, -0.0194549560546875, -0.007442474365234375, -0.0078582763671875, -0.0018863677978515625, 0.06341552734375, 0.01114654541015625, 0.0826416015625, -0.0013666152954101562, -0.0251007080078125, -0.01261138916015625, -0.036041259765625, 0.03948974609375, 0.0199432373046875, 0.03570556640625, 0.0082244873046875, 0.014404296875, 0.0189056396484375, 0.05230712890625, -0.0140838623046875, 0.0289154052734375, -0.016754150390625, -0.0238037109375, 0.0212554931640625, -0.002685546875, -0.001338958740234375, 0.011932373046875, -0.046875, -0.0340576171875, 0.04498291015625, 0.007747650146484375, -0.005199432373046875, -0.0211334228515625, 0.0005860328674316406, 0.0301971435546875, 0.0211029052734375, -0.045379638671875, 0.023223876953125, 0.0161895751953125, -0.007297515869140625, 0.002033233642578125, 0.00597381591796875, -0.0247650146484375, -0.0211334228515625, 0.0325927734375, 0.0113372802734375, -0.00479888916015625, 0.056732177734375, 0.0007405281066894531, -0.037139892578125, -0.03253173828125, 0.0008068084716796875, -0.0205841064453125, 0.010894775390625, 0.0038204193115234375, 0.0235443115234375, -0.01227569580078125, -0.009368896484375, -0.0113677978515625, -0.045928955078125, 0.00997161865234375, 0.00565338134765625, 0.045013427734375, 0.0231781005859375, 0.03253173828125, 0.0240631103515625, 0.0056915283203125, 0.038360595703125, 0.024566650390625, -0.0259552001953125, 0.04949951171875, 0.0156097412109375, 0.02374267578125, 0.01207733154296875, 0.0634765625, 0.0482177734375, 0.00849151611328125, 0.00884246826171875, -0.0174713134765625, 0.03839111328125, 0.00817108154296875, 0.001361846923828125, -0.01186370849609375, -0.039459228515625, 0.005340576171875, 0.00043892860412597656, 0.0408935546875, 0.0439453125, -0.006317138671875, -0.04986572265625, -0.03082275390625, 0.02069091796875, -0.09814453125, -0.09124755859375, -0.05218505859375, -0.1282958984375, 0.0088653564453125, -0.00994110107421875, -0.061981201171875, 0.003719329833984375, 0.0286102294921875, 0.032806396484375, -0.017059326171875, -0.01325225830078125, -0.001338958740234375, -0.009002685546875, -0.03363037109375, -0.0112152099609375, 0.0126800537109375, -0.0091552734375, 0.01396942138671875, 0.06512451171875, 0.0175628662109375, -0.06781005859375, 0.0308074951171875, -0.036041259765625, -0.02276611328125, 0.04901123046875, 0.0174713134765625, -0.0277557373046875, -0.00022137165069580078, 0.01043701171875, 0.00780487060546875, 0.0168609619140625, -0.0081787109375, -0.007419586181640625, -0.037109375, -0.033935546875, -0.01546478271484375, 0.04107666015625, 0.03515625, -0.03143310546875, 0.028045654296875, -0.041168212890625, 0.0198211669921875, -0.0303497314453125, -0.015380859375, 0.0292816162109375, -0.0020847320556640625, -0.0111541748046875, 0.0155181884765625, 0.01502227783203125, 0.041839599609375, 0.01507568359375, 0.01629638671875, 0.0097808837890625, -0.00015079975128173828, -0.01666259765625, 0.0189666748046875, -0.036773681640625, 0.0028533935546875, -0.010040283203125, 0.0011196136474609375, -0.0219879150390625, 0.025665283203125, -0.00923919677734375, 0.0241241455078125, -0.0266265869140625, -0.020782470703125, 0.0212249755859375, -0.02374267578125, 0.01076507568359375, -0.03717041015625, -0.0009002685546875, -0.0274658203125, 0.052032470703125, -0.037139892578125, 0.004787445068359375, -0.033172607421875, 0.0187530517578125, -0.07843017578125, -0.109619140625, -0.0242919921875, 0.03387451171875, -0.1260986328125, -0.0003409385681152344, -0.01739501953125, -0.046142578125, 0.0031147003173828125, 0.007106781005859375, -0.0703125, -0.06304931640625, 0.038665771484375, -0.0024471282958984375, -0.01222991943359375, 0.0127410888671875, -0.0216217041015625, -0.017364501953125, -0.0259857177734375, 0.0034942626953125, -0.122802734375, -0.002445220947265625, -0.0811767578125, 0.10296630859375, 0.035247802734375, -0.0148468017578125, -0.034515380859375, 0.033905029296875, -0.0008492469787597656, 0.029571533203125, -0.002155303955078125, 0.024383544921875, -0.020751953125, -0.059051513671875, -0.00940704345703125, -0.051849365234375, -0.0203857421875, 0.020111083984375, -0.016845703125, 0.01104736328125, -0.0190582275390625, -0.04779052734375, 0.0340576171875, -0.03167724609375, -0.053985595703125, -0.020751953125, 0.0014705657958984375, -0.0203857421875, 0.0027179718017578125, -0.0239715576171875, -0.0219268798828125, -0.0302276611328125, 0.0024871826171875, -0.0169219970703125, -0.0247955322265625, -0.00804901123046875, 0.0118560791015625, 0.0374755859375, -0.0017747879028320312, 0.027618408203125, 0.025115966796875, 0.0252227783203125, -0.0309906005859375, 0.04290771484375, 0.0390625, -0.0197296142578125, 0.037689208984375, -0.003673553466796875, -0.00978851318359375, -0.0389404296875, 0.061187744140625, 0.004199981689453125, -0.0126495361328125, 0.0093841552734375, -0.020050048828125, 0.01995849609375, 0.01282501220703125, -0.0016460418701171875, -0.0163421630859375, 0.002407073974609375, 0.038421630859375, -0.0177459716796875, 0.0232391357421875, -0.026641845703125, -0.0009398460388183594, -0.0142822265625, 0.0006098747253417969, 0.048736572265625, 0.06561279296875, -0.02532958984375, 0.00893402099609375, 0.01374053955078125, -0.01187896728515625, 0.034027099609375, 0.0258331298828125, 0.005489349365234375, 0.014739990234375, 0.040130615234375, -0.0174560546875, -0.0009407997131347656, -0.00608062744140625, 0.0033550262451171875, -0.023162841796875, -0.0640869140625, -0.0543212890625, 0.0022830963134765625, 0.07635498046875, 0.018951416015625, 0.0225677490234375, 0.02301025390625, 0.01343536376953125, -0.03253173828125, -0.027191162109375, 0.058746337890625, -0.027984619140625, -0.042877197265625, 0.01287841796875, 0.0282745361328125, -0.03717041015625, 0.0010747909545898438, 0.0267181396484375, 0.06396484375, -0.01824951171875, -0.02972412109375, 0.02978515625, 0.0020771026611328125, 0.0103302001953125, -0.0110321044921875, 0.03143310546875, 0.007030487060546875, -0.003879547119140625, 0.020538330078125, -0.053955078125, 0.047332763671875, 0.0309600830078125, 0.0292205810546875, 0.00211334228515625, -0.061920166015625, 0.0254058837890625, -0.025482177734375, -0.0328369140625, 0.00891876220703125, 0.0110626220703125, -0.00814056396484375, -0.0234527587890625, 0.030120849609375, 0.03643798828125, 0.044677734375, 0.006198883056640625, 0.04931640625, 0.03741455078125, 0.04840087890625, -0.037261962890625, -0.0195159912109375, 0.01971435546875, 0.0294647216796875, -0.0322265625, -0.0120086669921875, 0.015869140625, -0.031005859375, -0.026397705078125, -0.0140228271484375, -0.00629425048828125, 0.0201263427734375, 0.0029010772705078125, 0.019805908203125, -0.0248870849609375, -0.0207061767578125, -0.035064697265625, -0.0004940032958984375, 0.062744140625, 0.02069091796875, -0.0445556640625, -0.02398681640625, -0.03839111328125, -0.03125, -0.049713134765625, -0.04315185546875, -0.024749755859375, 0.00928497314453125, 0.005889892578125, 0.00803375244140625, -0.01715087890625, -0.02130126953125, -0.0267791748046875, 0.036529541015625, 0.056427001953125, 0.08544921875, -0.0144500732421875, 0.0955810546875, -0.033843994140625, 0.036285400390625, -0.007801055908203125, 0.033935546875, -0.029266357421875, 0.01104736328125, -0.027618408203125, -0.04705810546875, 0.00015914440155029297, 0.022064208984375, -0.008514404296875, 0.056121826171875, 0.060699462890625, 0.01216888427734375, 0.005615234375, 0.01267242431640625, 0.005340576171875, -0.019012451171875, -0.0096588134765625, 0.0244598388671875, 0.01026153564453125, 0.004383087158203125, -0.020843505859375, -0.0003509521484375, -0.00885009765625, -0.04937744140625, 0.06854248046875, -0.0035152435302734375, 0.051513671875, 0.0014133453369140625, -0.00849151611328125, 0.035186767578125, -0.01224517822265625, -0.002384185791015625, 0.0137786865234375, -0.0098114013671875, 0.0264434814453125, -0.0007023811340332031, 0.0182342529296875, 0.034454345703125, -0.0347900390625, 0.02203369140625, -0.0178985595703125, 0.0164642333984375, 0.029937744140625, -0.01180267333984375, 0.01284027099609375, 0.061492919921875, 0.04803466796875, -0.10400390625, 0.005611419677734375, -0.0178680419921875, 0.004161834716796875, 0.0606689453125, -0.00891876220703125, -0.00551605224609375, -0.005649566650390625, 0.047149658203125, 0.01056671142578125, -0.008392333984375, 0.0333251953125, 0.016265869140625, -0.006862640380859375, -0.005786895751953125, -0.01629638671875, -0.0091400146484375, -0.0288848876953125, -0.0193023681640625, 0.0150604248046875, -0.0296783447265625, -0.0037326812744140625, -0.01288604736328125, -0.0056304931640625, -0.046539306640625, -0.048065185546875, -0.001220703125, -0.01012420654296875, -0.0235595703125, 0.0264739990234375, 0.0228271484375, 0.060791015625, 0.036285400390625, 0.028961181640625, -0.03216552734375, 0.002315521240234375, 0.01507568359375, 0.00281524658203125, -0.046112060546875, 0.0036029815673828125, 0.031005859375, -0.03070068359375, 0.01568603515625, 0.034088134765625, -0.037689208984375, -0.0099029541015625, -0.02081298828125, 0.0345458984375, -0.0156402587890625, -0.0333251953125, -0.004039764404296875, 0.0010080337524414062, 0.01284027099609375, -0.00638580322265625, 0.007404327392578125, -0.0577392578125, -0.02545166015625, -0.0002340078353881836, -0.05712890625, -0.02142333984375, -0.0256805419921875, -0.05242919921875, 0.094482421875, -0.0241546630859375, 0.0111541748046875, 0.0080108642578125, 0.03204345703125, -0.0225067138671875, 0.0102386474609375, -0.02191162109375, 0.049560546875, -0.00963592529296875, -0.01010894775390625, -0.03399658203125, 0.0188446044921875, -0.0191192626953125, -0.00835418701171875, 0.01554107666015625, -0.0014743804931640625, -0.05169677734375, 0.00507354736328125, 0.05462646484375, 0.043487548828125, 0.044036865234375, 0.0280303955078125, -0.00875091552734375, -0.0165252685546875, 0.01296234130859375, 0.005466461181640625, 0.026458740234375, 0.0021820068359375, -0.03961181640625, 0.02960205078125, -0.0199737548828125, -0.03839111328125, 0.00638580322265625, 0.0007152557373046875, -0.04571533203125, 0.0212554931640625, 0.0227508544921875, 0.01186370849609375, -0.01451873779296875, 0.0054473876953125, -0.005161285400390625, -0.0177001953125, -0.047760009765625, -0.0016794204711914062, 0.006938934326171875, 0.02093505859375, -0.037689208984375, -0.0215606689453125, 0.00518798828125, -0.03680419921875, -0.0075531005859375, -0.0295257568359375, 0.02081298828125, 0.00028824806213378906, 0.025848388671875, 0.0170440673828125, 0.030059814453125, -0.007030487060546875, 0.037994384765625, -0.0152587890625, 0.0165252685546875, -0.03521728515625, -0.00817108154296875, 0.01398468017578125, -0.0005211830139160156, -0.01241302490234375, 0.0295562744140625, 0.027496337890625, -0.0019817352294921875, -0.00016641616821289062, -0.029754638671875, -0.0252532958984375, 0.025787353515625, 0.0250396728515625, 0.01033782958984375, 0.0035572052001953125, 0.0030231475830078125, -0.0258636474609375, -0.037933349609375, -0.00875091552734375, 0.0165252685546875, 0.048797607421875, 0.01073455810546875, 0.03594970703125, -0.0274810791015625, -0.0272674560546875, -0.036712646484375, 0.01104736328125, 0.01513671875, 0.0213623046875, -0.0276336669921875, 0.0119476318359375, -0.01361083984375, 0.0298004150390625, 0.006130218505859375, 0.0201416015625, 0.036651611328125, 0.0027923583984375, -0.06658935546875, 0.00445556640625, 0.0215606689453125, -0.037445068359375, -0.00778961181640625, -0.0115814208984375, -0.00017559528350830078, -0.0082550048828125, -0.002063751220703125, 0.001483917236328125, 0.044097900390625, -0.0208892822265625, -0.052886962890625, 0.0220947265625, -0.0018568038940429688, -0.0190277099609375, 0.036865234375, -0.0014009475708007812, 0.048065185546875, -0.009307861328125, -0.03717041015625, 0.0121307373046875, -0.06927490234375, -0.0165557861328125, 0.0281524658203125, 0.0299072265625, -0.0287628173828125, 0.05682373046875, 0.053619384765625, -0.040130615234375, -0.002685546875, 0.0357666015625, 0.0321044921875, -0.0018682479858398438, 0.0031528472900390625, 0.01177978515625, 0.0245208740234375, 0.0013055801391601562, -0.0206756591796875, 0.059356689453125, 0.0235595703125, 0.0675048828125, -0.06353759765625, 0.033966064453125, 0.024200439453125, 0.0411376953125, -0.0209808349609375, -0.01113128662109375, 0.042449951171875, -0.041107177734375, -0.006214141845703125, -0.003955841064453125, -0.033111572265625, -0.0016307830810546875, 0.022796630859375, -0.0048828125, 0.006526947021484375, 0.004917144775390625, 0.02001953125, -0.0121307373046875, 0.0760498046875, -0.0211181640625, -0.045745849609375, -0.035797119140625, -0.006282806396484375, -0.0003876686096191406, 0.004940032958984375, 0.0106353759765625, 0.0245513916015625, 0.0020599365234375, -0.0220489501953125, 0.0148468017578125, -0.0143280029296875, 0.0170440673828125, 0.024658203125, -0.0274505615234375, -0.003223419189453125, 0.023101806640625, 0.0004553794860839844, 0.0213775634765625, 0.027099609375, 0.0247344970703125, 0.0242462158203125, 0.01114654541015625, 0.0309906005859375, 0.032379150390625, 0.061248779296875, 0.0005950927734375, 0.0201416015625, 0.0182952880859375, -0.0103759765625, -0.01294708251953125, -0.0096893310546875, -0.03289794921875, -0.047576904296875, 0.012176513671875, 0.0152435302734375, 0.0067138671875, -0.0552978515625, -0.0257415771484375, 0.01386260986328125, 0.019378662109375, -0.0024280548095703125, -0.076904296875, 0.05328369140625, -0.048095703125, 0.0323486328125, -0.0187835693359375, 0.00893402099609375, -0.004123687744140625, 0.045318603515625, -0.037139892578125, -0.03997802734375, -0.0127410888671875, 0.0455322265625, -0.032806396484375, 0.03460693359375, 0.051605224609375, -0.024383544921875, 0.005321502685546875, 0.038177490234375, 0.01517486572265625, 0.08984375, -0.0184783935546875, 0.0031299591064453125, 0.0165252685546875, 0.02862548828125, -0.0191802978515625, -0.057098388671875, -0.022796630859375, 0.0230712890625, 0.0174102783203125, -0.01557159423828125, 0.024505615234375, 0.0200958251953125, -0.028228759765625, -0.05712890625, 0.0198516845703125, 0.0013751983642578125, -0.033172607421875, -0.0450439453125, -0.006160736083984375, 0.0195465087890625, -0.009185791015625, -0.0186004638671875, -0.035491943359375, -0.062164306640625, 0.02081298828125, 0.023834228515625, -0.00691986083984375, 0.048065185546875, -0.0250701904296875, -0.042724609375, 0.01111602783203125, 0.0141448974609375, 0.0145263671875, 0.0042572021484375, -0.02215576171875, 0.046478271484375, 0.0305328369140625, -0.031158447265625, 0.009033203125, 0.027679443359375, 0.007129669189453125, -0.0019130706787109375, -0.0516357421875, -0.05755615234375, 0.0023479461669921875, 0.12152099609375, 0.05340576171875, 0.035614013671875, -0.0609130859375, -0.010345458984375, -0.038482666015625, -0.0285491943359375, 0.004192352294921875, 0.0222625732421875, -0.036834716796875, 0.02301025390625, 0.01812744140625, 0.01036834716796875, 0.0062713623046875, -0.0022125244140625, -0.01224517822265625, -0.0258636474609375, 0.010772705078125, -0.0030498504638671875, -0.0273895263671875, -0.0391845703125, 0.075927734375, -0.038604736328125, 0.0291595458984375, 0.0169219970703125, 0.011932373046875, 0.059173583984375, 0.0645751953125, -0.0180206298828125, 0.0250396728515625, -0.038970947265625, 0.011627197265625, -0.009002685546875, 0.032073974609375, -0.045989990234375, 0.0111236572265625, 0.02911376953125, -0.0014715194702148438, -0.0254974365234375, -0.0220489501953125, 0.0272979736328125, 0.01335906982421875, -0.0574951171875, 0.0909423828125, -0.03863525390625, 0.01788330078125, -0.01361083984375, 0.01983642578125, 0.027801513671875, -0.0040283203125, 0.07354736328125, -0.010040283203125, -0.017242431640625, -0.0191650390625, -0.02117919921875, -0.0841064453125, 0.040283203125, -0.0262298583984375, 0.01119232177734375, 0.033721923828125 ]
bbbb1de8ec15cc2201920914b328c445bc35fc27
Wordpress Stackexchange Q: How do I remove a rewrite rule? I've added a rewrite rule with the following code, and now I need to remove it. add_rewrite_rule('^events$', 'index.php?post_type=events', 'top'); My issue is not that the rule is not working. It is that the rule is already added, and I want to get rid of it. Does deleting the add_rewrite_rule() line of code and flushing the rules get rid of it? A: the flush_rewrite_rules() function will delete and regenerate the rewrite rules. you can also visit the permalinks settings page in admin and save, that triggers a flush as well.
Q: How do I remove a rewrite rule? I've added a rewrite rule with the following code, and now I need to remove it. add_rewrite_rule('^events$', 'index.php?post_type=events', 'top'); My issue is not that the rule is not working. It is that the rule is already added, and I want to get rid of it. Does deleting the add_rewrite_rule() line of code and flushing the rules get rid of it? A: the flush_rewrite_rules() function will delete and regenerate the rewrite rules. you can also visit the permalinks settings page in admin and save, that triggers a flush as well.
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:411100", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22355" }
[ 0.061981201171875, -0.002361297607421875, -0.01012420654296875, -0.04437255859375, 0.013763427734375, -0.0284576416015625, 0.036468505859375, 0.005985260009765625, -0.0171661376953125, 0.017669677734375, 0.033111572265625, -0.00025391578674316406, 0.0011272430419921875, -0.06353759765625, 0.0167694091796875, 0.003681182861328125, 0.01910400390625, -0.0160064697265625, 0.001247406005859375, -0.0276336669921875, 0.029541015625, 0.0016736984252929688, 0.0168304443359375, 0.04473876953125, 0.004375457763671875, 0.00986480712890625, 0.10028076171875, -0.01023101806640625, -0.003902435302734375, -0.02947998046875, 0.0145416259765625, 0.0011873245239257812, -0.0020275115966796875, 0.0640869140625, -0.043975830078125, 0.020233154296875, -0.0200347900390625, 0.02667236328125, 0.030426025390625, -0.0004107952117919922, 0.0220184326171875, -0.0222930908203125, 0.0199127197265625, 0.01031494140625, -0.015228271484375, -0.0073089599609375, 0.0146026611328125, -0.0267791748046875, -0.006084442138671875, -0.03619384765625, 0.034881591796875, 0.0308837890625, 0.038543701171875, 0.00983428955078125, -0.01503753662109375, 0.0113525390625, 0.00597381591796875, -0.018402099609375, 0.00566864013671875, 0.002216339111328125, 0.00623321533203125, 0.031341552734375, 0.0174407958984375, 0.00876617431640625, -0.02520751953125, 0.006000518798828125, 0.0029468536376953125, 0.00029754638671875, -0.0176544189453125, -0.021148681640625, 0.02239990234375, -0.005279541015625, -0.0161590576171875, -0.006000518798828125, 0.00893402099609375, -0.009124755859375, 0.0002467632293701172, -0.0138702392578125, -0.0090484619140625, 0.04534912109375, 0.0297698974609375, -0.042572021484375, -0.0027313232421875, 0.00763702392578125, 0.00836181640625, 0.01149749755859375, -0.003604888916015625, -0.005519866943359375, -0.0308685302734375, -0.023834228515625, -0.0215301513671875, -0.035919189453125, -0.042449951171875, 0.018646240234375, -0.0029144287109375, -0.0182037353515625, 0.04998779296875, 0.0416259765625, -0.021209716796875, -0.0193023681640625, 0.0374755859375, -0.054656982421875, 0.018157958984375, -0.036712646484375, 0.0207366943359375, 0.0325927734375, 0.0026702880859375, -0.00872039794921875, 0.04913330078125, 0.0020313262939453125, 0.002532958984375, 0.0399169921875, 0.00637054443359375, 0.035888671875, -0.05010986328125, -0.032989501953125, -0.0533447265625, 0.00695037841796875, -0.0183563232421875, 0.01271820068359375, 0.022369384765625, 0.048248291015625, -0.05084228515625, -0.012420654296875, 0.007568359375, -0.00618743896484375, -0.01161956787109375, -0.0031795501708984375, 0.0258636474609375, 0.0203399658203125, -0.03741455078125, 0.0155029296875, 0.04376220703125, 0.0084381103515625, 0.0004394054412841797, -0.0216522216796875, 0.054656982421875, -0.026336669921875, -0.0108489990234375, 0.043365478515625, 0.02789306640625, -0.066162109375, -0.040557861328125, 0.032745361328125, 0.017852783203125, 0.032012939453125, 0.0103912353515625, 0.010650634765625, -0.0011644363403320312, -0.0273284912109375, -0.018798828125, -0.040496826171875, 0.061737060546875, -0.005962371826171875, -0.024444580078125, -0.029632568359375, 0.0367431640625, -0.0399169921875, -0.032379150390625, -0.04449462890625, 0.03497314453125, 0.01134490966796875, 0.019317626953125, 0.015777587890625, -0.01275634765625, -0.032073974609375, -0.0772705078125, -0.0084381103515625, 0.020416259765625, -0.0263214111328125, 0.044525146484375, -0.01837158203125, -0.00235748291015625, 0.007411956787109375, 0.006275177001953125, 0.023223876953125, 0.0294036865234375, -0.01666259765625, -0.040008544921875, 0.119140625, 0.01263427734375, -0.039947509765625, -0.039642333984375, -0.01148223876953125, -0.069580078125, 0.07769775390625, -0.002254486083984375, 0.06005859375, -0.01287078857421875, -0.006076812744140625, 0.057586669921875, 0.054351806640625, 0.00396728515625, -0.057159423828125, -0.003787994384765625, 0.007808685302734375, 0.0109405517578125, 0.001537322998046875, -0.0069427490234375, 0.00954437255859375, -0.028472900390625, 0.031585693359375, -0.028045654296875, 0.0158233642578125, -0.05316162109375, 0.03509521484375, -0.025604248046875, 0.05560302734375, -0.002864837646484375, 0.0135040283203125, 0.0323486328125, 0.04168701171875, -0.059417724609375, -0.0264129638671875, -0.018157958984375, 0.03265380859375, 0.041290283203125, 0.04205322265625, -0.0029659271240234375, 0.0328369140625, -0.01331329345703125, -0.021942138671875, -0.0150909423828125, -0.002288818359375, 0.0265960693359375, -0.0273590087890625, -0.0404052734375, -0.03741455078125, -0.031341552734375, -0.029632568359375, -0.029998779296875, 0.09954833984375, 0.01293182373046875, 0.0302581787109375, -0.014892578125, 0.00315093994140625, -0.00397491455078125, -0.050079345703125, -0.002368927001953125, 0.032257080078125, 0.027099609375, 0.04241943359375, -0.00875091552734375, 0.01036834716796875, 0.004505157470703125, -0.0426025390625, 0.014923095703125, -0.006198883056640625, -0.00649261474609375, 0.033538818359375, 0.0213623046875, -0.00873565673828125, 0.0063323974609375, 0.0023345947265625, -0.0087432861328125, 0.0080108642578125, 0.0016870498657226562, 0.0020160675048828125, -0.006298065185546875, 0.0168609619140625, 0.0083160400390625, -0.01116180419921875, -0.02117919921875, -0.01129150390625, 0.0224761962890625, -0.013336181640625, -0.01305389404296875, -0.010894775390625, -0.01690673828125, 0.007717132568359375, 0.0269317626953125, -0.0286865234375, -0.0244903564453125, 0.0273590087890625, 0.0457763671875, -0.0202484130859375, -0.0234527587890625, 0.00389862060546875, -0.0022220611572265625, 0.0162811279296875, -0.020233154296875, 0.0210723876953125, -0.001476287841796875, -0.0142974853515625, -0.0225067138671875, -0.024322509765625, 0.005199432373046875, -0.025390625, 0.049041748046875, 0.01345062255859375, 0.04150390625, -0.01090240478515625, -0.02117919921875, 0.03515625, 0.0083770751953125, -0.04833984375, -0.03009033203125, -0.0018205642700195312, 0.014373779296875, -0.01195526123046875, 0.0122222900390625, 0.051849365234375, 0.0242156982421875, -0.0411376953125, 0.0202484130859375, -0.02288818359375, 0.0029964447021484375, -0.0177459716796875, -0.0135955810546875, 0.05792236328125, -0.11065673828125, 0.02880859375, 0.045745849609375, 0.01373291015625, 0.053802490234375, 0.01425933837890625, 0.02581787109375, 0.056060791015625, -0.01438140869140625, -0.040069580078125, -0.021148681640625, -0.006534576416015625, -0.041412353515625, 0.016326904296875, -0.0104522705078125, 0.01375579833984375, 0.012725830078125, -0.004352569580078125, -0.0236968994140625, 0.00632476806640625, -0.0230560302734375, -0.0343017578125, -0.04022216796875, 0.006549835205078125, -0.0033779144287109375, 0.01361083984375, 0.00910186767578125, 0.07525634765625, 0.00897216796875, -0.061767578125, -0.01160430908203125, -0.0286102294921875, -0.043060302734375, -0.00844573974609375, -0.04144287109375, -0.0100555419921875, 0.00339508056640625, -0.0160369873046875, 0.033050537109375, 0.021331787109375, -0.01222991943359375, 0.020355224609375, -0.0177154541015625, -0.0008420944213867188, -0.004150390625, 0.0160064697265625, 0.034820556640625, -0.029144287109375, 0.0014657974243164062, -0.0472412109375, -0.026336669921875, 0.01558685302734375, -0.0251922607421875, -0.04498291015625, 0.033538818359375, -0.016082763671875, -0.018646240234375, 0.0002244710922241211, 0.0195770263671875, 0.0004341602325439453, 0.044677734375, -0.03515625, 0.0548095703125, -0.0028591156005859375, 0.0144805908203125, -0.056793212890625, 0.05889892578125, 0.0068359375, 0.01477813720703125, 0.034393310546875, 0.0022678375244140625, 0.006420135498046875, -0.016448974609375, -0.04693603515625, -0.06304931640625, 0.0258331298828125, -0.045928955078125, 0.0031528472900390625, -0.024017333984375, -0.007259368896484375, 0.0091400146484375, 0.0684814453125, 0.016448974609375, -0.043365478515625, -0.03607177734375, -0.0114288330078125, -0.015350341796875, -0.0018377304077148438, 0.032684326171875, -0.009002685546875, -0.08758544921875, -0.00704193115234375, -0.0156707763671875, -0.027984619140625, -0.0146026611328125, -0.01317596435546875, -0.015594482421875, -0.043914794921875, 0.053955078125, -0.0261688232421875, -0.004604339599609375, 0.054107666015625, -0.0146636962890625, -0.0007796287536621094, -0.06011962890625, 0.0164031982421875, -0.0706787109375, -0.0218963623046875, 0.001888275146484375, 0.057037353515625, 0.022857666015625, -0.077880859375, -0.004085540771484375, 0.044952392578125, 0.0157012939453125, -0.07550048828125, 0.0151824951171875, -0.031494140625, -0.036865234375, 0.055511474609375, -0.0227508544921875, -0.004306793212890625, -0.005023956298828125, 0.0234375, -0.016265869140625, 0.016143798828125, -0.018951416015625, -0.011199951171875, 0.03216552734375, -0.041351318359375, -0.0269927978515625, -0.01885986328125, -0.0200042724609375, 0.01461029052734375, -0.003108978271484375, -0.02801513671875, -0.014556884765625, -0.028106689453125, 0.03302001953125, -0.0143585205078125, -0.0186004638671875, -0.0010271072387695312, 0.0584716796875, 0.00620269775390625, -0.0193023681640625, 0.0281829833984375, 0.03424072265625, 0.016143798828125, -0.00763702392578125, 0.0147857666015625, -0.01152801513671875, 0.01715087890625, -0.013214111328125, -0.0426025390625, 0.0179901123046875, -0.043731689453125, 0.010101318359375, -0.0016851425170898438, -0.013702392578125, 0.0174560546875, -0.0178680419921875, 0.057708740234375, 0.01023101806640625, 0.007068634033203125, -0.015228271484375, 0.0276031494140625, 0.028076171875, 0.01119232177734375, -0.00891876220703125, -0.027496337890625, -0.020416259765625, 0.0133514404296875, 0.0215911865234375, 0.0352783203125, 0.0212249755859375, -0.001049041748046875, 0.028076171875, -0.00038695335388183594, 0.01169586181640625, -0.0136260986328125, -0.0032978057861328125, -0.046051025390625, 0.011932373046875, 0.006160736083984375, 0.0005855560302734375, -0.019500732421875, 0.0084381103515625, 0.034027099609375, 0.005352020263671875, -0.035247802734375, -0.0005173683166503906, -0.0106353759765625, -0.033355712890625, 0.01715087890625, -0.007778167724609375, -0.007007598876953125, 0.037322998046875, 0.0141448974609375, 0.023773193359375, 0.02362060546875, 0.030975341796875, 0.001285552978515625, -0.0310516357421875, -0.0143890380859375, -0.0166168212890625, 0.00495147705078125, 0.0152130126953125, -0.022491455078125, 0.01149749755859375, 0.004878997802734375, 0.030303955078125, 0.026275634765625, 0.043975830078125, -0.007770538330078125, 0.007354736328125, -0.00689697265625, 0.040771484375, 0.0036334991455078125, -0.039093017578125, -0.0399169921875, 0.03961181640625, 0.07550048828125, -0.00147247314453125, 0.0120697021484375, -0.02752685546875, -0.028656005859375, -0.0361328125, 0.005840301513671875, 0.01093292236328125, -0.01309967041015625, -0.02117919921875, 0.0112457275390625, 0.0211639404296875, 0.0171966552734375, -0.01404571533203125, 0.061309814453125, -0.029449462890625, 0.01239776611328125, 0.056182861328125, -0.025390625, -0.0273895263671875, -0.0248565673828125, -0.0098419189453125, -0.036712646484375, 0.032806396484375, -0.070556640625, -0.01293182373046875, -0.03179931640625, -0.0003554821014404297, 0.05364990234375, -0.000052809715270996094, 0.0157012939453125, 0.0012788772583007812, -0.0257110595703125, 0.0298614501953125, -0.0071868896484375, 0.0260009765625, -0.012603759765625, -0.035888671875, -0.0252532958984375, -0.0474853515625, -0.0133819580078125, -0.03167724609375, -0.0272674560546875, -0.0094757080078125, 0.039398193359375, -0.0174407958984375, 0.030181884765625, -0.0301361083984375, 0.028167724609375, 0.006305694580078125, 0.0236053466796875, -0.042755126953125, 0.03607177734375, 0.0003781318664550781, 0.06982421875, -0.026702880859375, 0.0267333984375, 0.01557159423828125, 0.04876708984375, 0.003978729248046875, -0.0249786376953125, 0.021392822265625, -0.0220489501953125, -0.0301971435546875, -0.034393310546875, -0.004482269287109375, 0.00792694091796875, 0.037353515625, -0.012298583984375, 0.0011529922485351562, -0.0284881591796875, 0.001537322998046875, -0.036712646484375, 0.032379150390625, -0.07122802734375, -0.0049285888671875, -0.0302734375, 0.003093719482421875, 0.08941650390625, -0.01568603515625, 0.0247802734375, -0.0232696533203125, -0.0311737060546875, 0.023529052734375, 0.036468505859375, 0.01306915283203125, 0.013458251953125, 0.04266357421875, -0.0198516845703125, 0.0450439453125, 0.021331787109375, 0.02459716796875, 0.053466796875, 0.01274871826171875, -0.00911712646484375, 0.036834716796875, 0.04248046875, 0.00476837158203125, 0.0147705078125, 0.006969451904296875, 0.0010213851928710938, 0.01540374755859375, 0.06878662109375, 0.052093505859375, -0.09710693359375, -0.006526947021484375, -0.031341552734375, 0.005245208740234375, 0.097900390625, 0.019561767578125, -0.005939483642578125, 0.0130767822265625, -0.037933349609375, 0.01214599609375, -0.033355712890625, -0.0102386474609375, 0.043060302734375, -0.0007252693176269531, -0.01337432861328125, 0.034027099609375, -0.01102447509765625, -0.0058746337890625, -0.0179443359375, 0.0012340545654296875, -0.0008931159973144531, -0.0089263916015625, 0.0281829833984375, 0.01462554931640625, -0.006977081298828125, -0.052398681640625, 0.0249176025390625, -0.0223236083984375, -0.0280609130859375, 0.025634765625, -0.026123046875, -0.01678466796875, 0.0284423828125, -0.040679931640625, 0.0179901123046875, -0.01038360595703125, -0.047119140625, -0.030181884765625, -0.0287017822265625, 0.024505615234375, -0.0282745361328125, -0.00733184814453125, 0.01522064208984375, -0.023712158203125, -0.058319091796875, -0.01605224609375, -0.05267333984375, 0.05401611328125, -0.07568359375, 0.01238250732421875, 0.0076751708984375, 0.031524658203125, 0.017303466796875, 0.0009589195251464844, 0.00954437255859375, -0.005252838134765625, 0.009918212890625, -0.02166748046875, -0.0137786865234375, 0.031402587890625, -0.0231475830078125, -0.07568359375, 0.08392333984375, 0.006198883056640625, 0.051177978515625, 0.03369140625, 0.0182037353515625, -0.0350341796875, -0.01247406005859375, -0.01419830322265625, 0.0537109375, -0.013275146484375, 0.033294677734375, -0.03839111328125, -0.0080718994140625, 0.006969451904296875, 0.036651611328125, 0.0657958984375, -0.002468109130859375, 0.0177154541015625, -0.01438140869140625, 0.045989990234375, 0.0186614990234375, -0.0303497314453125, -0.00811767578125, -0.0154876708984375, -0.0263671875, 0.01413726806640625, -0.01378631591796875, 0.01947021484375, -0.0174407958984375, -0.0143280029296875, 0.0131683349609375, -0.0098876953125, -0.02032470703125, 0.013641357421875, 0.019683837890625, -0.01617431640625, 0.0024566650390625, -0.0018596649169921875, 0.005016326904296875, 0.016448974609375, 0.01183319091796875, 0.033966064453125, -0.0599365234375, -0.037384033203125, -0.0155487060546875, 0.045440673828125, 0.034454345703125, 0.0367431640625, 0.039398193359375, 0.038787841796875, 0.035064697265625, -0.023284912109375, 0.0251617431640625, 0.0042266845703125, -0.043853759765625, 0.031463623046875, 0.055938720703125, 0.0418701171875, 0.007595062255859375, -0.02008056640625, 0.0265655517578125, 0.05291748046875, -0.0225677490234375, -0.0274200439453125, 0.0023670196533203125, -0.00397491455078125, 0.00786590576171875, -0.04229736328125, -0.005443572998046875, -0.07904052734375, -0.044464111328125, 0.00909423828125, 0.005580902099609375, -0.0113677978515625, 0.002605438232421875, -0.0008244514465332031, 0.042816162109375, -0.042724609375, 0.0242767333984375, -0.0248870849609375, 0.00611114501953125, 0.0002384185791015625, 0.0248565673828125, 0.029693603515625, 0.0257110595703125, 0.0296478271484375, -0.00499725341796875, -0.007904052734375, 0.034881591796875, -0.02740478515625, 0.0241241455078125, -0.06964111328125, -0.05462646484375, -0.004680633544921875, 0.0535888671875, 0.0215606689453125, 0.01271820068359375, 0.0625, 0.0322265625, -0.0304412841796875, -0.005275726318359375, -0.0013017654418945312, -0.0267181396484375, 0.0673828125, -0.01959228515625, 0.048614501953125, -0.0229339599609375, -0.0248565673828125, -0.0810546875, 0.052337646484375, -0.00412750244140625, 0.00835418701171875, 0.00260162353515625, 0.00687408447265625, -0.0257720947265625, 0.0220794677734375, 0.006160736083984375, 0.0030345916748046875, 0.035736083984375, 0.007465362548828125, 0.01003265380859375, -0.018829345703125, -0.02484130859375, -0.0002989768981933594, 0.0279388427734375, 0.003559112548828125, 0.0092010498046875, 0.019134521484375, 0.04656982421875, 0.023040771484375, -0.03839111328125, -0.03863525390625, -0.0021648406982421875, 0.04840087890625, 0.01038360595703125, -0.03717041015625, -0.0418701171875, 0.0025691986083984375, 0.041717529296875, 0.0026149749755859375, 0.10272216796875, -0.042816162109375, 0.0089263916015625, -0.0049591064453125, -0.016815185546875, 0.019622802734375, 0.0211029052734375, -0.036834716796875, -0.00554656982421875, 0.0007061958312988281, -0.01522064208984375, -0.059722900390625, 0.0033893585205078125, 0.04425048828125, -0.03533935546875, 0.05908203125, -0.0386962890625, -0.0005207061767578125, -0.0811767578125, 0.0308685302734375, -0.0232696533203125, -0.0262451171875, -0.005870819091796875, 0.003116607666015625, -0.0005407333374023438, -0.01641845703125, -0.0219268798828125, 0.04132080078125, 0.01503753662109375, 0.0104827880859375, 0.0267486572265625, -0.023223876953125, 0.021636962890625, 0.02001953125, -0.017486572265625, -0.001964569091796875, 0.0430908203125, -0.0177154541015625, 0.03021240234375, 0.01412200927734375, 0.007213592529296875, 0.040985107421875, -0.01004791259765625, -0.05926513671875, -0.060760498046875, -0.020050048828125, 0.016937255859375, -0.0306549072265625, -0.06427001953125, -0.0157318115234375, -0.041839599609375, 0.020721435546875, -0.010040283203125, -0.01042938232421875, -0.01186370849609375, 0.007518768310546875, 0.004039764404296875, -0.0195770263671875, -0.007904052734375, 0.03253173828125, 0.023834228515625, 0.001682281494140625, -0.08697509765625, 0.0477294921875, -0.0167388916015625, 0.07037353515625, -0.0196533203125, -0.042694091796875, -0.0010004043579101562, 0.01102447509765625, -0.03753662109375, -0.050567626953125, -0.059600830078125, 0.0225830078125, -0.0799560546875, -0.00853729248046875, 0.0288238525390625, -0.00220489501953125, 0.0106964111328125, -0.033172607421875, -0.0246429443359375, 0.04632568359375, -0.076904296875, 0.0125732421875, 0.060821533203125, 0.005218505859375, -0.054443359375, -0.05792236328125, -0.005157470703125, -0.0283203125, -0.01007080078125, -0.0203857421875, 0.005207061767578125, 0.0267486572265625, -0.01453399658203125, -0.050445556640625, 0.03143310546875, 0.0075531005859375, -0.0180511474609375, -0.0577392578125, 0.0105133056640625, 0.00432586669921875, 0.0247802734375, -0.0179443359375, -0.0084075927734375, -0.0286712646484375, 0.01551055908203125, 0.0206146240234375, 0.04901123046875, 0.0195465087890625, 0.01059722900390625, -0.0110321044921875, -0.00972747802734375, -0.023529052734375, 0.0208587646484375, 0.0016069412231445312, -0.00931549072265625, 0.07427978515625, 0.06329345703125, 0.0166168212890625, 0.08447265625, 0.0293121337890625, -0.06622314453125, -0.0128326416015625, -0.05889892578125, -0.034759521484375, -0.04937744140625, 0.06573486328125, 0.039337158203125, 0.0279083251953125, -0.0204315185546875, -0.031341552734375, -0.02447509765625, -0.037567138671875, -0.038177490234375, 0.0390625, -0.0557861328125, -0.007320404052734375, -0.045135498046875, -0.0008029937744140625, 0.0196380615234375, -0.013519287109375, -0.0159759521484375, -0.00980377197265625, -0.01032257080078125, -0.005157470703125, -0.049652099609375, 0.05462646484375, 0.037506103515625, -0.0291290283203125, 0.008209228515625, -0.03485107421875, 0.004367828369140625, 0.0138397216796875, -0.07476806640625, -0.006946563720703125, 0.02044677734375, -0.0166168212890625, 0.00931549072265625, -0.0018033981323242188, 0.046722412109375, -0.0192108154296875, -0.00045800209045410156, -0.01479339599609375, 0.0051727294921875, -0.0003733634948730469, -0.0060577392578125, -0.0213165283203125, 0.06903076171875, 0.023468017578125, 0.059661865234375, -0.007022857666015625, 0.00765228271484375, -0.0097198486328125, 0.0289154052734375, -0.03125, 0.0123443603515625, -0.002231597900390625, -0.0144805908203125, -0.00801849365234375, 0.019378662109375, -0.022064208984375, -0.05859375, 0.034515380859375, -0.057281494140625, 0.013702392578125, 0.0183868408203125 ]
60449c631f30e845c6e17e2da2d579b5f9f1b844
Wordpress Stackexchange Q: What is the proper way to apply the login_form_bottom filter? Here is my current code. function custom_login_footer() { return '<p>text text text</p>'; } add_filter('login_form_bottom', 'custom_login_footer'); I am trying to add text below the submit button, but I do not know how to apply the login_form_bottom filter. A: your code is correct, however, that filter only applies to the wp_login_form() function, which is not what wp-login.php uses, so you won't be seeing your text there if that's what you're expecting! try adding a call to wp_login_form() in a template to see what the filter does.
Q: What is the proper way to apply the login_form_bottom filter? Here is my current code. function custom_login_footer() { return '<p>text text text</p>'; } add_filter('login_form_bottom', 'custom_login_footer'); I am trying to add text below the submit button, but I do not know how to apply the login_form_bottom filter. A: your code is correct, however, that filter only applies to the wp_login_form() function, which is not what wp-login.php uses, so you won't be seeing your text there if that's what you're expecting! try adding a call to wp_login_form() in a template to see what the filter does.
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:411103", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22362" }
[ 0.041717529296875, 0.0202789306640625, -0.0186004638671875, -0.016448974609375, 0.0276641845703125, -0.035369873046875, 0.055908203125, -0.015228271484375, 0.0014238357543945312, 0.033111572265625, 0.013916015625, -0.024566650390625, -0.0045013427734375, -0.0276641845703125, -0.0283355712890625, -0.0277862548828125, -0.011138916015625, 0.03167724609375, 0.0293731689453125, -0.027191162109375, 0.0209808349609375, -0.03076171875, 0.0003571510314941406, -0.009124755859375, -0.005687713623046875, -0.041900634765625, 0.16015625, -0.0282135009765625, 0.047698974609375, -0.01251983642578125, 0.0029430389404296875, -0.0679931640625, 0.0022678375244140625, 0.0294647216796875, 0.004123687744140625, -0.018310546875, 0.006397247314453125, 0.01148223876953125, 0.0261688232421875, -0.0017461776733398438, 0.066162109375, -0.03271484375, -0.04327392578125, -0.01203155517578125, -0.032073974609375, -0.01953125, 0.039886474609375, -0.00978851318359375, 0.0164031982421875, -0.01486968994140625, 0.0012979507446289062, 0.005405426025390625, 0.027557373046875, -0.035430908203125, -0.020294189453125, 0.000008404254913330078, -0.030517578125, 0.052093505859375, 0.037017822265625, 0.025177001953125, -0.01024627685546875, -0.005977630615234375, -0.00916290283203125, -0.0288543701171875, -0.007099151611328125, 0.0012540817260742188, -0.03350830078125, -0.006488800048828125, 0.01039886474609375, -0.023681640625, -0.00009423494338989258, -0.02069091796875, 0.010223388671875, -0.00527191162109375, -0.019622802734375, -0.00716400146484375, -0.001293182373046875, -0.014068603515625, 0.025848388671875, -0.00702667236328125, -0.031707763671875, -0.04248046875, -0.04095458984375, 0.0106201171875, -0.022674560546875, 0.014129638671875, -0.021392822265625, -0.0037212371826171875, 0.002849578857421875, -0.0262908935546875, 0.007328033447265625, -0.01244354248046875, -0.051727294921875, 0.0109405517578125, 0.010284423828125, -0.049957275390625, 0.021148681640625, 0.01715087890625, 0.0186309814453125, 0.0094146728515625, 0.049713134765625, -0.07501220703125, 0.06842041015625, -0.03082275390625, 0.0009889602661132812, 0.045013427734375, -0.009429931640625, -0.0029735565185546875, 0.007293701171875, 0.01508331298828125, 0.0134124755859375, -0.00687408447265625, -0.00855255126953125, -0.06146240234375, -0.0163116455078125, 0.040863037109375, 0.012847900390625, -0.0193634033203125, 0.0230865478515625, -0.008453369140625, -0.024444580078125, -0.0114898681640625, 0.04229736328125, -0.027252197265625, 0.0008749961853027344, -0.02996826171875, -0.01314544677734375, -0.0264129638671875, 0.03271484375, 0.0295257568359375, -0.019683837890625, 0.01068115234375, 0.0174407958984375, -0.0241851806640625, -0.0166778564453125, -0.0232391357421875, 0.0023555755615234375, -0.01953125, -0.01045989990234375, 0.02947998046875, 0.012054443359375, -0.0640869140625, -0.0273590087890625, 0.0172882080078125, -0.016265869140625, 0.0228729248046875, 0.0225830078125, 0.01296234130859375, -0.032379150390625, -0.0677490234375, 0.0184173583984375, -0.034210205078125, -0.006816864013671875, 0.0098724365234375, 0.03485107421875, 0.030853271484375, 0.0158843994140625, -0.00942230224609375, -0.013702392578125, 0.00624847412109375, -0.0064239501953125, 0.0228729248046875, 0.00958251953125, -0.0176544189453125, -0.00933837890625, -0.0462646484375, -0.016845703125, 0.007190704345703125, 0.0185089111328125, -0.005161285400390625, 0.03375244140625, 0.0276031494140625, -0.00481414794921875, 0.012176513671875, 0.022735595703125, -0.01617431640625, 0.00823974609375, 0.132080078125, -0.000003039836883544922, -0.06640625, -0.0274200439453125, -0.066162109375, 0.10736083984375, -0.0245208740234375, -0.048065185546875, -0.01247406005859375, 0.037506103515625, 0.057769775390625, -0.002429962158203125, 0.02703857421875, 0.046142578125, -0.0003752708435058594, -0.03460693359375, 0.0223846435546875, -0.016998291015625, -0.0235748291015625, -0.05615234375, -0.018890380859375, -0.030853271484375, 0.054595947265625, -0.0093231201171875, -0.004589080810546875, 0.025360107421875, -0.00409698486328125, 0.0102386474609375, 0.0119476318359375, -0.016815185546875, 0.0241851806640625, -0.01136016845703125, -0.0053253173828125, 0.01824951171875, 0.0157623291015625, -0.0253753662109375, -0.0294952392578125, -0.030303955078125, 0.0119476318359375, -0.0175628662109375, 0.0169830322265625, -0.006988525390625, 0.032745361328125, -0.009002685546875, -0.003509521484375, -0.034637451171875, -0.01473236083984375, 0.01142120361328125, -0.0183563232421875, -0.014404296875, -0.01617431640625, 0.0111846923828125, -0.00899505615234375, 0.0009102821350097656, 0.035247802734375, 0.02349853515625, 0.0180511474609375, -0.054443359375, 0.0002218484878540039, -0.0390625, -0.0282440185546875, -0.00911712646484375, 0.04638671875, 0.0249176025390625, 0.0789794921875, -0.0117034912109375, 0.02490234375, 0.06744384765625, -0.01776123046875, -0.00420379638671875, 0.0081329345703125, 0.03814697265625, 0.070068359375, -0.03277587890625, -0.030975341796875, 0.0017604827880859375, -0.06707763671875, 0.0170135498046875, 0.0185699462890625, -0.0016384124755859375, -0.044189453125, 0.000014483928680419922, 0.00843048095703125, 0.00896453857421875, -0.050689697265625, -0.035064697265625, -0.00792694091796875, -0.0227508544921875, -0.01428985595703125, -0.00904083251953125, -0.0181121826171875, -0.033599853515625, -0.0013208389282226562, 0.03619384765625, -0.01165771484375, -0.007568359375, -0.037445068359375, -0.034454345703125, -0.01078033447265625, -0.02294921875, 0.03863525390625, -0.01413726806640625, -0.039703369140625, -0.0174407958984375, 0.0177154541015625, -0.0035305023193359375, -0.0236663818359375, 0.01168060302734375, -0.0167388916015625, 0.007472991943359375, -0.0394287109375, 0.03778076171875, -0.0088043212890625, 0.0148468017578125, 0.0015716552734375, -0.03814697265625, 0.046875, 0.005580902099609375, -0.041107177734375, 0.0027828216552734375, -0.0167236328125, 0.021759033203125, -0.0234375, 0.01285552978515625, 0.044464111328125, 0.01303863525390625, -0.014373779296875, 0.0009918212890625, 0.028564453125, 0.004795074462890625, 0.0018177032470703125, -0.00794219970703125, -0.009490966796875, -0.0264892578125, 0.0130767822265625, 0.0243377685546875, 0.0423583984375, 0.017791748046875, -0.0210113525390625, 0.01549530029296875, 0.030181884765625, -0.01232147216796875, -0.022857666015625, -0.035491943359375, -0.08074951171875, 0.014373779296875, -0.0037441253662109375, -0.044891357421875, 0.0198516845703125, 0.017364501953125, 0.01303863525390625, -0.023345947265625, -0.024322509765625, -0.043365478515625, -0.0290069580078125, -0.049835205078125, 0.053466796875, -0.0014677047729492188, 0.0173492431640625, 0.01873779296875, 0.056427001953125, 0.015472412109375, -0.05792236328125, -0.007114410400390625, 0.035858154296875, -0.03466796875, 0.01558685302734375, 0.003154754638671875, -0.03875732421875, 0.027801513671875, -0.006679534912109375, -0.07537841796875, 0.000980377197265625, 0.02239990234375, -0.016754150390625, -0.01470947265625, -0.0643310546875, -0.0225067138671875, 0.01560211181640625, 0.0121002197265625, -0.049591064453125, -0.00010395050048828125, -0.07342529296875, 0.01763916015625, 0.01207733154296875, -0.01267242431640625, 0.022796630859375, 0.01409149169921875, -0.04962158203125, 0.022216796875, -0.003314971923828125, -0.00238037109375, 0.0095672607421875, 0.0203704833984375, -0.015655517578125, 0.0087127685546875, 0.004970550537109375, -0.0102081298828125, -0.01160430908203125, 0.0156707763671875, -0.037261962890625, 0.0236358642578125, 0.00914764404296875, 0.0198516845703125, 0.0191650390625, -0.0177001953125, -0.013397216796875, -0.0838623046875, 0.0762939453125, -0.00370025634765625, -0.012908935546875, -0.03314208984375, -0.04443359375, 0.0125732421875, 0.1220703125, -0.0482177734375, -0.0186004638671875, 0.008514404296875, -0.003025054931640625, 0.039520263671875, 0.01561737060546875, -0.0222625732421875, -0.03631591796875, -0.07928466796875, 0.004199981689453125, -0.0021820068359375, -0.02947998046875, 0.024566650390625, -0.038848876953125, -0.0305938720703125, -0.047515869140625, 0.00661468505859375, 0.0218505859375, -0.004940032958984375, 0.0386962890625, -0.0290679931640625, 0.0257720947265625, 0.0102691650390625, -0.0207366943359375, -0.038848876953125, 0.002277374267578125, -0.033447265625, 0.04302978515625, 0.044342041015625, -0.031280517578125, 0.00897216796875, 0.03826904296875, 0.0296630859375, 0.0221710205078125, 0.00428009033203125, -0.00887298583984375, 0.0181121826171875, -0.011260986328125, -0.0159149169921875, -0.01568603515625, -0.0025844573974609375, 0.0013837814331054688, -0.03533935546875, 0.036407470703125, -0.0037689208984375, 0.0079498291015625, 0.040435791015625, -0.033172607421875, -0.0418701171875, -0.03741455078125, -0.00725555419921875, -0.0240020751953125, -0.006641387939453125, -0.01203155517578125, -0.005970001220703125, -0.020782470703125, 0.0306854248046875, 0.058746337890625, -0.019287109375, 0.01377105712890625, 0.052642822265625, 0.01641845703125, -0.038665771484375, -0.07366943359375, 0.032318115234375, 0.0416259765625, -0.0071258544921875, 0.01128387451171875, -0.0109405517578125, -0.054840087890625, 0.1051025390625, 0.0031528472900390625, 0.0100250244140625, -0.0254364013671875, 0.08673095703125, -0.01312255859375, -0.0400390625, 0.0479736328125, -0.01117706298828125, -0.03448486328125, -0.00565338134765625, -0.021484375, 0.0079498291015625, -0.01023101806640625, 0.01552581787109375, -0.025115966796875, 0.036163330078125, -0.00485992431640625, -0.033599853515625, 0.004852294921875, -0.0304107666015625, 0.0400390625, 0.028076171875, -0.01280975341796875, 0.0166473388671875, 0.011688232421875, -0.002384185791015625, -0.0338134765625, -0.04901123046875, 0.00615692138671875, 0.02166748046875, -0.0007681846618652344, 0.01111602783203125, -0.01348114013671875, -0.021331787109375, 0.12396240234375, 0.01922607421875, -0.035491943359375, 0.0266265869140625, -0.04510498046875, 0.0184326171875, 0.01837158203125, 0.005229949951171875, 0.0021724700927734375, -0.045135498046875, -0.0098724365234375, 0.0295867919921875, 0.039031982421875, -0.056396484375, -0.0094451904296875, 0.017547607421875, -0.004848480224609375, 0.00008499622344970703, -0.0206298828125, 0.033721923828125, -0.0253143310546875, 0.005107879638671875, 0.005443572998046875, -0.0085601806640625, 0.01303863525390625, 0.0299530029296875, 0.0455322265625, -0.046295166015625, 0.0115814208984375, -0.004177093505859375, 0.025115966796875, -0.032073974609375, -0.043212890625, -0.0117340087890625, 0.0247650146484375, -0.00753021240234375, 0.031402587890625, 0.0310211181640625, 0.0178985595703125, -0.0079498291015625, 0.04144287109375, -0.00754547119140625, -0.097900390625, -0.0211944580078125, 0.0283355712890625, 0.01451873779296875, -0.054107666015625, -0.006439208984375, 0.004673004150390625, -0.0316162109375, 0.0091400146484375, 0.010833740234375, -0.0183563232421875, -0.0167236328125, -0.0184478759765625, -0.0242462158203125, -0.0145416259765625, -0.0266876220703125, -0.050201416015625, -0.02569580078125, -0.00384521484375, 0.0029754638671875, 0.0167694091796875, -0.01136016845703125, 0.0167083740234375, 0.005161285400390625, -0.0242156982421875, 0.0260467529296875, 0.00963592529296875, 0.0073699951171875, -0.0223846435546875, -0.039031982421875, -0.0019893646240234375, -0.035797119140625, -0.0060882568359375, -0.09051513671875, -0.0399169921875, -0.030303955078125, 0.016998291015625, 0.0258331298828125, 0.0254058837890625, -0.0117034912109375, -0.06610107421875, 0.0037784576416015625, -0.032806396484375, 0.01207733154296875, -0.0062408447265625, -0.0238800048828125, 0.07086181640625, -0.01788330078125, 0.0457763671875, -0.004619598388671875, 0.048919677734375, 0.0281982421875, -0.0208740234375, 0.019134521484375, -0.03375244140625, -0.0127105712890625, -0.051177978515625, 0.00206756591796875, 0.01690673828125, 0.044891357421875, -0.010162353515625, 0.01076507568359375, -0.01071929931640625, -0.01116180419921875, 0.0012292861938476562, 0.043487548828125, 0.016357421875, -0.01325225830078125, 0.06298828125, 0.004833221435546875, 0.01039886474609375, 0.0030536651611328125, -0.039825439453125, 0.03564453125, 0.01080322265625, 0.0264739990234375, 0.0049896240234375, -0.0653076171875, 0.041290283203125, 0.040771484375, 0.017852783203125, 0.02801513671875, -0.0026111602783203125, 0.031829833984375, 0.0241851806640625, -0.003910064697265625, 0.00274658203125, -0.00799560546875, 0.0653076171875, 0.00377655029296875, -0.0257415771484375, 0.054473876953125, -0.02716064453125, 0.019683837890625, 0.07073974609375, 0.055908203125, -0.137451171875, 0.00885772705078125, 0.00043320655822753906, 0.024169921875, 0.070556640625, 0.03533935546875, 0.01378631591796875, 0.01751708984375, 0.007480621337890625, -0.007503509521484375, 0.02288818359375, 0.034637451171875, 0.01071929931640625, -0.016448974609375, -0.0085906982421875, -0.004627227783203125, -0.003833770751953125, -0.0014715194702148438, -0.018646240234375, 0.0020389556884765625, -0.005115509033203125, -0.010833740234375, 0.0020904541015625, -0.0265045166015625, -0.0020465850830078125, -0.049957275390625, -0.017578125, -0.044647216796875, -0.00957489013671875, 0.01873779296875, -0.044677734375, 0.06658935546875, 0.0274658203125, -0.0160980224609375, 0.01197052001953125, -0.0229644775390625, 0.0170745849609375, 0.022491455078125, -0.0128631591796875, 0.005458831787109375, 0.0217437744140625, -0.0302276611328125, 0.015838623046875, -0.003337860107421875, 0.00007408857345581055, -0.04095458984375, -0.126220703125, 0.05731201171875, 0.013824462890625, -0.0191497802734375, -0.0262298583984375, 0.031951904296875, 0.0133514404296875, -0.035186767578125, 0.05487060546875, -0.07269287109375, -0.033111572265625, -0.0037994384765625, -0.0227203369140625, -0.0279693603515625, -0.035980224609375, -0.055450439453125, 0.06304931640625, 0.01415252685546875, 0.028472900390625, -0.01544952392578125, 0.0243377685546875, -0.00428009033203125, 0.0283966064453125, -0.020416259765625, 0.0352783203125, -0.00478363037109375, 0.035919189453125, -0.0089874267578125, -0.0061492919921875, 0.0260009765625, 0.0224609375, 0.0194549560546875, 0.00620269775390625, -0.03607177734375, -0.0182647705078125, 0.0201873779296875, 0.0733642578125, 0.035858154296875, 0.01519012451171875, 0.020477294921875, 0.041412353515625, 0.0254669189453125, -0.042144775390625, 0.0287933349609375, -0.0294036865234375, -0.0159912109375, 0.038848876953125, -0.01142120361328125, -0.0288238525390625, -0.006572723388671875, -0.01221466064453125, -0.0457763671875, -0.004688262939453125, 0.0053863525390625, 0.009063720703125, 0.006412506103515625, 0.01549530029296875, 0.00727081298828125, -0.0082855224609375, -0.000004589557647705078, -0.0175323486328125, 0.0213623046875, -0.00664520263671875, 0.031524658203125, 0.06219482421875, 0.02783203125, 0.03985595703125, -0.032745361328125, 0.02337646484375, -0.0216217041015625, -0.0036907196044921875, 0.034759521484375, -0.01119232177734375, 0.0138702392578125, -0.041900634765625, 0.0258331298828125, 0.0268402099609375, 0.035614013671875, -0.0338134765625, -0.020660400390625, 0.0115966796875, -0.009613037109375, 0.0142822265625, -0.005283355712890625, 0.0347900390625, -0.0257110595703125, -0.021484375, -0.008514404296875, -0.0193939208984375, -0.00839996337890625, 0.01515960693359375, -0.0111846923828125, -0.0170745849609375, 0.0113677978515625, -0.00319671630859375, 0.0082855224609375, 0.0028896331787109375, -0.00698089599609375, -0.00727081298828125, -0.0020046234130859375, 0.00213623046875, 0.013397216796875, 0.0224151611328125, -0.027099609375, 0.0156707763671875, -0.004718780517578125, 0.04803466796875, -0.0230255126953125, 0.0287628173828125, -0.03302001953125, 0.0301055908203125, 0.0172576904296875, -0.0008492469787597656, 0.018402099609375, 0.0244293212890625, 0.0208282470703125, -0.00797271728515625, -0.00566864013671875, -0.0229644775390625, -0.0343017578125, -0.01557159423828125, -0.0106964111328125, 0.03997802734375, 0.00733184814453125, -0.0005345344543457031, 0.0016183853149414062, 0.04119873046875, -0.0076446533203125, -0.00986480712890625, -0.002044677734375, -0.056884765625, -0.0222015380859375, -0.01470947265625, 0.0440673828125, 0.00617218017578125, -0.045257568359375, 0.003574371337890625, -0.047698974609375, -0.078369140625, 0.0491943359375, 0.05267333984375, -0.01012420654296875, -0.007152557373046875, 0.025238037109375, -0.0245819091796875, 0.0093231201171875, -0.01418304443359375, 0.0312347412109375, -0.01837158203125, -0.0019245147705078125, -0.01104736328125, -0.06927490234375, -0.0233154296875, -0.0328369140625, 0.0194549560546875, 0.035614013671875, 0.05035400390625, 0.0189361572265625, 0.0259552001953125, -0.0240020751953125, -0.0012664794921875, -0.01525115966796875, -0.028717041015625, 0.040557861328125, -0.00400543212890625, -0.024139404296875, -0.0106048583984375, -0.055419921875, 0.059722900390625, 0.0015544891357421875, 0.02288818359375, 0.046844482421875, -0.00559234619140625, 0.00628662109375, -0.0099945068359375, -0.024169921875, -0.0228424072265625, -0.048675537109375, -0.005672454833984375, 0.015899658203125, 0.00998687744140625, 0.035369873046875, -0.00003266334533691406, 0.046539306640625, -0.019744873046875, 0.0242156982421875, 0.01160430908203125, -0.025787353515625, 0.0167236328125, 0.023345947265625, -0.03680419921875, 0.027618408203125, -0.0036487579345703125, -0.0184478759765625, 0.01190185546875, 0.01139068603515625, -0.02764892578125, 0.0169830322265625, -0.026702880859375, 0.031402587890625, 0.039093017578125, 0.04986572265625, -0.00868988037109375, 0.012451171875, 0.0222015380859375, -0.01580810546875, 0.01197052001953125, -0.03662109375, -0.034332275390625, -0.01000213623046875, -0.0240325927734375, -0.0115814208984375, 0.0134124755859375, -0.10321044921875, -0.036956787109375, 0.04290771484375, 0.01433563232421875, -0.0004649162292480469, -0.07891845703125, 0.0308380126953125, -0.0256500244140625, 0.08026123046875, -0.020263671875, -0.00788116455078125, 0.01181793212890625, 0.0220184326171875, -0.02044677734375, 0.005474090576171875, -0.01313018798828125, -0.00124359130859375, 0.0096588134765625, -0.020233154296875, 0.02764892578125, 0.018035888671875, -0.0074920654296875, 0.00708770751953125, -0.029876708984375, 0.057586669921875, -0.053497314453125, -0.01171875, 0.0288848876953125, 0.0005383491516113281, -0.0211944580078125, -0.051300048828125, 0.01410675048828125, -0.04107666015625, 0.003070831298828125, 0.0311126708984375, -0.0238037109375, -0.0118560791015625, -0.04656982421875, -0.1077880859375, 0.043212890625, -0.0025577545166015625, -0.047698974609375, -0.04339599609375, 0.04901123046875, 0.01544189453125, -0.00025153160095214844, -0.00798797607421875, -0.04034423828125, -0.0205078125, -0.0070648193359375, 0.00206756591796875, 0.003871917724609375, 0.03753662109375, 0.013458251953125, -0.06854248046875, -0.01276397705078125, -0.013031005859375, 0.01015472412109375, -0.00843048095703125, 0.00377655029296875, 0.0289154052734375, 0.0291290283203125, -0.022430419921875, 0.038726806640625, 0.0135040283203125, -0.0080413818359375, 0.014739990234375, -0.058349609375, 0.029937744140625, -0.0104522705078125, 0.0216217041015625, -0.0380859375, -0.00858306884765625, 0.0004611015319824219, -0.04388427734375, -0.05126953125, 0.0099639892578125, -0.0150146484375, -0.00516510009765625, -0.065673828125, -0.005512237548828125, 0.009765625, -0.028533935546875, 0.00007605552673339844, -0.0173797607421875, -0.0254974365234375, 0.0100555419921875, 0.03363037109375, 0.01497650146484375, 0.01230621337890625, -0.046600341796875, 0.10369873046875, -0.04095458984375, 0.003498077392578125, 0.0017499923706054688, 0.0273590087890625, 0.0576171875, 0.00469207763671875, -0.00803375244140625, 0.0007510185241699219, -0.027435302734375, -0.00940704345703125, 0.016754150390625, 0.0231170654296875, 0.0181427001953125, -0.01316070556640625, -0.03839111328125, 0.004421234130859375, 0.01129150390625, -0.00626373291015625, -0.024566650390625, 0.0280303955078125, 0.0200958251953125, 0.07843017578125, -0.0307159423828125, 0.0226287841796875, -0.029754638671875, 0.040496826171875, 0.02655029296875, -0.013214111328125, 0.0504150390625, 0.0018148422241210938, 0.002994537353515625, -0.01132965087890625, -0.00894927978515625, -0.028656005859375, 0.0176849365234375, -0.005962371826171875, 0.0015077590942382812, 0.0208740234375 ]
aed4412601fa66b897a2bd110b3b95b16d955bdc
Wordpress Stackexchange Q: Is it possible to direct users to a certain post based on a password entered on the home page? I'd like to be able to have a workflow that works like so: * *Create a post and assign it a password *Have a single-field form on the home page *User enters password on home page, and is sent to the corresponding post Does anyone know if this is possible? A: Yes, but you'll need to hold the details of how a password maps to a post. So: * *store mappings somewhere, easiest as a hash/key-value pair (password->post_id) *get password from field *determine post_id, and construct the URL *use wp_redirect() to redirect the user.
Q: Is it possible to direct users to a certain post based on a password entered on the home page? I'd like to be able to have a workflow that works like so: * *Create a post and assign it a password *Have a single-field form on the home page *User enters password on home page, and is sent to the corresponding post Does anyone know if this is possible? A: Yes, but you'll need to hold the details of how a password maps to a post. So: * *store mappings somewhere, easiest as a hash/key-value pair (password->post_id) *get password from field *determine post_id, and construct the URL *use wp_redirect() to redirect the user. A: On the homepage: <form method="post" action=""> <input type="password" name="passwordfield"> <input type="hidden" name="homepagepassword" value="1"> <input type="submit" value="Submit"> </form> Place in functions.php ( create the file if it doesnt already exist and add <?php at the top) or in a plugin file: function doPasswordStuff(){ if(isset($_POST['homepagepassword'])){ $pass = $_POST['passwordfield']; $q = new WP_Query( array( 'meta_key' => 'password_value', 'meta_value' => $pass)); if($q->have_posts()){ while($q->have_posts()){ $q->the_post(); wp_redirect(get_permalink()); die(); } } else { // oh dear, there isnt a post with this 'password', put a redirect to a fallback here wp_redirect('http://www.google.com'); die(); } wp_reset_query(); } } add_action('init','doPasswordStuff'); Add a custom field to your post with the key/name password_value and the value being your password. If you want to skip this step and use the password Wordpress uses to lock the post directly, you will need to use $wpdb and an SQL query, and to hash the password your checking prior. edit: I've updated this to use the 'init' hook, you can put the code in a plugin file instead of functions.php if you want this to be theme independent. ( Although you will still need to put the form markup somewhere ). A: I would do that with a plugin instead. The plugin could still share the password with the post and set the cookie appropriately so the page wouldn't be accessible w/o entering the password. A plugin because to have a manual mapping, the lookup which password belongs to which post would be really expensive without such a mapping. Not useful in a central location like the homepage. A: Are the passwords you create for each post going to be unique? If not, how will you be able to identify which post a user is looking for? Assuming you are keeping each password unique, I would store the password as post-meta. You could create a custom meta box which allows for entry/storage of the password. Then, when a user enters the password on the home page: * *Sanitize the user input (Duh!) *Run a custom query using WP_Query. In this query you can use the meta_query argument to search for posts that have the password entered by the user. *Load and display the required post. A: Thanks to Tom's help, here's what I ended up with. This uses the built in functionality for password-protecting a post, so a visitor only has to enter a password on the home page, then they are taken to the post and are able to directly view the post content without re-entering the password. On home page: <form method="post" action=""> <input type="password" name="passwordfield"> <input type="hidden" name="homepagepassword" value="1"> <input type="submit" value="Submit"> </form> In functions.php (of course this could be converted to a plugin): if(isset($_POST['homepagepassword'])){ global $wpdb; $post_password = $_POST['passwordfield']; $post_id = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_password = %d", $post_password) ); $q = new WP_Query( 'p=$post_id' ); if($q->have_posts()){ while($q->have_posts()){ $q->the_post(); wp_redirect(get_permalink()); die(); } } else { // oh dear, there isnt a post with this 'password', put a redirect to a fallback here wp_redirect('http://www.google.com'); die(); } wp_reset_query(); }
wordpress
{ "language": "en", "length": 612, "provenance": "stackexchange_00019.jsonl.gz:411120", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22407" }
[ 0.043731689453125, 0.003902435302734375, -0.004199981689453125, 0.026641845703125, 0.0117034912109375, -0.038055419921875, 0.05999755859375, -0.05096435546875, 0.0014390945434570312, 0.0035228729248046875, 0.02069091796875, -0.0221405029296875, -0.0292205810546875, -0.049041748046875, -0.007213592529296875, -0.020477294921875, 0.021270751953125, 0.0069580078125, 0.021942138671875, -0.021728515625, 0.005893707275390625, -0.01035308837890625, 0.0243682861328125, 0.016632080078125, 0.0231170654296875, 0.0283050537109375, 0.0362548828125, 0.026336669921875, 0.01092529296875, 0.0286102294921875, 0.0234527587890625, -0.0838623046875, 0.0293426513671875, -0.027740478515625, 0.032196044921875, 0.01654052734375, 0.0005092620849609375, 0.0059051513671875, 0.0038661956787109375, 0.024322509765625, 0.040802001953125, -0.01509857177734375, -0.0275421142578125, 0.04608154296875, -0.0294036865234375, -0.041595458984375, 0.048004150390625, -0.019317626953125, 0.022674560546875, 0.023834228515625, 0.001003265380859375, 0.0217132568359375, -0.00951385498046875, -0.0022563934326171875, -0.020599365234375, -0.0195465087890625, -0.01229095458984375, -0.032623291015625, 0.033477783203125, 0.00823211669921875, -0.0176239013671875, -0.04541015625, 0.0307769775390625, -0.0238494873046875, -0.0189666748046875, 0.00930023193359375, 0.00630950927734375, -0.01125335693359375, -0.00377655029296875, -0.0158233642578125, 0.01544952392578125, 0.0008649826049804688, 0.0087127685546875, -0.0156707763671875, 0.0208740234375, -0.01201629638671875, 0.00565338134765625, 0.0140380859375, -0.0034694671630859375, 0.019775390625, -0.0557861328125, 0.0135345458984375, -0.01377105712890625, -0.06744384765625, 0.01123809814453125, -0.0386962890625, -0.03802490234375, 0.0151214599609375, -0.00323486328125, -0.052490234375, -0.017242431640625, 0.031585693359375, -0.043212890625, 0.003131866455078125, -0.0390625, -0.0147247314453125, 0.0259246826171875, 0.0196533203125, 0.01244354248046875, 0.022979736328125, -0.0355224609375, -0.032928466796875, -0.00030040740966796875, -0.016571044921875, -0.004993438720703125, 0.0325927734375, 0.01511383056640625, 0.00470733642578125, -0.004116058349609375, 0.00855255126953125, -0.0232391357421875, -0.03387451171875, -0.0248260498046875, -0.0188140869140625, -0.0273284912109375, 0.040069580078125, -0.01476287841796875, -0.0183563232421875, -0.01336669921875, 0.0211029052734375, -0.035400390625, -0.019561767578125, 0.05230712890625, -0.007293701171875, 0.006641387939453125, 0.005550384521484375, -0.0240478515625, -0.02459716796875, 0.02789306640625, -0.00379180908203125, -0.047149658203125, 0.009918212890625, 0.1087646484375, 0.01358795166015625, 0.0194244384765625, -0.019744873046875, 0.009246826171875, -0.01216888427734375, -0.00885009765625, 0.0015974044799804688, 0.0212554931640625, -0.029388427734375, -0.01287078857421875, 0.021820068359375, 0.0225982666015625, 0.0266265869140625, 0.0126495361328125, 0.0040130615234375, -0.0008983612060546875, -0.04132080078125, 0.02557373046875, -0.0219879150390625, -0.033935546875, 0.01763916015625, 0.0821533203125, 0.0014247894287109375, 0.0305938720703125, 0.0038661956787109375, 0.038116455078125, 0.023529052734375, 0.0687255859375, 0.021484375, 0.0256500244140625, -0.0172271728515625, -0.0413818359375, -0.039947509765625, -0.08154296875, -0.0162353515625, 0.00983428955078125, 0.0047607421875, -0.04144287109375, -0.0288238525390625, -0.01184844970703125, -0.016845703125, -0.0227203369140625, 0.0227813720703125, -0.005756378173828125, 0.003780364990234375, 0.0022430419921875, 0.09222412109375, 0.03143310546875, -0.0257415771484375, 0.036712646484375, -0.004119873046875, -0.0257110595703125, 0.01708984375, 0.01263427734375, 0.0246429443359375, -0.0013980865478515625, 0.035980224609375, 0.00305938720703125, 0.0258941650390625, -0.01157379150390625, -0.00655364990234375, -0.044769287109375, -0.028167724609375, 0.0265350341796875, 0.00350189208984375, -0.01375579833984375, 0.04937744140625, 0.025970458984375, -0.0235137939453125, 0.01343536376953125, -0.004634857177734375, -0.01715087890625, -0.008941650390625, -0.007152557373046875, 0.01360321044921875, -0.01678466796875, 0.007122039794921875, 0.027984619140625, 0.0193328857421875, -0.006710052490234375, -0.08624267578125, -0.039459228515625, 0.0158538818359375, -0.00789642333984375, 0.022552490234375, -0.010101318359375, 0.021026611328125, -0.020294189453125, -0.0311126708984375, -0.049591064453125, -0.006488800048828125, 0.024261474609375, -0.0262603759765625, 0.0082855224609375, -0.01393890380859375, 0.00341796875, 0.0158538818359375, -0.038848876953125, 0.005634307861328125, 0.0157928466796875, 0.00006151199340820312, -0.0439453125, 0.012451171875, -0.0198516845703125, -0.01090240478515625, -0.0182952880859375, 0.04107666015625, 0.0296783447265625, 0.03271484375, 0.0154571533203125, 0.0384521484375, 0.05902099609375, -0.0335693359375, 0.0024242401123046875, 0.01432037353515625, 0.009185791015625, 0.07928466796875, -0.049957275390625, 0.04229736328125, -0.01064300537109375, -0.0745849609375, -0.020782470703125, 0.0599365234375, -0.0044708251953125, 0.039398193359375, -0.0003142356872558594, -0.055023193359375, 0.006938934326171875, -0.06640625, -0.037139892578125, -0.0224761962890625, -0.0014438629150390625, -0.0179595947265625, 0.0161895751953125, 0.0041656494140625, -0.003604888916015625, -0.01380157470703125, 0.0130157470703125, -0.02374267578125, -0.0037078857421875, 0.0085906982421875, 0.046722412109375, -0.028472900390625, -0.045166015625, -0.006542205810546875, 0.030029296875, -0.007213592529296875, -0.0086669921875, -0.0212860107421875, -0.044921875, -0.00927734375, 0.01546478271484375, -0.037109375, 0.01953125, 0.04791259765625, 0.0239410400390625, 0.0036220550537109375, 0.025238037109375, 0.024749755859375, -0.00019299983978271484, 0.038848876953125, -0.002750396728515625, -0.0311279296875, -0.033660888671875, -0.02789306640625, 0.032012939453125, -0.0260009765625, 0.03082275390625, 0.0703125, -0.0026454925537109375, 0.0296478271484375, -0.00751495361328125, 0.042816162109375, 0.0089874267578125, -0.0024967193603515625, -0.025726318359375, -0.0198974609375, -0.02056884765625, -0.021270751953125, 0.0209503173828125, 0.04095458984375, 0.019439697265625, -0.013458251953125, 0.0280914306640625, 0.038909912109375, -0.042816162109375, -0.06494140625, -0.0228118896484375, -0.07916259765625, 0.0156402587890625, -0.0209197998046875, -0.0267181396484375, -0.004993438720703125, 0.0242462158203125, 0.0167236328125, -0.035980224609375, 0.008758544921875, -0.038116455078125, -0.027374267578125, -0.021881103515625, 0.025543212890625, -0.0171661376953125, 0.00637054443359375, -0.0071563720703125, 0.0692138671875, 0.007747650146484375, -0.060211181640625, -0.0015411376953125, 0.0618896484375, -0.0186920166015625, -0.0146484375, -0.0501708984375, -0.014617919921875, 0.0134735107421875, -0.00417327880859375, -0.021728515625, -0.0239410400390625, 0.040740966796875, -0.00983428955078125, 0.004184722900390625, 0.031707763671875, 0.01239776611328125, 0.00844573974609375, -0.0054931640625, 0.03363037109375, -0.0076751708984375, -0.0286407470703125, 0.018341064453125, -0.00928497314453125, -0.0545654296875, -0.049407958984375, 0.024871826171875, -0.006023406982421875, -0.0105133056640625, -0.037261962890625, 0.027191162109375, 0.0301055908203125, 0.0113677978515625, -0.01012420654296875, 0.004852294921875, 0.00377655029296875, 0.034576416015625, -0.00978851318359375, 0.00560760498046875, -0.022125244140625, 0.0084228515625, -0.009307861328125, -0.007144927978515625, -0.0199737548828125, 0.01479339599609375, -0.041534423828125, -0.0703125, 0.040191650390625, -0.00457763671875, -0.005096435546875, -0.0037250518798828125, -0.0270538330078125, 0.0278167724609375, 0.1011962890625, -0.049407958984375, -0.011627197265625, 0.01512908935546875, 0.034912109375, -0.039794921875, -0.04473876953125, -0.032257080078125, -0.00920867919921875, -0.049224853515625, -0.007259368896484375, -0.035430908203125, -0.0020847320556640625, -0.005779266357421875, -0.03173828125, 0.0014638900756835938, -0.046844482421875, 0.037200927734375, -0.0189361572265625, 0.027435302734375, 0.004566192626953125, 0.0194244384765625, -0.00237274169921875, -0.0253753662109375, -0.021697998046875, -0.0726318359375, -0.02374267578125, 0.033477783203125, 0.0560302734375, 0.018218994140625, -0.0732421875, -0.010345458984375, 0.056488037109375, 0.01300811767578125, 0.0313720703125, -0.005176544189453125, -0.0116119384765625, 0.0263519287109375, -0.0249786376953125, -0.0097808837890625, -0.010833740234375, 0.006137847900390625, -0.0293731689453125, -0.0029621124267578125, 0.0212249755859375, -0.055755615234375, 0.00457000732421875, -0.04852294921875, 0.00872802734375, -0.06634521484375, -0.028350830078125, -0.0396728515625, 0.026885986328125, -0.04156494140625, 0.00711822509765625, -0.0523681640625, -0.07867431640625, 0.033050537109375, 0.0182647705078125, 0.01104736328125, -0.00146484375, 0.057342529296875, 0.0014410018920898438, -0.0224609375, 0.0005326271057128906, 0.048553466796875, 0.04266357421875, 0.04278564453125, 0.0257110595703125, 0.0266571044921875, -0.015838623046875, 0.004375457763671875, 0.0394287109375, -0.023345947265625, -0.01010894775390625, 0.01312255859375, 0.0038776397705078125, -0.039581298828125, 0.02069091796875, -0.005619049072265625, 0.048095703125, 0.050933837890625, -0.003818511962890625, -0.019439697265625, -0.0278472900390625, 0.0275421142578125, -0.00992584228515625, -0.0092620849609375, -0.039703369140625, -0.0280609130859375, 0.0244903564453125, 0.0215301513671875, -0.06597900390625, -0.01276397705078125, 0.01202392578125, -0.05621337890625, -0.040283203125, 0.00933074951171875, -0.0114288330078125, -0.039459228515625, 0.01023101806640625, 0.0207977294921875, -0.0174102783203125, 0.012054443359375, 0.0042877197265625, -0.032257080078125, 0.07861328125, 0.0146636962890625, -0.0811767578125, 0.058502197265625, -0.026824951171875, 0.0248260498046875, 0.01352691650390625, -0.0302581787109375, 0.0131683349609375, 0.0013866424560546875, -0.0105133056640625, 0.01354217529296875, -0.0146026611328125, -0.0265045166015625, -0.017730712890625, 0.006183624267578125, -0.0020771026611328125, 0.0013551712036132812, 0.032623291015625, 0.07000732421875, -0.0252227783203125, 0.07196044921875, -0.03466796875, 0.024078369140625, 0.05157470703125, -0.051971435546875, 0.000008761882781982422, 0.08270263671875, -0.0098876953125, -0.040374755859375, 0.0465087890625, -0.0225830078125, -0.0235748291015625, 0.01407623291015625, 0.047882080078125, 0.004535675048828125, 0.01934814453125, -0.0032329559326171875, -0.0022430419921875, -0.0109405517578125, 0.0225067138671875, -0.033355712890625, -0.07440185546875, -0.020782470703125, 0.007709503173828125, 0.0186920166015625, -0.019317626953125, -0.011444091796875, -0.033935546875, -0.053802490234375, 0.034454345703125, -0.0196533203125, 0.05059814453125, -0.006160736083984375, -0.0330810546875, -0.004367828369140625, -0.00905609130859375, -0.00237274169921875, 0.029022216796875, 0.00939178466796875, -0.02911376953125, -0.031982421875, 0.060821533203125, 0.029449462890625, 0.0295257568359375, -0.035888671875, -0.0257568359375, 0.0313720703125, -0.00411224365234375, 0.0489501953125, -0.0289459228515625, -0.0577392578125, 0.0090789794921875, -0.05517578125, -0.005306243896484375, -0.0179290771484375, -0.03094482421875, -0.053466796875, -0.0206146240234375, 0.0164031982421875, 0.007568359375, 0.0098114013671875, -0.01580810546875, -0.04693603515625, 0.0008063316345214844, 0.0023555755615234375, -0.025177001953125, 0.01142120361328125, 0.054901123046875, -0.038482666015625, 0.05078125, 0.01544952392578125, 0.03662109375, 0.00618743896484375, -0.032501220703125, 0.003917694091796875, -0.0421142578125, -0.0198822021484375, -0.005008697509765625, 0.004547119140625, 0.027923583984375, 0.030426025390625, -0.0022220611572265625, -0.035858154296875, 0.0138702392578125, 0.0172576904296875, -0.028656005859375, 0.00971221923828125, 0.00920867919921875, -0.039703369140625, 0.013824462890625, -0.01470947265625, 0.03863525390625, -0.022125244140625, -0.0234527587890625, 0.05718994140625, -0.0306854248046875, 0.054046630859375, 0.024566650390625, -0.0364990234375, 0.04034423828125, 0.0703125, -0.00543212890625, 0.040191650390625, 0.00933074951171875, -0.005828857421875, 0.044830322265625, -0.0166015625, -0.034820556640625, 0.008636474609375, 0.028533935546875, -0.00861358642578125, -0.025421142578125, 0.01190185546875, -0.02850341796875, 0.009796142578125, 0.03955078125, 0.04327392578125, -0.05645751953125, 0.002285003662109375, 0.0046234130859375, -0.037200927734375, 0.008453369140625, 0.004474639892578125, 0.035491943359375, 0.048309326171875, 0.043609619140625, 0.01313018798828125, 0.010650634765625, 0.033660888671875, -0.013824462890625, 0.01349639892578125, -0.01416778564453125, 0.061248779296875, -0.006561279296875, -0.05413818359375, -0.029083251953125, 0.057403564453125, -0.036865234375, -0.06591796875, -0.04193115234375, 0.017425537109375, -0.032806396484375, -0.07879638671875, 0.00872039794921875, -0.0195159912109375, 0.047271728515625, 0.04296875, 0.00251007080078125, 0.037628173828125, 0.0322265625, 0.0037708282470703125, 0.012054443359375, -0.012786865234375, 0.0255584716796875, 0.022247314453125, -0.0286865234375, -0.0202178955078125, 0.00627899169921875, -0.04156494140625, 0.007781982421875, -0.01328277587890625, -0.012786865234375, -0.00441741943359375, -0.01410675048828125, 0.04693603515625, -0.00301361083984375, -0.0293121337890625, 0.0168914794921875, 0.003902435302734375, 0.00824737548828125, -0.009185791015625, -0.01995849609375, -0.0210418701171875, 0.005870819091796875, -0.01971435546875, -0.032989501953125, 0.0189666748046875, -0.036376953125, -0.0293121337890625, 0.07586669921875, -0.01454925537109375, 0.00554656982421875, -0.0068206787109375, 0.037506103515625, 0.0211334228515625, 0.051727294921875, -0.0435791015625, 0.08880615234375, -0.015472412109375, 0.062744140625, -0.048187255859375, 0.0076141357421875, 0.022979736328125, 0.0142364501953125, 0.02972412109375, 0.017303466796875, -0.02825927734375, -0.00980377197265625, 0.0107574462890625, 0.0005903244018554688, -0.0178375244140625, 0.0523681640625, 0.0158538818359375, 0.0343017578125, 0.06878662109375, -0.0419921875, 0.036102294921875, 0.00597381591796875, 0.0200347900390625, 0.035186767578125, 0.0022144317626953125, -0.0379638671875, 0.037841796875, 0.00814056396484375, -0.095947265625, 0.046478271484375, 0.0626220703125, -0.0036334991455078125, -0.0014772415161132812, 0.0224761962890625, 0.052520751953125, -0.05926513671875, 0.0413818359375, -0.038970947265625, 0.05908203125, 0.0014009475708007812, 0.023223876953125, 0.0196533203125, 0.031646728515625, 0.0244903564453125, -0.009307861328125, 0.00882720947265625, 0.013641357421875, -0.02691650390625, 0.0709228515625, 0.01593017578125, 0.033721923828125, -0.05633544921875, 0.01331329345703125, 0.0203857421875, 0.08404541015625, -0.059783935546875, 0.003696441650390625, 0.01080322265625, 0.00908660888671875, 0.032257080078125, -0.0211944580078125, 0.07110595703125, 0.01116943359375, -0.01132965087890625, -0.0171661376953125, 0.0032329559326171875, 0.032470703125, -0.00392913818359375, 0.00513458251953125, 0.034454345703125, -0.021270751953125, 0.0264434814453125, -0.0160369873046875, 0.0114288330078125, 0.0288543701171875, 0.0213623046875, -0.039398193359375, 0.035858154296875, -0.01540374755859375, 0.0201416015625, -0.0020771026611328125, 0.01226043701171875, -0.0006823539733886719, -0.0038356781005859375, 0.0026073455810546875, -0.012603759765625, -0.01538848876953125, 0.0283966064453125, 0.0245361328125, 0.064453125, 0.030120849609375, -0.0099945068359375, 0.01438140869140625, -0.005336761474609375, 0.0020771026611328125, -0.03924560546875, 0.041778564453125, 0.0008196830749511719, -0.00844573974609375, 0.00972747802734375, -0.045654296875, -0.019500732421875, 0.017303466796875, 0.0325927734375, 0.020294189453125, 0.034637451171875, 0.007274627685546875, 0.006504058837890625, 0.01239013671875, -0.0174407958984375, 0.02777099609375, 0.023529052734375, -0.035919189453125, -0.006855010986328125, 0.0021343231201171875, -0.09759521484375, 0.03460693359375, 0.059051513671875, -0.0487060546875, 0.0096588134765625, 0.007434844970703125, -0.005298614501953125, 0.03863525390625, -0.0171051025390625, -0.007411956787109375, 0.01371002197265625, 0.02459716796875, -0.00007987022399902344, -0.0645751953125, -0.0308990478515625, -0.016387939453125, 0.0031757354736328125, -0.0172882080078125, 0.05413818359375, 0.01538848876953125, 0.01953125, -0.026336669921875, 0.043609619140625, -0.040008544921875, -0.02825927734375, 0.02093505859375, 0.0012693405151367188, 0.01317596435546875, -0.00543212890625, -0.0545654296875, 0.037353515625, -0.004985809326171875, 0.0021648406982421875, 0.0281219482421875, -0.00804901123046875, -0.00646209716796875, 0.0087432861328125, 0.0635986328125, -0.0159149169921875, -0.0235137939453125, -0.050323486328125, -0.01154327392578125, 0.044525146484375, 0.05157470703125, -0.01373291015625, 0.08465576171875, -0.048309326171875, -0.006317138671875, 0.006839752197265625, -0.0980224609375, -0.0215606689453125, 0.01342010498046875, -0.00899505615234375, 0.0223846435546875, 0.05303955078125, 0.003421783447265625, 0.0272979736328125, 0.03155517578125, -0.01427459716796875, 0.05072021484375, -0.03070068359375, 0.00890350341796875, 0.020721435546875, 0.0650634765625, 0.0226898193359375, 0.0114898681640625, -0.01995849609375, -0.003292083740234375, 0.003940582275390625, -0.02978515625, -0.031494140625, -0.0592041015625, 0.0007901191711425781, 0.00713348388671875, -0.027496337890625, -0.05145263671875, -0.040374755859375, 0.0100250244140625, 0.0093536376953125, -0.02813720703125, -0.0050811767578125, 0.02349853515625, -0.050689697265625, 0.0172576904296875, -0.041015625, -0.0155029296875, 0.0174560546875, 0.025848388671875, -0.0789794921875, -0.01001739501953125, -0.0308685302734375, -0.03594970703125, -0.0614013671875, 0.02374267578125, 0.04656982421875, -0.03173828125, -0.01331329345703125, 0.01373291015625, 0.0267333984375, 0.058563232421875, -0.0274658203125, -0.04833984375, 0.00594329833984375, -0.00998687744140625, 0.0281219482421875, -0.0264434814453125, -0.003662109375, -0.05364990234375, 0.006801605224609375, 0.00988006591796875, -0.016387939453125, -0.0017232894897460938, -0.04547119140625, -0.0887451171875, 0.034454345703125, 0.00013577938079833984, -0.046722412109375, -0.03790283203125, 0.01153564453125, 0.0014142990112304688, -0.0162811279296875, -0.0069580078125, -0.0160064697265625, -0.02880859375, 0.0038433074951171875, 0.0168304443359375, 0.018951416015625, 0.00859832763671875, 0.01290130615234375, -0.01605224609375, 0.049346923828125, 0.05364990234375, 0.01277923583984375, 0.0257568359375, 0.004810333251953125, 0.0008306503295898438, 0.02197265625, -0.052886962890625, 0.002277374267578125, -0.02935791015625, 0.0017576217651367188, -0.005153656005859375, -0.006549835205078125, -0.0164947509765625, -0.004520416259765625, -0.0027141571044921875, 0.0635986328125, 0.00835418701171875, -0.0308837890625, 0.0028095245361328125, -0.0443115234375, -0.04547119140625, -0.00433349609375, 0.007843017578125, -0.032196044921875, 0.01331329345703125, -0.00007671117782592773, -0.00902557373046875, -0.054443359375, -0.01029205322265625, -0.040496826171875, -0.01201629638671875, -0.00977325439453125, -0.005084991455078125, 0.023529052734375, -0.033416748046875, 0.06427001953125, -0.040252685546875, 0.004131317138671875, 0.0183563232421875, 0.0271453857421875, 0.020538330078125, 0.0369873046875, 0.0130615234375, 0.0091400146484375, -0.0027866363525390625, -0.0003211498260498047, 0.015472412109375, 0.0308685302734375, 0.000522613525390625, -0.0216217041015625, -0.0037822723388671875, 0.030181884765625, 0.00771331787109375, 0.037200927734375, -0.0258026123046875, 0.0262603759765625, -0.0086822509765625, 0.045074462890625, -0.0062713623046875, -0.0545654296875, -0.037841796875, 0.0302886962890625, 0.01422119140625, -0.015625, 0.033538818359375, 0.0025119781494140625, 0.0079498291015625, 0.0139923095703125, 0.026275634765625, 0.0128631591796875, 0.01468658447265625, 0.005176544189453125, 0.0171051025390625, 0.0069732666015625 ]
7198f226b4ec020b2f4020b1cf95101573f897bc
Wordpress Stackexchange Q: Use rich text editor in comments? I've been trying to get the TinyMCE editor working in the comments field but I've been unable to do so. Another suggestion I found was http://nicedit.com, the editor is working but the comments are not saved in rich text. TinyMCEComments seems to do it but hasn't been updated in a while, it's not working for 3.2. Did anybody got this working? Thanks! A: Solved it myself by loading tinymce in the header: wp_enqueue_script('tiny_mce'); This will include the TinyMCE javascript. Then simply use TinyMCE as you wish <script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, skin : "o2k7", skin_variant : "silver", }); </script>
Q: Use rich text editor in comments? I've been trying to get the TinyMCE editor working in the comments field but I've been unable to do so. Another suggestion I found was http://nicedit.com, the editor is working but the comments are not saved in rich text. TinyMCEComments seems to do it but hasn't been updated in a while, it's not working for 3.2. Did anybody got this working? Thanks! A: Solved it myself by loading tinymce in the header: wp_enqueue_script('tiny_mce'); This will include the TinyMCE javascript. Then simply use TinyMCE as you wish <script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, skin : "o2k7", skin_variant : "silver", }); </script> A: Unfortunately your solution has a bug. TinyMCE stops working when used with threaded comments and user clicks reply. This is because it can't be moved around in DOM. TinyMCE must be removed from DOM before comment form is moved on reply and added back after comment form is in place. The same thing needs to be done when/if user clicks cancel reply. I posted a bunch of code for WordPress > 3.3 with two ways to solve this problem in an article on my blog: http://www.techytalk.info/add-tinymce-quicktags-visual-editors-wordpress-comments-form/ Also my solution makes it possible to use both TinyMCE (Visual) or Quicktags(HTML) editor or both using WordPress 3.3 wp_editor() function.
wordpress
{ "language": "en", "length": 245, "provenance": "stackexchange_00019.jsonl.gz:411121", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/22415" }
[ 0.01311492919921875, -0.0140380859375, 0.00778961181640625, -0.005489349365234375, -0.0160675048828125, -0.006366729736328125, 0.018402099609375, -0.015655517578125, 0.0296173095703125, 0.05517578125, -0.029876708984375, 0.0008435249328613281, 0.00708770751953125, 0.005336761474609375, -0.058013916015625, -0.01152801513671875, 0.046417236328125, -0.038787841796875, 0.0122833251953125, 0.0010528564453125, -0.00476837158203125, 0.0291595458984375, 0.024078369140625, 0.00022876262664794922, 0.041778564453125, 0.00604248046875, 0.1031494140625, -0.0287017822265625, 0.0433349609375, -0.0020885467529296875, 0.035308837890625, -0.05975341796875, 0.032623291015625, 0.043182373046875, -0.048095703125, 0.0672607421875, -0.0201568603515625, 0.017974853515625, 0.003261566162109375, 0.0205230712890625, -0.00673675537109375, 0.00335693359375, -0.0006513595581054688, 0.0102996826171875, -0.0218658447265625, -0.034820556640625, 0.0003402233123779297, -0.037872314453125, 0.00772857666015625, -0.0423583984375, 0.01235198974609375, 0.0162506103515625, 0.035308837890625, -0.0158843994140625, -0.01422882080078125, 0.026397705078125, -0.04986572265625, 0.01070404052734375, 0.01450347900390625, 0.02044677734375, 0.028106689453125, -0.005588531494140625, -0.005268096923828125, 0.005523681640625, -0.00548553466796875, -0.002994537353515625, -0.006427764892578125, 0.0203094482421875, 0.0275115966796875, -0.01776123046875, -0.0229034423828125, -0.003978729248046875, 0.0099639892578125, -0.072509765625, 0.0148468017578125, 0.054840087890625, -0.035614013671875, -0.01739501953125, 0.017974853515625, -0.0305633544921875, 0.01369476318359375, 0.0255279541015625, -0.011962890625, -0.0136871337890625, -0.00872039794921875, -0.002960205078125, -0.010498046875, -0.0184478759765625, -0.0228729248046875, -0.0176849365234375, -0.007778167724609375, -0.0648193359375, -0.04461669921875, 0.04583740234375, 0.0095367431640625, -0.0162200927734375, 0.01166534423828125, 0.044677734375, -0.0068817138671875, 0.048309326171875, -0.016815185546875, -0.02899169921875, 0.06500244140625, -0.03594970703125, 0.01158905029296875, -0.0201263427734375, -0.01195526123046875, -0.0016241073608398438, 0.046539306640625, 0.0389404296875, -0.0250091552734375, 0.03509521484375, 0.00672149658203125, -0.00960540771484375, -0.007114410400390625, -0.0282745361328125, -0.058502197265625, 0.05108642578125, 0.0001493692398071289, 0.032501220703125, 0.0229034423828125, 0.045684814453125, 0.003559112548828125, -0.034881591796875, -0.0180816650390625, -0.023956298828125, -0.0159454345703125, -0.034454345703125, 0.0020198822021484375, 0.02532958984375, -0.031890869140625, 0.024444580078125, 0.0204315185546875, 0.00748443603515625, -0.00164794921875, -0.017730712890625, 0.006320953369140625, -0.0009584426879882812, 0.0004944801330566406, 0.01158905029296875, 0.038543701171875, -0.0253448486328125, -0.019866943359375, 0.024749755859375, -0.0227813720703125, 0.0352783203125, 0.0211334228515625, 0.0022754669189453125, -0.026885986328125, -0.07965087890625, 0.003437042236328125, -0.026397705078125, 0.0518798828125, 0.0167236328125, -0.0189666748046875, -0.0968017578125, 0.041534423828125, -0.076416015625, 0.036895751953125, -0.08966064453125, 0.026947021484375, 0.00972747802734375, 0.0191192626953125, -0.054595947265625, -0.062225341796875, -0.0296630859375, -0.036224365234375, -0.0164794921875, 0.032440185546875, 0.01654052734375, -0.00600433349609375, -0.050384521484375, 0.0243988037109375, 0.0085601806640625, -0.01885986328125, 0.0439453125, -0.0021038055419921875, 0.0242156982421875, 0.0016050338745117188, 0.031494140625, 0.004611968994140625, -0.038604736328125, 0.005645751953125, 0.0003287792205810547, -0.02593994140625, 0.004245758056640625, 0.018157958984375, 0.0679931640625, 0.004352569580078125, 0.0250091552734375, 0.006572723388671875, -0.0123291015625, 0.053070068359375, 0.004680633544921875, -0.004199981689453125, -0.050994873046875, -0.0206298828125, 0.007282257080078125, -0.0307159423828125, -0.0174102783203125, 0.064697265625, 0.0201263427734375, 0.005641937255859375, -0.0222320556640625, -0.08782958984375, 0.046661376953125, -0.038055419921875, 0.052490234375, 0.045074462890625, -0.001781463623046875, -0.006622314453125, -0.044403076171875, 0.016387939453125, 0.00553131103515625, -0.031829833984375, 0.0229339599609375, -0.004741668701171875, 0.053466796875, 0.028778076171875, 0.032073974609375, 0.055267333984375, -0.0243377685546875, 0.058563232421875, 0.006595611572265625, -0.032257080078125, 0.000278472900390625, -0.0269012451171875, 0.00714874267578125, -0.0220794677734375, 0.0084075927734375, 0.0231781005859375, 0.01256561279296875, 0.0231781005859375, 0.053558349609375, -0.01544952392578125, -0.0196533203125, -0.00533294677734375, -0.040313720703125, 0.0207061767578125, 0.04229736328125, 0.038421630859375, 0.0205230712890625, -0.0031719207763671875, -0.0258331298828125, 0.058135986328125, -0.015472412109375, 0.0307769775390625, -0.050537109375, 0.016754150390625, 0.06036376953125, 0.04278564453125, -0.01180267333984375, -0.009002685546875, -0.0194244384765625, 0.0175628662109375, 0.004627227783203125, -0.0190582275390625, 0.01319122314453125, -0.00634765625, 0.0102996826171875, -0.0031375885009765625, -0.01012420654296875, 0.0204315185546875, -0.0212860107421875, 0.0266571044921875, 0.002414703369140625, 0.0224456787109375, 0.0131988525390625, -0.056365966796875, 0.003810882568359375, 0.0325927734375, 0.03619384765625, -0.0194091796875, 0.048828125, 0.017547607421875, 0.0198211669921875, -0.019989013671875, 0.003147125244140625, -0.0259246826171875, 0.034881591796875, 0.01300048828125, 0.037628173828125, 0.001445770263671875, -0.01042938232421875, 0.01611328125, -0.05902099609375, -0.0133209228515625, -0.0009660720825195312, 0.0151824951171875, 0.0037078857421875, 0.0172271728515625, 0.0445556640625, 0.0039215087890625, 0.0159149169921875, 0.01184844970703125, -0.0010519027709960938, 0.0261688232421875, -0.01158905029296875, 0.031097412109375, -0.007717132568359375, 0.04010009765625, 0.057342529296875, -0.006591796875, 0.012939453125, 0.00988006591796875, -0.006805419921875, 0.001750946044921875, 0.0245208740234375, 0.0105133056640625, -0.00295257568359375, -0.05218505859375, 0.007297515869140625, 0.03314208984375, 0.07305908203125, -0.01168060302734375, -0.0450439453125, 0.0034465789794921875, 0.039459228515625, -0.04193115234375, -0.047637939453125, -0.0142974853515625, -0.0762939453125, -0.013427734375, -0.019775390625, -0.05511474609375, 0.0141754150390625, 0.006328582763671875, 0.011444091796875, 0.01250457763671875, -0.0296478271484375, -0.018341064453125, -0.0148773193359375, -0.05584716796875, -0.022216796875, 0.002254486083984375, 0.02081298828125, 0.003704071044921875, 0.056732177734375, -0.0031757354736328125, -0.0548095703125, 0.016815185546875, -0.0231781005859375, 0.006633758544921875, 0.033905029296875, -0.00001823902130126953, -0.0208587646484375, -0.011932373046875, 0.0032196044921875, 0.0141143798828125, 0.004436492919921875, -0.016510009765625, -0.00473785400390625, -0.019195556640625, -0.00737762451171875, 0.01470947265625, 0.0032787322998046875, 0.005489349365234375, 0.03436279296875, 0.0423583984375, -0.01474761962890625, -0.0199432373046875, -0.00112152099609375, -0.031707763671875, 0.04888916015625, 0.0086212158203125, -0.00897216796875, 0.006732940673828125, 0.0361328125, 0.0189056396484375, 0.039276123046875, 0.0129547119140625, -0.006011962890625, -0.00962066650390625, -0.0038909912109375, -0.007465362548828125, -0.0265350341796875, -0.00994873046875, -0.0254974365234375, 0.00727081298828125, -0.0283203125, 0.01293182373046875, -0.039093017578125, 0.0579833984375, -0.0204925537109375, -0.01441192626953125, 0.0165863037109375, -0.039031982421875, 0.016571044921875, -0.024566650390625, -0.005340576171875, -0.023895263671875, 0.03863525390625, -0.037750244140625, -0.005615234375, -0.00991058349609375, 0.0200653076171875, -0.01027679443359375, -0.0185089111328125, -0.01190948486328125, 0.0005049705505371094, -0.0712890625, 0.00927734375, -0.00728607177734375, -0.018890380859375, -0.0277099609375, 0.04632568359375, -0.03021240234375, -0.03729248046875, 0.0297088623046875, -0.05877685546875, -0.00720977783203125, 0.0149078369140625, -0.038482666015625, -0.0037746429443359375, -0.00823974609375, -0.0614013671875, -0.07958984375, -0.0259246826171875, -0.06549072265625, 0.075439453125, 0.015350341796875, 0.0232391357421875, -0.01349639892578125, 0.04888916015625, 0.0202789306640625, 0.0258941650390625, -0.00804901123046875, -0.0001322031021118164, -0.043731689453125, -0.03253173828125, -0.01009368896484375, -0.04901123046875, 0.01067352294921875, 0.0236663818359375, -0.026458740234375, 0.024993896484375, -0.0170745849609375, -0.022674560546875, 0.0247955322265625, -0.050537109375, -0.0248260498046875, 0.00365447998046875, -0.01110076904296875, 0.016082763671875, -0.0003819465637207031, -0.020172119140625, 0.0205230712890625, -0.0361328125, 0.00684356689453125, -0.045318603515625, 0.025115966796875, 0.0032787322998046875, 0.058563232421875, 0.018585205078125, 0.01245880126953125, 0.029083251953125, -0.042816162109375, 0.047515869140625, 0.024261474609375, -0.00469970703125, -0.0177154541015625, -0.059295654296875, 0.0888671875, 0.035308837890625, 0.050140380859375, -0.0887451171875, 0.048248291015625, -0.01430511474609375, 0.02130126953125, 0.0210113525390625, -0.006061553955078125, 0.0290679931640625, 0.0173797607421875, -0.040496826171875, 0.0021991729736328125, -0.0584716796875, 0.06072998046875, 0.036346435546875, -0.0063934326171875, -0.0789794921875, -0.0257110595703125, 0.0005779266357421875, -0.0211029052734375, 0.0745849609375, 0.0266876220703125, -0.0001499652862548828, 0.0297393798828125, 0.042694091796875, -0.0255126953125, 0.0266265869140625, 0.02557373046875, 0.01506805419921875, 0.0282440185546875, -0.00817108154296875, -0.03472900390625, 0.0011739730834960938, -0.003353118896484375, 0.04443359375, 0.01261138916015625, -0.034271240234375, -0.011444091796875, 0.006900787353515625, 0.029296875, 0.01136016845703125, 0.01125335693359375, -0.0181427001953125, 0.017669677734375, 0.0007824897766113281, 0.0176239013671875, 0.049713134765625, 0.0085906982421875, 0.007442474365234375, -0.0379638671875, 0.005283355712890625, -0.026885986328125, 0.010528564453125, 0.0322265625, -0.007656097412109375, 0.0158843994140625, -0.005817413330078125, 0.0248260498046875, -0.006256103515625, 0.0294189453125, 0.0126495361328125, 0.035797119140625, 0.0021953582763671875, 0.01454925537109375, 0.01023101806640625, -0.0221099853515625, 0.0009441375732421875, -0.00550079345703125, -0.00757598876953125, 0.0257568359375, -0.005390167236328125, 0.01715087890625, -0.017486572265625, 0.0221405029296875, -0.0149383544921875, -0.0038356781005859375, -0.0261383056640625, 0.034027099609375, 0.0229339599609375, -0.01153564453125, -0.022064208984375, -0.00682830810546875, -0.01313018798828125, -0.049835205078125, -0.026336669921875, 0.01436614990234375, -0.0190582275390625, -0.0176239013671875, -0.0210723876953125, -0.004917144775390625, -0.0130615234375, 0.00919342041015625, -0.052825927734375, -0.0277557373046875, -0.01554107666015625, -0.00807952880859375, 0.042510986328125, 0.0134124755859375, -0.013824462890625, -0.0265045166015625, 0.0096282958984375, -0.038177490234375, -0.0107269287109375, 0.0246429443359375, -0.0176239013671875, 0.024383544921875, -0.0150299072265625, -0.068359375, -0.041900634765625, -0.038604736328125, -0.038787841796875, -0.03131103515625, -0.00527191162109375, 0.01154327392578125, 0.030364990234375, -0.01538848876953125, -0.0440673828125, -0.01244354248046875, 0.01385498046875, 0.0234832763671875, 0.0811767578125, 0.02178955078125, 0.048095703125, -0.035736083984375, 0.0792236328125, 0.01560211181640625, 0.0169830322265625, -0.0482177734375, -0.031768798828125, 0.01042938232421875, -0.00015616416931152344, -0.021942138671875, -0.004894256591796875, 0.0020503997802734375, 0.018798828125, 0.05157470703125, -0.00318145751953125, 0.025787353515625, -0.0292510986328125, 0.0027370452880859375, -0.03387451171875, 0.05426025390625, -0.049163818359375, 0.017364501953125, -0.005199432373046875, -0.04296875, -0.0000407099723815918, 0.0154266357421875, -0.0020198822021484375, 0.0120849609375, -0.0180206298828125, -0.00946044921875, 0.036865234375, -0.0168304443359375, 0.0205535888671875, 0.04248046875, -0.00963592529296875, 0.03753662109375, -0.005702972412109375, -0.00579833984375, 0.02716064453125, 0.01493072509765625, -0.006595611572265625, 0.0155792236328125, 0.0220184326171875, -0.0106201171875, 0.0093994140625, -0.002063751220703125, -0.00936126708984375, 0.02099609375, 0.08978271484375, 0.0789794921875, -0.1004638671875, -0.0033931732177734375, 0.0184478759765625, -0.0369873046875, 0.0136260986328125, -0.01250457763671875, 0.0143280029296875, -0.051055908203125, 0.054595947265625, 0.0034961700439453125, 0.0009326934814453125, -0.00876617431640625, -0.036346435546875, 0.004932403564453125, -0.032257080078125, 0.01055908203125, -0.01085662841796875, -0.03155517578125, -0.0086212158203125, 0.032989501953125, -0.03131103515625, -0.027435302734375, 0.00007516145706176758, -0.00616455078125, -0.0238494873046875, -0.0623779296875, -0.0078277587890625, -0.00835418701171875, 0.0003666877746582031, 0.01250457763671875, -0.031005859375, -0.00308990478515625, 0.0614013671875, -0.07025146484375, 0.061492919921875, 0.0305633544921875, -0.003711700439453125, 0.0232391357421875, -0.03216552734375, 0.031982421875, 0.00008165836334228516, -0.02874755859375, 0.0206756591796875, 0.006877899169921875, -0.052734375, 0.0146636962890625, 0.054779052734375, 0.0225372314453125, 0.0074920654296875, -0.043121337890625, 0.051239013671875, -0.0325927734375, -0.0196685791015625, -0.035247802734375, -0.052001953125, -0.03094482421875, 0.01422882080078125, -0.05615234375, -0.0209808349609375, 0.02801513671875, -0.05804443359375, -0.08294677734375, 0.11566162109375, 0.0236663818359375, 0.0169219970703125, -0.009735107421875, 0.058837890625, -0.06524658203125, 0.0103302001953125, 0.0012989044189453125, 0.031646728515625, -0.036346435546875, -0.0070953369140625, -0.04473876953125, -0.00899505615234375, -0.0019054412841796875, 0.06414794921875, -0.01898193359375, -0.02294921875, -0.02777099609375, 0.034637451171875, 0.08538818359375, 0.033050537109375, 0.03497314453125, 0.020050048828125, 0.01580810546875, -0.0511474609375, -0.0180511474609375, 0.0088348388671875, 0.016357421875, -0.0557861328125, -0.01224517822265625, 0.0229339599609375, 0.0021343231201171875, -0.002475738525390625, 0.023834228515625, 0.00616455078125, -0.0274505615234375, 0.0032634735107421875, 0.0257110595703125, -0.08172607421875, -0.03680419921875, 0.021484375, -0.00798797607421875, -0.04302978515625, -0.040740966796875, -0.0297088623046875, 0.0262451171875, 0.0307464599609375, 0.01800537109375, 0.019622802734375, 0.028472900390625, 0.06390380859375, -0.051910400390625, -0.00013709068298339844, 0.00211334228515625, -0.02593994140625, 0.01424407958984375, -0.01641845703125, 0.005619049072265625, -0.06146240234375, -0.0182647705078125, 0.02960205078125, 0.0248870849609375, -0.0241546630859375, -0.03564453125, 0.002590179443359375, 0.01534271240234375, 0.01090240478515625, 0.00336456298828125, 0.01457977294921875, -0.03546142578125, 0.03240966796875, 0.01291656494140625, -0.03857421875, -0.021636962890625, 0.03448486328125, -0.00016701221466064453, -0.01351165771484375, 0.039459228515625, -0.028564453125, -0.04888916015625, 0.0003898143768310547, 0.0089111328125, 0.0220184326171875, 0.021392822265625, 0.0413818359375, 0.0166473388671875, -0.00902557373046875, 0.0014486312866210938, 0.0139007568359375, -0.00585174560546875, -0.00594329833984375, -0.004863739013671875, -0.0110015869140625, -0.01200103759765625, 0.02020263671875, -0.023040771484375, 0.056732177734375, 0.0217742919921875, -0.0108642578125, -0.032257080078125, -0.0161285400390625, -0.0221710205078125, -0.04779052734375, -0.0633544921875, -0.020538330078125, -0.022918701171875, 0.04266357421875, 0.00853729248046875, 0.02783203125, -0.012786865234375, 0.049713134765625, -0.01184844970703125, -0.01806640625, 0.01092529296875, -0.01983642578125, -0.004520416259765625, 0.006702423095703125, -0.037109375, 0.01117706298828125, -0.01338958740234375, 0.00733184814453125, -0.0007662773132324219, -0.0469970703125, 0.0045318603515625, 0.0227813720703125, 0.00215911865234375, -0.002628326416015625, -0.0240478515625, -0.0005879402160644531, 0.01277923583984375, -0.00504302978515625, 0.01197052001953125, 0.00777435302734375, 0.01312255859375, -0.00237274169921875, -0.0145721435546875, 0.01172637939453125, 0.00872039794921875, 0.0013837814331054688, 0.0182952880859375, 0.051666259765625, -0.01009368896484375, 0.0203094482421875, -0.04156494140625, 0.016998291015625, -0.0016460418701171875, -0.03082275390625, 0.00614166259765625, 0.060699462890625, 0.03326416015625, -0.0251312255859375, -0.04595947265625, 0.06829833984375, -0.01702880859375, 0.0244140625, 0.0307464599609375, -0.012359619140625, -0.00604248046875, 0.03240966796875, 0.007160186767578125, -0.0222015380859375, -0.03338623046875, -0.03192138671875, -0.0284271240234375, 0.01519012451171875, 0.00859832763671875, 0.00737762451171875, 0.033538818359375, 0.030609130859375, 0.024261474609375, 0.0299072265625, -0.00839996337890625, 0.037078857421875, 0.0182952880859375, -0.0021724700927734375, 0.0033779144287109375, 0.049896240234375, 0.002651214599609375, 0.005092620849609375, 0.0233917236328125, 0.01375579833984375, 0.0257720947265625, -0.043548583984375, 0.048614501953125, 0.0382080078125, 0.07904052734375, -0.03253173828125, 0.008453369140625, 0.035888671875, 0.01114654541015625, 0.027069091796875, -0.01349639892578125, -0.0311126708984375, -0.03704833984375, -0.01403045654296875, 0.0269622802734375, -0.04766845703125, -0.031829833984375, -0.1185302734375, -0.00617218017578125, 0.0026073455810546875, -0.0012063980102539062, -0.04168701171875, 0.0128173828125, 0.00740814208984375, 0.05084228515625, -0.0229339599609375, 0.03271484375, -0.00677490234375, 0.02178955078125, 0.008636474609375, -0.0213165283203125, -0.028594970703125, 0.0494384765625, -0.0028972625732421875, 0.05438232421875, 0.0701904296875, -0.044830322265625, 0.017333984375, 0.0367431640625, 0.04815673828125, 0.08624267578125, 0.00501251220703125, 0.0025310516357421875, 0.04571533203125, -0.0171966552734375, -0.040008544921875, -0.07489013671875, 0.006618499755859375, -0.07830810546875, 0.0008726119995117188, -0.0199737548828125, -0.0014905929565429688, 0.0175933837890625, -0.049774169921875, -0.096923828125, 0.033294677734375, -0.02056884765625, -0.022705078125, -0.0249786376953125, -0.0283966064453125, -0.00493621826171875, 0.01485443115234375, -0.0164794921875, -0.0031280517578125, -0.018890380859375, 0.0325927734375, 0.0224151611328125, 0.0250244140625, -0.0009098052978515625, 0.0101318359375, -0.040130615234375, 0.026214599609375, -0.00431060791015625, 0.0210113525390625, 0.01291656494140625, -0.0175018310546875, 0.014434814453125, 0.033355712890625, -0.0240325927734375, -0.06683349609375, -0.01494598388671875, -0.039276123046875, 0.0017499923706054688, -0.027557373046875, -0.0538330078125, -0.01549530029296875, 0.07464599609375, 0.052093505859375, 0.01995849609375, -0.02569580078125, 0.0004982948303222656, -0.00662994384765625, -0.03167724609375, 0.01474761962890625, 0.0286712646484375, -0.03924560546875, 0.010009765625, 0.0088958740234375, 0.01580810546875, -0.0183868408203125, -0.010589599609375, 0.01103973388671875, -0.010833740234375, 0.04632568359375, -0.02471923828125, 0.05059814453125, 0.01507568359375, 0.08331298828125, -0.048828125, -0.005611419677734375, 0.00994873046875, -0.0009717941284179688, 0.03369140625, -0.001735687255859375, -0.019744873046875, -0.029693603515625, 0.0045928955078125, 0.0240020751953125, 0.004161834716796875, 0.021759033203125, -0.0182952880859375, -0.007137298583984375, 0.0237274169921875, -0.01233673095703125, -0.0027332305908203125, -0.0247802734375, -0.01094818115234375, -0.007694244384765625, -0.039154052734375, 0.01507568359375, -0.0340576171875, 0.01538848876953125, -0.04791259765625, 0.032989501953125, -0.0013418197631835938, 0.0174560546875, 0.018829345703125, 0.023040771484375, 0.0168304443359375, 0.004749298095703125, 0.00835418701171875, -0.01849365234375, -0.0081024169921875, 0.06451416015625, 0.01256561279296875, 0.0085601806640625 ]